From e8f4256a9fd862252e46aea8773ea4ebe7406228 Mon Sep 17 00:00:00 2001
From: GitHub Actions <actions@github.com>
Date: Wed, 27 May 2026 15:47:40 +0000
Subject: [PATCH] chore: update OpenAPI specification

---
 fern/apis/api/openapi.json | 76801 ++++++++++++++++++++++++-----------
 1 file changed, 52862 insertions(+), 23939 deletions(-)

diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json
index a270759b5..21df509ec 100644
--- a/fern/apis/api/openapi.json
+++ b/fern/apis/api/openapi.json
@@ -1,17 +1,17 @@
 {
   "openapi": "3.0.0",
   "paths": {
-    "/call": {
+    "/assistant": {
       "post": {
-        "operationId": "CallController_create",
-        "summary": "Create Call",
+        "operationId": "AssistantController_create",
+        "summary": "Create Assistant",
         "parameters": [],
         "requestBody": {
           "required": true,
           "content": {
             "application/json": {
               "schema": {
-                "$ref": "#/components/schemas/CreateCallDTO"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             }
           }
@@ -22,21 +22,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/Call"
-                    },
-                    {
-                      "$ref": "#/components/schemas/CallBatchResponse"
-                    }
-                  ]
+                  "$ref": "#/components/schemas/Assistant"
                 }
               }
             }
           }
         },
         "tags": [
-          "Calls"
+          "Assistants"
         ],
         "security": [
           {
@@ -45,36 +38,9 @@
         ]
       },
       "get": {
-        "operationId": "CallController_findAll",
-        "summary": "List Calls",
+        "operationId": "AssistantController_findAll",
+        "summary": "List Assistants",
         "parameters": [
-          {
-            "name": "id",
-            "required": false,
-            "in": "query",
-            "description": "This is the unique identifier for the call.",
-            "schema": {
-              "type": "string"
-            }
-          },
-          {
-            "name": "assistantId",
-            "required": false,
-            "in": "query",
-            "description": "This will return calls with the specified assistantId.",
-            "schema": {
-              "type": "string"
-            }
-          },
-          {
-            "name": "phoneNumberId",
-            "required": false,
-            "in": "query",
-            "description": "This is the phone number that will be used for the call. To use a transient number, use `phoneNumber` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
-            "schema": {
-              "type": "string"
-            }
-          },
           {
             "name": "limit",
             "required": false,
@@ -175,7 +141,7 @@
                 "schema": {
                   "type": "array",
                   "items": {
-                    "$ref": "#/components/schemas/Call"
+                    "$ref": "#/components/schemas/Assistant"
                   }
                 }
               }
@@ -183,7 +149,7 @@
           }
         },
         "tags": [
-          "Calls"
+          "Assistants"
         ],
         "security": [
           {
@@ -192,10 +158,10 @@
         ]
       }
     },
-    "/call/{id}": {
+    "/assistant/{id}": {
       "get": {
-        "operationId": "CallController_findOne",
-        "summary": "Get Call",
+        "operationId": "AssistantController_findOne",
+        "summary": "Get Assistant",
         "parameters": [
           {
             "name": "id",
@@ -212,14 +178,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/Call"
+                  "$ref": "#/components/schemas/Assistant"
                 }
               }
             }
           }
         },
         "tags": [
-          "Calls"
+          "Assistants"
         ],
         "security": [
           {
@@ -228,8 +194,8 @@
         ]
       },
       "patch": {
-        "operationId": "CallController_update",
-        "summary": "Update Call",
+        "operationId": "AssistantController_update",
+        "summary": "Update Assistant",
         "parameters": [
           {
             "name": "id",
@@ -245,7 +211,7 @@
           "content": {
             "application/json": {
               "schema": {
-                "$ref": "#/components/schemas/UpdateCallDTO"
+                "$ref": "#/components/schemas/UpdateAssistantDTO"
               }
             }
           }
@@ -256,14 +222,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/Call"
+                  "$ref": "#/components/schemas/Assistant"
                 }
               }
             }
           }
         },
         "tags": [
-          "Calls"
+          "Assistants"
         ],
         "security": [
           {
@@ -272,8 +238,8 @@
         ]
       },
       "delete": {
-        "operationId": "CallController_deleteCallData",
-        "summary": "Delete Call Data",
+        "operationId": "AssistantController_remove",
+        "summary": "Delete Assistant",
         "parameters": [
           {
             "name": "id",
@@ -290,14 +256,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/Call"
+                  "$ref": "#/components/schemas/Assistant"
                 }
               }
             }
           }
         },
         "tags": [
-          "Calls"
+          "Assistants"
         ],
         "security": [
           {
@@ -306,17 +272,17 @@
         ]
       }
     },
-    "/assistant": {
+    "/squad": {
       "post": {
-        "operationId": "AssistantController_create",
-        "summary": "Create Assistant",
+        "operationId": "SquadController_create",
+        "summary": "Create Squad",
         "parameters": [],
         "requestBody": {
           "required": true,
           "content": {
             "application/json": {
               "schema": {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
+                "$ref": "#/components/schemas/CreateSquadDTO"
               }
             }
           }
@@ -327,14 +293,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/Assistant"
+                  "$ref": "#/components/schemas/Squad"
                 }
               }
             }
           }
         },
         "tags": [
-          "Assistants"
+          "Squads"
         ],
         "security": [
           {
@@ -343,8 +309,8 @@
         ]
       },
       "get": {
-        "operationId": "AssistantController_findAll",
-        "summary": "List Assistants",
+        "operationId": "SquadController_findAll",
+        "summary": "List Squads",
         "parameters": [
           {
             "name": "limit",
@@ -446,7 +412,7 @@
                 "schema": {
                   "type": "array",
                   "items": {
-                    "$ref": "#/components/schemas/Assistant"
+                    "$ref": "#/components/schemas/Squad"
                   }
                 }
               }
@@ -454,7 +420,7 @@
           }
         },
         "tags": [
-          "Assistants"
+          "Squads"
         ],
         "security": [
           {
@@ -463,10 +429,10 @@
         ]
       }
     },
-    "/assistant/{id}": {
+    "/squad/{id}": {
       "get": {
-        "operationId": "AssistantController_findOne",
-        "summary": "Get Assistant",
+        "operationId": "SquadController_findOne",
+        "summary": "Get Squad",
         "parameters": [
           {
             "name": "id",
@@ -483,14 +449,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/Assistant"
+                  "$ref": "#/components/schemas/Squad"
                 }
               }
             }
           }
         },
         "tags": [
-          "Assistants"
+          "Squads"
         ],
         "security": [
           {
@@ -499,8 +465,8 @@
         ]
       },
       "patch": {
-        "operationId": "AssistantController_update",
-        "summary": "Update Assistant",
+        "operationId": "SquadController_update",
+        "summary": "Update Squad",
         "parameters": [
           {
             "name": "id",
@@ -516,7 +482,7 @@
           "content": {
             "application/json": {
               "schema": {
-                "$ref": "#/components/schemas/UpdateAssistantDTO"
+                "$ref": "#/components/schemas/UpdateSquadDTO"
               }
             }
           }
@@ -527,14 +493,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/Assistant"
+                  "$ref": "#/components/schemas/Squad"
                 }
               }
             }
           }
         },
         "tags": [
-          "Assistants"
+          "Squads"
         ],
         "security": [
           {
@@ -543,8 +509,8 @@
         ]
       },
       "delete": {
-        "operationId": "AssistantController_remove",
-        "summary": "Delete Assistant",
+        "operationId": "SquadController_remove",
+        "summary": "Delete Squad",
         "parameters": [
           {
             "name": "id",
@@ -561,14 +527,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/Assistant"
+                  "$ref": "#/components/schemas/Squad"
                 }
               }
             }
           }
         },
         "tags": [
-          "Assistants"
+          "Squads"
         ],
         "security": [
           {
@@ -577,48 +543,17 @@
         ]
       }
     },
-    "/phone-number": {
+    "/call": {
       "post": {
-        "operationId": "PhoneNumberController_create",
-        "summary": "Create Phone Number",
+        "operationId": "CallController_create",
+        "summary": "Create Call",
         "parameters": [],
         "requestBody": {
           "required": true,
           "content": {
             "application/json": {
               "schema": {
-                "oneOf": [
-                  {
-                    "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
-                    "title": "ByoPhoneNumber"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
-                    "title": "TwilioPhoneNumber"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
-                    "title": "VonagePhoneNumber"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
-                    "title": "VapiPhoneNumber"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
-                    "title": "TelnyxPhoneNumber"
-                  }
-                ],
-                "discriminator": {
-                  "propertyName": "provider",
-                  "mapping": {
-                    "byo-phone-number": "#/components/schemas/CreateByoPhoneNumberDTO",
-                    "twilio": "#/components/schemas/CreateTwilioPhoneNumberDTO",
-                    "vonage": "#/components/schemas/CreateVonagePhoneNumberDTO",
-                    "vapi": "#/components/schemas/CreateVapiPhoneNumberDTO",
-                    "telnyx": "#/components/schemas/CreateTelnyxPhoneNumberDTO"
-                  }
-                }
+                "$ref": "#/components/schemas/CreateCallDTO"
               }
             }
           }
@@ -629,46 +564,21 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "title": "PhoneNumber",
                   "oneOf": [
                     {
-                      "$ref": "#/components/schemas/ByoPhoneNumber",
-                      "title": "ByoPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TwilioPhoneNumber",
-                      "title": "TwilioPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/VonagePhoneNumber",
-                      "title": "VonagePhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/VapiPhoneNumber",
-                      "title": "VapiPhoneNumber"
+                      "$ref": "#/components/schemas/Call"
                     },
                     {
-                      "$ref": "#/components/schemas/TelnyxPhoneNumber",
-                      "title": "TelnyxPhoneNumber"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "provider",
-                    "mapping": {
-                      "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
-                      "twilio": "#/components/schemas/TwilioPhoneNumber",
-                      "vonage": "#/components/schemas/VonagePhoneNumber",
-                      "vapi": "#/components/schemas/VapiPhoneNumber",
-                      "telnyx": "#/components/schemas/TelnyxPhoneNumber"
+                      "$ref": "#/components/schemas/CallBatchResponse"
                     }
-                  }
+                  ]
                 }
               }
             }
           }
         },
         "tags": [
-          "Phone Numbers"
+          "Calls"
         ],
         "security": [
           {
@@ -677,9 +587,36 @@
         ]
       },
       "get": {
-        "operationId": "PhoneNumberController_findAll",
-        "summary": "List Phone Numbers",
+        "operationId": "CallController_findAll",
+        "summary": "List Calls",
         "parameters": [
+          {
+            "name": "id",
+            "required": false,
+            "in": "query",
+            "description": "This is the unique identifier for the call.",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "name": "assistantId",
+            "required": false,
+            "in": "query",
+            "description": "This will return calls with the specified assistantId.",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "name": "phoneNumberId",
+            "required": false,
+            "in": "query",
+            "description": "This is the phone number that will be used for the call. To use a transient number, use `phoneNumber` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "schema": {
+              "type": "string"
+            }
+          },
           {
             "name": "limit",
             "required": false,
@@ -780,39 +717,7 @@
                 "schema": {
                   "type": "array",
                   "items": {
-                    "title": "PhoneNumber",
-                    "oneOf": [
-                      {
-                        "$ref": "#/components/schemas/ByoPhoneNumber",
-                        "title": "ByoPhoneNumber"
-                      },
-                      {
-                        "$ref": "#/components/schemas/TwilioPhoneNumber",
-                        "title": "TwilioPhoneNumber"
-                      },
-                      {
-                        "$ref": "#/components/schemas/VonagePhoneNumber",
-                        "title": "VonagePhoneNumber"
-                      },
-                      {
-                        "$ref": "#/components/schemas/VapiPhoneNumber",
-                        "title": "VapiPhoneNumber"
-                      },
-                      {
-                        "$ref": "#/components/schemas/TelnyxPhoneNumber",
-                        "title": "TelnyxPhoneNumber"
-                      }
-                    ],
-                    "discriminator": {
-                      "propertyName": "provider",
-                      "mapping": {
-                        "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
-                        "twilio": "#/components/schemas/TwilioPhoneNumber",
-                        "vonage": "#/components/schemas/VonagePhoneNumber",
-                        "vapi": "#/components/schemas/VapiPhoneNumber",
-                        "telnyx": "#/components/schemas/TelnyxPhoneNumber"
-                      }
-                    }
+                    "$ref": "#/components/schemas/Call"
                   }
                 }
               }
@@ -820,7 +725,7 @@
           }
         },
         "tags": [
-          "Phone Numbers"
+          "Calls"
         ],
         "security": [
           {
@@ -829,10 +734,10 @@
         ]
       }
     },
-    "/phone-number/{id}": {
+    "/call/{id}": {
       "get": {
-        "operationId": "PhoneNumberController_findOne",
-        "summary": "Get Phone Number",
+        "operationId": "CallController_findOne",
+        "summary": "Get Call",
         "parameters": [
           {
             "name": "id",
@@ -849,46 +754,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "title": "PhoneNumber",
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/ByoPhoneNumber",
-                      "title": "ByoPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TwilioPhoneNumber",
-                      "title": "TwilioPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/VonagePhoneNumber",
-                      "title": "VonagePhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/VapiPhoneNumber",
-                      "title": "VapiPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TelnyxPhoneNumber",
-                      "title": "TelnyxPhoneNumber"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "provider",
-                    "mapping": {
-                      "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
-                      "twilio": "#/components/schemas/TwilioPhoneNumber",
-                      "vonage": "#/components/schemas/VonagePhoneNumber",
-                      "vapi": "#/components/schemas/VapiPhoneNumber",
-                      "telnyx": "#/components/schemas/TelnyxPhoneNumber"
-                    }
-                  }
+                  "$ref": "#/components/schemas/Call"
                 }
               }
             }
           }
         },
         "tags": [
-          "Phone Numbers"
+          "Calls"
         ],
         "security": [
           {
@@ -897,8 +770,8 @@
         ]
       },
       "patch": {
-        "operationId": "PhoneNumberController_update",
-        "summary": "Update Phone Number",
+        "operationId": "CallController_update",
+        "summary": "Update Call",
         "parameters": [
           {
             "name": "id",
@@ -914,38 +787,7 @@
           "content": {
             "application/json": {
               "schema": {
-                "oneOf": [
-                  {
-                    "$ref": "#/components/schemas/UpdateByoPhoneNumberDTO",
-                    "title": "ByoPhoneNumber"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateTwilioPhoneNumberDTO",
-                    "title": "TwilioPhoneNumber"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateVonagePhoneNumberDTO",
-                    "title": "VonagePhoneNumber"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateVapiPhoneNumberDTO",
-                    "title": "VapiPhoneNumber"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateTelnyxPhoneNumberDTO",
-                    "title": "TelnyxPhoneNumber"
-                  }
-                ],
-                "discriminator": {
-                  "propertyName": "provider",
-                  "mapping": {
-                    "byo-phone-number": "#/components/schemas/UpdateByoPhoneNumberDTO",
-                    "twilio": "#/components/schemas/UpdateTwilioPhoneNumberDTO",
-                    "vonage": "#/components/schemas/UpdateVonagePhoneNumberDTO",
-                    "vapi": "#/components/schemas/UpdateVapiPhoneNumberDTO",
-                    "telnyx": "#/components/schemas/UpdateTelnyxPhoneNumberDTO"
-                  }
-                }
+                "$ref": "#/components/schemas/UpdateCallDTO"
               }
             }
           }
@@ -956,46 +798,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "title": "PhoneNumber",
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/ByoPhoneNumber",
-                      "title": "ByoPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TwilioPhoneNumber",
-                      "title": "TwilioPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/VonagePhoneNumber",
-                      "title": "VonagePhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/VapiPhoneNumber",
-                      "title": "VapiPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TelnyxPhoneNumber",
-                      "title": "TelnyxPhoneNumber"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "provider",
-                    "mapping": {
-                      "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
-                      "twilio": "#/components/schemas/TwilioPhoneNumber",
-                      "vonage": "#/components/schemas/VonagePhoneNumber",
-                      "vapi": "#/components/schemas/VapiPhoneNumber",
-                      "telnyx": "#/components/schemas/TelnyxPhoneNumber"
-                    }
-                  }
+                  "$ref": "#/components/schemas/Call"
                 }
               }
             }
           }
         },
         "tags": [
-          "Phone Numbers"
+          "Calls"
         ],
         "security": [
           {
@@ -1004,64 +814,33 @@
         ]
       },
       "delete": {
-        "operationId": "PhoneNumberController_remove",
-        "summary": "Delete Phone Number",
-        "parameters": [
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
+        "operationId": "CallController_deleteCallData",
+        "summary": "Delete Call",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/DeleteCallDTO"
+              }
             }
           }
-        ],
+        },
         "responses": {
           "200": {
             "description": "",
             "content": {
               "application/json": {
                 "schema": {
-                  "title": "PhoneNumber",
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/ByoPhoneNumber",
-                      "title": "ByoPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TwilioPhoneNumber",
-                      "title": "TwilioPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/VonagePhoneNumber",
-                      "title": "VonagePhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/VapiPhoneNumber",
-                      "title": "VapiPhoneNumber"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TelnyxPhoneNumber",
-                      "title": "TelnyxPhoneNumber"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "provider",
-                    "mapping": {
-                      "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
-                      "twilio": "#/components/schemas/TwilioPhoneNumber",
-                      "vonage": "#/components/schemas/VonagePhoneNumber",
-                      "vapi": "#/components/schemas/VapiPhoneNumber",
-                      "telnyx": "#/components/schemas/TelnyxPhoneNumber"
-                    }
-                  }
+                  "$ref": "#/components/schemas/Call"
                 }
               }
             }
           }
         },
         "tags": [
-          "Phone Numbers"
+          "Calls"
         ],
         "security": [
           {
@@ -1070,228 +849,103 @@
         ]
       }
     },
-    "/tool": {
-      "post": {
-        "operationId": "ToolController_create",
-        "summary": "Create Tool",
-        "parameters": [],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "application/json": {
-              "schema": {
-                "oneOf": [
-                  {
-                    "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                    "title": "DtmfTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                    "title": "EndCallTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                    "title": "FunctionTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateGhlToolDTO",
-                    "title": "GhlTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateMakeToolDTO",
-                    "title": "MakeTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                    "title": "TransferCallTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateOutputToolDTO",
-                    "title": "OutputTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateBashToolDTO",
-                    "title": "BashTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateComputerToolDTO",
-                    "title": "ComputerTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateTextEditorToolDTO",
-                    "title": "TextEditorTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateQueryToolDTO",
-                    "title": "QueryTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                    "title": "GoogleCalendarCreateEventTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                    "title": "GoogleSheetsRowAppendTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                    "title": "GoogleCalendarCheckAvailabilityTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                    "title": "SlackSendMessageTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateSmsSendToolDTO",
-                    "title": "SmsSendTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateMcpToolDTO",
-                    "title": "McpTool"
-                  }
-                ],
-                "discriminator": {
-                  "propertyName": "type",
-                  "mapping": {
-                    "dtmf": "#/components/schemas/CreateDtmfToolDTO",
-                    "endCall": "#/components/schemas/CreateEndCallToolDTO",
-                    "function": "#/components/schemas/CreateFunctionToolDTO",
-                    "ghl": "#/components/schemas/CreateGhlToolDTO",
-                    "make": "#/components/schemas/CreateMakeToolDTO",
-                    "transferCall": "#/components/schemas/CreateTransferCallToolDTO",
-                    "output": "#/components/schemas/CreateOutputToolDTO",
-                    "bash": "#/components/schemas/CreateBashToolDTO",
-                    "computer": "#/components/schemas/CreateComputerToolDTO",
-                    "textEditor": "#/components/schemas/CreateTextEditorToolDTO",
-                    "query": "#/components/schemas/CreateQueryToolDTO",
-                    "google.calendar.event.create": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                    "google.sheets.row.append": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                    "google.calendar.availability.check": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                    "slack.message.send": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                    "sms": "#/components/schemas/CreateSmsSendToolDTO",
-                    "mcp": "#/components/schemas/CreateMcpToolDTO"
-                  }
-                }
-              }
+    "/chat": {
+      "get": {
+        "operationId": "ChatController_listChats",
+        "summary": "List Chats",
+        "parameters": [
+          {
+            "name": "id",
+            "required": false,
+            "in": "query",
+            "description": "This is the unique identifier for the chat to filter by.",
+            "schema": {
+              "type": "string"
             }
-          }
-        },
-        "responses": {
-          "201": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/DtmfTool",
-                      "title": "DtmfTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/EndCallTool",
-                      "title": "EndCallTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/FunctionTool",
-                      "title": "FunctionTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GhlTool",
-                      "title": "GhlTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/MakeTool",
-                      "title": "MakeTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TransferCallTool",
-                      "title": "TransferCallTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/OutputTool",
-                      "title": "OutputTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/BashTool",
-                      "title": "BashTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/ComputerTool",
-                      "title": "ComputerTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TextEditorTool",
-                      "title": "TextEditorTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/QueryTool",
-                      "title": "QueryTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
-                      "title": "GoogleCalendarCreateEventTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
-                      "title": "GoogleSheetsRowAppendTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                      "title": "GoogleCalendarCheckAvailabilityTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/SlackSendMessageTool",
-                      "title": "SlackSendMessageTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/SmsSendTool",
-                      "title": "SmsSendTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/McpTool",
-                      "title": "McpTool"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "type",
-                    "mapping": {
-                      "dtmf": "#/components/schemas/DtmfTool",
-                      "endCall": "#/components/schemas/EndCallTool",
-                      "function": "#/components/schemas/FunctionTool",
-                      "ghl": "#/components/schemas/GhlTool",
-                      "make": "#/components/schemas/MakeTool",
-                      "transferCall": "#/components/schemas/TransferCallTool",
-                      "output": "#/components/schemas/OutputTool",
-                      "bash": "#/components/schemas/BashTool",
-                      "computer": "#/components/schemas/ComputerTool",
-                      "textEditor": "#/components/schemas/TextEditorTool",
-                      "query": "#/components/schemas/QueryTool",
-                      "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
-                      "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
-                      "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                      "slack.message.send": "#/components/schemas/SlackSendMessageTool",
-                      "sms": "#/components/schemas/SmsSendTool",
-                      "mcp": "#/components/schemas/McpTool"
-                    }
-                  }
-                }
-              }
+          },
+          {
+            "name": "assistantId",
+            "required": false,
+            "in": "query",
+            "description": "This is the unique identifier for the assistant that will be used for the chat.",
+            "schema": {
+              "type": "string"
             }
-          }
-        },
-        "tags": [
-          "Tools"
-        ],
-        "security": [
+          },
           {
-            "bearer": []
-          }
-        ]
-      },
-      "get": {
-        "operationId": "ToolController_findAll",
-        "summary": "List Tools",
-        "parameters": [
+            "name": "assistantIdAny",
+            "required": false,
+            "in": "query",
+            "description": "Filter by multiple assistant IDs. Provide as comma-separated values.",
+            "schema": {
+              "example": "assistant-1,assistant-2,assistant-3",
+              "type": "string"
+            }
+          },
+          {
+            "name": "squadId",
+            "required": false,
+            "in": "query",
+            "description": "This is the unique identifier for the squad that will be used for the chat.",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "name": "sessionId",
+            "required": false,
+            "in": "query",
+            "description": "This is the unique identifier for the session that will be used for the chat.",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "name": "previousChatId",
+            "required": false,
+            "in": "query",
+            "description": "This is the unique identifier for the previous chat to filter by.",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "name": "page",
+            "required": false,
+            "in": "query",
+            "description": "This is the page number to return. Defaults to 1.",
+            "schema": {
+              "minimum": 1,
+              "type": "number"
+            }
+          },
+          {
+            "name": "sortOrder",
+            "required": false,
+            "in": "query",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "schema": {
+              "enum": [
+                "ASC",
+                "DESC"
+              ],
+              "type": "string"
+            }
+          },
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
+          },
           {
             "name": "limit",
             "required": false,
@@ -1390,108 +1044,67 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "type": "array",
-                  "items": {
-                    "oneOf": [
-                      {
-                        "$ref": "#/components/schemas/DtmfTool",
-                        "title": "DtmfTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/EndCallTool",
-                        "title": "EndCallTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/FunctionTool",
-                        "title": "FunctionTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/GhlTool",
-                        "title": "GhlTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/MakeTool",
-                        "title": "MakeTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/TransferCallTool",
-                        "title": "TransferCallTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/OutputTool",
-                        "title": "OutputTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/BashTool",
-                        "title": "BashTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/ComputerTool",
-                        "title": "ComputerTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/TextEditorTool",
-                        "title": "TextEditorTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/QueryTool",
-                        "title": "QueryTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
-                        "title": "GoogleCalendarCreateEventTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
-                        "title": "GoogleSheetsRowAppendTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                        "title": "GoogleCalendarCheckAvailabilityTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/SlackSendMessageTool",
-                        "title": "SlackSendMessageTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/SmsSendTool",
-                        "title": "SmsSendTool"
-                      },
-                      {
-                        "$ref": "#/components/schemas/McpTool",
-                        "title": "McpTool"
-                      }
-                    ],
-                    "discriminator": {
-                      "propertyName": "type",
-                      "mapping": {
-                        "dtmf": "#/components/schemas/DtmfTool",
-                        "endCall": "#/components/schemas/EndCallTool",
-                        "function": "#/components/schemas/FunctionTool",
-                        "ghl": "#/components/schemas/GhlTool",
-                        "make": "#/components/schemas/MakeTool",
-                        "transferCall": "#/components/schemas/TransferCallTool",
-                        "output": "#/components/schemas/OutputTool",
-                        "bash": "#/components/schemas/BashTool",
-                        "computer": "#/components/schemas/ComputerTool",
-                        "textEditor": "#/components/schemas/TextEditorTool",
-                        "query": "#/components/schemas/QueryTool",
-                        "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
-                        "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
-                        "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                        "slack.message.send": "#/components/schemas/SlackSendMessageTool",
-                        "sms": "#/components/schemas/SmsSendTool",
-                        "mcp": "#/components/schemas/McpTool"
-                      }
+                  "$ref": "#/components/schemas/ChatPaginatedResponse"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Chats"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      },
+      "post": {
+        "operationId": "ChatController_createChat",
+        "summary": "Create Chat",
+        "description": "Creates a new chat with optional SMS delivery via transport field. Requires at least one of: assistantId/assistant, sessionId, or previousChatId. Note: sessionId and previousChatId are mutually exclusive. Transport field enables SMS delivery with two modes: (1) New conversation - provide transport.phoneNumberId and transport.customer to create a new session, (2) Existing conversation - provide sessionId to use existing session data. Cannot specify both sessionId and transport fields together. The transport.useLLMGeneratedMessageForOutbound flag controls whether input is processed by LLM (true, default) or forwarded directly as SMS (false).",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/CreateChatDTO"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "Chat response - either non-streaming chat or streaming",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/Chat"
+                    },
+                    {
+                      "$ref": "#/components/schemas/CreateChatStreamResponse"
                     }
-                  }
+                  ]
+                }
+              }
+            }
+          },
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object"
                 }
               }
             }
           }
         },
         "tags": [
-          "Tools"
+          "Chats"
         ],
         "security": [
           {
@@ -1500,10 +1113,44 @@
         ]
       }
     },
-    "/tool/{id}": {
+    "/chat/{id}": {
       "get": {
-        "operationId": "ToolController_findOne",
-        "summary": "Get Tool",
+        "operationId": "ChatController_getChat",
+        "summary": "Get Chat",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Chat"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Chats"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      },
+      "delete": {
+        "operationId": "ChatController_deleteChat",
+        "summary": "Delete Chat",
         "parameters": [
           {
             "name": "id",
@@ -1517,108 +1164,117 @@
         "responses": {
           "200": {
             "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Chat"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Chats"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/chat/responses": {
+      "post": {
+        "operationId": "ChatController_createOpenAIChat",
+        "summary": "Create Chat (OpenAI Compatible)",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/OpenAIResponsesRequest"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "OpenAI Responses API format - either non-streaming or streaming",
             "content": {
               "application/json": {
                 "schema": {
                   "oneOf": [
                     {
-                      "$ref": "#/components/schemas/DtmfTool",
-                      "title": "DtmfTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/EndCallTool",
-                      "title": "EndCallTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/FunctionTool",
-                      "title": "FunctionTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GhlTool",
-                      "title": "GhlTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/MakeTool",
-                      "title": "MakeTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TransferCallTool",
-                      "title": "TransferCallTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/OutputTool",
-                      "title": "OutputTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/BashTool",
-                      "title": "BashTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/ComputerTool",
-                      "title": "ComputerTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TextEditorTool",
-                      "title": "TextEditorTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/QueryTool",
-                      "title": "QueryTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
-                      "title": "GoogleCalendarCreateEventTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
-                      "title": "GoogleSheetsRowAppendTool"
+                      "$ref": "#/components/schemas/ResponseObject"
                     },
                     {
-                      "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                      "title": "GoogleCalendarCheckAvailabilityTool"
+                      "$ref": "#/components/schemas/ResponseTextDeltaEvent"
                     },
                     {
-                      "$ref": "#/components/schemas/SlackSendMessageTool",
-                      "title": "SlackSendMessageTool"
+                      "$ref": "#/components/schemas/ResponseTextDoneEvent"
                     },
                     {
-                      "$ref": "#/components/schemas/SmsSendTool",
-                      "title": "SmsSendTool"
+                      "$ref": "#/components/schemas/ResponseCompletedEvent"
                     },
                     {
-                      "$ref": "#/components/schemas/McpTool",
-                      "title": "McpTool"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "type",
-                    "mapping": {
-                      "dtmf": "#/components/schemas/DtmfTool",
-                      "endCall": "#/components/schemas/EndCallTool",
-                      "function": "#/components/schemas/FunctionTool",
-                      "ghl": "#/components/schemas/GhlTool",
-                      "make": "#/components/schemas/MakeTool",
-                      "transferCall": "#/components/schemas/TransferCallTool",
-                      "output": "#/components/schemas/OutputTool",
-                      "bash": "#/components/schemas/BashTool",
-                      "computer": "#/components/schemas/ComputerTool",
-                      "textEditor": "#/components/schemas/TextEditorTool",
-                      "query": "#/components/schemas/QueryTool",
-                      "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
-                      "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
-                      "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                      "slack.message.send": "#/components/schemas/SlackSendMessageTool",
-                      "sms": "#/components/schemas/SmsSendTool",
-                      "mcp": "#/components/schemas/McpTool"
+                      "$ref": "#/components/schemas/ResponseErrorEvent"
                     }
-                  }
+                  ]
+                }
+              }
+            }
+          },
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object"
                 }
               }
             }
           }
         },
         "tags": [
-          "Tools"
+          "Chats"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/campaign": {
+      "post": {
+        "operationId": "CampaignController_create",
+        "summary": "Create Campaign",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/CreateCampaignDTO"
+              }
+            }
+          }
+        },
+        "responses": {
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Campaign"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Campaigns"
         ],
         "security": [
           {
@@ -1626,418 +1282,174 @@
           }
         ]
       },
-      "patch": {
-        "operationId": "ToolController_update",
-        "summary": "Update Tool",
+      "get": {
+        "operationId": "CampaignController_findAll",
+        "summary": "List Campaigns",
         "parameters": [
           {
             "name": "id",
-            "required": true,
-            "in": "path",
+            "required": false,
+            "in": "query",
             "schema": {
               "type": "string"
             }
-          }
-        ],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "application/json": {
-              "schema": {
-                "oneOf": [
-                  {
-                    "$ref": "#/components/schemas/UpdateDtmfToolDTO",
-                    "title": "DtmfTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateEndCallToolDTO",
-                    "title": "EndCallTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateFunctionToolDTO",
-                    "title": "FunctionTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateGhlToolDTO",
-                    "title": "GhlTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateMakeToolDTO",
-                    "title": "MakeTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateTransferCallToolDTO",
-                    "title": "TransferCallTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateOutputToolDTO",
-                    "title": "OutputTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateBashToolDTO",
-                    "title": "BashTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateComputerToolDTO",
-                    "title": "ComputerTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateTextEditorToolDTO",
-                    "title": "TextEditorTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateQueryToolDTO",
-                    "title": "QueryTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateGoogleCalendarCreateEventToolDTO",
-                    "title": "GoogleCalendarCreateEventTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateGoogleSheetsRowAppendToolDTO",
-                    "title": "GoogleSheetsRowAppendTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateGoogleCalendarCheckAvailabilityToolDTO",
-                    "title": "GoogleCalendarCheckAvailabilityTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateSlackSendMessageToolDTO",
-                    "title": "SlackSendMessageTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateSmsSendToolDTO",
-                    "title": "SmsSendTool"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateMcpToolDTO",
-                    "title": "McpTool"
-                  }
-                ],
-                "discriminator": {
-                  "propertyName": "type",
-                  "mapping": {
-                    "dtmf": "#/components/schemas/UpdateDtmfToolDTO",
-                    "endCall": "#/components/schemas/UpdateEndCallToolDTO",
-                    "function": "#/components/schemas/UpdateFunctionToolDTO",
-                    "ghl": "#/components/schemas/UpdateGhlToolDTO",
-                    "make": "#/components/schemas/UpdateMakeToolDTO",
-                    "transferCall": "#/components/schemas/UpdateTransferCallToolDTO",
-                    "output": "#/components/schemas/UpdateOutputToolDTO",
-                    "bash": "#/components/schemas/UpdateBashToolDTO",
-                    "computer": "#/components/schemas/UpdateComputerToolDTO",
-                    "textEditor": "#/components/schemas/UpdateTextEditorToolDTO",
-                    "query": "#/components/schemas/UpdateQueryToolDTO",
-                    "google.calendar.event.create": "#/components/schemas/UpdateGoogleCalendarCreateEventToolDTO",
-                    "google.sheets.row.append": "#/components/schemas/UpdateGoogleSheetsRowAppendToolDTO",
-                    "google.calendar.availability.check": "#/components/schemas/UpdateGoogleCalendarCheckAvailabilityToolDTO",
-                    "slack.message.send": "#/components/schemas/UpdateSlackSendMessageToolDTO",
-                    "sms": "#/components/schemas/UpdateSmsSendToolDTO",
-                    "mcp": "#/components/schemas/UpdateMcpToolDTO"
-                  }
-                }
-              }
+          },
+          {
+            "name": "status",
+            "required": false,
+            "in": "query",
+            "schema": {
+              "enum": [
+                "scheduled",
+                "in-progress",
+                "ended"
+              ],
+              "type": "string"
             }
-          }
-        },
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/DtmfTool",
-                      "title": "DtmfTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/EndCallTool",
-                      "title": "EndCallTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/FunctionTool",
-                      "title": "FunctionTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GhlTool",
-                      "title": "GhlTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/MakeTool",
-                      "title": "MakeTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TransferCallTool",
-                      "title": "TransferCallTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/OutputTool",
-                      "title": "OutputTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/BashTool",
-                      "title": "BashTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/ComputerTool",
-                      "title": "ComputerTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TextEditorTool",
-                      "title": "TextEditorTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/QueryTool",
-                      "title": "QueryTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
-                      "title": "GoogleCalendarCreateEventTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
-                      "title": "GoogleSheetsRowAppendTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                      "title": "GoogleCalendarCheckAvailabilityTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/SlackSendMessageTool",
-                      "title": "SlackSendMessageTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/SmsSendTool",
-                      "title": "SmsSendTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/McpTool",
-                      "title": "McpTool"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "type",
-                    "mapping": {
-                      "dtmf": "#/components/schemas/DtmfTool",
-                      "endCall": "#/components/schemas/EndCallTool",
-                      "function": "#/components/schemas/FunctionTool",
-                      "ghl": "#/components/schemas/GhlTool",
-                      "make": "#/components/schemas/MakeTool",
-                      "transferCall": "#/components/schemas/TransferCallTool",
-                      "output": "#/components/schemas/OutputTool",
-                      "bash": "#/components/schemas/BashTool",
-                      "computer": "#/components/schemas/ComputerTool",
-                      "textEditor": "#/components/schemas/TextEditorTool",
-                      "query": "#/components/schemas/QueryTool",
-                      "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
-                      "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
-                      "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                      "slack.message.send": "#/components/schemas/SlackSendMessageTool",
-                      "sms": "#/components/schemas/SmsSendTool",
-                      "mcp": "#/components/schemas/McpTool"
-                    }
-                  }
-                }
-              }
+          },
+          {
+            "name": "page",
+            "required": false,
+            "in": "query",
+            "description": "This is the page number to return. Defaults to 1.",
+            "schema": {
+              "minimum": 1,
+              "type": "number"
             }
-          }
-        },
-        "tags": [
-          "Tools"
-        ],
-        "security": [
+          },
           {
-            "bearer": []
-          }
-        ]
-      },
-      "delete": {
-        "operationId": "ToolController_remove",
-        "summary": "Delete Tool",
-        "parameters": [
+            "name": "sortOrder",
+            "required": false,
+            "in": "query",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "schema": {
+              "enum": [
+                "ASC",
+                "DESC"
+              ],
+              "type": "string"
+            }
+          },
           {
-            "name": "id",
-            "required": true,
-            "in": "path",
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
             "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
               "type": "string"
             }
-          }
-        ],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/DtmfTool",
-                      "title": "DtmfTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/EndCallTool",
-                      "title": "EndCallTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/FunctionTool",
-                      "title": "FunctionTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GhlTool",
-                      "title": "GhlTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/MakeTool",
-                      "title": "MakeTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TransferCallTool",
-                      "title": "TransferCallTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/OutputTool",
-                      "title": "OutputTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/BashTool",
-                      "title": "BashTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/ComputerTool",
-                      "title": "ComputerTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/TextEditorTool",
-                      "title": "TextEditorTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/QueryTool",
-                      "title": "QueryTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
-                      "title": "GoogleCalendarCreateEventTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
-                      "title": "GoogleSheetsRowAppendTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                      "title": "GoogleCalendarCheckAvailabilityTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/SlackSendMessageTool",
-                      "title": "SlackSendMessageTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/SmsSendTool",
-                      "title": "SmsSendTool"
-                    },
-                    {
-                      "$ref": "#/components/schemas/McpTool",
-                      "title": "McpTool"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "type",
-                    "mapping": {
-                      "dtmf": "#/components/schemas/DtmfTool",
-                      "endCall": "#/components/schemas/EndCallTool",
-                      "function": "#/components/schemas/FunctionTool",
-                      "ghl": "#/components/schemas/GhlTool",
-                      "make": "#/components/schemas/MakeTool",
-                      "transferCall": "#/components/schemas/TransferCallTool",
-                      "output": "#/components/schemas/OutputTool",
-                      "bash": "#/components/schemas/BashTool",
-                      "computer": "#/components/schemas/ComputerTool",
-                      "textEditor": "#/components/schemas/TextEditorTool",
-                      "query": "#/components/schemas/QueryTool",
-                      "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
-                      "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
-                      "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
-                      "slack.message.send": "#/components/schemas/SlackSendMessageTool",
-                      "sms": "#/components/schemas/SmsSendTool",
-                      "mcp": "#/components/schemas/McpTool"
-                    }
-                  }
-                }
-              }
+          },
+          {
+            "name": "limit",
+            "required": false,
+            "in": "query",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "schema": {
+              "minimum": 0,
+              "maximum": 1000,
+              "type": "number"
             }
-          }
-        },
-        "tags": [
-          "Tools"
-        ],
-        "security": [
+          },
           {
-            "bearer": []
-          }
-        ]
-      }
-    },
-    "/file": {
-      "post": {
-        "operationId": "FileController_create",
-        "summary": "Upload File",
-        "parameters": [],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "multipart/form-data": {
-              "schema": {
-                "$ref": "#/components/schemas/CreateFileDTO"
-              }
+            "name": "createdAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
             }
-          }
-        },
-        "responses": {
-          "201": {
-            "description": "File uploaded successfully",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/File"
-                }
-              }
+          },
+          {
+            "name": "createdAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
             }
           },
-          "400": {
-            "description": "Invalid file"
-          }
-        },
-        "tags": [
-          "Files"
-        ],
-        "security": [
           {
-            "bearer": []
+            "name": "createdAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "createdAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           }
-        ]
-      },
-      "get": {
-        "operationId": "FileController_findAll",
-        "summary": "List Files",
-        "parameters": [],
+        ],
         "responses": {
           "200": {
             "description": "",
             "content": {
               "application/json": {
                 "schema": {
-                  "type": "array",
-                  "items": {
-                    "$ref": "#/components/schemas/File"
-                  }
+                  "$ref": "#/components/schemas/CampaignPaginatedResponse"
                 }
               }
             }
           }
         },
         "tags": [
-          "Files"
+          "Campaigns"
         ],
         "security": [
           {
@@ -2046,10 +1458,10 @@
         ]
       }
     },
-    "/file/{id}": {
+    "/campaign/{id}": {
       "get": {
-        "operationId": "FileController_findOne",
-        "summary": "Get File",
+        "operationId": "CampaignController_findOne",
+        "summary": "Get Campaign",
         "parameters": [
           {
             "name": "id",
@@ -2066,14 +1478,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/File"
+                  "$ref": "#/components/schemas/Campaign"
                 }
               }
             }
           }
         },
         "tags": [
-          "Files"
+          "Campaigns"
         ],
         "security": [
           {
@@ -2082,8 +1494,8 @@
         ]
       },
       "patch": {
-        "operationId": "FileController_update",
-        "summary": "Update File",
+        "operationId": "CampaignController_update",
+        "summary": "Update Campaign",
         "parameters": [
           {
             "name": "id",
@@ -2099,7 +1511,7 @@
           "content": {
             "application/json": {
               "schema": {
-                "$ref": "#/components/schemas/UpdateFileDTO"
+                "$ref": "#/components/schemas/UpdateCampaignDTO"
               }
             }
           }
@@ -2110,14 +1522,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/File"
+                  "$ref": "#/components/schemas/Campaign"
                 }
               }
             }
           }
         },
         "tags": [
-          "Files"
+          "Campaigns"
         ],
         "security": [
           {
@@ -2126,8 +1538,8 @@
         ]
       },
       "delete": {
-        "operationId": "FileController_remove",
-        "summary": "Delete File",
+        "operationId": "CampaignController_remove",
+        "summary": "Delete Campaign",
         "parameters": [
           {
             "name": "id",
@@ -2144,14 +1556,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/File"
+                  "$ref": "#/components/schemas/Campaign"
                 }
               }
             }
           }
         },
         "tags": [
-          "Files"
+          "Campaigns"
         ],
         "security": [
           {
@@ -2160,33 +1572,17 @@
         ]
       }
     },
-    "/knowledge-base": {
+    "/session": {
       "post": {
-        "operationId": "KnowledgeBaseController_create",
-        "summary": "Create Knowledge Base",
+        "operationId": "SessionController_create",
+        "summary": "Create Session",
         "parameters": [],
         "requestBody": {
           "required": true,
           "content": {
             "application/json": {
               "schema": {
-                "oneOf": [
-                  {
-                    "$ref": "#/components/schemas/CreateTrieveKnowledgeBaseDTO",
-                    "title": "TrieveKnowledgeBaseDTO"
-                  },
-                  {
-                    "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                    "title": "CustomKnowledgeBaseDTO"
-                  }
-                ],
-                "discriminator": {
-                  "propertyName": "provider",
-                  "mapping": {
-                    "trieve": "#/components/schemas/CreateTrieveKnowledgeBaseDTO",
-                    "custom-knowledge-base": "#/components/schemas/CreateCustomKnowledgeBaseDTO"
-                  }
-                }
+                "$ref": "#/components/schemas/CreateSessionDTO"
               }
             }
           }
@@ -2197,30 +1593,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/TrieveKnowledgeBase",
-                      "title": "TrieveKnowledgeBase"
-                    },
-                    {
-                      "$ref": "#/components/schemas/CustomKnowledgeBase",
-                      "title": "CustomKnowledgeBase"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "provider",
-                    "mapping": {
-                      "trieve": "#/components/schemas/TrieveKnowledgeBase",
-                      "custom-knowledge-base": "#/components/schemas/CustomKnowledgeBase"
-                    }
-                  }
+                  "$ref": "#/components/schemas/Session"
                 }
               }
             }
           }
         },
         "tags": [
-          "Knowledge Base"
+          "Sessions"
         ],
         "security": [
           {
@@ -2229,37 +1609,243 @@
         ]
       },
       "get": {
-        "operationId": "KnowledgeBaseController_findAll",
-        "summary": "List Knowledge Bases",
+        "operationId": "SessionController_findAllPaginated",
+        "summary": "List Sessions",
         "parameters": [
           {
-            "name": "limit",
+            "name": "id",
             "required": false,
             "in": "query",
-            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "description": "This is the unique identifier for the session to filter by.",
             "schema": {
-              "minimum": 0,
-              "maximum": 1000,
-              "type": "number"
+              "type": "string"
             }
           },
           {
-            "name": "createdAtGt",
+            "name": "name",
             "required": false,
             "in": "query",
-            "description": "This will return items where the createdAt is greater than the specified value.",
+            "description": "This is the name of the session to filter by.",
             "schema": {
-              "format": "date-time",
               "type": "string"
             }
           },
           {
-            "name": "createdAtLt",
+            "name": "assistantId",
             "required": false,
             "in": "query",
-            "description": "This will return items where the createdAt is less than the specified value.",
+            "description": "This is the ID of the assistant to filter sessions by.",
             "schema": {
-              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "assistantIdAny",
+            "required": false,
+            "in": "query",
+            "description": "Filter by multiple assistant IDs. Provide as comma-separated values.",
+            "schema": {
+              "example": "assistant-1,assistant-2,assistant-3",
+              "type": "string"
+            }
+          },
+          {
+            "name": "squadId",
+            "required": false,
+            "in": "query",
+            "description": "This is the ID of the squad to filter sessions by.",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "name": "workflowId",
+            "required": false,
+            "in": "query",
+            "description": "This is the ID of the workflow to filter sessions by.",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "required": false,
+            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
+            "name": "numberE164CheckEnabled",
+            "in": "query",
+            "schema": {
+              "default": true,
+              "type": "boolean"
+            }
+          },
+          {
+            "required": false,
+            "description": "This is the extension that will be dialed after the call is answered.",
+            "name": "extension",
+            "in": "query",
+            "schema": {
+              "maxLength": 10,
+              "example": null,
+              "type": "string"
+            }
+          },
+          {
+            "name": "assistantOverrides",
+            "required": false,
+            "description": "These are the overrides for the assistant's settings and template variables specific to this customer.\nThis allows customization of the assistant's behavior for individual customers in batch calls.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ],
+            "in": "query",
+            "schema": {}
+          },
+          {
+            "required": false,
+            "description": "This is the number of the customer.",
+            "name": "number",
+            "in": "query",
+            "schema": {
+              "minLength": 3,
+              "maxLength": 40,
+              "type": "string"
+            }
+          },
+          {
+            "required": false,
+            "description": "This is the SIP URI of the customer.",
+            "name": "sipUri",
+            "in": "query",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "required": false,
+            "description": "This is the name of the customer. This is just for your own reference.\n\nFor SIP inbound calls, this is extracted from the `From` SIP header with format `\"Display Name\" <sip:username@domain>`.",
+            "name": "name",
+            "in": "query",
+            "schema": {
+              "maxLength": 40,
+              "type": "string"
+            }
+          },
+          {
+            "required": false,
+            "description": "This is the email of the customer.",
+            "name": "email",
+            "in": "query",
+            "schema": {
+              "maxLength": 40,
+              "type": "string"
+            }
+          },
+          {
+            "required": false,
+            "description": "This is the external ID of the customer.",
+            "name": "externalId",
+            "in": "query",
+            "schema": {
+              "maxLength": 40,
+              "type": "string"
+            }
+          },
+          {
+            "name": "customerNumberAny",
+            "required": false,
+            "in": "query",
+            "description": "Filter by any of the specified customer phone numbers (comma-separated).",
+            "schema": {
+              "example": "+1234567890,+0987654321",
+              "type": "string"
+            }
+          },
+          {
+            "name": "phoneNumberId",
+            "required": false,
+            "in": "query",
+            "description": "This will return sessions with the specified phoneNumberId.",
+            "schema": {
+              "type": "string"
+            }
+          },
+          {
+            "name": "phoneNumberIdAny",
+            "required": false,
+            "in": "query",
+            "description": "This will return sessions with any of the specified phoneNumberIds.",
+            "schema": {
+              "type": "array",
+              "items": {
+                "type": "string"
+              }
+            }
+          },
+          {
+            "name": "page",
+            "required": false,
+            "in": "query",
+            "description": "This is the page number to return. Defaults to 1.",
+            "schema": {
+              "minimum": 1,
+              "type": "number"
+            }
+          },
+          {
+            "name": "sortOrder",
+            "required": false,
+            "in": "query",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "schema": {
+              "enum": [
+                "ASC",
+                "DESC"
+              ],
+              "type": "string"
+            }
+          },
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
+          },
+          {
+            "name": "limit",
+            "required": false,
+            "in": "query",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "schema": {
+              "minimum": 0,
+              "maximum": 1000,
+              "type": "number"
+            }
+          },
+          {
+            "name": "createdAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "createdAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
               "type": "string"
             }
           },
@@ -2330,33 +1916,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "type": "array",
-                  "items": {
-                    "oneOf": [
-                      {
-                        "$ref": "#/components/schemas/TrieveKnowledgeBase",
-                        "title": "TrieveKnowledgeBase"
-                      },
-                      {
-                        "$ref": "#/components/schemas/CustomKnowledgeBase",
-                        "title": "CustomKnowledgeBase"
-                      }
-                    ],
-                    "discriminator": {
-                      "propertyName": "provider",
-                      "mapping": {
-                        "trieve": "#/components/schemas/TrieveKnowledgeBase",
-                        "custom-knowledge-base": "#/components/schemas/CustomKnowledgeBase"
-                      }
-                    }
-                  }
+                  "$ref": "#/components/schemas/SessionPaginatedResponse"
                 }
               }
             }
           }
         },
         "tags": [
-          "Knowledge Base"
+          "Sessions"
         ],
         "security": [
           {
@@ -2365,10 +1932,10 @@
         ]
       }
     },
-    "/knowledge-base/{id}": {
+    "/session/{id}": {
       "get": {
-        "operationId": "KnowledgeBaseController_findOne",
-        "summary": "Get Knowledge Base",
+        "operationId": "SessionController_findOne",
+        "summary": "Get Session",
         "parameters": [
           {
             "name": "id",
@@ -2385,30 +1952,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/TrieveKnowledgeBase",
-                      "title": "TrieveKnowledgeBase"
-                    },
-                    {
-                      "$ref": "#/components/schemas/CustomKnowledgeBase",
-                      "title": "CustomKnowledgeBase"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "provider",
-                    "mapping": {
-                      "trieve": "#/components/schemas/TrieveKnowledgeBase",
-                      "custom-knowledge-base": "#/components/schemas/CustomKnowledgeBase"
-                    }
-                  }
+                  "$ref": "#/components/schemas/Session"
                 }
               }
             }
           }
         },
         "tags": [
-          "Knowledge Base"
+          "Sessions"
         ],
         "security": [
           {
@@ -2417,8 +1968,8 @@
         ]
       },
       "patch": {
-        "operationId": "KnowledgeBaseController_update",
-        "summary": "Update Knowledge Base",
+        "operationId": "SessionController_update",
+        "summary": "Update Session",
         "parameters": [
           {
             "name": "id",
@@ -2434,23 +1985,7 @@
           "content": {
             "application/json": {
               "schema": {
-                "oneOf": [
-                  {
-                    "$ref": "#/components/schemas/UpdateTrieveKnowledgeBaseDTO",
-                    "title": "UpdateTrieveKnowledgeBaseDTO"
-                  },
-                  {
-                    "$ref": "#/components/schemas/UpdateCustomKnowledgeBaseDTO",
-                    "title": "UpdateCustomKnowledgeBaseDTO"
-                  }
-                ],
-                "discriminator": {
-                  "propertyName": "provider",
-                  "mapping": {
-                    "trieve": "#/components/schemas/UpdateTrieveKnowledgeBaseDTO",
-                    "custom-knowledge-base": "#/components/schemas/UpdateCustomKnowledgeBaseDTO"
-                  }
-                }
+                "$ref": "#/components/schemas/UpdateSessionDTO"
               }
             }
           }
@@ -2461,30 +1996,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/TrieveKnowledgeBase",
-                      "title": "TrieveKnowledgeBase"
-                    },
-                    {
-                      "$ref": "#/components/schemas/CustomKnowledgeBase",
-                      "title": "CustomKnowledgeBase"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "provider",
-                    "mapping": {
-                      "trieve": "#/components/schemas/TrieveKnowledgeBase",
-                      "custom-knowledge-base": "#/components/schemas/CustomKnowledgeBase"
-                    }
-                  }
+                  "$ref": "#/components/schemas/Session"
                 }
               }
             }
           }
         },
         "tags": [
-          "Knowledge Base"
+          "Sessions"
         ],
         "security": [
           {
@@ -2493,8 +2012,8 @@
         ]
       },
       "delete": {
-        "operationId": "KnowledgeBaseController_remove",
-        "summary": "Delete Knowledge Base",
+        "operationId": "SessionController_remove",
+        "summary": "Delete Session",
         "parameters": [
           {
             "name": "id",
@@ -2511,30 +2030,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "oneOf": [
-                    {
-                      "$ref": "#/components/schemas/TrieveKnowledgeBase",
-                      "title": "TrieveKnowledgeBase"
-                    },
-                    {
-                      "$ref": "#/components/schemas/CustomKnowledgeBase",
-                      "title": "CustomKnowledgeBase"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "provider",
-                    "mapping": {
-                      "trieve": "#/components/schemas/TrieveKnowledgeBase",
-                      "custom-knowledge-base": "#/components/schemas/CustomKnowledgeBase"
-                    }
-                  }
+                  "$ref": "#/components/schemas/Session"
                 }
               }
             }
           }
         },
         "tags": [
-          "Knowledge Base"
+          "Sessions"
         ],
         "security": [
           {
@@ -2543,214 +2046,98 @@
         ]
       }
     },
-    "/workflow": {
-      "get": {
-        "operationId": "WorkflowController_findAll",
-        "summary": "Get Workflows",
-        "parameters": [],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "type": "array",
-                  "items": {
-                    "$ref": "#/components/schemas/Workflow"
-                  }
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Workflow"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
+    "/phone-number": {
       "post": {
-        "operationId": "WorkflowController_create",
-        "summary": "Create Workflow",
+        "operationId": "PhoneNumberController_create",
+        "summary": "Create Phone Number",
         "parameters": [],
         "requestBody": {
           "required": true,
           "content": {
             "application/json": {
               "schema": {
-                "$ref": "#/components/schemas/CreateWorkflowDTO"
-              }
-            }
-          }
-        },
-        "responses": {
-          "201": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/Workflow"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Workflow"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      }
-    },
-    "/workflow/{id}": {
-      "get": {
-        "operationId": "WorkflowController_findOne",
-        "summary": "Get Workflow",
-        "parameters": [
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/Workflow"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Workflow"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "delete": {
-        "operationId": "WorkflowController_delete",
-        "summary": "Delete Workflow",
-        "parameters": [
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/Workflow"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Workflow"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "patch": {
-        "operationId": "WorkflowController_update",
-        "summary": "Update Workflow",
-        "parameters": [
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "application/json": {
-              "schema": {
-                "$ref": "#/components/schemas/UpdateWorkflowDTO"
-              }
-            }
-          }
-        },
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/Workflow"
+                "oneOf": [
+                  {
+                    "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                    "title": "ByoPhoneNumber"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                    "title": "TwilioPhoneNumber"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                    "title": "VonagePhoneNumber"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                    "title": "VapiPhoneNumber"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                    "title": "TelnyxPhoneNumber"
+                  }
+                ],
+                "discriminator": {
+                  "propertyName": "provider",
+                  "mapping": {
+                    "byo-phone-number": "#/components/schemas/CreateByoPhoneNumberDTO",
+                    "twilio": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                    "vonage": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                    "vapi": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                    "telnyx": "#/components/schemas/CreateTelnyxPhoneNumberDTO"
+                  }
                 }
               }
             }
           }
         },
-        "tags": [
-          "Workflow"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      }
-    },
-    "/squad": {
-      "post": {
-        "operationId": "SquadController_create",
-        "summary": "Create Squad",
-        "parameters": [],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "application/json": {
-              "schema": {
-                "$ref": "#/components/schemas/CreateSquadDTO"
-              }
-            }
-          }
-        },
         "responses": {
           "201": {
             "description": "",
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/Squad"
+                  "title": "PhoneNumber",
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/ByoPhoneNumber",
+                      "title": "ByoPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TwilioPhoneNumber",
+                      "title": "TwilioPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VonagePhoneNumber",
+                      "title": "VonagePhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VapiPhoneNumber",
+                      "title": "VapiPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TelnyxPhoneNumber",
+                      "title": "TelnyxPhoneNumber"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "provider",
+                    "mapping": {
+                      "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
+                      "twilio": "#/components/schemas/TwilioPhoneNumber",
+                      "vonage": "#/components/schemas/VonagePhoneNumber",
+                      "vapi": "#/components/schemas/VapiPhoneNumber",
+                      "telnyx": "#/components/schemas/TelnyxPhoneNumber"
+                    }
+                  }
                 }
               }
             }
           }
         },
         "tags": [
-          "Squads"
+          "Phone Numbers"
         ],
         "security": [
           {
@@ -2759,8 +2146,8 @@
         ]
       },
       "get": {
-        "operationId": "SquadController_findAll",
-        "summary": "List Squads",
+        "operationId": "PhoneNumberController_findAll",
+        "summary": "List Phone Numbers",
         "parameters": [
           {
             "name": "limit",
@@ -2862,7 +2249,39 @@
                 "schema": {
                   "type": "array",
                   "items": {
-                    "$ref": "#/components/schemas/Squad"
+                    "title": "PhoneNumber",
+                    "oneOf": [
+                      {
+                        "$ref": "#/components/schemas/ByoPhoneNumber",
+                        "title": "ByoPhoneNumber"
+                      },
+                      {
+                        "$ref": "#/components/schemas/TwilioPhoneNumber",
+                        "title": "TwilioPhoneNumber"
+                      },
+                      {
+                        "$ref": "#/components/schemas/VonagePhoneNumber",
+                        "title": "VonagePhoneNumber"
+                      },
+                      {
+                        "$ref": "#/components/schemas/VapiPhoneNumber",
+                        "title": "VapiPhoneNumber"
+                      },
+                      {
+                        "$ref": "#/components/schemas/TelnyxPhoneNumber",
+                        "title": "TelnyxPhoneNumber"
+                      }
+                    ],
+                    "discriminator": {
+                      "propertyName": "provider",
+                      "mapping": {
+                        "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
+                        "twilio": "#/components/schemas/TwilioPhoneNumber",
+                        "vonage": "#/components/schemas/VonagePhoneNumber",
+                        "vapi": "#/components/schemas/VapiPhoneNumber",
+                        "telnyx": "#/components/schemas/TelnyxPhoneNumber"
+                      }
+                    }
                   }
                 }
               }
@@ -2870,7 +2289,7 @@
           }
         },
         "tags": [
-          "Squads"
+          "Phone Numbers"
         ],
         "security": [
           {
@@ -2879,125 +2298,21 @@
         ]
       }
     },
-    "/squad/{id}": {
+    "/v2/phone-number": {
       "get": {
-        "operationId": "SquadController_findOne",
-        "summary": "Get Squad",
+        "operationId": "PhoneNumberController_findAllPaginated",
+        "summary": "List Phone Numbers",
         "parameters": [
           {
-            "name": "id",
-            "required": true,
-            "in": "path",
+            "name": "search",
+            "required": false,
+            "in": "query",
+            "description": "This will search phone numbers by name, number, or SIP URI (partial match, case-insensitive).",
             "schema": {
+              "maxLength": 100,
               "type": "string"
             }
-          }
-        ],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/Squad"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Squads"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "patch": {
-        "operationId": "SquadController_update",
-        "summary": "Update Squad",
-        "parameters": [
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "application/json": {
-              "schema": {
-                "$ref": "#/components/schemas/UpdateSquadDTO"
-              }
-            }
-          }
-        },
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/Squad"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Squads"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "delete": {
-        "operationId": "SquadController_remove",
-        "summary": "Delete Squad",
-        "parameters": [
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/Squad"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Squads"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      }
-    },
-    "/test-suite": {
-      "get": {
-        "operationId": "TestSuiteController_findAllPaginated",
-        "summary": "List Test Suites",
-        "parameters": [
+          },
           {
             "name": "page",
             "required": false,
@@ -3021,6 +2336,20 @@
               "type": "string"
             }
           },
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
+          },
           {
             "name": "limit",
             "required": false,
@@ -3119,49 +2448,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/TestSuitesPaginatedResponse"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Test Suites"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "post": {
-        "operationId": "TestSuiteController_create",
-        "summary": "Create Test Suite",
-        "parameters": [],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "application/json": {
-              "schema": {
-                "$ref": "#/components/schemas/CreateTestSuiteDto"
-              }
-            }
-          }
-        },
-        "responses": {
-          "201": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/TestSuite"
+                  "$ref": "#/components/schemas/PhoneNumberPaginatedResponse"
                 }
               }
             }
           }
         },
         "tags": [
-          "Test Suites"
+          "Phone Numbers"
         ],
         "security": [
           {
@@ -3170,10 +2464,10 @@
         ]
       }
     },
-    "/test-suite/{id}": {
+    "/phone-number/{id}": {
       "get": {
-        "operationId": "TestSuiteController_findOne",
-        "summary": "Get Test Suite",
+        "operationId": "PhoneNumberController_findOne",
+        "summary": "Get Phone Number",
         "parameters": [
           {
             "name": "id",
@@ -3190,14 +2484,46 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/TestSuite"
+                  "title": "PhoneNumber",
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/ByoPhoneNumber",
+                      "title": "ByoPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TwilioPhoneNumber",
+                      "title": "TwilioPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VonagePhoneNumber",
+                      "title": "VonagePhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VapiPhoneNumber",
+                      "title": "VapiPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TelnyxPhoneNumber",
+                      "title": "TelnyxPhoneNumber"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "provider",
+                    "mapping": {
+                      "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
+                      "twilio": "#/components/schemas/TwilioPhoneNumber",
+                      "vonage": "#/components/schemas/VonagePhoneNumber",
+                      "vapi": "#/components/schemas/VapiPhoneNumber",
+                      "telnyx": "#/components/schemas/TelnyxPhoneNumber"
+                    }
+                  }
                 }
               }
             }
           }
         },
         "tags": [
-          "Test Suites"
+          "Phone Numbers"
         ],
         "security": [
           {
@@ -3206,52 +2532,8 @@
         ]
       },
       "patch": {
-        "operationId": "TestSuiteController_update",
-        "summary": "Update Test Suite",
-        "parameters": [
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "application/json": {
-              "schema": {
-                "$ref": "#/components/schemas/UpdateTestSuiteDto"
-              }
-            }
-          }
-        },
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/TestSuite"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Test Suites"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "delete": {
-        "operationId": "TestSuiteController_remove",
-        "summary": "Delete Test Suite",
+        "operationId": "PhoneNumberController_update",
+        "summary": "Update Phone Number",
         "parameters": [
           {
             "name": "id",
@@ -3262,190 +2544,6 @@
             }
           }
         ],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/TestSuite"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Test Suites"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      }
-    },
-    "/test-suite/{testSuiteId}/test": {
-      "get": {
-        "operationId": "TestSuiteTestController_findAllPaginated",
-        "summary": "List Tests",
-        "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          },
-          {
-            "name": "page",
-            "required": false,
-            "in": "query",
-            "description": "This is the page number to return. Defaults to 1.",
-            "schema": {
-              "minimum": 1,
-              "type": "number"
-            }
-          },
-          {
-            "name": "sortOrder",
-            "required": false,
-            "in": "query",
-            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
-            "schema": {
-              "enum": [
-                "ASC",
-                "DESC"
-              ],
-              "type": "string"
-            }
-          },
-          {
-            "name": "limit",
-            "required": false,
-            "in": "query",
-            "description": "This is the maximum number of items to return. Defaults to 100.",
-            "schema": {
-              "minimum": 0,
-              "maximum": 1000,
-              "type": "number"
-            }
-          },
-          {
-            "name": "createdAtGt",
-            "required": false,
-            "in": "query",
-            "description": "This will return items where the createdAt is greater than the specified value.",
-            "schema": {
-              "format": "date-time",
-              "type": "string"
-            }
-          },
-          {
-            "name": "createdAtLt",
-            "required": false,
-            "in": "query",
-            "description": "This will return items where the createdAt is less than the specified value.",
-            "schema": {
-              "format": "date-time",
-              "type": "string"
-            }
-          },
-          {
-            "name": "createdAtGe",
-            "required": false,
-            "in": "query",
-            "description": "This will return items where the createdAt is greater than or equal to the specified value.",
-            "schema": {
-              "format": "date-time",
-              "type": "string"
-            }
-          },
-          {
-            "name": "createdAtLe",
-            "required": false,
-            "in": "query",
-            "description": "This will return items where the createdAt is less than or equal to the specified value.",
-            "schema": {
-              "format": "date-time",
-              "type": "string"
-            }
-          },
-          {
-            "name": "updatedAtGt",
-            "required": false,
-            "in": "query",
-            "description": "This will return items where the updatedAt is greater than the specified value.",
-            "schema": {
-              "format": "date-time",
-              "type": "string"
-            }
-          },
-          {
-            "name": "updatedAtLt",
-            "required": false,
-            "in": "query",
-            "description": "This will return items where the updatedAt is less than the specified value.",
-            "schema": {
-              "format": "date-time",
-              "type": "string"
-            }
-          },
-          {
-            "name": "updatedAtGe",
-            "required": false,
-            "in": "query",
-            "description": "This will return items where the updatedAt is greater than or equal to the specified value.",
-            "schema": {
-              "format": "date-time",
-              "type": "string"
-            }
-          },
-          {
-            "name": "updatedAtLe",
-            "required": false,
-            "in": "query",
-            "description": "This will return items where the updatedAt is less than or equal to the specified value.",
-            "schema": {
-              "format": "date-time",
-              "type": "string"
-            }
-          }
-        ],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/TestSuiteTestsPaginatedResponse"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Test Suite Tests"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "post": {
-        "operationId": "TestSuiteTestController_create",
-        "summary": "Create Test",
-        "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
         "requestBody": {
           "required": true,
           "content": {
@@ -3453,19 +2551,34 @@
               "schema": {
                 "oneOf": [
                   {
-                    "$ref": "#/components/schemas/CreateTestSuiteTestVoiceDto",
-                    "title": "TestSuiteTestVoice"
+                    "$ref": "#/components/schemas/UpdateByoPhoneNumberDTO",
+                    "title": "ByoPhoneNumber"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateTwilioPhoneNumberDTO",
+                    "title": "TwilioPhoneNumber"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateVonagePhoneNumberDTO",
+                    "title": "VonagePhoneNumber"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateVapiPhoneNumberDTO",
+                    "title": "VapiPhoneNumber"
                   },
                   {
-                    "$ref": "#/components/schemas/CreateTestSuiteTestChatDto",
-                    "title": "TestSuiteTestChat"
+                    "$ref": "#/components/schemas/UpdateTelnyxPhoneNumberDTO",
+                    "title": "TelnyxPhoneNumber"
                   }
                 ],
                 "discriminator": {
-                  "propertyName": "type",
+                  "propertyName": "provider",
                   "mapping": {
-                    "voice": "#/components/schemas/CreateTestSuiteTestVoiceDto",
-                    "chat": "#/components/schemas/CreateTestSuiteTestChatDto"
+                    "byo-phone-number": "#/components/schemas/UpdateByoPhoneNumberDTO",
+                    "twilio": "#/components/schemas/UpdateTwilioPhoneNumberDTO",
+                    "vonage": "#/components/schemas/UpdateVonagePhoneNumberDTO",
+                    "vapi": "#/components/schemas/UpdateVapiPhoneNumberDTO",
+                    "telnyx": "#/components/schemas/UpdateTelnyxPhoneNumberDTO"
                   }
                 }
               }
@@ -3473,26 +2586,42 @@
           }
         },
         "responses": {
-          "201": {
+          "200": {
             "description": "",
             "content": {
               "application/json": {
                 "schema": {
+                  "title": "PhoneNumber",
                   "oneOf": [
                     {
-                      "$ref": "#/components/schemas/TestSuiteTestVoice",
-                      "title": "Voice"
+                      "$ref": "#/components/schemas/ByoPhoneNumber",
+                      "title": "ByoPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TwilioPhoneNumber",
+                      "title": "TwilioPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VonagePhoneNumber",
+                      "title": "VonagePhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VapiPhoneNumber",
+                      "title": "VapiPhoneNumber"
                     },
                     {
-                      "$ref": "#/components/schemas/TestSuiteTestChat",
-                      "title": "Chat"
+                      "$ref": "#/components/schemas/TelnyxPhoneNumber",
+                      "title": "TelnyxPhoneNumber"
                     }
                   ],
                   "discriminator": {
-                    "propertyName": "type",
+                    "propertyName": "provider",
                     "mapping": {
-                      "voice": "#/components/schemas/TestSuiteTestVoice",
-                      "chat": "#/components/schemas/TestSuiteTestChat"
+                      "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
+                      "twilio": "#/components/schemas/TwilioPhoneNumber",
+                      "vonage": "#/components/schemas/VonagePhoneNumber",
+                      "vapi": "#/components/schemas/VapiPhoneNumber",
+                      "telnyx": "#/components/schemas/TelnyxPhoneNumber"
                     }
                   }
                 }
@@ -3501,28 +2630,18 @@
           }
         },
         "tags": [
-          "Test Suite Tests"
+          "Phone Numbers"
         ],
         "security": [
           {
             "bearer": []
           }
         ]
-      }
-    },
-    "/test-suite/{testSuiteId}/test/{id}": {
-      "get": {
-        "operationId": "TestSuiteTestController_findOne",
-        "summary": "Get Test",
+      },
+      "delete": {
+        "operationId": "PhoneNumberController_remove",
+        "summary": "Delete Phone Number",
         "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          },
           {
             "name": "id",
             "required": true,
@@ -3538,21 +2657,37 @@
             "content": {
               "application/json": {
                 "schema": {
+                  "title": "PhoneNumber",
                   "oneOf": [
                     {
-                      "$ref": "#/components/schemas/TestSuiteTestVoice",
-                      "title": "Voice"
+                      "$ref": "#/components/schemas/ByoPhoneNumber",
+                      "title": "ByoPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TwilioPhoneNumber",
+                      "title": "TwilioPhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VonagePhoneNumber",
+                      "title": "VonagePhoneNumber"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VapiPhoneNumber",
+                      "title": "VapiPhoneNumber"
                     },
                     {
-                      "$ref": "#/components/schemas/TestSuiteTestChat",
-                      "title": "Chat"
+                      "$ref": "#/components/schemas/TelnyxPhoneNumber",
+                      "title": "TelnyxPhoneNumber"
                     }
                   ],
                   "discriminator": {
-                    "propertyName": "type",
+                    "propertyName": "provider",
                     "mapping": {
-                      "voice": "#/components/schemas/TestSuiteTestVoice",
-                      "chat": "#/components/schemas/TestSuiteTestChat"
+                      "byo-phone-number": "#/components/schemas/ByoPhoneNumber",
+                      "twilio": "#/components/schemas/TwilioPhoneNumber",
+                      "vonage": "#/components/schemas/VonagePhoneNumber",
+                      "vapi": "#/components/schemas/VapiPhoneNumber",
+                      "telnyx": "#/components/schemas/TelnyxPhoneNumber"
                     }
                   }
                 }
@@ -3561,35 +2696,20 @@
           }
         },
         "tags": [
-          "Test Suite Tests"
+          "Phone Numbers"
         ],
         "security": [
           {
             "bearer": []
           }
         ]
-      },
-      "patch": {
-        "operationId": "TestSuiteTestController_update",
-        "summary": "Update Test",
-        "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          },
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
+      }
+    },
+    "/tool": {
+      "post": {
+        "operationId": "ToolController_create",
+        "summary": "Create Tool",
+        "parameters": [],
         "requestBody": {
           "required": true,
           "content": {
@@ -3597,104 +2717,259 @@
               "schema": {
                 "oneOf": [
                   {
-                    "$ref": "#/components/schemas/UpdateTestSuiteTestVoiceDto",
-                    "title": "TestSuiteTestVoice"
+                    "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                    "title": "ApiRequestTool"
                   },
                   {
-                    "$ref": "#/components/schemas/UpdateTestSuiteTestChatDto",
-                    "title": "TestSuiteTestChat"
-                  }
-                ],
-                "discriminator": {
-                  "propertyName": "type",
-                  "mapping": {
-                    "voice": "#/components/schemas/UpdateTestSuiteTestVoiceDto",
-                    "chat": "#/components/schemas/UpdateTestSuiteTestChatDto"
-                  }
-                }
+                    "$ref": "#/components/schemas/CreateCodeToolDTO",
+                    "title": "CodeTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                    "title": "DtmfTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                    "title": "EndCallTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                    "title": "FunctionTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                    "title": "TransferCallTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                    "title": "HandoffTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateBashToolDTO",
+                    "title": "BashTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateComputerToolDTO",
+                    "title": "ComputerTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                    "title": "TextEditorTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateQueryToolDTO",
+                    "title": "QueryTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                    "title": "GoogleCalendarCreateEventTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                    "title": "GoogleSheetsRowAppendTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                    "title": "GoogleCalendarCheckAvailabilityTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                    "title": "SlackSendMessageTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateSmsToolDTO",
+                    "title": "SmsSendTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateMcpToolDTO",
+                    "title": "McpTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                    "title": "GoHighLevelCalendarAvailabilityTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                    "title": "GoHighLevelCalendarEventCreateTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                    "title": "GoHighLevelContactCreateTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                    "title": "GoHighLevelContactGetTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                    "title": "SipRequestTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                    "title": "VoicemailTool"
+                  }
+                ],
+                "discriminator": {
+                  "propertyName": "type",
+                  "mapping": {
+                    "apiRequest": "#/components/schemas/CreateApiRequestToolDTO",
+                    "dtmf": "#/components/schemas/CreateDtmfToolDTO",
+                    "endCall": "#/components/schemas/CreateEndCallToolDTO",
+                    "function": "#/components/schemas/CreateFunctionToolDTO",
+                    "transferCall": "#/components/schemas/CreateTransferCallToolDTO",
+                    "handoff": "#/components/schemas/CreateHandoffToolDTO",
+                    "bash": "#/components/schemas/CreateBashToolDTO",
+                    "computer": "#/components/schemas/CreateComputerToolDTO",
+                    "textEditor": "#/components/schemas/CreateTextEditorToolDTO",
+                    "query": "#/components/schemas/CreateQueryToolDTO",
+                    "google.calendar.event.create": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                    "google.sheets.row.append": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                    "google.calendar.availability.check": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                    "slack.message.send": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                    "sms": "#/components/schemas/CreateSmsToolDTO",
+                    "mcp": "#/components/schemas/CreateMcpToolDTO",
+                    "gohighlevel.calendar.availability.check": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                    "gohighlevel.calendar.event.create": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                    "gohighlevel.contact.create": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                    "gohighlevel.contact.get": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                    "sipRequest": "#/components/schemas/CreateSipRequestToolDTO",
+                    "voicemail": "#/components/schemas/CreateVoicemailToolDTO"
+                  }
+                }
               }
             }
           }
         },
         "responses": {
-          "200": {
+          "201": {
             "description": "",
             "content": {
               "application/json": {
                 "schema": {
                   "oneOf": [
                     {
-                      "$ref": "#/components/schemas/TestSuiteTestVoice",
-                      "title": "Voice"
+                      "$ref": "#/components/schemas/ApiRequestTool",
+                      "title": "ApiRequestTool"
                     },
                     {
-                      "$ref": "#/components/schemas/TestSuiteTestChat",
-                      "title": "Chat"
-                    }
-                  ],
-                  "discriminator": {
-                    "propertyName": "type",
-                    "mapping": {
-                      "voice": "#/components/schemas/TestSuiteTestVoice",
-                      "chat": "#/components/schemas/TestSuiteTestChat"
-                    }
-                  }
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Test Suite Tests"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "delete": {
-        "operationId": "TestSuiteTestController_remove",
-        "summary": "Delete Test",
-        "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          },
-          {
-            "name": "id",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
-        "responses": {
-          "200": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "oneOf": [
+                      "$ref": "#/components/schemas/CodeTool",
+                      "title": "CodeTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DtmfTool",
+                      "title": "DtmfTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/EndCallTool",
+                      "title": "EndCallTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/FunctionTool",
+                      "title": "FunctionTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GhlTool",
+                      "title": "GhlTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TransferCallTool",
+                      "title": "TransferCallTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/HandoffTool",
+                      "title": "HandoffTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/BashTool",
+                      "title": "BashTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ComputerTool",
+                      "title": "ComputerTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TextEditorTool",
+                      "title": "TextEditorTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/QueryTool",
+                      "title": "QueryTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
+                      "title": "GoogleCalendarCreateEventTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
+                      "title": "GoogleSheetsRowAppendTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                      "title": "GoogleCalendarCheckAvailabilityTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SlackSendMessageTool",
+                      "title": "SlackSendMessageTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SmsTool",
+                      "title": "SmsSendTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/McpTool",
+                      "title": "McpTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                      "title": "GoHighLevelCalendarAvailabilityTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                      "title": "GoHighLevelCalendarEventCreateTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelContactCreateTool",
+                      "title": "GoHighLevelContactCreateTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelContactGetTool",
+                      "title": "GoHighLevelContactGetTool"
+                    },
                     {
-                      "$ref": "#/components/schemas/TestSuiteTestVoice",
-                      "title": "Voice"
+                      "$ref": "#/components/schemas/SipRequestTool",
+                      "title": "SipRequestTool"
                     },
                     {
-                      "$ref": "#/components/schemas/TestSuiteTestChat",
-                      "title": "Chat"
+                      "$ref": "#/components/schemas/VoicemailTool",
+                      "title": "VoicemailTool"
                     }
                   ],
                   "discriminator": {
                     "propertyName": "type",
                     "mapping": {
-                      "voice": "#/components/schemas/TestSuiteTestVoice",
-                      "chat": "#/components/schemas/TestSuiteTestChat"
+                      "apiRequest": "#/components/schemas/ApiRequestTool",
+                      "code": "#/components/schemas/CodeTool",
+                      "dtmf": "#/components/schemas/DtmfTool",
+                      "endCall": "#/components/schemas/EndCallTool",
+                      "function": "#/components/schemas/FunctionTool",
+                      "transferCall": "#/components/schemas/TransferCallTool",
+                      "handoff": "#/components/schemas/HandoffTool",
+                      "bash": "#/components/schemas/BashTool",
+                      "computer": "#/components/schemas/ComputerTool",
+                      "textEditor": "#/components/schemas/TextEditorTool",
+                      "query": "#/components/schemas/QueryTool",
+                      "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
+                      "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
+                      "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                      "slack.message.send": "#/components/schemas/SlackSendMessageTool",
+                      "sms": "#/components/schemas/SmsTool",
+                      "mcp": "#/components/schemas/McpTool",
+                      "gohighlevel.calendar.availability.check": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                      "gohighlevel.calendar.event.create": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                      "gohighlevel.contact.create": "#/components/schemas/GoHighLevelContactCreateTool",
+                      "gohighlevel.contact.get": "#/components/schemas/GoHighLevelContactGetTool",
+                      "sipRequest": "#/components/schemas/SipRequestTool",
+                      "voicemail": "#/components/schemas/VoicemailTool"
                     }
                   }
                 }
@@ -3703,51 +2978,18 @@
           }
         },
         "tags": [
-          "Test Suite Tests"
+          "Tools"
         ],
         "security": [
           {
             "bearer": []
           }
         ]
-      }
-    },
-    "/test-suite/{testSuiteId}/run": {
+      },
       "get": {
-        "operationId": "TestSuiteRunController_findAllPaginated",
-        "summary": "List Test Suite Runs",
+        "operationId": "ToolController_findAll",
+        "summary": "List Tools",
         "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          },
-          {
-            "name": "page",
-            "required": false,
-            "in": "query",
-            "description": "This is the page number to return. Defaults to 1.",
-            "schema": {
-              "minimum": 1,
-              "type": "number"
-            }
-          },
-          {
-            "name": "sortOrder",
-            "required": false,
-            "in": "query",
-            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
-            "schema": {
-              "enum": [
-                "ASC",
-                "DESC"
-              ],
-              "type": "string"
-            }
-          },
           {
             "name": "limit",
             "required": false,
@@ -3846,58 +3088,142 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/TestSuiteRunsPaginatedResponse"
-                }
-              }
-            }
-          }
-        },
-        "tags": [
-          "Test Suite Runs"
-        ],
-        "security": [
-          {
-            "bearer": []
-          }
-        ]
-      },
-      "post": {
-        "operationId": "TestSuiteRunController_create",
-        "summary": "Create Test Suite Run",
-        "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          }
-        ],
-        "requestBody": {
-          "required": true,
-          "content": {
-            "application/json": {
-              "schema": {
-                "$ref": "#/components/schemas/CreateTestSuiteRunDto"
-              }
-            }
-          }
-        },
-        "responses": {
-          "201": {
-            "description": "",
-            "content": {
-              "application/json": {
-                "schema": {
-                  "$ref": "#/components/schemas/TestSuiteRun"
+                  "type": "array",
+                  "items": {
+                    "oneOf": [
+                      {
+                        "$ref": "#/components/schemas/ApiRequestTool",
+                        "title": "ApiRequestTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/CodeTool",
+                        "title": "CodeTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/DtmfTool",
+                        "title": "DtmfTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/EndCallTool",
+                        "title": "EndCallTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/FunctionTool",
+                        "title": "FunctionTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/GhlTool",
+                        "title": "GhlTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/TransferCallTool",
+                        "title": "TransferCallTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/HandoffTool",
+                        "title": "HandoffTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/BashTool",
+                        "title": "BashTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/ComputerTool",
+                        "title": "ComputerTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/TextEditorTool",
+                        "title": "TextEditorTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/QueryTool",
+                        "title": "QueryTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
+                        "title": "GoogleCalendarCreateEventTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
+                        "title": "GoogleSheetsRowAppendTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                        "title": "GoogleCalendarCheckAvailabilityTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/SlackSendMessageTool",
+                        "title": "SlackSendMessageTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/SmsTool",
+                        "title": "SmsSendTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/McpTool",
+                        "title": "McpTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                        "title": "GoHighLevelCalendarAvailabilityTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                        "title": "GoHighLevelCalendarEventCreateTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/GoHighLevelContactCreateTool",
+                        "title": "GoHighLevelContactCreateTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/GoHighLevelContactGetTool",
+                        "title": "GoHighLevelContactGetTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/SipRequestTool",
+                        "title": "SipRequestTool"
+                      },
+                      {
+                        "$ref": "#/components/schemas/VoicemailTool",
+                        "title": "VoicemailTool"
+                      }
+                    ],
+                    "discriminator": {
+                      "propertyName": "type",
+                      "mapping": {
+                        "apiRequest": "#/components/schemas/ApiRequestTool",
+                        "code": "#/components/schemas/CodeTool",
+                        "dtmf": "#/components/schemas/DtmfTool",
+                        "endCall": "#/components/schemas/EndCallTool",
+                        "function": "#/components/schemas/FunctionTool",
+                        "transferCall": "#/components/schemas/TransferCallTool",
+                        "handoff": "#/components/schemas/HandoffTool",
+                        "bash": "#/components/schemas/BashTool",
+                        "computer": "#/components/schemas/ComputerTool",
+                        "textEditor": "#/components/schemas/TextEditorTool",
+                        "query": "#/components/schemas/QueryTool",
+                        "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
+                        "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
+                        "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                        "slack.message.send": "#/components/schemas/SlackSendMessageTool",
+                        "sms": "#/components/schemas/SmsTool",
+                        "mcp": "#/components/schemas/McpTool",
+                        "gohighlevel.calendar.availability.check": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                        "gohighlevel.calendar.event.create": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                        "gohighlevel.contact.create": "#/components/schemas/GoHighLevelContactCreateTool",
+                        "gohighlevel.contact.get": "#/components/schemas/GoHighLevelContactGetTool",
+                        "sipRequest": "#/components/schemas/SipRequestTool",
+                        "voicemail": "#/components/schemas/VoicemailTool"
+                      }
+                    }
+                  }
                 }
               }
             }
           }
         },
         "tags": [
-          "Test Suite Runs"
+          "Tools"
         ],
         "security": [
           {
@@ -3906,19 +3232,11 @@
         ]
       }
     },
-    "/test-suite/{testSuiteId}/run/{id}": {
+    "/tool/{id}": {
       "get": {
-        "operationId": "TestSuiteRunController_findOne",
-        "summary": "Get Test Suite Run",
+        "operationId": "ToolController_findOne",
+        "summary": "Get Tool",
         "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          },
           {
             "name": "id",
             "required": true,
@@ -3934,14 +3252,139 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/TestSuiteRun"
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/ApiRequestTool",
+                      "title": "ApiRequestTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/CodeTool",
+                      "title": "CodeTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DtmfTool",
+                      "title": "DtmfTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/EndCallTool",
+                      "title": "EndCallTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/FunctionTool",
+                      "title": "FunctionTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GhlTool",
+                      "title": "GhlTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TransferCallTool",
+                      "title": "TransferCallTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/HandoffTool",
+                      "title": "HandoffTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/BashTool",
+                      "title": "BashTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ComputerTool",
+                      "title": "ComputerTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TextEditorTool",
+                      "title": "TextEditorTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/QueryTool",
+                      "title": "QueryTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
+                      "title": "GoogleCalendarCreateEventTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
+                      "title": "GoogleSheetsRowAppendTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                      "title": "GoogleCalendarCheckAvailabilityTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SlackSendMessageTool",
+                      "title": "SlackSendMessageTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SmsTool",
+                      "title": "SmsSendTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/McpTool",
+                      "title": "McpTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                      "title": "GoHighLevelCalendarAvailabilityTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                      "title": "GoHighLevelCalendarEventCreateTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelContactCreateTool",
+                      "title": "GoHighLevelContactCreateTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelContactGetTool",
+                      "title": "GoHighLevelContactGetTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SipRequestTool",
+                      "title": "SipRequestTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VoicemailTool",
+                      "title": "VoicemailTool"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "type",
+                    "mapping": {
+                      "apiRequest": "#/components/schemas/ApiRequestTool",
+                      "code": "#/components/schemas/CodeTool",
+                      "dtmf": "#/components/schemas/DtmfTool",
+                      "endCall": "#/components/schemas/EndCallTool",
+                      "function": "#/components/schemas/FunctionTool",
+                      "transferCall": "#/components/schemas/TransferCallTool",
+                      "handoff": "#/components/schemas/HandoffTool",
+                      "bash": "#/components/schemas/BashTool",
+                      "computer": "#/components/schemas/ComputerTool",
+                      "textEditor": "#/components/schemas/TextEditorTool",
+                      "query": "#/components/schemas/QueryTool",
+                      "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
+                      "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
+                      "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                      "slack.message.send": "#/components/schemas/SlackSendMessageTool",
+                      "sms": "#/components/schemas/SmsTool",
+                      "mcp": "#/components/schemas/McpTool",
+                      "gohighlevel.calendar.availability.check": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                      "gohighlevel.calendar.event.create": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                      "gohighlevel.contact.create": "#/components/schemas/GoHighLevelContactCreateTool",
+                      "gohighlevel.contact.get": "#/components/schemas/GoHighLevelContactGetTool",
+                      "sipRequest": "#/components/schemas/SipRequestTool",
+                      "voicemail": "#/components/schemas/VoicemailTool"
+                    }
+                  }
                 }
               }
             }
           }
         },
         "tags": [
-          "Test Suite Runs"
+          "Tools"
         ],
         "security": [
           {
@@ -3950,17 +3393,9 @@
         ]
       },
       "patch": {
-        "operationId": "TestSuiteRunController_update",
-        "summary": "Update Test Suite Run",
+        "operationId": "ToolController_update",
+        "summary": "Update Tool",
         "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          },
           {
             "name": "id",
             "required": true,
@@ -3975,25 +3410,270 @@
           "content": {
             "application/json": {
               "schema": {
-                "$ref": "#/components/schemas/UpdateTestSuiteRunDto"
-              }
-            }
-          }
-        },
-        "responses": {
+                "oneOf": [
+                  {
+                    "$ref": "#/components/schemas/UpdateApiRequestToolDTO",
+                    "title": "ApiRequestTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateCodeToolDTO",
+                    "title": "CodeTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateDtmfToolDTO",
+                    "title": "DtmfTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateEndCallToolDTO",
+                    "title": "EndCallTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateFunctionToolDTO",
+                    "title": "FunctionTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateTransferCallToolDTO",
+                    "title": "TransferCallTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateHandoffToolDTO",
+                    "title": "HandoffTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateBashToolDTO",
+                    "title": "BashTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateComputerToolDTO",
+                    "title": "ComputerTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateTextEditorToolDTO",
+                    "title": "TextEditorTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateQueryToolDTO",
+                    "title": "QueryTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateGoogleCalendarCreateEventToolDTO",
+                    "title": "GoogleCalendarCreateEventTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateGoogleSheetsRowAppendToolDTO",
+                    "title": "GoogleSheetsRowAppendTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateGoogleCalendarCheckAvailabilityToolDTO",
+                    "title": "GoogleCalendarCheckAvailabilityTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateSlackSendMessageToolDTO",
+                    "title": "SlackSendMessageTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateSmsToolDTO",
+                    "title": "SmsSendTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateMcpToolDTO",
+                    "title": "McpTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateGoHighLevelCalendarAvailabilityToolDTO",
+                    "title": "GoHighLevelCalendarAvailabilityTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateGoHighLevelCalendarEventCreateToolDTO",
+                    "title": "GoHighLevelCalendarEventCreateTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateGoHighLevelContactCreateToolDTO",
+                    "title": "GoHighLevelContactCreateTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateGoHighLevelContactGetToolDTO",
+                    "title": "GoHighLevelContactGetTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateSipRequestToolDTO",
+                    "title": "SipRequestTool"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateVoicemailToolDTO",
+                    "title": "VoicemailTool"
+                  }
+                ],
+                "discriminator": {
+                  "propertyName": "type",
+                  "mapping": {
+                    "apiRequest": "#/components/schemas/UpdateApiRequestToolDTO",
+                    "dtmf": "#/components/schemas/UpdateDtmfToolDTO",
+                    "endCall": "#/components/schemas/UpdateEndCallToolDTO",
+                    "function": "#/components/schemas/UpdateFunctionToolDTO",
+                    "transferCall": "#/components/schemas/UpdateTransferCallToolDTO",
+                    "handoff": "#/components/schemas/UpdateHandoffToolDTO",
+                    "bash": "#/components/schemas/UpdateBashToolDTO",
+                    "computer": "#/components/schemas/UpdateComputerToolDTO",
+                    "textEditor": "#/components/schemas/UpdateTextEditorToolDTO",
+                    "query": "#/components/schemas/UpdateQueryToolDTO",
+                    "google.calendar.event.create": "#/components/schemas/UpdateGoogleCalendarCreateEventToolDTO",
+                    "google.sheets.row.append": "#/components/schemas/UpdateGoogleSheetsRowAppendToolDTO",
+                    "google.calendar.availability.check": "#/components/schemas/UpdateGoogleCalendarCheckAvailabilityToolDTO",
+                    "slack.message.send": "#/components/schemas/UpdateSlackSendMessageToolDTO",
+                    "sms": "#/components/schemas/UpdateSmsToolDTO",
+                    "mcp": "#/components/schemas/UpdateMcpToolDTO",
+                    "gohighlevel.calendar.availability.check": "#/components/schemas/UpdateGoHighLevelCalendarAvailabilityToolDTO",
+                    "gohighlevel.calendar.event.create": "#/components/schemas/UpdateGoHighLevelCalendarEventCreateToolDTO",
+                    "gohighlevel.contact.create": "#/components/schemas/UpdateGoHighLevelContactCreateToolDTO",
+                    "gohighlevel.contact.get": "#/components/schemas/UpdateGoHighLevelContactGetToolDTO",
+                    "sipRequest": "#/components/schemas/UpdateSipRequestToolDTO",
+                    "voicemail": "#/components/schemas/UpdateVoicemailToolDTO"
+                  }
+                }
+              }
+            }
+          }
+        },
+        "responses": {
           "200": {
             "description": "",
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/TestSuiteRun"
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/ApiRequestTool",
+                      "title": "ApiRequestTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/CodeTool",
+                      "title": "CodeTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DtmfTool",
+                      "title": "DtmfTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/EndCallTool",
+                      "title": "EndCallTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/FunctionTool",
+                      "title": "FunctionTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GhlTool",
+                      "title": "GhlTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TransferCallTool",
+                      "title": "TransferCallTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/HandoffTool",
+                      "title": "HandoffTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/BashTool",
+                      "title": "BashTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ComputerTool",
+                      "title": "ComputerTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TextEditorTool",
+                      "title": "TextEditorTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/QueryTool",
+                      "title": "QueryTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
+                      "title": "GoogleCalendarCreateEventTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
+                      "title": "GoogleSheetsRowAppendTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                      "title": "GoogleCalendarCheckAvailabilityTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SlackSendMessageTool",
+                      "title": "SlackSendMessageTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SmsTool",
+                      "title": "SmsSendTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/McpTool",
+                      "title": "McpTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                      "title": "GoHighLevelCalendarAvailabilityTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                      "title": "GoHighLevelCalendarEventCreateTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelContactCreateTool",
+                      "title": "GoHighLevelContactCreateTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelContactGetTool",
+                      "title": "GoHighLevelContactGetTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SipRequestTool",
+                      "title": "SipRequestTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VoicemailTool",
+                      "title": "VoicemailTool"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "type",
+                    "mapping": {
+                      "apiRequest": "#/components/schemas/ApiRequestTool",
+                      "code": "#/components/schemas/CodeTool",
+                      "dtmf": "#/components/schemas/DtmfTool",
+                      "endCall": "#/components/schemas/EndCallTool",
+                      "function": "#/components/schemas/FunctionTool",
+                      "transferCall": "#/components/schemas/TransferCallTool",
+                      "handoff": "#/components/schemas/HandoffTool",
+                      "bash": "#/components/schemas/BashTool",
+                      "computer": "#/components/schemas/ComputerTool",
+                      "textEditor": "#/components/schemas/TextEditorTool",
+                      "query": "#/components/schemas/QueryTool",
+                      "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
+                      "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
+                      "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                      "slack.message.send": "#/components/schemas/SlackSendMessageTool",
+                      "sms": "#/components/schemas/SmsTool",
+                      "mcp": "#/components/schemas/McpTool",
+                      "gohighlevel.calendar.availability.check": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                      "gohighlevel.calendar.event.create": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                      "gohighlevel.contact.create": "#/components/schemas/GoHighLevelContactCreateTool",
+                      "gohighlevel.contact.get": "#/components/schemas/GoHighLevelContactGetTool",
+                      "sipRequest": "#/components/schemas/SipRequestTool",
+                      "voicemail": "#/components/schemas/VoicemailTool"
+                    }
+                  }
                 }
               }
             }
           }
         },
         "tags": [
-          "Test Suite Runs"
+          "Tools"
         ],
         "security": [
           {
@@ -4002,17 +3682,9 @@
         ]
       },
       "delete": {
-        "operationId": "TestSuiteRunController_remove",
-        "summary": "Delete Test Suite Run",
+        "operationId": "ToolController_remove",
+        "summary": "Delete Tool",
         "parameters": [
-          {
-            "name": "testSuiteId",
-            "required": true,
-            "in": "path",
-            "schema": {
-              "type": "string"
-            }
-          },
           {
             "name": "id",
             "required": true,
@@ -4028,14 +3700,139 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/TestSuiteRun"
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/ApiRequestTool",
+                      "title": "ApiRequestTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/CodeTool",
+                      "title": "CodeTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DtmfTool",
+                      "title": "DtmfTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/EndCallTool",
+                      "title": "EndCallTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/FunctionTool",
+                      "title": "FunctionTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GhlTool",
+                      "title": "GhlTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TransferCallTool",
+                      "title": "TransferCallTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/HandoffTool",
+                      "title": "HandoffTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/BashTool",
+                      "title": "BashTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ComputerTool",
+                      "title": "ComputerTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TextEditorTool",
+                      "title": "TextEditorTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/QueryTool",
+                      "title": "QueryTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleCalendarCreateEventTool",
+                      "title": "GoogleCalendarCreateEventTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleSheetsRowAppendTool",
+                      "title": "GoogleSheetsRowAppendTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                      "title": "GoogleCalendarCheckAvailabilityTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SlackSendMessageTool",
+                      "title": "SlackSendMessageTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SmsTool",
+                      "title": "SmsSendTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/McpTool",
+                      "title": "McpTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                      "title": "GoHighLevelCalendarAvailabilityTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                      "title": "GoHighLevelCalendarEventCreateTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelContactCreateTool",
+                      "title": "GoHighLevelContactCreateTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/GoHighLevelContactGetTool",
+                      "title": "GoHighLevelContactGetTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/SipRequestTool",
+                      "title": "SipRequestTool"
+                    },
+                    {
+                      "$ref": "#/components/schemas/VoicemailTool",
+                      "title": "VoicemailTool"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "type",
+                    "mapping": {
+                      "apiRequest": "#/components/schemas/ApiRequestTool",
+                      "code": "#/components/schemas/CodeTool",
+                      "dtmf": "#/components/schemas/DtmfTool",
+                      "endCall": "#/components/schemas/EndCallTool",
+                      "function": "#/components/schemas/FunctionTool",
+                      "transferCall": "#/components/schemas/TransferCallTool",
+                      "handoff": "#/components/schemas/HandoffTool",
+                      "bash": "#/components/schemas/BashTool",
+                      "computer": "#/components/schemas/ComputerTool",
+                      "textEditor": "#/components/schemas/TextEditorTool",
+                      "query": "#/components/schemas/QueryTool",
+                      "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool",
+                      "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool",
+                      "google.calendar.availability.check": "#/components/schemas/GoogleCalendarCheckAvailabilityTool",
+                      "slack.message.send": "#/components/schemas/SlackSendMessageTool",
+                      "sms": "#/components/schemas/SmsTool",
+                      "mcp": "#/components/schemas/McpTool",
+                      "gohighlevel.calendar.availability.check": "#/components/schemas/GoHighLevelCalendarAvailabilityTool",
+                      "gohighlevel.calendar.event.create": "#/components/schemas/GoHighLevelCalendarEventCreateTool",
+                      "gohighlevel.contact.create": "#/components/schemas/GoHighLevelContactCreateTool",
+                      "gohighlevel.contact.get": "#/components/schemas/GoHighLevelContactGetTool",
+                      "sipRequest": "#/components/schemas/SipRequestTool",
+                      "voicemail": "#/components/schemas/VoicemailTool"
+                    }
+                  }
                 }
               }
             }
           }
         },
         "tags": [
-          "Test Suite Runs"
+          "Tools"
         ],
         "security": [
           {
@@ -4044,21 +3841,58 @@
         ]
       }
     },
-    "/analytics": {
+    "/file": {
       "post": {
-        "operationId": "AnalyticsController_query",
-        "summary": "Create Analytics Queries",
+        "operationId": "FileController_create",
+        "summary": "Upload File",
         "parameters": [],
         "requestBody": {
           "required": true,
           "content": {
-            "application/json": {
+            "multipart/form-data": {
               "schema": {
-                "$ref": "#/components/schemas/AnalyticsQueryDTO"
+                "$ref": "#/components/schemas/CreateFileDTO"
+              }
+            }
+          }
+        },
+        "responses": {
+          "201": {
+            "description": "File uploaded successfully",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/File"
+                }
               }
             }
+          },
+          "400": {
+            "description": "Invalid file"
           }
         },
+        "tags": [
+          "Files"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      },
+      "get": {
+        "operationId": "FileController_findAll",
+        "summary": "List Files",
+        "parameters": [
+          {
+            "name": "purpose",
+            "required": true,
+            "in": "query",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
         "responses": {
           "200": {
             "description": "",
@@ -4067,18 +3901,15 @@
                 "schema": {
                   "type": "array",
                   "items": {
-                    "$ref": "#/components/schemas/AnalyticsQueryResult"
+                    "$ref": "#/components/schemas/File"
                   }
                 }
               }
             }
-          },
-          "201": {
-            "description": ""
           }
         },
         "tags": [
-          "Analytics"
+          "Files"
         ],
         "security": [
           {
@@ -4087,77 +3918,139 @@
         ]
       }
     },
-    "/logs": {
+    "/file/{id}": {
       "get": {
-        "operationId": "LoggingController_logsQuery",
-        "summary": "Get Logs",
-        "deprecated": true,
+        "operationId": "FileController_findOne",
+        "summary": "Get File",
         "parameters": [
           {
-            "name": "type",
-            "required": false,
-            "in": "query",
-            "description": "This is the type of the log.",
+            "name": "id",
+            "required": true,
+            "in": "path",
             "schema": {
-              "enum": [
-                "API",
-                "Webhook",
-                "Call",
-                "Provider"
-              ],
               "type": "string"
             }
-          },
-          {
-            "name": "webhookType",
-            "required": false,
-            "in": "query",
-            "description": "This is the type of the webhook, given the log is from a webhook.",
-            "schema": {
-              "type": "string"
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/File"
+                }
+              }
             }
-          },
+          }
+        },
+        "tags": [
+          "Files"
+        ],
+        "security": [
           {
-            "name": "assistantId",
-            "required": false,
-            "in": "query",
-            "description": "This is the ID of the assistant.",
-            "schema": {
-              "type": "string"
-            }
-          },
+            "bearer": []
+          }
+        ]
+      },
+      "patch": {
+        "operationId": "FileController_update",
+        "summary": "Update File",
+        "parameters": [
           {
-            "name": "phoneNumberId",
-            "required": false,
-            "in": "query",
-            "description": "This is the ID of the phone number.",
+            "name": "id",
+            "required": true,
+            "in": "path",
             "schema": {
               "type": "string"
             }
-          },
+          }
+        ],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/UpdateFileDTO"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/File"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Files"
+        ],
+        "security": [
           {
-            "name": "customerId",
-            "required": false,
-            "in": "query",
-            "description": "This is the ID of the customer.",
+            "bearer": []
+          }
+        ]
+      },
+      "delete": {
+        "operationId": "FileController_remove",
+        "summary": "Delete File",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
             "schema": {
               "type": "string"
             }
-          },
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/File"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Files"
+        ],
+        "security": [
           {
-            "name": "squadId",
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/structured-output": {
+      "get": {
+        "operationId": "StructuredOutputController_findAll",
+        "summary": "List Structured Outputs",
+        "parameters": [
+          {
+            "name": "id",
             "required": false,
             "in": "query",
-            "description": "This is the ID of the squad.",
+            "description": "This will return structured outputs where the id matches the specified value.",
             "schema": {
               "type": "string"
             }
           },
           {
-            "name": "callId",
+            "name": "name",
             "required": false,
             "in": "query",
-            "description": "This is the ID of the call.",
+            "description": "This will return structured outputs where the name matches the specified value.",
             "schema": {
               "type": "string"
             }
@@ -4185,6 +4078,20 @@
               "type": "string"
             }
           },
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
+          },
           {
             "name": "limit",
             "required": false,
@@ -4283,14 +4190,14 @@
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/LogsPaginatedResponse"
+                  "$ref": "#/components/schemas/StructuredOutputPaginatedResponse"
                 }
               }
             }
           }
         },
         "tags": [
-          "Logs"
+          "Structured Outputs"
         ],
         "security": [
           {
@@ -4298,66 +4205,137 @@
           }
         ]
       },
-      "delete": {
-        "operationId": "LoggingController_logsDeleteQuery",
-        "summary": "Delete Logs",
-        "deprecated": true,
-        "parameters": [
-          {
-            "name": "type",
-            "required": false,
-            "in": "query",
-            "description": "This is the type of the log.",
-            "schema": {
-              "enum": [
-                "API",
-                "Webhook",
-                "Call",
-                "Provider"
-              ],
-              "type": "string"
+      "post": {
+        "operationId": "StructuredOutputController_create",
+        "summary": "Create Structured Output",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/CreateStructuredOutputDTO"
+              }
             }
-          },
-          {
-            "name": "assistantId",
-            "required": false,
-            "in": "query",
-            "schema": {
-              "type": "string"
+          }
+        },
+        "responses": {
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/StructuredOutput"
+                }
+              }
             }
-          },
+          }
+        },
+        "tags": [
+          "Structured Outputs"
+        ],
+        "security": [
           {
-            "name": "phoneNumberId",
-            "required": false,
-            "in": "query",
-            "description": "This is the ID of the phone number.",
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/structured-output/{id}": {
+      "get": {
+        "operationId": "StructuredOutputController_findOne",
+        "summary": "Get Structured Output",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
             "schema": {
               "type": "string"
             }
-          },
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/StructuredOutput"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Structured Outputs"
+        ],
+        "security": [
           {
-            "name": "customerId",
-            "required": false,
-            "in": "query",
-            "description": "This is the ID of the customer.",
+            "bearer": []
+          }
+        ]
+      },
+      "patch": {
+        "operationId": "StructuredOutputController_update",
+        "summary": "Update Structured Output",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
             "schema": {
               "type": "string"
             }
           },
           {
-            "name": "squadId",
-            "required": false,
+            "name": "schemaOverride",
+            "required": true,
             "in": "query",
-            "description": "This is the ID of the squad.",
             "schema": {
               "type": "string"
             }
-          },
+          }
+        ],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/UpdateStructuredOutputDTO"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/StructuredOutput"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Structured Outputs"
+        ],
+        "security": [
           {
-            "name": "callId",
-            "required": false,
-            "in": "query",
-            "description": "This is the ID of the call.",
+            "bearer": []
+          }
+        ]
+      },
+      "delete": {
+        "operationId": "StructuredOutputController_remove",
+        "summary": "Delete Structured Output",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
             "schema": {
               "type": "string"
             }
@@ -4365,11 +4343,18 @@
         ],
         "responses": {
           "200": {
-            "description": ""
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/StructuredOutput"
+                }
+              }
+            }
           }
         },
         "tags": [
-          "Logs"
+          "Structured Outputs"
         ],
         "security": [
           {
@@ -4377,5531 +4362,4443 @@
           }
         ]
       }
-    }
-  },
-  "info": {
-    "title": "Vapi API",
-    "description": "Voice AI for developers.",
-    "version": "1.0",
-    "contact": {}
-  },
-  "tags": [],
-  "servers": [
-    {
-      "url": "https://api.vapi.ai"
-    }
-  ],
-  "components": {
-    "securitySchemes": {
-      "bearer": {
-        "scheme": "bearer",
-        "bearerFormat": "Bearer",
-        "type": "http",
-        "description": "Retrieve your API Key from [Dashboard](dashboard.vapi.ai)."
-      }
     },
-    "schemas": {
-      "AnalysisCostBreakdown": {
-        "type": "object",
-        "properties": {
-          "summary": {
-            "type": "number",
-            "description": "This is the cost to summarize the call."
-          },
-          "summaryPromptTokens": {
-            "type": "number",
-            "description": "This is the number of prompt tokens used to summarize the call."
-          },
-          "summaryCompletionTokens": {
-            "type": "number",
-            "description": "This is the number of completion tokens used to summarize the call."
-          },
-          "structuredData": {
-            "type": "number",
-            "description": "This is the cost to extract structured data from the call."
-          },
-          "structuredDataPromptTokens": {
-            "type": "number",
-            "description": "This is the number of prompt tokens used to extract structured data from the call."
-          },
-          "structuredDataCompletionTokens": {
-            "type": "number",
-            "description": "This is the number of completion tokens used to extract structured data from the call."
-          },
-          "successEvaluation": {
-            "type": "number",
-            "description": "This is the cost to evaluate if the call was successful."
-          },
-          "successEvaluationPromptTokens": {
-            "type": "number",
-            "description": "This is the number of prompt tokens used to evaluate if the call was successful."
-          },
-          "successEvaluationCompletionTokens": {
-            "type": "number",
-            "description": "This is the number of completion tokens used to evaluate if the call was successful."
-          }
-        }
-      },
-      "CostBreakdown": {
-        "type": "object",
-        "properties": {
-          "transport": {
-            "type": "number",
-            "description": "This is the cost of the transport provider, like Twilio or Vonage."
-          },
-          "stt": {
-            "type": "number",
-            "description": "This is the cost of the speech-to-text service."
-          },
-          "llm": {
-            "type": "number",
-            "description": "This is the cost of the language model."
-          },
-          "tts": {
-            "type": "number",
-            "description": "This is the cost of the text-to-speech service."
-          },
-          "vapi": {
-            "type": "number",
-            "description": "This is the cost of Vapi."
-          },
-          "total": {
-            "type": "number",
-            "description": "This is the total cost of the call."
-          },
-          "llmPromptTokens": {
-            "type": "number",
-            "description": "This is the LLM prompt tokens used for the call."
-          },
-          "llmCompletionTokens": {
-            "type": "number",
-            "description": "This is the LLM completion tokens used for the call."
-          },
-          "ttsCharacters": {
-            "type": "number",
-            "description": "This is the TTS characters used for the call."
-          },
-          "analysisCostBreakdown": {
-            "description": "This is the cost of the analysis.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AnalysisCostBreakdown"
+    "/structured-output/run": {
+      "post": {
+        "operationId": "StructuredOutputController_run",
+        "summary": "Run Structured Output",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/StructuredOutputRunDTO"
               }
-            ]
-          }
-        }
-      },
-      "TranscriptPlan": {
-        "type": "object",
-        "properties": {
-          "enabled": {
-            "type": "boolean",
-            "description": "This determines whether the transcript is stored in `call.artifact.transcript`. Defaults to true.\n\n@default true",
-            "example": true
-          },
-          "assistantName": {
-            "type": "string",
-            "description": "This is the name of the assistant in the transcript. Defaults to 'AI'.\n\nUsage:\n- If you want to change the name of the assistant in the transcript, set this. Example, here is what the transcript would look like with `assistantName` set to 'Buyer':\n```\nUser: Hello, how are you?\nBuyer: I'm fine.\nUser: Do you want to buy a car?\nBuyer: No.\n```\n\n@default 'AI'"
-          },
-          "userName": {
-            "type": "string",
-            "description": "This is the name of the user in the transcript. Defaults to 'User'.\n\nUsage:\n- If you want to change the name of the user in the transcript, set this. Example, here is what the transcript would look like with `userName` set to 'Seller':\n```\nSeller: Hello, how are you?\nAI: I'm fine.\nSeller: Do you want to buy a car?\nAI: No.\n```\n\n@default 'User'"
+            }
           }
-        }
-      },
-      "ArtifactPlan": {
-        "type": "object",
-        "properties": {
-          "recordingEnabled": {
-            "type": "boolean",
-            "description": "This determines whether assistant's calls are recorded. Defaults to true.\n\nUsage:\n- If you don't want to record the calls, set this to false.\n- If you want to record the calls when `assistant.hipaaEnabled` (deprecated) or `assistant.compliancePlan.hipaaEnabled` explicity set this to true and make sure to provide S3 or GCP credentials on the Provider Credentials page in the Dashboard.\n\nYou can find the recording at `call.artifact.recordingUrl` and `call.artifact.stereoRecordingUrl` after the call is ended.\n\n@default true",
-            "example": true
-          },
-          "recordingFormat": {
-            "type": "string",
-            "description": "This determines the format of the recording. Defaults to `wav;l16`.\n\n@default 'wav;l16'",
-            "enum": [
-              "wav;l16",
-              "mp3"
-            ]
-          },
-          "videoRecordingEnabled": {
-            "type": "boolean",
-            "description": "This determines whether the video is recorded during the call. Defaults to false. Only relevant for `webCall` type.\n\nYou can find the video recording at `call.artifact.videoRecordingUrl` after the call is ended.\n\n@default false",
-            "example": false
-          },
-          "pcapEnabled": {
-            "type": "boolean",
-            "description": "This determines whether the SIP packet capture is enabled. Defaults to true. Only relevant for `phone` type calls where phone number's provider is `vapi` or `byo-phone-number`.\n\nYou can find the packet capture at `call.artifact.pcapUrl` after the call is ended.\n\n@default true",
-            "example": true
-          },
-          "pcapS3PathPrefix": {
-            "type": "string",
-            "description": "This is the path where the SIP packet capture will be uploaded. This is only used if you have provided S3 or GCP credentials on the Provider Credentials page in the Dashboard.\n\nIf credential.s3PathPrefix or credential.bucketPlan.path is set, this will append to it.\n\nUsage:\n- If you want to upload the packet capture to a specific path, set this to the path. Example: `/my-assistant-captures`.\n- If you want to upload the packet capture to the root of the bucket, set this to `/`.\n\n@default '/'",
-            "example": "/pcaps"
-          },
-          "transcriptPlan": {
-            "description": "This is the plan for `call.artifact.transcript`. To disable, set `transcriptPlan.enabled` to false.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TranscriptPlan"
+        },
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/StructuredOutput"
+                }
               }
-            ]
-          },
-          "recordingPath": {
-            "type": "string",
-            "description": "This is the path where the recording will be uploaded. This is only used if you have provided S3 or GCP credentials on the Provider Credentials page in the Dashboard.\n\nIf credential.s3PathPrefix or credential.bucketPlan.path is set, this will append to it.\n\nUsage:\n- If you want to upload the recording to a specific path, set this to the path. Example: `/my-assistant-recordings`.\n- If you want to upload the recording to the root of the bucket, set this to `/`.\n\n@default '/'"
-          }
-        }
-      },
-      "Analysis": {
-        "type": "object",
-        "properties": {
-          "summary": {
-            "type": "string",
-            "description": "This is the summary of the call. Customize by setting `assistant.analysisPlan.summaryPrompt`."
-          },
-          "structuredData": {
-            "type": "object",
-            "description": "This is the structured data extracted from the call. Customize by setting `assistant.analysisPlan.structuredDataPrompt` and/or `assistant.analysisPlan.structuredDataSchema`."
-          },
-          "structuredDataMulti": {
-            "description": "This is the structured data catalog of the call. Customize by setting `assistant.analysisPlan.structuredDataMultiPlan`.",
-            "type": "array",
-            "items": {
-              "type": "object"
             }
           },
-          "successEvaluation": {
-            "type": "string",
-            "description": "This is the evaluation of the call. Customize by setting `assistant.analysisPlan.successEvaluationPrompt` and/or `assistant.analysisPlan.successEvaluationRubric`."
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object"
+                }
+              }
+            }
           }
-        }
-      },
-      "Monitor": {
-        "type": "object",
-        "properties": {
-          "listenUrl": {
-            "type": "string",
-            "description": "This is the URL where the assistant's calls can be listened to in real-time. To enable, set `assistant.monitorPlan.listenEnabled` to `true`."
-          },
-          "controlUrl": {
-            "type": "string",
-            "description": "This is the URL where the assistant's calls can be controlled in real-time. To enable, set `assistant.monitorPlan.controlEnabled` to `true`."
+        },
+        "tags": [
+          "Structured Outputs"
+        ],
+        "security": [
+          {
+            "bearer": []
           }
-        }
-      },
-      "OpenAIMessage": {
-        "type": "object",
-        "properties": {
+        ]
+      }
+    },
+    "/reporting/insight": {
+      "post": {
+        "operationId": "InsightController_create",
+        "summary": "Create Insight",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
           "content": {
-            "type": "string",
-            "nullable": true,
-            "maxLength": 100000000
-          },
-          "role": {
-            "type": "string",
-            "enum": [
-              "assistant",
-              "function",
-              "user",
-              "system",
-              "tool"
-            ]
+            "application/json": {
+              "schema": {
+                "oneOf": [
+                  {
+                    "$ref": "#/components/schemas/CreateBarInsightFromCallTableDTO",
+                    "title": "CreateBarInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreatePieInsightFromCallTableDTO",
+                    "title": "CreatePieInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateLineInsightFromCallTableDTO",
+                    "title": "CreateLineInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateTextInsightFromCallTableDTO",
+                    "title": "CreateTextInsightFromCallTableDTO"
+                  }
+                ],
+                "discriminator": {
+                  "propertyName": "type",
+                  "mapping": {
+                    "bar": "#/components/schemas/CreateBarInsightFromCallTableDTO",
+                    "pie": "#/components/schemas/CreatePieInsightFromCallTableDTO",
+                    "line": "#/components/schemas/CreateLineInsightFromCallTableDTO",
+                    "text": "#/components/schemas/CreateTextInsightFromCallTableDTO"
+                  }
+                }
+              }
+            }
           }
         },
-        "required": [
-          "content",
-          "role"
+        "responses": {
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/BarInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/PieInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/LineInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TextInsight"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "type",
+                    "mapping": {
+                      "bar": "#/components/schemas/BarInsight",
+                      "pie": "#/components/schemas/PieInsight",
+                      "line": "#/components/schemas/LineInsight",
+                      "text": "#/components/schemas/TextInsight"
+                    }
+                  }
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Insight"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "Artifact": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that were spoken during the call.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/UserMessage",
-                  "title": "UserMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/SystemMessage",
-                  "title": "SystemMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/BotMessage",
-                  "title": "BotMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolCallMessage",
-                  "title": "ToolCallMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolCallResultMessage",
-                  "title": "ToolCallResultMessage"
-                }
-              ]
+      "get": {
+        "operationId": "InsightController_findAll",
+        "summary": "Get Insights",
+        "parameters": [
+          {
+            "name": "id",
+            "required": false,
+            "in": "query",
+            "schema": {
+              "type": "string"
             }
           },
-          "messagesOpenAIFormatted": {
-            "description": "These are the messages that were spoken during the call, formatted for OpenAI.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
+          {
+            "name": "page",
+            "required": false,
+            "in": "query",
+            "description": "This is the page number to return. Defaults to 1.",
+            "schema": {
+              "minimum": 1,
+              "type": "number"
             }
           },
-          "recordingUrl": {
-            "type": "string",
-            "description": "This is the recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`."
+          {
+            "name": "sortOrder",
+            "required": false,
+            "in": "query",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "schema": {
+              "enum": [
+                "ASC",
+                "DESC"
+              ],
+              "type": "string"
+            }
           },
-          "stereoRecordingUrl": {
-            "type": "string",
-            "description": "This is the stereo recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`."
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
           },
-          "videoRecordingUrl": {
-            "type": "string",
-            "description": "This is video recording url for the call. To enable, set `assistant.artifactPlan.videoRecordingEnabled`."
+          {
+            "name": "limit",
+            "required": false,
+            "in": "query",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "schema": {
+              "minimum": 0,
+              "maximum": 1000,
+              "type": "number"
+            }
           },
-          "videoRecordingStartDelaySeconds": {
-            "type": "number",
-            "description": "This is video recording start delay in ms. To enable, set `assistant.artifactPlan.videoRecordingEnabled`. This can be used to align the playback of the recording with artifact.messages timestamps."
-          },
-          "transcript": {
-            "type": "string",
-            "description": "This is the transcript of the call. This is derived from `artifact.messages` but provided for convenience."
-          },
-          "pcapUrl": {
-            "type": "string",
-            "description": "This is the packet capture url for the call. This is only available for `phone` type calls where phone number's provider is `vapi` or `byo-phone-number`."
-          }
-        }
-      },
-      "FallbackTranscriberPlan": {
-        "type": "object",
-        "properties": {
-          "transcribers": {
-            "type": "array",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/FallbackAssemblyAITranscriber",
-                  "title": "AssemblyAI"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackAzureSpeechTranscriber",
-                  "title": "Azure"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackCustomTranscriber",
-                  "title": "Custom"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackDeepgramTranscriber",
-                  "title": "Deepgram"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackElevenLabsTranscriber",
-                  "title": "ElevenLabs"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackGladiaTranscriber",
-                  "title": "Gladia"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackGoogleTranscriber",
-                  "title": "Google"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackTalkscriberTranscriber",
-                  "title": "Talkscriber"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackSpeechmaticsTranscriber",
-                  "title": "Speechmatics"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackOpenAITranscriber",
-                  "title": "OpenAI"
-                }
-              ]
+          {
+            "name": "createdAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
             }
-          }
-        },
-        "required": [
-          "transcribers"
-        ]
-      },
-      "AssemblyAITranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "assembly-ai"
-            ]
           },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription.",
-            "enum": [
-              "en"
-            ]
+          {
+            "name": "createdAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "confidenceThreshold": {
-            "type": "number",
-            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.4
+          {
+            "name": "createdAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "realtimeUrl": {
-            "type": "string",
-            "description": "The WebSocket URL that the transcriber connects to."
+          {
+            "name": "createdAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "wordBoost": {
-            "description": "Add up to 2500 characters of custom vocabulary.",
-            "type": "array",
-            "items": {
-              "type": "string",
-              "maxLength": 2500
+          {
+            "name": "updatedAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
             }
           },
-          "endUtteranceSilenceThreshold": {
-            "type": "number",
-            "description": "The duration of the end utterance silence threshold in milliseconds."
+          {
+            "name": "updatedAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "disablePartialTranscripts": {
-            "type": "boolean",
-            "description": "Disable partial transcripts.\nSet to `true` to not receive partial transcripts. Defaults to `false`."
+          {
+            "name": "updatedAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
-              }
-            ]
+          {
+            "name": "updatedAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           }
-        },
-        "required": [
-          "provider"
-        ]
-      },
-      "AzureSpeechTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "azure"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt",
-            "enum": [
-              "af-ZA",
-              "am-ET",
-              "ar-AE",
-              "ar-BH",
-              "ar-DZ",
-              "ar-EG",
-              "ar-IL",
-              "ar-IQ",
-              "ar-JO",
-              "ar-KW",
-              "ar-LB",
-              "ar-LY",
-              "ar-MA",
-              "ar-OM",
-              "ar-PS",
-              "ar-QA",
-              "ar-SA",
-              "ar-SY",
-              "ar-TN",
-              "ar-YE",
-              "az-AZ",
-              "bg-BG",
-              "bn-IN",
-              "bs-BA",
-              "ca-ES",
-              "cs-CZ",
-              "cy-GB",
-              "da-DK",
-              "de-AT",
-              "de-CH",
-              "de-DE",
-              "el-GR",
-              "en-AU",
-              "en-CA",
-              "en-GB",
-              "en-GH",
-              "en-HK",
-              "en-IE",
-              "en-IN",
-              "en-KE",
-              "en-NG",
-              "en-NZ",
-              "en-PH",
-              "en-SG",
-              "en-TZ",
-              "en-US",
-              "en-ZA",
-              "es-AR",
-              "es-BO",
-              "es-CL",
-              "es-CO",
-              "es-CR",
-              "es-CU",
-              "es-DO",
-              "es-EC",
-              "es-ES",
-              "es-GQ",
-              "es-GT",
-              "es-HN",
-              "es-MX",
-              "es-NI",
-              "es-PA",
-              "es-PE",
-              "es-PR",
-              "es-PY",
-              "es-SV",
-              "es-US",
-              "es-UY",
-              "es-VE",
-              "et-EE",
-              "eu-ES",
-              "fa-IR",
-              "fi-FI",
-              "fil-PH",
-              "fr-BE",
-              "fr-CA",
-              "fr-CH",
-              "fr-FR",
-              "ga-IE",
-              "gl-ES",
-              "gu-IN",
-              "he-IL",
-              "hi-IN",
-              "hr-HR",
-              "hu-HU",
-              "hy-AM",
-              "id-ID",
-              "is-IS",
-              "it-CH",
-              "it-IT",
-              "ja-JP",
-              "jv-ID",
-              "ka-GE",
-              "kk-KZ",
-              "km-KH",
-              "kn-IN",
-              "ko-KR",
-              "lo-LA",
-              "lt-LT",
-              "lv-LV",
-              "mk-MK",
-              "ml-IN",
-              "mn-MN",
-              "mr-IN",
-              "ms-MY",
-              "mt-MT",
-              "my-MM",
-              "nb-NO",
-              "ne-NP",
-              "nl-BE",
-              "nl-NL",
-              "pa-IN",
-              "pl-PL",
-              "ps-AF",
-              "pt-BR",
-              "pt-PT",
-              "ro-RO",
-              "ru-RU",
-              "si-LK",
-              "sk-SK",
-              "sl-SI",
-              "so-SO",
-              "sq-AL",
-              "sr-RS",
-              "sv-SE",
-              "sw-KE",
-              "sw-TZ",
-              "ta-IN",
-              "te-IN",
-              "th-TH",
-              "tr-TR",
-              "uk-UA",
-              "ur-IN",
-              "uz-UZ",
-              "vi-VN",
-              "wuu-CN",
-              "yue-CN",
-              "zh-CN",
-              "zh-CN-shandong",
-              "zh-CN-sichuan",
-              "zh-HK",
-              "zh-TW",
-              "zu-ZA"
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/InsightPaginatedResponse"
+                }
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider"
-        ]
-      },
-      "BackoffPlan": {
-        "type": "object",
-        "properties": {
-          "maxRetries": {
-            "type": "number",
-            "description": "This is the maximum number of retries to attempt if the request fails. Defaults to 0 (no retries).\n\n@default 0",
-            "minimum": 0,
-            "maximum": 10,
-            "example": 0
-          },
-          "type": {
-            "type": "object",
-            "description": "This is the type of backoff plan to use. Defaults to fixed.\n\n@default fixed",
-            "enum": [
-              "fixed",
-              "exponential"
-            ],
-            "example": "fixed"
-          },
-          "baseDelaySeconds": {
-            "type": "number",
-            "description": "This is the base delay in seconds. For linear backoff, this is the delay between each retry. For exponential backoff, this is the initial delay.",
-            "minimum": 0,
-            "maximum": 10,
-            "example": 1
+        "tags": [
+          "Insight"
+        ],
+        "security": [
+          {
+            "bearer": []
           }
-        },
-        "required": [
-          "maxRetries",
-          "type",
-          "baseDelaySeconds"
         ]
-      },
-      "Server": {
-        "type": "object",
-        "properties": {
-          "timeoutSeconds": {
-            "type": "number",
-            "description": "This is the timeout in seconds for the request to your server. Defaults to 20 seconds.\n\n@default 20",
-            "minimum": 1,
-            "maximum": 120,
-            "example": 20
-          },
-          "url": {
-            "type": "string",
-            "description": "API endpoint to send requests to."
-          },
-          "secret": {
-            "type": "string",
-            "description": "This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret.\n\nSame precedence logic as server."
-          },
-          "headers": {
-            "type": "object",
-            "description": "These are the custom headers to include in the request sent to your server.\n\nEach key-value pair represents a header name and its value."
-          },
-          "backoffPlan": {
-            "description": "This is the backoff plan to use if the request fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/BackoffPlan"
+      }
+    },
+    "/reporting/insight/{id}": {
+      "patch": {
+        "operationId": "InsightController_update",
+        "summary": "Update Insight",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "oneOf": [
+                  {
+                    "$ref": "#/components/schemas/UpdateBarInsightFromCallTableDTO",
+                    "title": "UpdateBarInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdatePieInsightFromCallTableDTO",
+                    "title": "UpdatePieInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateLineInsightFromCallTableDTO",
+                    "title": "UpdateLineInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/UpdateTextInsightFromCallTableDTO",
+                    "title": "UpdateTextInsightFromCallTableDTO"
+                  }
+                ],
+                "discriminator": {
+                  "propertyName": "type",
+                  "mapping": {
+                    "bar": "#/components/schemas/UpdateBarInsightFromCallTableDTO",
+                    "pie": "#/components/schemas/UpdatePieInsightFromCallTableDTO",
+                    "line": "#/components/schemas/UpdateLineInsightFromCallTableDTO",
+                    "text": "#/components/schemas/UpdateTextInsightFromCallTableDTO"
+                  }
+                }
               }
-            ]
+            }
           }
         },
-        "required": [
-          "url"
-        ]
-      },
-      "CustomTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used. Use `custom-transcriber` for providers that are not natively supported.",
-            "enum": [
-              "custom-transcriber"
-            ]
-          },
-          "server": {
-            "description": "This is where the transcription request will be sent.\n\nUsage:\n1. Vapi will initiate a websocket connection with `server.url`.\n\n2. Vapi will send an initial text frame with the sample rate. Format:\n```\n    {\n      \"type\": \"start\",\n      \"encoding\": \"linear16\", // 16-bit raw PCM format\n      \"container\": \"raw\",\n      \"sampleRate\": {{sampleRate}},\n      \"channels\": 2 // customer is channel 0, assistant is channel 1\n    }\n```\n\n3. Vapi will send the audio data in 16-bit raw PCM format as binary frames.\n\n4. You can read the messages something like this:\n```\nws.on('message', (data, isBinary) => {\n  if (isBinary) {\n    pcmBuffer = Buffer.concat([pcmBuffer, data]);\n    console.log(`Received PCM data, buffer size: ${pcmBuffer.length}`);\n  } else {\n    console.log('Received message:', JSON.parse(data.toString()));\n  }\n});\n```\n\n5. You will respond with transcriptions as you have them. Format:\n```\n {\n    \"type\": \"transcriber-response\",\n    \"transcription\": \"Hello, world!\",\n    \"channel\": \"customer\" | \"assistant\"\n }\n```",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/BarInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/PieInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/LineInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TextInsight"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "type",
+                    "mapping": {
+                      "bar": "#/components/schemas/BarInsight",
+                      "pie": "#/components/schemas/PieInsight",
+                      "line": "#/components/schemas/LineInsight",
+                      "text": "#/components/schemas/TextInsight"
+                    }
+                  }
+                }
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider",
-          "server"
+        "tags": [
+          "Insight"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "DeepgramTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "deepgram"
-            ]
+      "get": {
+        "operationId": "InsightController_findOne",
+        "summary": "Get Insight",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/BarInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/PieInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/LineInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TextInsight"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "type",
+                    "mapping": {
+                      "bar": "#/components/schemas/BarInsight",
+                      "pie": "#/components/schemas/PieInsight",
+                      "line": "#/components/schemas/LineInsight",
+                      "text": "#/components/schemas/TextInsight"
+                    }
+                  }
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Insight"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      },
+      "delete": {
+        "operationId": "InsightController_remove",
+        "summary": "Delete Insight",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/BarInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/PieInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/LineInsight"
+                    },
+                    {
+                      "$ref": "#/components/schemas/TextInsight"
+                    }
+                  ],
+                  "discriminator": {
+                    "propertyName": "type",
+                    "mapping": {
+                      "bar": "#/components/schemas/BarInsight",
+                      "pie": "#/components/schemas/PieInsight",
+                      "line": "#/components/schemas/LineInsight",
+                      "text": "#/components/schemas/TextInsight"
+                    }
+                  }
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Insight"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/reporting/insight/{id}/run": {
+      "post": {
+        "operationId": "InsightController_run",
+        "summary": "Run Insight",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/InsightRunDTO"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/InsightRunResponse"
+                }
+              }
+            }
           },
-          "model": {
-            "description": "This is the Deepgram model that will be used. A list of models can be found here: https://developers.deepgram.com/docs/models-languages-overview",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "nova-3",
-                  "nova-3-general",
-                  "nova-3-medical",
-                  "nova-2",
-                  "nova-2-general",
-                  "nova-2-meeting",
-                  "nova-2-phonecall",
-                  "nova-2-finance",
-                  "nova-2-conversationalai",
-                  "nova-2-voicemail",
-                  "nova-2-video",
-                  "nova-2-medical",
-                  "nova-2-drivethru",
-                  "nova-2-automotive",
-                  "nova",
-                  "nova-general",
-                  "nova-phonecall",
-                  "nova-medical",
-                  "enhanced",
-                  "enhanced-general",
-                  "enhanced-meeting",
-                  "enhanced-phonecall",
-                  "enhanced-finance",
-                  "base",
-                  "base-general",
-                  "base-meeting",
-                  "base-phonecall",
-                  "base-finance",
-                  "base-conversationalai",
-                  "base-voicemail",
-                  "base-video"
-                ]
-              },
-              {
-                "type": "string"
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/InsightRunResponse"
+                }
               }
-            ]
+            }
+          }
+        },
+        "tags": [
+          "Insight"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/reporting/insight/preview": {
+      "post": {
+        "operationId": "InsightController_preview",
+        "summary": "Preview Insight",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "oneOf": [
+                  {
+                    "$ref": "#/components/schemas/CreateBarInsightFromCallTableDTO",
+                    "title": "CreateBarInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreatePieInsightFromCallTableDTO",
+                    "title": "CreatePieInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateLineInsightFromCallTableDTO",
+                    "title": "CreateLineInsightFromCallTableDTO"
+                  },
+                  {
+                    "$ref": "#/components/schemas/CreateTextInsightFromCallTableDTO",
+                    "title": "CreateTextInsightFromCallTableDTO"
+                  }
+                ],
+                "discriminator": {
+                  "propertyName": "type",
+                  "mapping": {
+                    "bar": "#/components/schemas/CreateBarInsightFromCallTableDTO",
+                    "pie": "#/components/schemas/CreatePieInsightFromCallTableDTO",
+                    "line": "#/components/schemas/CreateLineInsightFromCallTableDTO",
+                    "text": "#/components/schemas/CreateTextInsightFromCallTableDTO"
+                  }
+                }
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/InsightRunResponse"
+                }
+              }
+            }
           },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription. The list of languages Deepgram supports can be found here: https://developers.deepgram.com/docs/models-languages-overview",
-            "enum": [
-              "bg",
-              "ca",
-              "cs",
-              "da",
-              "da-DK",
-              "de",
-              "de-CH",
-              "el",
-              "en",
-              "en-AU",
-              "en-GB",
-              "en-IN",
-              "en-NZ",
-              "en-US",
-              "es",
-              "es-419",
-              "es-LATAM",
-              "et",
-              "fi",
-              "fr",
-              "fr-CA",
-              "hi",
-              "hi-Latn",
-              "hu",
-              "id",
-              "it",
-              "ja",
-              "ko",
-              "ko-KR",
-              "lt",
-              "lv",
-              "ms",
-              "multi",
-              "nl",
-              "nl-BE",
-              "no",
-              "pl",
-              "pt",
-              "pt-BR",
-              "ro",
-              "ru",
-              "sk",
-              "sv",
-              "sv-SE",
-              "ta",
-              "taq",
-              "th",
-              "th-TH",
-              "tr",
-              "uk",
-              "vi",
-              "zh",
-              "zh-CN",
-              "zh-HK",
-              "zh-Hans",
-              "zh-Hant",
-              "zh-TW"
-            ]
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/InsightRunResponse"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Insight"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/eval": {
+      "post": {
+        "operationId": "EvalController_create",
+        "summary": "Create Eval",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/CreateEvalDTO"
+              }
+            }
+          }
+        },
+        "responses": {
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Eval"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      },
+      "get": {
+        "operationId": "EvalController_getPaginated",
+        "summary": "List Evals",
+        "parameters": [
+          {
+            "name": "id",
+            "required": false,
+            "in": "query",
+            "schema": {
+              "type": "string"
+            }
           },
-          "smartFormat": {
-            "type": "boolean",
-            "description": "This will be use smart format option provided by Deepgram. It's default disabled because it can sometimes format numbers as times but it's getting better.",
-            "example": false
+          {
+            "name": "page",
+            "required": false,
+            "in": "query",
+            "description": "This is the page number to return. Defaults to 1.",
+            "schema": {
+              "minimum": 1,
+              "type": "number"
+            }
           },
-          "codeSwitchingEnabled": {
-            "type": "boolean",
-            "description": "This automatically switches the transcriber's language when the customer's language changes. Defaults to false.\n\nUsage:\n- If your customers switch languages mid-call, you can set this to true.\n\nNote:\n- To detect language changes, Vapi uses a custom trained model. Languages supported (X = limited support):\n  1. Arabic\n  2. Bengali\n  3. Cantonese\n  4. Chinese\n  5. Chinese Simplified (X)\n  6. Chinese Traditional (X)\n  7. English\n  8. Farsi (X)\n  9. French\n  10. German\n  11. Haitian Creole (X)\n  12. Hindi\n  13. Italian\n  14. Japanese\n  15. Korean\n  16. Portuguese\n  17. Russian\n  18. Spanish\n  19. Thai\n  20. Urdu\n  21. Vietnamese\n- To receive `language-change-detected` webhook events, add it to `assistant.serverMessages`.\n\n@default false",
-            "example": false
+          {
+            "name": "sortOrder",
+            "required": false,
+            "in": "query",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "schema": {
+              "enum": [
+                "ASC",
+                "DESC"
+              ],
+              "type": "string"
+            }
           },
-          "mipOptOut": {
-            "type": "boolean",
-            "description": "If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out\n\nThis will only be used if you are using your own Deepgram API key.\n\n@default false",
-            "example": false,
-            "default": false
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
           },
-          "numerals": {
-            "type": "boolean",
-            "description": "If set to true, this will cause deepgram to convert spoken numbers to literal numerals. For example, \"my phone number is nine-seven-two...\" would become \"my phone number is 972...\"\n\n@default false",
-            "example": false
+          {
+            "name": "limit",
+            "required": false,
+            "in": "query",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "schema": {
+              "minimum": 0,
+              "maximum": 1000,
+              "type": "number"
+            }
           },
-          "confidenceThreshold": {
-            "type": "number",
-            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.4
+          {
+            "name": "createdAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "keywords": {
-            "description": "These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here.",
-            "type": "array",
-            "items": {
-              "type": "string",
-              "pattern": "/^\\p{L}[\\p{L}\\d]*(?::[+-]?\\d+)?$/u"
+          {
+            "name": "createdAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
             }
           },
-          "keyterm": {
-            "description": "Keyterm Prompting allows you improve Keyword Recall Rate (KRR) for important keyterms or phrases up to 90%.",
-            "type": "array",
-            "items": {
+          {
+            "name": "createdAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
               "type": "string"
             }
           },
-          "endpointing": {
-            "type": "number",
-            "description": "This is the timeout after which Deepgram will send transcription on user silence. You can read in-depth documentation here: https://developers.deepgram.com/docs/endpointing.\n\nHere are the most important bits:\n- Defaults to 10. This is recommended for most use cases to optimize for latency.\n- 10 can cause some missing transcriptions since because of the shorter context. This mostly happens for one-word utterances. For those uses cases, it's recommended to try 300. It will add a bit of latency but the quality and reliability of the experience will be better.\n- If neither 10 nor 300 work, contact support@vapi.ai and we'll find another solution.\n\n@default 10",
-            "minimum": 10,
-            "maximum": 500
+          {
+            "name": "createdAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+          {
+            "name": "updatedAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/EvalPaginatedResponse"
+                }
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider"
-        ]
-      },
-      "ElevenLabsTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "11labs"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "scribe_v1"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "enum": [
-              "aa",
-              "ab",
-              "ae",
-              "af",
-              "ak",
-              "am",
-              "an",
-              "ar",
-              "as",
-              "av",
-              "ay",
-              "az",
-              "ba",
-              "be",
-              "bg",
-              "bh",
-              "bi",
-              "bm",
-              "bn",
-              "bo",
-              "br",
-              "bs",
-              "ca",
-              "ce",
-              "ch",
-              "co",
-              "cr",
-              "cs",
-              "cu",
-              "cv",
-              "cy",
-              "da",
-              "de",
-              "dv",
-              "dz",
-              "ee",
-              "el",
-              "en",
-              "eo",
-              "es",
-              "et",
-              "eu",
-              "fa",
-              "ff",
-              "fi",
-              "fj",
-              "fo",
-              "fr",
-              "fy",
-              "ga",
-              "gd",
-              "gl",
-              "gn",
-              "gu",
-              "gv",
-              "ha",
-              "he",
-              "hi",
-              "ho",
-              "hr",
-              "ht",
-              "hu",
-              "hy",
-              "hz",
-              "ia",
-              "id",
-              "ie",
-              "ig",
-              "ii",
-              "ik",
-              "io",
-              "is",
-              "it",
-              "iu",
-              "ja",
-              "jv",
-              "ka",
-              "kg",
-              "ki",
-              "kj",
-              "kk",
-              "kl",
-              "km",
-              "kn",
-              "ko",
-              "kr",
-              "ks",
-              "ku",
-              "kv",
-              "kw",
-              "ky",
-              "la",
-              "lb",
-              "lg",
-              "li",
-              "ln",
-              "lo",
-              "lt",
-              "lu",
-              "lv",
-              "mg",
-              "mh",
-              "mi",
-              "mk",
-              "ml",
-              "mn",
-              "mr",
-              "ms",
-              "mt",
-              "my",
-              "na",
-              "nb",
-              "nd",
-              "ne",
-              "ng",
-              "nl",
-              "nn",
-              "no",
-              "nr",
-              "nv",
-              "ny",
-              "oc",
-              "oj",
-              "om",
-              "or",
-              "os",
-              "pa",
-              "pi",
-              "pl",
-              "ps",
-              "pt",
-              "qu",
-              "rm",
-              "rn",
-              "ro",
-              "ru",
-              "rw",
-              "sa",
-              "sc",
-              "sd",
-              "se",
-              "sg",
-              "si",
-              "sk",
-              "sl",
-              "sm",
-              "sn",
-              "so",
-              "sq",
-              "sr",
-              "ss",
-              "st",
-              "su",
-              "sv",
-              "sw",
-              "ta",
-              "te",
-              "tg",
-              "th",
-              "ti",
-              "tk",
-              "tl",
-              "tn",
-              "to",
-              "tr",
-              "ts",
-              "tt",
-              "tw",
-              "ty",
-              "ug",
-              "uk",
-              "ur",
-              "uz",
-              "ve",
-              "vi",
-              "vo",
-              "wa",
-              "wo",
-              "xh",
-              "yi",
-              "yue",
-              "yo",
-              "za",
-              "zh",
-              "zu"
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/eval/{id}": {
+      "patch": {
+        "operationId": "EvalController_update",
+        "summary": "Update Eval",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/UpdateEvalDTO"
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider"
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Eval"
+                }
+              }
+            }
+          }
+        },
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "GladiaTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "gladia"
-            ]
-          },
-          "model": {
-            "description": "This is the Gladia model that will be used. Default is 'fast'",
-            "oneOf": [
-              {
-                "enum": [
-                  "fast",
-                  "accurate"
-                ]
+      "delete": {
+        "operationId": "EvalController_remove",
+        "summary": "Delete Eval",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Eval"
+                }
               }
-            ]
-          },
-          "languageBehaviour": {
-            "description": "Defines how the transcription model detects the audio language. Default value is 'automatic single language'.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "manual",
-                  "automatic single language",
-                  "automatic multiple languages"
-                ]
+            }
+          }
+        },
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      },
+      "get": {
+        "operationId": "EvalController_get",
+        "summary": "Get Eval",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Eval"
+                }
               }
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "Defines the language to use for the transcription. Required when languageBehaviour is 'manual'.",
-            "enum": [
-              "af",
-              "sq",
-              "am",
-              "ar",
-              "hy",
-              "as",
-              "az",
-              "ba",
-              "eu",
-              "be",
-              "bn",
-              "bs",
-              "br",
-              "bg",
-              "ca",
-              "zh",
-              "hr",
-              "cs",
-              "da",
-              "nl",
-              "en",
-              "et",
-              "fo",
-              "fi",
-              "fr",
-              "gl",
-              "ka",
-              "de",
-              "el",
-              "gu",
-              "ht",
-              "ha",
-              "haw",
-              "he",
-              "hi",
-              "hu",
-              "is",
-              "id",
-              "it",
-              "ja",
-              "jv",
-              "kn",
-              "kk",
-              "km",
-              "ko",
-              "lo",
-              "la",
-              "lv",
-              "ln",
-              "lt",
-              "lb",
-              "mk",
-              "mg",
-              "ms",
-              "ml",
-              "mt",
-              "mi",
-              "mr",
-              "mn",
-              "my",
-              "ne",
-              "no",
-              "nn",
-              "oc",
-              "ps",
-              "fa",
-              "pl",
-              "pt",
-              "pa",
-              "ro",
-              "ru",
-              "sa",
-              "sr",
-              "sn",
-              "sd",
-              "si",
-              "sk",
-              "sl",
-              "so",
-              "es",
-              "su",
-              "sw",
-              "sv",
-              "tl",
-              "tg",
-              "ta",
-              "tt",
-              "te",
-              "th",
-              "bo",
-              "tr",
-              "tk",
-              "uk",
-              "ur",
-              "uz",
-              "vi",
-              "cy",
-              "yi",
-              "yo"
-            ]
-          },
-          "transcriptionHint": {
-            "type": "string",
-            "description": "Provides a custom vocabulary to the model to improve accuracy of transcribing context specific words, technical terms, names, etc. If empty, this argument is ignored.\n⚠️ Warning ⚠️: Please be aware that the transcription_hint field has a character limit of 600. If you provide a transcription_hint longer than 600 characters, it will be automatically truncated to meet this limit.",
-            "maxLength": 600,
-            "example": "custom vocabulary"
-          },
-          "prosody": {
-            "type": "boolean",
-            "description": "If prosody is true, you will get a transcription that can contain prosodies i.e. (laugh) (giggles) (malefic laugh) (toss) (music)… Default value is false.",
-            "example": false
-          },
-          "audioEnhancer": {
-            "type": "boolean",
-            "description": "If true, audio will be pre-processed to improve accuracy but latency will increase. Default value is false.",
-            "example": false
-          },
-          "confidenceThreshold": {
-            "type": "number",
-            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.4
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+            }
+          }
+        },
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
+        ]
+      }
+    },
+    "/eval/run/{id}": {
+      "delete": {
+        "operationId": "EvalController_removeRun",
+        "summary": "Delete Eval Run",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/EvalRun"
+                }
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider"
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "SpeechmaticsTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "speechmatics"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "default"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "enum": [
-              "auto",
-              "ar",
-              "ba",
-              "eu",
-              "be",
-              "bn",
-              "bg",
-              "yue",
-              "ca",
-              "hr",
-              "cs",
-              "da",
-              "nl",
-              "en",
-              "eo",
-              "et",
-              "fi",
-              "fr",
-              "gl",
-              "de",
-              "el",
-              "he",
-              "hi",
-              "hu",
-              "id",
-              "ia",
-              "ga",
-              "it",
-              "ja",
-              "ko",
-              "lv",
-              "lt",
-              "ms",
-              "mt",
-              "cmn",
-              "mr",
-              "mn",
-              "no",
-              "fa",
-              "pl",
-              "pt",
-              "ro",
-              "ru",
-              "sk",
-              "sl",
-              "es",
-              "sw",
-              "sv",
-              "ta",
-              "th",
-              "tr",
-              "uk",
-              "ur",
-              "ug",
-              "vi",
-              "cy"
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
-              }
-            ]
+      "get": {
+        "operationId": "EvalController_getRun",
+        "summary": "Get Eval Run",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
           }
-        },
-        "required": [
-          "provider"
-        ]
-      },
-      "TalkscriberTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "talkscriber"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "whisper"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py",
-            "enum": [
-              "en",
-              "zh",
-              "de",
-              "es",
-              "ru",
-              "ko",
-              "fr",
-              "ja",
-              "pt",
-              "tr",
-              "pl",
-              "ca",
-              "nl",
-              "ar",
-              "sv",
-              "it",
-              "id",
-              "hi",
-              "fi",
-              "vi",
-              "he",
-              "uk",
-              "el",
-              "ms",
-              "cs",
-              "ro",
-              "da",
-              "hu",
-              "ta",
-              "no",
-              "th",
-              "ur",
-              "hr",
-              "bg",
-              "lt",
-              "la",
-              "mi",
-              "ml",
-              "cy",
-              "sk",
-              "te",
-              "fa",
-              "lv",
-              "bn",
-              "sr",
-              "az",
-              "sl",
-              "kn",
-              "et",
-              "mk",
-              "br",
-              "eu",
-              "is",
-              "hy",
-              "ne",
-              "mn",
-              "bs",
-              "kk",
-              "sq",
-              "sw",
-              "gl",
-              "mr",
-              "pa",
-              "si",
-              "km",
-              "sn",
-              "yo",
-              "so",
-              "af",
-              "oc",
-              "ka",
-              "be",
-              "tg",
-              "sd",
-              "gu",
-              "am",
-              "yi",
-              "lo",
-              "uz",
-              "fo",
-              "ht",
-              "ps",
-              "tk",
-              "nn",
-              "mt",
-              "sa",
-              "lb",
-              "my",
-              "bo",
-              "tl",
-              "mg",
-              "as",
-              "tt",
-              "haw",
-              "ln",
-              "ha",
-              "ba",
-              "jw",
-              "su",
-              "yue"
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/EvalRun"
+                }
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider"
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
-      },
-      "GoogleTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "google"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "gemini-2.0-flash-thinking-exp",
-              "gemini-2.0-pro-exp-02-05",
-              "gemini-2.0-flash",
-              "gemini-2.0-flash-lite",
-              "gemini-2.0-flash-lite-preview-02-05",
-              "gemini-2.0-flash-exp",
-              "gemini-2.0-flash-realtime-exp",
-              "gemini-1.5-flash",
-              "gemini-1.5-flash-002",
-              "gemini-1.5-pro",
-              "gemini-1.5-pro-002",
-              "gemini-1.0-pro"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription.",
-            "enum": [
-              "Multilingual",
-              "Arabic",
-              "Bengali",
-              "Bulgarian",
-              "Chinese",
-              "Croatian",
-              "Czech",
-              "Danish",
-              "Dutch",
-              "English",
-              "Estonian",
-              "Finnish",
-              "French",
-              "German",
-              "Greek",
-              "Hebrew",
-              "Hindi",
-              "Hungarian",
-              "Indonesian",
-              "Italian",
-              "Japanese",
-              "Korean",
-              "Latvian",
-              "Lithuanian",
-              "Norwegian",
-              "Polish",
-              "Portuguese",
-              "Romanian",
-              "Russian",
-              "Serbian",
-              "Slovak",
-              "Slovenian",
-              "Spanish",
-              "Swahili",
-              "Swedish",
-              "Thai",
-              "Turkish",
-              "Ukrainian",
-              "Vietnamese"
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+      }
+    },
+    "/eval/run": {
+      "post": {
+        "operationId": "EvalController_run",
+        "summary": "Create Eval Run",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/CreateEvalRunDTO"
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider"
-        ]
-      },
-      "OpenAITranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "openai"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "gpt-4o-transcribe",
-              "gpt-4o-mini-transcribe"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription.",
-            "enum": [
-              "af",
-              "ar",
-              "hy",
-              "az",
-              "be",
-              "bs",
-              "bg",
-              "ca",
-              "zh",
-              "hr",
-              "cs",
-              "da",
-              "nl",
-              "en",
-              "et",
-              "fi",
-              "fr",
-              "gl",
-              "de",
-              "el",
-              "he",
-              "hi",
-              "hu",
-              "is",
-              "id",
-              "it",
-              "ja",
-              "kn",
-              "kk",
-              "ko",
-              "lv",
-              "lt",
-              "mk",
-              "ms",
-              "mr",
-              "mi",
-              "ne",
-              "no",
-              "fa",
-              "pl",
-              "pt",
-              "ro",
-              "ru",
-              "sr",
-              "sk",
-              "sl",
-              "es",
-              "sw",
-              "sv",
-              "tl",
-              "ta",
-              "th",
-              "tr",
-              "uk",
-              "ur",
-              "vi",
-              "cy"
-            ]
+        "responses": {
+          "200": {
+            "description": ""
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object"
+                }
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider",
-          "model"
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "FallbackAssemblyAITranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "assembly-ai"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription.",
-            "enum": [
-              "en"
-            ]
-          },
-          "confidenceThreshold": {
-            "type": "number",
-            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.4
+      "get": {
+        "operationId": "EvalController_getRunsPaginated",
+        "summary": "List Eval Runs",
+        "parameters": [
+          {
+            "name": "id",
+            "required": false,
+            "in": "query",
+            "schema": {
+              "type": "string"
+            }
           },
-          "realtimeUrl": {
-            "type": "string",
-            "description": "The WebSocket URL that the transcriber connects to."
+          {
+            "name": "page",
+            "required": false,
+            "in": "query",
+            "description": "This is the page number to return. Defaults to 1.",
+            "schema": {
+              "minimum": 1,
+              "type": "number"
+            }
           },
-          "wordBoost": {
-            "description": "Add up to 2500 characters of custom vocabulary.",
-            "type": "array",
-            "items": {
-              "type": "string",
-              "maxLength": 2500
+          {
+            "name": "sortOrder",
+            "required": false,
+            "in": "query",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "schema": {
+              "enum": [
+                "ASC",
+                "DESC"
+              ],
+              "type": "string"
             }
           },
-          "endUtteranceSilenceThreshold": {
-            "type": "number",
-            "description": "The duration of the end utterance silence threshold in milliseconds."
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
           },
-          "disablePartialTranscripts": {
-            "type": "boolean",
-            "description": "Disable partial transcripts.\nSet to `true` to not receive partial transcripts. Defaults to `false`."
-          }
-        },
-        "required": [
-          "provider"
-        ]
-      },
-      "FallbackAzureSpeechTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "azure"
-            ]
+          {
+            "name": "limit",
+            "required": false,
+            "in": "query",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "schema": {
+              "minimum": 0,
+              "maximum": 1000,
+              "type": "number"
+            }
           },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt",
-            "enum": [
-              "af-ZA",
-              "am-ET",
-              "ar-AE",
-              "ar-BH",
-              "ar-DZ",
-              "ar-EG",
-              "ar-IL",
-              "ar-IQ",
-              "ar-JO",
-              "ar-KW",
-              "ar-LB",
-              "ar-LY",
-              "ar-MA",
-              "ar-OM",
-              "ar-PS",
-              "ar-QA",
-              "ar-SA",
-              "ar-SY",
-              "ar-TN",
-              "ar-YE",
-              "az-AZ",
-              "bg-BG",
-              "bn-IN",
-              "bs-BA",
-              "ca-ES",
-              "cs-CZ",
-              "cy-GB",
-              "da-DK",
-              "de-AT",
-              "de-CH",
-              "de-DE",
-              "el-GR",
-              "en-AU",
-              "en-CA",
-              "en-GB",
-              "en-GH",
-              "en-HK",
-              "en-IE",
-              "en-IN",
-              "en-KE",
-              "en-NG",
-              "en-NZ",
-              "en-PH",
-              "en-SG",
-              "en-TZ",
-              "en-US",
-              "en-ZA",
-              "es-AR",
-              "es-BO",
-              "es-CL",
-              "es-CO",
-              "es-CR",
-              "es-CU",
-              "es-DO",
-              "es-EC",
-              "es-ES",
-              "es-GQ",
-              "es-GT",
-              "es-HN",
-              "es-MX",
-              "es-NI",
-              "es-PA",
-              "es-PE",
-              "es-PR",
-              "es-PY",
-              "es-SV",
-              "es-US",
-              "es-UY",
-              "es-VE",
-              "et-EE",
-              "eu-ES",
-              "fa-IR",
-              "fi-FI",
-              "fil-PH",
-              "fr-BE",
-              "fr-CA",
-              "fr-CH",
-              "fr-FR",
-              "ga-IE",
-              "gl-ES",
-              "gu-IN",
-              "he-IL",
-              "hi-IN",
-              "hr-HR",
-              "hu-HU",
-              "hy-AM",
-              "id-ID",
-              "is-IS",
-              "it-CH",
-              "it-IT",
-              "ja-JP",
-              "jv-ID",
-              "ka-GE",
-              "kk-KZ",
-              "km-KH",
-              "kn-IN",
-              "ko-KR",
-              "lo-LA",
-              "lt-LT",
-              "lv-LV",
-              "mk-MK",
-              "ml-IN",
-              "mn-MN",
-              "mr-IN",
-              "ms-MY",
-              "mt-MT",
-              "my-MM",
-              "nb-NO",
-              "ne-NP",
-              "nl-BE",
-              "nl-NL",
-              "pa-IN",
-              "pl-PL",
-              "ps-AF",
-              "pt-BR",
-              "pt-PT",
-              "ro-RO",
-              "ru-RU",
-              "si-LK",
-              "sk-SK",
-              "sl-SI",
-              "so-SO",
-              "sq-AL",
-              "sr-RS",
-              "sv-SE",
-              "sw-KE",
-              "sw-TZ",
-              "ta-IN",
-              "te-IN",
-              "th-TH",
-              "tr-TR",
-              "uk-UA",
-              "ur-IN",
-              "uz-UZ",
-              "vi-VN",
-              "wuu-CN",
-              "yue-CN",
-              "zh-CN",
-              "zh-CN-shandong",
-              "zh-CN-sichuan",
-              "zh-HK",
-              "zh-TW",
-              "zu-ZA"
-            ]
+          {
+            "name": "createdAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "createdAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "createdAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "createdAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/EvalRunPaginatedResponse"
+                }
+              }
+            }
           }
         },
-        "required": [
-          "provider"
+        "tags": [
+          "Eval"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
-      },
-      "FallbackCustomTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used. Use `custom-transcriber` for providers that are not natively supported.",
-            "enum": [
-              "custom-transcriber"
-            ]
-          },
-          "server": {
-            "description": "This is where the transcription request will be sent.\n\nUsage:\n1. Vapi will initiate a websocket connection with `server.url`.\n\n2. Vapi will send an initial text frame with the sample rate. Format:\n```\n    {\n      \"type\": \"start\",\n      \"encoding\": \"linear16\", // 16-bit raw PCM format\n      \"container\": \"raw\",\n      \"sampleRate\": {{sampleRate}},\n      \"channels\": 2 // customer is channel 0, assistant is channel 1\n    }\n```\n\n3. Vapi will send the audio data in 16-bit raw PCM format as binary frames.\n\n4. You can read the messages something like this:\n```\nws.on('message', (data, isBinary) => {\n  if (isBinary) {\n    pcmBuffer = Buffer.concat([pcmBuffer, data]);\n    console.log(`Received PCM data, buffer size: ${pcmBuffer.length}`);\n  } else {\n    console.log('Received message:', JSON.parse(data.toString()));\n  }\n});\n```\n\n5. You will respond with transcriptions as you have them. Format:\n```\n {\n    \"type\": \"transcriber-response\",\n    \"transcription\": \"Hello, world!\",\n    \"channel\": \"customer\" | \"assistant\"\n }\n```",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
+      }
+    },
+    "/observability/scorecard/{id}": {
+      "get": {
+        "operationId": "ScorecardController_get",
+        "summary": "Get Scorecard",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Scorecard"
+                }
               }
-            ]
+            }
           }
         },
-        "required": [
-          "provider",
-          "server"
+        "tags": [
+          "Observability/Scorecard"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "FallbackDeepgramTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "deepgram"
-            ]
-          },
-          "model": {
-            "description": "This is the Deepgram model that will be used. A list of models can be found here: https://developers.deepgram.com/docs/models-languages-overview",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "nova-3",
-                  "nova-3-general",
-                  "nova-3-medical",
-                  "nova-2",
-                  "nova-2-general",
-                  "nova-2-meeting",
-                  "nova-2-phonecall",
-                  "nova-2-finance",
-                  "nova-2-conversationalai",
-                  "nova-2-voicemail",
-                  "nova-2-video",
-                  "nova-2-medical",
-                  "nova-2-drivethru",
-                  "nova-2-automotive",
-                  "nova",
-                  "nova-general",
-                  "nova-phonecall",
-                  "nova-medical",
-                  "enhanced",
-                  "enhanced-general",
-                  "enhanced-meeting",
-                  "enhanced-phonecall",
-                  "enhanced-finance",
-                  "base",
-                  "base-general",
-                  "base-meeting",
-                  "base-phonecall",
-                  "base-finance",
-                  "base-conversationalai",
-                  "base-voicemail",
-                  "base-video"
-                ]
-              },
-              {
-                "type": "string"
+      "patch": {
+        "operationId": "ScorecardController_update",
+        "summary": "Update Scorecard",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/UpdateScorecardDTO"
               }
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription. The list of languages Deepgram supports can be found here: https://developers.deepgram.com/docs/models-languages-overview",
-            "enum": [
-              "bg",
-              "ca",
-              "cs",
-              "da",
-              "da-DK",
-              "de",
-              "de-CH",
-              "el",
-              "en",
-              "en-AU",
-              "en-GB",
-              "en-IN",
-              "en-NZ",
-              "en-US",
-              "es",
-              "es-419",
-              "es-LATAM",
-              "et",
-              "fi",
-              "fr",
-              "fr-CA",
-              "hi",
-              "hi-Latn",
-              "hu",
-              "id",
-              "it",
-              "ja",
-              "ko",
-              "ko-KR",
-              "lt",
-              "lv",
-              "ms",
-              "multi",
-              "nl",
-              "nl-BE",
-              "no",
-              "pl",
-              "pt",
-              "pt-BR",
-              "ro",
-              "ru",
-              "sk",
-              "sv",
-              "sv-SE",
-              "ta",
-              "taq",
-              "th",
-              "th-TH",
-              "tr",
-              "uk",
-              "vi",
-              "zh",
-              "zh-CN",
-              "zh-HK",
-              "zh-Hans",
-              "zh-Hant",
-              "zh-TW"
-            ]
-          },
-          "smartFormat": {
-            "type": "boolean",
-            "description": "This will be use smart format option provided by Deepgram. It's default disabled because it can sometimes format numbers as times but it's getting better.",
-            "example": false
-          },
-          "codeSwitchingEnabled": {
-            "type": "boolean",
-            "description": "This automatically switches the transcriber's language when the customer's language changes. Defaults to false.\n\nUsage:\n- If your customers switch languages mid-call, you can set this to true.\n\nNote:\n- To detect language changes, Vapi uses a custom trained model. Languages supported (X = limited support):\n  1. Arabic\n  2. Bengali\n  3. Cantonese\n  4. Chinese\n  5. Chinese Simplified (X)\n  6. Chinese Traditional (X)\n  7. English\n  8. Farsi (X)\n  9. French\n  10. German\n  11. Haitian Creole (X)\n  12. Hindi\n  13. Italian\n  14. Japanese\n  15. Korean\n  16. Portuguese\n  17. Russian\n  18. Spanish\n  19. Thai\n  20. Urdu\n  21. Vietnamese\n- To receive `language-change-detected` webhook events, add it to `assistant.serverMessages`.\n\n@default false",
-            "example": false
-          },
-          "mipOptOut": {
-            "type": "boolean",
-            "description": "If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out\n\nThis will only be used if you are using your own Deepgram API key.\n\n@default false",
-            "example": false,
-            "default": false
-          },
-          "numerals": {
-            "type": "boolean",
-            "description": "If set to true, this will cause deepgram to convert spoken numbers to literal numerals. For example, \"my phone number is nine-seven-two...\" would become \"my phone number is 972...\"\n\n@default false",
-            "example": false
-          },
-          "confidenceThreshold": {
-            "type": "number",
-            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.4
-          },
-          "keywords": {
-            "description": "These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here.",
-            "type": "array",
-            "items": {
-              "type": "string",
-              "pattern": "/^\\p{L}[\\p{L}\\d]*(?::[+-]?\\d+)?$/u"
             }
-          },
-          "keyterm": {
-            "description": "Keyterm Prompting allows you improve Keyword Recall Rate (KRR) for important keyterms or phrases up to 90%.",
-            "type": "array",
-            "items": {
-              "type": "string"
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Scorecard"
+                }
+              }
             }
-          },
-          "endpointing": {
-            "type": "number",
-            "description": "This is the timeout after which Deepgram will send transcription on user silence. You can read in-depth documentation here: https://developers.deepgram.com/docs/endpointing.\n\nHere are the most important bits:\n- Defaults to 10. This is recommended for most use cases to optimize for latency.\n- 10 can cause some missing transcriptions since because of the shorter context. This mostly happens for one-word utterances. For those uses cases, it's recommended to try 300. It will add a bit of latency but the quality and reliability of the experience will be better.\n- If neither 10 nor 300 work, contact support@vapi.ai and we'll find another solution.\n\n@default 10",
-            "minimum": 10,
-            "maximum": 500
           }
         },
-        "required": [
-          "provider"
+        "tags": [
+          "Observability/Scorecard"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "FallbackElevenLabsTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "11labs"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "scribe_v1"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "enum": [
-              "aa",
-              "ab",
-              "ae",
-              "af",
-              "ak",
-              "am",
-              "an",
-              "ar",
-              "as",
-              "av",
-              "ay",
-              "az",
-              "ba",
-              "be",
-              "bg",
-              "bh",
-              "bi",
-              "bm",
-              "bn",
-              "bo",
-              "br",
-              "bs",
-              "ca",
-              "ce",
-              "ch",
-              "co",
-              "cr",
-              "cs",
-              "cu",
-              "cv",
-              "cy",
-              "da",
-              "de",
-              "dv",
-              "dz",
-              "ee",
-              "el",
-              "en",
-              "eo",
-              "es",
-              "et",
-              "eu",
-              "fa",
-              "ff",
-              "fi",
-              "fj",
-              "fo",
-              "fr",
-              "fy",
-              "ga",
-              "gd",
-              "gl",
-              "gn",
-              "gu",
-              "gv",
-              "ha",
-              "he",
-              "hi",
-              "ho",
-              "hr",
-              "ht",
-              "hu",
-              "hy",
-              "hz",
-              "ia",
-              "id",
-              "ie",
-              "ig",
-              "ii",
-              "ik",
-              "io",
-              "is",
-              "it",
-              "iu",
-              "ja",
-              "jv",
-              "ka",
-              "kg",
-              "ki",
-              "kj",
-              "kk",
-              "kl",
-              "km",
-              "kn",
-              "ko",
-              "kr",
-              "ks",
-              "ku",
-              "kv",
-              "kw",
-              "ky",
-              "la",
-              "lb",
-              "lg",
-              "li",
-              "ln",
-              "lo",
-              "lt",
-              "lu",
-              "lv",
-              "mg",
-              "mh",
-              "mi",
-              "mk",
-              "ml",
-              "mn",
-              "mr",
-              "ms",
-              "mt",
-              "my",
-              "na",
-              "nb",
-              "nd",
-              "ne",
-              "ng",
-              "nl",
-              "nn",
-              "no",
-              "nr",
-              "nv",
-              "ny",
-              "oc",
-              "oj",
-              "om",
-              "or",
-              "os",
-              "pa",
-              "pi",
-              "pl",
-              "ps",
-              "pt",
-              "qu",
-              "rm",
-              "rn",
-              "ro",
-              "ru",
-              "rw",
-              "sa",
-              "sc",
-              "sd",
-              "se",
-              "sg",
-              "si",
-              "sk",
-              "sl",
-              "sm",
-              "sn",
-              "so",
-              "sq",
-              "sr",
-              "ss",
-              "st",
-              "su",
-              "sv",
-              "sw",
-              "ta",
-              "te",
-              "tg",
-              "th",
-              "ti",
-              "tk",
-              "tl",
-              "tn",
-              "to",
-              "tr",
-              "ts",
-              "tt",
-              "tw",
-              "ty",
-              "ug",
-              "uk",
-              "ur",
-              "uz",
-              "ve",
-              "vi",
-              "vo",
-              "wa",
-              "wo",
-              "xh",
-              "yi",
-              "yue",
-              "yo",
-              "za",
-              "zh",
-              "zu"
-            ]
+      "delete": {
+        "operationId": "ScorecardController_remove",
+        "summary": "Delete Scorecard",
+        "parameters": [
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Scorecard"
+                }
+              }
+            }
           }
         },
-        "required": [
-          "provider"
+        "tags": [
+          "Observability/Scorecard"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
-      },
-      "FallbackGladiaTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "gladia"
-            ]
+      }
+    },
+    "/observability/scorecard": {
+      "get": {
+        "operationId": "ScorecardController_getPaginated",
+        "summary": "List Scorecards",
+        "parameters": [
+          {
+            "name": "id",
+            "required": false,
+            "in": "query",
+            "schema": {
+              "type": "string"
+            }
           },
-          "model": {
-            "description": "This is the Gladia model that will be used. Default is 'fast'",
-            "oneOf": [
-              {
-                "enum": [
-                  "fast",
-                  "accurate"
-                ]
-              }
-            ]
+          {
+            "name": "page",
+            "required": false,
+            "in": "query",
+            "description": "This is the page number to return. Defaults to 1.",
+            "schema": {
+              "minimum": 1,
+              "type": "number"
+            }
           },
-          "languageBehaviour": {
-            "description": "Defines how the transcription model detects the audio language. Default value is 'automatic single language'.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "manual",
-                  "automatic single language",
-                  "automatic multiple languages"
-                ]
-              }
-            ]
+          {
+            "name": "sortOrder",
+            "required": false,
+            "in": "query",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "schema": {
+              "enum": [
+                "ASC",
+                "DESC"
+              ],
+              "type": "string"
+            }
           },
-          "language": {
-            "type": "string",
-            "description": "Defines the language to use for the transcription. Required when languageBehaviour is 'manual'.",
-            "enum": [
-              "af",
-              "sq",
-              "am",
-              "ar",
-              "hy",
-              "as",
-              "az",
-              "ba",
-              "eu",
-              "be",
-              "bn",
-              "bs",
-              "br",
-              "bg",
-              "ca",
-              "zh",
-              "hr",
-              "cs",
-              "da",
-              "nl",
-              "en",
-              "et",
-              "fo",
-              "fi",
-              "fr",
-              "gl",
-              "ka",
-              "de",
-              "el",
-              "gu",
-              "ht",
-              "ha",
-              "haw",
-              "he",
-              "hi",
-              "hu",
-              "is",
-              "id",
-              "it",
-              "ja",
-              "jv",
-              "kn",
-              "kk",
-              "km",
-              "ko",
-              "lo",
-              "la",
-              "lv",
-              "ln",
-              "lt",
-              "lb",
-              "mk",
-              "mg",
-              "ms",
-              "ml",
-              "mt",
-              "mi",
-              "mr",
-              "mn",
-              "my",
-              "ne",
-              "no",
-              "nn",
-              "oc",
-              "ps",
-              "fa",
-              "pl",
-              "pt",
-              "pa",
-              "ro",
-              "ru",
-              "sa",
-              "sr",
-              "sn",
-              "sd",
-              "si",
-              "sk",
-              "sl",
-              "so",
-              "es",
-              "su",
-              "sw",
-              "sv",
-              "tl",
-              "tg",
-              "ta",
-              "tt",
-              "te",
-              "th",
-              "bo",
-              "tr",
-              "tk",
-              "uk",
-              "ur",
-              "uz",
-              "vi",
-              "cy",
-              "yi",
-              "yo"
-            ]
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
           },
-          "transcriptionHint": {
-            "type": "string",
-            "description": "Provides a custom vocabulary to the model to improve accuracy of transcribing context specific words, technical terms, names, etc. If empty, this argument is ignored.\n⚠️ Warning ⚠️: Please be aware that the transcription_hint field has a character limit of 600. If you provide a transcription_hint longer than 600 characters, it will be automatically truncated to meet this limit.",
-            "maxLength": 600,
-            "example": "custom vocabulary"
+          {
+            "name": "limit",
+            "required": false,
+            "in": "query",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "schema": {
+              "minimum": 0,
+              "maximum": 1000,
+              "type": "number"
+            }
           },
-          "prosody": {
-            "type": "boolean",
-            "description": "If prosody is true, you will get a transcription that can contain prosodies i.e. (laugh) (giggles) (malefic laugh) (toss) (music)… Default value is false.",
-            "example": false
+          {
+            "name": "createdAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "audioEnhancer": {
-            "type": "boolean",
-            "description": "If true, audio will be pre-processed to improve accuracy but latency will increase. Default value is false.",
-            "example": false
+          {
+            "name": "createdAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "confidenceThreshold": {
-            "type": "number",
-            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.4
-          }
-        },
-        "required": [
-          "provider"
-        ]
-      },
-      "FallbackSpeechmaticsTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "speechmatics"
-            ]
+          {
+            "name": "createdAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "default"
-            ]
+          {
+            "name": "createdAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "language": {
-            "type": "string",
-            "enum": [
-              "auto",
-              "ar",
-              "ba",
-              "eu",
-              "be",
-              "bn",
-              "bg",
-              "yue",
-              "ca",
-              "hr",
-              "cs",
-              "da",
-              "nl",
-              "en",
-              "eo",
-              "et",
-              "fi",
-              "fr",
-              "gl",
-              "de",
-              "el",
-              "he",
-              "hi",
-              "hu",
-              "id",
-              "ia",
-              "ga",
-              "it",
-              "ja",
-              "ko",
-              "lv",
-              "lt",
-              "ms",
-              "mt",
-              "cmn",
-              "mr",
-              "mn",
-              "no",
-              "fa",
-              "pl",
-              "pt",
-              "ro",
-              "ru",
-              "sk",
-              "sl",
-              "es",
-              "sw",
-              "sv",
-              "ta",
-              "th",
-              "tr",
-              "uk",
-              "ur",
-              "ug",
-              "vi",
-              "cy"
-            ]
-          }
-        },
-        "required": [
-          "provider"
-        ]
-      },
-      "FallbackTalkscriberTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "talkscriber"
-            ]
+          {
+            "name": "updatedAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "whisper"
-            ]
+          {
+            "name": "updatedAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py",
-            "enum": [
-              "en",
-              "zh",
-              "de",
-              "es",
-              "ru",
-              "ko",
-              "fr",
-              "ja",
-              "pt",
-              "tr",
-              "pl",
-              "ca",
-              "nl",
-              "ar",
-              "sv",
-              "it",
-              "id",
-              "hi",
-              "fi",
-              "vi",
-              "he",
-              "uk",
-              "el",
-              "ms",
-              "cs",
-              "ro",
-              "da",
-              "hu",
-              "ta",
-              "no",
-              "th",
-              "ur",
-              "hr",
-              "bg",
-              "lt",
-              "la",
-              "mi",
-              "ml",
-              "cy",
-              "sk",
-              "te",
-              "fa",
-              "lv",
-              "bn",
-              "sr",
-              "az",
-              "sl",
-              "kn",
-              "et",
-              "mk",
-              "br",
-              "eu",
-              "is",
-              "hy",
-              "ne",
-              "mn",
-              "bs",
-              "kk",
-              "sq",
-              "sw",
-              "gl",
-              "mr",
-              "pa",
-              "si",
-              "km",
-              "sn",
-              "yo",
-              "so",
-              "af",
-              "oc",
-              "ka",
-              "be",
-              "tg",
-              "sd",
-              "gu",
-              "am",
-              "yi",
-              "lo",
-              "uz",
-              "fo",
-              "ht",
-              "ps",
-              "tk",
-              "nn",
-              "mt",
-              "sa",
-              "lb",
-              "my",
-              "bo",
-              "tl",
-              "mg",
-              "as",
-              "tt",
-              "haw",
-              "ln",
-              "ha",
-              "ba",
-              "jw",
-              "su",
-              "yue"
-            ]
+          {
+            "name": "updatedAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/ScorecardPaginatedResponse"
+                }
+              }
+            }
           }
         },
-        "required": [
-          "provider"
+        "tags": [
+          "Observability/Scorecard"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "FallbackGoogleTranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "google"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "gemini-2.0-flash-thinking-exp",
-              "gemini-2.0-pro-exp-02-05",
-              "gemini-2.0-flash",
-              "gemini-2.0-flash-lite",
-              "gemini-2.0-flash-lite-preview-02-05",
-              "gemini-2.0-flash-exp",
-              "gemini-2.0-flash-realtime-exp",
-              "gemini-1.5-flash",
-              "gemini-1.5-flash-002",
-              "gemini-1.5-pro",
-              "gemini-1.5-pro-002",
-              "gemini-1.0-pro"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription.",
-            "enum": [
-              "Multilingual",
-              "Arabic",
-              "Bengali",
-              "Bulgarian",
-              "Chinese",
-              "Croatian",
-              "Czech",
-              "Danish",
-              "Dutch",
-              "English",
-              "Estonian",
-              "Finnish",
-              "French",
-              "German",
-              "Greek",
-              "Hebrew",
-              "Hindi",
-              "Hungarian",
-              "Indonesian",
-              "Italian",
-              "Japanese",
-              "Korean",
-              "Latvian",
-              "Lithuanian",
-              "Norwegian",
-              "Polish",
-              "Portuguese",
-              "Romanian",
-              "Russian",
-              "Serbian",
-              "Slovak",
-              "Slovenian",
-              "Spanish",
-              "Swahili",
-              "Swedish",
-              "Thai",
-              "Turkish",
-              "Ukrainian",
-              "Vietnamese"
-            ]
+      "post": {
+        "operationId": "ScorecardController_create",
+        "summary": "Create Scorecard",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/CreateScorecardDTO"
+              }
+            }
           }
         },
-        "required": [
-          "provider"
-        ]
-      },
-      "FallbackOpenAITranscriber": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the transcription provider that will be used.",
-            "enum": [
-              "openai"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for the transcription.",
-            "enum": [
-              "gpt-4o-transcribe",
-              "gpt-4o-mini-transcribe"
-            ]
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be set for the transcription.",
-            "enum": [
-              "af",
-              "ar",
-              "hy",
-              "az",
-              "be",
-              "bs",
-              "bg",
-              "ca",
-              "zh",
-              "hr",
-              "cs",
-              "da",
-              "nl",
-              "en",
-              "et",
-              "fi",
-              "fr",
-              "gl",
-              "de",
-              "el",
-              "he",
-              "hi",
-              "hu",
-              "is",
-              "id",
-              "it",
-              "ja",
-              "kn",
-              "kk",
-              "ko",
-              "lv",
-              "lt",
-              "mk",
-              "ms",
-              "mr",
-              "mi",
-              "ne",
-              "no",
-              "fa",
-              "pl",
-              "pt",
-              "ro",
-              "ru",
-              "sr",
-              "sk",
-              "sl",
-              "es",
-              "sw",
-              "sv",
-              "tl",
-              "ta",
-              "th",
-              "tr",
-              "uk",
-              "ur",
-              "vi",
-              "cy"
-            ]
+        "responses": {
+          "201": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/Scorecard"
+                }
+              }
+            }
           }
         },
-        "required": [
-          "provider",
-          "model"
+        "tags": [
+          "Observability/Scorecard"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
-      },
-      "LangfuseObservabilityPlan": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "langfuse"
-            ]
+      }
+    },
+    "/provider/{provider}/{resourceName}": {
+      "post": {
+        "operationId": "ProviderResourceController_createProviderResource",
+        "summary": "Create Provider Resource",
+        "parameters": [
+          {
+            "name": "content-type",
+            "required": true,
+            "in": "header",
+            "schema": {
+              "type": "string"
+            }
           },
-          "tags": {
-            "description": "This is an array of tags to be added to the Langfuse trace. Tags allow you to categorize and filter traces. https://langfuse.com/docs/tracing-features/tags",
-            "type": "array",
-            "items": {
+          {
+            "name": "provider",
+            "required": true,
+            "in": "path",
+            "description": "The provider (e.g., 11labs)",
+            "schema": {
+              "enum": [
+                "cartesia",
+                "11labs"
+              ],
               "type": "string"
             }
           },
-          "metadata": {
-            "type": "object",
-            "description": "This is a JSON object that will be added to the Langfuse trace. Traces can be enriched with metadata to better understand your users, application, and experiments. https://langfuse.com/docs/tracing-features/metadata\nBy default it includes the call metadata, assistant metadata, and assistant overrides."
+          {
+            "name": "resourceName",
+            "required": true,
+            "in": "path",
+            "description": "The resource name (e.g., pronunciation-dictionary)",
+            "schema": {
+              "enum": [
+                "pronunciation-dictionary"
+              ],
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "201": {
+            "description": "Successfully created provider resource",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/ProviderResource"
+                }
+              }
+            }
           }
         },
-        "required": [
-          "provider",
-          "tags"
+        "tags": [
+          "Provider Resources"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "TextContent": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "enum": [
-              "text"
-            ]
+      "get": {
+        "operationId": "ProviderResourceController_getProviderResourcesPaginated",
+        "summary": "List Provider Resources",
+        "parameters": [
+          {
+            "name": "provider",
+            "required": true,
+            "in": "path",
+            "description": "The provider (e.g., 11labs)",
+            "schema": {
+              "enum": [
+                "cartesia",
+                "11labs"
+              ],
+              "type": "string"
+            }
           },
-          "text": {
-            "type": "string"
+          {
+            "name": "resourceName",
+            "required": true,
+            "in": "path",
+            "description": "The resource name (e.g., pronunciation-dictionary)",
+            "schema": {
+              "enum": [
+                "pronunciation-dictionary"
+              ],
+              "type": "string"
+            }
           },
-          "language": {
-            "type": "string",
-            "enum": [
-              "aa",
-              "ab",
-              "ae",
-              "af",
-              "ak",
-              "am",
-              "an",
-              "ar",
-              "as",
-              "av",
-              "ay",
-              "az",
-              "ba",
-              "be",
-              "bg",
-              "bh",
-              "bi",
-              "bm",
-              "bn",
-              "bo",
-              "br",
-              "bs",
-              "ca",
-              "ce",
-              "ch",
-              "co",
-              "cr",
-              "cs",
-              "cu",
-              "cv",
-              "cy",
-              "da",
-              "de",
-              "dv",
-              "dz",
-              "ee",
-              "el",
-              "en",
-              "eo",
-              "es",
-              "et",
-              "eu",
-              "fa",
-              "ff",
-              "fi",
-              "fj",
-              "fo",
-              "fr",
-              "fy",
-              "ga",
-              "gd",
-              "gl",
-              "gn",
-              "gu",
-              "gv",
-              "ha",
-              "he",
-              "hi",
-              "ho",
-              "hr",
-              "ht",
-              "hu",
-              "hy",
-              "hz",
-              "ia",
-              "id",
-              "ie",
-              "ig",
-              "ii",
-              "ik",
-              "io",
-              "is",
-              "it",
-              "iu",
-              "ja",
-              "jv",
-              "ka",
-              "kg",
-              "ki",
-              "kj",
-              "kk",
-              "kl",
-              "km",
-              "kn",
-              "ko",
-              "kr",
-              "ks",
-              "ku",
-              "kv",
-              "kw",
-              "ky",
-              "la",
-              "lb",
-              "lg",
-              "li",
-              "ln",
-              "lo",
-              "lt",
-              "lu",
-              "lv",
-              "mg",
-              "mh",
-              "mi",
-              "mk",
-              "ml",
-              "mn",
-              "mr",
-              "ms",
-              "mt",
-              "my",
-              "na",
-              "nb",
-              "nd",
-              "ne",
-              "ng",
-              "nl",
-              "nn",
-              "no",
-              "nr",
-              "nv",
-              "ny",
-              "oc",
-              "oj",
-              "om",
-              "or",
-              "os",
-              "pa",
-              "pi",
-              "pl",
-              "ps",
-              "pt",
-              "qu",
-              "rm",
-              "rn",
-              "ro",
-              "ru",
-              "rw",
-              "sa",
-              "sc",
-              "sd",
-              "se",
-              "sg",
-              "si",
-              "sk",
-              "sl",
-              "sm",
-              "sn",
-              "so",
-              "sq",
-              "sr",
-              "ss",
-              "st",
-              "su",
-              "sv",
-              "sw",
-              "ta",
-              "te",
-              "tg",
-              "th",
-              "ti",
-              "tk",
-              "tl",
-              "tn",
-              "to",
-              "tr",
-              "ts",
-              "tt",
-              "tw",
-              "ty",
-              "ug",
-              "uk",
-              "ur",
-              "uz",
-              "ve",
-              "vi",
-              "vo",
-              "wa",
-              "wo",
-              "xh",
-              "yi",
-              "yue",
-              "yo",
-              "za",
-              "zh",
-              "zu"
-            ]
-          }
-        },
-        "required": [
-          "type",
-          "text",
-          "language"
-        ]
-      },
-      "Condition": {
-        "type": "object",
-        "properties": {
-          "operator": {
-            "type": "string",
-            "description": "This is the operator you want to use to compare the parameter and value.",
-            "enum": [
-              "eq",
-              "neq",
-              "gt",
-              "gte",
-              "lt",
-              "lte"
-            ]
+          {
+            "name": "id",
+            "required": false,
+            "in": "query",
+            "schema": {
+              "type": "string"
+            }
           },
-          "param": {
-            "type": "string",
-            "description": "This is the name of the parameter that you want to check.",
-            "maxLength": 1000
+          {
+            "name": "resourceId",
+            "required": false,
+            "in": "query",
+            "schema": {
+              "type": "string"
+            }
           },
-          "value": {
-            "type": "object",
-            "description": "This is the value you want to compare against the parameter.",
-            "maxLength": 1000
-          }
-        },
-        "required": [
-          "operator",
-          "param",
-          "value"
-        ]
-      },
-      "ToolMessageStart": {
-        "type": "object",
-        "properties": {
-          "contents": {
-            "type": "array",
-            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TextContent",
-                  "title": "Text"
-                }
-              ]
+          {
+            "name": "page",
+            "required": false,
+            "in": "query",
+            "description": "This is the page number to return. Defaults to 1.",
+            "schema": {
+              "minimum": 1,
+              "type": "number"
             }
           },
-          "type": {
-            "type": "string",
-            "enum": [
-              "request-start"
-            ],
-            "description": "This message is triggered when the tool call starts.\n\nThis message is never triggered for async tools.\n\nIf this message is not provided, one of the default filler messages \"Hold on a sec\", \"One moment\", \"Just a sec\", \"Give me a moment\" or \"This'll just take a sec\" will be used."
+          {
+            "name": "sortOrder",
+            "required": false,
+            "in": "query",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "schema": {
+              "enum": [
+                "ASC",
+                "DESC"
+              ],
+              "type": "string"
+            }
           },
-          "blocking": {
-            "type": "boolean",
-            "description": "This is an optional boolean that if true, the tool call will only trigger after the message is spoken. Default is false.\n\n@default false",
-            "example": false,
-            "default": false
+          {
+            "name": "sortBy",
+            "required": false,
+            "in": "query",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "schema": {
+              "enum": [
+                "createdAt",
+                "duration",
+                "cost"
+              ],
+              "type": "string"
+            }
           },
-          "content": {
-            "type": "string",
-            "description": "This is the content that the assistant says when this message is triggered.",
-            "maxLength": 1000
+          {
+            "name": "limit",
+            "required": false,
+            "in": "query",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "schema": {
+              "minimum": 0,
+              "maximum": 1000,
+              "type": "number"
+            }
           },
-          "conditions": {
-            "description": "This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Condition"
+          {
+            "name": "createdAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
             }
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "ToolMessageComplete": {
-        "type": "object",
-        "properties": {
-          "contents": {
-            "type": "array",
-            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TextContent",
-                  "title": "Text"
-                }
-              ]
+          },
+          {
+            "name": "createdAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
             }
           },
-          "type": {
-            "type": "string",
-            "description": "This message is triggered when the tool call is complete.\n\nThis message is triggered immediately without waiting for your server to respond for async tool calls.\n\nIf this message is not provided, the model will be requested to respond.\n\nIf this message is provided, only this message will be spoken and the model will not be requested to come up with a response. It's an exclusive OR.",
-            "enum": [
-              "request-complete"
-            ]
+          {
+            "name": "createdAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "role": {
-            "type": "string",
-            "description": "This is optional and defaults to \"assistant\".\n\nWhen role=assistant, `content` is said out loud.\n\nWhen role=system, `content` is passed to the model in a system message. Example:\n    system: default one\n    assistant:\n    user:\n    assistant:\n    user:\n    assistant:\n    user:\n    assistant: tool called\n    tool: your server response\n    <--- system prompt as hint\n    ---> model generates response which is spoken\nThis is useful when you want to provide a hint to the model about what to say next.",
-            "enum": [
-              "assistant",
-              "system"
-            ]
+          {
+            "name": "createdAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the createdAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "endCallAfterSpokenEnabled": {
-            "type": "boolean",
-            "description": "This is an optional boolean that if true, the call will end after the message is spoken. Default is false.\n\nThis is ignored if `role` is set to `system`.\n\n@default false",
-            "example": false
+          {
+            "name": "updatedAtGt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "content": {
-            "type": "string",
-            "description": "This is the content that the assistant says when this message is triggered.",
-            "maxLength": 1000
+          {
+            "name": "updatedAtLt",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
           },
-          "conditions": {
-            "description": "This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Condition"
+          {
+            "name": "updatedAtGe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          },
+          {
+            "name": "updatedAtLe",
+            "required": false,
+            "in": "query",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value.",
+            "schema": {
+              "format": "date-time",
+              "type": "string"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "List of provider resources",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/ProviderResourcePaginatedResponse"
+                }
+              }
             }
           }
         },
-        "required": [
-          "type"
+        "tags": [
+          "Provider Resources"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
-      },
-      "ToolMessageFailed": {
-        "type": "object",
-        "properties": {
-          "contents": {
-            "type": "array",
-            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TextContent",
-                  "title": "Text"
-                }
-              ]
+      }
+    },
+    "/provider/{provider}/{resourceName}/{id}": {
+      "get": {
+        "operationId": "ProviderResourceController_getProviderResource",
+        "summary": "Get Provider Resource",
+        "parameters": [
+          {
+            "name": "provider",
+            "required": true,
+            "in": "path",
+            "description": "The provider (e.g., 11labs)",
+            "schema": {
+              "enum": [
+                "cartesia",
+                "11labs"
+              ],
+              "type": "string"
             }
           },
-          "type": {
-            "type": "string",
-            "description": "This message is triggered when the tool call fails.\n\nThis message is never triggered for async tool calls.\n\nIf this message is not provided, the model will be requested to respond.\n\nIf this message is provided, only this message will be spoken and the model will not be requested to come up with a response. It's an exclusive OR.",
-            "enum": [
-              "request-failed"
-            ]
-          },
-          "endCallAfterSpokenEnabled": {
-            "type": "boolean",
-            "description": "This is an optional boolean that if true, the call will end after the message is spoken. Default is false.\n\n@default false",
-            "example": false
-          },
-          "content": {
-            "type": "string",
-            "description": "This is the content that the assistant says when this message is triggered.",
-            "maxLength": 1000
+          {
+            "name": "resourceName",
+            "required": true,
+            "in": "path",
+            "description": "The resource name (e.g., pronunciation-dictionary)",
+            "schema": {
+              "enum": [
+                "pronunciation-dictionary"
+              ],
+              "type": "string"
+            }
           },
-          "conditions": {
-            "description": "This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Condition"
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "format": "uuid",
+              "type": "string"
             }
           }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "ToolMessageDelayed": {
-        "type": "object",
-        "properties": {
-          "contents": {
-            "type": "array",
-            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TextContent",
-                  "title": "Text"
+        ],
+        "responses": {
+          "200": {
+            "description": "Successfully retrieved provider resource",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/ProviderResource"
                 }
-              ]
+              }
             }
           },
-          "type": {
-            "type": "string",
-            "description": "This message is triggered when the tool call is delayed.\n\nThere are the two things that can trigger this message:\n1. The user talks with the assistant while your server is processing the request. Default is \"Sorry, a few more seconds.\"\n2. The server doesn't respond within `timingMilliseconds`.\n\nThis message is never triggered for async tool calls.",
-            "enum": [
-              "request-response-delayed"
-            ]
-          },
-          "timingMilliseconds": {
-            "type": "number",
-            "minimum": 100,
-            "maximum": 120000,
-            "example": 1000,
-            "description": "The number of milliseconds to wait for the server response before saying this message."
-          },
-          "content": {
-            "type": "string",
-            "description": "This is the content that the assistant says when this message is triggered.",
-            "maxLength": 1000
-          },
-          "conditions": {
-            "description": "This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Condition"
-            }
+          "404": {
+            "description": "Provider resource not found"
           }
         },
-        "required": [
-          "type"
+        "tags": [
+          "Provider Resources"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "JsonSchema": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "description": "This is the type of output you'd like.\n\n`string`, `number`, `integer`, `boolean` are the primitive types and should be obvious.\n\n`array` and `object` are more interesting and quite powerful. They allow you to define nested structures.\n\nFor `array`, you can define the schema of the items in the array using the `items` property.\n\nFor `object`, you can define the properties of the object using the `properties` property.",
-            "enum": [
-              "string",
-              "number",
-              "integer",
-              "boolean",
-              "array",
-              "object"
-            ]
-          },
-          "items": {
-            "type": "object",
-            "description": "This is required if the type is \"array\". This is the schema of the items in the array.\n\nThis is of type JsonSchema. However, Swagger doesn't support circular references."
-          },
-          "properties": {
-            "type": "object",
-            "description": "This is required if the type is \"object\". This specifies the properties of the object.\n\nThis is a map of string to JsonSchema. However, Swagger doesn't support circular references."
-          },
-          "description": {
-            "type": "string",
-            "description": "This is the description to help the model understand what it needs to output."
-          },
-          "required": {
-            "description": "This is a list of properties that are required.\n\nThis only makes sense if the type is \"object\".",
-            "type": "array",
-            "items": {
+      "delete": {
+        "operationId": "ProviderResourceController_deleteProviderResource",
+        "summary": "Delete Provider Resource",
+        "parameters": [
+          {
+            "name": "provider",
+            "required": true,
+            "in": "path",
+            "description": "The provider (e.g., 11labs)",
+            "schema": {
+              "enum": [
+                "cartesia",
+                "11labs"
+              ],
               "type": "string"
             }
           },
-          "regex": {
-            "type": "string",
-            "description": "This is a regex that will be used to validate data in question."
-          },
-          "value": {
-            "type": "string",
-            "description": "This the value that will be used in filling the property."
-          },
-          "target": {
-            "type": "string",
-            "description": "This the target variable that will be filled with the value of this property."
+          {
+            "name": "resourceName",
+            "required": true,
+            "in": "path",
+            "description": "The resource name (e.g., pronunciation-dictionary)",
+            "schema": {
+              "enum": [
+                "pronunciation-dictionary"
+              ],
+              "type": "string"
+            }
           },
-          "enum": {
-            "description": "This array specifies the allowed values that can be used to restrict the output of the model.",
-            "type": "array",
-            "items": {
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "format": "uuid",
               "type": "string"
             }
           }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/ProviderResource"
+                }
+              }
+            }
+          },
+          "404": {
+            "description": "Provider resource not found"
+          }
         },
-        "required": [
-          "type"
+        "tags": [
+          "Provider Resources"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
       },
-      "OpenAIFunctionParameters": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "description": "This must be set to 'object'. It instructs the model to return a JSON object containing the function call properties.",
-            "enum": [
-              "object"
-            ]
+      "patch": {
+        "operationId": "ProviderResourceController_updateProviderResource",
+        "summary": "Update Provider Resource",
+        "parameters": [
+          {
+            "name": "provider",
+            "required": true,
+            "in": "path",
+            "description": "The provider (e.g., 11labs)",
+            "schema": {
+              "enum": [
+                "cartesia",
+                "11labs"
+              ],
+              "type": "string"
+            }
           },
-          "properties": {
-            "type": "object",
-            "description": "This provides a description of the properties required by the function.\nJSON Schema can be used to specify expectations for each property.\nRefer to [this doc](https://ajv.js.org/json-schema.html#json-data-type) for a comprehensive guide on JSON Schema.",
-            "additionalProperties": {
-              "$ref": "#/components/schemas/JsonSchema"
+          {
+            "name": "resourceName",
+            "required": true,
+            "in": "path",
+            "description": "The resource name (e.g., pronunciation-dictionary)",
+            "schema": {
+              "enum": [
+                "pronunciation-dictionary"
+              ],
+              "type": "string"
             }
           },
-          "required": {
-            "description": "This specifies the properties that are required by the function.",
-            "type": "array",
-            "items": {
+          {
+            "name": "id",
+            "required": true,
+            "in": "path",
+            "schema": {
+              "format": "uuid",
               "type": "string"
             }
           }
+        ],
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "$ref": "#/components/schemas/ProviderResource"
+                }
+              }
+            }
+          },
+          "404": {
+            "description": "Provider resource not found"
+          }
         },
-        "required": [
-          "type",
-          "properties"
+        "tags": [
+          "Provider Resources"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
-      },
-      "OpenAIFunction": {
-        "type": "object",
-        "properties": {
-          "strict": {
-            "type": "boolean",
-            "description": "This is a boolean that controls whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the parameters field. Only a subset of JSON Schema is supported when strict is true. Learn more about Structured Outputs in the [OpenAI guide](https://openai.com/index/introducing-structured-outputs-in-the-api/).\n\n@default false",
-            "default": false
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the the name of the function to be called.\n\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
-            "maxLength": 64,
-            "pattern": "/^[a-zA-Z0-9_-]{1,64}$/"
-          },
-          "description": {
-            "type": "string",
-            "description": "This is the description of what the function does, used by the AI to choose when and how to call the function.",
-            "maxLength": 1000
-          },
-          "parameters": {
-            "description": "These are the parameters the functions accepts, described as a JSON Schema object.\n\nSee the [OpenAI guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema) for documentation about the format.\n\nOmitting parameters defines a function with an empty parameter list.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunctionParameters"
+      }
+    },
+    "/analytics": {
+      "post": {
+        "operationId": "AnalyticsController_query",
+        "summary": "Create Analytics Queries",
+        "parameters": [],
+        "requestBody": {
+          "required": true,
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/AnalyticsQueryDTO"
               }
-            ]
+            }
           }
         },
-        "required": [
-          "name"
+        "responses": {
+          "200": {
+            "description": "",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "array",
+                  "items": {
+                    "$ref": "#/components/schemas/AnalyticsQueryResult"
+                  }
+                }
+              }
+            }
+          },
+          "201": {
+            "description": ""
+          }
+        },
+        "tags": [
+          "Analytics"
+        ],
+        "security": [
+          {
+            "bearer": []
+          }
         ]
-      },
-      "CreateDtmfToolDTO": {
+      }
+    }
+  },
+  "info": {
+    "title": "Vapi API",
+    "description": "Voice AI for developers.",
+    "version": "1.0",
+    "contact": {}
+  },
+  "tags": [],
+  "servers": [
+    {
+      "url": "https://api.vapi.ai"
+    }
+  ],
+  "components": {
+    "securitySchemes": {
+      "bearer": {
+        "scheme": "bearer",
+        "bearerFormat": "Bearer",
+        "type": "http",
+        "description": "Retrieve your API Key from [Dashboard](dashboard.vapi.ai)."
+      }
+    },
+    "schemas": {
+      "FallbackTranscriberPlan": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
+          "transcribers": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/FallbackAssemblyAITranscriber",
+                  "title": "AssemblyAI"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/FallbackAzureSpeechTranscriber",
+                  "title": "Azure"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/FallbackCustomTranscriber",
+                  "title": "Custom"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
-          "type": {
-            "type": "string",
-            "enum": [
-              "dtmf"
-            ],
-            "description": "The type of tool. \"dtmf\" for DTMF tool."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "CreateEndCallToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
+                  "$ref": "#/components/schemas/FallbackDeepgramTranscriber",
+                  "title": "Deepgram"
+                },
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/FallbackElevenLabsTranscriber",
+                  "title": "ElevenLabs"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/FallbackGladiaTranscriber",
+                  "title": "Gladia"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/FallbackGoogleTranscriber",
+                  "title": "Google"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
-          "type": {
-            "type": "string",
-            "enum": [
-              "endCall"
-            ],
-            "description": "The type of tool. \"endCall\" for End Call tool."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "CreateVoicemailToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
+                  "$ref": "#/components/schemas/FallbackTalkscriberTranscriber",
+                  "title": "Talkscriber"
+                },
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/FallbackSpeechmaticsTranscriber",
+                  "title": "Speechmatics"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/FallbackOpenAITranscriber",
+                  "title": "OpenAI"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/FallbackCartesiaTranscriber",
+                  "title": "Cartesia"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/FallbackSonioxTranscriber",
+                  "title": "Soniox"
                 }
               ]
             }
+          }
+        }
+      },
+      "AssemblyAITranscriber": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "assembly-ai"
+            ]
           },
-          "type": {
+          "language": {
             "type": "string",
+            "description": "This is the language that will be set for the transcription.",
             "enum": [
-              "voicemail"
-            ],
-            "description": "The type of tool. \"voicemail\". This uses the model itself to determine if a voicemil was reached. Can be used alternatively/alongside with TwilioVoicemailDetection"
+              "multi",
+              "en"
+            ]
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
+          "confidenceThreshold": {
+            "type": "number",
+            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.4
+          },
+          "formatTurns": {
+            "type": "boolean",
+            "description": "This enables formatting of transcripts.\n\n@default true",
+            "example": true
+          },
+          "endOfTurnConfidenceThreshold": {
+            "type": "number",
+            "description": "This is the end of turn confidence threshold. The minimum confidence that the end of turn is detected.\nNote: Only used if startSpeakingPlan.smartEndpointingPlan is not set.\n@min 0\n@max 1\n@default 0.7",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.7
+          },
+          "minEndOfTurnSilenceWhenConfident": {
+            "type": "number",
+            "description": "This is the minimum end of turn silence when confident in milliseconds.\nNote: Only used if startSpeakingPlan.smartEndpointingPlan is not set.\n@default 160",
+            "minimum": 0,
+            "example": 160
+          },
+          "wordFinalizationMaxWaitTime": {
+            "type": "number",
+            "deprecated": true,
+            "minimum": 0,
+            "example": 160
+          },
+          "maxTurnSilence": {
+            "type": "number",
+            "description": "This is the maximum turn silence time in milliseconds.\nNote: Only used if startSpeakingPlan.smartEndpointingPlan is not set.\n@default 400",
+            "minimum": 0,
+            "example": 400
+          },
+          "vadAssistedEndpointingEnabled": {
+            "type": "boolean",
+            "description": "Use VAD to assist with endpointing decisions from the transcriber.\nWhen enabled, transcriber endpointing will be buffered if VAD detects the user is still speaking, preventing premature turn-taking.\nWhen disabled, transcriber endpointing will be used immediately regardless of VAD state, allowing for quicker but more aggressive turn-taking.\nNote: Only used if startSpeakingPlan.smartEndpointingPlan is not set.\n\n@default true",
+            "example": true
+          },
+          "speechModel": {
+            "type": "string",
+            "description": "This is the speech model used for the streaming session.\nNote: Keyterms prompting is not supported with multilingual streaming.\n@default 'universal-streaming-english'",
+            "enum": [
+              "universal-streaming-english",
+              "universal-streaming-multilingual"
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "realtimeUrl": {
+            "type": "string",
+            "description": "The WebSocket URL that the transcriber connects to."
+          },
+          "wordBoost": {
+            "description": "Add up to 2500 characters of custom vocabulary.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 2500
+            }
+          },
+          "keytermsPrompt": {
+            "description": "Keyterms prompting improves recognition accuracy for specific words and phrases.\nCan include up to 100 keyterms, each up to 50 characters.\nCosts an additional $0.04/hour when enabled.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 50
+            }
+          },
+          "endUtteranceSilenceThreshold": {
+            "type": "number",
+            "description": "The duration of the end utterance silence threshold in milliseconds."
+          },
+          "disablePartialTranscripts": {
+            "type": "boolean",
+            "description": "Disable partial transcripts.\nSet to `true` to not receive partial transcripts. Defaults to `false`."
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
           }
         },
         "required": [
-          "type"
+          "provider"
         ]
       },
-      "CreateFunctionToolDTO": {
+      "AzureSpeechTranscriber": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "provider": {
+            "type": "string",
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "azure"
+            ]
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "language": {
+            "type": "string",
+            "description": "This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt",
+            "enum": [
+              "af-ZA",
+              "am-ET",
+              "ar-AE",
+              "ar-BH",
+              "ar-DZ",
+              "ar-EG",
+              "ar-IL",
+              "ar-IQ",
+              "ar-JO",
+              "ar-KW",
+              "ar-LB",
+              "ar-LY",
+              "ar-MA",
+              "ar-OM",
+              "ar-PS",
+              "ar-QA",
+              "ar-SA",
+              "ar-SY",
+              "ar-TN",
+              "ar-YE",
+              "az-AZ",
+              "bg-BG",
+              "bn-IN",
+              "bs-BA",
+              "ca-ES",
+              "cs-CZ",
+              "cy-GB",
+              "da-DK",
+              "de-AT",
+              "de-CH",
+              "de-DE",
+              "el-GR",
+              "en-AU",
+              "en-CA",
+              "en-GB",
+              "en-GH",
+              "en-HK",
+              "en-IE",
+              "en-IN",
+              "en-KE",
+              "en-NG",
+              "en-NZ",
+              "en-PH",
+              "en-SG",
+              "en-TZ",
+              "en-US",
+              "en-ZA",
+              "es-AR",
+              "es-BO",
+              "es-CL",
+              "es-CO",
+              "es-CR",
+              "es-CU",
+              "es-DO",
+              "es-EC",
+              "es-ES",
+              "es-GQ",
+              "es-GT",
+              "es-HN",
+              "es-MX",
+              "es-NI",
+              "es-PA",
+              "es-PE",
+              "es-PR",
+              "es-PY",
+              "es-SV",
+              "es-US",
+              "es-UY",
+              "es-VE",
+              "et-EE",
+              "eu-ES",
+              "fa-IR",
+              "fi-FI",
+              "fil-PH",
+              "fr-BE",
+              "fr-CA",
+              "fr-CH",
+              "fr-FR",
+              "ga-IE",
+              "gl-ES",
+              "gu-IN",
+              "he-IL",
+              "hi-IN",
+              "hr-HR",
+              "hu-HU",
+              "hy-AM",
+              "id-ID",
+              "is-IS",
+              "it-CH",
+              "it-IT",
+              "ja-JP",
+              "jv-ID",
+              "ka-GE",
+              "kk-KZ",
+              "km-KH",
+              "kn-IN",
+              "ko-KR",
+              "lo-LA",
+              "lt-LT",
+              "lv-LV",
+              "mk-MK",
+              "ml-IN",
+              "mn-MN",
+              "mr-IN",
+              "ms-MY",
+              "mt-MT",
+              "my-MM",
+              "nb-NO",
+              "ne-NP",
+              "nl-BE",
+              "nl-NL",
+              "pa-IN",
+              "pl-PL",
+              "ps-AF",
+              "pt-BR",
+              "pt-PT",
+              "ro-RO",
+              "ru-RU",
+              "si-LK",
+              "sk-SK",
+              "sl-SI",
+              "so-SO",
+              "sq-AL",
+              "sr-RS",
+              "sv-SE",
+              "sw-KE",
+              "sw-TZ",
+              "ta-IN",
+              "te-IN",
+              "th-TH",
+              "tr-TR",
+              "uk-UA",
+              "ur-IN",
+              "uz-UZ",
+              "vi-VN",
+              "wuu-CN",
+              "yue-CN",
+              "zh-CN",
+              "zh-CN-shandong",
+              "zh-CN-sichuan",
+              "zh-HK",
+              "zh-TW",
+              "zu-ZA"
+            ]
           },
-          "type": {
+          "segmentationStrategy": {
             "type": "string",
+            "description": "Controls how phrase boundaries are detected, enabling either simple time/silence heuristics or more advanced semantic segmentation.",
             "enum": [
-              "function"
-            ],
-            "description": "The type of tool. \"function\" for Function tool."
+              "Default",
+              "Time",
+              "Semantic"
+            ]
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "segmentationSilenceTimeoutMs": {
+            "type": "number",
+            "description": "Duration of detected silence after which the service finalizes a phrase. Configure to adjust sensitivity to pauses in speech.",
+            "minimum": 100,
+            "maximum": 5000
+          },
+          "segmentationMaximumTimeMs": {
+            "type": "number",
+            "description": "Maximum duration a segment can reach before being cut off when using time-based segmentation.",
+            "minimum": 20000,
+            "maximum": 70000
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "CartesiaTranscriber": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "cartesia"
+            ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "model": {
+            "type": "string",
+            "enum": [
+              "ink-whisper"
+            ]
+          },
+          "language": {
+            "type": "string",
+            "enum": [
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
           }
         },
         "required": [
-          "type"
+          "provider"
         ]
       },
-      "GhlToolMetadata": {
+      "BackoffPlan": {
         "type": "object",
         "properties": {
-          "workflowId": {
-            "type": "string"
+          "type": {
+            "type": "object",
+            "description": "This is the type of backoff plan to use. Defaults to fixed.\n\n@default fixed",
+            "enum": [
+              "fixed",
+              "exponential"
+            ],
+            "example": "fixed"
           },
-          "locationId": {
-            "type": "string"
+          "maxRetries": {
+            "type": "number",
+            "description": "This is the maximum number of retries to attempt if the request fails. Defaults to 0 (no retries).\n\n@default 0",
+            "minimum": 0,
+            "maximum": 10,
+            "example": 0
+          },
+          "baseDelaySeconds": {
+            "type": "number",
+            "description": "This is the base delay in seconds. For linear backoff, this is the delay between each retry. For exponential backoff, this is the initial delay.",
+            "minimum": 0,
+            "maximum": 10,
+            "example": 1
+          },
+          "excludedStatusCodes": {
+            "description": "This is the excluded status codes. If the response status code is in this list, the request will not be retried.\nBy default, the request will be retried for any non-2xx status code.",
+            "example": [
+              400,
+              401,
+              403,
+              404
+            ],
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
           }
-        }
+        },
+        "required": [
+          "type",
+          "maxRetries",
+          "baseDelaySeconds"
+        ]
       },
-      "CreateGhlToolDTO": {
+      "Server": {
         "type": "object",
         "properties": {
-          "async": {
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the timeout in seconds for the request. Defaults to 20 seconds.\n\n@default 20",
+            "minimum": 1,
+            "maximum": 300,
+            "example": 20
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "The credential ID for server authentication",
+            "example": "550e8400-e29b-41d4-a716-446655440000"
+          },
+          "staticIpAddressesEnabled": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
+            "description": "If enabled, requests will originate from a static set of IPs owned and managed by Vapi.\n\n@default false",
             "example": false
           },
-          "messages": {
+          "encryptedPaths": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "This is the paths to encrypt in the request body if credentialId and encryptionPlan are defined.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "type": "string"
             }
           },
-          "type": {
+          "url": {
             "type": "string",
-            "enum": [
-              "ghl"
-            ],
-            "description": "The type of tool. \"ghl\" for GHL tool."
+            "description": "This is where the request will be sent."
           },
-          "metadata": {
-            "$ref": "#/components/schemas/GhlToolMetadata"
+          "headers": {
+            "type": "object",
+            "description": "These are the headers to include in the request.\n\nEach key-value pair represents a header name and its value.\n\nNote: Specifying an Authorization header here will override the authorization provided by the `credentialId` (if provided). This is an anti-pattern and should be avoided outside of edge case scenarios."
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "backoffPlan": {
+            "description": "This is the backoff plan if the request fails. Defaults to undefined (the request will not be retried).\n\n@default undefined (the request will not be retried)",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/BackoffPlan"
               }
             ]
+          }
+        }
+      },
+      "CustomTranscriber": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the transcription provider that will be used. Use `custom-transcriber` for providers that are not natively supported.",
+            "enum": [
+              "custom-transcriber"
+            ]
           },
           "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+            "description": "This is where the transcription request will be sent.\n\nUsage:\n1. Vapi will initiate a websocket connection with `server.url`.\n\n2. Vapi will send an initial text frame with the sample rate. Format:\n```\n    {\n      \"type\": \"start\",\n      \"encoding\": \"linear16\", // 16-bit raw PCM format\n      \"container\": \"raw\",\n      \"sampleRate\": {{sampleRate}},\n      \"channels\": 2 // customer is channel 0, assistant is channel 1\n    }\n```\n\n3. Vapi will send the audio data in 16-bit raw PCM format as binary frames.\n\n4. You can read the messages something like this:\n```\nws.on('message', (data, isBinary) => {\n  if (isBinary) {\n    pcmBuffer = Buffer.concat([pcmBuffer, data]);\n    console.log(`Received PCM data, buffer size: ${pcmBuffer.length}`);\n  } else {\n    console.log('Received message:', JSON.parse(data.toString()));\n  }\n});\n```\n\n5. You will respond with transcriptions as you have them. Format:\n```\n {\n    \"type\": \"transcriber-response\",\n    \"transcription\": \"Hello, world!\",\n    \"channel\": \"customer\" | \"assistant\"\n }\n```",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Server"
               }
             ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+              }
+            ]
           }
         },
         "required": [
-          "type",
-          "metadata"
+          "provider",
+          "server"
         ]
       },
-      "MakeToolMetadata": {
+      "DeepgramTranscriber": {
         "type": "object",
         "properties": {
-          "scenarioId": {
-            "type": "number"
+          "provider": {
+            "type": "string",
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "deepgram"
+            ]
           },
-          "triggerHookId": {
-            "type": "number"
-          }
-        }
-      },
-      "CreateMakeToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
-          "type": {
-            "type": "string",
-            "enum": [
-              "make"
-            ],
-            "description": "The type of tool. \"make\" for Make tool."
-          },
-          "metadata": {
-            "$ref": "#/components/schemas/MakeToolMetadata"
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          }
-        },
-        "required": [
-          "type",
-          "metadata"
-        ]
-      },
-      "CustomMessage": {
-        "type": "object",
-        "properties": {
-          "contents": {
-            "type": "array",
-            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TextContent",
-                  "title": "Text"
-                }
-              ]
-            }
-          },
-          "type": {
-            "type": "string",
-            "description": "This is a custom message.",
-            "enum": [
-              "custom-message"
-            ]
-          },
-          "content": {
-            "type": "string",
-            "description": "This is the content that the assistant will say when this message is triggered.",
-            "maxLength": 1000
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "TransferDestinationAssistant": {
-        "type": "object",
-        "properties": {
-          "message": {
-            "description": "This is spoken to the customer before connecting them to the destination.\n\nUsage:\n- If this is not provided and transfer tool messages is not provided, default is \"Transferring the call now\".\n- If set to \"\", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant.\n\nThis accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field.",
+          "model": {
+            "description": "This is the Deepgram model that will be used. A list of models can be found here: https://developers.deepgram.com/docs/models-languages-overview",
             "oneOf": [
               {
-                "type": "string"
+                "type": "string",
+                "enum": [
+                  "nova-3",
+                  "nova-3-general",
+                  "nova-3-medical",
+                  "nova-2",
+                  "nova-2-general",
+                  "nova-2-meeting",
+                  "nova-2-phonecall",
+                  "nova-2-finance",
+                  "nova-2-conversationalai",
+                  "nova-2-voicemail",
+                  "nova-2-video",
+                  "nova-2-medical",
+                  "nova-2-drivethru",
+                  "nova-2-automotive",
+                  "nova",
+                  "nova-general",
+                  "nova-phonecall",
+                  "nova-medical",
+                  "enhanced",
+                  "enhanced-general",
+                  "enhanced-meeting",
+                  "enhanced-phonecall",
+                  "enhanced-finance",
+                  "base",
+                  "base-general",
+                  "base-meeting",
+                  "base-phonecall",
+                  "base-finance",
+                  "base-conversationalai",
+                  "base-voicemail",
+                  "base-video",
+                  "whisper",
+                  "flux-general-en",
+                  "flux-general-multi"
+                ]
               },
               {
-                "$ref": "#/components/schemas/CustomMessage"
+                "type": "string"
               }
             ]
           },
-          "type": {
-            "type": "string",
-            "enum": [
-              "assistant"
-            ]
-          },
-          "transferMode": {
+          "language": {
             "type": "string",
-            "description": "This is the mode to use for the transfer. Defaults to `rolling-history`.\n\n- `rolling-history`: This is the default mode. It keeps the entire conversation history and appends the new assistant's system message on transfer.\n\n  Example:\n\n  Pre-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n\n  Post-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n    system: assistant2 system message\n    assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)\n\n- `swap-system-message-in-history`: This replaces the original system message with the new assistant's system message on transfer.\n\n  Example:\n\n  Pre-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n\n  Post-transfer:\n    system: assistant2 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n    assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)\n\n- `delete-history`: This deletes the entire conversation history on transfer.\n\n  Example:\n\n  Pre-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n\n  Post-transfer:\n    system: assistant2 system message\n    assistant: assistant2 first message\n    user: Yes, please\n    assistant: how can i help?\n    user: i need help with my account\n\n- `swap-system-message-in-history-and-remove-transfer-tool-messages`: This replaces the original system message with the new assistant's system message on transfer and removes transfer tool messages from conversation history sent to the LLM.\n\n  Example:\n\n  Pre-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    transfer-tool\n    transfer-tool-result\n    assistant: (destination.message)\n\n  Post-transfer:\n    system: assistant2 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n    assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)\n\n@default 'rolling-history'",
+            "description": "This is the language that will be set for the transcription. The list of languages Deepgram supports can be found here: https://developers.deepgram.com/docs/models-languages-overview",
             "enum": [
-              "rolling-history",
-              "swap-system-message-in-history",
-              "swap-system-message-in-history-and-remove-transfer-tool-messages",
-              "delete-history"
+              "ar",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bn",
+              "br",
+              "bs",
+              "ca",
+              "cs",
+              "da",
+              "da-DK",
+              "de",
+              "de-CH",
+              "el",
+              "en",
+              "en-AU",
+              "en-CA",
+              "en-GB",
+              "en-IE",
+              "en-IN",
+              "en-NZ",
+              "en-US",
+              "es",
+              "es-419",
+              "es-LATAM",
+              "et",
+              "eu",
+              "fa",
+              "fi",
+              "fr",
+              "fr-CA",
+              "ha",
+              "haw",
+              "he",
+              "hi",
+              "hi-Latn",
+              "hr",
+              "hu",
+              "id",
+              "is",
+              "it",
+              "ja",
+              "jw",
+              "kn",
+              "ko",
+              "ko-KR",
+              "ln",
+              "lt",
+              "lv",
+              "mk",
+              "mr",
+              "ms",
+              "multi",
+              "nl",
+              "nl-BE",
+              "no",
+              "pl",
+              "pt",
+              "pt-BR",
+              "pt-PT",
+              "ro",
+              "ru",
+              "sk",
+              "sl",
+              "sn",
+              "so",
+              "sr",
+              "su",
+              "sv",
+              "sv-SE",
+              "ta",
+              "taq",
+              "te",
+              "th",
+              "th-TH",
+              "tl",
+              "tr",
+              "tt",
+              "uk",
+              "ur",
+              "vi",
+              "yo",
+              "zh",
+              "zh-CN",
+              "zh-HK",
+              "zh-Hans",
+              "zh-Hant",
+              "zh-TW"
             ]
           },
-          "assistantName": {
-            "type": "string",
-            "description": "This is the assistant to transfer the call to."
+          "smartFormat": {
+            "type": "boolean",
+            "description": "This will be use smart format option provided by Deepgram. It's default disabled because it can sometimes format numbers as times but it's getting better.",
+            "example": false
           },
-          "description": {
-            "type": "string",
-            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
-          }
-        },
-        "required": [
-          "type",
-          "assistantName"
-        ]
-      },
-      "TransferDestinationStep": {
-        "type": "object",
-        "properties": {
-          "message": {
-            "description": "This is spoken to the customer before connecting them to the destination.\n\nUsage:\n- If this is not provided and transfer tool messages is not provided, default is \"Transferring the call now\".\n- If set to \"\", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant.\n\nThis accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field.",
-            "oneOf": [
-              {
-                "type": "string"
-              },
-              {
-                "$ref": "#/components/schemas/CustomMessage"
-              }
-            ]
+          "mipOptOut": {
+            "type": "boolean",
+            "description": "If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out\n\nThis will only be used if you are using your own Deepgram API key.\n\n@default false",
+            "example": false,
+            "default": false
           },
-          "type": {
-            "type": "string",
-            "enum": [
-              "step"
-            ]
+          "numerals": {
+            "type": "boolean",
+            "description": "If set to true, this will cause deepgram to convert spoken numbers to literal numerals. For example, \"my phone number is nine-seven-two...\" would become \"my phone number is 972...\"\n\n@default false",
+            "example": false
           },
-          "stepName": {
-            "type": "string",
-            "description": "This is the step to transfer to."
+          "profanityFilter": {
+            "type": "boolean",
+            "description": "If set to true, Deepgram will replace profanity in transcripts with surrounding asterisks, e.g. \"f***\".\n\n@default false",
+            "example": false
           },
-          "description": {
-            "type": "string",
-            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
-          }
-        },
-        "required": [
-          "type",
-          "stepName"
-        ]
-      },
-      "SummaryPlan": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "description": "These are the messages used to generate the summary.\n\n@default: ```\n[\n  {\n    \"role\": \"system\",\n    \"content\": \"You are an expert note-taker. You will be given a transcript of a call. Summarize the call in 2-3 sentences. DO NOT return anything except the summary.\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"Here is the transcript:\\n\\n{{transcript}}\\n\\n\"\n  }\n]```\n\nYou can customize by providing any messages you want.\n\nHere are the template variables available:\n- {{transcript}}: The transcript of the call from `call.artifact.transcript`- {{systemPrompt}}: The system prompt of the call from `assistant.model.messages[type=system].content`",
+          "redaction": {
             "type": "array",
+            "description": "Enables redaction of sensitive information from transcripts.\n\nOptions include:\n- \"pci\": Redacts credit card numbers, expiration dates, and CVV.\n- \"pii\": Redacts personally identifiable information (names, locations, identifying numbers, etc.).\n- \"phi\": Redacts protected health information (medical conditions, drugs, injuries, etc.).\n- \"numbers\": Redacts numerical and identifying entities (dates, account numbers, SSNs, etc.).\n\nMultiple values can be provided to redact different categories simultaneously.\nRedacted content is replaced with entity labels like [CREDIT_CARD_1], [SSN_1], etc.\n\nSee https://developers.deepgram.com/docs/redaction for details.",
+            "enum": [
+              "pci",
+              "pii",
+              "phi",
+              "numbers"
+            ],
+            "example": [
+              "pci",
+              "phi"
+            ],
             "items": {
-              "type": "object"
+              "type": "string",
+              "enum": [
+                "pci",
+                "pii",
+                "phi",
+                "numbers"
+              ]
             }
           },
-          "enabled": {
-            "type": "boolean",
-            "description": "This determines whether a summary is generated and stored in `call.analysis.summary`. Defaults to true.\n\nUsage:\n- If you want to disable the summary, set this to false.\n\n@default true"
-          },
-          "timeoutSeconds": {
+          "confidenceThreshold": {
             "type": "number",
-            "description": "This is how long the request is tried before giving up. When request times out, `call.analysis.summary` will be empty.\n\nUsage:\n- To guarantee the summary is generated, set this value high. Note, this will delay the end of call report in cases where model is slow to respond.\n\n@default 5 seconds",
-            "minimum": 1,
-            "maximum": 60
-          }
-        }
-      },
-      "TransferPlan": {
-        "type": "object",
-        "properties": {
-          "mode": {
-            "type": "string",
-            "description": "This configures how transfer is executed and the experience of the destination party receiving the call.\n\nUsage:\n- `blind-transfer`: The assistant forwards the call to the destination without any message or summary.\n- `blind-transfer-add-summary-to-sip-header`: The assistant forwards the call to the destination and adds a SIP header X-Transfer-Summary to the call to include the summary.\n- `warm-transfer-say-message`: The assistant dials the destination, delivers the `message` to the destination party, connects the customer, and leaves the call.\n- `warm-transfer-say-summary`: The assistant dials the destination, provides a summary of the call to the destination party, connects the customer, and leaves the call.\n- `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`: The assistant dials the destination, waits for the operator to speak, delivers the `message` to the destination party, and then connects the customer.\n- `warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary`: The assistant dials the destination, waits for the operator to speak, provides a summary of the call to the destination party, and then connects the customer.\n- `warm-transfer-twiml`: The assistant dials the destination, executes the twiml instructions on the destination call leg, connects the customer, and leaves the call.\n\n@default 'blind-transfer'",
-            "enum": [
-              "blind-transfer",
-              "blind-transfer-add-summary-to-sip-header",
-              "warm-transfer-say-message",
-              "warm-transfer-say-summary",
-              "warm-transfer-twiml",
-              "warm-transfer-wait-for-operator-to-speak-first-and-then-say-message",
-              "warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary"
-            ]
-          },
-          "message": {
-            "description": "This is the message the assistant will deliver to the destination party before connecting the customer.\n\nUsage:\n- Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`.",
-            "oneOf": [
-              {
-                "type": "string"
-              },
-              {
-                "$ref": "#/components/schemas/CustomMessage"
-              }
-            ]
-          },
-          "sipVerb": {
-            "type": "object",
-            "description": "This specifies the SIP verb to use while transferring the call.\n- 'refer': Uses SIP REFER to transfer the call (default)\n- 'bye': Ends current call with SIP BYE\n- 'dial': Uses SIP DIAL to transfer the call",
-            "default": "refer",
-            "enum": [
-              "refer",
-              "bye",
-              "dial"
-            ]
-          },
-          "twiml": {
-            "type": "string",
-            "description": "This is the TwiML instructions to execute on the destination call leg before connecting the customer.\n\nUsage:\n- Used only when `mode` is `warm-transfer-twiml`.\n- Supports only `Play`, `Say`, `Gather`, `Hangup` and `Pause` verbs.\n- Maximum length is 4096 characters.\n\nExample:\n```\n<Say voice=\"alice\" language=\"en-US\">Hello, transferring a customer to you.</Say>\n<Pause length=\"2\"/>\n<Say>They called about billing questions.</Say>\n```",
-            "maxLength": 4096
+            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.4
           },
-          "summaryPlan": {
-            "description": "This is the plan for generating a summary of the call to present to the destination party.\n\nUsage:\n- Used only when `mode` is `blind-transfer-add-summary-to-sip-header` or `warm-transfer-say-summary` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary`.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SummaryPlan"
-              }
-            ]
-          }
-        },
-        "required": [
-          "mode"
-        ]
-      },
-      "TransferDestinationNumber": {
-        "type": "object",
-        "properties": {
-          "message": {
-            "description": "This is spoken to the customer before connecting them to the destination.\n\nUsage:\n- If this is not provided and transfer tool messages is not provided, default is \"Transferring the call now\".\n- If set to \"\", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant.\n\nThis accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field.",
-            "oneOf": [
-              {
-                "type": "string"
-              },
-              {
-                "$ref": "#/components/schemas/CustomMessage"
-              }
-            ]
+          "eotThreshold": {
+            "type": "number",
+            "description": "End-of-turn confidence required to finish a turn. Only used with Flux models.\n\n@default 0.7",
+            "minimum": 0.5,
+            "maximum": 0.9,
+            "example": 0.7
           },
-          "type": {
-            "type": "string",
-            "enum": [
-              "number"
-            ]
+          "eotTimeoutMs": {
+            "type": "number",
+            "description": "A turn will be finished when this much time has passed after speech, regardless of EOT confidence. Only used with Flux models.\n\n@default 5000",
+            "minimum": 500,
+            "maximum": 10000,
+            "example": 5000
           },
-          "numberE164CheckEnabled": {
-            "type": "boolean",
-            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
-            "default": true
+          "languages": {
+            "description": "Language hints to bias Flux Multilingual (`flux-general-multi`) toward specific languages.\nProvide BCP-47 language codes (e.g. \"en\", \"es\", \"fr\"). Multiple hints can be given for\nmultilingual or code-switching scenarios. Omit for auto-detection. Only used with `flux-general-multi`.",
+            "example": [
+              "en",
+              "es"
+            ],
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           },
-          "number": {
-            "type": "string",
-            "description": "This is the phone number to transfer the call to.",
-            "minLength": 3,
-            "maxLength": 40
+          "keywords": {
+            "description": "These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "pattern": "/^\\p{L}[\\p{L}\\d]*(?::[+-]?\\d+)?$/u"
+            }
           },
-          "extension": {
-            "type": "string",
-            "description": "This is the extension to dial after transferring the call to the `number`.",
-            "minLength": 1,
-            "maxLength": 10
+          "keyterm": {
+            "description": "Keyterm Prompting allows you improve Keyword Recall Rate (KRR) for important keyterms or phrases up to 90%.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           },
-          "callerId": {
-            "type": "string",
-            "description": "This is the caller ID to use when transferring the call to the `number`.\n\nUsage:\n- If not provided, the caller ID will be the number the call is coming from. Example, +14151111111 calls in to and the assistant transfers out to +16470000000. +16470000000 will see +14151111111 as the caller.\n- To change this behavior, provide a `callerId`.\n- Set to '{{customer.number}}' to always use the customer's number as the caller ID.\n- Set to '{{phoneNumber.number}}' to always use the phone number of the assistant as the caller ID.\n- Set to any E164 number to always use that number as the caller ID. This needs to be a number that is owned or verified by your Transport provider like Twilio.\n\nFor Twilio, you can read up more here: https://www.twilio.com/docs/voice/twiml/dial#callerid",
-            "maxLength": 40
+          "endpointing": {
+            "type": "number",
+            "description": "This is the timeout after which Deepgram will send transcription on user silence. You can read in-depth documentation here: https://developers.deepgram.com/docs/endpointing.\n\nHere are the most important bits:\n- Defaults to 10. This is recommended for most use cases to optimize for latency.\n- 10 can cause some missing transcriptions since because of the shorter context. This mostly happens for one-word utterances. For those uses cases, it's recommended to try 300. It will add a bit of latency but the quality and reliability of the experience will be better.\n- If neither 10 nor 300 work, contact support@vapi.ai and we'll find another solution.\n\n@default 10",
+            "minimum": 10,
+            "maximum": 500
           },
-          "transferPlan": {
-            "description": "This configures how transfer is executed and the experience of the destination party receiving the call. Defaults to `blind-transfer`.\n\n@default `transferPlan.mode='blind-transfer'`",
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/TransferPlan"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
-          },
-          "description": {
-            "type": "string",
-            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
           }
         },
         "required": [
-          "type",
-          "number"
+          "provider"
         ]
       },
-      "TransferDestinationSip": {
+      "ElevenLabsTranscriber": {
         "type": "object",
         "properties": {
-          "message": {
-            "description": "This is spoken to the customer before connecting them to the destination.\n\nUsage:\n- If this is not provided and transfer tool messages is not provided, default is \"Transferring the call now\".\n- If set to \"\", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant.\n\nThis accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field.",
-            "oneOf": [
-              {
-                "type": "string"
-              },
-              {
-                "$ref": "#/components/schemas/CustomMessage"
-              }
-            ]
-          },
-          "type": {
+          "provider": {
             "type": "string",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "sip"
+              "11labs"
             ]
           },
-          "sipUri": {
-            "type": "string",
-            "description": "This is the SIP URI to transfer the call to."
-          },
-          "transferPlan": {
-            "description": "This configures how transfer is executed and the experience of the destination party receiving the call. Defaults to `blind-transfer`.\n\n@default `transferPlan.mode='blind-transfer'`",
-            "allOf": [
+          "model": {
+            "description": "This is the model that will be used for the transcription.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/TransferPlan"
+                "enum": [
+                  "scribe_v1",
+                  "scribe_v2",
+                  "scribe_v2_realtime"
+                ]
               }
             ]
           },
-          "sipHeaders": {
-            "type": "object",
-            "description": "These are custom headers to be added to SIP refer during transfer call."
-          },
-          "description": {
-            "type": "string",
-            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
-          }
-        },
-        "required": [
-          "type",
-          "sipUri"
-        ]
-      },
-      "CreateTransferCallToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
-          "type": {
+          "language": {
             "type": "string",
+            "description": "This is the language that will be used for the transcription.",
             "enum": [
-              "transferCall"
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
             ]
           },
-          "destinations": {
-            "type": "array",
-            "description": "These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TransferDestinationAssistant",
-                  "title": "Assistant"
-                },
-                {
-                  "$ref": "#/components/schemas/TransferDestinationStep",
-                  "title": "Step"
-                },
-                {
-                  "$ref": "#/components/schemas/TransferDestinationNumber",
-                  "title": "Number"
-                },
-                {
-                  "$ref": "#/components/schemas/TransferDestinationSip",
-                  "title": "Sip"
-                }
-              ]
-            }
+          "silenceThresholdSeconds": {
+            "type": "number",
+            "description": "This is the number of seconds of silence before VAD commits (0.3-3.0).",
+            "minimum": 0.3,
+            "maximum": 3,
+            "example": 1.5
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "confidenceThreshold": {
+            "type": "number",
+            "description": "This is the VAD sensitivity (0.1-0.9, lower indicates more sensitive).",
+            "minimum": 0.1,
+            "maximum": 0.9,
+            "example": 0.4
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "CreateCustomKnowledgeBaseDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This knowledge base is bring your own knowledge base implementation.",
-            "enum": [
-              "custom-knowledge-base"
-            ]
+          "minSpeechDurationMs": {
+            "type": "number",
+            "description": "This is the minimum speech duration for VAD (50-2000ms).",
+            "minimum": 50,
+            "maximum": 2000,
+            "example": 100
           },
-          "server": {
-            "description": "This is where the knowledge base request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"messsage\": {\n    \"type\": \"knowledge-base-request\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Why is ocean blue?\"\n      }\n    ],\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected:\n```\n{\n  \"message\": {\n     \"role\": \"assistant\",\n     \"content\": \"The ocean is blue because water absorbs everything but blue.\",\n  }, // YOU CAN RETURN THE EXACT RESPONSE TO SPEAK\n  \"documents\": [\n    {\n      \"content\": \"The ocean is blue primarily because water absorbs colors in the red part of the light spectrum and scatters the blue light, making it more visible to our eyes.\",\n      \"similarity\": 1\n    },\n    {\n      \"content\": \"Blue light is scattered more by the water molecules than other colors, enhancing the blue appearance of the ocean.\",\n      \"similarity\": .5\n    }\n  ] // OR, YOU CAN RETURN AN ARRAY OF DOCUMENTS THAT WILL BE SENT TO THE MODEL\n}\n```",
+          "minSilenceDurationMs": {
+            "type": "number",
+            "description": "This is the minimum silence duration for VAD (50-2000ms).",
+            "minimum": 50,
+            "maximum": 2000,
+            "example": 100
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
           }
         },
         "required": [
-          "provider",
-          "server"
-        ]
-      },
-      "KnowledgeBase": {
-        "type": "object",
-        "properties": {
-          "name": {
-            "type": "string",
-            "description": "The name of the knowledge base",
-            "example": "My Knowledge Base"
-          },
-          "provider": {
-            "type": "string",
-            "description": "The provider of the knowledge base",
-            "enum": [
-              "google"
-            ],
-            "example": "google"
-          },
-          "model": {
-            "type": "string",
-            "description": "The model to use for the knowledge base",
-            "enum": [
-              "gemini-2.0-flash-thinking-exp",
-              "gemini-2.0-pro-exp-02-05",
-              "gemini-2.0-flash",
-              "gemini-2.0-flash-lite",
-              "gemini-2.0-flash-lite-preview-02-05",
-              "gemini-2.0-flash-exp",
-              "gemini-2.0-flash-realtime-exp",
-              "gemini-1.5-flash",
-              "gemini-1.5-flash-002",
-              "gemini-1.5-pro",
-              "gemini-1.5-pro-002",
-              "gemini-1.0-pro"
-            ]
-          },
-          "description": {
-            "type": "string",
-            "description": "A description of the knowledge base"
-          },
-          "fileIds": {
-            "description": "The file IDs associated with this knowledge base",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          }
-        },
-        "required": [
-          "name",
-          "provider",
-          "description",
-          "fileIds"
+          "provider"
         ]
       },
-      "CreateQueryToolDTO": {
+      "GladiaCustomVocabularyConfigDTO": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
+          "vocabulary": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "Array of vocabulary items (strings or objects with value, pronunciations, intensity, language)",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "type": "string"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/GladiaVocabularyItemDTO"
                 }
               ]
             }
           },
-          "type": {
-            "type": "string",
-            "enum": [
-              "query"
-            ],
-            "description": "The type of tool. \"query\" for Query tool."
-          },
-          "knowledgeBases": {
-            "description": "The knowledge bases to query",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/KnowledgeBase"
-            }
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "defaultIntensity": {
+            "type": "number",
+            "minimum": 0,
+            "maximum": 1,
+            "description": "Default intensity for vocabulary items (0.0 to 1.0)",
+            "default": 0.5
           }
         },
         "required": [
-          "type"
+          "vocabulary"
         ]
       },
-      "CreateGoogleCalendarCreateEventToolDTO": {
+      "GladiaTranscriber": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
-          "type": {
+          "provider": {
             "type": "string",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "google.calendar.event.create"
-            ],
-            "description": "The type of tool. \"google.calendar.event.create\" for Google Calendar tool."
+              "gladia"
+            ]
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
+          "model": {
+            "description": "This is the Gladia model that will be used. Default is 'fast'",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "enum": [
+                  "fast",
+                  "accurate",
+                  "solaria-1"
+                ]
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
+          "languageBehaviour": {
+            "description": "Defines how the transcription model detects the audio language. Default value is 'automatic single language'.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "type": "string",
+                "enum": [
+                  "manual",
+                  "automatic single language",
+                  "automatic multiple languages"
+                ]
               }
             ]
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "CreateGoogleSheetsRowAppendToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
           },
-          "type": {
+          "language": {
             "type": "string",
+            "description": "Defines the language to use for the transcription. Required when languageBehaviour is 'manual'.",
             "enum": [
-              "google.sheets.row.append"
-            ],
-            "description": "The type of tool. \"google.sheets.row.append\" for Google Sheets tool."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "CreateGoogleCalendarCheckAvailabilityToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+              "af",
+              "sq",
+              "am",
+              "ar",
+              "hy",
+              "as",
+              "az",
+              "ba",
+              "eu",
+              "be",
+              "bn",
+              "bs",
+              "br",
+              "bg",
+              "ca",
+              "zh",
+              "hr",
+              "cs",
+              "da",
+              "nl",
+              "en",
+              "et",
+              "fo",
+              "fi",
+              "fr",
+              "gl",
+              "ka",
+              "de",
+              "el",
+              "gu",
+              "ht",
+              "ha",
+              "haw",
+              "he",
+              "hi",
+              "hu",
+              "is",
+              "id",
+              "it",
+              "ja",
+              "jv",
+              "kn",
+              "kk",
+              "km",
+              "ko",
+              "lo",
+              "la",
+              "lv",
+              "ln",
+              "lt",
+              "lb",
+              "mk",
+              "mg",
+              "ms",
+              "ml",
+              "mt",
+              "mi",
+              "mr",
+              "mn",
+              "my",
+              "ne",
+              "no",
+              "nn",
+              "oc",
+              "ps",
+              "fa",
+              "pl",
+              "pt",
+              "pa",
+              "ro",
+              "ru",
+              "sa",
+              "sr",
+              "sn",
+              "sd",
+              "si",
+              "sk",
+              "sl",
+              "so",
+              "es",
+              "su",
+              "sw",
+              "sv",
+              "tl",
+              "tg",
+              "ta",
+              "tt",
+              "te",
+              "th",
+              "bo",
+              "tr",
+              "tk",
+              "uk",
+              "ur",
+              "uz",
+              "vi",
+              "cy",
+              "yi",
+              "yo"
+            ]
           },
-          "type": {
+          "languages": {
             "type": "string",
+            "description": "Defines the languages to use for the transcription. Required when languageBehaviour is 'manual'.",
             "enum": [
-              "google.calendar.availability.check"
-            ],
-            "description": "The type of tool. \"google.calendar.availability.check\" for Google Calendar availability check tool."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
+              "af",
+              "sq",
+              "am",
+              "ar",
+              "hy",
+              "as",
+              "az",
+              "ba",
+              "eu",
+              "be",
+              "bn",
+              "bs",
+              "br",
+              "bg",
+              "ca",
+              "zh",
+              "hr",
+              "cs",
+              "da",
+              "nl",
+              "en",
+              "et",
+              "fo",
+              "fi",
+              "fr",
+              "gl",
+              "ka",
+              "de",
+              "el",
+              "gu",
+              "ht",
+              "ha",
+              "haw",
+              "he",
+              "hi",
+              "hu",
+              "is",
+              "id",
+              "it",
+              "ja",
+              "jv",
+              "kn",
+              "kk",
+              "km",
+              "ko",
+              "lo",
+              "la",
+              "lv",
+              "ln",
+              "lt",
+              "lb",
+              "mk",
+              "mg",
+              "ms",
+              "ml",
+              "mt",
+              "mi",
+              "mr",
+              "mn",
+              "my",
+              "ne",
+              "no",
+              "nn",
+              "oc",
+              "ps",
+              "fa",
+              "pl",
+              "pt",
+              "pa",
+              "ro",
+              "ru",
+              "sa",
+              "sr",
+              "sn",
+              "sd",
+              "si",
+              "sk",
+              "sl",
+              "so",
+              "es",
+              "su",
+              "sw",
+              "sv",
+              "tl",
+              "tg",
+              "ta",
+              "tt",
+              "te",
+              "th",
+              "bo",
+              "tr",
+              "tk",
+              "uk",
+              "ur",
+              "uz",
+              "vi",
+              "cy",
+              "yi",
+              "yo"
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "CreateSlackSendMessageToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
+          "transcriptionHint": {
+            "type": "string",
+            "description": "Provides a custom vocabulary to the model to improve accuracy of transcribing context specific words, technical terms, names, etc. If empty, this argument is ignored.\n⚠️ Warning ⚠️: Please be aware that the transcription_hint field has a character limit of 600. If you provide a transcription_hint longer than 600 characters, it will be automatically truncated to meet this limit.",
+            "maxLength": 600,
+            "example": "custom vocabulary"
+          },
+          "prosody": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
+            "description": "If prosody is true, you will get a transcription that can contain prosodies i.e. (laugh) (giggles) (malefic laugh) (toss) (music)… Default value is false.",
             "example": false
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "audioEnhancer": {
+            "type": "boolean",
+            "description": "If true, audio will be pre-processed to improve accuracy but latency will increase. Default value is false.",
+            "example": false
           },
-          "type": {
-            "type": "string",
-            "enum": [
-              "slack.message.send"
-            ],
-            "description": "The type of tool. \"slack.message.send\" for Slack send message tool."
+          "confidenceThreshold": {
+            "type": "number",
+            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.4
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "endpointing": {
+            "type": "number",
+            "minimum": 0.01,
+            "maximum": 10,
+            "example": 0.05,
+            "description": "Endpointing time in seconds - time to wait before considering speech ended"
+          },
+          "speechThreshold": {
+            "type": "number",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.6,
+            "description": "Speech threshold - sensitivity configuration for speech detection (0.0 to 1.0)"
+          },
+          "customVocabularyEnabled": {
+            "type": "boolean",
+            "example": false,
+            "description": "Enable custom vocabulary for improved accuracy"
+          },
+          "customVocabularyConfig": {
+            "description": "Custom vocabulary configuration",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/GladiaCustomVocabularyConfigDTO"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "region": {
+            "type": "string",
+            "enum": [
+              "us-west",
+              "eu-west"
+            ],
+            "description": "Region for processing audio (us-west or eu-west)",
+            "example": "us-west"
+          },
+          "receivePartialTranscripts": {
+            "type": "boolean",
+            "example": false,
+            "description": "Enable partial transcripts for low-latency streaming transcription"
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
           }
         },
         "required": [
-          "type"
+          "provider"
         ]
       },
-      "AnyscaleModel": {
+      "SonioxContextGeneralItem": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "provider": {
+          "key": {
             "type": "string",
-            "enum": [
-              "anyscale"
-            ]
+            "description": "The key describing the type of context (e.g., \"domain\", \"topic\", \"doctor\", \"organization\").",
+            "minLength": 1,
+            "example": "domain"
           },
-          "model": {
+          "value": {
             "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
-          },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
-          },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
+            "description": "The value for the context key (e.g., \"Healthcare\", \"Diabetes management consultation\").",
+            "minLength": 1,
+            "example": "Healthcare"
           }
         },
         "required": [
-          "provider",
-          "model"
+          "key",
+          "value"
         ]
       },
-      "AnthropicThinkingConfig": {
+      "SonioxTranscriber": {
         "type": "object",
         "properties": {
-          "type": {
+          "provider": {
             "type": "string",
             "enum": [
-              "enabled"
+              "soniox"
             ]
           },
-          "budgetTokens": {
-            "type": "number",
-            "description": "The maximum number of tokens to allocate for thinking.\nMust be between 1024 and 100000 tokens.",
-            "minimum": 1024,
-            "maximum": 100000
-          }
-        },
-        "required": [
-          "type",
-          "budgetTokens"
-        ]
-      },
-      "AnthropicModel": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+          "model": {
+            "type": "string",
+            "enum": [
+              "stt-rt-v4"
+            ],
+            "description": "The Soniox model to use for transcription."
           },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "model": {
+          "language": {
             "type": "string",
-            "description": "The specific Anthropic/Claude model that will be used.",
             "enum": [
-              "claude-3-opus-20240229",
-              "claude-3-sonnet-20240229",
-              "claude-3-haiku-20240307",
-              "claude-3-5-sonnet-20240620",
-              "claude-3-5-sonnet-20241022",
-              "claude-3-5-haiku-20241022",
-              "claude-3-7-sonnet-20250219"
-            ]
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
+            ],
+            "description": "Single language for transcription as an ISO 639-1 code (e.g., `en`, `es`). For multi-language hints or to enable Soniox auto-detect, use `languages` instead — when `languages` is set (including to an empty array), this field is ignored when building the Soniox request. Defaults to `en` if neither this nor `languages` is set."
           },
-          "provider": {
+          "languages": {
             "type": "string",
-            "description": "The provider identifier for Anthropic.",
             "enum": [
-              "anthropic"
-            ]
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
+            ],
+            "description": "Language hints sent to Soniox as `language_hints`. Provide `[lang1, lang2, ...]` (ISO 639-1 codes) to bias recognition toward specific languages, or provide an explicit empty array `[]` to enable Soniox auto-detect across all 60+ supported languages. When set (including the empty array), this field takes precedence over the singular `language` field. When omitted, falls back to the singular `language` (which defaults to `en` if also unset). Best accuracy is achieved with a single language."
           },
-          "thinking": {
-            "description": "Optional configuration for Anthropic's thinking feature.\nOnly applicable for claude-3-7-sonnet-20250219 model.\nIf provided, maxTokens must be greater than thinking.budgetTokens.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AnthropicThinkingConfig"
-              }
-            ]
+          "languageHintsStrict": {
+            "type": "boolean",
+            "description": "When `true`, Soniox strictly restricts transcription to the languages in `languages` (or the singular `language` if `languages` is unset). When `false`, Soniox biases toward those languages but still allows transcription in other languages. Has no effect when no language hints are sent (e.g., `languages: []` for auto-detect). Defaults to `true` (strict mode)."
           },
-          "temperature": {
+          "maxEndpointDelayMs": {
             "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
+            "minimum": 500,
+            "maximum": 3000,
+            "description": "Maximum delay in milliseconds between when the speaker stops and when the endpoint is detected. Lower values mean faster turn-taking but more false endpoints. Range: 500-3000. Default: 500."
           },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
+          "customVocabulary": {
+            "description": "Custom vocabulary terms to boost recognition accuracy. Useful for brand names, product names, and domain-specific terminology. Maps to Soniox context.terms.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          "contextGeneral": {
+            "description": "General context key-value pairs that guide the AI model during transcription. Helps adapt vocabulary to the correct domain, improving accuracy. Recommended: 10 or fewer pairs. Maps to Soniox context.general.",
+            "example": [
+              {
+                "key": "domain",
+                "value": "Healthcare"
+              },
+              {
+                "key": "topic",
+                "value": "Diabetes management consultation"
+              }
+            ],
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SonioxContextGeneralItem"
+            }
           },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+              }
+            ]
           }
         },
         "required": [
-          "model",
           "provider"
         ]
       },
-      "CerebrasModel": {
+      "SpeechmaticsCustomVocabularyItem": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
+          "content": {
+            "type": "string",
+            "description": "The word or phrase to add to the custom vocabulary.",
+            "minLength": 1,
+            "example": "Speechmatics"
           },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+          "soundsLike": {
+            "description": "Alternative phonetic representations of how the word might sound. This helps recognition when the word might be pronounced differently.",
+            "example": [
+              "speech mattix"
+            ],
             "type": "array",
             "items": {
               "type": "string"
             }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
-            "enum": [
-              "llama3.1-8b",
-              "llama-3.3-70b"
-            ]
-          },
-          "provider": {
-            "type": "string",
-            "enum": [
-              "cerebras"
-            ]
-          },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
-          },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
           }
         },
         "required": [
-          "model",
-          "provider"
+          "content"
         ]
       },
-      "CustomLLMModel": {
+      "SpeechmaticsTranscriber": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
           "provider": {
             "type": "string",
-            "description": "This is the provider that will be used for the model. Any service, including your own server, that is compatible with the OpenAI API can be used.",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "custom-llm"
+              "speechmatics"
             ]
           },
-          "metadataSendMode": {
+          "model": {
             "type": "string",
-            "description": "This determines whether metadata is sent in requests to the custom provider.\n\n- `off` will not send any metadata. payload will look like `{ messages }`\n- `variable` will send `assistant.metadata` as a variable on the payload. payload will look like `{ messages, metadata }`\n- `destructured` will send `assistant.metadata` fields directly on the payload. payload will look like `{ messages, ...metadata }`\n\nFurther, `variable` and `destructured` will send `call`, `phoneNumber`, and `customer` objects in the payload.\n\nDefault is `variable`.",
+            "description": "This is the model that will be used for the transcription.",
             "enum": [
-              "off",
-              "variable",
-              "destructured"
+              "default"
             ]
           },
-          "url": {
+          "language": {
             "type": "string",
-            "description": "These is the URL we'll use for the OpenAI client's `baseURL`. Ex. https://openrouter.ai/api/v1"
-          },
-          "timeoutSeconds": {
-            "type": "number",
-            "description": "This sets the timeout for the connection to the custom provider without needing to stream any tokens back. Default is 20 seconds.",
-            "minimum": 20,
-            "maximum": 600
+            "enum": [
+              "auto",
+              "ar",
+              "ar_en",
+              "ba",
+              "eu",
+              "be",
+              "bn",
+              "bg",
+              "yue",
+              "ca",
+              "hr",
+              "cs",
+              "da",
+              "nl",
+              "en",
+              "eo",
+              "et",
+              "fi",
+              "fr",
+              "gl",
+              "de",
+              "el",
+              "he",
+              "hi",
+              "hu",
+              "id",
+              "ia",
+              "ga",
+              "it",
+              "ja",
+              "ko",
+              "lv",
+              "lt",
+              "ms",
+              "en_ms",
+              "mt",
+              "cmn",
+              "cmn_en",
+              "mr",
+              "mn",
+              "no",
+              "fa",
+              "pl",
+              "pt",
+              "ro",
+              "ru",
+              "sk",
+              "sl",
+              "es",
+              "en_es",
+              "sw",
+              "sv",
+              "tl",
+              "ta",
+              "en_ta",
+              "th",
+              "tr",
+              "uk",
+              "ur",
+              "ug",
+              "vi",
+              "cy"
+            ]
           },
-          "model": {
+          "operatingPoint": {
             "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
-          },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
+            "description": "This is the operating point for the transcription. Choose between `standard` for faster turnaround with strong accuracy or `enhanced` for highest accuracy when precision is critical.\n\n@default 'enhanced'",
+            "example": "enhanced",
+            "enum": [
+              "standard",
+              "enhanced"
+            ],
+            "default": "enhanced"
           },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
+          "region": {
+            "type": "string",
+            "description": "This is the region for the Speechmatics API. Choose between EU (Europe) and US (United States) regions for lower latency and data sovereignty compliance.\n\n@default 'eu'",
+            "example": "us",
+            "enum": [
+              "eu",
+              "us"
+            ],
+            "default": "eu"
           },
-          "emotionRecognitionEnabled": {
+          "enableDiarization": {
             "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+            "description": "This enables speaker diarization, which identifies and separates speakers in the transcription. Essential for multi-speaker conversations and conference calls.\n\n@default false",
+            "example": true,
+            "default": false
           },
-          "numFastTurns": {
+          "maxDelay": {
             "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
-          }
-        },
-        "required": [
-          "provider",
-          "url",
-          "model"
-        ]
-      },
-      "DeepInfraModel": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
+            "description": "This sets the maximum delay in milliseconds for partial transcripts. Balances latency and accuracy.\n\n@default 3000",
+            "example": 1500,
+            "minimum": 500,
+            "maximum": 10000,
+            "default": 3000
           },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+          "customVocabulary": {
+            "example": [
+              {
+                "content": "Speechmatics",
+                "soundsLike": [
+                  "speech mattix"
+                ]
+              }
+            ],
             "type": "array",
             "items": {
-              "type": "string"
+              "$ref": "#/components/schemas/SpeechmaticsCustomVocabularyItem"
             }
           },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "provider": {
+          "numeralStyle": {
             "type": "string",
+            "description": "This controls how numbers, dates, currencies, and other entities are formatted in the transcription output.\n\n@default 'written'",
+            "example": "spoken",
             "enum": [
-              "deepinfra"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+              "written",
+              "spoken"
+            ],
+            "default": "written"
           },
-          "temperature": {
+          "endOfTurnSensitivity": {
             "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "description": "This is the sensitivity level for end-of-turn detection, which determines when a speaker has finished talking. Higher values are more sensitive.\n\n@default 0.5",
+            "example": 0.8,
             "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
+            "maximum": 1,
+            "default": 0.5
           },
-          "emotionRecognitionEnabled": {
+          "removeDisfluencies": {
             "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+            "description": "This enables removal of disfluencies (um, uh) from the transcript to create cleaner, more professional output.\n\nThis is only supported for the English language transcriber.\n\n@default false",
+            "example": true,
+            "default": false
           },
-          "numFastTurns": {
+          "minimumSpeechDuration": {
             "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
+            "description": "This is the minimum duration in seconds for speech segments. Shorter segments will be filtered out. Helps remove noise and improve accuracy.\n\n@default 0.0",
+            "example": 0.2,
+            "minimum": 0,
+            "maximum": 5,
+            "default": 0
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
+              }
+            ]
           }
         },
         "required": [
           "provider",
-          "model"
+          "customVocabulary"
         ]
       },
-      "DeepSeekModel": {
+      "TalkscriberTranscriber": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "model": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "deepseek-chat",
-              "deepseek-reasoner"
+              "talkscriber"
             ]
           },
-          "provider": {
+          "model": {
             "type": "string",
+            "description": "This is the model that will be used for the transcription.",
             "enum": [
-              "deep-seek"
+              "whisper"
             ]
           },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
-          },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
-          }
-        },
-        "required": [
-          "model",
-          "provider"
-        ]
-      },
-      "GeminiMultimodalLivePrebuiltVoiceConfig": {
-        "type": "object",
-        "properties": {
-          "voiceName": {
+          "language": {
             "type": "string",
+            "description": "This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py",
             "enum": [
-              "Puck",
-              "Charon",
-              "Kore",
-              "Fenrir",
-              "Aoede"
-            ]
-          }
-        },
-        "required": [
-          "voiceName"
-        ]
-      },
-      "GeminiMultimodalLiveVoiceConfig": {
-        "type": "object",
-        "properties": {
-          "prebuiltVoiceConfig": {
-            "$ref": "#/components/schemas/GeminiMultimodalLivePrebuiltVoiceConfig"
-          }
-        },
-        "required": [
-          "prebuiltVoiceConfig"
-        ]
-      },
-      "GeminiMultimodalLiveSpeechConfig": {
-        "type": "object",
-        "properties": {
-          "voiceConfig": {
-            "$ref": "#/components/schemas/GeminiMultimodalLiveVoiceConfig"
-          }
-        },
-        "required": [
-          "voiceConfig"
-        ]
-      },
-      "GoogleRealtimeConfig": {
-        "type": "object",
-        "properties": {
-          "topP": {
-            "type": "number",
-            "description": "This is the nucleus sampling parameter that controls the cumulative probability of tokens considered during text generation.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API."
-          },
-          "topK": {
-            "type": "number",
-            "description": "This is the top-k sampling parameter that limits the number of highest probability tokens considered during text generation.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API."
-          },
-          "presencePenalty": {
-            "type": "number",
-            "description": "This is the presence penalty parameter that influences the model's likelihood to repeat information by penalizing tokens based on their presence in the text.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API."
-          },
-          "frequencyPenalty": {
-            "type": "number",
-            "description": "This is the frequency penalty parameter that influences the model's likelihood to repeat tokens by penalizing them based on their frequency in the text.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API."
+              "en",
+              "zh",
+              "de",
+              "es",
+              "ru",
+              "ko",
+              "fr",
+              "ja",
+              "pt",
+              "tr",
+              "pl",
+              "ca",
+              "nl",
+              "ar",
+              "sv",
+              "it",
+              "id",
+              "hi",
+              "fi",
+              "vi",
+              "he",
+              "uk",
+              "el",
+              "ms",
+              "cs",
+              "ro",
+              "da",
+              "hu",
+              "ta",
+              "no",
+              "th",
+              "ur",
+              "hr",
+              "bg",
+              "lt",
+              "la",
+              "mi",
+              "ml",
+              "cy",
+              "sk",
+              "te",
+              "fa",
+              "lv",
+              "bn",
+              "sr",
+              "az",
+              "sl",
+              "kn",
+              "et",
+              "mk",
+              "br",
+              "eu",
+              "is",
+              "hy",
+              "ne",
+              "mn",
+              "bs",
+              "kk",
+              "sq",
+              "sw",
+              "gl",
+              "mr",
+              "pa",
+              "si",
+              "km",
+              "sn",
+              "yo",
+              "so",
+              "af",
+              "oc",
+              "ka",
+              "be",
+              "tg",
+              "sd",
+              "gu",
+              "am",
+              "yi",
+              "lo",
+              "uz",
+              "fo",
+              "ht",
+              "ps",
+              "tk",
+              "nn",
+              "mt",
+              "sa",
+              "lb",
+              "my",
+              "bo",
+              "tl",
+              "mg",
+              "as",
+              "tt",
+              "haw",
+              "ln",
+              "ha",
+              "ba",
+              "jw",
+              "su",
+              "yue"
+            ]
           },
-          "speechConfig": {
-            "description": "This is the speech configuration object that defines the voice settings to be used for the model's speech output.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API.",
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/GeminiMultimodalLiveSpeechConfig"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
           }
-        }
+        },
+        "required": [
+          "provider"
+        ]
       },
-      "GoogleModel": {
+      "GoogleTranscriber": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
+          "provider": {
             "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "google"
+            ]
           },
           "model": {
             "type": "string",
-            "description": "This is the Google model that will be used.",
+            "description": "This is the model that will be used for the transcription.",
             "enum": [
+              "gemini-3-flash-preview",
+              "gemini-2.5-pro",
+              "gemini-2.5-flash",
+              "gemini-2.5-flash-lite",
               "gemini-2.0-flash-thinking-exp",
               "gemini-2.0-pro-exp-02-05",
               "gemini-2.0-flash",
               "gemini-2.0-flash-lite",
-              "gemini-2.0-flash-lite-preview-02-05",
               "gemini-2.0-flash-exp",
               "gemini-2.0-flash-realtime-exp",
               "gemini-1.5-flash",
@@ -9911,8502 +8808,25987 @@
               "gemini-1.0-pro"
             ]
           },
-          "provider": {
+          "language": {
             "type": "string",
+            "description": "This is the language that will be set for the transcription.",
             "enum": [
-              "google"
+              "Multilingual",
+              "Arabic",
+              "Bengali",
+              "Bulgarian",
+              "Chinese",
+              "Croatian",
+              "Czech",
+              "Danish",
+              "Dutch",
+              "English",
+              "Estonian",
+              "Finnish",
+              "French",
+              "German",
+              "Greek",
+              "Hebrew",
+              "Hindi",
+              "Hungarian",
+              "Indonesian",
+              "Italian",
+              "Japanese",
+              "Korean",
+              "Latvian",
+              "Lithuanian",
+              "Norwegian",
+              "Polish",
+              "Portuguese",
+              "Romanian",
+              "Russian",
+              "Serbian",
+              "Slovak",
+              "Slovenian",
+              "Spanish",
+              "Swahili",
+              "Swedish",
+              "Thai",
+              "Turkish",
+              "Ukrainian",
+              "Vietnamese"
             ]
           },
-          "realtimeConfig": {
-            "description": "This is the session configuration for the Gemini Flash 2.0 Multimodal Live API.\nOnly applicable if the model `gemini-2.0-flash-realtime-exp` is selected.",
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/GoogleRealtimeConfig"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
-          },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
-          },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
           }
         },
         "required": [
-          "model",
           "provider"
         ]
       },
-      "GroqModel": {
+      "OpenAITranscriber": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
+          "provider": {
+            "type": "string",
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "openai"
+            ]
           },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used for the transcription.",
+            "enum": [
+              "gpt-4o-transcribe",
+              "gpt-4o-mini-transcribe"
+            ]
           },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+          "language": {
+            "type": "string",
+            "description": "This is the language that will be set for the transcription.",
+            "enum": [
+              "af",
+              "ar",
+              "hy",
+              "az",
+              "be",
+              "bs",
+              "bg",
+              "ca",
+              "zh",
+              "hr",
+              "cs",
+              "da",
+              "nl",
+              "en",
+              "et",
+              "fi",
+              "fr",
+              "gl",
+              "de",
+              "el",
+              "he",
+              "hi",
+              "hu",
+              "is",
+              "id",
+              "it",
+              "ja",
+              "kn",
+              "kk",
+              "ko",
+              "lv",
+              "lt",
+              "mk",
+              "ms",
+              "mr",
+              "mi",
+              "ne",
+              "no",
+              "fa",
+              "pl",
+              "pt",
+              "ro",
+              "ru",
+              "sr",
+              "sk",
+              "sl",
+              "es",
+              "sw",
+              "sv",
+              "tl",
+              "ta",
+              "th",
+              "tr",
+              "uk",
+              "ur",
+              "vi",
+              "cy"
+            ]
           },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
+          "fallbackPlan": {
+            "description": "This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
+                "$ref": "#/components/schemas/FallbackTranscriberPlan"
               }
             ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "model": {
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "FallbackAssemblyAITranscriber": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "deepseek-r1-distill-llama-70b",
-              "llama-3.3-70b-versatile",
-              "llama-3.1-405b-reasoning",
-              "llama-3.1-70b-versatile",
-              "llama-3.1-8b-instant",
-              "mixtral-8x7b-32768",
-              "llama3-8b-8192",
-              "llama3-70b-8192",
-              "gemma2-9b-it"
+              "assembly-ai"
             ]
           },
-          "provider": {
+          "language": {
             "type": "string",
+            "description": "This is the language that will be set for the transcription.",
             "enum": [
-              "groq"
+              "multi",
+              "en"
             ]
           },
-          "temperature": {
+          "confidenceThreshold": {
             "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
             "minimum": 0,
-            "maximum": 2
+            "maximum": 1,
+            "example": 0.4
           },
-          "maxTokens": {
+          "formatTurns": {
+            "type": "boolean",
+            "description": "This enables formatting of transcripts.\n\n@default true",
+            "example": true
+          },
+          "endOfTurnConfidenceThreshold": {
             "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
+            "description": "This is the end of turn confidence threshold. The minimum confidence that the end of turn is detected.\nNote: Only used if startSpeakingPlan.smartEndpointingPlan is not set.\n@min 0\n@max 1\n@default 0.7",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.7
           },
-          "emotionRecognitionEnabled": {
+          "minEndOfTurnSilenceWhenConfident": {
+            "type": "number",
+            "description": "This is the minimum end of turn silence when confident in milliseconds.\nNote: Only used if startSpeakingPlan.smartEndpointingPlan is not set.\n@default 160",
+            "minimum": 0,
+            "example": 160
+          },
+          "wordFinalizationMaxWaitTime": {
+            "type": "number",
+            "deprecated": true,
+            "minimum": 0,
+            "example": 160
+          },
+          "maxTurnSilence": {
+            "type": "number",
+            "description": "This is the maximum turn silence time in milliseconds.\nNote: Only used if startSpeakingPlan.smartEndpointingPlan is not set.\n@default 400",
+            "minimum": 0,
+            "example": 400
+          },
+          "vadAssistedEndpointingEnabled": {
             "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+            "description": "Use VAD to assist with endpointing decisions from the transcriber.\nWhen enabled, transcriber endpointing will be buffered if VAD detects the user is still speaking, preventing premature turn-taking.\nWhen disabled, transcriber endpointing will be used immediately regardless of VAD state, allowing for quicker but more aggressive turn-taking.\nNote: Only used if startSpeakingPlan.smartEndpointingPlan is not set.\n\n@default true",
+            "example": true
           },
-          "numFastTurns": {
+          "speechModel": {
+            "type": "string",
+            "description": "This is the speech model used for the streaming session.\nNote: Keyterms prompting is not supported with multilingual streaming.\n@default 'universal-streaming-english'",
+            "enum": [
+              "universal-streaming-english",
+              "universal-streaming-multilingual"
+            ]
+          },
+          "realtimeUrl": {
+            "type": "string",
+            "description": "The WebSocket URL that the transcriber connects to."
+          },
+          "wordBoost": {
+            "description": "Add up to 2500 characters of custom vocabulary.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 2500
+            }
+          },
+          "keytermsPrompt": {
+            "description": "Keyterms prompting improves recognition accuracy for specific words and phrases.\nCan include up to 100 keyterms, each up to 50 characters.\nCosts an additional $0.04/hour when enabled.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 50
+            }
+          },
+          "endUtteranceSilenceThreshold": {
             "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
+            "description": "The duration of the end utterance silence threshold in milliseconds."
+          },
+          "disablePartialTranscripts": {
+            "type": "boolean",
+            "description": "Disable partial transcripts.\nSet to `true` to not receive partial transcripts. Defaults to `false`."
           }
         },
         "required": [
-          "model",
           "provider"
         ]
       },
-      "InflectionAIModel": {
+      "FallbackAzureSpeechTranscriber": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
+          "provider": {
             "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "azure"
+            ]
           },
-          "model": {
+          "language": {
             "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "description": "This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt",
             "enum": [
-              "inflection_3_pi"
+              "af-ZA",
+              "am-ET",
+              "ar-AE",
+              "ar-BH",
+              "ar-DZ",
+              "ar-EG",
+              "ar-IL",
+              "ar-IQ",
+              "ar-JO",
+              "ar-KW",
+              "ar-LB",
+              "ar-LY",
+              "ar-MA",
+              "ar-OM",
+              "ar-PS",
+              "ar-QA",
+              "ar-SA",
+              "ar-SY",
+              "ar-TN",
+              "ar-YE",
+              "az-AZ",
+              "bg-BG",
+              "bn-IN",
+              "bs-BA",
+              "ca-ES",
+              "cs-CZ",
+              "cy-GB",
+              "da-DK",
+              "de-AT",
+              "de-CH",
+              "de-DE",
+              "el-GR",
+              "en-AU",
+              "en-CA",
+              "en-GB",
+              "en-GH",
+              "en-HK",
+              "en-IE",
+              "en-IN",
+              "en-KE",
+              "en-NG",
+              "en-NZ",
+              "en-PH",
+              "en-SG",
+              "en-TZ",
+              "en-US",
+              "en-ZA",
+              "es-AR",
+              "es-BO",
+              "es-CL",
+              "es-CO",
+              "es-CR",
+              "es-CU",
+              "es-DO",
+              "es-EC",
+              "es-ES",
+              "es-GQ",
+              "es-GT",
+              "es-HN",
+              "es-MX",
+              "es-NI",
+              "es-PA",
+              "es-PE",
+              "es-PR",
+              "es-PY",
+              "es-SV",
+              "es-US",
+              "es-UY",
+              "es-VE",
+              "et-EE",
+              "eu-ES",
+              "fa-IR",
+              "fi-FI",
+              "fil-PH",
+              "fr-BE",
+              "fr-CA",
+              "fr-CH",
+              "fr-FR",
+              "ga-IE",
+              "gl-ES",
+              "gu-IN",
+              "he-IL",
+              "hi-IN",
+              "hr-HR",
+              "hu-HU",
+              "hy-AM",
+              "id-ID",
+              "is-IS",
+              "it-CH",
+              "it-IT",
+              "ja-JP",
+              "jv-ID",
+              "ka-GE",
+              "kk-KZ",
+              "km-KH",
+              "kn-IN",
+              "ko-KR",
+              "lo-LA",
+              "lt-LT",
+              "lv-LV",
+              "mk-MK",
+              "ml-IN",
+              "mn-MN",
+              "mr-IN",
+              "ms-MY",
+              "mt-MT",
+              "my-MM",
+              "nb-NO",
+              "ne-NP",
+              "nl-BE",
+              "nl-NL",
+              "pa-IN",
+              "pl-PL",
+              "ps-AF",
+              "pt-BR",
+              "pt-PT",
+              "ro-RO",
+              "ru-RU",
+              "si-LK",
+              "sk-SK",
+              "sl-SI",
+              "so-SO",
+              "sq-AL",
+              "sr-RS",
+              "sv-SE",
+              "sw-KE",
+              "sw-TZ",
+              "ta-IN",
+              "te-IN",
+              "th-TH",
+              "tr-TR",
+              "uk-UA",
+              "ur-IN",
+              "uz-UZ",
+              "vi-VN",
+              "wuu-CN",
+              "yue-CN",
+              "zh-CN",
+              "zh-CN-shandong",
+              "zh-CN-sichuan",
+              "zh-HK",
+              "zh-TW",
+              "zu-ZA"
             ]
           },
-          "provider": {
+          "segmentationStrategy": {
             "type": "string",
+            "description": "Controls how phrase boundaries are detected, enabling either simple time/silence heuristics or more advanced semantic segmentation.",
             "enum": [
-              "inflection-ai"
+              "Default",
+              "Time",
+              "Semantic"
             ]
           },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
+          "segmentationSilenceTimeoutMs": {
             "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+            "description": "Duration of detected silence after which the service finalizes a phrase. Configure to adjust sensitivity to pauses in speech.",
+            "minimum": 100,
+            "maximum": 5000
           },
-          "numFastTurns": {
+          "segmentationMaximumTimeMs": {
             "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
+            "description": "Maximum duration a segment can reach before being cut off when using time-based segmentation.",
+            "minimum": 20000,
+            "maximum": 70000
           }
         },
         "required": [
-          "model",
           "provider"
         ]
       },
-      "OpenAIModel": {
+      "FallbackCartesiaTranscriber": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
-            ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
           "provider": {
             "type": "string",
-            "description": "This is the provider that will be used for the model.",
             "enum": [
-              "openai"
+              "cartesia"
             ]
           },
           "model": {
             "type": "string",
-            "description": "This is the OpenAI model that will be used.",
             "enum": [
-              "gpt-4.1",
-              "gpt-4.1-mini",
-              "gpt-4.1-nano",
-              "gpt-4.5-preview",
-              "chatgpt-4o-latest",
-              "o3-mini",
-              "o1-preview",
-              "o1-preview-2024-09-12",
-              "o1-mini",
-              "o1-mini-2024-09-12",
-              "gpt-4o-realtime-preview-2024-10-01",
-              "gpt-4o-realtime-preview-2024-12-17",
-              "gpt-4o-mini-realtime-preview-2024-12-17",
-              "gpt-4o-mini-2024-07-18",
-              "gpt-4o-mini",
-              "gpt-4o",
-              "gpt-4o-2024-05-13",
-              "gpt-4o-2024-08-06",
-              "gpt-4o-2024-11-20",
-              "gpt-4-turbo",
-              "gpt-4-turbo-2024-04-09",
-              "gpt-4-turbo-preview",
-              "gpt-4-0125-preview",
-              "gpt-4-1106-preview",
-              "gpt-4",
-              "gpt-4-0613",
-              "gpt-3.5-turbo",
-              "gpt-3.5-turbo-0125",
-              "gpt-3.5-turbo-1106",
-              "gpt-3.5-turbo-16k",
-              "gpt-3.5-turbo-0613"
+              "ink-whisper"
             ]
           },
-          "fallbackModels": {
-            "type": "array",
-            "description": "These are the fallback models that will be used if the primary model fails. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest fallbacks that make sense.",
+          "language": {
+            "type": "string",
             "enum": [
-              "gpt-4.1",
-              "gpt-4.1-mini",
-              "gpt-4.1-nano",
-              "gpt-4.5-preview",
-              "chatgpt-4o-latest",
-              "o3-mini",
-              "o1-preview",
-              "o1-preview-2024-09-12",
-              "o1-mini",
-              "o1-mini-2024-09-12",
-              "gpt-4o-realtime-preview-2024-10-01",
-              "gpt-4o-realtime-preview-2024-12-17",
-              "gpt-4o-mini-realtime-preview-2024-12-17",
-              "gpt-4o-mini-2024-07-18",
-              "gpt-4o-mini",
-              "gpt-4o",
-              "gpt-4o-2024-05-13",
-              "gpt-4o-2024-08-06",
-              "gpt-4o-2024-11-20",
-              "gpt-4-turbo",
-              "gpt-4-turbo-2024-04-09",
-              "gpt-4-turbo-preview",
-              "gpt-4-0125-preview",
-              "gpt-4-1106-preview",
-              "gpt-4",
-              "gpt-4-0613",
-              "gpt-3.5-turbo",
-              "gpt-3.5-turbo-0125",
-              "gpt-3.5-turbo-1106",
-              "gpt-3.5-turbo-16k",
-              "gpt-3.5-turbo-0613"
-            ],
-            "example": [
-              "gpt-4-0125-preview",
-              "gpt-4-0613"
-            ],
-            "items": {
-              "type": "string",
-              "enum": [
-                "gpt-4.1",
-                "gpt-4.1-mini",
-                "gpt-4.1-nano",
-                "gpt-4.5-preview",
-                "chatgpt-4o-latest",
-                "o3-mini",
-                "o1-preview",
-                "o1-preview-2024-09-12",
-                "o1-mini",
-                "o1-mini-2024-09-12",
-                "gpt-4o-realtime-preview-2024-10-01",
-                "gpt-4o-realtime-preview-2024-12-17",
-                "gpt-4o-mini-realtime-preview-2024-12-17",
-                "gpt-4o-mini-2024-07-18",
-                "gpt-4o-mini",
-                "gpt-4o",
-                "gpt-4o-2024-05-13",
-                "gpt-4o-2024-08-06",
-                "gpt-4o-2024-11-20",
-                "gpt-4-turbo",
-                "gpt-4-turbo-2024-04-09",
-                "gpt-4-turbo-preview",
-                "gpt-4-0125-preview",
-                "gpt-4-1106-preview",
-                "gpt-4",
-                "gpt-4-0613",
-                "gpt-3.5-turbo",
-                "gpt-3.5-turbo-0125",
-                "gpt-3.5-turbo-1106",
-                "gpt-3.5-turbo-16k",
-                "gpt-3.5-turbo-0613"
-              ]
-            }
-          },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
-          },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
-          }
-        },
-        "required": [
-          "provider",
-          "model"
-        ]
-      },
-      "OpenRouterModel": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
             ]
-          },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "FallbackCustomTranscriber": {
+        "type": "object",
+        "properties": {
           "provider": {
             "type": "string",
+            "description": "This is the transcription provider that will be used. Use `custom-transcriber` for providers that are not natively supported.",
             "enum": [
-              "openrouter"
+              "custom-transcriber"
             ]
           },
-          "model": {
-            "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
-          },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
-          },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
+          "server": {
+            "description": "This is where the transcription request will be sent.\n\nUsage:\n1. Vapi will initiate a websocket connection with `server.url`.\n\n2. Vapi will send an initial text frame with the sample rate. Format:\n```\n    {\n      \"type\": \"start\",\n      \"encoding\": \"linear16\", // 16-bit raw PCM format\n      \"container\": \"raw\",\n      \"sampleRate\": {{sampleRate}},\n      \"channels\": 2 // customer is channel 0, assistant is channel 1\n    }\n```\n\n3. Vapi will send the audio data in 16-bit raw PCM format as binary frames.\n\n4. You can read the messages something like this:\n```\nws.on('message', (data, isBinary) => {\n  if (isBinary) {\n    pcmBuffer = Buffer.concat([pcmBuffer, data]);\n    console.log(`Received PCM data, buffer size: ${pcmBuffer.length}`);\n  } else {\n    console.log('Received message:', JSON.parse(data.toString()));\n  }\n});\n```\n\n5. You will respond with transcriptions as you have them. Format:\n```\n {\n    \"type\": \"transcriber-response\",\n    \"transcription\": \"Hello, world!\",\n    \"channel\": \"customer\" | \"assistant\"\n }\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
           }
         },
         "required": [
           "provider",
-          "model"
+          "server"
         ]
       },
-      "PerplexityAIModel": {
+      "FallbackDeepgramTranscriber": {
         "type": "object",
         "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+          "provider": {
+            "type": "string",
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "deepgram"
+            ]
           },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
+          "model": {
+            "description": "This is the Deepgram model that will be used. A list of models can be found here: https://developers.deepgram.com/docs/models-languages-overview",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
+                "type": "string",
+                "enum": [
+                  "nova-3",
+                  "nova-3-general",
+                  "nova-3-medical",
+                  "nova-2",
+                  "nova-2-general",
+                  "nova-2-meeting",
+                  "nova-2-phonecall",
+                  "nova-2-finance",
+                  "nova-2-conversationalai",
+                  "nova-2-voicemail",
+                  "nova-2-video",
+                  "nova-2-medical",
+                  "nova-2-drivethru",
+                  "nova-2-automotive",
+                  "nova",
+                  "nova-general",
+                  "nova-phonecall",
+                  "nova-medical",
+                  "enhanced",
+                  "enhanced-general",
+                  "enhanced-meeting",
+                  "enhanced-phonecall",
+                  "enhanced-finance",
+                  "base",
+                  "base-general",
+                  "base-meeting",
+                  "base-phonecall",
+                  "base-finance",
+                  "base-conversationalai",
+                  "base-voicemail",
+                  "base-video",
+                  "whisper",
+                  "flux-general-en",
+                  "flux-general-multi"
+                ]
+              },
+              {
+                "type": "string"
               }
             ]
           },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "provider": {
+          "language": {
             "type": "string",
+            "description": "This is the language that will be set for the transcription. The list of languages Deepgram supports can be found here: https://developers.deepgram.com/docs/models-languages-overview",
             "enum": [
-              "perplexity-ai"
+              "ar",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bn",
+              "br",
+              "bs",
+              "ca",
+              "cs",
+              "da",
+              "da-DK",
+              "de",
+              "de-CH",
+              "el",
+              "en",
+              "en-AU",
+              "en-CA",
+              "en-GB",
+              "en-IE",
+              "en-IN",
+              "en-NZ",
+              "en-US",
+              "es",
+              "es-419",
+              "es-LATAM",
+              "et",
+              "eu",
+              "fa",
+              "fi",
+              "fr",
+              "fr-CA",
+              "ha",
+              "haw",
+              "he",
+              "hi",
+              "hi-Latn",
+              "hr",
+              "hu",
+              "id",
+              "is",
+              "it",
+              "ja",
+              "jw",
+              "kn",
+              "ko",
+              "ko-KR",
+              "ln",
+              "lt",
+              "lv",
+              "mk",
+              "mr",
+              "ms",
+              "multi",
+              "nl",
+              "nl-BE",
+              "no",
+              "pl",
+              "pt",
+              "pt-BR",
+              "pt-PT",
+              "ro",
+              "ru",
+              "sk",
+              "sl",
+              "sn",
+              "so",
+              "sr",
+              "su",
+              "sv",
+              "sv-SE",
+              "ta",
+              "taq",
+              "te",
+              "th",
+              "th-TH",
+              "tl",
+              "tr",
+              "tt",
+              "uk",
+              "ur",
+              "vi",
+              "yo",
+              "zh",
+              "zh-CN",
+              "zh-HK",
+              "zh-Hans",
+              "zh-Hant",
+              "zh-TW"
             ]
           },
-          "model": {
-            "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+          "smartFormat": {
+            "type": "boolean",
+            "description": "This will be use smart format option provided by Deepgram. It's default disabled because it can sometimes format numbers as times but it's getting better.",
+            "example": false
           },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
+          "mipOptOut": {
+            "type": "boolean",
+            "description": "If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out\n\nThis will only be used if you are using your own Deepgram API key.\n\n@default false",
+            "example": false,
+            "default": false
           },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
+          "numerals": {
+            "type": "boolean",
+            "description": "If set to true, this will cause deepgram to convert spoken numbers to literal numerals. For example, \"my phone number is nine-seven-two...\" would become \"my phone number is 972...\"\n\n@default false",
+            "example": false
           },
-          "emotionRecognitionEnabled": {
+          "profanityFilter": {
             "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+            "description": "If set to true, Deepgram will replace profanity in transcripts with surrounding asterisks, e.g. \"f***\".\n\n@default false",
+            "example": false
           },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
-          }
-        },
-        "required": [
-          "provider",
-          "model"
-        ]
-      },
-      "TogetherAIModel": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
+          "redaction": {
             "type": "array",
+            "description": "Enables redaction of sensitive information from transcripts.\n\nOptions include:\n- \"pci\": Redacts credit card numbers, expiration dates, and CVV.\n- \"pii\": Redacts personally identifiable information (names, locations, identifying numbers, etc.).\n- \"phi\": Redacts protected health information (medical conditions, drugs, injuries, etc.).\n- \"numbers\": Redacts numerical and identifying entities (dates, account numbers, SSNs, etc.).\n\nMultiple values can be provided to redact different categories simultaneously.\nRedacted content is replaced with entity labels like [CREDIT_CARD_1], [SSN_1], etc.\n\nSee https://developers.deepgram.com/docs/redaction for details.",
+            "enum": [
+              "pci",
+              "pii",
+              "phi",
+              "numbers"
+            ],
+            "example": [
+              "pci",
+              "phi"
+            ],
             "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
+              "type": "string",
+              "enum": [
+                "pci",
+                "pii",
+                "phi",
+                "numbers"
+              ]
             }
           },
-          "tools": {
+          "confidenceThreshold": {
+            "type": "number",
+            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.4
+          },
+          "eotThreshold": {
+            "type": "number",
+            "description": "End-of-turn confidence required to finish a turn. Only used with Flux models.\n\n@default 0.7",
+            "minimum": 0.5,
+            "maximum": 0.9,
+            "example": 0.7
+          },
+          "eotTimeoutMs": {
+            "type": "number",
+            "description": "A turn will be finished when this much time has passed after speech, regardless of EOT confidence. Only used with Flux models.\n\n@default 5000",
+            "minimum": 500,
+            "maximum": 10000,
+            "example": 5000
+          },
+          "languages": {
+            "description": "Language hints to bias Flux Multilingual (`flux-general-multi`) toward specific languages.\nProvide BCP-47 language codes (e.g. \"en\", \"es\", \"fr\"). Multiple hints can be given for\nmultilingual or code-switching scenarios. Omit for auto-detection. Only used with `flux-general-multi`.",
+            "example": [
+              "en",
+              "es"
+            ],
             "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
+              "type": "string"
             }
           },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+          "keywords": {
+            "description": "These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "pattern": "/^\\p{L}[\\p{L}\\d]*(?::[+-]?\\d+)?$/u"
+            }
+          },
+          "keyterm": {
+            "description": "Keyterm Prompting allows you improve Keyword Recall Rate (KRR) for important keyterms or phrases up to 90%.",
             "type": "array",
             "items": {
               "type": "string"
             }
           },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
+          "endpointing": {
+            "type": "number",
+            "description": "This is the timeout after which Deepgram will send transcription on user silence. You can read in-depth documentation here: https://developers.deepgram.com/docs/endpointing.\n\nHere are the most important bits:\n- Defaults to 10. This is recommended for most use cases to optimize for latency.\n- 10 can cause some missing transcriptions since because of the shorter context. This mostly happens for one-word utterances. For those uses cases, it's recommended to try 300. It will add a bit of latency but the quality and reliability of the experience will be better.\n- If neither 10 nor 300 work, contact support@vapi.ai and we'll find another solution.\n\n@default 10",
+            "minimum": 10,
+            "maximum": 500
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "FallbackElevenLabsTranscriber": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "11labs"
+            ]
+          },
+          "model": {
+            "description": "This is the model that will be used for the transcription.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
+                "enum": [
+                  "scribe_v1",
+                  "scribe_v2",
+                  "scribe_v2_realtime"
+                ]
               }
             ]
           },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "provider": {
+          "language": {
             "type": "string",
+            "description": "This is the language that will be used for the transcription.",
             "enum": [
-              "together-ai"
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
             ]
           },
-          "model": {
-            "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+          "silenceThresholdSeconds": {
+            "type": "number",
+            "description": "This is the number of seconds of silence before VAD commits (0.3-3.0).",
+            "minimum": 0.3,
+            "maximum": 3,
+            "example": 1.5
           },
-          "temperature": {
+          "confidenceThreshold": {
             "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
+            "description": "This is the VAD sensitivity (0.1-0.9, lower indicates more sensitive).",
+            "minimum": 0.1,
+            "maximum": 0.9,
+            "example": 0.4
           },
-          "maxTokens": {
+          "minSpeechDurationMs": {
             "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "description": "This is the minimum speech duration for VAD (50-2000ms).",
             "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+            "maximum": 2000,
+            "example": 100
           },
-          "numFastTurns": {
+          "minSilenceDurationMs": {
             "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
+            "description": "This is the minimum silence duration for VAD (50-2000ms).",
+            "minimum": 50,
+            "maximum": 2000,
+            "example": 100
           }
         },
         "required": [
-          "provider",
-          "model"
+          "provider"
         ]
       },
-      "AIEdgeCondition": {
+      "GladiaVocabularyItemDTO": {
         "type": "object",
         "properties": {
-          "type": {
+          "value": {
             "type": "string",
-            "enum": [
-              "ai"
-            ]
+            "description": "The vocabulary word or phrase"
           },
-          "prompt": {
-            "type": "string",
-            "description": "This is the prompt for the AI edge condition. It should evaluate to a boolean.",
-            "maxLength": 1000
-          }
-        },
-        "required": [
-          "type",
-          "prompt"
-        ]
-      },
-      "LogicEdgeCondition": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "enum": [
-              "logic"
-            ]
+          "pronunciations": {
+            "description": "Alternative pronunciations for the vocabulary item",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           },
-          "liquid": {
+          "intensity": {
+            "type": "number",
+            "minimum": 0,
+            "maximum": 1,
+            "description": "Intensity for this specific vocabulary item (0.0 to 1.0)"
+          },
+          "language": {
             "type": "string",
-            "maxLength": 100
+            "description": "Language code for this vocabulary item (ISO 639-1)"
           }
         },
         "required": [
-          "type",
-          "liquid"
+          "value"
         ]
       },
-      "FailedEdgeCondition": {
+      "FallbackGladiaTranscriber": {
         "type": "object",
         "properties": {
-          "type": {
+          "provider": {
             "type": "string",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "failed"
+              "gladia"
             ]
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "Edge": {
-        "type": "object",
-        "properties": {
-          "condition": {
+          },
+          "model": {
+            "description": "This is the Gladia model that will be used. Default is 'fast'",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/AIEdgeCondition",
-                "title": "AIEdgeCondition"
-              },
-              {
-                "$ref": "#/components/schemas/LogicEdgeCondition",
-                "title": "LogicEdgeCondition"
-              },
-              {
-                "$ref": "#/components/schemas/FailedEdgeCondition",
-                "title": "FailedEdgeCondition"
+                "enum": [
+                  "fast",
+                  "accurate",
+                  "solaria-1"
+                ]
               }
             ]
           },
-          "from": {
-            "type": "string",
-            "maxLength": 80
-          },
-          "to": {
-            "type": "string",
-            "maxLength": 80
-          },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the edge."
-          }
-        },
-        "required": [
-          "from",
-          "to"
-        ]
-      },
-      "Workflow": {
-        "type": "object",
-        "properties": {
-          "nodes": {
-            "type": "array",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/Say",
-                  "title": "Say"
-                },
-                {
-                  "$ref": "#/components/schemas/Gather",
-                  "title": "Gather"
-                },
-                {
-                  "$ref": "#/components/schemas/ApiRequest",
-                  "title": "ApiRequest"
-                },
-                {
-                  "$ref": "#/components/schemas/Hangup",
-                  "title": "Hangup"
-                },
-                {
-                  "$ref": "#/components/schemas/Transfer",
-                  "title": "Transfer"
-                }
-              ]
-            }
-          },
-          "model": {
-            "description": "These are the options for the workflow's LLM.",
+          "languageBehaviour": {
+            "description": "Defines how the transcription model detects the audio language. Default value is 'automatic single language'.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/AnthropicModel",
-                "title": "Anthropic"
-              },
-              {
-                "$ref": "#/components/schemas/AnyscaleModel",
-                "title": "Anyscale"
-              },
-              {
-                "$ref": "#/components/schemas/CerebrasModel",
-                "title": "Cerebras"
-              },
-              {
-                "$ref": "#/components/schemas/CustomLLMModel",
-                "title": "CustomLLM"
-              },
-              {
-                "$ref": "#/components/schemas/DeepInfraModel",
-                "title": "DeepInfra"
-              },
-              {
-                "$ref": "#/components/schemas/DeepSeekModel",
-                "title": "DeepSeek"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleModel",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/GroqModel",
-                "title": "Groq"
-              },
-              {
-                "$ref": "#/components/schemas/InflectionAIModel",
-                "title": "InflectionAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIModel",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenRouterModel",
-                "title": "OpenRouter"
-              },
-              {
-                "$ref": "#/components/schemas/PerplexityAIModel",
-                "title": "PerplexityAI"
-              },
-              {
-                "$ref": "#/components/schemas/TogetherAIModel",
-                "title": "Together"
-              },
-              {
-                "$ref": "#/components/schemas/XaiModel",
-                "title": "XAI"
+                "type": "string",
+                "enum": [
+                  "manual",
+                  "automatic single language",
+                  "automatic multiple languages"
+                ]
               }
             ]
           },
-          "id": {
-            "type": "string"
-          },
-          "orgId": {
-            "type": "string"
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string"
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string"
-          },
-          "name": {
+          "language": {
             "type": "string",
-            "maxLength": 80
-          },
-          "edges": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Edge"
-            }
-          }
-        },
-        "required": [
-          "nodes",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "name",
-          "edges"
-        ]
-      },
-      "VapiModel": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
-          },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
-              }
+            "description": "Defines the language to use for the transcription. Required when languageBehaviour is 'manual'.",
+            "enum": [
+              "af",
+              "sq",
+              "am",
+              "ar",
+              "hy",
+              "as",
+              "az",
+              "ba",
+              "eu",
+              "be",
+              "bn",
+              "bs",
+              "br",
+              "bg",
+              "ca",
+              "zh",
+              "hr",
+              "cs",
+              "da",
+              "nl",
+              "en",
+              "et",
+              "fo",
+              "fi",
+              "fr",
+              "gl",
+              "ka",
+              "de",
+              "el",
+              "gu",
+              "ht",
+              "ha",
+              "haw",
+              "he",
+              "hi",
+              "hu",
+              "is",
+              "id",
+              "it",
+              "ja",
+              "jv",
+              "kn",
+              "kk",
+              "km",
+              "ko",
+              "lo",
+              "la",
+              "lv",
+              "ln",
+              "lt",
+              "lb",
+              "mk",
+              "mg",
+              "ms",
+              "ml",
+              "mt",
+              "mi",
+              "mr",
+              "mn",
+              "my",
+              "ne",
+              "no",
+              "nn",
+              "oc",
+              "ps",
+              "fa",
+              "pl",
+              "pt",
+              "pa",
+              "ro",
+              "ru",
+              "sa",
+              "sr",
+              "sn",
+              "sd",
+              "si",
+              "sk",
+              "sl",
+              "so",
+              "es",
+              "su",
+              "sw",
+              "sv",
+              "tl",
+              "tg",
+              "ta",
+              "tt",
+              "te",
+              "th",
+              "bo",
+              "tr",
+              "tk",
+              "uk",
+              "ur",
+              "uz",
+              "vi",
+              "cy",
+              "yi",
+              "yo"
             ]
           },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "provider": {
+          "languages": {
             "type": "string",
+            "description": "Defines the languages to use for the transcription. Required when languageBehaviour is 'manual'.",
             "enum": [
-              "vapi"
+              "af",
+              "sq",
+              "am",
+              "ar",
+              "hy",
+              "as",
+              "az",
+              "ba",
+              "eu",
+              "be",
+              "bn",
+              "bs",
+              "br",
+              "bg",
+              "ca",
+              "zh",
+              "hr",
+              "cs",
+              "da",
+              "nl",
+              "en",
+              "et",
+              "fo",
+              "fi",
+              "fr",
+              "gl",
+              "ka",
+              "de",
+              "el",
+              "gu",
+              "ht",
+              "ha",
+              "haw",
+              "he",
+              "hi",
+              "hu",
+              "is",
+              "id",
+              "it",
+              "ja",
+              "jv",
+              "kn",
+              "kk",
+              "km",
+              "ko",
+              "lo",
+              "la",
+              "lv",
+              "ln",
+              "lt",
+              "lb",
+              "mk",
+              "mg",
+              "ms",
+              "ml",
+              "mt",
+              "mi",
+              "mr",
+              "mn",
+              "my",
+              "ne",
+              "no",
+              "nn",
+              "oc",
+              "ps",
+              "fa",
+              "pl",
+              "pt",
+              "pa",
+              "ro",
+              "ru",
+              "sa",
+              "sr",
+              "sn",
+              "sd",
+              "si",
+              "sk",
+              "sl",
+              "so",
+              "es",
+              "su",
+              "sw",
+              "sv",
+              "tl",
+              "tg",
+              "ta",
+              "tt",
+              "te",
+              "th",
+              "bo",
+              "tr",
+              "tk",
+              "uk",
+              "ur",
+              "uz",
+              "vi",
+              "cy",
+              "yi",
+              "yo"
             ]
           },
-          "workflowId": {
+          "transcriptionHint": {
             "type": "string",
-            "description": "This is the workflow that will be used for the call. To use a transient workflow, use `workflow` instead."
+            "description": "Provides a custom vocabulary to the model to improve accuracy of transcribing context specific words, technical terms, names, etc. If empty, this argument is ignored.\n⚠️ Warning ⚠️: Please be aware that the transcription_hint field has a character limit of 600. If you provide a transcription_hint longer than 600 characters, it will be automatically truncated to meet this limit.",
+            "maxLength": 600,
+            "example": "custom vocabulary"
           },
-          "workflow": {
-            "description": "This is the workflow that will be used for the call. To use an existing workflow, use `workflowId` instead.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Workflow"
-              }
-            ]
+          "prosody": {
+            "type": "boolean",
+            "description": "If prosody is true, you will get a transcription that can contain prosodies i.e. (laugh) (giggles) (malefic laugh) (toss) (music)… Default value is false.",
+            "example": false
           },
-          "model": {
-            "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+          "audioEnhancer": {
+            "type": "boolean",
+            "description": "If true, audio will be pre-processed to improve accuracy but latency will increase. Default value is false.",
+            "example": false
           },
-          "temperature": {
+          "confidenceThreshold": {
             "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "description": "Transcripts below this confidence threshold will be discarded.\n\n@default 0.4",
             "minimum": 0,
-            "maximum": 2
+            "maximum": 1,
+            "example": 0.4
           },
-          "maxTokens": {
+          "endpointing": {
             "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
-          },
-          "emotionRecognitionEnabled": {
-            "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+            "minimum": 0.01,
+            "maximum": 10,
+            "example": 0.05,
+            "description": "Endpointing time in seconds - time to wait before considering speech ended"
           },
-          "numFastTurns": {
+          "speechThreshold": {
             "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
-          }
-        },
-        "required": [
-          "provider",
-          "model"
-        ]
-      },
-      "XaiModel": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "description": "This is the starting state for the conversation.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
-          },
-          "tools": {
-            "type": "array",
-            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                  "title": "DtmfTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                  "title": "EndCallTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                  "title": "VoicemailTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                  "title": "FunctionTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGhlToolDTO",
-                  "title": "GhlTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeToolDTO",
-                  "title": "MakeTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                  "title": "TransferTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateQueryToolDTO",
-                  "title": "QueryTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                  "title": "GoogleCalendarCreateEventTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                  "title": "GoogleSheetsRowAppendTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
-                  "title": "GoogleCalendarCheckAvailabilityTool"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
-                  "title": "SlackSendMessageTool"
-                }
-              ]
-            }
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.6,
+            "description": "Speech threshold - sensitivity configuration for speech detection (0.0 to 1.0)"
           },
-          "toolIds": {
-            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+          "customVocabularyEnabled": {
+            "type": "boolean",
+            "example": false,
+            "description": "Enable custom vocabulary for improved accuracy"
           },
-          "knowledgeBase": {
-            "description": "These are the options for the knowledge base.",
-            "oneOf": [
+          "customVocabularyConfig": {
+            "description": "Custom vocabulary configuration",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
-                "title": "Custom"
+                "$ref": "#/components/schemas/GladiaCustomVocabularyConfigDTO"
               }
             ]
           },
-          "knowledgeBaseId": {
-            "type": "string",
-            "description": "This is the ID of the knowledge base the model will use."
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
-            "enum": [
-              "grok-beta",
-              "grok-2",
-              "grok-3"
-            ]
-          },
-          "provider": {
+          "region": {
             "type": "string",
             "enum": [
-              "xai"
-            ]
-          },
-          "temperature": {
-            "type": "number",
-            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
-            "minimum": 0,
-            "maximum": 2
-          },
-          "maxTokens": {
-            "type": "number",
-            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
-            "minimum": 50,
-            "maximum": 10000
+              "us-west",
+              "eu-west"
+            ],
+            "description": "Region for processing audio (us-west or eu-west)",
+            "example": "us-west"
           },
-          "emotionRecognitionEnabled": {
+          "receivePartialTranscripts": {
             "type": "boolean",
-            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
-          },
-          "numFastTurns": {
-            "type": "number",
-            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
-            "minimum": 0
+            "example": false,
+            "description": "Enable partial transcripts for low-latency streaming transcription"
           }
         },
         "required": [
-          "model",
           "provider"
         ]
       },
-      "ExactReplacement": {
+      "FallbackSonioxTranscriber": {
         "type": "object",
         "properties": {
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is the exact replacement type. You can use this to replace a specific word or phrase with a different word or phrase.\n\nUsage:\n- Replace \"hello\" with \"hi\": { type: 'exact', key: 'hello', value: 'hi' }\n- Replace \"good morning\" with \"good day\": { type: 'exact', key: 'good morning', value: 'good day' }\n- Replace a specific name: { type: 'exact', key: 'John Doe', value: 'Jane Smith' }\n- Replace an acronym: { type: 'exact', key: 'AI', value: 'Artificial Intelligence' }\n- Replace a company name with its phonetic pronunciation: { type: 'exact', key: 'Vapi', value: 'Vappy' }",
             "enum": [
-              "exact"
+              "soniox"
             ]
           },
-          "replaceAllEnabled": {
-            "type": "boolean",
-            "description": "This option let's you control whether to replace all instances of the key or only the first one. By default, it only replaces the first instance.\nExamples:\n- For { type: 'exact', key: 'hello', value: 'hi', replaceAllEnabled: false }. Before: \"hello world, hello universe\" | After: \"hi world, hello universe\"\n- For { type: 'exact', key: 'hello', value: 'hi', replaceAllEnabled: true }. Before: \"hello world, hello universe\" | After: \"hi world, hi universe\"\n@default false",
-            "default": false
-          },
-          "key": {
-            "type": "string",
-            "description": "This is the key to replace."
-          },
-          "value": {
-            "type": "string",
-            "description": "This is the value that will replace the match.",
-            "maxLength": 1000
-          }
-        },
-        "required": [
-          "type",
-          "key",
-          "value"
-        ]
-      },
-      "RegexOption": {
-        "type": "object",
-        "properties": {
-          "type": {
+          "model": {
             "type": "string",
-            "description": "This is the type of the regex option. Options are:\n- `ignore-case`: Ignores the case of the text being matched. Add\n- `whole-word`: Matches whole words only.\n- `multi-line`: Matches across multiple lines.",
             "enum": [
-              "ignore-case",
-              "whole-word",
-              "multi-line"
-            ]
+              "stt-rt-v4"
+            ],
+            "description": "The Soniox model to use for transcription."
           },
-          "enabled": {
-            "type": "boolean",
-            "description": "This is whether to enable the option.\n\n@default false"
-          }
-        },
-        "required": [
-          "type",
-          "enabled"
-        ]
-      },
-      "RegexReplacement": {
-        "type": "object",
-        "properties": {
-          "type": {
+          "language": {
             "type": "string",
-            "description": "This is the regex replacement type. You can use this to replace a word or phrase that matches a pattern.\n\nUsage:\n- Replace all numbers with \"some number\": { type: 'regex', regex: '\\\\d+', value: 'some number' }\n- Replace email addresses with \"[EMAIL]\": { type: 'regex', regex: '\\\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Z|a-z]{2,}\\\\b', value: '[EMAIL]' }\n- Replace phone numbers with a formatted version: { type: 'regex', regex: '(\\\\d{3})(\\\\d{3})(\\\\d{4})', value: '($1) $2-$3' }\n- Replace all instances of \"color\" or \"colour\" with \"hue\": { type: 'regex', regex: 'colou?r', value: 'hue' }\n- Capitalize the first letter of every sentence: { type: 'regex', regex: '(?<=\\\\. |^)[a-z]', value: (match) => match.toUpperCase() }",
             "enum": [
-              "regex"
-            ]
-          },
-          "regex": {
-            "type": "string",
-            "description": "This is the regex pattern to replace.\n\nNote:\n- This works by using the `string.replace` method in Node.JS. Eg. `\"hello there\".replace(/hello/g, \"hi\")` will return `\"hi there\"`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead."
-          },
-          "options": {
-            "description": "These are the options for the regex replacement. Defaults to all disabled.\n\n@default []",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/RegexOption"
-            }
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
+            ],
+            "description": "Single language for transcription as an ISO 639-1 code (e.g., `en`, `es`). For multi-language hints or to enable Soniox auto-detect, use `languages` instead — when `languages` is set (including to an empty array), this field is ignored when building the Soniox request. Defaults to `en` if neither this nor `languages` is set."
           },
-          "value": {
+          "languages": {
             "type": "string",
-            "description": "This is the value that will replace the match.",
-            "maxLength": 1000
-          }
-        },
-        "required": [
-          "type",
-          "regex",
-          "value"
-        ]
-      },
-      "FormatPlan": {
-        "type": "object",
-        "properties": {
-          "enabled": {
+            "enum": [
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
+            ],
+            "description": "Language hints sent to Soniox as `language_hints`. Provide `[lang1, lang2, ...]` (ISO 639-1 codes) to bias recognition toward specific languages, or provide an explicit empty array `[]` to enable Soniox auto-detect across all 60+ supported languages. When set (including the empty array), this field takes precedence over the singular `language` field. When omitted, falls back to the singular `language` (which defaults to `en` if also unset). Best accuracy is achieved with a single language."
+          },
+          "languageHintsStrict": {
             "type": "boolean",
-            "description": "This determines whether the chunk is formatted before being sent to the voice provider. This helps with enunciation. This includes phone numbers, emails and addresses. Default `true`.\n\nUsage:\n- To rely on the voice provider's formatting logic, set this to `false`.\n\nIf `voice.chunkPlan.enabled` is `false`, this is automatically `false` since there's no chunk to format.\n\n@default true",
-            "example": true
+            "description": "When `true`, Soniox strictly restricts transcription to the languages in `languages` (or the singular `language` if `languages` is unset). When `false`, Soniox biases toward those languages but still allows transcription in other languages. Has no effect when no language hints are sent (e.g., `languages: []` for auto-detect). Defaults to `true` (strict mode)."
           },
-          "numberToDigitsCutoff": {
+          "maxEndpointDelayMs": {
             "type": "number",
-            "description": "This is the cutoff after which a number is converted to individual digits instead of being spoken as words.\n\nExample:\n- If cutoff 2025, \"12345\" is converted to \"1 2 3 4 5\" while \"1200\" is converted to \"twelve hundred\".\n\nUsage:\n- If your use case doesn't involve IDs like zip codes, set this to a high value.\n- If your use case involves IDs that are shorter than 5 digits, set this to a lower value.\n\n@default 2025",
-            "minimum": 0,
-            "example": 2025
+            "minimum": 500,
+            "maximum": 3000,
+            "description": "Maximum delay in milliseconds between when the speaker stops and when the endpoint is detected. Lower values mean faster turn-taking but more false endpoints. Range: 500-3000. Default: 500."
           },
-          "replacements": {
+          "customVocabulary": {
+            "description": "Custom vocabulary terms to boost recognition accuracy. Useful for brand names, product names, and domain-specific terminology. Maps to Soniox context.terms.",
             "type": "array",
-            "description": "These are the custom replacements you can make to the chunk before it is sent to the voice provider.\n\nUsage:\n- To replace a specific word or phrase with a different word or phrase, use the `ExactReplacement` type. Eg. `{ type: 'exact', key: 'hello', value: 'hi' }`\n- To replace a word or phrase that matches a pattern, use the `RegexReplacement` type. Eg. `{ type: 'regex', regex: '\\\\b[a-zA-Z]{5}\\\\b', value: 'hi' }`\n\n@default []",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ExactReplacement",
-                  "title": "ExactReplacement"
-                },
-                {
-                  "$ref": "#/components/schemas/RegexReplacement",
-                  "title": "RegexReplacement"
-                }
-              ]
+              "type": "string"
             }
           },
-          "formattersEnabled": {
-            "type": "array",
-            "description": "List of formatters to apply. If not provided, all default formatters will be applied.\nIf provided, only the specified formatters will be applied.\nNote: Some essential formatters like angle bracket removal will always be applied.\n@default undefined",
-            "enum": [
-              "markdown",
-              "asterisk",
-              "quote",
-              "dash",
-              "newline",
-              "colon",
-              "acronym",
-              "dollarAmount",
-              "email",
-              "date",
-              "time",
-              "distance",
-              "unit",
-              "percentage",
-              "phoneNumber",
-              "number"
+          "contextGeneral": {
+            "description": "General context key-value pairs that guide the AI model during transcription. Helps adapt vocabulary to the correct domain, improving accuracy. Recommended: 10 or fewer pairs. Maps to Soniox context.general.",
+            "example": [
+              {
+                "key": "domain",
+                "value": "Healthcare"
+              },
+              {
+                "key": "topic",
+                "value": "Diabetes management consultation"
+              }
             ],
+            "type": "array",
             "items": {
-              "type": "string",
-              "enum": [
-                "markdown",
-                "asterisk",
-                "quote",
-                "dash",
-                "newline",
-                "colon",
-                "acronym",
-                "dollarAmount",
-                "email",
-                "date",
-                "time",
-                "distance",
-                "unit",
-                "percentage",
-                "phoneNumber",
-                "number"
-              ]
+              "$ref": "#/components/schemas/SonioxContextGeneralItem"
             }
           }
-        }
+        },
+        "required": [
+          "provider"
+        ]
       },
-      "ChunkPlan": {
+      "FallbackSpeechmaticsTranscriber": {
         "type": "object",
         "properties": {
-          "enabled": {
-            "type": "boolean",
-            "description": "This determines whether the model output is chunked before being sent to the voice provider. Default `true`.\n\nUsage:\n- To rely on the voice provider's audio generation logic, set this to `false`.\n- If seeing issues with quality, set this to `true`.\n\nIf disabled, Vapi-provided audio control tokens like <flush /> will not work.\n\n@default true",
-            "example": true
+          "provider": {
+            "type": "string",
+            "description": "This is the transcription provider that will be used.",
+            "enum": [
+              "speechmatics"
+            ]
           },
-          "minCharacters": {
-            "type": "number",
-            "description": "This is the minimum number of characters in a chunk.\n\nUsage:\n- To increase quality, set this to a higher value.\n- To decrease latency, set this to a lower value.\n\n@default 30",
-            "minimum": 1,
-            "maximum": 80,
-            "example": 30
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used for the transcription.",
+            "enum": [
+              "default"
+            ]
           },
-          "punctuationBoundaries": {
-            "type": "array",
-            "description": "These are the punctuations that are considered valid boundaries for a chunk to be created.\n\nUsage:\n- To increase quality, constrain to fewer boundaries.\n- To decrease latency, enable all.\n\nDefault is automatically set to balance the trade-off between quality and latency based on the provider.",
+          "language": {
+            "type": "string",
             "enum": [
-              "。",
-              "，",
-              ".",
-              "!",
-              "?",
-              ";",
-              ")",
-              "،",
-              "۔",
-              "।",
-              "॥",
-              "|",
-              "||",
-              ",",
-              ":"
-            ],
-            "example": [
-              "。",
-              "，",
-              ".",
-              "!",
-              "?",
-              ";",
-              "،",
-              "۔",
-              "।",
-              "॥",
-              "|",
-              "||",
-              ",",
-              ":"
+              "auto",
+              "ar",
+              "ar_en",
+              "ba",
+              "eu",
+              "be",
+              "bn",
+              "bg",
+              "yue",
+              "ca",
+              "hr",
+              "cs",
+              "da",
+              "nl",
+              "en",
+              "eo",
+              "et",
+              "fi",
+              "fr",
+              "gl",
+              "de",
+              "el",
+              "he",
+              "hi",
+              "hu",
+              "id",
+              "ia",
+              "ga",
+              "it",
+              "ja",
+              "ko",
+              "lv",
+              "lt",
+              "ms",
+              "en_ms",
+              "mt",
+              "cmn",
+              "cmn_en",
+              "mr",
+              "mn",
+              "no",
+              "fa",
+              "pl",
+              "pt",
+              "ro",
+              "ru",
+              "sk",
+              "sl",
+              "es",
+              "en_es",
+              "sw",
+              "sv",
+              "tl",
+              "ta",
+              "en_ta",
+              "th",
+              "tr",
+              "uk",
+              "ur",
+              "ug",
+              "vi",
+              "cy"
+            ]
+          },
+          "operatingPoint": {
+            "type": "string",
+            "description": "This is the operating point for the transcription. Choose between `standard` for faster turnaround with strong accuracy or `enhanced` for highest accuracy when precision is critical.\n\n@default 'enhanced'",
+            "example": "enhanced",
+            "enum": [
+              "standard",
+              "enhanced"
             ],
-            "items": {
-              "type": "string",
-              "enum": [
-                "。",
-                "，",
-                ".",
-                "!",
-                "?",
-                ";",
-                ")",
-                "،",
-                "۔",
-                "।",
-                "॥",
-                "|",
-                "||",
-                ",",
-                ":"
-              ]
-            }
+            "default": "enhanced"
           },
-          "formatPlan": {
-            "description": "This is the plan for formatting the chunk before it is sent to the voice provider.",
-            "allOf": [
+          "region": {
+            "type": "string",
+            "description": "This is the region for the Speechmatics API. Choose between EU (Europe) and US (United States) regions for lower latency and data sovereignty compliance.\n\n@default 'eu'",
+            "example": "us",
+            "enum": [
+              "eu",
+              "us"
+            ],
+            "default": "eu"
+          },
+          "enableDiarization": {
+            "type": "boolean",
+            "description": "This enables speaker diarization, which identifies and separates speakers in the transcription. Essential for multi-speaker conversations and conference calls.\n\n@default false",
+            "example": true,
+            "default": false
+          },
+          "maxDelay": {
+            "type": "number",
+            "description": "This sets the maximum delay in milliseconds for partial transcripts. Balances latency and accuracy.\n\n@default 3000",
+            "example": 1500,
+            "minimum": 500,
+            "maximum": 10000,
+            "default": 3000
+          },
+          "customVocabulary": {
+            "example": [
               {
-                "$ref": "#/components/schemas/FormatPlan"
+                "content": "Speechmatics",
+                "soundsLike": [
+                  "speech mattix"
+                ]
               }
-            ]
-          }
-        }
-      },
-      "FallbackPlan": {
-        "type": "object",
-        "properties": {
-          "voices": {
+            ],
             "type": "array",
-            "description": "This is the list of voices to fallback to in the event that the primary voice provider fails.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/FallbackAzureVoice",
-                  "title": "Azure"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackCartesiaVoice",
-                  "title": "Cartesia"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackHumeVoice",
-                  "title": "Hume"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackCustomVoice",
-                  "title": "CustomVoice"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackDeepgramVoice",
-                  "title": "Deepgram"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackElevenLabsVoice",
-                  "title": "ElevenLabs"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackVapiVoice",
-                  "title": "Vapi"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackLMNTVoice",
-                  "title": "LMNT"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackOpenAIVoice",
-                  "title": "OpenAI"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackPlayHTVoice",
-                  "title": "PlayHT"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackRimeAIVoice",
-                  "title": "RimeAI"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackSmallestAIVoice",
-                  "title": "Smallest AI"
-                },
-                {
-                  "$ref": "#/components/schemas/FallbackTavusVoice",
-                  "title": "TavusVoice"
-                }
-              ]
+              "$ref": "#/components/schemas/SpeechmaticsCustomVocabularyItem"
             }
-          }
-        },
-        "required": [
-          "voices"
-        ]
-      },
-      "AzureVoice": {
-        "type": "object",
-        "properties": {
-          "provider": {
+          },
+          "numeralStyle": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This controls how numbers, dates, currencies, and other entities are formatted in the transcription output.\n\n@default 'written'",
+            "example": "spoken",
             "enum": [
-              "azure"
-            ]
+              "written",
+              "spoken"
+            ],
+            "default": "written"
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "andrew",
-                  "brian",
-                  "emma"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "Azure Voice ID"
-              }
-            ]
+          "endOfTurnSensitivity": {
+            "type": "number",
+            "description": "This is the sensitivity level for end-of-turn detection, which determines when a speaker has finished talking. Higher values are more sensitive.\n\n@default 0.5",
+            "example": 0.8,
+            "minimum": 0,
+            "maximum": 1,
+            "default": 0.5
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+          "removeDisfluencies": {
+            "type": "boolean",
+            "description": "This enables removal of disfluencies (um, uh) from the transcript to create cleaner, more professional output.\n\nThis is only supported for the English language transcriber.\n\n@default false",
+            "example": true,
+            "default": false
           },
-          "speed": {
+          "minimumSpeechDuration": {
             "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.5,
-            "maximum": 2
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
-            ]
+            "description": "This is the minimum duration in seconds for speech segments. Shorter segments will be filtered out. Helps remove noise and improve accuracy.\n\n@default 0.0",
+            "example": 0.2,
+            "minimum": 0,
+            "maximum": 5,
+            "default": 0
           }
         },
         "required": [
           "provider",
-          "voiceId"
+          "customVocabulary"
         ]
       },
-      "CartesiaExperimentalControls": {
-        "type": "object",
-        "properties": {
-          "speed": {
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "slowest",
-                  "slow",
-                  "normal",
-                  "fast",
-                  "fastest"
-                ],
-                "example": "normal"
-              },
-              {
-                "type": "number",
-                "minimum": -1,
-                "maximum": 1,
-                "example": 0.5
-              }
-            ]
-          },
-          "emotion": {
-            "type": "string",
-            "enum": [
-              "anger:lowest",
-              "anger:low",
-              "anger:high",
-              "anger:highest",
-              "positivity:lowest",
-              "positivity:low",
-              "positivity:high",
-              "positivity:highest",
-              "surprise:lowest",
-              "surprise:low",
-              "surprise:high",
-              "surprise:highest",
-              "sadness:lowest",
-              "sadness:low",
-              "sadness:high",
-              "sadness:highest",
-              "curiosity:lowest",
-              "curiosity:low",
-              "curiosity:high",
-              "curiosity:highest"
-            ],
-            "example": [
-              "happiness:high"
-            ]
-          }
-        }
-      },
-      "CartesiaVoice": {
+      "FallbackTalkscriberTranscriber": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "cartesia"
+              "talkscriber"
             ]
           },
-          "voiceId": {
-            "type": "string",
-            "description": "The ID of the particular voice you want to use."
-          },
           "model": {
             "type": "string",
-            "description": "This is the model that will be used. This is optional and will default to the correct model for the voiceId.",
+            "description": "This is the model that will be used for the transcription.",
             "enum": [
-              "sonic-2",
-              "sonic-english",
-              "sonic-multilingual",
-              "sonic-preview",
-              "sonic"
-            ],
-            "example": "sonic-english"
+              "whisper"
+            ]
           },
           "language": {
             "type": "string",
-            "description": "This is the language that will be used. This is optional and will default to the correct language for the voiceId.",
+            "description": "This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py",
             "enum": [
               "en",
+              "zh",
               "de",
               "es",
+              "ru",
+              "ko",
               "fr",
               "ja",
               "pt",
-              "zh",
-              "hi",
-              "it",
-              "ko",
-              "nl",
+              "tr",
               "pl",
-              "ru",
+              "ca",
+              "nl",
+              "ar",
               "sv",
-              "tr"
-            ],
-            "example": "en"
-          },
-          "experimentalControls": {
-            "description": "Experimental controls for Cartesia voice generation",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CartesiaExperimentalControls"
-              }
-            ]
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
+              "it",
+              "id",
+              "hi",
+              "fi",
+              "vi",
+              "he",
+              "uk",
+              "el",
+              "ms",
+              "cs",
+              "ro",
+              "da",
+              "hu",
+              "ta",
+              "no",
+              "th",
+              "ur",
+              "hr",
+              "bg",
+              "lt",
+              "la",
+              "mi",
+              "ml",
+              "cy",
+              "sk",
+              "te",
+              "fa",
+              "lv",
+              "bn",
+              "sr",
+              "az",
+              "sl",
+              "kn",
+              "et",
+              "mk",
+              "br",
+              "eu",
+              "is",
+              "hy",
+              "ne",
+              "mn",
+              "bs",
+              "kk",
+              "sq",
+              "sw",
+              "gl",
+              "mr",
+              "pa",
+              "si",
+              "km",
+              "sn",
+              "yo",
+              "so",
+              "af",
+              "oc",
+              "ka",
+              "be",
+              "tg",
+              "sd",
+              "gu",
+              "am",
+              "yi",
+              "lo",
+              "uz",
+              "fo",
+              "ht",
+              "ps",
+              "tk",
+              "nn",
+              "mt",
+              "sa",
+              "lb",
+              "my",
+              "bo",
+              "tl",
+              "mg",
+              "as",
+              "tt",
+              "haw",
+              "ln",
+              "ha",
+              "ba",
+              "jw",
+              "su",
+              "yue"
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "provider"
         ]
       },
-      "CustomVoice": {
+      "FallbackGoogleTranscriber": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This is the voice provider that will be used. Use `custom-voice` for providers that are not natively supported.",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "custom-voice"
-            ]
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is where the voice request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"type\": \"voice-request\",\n    \"text\": \"Hello, world!\",\n    \"sampleRate\": 24000,\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected: 1-channel 16-bit raw PCM audio at the sample rate specified in the request. Here is how the response will be piped to the transport:\n```\nresponse.on('data', (chunk: Buffer) => {\n  outputStream.write(chunk);\n});\n```",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+              "google"
             ]
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
-            ]
-          }
-        },
-        "required": [
-          "provider",
-          "server"
-        ]
-      },
-      "DeepgramVoice": {
-        "type": "object",
-        "properties": {
-          "provider": {
+          "model": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is the model that will be used for the transcription.",
             "enum": [
-              "deepgram"
+              "gemini-3-flash-preview",
+              "gemini-2.5-pro",
+              "gemini-2.5-flash",
+              "gemini-2.5-flash-lite",
+              "gemini-2.0-flash-thinking-exp",
+              "gemini-2.0-pro-exp-02-05",
+              "gemini-2.0-flash",
+              "gemini-2.0-flash-lite",
+              "gemini-2.0-flash-exp",
+              "gemini-2.0-flash-realtime-exp",
+              "gemini-1.5-flash",
+              "gemini-1.5-flash-002",
+              "gemini-1.5-pro",
+              "gemini-1.5-pro-002",
+              "gemini-1.0-pro"
             ]
           },
-          "voiceId": {
+          "language": {
             "type": "string",
-            "description": "This is the provider-specific ID that will be used.",
+            "description": "This is the language that will be set for the transcription.",
             "enum": [
-              "asteria",
-              "luna",
-              "stella",
-              "athena",
-              "hera",
-              "orion",
-              "arcas",
-              "perseus",
-              "angus",
-              "orpheus",
-              "helios",
-              "zeus",
-              "thalia",
-              "andromeda",
-              "helena",
-              "apollo",
-              "arcas",
-              "aries",
-              "amalthea",
-              "andromeda",
-              "apollo",
-              "arcas",
-              "aries",
-              "asteria",
-              "athena",
-              "atlas",
-              "aurora",
-              "callista",
-              "cora",
-              "cordelia",
-              "delia",
-              "draco",
-              "electra",
-              "harmonia",
-              "helena",
-              "hera",
-              "hermes",
-              "hyperion",
-              "iris",
-              "janus",
-              "juno",
-              "jupiter",
-              "luna",
-              "mars",
-              "minerva",
-              "neptune",
-              "odysseus",
-              "ophelia",
-              "orion",
-              "orpheus",
-              "pandora",
-              "phoebe",
-              "pluto",
-              "saturn",
-              "selene",
-              "thalia",
-              "theia",
-              "vesta",
-              "zeus"
-            ],
-            "title": "This is the Deepgram Voice ID"
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used. Defaults to 'aura-2' when not specified.",
-            "enum": [
-              "aura",
-              "aura-2"
-            ],
-            "example": "aura-2"
-          },
-          "mipOptOut": {
-            "type": "boolean",
-            "description": "If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out\n\nThis will only be used if you are using your own Deepgram API key.\n\n@default false",
-            "example": false,
-            "default": false
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
+              "Multilingual",
+              "Arabic",
+              "Bengali",
+              "Bulgarian",
+              "Chinese",
+              "Croatian",
+              "Czech",
+              "Danish",
+              "Dutch",
+              "English",
+              "Estonian",
+              "Finnish",
+              "French",
+              "German",
+              "Greek",
+              "Hebrew",
+              "Hindi",
+              "Hungarian",
+              "Indonesian",
+              "Italian",
+              "Japanese",
+              "Korean",
+              "Latvian",
+              "Lithuanian",
+              "Norwegian",
+              "Polish",
+              "Portuguese",
+              "Romanian",
+              "Russian",
+              "Serbian",
+              "Slovak",
+              "Slovenian",
+              "Spanish",
+              "Swahili",
+              "Swedish",
+              "Thai",
+              "Turkish",
+              "Ukrainian",
+              "Vietnamese"
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "provider"
         ]
       },
-      "ElevenLabsVoice": {
+      "FallbackOpenAITranscriber": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is the transcription provider that will be used.",
             "enum": [
-              "11labs"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "burt",
-                  "marissa",
-                  "andrea",
-                  "sarah",
-                  "phillip",
-                  "steve",
-                  "joseph",
-                  "myra",
-                  "paula",
-                  "ryan",
-                  "drew",
-                  "paul",
-                  "mrb",
-                  "matilda",
-                  "mark"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "11Labs Voice ID"
-              }
+              "openai"
             ]
           },
-          "stability": {
-            "type": "number",
-            "description": "Defines the stability for voice settings.",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.5
-          },
-          "similarityBoost": {
-            "type": "number",
-            "description": "Defines the similarity boost for voice settings.",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.75
-          },
-          "style": {
-            "type": "number",
-            "description": "Defines the style for voice settings.",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0
-          },
-          "useSpeakerBoost": {
-            "type": "boolean",
-            "description": "Defines the use speaker boost for voice settings.",
-            "example": false
-          },
-          "speed": {
-            "type": "number",
-            "description": "Defines the speed for voice settings.",
-            "minimum": 0.7,
-            "maximum": 1.2,
-            "example": 0.9
-          },
-          "optimizeStreamingLatency": {
-            "type": "number",
-            "description": "Defines the optimize streaming latency for voice settings. Defaults to 3.",
-            "minimum": 0,
-            "maximum": 4,
-            "example": 3
-          },
-          "enableSsmlParsing": {
-            "type": "boolean",
-            "description": "This enables the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Defaults to false to save latency.\n\n@default false",
-            "example": false
-          },
-          "autoMode": {
-            "type": "boolean",
-            "description": "Defines the auto mode for voice settings. Defaults to false.",
-            "example": false
-          },
           "model": {
             "type": "string",
-            "description": "This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified.",
+            "description": "This is the model that will be used for the transcription.",
             "enum": [
-              "eleven_multilingual_v2",
-              "eleven_turbo_v2",
-              "eleven_turbo_v2_5",
-              "eleven_flash_v2",
-              "eleven_flash_v2_5",
-              "eleven_monolingual_v1"
-            ],
-            "example": "eleven_turbo_v2_5"
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
+              "gpt-4o-transcribe",
+              "gpt-4o-mini-transcribe"
             ]
           },
           "language": {
             "type": "string",
-            "description": "This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided."
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
-            ]
-          }
-        },
-        "required": [
-          "provider",
-          "voiceId"
-        ]
-      },
-      "HumeVoice": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the voice provider that will be used.",
-            "enum": [
-              "hume"
-            ]
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used.",
+            "description": "This is the language that will be set for the transcription.",
             "enum": [
-              "octave"
-            ],
-            "example": "octave"
-          },
-          "voiceId": {
-            "type": "string",
-            "description": "The ID of the particular voice you want to use."
-          },
-          "isCustomHumeVoice": {
-            "type": "boolean",
-            "description": "Indicates whether the chosen voice is a preset Hume AI voice or a custom voice.",
-            "example": false
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
-          },
-          "description": {
-            "type": "string",
-            "description": "Natural language instructions describing how the synthesized speech should sound, including but not limited to tone, intonation, pacing, and accent (e.g., 'a soft, gentle voice with a strong British accent').\n\nIf a Voice is specified in the request, this description serves as acting instructions.\nIf no Voice is specified, a new voice is generated based on this description."
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
+              "af",
+              "ar",
+              "hy",
+              "az",
+              "be",
+              "bs",
+              "bg",
+              "ca",
+              "zh",
+              "hr",
+              "cs",
+              "da",
+              "nl",
+              "en",
+              "et",
+              "fi",
+              "fr",
+              "gl",
+              "de",
+              "el",
+              "he",
+              "hi",
+              "hu",
+              "is",
+              "id",
+              "it",
+              "ja",
+              "kn",
+              "kk",
+              "ko",
+              "lv",
+              "lt",
+              "mk",
+              "ms",
+              "mr",
+              "mi",
+              "ne",
+              "no",
+              "fa",
+              "pl",
+              "pt",
+              "ro",
+              "ru",
+              "sr",
+              "sk",
+              "sl",
+              "es",
+              "sw",
+              "sv",
+              "tl",
+              "ta",
+              "th",
+              "tr",
+              "uk",
+              "ur",
+              "vi",
+              "cy"
             ]
           }
         },
         "required": [
           "provider",
-          "voiceId"
+          "model"
         ]
       },
-      "LMNTVoice": {
+      "LangfuseObservabilityPlan": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
             "enum": [
-              "lmnt"
+              "langfuse"
             ]
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "lily",
-                  "daniel"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "LMNT Voice ID"
-              }
-            ]
+          "promptName": {
+            "type": "string",
+            "description": "The name of a Langfuse prompt to link generations to. This enables tracking which prompt version was used for each generation. https://langfuse.com/docs/prompt-management/features/link-to-traces"
           },
-          "speed": {
+          "promptVersion": {
             "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.25,
-            "maximum": 2,
-            "example": null
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+            "description": "The version number of the Langfuse prompt to link generations to. Used together with promptName to identify the exact prompt version. https://langfuse.com/docs/prompt-management/features/link-to-traces",
+            "minimum": 1
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
-            ]
-          }
-        },
-        "required": [
-          "provider",
-          "voiceId"
-        ]
-      },
-      "NeuphonicVoice": {
-        "type": "object",
-        "properties": {
-          "provider": {
+          "traceName": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
-            "enum": [
-              "neuphonic"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "Neuphonic Voice ID"
-              }
-            ]
+            "description": "Custom name for the Langfuse trace. Supports Liquid templates.\n\nAvailable variables:\n- {{ call.id }} - Call UUID\n- {{ call.type }} - 'inboundPhoneCall', 'outboundPhoneCall', 'webCall'\n- {{ assistant.name }} - Assistant name\n- {{ assistant.id }} - Assistant ID\n\nExample: \"{{ assistant.name }} - {{ call.type }}\"\n\nDefaults to call ID if not provided."
           },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used. Defaults to 'neu_fast' if not specified.",
-            "enum": [
-              "neu_hq",
-              "neu_fast"
-            ],
-            "example": "neu_fast"
+          "tags": {
+            "description": "This is an array of tags to be added to the Langfuse trace. Tags allow you to categorize and filter traces. https://langfuse.com/docs/tracing-features/tags",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           },
-          "language": {
+          "metadata": {
             "type": "object",
-            "description": "This is the language (ISO 639-1) that is enforced for the model.",
-            "example": "en"
-          },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.25,
-            "maximum": 2,
-            "example": null
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
-            ]
+            "description": "This is a JSON object that will be added to the Langfuse trace. Traces can be enriched with metadata to better understand your users, application, and experiments. https://langfuse.com/docs/tracing-features/metadata\nBy default it includes the call metadata, assistant metadata, and assistant overrides."
           }
         },
         "required": [
           "provider",
-          "voiceId",
-          "language"
+          "tags"
         ]
       },
-      "OpenAIVoice": {
+      "TextContent": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
             "enum": [
-              "openai"
+              "text"
             ]
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.\nPlease note that ash, ballad, coral, sage, and verse may only be used with realtime models.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "alloy",
-                  "echo",
-                  "fable",
-                  "onyx",
-                  "nova",
-                  "shimmer"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "OpenAI Voice ID"
-              }
-            ]
+          "text": {
+            "type": "string"
           },
-          "model": {
+          "language": {
             "type": "string",
-            "description": "This is the model that will be used for text-to-speech.",
             "enum": [
-              "tts-1",
-              "tts-1-hd",
-              "gpt-4o-mini-tts"
-            ]
-          },
-          "instructions": {
-            "type": "string",
-            "description": "This is a prompt that allows you to control the voice of your generated audio.\nDoes not work with 'tts-1' or 'tts-1-hd' models.",
-            "maxLength": 10000
-          },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.25,
-            "maximum": 4,
-            "example": null
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
-          },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu"
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type",
+          "text",
+          "language"
         ]
       },
-      "PlayHTVoice": {
+      "Condition": {
         "type": "object",
         "properties": {
-          "provider": {
+          "operator": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is the operator you want to use to compare the parameter and value.",
             "enum": [
-              "playht"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "jennifer",
-                  "melissa",
-                  "will",
-                  "chris",
-                  "matt",
-                  "jack",
-                  "ruby",
-                  "davis",
-                  "donna",
-                  "michael"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "PlayHT Voice ID"
-              }
+              "eq",
+              "neq",
+              "gt",
+              "gte",
+              "lt",
+              "lte"
             ]
           },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.1,
-            "maximum": 5,
-            "example": null
+          "param": {
+            "type": "string",
+            "description": "This is the name of the parameter that you want to check.",
+            "maxLength": 1000
           },
-          "temperature": {
-            "type": "number",
-            "description": "A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice.",
-            "minimum": 0.1,
-            "maximum": 2,
-            "example": null
+          "value": {
+            "type": "string",
+            "description": "This is the value you want to compare against the parameter.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "operator",
+          "param",
+          "value"
+        ]
+      },
+      "ToolMessageStart": {
+        "type": "object",
+        "properties": {
+          "contents": {
+            "type": "array",
+            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TextContent",
+                  "title": "Text"
+                }
+              ]
+            }
           },
-          "emotion": {
+          "type": {
             "type": "string",
-            "description": "An emotion to be applied to the speech.",
             "enum": [
-              "female_happy",
-              "female_sad",
-              "female_angry",
-              "female_fearful",
-              "female_disgust",
-              "female_surprised",
-              "male_happy",
-              "male_sad",
-              "male_angry",
-              "male_fearful",
-              "male_disgust",
-              "male_surprised"
+              "request-start"
             ],
-            "example": null
-          },
-          "voiceGuidance": {
-            "type": "number",
-            "description": "A number between 1 and 6. Use lower numbers to reduce how unique your chosen voice will be compared to other voices.",
-            "minimum": 1,
-            "maximum": 6,
-            "example": null
-          },
-          "styleGuidance": {
-            "type": "number",
-            "description": "A number between 1 and 30. Use lower numbers to to reduce how strong your chosen emotion will be. Higher numbers will create a very emotional performance.",
-            "minimum": 1,
-            "maximum": 30,
-            "example": null
-          },
-          "textGuidance": {
-            "type": "number",
-            "description": "A number between 1 and 2. This number influences how closely the generated speech adheres to the input text. Use lower values to create more fluid speech, but with a higher chance of deviating from the input text. Higher numbers will make the generated speech more accurate to the input text, ensuring that the words spoken align closely with the provided text.",
-            "minimum": 1,
-            "maximum": 2,
-            "example": null
+            "description": "This message is triggered when the tool call starts.\n\nThis message is never triggered for async tools.\n\nIf this message is not provided, one of the default filler messages \"Hold on a sec\", \"One moment\", \"Just a sec\", \"Give me a moment\" or \"This'll just take a sec\" will be used."
           },
-          "model": {
-            "type": "string",
-            "description": "Playht voice model/engine to use.",
-            "enum": [
-              "PlayHT2.0",
-              "PlayHT2.0-turbo",
-              "Play3.0-mini",
-              "PlayDialog"
-            ]
+          "blocking": {
+            "type": "boolean",
+            "description": "This is an optional boolean that if true, the tool call will only trigger after the message is spoken. Default is false.\n\n@default false",
+            "example": false,
+            "default": false
           },
-          "language": {
+          "content": {
             "type": "string",
-            "description": "The language to use for the speech.",
-            "enum": [
-              "afrikaans",
-              "albanian",
-              "amharic",
-              "arabic",
-              "bengali",
-              "bulgarian",
-              "catalan",
-              "croatian",
-              "czech",
-              "danish",
-              "dutch",
-              "english",
-              "french",
-              "galician",
-              "german",
-              "greek",
-              "hebrew",
-              "hindi",
-              "hungarian",
-              "indonesian",
-              "italian",
-              "japanese",
-              "korean",
-              "malay",
-              "mandarin",
-              "polish",
-              "portuguese",
-              "russian",
-              "serbian",
-              "spanish",
-              "swedish",
-              "tagalog",
-              "thai",
-              "turkish",
-              "ukrainian",
-              "urdu",
-              "xhosa"
-            ]
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+            "description": "This is the content that the assistant says when this message is triggered.",
+            "maxLength": 1000
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
-            ]
+          "conditions": {
+            "description": "This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Condition"
+            }
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type"
         ]
       },
-      "RimeAIVoice": {
+      "ToolMessageComplete": {
         "type": "object",
         "properties": {
-          "provider": {
+          "contents": {
+            "type": "array",
+            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TextContent",
+                  "title": "Text"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This message is triggered when the tool call is complete.\n\nThis message is triggered immediately without waiting for your server to respond for async tool calls.\n\nIf this message is not provided, the model will be requested to respond.\n\nIf this message is provided, only this message will be spoken and the model will not be requested to come up with a response. It's an exclusive OR.",
             "enum": [
-              "rime-ai"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "abbie",
-                  "allison",
-                  "ally",
-                  "alona",
-                  "amber",
-                  "ana",
-                  "antoine",
-                  "armon",
-                  "brenda",
-                  "brittany",
-                  "carol",
-                  "colin",
-                  "courtney",
-                  "elena",
-                  "elliot",
-                  "eva",
-                  "geoff",
-                  "gerald",
-                  "hank",
-                  "helen",
-                  "hera",
-                  "jen",
-                  "joe",
-                  "joy",
-                  "juan",
-                  "kendra",
-                  "kendrick",
-                  "kenneth",
-                  "kevin",
-                  "kris",
-                  "linda",
-                  "madison",
-                  "marge",
-                  "marina",
-                  "marissa",
-                  "marta",
-                  "maya",
-                  "nicholas",
-                  "nyles",
-                  "phil",
-                  "reba",
-                  "rex",
-                  "rick",
-                  "ritu",
-                  "rob",
-                  "rodney",
-                  "rohan",
-                  "rosco",
-                  "samantha",
-                  "sandy",
-                  "selena",
-                  "seth",
-                  "sharon",
-                  "stan",
-                  "tamra",
-                  "tanya",
-                  "tibur",
-                  "tj",
-                  "tyler",
-                  "viv",
-                  "yadira",
-                  "marsh",
-                  "bayou",
-                  "creek",
-                  "brook",
-                  "flower",
-                  "spore",
-                  "glacier",
-                  "gulch",
-                  "alpine",
-                  "cove",
-                  "lagoon",
-                  "tundra",
-                  "steppe",
-                  "mesa",
-                  "grove",
-                  "rainforest",
-                  "moraine",
-                  "wildflower",
-                  "peak",
-                  "boulder",
-                  "gypsum",
-                  "zest"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "RimeAI Voice ID"
-              }
+              "request-complete"
             ]
           },
-          "model": {
+          "role": {
             "type": "string",
-            "description": "This is the model that will be used. Defaults to 'v1' when not specified.",
+            "description": "This is optional and defaults to \"assistant\".\n\nWhen role=assistant, `content` is said out loud.\n\nWhen role=system, `content` is passed to the model in a system message. Example:\n    system: default one\n    assistant:\n    user:\n    assistant:\n    user:\n    assistant:\n    user:\n    assistant: tool called\n    tool: your server response\n    <--- system prompt as hint\n    ---> model generates response which is spoken\nThis is useful when you want to provide a hint to the model about what to say next.",
             "enum": [
-              "v1",
-              "mist",
-              "mistv2"
-            ],
-            "example": "mistv2"
-          },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.1,
-            "example": null
-          },
-          "pauseBetweenBrackets": {
-            "type": "boolean",
-            "description": "This is a flag that controls whether to add slight pauses using angle brackets. Example: “Hi. <200> I’d love to have a conversation with you.” adds a 200ms pause between the first and second sentences.",
-            "example": false
-          },
-          "phonemizeBetweenBrackets": {
-            "type": "boolean",
-            "description": "This is a flag that controls whether text inside brackets should be phonemized (converted to phonetic pronunciation) - Example: \"{h'El.o} World\" will pronounce \"Hello\" as expected.",
-            "example": false
+              "assistant",
+              "system"
+            ]
           },
-          "reduceLatency": {
+          "endCallAfterSpokenEnabled": {
             "type": "boolean",
-            "description": "This is a flag that controls whether to optimize for reduced latency in streaming. https://docs.rime.ai/api-reference/endpoint/websockets#param-reduce-latency",
+            "description": "This is an optional boolean that if true, the call will end after the message is spoken. Default is false.\n\nThis is ignored if `role` is set to `system`.\n\n@default false",
             "example": false
           },
-          "inlineSpeedAlpha": {
+          "content": {
             "type": "string",
-            "description": "This is a string that allows inline speed control using alpha notation. https://docs.rime.ai/api-reference/endpoint/websockets#param-inline-speed-alpha",
-            "example": null
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+            "description": "This is the content that the assistant says when this message is triggered.",
+            "maxLength": 1000
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
-            ]
+          "conditions": {
+            "description": "This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Condition"
+            }
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type"
         ]
       },
-      "SmallestAIVoice": {
+      "ToolMessageFailed": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the voice provider that will be used.",
-            "enum": [
-              "smallest-ai"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "emily",
-                  "jasmine",
-                  "arman",
-                  "james",
-                  "mithali",
-                  "aravind",
-                  "raj",
-                  "diya",
-                  "raman",
-                  "ananya",
-                  "isha",
-                  "william",
-                  "aarav",
-                  "monika",
-                  "niharika",
-                  "deepika",
-                  "raghav",
-                  "kajal",
-                  "radhika",
-                  "mansi",
-                  "nisha",
-                  "saurabh",
-                  "pooja",
-                  "saina",
-                  "sanya"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "Smallest AI Voice ID"
-              }
-            ]
+          "contents": {
+            "type": "array",
+            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TextContent",
+                  "title": "Text"
+                }
+              ]
+            }
           },
-          "model": {
+          "type": {
             "type": "string",
-            "description": "Smallest AI voice model to use. Defaults to 'lightning' when not specified.",
+            "description": "This message is triggered when the tool call fails.\n\nThis message is never triggered for async tool calls.\n\nIf this message is not provided, the model will be requested to respond.\n\nIf this message is provided, only this message will be spoken and the model will not be requested to come up with a response. It's an exclusive OR.",
             "enum": [
-              "lightning"
+              "request-failed"
             ]
           },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "example": null
+          "endCallAfterSpokenEnabled": {
+            "type": "boolean",
+            "description": "This is an optional boolean that if true, the call will end after the message is spoken. Default is false.\n\n@default false",
+            "example": false
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+          "content": {
+            "type": "string",
+            "description": "This is the content that the assistant says when this message is triggered.",
+            "maxLength": 1000
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
-            ]
+          "conditions": {
+            "description": "This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Condition"
+            }
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type"
         ]
       },
-      "TavusConversationProperties": {
+      "ToolMessageDelayed": {
         "type": "object",
         "properties": {
-          "maxCallDuration": {
-            "type": "number",
-            "description": "The maximum duration of the call in seconds. The default `maxCallDuration` is 3600 seconds (1 hour).\nOnce the time limit specified by this parameter has been reached, the conversation will automatically shut down."
+          "contents": {
+            "type": "array",
+            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TextContent",
+                  "title": "Text"
+                }
+              ]
+            }
           },
-          "participantLeftTimeout": {
-            "type": "number",
-            "description": "The duration in seconds after which the call will be automatically shut down once the last participant leaves."
+          "type": {
+            "type": "string",
+            "description": "This message is triggered when the tool call is delayed.\n\nThere are the two things that can trigger this message:\n1. The user talks with the assistant while your server is processing the request. Default is \"Sorry, a few more seconds.\"\n2. The server doesn't respond within `timingMilliseconds`.\n\nThis message is never triggered for async tool calls.",
+            "enum": [
+              "request-response-delayed"
+            ]
           },
-          "participantAbsentTimeout": {
+          "timingMilliseconds": {
             "type": "number",
-            "description": "Starting from conversation creation, the duration in seconds after which the call will be automatically shut down if no participant joins the call.\nDefault is 300 seconds (5 minutes)."
-          },
-          "enableRecording": {
-            "type": "boolean",
-            "description": "If true, the user will be able to record the conversation."
-          },
-          "enableTranscription": {
-            "type": "boolean",
-            "description": "If true, the user will be able to transcribe the conversation.\nYou can find more instructions on displaying transcriptions if you are using your custom DailyJS components here.\nYou need to have an event listener on Daily that listens for `app-messages`."
-          },
-          "applyGreenscreen": {
-            "type": "boolean",
-            "description": "If true, the background will be replaced with a greenscreen (RGB values: `[0, 255, 155]`).\nYou can use WebGL on the frontend to make the greenscreen transparent or change its color."
-          },
-          "language": {
-            "type": "string",
-            "description": "The language of the conversation. Please provide the **full language name**, not the two-letter code.\nIf you are using your own TTS voice, please ensure it supports the language you provide.\nIf you are using a stock replica or default persona, please note that only ElevenLabs and Cartesia supported languages are available.\nYou can find a full list of supported languages for Cartesia here, for ElevenLabs here, and for PlayHT here."
+            "minimum": 100,
+            "maximum": 120000,
+            "example": 1000,
+            "description": "The number of milliseconds to wait for the server response before saying this message."
           },
-          "recordingS3BucketName": {
+          "content": {
             "type": "string",
-            "description": "The name of the S3 bucket where the recording will be stored."
+            "description": "This is the content that the assistant says when this message is triggered.",
+            "maxLength": 1000
           },
-          "recordingS3BucketRegion": {
+          "conditions": {
+            "description": "This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Condition"
+            }
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "MessageTarget": {
+        "type": "object",
+        "properties": {
+          "role": {
             "type": "string",
-            "description": "The region of the S3 bucket where the recording will be stored."
+            "description": "This is the role of the message to target.\n\nIf not specified, will find the position in the message history ignoring role (effectively `any`).",
+            "example": "user",
+            "enum": [
+              "user",
+              "assistant"
+            ]
           },
-          "awsAssumeRoleArn": {
-            "type": "string",
-            "description": "The ARN of the role that will be assumed to access the S3 bucket."
+          "position": {
+            "type": "number",
+            "description": "This is the position of the message to target.\n- Negative numbers: Count from end (-1 = most recent, -2 = second most recent)\n- 0: First/oldest message in history\n- Positive numbers: Specific position (0-indexed from start)\n\n@default -1 (most recent message)",
+            "example": -1
           }
         }
       },
-      "TavusVoice": {
+      "RegexCondition": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is the type discriminator for regex condition",
+            "example": "regex",
             "enum": [
-              "tavus"
+              "regex"
             ]
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "r52da2535a"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "Tavus Voice ID"
-              }
+          "regex": {
+            "type": "string",
+            "description": "This is the regular expression pattern to match against message content.\n\nNote:\n- This works by using the RegExp.test method in Node.JS. Eg. /hello/.test(\"hello there\") will return true.\n\nHot tips:\n- In JavaScript, escape \\ when sending the regex pattern. Eg. \"hello\\sthere\" will be sent over the wire as \"hellosthere\". Send \"hello\\\\sthere\" instead.\n- RegExp.test does substring matching, so /cat/.test(\"I love cats\") will return true. To do full string matching, use anchors: /^cat$/ will only match exactly \"cat\".\n- Word boundaries \\b are useful for matching whole words: /\\bcat\\b/ matches \"cat\" but not \"cats\" or \"category\".\n- Use inline flags for portability: (?i) for case insensitive, (?m) for multiline",
+            "examples": [
+              "\\\\b(cancel|stop|wait)\\\\b - Matches whole words",
+              "^yes$ - Matches exactly yes (full string match)",
+              "(?i)hello - Case insensitive match"
             ]
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+          "target": {
+            "description": "This is the target for messages to check against.\nIf not specified, the condition will run on the last message (position: -1).\nIf role is not specified, it will look at the last message regardless of role.\n@default { position: -1 }",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "$ref": "#/components/schemas/MessageTarget"
               }
             ]
           },
-          "personaId": {
-            "type": "string",
-            "description": "This is the unique identifier for the persona that the replica will use in the conversation."
-          },
-          "callbackUrl": {
-            "type": "string",
-            "description": "This is the url that will receive webhooks with updates regarding the conversation state."
-          },
-          "conversationName": {
-            "type": "string",
-            "description": "This is the name for the conversation."
-          },
-          "conversationalContext": {
-            "type": "string",
-            "description": "This is the context that will be appended to any context provided in the persona, if one is provided."
-          },
-          "customGreeting": {
+          "negate": {
+            "type": "boolean",
+            "description": "This is the flag that when true, the condition matches if the pattern does NOT match.\nUseful for ensuring certain words/phrases are absent.\n\n@default false",
+            "example": "true - Reject if user hasn\"t said goodbye: { regex: \"\\\\b(bye|goodbye)\\\\b\", negate: true }"
+          }
+        },
+        "required": [
+          "type",
+          "regex"
+        ]
+      },
+      "LiquidCondition": {
+        "type": "object",
+        "properties": {
+          "type": {
             "type": "string",
-            "description": "This is the custom greeting that the replica will give once a participant joines the conversation."
-          },
-          "properties": {
-            "description": "These are optional properties used to customize the conversation.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TavusConversationProperties"
-              }
+            "description": "This is the type discriminator for liquid condition",
+            "example": "liquid",
+            "enum": [
+              "liquid"
             ]
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/FallbackPlan"
-              }
+          "liquid": {
+            "type": "string",
+            "description": "This is the Liquid template that must return exactly \"true\" or \"false\" as a string.\nThe template is evaluated and the entire output must be either \"true\" or \"false\" - nothing else.\n\nAvailable variables:\n- `messages`: Array of recent messages in OpenAI chat completions format (ChatCompletionMessageParam[])\n  Each message has properties like: role ('user', 'assistant', 'system'), content (string), etc.\n- `now`: Current timestamp in milliseconds (built-in Liquid variable)\n- Any assistant variable values (e.g., `userName`, `accountStatus`)\n\nUseful Liquid filters for messages:\n- `messages | last: 5` - Get the 5 most recent messages\n- `messages | where: 'role', 'user'` - Filter to only user messages\n- `messages | reverse` - Reverse the order of messages",
+            "examples": [
+              "{% if messages.last.content contains goodbye %}true{% else %}false{% endif %}",
+              "{% assign userMessages = messages | where: role, user %}{% if userMessages.size > 3 %}true{% else %}false{% endif %}"
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type",
+          "liquid"
         ]
       },
-      "VapiVoice": {
+      "GroupCondition": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is the type discriminator for group condition",
+            "example": "group",
             "enum": [
-              "vapi"
+              "group"
             ]
           },
-          "voiceId": {
+          "operator": {
             "type": "string",
-            "description": "The voices provided by Vapi",
+            "description": "This is the logical operator for combining conditions in this group",
+            "examples": [
+              "AND",
+              "OR"
+            ],
             "enum": [
-              "Elliot",
-              "Rohan",
-              "Lily",
-              "Savannah",
-              "Hana",
-              "Neha",
-              "Cole",
-              "Harry",
-              "Paige",
-              "Spencer"
+              "AND",
+              "OR"
             ]
           },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.\n\n@default 1",
-            "minimum": 0.25,
-            "maximum": 2,
-            "default": 1
+          "conditions": {
+            "type": "array",
+            "description": "This is the list of nested conditions to evaluate.\nSupports recursive nesting of groups for complex logic.",
+            "examples": [
+              "[{ type: \"regex\", regex: \"(?i)stop\", target: { role: \"user\" } }]",
+              "[{ type: \"group\", operator: \"AND\", conditions: [...] }]"
+            ],
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/RegexCondition",
+                  "title": "RegexCondition"
+                },
+                {
+                  "$ref": "#/components/schemas/LiquidCondition",
+                  "title": "LiquidCondition"
+                },
+                {
+                  "$ref": "#/components/schemas/GroupCondition",
+                  "title": "GroupCondition",
+                  "description": "This is the GroupCondition object but Swagger does not display nested schemas correctly."
+                }
+              ]
+            }
+          }
+        },
+        "required": [
+          "type",
+          "operator",
+          "conditions"
+        ]
+      },
+      "ToolRejectionPlan": {
+        "type": "object",
+        "properties": {
+          "conditions": {
+            "type": "array",
+            "description": "This is the list of conditions that must be evaluated.\n\nUsage:\n- If all conditions match (AND logic), the tool call is rejected.\n- For OR logic at the top level, use a single 'group' condition with operator: 'OR'.\n\n@default [] - Empty array means tool always executes",
+            "examples": [
+              "[{ type: \"regex\", regex: \"(?i)\\\\b(cancel|stop)\\\\b\", target: { role: \"user\" } }]",
+              "[{ type: \"group\", operator: \"OR\", conditions: [...] }]"
+            ],
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/RegexCondition",
+                  "title": "RegexCondition"
+                },
+                {
+                  "$ref": "#/components/schemas/LiquidCondition",
+                  "title": "LiquidCondition"
+                },
+                {
+                  "$ref": "#/components/schemas/GroupCondition",
+                  "title": "GroupCondition",
+                  "description": "This is the GroupCondition object but Swagger does not display nested schemas correctly."
+                }
+              ]
+            }
+          }
+        }
+      },
+      "CreateDtmfToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "language": {
+          "type": {
             "type": "string",
-            "description": "This is the language code (ISO 639-1) that will be used.\n\n@default 'en-US'",
             "enum": [
-              "en-US",
-              "en-GB",
-              "en-AU",
-              "en-CA",
-              "ja",
-              "zh",
-              "de",
-              "hi",
-              "fr-FR",
-              "fr-CA",
-              "ko",
-              "pt-BR",
-              "pt-PT",
-              "it",
-              "es-ES",
-              "es-MX",
-              "id",
-              "nl",
-              "tr",
-              "fil",
-              "pl",
-              "sv",
-              "bg",
-              "ro",
-              "ar-SA",
-              "ar-AE",
-              "cs",
-              "el",
-              "fi",
-              "hr",
-              "ms",
-              "sk",
-              "da",
-              "ta",
-              "uk",
-              "ru",
-              "hu",
-              "no",
-              "vi"
+              "dtmf"
             ],
-            "default": "en-US"
+            "description": "The type of tool. \"dtmf\" for DTMF tool."
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+          "sipInfoDtmfEnabled": {
+            "type": "boolean",
+            "description": "This enables sending DTMF tones via SIP INFO messages instead of RFC 2833 (RTP events). When enabled, DTMF digits will be sent using the SIP INFO method, which can be more reliable in some network configurations. Only relevant when using the `vapi.sip` transport.",
+            "default": false
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "CreateEndCallToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "fallbackPlan": {
-            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+          "type": {
+            "type": "string",
+            "enum": [
+              "endCall"
+            ],
+            "description": "The type of tool. \"endCall\" for End Call tool."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/FallbackPlan"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type"
         ]
       },
-      "FallbackAzureVoice": {
+      "CreateVoicemailToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "The type of tool. \"voicemail\" for Voicemail tool.",
             "enum": [
-              "azure"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "andrew",
-                  "brian",
-                  "emma"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "Azure Voice ID"
-              }
+              "voicemail"
             ]
           },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.5,
-            "maximum": 2
+          "beepDetectionEnabled": {
+            "type": "boolean",
+            "description": "This is the flag that enables beep detection for voicemail detection and applies only for twilio based calls.\n\n@default false",
+            "default": false,
+            "example": false
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type"
         ]
       },
-      "FallbackCartesiaVoice": {
+      "JsonSchema": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is the type of output you'd like.\n\n`string`, `number`, `integer`, `boolean` are the primitive types and should be obvious.\n\n`array` and `object` are more interesting and quite powerful. They allow you to define nested structures.\n\nFor `array`, you can define the schema of the items in the array using the `items` property.\n\nFor `object`, you can define the properties of the object using the `properties` property.",
             "enum": [
-              "cartesia"
+              "string",
+              "number",
+              "integer",
+              "boolean",
+              "array",
+              "object"
             ]
           },
-          "voiceId": {
-            "type": "string",
-            "description": "The ID of the particular voice you want to use."
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used. This is optional and will default to the correct model for the voiceId.",
-            "enum": [
-              "sonic-2",
-              "sonic-english",
-              "sonic-multilingual",
-              "sonic-preview",
-              "sonic"
-            ],
-            "example": "sonic-english"
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language that will be used. This is optional and will default to the correct language for the voiceId.",
-            "enum": [
-              "en",
-              "de",
-              "es",
-              "fr",
-              "ja",
-              "pt",
-              "zh",
-              "hi",
-              "it",
-              "ko",
-              "nl",
-              "pl",
-              "ru",
-              "sv",
-              "tr"
-            ],
-            "example": "en"
-          },
-          "experimentalControls": {
-            "description": "Experimental controls for Cartesia voice generation",
+          "items": {
+            "description": "This is required if the type is \"array\". This is the schema of the items in the array. This is a recursive reference to JsonSchema.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CartesiaExperimentalControls"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
+          "properties": {
+            "type": "object",
+            "description": "This is required if the type is \"object\". This specifies the properties of the object. This is a map of property names to JsonSchema objects.",
+            "additionalProperties": {
+              "$ref": "#/components/schemas/JsonSchema"
+            }
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description to help the model understand what it needs to output."
+          },
+          "pattern": {
+            "type": "string",
+            "description": "This is the pattern of the string. This is a regex that will be used to validate the data in question. To use a common format, use the `format` property instead.\n\nOpenAI documentation: https://platform.openai.com/docs/guides/structured-outputs#supported-properties"
+          },
+          "format": {
+            "type": "string",
+            "description": "This is the format of the string. To pass a regex, use the `pattern` property instead.\n\nOpenAI documentation: https://platform.openai.com/docs/guides/structured-outputs?api-mode=chat&type-restrictions=string-restrictions",
+            "enum": [
+              "date-time",
+              "time",
+              "date",
+              "duration",
+              "email",
+              "hostname",
+              "ipv4",
+              "ipv6",
+              "uuid"
             ]
+          },
+          "required": {
+            "description": "This is a list of properties that are required.\n\nThis only makes sense if the type is \"object\".",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "enum": {
+            "description": "This array specifies the allowed values that can be used to restrict the output of the model.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "title": {
+            "type": "string",
+            "description": "This is the title of the schema."
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type"
         ]
       },
-      "FallbackCustomVoice": {
+      "VariableExtractionAlias": {
         "type": "object",
         "properties": {
-          "provider": {
+          "key": {
             "type": "string",
-            "description": "This is the voice provider that will be used. Use `custom-voice` for providers that are not natively supported.",
-            "enum": [
-              "custom-voice"
-            ]
-          },
-          "server": {
-            "description": "This is where the voice request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"type\": \"voice-request\",\n    \"text\": \"Hello, world!\",\n    \"sampleRate\": 24000,\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected: 1-channel 16-bit raw PCM audio at the sample rate specified in the request. Here is how the response will be piped to the transport:\n```\nresponse.on('data', (chunk: Buffer) => {\n  outputStream.write(chunk);\n});\n```",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+            "description": "This is the key of the variable.\n\nThis variable will be accessible during the call as `{{key}}` and stored in `call.artifact.variableValues` after the call.\n\nRules:\n- Must start with a letter (a-z, A-Z).\n- Subsequent characters can be letters, numbers, or underscores.\n- Minimum length of 1 and maximum length of 40.",
+            "minLength": 1,
+            "maxLength": 40,
+            "pattern": "/^[a-zA-Z][a-zA-Z0-9_]*$/"
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+          "value": {
+            "type": "string",
+            "description": "This is the value of the variable.\n\nThis can reference existing variables, use filters, and perform transformations.\n\nExamples: \"{{name}}\", \"{{customer.email}}\", \"Hello {{name | upcase}}\"",
+            "maxLength": 10000
           }
         },
         "required": [
-          "provider",
-          "server"
+          "key",
+          "value"
         ]
       },
-      "FallbackDeepgramVoice": {
+      "VariableExtractionPlan": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the voice provider that will be used.",
-            "enum": [
-              "deepgram"
-            ]
-          },
-          "voiceId": {
-            "type": "string",
-            "description": "This is the provider-specific ID that will be used.",
-            "enum": [
-              "asteria",
-              "luna",
-              "stella",
-              "athena",
-              "hera",
-              "orion",
-              "arcas",
-              "perseus",
-              "angus",
-              "orpheus",
-              "helios",
-              "zeus",
-              "thalia",
-              "andromeda",
-              "helena",
-              "apollo",
-              "arcas",
-              "aries",
-              "amalthea",
-              "andromeda",
-              "apollo",
-              "arcas",
-              "aries",
-              "asteria",
-              "athena",
-              "atlas",
-              "aurora",
-              "callista",
-              "cora",
-              "cordelia",
-              "delia",
-              "draco",
-              "electra",
-              "harmonia",
-              "helena",
-              "hera",
-              "hermes",
-              "hyperion",
-              "iris",
-              "janus",
-              "juno",
-              "jupiter",
-              "luna",
-              "mars",
-              "minerva",
-              "neptune",
-              "odysseus",
-              "ophelia",
-              "orion",
-              "orpheus",
-              "pandora",
-              "phoebe",
-              "pluto",
-              "saturn",
-              "selene",
-              "thalia",
-              "theia",
-              "vesta",
-              "zeus"
-            ],
-            "title": "This is the Deepgram Voice ID"
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used. Defaults to 'aura-2' when not specified.",
-            "enum": [
-              "aura",
-              "aura-2"
-            ],
-            "example": "aura-2"
-          },
-          "mipOptOut": {
-            "type": "boolean",
-            "description": "If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out\n\nThis will only be used if you are using your own Deepgram API key.\n\n@default false",
-            "example": false,
-            "default": false
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+          "schema": {
+            "description": "This is the schema to extract.\n\nExamples:\n1. To extract object properties, you can use the following schema:\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"age\": {\n      \"type\": \"number\"\n    }\n  }\n}\n```\n\nThese will be extracted as `{{ name }}` and `{{ age }}` respectively. To emphasize, object properties are extracted as direct global variables.\n\n2. To extract nested properties, you can use the following schema:\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"first\": {\n          \"type\": \"string\"\n        },\n        \"last\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}\n```\n\nThese will be extracted as `{{ name }}`. And, `{{ name.first }}` and `{{ name.last }}` will be accessible.\n\n3. To extract array items, you can use the following schema:\n```json\n{\n  \"type\": \"array\",\n  \"title\": \"zipCodes\",\n  \"items\": {\n    \"type\": \"string\"\n  }\n}\n```\n\nThis will be extracted as `{{ zipCodes }}`. To access the array items, you can use `{{ zipCodes[0] }}` and `{{ zipCodes[1] }}`.\n\n4. To extract array of objects, you can use the following schema:\n\n```json\n{\n  \"type\": \"array\",\n  \"name\": \"people\",\n  \"items\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"name\": {\n        \"type\": \"string\"\n      },\n      \"age\": {\n        \"type\": \"number\"\n      },\n      \"zipCodes\": {\n        \"type\": \"array\",\n        \"items\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}\n```\n\nThis will be extracted as `{{ people }}`. To access the array items, you can use `{{ people[n].name }}`, `{{ people[n].age }}`, `{{ people[n].zipCodes }}`, `{{ people[n].zipCodes[0] }}` and `{{ people[n].zipCodes[1] }}`.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
+          },
+          "aliases": {
+            "description": "These are additional variables to create.\n\nThese will be accessible during the call as `{{key}}` and stored in `call.artifact.variableValues` after the call.\n\nExample:\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{name}}\"\n    },\n    {\n      \"key\": \"fullName\",\n      \"value\": \"{{firstName}} {{lastName}}\"\n    },\n    {\n      \"key\": \"greeting\",\n      \"value\": \"Hello {{name}}, welcome to {{company}}!\"\n    },\n    {\n      \"key\": \"customerCity\",\n      \"value\": \"{{addresses[0].city}}\"\n    },\n    {\n      \"key\": \"something\",\n      \"value\": \"{{any liquid}}\"\n    }\n  ]\n}\n```\n\nThis will create variables `customerName`, `fullName`, `greeting`, `customerCity`, and `something`. To access these variables, you can reference them as `{{customerName}}`, `{{fullName}}`, `{{greeting}}`, `{{customerCity}}`, and `{{something}}`.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/VariableExtractionAlias"
+            }
           }
-        },
-        "required": [
-          "provider",
-          "voiceId"
-        ]
+        }
       },
-      "FallbackElevenLabsVoice": {
+      "ToolParameter": {
         "type": "object",
         "properties": {
-          "provider": {
+          "key": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
-            "enum": [
-              "11labs"
-            ]
+            "description": "This is the key of the parameter."
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library.",
+          "value": {
+            "description": "The value of the parameter. Any JSON type. String values support Liquid templates.",
             "oneOf": [
               {
-                "type": "string",
-                "enum": [
-                  "burt",
-                  "marissa",
-                  "andrea",
-                  "sarah",
-                  "phillip",
-                  "steve",
-                  "joseph",
-                  "myra",
-                  "paula",
-                  "ryan",
-                  "drew",
-                  "paul",
-                  "mrb",
-                  "matilda",
-                  "mark"
-                ],
-                "title": "Preset Voice Options"
+                "type": "string"
               },
               {
-                "type": "string",
-                "title": "11Labs Voice ID"
-              }
-            ]
-          },
-          "stability": {
-            "type": "number",
-            "description": "Defines the stability for voice settings.",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.5
-          },
-          "similarityBoost": {
-            "type": "number",
-            "description": "Defines the similarity boost for voice settings.",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0.75
-          },
-          "style": {
-            "type": "number",
-            "description": "Defines the style for voice settings.",
-            "minimum": 0,
-            "maximum": 1,
-            "example": 0
-          },
-          "useSpeakerBoost": {
-            "type": "boolean",
-            "description": "Defines the use speaker boost for voice settings.",
-            "example": false
-          },
-          "speed": {
-            "type": "number",
-            "description": "Defines the speed for voice settings.",
-            "minimum": 0.7,
-            "maximum": 1.2,
-            "example": 0.9
-          },
-          "optimizeStreamingLatency": {
-            "type": "number",
-            "description": "Defines the optimize streaming latency for voice settings. Defaults to 3.",
-            "minimum": 0,
-            "maximum": 4,
-            "example": 3
-          },
-          "enableSsmlParsing": {
-            "type": "boolean",
-            "description": "This enables the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Defaults to false to save latency.\n\n@default false",
-            "example": false
-          },
-          "autoMode": {
-            "type": "boolean",
-            "description": "Defines the auto mode for voice settings. Defaults to false.",
-            "example": false
-          },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified.",
-            "enum": [
-              "eleven_multilingual_v2",
-              "eleven_turbo_v2",
-              "eleven_turbo_v2_5",
-              "eleven_flash_v2",
-              "eleven_flash_v2_5",
-              "eleven_monolingual_v1"
-            ],
-            "example": "eleven_turbo_v2_5"
-          },
-          "language": {
-            "type": "string",
-            "description": "This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided."
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
+                "type": "number"
+              },
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "type": "boolean"
+              },
+              {
+                "type": "object"
+              },
+              {
+                "type": "array"
               }
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "key",
+          "value"
         ]
       },
-      "FallbackHumeVoice": {
+      "OpenAIFunctionParameters": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This must be set to 'object'. It instructs the model to return a JSON object containing the function call properties.",
             "enum": [
-              "hume"
+              "object"
             ]
           },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used.",
-            "enum": [
-              "octave"
-            ],
-            "example": "octave"
-          },
-          "voiceId": {
-            "type": "string",
-            "description": "The ID of the particular voice you want to use."
+          "properties": {
+            "type": "object",
+            "description": "This provides a description of the properties required by the function.\nJSON Schema can be used to specify expectations for each property.\nRefer to [this doc](https://ajv.js.org/json-schema.html#json-data-type) for a comprehensive guide on JSON Schema.",
+            "additionalProperties": {
+              "$ref": "#/components/schemas/JsonSchema"
+            }
           },
-          "isCustomHumeVoice": {
+          "required": {
+            "description": "This specifies the properties that are required by the function.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          }
+        },
+        "required": [
+          "type",
+          "properties"
+        ]
+      },
+      "OpenAIFunction": {
+        "type": "object",
+        "properties": {
+          "strict": {
             "type": "boolean",
-            "description": "Indicates whether the chosen voice is a preset Hume AI voice or a custom voice.",
-            "example": false
+            "description": "This is a boolean that controls whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the parameters field. Only a subset of JSON Schema is supported when strict is true. Learn more about Structured Outputs in the [OpenAI guide](https://openai.com/index/introducing-structured-outputs-in-the-api/).\n\n@default false",
+            "default": false
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the the name of the function to be called.\n\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
+            "maxLength": 64,
+            "pattern": "/^[a-zA-Z0-9_-]{1,64}$/"
           },
           "description": {
             "type": "string",
-            "description": "Natural language instructions describing how the synthesized speech should sound, including but not limited to tone, intonation, pacing, and accent (e.g., 'a soft, gentle voice with a strong British accent').\n\nIf a Voice is specified in the request, this description serves as acting instructions.\nIf no Voice is specified, a new voice is generated based on this description."
+            "description": "This is the description of what the function does, used by the AI to choose when and how to call the function."
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+          "parameters": {
+            "description": "These are the parameters the functions accepts, described as a JSON Schema object.\n\nSee the [OpenAI guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema) for documentation about the format.\n\nOmitting parameters defines a function with an empty parameter list.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "$ref": "#/components/schemas/OpenAIFunctionParameters"
               }
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "name"
         ]
       },
-      "FallbackLMNTVoice": {
+      "CreateFunctionToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
             "enum": [
-              "lmnt"
-            ]
+              "function"
+            ],
+            "description": "The type of tool. \"function\" for Function tool."
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "lily",
-                  "daniel"
-                ],
-                "title": "Preset Voice Options"
-              },
+          "async": {
+            "type": "boolean",
+            "example": false,
+            "description": "This determines if the tool is async.\n\n  If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\n  If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\n  Defaults to synchronous (`false`)."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
               {
-                "type": "string",
-                "title": "LMNT Voice ID"
+                "$ref": "#/components/schemas/Server"
               }
             ]
           },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.25,
-            "maximum": 2,
-            "example": null
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+          "variableExtractionPlan": {
+            "description": "Plan to extract variables from the tool response",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "$ref": "#/components/schemas/VariableExtractionPlan"
               }
             ]
-          }
-        },
-        "required": [
-          "provider",
-          "voiceId"
-        ]
-      },
-      "FallbackNeuphonicVoice": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the voice provider that will be used.",
-            "enum": [
-              "neuphonic"
-            ]
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [],
-                "title": "Preset Voice Options"
-              },
+          "parameters": {
+            "description": "Static key-value pairs merged into the request body. Values support Liquid templates.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolParameter"
+            }
+          },
+          "function": {
+            "description": "This is the function definition of the tool.",
+            "allOf": [
               {
-                "type": "string",
-                "title": "Neuphonic Voice ID"
+                "$ref": "#/components/schemas/OpenAIFunction"
               }
             ]
           },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used. Defaults to 'neu_fast' if not specified.",
-            "enum": [
-              "neu_hq",
-              "neu_fast"
-            ],
-            "example": "neu_fast"
-          },
-          "language": {
-            "type": "object",
-            "description": "This is the language (ISO 639-1) that is enforced for the model.",
-            "example": "en"
-          },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.25,
-            "maximum": 2,
-            "example": null
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId",
-          "language"
+          "type"
         ]
       },
-      "FallbackOpenAIVoice": {
+      "GhlToolMetadata": {
         "type": "object",
         "properties": {
-          "provider": {
+          "workflowId": {
+            "type": "string"
+          },
+          "locationId": {
+            "type": "string"
+          }
+        }
+      },
+      "CreateGhlToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
             "enum": [
-              "openai"
-            ]
+              "ghl"
+            ],
+            "description": "The type of tool. \"ghl\" for GHL tool."
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.\nPlease note that ash, ballad, coral, sage, and verse may only be used with realtime models.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "alloy",
-                  "echo",
-                  "fable",
-                  "onyx",
-                  "nova",
-                  "shimmer"
-                ],
-                "title": "Preset Voice Options"
-              },
+          "metadata": {
+            "$ref": "#/components/schemas/GhlToolMetadata"
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
               {
-                "type": "string",
-                "title": "OpenAI Voice ID"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
+          }
+        },
+        "required": [
+          "type",
+          "metadata"
+        ]
+      },
+      "MakeToolMetadata": {
+        "type": "object",
+        "properties": {
+          "scenarioId": {
+            "type": "number"
           },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used for text-to-speech.",
-            "enum": [
-              "tts-1",
-              "tts-1-hd",
-              "gpt-4o-mini-tts"
-            ]
+          "triggerHookId": {
+            "type": "number"
+          }
+        }
+      },
+      "CreateMakeToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "instructions": {
+          "type": {
             "type": "string",
-            "description": "This is a prompt that allows you to control the voice of your generated audio.\nDoes not work with 'tts-1' or 'tts-1-hd' models.",
-            "maxLength": 10000
+            "enum": [
+              "make"
+            ],
+            "description": "The type of tool. \"make\" for Make tool."
           },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.25,
-            "maximum": 4,
-            "example": null
+          "metadata": {
+            "$ref": "#/components/schemas/MakeToolMetadata"
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ChunkPlan"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type",
+          "metadata"
         ]
       },
-      "FallbackPlayHTVoice": {
+      "CustomMessage": {
         "type": "object",
         "properties": {
-          "provider": {
+          "contents": {
+            "type": "array",
+            "description": "This is an alternative to the `content` property. It allows to specify variants of the same content, one per language.\n\nUsage:\n- If your assistants are multilingual, you can provide content for each language.\n- If you don't provide content for a language, the first item in the array will be automatically translated to the active language at that moment.\n\nThis will override the `content` property.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TextContent",
+                  "title": "Text"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is a custom message.",
             "enum": [
-              "playht"
+              "custom-message"
             ]
           },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
+          "content": {
+            "type": "string",
+            "description": "This is the content that the assistant will say when this message is triggered.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "TransferDestinationAssistant": {
+        "type": "object",
+        "properties": {
+          "message": {
+            "description": "This is spoken to the customer before connecting them to the destination.\n\nUsage:\n- If this is not provided and transfer tool messages is not provided, default is \"Transferring the call now\".\n- If set to \"\", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant.\n\nThis accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field.",
             "oneOf": [
               {
-                "type": "string",
-                "enum": [
-                  "jennifer",
-                  "melissa",
-                  "will",
-                  "chris",
-                  "matt",
-                  "jack",
-                  "ruby",
-                  "davis",
-                  "donna",
-                  "michael"
-                ],
-                "title": "Preset Voice Options"
+                "type": "string"
               },
               {
-                "type": "string",
-                "title": "PlayHT Voice ID"
+                "$ref": "#/components/schemas/CustomMessage"
               }
             ]
           },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.1,
-            "maximum": 5,
-            "example": null
-          },
-          "temperature": {
-            "type": "number",
-            "description": "A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice.",
-            "minimum": 0.1,
-            "maximum": 2,
-            "example": null
-          },
-          "emotion": {
+          "type": {
             "type": "string",
-            "description": "An emotion to be applied to the speech.",
             "enum": [
-              "female_happy",
-              "female_sad",
-              "female_angry",
-              "female_fearful",
-              "female_disgust",
-              "female_surprised",
-              "male_happy",
-              "male_sad",
-              "male_angry",
-              "male_fearful",
-              "male_disgust",
-              "male_surprised"
-            ],
-            "example": null
-          },
-          "voiceGuidance": {
-            "type": "number",
-            "description": "A number between 1 and 6. Use lower numbers to reduce how unique your chosen voice will be compared to other voices.",
-            "minimum": 1,
-            "maximum": 6,
-            "example": null
-          },
-          "styleGuidance": {
-            "type": "number",
-            "description": "A number between 1 and 30. Use lower numbers to to reduce how strong your chosen emotion will be. Higher numbers will create a very emotional performance.",
-            "minimum": 1,
-            "maximum": 30,
-            "example": null
-          },
-          "textGuidance": {
-            "type": "number",
-            "description": "A number between 1 and 2. This number influences how closely the generated speech adheres to the input text. Use lower values to create more fluid speech, but with a higher chance of deviating from the input text. Higher numbers will make the generated speech more accurate to the input text, ensuring that the words spoken align closely with the provided text.",
-            "minimum": 1,
-            "maximum": 2,
-            "example": null
+              "assistant"
+            ]
           },
-          "model": {
+          "transferMode": {
             "type": "string",
-            "description": "Playht voice model/engine to use.",
+            "description": "This is the mode to use for the transfer. Defaults to `rolling-history`.\n\n- `rolling-history`: This is the default mode. It keeps the entire conversation history and appends the new assistant's system message on transfer.\n\n  Example:\n\n  Pre-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n\n  Post-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n    system: assistant2 system message\n    assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)\n\n- `swap-system-message-in-history`: This replaces the original system message with the new assistant's system message on transfer.\n\n  Example:\n\n  Pre-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n\n  Post-transfer:\n    system: assistant2 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n    assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)\n\n- `delete-history`: This deletes the entire conversation history on transfer.\n\n  Example:\n\n  Pre-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n\n  Post-transfer:\n    system: assistant2 system message\n    assistant: assistant2 first message\n    user: Yes, please\n    assistant: how can i help?\n    user: i need help with my account\n\n- `swap-system-message-in-history-and-remove-transfer-tool-messages`: This replaces the original system message with the new assistant's system message on transfer and removes transfer tool messages from conversation history sent to the LLM.\n\n  Example:\n\n  Pre-transfer:\n    system: assistant1 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    transfer-tool\n    transfer-tool-result\n    assistant: (destination.message)\n\n  Post-transfer:\n    system: assistant2 system message\n    assistant: assistant1 first message\n    user: hey, good morning\n    assistant: how can i help?\n    user: i need help with my account\n    assistant: (destination.message)\n    assistant: assistant2 first message (or model generated if firstMessageMode is set to `assistant-speaks-first-with-model-generated-message`)\n\n@default 'rolling-history'",
             "enum": [
-              "PlayHT2.0",
-              "PlayHT2.0-turbo",
-              "Play3.0-mini",
-              "PlayDialog"
+              "rolling-history",
+              "swap-system-message-in-history",
+              "swap-system-message-in-history-and-remove-transfer-tool-messages",
+              "delete-history"
             ]
           },
-          "language": {
+          "assistantName": {
             "type": "string",
-            "description": "The language to use for the speech.",
-            "enum": [
-              "afrikaans",
-              "albanian",
-              "amharic",
-              "arabic",
-              "bengali",
-              "bulgarian",
-              "catalan",
-              "croatian",
-              "czech",
-              "danish",
-              "dutch",
-              "english",
-              "french",
-              "galician",
-              "german",
-              "greek",
-              "hebrew",
-              "hindi",
-              "hungarian",
-              "indonesian",
-              "italian",
-              "japanese",
-              "korean",
-              "malay",
-              "mandarin",
-              "polish",
-              "portuguese",
-              "russian",
-              "serbian",
-              "spanish",
-              "swedish",
-              "tagalog",
-              "thai",
-              "turkish",
-              "ukrainian",
-              "urdu",
-              "xhosa"
-            ]
+            "description": "This is the assistant to transfer the call to."
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+          "description": {
+            "type": "string",
+            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type",
+          "assistantName"
         ]
       },
-      "FallbackRimeAIVoice": {
+      "TransferFallbackPlan": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the voice provider that will be used.",
-            "enum": [
-              "rime-ai"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
+          "message": {
+            "description": "This is the message the assistant will deliver to the customer if the transfer fails.",
             "oneOf": [
               {
-                "type": "string",
-                "enum": [
-                  "abbie",
-                  "allison",
-                  "ally",
-                  "alona",
-                  "amber",
-                  "ana",
-                  "antoine",
-                  "armon",
-                  "brenda",
-                  "brittany",
-                  "carol",
-                  "colin",
-                  "courtney",
-                  "elena",
-                  "elliot",
-                  "eva",
-                  "geoff",
-                  "gerald",
-                  "hank",
-                  "helen",
-                  "hera",
-                  "jen",
-                  "joe",
-                  "joy",
-                  "juan",
-                  "kendra",
-                  "kendrick",
-                  "kenneth",
-                  "kevin",
-                  "kris",
-                  "linda",
-                  "madison",
-                  "marge",
-                  "marina",
-                  "marissa",
-                  "marta",
-                  "maya",
-                  "nicholas",
-                  "nyles",
-                  "phil",
-                  "reba",
-                  "rex",
-                  "rick",
-                  "ritu",
-                  "rob",
-                  "rodney",
-                  "rohan",
-                  "rosco",
-                  "samantha",
-                  "sandy",
-                  "selena",
-                  "seth",
-                  "sharon",
-                  "stan",
-                  "tamra",
-                  "tanya",
-                  "tibur",
-                  "tj",
-                  "tyler",
-                  "viv",
-                  "yadira",
-                  "marsh",
-                  "bayou",
-                  "creek",
-                  "brook",
-                  "flower",
-                  "spore",
-                  "glacier",
-                  "gulch",
-                  "alpine",
-                  "cove",
-                  "lagoon",
-                  "tundra",
-                  "steppe",
-                  "mesa",
-                  "grove",
-                  "rainforest",
-                  "moraine",
-                  "wildflower",
-                  "peak",
-                  "boulder",
-                  "gypsum",
-                  "zest"
-                ],
-                "title": "Preset Voice Options"
+                "type": "string"
               },
               {
-                "type": "string",
-                "title": "RimeAI Voice ID"
+                "$ref": "#/components/schemas/CustomMessage"
               }
             ]
           },
-          "model": {
-            "type": "string",
-            "description": "This is the model that will be used. Defaults to 'v1' when not specified.",
-            "enum": [
-              "v1",
-              "mist",
-              "mistv2"
-            ],
-            "example": "mistv2"
-          },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "minimum": 0.1,
-            "example": null
-          },
-          "pauseBetweenBrackets": {
-            "type": "boolean",
-            "description": "This is a flag that controls whether to add slight pauses using angle brackets. Example: “Hi. <200> I’d love to have a conversation with you.” adds a 200ms pause between the first and second sentences.",
-            "example": false
-          },
-          "phonemizeBetweenBrackets": {
-            "type": "boolean",
-            "description": "This is a flag that controls whether text inside brackets should be phonemized (converted to phonetic pronunciation) - Example: \"{h'El.o} World\" will pronounce \"Hello\" as expected.",
-            "example": false
-          },
-          "reduceLatency": {
+          "endCallEnabled": {
             "type": "boolean",
-            "description": "This is a flag that controls whether to optimize for reduced latency in streaming. https://docs.rime.ai/api-reference/endpoint/websockets#param-reduce-latency",
-            "example": false
-          },
-          "inlineSpeedAlpha": {
-            "type": "string",
-            "description": "This is a string that allows inline speed control using alpha notation. https://docs.rime.ai/api-reference/endpoint/websockets#param-inline-speed-alpha",
-            "example": null
-          },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+            "description": "This controls what happens after delivering the failure message to the customer.\n- true: End the call after delivering the failure message (default)\n- false: Keep the assistant on the call to continue handling the customer's request\n\n@default true",
+            "default": true
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "message"
         ]
       },
-      "FallbackSmallestAIVoice": {
+      "TransferAssistantModel": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "The model provider for the transfer assistant",
             "enum": [
-              "smallest-ai"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "emily",
-                  "jasmine",
-                  "arman",
-                  "james",
-                  "mithali",
-                  "aravind",
-                  "raj",
-                  "diya",
-                  "raman",
-                  "ananya",
-                  "isha",
-                  "william",
-                  "aarav",
-                  "monika",
-                  "niharika",
-                  "deepika",
-                  "raghav",
-                  "kajal",
-                  "radhika",
-                  "mansi",
-                  "nisha",
-                  "saurabh",
-                  "pooja",
-                  "saina",
-                  "sanya"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "Smallest AI Voice ID"
-              }
+              "openai",
+              "anthropic",
+              "google",
+              "custom-llm"
             ]
           },
           "model": {
             "type": "string",
-            "description": "Smallest AI voice model to use. Defaults to 'lightning' when not specified.",
-            "enum": [
-              "lightning"
-            ]
+            "description": "The model name - must be compatible with the selected provider",
+            "example": "gpt-4o"
           },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.",
-            "example": null
+          "messages": {
+            "type": "array",
+            "description": "These are the messages used to configure the transfer assistant.\n\n@default: ```\n[\n  {\n    role: 'system',\n    content: 'You are a transfer assistant designed to facilitate call transfers. Your core responsibility is to manage the transfer process efficiently.\\n\\n## Core Responsibility\\n- Facilitate the transfer process by using transferSuccessful or transferCancel tools appropriately\\n\\n## When to Respond\\n- Answer questions about the transfer process or provide summaries when specifically asked by the operator\\n- Respond to direct questions about the current transfer situation\\n\\n## What to Avoid\\n- Do not discuss topics unrelated to the transfer\\n- Do not engage in general conversation\\n- Keep all interactions focused on facilitating the transfer\\n\\n## Transfer Tools\\n- Use transferSuccessful when the transfer should proceed\\n- Use transferCancel when the transfer cannot be completed\\n\\nStay focused on your core responsibility of facilitating transfers.'\n  }\n]```\n\n**Default Behavior:** If you don't provide any messages or don't include a system message as the first message, the default system message above will be automatically added.\n\n**Override Default:** To replace the default system message, provide your own system message as the first message in the array.\n\n**Add Context:** You can provide additional messages (user, assistant, etc.) to add context while keeping the default system message, or combine them with your custom system message."
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+          "tools": {
+            "type": "array",
+            "description": "Tools available to the transfer assistant during warm-transfer-experimental.\n\n**Default Behavior:** The transfer assistant will ALWAYS have both `transferSuccessful` and `transferCancel` tools automatically added, regardless of what you provide here.\n\n**Default Tools:**\n- `transferSuccessful`: \"Call this function to confirm the transfer is successful and connect the customer. Use this when you detect a human has answered and is ready to take the call.\"\n- `transferCancel`: \"Call this function to cancel the transfer when no human answers or transfer should not proceed. Use this when you detect voicemail, busy signal, or no answer.\"\n\n**Customization:** You can override the default tools by providing `transferSuccessful` and/or `transferCancel` tools with custom `function` or `messages` configurations.\n\n**Additional Tools:** You can also provide other tools, but the two transfer tools will always be present and available to the assistant."
           }
         },
         "required": [
           "provider",
-          "voiceId"
+          "model"
         ]
       },
-      "FallbackTavusVoice": {
+      "RegexOption": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This is the type of the regex option. Options are:\n- `ignore-case`: Ignores the case of the text being matched. Add\n- `whole-word`: Matches whole words only.\n- `multi-line`: Matches across multiple lines.",
             "enum": [
-              "tavus"
-            ]
-          },
-          "voiceId": {
-            "description": "This is the provider-specific ID that will be used.",
-            "oneOf": [
-              {
-                "type": "string",
-                "enum": [
-                  "r52da2535a"
-                ],
-                "title": "Preset Voice Options"
-              },
-              {
-                "type": "string",
-                "title": "Tavus Voice ID"
-              }
+              "ignore-case",
+              "whole-word",
+              "multi-line"
             ]
           },
-          "personaId": {
+          "enabled": {
+            "type": "boolean",
+            "description": "This is whether to enable the option.\n\n@default false"
+          }
+        },
+        "required": [
+          "type",
+          "enabled"
+        ]
+      },
+      "AssistantCustomEndpointingRule": {
+        "type": "object",
+        "properties": {
+          "type": {
             "type": "string",
-            "description": "This is the unique identifier for the persona that the replica will use in the conversation."
+            "description": "This endpointing rule is based on the last assistant message before customer started speaking.\n\nFlow:\n- Assistant speaks\n- Customer starts speaking\n- Customer transcription comes in\n- This rule is evaluated on the last assistant message\n- If a match is found based on `regex`, the endpointing timeout is set to `timeoutSeconds`\n\nUsage:\n- If you have yes/no questions in your use case like \"are you interested in a loan?\", you can set a shorter timeout.\n- If you have questions where the customer may pause to look up information like \"what's my account number?\", you can set a longer timeout.",
+            "enum": [
+              "assistant"
+            ]
           },
-          "callbackUrl": {
+          "regex": {
             "type": "string",
-            "description": "This is the url that will receive webhooks with updates regarding the conversation state."
+            "description": "This is the regex pattern to match.\n\nNote:\n- This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test(\"hello there\")` will return `true`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead.\n- `RegExp.test` does substring matching, so `/cat/.test(\"I love cats\")` will return `true`. To do full string matching, send \"^cat$\"."
           },
-          "conversationName": {
-            "type": "string",
-            "description": "This is the name for the conversation."
-          },
-          "conversationalContext": {
-            "type": "string",
-            "description": "This is the context that will be appended to any context provided in the persona, if one is provided."
-          },
-          "customGreeting": {
-            "type": "string",
-            "description": "This is the custom greeting that the replica will give once a participant joines the conversation."
-          },
-          "properties": {
-            "description": "These are optional properties used to customize the conversation.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TavusConversationProperties"
-              }
-            ]
+          "regexOptions": {
+            "description": "These are the options for the regex match. Defaults to all disabled.\n\n@default []",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/RegexOption"
+            }
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the endpointing timeout in seconds, if the rule is matched.",
+            "minimum": 0,
+            "maximum": 15
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type",
+          "regex",
+          "timeoutSeconds"
         ]
       },
-      "FallbackVapiVoice": {
+      "CustomerCustomEndpointingRule": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
-            "description": "This is the voice provider that will be used.",
+            "description": "This endpointing rule is based on current customer message as they are speaking.\n\nFlow:\n- Assistant speaks\n- Customer starts speaking\n- Customer transcription comes in\n- This rule is evaluated on the current customer transcription\n- If a match is found based on `regex`, the endpointing timeout is set to `timeoutSeconds`\n\nUsage:\n- If you want to wait longer while customer is speaking numbers, you can set a longer timeout.",
             "enum": [
-              "vapi"
+              "customer"
             ]
           },
-          "voiceId": {
+          "regex": {
             "type": "string",
-            "description": "The voices provided by Vapi",
-            "enum": [
-              "Elliot",
-              "Rohan",
-              "Lily",
-              "Savannah",
-              "Hana",
-              "Neha",
-              "Cole",
-              "Harry",
-              "Paige",
-              "Spencer"
-            ]
-          },
-          "speed": {
-            "type": "number",
-            "description": "This is the speed multiplier that will be used.\n\n@default 1",
-            "minimum": 0.25,
-            "maximum": 2,
-            "default": 1
+            "description": "This is the regex pattern to match.\n\nNote:\n- This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test(\"hello there\")` will return `true`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead.\n- `RegExp.test` does substring matching, so `/cat/.test(\"I love cats\")` will return `true`. To do full string matching, send \"^cat$\"."
           },
-          "language": {
-            "type": "string",
-            "description": "This is the language code (ISO 639-1) that will be used.\n\n@default 'en-US'",
-            "enum": [
-              "en-US",
-              "en-GB",
-              "en-AU",
-              "en-CA",
-              "ja",
-              "zh",
-              "de",
-              "hi",
-              "fr-FR",
-              "fr-CA",
-              "ko",
-              "pt-BR",
-              "pt-PT",
-              "it",
-              "es-ES",
-              "es-MX",
-              "id",
-              "nl",
-              "tr",
-              "fil",
-              "pl",
-              "sv",
-              "bg",
-              "ro",
-              "ar-SA",
-              "ar-AE",
-              "cs",
-              "el",
-              "fi",
-              "hr",
-              "ms",
-              "sk",
-              "da",
-              "ta",
-              "uk",
-              "ru",
-              "hu",
-              "no",
-              "vi"
-            ],
-            "default": "en-US"
+          "regexOptions": {
+            "description": "These are the options for the regex match. Defaults to all disabled.\n\n@default []",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/RegexOption"
+            }
           },
-          "chunkPlan": {
-            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ChunkPlan"
-              }
-            ]
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the endpointing timeout in seconds, if the rule is matched.",
+            "minimum": 0,
+            "maximum": 15
           }
         },
         "required": [
-          "provider",
-          "voiceId"
+          "type",
+          "regex",
+          "timeoutSeconds"
         ]
       },
-      "TransportConfigurationTwilio": {
+      "BothCustomEndpointingRule": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
+            "description": "This endpointing rule is based on both the last assistant message and the current customer message as they are speaking.\n\nFlow:\n- Assistant speaks\n- Customer starts speaking\n- Customer transcription comes in\n- This rule is evaluated on the last assistant message and the current customer transcription\n- If assistant message matches `assistantRegex` AND customer message matches `customerRegex`, the endpointing timeout is set to `timeoutSeconds`\n\nUsage:\n- If you want to wait longer while customer is speaking numbers, you can set a longer timeout.",
             "enum": [
-              "twilio"
+              "both"
             ]
           },
-          "timeout": {
-            "type": "number",
-            "description": "The integer number of seconds that we should allow the phone to ring before assuming there is no answer.\nThe default is `60` seconds and the maximum is `600` seconds.\nFor some call flows, we will add a 5-second buffer to the timeout value you provide.\nFor this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds.\nYou can set this to a short time, such as `15` seconds, to hang up before reaching an answering machine or voicemail.\n\n@default 60",
-            "minimum": 1,
-            "maximum": 600,
-            "example": 60
+          "assistantRegex": {
+            "type": "string",
+            "description": "This is the regex pattern to match the assistant's message.\n\nNote:\n- This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test(\"hello there\")` will return `true`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead.\n- `RegExp.test` does substring matching, so `/cat/.test(\"I love cats\")` will return `true`. To do full string matching, send \"^cat$\"."
           },
-          "record": {
-            "type": "boolean",
-            "description": "Whether to record the call.\nCan be `true` to record the phone call, or `false` to not.\nThe default is `false`.\n\n@default false",
-            "example": false
+          "assistantRegexOptions": {
+            "description": "These are the options for the assistant's message regex match. Defaults to all disabled.\n\n@default []",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/RegexOption"
+            }
           },
-          "recordingChannels": {
-            "type": "string",
-            "description": "The number of channels in the final recording.\nCan be: `mono` or `dual`.\nThe default is `mono`.\n`mono` records both legs of the call in a single channel of the recording file.\n`dual` records each leg to a separate channel of the recording file.\nThe first channel of a dual-channel recording contains the parent call and the second channel contains the child call.\n\n@default 'mono'",
-            "enum": [
-              "mono",
-              "dual"
-            ],
-            "example": "mono"
+          "customerRegex": {
+            "type": "string"
+          },
+          "customerRegexOptions": {
+            "description": "These are the options for the customer's message regex match. Defaults to all disabled.\n\n@default []",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/RegexOption"
+            }
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the endpointing timeout in seconds, if the rule is matched.",
+            "minimum": 0,
+            "maximum": 15
           }
         },
         "required": [
-          "provider"
+          "type",
+          "assistantRegex",
+          "customerRegex",
+          "timeoutSeconds"
         ]
       },
-      "CreateAnthropicCredentialDTO": {
+      "VapiSmartEndpointingPlan": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
+            "description": "This is the provider for the smart endpointing plan.",
             "enum": [
-              "anthropic"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+              "vapi",
+              "livekit",
+              "custom-endpointing-model"
+            ],
+            "example": "vapi"
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "provider"
         ]
       },
-      "CreateAnyscaleCredentialDTO": {
+      "LivekitSmartEndpointingPlan": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
+            "description": "This is the provider for the smart endpointing plan.",
             "enum": [
-              "anyscale"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+              "vapi",
+              "livekit",
+              "custom-endpointing-model"
+            ],
+            "example": "livekit"
           },
-          "name": {
+          "waitFunction": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This expression describes how long the bot will wait to start speaking based on the likelihood that the user has reached an endpoint.\n\nThis is a millisecond valued function. It maps probabilities (real numbers on [0,1]) to milliseconds that the bot should wait before speaking ([0, \\infty]). Any negative values that are returned are set to zero (the bot can't start talking in the past).\n\nA probability of zero represents very high confidence that the caller has stopped speaking, and would like the bot to speak to them. A probability of one represents very high confidence that the caller is still speaking.\n\nUnder the hood, this is parsed into a mathjs expression. Whatever you use to write your expression needs to be valid with respect to mathjs\n\n@default \"20 + 500 * sqrt(x) + 2500 * x^3\"",
+            "examples": [
+              "70 + 4000 * x",
+              "200 + 8000 * x",
+              "4000 * (1 - cos(pi * x))"
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "provider"
         ]
       },
-      "CreateAssemblyAICredentialDTO": {
+      "CustomEndpointingModelSmartEndpointingPlan": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
+            "description": "This is the provider for the smart endpointing plan. Use `custom-endpointing-model` for custom endpointing providers that are not natively supported.",
             "enum": [
-              "assembly-ai"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+              "vapi",
+              "livekit",
+              "custom-endpointing-model"
+            ],
+            "example": "custom-endpointing-model"
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "server": {
+            "description": "This is where the endpointing request will be sent. If not provided, will be sent to `assistant.server`. If that does not exist either, will be sent to `org.server`.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"type\": \"call.endpointing.request\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"message\": \"Hello, how are you?\",\n        \"time\": 1234567890,\n        \"secondsFromStart\": 0\n      }\n    ],\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected:\n{\n  \"timeoutSeconds\": 0.5\n}\n\nThe timeout is the number of seconds to wait before considering the user's speech as finished. The endpointing timeout is automatically reset each time a new transcript is received (and another `call.endpointing.request` is sent).",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "provider"
         ]
       },
-      "AzureBlobStorageBucketPlan": {
+      "TranscriptionEndpointingPlan": {
         "type": "object",
         "properties": {
-          "connectionString": {
-            "type": "string",
-            "description": "This is the blob storage connection string for the Azure resource."
+          "onPunctuationSeconds": {
+            "type": "number",
+            "description": "The minimum number of seconds to wait after transcription ending with punctuation before sending a request to the model. Defaults to 0.1.\n\nThis setting exists because the transcriber punctuates the transcription when it's more confident that customer has completed a thought.\n\n@default 0.1",
+            "minimum": 0,
+            "maximum": 3,
+            "example": 0.1
           },
-          "containerName": {
-            "type": "string",
-            "description": "This is the container name for the Azure blob storage."
+          "onNoPunctuationSeconds": {
+            "type": "number",
+            "description": "The minimum number of seconds to wait after transcription ending without punctuation before sending a request to the model. Defaults to 1.5.\n\nThis setting exists to catch the cases where the transcriber was not confident enough to punctuate the transcription, but the customer is done and has been silent for a long time.\n\n@default 1.5",
+            "minimum": 0,
+            "maximum": 3,
+            "example": 1.5
           },
-          "path": {
-            "type": "string",
-            "description": "This is the path where call artifacts will be stored.\n\nUsage:\n- To store call artifacts in a specific folder, set this to the full path. Eg. \"/folder-name1/folder-name2\".\n- To store call artifacts in the root of the bucket, leave this blank.\n\n@default \"/\""
+          "onNumberSeconds": {
+            "type": "number",
+            "description": "The minimum number of seconds to wait after transcription ending with a number before sending a request to the model. Defaults to 0.4.\n\nThis setting exists because the transcriber will sometimes punctuate the transcription ending with a number, even though the customer hasn't uttered the full number. This happens commonly for long numbers when the customer reads the number in chunks.\n\n@default 0.5",
+            "minimum": 0,
+            "maximum": 3,
+            "example": 0.5
           }
-        },
-        "required": [
-          "connectionString",
-          "containerName"
-        ]
+        }
       },
-      "CreateAzureCredentialDTO": {
+      "StartSpeakingPlan": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "azure"
-            ]
+          "waitSeconds": {
+            "type": "number",
+            "description": "This is how long assistant waits before speaking. Defaults to 0.4.\n\nThis is the minimum it will wait but if there is latency is the pipeline, this minimum will be exceeded. This is intended as a stopgap in case the pipeline is moving too fast.\n\nExample:\n- If model generates tokens and voice generates bytes within 100ms, the pipeline still waits 300ms before outputting speech.\n\nUsage:\n- If the customer is taking long pauses, set this to a higher value.\n- If the assistant is accidentally jumping in too much, set this to a higher value.\n\n@default 0.4",
+            "minimum": 0,
+            "maximum": 5,
+            "example": 0.4
           },
-          "service": {
-            "type": "string",
-            "description": "This is the service being used in Azure.",
-            "enum": [
-              "speech",
-              "blob_storage"
-            ],
-            "default": "speech"
+          "smartEndpointingEnabled": {
+            "example": false,
+            "deprecated": true,
+            "oneOf": [
+              {
+                "type": "boolean"
+              },
+              {
+                "type": "string",
+                "enum": [
+                  "livekit"
+                ]
+              }
+            ]
           },
-          "region": {
-            "type": "string",
-            "description": "This is the region of the Azure resource.",
-            "enum": [
-              "australia",
-              "canadaeast",
-              "canadacentral",
-              "eastus2",
-              "eastus",
-              "france",
-              "india",
-              "japaneast",
-              "japanwest",
-              "uaenorth",
-              "northcentralus",
-              "norway",
-              "southcentralus",
-              "swedencentral",
-              "switzerland",
-              "uk",
-              "westus",
-              "westus3"
+          "smartEndpointingPlan": {
+            "description": "This is the plan for smart endpointing. Pick between Vapi smart endpointing, LiveKit, or custom endpointing model (or nothing). We strongly recommend using livekit endpointing when working in English. LiveKit endpointing is not supported in other languages, yet.\n\nIf this is set, it will override and take precedence over `transcriptionEndpointingPlan`.\nThis plan will still be overridden by any matching `customEndpointingRules`.\n\nIf this is not set, the system will automatically use the transcriber's built-in endpointing capabilities if available.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/VapiSmartEndpointingPlan",
+                "title": "Vapi"
+              },
+              {
+                "$ref": "#/components/schemas/LivekitSmartEndpointingPlan",
+                "title": "Livekit"
+              },
+              {
+                "$ref": "#/components/schemas/CustomEndpointingModelSmartEndpointingPlan",
+                "title": "Custom Endpointing Model"
+              }
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API.",
-            "maxLength": 10000
+          "customEndpointingRules": {
+            "type": "array",
+            "description": "These are the custom endpointing rules to set an endpointing timeout based on a regex on the customer's speech or the assistant's last message.\n\nUsage:\n- If you have yes/no questions like \"are you interested in a loan?\", you can set a shorter timeout.\n- If you have questions where the customer may pause to look up information like \"what's my account number?\", you can set a longer timeout.\n- If you want to wait longer while customer is enumerating a list of numbers, you can set a longer timeout.\n\nThese rules have the highest precedence and will override both `smartEndpointingPlan` and `transcriptionEndpointingPlan` when a rule is matched.\n\nThe rules are evaluated in order and the first one that matches will be used.\n\nOrder of precedence for endpointing:\n1. customEndpointingRules (if any match)\n2. smartEndpointingPlan (if set)\n3. transcriptionEndpointingPlan\n\n@default []",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/AssistantCustomEndpointingRule",
+                  "title": "Assistant"
+                },
+                {
+                  "$ref": "#/components/schemas/CustomerCustomEndpointingRule",
+                  "title": "Customer"
+                },
+                {
+                  "$ref": "#/components/schemas/BothCustomEndpointingRule",
+                  "title": "Both"
+                }
+              ]
+            }
           },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage.",
+          "transcriptionEndpointingPlan": {
+            "description": "This determines how a customer speech is considered done (endpointing) using the transcription of customer's speech.\n\nOnce an endpoint is triggered, the request is sent to `assistant.model`.\n\nNote: This plan is only used if `smartEndpointingPlan` is not set and transcriber does not have built-in endpointing capabilities. If both are provided, `smartEndpointingPlan` takes precedence.\nThis plan will also be overridden by any matching `customEndpointingRules`.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/AzureBlobStorageBucketPlan"
+                "$ref": "#/components/schemas/TranscriptionEndpointingPlan"
               }
             ]
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "service"
-        ]
+        }
       },
-      "CreateAzureOpenAICredentialDTO": {
+      "SmartDenoisingPlan": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "azure-openai"
-            ]
-          },
-          "region": {
-            "type": "string",
-            "enum": [
-              "australia",
-              "canadaeast",
-              "canadacentral",
-              "eastus2",
-              "eastus",
-              "france",
-              "india",
-              "japaneast",
-              "japanwest",
-              "uaenorth",
-              "northcentralus",
-              "norway",
-              "southcentralus",
-              "swedencentral",
-              "switzerland",
-              "uk",
-              "westus",
-              "westus3"
-            ]
+          "enabled": {
+            "type": "boolean",
+            "description": "Whether smart denoising using Krisp is enabled.",
+            "default": true
+          }
+        }
+      },
+      "FourierDenoisingPlan": {
+        "type": "object",
+        "properties": {
+          "enabled": {
+            "type": "boolean",
+            "description": "Whether Fourier denoising is enabled. Note that this is experimental and may not work as expected.",
+            "default": false
           },
-          "models": {
-            "type": "array",
-            "enum": [
-              "gpt-4o-2024-11-20",
-              "gpt-4o-2024-08-06",
-              "gpt-4o-mini-2024-07-18",
-              "gpt-4o-2024-05-13",
-              "gpt-4-turbo-2024-04-09",
-              "gpt-4-0125-preview",
-              "gpt-4-1106-preview",
-              "gpt-4-0613",
-              "gpt-35-turbo-0125",
-              "gpt-35-turbo-1106"
-            ],
-            "example": [
-              "gpt-4-0125-preview",
-              "gpt-4-0613"
-            ],
-            "items": {
-              "type": "string",
-              "enum": [
-                "gpt-4o-2024-11-20",
-                "gpt-4o-2024-08-06",
-                "gpt-4o-mini-2024-07-18",
-                "gpt-4o-2024-05-13",
-                "gpt-4-turbo-2024-04-09",
-                "gpt-4-0125-preview",
-                "gpt-4-1106-preview",
-                "gpt-4-0613",
-                "gpt-35-turbo-0125",
-                "gpt-35-turbo-1106"
-              ]
-            }
+          "mediaDetectionEnabled": {
+            "type": "boolean",
+            "description": "Whether automatic media detection is enabled. When enabled, the filter will automatically\ndetect consistent background TV/music/radio and switch to more aggressive filtering settings.\nOnly applies when enabled is true.",
+            "example": true,
+            "default": true
           },
-          "openAIKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+          "staticThreshold": {
+            "type": "number",
+            "description": "Static threshold in dB used as fallback when no baseline is established.",
+            "example": -35,
+            "minimum": -80,
+            "maximum": 0,
+            "default": -35
           },
-          "ocpApimSubscriptionKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "baselineOffsetDb": {
+            "type": "number",
+            "description": "How far below the rolling baseline to filter audio, in dB.\nLower values (e.g., -10) are more aggressive, higher values (e.g., -20) are more conservative.",
+            "example": -15,
+            "minimum": -30,
+            "maximum": -5,
+            "default": -15
           },
-          "openAIEndpoint": {
-            "type": "string",
-            "maxLength": 10000
+          "windowSizeMs": {
+            "type": "number",
+            "description": "Rolling window size in milliseconds for calculating the audio baseline.\nLarger windows adapt more slowly but are more stable.",
+            "example": 3000,
+            "minimum": 1000,
+            "maximum": 30000,
+            "default": 3000
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "baselinePercentile": {
+            "type": "number",
+            "description": "Percentile to use for baseline calculation (1-99).\nHigher percentiles (e.g., 85) focus on louder speech, lower percentiles (e.g., 50) include quieter speech.",
+            "example": 85,
+            "minimum": 1,
+            "maximum": 99,
+            "default": 85
           }
-        },
-        "required": [
-          "provider",
-          "region",
-          "models",
-          "openAIKey",
-          "openAIEndpoint"
-        ]
+        }
       },
-      "SipTrunkGateway": {
+      "BackgroundSpeechDenoisingPlan": {
         "type": "object",
         "properties": {
-          "ip": {
-            "type": "string",
-            "description": "This is the address of the gateway. It can be an IPv4 address like 1.1.1.1 or a fully qualified domain name like my-sip-trunk.pstn.twilio.com."
+          "smartDenoisingPlan": {
+            "description": "Whether smart denoising using Krisp is enabled.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SmartDenoisingPlan"
+              }
+            ]
           },
-          "port": {
-            "type": "number",
-            "description": "This is the port number of the gateway. Default is 5060.\n\n@default 5060",
-            "minimum": 1,
-            "maximum": 65535
-          },
-          "netmask": {
-            "type": "number",
-            "description": "This is the netmask of the gateway. Defaults to 32.\n\n@default 32",
-            "minimum": 24,
-            "maximum": 32
-          },
-          "inboundEnabled": {
-            "type": "boolean",
-            "description": "This is whether inbound calls are allowed from this gateway. Default is true.\n\n@default true"
-          },
-          "outboundEnabled": {
-            "type": "boolean",
-            "description": "This is whether outbound calls should be sent to this gateway. Default is true.\n\nNote, if netmask is less than 32, it doesn't affect the outbound IPs that are tried. 1 attempt is made to `ip:port`.\n\n@default true"
-          },
-          "outboundProtocol": {
-            "type": "string",
-            "description": "This is the protocol to use for SIP signaling outbound calls. Default is udp.\n\n@default udp",
-            "enum": [
-              "tls/srtp",
-              "tcp",
-              "tls",
-              "udp"
+          "fourierDenoisingPlan": {
+            "description": "Whether Fourier denoising is enabled. Note that this is experimental and may not work as expected.\n\nThis can be combined with smart denoising, and will be run afterwards.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FourierDenoisingPlan"
+              }
             ]
-          },
-          "optionsPingEnabled": {
-            "type": "boolean",
-            "description": "This is whether to send options ping to the gateway. This can be used to check if the gateway is reachable. Default is false.\n\nThis is useful for high availability setups where you want to check if the gateway is reachable before routing calls to it. Note, if no gateway for a trunk is reachable, outbound calls will be rejected.\n\n@default false"
-          }
-        },
-        "required": [
-          "ip"
-        ]
-      },
-      "SipTrunkOutboundSipRegisterPlan": {
-        "type": "object",
-        "properties": {
-          "domain": {
-            "type": "string"
-          },
-          "username": {
-            "type": "string"
-          },
-          "realm": {
-            "type": "string"
           }
         }
       },
-      "SipTrunkOutboundAuthenticationPlan": {
+      "TransferAssistant": {
         "type": "object",
         "properties": {
-          "authPassword": {
+          "name": {
             "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "authUsername": {
-            "type": "string"
+            "description": "Optional name for the transfer assistant",
+            "maxLength": 100,
+            "default": "transfer-assistant",
+            "example": "Sales Transfer Assistant"
           },
-          "sipRegisterPlan": {
-            "description": "This can be used to configure if SIP register is required by the SIP trunk. If not provided, no SIP registration will be attempted.",
+          "model": {
+            "description": "Model configuration for the transfer assistant",
             "allOf": [
               {
-                "$ref": "#/components/schemas/SipTrunkOutboundSipRegisterPlan"
+                "$ref": "#/components/schemas/TransferAssistantModel"
               }
             ]
-          }
-        }
-      },
-      "SbcConfiguration": {
-        "type": "object",
-        "properties": {}
-      },
-      "CreateByoSipTrunkCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This can be used to bring your own SIP trunks or to connect to a Carrier.",
-            "enum": [
-              "byo-sip-trunk"
+          },
+          "voice": {
+            "description": "These are the options for the transfer assistant's voice.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
             ]
           },
-          "gateways": {
-            "description": "This is the list of SIP trunk's gateways.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/SipTrunkGateway"
-            }
+          "transcriber": {
+            "description": "These are the options for the transfer assistant's transcriber.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
           },
-          "outboundAuthenticationPlan": {
-            "description": "This can be used to configure the outbound authentication if required by the SIP trunk.",
-            "allOf": [
+          "firstMessage": {
+            "type": "string",
+            "description": "This is the first message that the transfer assistant will say.\nThis can also be a URL to a custom audio file.\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
+            "example": "Hello! I understand you need to be transferred. Let me connect you."
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the transfer assistant call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/SipTrunkOutboundAuthenticationPlan"
+                "type": "string",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
               }
             ]
           },
-          "outboundLeadingPlusEnabled": {
-            "type": "boolean",
-            "description": "This ensures the outbound origination attempts have a leading plus. Defaults to false to match conventional telecom behavior.\n\nUsage:\n- Vonage/Twilio requires leading plus for all outbound calls. Set this to true.\n\n@default false"
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the transfer assistant should start talking.\n\nYou should configure this if the transfer assistant needs different endpointing behavior than the base assistant.\n\nIf this is not set, the transfer assistant will inherit the start speaking plan from the base assistant.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
           },
-          "techPrefix": {
+          "firstMessageMode": {
             "type": "string",
-            "description": "This can be used to configure the tech prefix on outbound calls. This is an advanced property.",
-            "maxLength": 10000
+            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state.\n\n@default 'assistant-speaks-first'",
+            "enum": [
+              "assistant-speaks-first",
+              "assistant-speaks-first-with-model-generated-message",
+              "assistant-waits-for-user"
+            ],
+            "example": "assistant-speaks-first"
           },
-          "sipDiversionHeader": {
-            "type": "string",
-            "description": "This can be used to enable the SIP diversion header for authenticating the calling number if the SIP trunk supports it. This is an advanced property.",
-            "maxLength": 10000
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum duration in seconds for the transfer assistant conversation.\nAfter this time, the transfer will be cancelled automatically.\n@default 120",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 120
           },
-          "sbcConfiguration": {
-            "description": "This is an advanced configuration for enterprise deployments. This uses the onprem SBC to trunk into the SIP trunk's `gateways`, rather than the managed SBC provided by Vapi.",
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nSmart denoising can be combined with or used independently of Fourier denoising.\n\nOrder of precedence:\n- Smart denoising\n- Fourier denoising",
             "allOf": [
               {
-                "$ref": "#/components/schemas/SbcConfiguration"
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
               }
             ]
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "silenceTimeoutSeconds": {
+            "type": "number",
+            "description": "This is the number of seconds of silence to wait before ending the call. Defaults to 30.\n\n@default 30",
+            "minimum": 5,
+            "maximum": 3600
           }
         },
         "required": [
-          "gateways"
+          "model"
         ]
       },
-      "CreateCartesiaCredentialDTO": {
+      "TransferCancelToolUserEditable": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "cartesia"
-            ]
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "apiKey": {
+          "type": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "enum": [
+              "transferCancel"
+            ],
+            "description": "The type of tool. \"transferCancel\" for Transfer Cancel tool. This tool can only be used during warm-transfer-experimental by the transfer assistant to cancel an ongoing transfer and return the call back to the original assistant when the transfer cannot be completed."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CloudflareR2BucketPlan": {
+      "TransferSuccessfulToolUserEditable": {
         "type": "object",
         "properties": {
-          "accessKeyId": {
-            "type": "string",
-            "description": "Cloudflare R2 Access key ID."
-          },
-          "secretAccessKey": {
-            "type": "string",
-            "description": "Cloudflare R2 access key secret. This is not returned in the API."
-          },
-          "url": {
-            "type": "string",
-            "description": "Cloudflare R2 base url."
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "name": {
+          "type": {
             "type": "string",
-            "description": "This is the name of the bucket."
+            "enum": [
+              "transferSuccessful"
+            ],
+            "description": "The type of tool. \"transferSuccessful\" for Transfer Successful tool. This tool can only be used during warm-transfer-experimental by the transfer assistant to confirm that the transfer should proceed and finalize the handoff to the destination."
           },
-          "path": {
-            "type": "string",
-            "description": "This is the path where call artifacts will be stored.\n\nUsage:\n- To store call artifacts in a specific folder, set this to the full path. Eg. \"/folder-name1/folder-name2\".\n- To store call artifacts in the root of the bucket, leave this blank.\n\n@default \"/\""
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "name"
+          "type"
         ]
       },
-      "CreateCloudflareCredentialDTO": {
+      "SummaryPlan": {
         "type": "object",
         "properties": {
-          "provider": {
+          "messages": {
+            "description": "These are the messages used to generate the summary.\n\n@default: ```\n[\n  {\n    \"role\": \"system\",\n    \"content\": \"You are an expert note-taker. You will be given a transcript of a call. Summarize the call in 2-3 sentences. DO NOT return anything except the summary.\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"Here is the transcript:\\n\\n{{transcript}}\\n\\n. Here is the ended reason of the call:\\n\\n{{endedReason}}\\n\\n\"\n  }\n]```\n\nYou can customize by providing any messages you want.\n\nHere are the template variables available:\n- {{transcript}}: The transcript of the call from `call.artifact.transcript` \n- {{systemPrompt}}: The system prompt of the call from `assistant.model.messages[type=system].content` \n- {{messages}}: The messages of the call from `assistant.model.messages` \n- {{endedReason}}: The ended reason of the call from `call.endedReason`",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
+          },
+          "enabled": {
+            "type": "boolean",
+            "description": "This determines whether a summary is generated and stored in `call.analysis.summary`. Defaults to true.\n\nUsage:\n- If you want to disable the summary, set this to false.\n\n@default true"
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is how long the request is tried before giving up. When request times out, `call.analysis.summary` will be empty.\n\nUsage:\n- To guarantee the summary is generated, set this value high. Note, this will delay the end of call report in cases where model is slow to respond.\n\n@default 5 seconds",
+            "minimum": 1,
+            "maximum": 60
+          }
+        }
+      },
+      "TransferPlan": {
+        "type": "object",
+        "properties": {
+          "mode": {
             "type": "string",
+            "description": "This configures how transfer is executed and the experience of the destination party receiving the call.\n\nUsage:\n- `blind-transfer`: The assistant forwards the call to the destination without any message or summary.\n- `blind-transfer-add-summary-to-sip-header`: The assistant forwards the call to the destination and adds a SIP header X-Transfer-Summary to the call to include the summary.\n- `warm-transfer-say-message`: The assistant dials the destination, delivers the `message` to the destination party, connects the customer, and leaves the call.\n- `warm-transfer-say-summary`: The assistant dials the destination, provides a summary of the call to the destination party, connects the customer, and leaves the call.\n- `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`: The assistant dials the destination, waits for the operator to speak, delivers the `message` to the destination party, and then connects the customer.\n- `warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary`: The assistant dials the destination, waits for the operator to speak, provides a summary of the call to the destination party, and then connects the customer.\n- `warm-transfer-twiml`: The assistant dials the destination, executes the twiml instructions on the destination call leg, connects the customer, and leaves the call.\n- `warm-transfer-experimental`: The assistant puts the customer on hold, dials the destination, and if the destination answers (and is human), delivers a message or summary before connecting the customer. If the destination is unreachable or not human (e.g., with voicemail detection), the assistant delivers the `fallbackMessage` to the customer and optionally ends the call.\n\n@default 'blind-transfer'",
             "enum": [
-              "cloudflare"
-            ],
-            "description": "Credential provider. Only allowed value is cloudflare"
+              "blind-transfer",
+              "blind-transfer-add-summary-to-sip-header",
+              "warm-transfer-say-message",
+              "warm-transfer-say-summary",
+              "warm-transfer-twiml",
+              "warm-transfer-wait-for-operator-to-speak-first-and-then-say-message",
+              "warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary",
+              "warm-transfer-experimental"
+            ]
           },
-          "accountId": {
+          "message": {
+            "description": "This is the message the assistant will deliver to the destination party before connecting the customer.\n\nUsage:\n- Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message`, `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`, or `warm-transfer-experimental`.",
+            "oneOf": [
+              {
+                "type": "string"
+              },
+              {
+                "$ref": "#/components/schemas/CustomMessage"
+              }
+            ]
+          },
+          "timeout": {
+            "type": "number",
+            "description": "This is the timeout in seconds for the warm-transfer-wait-for-operator-to-speak-first-and-then-say-message/summary\n\n@default 60",
+            "minimum": 1,
+            "maximum": 600,
+            "default": 60
+          },
+          "sipVerb": {
+            "type": "object",
+            "description": "This specifies the SIP verb to use while transferring the call.\n- 'refer': Uses SIP REFER to transfer the call (default)\n- 'bye': Ends current call with SIP BYE\n- 'dial': Uses SIP DIAL to transfer the call",
+            "default": "refer",
+            "enum": [
+              "refer",
+              "bye",
+              "dial"
+            ]
+          },
+          "dialTimeout": {
+            "type": "number",
+            "description": "This sets the timeout for the dial operation in seconds. This is the duration the call will ring before timing out.\n\nOnly applicable when `sipVerb='dial'`. Not applicable for SIP REFER or BYE.\n\n@default 60",
+            "minimum": 1,
+            "maximum": 600,
+            "default": 60
+          },
+          "holdAudioUrl": {
             "type": "string",
-            "description": "Cloudflare Account Id."
+            "description": "This is the URL to an audio file played while the customer is on hold during transfer.\n\nUsage:\n- Used only when `mode` is `warm-transfer-experimental`.\n- Used when transferring calls to play hold audio for the customer.\n- Must be a publicly accessible URL to an audio file.\n- Supported formats: MP3 and WAV.\n- If not provided, the default hold audio will be used."
           },
-          "apiKey": {
+          "transferCompleteAudioUrl": {
             "type": "string",
-            "description": "Cloudflare API Key / Token."
+            "description": "This is the URL to an audio file played after the warm transfer message or summary is delivered to the destination party.\nIt can be used to play a custom sound like 'beep' to notify that the transfer is complete.\n\nUsage:\n- Used only when `mode` is `warm-transfer-experimental`.\n- Used when transferring calls to play hold audio for the destination party.\n- Must be a publicly accessible URL to an audio file.\n- Supported formats: MP3 and WAV."
           },
-          "accountEmail": {
+          "contextEngineeringPlan": {
+            "description": "This is the plan for manipulating the message context before initiating the warm transfer.\nUsage:\n- Used only when `mode` is `warm-transfer-experimental`.\n- These messages will automatically be added to the transferAssistant's system message.\n- If 'none', we will not add any transcript to the transferAssistant's system message.\n- If you want to provide your own messages, use transferAssistant.model.messages instead.\n\n@default { type: 'all' }",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanLastNMessages",
+                "title": "Last N Messages"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanNone",
+                "title": "None"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanAll",
+                "title": "All"
+              }
+            ]
+          },
+          "twiml": {
             "type": "string",
-            "description": "Cloudflare Account Email."
+            "description": "This is the TwiML instructions to execute on the destination call leg before connecting the customer.\n\nUsage:\n- Used only when `mode` is `warm-transfer-twiml`.\n- Supports only `Play`, `Say`, `Gather`, `Hangup` and `Pause` verbs.\n- Maximum length is 4096 characters.\n\nExample:\n```\n<Say voice=\"alice\" language=\"en-US\">Hello, transferring a customer to you.</Say>\n<Pause length=\"2\"/>\n<Say>They called about billing questions.</Say>\n```",
+            "maxLength": 4096
           },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in R2",
+          "summaryPlan": {
+            "description": "This is the plan for generating a summary of the call to present to the destination party.\n\nUsage:\n- Used only when `mode` is `blind-transfer-add-summary-to-sip-header` or `warm-transfer-say-summary` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary` or `warm-transfer-experimental`.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CloudflareR2BucketPlan"
+                "$ref": "#/components/schemas/SummaryPlan"
               }
             ]
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "sipHeadersInReferToEnabled": {
+            "type": "boolean",
+            "description": "This flag includes the sipHeaders from above in the refer to sip uri as url encoded query params.\n\n@default false"
+          },
+          "fallbackPlan": {
+            "description": "This configures the fallback plan when the transfer fails (destination unreachable, busy, or not human).\n\nUsage:\n- Used only when `mode` is `warm-transfer-experimental`.\n- If not provided when using `warm-transfer-experimental`, a default message will be used.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TransferFallbackPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider"
+          "mode"
         ]
       },
-      "OAuth2AuthenticationPlan": {
+      "TransferDestinationNumber": {
         "type": "object",
         "properties": {
+          "message": {
+            "description": "This is spoken to the customer before connecting them to the destination.\n\nUsage:\n- If this is not provided and transfer tool messages is not provided, default is \"Transferring the call now\".\n- If set to \"\", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant.\n\nThis accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field.",
+            "oneOf": [
+              {
+                "type": "string"
+              },
+              {
+                "$ref": "#/components/schemas/CustomMessage"
+              }
+            ]
+          },
           "type": {
             "type": "string",
             "enum": [
-              "oauth2",
-              "aws-sts"
+              "number"
             ]
           },
-          "url": {
+          "numberE164CheckEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
+            "default": true
+          },
+          "number": {
             "type": "string",
-            "description": "This is the OAuth2 URL."
+            "description": "This is the phone number to transfer the call to.",
+            "minLength": 3,
+            "maxLength": 40
           },
-          "clientId": {
+          "extension": {
             "type": "string",
-            "description": "This is the OAuth2 client ID."
+            "description": "This is the extension to dial after transferring the call to the `number`.",
+            "minLength": 1,
+            "maxLength": 10
           },
-          "clientSecret": {
+          "callerId": {
             "type": "string",
-            "description": "This is the OAuth2 client secret."
+            "description": "This is the caller ID to use when transferring the call to the `number`.\n\nUsage:\n- If not provided, the caller ID will be the number the call is coming **from**.\n  Example: a customer with number +14151111111 calls in to and the assistant transfers out to +16470000000. +16470000000 will see +14151111111 as the caller.\n  For inbound calls, the caller ID is the customer's number. For outbound calls, the caller ID is the phone number of the assistant.\n- To change this behavior, provide a `callerId`.\n- Set to '{{customer.number}}' to always use the customer's number as the caller ID.\n- Set to '{{phoneNumber.number}}' to always use the phone number of the assistant as the caller ID.\n- Set to any E164 number to always use that number as the caller ID. This needs to be a number that is owned or verified by your Transport provider like Twilio.\n\nFor Twilio, you can read up more here: https://www.twilio.com/docs/voice/twiml/dial#callerid",
+            "maxLength": 40
           },
-          "scope": {
+          "transferPlan": {
+            "description": "This configures how transfer is executed and the experience of the destination party receiving the call. Defaults to `blind-transfer`.\n\n@default `transferPlan.mode='blind-transfer'`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TransferPlan"
+              }
+            ]
+          },
+          "description": {
             "type": "string",
-            "description": "This is the scope of the OAuth2 token.",
-            "maxLength": 1000
+            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
           }
         },
         "required": [
           "type",
-          "url",
-          "clientId",
-          "clientSecret"
+          "number"
         ]
       },
-      "CreateCustomLLMCredentialDTO": {
+      "TransferDestinationSip": {
         "type": "object",
         "properties": {
-          "provider": {
+          "message": {
+            "description": "This is spoken to the customer before connecting them to the destination.\n\nUsage:\n- If this is not provided and transfer tool messages is not provided, default is \"Transferring the call now\".\n- If set to \"\", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant.\n\nThis accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field.",
+            "oneOf": [
+              {
+                "type": "string"
+              },
+              {
+                "$ref": "#/components/schemas/CustomMessage"
+              }
+            ]
+          },
+          "type": {
             "type": "string",
             "enum": [
-              "custom-llm"
+              "sip"
             ]
           },
-          "apiKey": {
+          "sipUri": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "This is the SIP URI to transfer the call to."
           },
-          "authenticationPlan": {
-            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey",
-            "allOf": [
+          "callerId": {
+            "type": "string",
+            "description": "This is the caller ID to use when transferring the call to the `sipUri`.\n\nUsage:\n- If not provided, the caller ID will be determined by the SIP infrastructure.\n- Set to '{{customer.number}}' to always use the customer's number as the caller ID.\n- Set to '{{phoneNumber.number}}' to always use the phone number of the assistant as the caller ID.\n- Set to any E164 number to always use that number as the caller ID.\n\nOnly applicable when `transferPlan.sipVerb='dial'`. Not applicable for SIP REFER.",
+            "maxLength": 40
+          },
+          "transferPlan": {
+            "description": "This configures how transfer is executed and the experience of the destination party receiving the call. Defaults to `blind-transfer`.\n\n@default `transferPlan.mode='blind-transfer'`",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+                "$ref": "#/components/schemas/TransferPlan"
               }
             ]
           },
-          "name": {
+          "sipHeaders": {
+            "type": "object",
+            "description": "These are custom headers to be added to SIP refer during transfer call."
+          },
+          "description": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type",
+          "sipUri"
         ]
       },
-      "CreateDeepgramCredentialDTO": {
+      "CreateTransferCallToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
             "enum": [
-              "deepgram"
+              "transferCall"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "apiUrl": {
-            "type": "string",
-            "description": "This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com."
+          "destinations": {
+            "type": "array",
+            "description": "These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransferDestinationAssistant",
+                  "title": "Assistant"
+                },
+                {
+                  "$ref": "#/components/schemas/TransferDestinationNumber",
+                  "title": "Number"
+                },
+                {
+                  "$ref": "#/components/schemas/TransferDestinationSip",
+                  "title": "Sip"
+                }
+              ]
+            }
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CreateDeepInfraCredentialDTO": {
+      "ContextEngineeringPlanLastNMessages": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "deepinfra"
+              "lastNMessages"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "maxMessages": {
+            "type": "number",
+            "description": "This is the maximum number of messages to include in the context engineering plan.",
+            "minimum": 0
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type",
+          "maxMessages"
         ]
       },
-      "CreateDeepSeekCredentialDTO": {
+      "ContextEngineeringPlanNone": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "deep-seek"
+              "none"
             ]
-          },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CreateElevenLabsCredentialDTO": {
+      "ContextEngineeringPlanAll": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "11labs"
+              "all"
             ]
-          },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "GcpKey": {
+      "ContextEngineeringPlanUserAndAssistantMessages": {
         "type": "object",
         "properties": {
           "type": {
             "type": "string",
-            "description": "This is the type of the key. Most likely, this is \"service_account\"."
-          },
-          "projectId": {
-            "type": "string",
-            "description": "This is the ID of the Google Cloud project associated with this key."
-          },
-          "privateKeyId": {
-            "type": "string",
-            "description": "This is the unique identifier for the private key."
-          },
-          "privateKey": {
-            "type": "string",
-            "description": "This is the private key in PEM format.\n\nNote: This is not returned in the API."
-          },
-          "clientEmail": {
-            "type": "string",
-            "description": "This is the email address associated with the service account."
-          },
-          "clientId": {
-            "type": "string",
-            "description": "This is the unique identifier for the client."
-          },
-          "authUri": {
-            "type": "string",
-            "description": "This is the URI for the auth provider's authorization endpoint."
-          },
-          "tokenUri": {
-            "type": "string",
-            "description": "This is the URI for the auth provider's token endpoint."
-          },
-          "authProviderX509CertUrl": {
-            "type": "string",
-            "description": "This is the URL of the public x509 certificate for the auth provider."
-          },
-          "clientX509CertUrl": {
-            "type": "string",
-            "description": "This is the URL of the public x509 certificate for the client."
-          },
-          "universeDomain": {
-            "type": "string",
-            "description": "This is the domain associated with the universe this service account belongs to."
+            "enum": [
+              "userAndAssistantMessages"
+            ]
           }
         },
         "required": [
-          "type",
-          "projectId",
-          "privateKeyId",
-          "privateKey",
-          "clientEmail",
-          "clientId",
-          "authUri",
-          "tokenUri",
-          "authProviderX509CertUrl",
-          "clientX509CertUrl",
-          "universeDomain"
+          "type"
         ]
       },
-      "BucketPlan": {
+      "ContextEngineeringPlanPreviousAssistantMessages": {
         "type": "object",
         "properties": {
-          "name": {
-            "type": "string",
-            "description": "This is the name of the bucket."
-          },
-          "region": {
-            "type": "string",
-            "description": "This is the region of the bucket.\n\nUsage:\n- If `credential.type` is `aws`, then this is required.\n- If `credential.type` is `gcp`, then this is optional since GCP allows buckets to be accessed without a region but region is required for data residency requirements. Read here: https://cloud.google.com/storage/docs/request-endpoints"
-          },
-          "path": {
-            "type": "string",
-            "description": "This is the path where call artifacts will be stored.\n\nUsage:\n- To store call artifacts in a specific folder, set this to the full path. Eg. \"/folder-name1/folder-name2\".\n- To store call artifacts in the root of the bucket, leave this blank.\n\n@default \"/\""
-          },
-          "hmacAccessKey": {
-            "type": "string",
-            "description": "This is the HMAC access key offered by GCP for interoperability with S3 clients. Here is the guide on how to create: https://cloud.google.com/storage/docs/authentication/managing-hmackeys#console\n\nUsage:\n- If `credential.type` is `gcp`, then this is required.\n- If `credential.type` is `aws`, then this is not required since credential.awsAccessKeyId is used instead."
-          },
-          "hmacSecret": {
+          "type": {
             "type": "string",
-            "description": "This is the secret for the HMAC access key. Here is the guide on how to create: https://cloud.google.com/storage/docs/authentication/managing-hmackeys#console\n\nUsage:\n- If `credential.type` is `gcp`, then this is required.\n- If `credential.type` is `aws`, then this is not required since credential.awsSecretAccessKey is used instead.\n\nNote: This is not returned in the API."
+            "enum": [
+              "previousAssistantMessages"
+            ]
           }
         },
         "required": [
-          "name"
+          "type"
         ]
       },
-      "CreateGcpCredentialDTO": {
+      "HandoffDestinationAssistant": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "gcp"
+              "assistant"
             ]
           },
-          "gcpKey": {
-            "description": "This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/<service-account-id>/keys.\n\nThe schema is identical to the JSON that GCP outputs.",
+          "contextEngineeringPlan": {
+            "description": "This is the plan for manipulating the message context before handing off the call to the next assistant.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanLastNMessages",
+                "title": "Last N Messages"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanNone",
+                "title": "None"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanAll",
+                "title": "All"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanUserAndAssistantMessages",
+                "title": "User And Assistant Messages"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanPreviousAssistantMessages",
+                "title": "Previous Assistant Messages"
+              }
+            ]
+          },
+          "assistantName": {
+            "type": "string",
+            "description": "This is the assistant to transfer the call to. You must provide either assistantName or assistantId."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant id to transfer the call to. You must provide either assistantName or assistantId."
+          },
+          "assistant": {
+            "description": "This is a transient assistant to transfer the call to. You may provide a transient assistant in the response  `handoff-destination-request` in a dynamic handoff.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/GcpKey"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
           },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in GCP.",
+          "variableExtractionPlan": {
+            "description": "This is the variable extraction plan for the handoff tool.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/BucketPlan"
+                "$ref": "#/components/schemas/VariableExtractionPlan"
               }
             ]
           },
-          "name": {
+          "assistantOverrides": {
+            "description": "These are the assistant overrides to apply to the destination assistant.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "description": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
           }
         },
         "required": [
-          "provider",
-          "gcpKey"
+          "type"
         ]
       },
-      "CreateGladiaCredentialDTO": {
+      "HandoffDestinationDynamic": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "gladia"
+              "dynamic"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "server": {
+            "description": "This is where Vapi will send the handoff-destination-request webhook in a dynamic handoff.\n\nThe order of precedence is:\n\n1. tool.server.url\n2. assistant.server.url\n3. phoneNumber.server.url\n4. org.server.url",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
           },
-          "name": {
+          "description": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CreateGoHighLevelCredentialDTO": {
+      "SquadMemberDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "gohighlevel"
-            ]
+          "assistantDestinations": {
+            "type": "array",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransferDestinationAssistant",
+                  "title": "Transfer Destination"
+                },
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationAssistant",
+                  "title": "Handoff Destination"
+                }
+              ]
+            }
           },
-          "apiKey": {
+          "assistantId": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "nullable": true,
+            "description": "This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead."
+          },
+          "assistant": {
+            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
           },
+          "assistantOverrides": {
+            "description": "This can be used to override the assistant's settings and provide values for it's template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          }
+        }
+      },
+      "CreateSquadDTO": {
+        "type": "object",
+        "properties": {
           "name": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the name of the squad."
+          },
+          "members": {
+            "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SquadMemberDTO"
+            }
+          },
+          "membersOverrides": {
+            "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "members"
         ]
       },
-      "CreateGroqCredentialDTO": {
+      "HandoffDestinationSquad": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "groq"
+              "squad"
             ]
           },
-          "apiKey": {
+          "contextEngineeringPlan": {
+            "description": "This is the plan for manipulating the message context before handing off the call to the squad.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanLastNMessages",
+                "title": "Last N Messages"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanNone",
+                "title": "None"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanAll",
+                "title": "All"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanUserAndAssistantMessages",
+                "title": "User And Assistant Messages"
+              },
+              {
+                "$ref": "#/components/schemas/ContextEngineeringPlanPreviousAssistantMessages",
+                "title": "Previous Assistant Messages"
+              }
+            ]
+          },
+          "squadId": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "This is the squad id to transfer the call to."
           },
-          "name": {
+          "squad": {
+            "description": "This is a transient squad to transfer the call to.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "entryAssistantName": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the name of the entry assistant to start with when handing off to the squad.\nIf not provided, the first member of the squad will be used."
+          },
+          "variableExtractionPlan": {
+            "description": "This is the variable extraction plan for the handoff tool.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VariableExtractionPlan"
+              }
+            ]
+          },
+          "squadOverrides": {
+            "description": "These are the overrides to apply to the squad configuration.\nMaps to squad-level membersOverrides.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of the destination, used by the AI to choose when and how to transfer the call."
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CreateLangfuseCredentialDTO": {
+      "CreateHandoffToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
+            "description": "This is the type of the tool.\nWhen you're using handoff tool, we recommend adding this to your system prompt\n---\n# System context\n\nYou are part of a multi-agent system designed to make agent coordination and execution easy. Agents uses two primary abstraction: **Agents** and **Handoffs**. An agent encompasses instructions and tools and can hand off a conversation to another agent when appropriate. Handoffs are achieved by calling a handoff function, generally named `handoff_to_<agent_name>`. Handoffs between agents are handled seamlessly in the background; do not mention or draw attention to these handoffs in your conversation with the user.\n\n# Agent context\n\n{put your agent system prompt here}\n---",
             "enum": [
-              "langfuse"
+              "handoff"
             ]
           },
-          "publicKey": {
+          "defaultResult": {
             "type": "string",
-            "description": "The public key for Langfuse project. Eg: pk-lf-..."
+            "description": "This is the default local tool result message used when no runtime handoff result override is returned."
           },
-          "apiKey": {
-            "type": "string",
-            "description": "The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API."
+          "destinations": {
+            "type": "array",
+            "description": "These are the destinations that the call can be handed off to.\n\nUsage:\n1. Single destination\n\nUse `assistantId` to handoff the call to a saved assistant, or `assistantName` to handoff the call to an assistant in the same squad.\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\", // or \"assistantName\": \"Assistant123\"\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n2. Multiple destinations\n\n2.1. Multiple Tools, Each With One Destination (OpenAI recommended)\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n      ],\n    },\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n2.2. One Tool, Multiple Destinations (Anthropic recommended)\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n3. Dynamic destination\n\n3.1 To determine the destination dynamically, supply a `dynamic` handoff destination type and a `server` object.\n    VAPI will send a handoff-destination-request webhook to the `server.url`.\n    The response from the server will be used as the destination (if valid).\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"dynamic\",\n          \"server\": {\n            \"url\": \"https://example.com\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n3.2. To pass custom parameters to the server, you can use the `function` object.\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"dynamic\",\n          \"server\": {\n            \"url\": \"https://example.com\"\n          },\n        }\n      ],\n      \"function\": {\n        \"name\": \"handoff\",\n        \"description\": \"Call this function when the customer is ready to be handed off to the next assistant\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"destination\": {\n              \"type\": \"string\",\n              \"description\": \"Use dynamic when customer is ready to be handed off to the next assistant\",\n              \"enum\": [\"dynamic\"]\n            },\n            \"customerAreaCode\": {\n              \"type\": \"number\",\n              \"description\": \"Area code of the customer\"\n            },\n            \"customerIntent\": {\n              \"type\": \"string\",\n              \"enum\": [\"new-customer\", \"existing-customer\"],\n              \"description\": \"Use new-customer when customer is a new customer, existing-customer when customer is an existing customer\"\n            },\n            \"customerSentiment\": {\n              \"type\": \"string\",\n              \"enum\": [\"positive\", \"negative\", \"neutral\"],\n              \"description\": \"Use positive when customer is happy, negative when customer is unhappy, neutral when customer is neutral\"\n            }\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\nThe properties `customerAreaCode`, `customerIntent`, and `customerSentiment` will be passed to the server in the webhook request body.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationAssistant",
+                  "title": "Assistant"
+                },
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationDynamic",
+                  "title": "Dynamic"
+                },
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationSquad",
+                  "title": "Squad"
+                }
+              ]
+            }
           },
-          "apiUrl": {
-            "type": "string",
-            "description": "The host URL for Langfuse project. Eg: https://cloud.langfuse.com"
+          "function": {
+            "description": "This is the optional function definition that will be passed to the LLM.\nIf this is not defined, we will construct this based on the other properties.\n\nFor example, given the following tools definition:\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\nWe will construct the following function definition:\n```json\n{\n  \"function\": {\n    \"name\": \"handoff_to_assistant-123\",\n    \"description\": \"\n         Use this function to handoff the call to the next assistant.\n         Only use it when instructions explicitly ask you to use the handoff_to_assistant function.\n         DO NOT call this function unless you are instructed to do so.\n         Here are the destinations you can handoff the call to:\n         1. assistant-123. When: customer wants to be handed off to assistant-123\n         2. assistant-456. When: customer wants to be handed off to assistant-456\n    \",\n    \"parameters\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"destination\": {\n          \"type\": \"string\",\n          \"description\": \"Options: assistant-123 (customer wants to be handed off to assistant-123), assistant-456 (customer wants to be handed off to assistant-456)\",\n          \"enum\": [\"assistant-123\", \"assistant-456\"]\n        },\n      },\n      \"required\": [\"destination\"]\n    }\n  }\n}\n```\n\nTo override this function, please provide an OpenAI function definition and refer to it in the system prompt.\nYou may override parts of the function definition (i.e. you may only want to change the function name for your prompt).\nIf you choose to override the function parameters, it must include `destination` as a required parameter, and it must evaluate to either an assistantId, assistantName, or a the string literal `dynamic`.\n\nTo pass custom parameters to the server in a dynamic handoff, you can use the function parameters, with `dynamic` as the destination.\n```json\n{\n  \"function\": {\n    \"name\": \"dynamic_handoff\",\n    \"description\": \"\n         Call this function when the customer is ready to be handed off to the next assistant\n    \",\n    \"parameters\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"destination\": {\n          \"type\": \"string\",\n          \"enum\": [\"dynamic\"]\n        },\n        \"customerAreaCode\": {\n          \"type\": \"number\",\n          \"description\": \"Area code of the customer\"\n        },\n        \"customerIntent\": {\n          \"type\": \"string\",\n          \"enum\": [\"new-customer\", \"existing-customer\"],\n          \"description\": \"Use new-customer when customer is a new customer, existing-customer when customer is an existing customer\"\n        },\n        \"customerSentiment\": {\n          \"type\": \"string\",\n          \"enum\": [\"positive\", \"negative\", \"neutral\"],\n          \"description\": \"Use positive when customer is happy, negative when customer is unhappy, neutral when customer is neutral\"\n        }\n      },\n      \"required\": [\"destination\", \"customerAreaCode\", \"customerIntent\", \"customerSentiment\"]\n    }\n  }\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OpenAIFunction"
+              }
+            ]
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "publicKey",
-          "apiKey",
-          "apiUrl"
+          "type"
         ]
       },
-      "CreateLmntCredentialDTO": {
+      "CreateCustomKnowledgeBaseDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
+            "description": "This knowledge base is bring your own knowledge base implementation.",
             "enum": [
-              "lmnt"
+              "custom-knowledge-base"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "server": {
+            "description": "This is where the knowledge base request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"messsage\": {\n    \"type\": \"knowledge-base-request\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Why is ocean blue?\"\n      }\n    ],\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected:\n```\n{\n  \"message\": {\n     \"role\": \"assistant\",\n     \"content\": \"The ocean is blue because water absorbs everything but blue.\",\n  }, // YOU CAN RETURN THE EXACT RESPONSE TO SPEAK\n  \"documents\": [\n    {\n      \"content\": \"The ocean is blue primarily because water absorbs colors in the red part of the light spectrum and scatters the blue light, making it more visible to our eyes.\",\n      \"similarity\": 1\n    },\n    {\n      \"content\": \"Blue light is scattered more by the water molecules than other colors, enhancing the blue appearance of the ocean.\",\n      \"similarity\": .5\n    }\n  ] // OR, YOU CAN RETURN AN ARRAY OF DOCUMENTS THAT WILL BE SENT TO THE MODEL\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
           }
         },
         "required": [
           "provider",
-          "apiKey"
+          "server"
         ]
       },
-      "CreateMakeCredentialDTO": {
+      "KnowledgeBase": {
         "type": "object",
         "properties": {
+          "name": {
+            "type": "string",
+            "description": "The name of the knowledge base",
+            "example": "My Knowledge Base"
+          },
           "provider": {
             "type": "string",
+            "description": "The provider of the knowledge base",
             "enum": [
-              "make"
-            ]
+              "google"
+            ],
+            "example": "google"
           },
-          "teamId": {
-            "type": "string",
-            "description": "Team ID"
-          },
-          "region": {
+          "model": {
             "type": "string",
-            "description": "Region of your application. For example: eu1, eu2, us1, us2"
+            "description": "The model to use for the knowledge base",
+            "enum": [
+              "gemini-3-flash-preview",
+              "gemini-2.5-pro",
+              "gemini-2.5-flash",
+              "gemini-2.5-flash-lite",
+              "gemini-2.0-flash-thinking-exp",
+              "gemini-2.0-pro-exp-02-05",
+              "gemini-2.0-flash",
+              "gemini-2.0-flash-lite",
+              "gemini-2.0-flash-exp",
+              "gemini-2.0-flash-realtime-exp",
+              "gemini-1.5-flash",
+              "gemini-1.5-flash-002",
+              "gemini-1.5-pro",
+              "gemini-1.5-pro-002",
+              "gemini-1.0-pro"
+            ]
           },
-          "apiKey": {
+          "description": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "A description of the knowledge base"
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "fileIds": {
+            "description": "The file IDs associated with this knowledge base",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           }
         },
         "required": [
+          "name",
           "provider",
-          "teamId",
-          "region",
-          "apiKey"
+          "description",
+          "fileIds"
         ]
       },
-      "CreateOpenAICredentialDTO": {
+      "CreateQueryToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
             "enum": [
-              "openai"
-            ]
+              "query"
+            ],
+            "description": "The type of tool. \"query\" for Query tool."
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "knowledgeBases": {
+            "description": "The knowledge bases to query",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/KnowledgeBase"
+            }
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CreateOpenRouterCredentialDTO": {
+      "CreateGoogleCalendarCreateEventToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "openrouter"
-            ]
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "apiKey": {
+          "type": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "enum": [
+              "google.calendar.event.create"
+            ],
+            "description": "The type of tool. \"google.calendar.event.create\" for Google Calendar Create Event tool."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CreatePerplexityAICredentialDTO": {
+      "CreateGoogleSheetsRowAppendToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "perplexity-ai"
-            ]
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "apiKey": {
+          "type": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "enum": [
+              "google.sheets.row.append"
+            ],
+            "description": "The type of tool. \"google.sheets.row.append\" for Google Sheets Row Append tool."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CreatePlayHTCredentialDTO": {
+      "CreateGoogleCalendarCheckAvailabilityToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "playht"
-            ]
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "apiKey": {
+          "type": {
             "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "userId": {
-            "type": "string"
+            "enum": [
+              "google.calendar.availability.check"
+            ],
+            "description": "The type of tool. \"google.calendar.availability.check\" for Google Calendar Check Availability tool."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey",
-          "userId"
+          "type"
         ]
       },
-      "CreateRimeAICredentialDTO": {
+      "CreateSlackSendMessageToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "rime-ai"
-            ]
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "apiKey": {
+          "type": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "enum": [
+              "slack.message.send"
+            ],
+            "description": "The type of tool. \"slack.message.send\" for Slack Send Message tool."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type"
         ]
       },
-      "CreateRunpodCredentialDTO": {
+      "McpToolMessages": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "runpod"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
           "name": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "The name of the tool from the MCP server."
+          },
+          "messages": {
+            "type": "array",
+            "description": "Custom messages for this specific tool. Set to an empty array to suppress all messages for this tool. If not provided, the tool will use the default messages from the parent MCP tool configuration.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "name"
         ]
       },
-      "CreateS3CredentialDTO": {
+      "McpToolMetadata": {
         "type": "object",
         "properties": {
-          "provider": {
+          "protocol": {
             "type": "string",
             "enum": [
-              "s3"
+              "sse",
+              "shttp"
             ],
-            "description": "Credential provider. Only allowed value is s3"
-          },
-          "awsAccessKeyId": {
-            "type": "string",
-            "description": "AWS access key ID."
-          },
-          "awsSecretAccessKey": {
-            "type": "string",
-            "description": "AWS access key secret. This is not returned in the API."
-          },
-          "region": {
-            "type": "string",
-            "description": "AWS region in which the S3 bucket is located."
-          },
-          "s3BucketName": {
-            "type": "string",
-            "description": "AWS S3 bucket name."
-          },
-          "s3PathPrefix": {
-            "type": "string",
-            "description": "The path prefix for the uploaded recording. Ex. \"recordings/\""
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the protocol used for MCP communication. Defaults to Streamable HTTP."
           }
-        },
-        "required": [
-          "provider",
-          "awsAccessKeyId",
-          "awsSecretAccessKey",
-          "region",
-          "s3BucketName",
-          "s3PathPrefix"
-        ]
+        }
       },
-      "SupabaseBucketPlan": {
+      "CreateMcpToolDTO": {
         "type": "object",
         "properties": {
-          "region": {
-            "type": "string",
-            "description": "This is the S3 Region. It should look like us-east-1\nIt should be one of the supabase regions defined in the SUPABASE_REGION enum\nCheck https://supabase.com/docs/guides/platform/regions for up to date regions",
-            "enum": [
-              "us-west-1",
-              "us-east-1",
-              "us-east-2",
-              "ca-central-1",
-              "eu-west-1",
-              "eu-west-2",
-              "eu-west-3",
-              "eu-central-1",
-              "eu-central-2",
-              "eu-north-1",
-              "ap-south-1",
-              "ap-southeast-1",
-              "ap-northeast-1",
-              "ap-northeast-2",
-              "ap-southeast-2",
-              "sa-east-1"
-            ]
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "url": {
+          "type": {
             "type": "string",
-            "description": "This is the S3 compatible URL for Supabase S3\nThis should look like https://<project-ID>.supabase.co/storage/v1/s3"
+            "enum": [
+              "mcp"
+            ],
+            "description": "The type of tool. \"mcp\" for MCP tool."
           },
-          "accessKeyId": {
-            "type": "string",
-            "description": "This is the Supabase S3 Access Key ID.\nThe user creates this in the Supabase project Storage settings"
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
           },
-          "secretAccessKey": {
-            "type": "string",
-            "description": "This is the Supabase S3 Secret Access Key.\nThe user creates this in the Supabase project Storage settings along with the access key id"
+          "toolMessages": {
+            "description": "Per-tool message overrides for individual tools loaded from the MCP server. Set messages to an empty array to suppress messages for a specific tool. Tools not listed here will use the default messages from the parent tool.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/McpToolMessages"
+            }
           },
-          "name": {
-            "type": "string",
-            "description": "This is the Supabase S3 Bucket Name.\nThe user must create this in Supabase under Storage > Buckets\nA bucket that does not exist will not be checked now, but file uploads will fail"
+          "metadata": {
+            "$ref": "#/components/schemas/McpToolMetadata"
           },
-          "path": {
-            "type": "string",
-            "description": "This is the Supabase S3 Bucket Folder Path.\nThe user can create this in Supabase under Storage > Buckets\nA path that does not exist will not be checked now, but file uploads will fail\nA Path is like a folder in the bucket\nEg. If the bucket is called \"my-bucket\" and the path is \"my-folder\", the full path is \"my-bucket/my-folder\""
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "region",
-          "url",
-          "accessKeyId",
-          "secretAccessKey",
-          "name"
+          "type"
         ]
       },
-      "CreateSupabaseCredentialDTO": {
+      "CreateGoHighLevelCalendarAvailabilityToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
             "enum": [
-              "supabase"
+              "gohighlevel.calendar.availability.check"
             ],
-            "description": "This is for supabase storage."
-          },
-          "bucketPlan": {
-            "$ref": "#/components/schemas/SupabaseBucketPlan"
+            "description": "The type of tool. \"gohighlevel.calendar.availability.check\" for GoHighLevel Calendar Availability Check tool."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider"
+          "type"
         ]
       },
-      "CreateSmallestAICredentialDTO": {
+      "CreateGoHighLevelCalendarEventCreateToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "smallest-ai"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        },
-        "required": [
-          "provider",
-          "apiKey"
-        ]
-      },
-      "CreateTavusCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "tavus"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        },
-        "required": [
-          "provider",
-          "apiKey"
-        ]
-      },
-      "CreateTogetherAICredentialDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "together-ai"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+              "gohighlevel.calendar.event.create"
+            ],
+            "description": "The type of tool. \"gohighlevel.calendar.event.create\" for GoHighLevel Calendar Event Create tool."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        },
-        "required": [
-          "provider",
-          "apiKey"
-        ]
-      },
-      "CreateTwilioCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "twilio"
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
             ]
-          },
-          "authToken": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "accountSid": {
-            "type": "string"
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
           }
         },
         "required": [
-          "provider",
-          "authToken",
-          "accountSid"
+          "type"
         ]
       },
-      "CreateVonageCredentialDTO": {
+      "CreateGoHighLevelContactCreateToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "vonage"
-            ]
-          },
-          "apiSecret": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "apiKey": {
-            "type": "string"
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        },
-        "required": [
-          "provider",
-          "apiSecret",
-          "apiKey"
-        ]
-      },
-      "CreateWebhookCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "webhook"
-            ]
+              "gohighlevel.contact.create"
+            ],
+            "description": "The type of tool. \"gohighlevel.contact.create\" for GoHighLevel Contact Create tool."
           },
-          "authenticationPlan": {
-            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
           }
         },
         "required": [
-          "provider",
-          "authenticationPlan"
+          "type"
         ]
       },
-      "CreateXAiCredentialDTO": {
+      "CreateGoHighLevelContactGetToolDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the api key for Grok in XAi's console. Get it from here: https://console.x.ai",
-            "enum": [
-              "xai"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        },
-        "required": [
-          "provider",
-          "apiKey"
-        ]
-      },
-      "CreateGoogleCalendarOAuth2ClientCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "google.calendar.oauth2-client"
-            ]
+              "gohighlevel.contact.get"
+            ],
+            "description": "The type of tool. \"gohighlevel.contact.get\" for GoHighLevel Contact Get tool."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "provider"
+          "type"
         ]
       },
-      "CreateGoogleCalendarOAuth2AuthorizationCredentialDTO": {
+      "OpenAIMessage": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "google.calendar.oauth2-authorization"
-            ]
-          },
-          "authorizationId": {
+          "content": {
             "type": "string",
-            "description": "The authorization ID for the OAuth2 authorization"
+            "nullable": true,
+            "maxLength": 100000000
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        },
-        "required": [
-          "provider",
-          "authorizationId"
-        ]
-      },
-      "CreateGoogleSheetsOAuth2AuthorizationCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
+          "role": {
             "type": "string",
             "enum": [
-              "google.sheets.oauth2-authorization"
+              "assistant",
+              "function",
+              "user",
+              "system",
+              "tool"
             ]
-          },
-          "authorizationId": {
-            "type": "string",
-            "description": "The authorization ID for the OAuth2 authorization"
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
           }
         },
         "required": [
-          "provider",
-          "authorizationId"
+          "content",
+          "role"
         ]
       },
-      "CreateSlackOAuth2AuthorizationCredentialDTO": {
+      "AnyscaleModel": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "slack.oauth2-authorization"
-            ]
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
           },
-          "authorizationId": {
-            "type": "string",
-            "description": "The authorization ID for the OAuth2 authorization"
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        },
-        "required": [
-          "provider",
-          "authorizationId"
-        ]
-      },
-      "TransferAssistantHookAction": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "description": "This is the type of action - must be \"transfer\"",
-            "enum": [
-              "transfer"
-            ]
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           },
-          "destination": {
-            "description": "This is the destination details for the transfer - can be a phone number or SIP URI",
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
               }
             ]
-          }
-        },
-        "required": [
-          "type"
-        ]
-      },
-      "GoogleVoicemailDetectionPlan": {
-        "type": "object",
-        "properties": {
+          },
           "provider": {
             "type": "string",
-            "description": "This is the provider to use for voicemail detection.",
             "enum": [
-              "google"
+              "anyscale"
             ]
           },
-          "voicemailExpectedDurationSeconds": {
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+          },
+          "temperature": {
             "type": "number",
-            "description": "This is how long should we listen in order to determine if we were sent to voicemail or not?\n\n@default 15",
-            "minimum": 5,
-            "maximum": 60,
-            "default": 25
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
           }
         },
         "required": [
           "provider",
-          "voicemailExpectedDurationSeconds"
+          "model"
         ]
       },
-      "OpenAIVoicemailDetectionPlan": {
+      "AnthropicThinkingConfig": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
-            "description": "This is the provider to use for voicemail detection.",
             "enum": [
-              "openai"
+              "enabled"
             ]
           },
-          "voicemailExpectedDurationSeconds": {
+          "budgetTokens": {
             "type": "number",
-            "description": "This is how long should we listen in order to determine if we were sent to voicemail or not?\n\n@default 15",
-            "minimum": 5,
-            "maximum": 60,
-            "default": 25
+            "description": "The maximum number of tokens to allocate for thinking.\nMust be between 1024 and 100000 tokens.",
+            "minimum": 1024,
+            "maximum": 100000
           }
         },
         "required": [
-          "provider",
-          "voicemailExpectedDurationSeconds"
+          "type",
+          "budgetTokens"
         ]
       },
-      "TwilioVoicemailDetectionPlan": {
+      "AnthropicModel": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the provider to use for voicemail detection.",
-            "enum": [
-              "twilio"
-            ]
-          },
-          "voicemailDetectionTypes": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
             "type": "array",
-            "description": "These are the AMD messages from Twilio that are considered as voicemail. Default is ['machine_end_beep', 'machine_end_silence'].\n\n@default {Array} ['machine_end_beep', 'machine_end_silence']",
-            "enum": [
-              "machine_start",
-              "human",
-              "fax",
-              "unknown",
-              "machine_end_beep",
-              "machine_end_silence",
-              "machine_end_other"
-            ],
-            "example": [
-              "machine_end_beep",
-              "machine_end_silence"
-            ],
             "items": {
-              "type": "string",
-              "enum": [
-                "machine_start",
-                "human",
-                "fax",
-                "unknown",
-                "machine_end_beep",
-                "machine_end_silence",
-                "machine_end_other"
-              ]
+              "$ref": "#/components/schemas/OpenAIMessage"
             }
           },
-          "enabled": {
-            "type": "boolean",
-            "description": "This sets whether the assistant should detect voicemail. Defaults to true.\n\n@default true"
-          },
-          "machineDetectionTimeout": {
-            "type": "number",
-            "description": "The number of seconds that Twilio should attempt to perform answering machine detection before timing out and returning AnsweredBy as unknown. Default is 30 seconds.\n\nIncreasing this value will provide the engine more time to make a determination. This can be useful when DetectMessageEnd is provided in the MachineDetection parameter and there is an expectation of long answering machine greetings that can exceed 30 seconds.\n\nDecreasing this value will reduce the amount of time the engine has to make a determination. This can be particularly useful when the Enable option is provided in the MachineDetection parameter and you want to limit the time for initial detection.\n\nCheck the [Twilio docs](https://www.twilio.com/docs/voice/answering-machine-detection#optional-api-tuning-parameters) for more info.\n\n@default 30",
-            "minimum": 3,
-            "maximum": 59
-          },
-          "machineDetectionSpeechThreshold": {
-            "type": "number",
-            "description": "The number of milliseconds that is used as the measuring stick for the length of the speech activity. Durations lower than this value will be interpreted as a human, longer as a machine. Default is 2400 milliseconds.\n\nIncreasing this value will reduce the chance of a False Machine (detected machine, actually human) for a long human greeting (e.g., a business greeting) but increase the time it takes to detect a machine.\n\nDecreasing this value will reduce the chances of a False Human (detected human, actually machine) for short voicemail greetings. The value of this parameter may need to be reduced by more than 1000ms to detect very short voicemail greetings. A reduction of that significance can result in increased False Machine detections. Adjusting the MachineDetectionSpeechEndThreshold is likely the better approach for short voicemails. Decreasing MachineDetectionSpeechThreshold will also reduce the time it takes to detect a machine.\n\nCheck the [Twilio docs](https://www.twilio.com/docs/voice/answering-machine-detection#optional-api-tuning-parameters) for more info.\n\n@default 2400",
-            "minimum": 1000,
-            "maximum": 6000
-          },
-          "machineDetectionSpeechEndThreshold": {
-            "type": "number",
-            "description": "The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Default is 1200 milliseconds.\n\nIncreasing this value will typically be used to better address the short voicemail greeting scenarios. For short voicemails, there is typically 1000-2000ms of audio followed by 1200-2400ms of silence and then additional audio before the beep. Increasing the MachineDetectionSpeechEndThreshold to ~2500ms will treat the 1200-2400ms of silence as a gap in the greeting but not the end of the greeting and will result in a machine detection. The downsides of such a change include:\n- Increasing the delay for human detection by the amount you increase this parameter, e.g., a change of 1200ms to 2500ms increases human detection delay by 1300ms.\n- Cases where a human has two utterances separated by a period of silence (e.g. a \"Hello\", then 2000ms of silence, and another \"Hello\") may be interpreted as a machine.\n\nDecreasing this value will result in faster human detection. The consequence is that it can lead to increased False Human (detected human, actually machine) detections because a silence gap in a voicemail greeting (not necessarily just in short voicemail scenarios) can be incorrectly interpreted as the end of speech.\n\nCheck the [Twilio docs](https://www.twilio.com/docs/voice/answering-machine-detection#optional-api-tuning-parameters) for more info.\n\n@default 1200",
-            "minimum": 500,
-            "maximum": 5000
-          },
-          "machineDetectionSilenceTimeout": {
-            "type": "number",
-            "description": "The number of milliseconds of initial silence after which an unknown AnsweredBy result will be returned. Default is 5000 milliseconds.\n\nIncreasing this value will result in waiting for a longer period of initial silence before returning an 'unknown' AMD result.\n\nDecreasing this value will result in waiting for a shorter period of initial silence before returning an 'unknown' AMD result.\n\nCheck the [Twilio docs](https://www.twilio.com/docs/voice/answering-machine-detection#optional-api-tuning-parameters) for more info.\n\n@default 5000",
-            "minimum": 2000,
-            "maximum": 10000
-          }
-        },
-        "required": [
-          "provider"
-        ]
-      },
-      "CompliancePlan": {
-        "type": "object",
-        "properties": {
-          "hipaaEnabled": {
-            "type": "boolean",
-            "description": "When this is enabled, no logs, recordings, or transcriptions will be stored.\nAt the end of the call, you will still receive an end-of-call-report message to store on your server. Defaults to false.",
-            "example": {
-              "hipaaEnabled": false
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
             }
           },
-          "pciEnabled": {
-            "type": "boolean",
-            "description": "When this is enabled, the user will be restricted to use PCI-compliant providers, and no logs or transcripts are stored.\nAt the end of the call, you will receive an end-of-call-report message to store on your server. Defaults to false.",
-            "example": {
-              "pciEnabled": false
-            }
-          }
-        }
-      },
-      "StructuredDataPlan": {
-        "type": "object",
-        "properties": {
-          "messages": {
-            "description": "These are the messages used to generate the structured data.\n\n@default: ```\n[\n  {\n    \"role\": \"system\",\n    \"content\": \"You are an expert data extractor. You will be given a transcript of a call. Extract structured data per the JSON Schema. DO NOT return anything except the structured data.\\n\\nJson Schema:\\\\n{{schema}}\\n\\nOnly respond with the JSON.\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"Here is the transcript:\\n\\n{{transcript}}\\n\\n\"\n  }\n]```\n\nYou can customize by providing any messages you want.\n\nHere are the template variables available:\n- {{transcript}}: the transcript of the call from `call.artifact.transcript`- {{systemPrompt}}: the system prompt of the call from `assistant.model.messages[type=system].content`- {{schema}}: the schema of the structured data from `structuredDataPlan.schema`",
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
             "type": "array",
             "items": {
-              "type": "object"
+              "type": "string"
             }
           },
-          "enabled": {
-            "type": "boolean",
-            "description": "This determines whether structured data is generated and stored in `call.analysis.structuredData`. Defaults to false.\n\nUsage:\n- If you want to extract structured data, set this to true and provide a `schema`.\n\n@default false"
-          },
-          "schema": {
-            "description": "This is the schema of the structured data. The output is stored in `call.analysis.structuredData`.\n\nComplete guide on JSON Schema can be found [here](https://ajv.js.org/json-schema.html#json-data-type).",
-            "allOf": [
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/JsonSchema"
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
               }
             ]
           },
-          "timeoutSeconds": {
-            "type": "number",
-            "description": "This is how long the request is tried before giving up. When request times out, `call.analysis.structuredData` will be empty.\n\nUsage:\n- To guarantee the structured data is generated, set this value high. Note, this will delay the end of call report in cases where model is slow to respond.\n\n@default 5 seconds",
-            "minimum": 1,
-            "maximum": 60
-          }
-        }
-      },
-      "StructuredDataMultiPlan": {
-        "type": "object",
-        "properties": {
-          "key": {
+          "model": {
             "type": "string",
-            "description": "This is the key of the structured data plan in the catalog."
+            "description": "The specific Anthropic/Claude model that will be used.",
+            "enum": [
+              "claude-3-opus-20240229",
+              "claude-3-sonnet-20240229",
+              "claude-3-haiku-20240307",
+              "claude-3-5-sonnet-20240620",
+              "claude-3-5-sonnet-20241022",
+              "claude-3-5-haiku-20241022",
+              "claude-3-7-sonnet-20250219",
+              "claude-opus-4-20250514",
+              "claude-opus-4-5-20251101",
+              "claude-opus-4-6",
+              "claude-sonnet-4-20250514",
+              "claude-sonnet-4-5-20250929",
+              "claude-sonnet-4-6",
+              "claude-haiku-4-5-20251001"
+            ]
           },
-          "plan": {
-            "description": "This is an individual structured data plan in the catalog.",
+          "provider": {
+            "type": "string",
+            "description": "The provider identifier for Anthropic.",
+            "enum": [
+              "anthropic"
+            ]
+          },
+          "thinking": {
+            "description": "Optional configuration for Anthropic's thinking feature.\nOnly applicable for claude-3-7-sonnet-20250219 model.\nIf provided, maxTokens must be greater than thinking.budgetTokens.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/StructuredDataPlan"
+                "$ref": "#/components/schemas/AnthropicThinkingConfig"
               }
             ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
           }
         },
         "required": [
-          "key",
-          "plan"
+          "model",
+          "provider"
         ]
       },
-      "SuccessEvaluationPlan": {
+      "AnthropicBedrockModel": {
         "type": "object",
         "properties": {
-          "rubric": {
-            "type": "string",
-            "enum": [
-              "NumericScale",
-              "DescriptiveScale",
-              "Checklist",
-              "Matrix",
-              "PercentageScale",
-              "LikertScale",
-              "AutomaticRubric",
-              "PassFail"
-            ],
-            "description": "This enforces the rubric of the evaluation. The output is stored in `call.analysis.successEvaluation`.\n\nOptions include:\n- 'NumericScale': A scale of 1 to 10.\n- 'DescriptiveScale': A scale of Excellent, Good, Fair, Poor.\n- 'Checklist': A checklist of criteria and their status.\n- 'Matrix': A grid that evaluates multiple criteria across different performance levels.\n- 'PercentageScale': A scale of 0% to 100%.\n- 'LikertScale': A scale of Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree.\n- 'AutomaticRubric': Automatically break down evaluation into several criteria, each with its own score.\n- 'PassFail': A simple 'true' if call passed, 'false' if not.\n\nDefault is 'PassFail'."
-          },
           "messages": {
-            "description": "These are the messages used to generate the success evaluation.\n\n@default: ```\n[\n  {\n    \"role\": \"system\",\n    \"content\": \"You are an expert call evaluator. You will be given a transcript of a call and the system prompt of the AI participant. Determine if the call was successful based on the objectives inferred from the system prompt. DO NOT return anything except the result.\\n\\nRubric:\\\\n{{rubric}}\\n\\nOnly respond with the result.\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"Here is the transcript:\\n\\n{{transcript}}\\n\\n\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"Here was the system prompt of the call:\\n\\n{{systemPrompt}}\\n\\n\"\n  }\n]```\n\nYou can customize by providing any messages you want.\n\nHere are the template variables available:\n- {{transcript}}: the transcript of the call from `call.artifact.transcript`- {{systemPrompt}}: the system prompt of the call from `assistant.model.messages[type=system].content`- {{rubric}}: the rubric of the success evaluation from `successEvaluationPlan.rubric`",
+            "description": "This is the starting state for the conversation.",
             "type": "array",
             "items": {
-              "type": "object"
+              "$ref": "#/components/schemas/OpenAIMessage"
             }
           },
-          "enabled": {
-            "type": "boolean",
-            "description": "This determines whether a success evaluation is generated and stored in `call.analysis.successEvaluation`. Defaults to true.\n\nUsage:\n- If you want to disable the success evaluation, set this to false.\n\n@default true"
-          },
-          "timeoutSeconds": {
-            "type": "number",
-            "description": "This is how long the request is tried before giving up. When request times out, `call.analysis.successEvaluation` will be empty.\n\nUsage:\n- To guarantee the success evaluation is generated, set this value high. Note, this will delay the end of call report in cases where model is slow to respond.\n\n@default 5 seconds",
-            "minimum": 1,
-            "maximum": 60
-          }
-        }
-      },
-      "AnalysisPlan": {
-        "type": "object",
-        "properties": {
-          "summaryPlan": {
-            "description": "This is the plan for generating the summary of the call. This outputs to `call.analysis.summary`.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SummaryPlan"
-              }
-            ]
-          },
-          "structuredDataPlan": {
-            "description": "This is the plan for generating the structured data from the call. This outputs to `call.analysis.structuredData`.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/StructuredDataPlan"
-              }
-            ]
-          },
-          "structuredDataMultiPlan": {
-            "description": "This is an array of structured data plan catalogs. Each entry includes a `key` and a `plan` for generating the structured data from the call. This outputs to `call.analysis.structuredDataMulti`.",
+          "tools": {
             "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
-              "$ref": "#/components/schemas/StructuredDataMultiPlan"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
             }
           },
-          "successEvaluationPlan": {
-            "description": "This is the plan for generating the success evaluation of the call. This outputs to `call.analysis.successEvaluation`.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SuccessEvaluationPlan"
-              }
-            ]
-          }
-        }
-      },
-      "MessagePlan": {
-        "type": "object",
-        "properties": {
-          "idleMessages": {
-            "description": "This are the messages that the assistant will speak when the user hasn't responded for `idleTimeoutSeconds`. Each time the timeout is triggered, a random message will be chosen from this array.\n\nUsage:\n- If user gets distracted and doesn't respond for a while, this can be used to grab their attention.\n- If the transcriber doesn't pick up what the user said, this can be used to ask the user to repeat themselves. (From the perspective of the assistant, the conversation is idle since it didn't \"hear\" any user messages.)\n\n@default null (no idle message is spoken)",
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
             "type": "array",
             "items": {
-              "type": "string",
-              "maxLength": 1000
+              "type": "string"
             }
           },
-          "idleMessageMaxSpokenCount": {
-            "type": "number",
-            "description": "This determines the maximum number of times `idleMessages` can be spoken during the call.\n\n@default 3",
-            "minimum": 1,
-            "maximum": 10
-          },
-          "idleMessageResetCountOnUserSpeechEnabled": {
-            "type": "boolean",
-            "description": "This determines whether the idle message count is reset whenever the user speaks.\n\n@default false"
-          },
-          "idleTimeoutSeconds": {
-            "type": "number",
-            "description": "This is the timeout in seconds before a message from `idleMessages` is spoken. The clock starts when the assistant finishes speaking and remains active until the user speaks.\n\n@default 10",
-            "minimum": 5,
-            "maximum": 60
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
+            ]
           },
-          "silenceTimeoutMessage": {
-            "type": "string",
-            "description": "This is the message that the assistant will say if the call ends due to silence.\n\nIf unspecified, it will hang up without saying anything.",
-            "maxLength": 1000
-          }
-        }
-      },
-      "AssistantCustomEndpointingRule": {
-        "type": "object",
-        "properties": {
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This endpointing rule is based on the last assistant message before customer started speaking.\n\nFlow:\n- Assistant speaks\n- Customer starts speaking\n- Customer transcription comes in\n- This rule is evaluated on the last assistant message\n- If a match is found based on `regex`, the endpointing timeout is set to `timeoutSeconds`\n\nUsage:\n- If you have yes/no questions in your use case like \"are you interested in a loan?\", you can set a shorter timeout.\n- If you have questions where the customer may pause to look up information like \"what's my account number?\", you can set a longer timeout.",
+            "description": "The provider identifier for Anthropic via AWS Bedrock.",
             "enum": [
-              "assistant"
+              "anthropic-bedrock"
             ]
           },
-          "regex": {
+          "model": {
             "type": "string",
-            "description": "This is the regex pattern to match.\n\nNote:\n- This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test(\"hello there\")` will return `true`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead.\n- `RegExp.test` does substring matching, so `/cat/.test(\"I love cats\")` will return `true`. To do full string matching, send \"^cat$\"."
+            "description": "The specific Anthropic/Claude model that will be used via Bedrock.",
+            "enum": [
+              "claude-3-opus-20240229",
+              "claude-3-sonnet-20240229",
+              "claude-3-haiku-20240307",
+              "claude-3-5-sonnet-20240620",
+              "claude-3-5-sonnet-20241022",
+              "claude-3-5-haiku-20241022",
+              "claude-3-7-sonnet-20250219",
+              "claude-opus-4-20250514",
+              "claude-opus-4-5-20251101",
+              "claude-opus-4-6",
+              "claude-sonnet-4-20250514",
+              "claude-sonnet-4-5-20250929",
+              "claude-sonnet-4-6",
+              "claude-haiku-4-5-20251001"
+            ]
           },
-          "regexOptions": {
-            "description": "These are the options for the regex match. Defaults to all disabled.\n\n@default []",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/RegexOption"
-            }
+          "thinking": {
+            "description": "Optional configuration for Anthropic's thinking feature.\nOnly applicable for claude-3-7-sonnet-20250219 model.\nIf provided, maxTokens must be greater than thinking.budgetTokens.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnthropicThinkingConfig"
+              }
+            ]
           },
-          "timeoutSeconds": {
+          "temperature": {
             "type": "number",
-            "description": "This is the endpointing timeout in seconds, if the rule is matched.",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
             "minimum": 0,
-            "maximum": 15
-          }
-        },
-        "required": [
-          "type",
-          "regex",
-          "timeoutSeconds"
-        ]
-      },
-      "CustomerCustomEndpointingRule": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "description": "This endpointing rule is based on current customer message as they are speaking.\n\nFlow:\n- Assistant speaks\n- Customer starts speaking\n- Customer transcription comes in\n- This rule is evaluated on the current customer transcription\n- If a match is found based on `regex`, the endpointing timeout is set to `timeoutSeconds`\n\nUsage:\n- If you want to wait longer while customer is speaking numbers, you can set a longer timeout.",
-            "enum": [
-              "customer"
-            ]
+            "maximum": 2
           },
-          "regex": {
-            "type": "string",
-            "description": "This is the regex pattern to match.\n\nNote:\n- This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test(\"hello there\")` will return `true`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead.\n- `RegExp.test` does substring matching, so `/cat/.test(\"I love cats\")` will return `true`. To do full string matching, send \"^cat$\"."
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "regexOptions": {
-            "description": "These are the options for the regex match. Defaults to all disabled.\n\n@default []",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/RegexOption"
-            }
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
           },
-          "timeoutSeconds": {
+          "numFastTurns": {
             "type": "number",
-            "description": "This is the endpointing timeout in seconds, if the rule is matched.",
-            "minimum": 0,
-            "maximum": 15
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
           }
         },
         "required": [
-          "type",
-          "regex",
-          "timeoutSeconds"
+          "provider",
+          "model"
         ]
       },
-      "BothCustomEndpointingRule": {
+      "CerebrasModel": {
         "type": "object",
         "properties": {
-          "type": {
-            "type": "string",
-            "description": "This endpointing rule is based on both the last assistant message and the current customer message as they are speaking.\n\nFlow:\n- Assistant speaks\n- Customer starts speaking\n- Customer transcription comes in\n- This rule is evaluated on the last assistant message and the current customer transcription\n- If assistant message matches `assistantRegex` AND customer message matches `customerRegex`, the endpointing timeout is set to `timeoutSeconds`\n\nUsage:\n- If you want to wait longer while customer is speaking numbers, you can set a longer timeout.",
-            "enum": [
-              "both"
-            ]
-          },
-          "assistantRegex": {
-            "type": "string",
-            "description": "This is the regex pattern to match the assistant's message.\n\nNote:\n- This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test(\"hello there\")` will return `true`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead.\n- `RegExp.test` does substring matching, so `/cat/.test(\"I love cats\")` will return `true`. To do full string matching, send \"^cat$\"."
-          },
-          "assistantRegexOptions": {
-            "description": "These are the options for the assistant's message regex match. Defaults to all disabled.\n\n@default []",
+          "messages": {
+            "description": "This is the starting state for the conversation.",
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/RegexOption"
+              "$ref": "#/components/schemas/OpenAIMessage"
             }
           },
-          "customerRegex": {
-            "type": "string"
-          },
-          "customerRegexOptions": {
-            "description": "These are the options for the customer's message regex match. Defaults to all disabled.\n\n@default []",
+          "tools": {
             "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
-              "$ref": "#/components/schemas/RegexOption"
-            }
-          },
-          "timeoutSeconds": {
-            "type": "number",
-            "description": "This is the endpointing timeout in seconds, if the rule is matched.",
-            "minimum": 0,
-            "maximum": 15
-          }
-        },
-        "required": [
-          "type",
-          "assistantRegex",
-          "customerRegex",
-          "timeoutSeconds"
-        ]
-      },
-      "VapiSmartEndpointingPlan": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the provider for the smart endpointing plan.",
-            "enum": [
-              "vapi",
-              "livekit"
-            ],
-            "example": "vapi"
-          }
-        },
-        "required": [
-          "provider"
-        ]
-      },
-      "LivekitSmartEndpointingPlan": {
-        "type": "object",
-        "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the provider for the smart endpointing plan.",
-            "enum": [
-              "vapi",
-              "livekit"
-            ],
-            "example": "livekit"
-          },
-          "waitFunction": {
-            "type": "string",
-            "description": "This expression describes how long the bot will wait to start speaking based on the likelihood that the user has reached an endpoint.\n\nThis is a millisecond valued function. It maps probabilities (real numbers on [0,1]) to milliseconds that the bot should wait before speaking ([0, \\infty]). Any negative values that are returned are set to zero (the bot can't start talking in the past).\n\nA probability of zero represents very high confidence that the caller has stopped speaking, and would like the bot to speak to them. A probability of one represents very high confidence that the caller is still speaking.\n\nUnder the hood, this is parsed into a mathjs expression. Whatever you use to write your expression needs to be valid with respect to mathjs\n\n@default \"70 + 4000 * x\"",
-            "examples": [
-              "70 + 4000 * x",
-              "200 + 8000 * x",
-              "4000 * (1 - cos(pi * x))"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
+          },
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
             ]
-          }
-        },
-        "required": [
-          "provider"
-        ]
-      },
-      "TranscriptionEndpointingPlan": {
-        "type": "object",
-        "properties": {
-          "onPunctuationSeconds": {
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "enum": [
+              "llama3.1-8b",
+              "llama-3.3-70b"
+            ]
+          },
+          "provider": {
+            "type": "string",
+            "enum": [
+              "cerebras"
+            ]
+          },
+          "temperature": {
             "type": "number",
-            "description": "The minimum number of seconds to wait after transcription ending with punctuation before sending a request to the model. Defaults to 0.1.\n\nThis setting exists because the transcriber punctuates the transcription when it's more confident that customer has completed a thought.\n\n@default 0.1",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
             "minimum": 0,
-            "maximum": 3,
-            "example": 0.1
+            "maximum": 2
           },
-          "onNoPunctuationSeconds": {
+          "maxTokens": {
             "type": "number",
-            "description": "The minimum number of seconds to wait after transcription ending without punctuation before sending a request to the model. Defaults to 1.5.\n\nThis setting exists to catch the cases where the transcriber was not confident enough to punctuate the transcription, but the customer is done and has been silent for a long time.\n\n@default 1.5",
-            "minimum": 0,
-            "maximum": 3,
-            "example": 1.5
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "onNumberSeconds": {
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
             "type": "number",
-            "description": "The minimum number of seconds to wait after transcription ending with a number before sending a request to the model. Defaults to 0.4.\n\nThis setting exists because the transcriber will sometimes punctuate the transcription ending with a number, even though the customer hasn't uttered the full number. This happens commonly for long numbers when the customer reads the number in chunks.\n\n@default 0.5",
-            "minimum": 0,
-            "maximum": 3,
-            "example": 0.5
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
           }
-        }
+        },
+        "required": [
+          "model",
+          "provider"
+        ]
       },
-      "StartSpeakingPlan": {
+      "CustomLLMModel": {
         "type": "object",
         "properties": {
-          "waitSeconds": {
-            "type": "number",
-            "description": "This is how long assistant waits before speaking. Defaults to 0.4.\n\nThis is the minimum it will wait but if there is latency is the pipeline, this minimum will be exceeded. This is intended as a stopgap in case the pipeline is moving too fast.\n\nExample:\n- If model generates tokens and voice generates bytes within 100ms, the pipeline still waits 300ms before outputting speech.\n\nUsage:\n- If the customer is taking long pauses, set this to a higher value.\n- If the assistant is accidentally jumping in too much, set this to a higher value.\n\n@default 0.4",
-            "minimum": 0,
-            "maximum": 5,
-            "example": 0.4
-          },
-          "smartEndpointingEnabled": {
-            "type": "object",
-            "example": false,
-            "deprecated": true
-          },
-          "smartEndpointingPlan": {
-            "description": "This is the plan for smart endpointing. Pick between Vapi smart endpointing or LiveKit smart endpointing (or nothing). We strongly recommend using livekit endpointing when working in English. LiveKit endpointing is not supported in other languages, yet.\n\nIf this is set, it will override and take precedence over `transcriptionEndpointingPlan`.\nThis plan will still be overridden by any matching `customEndpointingRules`.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/VapiSmartEndpointingPlan",
-                "title": "Vapi"
-              },
-              {
-                "$ref": "#/components/schemas/LivekitSmartEndpointingPlan",
-                "title": "Livekit"
-              }
-            ]
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
           },
-          "customEndpointingRules": {
+          "tools": {
             "type": "array",
-            "description": "These are the custom endpointing rules to set an endpointing timeout based on a regex on the customer's speech or the assistant's last message.\n\nUsage:\n- If you have yes/no questions like \"are you interested in a loan?\", you can set a shorter timeout.\n- If you have questions where the customer may pause to look up information like \"what's my account number?\", you can set a longer timeout.\n- If you want to wait longer while customer is enumerating a list of numbers, you can set a longer timeout.\n\nThese rules have the highest precedence and will override both `smartEndpointingPlan` and `transcriptionEndpointingPlan` when a rule is matched.\n\nThe rules are evaluated in order and the first one that matches will be used.\n\nOrder of precedence for endpointing:\n1. customEndpointingRules (if any match)\n2. smartEndpointingPlan (if set)\n3. transcriptionEndpointingPlan\n\n@default []",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/AssistantCustomEndpointingRule",
-                  "title": "Assistant"
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CustomerCustomEndpointingRule",
-                  "title": "Customer"
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
                 },
                 {
-                  "$ref": "#/components/schemas/BothCustomEndpointingRule",
-                  "title": "Both"
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
                 }
               ]
             }
           },
-          "transcriptionEndpointingPlan": {
-            "description": "This determines how a customer speech is considered done (endpointing) using the transcription of customer's speech.\n\nOnce an endpoint is triggered, the request is sent to `assistant.model`.\n\nNote: This plan is only used if `smartEndpointingPlan` is not set. If both are provided, `smartEndpointingPlan` takes precedence.\nThis plan will also be overridden by any matching `customEndpointingRules`.",
-            "allOf": [
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/TranscriptionEndpointingPlan"
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
               }
             ]
-          }
-        }
-      },
-      "StopSpeakingPlan": {
-        "type": "object",
-        "properties": {
-          "numWords": {
-            "type": "number",
-            "description": "This is the number of words that the customer has to say before the assistant will stop talking.\n\nWords like \"stop\", \"actually\", \"no\", etc. will always interrupt immediately regardless of this value.\n\nWords like \"okay\", \"yeah\", \"right\" will never interrupt.\n\nWhen set to 0, `voiceSeconds` is used in addition to the transcriptions to determine the customer has started speaking.\n\nDefaults to 0.\n\n@default 0",
-            "minimum": 0,
-            "maximum": 10,
-            "example": 0
           },
-          "voiceSeconds": {
-            "type": "number",
-            "description": "This is the seconds customer has to speak before the assistant stops talking. This uses the VAD (Voice Activity Detection) spike to determine if the customer has started speaking.\n\nConsiderations:\n- A lower value might be more responsive but could potentially pick up non-speech sounds.\n- A higher value reduces false positives but might slightly delay the detection of speech onset.\n\nThis is only used if `numWords` is set to 0.\n\nDefaults to 0.2\n\n@default 0.2",
-            "minimum": 0,
-            "maximum": 0.5,
-            "example": 0.2
+          "provider": {
+            "type": "string",
+            "description": "This is the provider that will be used for the model. Any service, including your own server, that is compatible with the OpenAI API can be used.",
+            "enum": [
+              "custom-llm"
+            ]
           },
-          "backoffSeconds": {
-            "type": "number",
-            "description": "This is the seconds to wait before the assistant will start talking again after being interrupted.\n\nDefaults to 1.\n\n@default 1",
-            "minimum": 0,
-            "maximum": 10,
-            "example": 1
+          "metadataSendMode": {
+            "type": "string",
+            "description": "This determines whether metadata is sent in requests to the custom provider.\n\n- `off` will not send any metadata. payload will look like `{ messages }`\n- `variable` will send `assistant.metadata` as a variable on the payload. payload will look like `{ messages, metadata }`\n- `destructured` will send `assistant.metadata` fields directly on the payload. payload will look like `{ messages, ...metadata }`\n\nFurther, `variable` and `destructured` will send `call`, `phoneNumber`, and `customer` objects in the payload.\n\nDefault is `variable`.",
+            "enum": [
+              "off",
+              "variable",
+              "destructured"
+            ]
           },
-          "acknowledgementPhrases": {
-            "description": "These are the phrases that will never interrupt the assistant, even if numWords threshold is met.\nThese are typically acknowledgement or backchanneling phrases.",
-            "example": [
-              "i understand",
-              "i see",
-              "i got it",
-              "i hear you",
-              "im listening",
-              "im with you",
-              "right",
-              "okay",
-              "ok",
-              "sure",
-              "alright",
-              "got it",
-              "understood",
-              "yeah",
-              "yes",
-              "uh-huh",
-              "mm-hmm",
-              "gotcha",
-              "mhmm",
-              "ah",
-              "yeah okay",
-              "yeah sure"
-            ],
-            "default": [
-              "i understand",
-              "i see",
-              "i got it",
-              "i hear you",
-              "im listening",
-              "im with you",
-              "right",
-              "okay",
-              "ok",
-              "sure",
-              "alright",
-              "got it",
-              "understood",
-              "yeah",
-              "yes",
-              "uh-huh",
-              "mm-hmm",
-              "gotcha",
-              "mhmm",
-              "ah",
-              "yeah okay",
-              "yeah sure"
-            ],
-            "type": "array",
-            "items": {
-              "type": "string",
-              "maxLength": 240
+          "headers": {
+            "type": "object",
+            "description": "Custom headers to send with requests. These headers can override default OpenAI headers except for Authorization (which should be specified using a custom-llm credential).",
+            "additionalProperties": {
+              "type": "string"
+            },
+            "example": {
+              "X-Custom-Header": "value"
             }
           },
-          "interruptionPhrases": {
-            "description": "These are the phrases that will always interrupt the assistant immediately, regardless of numWords.\nThese are typically phrases indicating disagreement or desire to stop.",
-            "example": [
-              "stop",
-              "shut",
-              "up",
-              "enough",
-              "quiet",
-              "silence",
-              "but",
-              "dont",
-              "not",
-              "no",
-              "hold",
-              "wait",
-              "cut",
-              "pause",
-              "nope",
-              "nah",
-              "nevermind",
-              "never",
-              "bad",
-              "actually"
-            ],
-            "default": [
-              "stop",
-              "shut",
-              "up",
-              "enough",
-              "quiet",
-              "silence",
-              "but",
-              "dont",
-              "not",
-              "no",
-              "hold",
-              "wait",
-              "cut",
-              "pause",
-              "nope",
-              "nah",
-              "nevermind",
-              "never",
-              "bad",
-              "actually"
-            ],
-            "type": "array",
-            "items": {
-              "type": "string",
-              "maxLength": 240
-            }
-          }
-        }
-      },
-      "MonitorPlan": {
-        "type": "object",
-        "properties": {
-          "listenEnabled": {
-            "type": "boolean",
-            "description": "This determines whether the assistant's calls allow live listening. Defaults to true.\n\nFetch `call.monitor.listenUrl` to get the live listening URL.\n\n@default true",
-            "example": false
+          "url": {
+            "type": "string",
+            "description": "These is the URL we'll use for the OpenAI client's `baseURL`. Ex. https://openrouter.ai/api/v1"
           },
-          "controlEnabled": {
+          "wordLevelConfidenceEnabled": {
             "type": "boolean",
-            "description": "This determines whether the assistant's calls allow live control. Defaults to true.\n\nFetch `call.monitor.controlUrl` to get the live control URL.\n\nTo use, send any control message via a POST request to `call.monitor.controlUrl`. Here are the types of controls supported: https://docs.vapi.ai/api-reference/messages/client-inbound-message\n\n@default true",
-            "example": false
-          }
-        }
-      },
-      "AssistantHookFilter": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "description": "This is the type of filter - currently only \"oneOf\" is supported",
-            "enum": [
-              "oneOf"
-            ],
-            "maxLength": 1000
+            "description": "This determines whether the transcriber's word level confidence is sent in requests to the custom provider. Default is false.\nThis only works for Deepgram transcribers."
           },
-          "key": {
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This sets the timeout for the connection to the custom provider without needing to stream any tokens back. Default is 20 seconds.",
+            "minimum": 0,
+            "maximum": 300
+          },
+          "model": {
             "type": "string",
-            "description": "This is the key to filter on (e.g. \"call.endedReason\")",
-            "maxLength": 1000
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
           },
-          "oneOf": {
-            "description": "This is the array of possible values to match against",
-            "type": "array",
-            "items": {
-              "type": "string",
-              "maxLength": 1000
-            }
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
           }
         },
         "required": [
-          "type",
-          "key",
-          "oneOf"
+          "provider",
+          "url",
+          "model"
         ]
       },
-      "AssistantHookActionBase": {
-        "type": "object",
-        "properties": {}
-      },
-      "AssistantHooks": {
+      "DeepInfraModel": {
         "type": "object",
         "properties": {
-          "on": {
-            "type": "string",
-            "description": "This is the event that triggers this hook",
-            "enum": [
-              "call.ending"
-            ],
-            "maxLength": 1000
-          },
-          "filters": {
-            "description": "This is the set of filters that must match for the hook to trigger",
+          "messages": {
+            "description": "This is the starting state for the conversation.",
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/AssistantHookFilter"
+              "$ref": "#/components/schemas/OpenAIMessage"
             }
           },
-          "do": {
-            "description": "This is the set of actions to perform when the hook triggers",
+          "tools": {
             "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
-              "$ref": "#/components/schemas/AssistantHookActionBase"
-            }
-          }
-        },
-        "required": [
-          "on",
-          "do"
-        ]
-      },
-      "KeypadInputPlan": {
-        "type": "object",
-        "properties": {
-          "enabled": {
-            "type": "boolean",
-            "description": "This keeps track of whether the user has enabled keypad input.\nBy default, it is off.\n\n@default false"
-          },
-          "timeoutSeconds": {
-            "type": "number",
-            "description": "This is the time in seconds to wait before processing the input.\nIf the input is not received within this time, the input will be ignored.\nIf set to \"off\", the input will be processed when the user enters a delimiter or immediately if no delimiter is used.\n\n@default 2",
-            "minimum": 0,
-            "maximum": 10
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
           },
-          "delimiters": {
-            "type": "string",
-            "description": "This is the delimiter(s) that will be used to process the input.\nCan be '#', '*', or an empty array.",
-            "enum": [
-              "#",
-              "*",
-              ""
-            ]
-          }
-        }
-      },
-      "CreateAssistantDTO": {
-        "type": "object",
-        "properties": {
-          "transcriber": {
-            "description": "These are the options for the assistant's transcriber.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AssemblyAITranscriber",
-                "title": "AssemblyAI"
-              },
-              {
-                "$ref": "#/components/schemas/AzureSpeechTranscriber",
-                "title": "Azure"
-              },
-              {
-                "$ref": "#/components/schemas/CustomTranscriber",
-                "title": "CustomTranscriber"
-              },
-              {
-                "$ref": "#/components/schemas/DeepgramTranscriber",
-                "title": "Deepgram"
-              },
-              {
-                "$ref": "#/components/schemas/ElevenLabsTranscriber",
-                "title": "ElevenLabs"
-              },
-              {
-                "$ref": "#/components/schemas/GladiaTranscriber",
-                "title": "Gladia"
-              },
-              {
-                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
-                "title": "Speechmatics"
-              },
-              {
-                "$ref": "#/components/schemas/TalkscriberTranscriber",
-                "title": "Talkscriber"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleTranscriber",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAITranscriber",
-                "title": "OpenAI"
-              }
-            ]
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           },
-          "model": {
-            "description": "These are the options for the assistant's LLM.",
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/AnyscaleModel",
-                "title": "Anyscale"
-              },
-              {
-                "$ref": "#/components/schemas/AnthropicModel",
-                "title": "Anthropic"
-              },
-              {
-                "$ref": "#/components/schemas/CerebrasModel",
-                "title": "Cerebras"
-              },
-              {
-                "$ref": "#/components/schemas/CustomLLMModel",
-                "title": "CustomLLM"
-              },
-              {
-                "$ref": "#/components/schemas/DeepInfraModel",
-                "title": "DeepInfra"
-              },
-              {
-                "$ref": "#/components/schemas/DeepSeekModel",
-                "title": "DeepSeek"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleModel",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/GroqModel",
-                "title": "Groq"
-              },
-              {
-                "$ref": "#/components/schemas/InflectionAIModel",
-                "title": "InflectionAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIModel",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenRouterModel",
-                "title": "OpenRouter"
-              },
-              {
-                "$ref": "#/components/schemas/PerplexityAIModel",
-                "title": "PerplexityAI"
-              },
-              {
-                "$ref": "#/components/schemas/TogetherAIModel",
-                "title": "Together"
-              },
-              {
-                "$ref": "#/components/schemas/VapiModel",
-                "title": "Vapi"
-              },
-              {
-                "$ref": "#/components/schemas/XaiModel",
-                "title": "XAI"
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
               }
             ]
           },
-          "voice": {
-            "description": "These are the options for the assistant's voice.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AzureVoice",
-                "title": "Azure"
-              },
-              {
-                "$ref": "#/components/schemas/CartesiaVoice",
-                "title": "Cartesia"
-              },
-              {
-                "$ref": "#/components/schemas/CustomVoice",
-                "title": "CustomVoice"
-              },
-              {
-                "$ref": "#/components/schemas/DeepgramVoice",
-                "title": "Deepgram"
-              },
-              {
-                "$ref": "#/components/schemas/ElevenLabsVoice",
-                "title": "ElevenLabs"
-              },
-              {
-                "$ref": "#/components/schemas/HumeVoice",
-                "title": "Hume"
-              },
-              {
-                "$ref": "#/components/schemas/LMNTVoice",
-                "title": "LMNT"
-              },
-              {
-                "$ref": "#/components/schemas/NeuphonicVoice",
-                "title": "Neuphonic"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIVoice",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/PlayHTVoice",
-                "title": "PlayHT"
-              },
-              {
-                "$ref": "#/components/schemas/RimeAIVoice",
-                "title": "RimeAI"
-              },
-              {
-                "$ref": "#/components/schemas/SmallestAIVoice",
-                "title": "SmallestAI"
-              },
-              {
-                "$ref": "#/components/schemas/TavusVoice",
-                "title": "TavusVoice"
-              },
-              {
-                "$ref": "#/components/schemas/VapiVoice",
-                "title": "Vapi"
-              }
-            ],
-            "default": {
-              "provider": "playht",
-              "voiceId": "jennifer"
-            }
-          },
-          "firstMessage": {
-            "type": "string",
-            "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
-            "example": "Hello! How can I help you today?"
-          },
-          "firstMessageInterruptionsEnabled": {
-            "type": "boolean",
-            "default": false
-          },
-          "firstMessageMode": {
+          "provider": {
             "type": "string",
-            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'",
             "enum": [
-              "assistant-speaks-first",
-              "assistant-speaks-first-with-model-generated-message",
-              "assistant-waits-for-user"
-            ],
-            "example": "assistant-speaks-first"
-          },
-          "voicemailDetection": {
-            "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nThis uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached.\nYou can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
-                "title": "Twilio"
-              }
+              "deepinfra"
             ]
           },
-          "clientMessages": {
-            "type": "array",
-            "enum": [
-              "conversation-update",
-              "function-call",
-              "function-call-result",
-              "hang",
-              "language-changed",
-              "metadata",
-              "model-output",
-              "speech-update",
-              "status-update",
-              "transcript",
-              "tool-calls",
-              "tool-calls-result",
-              "transfer-update",
-              "user-interrupted",
-              "voice-input",
-              "workflow.node.started"
-            ],
-            "example": [
-              "conversation-update",
-              "function-call",
-              "hang",
-              "model-output",
-              "speech-update",
-              "status-update",
-              "transfer-update",
-              "transcript",
-              "tool-calls",
-              "user-interrupted",
-              "voice-input",
-              "workflow.node.started"
-            ],
-            "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema.",
-            "items": {
-              "type": "string",
-              "enum": [
-                "conversation-update",
-                "function-call",
-                "function-call-result",
-                "hang",
-                "language-changed",
-                "metadata",
-                "model-output",
-                "speech-update",
-                "status-update",
-                "transcript",
-                "tool-calls",
-                "tool-calls-result",
-                "transfer-update",
-                "user-interrupted",
-                "voice-input",
-                "workflow.node.started"
-              ]
-            }
-          },
-          "serverMessages": {
-            "type": "array",
-            "enum": [
-              "conversation-update",
-              "end-of-call-report",
-              "function-call",
-              "hang",
-              "language-changed",
-              "language-change-detected",
-              "model-output",
-              "phone-call-control",
-              "speech-update",
-              "status-update",
-              "transcript",
-              "transcript[transcriptType=\"final\"]",
-              "tool-calls",
-              "transfer-destination-request",
-              "transfer-update",
-              "user-interrupted",
-              "voice-input"
-            ],
-            "example": [
-              "conversation-update",
-              "end-of-call-report",
-              "function-call",
-              "hang",
-              "speech-update",
-              "status-update",
-              "tool-calls",
-              "transfer-destination-request",
-              "user-interrupted"
-            ],
-            "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema.",
-            "items": {
-              "type": "string",
-              "enum": [
-                "conversation-update",
-                "end-of-call-report",
-                "function-call",
-                "hang",
-                "language-changed",
-                "language-change-detected",
-                "model-output",
-                "phone-call-control",
-                "speech-update",
-                "status-update",
-                "transcript",
-                "transcript[transcriptType=\"final\"]",
-                "tool-calls",
-                "transfer-destination-request",
-                "transfer-update",
-                "user-interrupted",
-                "voice-input"
-              ]
-            }
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
           },
-          "silenceTimeoutSeconds": {
+          "temperature": {
             "type": "number",
-            "description": "How many seconds of silence to wait before ending the call. Defaults to 30.\n\n@default 30",
-            "minimum": 10,
-            "maximum": 3600,
-            "example": 30
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
           },
-          "maxDurationSeconds": {
+          "maxTokens": {
             "type": "number",
-            "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)",
-            "minimum": 10,
-            "maximum": 43200,
-            "example": 600
-          },
-          "backgroundSound": {
-            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
-            "maxLength": 1000,
-            "oneOf": [
-              {
-                "type": "enum",
-                "enum": [
-                  "off",
-                  "office"
-                ],
-                "example": "office"
-              },
-              {
-                "type": "string",
-                "format": "uri",
-                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
-              }
-            ]
-          },
-          "backgroundDenoisingEnabled": {
-            "type": "boolean",
-            "description": "This enables filtering of noise and background speech while the user is talking.\n\nDefault `false` while in beta.\n\n@default false",
-            "example": false
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "modelOutputInMessagesEnabled": {
+          "emotionRecognitionEnabled": {
             "type": "boolean",
-            "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\nDefault `false` while in beta.\n\n@default false",
-            "example": false
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
           },
-          "transportConfigurations": {
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "DeepSeekModel": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
             "type": "array",
-            "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TransportConfigurationTwilio",
-                  "title": "Twilio"
-                }
-              ]
+              "$ref": "#/components/schemas/OpenAIMessage"
             }
           },
-          "observabilityPlan": {
-            "description": "This is the plan for observability configuration of assistant's calls.\nCurrently supports Langfuse for tracing and monitoring.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
-                "title": "Langfuse"
-              }
-            ],
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
-              }
-            ]
-          },
-          "credentials": {
+          "tools": {
             "type": "array",
-            "description": "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.",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
-                  "title": "AnthropicCredential"
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
-                  "title": "AnyscaleCredential"
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
-                  "title": "AssemblyAICredential"
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
-                  "title": "AzureCredential"
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
-                  "title": "AzureOpenAICredential"
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
-                  "title": "ByoSipTrunkCredential"
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
-                  "title": "CartesiaCredential"
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
-                  "title": "CerebrasCredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
-                  "title": "CloudflareCredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
-                  "title": "CustomLLMCredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
-                  "title": "DeepgramCredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
-                  "title": "DeepInfraCredential"
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
-                  "title": "DeepSeekCredential"
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
-                  "title": "ElevenLabsCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
-                  "title": "GcpCredential"
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
-                  "title": "GladiaCredential"
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
-                  "title": "GhlCredential"
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
-                  "title": "GoogleCredential"
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
-                  "title": "GroqCredential"
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
-                  "title": "HumeCredential"
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
-                  "title": "InflectionAICredential"
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
-                  "title": "LangfuseCredential"
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
-                  "title": "LmntCredential"
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
-                  "title": "MakeCredential"
-                },
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
+          },
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "enum": [
+              "deepseek-chat",
+              "deepseek-reasoner"
+            ]
+          },
+          "provider": {
+            "type": "string",
+            "enum": [
+              "deep-seek"
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "model",
+          "provider"
+        ]
+      },
+      "GeminiMultimodalLivePrebuiltVoiceConfig": {
+        "type": "object",
+        "properties": {
+          "voiceName": {
+            "type": "string",
+            "enum": [
+              "Puck",
+              "Charon",
+              "Kore",
+              "Fenrir",
+              "Aoede"
+            ]
+          }
+        },
+        "required": [
+          "voiceName"
+        ]
+      },
+      "GeminiMultimodalLiveVoiceConfig": {
+        "type": "object",
+        "properties": {
+          "prebuiltVoiceConfig": {
+            "$ref": "#/components/schemas/GeminiMultimodalLivePrebuiltVoiceConfig"
+          }
+        },
+        "required": [
+          "prebuiltVoiceConfig"
+        ]
+      },
+      "GeminiMultimodalLiveSpeechConfig": {
+        "type": "object",
+        "properties": {
+          "voiceConfig": {
+            "$ref": "#/components/schemas/GeminiMultimodalLiveVoiceConfig"
+          }
+        },
+        "required": [
+          "voiceConfig"
+        ]
+      },
+      "GoogleRealtimeConfig": {
+        "type": "object",
+        "properties": {
+          "topP": {
+            "type": "number",
+            "description": "This is the nucleus sampling parameter that controls the cumulative probability of tokens considered during text generation.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API."
+          },
+          "topK": {
+            "type": "number",
+            "description": "This is the top-k sampling parameter that limits the number of highest probability tokens considered during text generation.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API."
+          },
+          "presencePenalty": {
+            "type": "number",
+            "description": "This is the presence penalty parameter that influences the model's likelihood to repeat information by penalizing tokens based on their presence in the text.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API."
+          },
+          "frequencyPenalty": {
+            "type": "number",
+            "description": "This is the frequency penalty parameter that influences the model's likelihood to repeat tokens by penalizing them based on their frequency in the text.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API."
+          },
+          "speechConfig": {
+            "description": "This is the speech configuration object that defines the voice settings to be used for the model's speech output.\nOnly applicable with the Gemini Flash 2.0 Multimodal Live API.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/GeminiMultimodalLiveSpeechConfig"
+              }
+            ]
+          }
+        }
+      },
+      "GoogleModel": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
-                  "title": "MistralCredential"
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
-                  "title": "NeuphonicCredential"
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
-                  "title": "OpenAICredential"
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
-                  "title": "OpenRouterCredential"
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
-                  "title": "PerplexityAICredential"
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
-                  "title": "PlayHTCredential"
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
-                  "title": "RimeAICredential"
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
-                  "title": "RunpodCredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
-                  "title": "S3Credential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
-                  "title": "SmallestAICredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
-                  "title": "SpeechmaticsCredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
-                  "title": "SupabaseCredential"
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
-                  "title": "TavusCredential"
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
-                  "title": "TogetherAICredential"
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTrieveCredentialDTO",
-                  "title": "TrieveCredential"
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
-                  "title": "TwilioCredential"
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
-                  "title": "VonageCredential"
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
-                  "title": "WebhookCredential"
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
-                  "title": "XAiCredential"
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
-                  "title": "GoogleCalendarOAuth2ClientCredential"
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
-                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
-                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
-                  "title": "SlackOAuth2AuthorizationCredential"
-                }
-              ],
-              "discriminator": {
-                "propertyName": "provider",
-                "mapping": {
-                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
-                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
-                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
-                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
-                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
-                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
-                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
-                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
-                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
-                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
-                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
-                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
-                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
-                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
-                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
-                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
-                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
-                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
-                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
-                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
-                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
-                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
-                  "make": "#/components/schemas/CreateMakeCredentialDTO",
-                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
-                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
-                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
-                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
-                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
-                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
-                  "s3": "#/components/schemas/CreateS3CredentialDTO",
-                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
-                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
-                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
-                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
-                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
-                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
-                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
-                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
-                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
-                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
-                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
-                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
-                  "trieve": "#/components/schemas/CreateTrieveCredentialDTO",
-                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
-                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
-                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
-                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO"
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
                 }
-              }
+              ]
             }
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.",
-            "maxLength": 40
-          },
-          "voicemailMessage": {
-            "type": "string",
-            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
-            "maxLength": 1000
-          },
-          "endCallMessage": {
-            "type": "string",
-            "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.",
-            "maxLength": 1000
-          },
-          "endCallPhrases": {
-            "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.",
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
             "type": "array",
             "items": {
-              "type": "string",
-              "maxLength": 140,
-              "minLength": 2
+              "type": "string"
             }
           },
-          "compliancePlan": {
-            "$ref": "#/components/schemas/CompliancePlan"
-          },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the assistant."
-          },
-          "analysisPlan": {
-            "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.",
-            "allOf": [
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/AnalysisPlan"
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
               }
             ]
           },
-          "artifactPlan": {
-            "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.\n\nNote: `recordingEnabled` is currently at the root level. It will be moved to `artifactPlan` in the future, but will remain backwards compatible.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ArtifactPlan"
-              }
+          "model": {
+            "type": "string",
+            "description": "This is the Google model that will be used.",
+            "enum": [
+              "gemini-3-flash-preview",
+              "gemini-2.5-pro",
+              "gemini-2.5-flash",
+              "gemini-2.5-flash-lite",
+              "gemini-2.0-flash-thinking-exp",
+              "gemini-2.0-pro-exp-02-05",
+              "gemini-2.0-flash",
+              "gemini-2.0-flash-lite",
+              "gemini-2.0-flash-exp",
+              "gemini-2.0-flash-realtime-exp",
+              "gemini-1.5-flash",
+              "gemini-1.5-flash-002",
+              "gemini-1.5-pro",
+              "gemini-1.5-pro-002",
+              "gemini-1.0-pro"
             ]
           },
-          "messagePlan": {
-            "description": "This is the plan for static predefined messages that can be spoken by the assistant during the call, like `idleMessages`.\n\nNote: `firstMessage`, `voicemailMessage`, and `endCallMessage` are currently at the root level. They will be moved to `messagePlan` in the future, but will remain backwards compatible.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/MessagePlan"
-              }
+          "provider": {
+            "type": "string",
+            "enum": [
+              "google"
             ]
           },
-          "startSpeakingPlan": {
-            "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+          "realtimeConfig": {
+            "description": "This is the session configuration for the Gemini Flash 2.0 Multimodal Live API.\nOnly applicable if the model `gemini-2.0-flash-realtime-exp` is selected.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/StartSpeakingPlan"
+                "$ref": "#/components/schemas/GoogleRealtimeConfig"
               }
             ]
           },
-          "stopSpeakingPlan": {
-            "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/StopSpeakingPlan"
-              }
-            ]
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
           },
-          "monitorPlan": {
-            "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n\nNote, `serverMessages`, `clientMessages`, `serverUrl` and `serverUrlSecret` are currently at the root level but will be moved to `monitorPlan` in the future. Will remain backwards compatible",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/MonitorPlan"
-              }
-            ]
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "credentialIds": {
-            "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "model",
+          "provider"
+        ]
+      },
+      "GroqModel": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
             "type": "array",
             "items": {
-              "type": "string"
+              "$ref": "#/components/schemas/OpenAIMessage"
             }
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
           },
-          "hooks": {
-            "description": "This is a set of actions that will be performed on certain events.",
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/AssistantHooks"
+              "type": "string"
             }
           },
-          "keypadInputPlan": {
-            "$ref": "#/components/schemas/KeypadInputPlan"
-          }
-        }
-      },
-      "AssistantOverrides": {
-        "type": "object",
-        "properties": {
-          "transcriber": {
-            "description": "These are the options for the assistant's transcriber.",
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/AssemblyAITranscriber",
-                "title": "AssemblyAI"
-              },
-              {
-                "$ref": "#/components/schemas/AzureSpeechTranscriber",
-                "title": "Azure"
-              },
-              {
-                "$ref": "#/components/schemas/CustomTranscriber",
-                "title": "CustomTranscriber"
-              },
-              {
-                "$ref": "#/components/schemas/DeepgramTranscriber",
-                "title": "Deepgram"
-              },
-              {
-                "$ref": "#/components/schemas/ElevenLabsTranscriber",
-                "title": "ElevenLabs"
-              },
-              {
-                "$ref": "#/components/schemas/GladiaTranscriber",
-                "title": "Gladia"
-              },
-              {
-                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
-                "title": "Speechmatics"
-              },
-              {
-                "$ref": "#/components/schemas/TalkscriberTranscriber",
-                "title": "Talkscriber"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleTranscriber",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAITranscriber",
-                "title": "OpenAI"
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
               }
             ]
           },
           "model": {
-            "description": "These are the options for the assistant's LLM.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AnyscaleModel",
-                "title": "Anyscale"
-              },
-              {
-                "$ref": "#/components/schemas/AnthropicModel",
-                "title": "Anthropic"
-              },
-              {
-                "$ref": "#/components/schemas/CerebrasModel",
-                "title": "Cerebras"
-              },
-              {
-                "$ref": "#/components/schemas/CustomLLMModel",
-                "title": "CustomLLM"
-              },
-              {
-                "$ref": "#/components/schemas/DeepInfraModel",
-                "title": "DeepInfra"
-              },
-              {
-                "$ref": "#/components/schemas/DeepSeekModel",
-                "title": "DeepSeek"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleModel",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/GroqModel",
-                "title": "Groq"
-              },
-              {
-                "$ref": "#/components/schemas/InflectionAIModel",
-                "title": "InflectionAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIModel",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenRouterModel",
-                "title": "OpenRouter"
-              },
-              {
-                "$ref": "#/components/schemas/PerplexityAIModel",
-                "title": "PerplexityAI"
-              },
-              {
-                "$ref": "#/components/schemas/TogetherAIModel",
-                "title": "Together"
-              },
-              {
-                "$ref": "#/components/schemas/VapiModel",
-                "title": "Vapi"
-              },
-              {
-                "$ref": "#/components/schemas/XaiModel",
-                "title": "XAI"
-              }
-            ]
-          },
-          "voice": {
-            "description": "These are the options for the assistant's voice.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AzureVoice",
-                "title": "Azure"
-              },
-              {
-                "$ref": "#/components/schemas/CartesiaVoice",
-                "title": "Cartesia"
-              },
-              {
-                "$ref": "#/components/schemas/CustomVoice",
-                "title": "CustomVoice"
-              },
-              {
-                "$ref": "#/components/schemas/DeepgramVoice",
-                "title": "Deepgram"
-              },
-              {
-                "$ref": "#/components/schemas/ElevenLabsVoice",
-                "title": "ElevenLabs"
-              },
-              {
-                "$ref": "#/components/schemas/HumeVoice",
-                "title": "Hume"
-              },
-              {
-                "$ref": "#/components/schemas/LMNTVoice",
-                "title": "LMNT"
-              },
-              {
-                "$ref": "#/components/schemas/NeuphonicVoice",
-                "title": "Neuphonic"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIVoice",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/PlayHTVoice",
-                "title": "PlayHT"
-              },
-              {
-                "$ref": "#/components/schemas/RimeAIVoice",
-                "title": "RimeAI"
-              },
-              {
-                "$ref": "#/components/schemas/SmallestAIVoice",
-                "title": "SmallestAI"
-              },
-              {
-                "$ref": "#/components/schemas/TavusVoice",
-                "title": "TavusVoice"
-              },
-              {
-                "$ref": "#/components/schemas/VapiVoice",
-                "title": "Vapi"
-              }
-            ],
-            "default": {
-              "provider": "playht",
-              "voiceId": "jennifer"
-            }
-          },
-          "firstMessage": {
-            "type": "string",
-            "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
-            "example": "Hello! How can I help you today?"
-          },
-          "firstMessageInterruptionsEnabled": {
-            "type": "boolean",
-            "default": false
-          },
-          "firstMessageMode": {
             "type": "string",
-            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
             "enum": [
-              "assistant-speaks-first",
-              "assistant-speaks-first-with-model-generated-message",
-              "assistant-waits-for-user"
-            ],
-            "example": "assistant-speaks-first"
-          },
-          "voicemailDetection": {
-            "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nThis uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached.\nYou can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
-                "title": "Twilio"
-              }
+              "openai/gpt-oss-20b",
+              "openai/gpt-oss-120b",
+              "deepseek-r1-distill-llama-70b",
+              "llama-3.3-70b-versatile",
+              "llama-3.1-405b-reasoning",
+              "llama-3.1-8b-instant",
+              "llama3-8b-8192",
+              "llama3-70b-8192",
+              "gemma2-9b-it",
+              "moonshotai/kimi-k2-instruct-0905",
+              "meta-llama/llama-4-maverick-17b-128e-instruct",
+              "meta-llama/llama-4-scout-17b-16e-instruct",
+              "mistral-saba-24b",
+              "compound-beta",
+              "compound-beta-mini"
             ]
           },
-          "clientMessages": {
-            "type": "array",
-            "enum": [
-              "conversation-update",
-              "function-call",
-              "function-call-result",
-              "hang",
-              "language-changed",
-              "metadata",
-              "model-output",
-              "speech-update",
-              "status-update",
-              "transcript",
-              "tool-calls",
-              "tool-calls-result",
-              "transfer-update",
-              "user-interrupted",
-              "voice-input",
-              "workflow.node.started"
-            ],
-            "example": [
-              "conversation-update",
-              "function-call",
-              "hang",
-              "model-output",
-              "speech-update",
-              "status-update",
-              "transfer-update",
-              "transcript",
-              "tool-calls",
-              "user-interrupted",
-              "voice-input",
-              "workflow.node.started"
-            ],
-            "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema.",
-            "items": {
-              "type": "string",
-              "enum": [
-                "conversation-update",
-                "function-call",
-                "function-call-result",
-                "hang",
-                "language-changed",
-                "metadata",
-                "model-output",
-                "speech-update",
-                "status-update",
-                "transcript",
-                "tool-calls",
-                "tool-calls-result",
-                "transfer-update",
-                "user-interrupted",
-                "voice-input",
-                "workflow.node.started"
-              ]
-            }
-          },
-          "serverMessages": {
-            "type": "array",
+          "provider": {
+            "type": "string",
             "enum": [
-              "conversation-update",
-              "end-of-call-report",
-              "function-call",
-              "hang",
-              "language-changed",
-              "language-change-detected",
-              "model-output",
-              "phone-call-control",
-              "speech-update",
-              "status-update",
-              "transcript",
-              "transcript[transcriptType=\"final\"]",
-              "tool-calls",
-              "transfer-destination-request",
-              "transfer-update",
-              "user-interrupted",
-              "voice-input"
-            ],
-            "example": [
-              "conversation-update",
-              "end-of-call-report",
-              "function-call",
-              "hang",
-              "speech-update",
-              "status-update",
-              "tool-calls",
-              "transfer-destination-request",
-              "user-interrupted"
-            ],
-            "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema.",
-            "items": {
-              "type": "string",
-              "enum": [
-                "conversation-update",
-                "end-of-call-report",
-                "function-call",
-                "hang",
-                "language-changed",
-                "language-change-detected",
-                "model-output",
-                "phone-call-control",
-                "speech-update",
-                "status-update",
-                "transcript",
-                "transcript[transcriptType=\"final\"]",
-                "tool-calls",
-                "transfer-destination-request",
-                "transfer-update",
-                "user-interrupted",
-                "voice-input"
-              ]
-            }
+              "groq"
+            ]
           },
-          "silenceTimeoutSeconds": {
+          "temperature": {
             "type": "number",
-            "description": "How many seconds of silence to wait before ending the call. Defaults to 30.\n\n@default 30",
-            "minimum": 10,
-            "maximum": 3600,
-            "example": 30
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
           },
-          "maxDurationSeconds": {
+          "maxTokens": {
             "type": "number",
-            "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)",
-            "minimum": 10,
-            "maximum": 43200,
-            "example": 600
-          },
-          "backgroundSound": {
-            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
-            "maxLength": 1000,
-            "oneOf": [
-              {
-                "type": "enum",
-                "enum": [
-                  "off",
-                  "office"
-                ],
-                "example": "office"
-              },
-              {
-                "type": "string",
-                "format": "uri",
-                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
-              }
-            ]
-          },
-          "backgroundDenoisingEnabled": {
-            "type": "boolean",
-            "description": "This enables filtering of noise and background speech while the user is talking.\n\nDefault `false` while in beta.\n\n@default false",
-            "example": false
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "modelOutputInMessagesEnabled": {
+          "emotionRecognitionEnabled": {
             "type": "boolean",
-            "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\nDefault `false` while in beta.\n\n@default false",
-            "example": false
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
           },
-          "transportConfigurations": {
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "model",
+          "provider"
+        ]
+      },
+      "InflectionAIModel": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
             "type": "array",
-            "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TransportConfigurationTwilio",
-                  "title": "Twilio"
-                }
-              ]
+              "$ref": "#/components/schemas/OpenAIMessage"
             }
           },
-          "observabilityPlan": {
-            "description": "This is the plan for observability configuration of assistant's calls.\nCurrently supports Langfuse for tracing and monitoring.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
-                "title": "Langfuse"
-              }
-            ],
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
-              }
-            ]
-          },
-          "credentials": {
+          "tools": {
             "type": "array",
-            "description": "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.",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
-                  "title": "AnthropicCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
-                  "title": "AnyscaleCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
-                  "title": "AssemblyAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
-                  "title": "AzureCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
-                  "title": "AzureOpenAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
-                  "title": "ByoSipTrunkCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
-                  "title": "CartesiaCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
-                  "title": "CerebrasCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
-                  "title": "CloudflareCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
-                  "title": "CustomLLMCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
-                  "title": "DeepgramCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
-                  "title": "DeepInfraCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
-                  "title": "DeepSeekCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
-                  "title": "ElevenLabsCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
-                  "title": "GcpCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
-                  "title": "GladiaCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
-                  "title": "GhlCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
-                  "title": "GoogleCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
-                  "title": "GroqCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
-                  "title": "HumeCredential"
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
-                  "title": "InflectionAICredential"
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
-                  "title": "LangfuseCredential"
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
-                  "title": "LmntCredential"
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
-                  "title": "MakeCredential"
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
-                  "title": "MistralCredential"
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
-                  "title": "NeuphonicCredential"
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
-                  "title": "OpenAICredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
-                  "title": "OpenRouterCredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
-                  "title": "PerplexityAICredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
-                  "title": "PlayHTCredential"
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
-                  "title": "RimeAICredential"
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
-                  "title": "RunpodCredential"
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
-                  "title": "S3Credential"
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
-                  "title": "SmallestAICredential"
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
-                  "title": "SpeechmaticsCredential"
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
-                  "title": "SupabaseCredential"
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
-                  "title": "TavusCredential"
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
-                  "title": "TogetherAICredential"
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTrieveCredentialDTO",
-                  "title": "TrieveCredential"
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
-                  "title": "TwilioCredential"
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
-                  "title": "VonageCredential"
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
-                  "title": "WebhookCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
-                  "title": "XAiCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
-                  "title": "GoogleCalendarOAuth2ClientCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
-                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
-                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
-                  "title": "SlackOAuth2AuthorizationCredential"
-                }
-              ],
-              "discriminator": {
-                "propertyName": "provider",
-                "mapping": {
-                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
-                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
-                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
-                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
-                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
-                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
-                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
-                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
-                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
-                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
-                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
-                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
-                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
-                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
-                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
-                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
-                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
-                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
-                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
-                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
-                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
-                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
-                  "make": "#/components/schemas/CreateMakeCredentialDTO",
-                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
-                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
-                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
-                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
-                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
-                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
-                  "s3": "#/components/schemas/CreateS3CredentialDTO",
-                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
-                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
-                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
-                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
-                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
-                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
-                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
-                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
-                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
-                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
-                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
-                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
-                  "trieve": "#/components/schemas/CreateTrieveCredentialDTO",
-                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
-                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
-                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
-                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO"
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
                 }
-              }
-            }
-          },
-          "variableValues": {
-            "type": "object",
-            "description": "These are values that will be used to replace the template variables in the assistant messages and other text-based fields.\nThis uses LiquidJS syntax. https://liquidjs.com/tutorials/intro-to-liquid.html\n\nSo for example, `{{ name }}` will be replaced with the value of `name` in `variableValues`.\n`{{\"now\" | date: \"%b %d, %Y, %I:%M %p\", \"America/New_York\"}}` will be replaced with the current date and time in New York.\n Some VAPI reserved defaults:\n - *customer* - the customer object"
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.",
-            "maxLength": 40
-          },
-          "voicemailMessage": {
-            "type": "string",
-            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
-            "maxLength": 1000
-          },
-          "endCallMessage": {
-            "type": "string",
-            "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.",
-            "maxLength": 1000
-          },
-          "endCallPhrases": {
-            "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.",
-            "type": "array",
-            "items": {
-              "type": "string",
-              "maxLength": 140,
-              "minLength": 2
+              ]
             }
           },
-          "compliancePlan": {
-            "$ref": "#/components/schemas/CompliancePlan"
-          },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the assistant."
-          },
-          "analysisPlan": {
-            "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AnalysisPlan"
-              }
-            ]
-          },
-          "artifactPlan": {
-            "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.\n\nNote: `recordingEnabled` is currently at the root level. It will be moved to `artifactPlan` in the future, but will remain backwards compatible.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ArtifactPlan"
-              }
-            ]
-          },
-          "messagePlan": {
-            "description": "This is the plan for static predefined messages that can be spoken by the assistant during the call, like `idleMessages`.\n\nNote: `firstMessage`, `voicemailMessage`, and `endCallMessage` are currently at the root level. They will be moved to `messagePlan` in the future, but will remain backwards compatible.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/MessagePlan"
-              }
-            ]
-          },
-          "startSpeakingPlan": {
-            "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/StartSpeakingPlan"
-              }
-            ]
-          },
-          "stopSpeakingPlan": {
-            "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/StopSpeakingPlan"
-              }
-            ]
-          },
-          "monitorPlan": {
-            "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n\nNote, `serverMessages`, `clientMessages`, `serverUrl` and `serverUrlSecret` are currently at the root level but will be moved to `monitorPlan` in the future. Will remain backwards compatible",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/MonitorPlan"
-              }
-            ]
-          },
-          "credentialIds": {
-            "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
             "type": "array",
             "items": {
               "type": "string"
             }
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl",
-            "allOf": [
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
               }
             ]
           },
-          "hooks": {
-            "description": "This is a set of actions that will be performed on certain events.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/AssistantHooks"
-            }
-          },
-          "keypadInputPlan": {
-            "$ref": "#/components/schemas/KeypadInputPlan"
-          }
-        }
-      },
-      "SquadMemberDTO": {
-        "type": "object",
-        "properties": {
-          "assistantId": {
+          "model": {
             "type": "string",
-            "nullable": true,
-            "description": "This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead."
-          },
-          "assistant": {
-            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
-              }
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "enum": [
+              "inflection_3_pi"
             ]
           },
-          "assistantOverrides": {
-            "description": "This can be used to override the assistant's settings and provide values for it's template variables.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AssistantOverrides"
-              }
+          "provider": {
+            "type": "string",
+            "enum": [
+              "inflection-ai"
             ]
           },
-          "assistantDestinations": {
-            "description": "These are the others assistants that this assistant can transfer to.\n\nIf the assistant already has transfer call tool, these destinations are just appended to existing ones.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/TransferDestinationAssistant"
-            }
-          }
-        }
-      },
-      "CreateSquadDTO": {
-        "type": "object",
-        "properties": {
-          "name": {
-            "type": "string",
-            "description": "This is the name of the squad."
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
           },
-          "members": {
-            "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/SquadMemberDTO"
-            }
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "membersOverrides": {
-            "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AssistantOverrides"
-              }
-            ]
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
           }
         },
         "required": [
-          "members"
+          "model",
+          "provider"
         ]
       },
-      "PhoneNumberHookCallRinging": {
+      "MinimaxLLMModel": {
         "type": "object",
         "properties": {
-          "on": {
-            "type": "string",
-            "description": "This is the event to trigger the hook on",
-            "enum": [
-              "call.ringing"
-            ],
-            "maxLength": 1000
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
           },
-          "do": {
+          "tools": {
             "type": "array",
-            "description": "This is the set of actions to perform when the hook triggers",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/TransferPhoneNumberHookAction",
-                  "title": "TransferPhoneNumberHookAction"
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/SayPhoneNumberHookAction",
-                  "title": "SayPhoneNumberHookAction"
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
                 }
               ]
             }
-          }
-        },
-        "required": [
-          "on",
-          "do"
-        ]
-      },
-      "ImportTwilioPhoneNumberDTO": {
-        "type": "object",
-        "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
           },
-          "hooks": {
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
+              "type": "string"
             }
           },
-          "twilioPhoneNumber": {
-            "type": "string",
-            "description": "These are the digits of the phone number you own on your Twilio.",
-            "deprecated": true
-          },
-          "twilioAccountSid": {
-            "type": "string",
-            "description": "This is your Twilio Account SID that will be used to handle this phone number."
-          },
-          "twilioAuthToken": {
-            "type": "string",
-            "description": "This is the Twilio Auth Token that will be used to handle this phone number."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
-          },
-          "assistantId": {
-            "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
-          },
-          "squadId": {
-            "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
-          },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
               }
             ]
-          }
-        },
-        "required": [
-          "twilioPhoneNumber",
-          "twilioAccountSid",
-          "twilioAuthToken"
-        ]
-      },
-      "CreateCustomerDTO": {
-        "type": "object",
-        "properties": {
-          "numberE164CheckEnabled": {
-            "type": "boolean",
-            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
-            "default": true
           },
-          "extension": {
+          "provider": {
             "type": "string",
-            "description": "This is the extension that will be dialed after the call is answered.",
-            "maxLength": 10,
-            "example": null
-          },
-          "assistantOverrides": {
-            "description": "These are the overrides for the assistant's settings and template variables specific to this customer.\nThis allows customization of the assistant's behavior for individual customers in batch calls.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AssistantOverrides"
-              }
+            "enum": [
+              "minimax"
             ]
           },
-          "number": {
+          "model": {
             "type": "string",
-            "description": "This is the number of the customer.",
-            "minLength": 3,
-            "maxLength": 40
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "enum": [
+              "MiniMax-M2.7"
+            ]
           },
-          "sipUri": {
-            "type": "string",
-            "description": "This is the SIP URI of the customer."
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of the customer. This is just for your own reference.\n\nFor SIP inbound calls, this is extracted from the `From` SIP header with format `\"Display Name\" <sip:username@domain>`.",
-            "maxLength": 40
-          }
-        }
-      },
-      "SchedulePlan": {
-        "type": "object",
-        "properties": {
-          "earliestAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of the earliest time the call can be scheduled."
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "latestAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of the latest time the call can be scheduled."
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
           }
         },
         "required": [
-          "earliestAt"
+          "provider",
+          "model"
         ]
       },
-      "Call": {
+      "OpenAIModel": {
         "type": "object",
         "properties": {
-          "type": {
-            "type": "string",
-            "description": "This is the type of call.",
-            "enum": [
-              "inboundPhoneCall",
-              "outboundPhoneCall",
-              "webCall",
-              "vapi.websocketCall"
-            ]
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
           },
-          "costs": {
+          "tools": {
             "type": "array",
-            "description": "These are the costs of individual components of the call in USD.",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/TransportCost",
-                  "title": "TransportCost"
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/TranscriberCost",
-                  "title": "TranscriberCost"
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
                 },
                 {
-                  "$ref": "#/components/schemas/ModelCost",
-                  "title": "ModelCost"
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
                 },
                 {
-                  "$ref": "#/components/schemas/VoiceCost",
-                  "title": "VoiceCost"
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
                 },
                 {
-                  "$ref": "#/components/schemas/VapiCost",
-                  "title": "VapiCost"
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
                 },
                 {
-                  "$ref": "#/components/schemas/VoicemailDetectionCost",
-                  "title": "VoicemailDetectionCost"
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
                 },
                 {
-                  "$ref": "#/components/schemas/AnalysisCost",
-                  "title": "AnalysisCost"
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
                 }
               ]
             }
           },
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
+            ]
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the provider that will be used for the model.",
+            "enum": [
+              "openai"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the OpenAI model that will be used.\n\nWhen using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.\nThis is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.\n\n@default undefined",
+            "enum": [
+              "gpt-5.4",
+              "gpt-5.4-mini",
+              "gpt-5.4-nano",
+              "gpt-5.2",
+              "gpt-5.2-chat-latest",
+              "gpt-5.1",
+              "gpt-5.1-chat-latest",
+              "gpt-5",
+              "gpt-5-chat-latest",
+              "gpt-5-mini",
+              "gpt-5-nano",
+              "gpt-4.1-2025-04-14",
+              "gpt-4.1-mini-2025-04-14",
+              "gpt-4.1-nano-2025-04-14",
+              "gpt-4.1",
+              "gpt-4.1-mini",
+              "gpt-4.1-nano",
+              "chatgpt-4o-latest",
+              "o3",
+              "o3-mini",
+              "o4-mini",
+              "o1-mini",
+              "o1-mini-2024-09-12",
+              "gpt-4o-realtime-preview-2024-10-01",
+              "gpt-4o-realtime-preview-2024-12-17",
+              "gpt-4o-mini-realtime-preview-2024-12-17",
+              "gpt-realtime-2025-08-28",
+              "gpt-realtime-mini-2025-12-15",
+              "gpt-4o-mini-2024-07-18",
+              "gpt-4o-mini",
+              "gpt-4o",
+              "gpt-4o-2024-05-13",
+              "gpt-4o-2024-08-06",
+              "gpt-4o-2024-11-20",
+              "gpt-4-turbo",
+              "gpt-4-turbo-2024-04-09",
+              "gpt-4-turbo-preview",
+              "gpt-4-0125-preview",
+              "gpt-4-1106-preview",
+              "gpt-4",
+              "gpt-4-0613",
+              "gpt-3.5-turbo",
+              "gpt-3.5-turbo-0125",
+              "gpt-3.5-turbo-1106",
+              "gpt-3.5-turbo-16k",
+              "gpt-3.5-turbo-0613",
+              "gpt-4.1-2025-04-14:westus",
+              "gpt-4.1-2025-04-14:eastus2",
+              "gpt-4.1-2025-04-14:eastus",
+              "gpt-4.1-2025-04-14:westus3",
+              "gpt-4.1-2025-04-14:northcentralus",
+              "gpt-4.1-2025-04-14:southcentralus",
+              "gpt-4.1-2025-04-14:westeurope",
+              "gpt-4.1-2025-04-14:germanywestcentral",
+              "gpt-4.1-2025-04-14:polandcentral",
+              "gpt-4.1-2025-04-14:spaincentral",
+              "gpt-4.1-mini-2025-04-14:westus",
+              "gpt-4.1-mini-2025-04-14:eastus2",
+              "gpt-4.1-mini-2025-04-14:eastus",
+              "gpt-4.1-mini-2025-04-14:westus3",
+              "gpt-4.1-mini-2025-04-14:northcentralus",
+              "gpt-4.1-mini-2025-04-14:southcentralus",
+              "gpt-4.1-mini-2025-04-14:westeurope",
+              "gpt-4.1-mini-2025-04-14:germanywestcentral",
+              "gpt-4.1-mini-2025-04-14:polandcentral",
+              "gpt-4.1-mini-2025-04-14:spaincentral",
+              "gpt-4.1-nano-2025-04-14:westus",
+              "gpt-4.1-nano-2025-04-14:eastus2",
+              "gpt-4.1-nano-2025-04-14:westus3",
+              "gpt-4.1-nano-2025-04-14:northcentralus",
+              "gpt-4.1-nano-2025-04-14:southcentralus",
+              "gpt-4o-2024-11-20:swedencentral",
+              "gpt-4o-2024-11-20:westus",
+              "gpt-4o-2024-11-20:eastus2",
+              "gpt-4o-2024-11-20:eastus",
+              "gpt-4o-2024-11-20:westus3",
+              "gpt-4o-2024-11-20:southcentralus",
+              "gpt-4o-2024-11-20:westeurope",
+              "gpt-4o-2024-11-20:germanywestcentral",
+              "gpt-4o-2024-11-20:polandcentral",
+              "gpt-4o-2024-11-20:spaincentral",
+              "gpt-4o-2024-08-06:westus",
+              "gpt-4o-2024-08-06:westus3",
+              "gpt-4o-2024-08-06:eastus",
+              "gpt-4o-2024-08-06:eastus2",
+              "gpt-4o-2024-08-06:northcentralus",
+              "gpt-4o-2024-08-06:southcentralus",
+              "gpt-4o-mini-2024-07-18:westus",
+              "gpt-4o-mini-2024-07-18:westus3",
+              "gpt-4o-mini-2024-07-18:eastus",
+              "gpt-4o-mini-2024-07-18:eastus2",
+              "gpt-4o-mini-2024-07-18:northcentralus",
+              "gpt-4o-mini-2024-07-18:southcentralus",
+              "gpt-4o-2024-05-13:eastus2",
+              "gpt-4o-2024-05-13:eastus",
+              "gpt-4o-2024-05-13:northcentralus",
+              "gpt-4o-2024-05-13:southcentralus",
+              "gpt-4o-2024-05-13:westus3",
+              "gpt-4o-2024-05-13:westus",
+              "gpt-4-turbo-2024-04-09:eastus2",
+              "gpt-4-0125-preview:eastus",
+              "gpt-4-0125-preview:northcentralus",
+              "gpt-4-0125-preview:southcentralus",
+              "gpt-4-1106-preview:australiaeast",
+              "gpt-4-1106-preview:canadaeast",
+              "gpt-4-1106-preview:france",
+              "gpt-4-1106-preview:india",
+              "gpt-4-1106-preview:norway",
+              "gpt-4-1106-preview:swedencentral",
+              "gpt-4-1106-preview:uk",
+              "gpt-4-1106-preview:westus",
+              "gpt-4-1106-preview:westus3",
+              "gpt-4-0613:canadaeast",
+              "gpt-3.5-turbo-0125:canadaeast",
+              "gpt-3.5-turbo-0125:northcentralus",
+              "gpt-3.5-turbo-0125:southcentralus",
+              "gpt-3.5-turbo-1106:canadaeast",
+              "gpt-3.5-turbo-1106:westus"
+            ]
+          },
+          "fallbackModels": {
+            "type": "array",
+            "description": "These are the fallback models that will be used if the primary model fails. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest fallbacks that make sense.",
+            "example": [
+              "gpt-4-0125-preview",
+              "gpt-4-0613"
+            ],
+            "items": {
+              "type": "string",
+              "enum": [
+                "gpt-5.4",
+                "gpt-5.4-mini",
+                "gpt-5.4-nano",
+                "gpt-5.2",
+                "gpt-5.2-chat-latest",
+                "gpt-5.1",
+                "gpt-5.1-chat-latest",
+                "gpt-5",
+                "gpt-5-chat-latest",
+                "gpt-5-mini",
+                "gpt-5-nano",
+                "gpt-4.1-2025-04-14",
+                "gpt-4.1-mini-2025-04-14",
+                "gpt-4.1-nano-2025-04-14",
+                "gpt-4.1",
+                "gpt-4.1-mini",
+                "gpt-4.1-nano",
+                "chatgpt-4o-latest",
+                "o3",
+                "o3-mini",
+                "o4-mini",
+                "o1-mini",
+                "o1-mini-2024-09-12",
+                "gpt-4o-realtime-preview-2024-10-01",
+                "gpt-4o-realtime-preview-2024-12-17",
+                "gpt-4o-mini-realtime-preview-2024-12-17",
+                "gpt-realtime-2025-08-28",
+                "gpt-realtime-mini-2025-12-15",
+                "gpt-4o-mini-2024-07-18",
+                "gpt-4o-mini",
+                "gpt-4o",
+                "gpt-4o-2024-05-13",
+                "gpt-4o-2024-08-06",
+                "gpt-4o-2024-11-20",
+                "gpt-4-turbo",
+                "gpt-4-turbo-2024-04-09",
+                "gpt-4-turbo-preview",
+                "gpt-4-0125-preview",
+                "gpt-4-1106-preview",
+                "gpt-4",
+                "gpt-4-0613",
+                "gpt-3.5-turbo",
+                "gpt-3.5-turbo-0125",
+                "gpt-3.5-turbo-1106",
+                "gpt-3.5-turbo-16k",
+                "gpt-3.5-turbo-0613",
+                "gpt-4.1-2025-04-14:westus",
+                "gpt-4.1-2025-04-14:eastus2",
+                "gpt-4.1-2025-04-14:eastus",
+                "gpt-4.1-2025-04-14:westus3",
+                "gpt-4.1-2025-04-14:northcentralus",
+                "gpt-4.1-2025-04-14:southcentralus",
+                "gpt-4.1-2025-04-14:westeurope",
+                "gpt-4.1-2025-04-14:germanywestcentral",
+                "gpt-4.1-2025-04-14:polandcentral",
+                "gpt-4.1-2025-04-14:spaincentral",
+                "gpt-4.1-mini-2025-04-14:westus",
+                "gpt-4.1-mini-2025-04-14:eastus2",
+                "gpt-4.1-mini-2025-04-14:eastus",
+                "gpt-4.1-mini-2025-04-14:westus3",
+                "gpt-4.1-mini-2025-04-14:northcentralus",
+                "gpt-4.1-mini-2025-04-14:southcentralus",
+                "gpt-4.1-mini-2025-04-14:westeurope",
+                "gpt-4.1-mini-2025-04-14:germanywestcentral",
+                "gpt-4.1-mini-2025-04-14:polandcentral",
+                "gpt-4.1-mini-2025-04-14:spaincentral",
+                "gpt-4.1-nano-2025-04-14:westus",
+                "gpt-4.1-nano-2025-04-14:eastus2",
+                "gpt-4.1-nano-2025-04-14:westus3",
+                "gpt-4.1-nano-2025-04-14:northcentralus",
+                "gpt-4.1-nano-2025-04-14:southcentralus",
+                "gpt-4o-2024-11-20:swedencentral",
+                "gpt-4o-2024-11-20:westus",
+                "gpt-4o-2024-11-20:eastus2",
+                "gpt-4o-2024-11-20:eastus",
+                "gpt-4o-2024-11-20:westus3",
+                "gpt-4o-2024-11-20:southcentralus",
+                "gpt-4o-2024-11-20:westeurope",
+                "gpt-4o-2024-11-20:germanywestcentral",
+                "gpt-4o-2024-11-20:polandcentral",
+                "gpt-4o-2024-11-20:spaincentral",
+                "gpt-4o-2024-08-06:westus",
+                "gpt-4o-2024-08-06:westus3",
+                "gpt-4o-2024-08-06:eastus",
+                "gpt-4o-2024-08-06:eastus2",
+                "gpt-4o-2024-08-06:northcentralus",
+                "gpt-4o-2024-08-06:southcentralus",
+                "gpt-4o-mini-2024-07-18:westus",
+                "gpt-4o-mini-2024-07-18:westus3",
+                "gpt-4o-mini-2024-07-18:eastus",
+                "gpt-4o-mini-2024-07-18:eastus2",
+                "gpt-4o-mini-2024-07-18:northcentralus",
+                "gpt-4o-mini-2024-07-18:southcentralus",
+                "gpt-4o-2024-05-13:eastus2",
+                "gpt-4o-2024-05-13:eastus",
+                "gpt-4o-2024-05-13:northcentralus",
+                "gpt-4o-2024-05-13:southcentralus",
+                "gpt-4o-2024-05-13:westus3",
+                "gpt-4o-2024-05-13:westus",
+                "gpt-4-turbo-2024-04-09:eastus2",
+                "gpt-4-0125-preview:eastus",
+                "gpt-4-0125-preview:northcentralus",
+                "gpt-4-0125-preview:southcentralus",
+                "gpt-4-1106-preview:australiaeast",
+                "gpt-4-1106-preview:canadaeast",
+                "gpt-4-1106-preview:france",
+                "gpt-4-1106-preview:india",
+                "gpt-4-1106-preview:norway",
+                "gpt-4-1106-preview:swedencentral",
+                "gpt-4-1106-preview:uk",
+                "gpt-4-1106-preview:westus",
+                "gpt-4-1106-preview:westus3",
+                "gpt-4-0613:canadaeast",
+                "gpt-3.5-turbo-0125:canadaeast",
+                "gpt-3.5-turbo-0125:northcentralus",
+                "gpt-3.5-turbo-0125:southcentralus",
+                "gpt-3.5-turbo-1106:canadaeast",
+                "gpt-3.5-turbo-1106:westus"
+              ]
+            }
+          },
+          "toolStrictCompatibilityMode": {
+            "type": "string",
+            "description": "Azure OpenAI doesn't support `maxLength` right now https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/structured-outputs?tabs=python-secure%2Cdotnet-entra-id&pivots=programming-language-csharp#unsupported-type-specific-keywords. Need to strip.\n\n- `strip-parameters-with-unsupported-validation` will strip parameters with unsupported validation.\n- `strip-unsupported-validation` will keep the parameters but strip unsupported validation.\n\n@default `strip-unsupported-validation`",
+            "enum": [
+              "strip-parameters-with-unsupported-validation",
+              "strip-unsupported-validation"
+            ]
+          },
+          "promptCacheRetention": {
+            "type": "string",
+            "description": "This controls the prompt cache retention policy for models that support extended caching (GPT-4.1, GPT-5 series).\n\n- `in_memory`: Default behavior, cache retained in GPU memory only\n- `24h`: Extended caching, keeps cached prefixes active for up to 24 hours by offloading to GPU-local storage\n\nOnly applies to models: gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5.2, gpt-5.1, gpt-5.1-codex, gpt-5.1-codex-mini, gpt-5.1-chat-latest, gpt-5, gpt-5-codex, gpt-4.1\n\n@default undefined (uses API default which is 'in_memory')",
+            "enum": [
+              "in_memory",
+              "24h"
+            ]
+          },
+          "promptCacheKey": {
+            "type": "string",
+            "description": "This is the prompt cache key for models that support extended caching (GPT-4.1, GPT-5 series).\n\nProviding a cache key allows you to share cached prefixes across requests.\n\n@default undefined",
+            "maxLength": 64
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "OpenRouterModel": {
+        "type": "object",
+        "properties": {
           "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "tools": {
             "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/UserMessage",
-                  "title": "UserMessage"
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
                 },
                 {
-                  "$ref": "#/components/schemas/SystemMessage",
-                  "title": "SystemMessage"
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
                 },
                 {
-                  "$ref": "#/components/schemas/BotMessage",
-                  "title": "BotMessage"
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolCallMessage",
-                  "title": "ToolCallMessage"
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolCallResultMessage",
-                  "title": "ToolCallResultMessage"
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
                 }
               ]
             }
           },
-          "phoneCallProvider": {
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
+            ]
+          },
+          "provider": {
             "type": "string",
-            "description": "This is the provider of the call.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
             "enum": [
-              "twilio",
-              "vonage",
-              "vapi",
-              "telnyx"
+              "openrouter"
             ]
           },
-          "phoneCallTransport": {
+          "model": {
             "type": "string",
-            "description": "This is the transport of the phone call.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
-            "enum": [
-              "sip",
-              "pstn"
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "PerplexityAIModel": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
+          },
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
             ]
           },
-          "status": {
+          "provider": {
             "type": "string",
-            "description": "This is the status of the call.",
             "enum": [
-              "scheduled",
-              "queued",
-              "ringing",
-              "in-progress",
-              "forwarding",
-              "ended"
+              "perplexity-ai"
             ]
           },
-          "endedReason": {
+          "model": {
             "type": "string",
-            "description": "This is the explanation for how the call ended.",
-            "enum": [
-              "call-start-error-neither-assistant-nor-server-set",
-              "assistant-request-failed",
-              "assistant-request-returned-error",
-              "assistant-request-returned-unspeakable-error",
-              "assistant-request-returned-invalid-assistant",
-              "assistant-request-returned-no-assistant",
-              "assistant-request-returned-forwarding-phone-number",
-              "call.start.error-get-org",
-              "call.start.error-get-subscription",
-              "call.start.error-get-assistant",
-              "call.start.error-get-phone-number",
-              "call.start.error-get-customer",
-              "call.start.error-get-resources-validation",
-              "call.start.error-vapi-number-international",
-              "call.start.error-vapi-number-outbound-daily-limit",
-              "call.start.error-get-transport",
-              "assistant-not-valid",
-              "database-error",
-              "assistant-not-found",
-              "pipeline-error-openai-voice-failed",
-              "pipeline-error-cartesia-voice-failed",
-              "pipeline-error-deepgram-voice-failed",
-              "pipeline-error-eleven-labs-voice-failed",
-              "pipeline-error-playht-voice-failed",
-              "pipeline-error-lmnt-voice-failed",
-              "pipeline-error-azure-voice-failed",
-              "pipeline-error-rime-ai-voice-failed",
-              "pipeline-error-smallest-ai-voice-failed",
-              "pipeline-error-neuphonic-voice-failed",
-              "pipeline-error-hume-voice-failed",
-              "pipeline-error-sesame-voice-failed",
-              "pipeline-error-tavus-video-failed",
-              "call.in-progress.error-vapifault-openai-voice-failed",
-              "call.in-progress.error-vapifault-cartesia-voice-failed",
-              "call.in-progress.error-vapifault-deepgram-voice-failed",
-              "call.in-progress.error-vapifault-eleven-labs-voice-failed",
-              "call.in-progress.error-vapifault-playht-voice-failed",
-              "call.in-progress.error-vapifault-lmnt-voice-failed",
-              "call.in-progress.error-vapifault-azure-voice-failed",
-              "call.in-progress.error-vapifault-rime-ai-voice-failed",
-              "call.in-progress.error-vapifault-smallest-ai-voice-failed",
-              "call.in-progress.error-vapifault-neuphonic-voice-failed",
-              "call.in-progress.error-vapifault-hume-voice-failed",
-              "call.in-progress.error-vapifault-sesame-voice-failed",
-              "call.in-progress.error-vapifault-tavus-video-failed",
-              "pipeline-error-vapi-llm-failed",
-              "pipeline-error-vapi-400-bad-request-validation-failed",
-              "pipeline-error-vapi-401-unauthorized",
-              "pipeline-error-vapi-403-model-access-denied",
-              "pipeline-error-vapi-429-exceeded-quota",
-              "pipeline-error-vapi-500-server-error",
-              "pipeline-error-vapi-503-server-overloaded-error",
-              "call.in-progress.error-vapifault-vapi-llm-failed",
-              "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed",
-              "call.in-progress.error-vapifault-vapi-401-unauthorized",
-              "call.in-progress.error-vapifault-vapi-403-model-access-denied",
-              "call.in-progress.error-vapifault-vapi-429-exceeded-quota",
-              "call.in-progress.error-providerfault-vapi-500-server-error",
-              "call.in-progress.error-providerfault-vapi-503-server-overloaded-error",
-              "pipeline-error-deepgram-transcriber-failed",
-              "call.in-progress.error-vapifault-deepgram-transcriber-failed",
-              "pipeline-error-gladia-transcriber-failed",
-              "call.in-progress.error-vapifault-gladia-transcriber-failed",
-              "pipeline-error-speechmatics-transcriber-failed",
-              "call.in-progress.error-vapifault-speechmatics-transcriber-failed",
-              "pipeline-error-assembly-ai-transcriber-failed",
-              "pipeline-error-assembly-ai-returning-400-insufficent-funds",
-              "pipeline-error-assembly-ai-returning-400-paid-only-feature",
-              "pipeline-error-assembly-ai-returning-401-invalid-credentials",
-              "pipeline-error-assembly-ai-returning-500-invalid-schema",
-              "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed",
-              "call.in-progress.error-vapifault-assembly-ai-transcriber-failed",
-              "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds",
-              "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature",
-              "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials",
-              "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema",
-              "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed",
-              "pipeline-error-talkscriber-transcriber-failed",
-              "call.in-progress.error-vapifault-talkscriber-transcriber-failed",
-              "pipeline-error-azure-speech-transcriber-failed",
-              "call.in-progress.error-vapifault-azure-speech-transcriber-failed",
-              "call.in-progress.error-pipeline-no-available-llm-model",
-              "worker-shutdown",
-              "unknown-error",
-              "vonage-disconnected",
-              "vonage-failed-to-connect-call",
-              "vonage-completed",
-              "phone-call-provider-bypass-enabled-but-no-call-received",
-              "call.in-progress.error-providerfault-transport-never-connected",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "TogetherAIModel": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
+          },
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
+            ]
+          },
+          "provider": {
+            "type": "string",
+            "enum": [
+              "together-ai"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "HangupNode": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "hangup"
+            ]
+          },
+          "name": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "isStart": {
+            "type": "boolean",
+            "description": "This is whether or not the node is the start of the workflow."
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is for metadata you want to store on the task."
+          }
+        },
+        "required": [
+          "type",
+          "name"
+        ]
+      },
+      "WorkflowOpenAIModel": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model (`openai`).",
+            "enum": [
+              "openai"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the OpenAI model that will be used.\n\nWhen using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.\nThis is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.",
+            "maxLength": 100,
+            "enum": [
+              "gpt-5.4",
+              "gpt-5.4-mini",
+              "gpt-5.4-nano",
+              "gpt-5.2",
+              "gpt-5.2-chat-latest",
+              "gpt-5.1",
+              "gpt-5.1-chat-latest",
+              "gpt-5",
+              "gpt-5-chat-latest",
+              "gpt-5-mini",
+              "gpt-5-nano",
+              "gpt-4.1-2025-04-14",
+              "gpt-4.1-mini-2025-04-14",
+              "gpt-4.1-nano-2025-04-14",
+              "gpt-4.1",
+              "gpt-4.1-mini",
+              "gpt-4.1-nano",
+              "chatgpt-4o-latest",
+              "o3",
+              "o3-mini",
+              "o4-mini",
+              "o1-mini",
+              "o1-mini-2024-09-12",
+              "gpt-4o-mini-2024-07-18",
+              "gpt-4o-mini",
+              "gpt-4o",
+              "gpt-4o-2024-05-13",
+              "gpt-4o-2024-08-06",
+              "gpt-4o-2024-11-20",
+              "gpt-4-turbo",
+              "gpt-4-turbo-2024-04-09",
+              "gpt-4-turbo-preview",
+              "gpt-4-0125-preview",
+              "gpt-4-1106-preview",
+              "gpt-4",
+              "gpt-4-0613",
+              "gpt-3.5-turbo",
+              "gpt-3.5-turbo-0125",
+              "gpt-3.5-turbo-1106",
+              "gpt-3.5-turbo-16k",
+              "gpt-3.5-turbo-0613",
+              "gpt-4.1-2025-04-14:westus",
+              "gpt-4.1-2025-04-14:eastus2",
+              "gpt-4.1-2025-04-14:eastus",
+              "gpt-4.1-2025-04-14:westus3",
+              "gpt-4.1-2025-04-14:northcentralus",
+              "gpt-4.1-2025-04-14:southcentralus",
+              "gpt-4.1-2025-04-14:westeurope",
+              "gpt-4.1-2025-04-14:germanywestcentral",
+              "gpt-4.1-2025-04-14:polandcentral",
+              "gpt-4.1-2025-04-14:spaincentral",
+              "gpt-4.1-mini-2025-04-14:westus",
+              "gpt-4.1-mini-2025-04-14:eastus2",
+              "gpt-4.1-mini-2025-04-14:eastus",
+              "gpt-4.1-mini-2025-04-14:westus3",
+              "gpt-4.1-mini-2025-04-14:northcentralus",
+              "gpt-4.1-mini-2025-04-14:southcentralus",
+              "gpt-4.1-mini-2025-04-14:westeurope",
+              "gpt-4.1-mini-2025-04-14:germanywestcentral",
+              "gpt-4.1-mini-2025-04-14:polandcentral",
+              "gpt-4.1-mini-2025-04-14:spaincentral",
+              "gpt-4.1-nano-2025-04-14:westus",
+              "gpt-4.1-nano-2025-04-14:eastus2",
+              "gpt-4.1-nano-2025-04-14:westus3",
+              "gpt-4.1-nano-2025-04-14:northcentralus",
+              "gpt-4.1-nano-2025-04-14:southcentralus",
+              "gpt-4o-2024-11-20:swedencentral",
+              "gpt-4o-2024-11-20:westus",
+              "gpt-4o-2024-11-20:eastus2",
+              "gpt-4o-2024-11-20:eastus",
+              "gpt-4o-2024-11-20:westus3",
+              "gpt-4o-2024-11-20:southcentralus",
+              "gpt-4o-2024-11-20:westeurope",
+              "gpt-4o-2024-11-20:germanywestcentral",
+              "gpt-4o-2024-11-20:polandcentral",
+              "gpt-4o-2024-11-20:spaincentral",
+              "gpt-4o-2024-08-06:westus",
+              "gpt-4o-2024-08-06:westus3",
+              "gpt-4o-2024-08-06:eastus",
+              "gpt-4o-2024-08-06:eastus2",
+              "gpt-4o-2024-08-06:northcentralus",
+              "gpt-4o-2024-08-06:southcentralus",
+              "gpt-4o-mini-2024-07-18:westus",
+              "gpt-4o-mini-2024-07-18:westus3",
+              "gpt-4o-mini-2024-07-18:eastus",
+              "gpt-4o-mini-2024-07-18:eastus2",
+              "gpt-4o-mini-2024-07-18:northcentralus",
+              "gpt-4o-mini-2024-07-18:southcentralus",
+              "gpt-4o-2024-05-13:eastus2",
+              "gpt-4o-2024-05-13:eastus",
+              "gpt-4o-2024-05-13:northcentralus",
+              "gpt-4o-2024-05-13:southcentralus",
+              "gpt-4o-2024-05-13:westus3",
+              "gpt-4o-2024-05-13:westus",
+              "gpt-4-turbo-2024-04-09:eastus2",
+              "gpt-4-0125-preview:eastus",
+              "gpt-4-0125-preview:northcentralus",
+              "gpt-4-0125-preview:southcentralus",
+              "gpt-4-1106-preview:australiaeast",
+              "gpt-4-1106-preview:canadaeast",
+              "gpt-4-1106-preview:france",
+              "gpt-4-1106-preview:india",
+              "gpt-4-1106-preview:norway",
+              "gpt-4-1106-preview:swedencentral",
+              "gpt-4-1106-preview:uk",
+              "gpt-4-1106-preview:westus",
+              "gpt-4-1106-preview:westus3",
+              "gpt-4-0613:canadaeast",
+              "gpt-3.5-turbo-0125:canadaeast",
+              "gpt-3.5-turbo-0125:northcentralus",
+              "gpt-3.5-turbo-0125:southcentralus",
+              "gpt-3.5-turbo-1106:canadaeast",
+              "gpt-3.5-turbo-1106:westus"
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.",
+            "minimum": 50,
+            "maximum": 10000
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "WorkflowAnthropicModel": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model (`anthropic`).",
+            "enum": [
+              "anthropic"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the specific model that will be used.",
+            "maxLength": 100,
+            "enum": [
+              "claude-3-opus-20240229",
+              "claude-3-sonnet-20240229",
+              "claude-3-haiku-20240307",
+              "claude-3-5-sonnet-20240620",
+              "claude-3-5-sonnet-20241022",
+              "claude-3-5-haiku-20241022",
+              "claude-3-7-sonnet-20250219",
+              "claude-opus-4-20250514",
+              "claude-opus-4-5-20251101",
+              "claude-opus-4-6",
+              "claude-sonnet-4-20250514",
+              "claude-sonnet-4-5-20250929",
+              "claude-sonnet-4-6",
+              "claude-haiku-4-5-20251001"
+            ]
+          },
+          "thinking": {
+            "description": "This is the optional configuration for Anthropic's thinking feature.\n\n- If provided, `maxTokens` must be greater than `thinking.budgetTokens`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnthropicThinkingConfig"
+              }
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.",
+            "minimum": 50,
+            "maximum": 10000
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "WorkflowAnthropicBedrockModel": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model (`anthropic-bedrock`).",
+            "enum": [
+              "anthropic-bedrock"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the specific model that will be used.",
+            "maxLength": 100,
+            "enum": [
+              "claude-3-opus-20240229",
+              "claude-3-sonnet-20240229",
+              "claude-3-haiku-20240307",
+              "claude-3-5-sonnet-20240620",
+              "claude-3-5-sonnet-20241022",
+              "claude-3-5-haiku-20241022",
+              "claude-3-7-sonnet-20250219",
+              "claude-opus-4-20250514",
+              "claude-opus-4-5-20251101",
+              "claude-opus-4-6",
+              "claude-sonnet-4-20250514",
+              "claude-sonnet-4-5-20250929",
+              "claude-sonnet-4-6",
+              "claude-haiku-4-5-20251001"
+            ]
+          },
+          "thinking": {
+            "description": "This is the optional configuration for Anthropic's thinking feature.\n\n- If provided, `maxTokens` must be greater than `thinking.budgetTokens`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnthropicThinkingConfig"
+              }
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.",
+            "minimum": 50,
+            "maximum": 10000
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "WorkflowGoogleModel": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model (`google`).",
+            "enum": [
+              "google"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "maxLength": 100,
+            "enum": [
+              "gemini-3-flash-preview",
+              "gemini-2.5-pro",
+              "gemini-2.5-flash",
+              "gemini-2.5-flash-lite",
+              "gemini-2.0-flash-thinking-exp",
+              "gemini-2.0-pro-exp-02-05",
+              "gemini-2.0-flash",
+              "gemini-2.0-flash-lite",
+              "gemini-2.0-flash-exp",
+              "gemini-2.0-flash-realtime-exp",
+              "gemini-1.5-flash",
+              "gemini-1.5-flash-002",
+              "gemini-1.5-pro",
+              "gemini-1.5-pro-002",
+              "gemini-1.0-pro"
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.",
+            "minimum": 50,
+            "maximum": 10000
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "WorkflowCustomModel": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model (`custom-llm`).",
+            "enum": [
+              "custom-llm"
+            ]
+          },
+          "metadataSendMode": {
+            "type": "string",
+            "description": "This determines whether metadata is sent in requests to the custom provider.\n\n- `off` will not send any metadata. payload will look like `{ messages }`\n- `variable` will send `assistant.metadata` as a variable on the payload. payload will look like `{ messages, metadata }`\n- `destructured` will send `assistant.metadata` fields directly on the payload. payload will look like `{ messages, ...metadata }`\n\nFurther, `variable` and `destructured` will send `call`, `phoneNumber`, and `customer` objects in the payload.\n\nDefault is `variable`.",
+            "enum": [
+              "off",
+              "variable",
+              "destructured"
+            ]
+          },
+          "url": {
+            "type": "string",
+            "description": "These is the URL we'll use for the OpenAI client's `baseURL`. Ex. https://openrouter.ai/api/v1"
+          },
+          "headers": {
+            "type": "object",
+            "description": "These are the headers we'll use for the OpenAI client's `headers`."
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This sets the timeout for the connection to the custom provider without needing to stream any tokens back. Default is 20 seconds.",
+            "minimum": 20,
+            "maximum": 600
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "maxLength": 100
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.",
+            "minimum": 50,
+            "maximum": 10000
+          }
+        },
+        "required": [
+          "provider",
+          "url",
+          "model"
+        ]
+      },
+      "GlobalNodePlan": {
+        "type": "object",
+        "properties": {
+          "enabled": {
+            "type": "boolean",
+            "description": "This is the flag to determine if this node is a global node\n\n@default false",
+            "default": false
+          },
+          "enterCondition": {
+            "type": "string",
+            "description": "This is the condition that will be checked to determine if the global node should be executed.\n\n@default ''",
+            "maxLength": 1000,
+            "default": ""
+          }
+        }
+      },
+      "ConversationNode": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the Conversation node. This can be used to start a conversation with the customer.\n\nThe flow is:\n- Workflow starts the conversation node\n- Model is active with the `prompt` and global context.\n- Model will call a tool to exit this node.\n- Workflow will extract variables from the conversation.\n- Workflow continues.",
+            "enum": [
+              "conversation"
+            ]
+          },
+          "model": {
+            "description": "This is the model for the node.\n\nThis overrides `workflow.model`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOpenAIModel",
+                "title": "WorkflowOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicModel",
+                "title": "WorkflowAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel",
+                "title": "WorkflowAnthropicBedrockModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowGoogleModel",
+                "title": "WorkflowGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowCustomModel",
+                "title": "WorkflowCustomModel"
+              }
+            ]
+          },
+          "transcriber": {
+            "description": "This is the transcriber for the node.\n\nThis overrides `workflow.transcriber`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "voice": {
+            "description": "This is the voice for the node.\n\nThis overrides `workflow.voice`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the conversation node can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
+          },
+          "toolIds": {
+            "description": "These are the tools that the conversation node can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "prompt": {
+            "type": "string",
+            "maxLength": 5000
+          },
+          "globalNodePlan": {
+            "description": "This is the plan for the global node.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/GlobalNodePlan"
+              }
+            ]
+          },
+          "variableExtractionPlan": {
+            "description": "This is the plan that controls the variable extraction from the user's responses.\n\nUsage:\nUse `schema` to specify what you want to extract from the user's responses.\n```json\n{\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"user\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"name\": {\n            \"type\": \"string\"\n          },\n          \"age\": {\n            \"type\": \"number\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\nThis will be extracted as `{{ user.name }}` and `{{ user.age }}` respectively.\n\n(Optional) Use `aliases` to create new variables.\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"userAge\",\n      \"value\": \"{{user.age}}\"\n    },\n    {\n      \"key\": \"userName\",\n      \"value\": \"{{user.name}}\"\n    }\n  ]\n}\n```\n\nThis will be extracted as `{{ userAge }}` and `{{ userName }}` respectively.\n\nNote: The `schema` field is required for Conversation nodes if you want to extract variables from the user's responses. `aliases` is just a convenience.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VariableExtractionPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "isStart": {
+            "type": "boolean",
+            "description": "This is whether or not the node is the start of the workflow."
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is for metadata you want to store on the task."
+          }
+        },
+        "required": [
+          "type",
+          "name"
+        ]
+      },
+      "ToolNode": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the Tool node. This can be used to call a tool in your workflow.\n\nThe flow is:\n- Workflow starts the tool node\n- Model is called to extract parameters needed by the tool from the conversation history\n- Tool is called with the parameters\n- Server returns a response\n- Workflow continues with the response",
+            "enum": [
+              "tool"
+            ]
+          },
+          "tool": {
+            "description": "This is the tool to call. To use an existing tool, send `toolId` instead.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                "title": "ApiRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateBashToolDTO",
+                "title": "BashTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateCodeToolDTO",
+                "title": "CodeTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateComputerToolDTO",
+                "title": "ComputerTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                "title": "DtmfTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                "title": "EndCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                "title": "FunctionTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                "title": "GoHighLevelCalendarAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                "title": "GoHighLevelCalendarEventCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                "title": "GoHighLevelContactCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                "title": "GoHighLevelContactGetTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                "title": "GoogleCalendarCheckAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                "title": "GoogleCalendarCreateEventTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                "title": "GoogleSheetsRowAppendTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                "title": "HandoffTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateMcpToolDTO",
+                "title": "McpTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateQueryToolDTO",
+                "title": "QueryTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                "title": "SlackSendMessageTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSmsToolDTO",
+                "title": "SmsTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                "title": "TextEditorTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                "title": "TransferCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                "title": "SipRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                "title": "VoicemailTool"
+              }
+            ]
+          },
+          "toolId": {
+            "type": "string",
+            "description": "This is the tool to call. To use a transient tool, send `tool` instead."
+          },
+          "name": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "isStart": {
+            "type": "boolean",
+            "description": "This is whether or not the node is the start of the workflow."
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is for metadata you want to store on the task."
+          }
+        },
+        "required": [
+          "type",
+          "name"
+        ]
+      },
+      "VoicemailDetectionBackoffPlan": {
+        "type": "object",
+        "properties": {
+          "startAtSeconds": {
+            "type": "number",
+            "description": "This is the number of seconds to wait before starting the first retry attempt.",
+            "minimum": 0,
+            "default": 5
+          },
+          "frequencySeconds": {
+            "type": "number",
+            "description": "This is the interval in seconds between retry attempts.",
+            "minimum": 2.5,
+            "default": 5
+          },
+          "maxRetries": {
+            "type": "number",
+            "description": "This is the maximum number of retry attempts before giving up.",
+            "minimum": 1,
+            "maximum": 10,
+            "default": 6
+          }
+        }
+      },
+      "GoogleVoicemailDetectionPlan": {
+        "type": "object",
+        "properties": {
+          "beepMaxAwaitSeconds": {
+            "type": "number",
+            "description": "This is the maximum duration from the start of the call that we will wait for a voicemail beep, before speaking our message\n\n- If we detect a voicemail beep before this, we will speak the message at that point.\n\n- Setting too low a value means that the bot will start speaking its voicemail message too early. If it does so before the actual beep, it will get cut off. You should definitely tune this to your use case.\n\n@default 30\n@min 0\n@max 60",
+            "minimum": 0,
+            "maximum": 30,
+            "default": 30
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the provider to use for voicemail detection.",
+            "enum": [
+              "google"
+            ]
+          },
+          "backoffPlan": {
+            "description": "This is the backoff plan for the voicemail detection.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VoicemailDetectionBackoffPlan"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the detection type to use for voicemail detection.\n- 'audio': Uses native audio models (default)\n- 'transcript': Uses ASR/transcript-based detection\n@default 'audio' (audio detection)",
+            "enum": [
+              "audio",
+              "transcript"
+            ]
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "OpenAIVoicemailDetectionPlan": {
+        "type": "object",
+        "properties": {
+          "beepMaxAwaitSeconds": {
+            "type": "number",
+            "description": "This is the maximum duration from the start of the call that we will wait for a voicemail beep, before speaking our message\n\n- If we detect a voicemail beep before this, we will speak the message at that point.\n\n- Setting too low a value means that the bot will start speaking its voicemail message too early. If it does so before the actual beep, it will get cut off. You should definitely tune this to your use case.\n\n@default 30\n@min 0\n@max 60",
+            "minimum": 0,
+            "maximum": 30,
+            "default": 30
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the provider to use for voicemail detection.",
+            "enum": [
+              "openai"
+            ]
+          },
+          "backoffPlan": {
+            "description": "This is the backoff plan for the voicemail detection.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VoicemailDetectionBackoffPlan"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the detection type to use for voicemail detection.\n- 'audio': Uses native audio models (default)\n- 'transcript': Uses ASR/transcript-based detection\n@default 'audio' (audio detection)",
+            "enum": [
+              "audio",
+              "transcript"
+            ]
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "TwilioVoicemailDetectionPlan": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the provider to use for voicemail detection.",
+            "enum": [
+              "twilio"
+            ]
+          },
+          "voicemailDetectionTypes": {
+            "type": "array",
+            "description": "These are the AMD messages from Twilio that are considered as voicemail. Default is ['machine_end_beep', 'machine_end_silence'].\n\n@default {Array} ['machine_end_beep', 'machine_end_silence']",
+            "enum": [
+              "machine_start",
+              "human",
+              "fax",
+              "unknown",
+              "machine_end_beep",
+              "machine_end_silence",
+              "machine_end_other"
+            ],
+            "example": [
+              "machine_end_beep",
+              "machine_end_silence"
+            ],
+            "items": {
+              "type": "string",
+              "enum": [
+                "machine_start",
+                "human",
+                "fax",
+                "unknown",
+                "machine_end_beep",
+                "machine_end_silence",
+                "machine_end_other"
+              ]
+            }
+          },
+          "enabled": {
+            "type": "boolean",
+            "description": "This sets whether the assistant should detect voicemail. Defaults to true.\n\n@default true"
+          },
+          "machineDetectionTimeout": {
+            "type": "number",
+            "description": "The number of seconds that Twilio should attempt to perform answering machine detection before timing out and returning AnsweredBy as unknown. Default is 30 seconds.\n\nIncreasing this value will provide the engine more time to make a determination. This can be useful when DetectMessageEnd is provided in the MachineDetection parameter and there is an expectation of long answering machine greetings that can exceed 30 seconds.\n\nDecreasing this value will reduce the amount of time the engine has to make a determination. This can be particularly useful when the Enable option is provided in the MachineDetection parameter and you want to limit the time for initial detection.\n\nCheck the [Twilio docs](https://www.twilio.com/docs/voice/answering-machine-detection#optional-api-tuning-parameters) for more info.\n\n@default 30",
+            "minimum": 3,
+            "maximum": 59
+          },
+          "machineDetectionSpeechThreshold": {
+            "type": "number",
+            "description": "The number of milliseconds that is used as the measuring stick for the length of the speech activity. Durations lower than this value will be interpreted as a human, longer as a machine. Default is 2400 milliseconds.\n\nIncreasing this value will reduce the chance of a False Machine (detected machine, actually human) for a long human greeting (e.g., a business greeting) but increase the time it takes to detect a machine.\n\nDecreasing this value will reduce the chances of a False Human (detected human, actually machine) for short voicemail greetings. The value of this parameter may need to be reduced by more than 1000ms to detect very short voicemail greetings. A reduction of that significance can result in increased False Machine detections. Adjusting the MachineDetectionSpeechEndThreshold is likely the better approach for short voicemails. Decreasing MachineDetectionSpeechThreshold will also reduce the time it takes to detect a machine.\n\nCheck the [Twilio docs](https://www.twilio.com/docs/voice/answering-machine-detection#optional-api-tuning-parameters) for more info.\n\n@default 2400",
+            "minimum": 1000,
+            "maximum": 6000
+          },
+          "machineDetectionSpeechEndThreshold": {
+            "type": "number",
+            "description": "The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Default is 1200 milliseconds.\n\nIncreasing this value will typically be used to better address the short voicemail greeting scenarios. For short voicemails, there is typically 1000-2000ms of audio followed by 1200-2400ms of silence and then additional audio before the beep. Increasing the MachineDetectionSpeechEndThreshold to ~2500ms will treat the 1200-2400ms of silence as a gap in the greeting but not the end of the greeting and will result in a machine detection. The downsides of such a change include:\n- Increasing the delay for human detection by the amount you increase this parameter, e.g., a change of 1200ms to 2500ms increases human detection delay by 1300ms.\n- Cases where a human has two utterances separated by a period of silence (e.g. a \"Hello\", then 2000ms of silence, and another \"Hello\") may be interpreted as a machine.\n\nDecreasing this value will result in faster human detection. The consequence is that it can lead to increased False Human (detected human, actually machine) detections because a silence gap in a voicemail greeting (not necessarily just in short voicemail scenarios) can be incorrectly interpreted as the end of speech.\n\nCheck the [Twilio docs](https://www.twilio.com/docs/voice/answering-machine-detection#optional-api-tuning-parameters) for more info.\n\n@default 1200",
+            "minimum": 500,
+            "maximum": 5000
+          },
+          "machineDetectionSilenceTimeout": {
+            "type": "number",
+            "description": "The number of milliseconds of initial silence after which an unknown AnsweredBy result will be returned. Default is 5000 milliseconds.\n\nIncreasing this value will result in waiting for a longer period of initial silence before returning an 'unknown' AMD result.\n\nDecreasing this value will result in waiting for a shorter period of initial silence before returning an 'unknown' AMD result.\n\nCheck the [Twilio docs](https://www.twilio.com/docs/voice/answering-machine-detection#optional-api-tuning-parameters) for more info.\n\n@default 5000",
+            "minimum": 2000,
+            "maximum": 10000
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "VapiVoicemailDetectionPlan": {
+        "type": "object",
+        "properties": {
+          "beepMaxAwaitSeconds": {
+            "type": "number",
+            "description": "This is the maximum duration from the start of the call that we will wait for a voicemail beep, before speaking our message\n\n- If we detect a voicemail beep before this, we will speak the message at that point.\n\n- Setting too low a value means that the bot will start speaking its voicemail message too early. If it does so before the actual beep, it will get cut off. You should definitely tune this to your use case.\n\n@default 30\n@min 0\n@max 60",
+            "minimum": 0,
+            "maximum": 30,
+            "default": 30
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the provider to use for voicemail detection.",
+            "enum": [
+              "vapi"
+            ]
+          },
+          "backoffPlan": {
+            "description": "This is the backoff plan for the voicemail detection.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VoicemailDetectionBackoffPlan"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the detection type to use for voicemail detection.\n- 'audio': Uses native audio models (default)\n- 'transcript': Uses ASR/transcript-based detection\n@default 'audio' (audio detection)",
+            "enum": [
+              "audio",
+              "transcript"
+            ]
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "TransferHookAction": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of action - must be \"transfer\"",
+            "enum": [
+              "transfer"
+            ]
+          },
+          "destination": {
+            "description": "This is the destination details for the transfer - can be a phone number or SIP URI",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "FunctionCallHookAction": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "function"
+            ],
+            "description": "The type of tool. \"function\" for Function tool."
+          },
+          "async": {
+            "type": "boolean",
+            "example": false,
+            "description": "This determines if the tool is async.\n\n  If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\n  If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\n  Defaults to synchronous (`false`)."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "variableExtractionPlan": {
+            "description": "Plan to extract variables from the tool response",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VariableExtractionPlan"
+              }
+            ]
+          },
+          "parameters": {
+            "description": "Static key-value pairs merged into the request body. Values support Liquid templates.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolParameter"
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "function": {
+            "description": "This is the function definition of the tool.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OpenAIFunction"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "SayHookAction": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of action - must be \"say\"",
+            "enum": [
+              "say"
+            ]
+          },
+          "prompt": {
+            "description": "This is the prompt for the assistant to generate a response based on existing conversation.\nCan be a string or an array of chat messages.",
+            "oneOf": [
+              {
+                "type": "string",
+                "title": "String"
+              },
+              {
+                "type": "array",
+                "items": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/SystemMessage",
+                      "title": "SystemMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/UserMessage",
+                      "title": "UserMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/AssistantMessage",
+                      "title": "AssistantMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ToolMessage",
+                      "title": "ToolMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DeveloperMessage",
+                      "title": "DeveloperMessage"
+                    }
+                  ]
+                },
+                "title": "MessageArray"
+              }
+            ],
+            "examples": [
+              "Ask the user if they're still in the call",
+              [
+                {
+                  "role": "system",
+                  "content": "You are a helpful assistant, and would like to know if the user is still in the call based on the conversation history in {{transcript}}"
+                }
+              ]
+            ]
+          },
+          "exact": {
+            "type": "object",
+            "description": "This is the message to say"
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "MessageAddHookAction": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of action - must be \"message.add\"",
+            "enum": [
+              "message.add"
+            ]
+          },
+          "message": {
+            "description": "The message to add to the conversation in OpenAI format",
+            "example": {
+              "role": "system",
+              "content": "Context update from hook"
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OpenAIMessage"
+              }
+            ]
+          },
+          "triggerResponseEnabled": {
+            "type": "boolean",
+            "description": "Whether to trigger an assistant response after adding the message",
+            "default": true
+          }
+        },
+        "required": [
+          "type",
+          "message"
+        ]
+      },
+      "CallHookFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of filter - currently only \"oneOf\" is supported",
+            "enum": [
+              "oneOf"
+            ],
+            "maxLength": 1000
+          },
+          "key": {
+            "type": "string",
+            "description": "This is the key to filter on (e.g. \"call.endedReason\")",
+            "maxLength": 1000
+          },
+          "oneOf": {
+            "description": "This is the array of possible values to match against",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 1000
+            }
+          }
+        },
+        "required": [
+          "type",
+          "key",
+          "oneOf"
+        ]
+      },
+      "CallHookCallEnding": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "description": "This is the event that triggers this hook",
+            "enum": [
+              "call.ending"
+            ],
+            "maxLength": 1000
+          },
+          "do": {
+            "type": "array",
+            "description": "This is the set of actions to perform when the hook triggers",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolCallHookAction",
+                  "title": "ToolCallHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/MessageAddHookAction",
+                  "title": "MessageAddHookAction"
+                }
+              ]
+            }
+          },
+          "filters": {
+            "description": "This is the set of filters that must match for the hook to trigger",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CallHookFilter"
+            }
+          }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
+      },
+      "CallHookAssistantSpeechInterrupted": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "description": "This is the event that triggers this hook",
+            "enum": [
+              "assistant.speech.interrupted"
+            ],
+            "maxLength": 1000
+          },
+          "do": {
+            "type": "array",
+            "description": "This is the set of actions to perform when the hook triggers",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SayHookAction",
+                  "title": "SayHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallHookAction",
+                  "title": "ToolCallHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/MessageAddHookAction",
+                  "title": "MessageAddHookAction"
+                }
+              ]
+            }
+          }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
+      },
+      "CallHookCustomerSpeechInterrupted": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "description": "This is the event that triggers this hook",
+            "enum": [
+              "customer.speech.interrupted"
+            ],
+            "maxLength": 1000
+          },
+          "do": {
+            "type": "array",
+            "description": "This is the set of actions to perform when the hook triggers",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SayHookAction",
+                  "title": "SayHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallHookAction",
+                  "title": "ToolCallHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/MessageAddHookAction",
+                  "title": "MessageAddHookAction"
+                }
+              ]
+            }
+          }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
+      },
+      "ToolCallHookAction": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of action - must be \"tool\"",
+            "enum": [
+              "tool"
+            ]
+          },
+          "tool": {
+            "description": "This is the tool to call. To use an existing tool, send `toolId` instead.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                "title": "ApiRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateBashToolDTO",
+                "title": "BashTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateCodeToolDTO",
+                "title": "CodeTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateComputerToolDTO",
+                "title": "ComputerTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                "title": "DtmfTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                "title": "EndCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                "title": "FunctionTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                "title": "GoHighLevelCalendarAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                "title": "GoHighLevelCalendarEventCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                "title": "GoHighLevelContactCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                "title": "GoHighLevelContactGetTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                "title": "GoogleCalendarCheckAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                "title": "GoogleCalendarCreateEventTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                "title": "GoogleSheetsRowAppendTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                "title": "HandoffTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateMcpToolDTO",
+                "title": "McpTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateQueryToolDTO",
+                "title": "QueryTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                "title": "SlackSendMessageTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSmsToolDTO",
+                "title": "SmsTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                "title": "TextEditorTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                "title": "TransferCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                "title": "SipRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                "title": "VoicemailTool"
+              }
+            ]
+          },
+          "toolId": {
+            "type": "string",
+            "description": "This is the tool to call. To use a transient tool, send `tool` instead."
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "CustomerSpeechTimeoutOptions": {
+        "type": "object",
+        "properties": {
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the timeout in seconds before action is triggered.\nThe clock starts when the assistant finishes speaking and remains active until the user speaks.\n\n@default 7.5\n@minimum 2\n@maximum 1000",
+            "minimum": 1,
+            "maximum": 1000
+          },
+          "triggerMaxCount": {
+            "type": "number",
+            "description": "This is the maximum number of times the hook will trigger in a call.\n\n@default 3",
+            "minimum": 1,
+            "maximum": 10
+          },
+          "triggerResetMode": {
+            "type": "object",
+            "description": "This is whether the counter for hook trigger resets the user speaks.\n\n@default never"
+          }
+        },
+        "required": [
+          "timeoutSeconds"
+        ]
+      },
+      "CallHookCustomerSpeechTimeout": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "description": "Must be either \"customer.speech.timeout\" or match the pattern \"customer.speech.timeout[property=value]\"",
+            "maxLength": 1000
+          },
+          "do": {
+            "type": "array",
+            "description": "This is the set of actions to perform when the hook triggers",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SayHookAction",
+                  "title": "SayHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallHookAction",
+                  "title": "ToolCallHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/MessageAddHookAction",
+                  "title": "MessageAddHookAction"
+                }
+              ]
+            }
+          },
+          "options": {
+            "description": "This is the set of filters that must match for the hook to trigger",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CustomerSpeechTimeoutOptions"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the hook, it can be set by the user to identify the hook.\nIf no name is provided, the hook will be auto generated as UUID.\n\n@default UUID",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
+      },
+      "CallHookModelResponseTimeout": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "description": "This is the event that triggers this hook",
+            "enum": [
+              "model.response.timeout"
+            ],
+            "maxLength": 1000
+          },
+          "do": {
+            "type": "array",
+            "description": "This is the set of actions to perform when the hook triggers",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SayHookAction",
+                  "title": "SayHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallHookAction",
+                  "title": "ToolCallHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/MessageAddHookAction",
+                  "title": "MessageAddHookAction"
+                }
+              ]
+            }
+          }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
+      },
+      "AIEdgeCondition": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "ai"
+            ]
+          },
+          "prompt": {
+            "type": "string",
+            "description": "This is the prompt for the AI edge condition. It should evaluate to a boolean.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "type",
+          "prompt"
+        ]
+      },
+      "Edge": {
+        "type": "object",
+        "properties": {
+          "condition": {
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AIEdgeCondition",
+                "title": "AIEdgeCondition"
+              }
+            ]
+          },
+          "from": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "to": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is for metadata you want to store on the edge."
+          }
+        },
+        "required": [
+          "from",
+          "to"
+        ]
+      },
+      "RecordingConsentPlanStayOnLine": {
+        "type": "object",
+        "properties": {
+          "message": {
+            "type": "string",
+            "description": "This is the message asking for consent to record the call.\nIf the type is `stay-on-line`, the message should ask the user to hang up if they do not consent.\nIf the type is `verbal`, the message should ask the user to verbally consent or decline.",
+            "maxLength": 1000,
+            "examples": [
+              "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent.",
+              "This call may be recorded for quality and training purposes. Say \"I agree\" if you consent to being recorded, or \"I disagree\" if you do not consent."
+            ]
+          },
+          "voice": {
+            "description": "This is the voice to use for the consent message. If not specified, inherits from the assistant's voice.\nUse a different voice for the consent message for a better user experience.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "firstMessageMode": {
+            "type": "string",
+            "description": "This controls whether the consent assistant speaks first or waits for the caller to speak first.\n\nUse:\n- `assistant-speaks-first` (default) to have the consent assistant play the consent message as soon as the call is answered.\n- `assistant-waits-for-user` to have the consent assistant wait for the caller to speak before playing the consent message.\n\nWe strongly recommend `assistant-waits-for-user` for outbound calls. Some telephony providers signal \"answered\" while the line is still ringing, which can cause the consent message to play into a ringing line and be missed by the caller. Waiting for the caller to speak first guarantees they hear the full consent message.\n\nNote: when combined with `type: 'stay-on-line'`, silence only counts toward consent after the caller has spoken at least once.\n\n@default 'assistant-speaks-first'",
+            "enum": [
+              "assistant-speaks-first",
+              "assistant-waits-for-user"
+            ],
+            "default": "assistant-speaks-first",
+            "example": "assistant-speaks-first"
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of recording consent plan. This type assumes consent is granted if the user stays on the line.",
+            "enum": [
+              "stay-on-line"
+            ],
+            "example": "stay-on-line"
+          },
+          "waitSeconds": {
+            "type": "number",
+            "description": "Number of seconds to wait before transferring to the assistant if user stays on the call",
+            "minimum": 1,
+            "maximum": 6,
+            "default": 3,
+            "example": 3
+          }
+        },
+        "required": [
+          "message",
+          "type"
+        ]
+      },
+      "RecordingConsentPlanVerbal": {
+        "type": "object",
+        "properties": {
+          "message": {
+            "type": "string",
+            "description": "This is the message asking for consent to record the call.\nIf the type is `stay-on-line`, the message should ask the user to hang up if they do not consent.\nIf the type is `verbal`, the message should ask the user to verbally consent or decline.",
+            "maxLength": 1000,
+            "examples": [
+              "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent.",
+              "This call may be recorded for quality and training purposes. Say \"I agree\" if you consent to being recorded, or \"I disagree\" if you do not consent."
+            ]
+          },
+          "voice": {
+            "description": "This is the voice to use for the consent message. If not specified, inherits from the assistant's voice.\nUse a different voice for the consent message for a better user experience.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "firstMessageMode": {
+            "type": "string",
+            "description": "This controls whether the consent assistant speaks first or waits for the caller to speak first.\n\nUse:\n- `assistant-speaks-first` (default) to have the consent assistant play the consent message as soon as the call is answered.\n- `assistant-waits-for-user` to have the consent assistant wait for the caller to speak before playing the consent message.\n\nWe strongly recommend `assistant-waits-for-user` for outbound calls. Some telephony providers signal \"answered\" while the line is still ringing, which can cause the consent message to play into a ringing line and be missed by the caller. Waiting for the caller to speak first guarantees they hear the full consent message.\n\nNote: when combined with `type: 'stay-on-line'`, silence only counts toward consent after the caller has spoken at least once.\n\n@default 'assistant-speaks-first'",
+            "enum": [
+              "assistant-speaks-first",
+              "assistant-waits-for-user"
+            ],
+            "default": "assistant-speaks-first",
+            "example": "assistant-speaks-first"
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of recording consent plan. This type assumes consent is granted if the user verbally consents or declines.",
+            "enum": [
+              "verbal"
+            ],
+            "example": "verbal"
+          },
+          "declineTool": {
+            "type": "object",
+            "description": "Tool to execute if user verbally declines recording consent"
+          },
+          "declineToolId": {
+            "type": "string",
+            "description": "ID of existing tool to execute if user verbally declines recording consent"
+          }
+        },
+        "required": [
+          "message",
+          "type"
+        ]
+      },
+      "SecurityFilterBase": {
+        "type": "object",
+        "properties": {}
+      },
+      "SecurityFilterPlan": {
+        "type": "object",
+        "properties": {
+          "enabled": {
+            "type": "boolean",
+            "description": "Whether the security filter is enabled.\n@default false",
+            "default": false
+          },
+          "filters": {
+            "description": "Array of security filter types to apply.\nIf array is not empty, only those security filters are run.",
+            "example": "[{ type: \"sql-injection\" }, { type: \"xss\" }]",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SecurityFilterBase"
+            }
+          },
+          "mode": {
+            "type": "string",
+            "description": "Mode of operation when a security threat is detected.\n- 'sanitize': Remove or replace the threatening content\n- 'reject': Replace the entire transcript with replacement text\n- 'replace': Replace threatening patterns with replacement text\n@default 'sanitize'",
+            "enum": [
+              "sanitize",
+              "reject",
+              "replace"
+            ],
+            "default": "sanitize"
+          },
+          "replacementText": {
+            "type": "string",
+            "description": "Text to use when replacing filtered content.\n@default '[FILTERED]'",
+            "default": "[FILTERED]"
+          }
+        }
+      },
+      "CompliancePlan": {
+        "type": "object",
+        "properties": {
+          "hipaaEnabled": {
+            "type": "boolean",
+            "description": "When this is enabled, logs, recordings, and transcriptions will be stored in HIPAA-compliant storage. Defaults to false. Only HIPAA-compliant providers will be available for LLM, Voice, and Transcriber respectively. This setting is only honored if the organization is on an Enterprise subscription or has purchased the HIPAA add-on."
+          },
+          "pciEnabled": {
+            "type": "boolean",
+            "description": "When this is enabled, the user will be restricted to use PCI-compliant providers, and no logs or transcripts are stored.\nAt the end of the call, you will receive an end-of-call-report message to store on your server. Defaults to false.",
+            "example": {
+              "pciEnabled": false
+            }
+          },
+          "securityFilterPlan": {
+            "description": "This is the security filter plan for the assistant. It allows filtering of transcripts for security threats before sending to LLM.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SecurityFilterPlan"
+              }
+            ]
+          },
+          "recordingConsentPlan": {
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/RecordingConsentPlanStayOnLine",
+                "title": "RecordingConsentStayOnLinePlan"
+              },
+              {
+                "$ref": "#/components/schemas/RecordingConsentPlanVerbal",
+                "title": "RecordingConsentPlanVerbal"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "stay-on-line": "#/components/schemas/RecordingConsentPlanStayOnLine",
+                "verbal": "#/components/schemas/RecordingConsentPlanVerbal"
+              }
+            }
+          }
+        }
+      },
+      "StructuredDataPlan": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "These are the messages used to generate the structured data.\n\n@default: ```\n[\n  {\n    \"role\": \"system\",\n    \"content\": \"You are an expert data extractor. You will be given a transcript of a call. Extract structured data per the JSON Schema. DO NOT return anything except the structured data.\\n\\nJson Schema:\\\\n{{schema}}\\n\\nOnly respond with the JSON.\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"Here is the transcript:\\n\\n{{transcript}}\\n\\n. Here is the ended reason of the call:\\n\\n{{endedReason}}\\n\\n\"\n  }\n]```\n\nYou can customize by providing any messages you want.\n\nHere are the template variables available:\n- {{transcript}}: the transcript of the call from `call.artifact.transcript`- {{systemPrompt}}: the system prompt of the call from `assistant.model.messages[type=system].content`- {{messages}}: the messages of the call from `assistant.model.messages`- {{schema}}: the schema of the structured data from `structuredDataPlan.schema`- {{endedReason}}: the ended reason of the call from `call.endedReason`",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
+          },
+          "enabled": {
+            "type": "boolean",
+            "description": "This determines whether structured data is generated and stored in `call.analysis.structuredData`. Defaults to false.\n\nUsage:\n- If you want to extract structured data, set this to true and provide a `schema`.\n\n@default false"
+          },
+          "schema": {
+            "description": "This is the schema of the structured data. The output is stored in `call.analysis.structuredData`.\n\nComplete guide on JSON Schema can be found [here](https://ajv.js.org/json-schema.html#json-data-type).",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
+            ]
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is how long the request is tried before giving up. When request times out, `call.analysis.structuredData` will be empty.\n\nUsage:\n- To guarantee the structured data is generated, set this value high. Note, this will delay the end of call report in cases where model is slow to respond.\n\n@default 5 seconds",
+            "minimum": 1,
+            "maximum": 60
+          }
+        }
+      },
+      "StructuredDataMultiPlan": {
+        "type": "object",
+        "properties": {
+          "key": {
+            "type": "string",
+            "description": "This is the key of the structured data plan in the catalog."
+          },
+          "plan": {
+            "description": "This is an individual structured data plan in the catalog.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StructuredDataPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "key",
+          "plan"
+        ]
+      },
+      "SuccessEvaluationPlan": {
+        "type": "object",
+        "properties": {
+          "rubric": {
+            "type": "string",
+            "enum": [
+              "NumericScale",
+              "DescriptiveScale",
+              "Checklist",
+              "Matrix",
+              "PercentageScale",
+              "LikertScale",
+              "AutomaticRubric",
+              "PassFail"
+            ],
+            "description": "This enforces the rubric of the evaluation. The output is stored in `call.analysis.successEvaluation`.\n\nOptions include:\n- 'NumericScale': A scale of 1 to 10.\n- 'DescriptiveScale': A scale of Excellent, Good, Fair, Poor.\n- 'Checklist': A checklist of criteria and their status.\n- 'Matrix': A grid that evaluates multiple criteria across different performance levels.\n- 'PercentageScale': A scale of 0% to 100%.\n- 'LikertScale': A scale of Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree.\n- 'AutomaticRubric': Automatically break down evaluation into several criteria, each with its own score.\n- 'PassFail': A simple 'true' if call passed, 'false' if not.\n\nDefault is 'PassFail'."
+          },
+          "messages": {
+            "description": "These are the messages used to generate the success evaluation.\n\n@default: ```\n[\n  {\n    \"role\": \"system\",\n    \"content\": \"You are an expert call evaluator. You will be given a transcript of a call and the system prompt of the AI participant. Determine if the call was successful based on the objectives inferred from the system prompt. DO NOT return anything except the result.\\n\\nRubric:\\\\n{{rubric}}\\n\\nOnly respond with the result.\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"Here is the transcript:\\n\\n{{transcript}}\\n\\n\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"Here was the system prompt of the call:\\n\\n{{systemPrompt}}\\n\\n. Here is the ended reason of the call:\\n\\n{{endedReason}}\\n\\n\"\n  }\n]```\n\nYou can customize by providing any messages you want.\n\nHere are the template variables available:\n- {{transcript}}: the transcript of the call from `call.artifact.transcript`- {{systemPrompt}}: the system prompt of the call from `assistant.model.messages[type=system].content`- {{messages}}: the messages of the call from `assistant.model.messages`- {{rubric}}: the rubric of the success evaluation from `successEvaluationPlan.rubric`- {{endedReason}}: the ended reason of the call from `call.endedReason`",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
+          },
+          "enabled": {
+            "type": "boolean",
+            "description": "This determines whether a success evaluation is generated and stored in `call.analysis.successEvaluation`. Defaults to true.\n\nUsage:\n- If you want to disable the success evaluation, set this to false.\n\n@default true"
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is how long the request is tried before giving up. When request times out, `call.analysis.successEvaluation` will be empty.\n\nUsage:\n- To guarantee the success evaluation is generated, set this value high. Note, this will delay the end of call report in cases where model is slow to respond.\n\n@default 5 seconds",
+            "minimum": 1,
+            "maximum": 60
+          }
+        }
+      },
+      "AnalysisPlan": {
+        "type": "object",
+        "properties": {
+          "minMessagesThreshold": {
+            "type": "number",
+            "description": "The minimum number of messages required to run the analysis plan.\nIf the number of messages is less than this, analysis will be skipped.\n\n@default 2",
+            "deprecated": true,
+            "minimum": 0
+          },
+          "summaryPlan": {
+            "description": "This is the plan for generating the summary of the call. This outputs to `call.analysis.summary`.",
+            "deprecated": true,
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SummaryPlan"
+              }
+            ]
+          },
+          "structuredDataPlan": {
+            "description": "This is the plan for generating the structured data from the call. This outputs to `call.analysis.structuredData`.",
+            "deprecated": true,
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StructuredDataPlan"
+              }
+            ]
+          },
+          "structuredDataMultiPlan": {
+            "description": "This is an array of structured data plan catalogs. Each entry includes a `key` and a `plan` for generating the structured data from the call. This outputs to `call.analysis.structuredDataMulti`.",
+            "deprecated": true,
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/StructuredDataMultiPlan"
+            }
+          },
+          "successEvaluationPlan": {
+            "description": "This is the plan for generating the success evaluation of the call. This outputs to `call.analysis.successEvaluation`.",
+            "deprecated": true,
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SuccessEvaluationPlan"
+              }
+            ]
+          },
+          "outcomeIds": {
+            "description": "This is an array of outcome UUIDs to be calculated during analysis.\nThe outcomes will be calculated and stored in `call.analysis.outcomes`.",
+            "deprecated": true,
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          }
+        }
+      },
+      "TranscriptPlan": {
+        "type": "object",
+        "properties": {
+          "enabled": {
+            "type": "boolean",
+            "description": "This determines whether the transcript is stored in `call.artifact.transcript`. Defaults to true.\n\n@default true",
+            "example": true
+          },
+          "assistantName": {
+            "type": "string",
+            "description": "This is the name of the assistant in the transcript. Defaults to 'AI'.\n\nUsage:\n- If you want to change the name of the assistant in the transcript, set this. Example, here is what the transcript would look like with `assistantName` set to 'Buyer':\n```\nUser: Hello, how are you?\nBuyer: I'm fine.\nUser: Do you want to buy a car?\nBuyer: No.\n```\n\n@default 'AI'"
+          },
+          "userName": {
+            "type": "string",
+            "description": "This is the name of the user in the transcript. Defaults to 'User'.\n\nUsage:\n- If you want to change the name of the user in the transcript, set this. Example, here is what the transcript would look like with `userName` set to 'Seller':\n```\nSeller: Hello, how are you?\nAI: I'm fine.\nSeller: Do you want to buy a car?\nAI: No.\n```\n\n@default 'User'"
+          }
+        }
+      },
+      "ComplianceOverride": {
+        "type": "object",
+        "properties": {
+          "forceStoreOnHipaaEnabled": {
+            "type": "boolean",
+            "description": "Force storage for this output under HIPAA. Only enable if output contains no sensitive data.",
+            "example": false
+          }
+        }
+      },
+      "CreateStructuredOutputDTO": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of structured output.\n\n- 'ai': Uses an LLM to extract structured data from the conversation (default).\n- 'regex': Uses a regex pattern to extract data from the transcript without an LLM.\n\nDefaults to 'ai' if not specified.",
+            "enum": [
+              "ai",
+              "regex"
+            ],
+            "default": "ai"
+          },
+          "regex": {
+            "type": "string",
+            "description": "This is the regex pattern to match against the transcript.\n\nOnly used when type is 'regex'. Supports both raw patterns (e.g. '\\d+') and\nregex literal format (e.g. '/\\d+/gi'). Uses RE2 syntax for safety.\n\nThe result depends on the schema type:\n- boolean: true if the pattern matches, false otherwise\n- string: the first match or first capture group\n- number/integer: the first match parsed as a number\n- array: all matches",
+            "minLength": 1,
+            "maxLength": 1000
+          },
+          "model": {
+            "description": "This is the model that will be used to extract the structured output.\n\nTo provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages.\nBetween the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history.\nBetween the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition.\ni.e.:\n`{{structuredOutput}}`\n`{{structuredOutput.name}}`\n`{{structuredOutput.description}}`\n`{{structuredOutput.schema}}`\n\nIf model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts.\nIf messages or required fields are not specified, the default system and user prompts will be used.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOpenAIModel",
+                "title": "WorkflowOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicModel",
+                "title": "WorkflowAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel",
+                "title": "WorkflowAnthropicBedrockModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowGoogleModel",
+                "title": "WorkflowGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowCustomModel",
+                "title": "WorkflowCustomModel"
+              }
+            ]
+          },
+          "compliancePlan": {
+            "description": "Compliance configuration for this output. Only enable overrides if no sensitive data will be stored.",
+            "example": {
+              "forceStoreOnHipaaEnabled": false
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ComplianceOverride"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the structured output.",
+            "minLength": 1,
+            "maxLength": 40
+          },
+          "schema": {
+            "description": "This is the JSON Schema definition for the structured output.\n\nThis is required when creating a structured output. Defines the structure and validation rules for the data that will be extracted. Supports all JSON Schema features including:\n- Objects and nested properties\n- Arrays and array validation\n- String, number, boolean, and null types\n- Enums and const values\n- Validation constraints (min/max, patterns, etc.)\n- Composition with allOf, anyOf, oneOf",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
+            ]
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of what the structured output extracts.\n\nUse this to provide context about what data will be extracted and how it will be used."
+          },
+          "assistantIds": {
+            "description": "These are the assistant IDs that this structured output is linked to.\n\nWhen linked to assistants, this structured output will be available for extraction during those assistant's calls.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "workflowIds": {
+            "description": "These are the workflow IDs that this structured output is linked to.\n\nWhen linked to workflows, this structured output will be available for extraction during those workflow's execution.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          }
+        },
+        "required": [
+          "name",
+          "schema"
+        ]
+      },
+      "ScorecardMetric": {
+        "type": "object",
+        "properties": {
+          "structuredOutputId": {
+            "type": "string",
+            "description": "This is the unique identifier for the structured output that will be used to evaluate the scorecard.\nThe structured output must be of type number or boolean only for now."
+          },
+          "conditions": {
+            "description": "These are the conditions that will be used to evaluate the scorecard.\nEach condition will have a comparator, value, and points that will be used to calculate the final score.\nThe points will be added to the overall score if the condition is met.\nThe overall score will be normalized to a 100 point scale to ensure uniformity across different scorecards.",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
+          }
+        },
+        "required": [
+          "structuredOutputId",
+          "conditions"
+        ]
+      },
+      "CreateScorecardDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the scorecard. It is only for user reference and will not be used for any evaluation.",
+            "maxLength": 80
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of the scorecard. It is only for user reference and will not be used for any evaluation.",
+            "maxLength": 500
+          },
+          "metrics": {
+            "description": "These are the metrics that will be used to evaluate the scorecard.\nEach metric will have a set of conditions and points that will be used to generate the score.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ScorecardMetric"
+            }
+          },
+          "assistantIds": {
+            "description": "These are the assistant IDs that this scorecard is linked to.\nWhen linked to assistants, this scorecard will be available for evaluation during those assistants' calls.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          }
+        },
+        "required": [
+          "metrics"
+        ]
+      },
+      "ArtifactPlan": {
+        "type": "object",
+        "properties": {
+          "recordingEnabled": {
+            "type": "boolean",
+            "description": "This determines whether assistant's calls are recorded. Defaults to true.\n\nUsage:\n- If you don't want to record the calls, set this to false.\n- If you want to record the calls when `assistant.hipaaEnabled` (deprecated) or `assistant.compliancePlan.hipaaEnabled` explicity set this to true and make sure to provide S3 or GCP credentials on the Provider Credentials page in the Dashboard.\n\nYou can find the recording at `call.artifact.recordingUrl` and `call.artifact.stereoRecordingUrl` after the call is ended.\n\n@default true",
+            "example": true
+          },
+          "recordingFormat": {
+            "type": "string",
+            "description": "This determines the format of the recording. Defaults to `wav;l16`.\n\n@default 'wav;l16'",
+            "enum": [
+              "wav;l16",
+              "mp3"
+            ]
+          },
+          "recordingUseCustomStorageEnabled": {
+            "type": "boolean",
+            "description": "This determines whether to use custom storage (S3 or GCP) for call recordings when storage credentials are configured.\n\nWhen set to false, recordings will be stored on Vapi's storage instead of your custom storage, even if you have custom storage credentials configured.\n\nUsage:\n- Set to false if you have custom storage configured but want to store recordings on Vapi's storage for this assistant.\n- Set to true (or leave unset) to use your custom storage for recordings when available.\n\n@default true",
+            "example": true
+          },
+          "videoRecordingEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the video is recorded during the call. Defaults to false. Only relevant for `webCall` type.\n\nYou can find the video recording at `call.artifact.videoRecordingUrl` after the call is ended.\n\n@default false",
+            "example": false
+          },
+          "fullMessageHistoryEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the artifact contains the full message history, even after handoff context engineering. Defaults to false.",
+            "example": false
+          },
+          "pcapEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the SIP packet capture is enabled. Defaults to true. Only relevant for `phone` type calls where phone number's provider is `vapi` or `byo-phone-number`.\n\nYou can find the packet capture at `call.artifact.pcapUrl` after the call is ended.\n\n@default true",
+            "example": true
+          },
+          "pcapS3PathPrefix": {
+            "type": "string",
+            "description": "This is the path where the SIP packet capture will be uploaded. This is only used if you have provided S3 or GCP credentials on the Provider Credentials page in the Dashboard.\n\nIf credential.s3PathPrefix or credential.bucketPlan.path is set, this will append to it.\n\nUsage:\n- If you want to upload the packet capture to a specific path, set this to the path. Example: `/my-assistant-captures`.\n- If you want to upload the packet capture to the root of the bucket, set this to `/`.\n\n@default '/'",
+            "example": "/pcaps"
+          },
+          "pcapUseCustomStorageEnabled": {
+            "type": "boolean",
+            "description": "This determines whether to use custom storage (S3 or GCP) for SIP packet captures when storage credentials are configured.\n\nWhen set to false, packet captures will be stored on Vapi's storage instead of your custom storage, even if you have custom storage credentials configured.\n\nUsage:\n- Set to false if you have custom storage configured but want to store packet captures on Vapi's storage for this assistant.\n- Set to true (or leave unset) to use your custom storage for packet captures when available.\n\n@default true",
+            "example": true
+          },
+          "loggingEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the call logs are enabled. Defaults to true.\n\n@default true",
+            "example": true
+          },
+          "loggingUseCustomStorageEnabled": {
+            "type": "boolean",
+            "description": "This determines whether to use custom storage (S3 or GCP) for call logs when storage credentials are configured.\n\nWhen set to false, logs will be stored on Vapi's storage instead of your custom storage, even if you have custom storage credentials configured.\n\nUsage:\n- Set to false if you have custom storage configured but want to store logs on Vapi's storage for this assistant.\n- Set to true (or leave unset) to use your custom storage for logs when available.\n\n@default true",
+            "example": true
+          },
+          "transcriptPlan": {
+            "description": "This is the plan for `call.artifact.transcript`. To disable, set `transcriptPlan.enabled` to false.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TranscriptPlan"
+              }
+            ]
+          },
+          "recordingPath": {
+            "type": "string",
+            "description": "This is the path where the recording will be uploaded. This is only used if you have provided S3 or GCP credentials on the Provider Credentials page in the Dashboard.\n\nIf credential.s3PathPrefix or credential.bucketPlan.path is set, this will append to it.\n\nUsage:\n- If you want to upload the recording to a specific path, set this to the path. Example: `/my-assistant-recordings`.\n- If you want to upload the recording to the root of the bucket, set this to `/`.\n\n@default '/'"
+          },
+          "structuredOutputIds": {
+            "description": "This is an array of structured output IDs to be calculated during the call.\nThe outputs will be extracted and stored in `call.artifact.structuredOutputs` after the call is ended.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "structuredOutputs": {
+            "description": "This is an array of transient structured outputs to be calculated during the call.\nThe outputs will be extracted and stored in `call.artifact.structuredOutputs` after the call is ended.\nUse this to provide inline structured output configurations instead of referencing existing ones via structuredOutputIds.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CreateStructuredOutputDTO"
+            }
+          },
+          "scorecardIds": {
+            "description": "This is an array of scorecard IDs that will be evaluated based on the structured outputs extracted during the call.\nThe scorecards will be evaluated and the results will be stored in `call.artifact.scorecards` after the call has ended.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "scorecards": {
+            "description": "This is the array of scorecards that will be evaluated based on the structured outputs extracted during the call.\nThe scorecards will be evaluated and the results will be stored in `call.artifact.scorecards` after the call has ended.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CreateScorecardDTO"
+            }
+          },
+          "loggingPath": {
+            "type": "string",
+            "description": "This is the path where the call logs will be uploaded. This is only used if you have provided S3 or GCP credentials on the Provider Credentials page in the Dashboard.\n\nIf credential.s3PathPrefix or credential.bucketPlan.path is set, this will append to it.\n\nUsage:\n- If you want to upload the call logs to a specific path, set this to the path. Example: `/my-assistant-logs`.\n- If you want to upload the call logs to the root of the bucket, set this to `/`.\n\n@default '/'"
+          }
+        }
+      },
+      "StopSpeakingPlan": {
+        "type": "object",
+        "properties": {
+          "numWords": {
+            "type": "number",
+            "description": "This is the number of words that the customer has to say before the assistant will stop talking.\n\nWords like \"stop\", \"actually\", \"no\", etc. will always interrupt immediately regardless of this value.\n\nWords like \"okay\", \"yeah\", \"right\" will never interrupt.\n\nWhen set to 0, `voiceSeconds` is used in addition to the transcriptions to determine the customer has started speaking.\n\nDefaults to 0.\n\n@default 0",
+            "minimum": 0,
+            "maximum": 10,
+            "example": 0
+          },
+          "voiceSeconds": {
+            "type": "number",
+            "description": "This is the seconds customer has to speak before the assistant stops talking. This uses the VAD (Voice Activity Detection) spike to determine if the customer has started speaking.\n\nConsiderations:\n- A lower value might be more responsive but could potentially pick up non-speech sounds.\n- A higher value reduces false positives but might slightly delay the detection of speech onset.\n\nThis is only used if `numWords` is set to 0.\n\nDefaults to 0.2\n\n@default 0.2",
+            "minimum": 0,
+            "maximum": 0.5,
+            "example": 0.2
+          },
+          "backoffSeconds": {
+            "type": "number",
+            "description": "This is the seconds to wait before the assistant will start talking again after being interrupted.\n\nDefaults to 1.\n\n@default 1",
+            "minimum": 0,
+            "maximum": 10,
+            "example": 1
+          },
+          "acknowledgementPhrases": {
+            "description": "These are the phrases that will never interrupt the assistant, even if numWords threshold is met.\nThese are typically acknowledgement or backchanneling phrases.",
+            "example": [
+              "i understand",
+              "i see",
+              "i got it",
+              "i hear you",
+              "im listening",
+              "im with you",
+              "right",
+              "okay",
+              "ok",
+              "sure",
+              "alright",
+              "got it",
+              "understood",
+              "yeah",
+              "yes",
+              "uh-huh",
+              "mm-hmm",
+              "gotcha",
+              "mhmm",
+              "ah",
+              "yeah okay",
+              "yeah sure"
+            ],
+            "default": [
+              "i understand",
+              "i see",
+              "i got it",
+              "i hear you",
+              "im listening",
+              "im with you",
+              "right",
+              "okay",
+              "ok",
+              "sure",
+              "alright",
+              "got it",
+              "understood",
+              "yeah",
+              "yes",
+              "uh-huh",
+              "mm-hmm",
+              "gotcha",
+              "mhmm",
+              "ah",
+              "yeah okay",
+              "yeah sure"
+            ],
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 240
+            }
+          },
+          "interruptionPhrases": {
+            "description": "These are the phrases that will always interrupt the assistant immediately, regardless of numWords.\nThese are typically phrases indicating disagreement or desire to stop.",
+            "example": [
+              "stop",
+              "shut",
+              "up",
+              "enough",
+              "quiet",
+              "silence",
+              "but",
+              "dont",
+              "not",
+              "no",
+              "hold",
+              "wait",
+              "cut",
+              "pause",
+              "nope",
+              "nah",
+              "nevermind",
+              "never",
+              "bad",
+              "actually"
+            ],
+            "default": [
+              "stop",
+              "shut",
+              "up",
+              "enough",
+              "quiet",
+              "silence",
+              "but",
+              "dont",
+              "not",
+              "no",
+              "hold",
+              "wait",
+              "cut",
+              "pause",
+              "nope",
+              "nah",
+              "nevermind",
+              "never",
+              "bad",
+              "actually"
+            ],
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 240
+            }
+          }
+        }
+      },
+      "MonitorPlan": {
+        "type": "object",
+        "properties": {
+          "listenEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the assistant's calls allow live listening. Defaults to true.\n\nFetch `call.monitor.listenUrl` to get the live listening URL.\n\n@default true",
+            "example": false
+          },
+          "listenAuthenticationEnabled": {
+            "type": "boolean",
+            "description": "This enables authentication on the `call.monitor.listenUrl`.\n\nIf `listenAuthenticationEnabled` is `true`, the `call.monitor.listenUrl` will require an `Authorization: Bearer <vapi-public-api-key>` header.\n\n@default false",
+            "example": false
+          },
+          "controlEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the assistant's calls allow live control. Defaults to true.\n\nFetch `call.monitor.controlUrl` to get the live control URL.\n\nTo use, send any control message via a POST request to `call.monitor.controlUrl`. Here are the types of controls supported: https://docs.vapi.ai/api-reference/messages/client-inbound-message\n\n@default true",
+            "example": false
+          },
+          "controlAuthenticationEnabled": {
+            "type": "boolean",
+            "description": "This enables authentication on the `call.monitor.controlUrl`.\n\nIf `controlAuthenticationEnabled` is `true`, the `call.monitor.controlUrl` will require an `Authorization: Bearer <vapi-public-api-key>` header.\n\n@default false",
+            "example": false
+          },
+          "monitorIds": {
+            "description": "This the set of monitor ids that are attached to the assistant.\nThe source of truth for the monitor ids is the assistant_monitor join table.\nThis field can be used for transient assistants and to update assistants with new monitor ids.\n\n@default []",
+            "example": [
+              "123e4567-e89b-12d3-a456-426614174000"
+            ],
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          }
+        }
+      },
+      "KeypadInputPlan": {
+        "type": "object",
+        "properties": {
+          "enabled": {
+            "type": "boolean",
+            "description": "This keeps track of whether the user has enabled keypad input.\nBy default, it is off.\n\n@default false"
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the time in seconds to wait before processing the input.\nIf the input is not received within this time, the input will be ignored.\nIf set to \"off\", the input will be processed when the user enters a delimiter or immediately if no delimiter is used.\n\n@default 2",
+            "minimum": 0,
+            "maximum": 10
+          },
+          "delimiters": {
+            "type": "string",
+            "description": "This is the delimiter(s) that will be used to process the input.\nCan be '#', '*', or an empty array.",
+            "enum": [
+              "#",
+              "*",
+              ""
+            ]
+          }
+        }
+      },
+      "WorkflowUserEditable": {
+        "type": "object",
+        "properties": {
+          "nodes": {
+            "type": "array",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ConversationNode",
+                  "title": "ConversationNode"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolNode",
+                  "title": "ToolNode"
+                }
+              ]
+            }
+          },
+          "model": {
+            "description": "This is the model for the workflow.\n\nThis can be overridden at node level using `nodes[n].model`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOpenAIModel",
+                "title": "WorkflowOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicModel",
+                "title": "WorkflowAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel",
+                "title": "WorkflowAnthropicBedrockModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowGoogleModel",
+                "title": "WorkflowGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowCustomModel",
+                "title": "WorkflowCustomModel"
+              }
+            ]
+          },
+          "transcriber": {
+            "description": "This is the transcriber for the workflow.\n\nThis can be overridden at node level using `nodes[n].transcriber`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "voice": {
+            "description": "This is the voice for the workflow.\n\nThis can be overridden at node level using `nodes[n].voice`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "observabilityPlan": {
+            "description": "This is the plan for observability of workflow's calls.\n\nCurrently, only Langfuse is supported.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
+                "title": "Langfuse"
+              }
+            ],
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+              }
+            ]
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
+              {
+                "type": "enum",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is a set of actions that will be performed on certain events.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CallHookCallEnding",
+                  "title": "CallHookCallEnding"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted",
+                  "title": "CallHookAssistantSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted",
+                  "title": "CallHookCustomerSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout",
+                  "title": "CallHookCustomerSpeechTimeout"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookModelResponseTimeout",
+                  "title": "CallHookModelResponseTimeout"
+                }
+              ]
+            }
+          },
+          "credentials": {
+            "type": "array",
+            "description": "These are dynamic credentials that will be used for the workflow 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.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "title": "AnthropicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "title": "AnthropicBedrockCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "title": "AnyscaleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "title": "AssemblyAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
+                  "title": "AzureCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "title": "AzureOpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "title": "ByoSipTrunkCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "title": "CartesiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "title": "CerebrasCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "title": "CloudflareCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "title": "CustomLLMCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "title": "DeepgramCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "title": "DeepInfraCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "title": "DeepSeekCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "title": "ElevenLabsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
+                  "title": "GcpCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "title": "GladiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "title": "GhlCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "title": "GoogleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
+                  "title": "GroqCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
+                  "title": "HumeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "title": "InflectionAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "title": "LangfuseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
+                  "title": "LmntCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
+                  "title": "MakeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
+                  "title": "MistralCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "title": "NeuphonicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "title": "OpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "title": "OpenRouterCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "title": "PerplexityAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "title": "PlayHTCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "title": "RimeAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "title": "RunpodCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
+                  "title": "S3Credential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "title": "SmallestAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "title": "SpeechmaticsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "title": "SonioxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "title": "SupabaseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
+                  "title": "TavusCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "title": "TogetherAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "title": "TwilioCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
+                  "title": "VonageCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "title": "WebhookCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomCredentialDTO",
+                  "title": "CustomCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
+                  "title": "XAiCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "title": "GoogleCalendarOAuth2ClientCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "title": "SlackOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "title": "GoHighLevelMCPCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInworldCredentialDTO",
+                  "title": "InworldCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "title": "MinimaxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "title": "WellSaidCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEmailCredentialDTO",
+                  "title": "EmailCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO",
+                  "title": "SlackWebhookCredential"
+                }
+              ],
+              "discriminator": {
+                "propertyName": "provider",
+                "mapping": {
+                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
+                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
+                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
+                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
+                  "make": "#/components/schemas/CreateMakeCredentialDTO",
+                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "s3": "#/components/schemas/CreateS3CredentialDTO",
+                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
+                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
+                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "custom-credential": "#/components/schemas/CreateCustomCredentialDTO",
+                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
+                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
+                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
+                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "soniox": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "inworld": "#/components/schemas/CreateInworldCredentialDTO",
+                  "minimax": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "email": "#/components/schemas/CreateEmailCredentialDTO",
+                  "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO"
+                }
+              }
+            }
+          },
+          "voicemailDetection": {
+            "description": "This is the voicemail detection plan for the workflow.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off"
+                ]
+              },
+              {
+                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
+                "title": "Twilio"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoicemailDetectionPlan",
+                "title": "Vapi"
+              }
+            ]
+          },
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum duration of the call in seconds.\n\nAfter this duration, the call will automatically end.\n\nDefault is 1800 (30 minutes), max is 43200 (12 hours), and min is 10 seconds.",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 600
+          },
+          "name": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "edges": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Edge"
+            }
+          },
+          "globalPrompt": {
+            "type": "string",
+            "maxLength": 5000
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. tool.server\n2. workflow.server / assistant.server\n3. phoneNumber.server\n4. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "compliancePlan": {
+            "description": "This is the compliance plan for the workflow. It allows you to configure HIPAA and other compliance settings.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CompliancePlan"
+              }
+            ]
+          },
+          "analysisPlan": {
+            "description": "This is the plan for analysis of workflow's calls. Stored in `call.analysis`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisPlan"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is the plan for artifacts generated during workflow's calls. Stored in `call.artifact`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the workflow nodes should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
+          },
+          "stopSpeakingPlan": {
+            "description": "This is the plan for when workflow nodes should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StopSpeakingPlan"
+              }
+            ]
+          },
+          "monitorPlan": {
+            "description": "This is the plan for real-time monitoring of the workflow's calls.\n\nUsage:\n- To enable live listening of the workflow's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the workflow's calls, set `monitorPlan.controlEnabled` to `true`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/MonitorPlan"
+              }
+            ]
+          },
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nBoth can be used together. Order of precedence:\n- Smart denoising\n- Fourier denoising",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
+              }
+            ]
+          },
+          "credentialIds": {
+            "description": "These are the credentials that will be used for the workflow calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "keypadInputPlan": {
+            "description": "This is the plan for keypad input handling during workflow calls.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/KeypadInputPlan"
+              }
+            ]
+          },
+          "voicemailMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "nodes",
+          "name",
+          "edges"
+        ]
+      },
+      "VapiModel": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
+          },
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
+            ]
+          },
+          "provider": {
+            "type": "string",
+            "enum": [
+              "vapi"
+            ]
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for the call. To use a transient workflow, use `workflow` instead."
+          },
+          "workflow": {
+            "description": "This is the workflow that will be used for the call. To use an existing workflow, use `workflowId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowUserEditable"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b"
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "provider",
+          "model"
+        ]
+      },
+      "XaiModel": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "description": "This is the starting state for the conversation.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "tools": {
+            "type": "array",
+            "description": "These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
+          },
+          "toolIds": {
+            "description": "These are the tools that the assistant can use during the call. To use transient tools, use `tools`.\n\nBoth `tools` and `toolIds` can be used together.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "knowledgeBase": {
+            "description": "These are the options for the knowledge base.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomKnowledgeBaseDTO",
+                "title": "Custom"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
+            "enum": [
+              "grok-beta",
+              "grok-2",
+              "grok-3",
+              "grok-4-fast-reasoning",
+              "grok-4-fast-non-reasoning",
+              "grok-4.20-0309-reasoning",
+              "grok-4.20-0309-non-reasoning"
+            ]
+          },
+          "provider": {
+            "type": "string",
+            "enum": [
+              "xai"
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "emotionRecognitionEnabled": {
+            "type": "boolean",
+            "description": "This determines whether we detect user's emotion while they speak and send it as an additional info to model.\n\nDefault `false` because the model is usually are good at understanding the user's emotion from text.\n\n@default false"
+          },
+          "numFastTurns": {
+            "type": "number",
+            "description": "This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai.\n\nDefault is 0.\n\n@default 0",
+            "minimum": 0
+          }
+        },
+        "required": [
+          "model",
+          "provider"
+        ]
+      },
+      "ExactReplacement": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the exact replacement type. You can use this to replace a specific word or phrase with a different word or phrase.\n\nUsage:\n- Replace \"hello\" with \"hi\": { type: 'exact', key: 'hello', value: 'hi' }\n- Replace \"good morning\" with \"good day\": { type: 'exact', key: 'good morning', value: 'good day' }\n- Replace a specific name: { type: 'exact', key: 'John Doe', value: 'Jane Smith' }\n- Replace an acronym: { type: 'exact', key: 'AI', value: 'Artificial Intelligence' }\n- Replace a company name with its phonetic pronunciation: { type: 'exact', key: 'Vapi', value: 'Vappy' }",
+            "enum": [
+              "exact"
+            ]
+          },
+          "replaceAllEnabled": {
+            "type": "boolean",
+            "description": "This option let's you control whether to replace all instances of the key or only the first one. By default, it only replaces the first instance.\nExamples:\n- For { type: 'exact', key: 'hello', value: 'hi', replaceAllEnabled: false }. Before: \"hello world, hello universe\" | After: \"hi world, hello universe\"\n- For { type: 'exact', key: 'hello', value: 'hi', replaceAllEnabled: true }. Before: \"hello world, hello universe\" | After: \"hi world, hi universe\"\n@default false",
+            "default": false
+          },
+          "key": {
+            "type": "string",
+            "description": "This is the key to replace."
+          },
+          "value": {
+            "type": "string",
+            "description": "This is the value that will replace the match.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "type",
+          "key",
+          "value"
+        ]
+      },
+      "RegexReplacement": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the regex replacement type. You can use this to replace a word or phrase that matches a pattern.\n\nUsage:\n- Replace all numbers with \"some number\": { type: 'regex', regex: '\\\\d+', value: 'some number' }\n- Replace email addresses with \"[EMAIL]\": { type: 'regex', regex: '\\\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Z|a-z]{2,}\\\\b', value: '[EMAIL]' }\n- Replace phone numbers with a formatted version: { type: 'regex', regex: '(\\\\d{3})(\\\\d{3})(\\\\d{4})', value: '($1) $2-$3' }\n- Replace all instances of \"color\" or \"colour\" with \"hue\": { type: 'regex', regex: 'colou?r', value: 'hue' }\n- Capitalize the first letter of every sentence: { type: 'regex', regex: '(?<=\\\\. |^)[a-z]', value: (match) => match.toUpperCase() }",
+            "enum": [
+              "regex"
+            ]
+          },
+          "regex": {
+            "type": "string",
+            "description": "This is the regex pattern to replace.\n\nNote:\n- This works by using the `string.replace` method in Node.JS. Eg. `\"hello there\".replace(/hello/g, \"hi\")` will return `\"hi there\"`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead."
+          },
+          "options": {
+            "description": "These are the options for the regex replacement. Defaults to all disabled.\n\n@default []",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/RegexOption"
+            }
+          },
+          "value": {
+            "type": "string",
+            "description": "This is the value that will replace the match.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "type",
+          "regex",
+          "value"
+        ]
+      },
+      "FormatPlan": {
+        "type": "object",
+        "properties": {
+          "enabled": {
+            "type": "boolean",
+            "description": "This determines whether the chunk is formatted before being sent to the voice provider. This helps with enunciation. This includes phone numbers, emails and addresses. Default `true`.\n\nUsage:\n- To rely on the voice provider's formatting logic, set this to `false`.\n\nIf `voice.chunkPlan.enabled` is `false`, this is automatically `false` since there's no chunk to format.\n\n@default true",
+            "example": true
+          },
+          "numberToDigitsCutoff": {
+            "type": "number",
+            "description": "This is the cutoff after which a number is converted to individual digits instead of being spoken as words.\n\nExample:\n- If cutoff 2025, \"12345\" is converted to \"1 2 3 4 5\" while \"1200\" is converted to \"twelve hundred\".\n\nUsage:\n- If your use case doesn't involve IDs like zip codes, set this to a high value.\n- If your use case involves IDs that are shorter than 5 digits, set this to a lower value.\n\n@default 2025",
+            "minimum": 0,
+            "example": 2025
+          },
+          "replacements": {
+            "type": "array",
+            "description": "These are the custom replacements you can make to the chunk before it is sent to the voice provider.\n\nUsage:\n- To replace a specific word or phrase with a different word or phrase, use the `ExactReplacement` type. Eg. `{ type: 'exact', key: 'hello', value: 'hi' }`\n- To replace a word or phrase that matches a pattern, use the `RegexReplacement` type. Eg. `{ type: 'regex', regex: '\\\\b[a-zA-Z]{5}\\\\b', value: 'hi' }`\n\n@default []",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ExactReplacement",
+                  "title": "ExactReplacement"
+                },
+                {
+                  "$ref": "#/components/schemas/RegexReplacement",
+                  "title": "RegexReplacement"
+                }
+              ]
+            }
+          },
+          "formattersEnabled": {
+            "type": "array",
+            "description": "List of formatters to apply. If not provided, all default formatters will be applied.\nIf provided, only the specified formatters will be applied.\nNote: Some essential formatters like angle bracket removal will always be applied.\n@default undefined",
+            "enum": [
+              "markdown",
+              "asterisk",
+              "quote",
+              "dash",
+              "newline",
+              "colon",
+              "acronym",
+              "dollarAmount",
+              "email",
+              "date",
+              "time",
+              "distance",
+              "unit",
+              "percentage",
+              "phoneNumber",
+              "number",
+              "stripAsterisk"
+            ],
+            "items": {
+              "type": "string",
+              "enum": [
+                "markdown",
+                "asterisk",
+                "quote",
+                "dash",
+                "newline",
+                "colon",
+                "acronym",
+                "dollarAmount",
+                "email",
+                "date",
+                "time",
+                "distance",
+                "unit",
+                "percentage",
+                "phoneNumber",
+                "number",
+                "stripAsterisk"
+              ]
+            }
+          }
+        }
+      },
+      "ChunkPlan": {
+        "type": "object",
+        "properties": {
+          "enabled": {
+            "type": "boolean",
+            "description": "This determines whether the model output is chunked before being sent to the voice provider. Default `true`.\n\nUsage:\n- To rely on the voice provider's audio generation logic, set this to `false`.\n- If seeing issues with quality, set this to `true`.\n\nIf disabled, Vapi-provided audio control tokens like <flush /> will not work.\n\n@default true",
+            "example": true
+          },
+          "minCharacters": {
+            "type": "number",
+            "description": "This is the minimum number of characters in a chunk.\n\nUsage:\n- To increase quality, set this to a higher value.\n- To decrease latency, set this to a lower value.\n\n@default 30",
+            "minimum": 1,
+            "maximum": 80,
+            "example": 30
+          },
+          "punctuationBoundaries": {
+            "type": "array",
+            "description": "These are the punctuations that are considered valid boundaries for a chunk to be created.\n\nUsage:\n- To increase quality, constrain to fewer boundaries.\n- To decrease latency, enable all.\n\nDefault is automatically set to balance the trade-off between quality and latency based on the provider.",
+            "enum": [
+              "。",
+              "，",
+              ".",
+              "!",
+              "?",
+              ";",
+              ")",
+              "،",
+              "۔",
+              "।",
+              "॥",
+              "|",
+              "||",
+              ",",
+              ":"
+            ],
+            "example": [
+              "。",
+              "，",
+              ".",
+              "!",
+              "?",
+              ";",
+              "،",
+              "۔",
+              "।",
+              "॥",
+              "|",
+              "||",
+              ",",
+              ":"
+            ],
+            "items": {
+              "type": "string",
+              "enum": [
+                "。",
+                "，",
+                ".",
+                "!",
+                "?",
+                ";",
+                ")",
+                "،",
+                "۔",
+                "।",
+                "॥",
+                "|",
+                "||",
+                ",",
+                ":"
+              ]
+            }
+          },
+          "formatPlan": {
+            "description": "This is the plan for formatting the chunk before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FormatPlan"
+              }
+            ]
+          }
+        }
+      },
+      "FallbackPlan": {
+        "type": "object",
+        "properties": {
+          "voices": {
+            "type": "array",
+            "description": "This is the list of voices to fallback to in the event that the primary voice provider fails.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/FallbackAzureVoice",
+                  "title": "Azure"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackCartesiaVoice",
+                  "title": "Cartesia"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackHumeVoice",
+                  "title": "Hume"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackCustomVoice",
+                  "title": "CustomVoice"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackDeepgramVoice",
+                  "title": "Deepgram"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackElevenLabsVoice",
+                  "title": "ElevenLabs"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackVapiVoice",
+                  "title": "Vapi"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackLMNTVoice",
+                  "title": "LMNT"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackOpenAIVoice",
+                  "title": "OpenAI"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackPlayHTVoice",
+                  "title": "PlayHT"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackWellSaidVoice",
+                  "title": "WellSaid"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackRimeAIVoice",
+                  "title": "RimeAI"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackSmallestAIVoice",
+                  "title": "Smallest AI"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackTavusVoice",
+                  "title": "TavusVoice"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackNeuphonicVoice",
+                  "title": "Neuphonic"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackSesameVoice",
+                  "title": "Sesame"
+                },
+                {
+                  "$ref": "#/components/schemas/FallbackInworldVoice",
+                  "title": "Inworld"
+                }
+              ]
+            }
+          }
+        },
+        "required": [
+          "voices"
+        ]
+      },
+      "AzureVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "azure"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "andrew",
+                  "brian",
+                  "emma"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "Azure Voice ID"
+              }
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.5,
+            "maximum": 2
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "CartesiaExperimentalControls": {
+        "type": "object",
+        "properties": {
+          "speed": {
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "slowest",
+                  "slow",
+                  "normal",
+                  "fast",
+                  "fastest"
+                ],
+                "example": "normal"
+              },
+              {
+                "type": "number",
+                "minimum": -1,
+                "maximum": 1,
+                "example": 0.5
+              }
+            ]
+          },
+          "emotion": {
+            "type": "string",
+            "enum": [
+              "anger:lowest",
+              "anger:low",
+              "anger:high",
+              "anger:highest",
+              "positivity:lowest",
+              "positivity:low",
+              "positivity:high",
+              "positivity:highest",
+              "surprise:lowest",
+              "surprise:low",
+              "surprise:high",
+              "surprise:highest",
+              "sadness:lowest",
+              "sadness:low",
+              "sadness:high",
+              "sadness:highest",
+              "curiosity:lowest",
+              "curiosity:low",
+              "curiosity:high",
+              "curiosity:highest"
+            ],
+            "example": [
+              "happiness:high"
+            ]
+          }
+        }
+      },
+      "CartesiaGenerationConfigExperimental": {
+        "type": "object",
+        "properties": {
+          "accentLocalization": {
+            "type": "integer",
+            "description": "Toggle accent localization for sonic-3: 0 (disabled, default) or 1 (enabled). When enabled, the voice adapts to match the transcript language accent while preserving vocal characteristics.",
+            "example": 0,
+            "minimum": 0,
+            "maximum": 1,
+            "default": 0
+          }
+        }
+      },
+      "CartesiaGenerationConfig": {
+        "type": "object",
+        "properties": {
+          "speed": {
+            "type": "number",
+            "description": "Fine-grained speed control for sonic-3. Only available for sonic-3 model.",
+            "example": 1,
+            "minimum": 0.6,
+            "maximum": 1.5,
+            "default": 1
+          },
+          "volume": {
+            "type": "number",
+            "description": "Fine-grained volume control for sonic-3. Only available for sonic-3 model.",
+            "example": 1,
+            "minimum": 0.5,
+            "maximum": 2,
+            "default": 1
+          },
+          "experimental": {
+            "description": "Experimental model controls for sonic-3. These are subject to breaking changes.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CartesiaGenerationConfigExperimental"
+              }
+            ]
+          }
+        }
+      },
+      "CartesiaVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "cartesia"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "The ID of the particular voice you want to use."
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. This is optional and will default to the correct model for the voiceId.",
+            "enum": [
+              "sonic-3.5",
+              "sonic-3.5-2026-05-04",
+              "sonic-3",
+              "sonic-3-2026-01-12",
+              "sonic-3-2025-10-27",
+              "sonic-2",
+              "sonic-2-2025-06-11",
+              "sonic-english",
+              "sonic-multilingual",
+              "sonic-preview",
+              "sonic"
+            ],
+            "example": "sonic-english"
+          },
+          "language": {
+            "type": "string",
+            "description": "This is the language that will be used. This is optional and will default to the correct language for the voiceId.",
+            "enum": [
+              "ar",
+              "bg",
+              "bn",
+              "cs",
+              "da",
+              "de",
+              "el",
+              "en",
+              "es",
+              "fi",
+              "fr",
+              "gu",
+              "he",
+              "hi",
+              "hr",
+              "hu",
+              "id",
+              "it",
+              "ja",
+              "ka",
+              "kn",
+              "ko",
+              "ml",
+              "mr",
+              "ms",
+              "nl",
+              "no",
+              "pa",
+              "pl",
+              "pt",
+              "ro",
+              "ru",
+              "sk",
+              "sv",
+              "ta",
+              "te",
+              "th",
+              "tl",
+              "tr",
+              "uk",
+              "vi",
+              "zh"
+            ],
+            "example": "en"
+          },
+          "experimentalControls": {
+            "description": "Experimental controls for Cartesia voice generation",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CartesiaExperimentalControls"
+              }
+            ]
+          },
+          "generationConfig": {
+            "description": "Generation config for fine-grained control of sonic-3 voice output (speed, volume, and experimental controls). Only available for sonic-3 model.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CartesiaGenerationConfig"
+              }
+            ]
+          },
+          "pronunciationDictId": {
+            "type": "string",
+            "description": "Pronunciation dictionary ID for sonic-3. Allows custom pronunciations for specific words. Only available for sonic-3 model.",
+            "example": "dict_abc123"
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "CustomVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used. Use `custom-voice` for providers that are not natively supported.",
+            "enum": [
+              "custom-voice"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "This is the provider-specific ID that will be used. This is passed in the voice request payload to identify the voice to use."
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "server": {
+            "description": "This is where the voice request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"type\": \"voice-request\",\n    \"text\": \"Hello, world!\",\n    \"sampleRate\": 24000,\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected: 1-channel 16-bit raw PCM audio at the sample rate specified in the request. Here is how the response will be piped to the transport:\n```\nresponse.on('data', (chunk: Buffer) => {\n  outputStream.write(chunk);\n});\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "server"
+        ]
+      },
+      "DeepgramVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "deepgram"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "This is the provider-specific ID that will be used.",
+            "enum": [
+              "asteria",
+              "luna",
+              "stella",
+              "athena",
+              "hera",
+              "orion",
+              "arcas",
+              "perseus",
+              "angus",
+              "orpheus",
+              "helios",
+              "zeus",
+              "thalia",
+              "andromeda",
+              "helena",
+              "apollo",
+              "arcas",
+              "aries",
+              "amalthea",
+              "asteria",
+              "athena",
+              "atlas",
+              "aurora",
+              "callista",
+              "cora",
+              "cordelia",
+              "delia",
+              "draco",
+              "electra",
+              "harmonia",
+              "hera",
+              "hermes",
+              "hyperion",
+              "iris",
+              "janus",
+              "juno",
+              "jupiter",
+              "luna",
+              "mars",
+              "minerva",
+              "neptune",
+              "odysseus",
+              "ophelia",
+              "orion",
+              "orpheus",
+              "pandora",
+              "phoebe",
+              "pluto",
+              "saturn",
+              "selene",
+              "theia",
+              "vesta",
+              "zeus",
+              "celeste",
+              "estrella",
+              "nestor",
+              "sirio",
+              "carina",
+              "alvaro",
+              "diana",
+              "aquila",
+              "selena",
+              "javier"
+            ],
+            "title": "This is the Deepgram Voice ID"
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Defaults to 'aura-2' when not specified.",
+            "enum": [
+              "aura",
+              "aura-2"
+            ],
+            "example": "aura-2"
+          },
+          "mipOptOut": {
+            "type": "boolean",
+            "description": "If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out\n\nThis will only be used if you are using your own Deepgram API key.\n\n@default false",
+            "example": false,
+            "default": false
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "ElevenLabsPronunciationDictionaryLocator": {
+        "type": "object",
+        "properties": {
+          "pronunciationDictionaryId": {
+            "type": "string",
+            "description": "This is the ID of the pronunciation dictionary to use.",
+            "title": "This is the ElevenLabs Pronunciation Dictionary ID"
+          },
+          "versionId": {
+            "type": "string",
+            "description": "This is the version ID of the pronunciation dictionary to use.",
+            "title": "This is the ElevenLabs Pronunciation Dictionary Version ID"
+          }
+        },
+        "required": [
+          "pronunciationDictionaryId",
+          "versionId"
+        ]
+      },
+      "ElevenLabsVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "11labs"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "burt",
+                  "marissa",
+                  "andrea",
+                  "sarah",
+                  "phillip",
+                  "steve",
+                  "joseph",
+                  "myra",
+                  "paula",
+                  "ryan",
+                  "drew",
+                  "paul",
+                  "mrb",
+                  "matilda",
+                  "mark"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "11Labs Voice ID"
+              }
+            ]
+          },
+          "stability": {
+            "type": "number",
+            "description": "Defines the stability for voice settings.",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.5
+          },
+          "similarityBoost": {
+            "type": "number",
+            "description": "Defines the similarity boost for voice settings.",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.75
+          },
+          "style": {
+            "type": "number",
+            "description": "Defines the style for voice settings.",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0
+          },
+          "useSpeakerBoost": {
+            "type": "boolean",
+            "description": "Defines the use speaker boost for voice settings.",
+            "example": false
+          },
+          "speed": {
+            "type": "number",
+            "description": "Defines the speed for voice settings.",
+            "minimum": 0.7,
+            "maximum": 1.2,
+            "example": 0.9
+          },
+          "optimizeStreamingLatency": {
+            "type": "number",
+            "description": "Defines the optimize streaming latency for voice settings. Defaults to 3.",
+            "minimum": 0,
+            "maximum": 4,
+            "example": 3
+          },
+          "enableSsmlParsing": {
+            "type": "boolean",
+            "description": "This enables the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Defaults to false to save latency.\n\n@default false",
+            "example": false
+          },
+          "autoMode": {
+            "type": "boolean",
+            "description": "Defines the auto mode for voice settings. Defaults to false.",
+            "example": false
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified.",
+            "enum": [
+              "eleven_multilingual_v2",
+              "eleven_turbo_v2",
+              "eleven_turbo_v2_5",
+              "eleven_flash_v2",
+              "eleven_flash_v2_5",
+              "eleven_monolingual_v1",
+              "eleven_v3"
+            ],
+            "example": "eleven_turbo_v2_5"
+          },
+          "language": {
+            "type": "string",
+            "description": "This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided."
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "pronunciationDictionaryLocators": {
+            "description": "This is the pronunciation dictionary locators to use.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ElevenLabsPronunciationDictionaryLocator"
+            }
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "WellSaidVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "wellsaid"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "The WellSaid speaker ID to synthesize."
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used.",
+            "enum": [
+              "caruso",
+              "legacy"
+            ]
+          },
+          "enableSsml": {
+            "type": "boolean",
+            "description": "Enables limited SSML translation for input text."
+          },
+          "libraryIds": {
+            "description": "Array of library IDs to use for voice synthesis.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "HumeVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "hume"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used.",
+            "enum": [
+              "octave",
+              "octave2"
+            ],
+            "example": "octave2"
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "The ID of the particular voice you want to use."
+          },
+          "isCustomHumeVoice": {
+            "type": "boolean",
+            "description": "Indicates whether the chosen voice is a preset Hume AI voice or a custom voice.",
+            "example": false
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "description": {
+            "type": "string",
+            "description": "Natural language instructions describing how the synthesized speech should sound, including but not limited to tone, intonation, pacing, and accent (e.g., 'a soft, gentle voice with a strong British accent').\n\nIf a Voice is specified in the request, this description serves as acting instructions.\nIf no Voice is specified, a new voice is generated based on this description."
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "LMNTVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "lmnt"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "amy",
+                  "ansel",
+                  "autumn",
+                  "ava",
+                  "brandon",
+                  "caleb",
+                  "cassian",
+                  "chloe",
+                  "dalton",
+                  "daniel",
+                  "dustin",
+                  "elowen",
+                  "evander",
+                  "huxley",
+                  "james",
+                  "juniper",
+                  "kennedy",
+                  "lauren",
+                  "leah",
+                  "lily",
+                  "lucas",
+                  "magnus",
+                  "miles",
+                  "morgan",
+                  "natalie",
+                  "nathan",
+                  "noah",
+                  "nyssa",
+                  "oliver",
+                  "paige",
+                  "ryan",
+                  "sadie",
+                  "sophie",
+                  "stella",
+                  "terrence",
+                  "tyler",
+                  "vesper",
+                  "violet",
+                  "warrick",
+                  "zain",
+                  "zeke",
+                  "zoe"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "LMNT Voice ID"
+              }
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.25,
+            "maximum": 2,
+            "example": null
+          },
+          "language": {
+            "description": "Two letter ISO 639-1 language code. Use \"auto\" for auto-detection.",
+            "enum": [
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu",
+              "auto"
+            ],
+            "example": "en",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "aa",
+                  "ab",
+                  "ae",
+                  "af",
+                  "ak",
+                  "am",
+                  "an",
+                  "ar",
+                  "as",
+                  "av",
+                  "ay",
+                  "az",
+                  "ba",
+                  "be",
+                  "bg",
+                  "bh",
+                  "bi",
+                  "bm",
+                  "bn",
+                  "bo",
+                  "br",
+                  "bs",
+                  "ca",
+                  "ce",
+                  "ch",
+                  "co",
+                  "cr",
+                  "cs",
+                  "cu",
+                  "cv",
+                  "cy",
+                  "da",
+                  "de",
+                  "dv",
+                  "dz",
+                  "ee",
+                  "el",
+                  "en",
+                  "eo",
+                  "es",
+                  "et",
+                  "eu",
+                  "fa",
+                  "ff",
+                  "fi",
+                  "fj",
+                  "fo",
+                  "fr",
+                  "fy",
+                  "ga",
+                  "gd",
+                  "gl",
+                  "gn",
+                  "gu",
+                  "gv",
+                  "ha",
+                  "he",
+                  "hi",
+                  "ho",
+                  "hr",
+                  "ht",
+                  "hu",
+                  "hy",
+                  "hz",
+                  "ia",
+                  "id",
+                  "ie",
+                  "ig",
+                  "ii",
+                  "ik",
+                  "io",
+                  "is",
+                  "it",
+                  "iu",
+                  "ja",
+                  "jv",
+                  "ka",
+                  "kg",
+                  "ki",
+                  "kj",
+                  "kk",
+                  "kl",
+                  "km",
+                  "kn",
+                  "ko",
+                  "kr",
+                  "ks",
+                  "ku",
+                  "kv",
+                  "kw",
+                  "ky",
+                  "la",
+                  "lb",
+                  "lg",
+                  "li",
+                  "ln",
+                  "lo",
+                  "lt",
+                  "lu",
+                  "lv",
+                  "mg",
+                  "mh",
+                  "mi",
+                  "mk",
+                  "ml",
+                  "mn",
+                  "mr",
+                  "ms",
+                  "mt",
+                  "my",
+                  "na",
+                  "nb",
+                  "nd",
+                  "ne",
+                  "ng",
+                  "nl",
+                  "nn",
+                  "no",
+                  "nr",
+                  "nv",
+                  "ny",
+                  "oc",
+                  "oj",
+                  "om",
+                  "or",
+                  "os",
+                  "pa",
+                  "pi",
+                  "pl",
+                  "ps",
+                  "pt",
+                  "qu",
+                  "rm",
+                  "rn",
+                  "ro",
+                  "ru",
+                  "rw",
+                  "sa",
+                  "sc",
+                  "sd",
+                  "se",
+                  "sg",
+                  "si",
+                  "sk",
+                  "sl",
+                  "sm",
+                  "sn",
+                  "so",
+                  "sq",
+                  "sr",
+                  "ss",
+                  "st",
+                  "su",
+                  "sv",
+                  "sw",
+                  "ta",
+                  "te",
+                  "tg",
+                  "th",
+                  "ti",
+                  "tk",
+                  "tl",
+                  "tn",
+                  "to",
+                  "tr",
+                  "ts",
+                  "tt",
+                  "tw",
+                  "ty",
+                  "ug",
+                  "uk",
+                  "ur",
+                  "uz",
+                  "ve",
+                  "vi",
+                  "vo",
+                  "wa",
+                  "wo",
+                  "xh",
+                  "yi",
+                  "yue",
+                  "yo",
+                  "za",
+                  "zh",
+                  "zu"
+                ],
+                "title": "ISO 639-1 Language Code"
+              },
+              {
+                "type": "string",
+                "enum": [
+                  "auto"
+                ],
+                "title": "Auto-detect"
+              }
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "NeuphonicVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "neuphonic"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "Neuphonic Voice ID"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Defaults to 'neu_fast' if not specified.",
+            "enum": [
+              "neu_hq",
+              "neu_fast"
+            ],
+            "example": "neu_fast"
+          },
+          "language": {
+            "type": "object",
+            "description": "This is the language (ISO 639-1) that is enforced for the model.",
+            "example": "en"
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.25,
+            "maximum": 2,
+            "example": null
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId",
+          "language"
+        ]
+      },
+      "OpenAIVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "openai"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.\nPlease note that ash, ballad, coral, sage, and verse may only be used with realtime models.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "alloy",
+                  "echo",
+                  "fable",
+                  "onyx",
+                  "nova",
+                  "shimmer",
+                  "marin",
+                  "cedar"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "OpenAI Voice ID"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used for text-to-speech.",
+            "enum": [
+              "tts-1",
+              "tts-1-hd",
+              "gpt-4o-mini-tts"
+            ]
+          },
+          "instructions": {
+            "type": "string",
+            "description": "This is a prompt that allows you to control the voice of your generated audio.\nDoes not work with 'tts-1' or 'tts-1-hd' models.",
+            "maxLength": 10000
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.25,
+            "maximum": 4,
+            "example": null
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "PlayHTVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "playht"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "jennifer",
+                  "melissa",
+                  "will",
+                  "chris",
+                  "matt",
+                  "jack",
+                  "ruby",
+                  "davis",
+                  "donna",
+                  "michael"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "PlayHT Voice ID"
+              }
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.1,
+            "maximum": 5,
+            "example": null
+          },
+          "temperature": {
+            "type": "number",
+            "description": "A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice.",
+            "minimum": 0.1,
+            "maximum": 2,
+            "example": null
+          },
+          "emotion": {
+            "type": "string",
+            "description": "An emotion to be applied to the speech.",
+            "enum": [
+              "female_happy",
+              "female_sad",
+              "female_angry",
+              "female_fearful",
+              "female_disgust",
+              "female_surprised",
+              "male_happy",
+              "male_sad",
+              "male_angry",
+              "male_fearful",
+              "male_disgust",
+              "male_surprised"
+            ],
+            "example": null
+          },
+          "voiceGuidance": {
+            "type": "number",
+            "description": "A number between 1 and 6. Use lower numbers to reduce how unique your chosen voice will be compared to other voices.",
+            "minimum": 1,
+            "maximum": 6,
+            "example": null
+          },
+          "styleGuidance": {
+            "type": "number",
+            "description": "A number between 1 and 30. Use lower numbers to to reduce how strong your chosen emotion will be. Higher numbers will create a very emotional performance.",
+            "minimum": 1,
+            "maximum": 30,
+            "example": null
+          },
+          "textGuidance": {
+            "type": "number",
+            "description": "A number between 1 and 2. This number influences how closely the generated speech adheres to the input text. Use lower values to create more fluid speech, but with a higher chance of deviating from the input text. Higher numbers will make the generated speech more accurate to the input text, ensuring that the words spoken align closely with the provided text.",
+            "minimum": 1,
+            "maximum": 2,
+            "example": null
+          },
+          "model": {
+            "type": "string",
+            "description": "Playht voice model/engine to use.",
+            "enum": [
+              "PlayHT2.0",
+              "PlayHT2.0-turbo",
+              "Play3.0-mini",
+              "PlayDialog"
+            ]
+          },
+          "language": {
+            "type": "string",
+            "description": "The language to use for the speech.",
+            "enum": [
+              "afrikaans",
+              "albanian",
+              "amharic",
+              "arabic",
+              "bengali",
+              "bulgarian",
+              "catalan",
+              "croatian",
+              "czech",
+              "danish",
+              "dutch",
+              "english",
+              "french",
+              "galician",
+              "german",
+              "greek",
+              "hebrew",
+              "hindi",
+              "hungarian",
+              "indonesian",
+              "italian",
+              "japanese",
+              "korean",
+              "malay",
+              "mandarin",
+              "polish",
+              "portuguese",
+              "russian",
+              "serbian",
+              "spanish",
+              "swedish",
+              "tagalog",
+              "thai",
+              "turkish",
+              "ukrainian",
+              "urdu",
+              "xhosa"
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "RimeAIVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "rime-ai"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "cove",
+                  "moon",
+                  "wildflower",
+                  "eva",
+                  "amber",
+                  "maya",
+                  "lagoon",
+                  "breeze",
+                  "helen",
+                  "joy",
+                  "marsh",
+                  "creek",
+                  "cedar",
+                  "alpine",
+                  "summit",
+                  "nicholas",
+                  "tyler",
+                  "colin",
+                  "hank",
+                  "thunder",
+                  "astra",
+                  "eucalyptus",
+                  "moraine",
+                  "peak",
+                  "tundra",
+                  "mesa_extra",
+                  "talon",
+                  "marlu",
+                  "glacier",
+                  "falcon",
+                  "luna",
+                  "celeste",
+                  "estelle",
+                  "andromeda",
+                  "esther",
+                  "lyra",
+                  "lintel",
+                  "oculus",
+                  "vespera",
+                  "transom",
+                  "bond",
+                  "arcade",
+                  "atrium",
+                  "cupola",
+                  "fern",
+                  "sirius",
+                  "orion",
+                  "masonry",
+                  "albion",
+                  "parapet"
+                ],
+                "title": "Suggested Voice Options",
+                "description": "Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions."
+              },
+              {
+                "type": "string",
+                "title": "Any Rime AI Voice ID",
+                "description": "Any valid Rime AI voice ID. See https://docs.rime.ai/docs/voices for the full catalog."
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Defaults to 'arcana' when not specified.",
+            "enum": [
+              "arcana",
+              "mistv2",
+              "mist"
+            ],
+            "example": "arcana"
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.1,
+            "example": null
+          },
+          "pauseBetweenBrackets": {
+            "type": "boolean",
+            "description": "This is a flag that controls whether to add slight pauses using angle brackets. Example: \"Hi. <200> I'd love to have a conversation with you.\" adds a 200ms pause between the first and second sentences.",
+            "example": false
+          },
+          "phonemizeBetweenBrackets": {
+            "type": "boolean",
+            "description": "This is a flag that controls whether text inside brackets should be phonemized (converted to phonetic pronunciation) - Example: \"{h'El.o} World\" will pronounce \"Hello\" as expected.",
+            "example": false
+          },
+          "reduceLatency": {
+            "type": "boolean",
+            "description": "This is a flag that controls whether to optimize for reduced latency in streaming. https://docs.rime.ai/api-reference/endpoint/websockets#param-reduce-latency",
+            "example": false
+          },
+          "inlineSpeedAlpha": {
+            "type": "string",
+            "description": "This is a string that allows inline speed control using alpha notation. https://docs.rime.ai/api-reference/endpoint/websockets#param-inline-speed-alpha",
+            "example": null
+          },
+          "language": {
+            "type": "string",
+            "description": "Language for speech synthesis. Uses ISO 639 codes. Supported: en, es, de, fr, ar, hi, ja, he, pt, ta, si.",
+            "enum": [
+              "en",
+              "es",
+              "de",
+              "fr",
+              "ar",
+              "hi",
+              "ja",
+              "he",
+              "pt",
+              "ta",
+              "si"
+            ],
+            "example": "en"
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "SesameVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "sesame"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "This is the provider-specific ID that will be used.",
+            "title": "Sesame Voice ID. This should be either a name (a built-in voice) or a UUID (a custom voice)."
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used.",
+            "enum": [
+              "csm-1b"
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId",
+          "model"
+        ]
+      },
+      "SmallestAIVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "smallest-ai"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "emily",
+                  "jasmine",
+                  "arman",
+                  "james",
+                  "mithali",
+                  "aravind",
+                  "raj",
+                  "diya",
+                  "raman",
+                  "ananya",
+                  "isha",
+                  "william",
+                  "aarav",
+                  "monika",
+                  "niharika",
+                  "deepika",
+                  "raghav",
+                  "kajal",
+                  "radhika",
+                  "mansi",
+                  "nisha",
+                  "saurabh",
+                  "pooja",
+                  "saina",
+                  "sanya"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "Smallest AI Voice ID"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "Smallest AI voice model to use. Defaults to 'lightning' when not specified.",
+            "enum": [
+              "lightning"
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "example": null
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "TavusConversationProperties": {
+        "type": "object",
+        "properties": {
+          "maxCallDuration": {
+            "type": "number",
+            "description": "The maximum duration of the call in seconds. The default `maxCallDuration` is 3600 seconds (1 hour).\nOnce the time limit specified by this parameter has been reached, the conversation will automatically shut down."
+          },
+          "participantLeftTimeout": {
+            "type": "number",
+            "description": "The duration in seconds after which the call will be automatically shut down once the last participant leaves."
+          },
+          "participantAbsentTimeout": {
+            "type": "number",
+            "description": "Starting from conversation creation, the duration in seconds after which the call will be automatically shut down if no participant joins the call.\nDefault is 300 seconds (5 minutes)."
+          },
+          "enableRecording": {
+            "type": "boolean",
+            "description": "If true, the user will be able to record the conversation."
+          },
+          "enableTranscription": {
+            "type": "boolean",
+            "description": "If true, the user will be able to transcribe the conversation.\nYou can find more instructions on displaying transcriptions if you are using your custom DailyJS components here.\nYou need to have an event listener on Daily that listens for `app-messages`."
+          },
+          "applyGreenscreen": {
+            "type": "boolean",
+            "description": "If true, the background will be replaced with a greenscreen (RGB values: `[0, 255, 155]`).\nYou can use WebGL on the frontend to make the greenscreen transparent or change its color."
+          },
+          "language": {
+            "type": "string",
+            "description": "The language of the conversation. Please provide the **full language name**, not the two-letter code.\nIf you are using your own TTS voice, please ensure it supports the language you provide.\nIf you are using a stock replica or default persona, please note that only ElevenLabs and Cartesia supported languages are available.\nYou can find a full list of supported languages for Cartesia here, for ElevenLabs here, and for PlayHT here."
+          },
+          "recordingS3BucketName": {
+            "type": "string",
+            "description": "The name of the S3 bucket where the recording will be stored."
+          },
+          "recordingS3BucketRegion": {
+            "type": "string",
+            "description": "The region of the S3 bucket where the recording will be stored."
+          },
+          "awsAssumeRoleArn": {
+            "type": "string",
+            "description": "The ARN of the role that will be assumed to access the S3 bucket."
+          }
+        }
+      },
+      "TavusVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "tavus"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "r52da2535a"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "Tavus Voice ID"
+              }
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "personaId": {
+            "type": "string",
+            "description": "This is the unique identifier for the persona that the replica will use in the conversation."
+          },
+          "callbackUrl": {
+            "type": "string",
+            "description": "This is the url that will receive webhooks with updates regarding the conversation state."
+          },
+          "conversationName": {
+            "type": "string",
+            "description": "This is the name for the conversation."
+          },
+          "conversationalContext": {
+            "type": "string",
+            "description": "This is the context that will be appended to any context provided in the persona, if one is provided."
+          },
+          "customGreeting": {
+            "type": "string",
+            "description": "This is the custom greeting that the replica will give once a participant joines the conversation."
+          },
+          "properties": {
+            "description": "These are optional properties used to customize the conversation.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TavusConversationProperties"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "VapiPronunciationDictionaryLocator": {
+        "type": "object",
+        "properties": {
+          "pronunciationDictId": {
+            "type": "string",
+            "description": "The pronunciation dictionary ID",
+            "example": "pdict_abc123"
+          },
+          "versionId": {
+            "type": "string",
+            "description": "Version ID (only required for ElevenLabs, ignored for Cartesia)",
+            "example": "ver_abc123"
+          }
+        },
+        "required": [
+          "pronunciationDictId"
+        ]
+      },
+      "VapiVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "vapi"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "The voices provided by Vapi",
+            "enum": [
+              "Clara",
+              "Godfrey",
+              "Layla",
+              "Sid",
+              "Gustavo",
+              "Elliot",
+              "Kylie",
+              "Rohan",
+              "Lily",
+              "Savannah",
+              "Hana",
+              "Neha",
+              "Cole",
+              "Harry",
+              "Paige",
+              "Spencer",
+              "Nico",
+              "Kai",
+              "Emma",
+              "Sagar",
+              "Neil",
+              "Naina",
+              "Leah",
+              "Tara",
+              "Jess",
+              "Leo",
+              "Dan",
+              "Mia",
+              "Zac",
+              "Zoe"
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.\n\n@default 1",
+            "minimum": 0.25,
+            "maximum": 2,
+            "default": 1
+          },
+          "pronunciationDictionary": {
+            "description": "List of pronunciation dictionary locators for custom word pronunciations.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/VapiPronunciationDictionaryLocator"
+            }
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "InworldVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "inworld"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "Available voices by language:\n• en: Alex, Ashley, Craig, Deborah, Dennis, Edward, Elizabeth, Hades, Julia, Pixie, Mark, Olivia, Priya, Ronald, Sarah, Shaun, Theodore, Timothy, Wendy, Dominus, Hana, Clive, Carter, Blake, Luna\n• zh: Yichen, Xiaoyin, Xinyi, Jing\n• nl: Erik, Katrien, Lennart, Lore\n• fr: Alain, Hélène, Mathieu, Étienne\n• de: Johanna, Josef\n• it: Gianni, Orietta\n• ja: Asuka, Satoshi\n• ko: Hyunwoo, Minji, Seojun, Yoona\n• pl: Szymon, Wojciech\n• pt: Heitor, Maitê\n• es: Diego, Lupita, Miguel, Rafael\n• ru: Svetlana, Elena, Dmitry, Nikolai\n• hi: Riya, Manoj\n• he: Yael, Oren\n• ar: Nour, Omar",
+            "maxLength": 120,
+            "title": "Inworld Voice ID",
+            "enum": [
+              "Alex",
+              "Ashley",
+              "Craig",
+              "Deborah",
+              "Dennis",
+              "Edward",
+              "Elizabeth",
+              "Hades",
+              "Julia",
+              "Pixie",
+              "Mark",
+              "Olivia",
+              "Priya",
+              "Ronald",
+              "Sarah",
+              "Shaun",
+              "Theodore",
+              "Timothy",
+              "Wendy",
+              "Dominus",
+              "Hana",
+              "Clive",
+              "Carter",
+              "Blake",
+              "Luna",
+              "Yichen",
+              "Xiaoyin",
+              "Xinyi",
+              "Jing",
+              "Erik",
+              "Katrien",
+              "Lennart",
+              "Lore",
+              "Alain",
+              "Hélène",
+              "Mathieu",
+              "Étienne",
+              "Johanna",
+              "Josef",
+              "Gianni",
+              "Orietta",
+              "Asuka",
+              "Satoshi",
+              "Hyunwoo",
+              "Minji",
+              "Seojun",
+              "Yoona",
+              "Szymon",
+              "Wojciech",
+              "Heitor",
+              "Maitê",
+              "Diego",
+              "Lupita",
+              "Miguel",
+              "Rafael",
+              "Svetlana",
+              "Elena",
+              "Dmitry",
+              "Nikolai",
+              "Riya",
+              "Manoj",
+              "Yael",
+              "Oren",
+              "Nour",
+              "Omar"
+            ],
+            "example": "Alex"
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used.",
+            "enum": [
+              "inworld-tts-1"
+            ],
+            "default": "inworld-tts-1"
+          },
+          "languageCode": {
+            "type": "string",
+            "description": "Language code for Inworld TTS synthesis",
+            "default": "en",
+            "enum": [
+              "en",
+              "zh",
+              "ko",
+              "nl",
+              "fr",
+              "es",
+              "ja",
+              "de",
+              "it",
+              "pl",
+              "pt",
+              "ru",
+              "hi",
+              "he",
+              "ar"
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature of 1.1 will be used. The temperature parameter controls variance.\nHigher values will make the output more random and can lead to more expressive results. Lower values will make it more deterministic.\nSee https://docs.inworld.ai/docs/tts/capabilities/generating-audio#additional-configurations for more details.",
+            "minimum": 0.1,
+            "maximum": 2,
+            "default": 1.1,
+            "example": null
+          },
+          "speakingRate": {
+            "type": "number",
+            "description": "A floating point number between 0.5, inclusive, and 1.5, inclusive. If equal to null or not provided, the model's default speaking speed of 1.0 will be used.\nValues above 0.8 are recommended for higher quality.\nSee https://docs.inworld.ai/docs/tts/capabilities/generating-audio#additional-configurations for more details.",
+            "minimum": 0.5,
+            "maximum": 1.5,
+            "default": 1,
+            "example": null
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "MinimaxVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "minimax"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "This is the provider-specific ID that will be used. Use a voice from MINIMAX_PREDEFINED_VOICES or a custom cloned voice ID.",
+            "title": "This is the Minimax Voice ID"
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Options are 'speech-02-hd' and 'speech-02-turbo'.\nspeech-02-hd is optimized for high-fidelity applications like voiceovers and audiobooks.\nspeech-02-turbo is designed for real-time applications with low latency.\n\n@default \"speech-02-turbo\"",
+            "enum": [
+              "speech-02-hd",
+              "speech-02-turbo",
+              "speech-2.5-turbo-preview"
+            ],
+            "example": "speech-02-turbo",
+            "default": "speech-02-turbo"
+          },
+          "emotion": {
+            "type": "string",
+            "description": "The emotion to use for the voice. If not provided, will use auto-detect mode.\nOptions include: 'happy', 'sad', 'angry', 'fearful', 'surprised', 'disgusted', 'neutral'",
+            "example": "happy"
+          },
+          "subtitleType": {
+            "type": "string",
+            "description": "Controls the granularity of subtitle/timing data returned by Minimax\nduring synthesis. Set to 'word' to receive per-word timestamps in\nassistant.speechStarted events for karaoke-style caption rendering.\n\n@default \"sentence\"",
+            "enum": [
+              "word",
+              "sentence"
+            ],
+            "default": "sentence"
+          },
+          "pitch": {
+            "type": "number",
+            "description": "Voice pitch adjustment. Range from -12 to 12 semitones.\n@default 0",
+            "minimum": -12,
+            "maximum": 12,
+            "example": 0,
+            "default": 0
+          },
+          "speed": {
+            "type": "number",
+            "description": "Voice speed adjustment. Range from 0.5 to 2.0.\n@default 1.0",
+            "minimum": 0.5,
+            "maximum": 2,
+            "example": 1,
+            "default": 1
+          },
+          "volume": {
+            "type": "number",
+            "description": "Voice volume adjustment. Range from 0.5 to 2.0.\n@default 1.0",
+            "minimum": 0.5,
+            "maximum": 2,
+            "example": 1,
+            "default": 1
+          },
+          "region": {
+            "type": "string",
+            "description": "The region for Minimax API. Defaults to \"worldwide\".",
+            "enum": [
+              "worldwide",
+              "china"
+            ],
+            "default": "worldwide"
+          },
+          "languageBoost": {
+            "type": "string",
+            "description": "Language hint for MiniMax T2A. Example: yue (Cantonese), zh (Chinese), en (English).",
+            "enum": [
+              "Chinese",
+              "Chinese,Yue",
+              "English",
+              "Arabic",
+              "Russian",
+              "Spanish",
+              "French",
+              "Portuguese",
+              "German",
+              "Turkish",
+              "Dutch",
+              "Ukrainian",
+              "Vietnamese",
+              "Indonesian",
+              "Japanese",
+              "Italian",
+              "Korean",
+              "Thai",
+              "Polish",
+              "Romanian",
+              "Greek",
+              "Czech",
+              "Finnish",
+              "Hindi",
+              "Bulgarian",
+              "Danish",
+              "Hebrew",
+              "Malay",
+              "Persian",
+              "Slovak",
+              "Swedish",
+              "Croatian",
+              "Filipino",
+              "Hungarian",
+              "Norwegian",
+              "Slovenian",
+              "Catalan",
+              "Nynorsk",
+              "Tamil",
+              "Afrikaans",
+              "auto"
+            ]
+          },
+          "textNormalizationEnabled": {
+            "type": "boolean",
+            "description": "Enable MiniMax text normalization to improve number reading and formatting.",
+            "default": true
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          },
+          "fallbackPlan": {
+            "description": "This is the plan for voice provider fallbacks in the event that the primary voice provider fails.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/FallbackPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackMinimaxVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "minimax"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "This is the provider-specific ID that will be used. Use a voice from MINIMAX_PREDEFINED_VOICES or a custom cloned voice ID.",
+            "title": "This is the Minimax Voice ID"
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Options are 'speech-02-hd' and 'speech-02-turbo'.\nspeech-02-hd is optimized for high-fidelity applications like voiceovers and audiobooks.\nspeech-02-turbo is designed for real-time applications with low latency.\n\n@default \"speech-02-turbo\"",
+            "enum": [
+              "speech-02-hd",
+              "speech-02-turbo",
+              "speech-2.5-turbo-preview"
+            ],
+            "example": "speech-02-turbo",
+            "default": "speech-02-turbo"
+          },
+          "emotion": {
+            "type": "string",
+            "description": "The emotion to use for the voice. If not provided, will use auto-detect mode.\nOptions include: 'happy', 'sad', 'angry', 'fearful', 'surprised', 'disgusted', 'neutral'",
+            "example": "happy"
+          },
+          "subtitleType": {
+            "type": "string",
+            "description": "Controls the granularity of subtitle/timing data returned by Minimax\nduring synthesis. Set to 'word' to receive per-word timestamps in\nassistant.speechStarted events for karaoke-style caption rendering.\n\n@default \"sentence\"",
+            "enum": [
+              "word",
+              "sentence"
+            ],
+            "default": "sentence"
+          },
+          "pitch": {
+            "type": "number",
+            "description": "Voice pitch adjustment. Range from -12 to 12 semitones.\n@default 0",
+            "minimum": -12,
+            "maximum": 12,
+            "example": 0,
+            "default": 0
+          },
+          "speed": {
+            "type": "number",
+            "description": "Voice speed adjustment. Range from 0.5 to 2.0.\n@default 1.0",
+            "minimum": 0.5,
+            "maximum": 2,
+            "example": 1,
+            "default": 1
+          },
+          "volume": {
+            "type": "number",
+            "description": "Voice volume adjustment. Range from 0.5 to 2.0.\n@default 1.0",
+            "minimum": 0.5,
+            "maximum": 2,
+            "example": 1,
+            "default": 1
+          },
+          "region": {
+            "type": "string",
+            "description": "The region for Minimax API. Defaults to \"worldwide\".",
+            "enum": [
+              "worldwide",
+              "china"
+            ],
+            "default": "worldwide"
+          },
+          "languageBoost": {
+            "type": "string",
+            "description": "Language hint for MiniMax T2A. Example: yue (Cantonese), zh (Chinese), en (English).",
+            "enum": [
+              "Chinese",
+              "Chinese,Yue",
+              "English",
+              "Arabic",
+              "Russian",
+              "Spanish",
+              "French",
+              "Portuguese",
+              "German",
+              "Turkish",
+              "Dutch",
+              "Ukrainian",
+              "Vietnamese",
+              "Indonesian",
+              "Japanese",
+              "Italian",
+              "Korean",
+              "Thai",
+              "Polish",
+              "Romanian",
+              "Greek",
+              "Czech",
+              "Finnish",
+              "Hindi",
+              "Bulgarian",
+              "Danish",
+              "Hebrew",
+              "Malay",
+              "Persian",
+              "Slovak",
+              "Swedish",
+              "Croatian",
+              "Filipino",
+              "Hungarian",
+              "Norwegian",
+              "Slovenian",
+              "Catalan",
+              "Nynorsk",
+              "Tamil",
+              "Afrikaans",
+              "auto"
+            ]
+          },
+          "textNormalizationEnabled": {
+            "type": "boolean",
+            "description": "Enable MiniMax text normalization to improve number reading and formatting.",
+            "default": true
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackWellSaidVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "wellsaid"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "The WellSaid speaker ID to synthesize."
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used.",
+            "enum": [
+              "caruso",
+              "legacy"
+            ]
+          },
+          "enableSsml": {
+            "type": "boolean",
+            "description": "Enables limited SSML translation for input text."
+          },
+          "libraryIds": {
+            "description": "Array of library IDs to use for voice synthesis.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackAzureVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "azure"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "andrew",
+                  "brian",
+                  "emma"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "Azure Voice ID"
+              }
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.5,
+            "maximum": 2
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackCartesiaVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "cartesia"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "The ID of the particular voice you want to use."
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. This is optional and will default to the correct model for the voiceId.",
+            "enum": [
+              "sonic-3.5",
+              "sonic-3.5-2026-05-04",
+              "sonic-3",
+              "sonic-3-2026-01-12",
+              "sonic-3-2025-10-27",
+              "sonic-2",
+              "sonic-2-2025-06-11",
+              "sonic-english",
+              "sonic-multilingual",
+              "sonic-preview",
+              "sonic"
+            ],
+            "example": "sonic-english"
+          },
+          "language": {
+            "type": "string",
+            "description": "This is the language that will be used. This is optional and will default to the correct language for the voiceId.",
+            "enum": [
+              "ar",
+              "bg",
+              "bn",
+              "cs",
+              "da",
+              "de",
+              "el",
+              "en",
+              "es",
+              "fi",
+              "fr",
+              "gu",
+              "he",
+              "hi",
+              "hr",
+              "hu",
+              "id",
+              "it",
+              "ja",
+              "ka",
+              "kn",
+              "ko",
+              "ml",
+              "mr",
+              "ms",
+              "nl",
+              "no",
+              "pa",
+              "pl",
+              "pt",
+              "ro",
+              "ru",
+              "sk",
+              "sv",
+              "ta",
+              "te",
+              "th",
+              "tl",
+              "tr",
+              "uk",
+              "vi",
+              "zh"
+            ],
+            "example": "en"
+          },
+          "experimentalControls": {
+            "description": "Experimental controls for Cartesia voice generation",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CartesiaExperimentalControls"
+              }
+            ]
+          },
+          "generationConfig": {
+            "description": "Generation config for fine-grained control of sonic-3 voice output (speed, volume, and experimental controls). Only available for sonic-3 model.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CartesiaGenerationConfig"
+              }
+            ]
+          },
+          "pronunciationDictId": {
+            "type": "string",
+            "description": "Pronunciation dictionary ID for sonic-3. Allows custom pronunciations for specific words. Only available for sonic-3 model.",
+            "example": "dict_abc123"
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackCustomVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used. Use `custom-voice` for providers that are not natively supported.",
+            "enum": [
+              "custom-voice"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "This is the provider-specific ID that will be used. This is passed in the voice request payload to identify the voice to use."
+          },
+          "server": {
+            "description": "This is where the voice request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"type\": \"voice-request\",\n    \"text\": \"Hello, world!\",\n    \"sampleRate\": 24000,\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected: 1-channel 16-bit raw PCM audio at the sample rate specified in the request. Here is how the response will be piped to the transport:\n```\nresponse.on('data', (chunk: Buffer) => {\n  outputStream.write(chunk);\n});\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "server"
+        ]
+      },
+      "FallbackDeepgramVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "deepgram"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "This is the provider-specific ID that will be used.",
+            "enum": [
+              "asteria",
+              "luna",
+              "stella",
+              "athena",
+              "hera",
+              "orion",
+              "arcas",
+              "perseus",
+              "angus",
+              "orpheus",
+              "helios",
+              "zeus",
+              "thalia",
+              "andromeda",
+              "helena",
+              "apollo",
+              "arcas",
+              "aries",
+              "amalthea",
+              "asteria",
+              "athena",
+              "atlas",
+              "aurora",
+              "callista",
+              "cora",
+              "cordelia",
+              "delia",
+              "draco",
+              "electra",
+              "harmonia",
+              "hera",
+              "hermes",
+              "hyperion",
+              "iris",
+              "janus",
+              "juno",
+              "jupiter",
+              "luna",
+              "mars",
+              "minerva",
+              "neptune",
+              "odysseus",
+              "ophelia",
+              "orion",
+              "orpheus",
+              "pandora",
+              "phoebe",
+              "pluto",
+              "saturn",
+              "selene",
+              "theia",
+              "vesta",
+              "zeus",
+              "celeste",
+              "estrella",
+              "nestor",
+              "sirio",
+              "carina",
+              "alvaro",
+              "diana",
+              "aquila",
+              "selena",
+              "javier"
+            ],
+            "title": "This is the Deepgram Voice ID"
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Defaults to 'aura-2' when not specified.",
+            "enum": [
+              "aura",
+              "aura-2"
+            ],
+            "example": "aura-2"
+          },
+          "mipOptOut": {
+            "type": "boolean",
+            "description": "If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out\n\nThis will only be used if you are using your own Deepgram API key.\n\n@default false",
+            "example": false,
+            "default": false
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackElevenLabsVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "11labs"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "burt",
+                  "marissa",
+                  "andrea",
+                  "sarah",
+                  "phillip",
+                  "steve",
+                  "joseph",
+                  "myra",
+                  "paula",
+                  "ryan",
+                  "drew",
+                  "paul",
+                  "mrb",
+                  "matilda",
+                  "mark"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "11Labs Voice ID"
+              }
+            ]
+          },
+          "stability": {
+            "type": "number",
+            "description": "Defines the stability for voice settings.",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.5
+          },
+          "similarityBoost": {
+            "type": "number",
+            "description": "Defines the similarity boost for voice settings.",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0.75
+          },
+          "style": {
+            "type": "number",
+            "description": "Defines the style for voice settings.",
+            "minimum": 0,
+            "maximum": 1,
+            "example": 0
+          },
+          "useSpeakerBoost": {
+            "type": "boolean",
+            "description": "Defines the use speaker boost for voice settings.",
+            "example": false
+          },
+          "speed": {
+            "type": "number",
+            "description": "Defines the speed for voice settings.",
+            "minimum": 0.7,
+            "maximum": 1.2,
+            "example": 0.9
+          },
+          "optimizeStreamingLatency": {
+            "type": "number",
+            "description": "Defines the optimize streaming latency for voice settings. Defaults to 3.",
+            "minimum": 0,
+            "maximum": 4,
+            "example": 3
+          },
+          "enableSsmlParsing": {
+            "type": "boolean",
+            "description": "This enables the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Defaults to false to save latency.\n\n@default false",
+            "example": false
+          },
+          "autoMode": {
+            "type": "boolean",
+            "description": "Defines the auto mode for voice settings. Defaults to false.",
+            "example": false
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified.",
+            "enum": [
+              "eleven_multilingual_v2",
+              "eleven_turbo_v2",
+              "eleven_turbo_v2_5",
+              "eleven_flash_v2",
+              "eleven_flash_v2_5",
+              "eleven_monolingual_v1",
+              "eleven_v3"
+            ],
+            "example": "eleven_turbo_v2_5"
+          },
+          "language": {
+            "type": "string",
+            "description": "This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided."
+          },
+          "pronunciationDictionaryLocators": {
+            "description": "This is the pronunciation dictionary locators to use.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ElevenLabsPronunciationDictionaryLocator"
+            }
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackHumeVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "hume"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used.",
+            "enum": [
+              "octave",
+              "octave2"
+            ],
+            "example": "octave2"
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "The ID of the particular voice you want to use."
+          },
+          "isCustomHumeVoice": {
+            "type": "boolean",
+            "description": "Indicates whether the chosen voice is a preset Hume AI voice or a custom voice.",
+            "example": false
+          },
+          "description": {
+            "type": "string",
+            "description": "Natural language instructions describing how the synthesized speech should sound, including but not limited to tone, intonation, pacing, and accent (e.g., 'a soft, gentle voice with a strong British accent').\n\nIf a Voice is specified in the request, this description serves as acting instructions.\nIf no Voice is specified, a new voice is generated based on this description."
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackLMNTVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "lmnt"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "amy",
+                  "ansel",
+                  "autumn",
+                  "ava",
+                  "brandon",
+                  "caleb",
+                  "cassian",
+                  "chloe",
+                  "dalton",
+                  "daniel",
+                  "dustin",
+                  "elowen",
+                  "evander",
+                  "huxley",
+                  "james",
+                  "juniper",
+                  "kennedy",
+                  "lauren",
+                  "leah",
+                  "lily",
+                  "lucas",
+                  "magnus",
+                  "miles",
+                  "morgan",
+                  "natalie",
+                  "nathan",
+                  "noah",
+                  "nyssa",
+                  "oliver",
+                  "paige",
+                  "ryan",
+                  "sadie",
+                  "sophie",
+                  "stella",
+                  "terrence",
+                  "tyler",
+                  "vesper",
+                  "violet",
+                  "warrick",
+                  "zain",
+                  "zeke",
+                  "zoe"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "LMNT Voice ID"
+              }
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.25,
+            "maximum": 2,
+            "example": null
+          },
+          "language": {
+            "description": "Two letter ISO 639-1 language code. Use \"auto\" for auto-detection.",
+            "enum": [
+              "aa",
+              "ab",
+              "ae",
+              "af",
+              "ak",
+              "am",
+              "an",
+              "ar",
+              "as",
+              "av",
+              "ay",
+              "az",
+              "ba",
+              "be",
+              "bg",
+              "bh",
+              "bi",
+              "bm",
+              "bn",
+              "bo",
+              "br",
+              "bs",
+              "ca",
+              "ce",
+              "ch",
+              "co",
+              "cr",
+              "cs",
+              "cu",
+              "cv",
+              "cy",
+              "da",
+              "de",
+              "dv",
+              "dz",
+              "ee",
+              "el",
+              "en",
+              "eo",
+              "es",
+              "et",
+              "eu",
+              "fa",
+              "ff",
+              "fi",
+              "fj",
+              "fo",
+              "fr",
+              "fy",
+              "ga",
+              "gd",
+              "gl",
+              "gn",
+              "gu",
+              "gv",
+              "ha",
+              "he",
+              "hi",
+              "ho",
+              "hr",
+              "ht",
+              "hu",
+              "hy",
+              "hz",
+              "ia",
+              "id",
+              "ie",
+              "ig",
+              "ii",
+              "ik",
+              "io",
+              "is",
+              "it",
+              "iu",
+              "ja",
+              "jv",
+              "ka",
+              "kg",
+              "ki",
+              "kj",
+              "kk",
+              "kl",
+              "km",
+              "kn",
+              "ko",
+              "kr",
+              "ks",
+              "ku",
+              "kv",
+              "kw",
+              "ky",
+              "la",
+              "lb",
+              "lg",
+              "li",
+              "ln",
+              "lo",
+              "lt",
+              "lu",
+              "lv",
+              "mg",
+              "mh",
+              "mi",
+              "mk",
+              "ml",
+              "mn",
+              "mr",
+              "ms",
+              "mt",
+              "my",
+              "na",
+              "nb",
+              "nd",
+              "ne",
+              "ng",
+              "nl",
+              "nn",
+              "no",
+              "nr",
+              "nv",
+              "ny",
+              "oc",
+              "oj",
+              "om",
+              "or",
+              "os",
+              "pa",
+              "pi",
+              "pl",
+              "ps",
+              "pt",
+              "qu",
+              "rm",
+              "rn",
+              "ro",
+              "ru",
+              "rw",
+              "sa",
+              "sc",
+              "sd",
+              "se",
+              "sg",
+              "si",
+              "sk",
+              "sl",
+              "sm",
+              "sn",
+              "so",
+              "sq",
+              "sr",
+              "ss",
+              "st",
+              "su",
+              "sv",
+              "sw",
+              "ta",
+              "te",
+              "tg",
+              "th",
+              "ti",
+              "tk",
+              "tl",
+              "tn",
+              "to",
+              "tr",
+              "ts",
+              "tt",
+              "tw",
+              "ty",
+              "ug",
+              "uk",
+              "ur",
+              "uz",
+              "ve",
+              "vi",
+              "vo",
+              "wa",
+              "wo",
+              "xh",
+              "yi",
+              "yue",
+              "yo",
+              "za",
+              "zh",
+              "zu",
+              "auto"
+            ],
+            "example": "en",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "aa",
+                  "ab",
+                  "ae",
+                  "af",
+                  "ak",
+                  "am",
+                  "an",
+                  "ar",
+                  "as",
+                  "av",
+                  "ay",
+                  "az",
+                  "ba",
+                  "be",
+                  "bg",
+                  "bh",
+                  "bi",
+                  "bm",
+                  "bn",
+                  "bo",
+                  "br",
+                  "bs",
+                  "ca",
+                  "ce",
+                  "ch",
+                  "co",
+                  "cr",
+                  "cs",
+                  "cu",
+                  "cv",
+                  "cy",
+                  "da",
+                  "de",
+                  "dv",
+                  "dz",
+                  "ee",
+                  "el",
+                  "en",
+                  "eo",
+                  "es",
+                  "et",
+                  "eu",
+                  "fa",
+                  "ff",
+                  "fi",
+                  "fj",
+                  "fo",
+                  "fr",
+                  "fy",
+                  "ga",
+                  "gd",
+                  "gl",
+                  "gn",
+                  "gu",
+                  "gv",
+                  "ha",
+                  "he",
+                  "hi",
+                  "ho",
+                  "hr",
+                  "ht",
+                  "hu",
+                  "hy",
+                  "hz",
+                  "ia",
+                  "id",
+                  "ie",
+                  "ig",
+                  "ii",
+                  "ik",
+                  "io",
+                  "is",
+                  "it",
+                  "iu",
+                  "ja",
+                  "jv",
+                  "ka",
+                  "kg",
+                  "ki",
+                  "kj",
+                  "kk",
+                  "kl",
+                  "km",
+                  "kn",
+                  "ko",
+                  "kr",
+                  "ks",
+                  "ku",
+                  "kv",
+                  "kw",
+                  "ky",
+                  "la",
+                  "lb",
+                  "lg",
+                  "li",
+                  "ln",
+                  "lo",
+                  "lt",
+                  "lu",
+                  "lv",
+                  "mg",
+                  "mh",
+                  "mi",
+                  "mk",
+                  "ml",
+                  "mn",
+                  "mr",
+                  "ms",
+                  "mt",
+                  "my",
+                  "na",
+                  "nb",
+                  "nd",
+                  "ne",
+                  "ng",
+                  "nl",
+                  "nn",
+                  "no",
+                  "nr",
+                  "nv",
+                  "ny",
+                  "oc",
+                  "oj",
+                  "om",
+                  "or",
+                  "os",
+                  "pa",
+                  "pi",
+                  "pl",
+                  "ps",
+                  "pt",
+                  "qu",
+                  "rm",
+                  "rn",
+                  "ro",
+                  "ru",
+                  "rw",
+                  "sa",
+                  "sc",
+                  "sd",
+                  "se",
+                  "sg",
+                  "si",
+                  "sk",
+                  "sl",
+                  "sm",
+                  "sn",
+                  "so",
+                  "sq",
+                  "sr",
+                  "ss",
+                  "st",
+                  "su",
+                  "sv",
+                  "sw",
+                  "ta",
+                  "te",
+                  "tg",
+                  "th",
+                  "ti",
+                  "tk",
+                  "tl",
+                  "tn",
+                  "to",
+                  "tr",
+                  "ts",
+                  "tt",
+                  "tw",
+                  "ty",
+                  "ug",
+                  "uk",
+                  "ur",
+                  "uz",
+                  "ve",
+                  "vi",
+                  "vo",
+                  "wa",
+                  "wo",
+                  "xh",
+                  "yi",
+                  "yue",
+                  "yo",
+                  "za",
+                  "zh",
+                  "zu"
+                ],
+                "title": "ISO 639-1 Language Code"
+              },
+              {
+                "type": "string",
+                "enum": [
+                  "auto"
+                ],
+                "title": "Auto-detect"
+              }
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackNeuphonicVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "neuphonic"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "Neuphonic Voice ID"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Defaults to 'neu_fast' if not specified.",
+            "enum": [
+              "neu_hq",
+              "neu_fast"
+            ],
+            "example": "neu_fast"
+          },
+          "language": {
+            "type": "object",
+            "description": "This is the language (ISO 639-1) that is enforced for the model.",
+            "example": "en"
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.25,
+            "maximum": 2,
+            "example": null
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId",
+          "language"
+        ]
+      },
+      "FallbackOpenAIVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "openai"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.\nPlease note that ash, ballad, coral, sage, and verse may only be used with realtime models.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "alloy",
+                  "echo",
+                  "fable",
+                  "onyx",
+                  "nova",
+                  "shimmer",
+                  "marin",
+                  "cedar"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "OpenAI Voice ID"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used for text-to-speech.",
+            "enum": [
+              "tts-1",
+              "tts-1-hd",
+              "gpt-4o-mini-tts"
+            ]
+          },
+          "instructions": {
+            "type": "string",
+            "description": "This is a prompt that allows you to control the voice of your generated audio.\nDoes not work with 'tts-1' or 'tts-1-hd' models.",
+            "maxLength": 10000
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.25,
+            "maximum": 4,
+            "example": null
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackPlayHTVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "playht"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "jennifer",
+                  "melissa",
+                  "will",
+                  "chris",
+                  "matt",
+                  "jack",
+                  "ruby",
+                  "davis",
+                  "donna",
+                  "michael"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "PlayHT Voice ID"
+              }
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.1,
+            "maximum": 5,
+            "example": null
+          },
+          "temperature": {
+            "type": "number",
+            "description": "A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice.",
+            "minimum": 0.1,
+            "maximum": 2,
+            "example": null
+          },
+          "emotion": {
+            "type": "string",
+            "description": "An emotion to be applied to the speech.",
+            "enum": [
+              "female_happy",
+              "female_sad",
+              "female_angry",
+              "female_fearful",
+              "female_disgust",
+              "female_surprised",
+              "male_happy",
+              "male_sad",
+              "male_angry",
+              "male_fearful",
+              "male_disgust",
+              "male_surprised"
+            ],
+            "example": null
+          },
+          "voiceGuidance": {
+            "type": "number",
+            "description": "A number between 1 and 6. Use lower numbers to reduce how unique your chosen voice will be compared to other voices.",
+            "minimum": 1,
+            "maximum": 6,
+            "example": null
+          },
+          "styleGuidance": {
+            "type": "number",
+            "description": "A number between 1 and 30. Use lower numbers to to reduce how strong your chosen emotion will be. Higher numbers will create a very emotional performance.",
+            "minimum": 1,
+            "maximum": 30,
+            "example": null
+          },
+          "textGuidance": {
+            "type": "number",
+            "description": "A number between 1 and 2. This number influences how closely the generated speech adheres to the input text. Use lower values to create more fluid speech, but with a higher chance of deviating from the input text. Higher numbers will make the generated speech more accurate to the input text, ensuring that the words spoken align closely with the provided text.",
+            "minimum": 1,
+            "maximum": 2,
+            "example": null
+          },
+          "model": {
+            "type": "string",
+            "description": "Playht voice model/engine to use.",
+            "enum": [
+              "PlayHT2.0",
+              "PlayHT2.0-turbo",
+              "Play3.0-mini",
+              "PlayDialog"
+            ]
+          },
+          "language": {
+            "type": "string",
+            "description": "The language to use for the speech.",
+            "enum": [
+              "afrikaans",
+              "albanian",
+              "amharic",
+              "arabic",
+              "bengali",
+              "bulgarian",
+              "catalan",
+              "croatian",
+              "czech",
+              "danish",
+              "dutch",
+              "english",
+              "french",
+              "galician",
+              "german",
+              "greek",
+              "hebrew",
+              "hindi",
+              "hungarian",
+              "indonesian",
+              "italian",
+              "japanese",
+              "korean",
+              "malay",
+              "mandarin",
+              "polish",
+              "portuguese",
+              "russian",
+              "serbian",
+              "spanish",
+              "swedish",
+              "tagalog",
+              "thai",
+              "turkish",
+              "ukrainian",
+              "urdu",
+              "xhosa"
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackRimeAIVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "rime-ai"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "cove",
+                  "moon",
+                  "wildflower",
+                  "eva",
+                  "amber",
+                  "maya",
+                  "lagoon",
+                  "breeze",
+                  "helen",
+                  "joy",
+                  "marsh",
+                  "creek",
+                  "cedar",
+                  "alpine",
+                  "summit",
+                  "nicholas",
+                  "tyler",
+                  "colin",
+                  "hank",
+                  "thunder",
+                  "astra",
+                  "eucalyptus",
+                  "moraine",
+                  "peak",
+                  "tundra",
+                  "mesa_extra",
+                  "talon",
+                  "marlu",
+                  "glacier",
+                  "falcon",
+                  "luna",
+                  "celeste",
+                  "estelle",
+                  "andromeda",
+                  "esther",
+                  "lyra",
+                  "lintel",
+                  "oculus",
+                  "vespera",
+                  "transom",
+                  "bond",
+                  "arcade",
+                  "atrium",
+                  "cupola",
+                  "fern",
+                  "sirius",
+                  "orion",
+                  "masonry",
+                  "albion",
+                  "parapet"
+                ],
+                "title": "Suggested Voice Options",
+                "description": "Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions."
+              },
+              {
+                "type": "string",
+                "title": "Any Rime AI Voice ID",
+                "description": "Any valid Rime AI voice ID. See https://docs.rime.ai/docs/voices for the full catalog."
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used. Defaults to 'arcana' when not specified.",
+            "enum": [
+              "arcana",
+              "mistv2",
+              "mist"
+            ],
+            "example": "arcana"
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "minimum": 0.1,
+            "example": null
+          },
+          "pauseBetweenBrackets": {
+            "type": "boolean",
+            "description": "This is a flag that controls whether to add slight pauses using angle brackets. Example: \"Hi. <200> I'd love to have a conversation with you.\" adds a 200ms pause between the first and second sentences.",
+            "example": false
+          },
+          "phonemizeBetweenBrackets": {
+            "type": "boolean",
+            "description": "This is a flag that controls whether text inside brackets should be phonemized (converted to phonetic pronunciation) - Example: \"{h'El.o} World\" will pronounce \"Hello\" as expected.",
+            "example": false
+          },
+          "reduceLatency": {
+            "type": "boolean",
+            "description": "This is a flag that controls whether to optimize for reduced latency in streaming. https://docs.rime.ai/api-reference/endpoint/websockets#param-reduce-latency",
+            "example": false
+          },
+          "inlineSpeedAlpha": {
+            "type": "string",
+            "description": "This is a string that allows inline speed control using alpha notation. https://docs.rime.ai/api-reference/endpoint/websockets#param-inline-speed-alpha",
+            "example": null
+          },
+          "language": {
+            "type": "string",
+            "description": "Language for speech synthesis. Uses ISO 639 codes. Supported: en, es, de, fr, ar, hi, ja, he, pt, ta, si.",
+            "enum": [
+              "en",
+              "es",
+              "de",
+              "fr",
+              "ar",
+              "hi",
+              "ja",
+              "he",
+              "pt",
+              "ta",
+              "si"
+            ],
+            "example": "en"
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackSesameVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "sesame"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "This is the provider-specific ID that will be used.",
+            "title": "Sesame Voice ID. This should be either a name (a built-in voice) or a UUID (a custom voice)."
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used.",
+            "enum": [
+              "csm-1b"
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId",
+          "model"
+        ]
+      },
+      "FallbackSmallestAIVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "smallest-ai"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "emily",
+                  "jasmine",
+                  "arman",
+                  "james",
+                  "mithali",
+                  "aravind",
+                  "raj",
+                  "diya",
+                  "raman",
+                  "ananya",
+                  "isha",
+                  "william",
+                  "aarav",
+                  "monika",
+                  "niharika",
+                  "deepika",
+                  "raghav",
+                  "kajal",
+                  "radhika",
+                  "mansi",
+                  "nisha",
+                  "saurabh",
+                  "pooja",
+                  "saina",
+                  "sanya"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "Smallest AI Voice ID"
+              }
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "Smallest AI voice model to use. Defaults to 'lightning' when not specified.",
+            "enum": [
+              "lightning"
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.",
+            "example": null
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackTavusVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "tavus"
+            ]
+          },
+          "voiceId": {
+            "description": "This is the provider-specific ID that will be used.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "r52da2535a"
+                ],
+                "title": "Preset Voice Options"
+              },
+              {
+                "type": "string",
+                "title": "Tavus Voice ID"
+              }
+            ]
+          },
+          "personaId": {
+            "type": "string",
+            "description": "This is the unique identifier for the persona that the replica will use in the conversation."
+          },
+          "callbackUrl": {
+            "type": "string",
+            "description": "This is the url that will receive webhooks with updates regarding the conversation state."
+          },
+          "conversationName": {
+            "type": "string",
+            "description": "This is the name for the conversation."
+          },
+          "conversationalContext": {
+            "type": "string",
+            "description": "This is the context that will be appended to any context provided in the persona, if one is provided."
+          },
+          "customGreeting": {
+            "type": "string",
+            "description": "This is the custom greeting that the replica will give once a participant joines the conversation."
+          },
+          "properties": {
+            "description": "These are optional properties used to customize the conversation.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TavusConversationProperties"
+              }
+            ]
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackVapiVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "vapi"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "The voices provided by Vapi",
+            "enum": [
+              "Clara",
+              "Godfrey",
+              "Layla",
+              "Sid",
+              "Gustavo",
+              "Elliot",
+              "Kylie",
+              "Rohan",
+              "Lily",
+              "Savannah",
+              "Hana",
+              "Neha",
+              "Cole",
+              "Harry",
+              "Paige",
+              "Spencer",
+              "Nico",
+              "Kai",
+              "Emma",
+              "Sagar",
+              "Neil",
+              "Naina",
+              "Leah",
+              "Tara",
+              "Jess",
+              "Leo",
+              "Dan",
+              "Mia",
+              "Zac",
+              "Zoe"
+            ]
+          },
+          "speed": {
+            "type": "number",
+            "description": "This is the speed multiplier that will be used.\n\n@default 1",
+            "minimum": 0.25,
+            "maximum": 2,
+            "default": 1
+          },
+          "pronunciationDictionary": {
+            "description": "List of pronunciation dictionary locators for custom word pronunciations.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/VapiPronunciationDictionaryLocator"
+            }
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "FallbackInworldVoice": {
+        "type": "object",
+        "properties": {
+          "cachingEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle voice caching for the assistant.",
+            "example": true,
+            "default": true
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "inworld"
+            ]
+          },
+          "voiceId": {
+            "type": "string",
+            "description": "Available voices by language:\n• en: Alex, Ashley, Craig, Deborah, Dennis, Edward, Elizabeth, Hades, Julia, Pixie, Mark, Olivia, Priya, Ronald, Sarah, Shaun, Theodore, Timothy, Wendy, Dominus, Hana, Clive, Carter, Blake, Luna\n• zh: Yichen, Xiaoyin, Xinyi, Jing\n• nl: Erik, Katrien, Lennart, Lore\n• fr: Alain, Hélène, Mathieu, Étienne\n• de: Johanna, Josef\n• it: Gianni, Orietta\n• ja: Asuka, Satoshi\n• ko: Hyunwoo, Minji, Seojun, Yoona\n• pl: Szymon, Wojciech\n• pt: Heitor, Maitê\n• es: Diego, Lupita, Miguel, Rafael\n• ru: Svetlana, Elena, Dmitry, Nikolai\n• hi: Riya, Manoj\n• he: Yael, Oren\n• ar: Nour, Omar",
+            "maxLength": 120,
+            "title": "Inworld Voice ID",
+            "enum": [
+              "Alex",
+              "Ashley",
+              "Craig",
+              "Deborah",
+              "Dennis",
+              "Edward",
+              "Elizabeth",
+              "Hades",
+              "Julia",
+              "Pixie",
+              "Mark",
+              "Olivia",
+              "Priya",
+              "Ronald",
+              "Sarah",
+              "Shaun",
+              "Theodore",
+              "Timothy",
+              "Wendy",
+              "Dominus",
+              "Hana",
+              "Clive",
+              "Carter",
+              "Blake",
+              "Luna",
+              "Yichen",
+              "Xiaoyin",
+              "Xinyi",
+              "Jing",
+              "Erik",
+              "Katrien",
+              "Lennart",
+              "Lore",
+              "Alain",
+              "Hélène",
+              "Mathieu",
+              "Étienne",
+              "Johanna",
+              "Josef",
+              "Gianni",
+              "Orietta",
+              "Asuka",
+              "Satoshi",
+              "Hyunwoo",
+              "Minji",
+              "Seojun",
+              "Yoona",
+              "Szymon",
+              "Wojciech",
+              "Heitor",
+              "Maitê",
+              "Diego",
+              "Lupita",
+              "Miguel",
+              "Rafael",
+              "Svetlana",
+              "Elena",
+              "Dmitry",
+              "Nikolai",
+              "Riya",
+              "Manoj",
+              "Yael",
+              "Oren",
+              "Nour",
+              "Omar"
+            ],
+            "example": "Alex"
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the model that will be used.",
+            "enum": [
+              "inworld-tts-1"
+            ],
+            "default": "inworld-tts-1"
+          },
+          "languageCode": {
+            "type": "string",
+            "description": "Language code for Inworld TTS synthesis",
+            "default": "en",
+            "enum": [
+              "en",
+              "zh",
+              "ko",
+              "nl",
+              "fr",
+              "es",
+              "ja",
+              "de",
+              "it",
+              "pl",
+              "pt",
+              "ru",
+              "hi",
+              "he",
+              "ar"
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature of 1.1 will be used. The temperature parameter controls variance.\nHigher values will make the output more random and can lead to more expressive results. Lower values will make it more deterministic.\nSee https://docs.inworld.ai/docs/tts/capabilities/generating-audio#additional-configurations for more details.",
+            "minimum": 0.1,
+            "maximum": 2,
+            "default": 1.1,
+            "example": null
+          },
+          "speakingRate": {
+            "type": "number",
+            "description": "A floating point number between 0.5, inclusive, and 1.5, inclusive. If equal to null or not provided, the model's default speaking speed of 1.0 will be used.\nValues above 0.8 are recommended for higher quality.\nSee https://docs.inworld.ai/docs/tts/capabilities/generating-audio#additional-configurations for more details.",
+            "minimum": 0.5,
+            "maximum": 1.5,
+            "default": 1,
+            "example": null
+          },
+          "chunkPlan": {
+            "description": "This is the plan for chunking the model output before it is sent to the voice provider.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChunkPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "voiceId"
+        ]
+      },
+      "TransportConfigurationTwilio": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "twilio"
+            ]
+          },
+          "timeout": {
+            "type": "number",
+            "description": "The integer number of seconds that we should allow the phone to ring before assuming there is no answer.\nThe default is `60` seconds and the maximum is `600` seconds.\nFor some call flows, we will add a 5-second buffer to the timeout value you provide.\nFor this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds.\nYou can set this to a short time, such as `15` seconds, to hang up before reaching an answering machine or voicemail.\n\n@default 60",
+            "minimum": 1,
+            "maximum": 600,
+            "example": 60
+          },
+          "record": {
+            "type": "boolean",
+            "description": "Whether to record the call.\nCan be `true` to record the phone call, or `false` to not.\nThe default is `false`.\n\n@default false",
+            "example": false
+          },
+          "recordingChannels": {
+            "type": "string",
+            "description": "The number of channels in the final recording.\nCan be: `mono` or `dual`.\nThe default is `mono`.\n`mono` records both legs of the call in a single channel of the recording file.\n`dual` records each leg to a separate channel of the recording file.\nThe first channel of a dual-channel recording contains the parent call and the second channel contains the child call.\n\n@default 'mono'",
+            "enum": [
+              "mono",
+              "dual"
+            ],
+            "example": "mono"
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "CreateAnthropicCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "anthropic"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateAnthropicBedrockCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "anthropic-bedrock"
+            ]
+          },
+          "region": {
+            "type": "string",
+            "description": "AWS region where Bedrock is configured.",
+            "enum": [
+              "us-east-1",
+              "us-west-2",
+              "eu-west-1",
+              "eu-west-3",
+              "ap-northeast-1",
+              "ap-southeast-2"
+            ]
+          },
+          "authenticationPlan": {
+            "description": "Authentication method - either direct IAM credentials or cross-account role assumption.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AWSIAMCredentialsAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/AWSStsAuthenticationPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "region",
+          "authenticationPlan"
+        ]
+      },
+      "CreateAnyscaleCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "anyscale"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateAssemblyAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "assembly-ai"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "AzureBlobStorageBucketPlan": {
+        "type": "object",
+        "properties": {
+          "connectionString": {
+            "type": "string",
+            "description": "This is the blob storage connection string for the Azure resource."
+          },
+          "containerName": {
+            "type": "string",
+            "description": "This is the container name for the Azure blob storage."
+          },
+          "path": {
+            "type": "string",
+            "description": "This is the path where call artifacts will be stored.\n\nUsage:\n- To store call artifacts in a specific folder, set this to the full path. Eg. \"/folder-name1/folder-name2\".\n- To store call artifacts in the root of the bucket, leave this blank.\n\n@default \"/\""
+          }
+        },
+        "required": [
+          "connectionString",
+          "containerName"
+        ]
+      },
+      "CreateAzureCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "azure"
+            ]
+          },
+          "service": {
+            "type": "string",
+            "description": "This is the service being used in Azure.",
+            "enum": [
+              "speech",
+              "blob_storage"
+            ],
+            "default": "speech"
+          },
+          "region": {
+            "type": "string",
+            "description": "This is the region of the Azure resource.",
+            "enum": [
+              "australiaeast",
+              "canadaeast",
+              "canadacentral",
+              "centralus",
+              "eastus2",
+              "eastus",
+              "france",
+              "germanywestcentral",
+              "india",
+              "japaneast",
+              "japanwest",
+              "northcentralus",
+              "norway",
+              "polandcentral",
+              "southcentralus",
+              "spaincentral",
+              "swedencentral",
+              "switzerland",
+              "uaenorth",
+              "uk",
+              "westeurope",
+              "westus",
+              "westus3"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API.",
+            "maxLength": 10000
+          },
+          "fallbackIndex": {
+            "type": "number",
+            "minimum": 1,
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order."
+          },
+          "bucketPlan": {
+            "description": "This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AzureBlobStorageBucketPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "service"
+        ]
+      },
+      "CreateAzureOpenAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "azure-openai"
+            ]
+          },
+          "region": {
+            "type": "string",
+            "enum": [
+              "australiaeast",
+              "canadaeast",
+              "canadacentral",
+              "centralus",
+              "eastus2",
+              "eastus",
+              "france",
+              "germanywestcentral",
+              "india",
+              "japaneast",
+              "japanwest",
+              "northcentralus",
+              "norway",
+              "polandcentral",
+              "southcentralus",
+              "spaincentral",
+              "swedencentral",
+              "switzerland",
+              "uaenorth",
+              "uk",
+              "westeurope",
+              "westus",
+              "westus3"
+            ]
+          },
+          "models": {
+            "type": "array",
+            "enum": [
+              "gpt-5.4",
+              "gpt-5.4-mini",
+              "gpt-5.4-nano",
+              "gpt-5.2",
+              "gpt-5.2-chat",
+              "gpt-5.1",
+              "gpt-5.1-chat",
+              "gpt-5",
+              "gpt-5-mini",
+              "gpt-5-nano",
+              "gpt-4.1-2025-04-14",
+              "gpt-4.1-mini-2025-04-14",
+              "gpt-4.1-nano-2025-04-14",
+              "gpt-4o-2024-11-20",
+              "gpt-4o-2024-08-06",
+              "gpt-4o-2024-05-13",
+              "gpt-4o-mini-2024-07-18",
+              "gpt-4-turbo-2024-04-09",
+              "gpt-4-0125-preview",
+              "gpt-4-1106-preview",
+              "gpt-4-0613",
+              "gpt-35-turbo-0125",
+              "gpt-35-turbo-1106"
+            ],
+            "example": [
+              "gpt-4-0125-preview",
+              "gpt-4-0613"
+            ],
+            "items": {
+              "type": "string",
+              "enum": [
+                "gpt-5.4",
+                "gpt-5.4-mini",
+                "gpt-5.4-nano",
+                "gpt-5.2",
+                "gpt-5.2-chat",
+                "gpt-5.1",
+                "gpt-5.1-chat",
+                "gpt-5",
+                "gpt-5-mini",
+                "gpt-5-nano",
+                "gpt-4.1-2025-04-14",
+                "gpt-4.1-mini-2025-04-14",
+                "gpt-4.1-nano-2025-04-14",
+                "gpt-4o-2024-11-20",
+                "gpt-4o-2024-08-06",
+                "gpt-4o-2024-05-13",
+                "gpt-4o-mini-2024-07-18",
+                "gpt-4-turbo-2024-04-09",
+                "gpt-4-0125-preview",
+                "gpt-4-1106-preview",
+                "gpt-4-0613",
+                "gpt-35-turbo-0125",
+                "gpt-35-turbo-1106"
+              ]
+            }
+          },
+          "openAIKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
+          "ocpApimSubscriptionKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "openAIEndpoint": {
+            "type": "string",
+            "maxLength": 10000
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "region",
+          "models",
+          "openAIKey",
+          "openAIEndpoint"
+        ]
+      },
+      "SipTrunkGateway": {
+        "type": "object",
+        "properties": {
+          "ip": {
+            "type": "string",
+            "description": "This is the address of the gateway. It can be an IPv4 address like 1.1.1.1 or a fully qualified domain name like my-sip-trunk.pstn.twilio.com."
+          },
+          "port": {
+            "type": "number",
+            "description": "This is the port number of the gateway. Default is 5060.\n\n@default 5060",
+            "minimum": 1,
+            "maximum": 65535
+          },
+          "netmask": {
+            "type": "number",
+            "description": "This is the netmask of the gateway. Defaults to 32.\n\n@default 32",
+            "minimum": 24,
+            "maximum": 32
+          },
+          "inboundEnabled": {
+            "type": "boolean",
+            "description": "This is whether inbound calls are allowed from this gateway. Default is true.\n\n@default true"
+          },
+          "outboundEnabled": {
+            "type": "boolean",
+            "description": "This is whether outbound calls should be sent to this gateway. Default is true.\n\nNote, if netmask is less than 32, it doesn't affect the outbound IPs that are tried. 1 attempt is made to `ip:port`.\n\n@default true"
+          },
+          "outboundProtocol": {
+            "type": "string",
+            "description": "This is the protocol to use for SIP signaling outbound calls. Default is udp.\n\n@default udp",
+            "enum": [
+              "tls/srtp",
+              "tcp",
+              "tls",
+              "udp"
+            ]
+          },
+          "optionsPingEnabled": {
+            "type": "boolean",
+            "description": "This is whether to send options ping to the gateway. This can be used to check if the gateway is reachable. Default is false.\n\nThis is useful for high availability setups where you want to check if the gateway is reachable before routing calls to it. Note, if no gateway for a trunk is reachable, outbound calls will be rejected.\n\n@default false"
+          }
+        },
+        "required": [
+          "ip"
+        ]
+      },
+      "SipTrunkOutboundSipRegisterPlan": {
+        "type": "object",
+        "properties": {
+          "domain": {
+            "type": "string"
+          },
+          "username": {
+            "type": "string"
+          },
+          "realm": {
+            "type": "string"
+          }
+        }
+      },
+      "SipTrunkOutboundAuthenticationPlan": {
+        "type": "object",
+        "properties": {
+          "authPassword": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "authUsername": {
+            "type": "string"
+          },
+          "sipRegisterPlan": {
+            "description": "This can be used to configure if SIP register is required by the SIP trunk. If not provided, no SIP registration will be attempted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SipTrunkOutboundSipRegisterPlan"
+              }
+            ]
+          }
+        }
+      },
+      "SbcConfiguration": {
+        "type": "object",
+        "properties": {}
+      },
+      "CreateByoSipTrunkCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This can be used to bring your own SIP trunks or to connect to a Carrier.",
+            "enum": [
+              "byo-sip-trunk"
+            ]
+          },
+          "gateways": {
+            "description": "This is the list of SIP trunk's gateways.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SipTrunkGateway"
+            }
+          },
+          "outboundAuthenticationPlan": {
+            "description": "This can be used to configure the outbound authentication if required by the SIP trunk.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SipTrunkOutboundAuthenticationPlan"
+              }
+            ]
+          },
+          "outboundLeadingPlusEnabled": {
+            "type": "boolean",
+            "description": "This ensures the outbound origination attempts have a leading plus. Defaults to false to match conventional telecom behavior.\n\nUsage:\n- Vonage/Twilio requires leading plus for all outbound calls. Set this to true.\n\n@default false"
+          },
+          "techPrefix": {
+            "type": "string",
+            "description": "This can be used to configure the tech prefix on outbound calls. This is an advanced property.",
+            "maxLength": 10000
+          },
+          "sipDiversionHeader": {
+            "type": "string",
+            "description": "This can be used to enable the SIP diversion header for authenticating the calling number if the SIP trunk supports it. This is an advanced property.",
+            "maxLength": 10000
+          },
+          "sbcConfiguration": {
+            "description": "This is an advanced configuration for enterprise deployments. This uses the onprem SBC to trunk into the SIP trunk's `gateways`, rather than the managed SBC provided by Vapi.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SbcConfiguration"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "gateways"
+        ]
+      },
+      "CreateCartesiaCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "cartesia"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "apiUrl": {
+            "type": "string",
+            "description": "This can be used to point to an onprem Cartesia instance. Defaults to api.cartesia.ai."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CloudflareR2BucketPlan": {
+        "type": "object",
+        "properties": {
+          "accessKeyId": {
+            "type": "string",
+            "description": "Cloudflare R2 Access key ID."
+          },
+          "secretAccessKey": {
+            "type": "string",
+            "description": "Cloudflare R2 access key secret. This is not returned in the API."
+          },
+          "url": {
+            "type": "string",
+            "description": "Cloudflare R2 base url."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the bucket."
+          },
+          "path": {
+            "type": "string",
+            "description": "This is the path where call artifacts will be stored.\n\nUsage:\n- To store call artifacts in a specific folder, set this to the full path. Eg. \"/folder-name1/folder-name2\".\n- To store call artifacts in the root of the bucket, leave this blank.\n\n@default \"/\""
+          }
+        },
+        "required": [
+          "name"
+        ]
+      },
+      "CreateCloudflareCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "cloudflare"
+            ],
+            "description": "Credential provider. Only allowed value is cloudflare"
+          },
+          "accountId": {
+            "type": "string",
+            "description": "Cloudflare Account Id."
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "Cloudflare API Key / Token."
+          },
+          "accountEmail": {
+            "type": "string",
+            "description": "Cloudflare Account Email."
+          },
+          "fallbackIndex": {
+            "type": "number",
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.",
+            "minimum": 1
+          },
+          "bucketPlan": {
+            "description": "This is the bucket plan that can be provided to store call artifacts in R2",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CloudflareR2BucketPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "OAuth2AuthenticationPlan": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "oauth2"
+            ]
+          },
+          "url": {
+            "type": "string",
+            "description": "This is the OAuth2 URL."
+          },
+          "clientId": {
+            "type": "string",
+            "description": "This is the OAuth2 client ID."
+          },
+          "clientSecret": {
+            "type": "string",
+            "description": "This is the OAuth2 client secret."
+          },
+          "scope": {
+            "type": "string",
+            "description": "This is the scope of the OAuth2 token.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "type",
+          "url",
+          "clientId",
+          "clientSecret"
+        ]
+      },
+      "CreateCustomLLMCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "custom-llm"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
+          "authenticationPlan": {
+            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateDeepgramCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "deepgram"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "apiUrl": {
+            "type": "string",
+            "description": "This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateDeepInfraCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "deepinfra"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateDeepSeekCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "deep-seek"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateElevenLabsCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "11labs"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "GcpKey": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of the key. Most likely, this is \"service_account\"."
+          },
+          "projectId": {
+            "type": "string",
+            "description": "This is the ID of the Google Cloud project associated with this key."
+          },
+          "privateKeyId": {
+            "type": "string",
+            "description": "This is the unique identifier for the private key."
+          },
+          "privateKey": {
+            "type": "string",
+            "description": "This is the private key in PEM format.\n\nNote: This is not returned in the API."
+          },
+          "clientEmail": {
+            "type": "string",
+            "description": "This is the email address associated with the service account."
+          },
+          "clientId": {
+            "type": "string",
+            "description": "This is the unique identifier for the client."
+          },
+          "authUri": {
+            "type": "string",
+            "description": "This is the URI for the auth provider's authorization endpoint."
+          },
+          "tokenUri": {
+            "type": "string",
+            "description": "This is the URI for the auth provider's token endpoint."
+          },
+          "authProviderX509CertUrl": {
+            "type": "string",
+            "description": "This is the URL of the public x509 certificate for the auth provider."
+          },
+          "clientX509CertUrl": {
+            "type": "string",
+            "description": "This is the URL of the public x509 certificate for the client."
+          },
+          "universeDomain": {
+            "type": "string",
+            "description": "This is the domain associated with the universe this service account belongs to."
+          }
+        },
+        "required": [
+          "type",
+          "projectId",
+          "privateKeyId",
+          "privateKey",
+          "clientEmail",
+          "clientId",
+          "authUri",
+          "tokenUri",
+          "authProviderX509CertUrl",
+          "clientX509CertUrl",
+          "universeDomain"
+        ]
+      },
+      "BucketPlan": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the bucket."
+          },
+          "region": {
+            "type": "string",
+            "description": "This is the region of the bucket.\n\nUsage:\n- If `credential.type` is `aws`, then this is required.\n- If `credential.type` is `gcp`, then this is optional since GCP allows buckets to be accessed without a region but region is required for data residency requirements. Read here: https://cloud.google.com/storage/docs/request-endpoints\n\nThis overrides the `credential.region` field if it is provided."
+          },
+          "path": {
+            "type": "string",
+            "description": "This is the path where call artifacts will be stored.\n\nUsage:\n- To store call artifacts in a specific folder, set this to the full path. Eg. \"/folder-name1/folder-name2\".\n- To store call artifacts in the root of the bucket, leave this blank.\n\n@default \"/\""
+          },
+          "hmacAccessKey": {
+            "type": "string",
+            "description": "This is the HMAC access key offered by GCP for interoperability with S3 clients. Here is the guide on how to create: https://cloud.google.com/storage/docs/authentication/managing-hmackeys#console\n\nUsage:\n- If `credential.type` is `gcp`, then this is required.\n- If `credential.type` is `aws`, then this is not required since credential.awsAccessKeyId is used instead."
+          },
+          "hmacSecret": {
+            "type": "string",
+            "description": "This is the secret for the HMAC access key. Here is the guide on how to create: https://cloud.google.com/storage/docs/authentication/managing-hmackeys#console\n\nUsage:\n- If `credential.type` is `gcp`, then this is required.\n- If `credential.type` is `aws`, then this is not required since credential.awsSecretAccessKey is used instead.\n\nNote: This is not returned in the API."
+          }
+        },
+        "required": [
+          "name"
+        ]
+      },
+      "CreateGcpCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "gcp"
+            ]
+          },
+          "fallbackIndex": {
+            "type": "number",
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.",
+            "minimum": 1
+          },
+          "gcpKey": {
+            "description": "This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/<service-account-id>/keys.\n\nThe schema is identical to the JSON that GCP outputs.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/GcpKey"
+              }
+            ]
+          },
+          "region": {
+            "type": "string",
+            "description": "This is the region of the GCP resource.",
+            "maxLength": 40
+          },
+          "bucketPlan": {
+            "$ref": "#/components/schemas/BucketPlan"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "gcpKey"
+        ]
+      },
+      "CreateGladiaCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "gladia"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateGoHighLevelCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "gohighlevel"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateGroqCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "groq"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateLangfuseCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "langfuse"
+            ]
+          },
+          "publicKey": {
+            "type": "string",
+            "description": "The public key for Langfuse project. Eg: pk-lf-..."
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API."
+          },
+          "apiUrl": {
+            "type": "string",
+            "description": "The host URL for Langfuse project. Eg: https://cloud.langfuse.com"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "publicKey",
+          "apiKey",
+          "apiUrl"
+        ]
+      },
+      "CreateLmntCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "lmnt"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateMakeCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "make"
+            ]
+          },
+          "teamId": {
+            "type": "string",
+            "description": "Team ID"
+          },
+          "region": {
+            "type": "string",
+            "description": "Region of your application. For example: eu1, eu2, us1, us2"
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "teamId",
+          "region",
+          "apiKey"
+        ]
+      },
+      "CreateOpenAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "openai"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateOpenRouterCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "openrouter"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreatePerplexityAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "perplexity-ai"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreatePlayHTCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "playht"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "userId": {
+            "type": "string"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "userId"
+        ]
+      },
+      "CreateRimeAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "rime-ai"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateRunpodCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "runpod"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateS3CredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "s3"
+            ],
+            "description": "Credential provider. Only allowed value is s3"
+          },
+          "awsAccessKeyId": {
+            "type": "string",
+            "description": "AWS access key ID."
+          },
+          "awsSecretAccessKey": {
+            "type": "string",
+            "description": "AWS access key secret. This is not returned in the API."
+          },
+          "region": {
+            "type": "string",
+            "description": "AWS region in which the S3 bucket is located."
+          },
+          "s3BucketName": {
+            "type": "string",
+            "description": "AWS S3 bucket name."
+          },
+          "s3PathPrefix": {
+            "type": "string",
+            "description": "The path prefix for the uploaded recording. Ex. \"recordings/\""
+          },
+          "fallbackIndex": {
+            "type": "number",
+            "minimum": 1,
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "awsAccessKeyId",
+          "awsSecretAccessKey",
+          "region",
+          "s3BucketName",
+          "s3PathPrefix"
+        ]
+      },
+      "SupabaseBucketPlan": {
+        "type": "object",
+        "properties": {
+          "region": {
+            "type": "string",
+            "description": "This is the S3 Region. It should look like us-east-1\nIt should be one of the supabase regions defined in the SUPABASE_REGION enum\nCheck https://supabase.com/docs/guides/platform/regions for up to date regions",
+            "enum": [
+              "us-west-1",
+              "us-east-1",
+              "us-east-2",
+              "ca-central-1",
+              "eu-west-1",
+              "eu-west-2",
+              "eu-west-3",
+              "eu-central-1",
+              "eu-central-2",
+              "eu-north-1",
+              "ap-south-1",
+              "ap-southeast-1",
+              "ap-northeast-1",
+              "ap-northeast-2",
+              "ap-southeast-2",
+              "sa-east-1"
+            ]
+          },
+          "url": {
+            "type": "string",
+            "description": "This is the S3 compatible URL for Supabase S3\nThis should look like https://<project-ID>.supabase.co/storage/v1/s3"
+          },
+          "accessKeyId": {
+            "type": "string",
+            "description": "This is the Supabase S3 Access Key ID.\nThe user creates this in the Supabase project Storage settings"
+          },
+          "secretAccessKey": {
+            "type": "string",
+            "description": "This is the Supabase S3 Secret Access Key.\nThe user creates this in the Supabase project Storage settings along with the access key id"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the Supabase S3 Bucket Name.\nThe user must create this in Supabase under Storage > Buckets\nA bucket that does not exist will not be checked now, but file uploads will fail"
+          },
+          "path": {
+            "type": "string",
+            "description": "This is the Supabase S3 Bucket Folder Path.\nThe user can create this in Supabase under Storage > Buckets\nA path that does not exist will not be checked now, but file uploads will fail\nA Path is like a folder in the bucket\nEg. If the bucket is called \"my-bucket\" and the path is \"my-folder\", the full path is \"my-bucket/my-folder\""
+          }
+        },
+        "required": [
+          "region",
+          "url",
+          "accessKeyId",
+          "secretAccessKey",
+          "name"
+        ]
+      },
+      "CreateSupabaseCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "supabase"
+            ],
+            "description": "This is for supabase storage."
+          },
+          "fallbackIndex": {
+            "type": "number",
+            "minimum": 1,
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order."
+          },
+          "bucketPlan": {
+            "$ref": "#/components/schemas/SupabaseBucketPlan"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "CreateSmallestAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "smallest-ai"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateTavusCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "tavus"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateTogetherAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "together-ai"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateTwilioCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "twilio"
+            ]
+          },
+          "authToken": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "apiSecret": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "accountSid": {
+            "type": "string"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "accountSid"
+        ]
+      },
+      "CreateVonageCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "vonage"
+            ]
+          },
+          "apiSecret": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "apiKey": {
+            "type": "string"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiSecret",
+          "apiKey"
+        ]
+      },
+      "CreateWebhookCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "webhook"
+            ]
+          },
+          "authenticationPlan": {
+            "description": "This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/HMACAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "oauth2": "#/components/schemas/OAuth2AuthenticationPlan",
+                "hmac": "#/components/schemas/HMACAuthenticationPlan",
+                "bearer": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "authenticationPlan"
+        ]
+      },
+      "CreateXAiCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the api key for Grok in XAi's console. Get it from here: https://console.x.ai",
+            "enum": [
+              "xai"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateGoogleCalendarOAuth2ClientCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "google.calendar.oauth2-client"
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "CreateGoogleCalendarOAuth2AuthorizationCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "google.calendar.oauth2-authorization"
+            ]
+          },
+          "authorizationId": {
+            "type": "string",
+            "description": "The authorization ID for the OAuth2 authorization"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "authorizationId"
+        ]
+      },
+      "CreateGoogleSheetsOAuth2AuthorizationCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "google.sheets.oauth2-authorization"
+            ]
+          },
+          "authorizationId": {
+            "type": "string",
+            "description": "The authorization ID for the OAuth2 authorization"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "authorizationId"
+        ]
+      },
+      "CreateSlackOAuth2AuthorizationCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "slack.oauth2-authorization"
+            ]
+          },
+          "authorizationId": {
+            "type": "string",
+            "description": "The authorization ID for the OAuth2 authorization"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "authorizationId"
+        ]
+      },
+      "CreateMinimaxCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "minimax"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "groupId": {
+            "type": "string",
+            "description": "This is the Minimax Group ID."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "groupId"
+        ]
+      },
+      "EndpointedSpeechLowConfidenceOptions": {
+        "type": "object",
+        "properties": {
+          "confidenceMin": {
+            "type": "number",
+            "description": "This is the minimum confidence threshold.\nTranscripts with confidence below this value will be discarded.\n\n@default confidenceMax - 0.2",
+            "minimum": 0,
+            "maximum": 1
+          },
+          "confidenceMax": {
+            "type": "number",
+            "description": "This is the maximum confidence threshold.\nTranscripts with confidence at or above this value will be processed normally.\n\n@default transcriber's confidenceThreshold",
+            "minimum": 0,
+            "maximum": 1
+          }
+        }
+      },
+      "CallHookTranscriberEndpointedSpeechLowConfidence": {
+        "type": "object",
+        "properties": {
+          "do": {
+            "type": "array",
+            "description": "This is the set of actions to perform when the hook triggers",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SayHookAction",
+                  "title": "SayHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallHookAction",
+                  "title": "ToolCallHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/MessageAddHookAction",
+                  "title": "MessageAddHookAction"
+                }
+              ]
+            }
+          },
+          "on": {
+            "type": "string",
+            "description": "This is the event that triggers this hook",
+            "maxLength": 1000
+          },
+          "options": {
+            "description": "This is the options for the hook including confidence thresholds",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/EndpointedSpeechLowConfidenceOptions"
+              }
+            ]
+          }
+        },
+        "required": [
+          "do",
+          "on"
+        ]
+      },
+      "SessionCreatedHook": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "description": "This is the event that triggers this hook",
+            "enum": [
+              "session.created"
+            ],
+            "maxLength": 1000
+          },
+          "do": {
+            "type": "array",
+            "description": "This is the set of actions to perform when the hook triggers.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolCallHookAction",
+                  "title": "ToolCallHookAction"
+                }
+              ]
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "Optional name for this hook instance.\nIf no name is provided, the hook will be auto generated as UUID.\n\n@default UUID",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
+      },
+      "SQLInjectionSecurityFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "The type of security threat to filter.",
+            "enum": [
+              "sql-injection"
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "XSSSecurityFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "The type of security threat to filter.",
+            "enum": [
+              "xss"
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "SSRFSecurityFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "The type of security threat to filter.",
+            "enum": [
+              "ssrf"
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "RCESecurityFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "The type of security threat to filter.",
+            "enum": [
+              "rce"
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "PromptInjectionSecurityFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "The type of security threat to filter.",
+            "enum": [
+              "prompt-injection"
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "RegexSecurityFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "The type of security threat to filter.",
+            "enum": [
+              "regex"
+            ]
+          },
+          "regex": {
+            "type": "string",
+            "description": "The regex pattern to filter.",
+            "example": "badword1|badword2"
+          }
+        },
+        "required": [
+          "type",
+          "regex"
+        ]
+      },
+      "AssistantOverrides": {
+        "type": "object",
+        "properties": {
+          "transcriber": {
+            "description": "These are the options for the assistant's transcriber.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "model": {
+            "description": "These are the options for the assistant's LLM.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AnthropicModel",
+                "title": "Anthropic"
+              },
+              {
+                "$ref": "#/components/schemas/AnthropicBedrockModel",
+                "title": "AnthropicBedrock"
+              },
+              {
+                "$ref": "#/components/schemas/AnyscaleModel",
+                "title": "Anyscale"
+              },
+              {
+                "$ref": "#/components/schemas/CerebrasModel",
+                "title": "Cerebras"
+              },
+              {
+                "$ref": "#/components/schemas/CustomLLMModel",
+                "title": "CustomLLM"
+              },
+              {
+                "$ref": "#/components/schemas/DeepInfraModel",
+                "title": "DeepInfra"
+              },
+              {
+                "$ref": "#/components/schemas/DeepSeekModel",
+                "title": "DeepSeek"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleModel",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/GroqModel",
+                "title": "Groq"
+              },
+              {
+                "$ref": "#/components/schemas/InflectionAIModel",
+                "title": "InflectionAI"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxLLMModel",
+                "title": "MiniMaxLLM"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIModel",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/OpenRouterModel",
+                "title": "OpenRouter"
+              },
+              {
+                "$ref": "#/components/schemas/PerplexityAIModel",
+                "title": "PerplexityAI"
+              },
+              {
+                "$ref": "#/components/schemas/TogetherAIModel",
+                "title": "Together"
+              },
+              {
+                "$ref": "#/components/schemas/XaiModel",
+                "title": "XAI"
+              }
+            ]
+          },
+          "voice": {
+            "description": "These are the options for the assistant's voice.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "firstMessage": {
+            "type": "string",
+            "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
+            "example": "Hello! How can I help you today?"
+          },
+          "firstMessageInterruptionsEnabled": {
+            "type": "boolean",
+            "default": false
+          },
+          "firstMessageMode": {
+            "type": "string",
+            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'",
+            "enum": [
+              "assistant-speaks-first",
+              "assistant-speaks-first-with-model-generated-message",
+              "assistant-waits-for-user"
+            ],
+            "example": "assistant-speaks-first"
+          },
+          "voicemailDetection": {
+            "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nBy default, voicemail detection is disabled.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off"
+                ]
+              },
+              {
+                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
+                "title": "Twilio"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoicemailDetectionPlan",
+                "title": "Vapi"
+              }
+            ]
+          },
+          "clientMessages": {
+            "type": "array",
+            "enum": [
+              "conversation-update",
+              "assistant.speechStarted",
+              "function-call",
+              "function-call-result",
+              "hang",
+              "language-changed",
+              "metadata",
+              "model-output",
+              "speech-update",
+              "status-update",
+              "transcript",
+              "tool-calls",
+              "tool-calls-result",
+              "tool.completed",
+              "transfer-update",
+              "user-interrupted",
+              "voice-input",
+              "workflow.node.started",
+              "assistant.started"
+            ],
+            "example": [
+              "conversation-update",
+              "function-call",
+              "hang",
+              "model-output",
+              "speech-update",
+              "status-update",
+              "transfer-update",
+              "transcript",
+              "tool-calls",
+              "user-interrupted",
+              "voice-input",
+              "workflow.node.started",
+              "assistant.started"
+            ],
+            "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started,assistant.started. You can check the shape of the messages in ClientMessage schema.",
+            "items": {
+              "type": "string",
+              "enum": [
+                "conversation-update",
+                "assistant.speechStarted",
+                "function-call",
+                "function-call-result",
+                "hang",
+                "language-changed",
+                "metadata",
+                "model-output",
+                "speech-update",
+                "status-update",
+                "transcript",
+                "tool-calls",
+                "tool-calls-result",
+                "tool.completed",
+                "transfer-update",
+                "user-interrupted",
+                "voice-input",
+                "workflow.node.started",
+                "assistant.started"
+              ]
+            }
+          },
+          "serverMessages": {
+            "type": "array",
+            "enum": [
+              "assistant.started",
+              "assistant.speechStarted",
+              "conversation-update",
+              "end-of-call-report",
+              "function-call",
+              "hang",
+              "language-changed",
+              "language-change-detected",
+              "model-output",
+              "phone-call-control",
+              "speech-update",
+              "status-update",
+              "transcript",
+              "transcript[transcriptType=\"final\"]",
+              "tool-calls",
+              "transfer-destination-request",
+              "handoff-destination-request",
+              "transfer-update",
+              "user-interrupted",
+              "voice-input",
+              "chat.created",
+              "chat.deleted",
+              "session.created",
+              "session.updated",
+              "session.deleted",
+              "call.deleted",
+              "call.delete.failed"
+            ],
+            "example": [
+              "conversation-update",
+              "end-of-call-report",
+              "function-call",
+              "hang",
+              "speech-update",
+              "status-update",
+              "tool-calls",
+              "transfer-destination-request",
+              "handoff-destination-request",
+              "user-interrupted",
+              "assistant.started"
+            ],
+            "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted,assistant.started. You can check the shape of the messages in ServerMessage schema.",
+            "items": {
+              "type": "string",
+              "enum": [
+                "assistant.started",
+                "assistant.speechStarted",
+                "conversation-update",
+                "end-of-call-report",
+                "function-call",
+                "hang",
+                "language-changed",
+                "language-change-detected",
+                "model-output",
+                "phone-call-control",
+                "speech-update",
+                "status-update",
+                "transcript",
+                "transcript[transcriptType=\"final\"]",
+                "tool-calls",
+                "transfer-destination-request",
+                "handoff-destination-request",
+                "transfer-update",
+                "user-interrupted",
+                "voice-input",
+                "chat.created",
+                "chat.deleted",
+                "session.created",
+                "session.updated",
+                "session.deleted",
+                "call.deleted",
+                "call.delete.failed"
+              ]
+            }
+          },
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 600
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+              }
+            ]
+          },
+          "modelOutputInMessagesEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\n@default false",
+            "example": false
+          },
+          "transportConfigurations": {
+            "type": "array",
+            "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransportConfigurationTwilio",
+                  "title": "Twilio"
+                }
+              ]
+            }
+          },
+          "observabilityPlan": {
+            "description": "This is the plan for observability of assistant's calls.\n\nCurrently, only Langfuse is supported.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
+                "title": "Langfuse"
+              }
+            ],
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+              }
+            ]
+          },
+          "credentials": {
+            "type": "array",
+            "description": "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.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "title": "AnthropicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "title": "AnthropicBedrockCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "title": "AnyscaleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "title": "AssemblyAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
+                  "title": "AzureCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "title": "AzureOpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "title": "ByoSipTrunkCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "title": "CartesiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "title": "CerebrasCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "title": "CloudflareCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "title": "CustomLLMCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "title": "DeepgramCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "title": "DeepInfraCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "title": "DeepSeekCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "title": "ElevenLabsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
+                  "title": "GcpCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "title": "GladiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "title": "GhlCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "title": "GoogleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
+                  "title": "GroqCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
+                  "title": "HumeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "title": "InflectionAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "title": "LangfuseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
+                  "title": "LmntCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
+                  "title": "MakeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
+                  "title": "MistralCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "title": "NeuphonicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "title": "OpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "title": "OpenRouterCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "title": "PerplexityAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "title": "PlayHTCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "title": "RimeAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "title": "RunpodCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
+                  "title": "S3Credential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "title": "SmallestAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "title": "SpeechmaticsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "title": "SonioxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "title": "SupabaseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
+                  "title": "TavusCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "title": "TogetherAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "title": "TwilioCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
+                  "title": "VonageCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "title": "WebhookCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomCredentialDTO",
+                  "title": "CustomCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
+                  "title": "XAiCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "title": "GoogleCalendarOAuth2ClientCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "title": "SlackOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "title": "GoHighLevelMCPCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInworldCredentialDTO",
+                  "title": "InworldCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "title": "MinimaxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "title": "WellSaidCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEmailCredentialDTO",
+                  "title": "EmailCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO",
+                  "title": "SlackWebhookCredential"
+                }
+              ],
+              "discriminator": {
+                "propertyName": "provider",
+                "mapping": {
+                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
+                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
+                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
+                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
+                  "make": "#/components/schemas/CreateMakeCredentialDTO",
+                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "s3": "#/components/schemas/CreateS3CredentialDTO",
+                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
+                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
+                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "custom-credential": "#/components/schemas/CreateCustomCredentialDTO",
+                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
+                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
+                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
+                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "soniox": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "inworld": "#/components/schemas/CreateInworldCredentialDTO",
+                  "minimax": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "email": "#/components/schemas/CreateEmailCredentialDTO",
+                  "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO"
+                }
+              }
+            }
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is a set of actions that will be performed on certain events.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CallHookCallEnding",
+                  "title": "CallHookCallEnding"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted",
+                  "title": "CallHookAssistantSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted",
+                  "title": "CallHookCustomerSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout",
+                  "title": "CallHookCustomerSpeechTimeout"
+                },
+                {
+                  "$ref": "#/components/schemas/SessionCreatedHook",
+                  "title": "SessionCreatedHook"
+                }
+              ]
+            }
+          },
+          "tools:append": {
+            "type": "array",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                  "title": "ApiRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateBashToolDTO",
+                  "title": "BashTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCodeToolDTO",
+                  "title": "CodeTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateComputerToolDTO",
+                  "title": "ComputerTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                  "title": "DtmfTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                  "title": "EndCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                  "title": "FunctionTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                  "title": "GoHighLevelCalendarAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                  "title": "GoHighLevelCalendarEventCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                  "title": "GoHighLevelContactCreateTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                  "title": "GoHighLevelContactGetTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                  "title": "GoogleCalendarCheckAvailabilityTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                  "title": "GoogleCalendarCreateEventTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                  "title": "GoogleSheetsRowAppendTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                  "title": "HandoffTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMcpToolDTO",
+                  "title": "McpTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateQueryToolDTO",
+                  "title": "QueryTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                  "title": "SlackSendMessageTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmsToolDTO",
+                  "title": "SmsTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                  "title": "TextEditorTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                  "title": "TransferCallTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                  "title": "SipRequestTool"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                  "title": "VoicemailTool"
+                }
+              ]
+            }
+          },
+          "variableValues": {
+            "type": "object",
+            "description": "These are values that will be used to replace the template variables in the assistant messages and other text-based fields.\nThis uses LiquidJS syntax. https://liquidjs.com/tutorials/intro-to-liquid.html\n\nSo for example, `{{ name }}` will be replaced with the value of `name` in `variableValues`.\n`{{\"now\" | date: \"%b %d, %Y, %I:%M %p\", \"America/New_York\"}}` will be replaced with the current date and time in New York.\n Some VAPI reserved defaults:\n - *customer* - the customer object"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.",
+            "maxLength": 40
+          },
+          "voicemailMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
+            "maxLength": 1000
+          },
+          "endCallMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.",
+            "maxLength": 1000
+          },
+          "endCallPhrases": {
+            "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 140,
+              "minLength": 2
+            }
+          },
+          "compliancePlan": {
+            "$ref": "#/components/schemas/CompliancePlan"
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is for metadata you want to store on the assistant."
+          },
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nSmart denoising can be combined with or used independently of Fourier denoising.\n\nOrder of precedence:\n- Smart denoising\n- Fourier denoising",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
+              }
+            ]
+          },
+          "analysisPlan": {
+            "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.",
+            "deprecated": true,
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisPlan"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
+          },
+          "stopSpeakingPlan": {
+            "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StopSpeakingPlan"
+              }
+            ]
+          },
+          "monitorPlan": {
+            "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n- To attach monitors to the assistant, set `monitorPlan.monitorIds` to the set of monitor ids.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/MonitorPlan"
+              }
+            ]
+          },
+          "credentialIds": {
+            "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "keypadInputPlan": {
+            "$ref": "#/components/schemas/KeypadInputPlan"
+          }
+        }
+      },
+      "CreateAssistantDTO": {
+        "type": "object",
+        "properties": {
+          "transcriber": {
+            "description": "These are the options for the assistant's transcriber.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "model": {
+            "description": "These are the options for the assistant's LLM.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AnthropicModel",
+                "title": "Anthropic"
+              },
+              {
+                "$ref": "#/components/schemas/AnthropicBedrockModel",
+                "title": "AnthropicBedrock"
+              },
+              {
+                "$ref": "#/components/schemas/AnyscaleModel",
+                "title": "Anyscale"
+              },
+              {
+                "$ref": "#/components/schemas/CerebrasModel",
+                "title": "Cerebras"
+              },
+              {
+                "$ref": "#/components/schemas/CustomLLMModel",
+                "title": "CustomLLM"
+              },
+              {
+                "$ref": "#/components/schemas/DeepInfraModel",
+                "title": "DeepInfra"
+              },
+              {
+                "$ref": "#/components/schemas/DeepSeekModel",
+                "title": "DeepSeek"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleModel",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/GroqModel",
+                "title": "Groq"
+              },
+              {
+                "$ref": "#/components/schemas/InflectionAIModel",
+                "title": "InflectionAI"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxLLMModel",
+                "title": "MiniMaxLLM"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIModel",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/OpenRouterModel",
+                "title": "OpenRouter"
+              },
+              {
+                "$ref": "#/components/schemas/PerplexityAIModel",
+                "title": "PerplexityAI"
+              },
+              {
+                "$ref": "#/components/schemas/TogetherAIModel",
+                "title": "Together"
+              },
+              {
+                "$ref": "#/components/schemas/XaiModel",
+                "title": "XAI"
+              }
+            ]
+          },
+          "voice": {
+            "description": "These are the options for the assistant's voice.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "firstMessage": {
+            "type": "string",
+            "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
+            "example": "Hello! How can I help you today?"
+          },
+          "firstMessageInterruptionsEnabled": {
+            "type": "boolean",
+            "default": false
+          },
+          "firstMessageMode": {
+            "type": "string",
+            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'",
+            "enum": [
+              "assistant-speaks-first",
+              "assistant-speaks-first-with-model-generated-message",
+              "assistant-waits-for-user"
+            ],
+            "example": "assistant-speaks-first"
+          },
+          "voicemailDetection": {
+            "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nBy default, voicemail detection is disabled.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off"
+                ]
+              },
+              {
+                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
+                "title": "Twilio"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoicemailDetectionPlan",
+                "title": "Vapi"
+              }
+            ]
+          },
+          "clientMessages": {
+            "type": "array",
+            "enum": [
+              "conversation-update",
+              "assistant.speechStarted",
+              "function-call",
+              "function-call-result",
+              "hang",
+              "language-changed",
+              "metadata",
+              "model-output",
+              "speech-update",
+              "status-update",
+              "transcript",
+              "tool-calls",
+              "tool-calls-result",
+              "tool.completed",
+              "transfer-update",
+              "user-interrupted",
+              "voice-input",
+              "workflow.node.started",
+              "assistant.started"
+            ],
+            "example": [
+              "conversation-update",
+              "function-call",
+              "hang",
+              "model-output",
+              "speech-update",
+              "status-update",
+              "transfer-update",
+              "transcript",
+              "tool-calls",
+              "user-interrupted",
+              "voice-input",
+              "workflow.node.started",
+              "assistant.started"
+            ],
+            "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started,assistant.started. You can check the shape of the messages in ClientMessage schema.",
+            "items": {
+              "type": "string",
+              "enum": [
+                "conversation-update",
+                "assistant.speechStarted",
+                "function-call",
+                "function-call-result",
+                "hang",
+                "language-changed",
+                "metadata",
+                "model-output",
+                "speech-update",
+                "status-update",
+                "transcript",
+                "tool-calls",
+                "tool-calls-result",
+                "tool.completed",
+                "transfer-update",
+                "user-interrupted",
+                "voice-input",
+                "workflow.node.started",
+                "assistant.started"
+              ]
+            }
+          },
+          "serverMessages": {
+            "type": "array",
+            "enum": [
+              "assistant.started",
+              "assistant.speechStarted",
+              "conversation-update",
+              "end-of-call-report",
+              "function-call",
+              "hang",
+              "language-changed",
+              "language-change-detected",
+              "model-output",
+              "phone-call-control",
+              "speech-update",
+              "status-update",
+              "transcript",
+              "transcript[transcriptType=\"final\"]",
+              "tool-calls",
+              "transfer-destination-request",
+              "handoff-destination-request",
+              "transfer-update",
+              "user-interrupted",
+              "voice-input",
+              "chat.created",
+              "chat.deleted",
+              "session.created",
+              "session.updated",
+              "session.deleted",
+              "call.deleted",
+              "call.delete.failed"
+            ],
+            "example": [
+              "conversation-update",
+              "end-of-call-report",
+              "function-call",
+              "hang",
+              "speech-update",
+              "status-update",
+              "tool-calls",
+              "transfer-destination-request",
+              "handoff-destination-request",
+              "user-interrupted",
+              "assistant.started"
+            ],
+            "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted,assistant.started. You can check the shape of the messages in ServerMessage schema.",
+            "items": {
+              "type": "string",
+              "enum": [
+                "assistant.started",
+                "assistant.speechStarted",
+                "conversation-update",
+                "end-of-call-report",
+                "function-call",
+                "hang",
+                "language-changed",
+                "language-change-detected",
+                "model-output",
+                "phone-call-control",
+                "speech-update",
+                "status-update",
+                "transcript",
+                "transcript[transcriptType=\"final\"]",
+                "tool-calls",
+                "transfer-destination-request",
+                "handoff-destination-request",
+                "transfer-update",
+                "user-interrupted",
+                "voice-input",
+                "chat.created",
+                "chat.deleted",
+                "session.created",
+                "session.updated",
+                "session.deleted",
+                "call.deleted",
+                "call.delete.failed"
+              ]
+            }
+          },
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 600
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+              }
+            ]
+          },
+          "modelOutputInMessagesEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\n@default false",
+            "example": false
+          },
+          "transportConfigurations": {
+            "type": "array",
+            "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransportConfigurationTwilio",
+                  "title": "Twilio"
+                }
+              ]
+            }
+          },
+          "observabilityPlan": {
+            "description": "This is the plan for observability of assistant's calls.\n\nCurrently, only Langfuse is supported.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
+                "title": "Langfuse"
+              }
+            ],
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+              }
+            ]
+          },
+          "credentials": {
+            "type": "array",
+            "description": "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.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "title": "AnthropicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "title": "AnthropicBedrockCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "title": "AnyscaleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "title": "AssemblyAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
+                  "title": "AzureCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "title": "AzureOpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "title": "ByoSipTrunkCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "title": "CartesiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "title": "CerebrasCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "title": "CloudflareCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "title": "CustomLLMCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "title": "DeepgramCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "title": "DeepInfraCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "title": "DeepSeekCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "title": "ElevenLabsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
+                  "title": "GcpCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "title": "GladiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "title": "GhlCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "title": "GoogleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
+                  "title": "GroqCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
+                  "title": "HumeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "title": "InflectionAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "title": "LangfuseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
+                  "title": "LmntCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
+                  "title": "MakeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
+                  "title": "MistralCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "title": "NeuphonicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "title": "OpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "title": "OpenRouterCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "title": "PerplexityAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "title": "PlayHTCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "title": "RimeAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "title": "RunpodCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
+                  "title": "S3Credential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "title": "SmallestAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "title": "SpeechmaticsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "title": "SonioxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "title": "SupabaseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
+                  "title": "TavusCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "title": "TogetherAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "title": "TwilioCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
+                  "title": "VonageCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "title": "WebhookCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomCredentialDTO",
+                  "title": "CustomCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
+                  "title": "XAiCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "title": "GoogleCalendarOAuth2ClientCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "title": "SlackOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "title": "GoHighLevelMCPCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInworldCredentialDTO",
+                  "title": "InworldCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "title": "MinimaxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "title": "WellSaidCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEmailCredentialDTO",
+                  "title": "EmailCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO",
+                  "title": "SlackWebhookCredential"
+                }
+              ],
+              "discriminator": {
+                "propertyName": "provider",
+                "mapping": {
+                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
+                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
+                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
+                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
+                  "make": "#/components/schemas/CreateMakeCredentialDTO",
+                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "s3": "#/components/schemas/CreateS3CredentialDTO",
+                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
+                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
+                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "custom-credential": "#/components/schemas/CreateCustomCredentialDTO",
+                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
+                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
+                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
+                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "soniox": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "inworld": "#/components/schemas/CreateInworldCredentialDTO",
+                  "minimax": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "email": "#/components/schemas/CreateEmailCredentialDTO",
+                  "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO"
+                }
+              }
+            }
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is a set of actions that will be performed on certain events.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CallHookCallEnding",
+                  "title": "CallHookCallEnding"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted",
+                  "title": "CallHookAssistantSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted",
+                  "title": "CallHookCustomerSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout",
+                  "title": "CallHookCustomerSpeechTimeout"
+                },
+                {
+                  "$ref": "#/components/schemas/SessionCreatedHook",
+                  "title": "SessionCreatedHook"
+                }
+              ]
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.",
+            "maxLength": 40
+          },
+          "voicemailMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
+            "maxLength": 1000
+          },
+          "endCallMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.",
+            "maxLength": 1000
+          },
+          "endCallPhrases": {
+            "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 140,
+              "minLength": 2
+            }
+          },
+          "compliancePlan": {
+            "$ref": "#/components/schemas/CompliancePlan"
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is for metadata you want to store on the assistant."
+          },
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nSmart denoising can be combined with or used independently of Fourier denoising.\n\nOrder of precedence:\n- Smart denoising\n- Fourier denoising",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
+              }
+            ]
+          },
+          "analysisPlan": {
+            "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.",
+            "deprecated": true,
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisPlan"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
+          },
+          "stopSpeakingPlan": {
+            "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StopSpeakingPlan"
+              }
+            ]
+          },
+          "monitorPlan": {
+            "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n- To attach monitors to the assistant, set `monitorPlan.monitorIds` to the set of monitor ids.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/MonitorPlan"
+              }
+            ]
+          },
+          "credentialIds": {
+            "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "keypadInputPlan": {
+            "$ref": "#/components/schemas/KeypadInputPlan"
+          }
+        }
+      },
+      "Assistant": {
+        "type": "object",
+        "properties": {
+          "transcriber": {
+            "description": "These are the options for the assistant's transcriber.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "model": {
+            "description": "These are the options for the assistant's LLM.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AnthropicModel",
+                "title": "Anthropic"
+              },
+              {
+                "$ref": "#/components/schemas/AnthropicBedrockModel",
+                "title": "AnthropicBedrock"
+              },
+              {
+                "$ref": "#/components/schemas/AnyscaleModel",
+                "title": "Anyscale"
+              },
+              {
+                "$ref": "#/components/schemas/CerebrasModel",
+                "title": "Cerebras"
+              },
+              {
+                "$ref": "#/components/schemas/CustomLLMModel",
+                "title": "CustomLLM"
+              },
+              {
+                "$ref": "#/components/schemas/DeepInfraModel",
+                "title": "DeepInfra"
+              },
+              {
+                "$ref": "#/components/schemas/DeepSeekModel",
+                "title": "DeepSeek"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleModel",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/GroqModel",
+                "title": "Groq"
+              },
+              {
+                "$ref": "#/components/schemas/InflectionAIModel",
+                "title": "InflectionAI"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxLLMModel",
+                "title": "MiniMaxLLM"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIModel",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/OpenRouterModel",
+                "title": "OpenRouter"
+              },
+              {
+                "$ref": "#/components/schemas/PerplexityAIModel",
+                "title": "PerplexityAI"
+              },
+              {
+                "$ref": "#/components/schemas/TogetherAIModel",
+                "title": "Together"
+              },
+              {
+                "$ref": "#/components/schemas/XaiModel",
+                "title": "XAI"
+              }
+            ]
+          },
+          "voice": {
+            "description": "These are the options for the assistant's voice.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "firstMessage": {
+            "type": "string",
+            "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
+            "example": "Hello! How can I help you today?"
+          },
+          "firstMessageInterruptionsEnabled": {
+            "type": "boolean",
+            "default": false
+          },
+          "firstMessageMode": {
+            "type": "string",
+            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'",
+            "enum": [
+              "assistant-speaks-first",
+              "assistant-speaks-first-with-model-generated-message",
+              "assistant-waits-for-user"
+            ],
+            "example": "assistant-speaks-first"
+          },
+          "voicemailDetection": {
+            "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nBy default, voicemail detection is disabled.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off"
+                ]
+              },
+              {
+                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
+                "title": "Twilio"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoicemailDetectionPlan",
+                "title": "Vapi"
+              }
+            ]
+          },
+          "clientMessages": {
+            "type": "array",
+            "enum": [
+              "conversation-update",
+              "assistant.speechStarted",
+              "function-call",
+              "function-call-result",
+              "hang",
+              "language-changed",
+              "metadata",
+              "model-output",
+              "speech-update",
+              "status-update",
+              "transcript",
+              "tool-calls",
+              "tool-calls-result",
+              "tool.completed",
+              "transfer-update",
+              "user-interrupted",
+              "voice-input",
+              "workflow.node.started",
+              "assistant.started"
+            ],
+            "example": [
+              "conversation-update",
+              "function-call",
+              "hang",
+              "model-output",
+              "speech-update",
+              "status-update",
+              "transfer-update",
+              "transcript",
+              "tool-calls",
+              "user-interrupted",
+              "voice-input",
+              "workflow.node.started",
+              "assistant.started"
+            ],
+            "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started,assistant.started. You can check the shape of the messages in ClientMessage schema.",
+            "items": {
+              "type": "string",
+              "enum": [
+                "conversation-update",
+                "assistant.speechStarted",
+                "function-call",
+                "function-call-result",
+                "hang",
+                "language-changed",
+                "metadata",
+                "model-output",
+                "speech-update",
+                "status-update",
+                "transcript",
+                "tool-calls",
+                "tool-calls-result",
+                "tool.completed",
+                "transfer-update",
+                "user-interrupted",
+                "voice-input",
+                "workflow.node.started",
+                "assistant.started"
+              ]
+            }
+          },
+          "serverMessages": {
+            "type": "array",
+            "enum": [
+              "assistant.started",
+              "assistant.speechStarted",
+              "conversation-update",
+              "end-of-call-report",
+              "function-call",
+              "hang",
+              "language-changed",
+              "language-change-detected",
+              "model-output",
+              "phone-call-control",
+              "speech-update",
+              "status-update",
+              "transcript",
+              "transcript[transcriptType=\"final\"]",
+              "tool-calls",
+              "transfer-destination-request",
+              "handoff-destination-request",
+              "transfer-update",
+              "user-interrupted",
+              "voice-input",
+              "chat.created",
+              "chat.deleted",
+              "session.created",
+              "session.updated",
+              "session.deleted",
+              "call.deleted",
+              "call.delete.failed"
+            ],
+            "example": [
+              "conversation-update",
+              "end-of-call-report",
+              "function-call",
+              "hang",
+              "speech-update",
+              "status-update",
+              "tool-calls",
+              "transfer-destination-request",
+              "handoff-destination-request",
+              "user-interrupted",
+              "assistant.started"
+            ],
+            "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted,assistant.started. You can check the shape of the messages in ServerMessage schema.",
+            "items": {
+              "type": "string",
+              "enum": [
+                "assistant.started",
+                "assistant.speechStarted",
+                "conversation-update",
+                "end-of-call-report",
+                "function-call",
+                "hang",
+                "language-changed",
+                "language-change-detected",
+                "model-output",
+                "phone-call-control",
+                "speech-update",
+                "status-update",
+                "transcript",
+                "transcript[transcriptType=\"final\"]",
+                "tool-calls",
+                "transfer-destination-request",
+                "handoff-destination-request",
+                "transfer-update",
+                "user-interrupted",
+                "voice-input",
+                "chat.created",
+                "chat.deleted",
+                "session.created",
+                "session.updated",
+                "session.deleted",
+                "call.deleted",
+                "call.delete.failed"
+              ]
+            }
+          },
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 600
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+              }
+            ]
+          },
+          "modelOutputInMessagesEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\n@default false",
+            "example": false
+          },
+          "transportConfigurations": {
+            "type": "array",
+            "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransportConfigurationTwilio",
+                  "title": "Twilio"
+                }
+              ]
+            }
+          },
+          "observabilityPlan": {
+            "description": "This is the plan for observability of assistant's calls.\n\nCurrently, only Langfuse is supported.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
+                "title": "Langfuse"
+              }
+            ],
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+              }
+            ]
+          },
+          "credentials": {
+            "type": "array",
+            "description": "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.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "title": "AnthropicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "title": "AnthropicBedrockCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "title": "AnyscaleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "title": "AssemblyAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
+                  "title": "AzureCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "title": "AzureOpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "title": "ByoSipTrunkCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "title": "CartesiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "title": "CerebrasCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "title": "CloudflareCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "title": "CustomLLMCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "title": "DeepgramCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "title": "DeepInfraCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "title": "DeepSeekCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "title": "ElevenLabsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
+                  "title": "GcpCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "title": "GladiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "title": "GhlCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "title": "GoogleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
+                  "title": "GroqCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
+                  "title": "HumeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "title": "InflectionAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "title": "LangfuseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
+                  "title": "LmntCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
+                  "title": "MakeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
+                  "title": "MistralCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "title": "NeuphonicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "title": "OpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "title": "OpenRouterCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "title": "PerplexityAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "title": "PlayHTCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "title": "RimeAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "title": "RunpodCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
+                  "title": "S3Credential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "title": "SmallestAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "title": "SpeechmaticsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "title": "SonioxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "title": "SupabaseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
+                  "title": "TavusCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "title": "TogetherAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "title": "TwilioCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
+                  "title": "VonageCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "title": "WebhookCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomCredentialDTO",
+                  "title": "CustomCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
+                  "title": "XAiCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "title": "GoogleCalendarOAuth2ClientCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "title": "SlackOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "title": "GoHighLevelMCPCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInworldCredentialDTO",
+                  "title": "InworldCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "title": "MinimaxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "title": "WellSaidCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEmailCredentialDTO",
+                  "title": "EmailCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO",
+                  "title": "SlackWebhookCredential"
+                }
+              ],
+              "discriminator": {
+                "propertyName": "provider",
+                "mapping": {
+                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
+                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
+                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
+                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
+                  "make": "#/components/schemas/CreateMakeCredentialDTO",
+                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "s3": "#/components/schemas/CreateS3CredentialDTO",
+                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
+                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
+                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "custom-credential": "#/components/schemas/CreateCustomCredentialDTO",
+                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
+                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
+                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
+                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "soniox": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "inworld": "#/components/schemas/CreateInworldCredentialDTO",
+                  "minimax": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "email": "#/components/schemas/CreateEmailCredentialDTO",
+                  "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO"
+                }
+              }
+            }
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is a set of actions that will be performed on certain events.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CallHookCallEnding",
+                  "title": "CallHookCallEnding"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted",
+                  "title": "CallHookAssistantSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted",
+                  "title": "CallHookCustomerSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout",
+                  "title": "CallHookCustomerSpeechTimeout"
+                },
+                {
+                  "$ref": "#/components/schemas/SessionCreatedHook",
+                  "title": "SessionCreatedHook"
+                }
+              ]
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.",
+            "maxLength": 40
+          },
+          "voicemailMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
+            "maxLength": 1000
+          },
+          "endCallMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.",
+            "maxLength": 1000
+          },
+          "endCallPhrases": {
+            "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 140,
+              "minLength": 2
+            }
+          },
+          "compliancePlan": {
+            "$ref": "#/components/schemas/CompliancePlan"
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is for metadata you want to store on the assistant."
+          },
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nSmart denoising can be combined with or used independently of Fourier denoising.\n\nOrder of precedence:\n- Smart denoising\n- Fourier denoising",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
+              }
+            ]
+          },
+          "analysisPlan": {
+            "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.",
+            "deprecated": true,
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisPlan"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
+          },
+          "stopSpeakingPlan": {
+            "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StopSpeakingPlan"
+              }
+            ]
+          },
+          "monitorPlan": {
+            "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n- To attach monitors to the assistant, set `monitorPlan.monitorIds` to the set of monitor ids.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/MonitorPlan"
+              }
+            ]
+          },
+          "credentialIds": {
+            "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "keypadInputPlan": {
+            "$ref": "#/components/schemas/KeypadInputPlan"
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the assistant."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this assistant belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "PaginationMeta": {
+        "type": "object",
+        "properties": {
+          "itemsPerPage": {
+            "type": "number"
+          },
+          "totalItems": {
+            "type": "number"
+          },
+          "currentPage": {
+            "type": "number"
+          },
+          "totalPages": {
+            "type": "number"
+          },
+          "hasNextPage": {
+            "type": "boolean"
+          },
+          "sortOrder": {
+            "type": "string",
+            "enum": [
+              "ASC",
+              "DESC"
+            ]
+          },
+          "itemsBeyondRetention": {
+            "type": "boolean"
+          },
+          "createdAtLe": {
+            "format": "date-time",
+            "type": "string"
+          },
+          "createdAtGe": {
+            "format": "date-time",
+            "type": "string"
+          }
+        },
+        "required": [
+          "itemsPerPage",
+          "totalItems",
+          "currentPage"
+        ]
+      },
+      "AssistantPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Assistant"
+            }
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "AssistantVersionPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array"
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          },
+          "nextPageState": {
+            "type": "string"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "UpdateAssistantDTO": {
+        "type": "object",
+        "properties": {
+          "transcriber": {
+            "description": "These are the options for the assistant's transcriber.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "model": {
+            "description": "These are the options for the assistant's LLM.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AnthropicModel",
+                "title": "Anthropic"
+              },
+              {
+                "$ref": "#/components/schemas/AnthropicBedrockModel",
+                "title": "AnthropicBedrock"
+              },
+              {
+                "$ref": "#/components/schemas/AnyscaleModel",
+                "title": "Anyscale"
+              },
+              {
+                "$ref": "#/components/schemas/CerebrasModel",
+                "title": "Cerebras"
+              },
+              {
+                "$ref": "#/components/schemas/CustomLLMModel",
+                "title": "CustomLLM"
+              },
+              {
+                "$ref": "#/components/schemas/DeepInfraModel",
+                "title": "DeepInfra"
+              },
+              {
+                "$ref": "#/components/schemas/DeepSeekModel",
+                "title": "DeepSeek"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleModel",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/GroqModel",
+                "title": "Groq"
+              },
+              {
+                "$ref": "#/components/schemas/InflectionAIModel",
+                "title": "InflectionAI"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxLLMModel",
+                "title": "MiniMaxLLM"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIModel",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/OpenRouterModel",
+                "title": "OpenRouter"
+              },
+              {
+                "$ref": "#/components/schemas/PerplexityAIModel",
+                "title": "PerplexityAI"
+              },
+              {
+                "$ref": "#/components/schemas/TogetherAIModel",
+                "title": "Together"
+              },
+              {
+                "$ref": "#/components/schemas/XaiModel",
+                "title": "XAI"
+              }
+            ]
+          },
+          "voice": {
+            "description": "These are the options for the assistant's voice.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "firstMessage": {
+            "type": "string",
+            "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
+            "example": "Hello! How can I help you today?"
+          },
+          "firstMessageInterruptionsEnabled": {
+            "type": "boolean",
+            "default": false
+          },
+          "firstMessageMode": {
+            "type": "string",
+            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'",
+            "enum": [
+              "assistant-speaks-first",
+              "assistant-speaks-first-with-model-generated-message",
+              "assistant-waits-for-user"
+            ],
+            "example": "assistant-speaks-first"
+          },
+          "voicemailDetection": {
+            "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nBy default, voicemail detection is disabled.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off"
+                ]
+              },
+              {
+                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
+                "title": "Twilio"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoicemailDetectionPlan",
+                "title": "Vapi"
+              }
+            ]
+          },
+          "clientMessages": {
+            "type": "array",
+            "enum": [
+              "conversation-update",
+              "assistant.speechStarted",
+              "function-call",
+              "function-call-result",
+              "hang",
+              "language-changed",
+              "metadata",
+              "model-output",
+              "speech-update",
+              "status-update",
+              "transcript",
+              "tool-calls",
+              "tool-calls-result",
+              "tool.completed",
+              "transfer-update",
+              "user-interrupted",
+              "voice-input",
+              "workflow.node.started",
+              "assistant.started"
+            ],
+            "example": [
+              "conversation-update",
+              "function-call",
+              "hang",
+              "model-output",
+              "speech-update",
+              "status-update",
+              "transfer-update",
+              "transcript",
+              "tool-calls",
+              "user-interrupted",
+              "voice-input",
+              "workflow.node.started",
+              "assistant.started"
+            ],
+            "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started,assistant.started. You can check the shape of the messages in ClientMessage schema.",
+            "items": {
+              "type": "string",
+              "enum": [
+                "conversation-update",
+                "assistant.speechStarted",
+                "function-call",
+                "function-call-result",
+                "hang",
+                "language-changed",
+                "metadata",
+                "model-output",
+                "speech-update",
+                "status-update",
+                "transcript",
+                "tool-calls",
+                "tool-calls-result",
+                "tool.completed",
+                "transfer-update",
+                "user-interrupted",
+                "voice-input",
+                "workflow.node.started",
+                "assistant.started"
+              ]
+            }
+          },
+          "serverMessages": {
+            "type": "array",
+            "enum": [
+              "assistant.started",
+              "assistant.speechStarted",
+              "conversation-update",
+              "end-of-call-report",
+              "function-call",
+              "hang",
+              "language-changed",
+              "language-change-detected",
+              "model-output",
+              "phone-call-control",
+              "speech-update",
+              "status-update",
+              "transcript",
+              "transcript[transcriptType=\"final\"]",
+              "tool-calls",
+              "transfer-destination-request",
+              "handoff-destination-request",
+              "transfer-update",
+              "user-interrupted",
+              "voice-input",
+              "chat.created",
+              "chat.deleted",
+              "session.created",
+              "session.updated",
+              "session.deleted",
+              "call.deleted",
+              "call.delete.failed"
+            ],
+            "example": [
+              "conversation-update",
+              "end-of-call-report",
+              "function-call",
+              "hang",
+              "speech-update",
+              "status-update",
+              "tool-calls",
+              "transfer-destination-request",
+              "handoff-destination-request",
+              "user-interrupted",
+              "assistant.started"
+            ],
+            "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted,assistant.started. You can check the shape of the messages in ServerMessage schema.",
+            "items": {
+              "type": "string",
+              "enum": [
+                "assistant.started",
+                "assistant.speechStarted",
+                "conversation-update",
+                "end-of-call-report",
+                "function-call",
+                "hang",
+                "language-changed",
+                "language-change-detected",
+                "model-output",
+                "phone-call-control",
+                "speech-update",
+                "status-update",
+                "transcript",
+                "transcript[transcriptType=\"final\"]",
+                "tool-calls",
+                "transfer-destination-request",
+                "handoff-destination-request",
+                "transfer-update",
+                "user-interrupted",
+                "voice-input",
+                "chat.created",
+                "chat.deleted",
+                "session.created",
+                "session.updated",
+                "session.deleted",
+                "call.deleted",
+                "call.delete.failed"
+              ]
+            }
+          },
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 600
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+              }
+            ]
+          },
+          "modelOutputInMessagesEnabled": {
+            "type": "boolean",
+            "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\n@default false",
+            "example": false
+          },
+          "transportConfigurations": {
+            "type": "array",
+            "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransportConfigurationTwilio",
+                  "title": "Twilio"
+                }
+              ]
+            }
+          },
+          "observabilityPlan": {
+            "description": "This is the plan for observability of assistant's calls.\n\nCurrently, only Langfuse is supported.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
+                "title": "Langfuse"
+              }
+            ],
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+              }
+            ]
+          },
+          "credentials": {
+            "type": "array",
+            "description": "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.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "title": "AnthropicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "title": "AnthropicBedrockCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "title": "AnyscaleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "title": "AssemblyAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
+                  "title": "AzureCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "title": "AzureOpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "title": "ByoSipTrunkCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "title": "CartesiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "title": "CerebrasCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "title": "CloudflareCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "title": "CustomLLMCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "title": "DeepgramCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "title": "DeepInfraCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "title": "DeepSeekCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "title": "ElevenLabsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
+                  "title": "GcpCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "title": "GladiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "title": "GhlCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "title": "GoogleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
+                  "title": "GroqCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
+                  "title": "HumeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "title": "InflectionAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "title": "LangfuseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
+                  "title": "LmntCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
+                  "title": "MakeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
+                  "title": "MistralCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "title": "NeuphonicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "title": "OpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "title": "OpenRouterCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "title": "PerplexityAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "title": "PlayHTCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "title": "RimeAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "title": "RunpodCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
+                  "title": "S3Credential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "title": "SmallestAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "title": "SpeechmaticsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "title": "SonioxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "title": "SupabaseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
+                  "title": "TavusCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "title": "TogetherAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "title": "TwilioCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
+                  "title": "VonageCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "title": "WebhookCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomCredentialDTO",
+                  "title": "CustomCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
+                  "title": "XAiCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "title": "GoogleCalendarOAuth2ClientCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "title": "SlackOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "title": "GoHighLevelMCPCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInworldCredentialDTO",
+                  "title": "InworldCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "title": "MinimaxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "title": "WellSaidCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEmailCredentialDTO",
+                  "title": "EmailCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO",
+                  "title": "SlackWebhookCredential"
+                }
+              ],
+              "discriminator": {
+                "propertyName": "provider",
+                "mapping": {
+                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
+                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
+                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
+                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
+                  "make": "#/components/schemas/CreateMakeCredentialDTO",
+                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "s3": "#/components/schemas/CreateS3CredentialDTO",
+                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
+                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
+                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "custom-credential": "#/components/schemas/CreateCustomCredentialDTO",
+                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
+                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
+                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
+                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "soniox": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "inworld": "#/components/schemas/CreateInworldCredentialDTO",
+                  "minimax": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "email": "#/components/schemas/CreateEmailCredentialDTO",
+                  "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO"
+                }
+              }
+            }
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is a set of actions that will be performed on certain events.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CallHookCallEnding",
+                  "title": "CallHookCallEnding"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted",
+                  "title": "CallHookAssistantSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted",
+                  "title": "CallHookCustomerSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout",
+                  "title": "CallHookCustomerSpeechTimeout"
+                },
+                {
+                  "$ref": "#/components/schemas/SessionCreatedHook",
+                  "title": "SessionCreatedHook"
+                }
+              ]
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.",
+            "maxLength": 40
+          },
+          "voicemailMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
+            "maxLength": 1000
+          },
+          "endCallMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.",
+            "maxLength": 1000
+          },
+          "endCallPhrases": {
+            "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "maxLength": 140,
+              "minLength": 2
+            }
+          },
+          "compliancePlan": {
+            "$ref": "#/components/schemas/CompliancePlan"
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is for metadata you want to store on the assistant."
+          },
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nSmart denoising can be combined with or used independently of Fourier denoising.\n\nOrder of precedence:\n- Smart denoising\n- Fourier denoising",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
+              }
+            ]
+          },
+          "analysisPlan": {
+            "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.",
+            "deprecated": true,
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisPlan"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
+          },
+          "stopSpeakingPlan": {
+            "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StopSpeakingPlan"
+              }
+            ]
+          },
+          "monitorPlan": {
+            "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n- To attach monitors to the assistant, set `monitorPlan.monitorIds` to the set of monitor ids.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/MonitorPlan"
+              }
+            ]
+          },
+          "credentialIds": {
+            "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "keypadInputPlan": {
+            "$ref": "#/components/schemas/KeypadInputPlan"
+          }
+        }
+      },
+      "Squad": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the squad."
+          },
+          "members": {
+            "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SquadMemberDTO"
+            }
+          },
+          "membersOverrides": {
+            "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the squad."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this squad belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the squad was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the squad was last updated."
+          }
+        },
+        "required": [
+          "members",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "UpdateSquadDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the squad."
+          },
+          "members": {
+            "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SquadMemberDTO"
+            }
+          },
+          "membersOverrides": {
+            "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          }
+        },
+        "required": [
+          "members"
+        ]
+      },
+      "Workflow": {
+        "type": "object",
+        "properties": {
+          "nodes": {
+            "type": "array",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ConversationNode",
+                  "title": "ConversationNode"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolNode",
+                  "title": "ToolNode"
+                }
+              ]
+            }
+          },
+          "model": {
+            "description": "This is the model for the workflow.\n\nThis can be overridden at node level using `nodes[n].model`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOpenAIModel",
+                "title": "WorkflowOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicModel",
+                "title": "WorkflowAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel",
+                "title": "WorkflowAnthropicBedrockModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowGoogleModel",
+                "title": "WorkflowGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowCustomModel",
+                "title": "WorkflowCustomModel"
+              }
+            ]
+          },
+          "transcriber": {
+            "description": "This is the transcriber for the workflow.\n\nThis can be overridden at node level using `nodes[n].transcriber`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "voice": {
+            "description": "This is the voice for the workflow.\n\nThis can be overridden at node level using `nodes[n].voice`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "observabilityPlan": {
+            "description": "This is the plan for observability of workflow's calls.\n\nCurrently, only Langfuse is supported.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
+                "title": "Langfuse"
+              }
+            ],
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+              }
+            ]
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
+              {
+                "type": "enum",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is a set of actions that will be performed on certain events.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CallHookCallEnding",
+                  "title": "CallHookCallEnding"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted",
+                  "title": "CallHookAssistantSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted",
+                  "title": "CallHookCustomerSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout",
+                  "title": "CallHookCustomerSpeechTimeout"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookModelResponseTimeout",
+                  "title": "CallHookModelResponseTimeout"
+                }
+              ]
+            }
+          },
+          "credentials": {
+            "type": "array",
+            "description": "These are dynamic credentials that will be used for the workflow 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.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "title": "AnthropicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "title": "AnthropicBedrockCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "title": "AnyscaleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "title": "AssemblyAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
+                  "title": "AzureCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "title": "AzureOpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "title": "ByoSipTrunkCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "title": "CartesiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "title": "CerebrasCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "title": "CloudflareCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "title": "CustomLLMCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "title": "DeepgramCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "title": "DeepInfraCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "title": "DeepSeekCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "title": "ElevenLabsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
+                  "title": "GcpCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "title": "GladiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "title": "GhlCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "title": "GoogleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
+                  "title": "GroqCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
+                  "title": "HumeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "title": "InflectionAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "title": "LangfuseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
+                  "title": "LmntCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
+                  "title": "MakeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
+                  "title": "MistralCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "title": "NeuphonicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "title": "OpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "title": "OpenRouterCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "title": "PerplexityAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "title": "PlayHTCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "title": "RimeAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "title": "RunpodCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
+                  "title": "S3Credential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "title": "SmallestAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "title": "SpeechmaticsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "title": "SonioxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "title": "SupabaseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
+                  "title": "TavusCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "title": "TogetherAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "title": "TwilioCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
+                  "title": "VonageCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "title": "WebhookCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomCredentialDTO",
+                  "title": "CustomCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
+                  "title": "XAiCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "title": "GoogleCalendarOAuth2ClientCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "title": "SlackOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "title": "GoHighLevelMCPCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInworldCredentialDTO",
+                  "title": "InworldCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "title": "MinimaxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "title": "WellSaidCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEmailCredentialDTO",
+                  "title": "EmailCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO",
+                  "title": "SlackWebhookCredential"
+                }
+              ],
+              "discriminator": {
+                "propertyName": "provider",
+                "mapping": {
+                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
+                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
+                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
+                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
+                  "make": "#/components/schemas/CreateMakeCredentialDTO",
+                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "s3": "#/components/schemas/CreateS3CredentialDTO",
+                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
+                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
+                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "custom-credential": "#/components/schemas/CreateCustomCredentialDTO",
+                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
+                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
+                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
+                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "soniox": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "inworld": "#/components/schemas/CreateInworldCredentialDTO",
+                  "minimax": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "email": "#/components/schemas/CreateEmailCredentialDTO",
+                  "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO"
+                }
+              }
+            }
+          },
+          "voicemailDetection": {
+            "description": "This is the voicemail detection plan for the workflow.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off"
+                ]
+              },
+              {
+                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
+                "title": "Twilio"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoicemailDetectionPlan",
+                "title": "Vapi"
+              }
+            ]
+          },
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum duration of the call in seconds.\n\nAfter this duration, the call will automatically end.\n\nDefault is 1800 (30 minutes), max is 43200 (12 hours), and min is 10 seconds.",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 600
+          },
+          "id": {
+            "type": "string"
+          },
+          "orgId": {
+            "type": "string"
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string"
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string"
+          },
+          "name": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "edges": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Edge"
+            }
+          },
+          "globalPrompt": {
+            "type": "string",
+            "maxLength": 5000
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. tool.server\n2. workflow.server / assistant.server\n3. phoneNumber.server\n4. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "compliancePlan": {
+            "description": "This is the compliance plan for the workflow. It allows you to configure HIPAA and other compliance settings.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CompliancePlan"
+              }
+            ]
+          },
+          "analysisPlan": {
+            "description": "This is the plan for analysis of workflow's calls. Stored in `call.analysis`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisPlan"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is the plan for artifacts generated during workflow's calls. Stored in `call.artifact`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the workflow nodes should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
+          },
+          "stopSpeakingPlan": {
+            "description": "This is the plan for when workflow nodes should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StopSpeakingPlan"
+              }
+            ]
+          },
+          "monitorPlan": {
+            "description": "This is the plan for real-time monitoring of the workflow's calls.\n\nUsage:\n- To enable live listening of the workflow's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the workflow's calls, set `monitorPlan.controlEnabled` to `true`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/MonitorPlan"
+              }
+            ]
+          },
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nBoth can be used together. Order of precedence:\n- Smart denoising\n- Fourier denoising",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
+              }
+            ]
+          },
+          "credentialIds": {
+            "description": "These are the credentials that will be used for the workflow calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "keypadInputPlan": {
+            "description": "This is the plan for keypad input handling during workflow calls.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/KeypadInputPlan"
+              }
+            ]
+          },
+          "voicemailMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "nodes",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "name",
+          "edges"
+        ]
+      },
+      "CreateWorkflowDTO": {
+        "type": "object",
+        "properties": {
+          "nodes": {
+            "type": "array",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ConversationNode",
+                  "title": "ConversationNode"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolNode",
+                  "title": "ToolNode"
+                }
+              ]
+            }
+          },
+          "model": {
+            "description": "This is the model for the workflow.\n\nThis can be overridden at node level using `nodes[n].model`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOpenAIModel",
+                "title": "WorkflowOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicModel",
+                "title": "WorkflowAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel",
+                "title": "WorkflowAnthropicBedrockModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowGoogleModel",
+                "title": "WorkflowGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowCustomModel",
+                "title": "WorkflowCustomModel"
+              }
+            ]
+          },
+          "transcriber": {
+            "description": "This is the transcriber for the workflow.\n\nThis can be overridden at node level using `nodes[n].transcriber`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "voice": {
+            "description": "This is the voice for the workflow.\n\nThis can be overridden at node level using `nodes[n].voice`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "observabilityPlan": {
+            "description": "This is the plan for observability of workflow's calls.\n\nCurrently, only Langfuse is supported.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
+                "title": "Langfuse"
+              }
+            ],
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+              }
+            ]
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
+              {
+                "type": "enum",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is a set of actions that will be performed on certain events.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CallHookCallEnding",
+                  "title": "CallHookCallEnding"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted",
+                  "title": "CallHookAssistantSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted",
+                  "title": "CallHookCustomerSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout",
+                  "title": "CallHookCustomerSpeechTimeout"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookModelResponseTimeout",
+                  "title": "CallHookModelResponseTimeout"
+                }
+              ]
+            }
+          },
+          "credentials": {
+            "type": "array",
+            "description": "These are dynamic credentials that will be used for the workflow 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.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "title": "AnthropicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "title": "AnthropicBedrockCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "title": "AnyscaleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "title": "AssemblyAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
+                  "title": "AzureCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "title": "AzureOpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "title": "ByoSipTrunkCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "title": "CartesiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "title": "CerebrasCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "title": "CloudflareCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "title": "CustomLLMCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "title": "DeepgramCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "title": "DeepInfraCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "title": "DeepSeekCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "title": "ElevenLabsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
+                  "title": "GcpCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "title": "GladiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "title": "GhlCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "title": "GoogleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
+                  "title": "GroqCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
+                  "title": "HumeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "title": "InflectionAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "title": "LangfuseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
+                  "title": "LmntCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
+                  "title": "MakeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
+                  "title": "MistralCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "title": "NeuphonicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "title": "OpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "title": "OpenRouterCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "title": "PerplexityAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "title": "PlayHTCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "title": "RimeAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "title": "RunpodCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
+                  "title": "S3Credential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "title": "SmallestAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "title": "SpeechmaticsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "title": "SonioxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "title": "SupabaseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
+                  "title": "TavusCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "title": "TogetherAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "title": "TwilioCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
+                  "title": "VonageCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "title": "WebhookCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomCredentialDTO",
+                  "title": "CustomCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
+                  "title": "XAiCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "title": "GoogleCalendarOAuth2ClientCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "title": "SlackOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "title": "GoHighLevelMCPCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInworldCredentialDTO",
+                  "title": "InworldCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "title": "MinimaxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "title": "WellSaidCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEmailCredentialDTO",
+                  "title": "EmailCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO",
+                  "title": "SlackWebhookCredential"
+                }
+              ],
+              "discriminator": {
+                "propertyName": "provider",
+                "mapping": {
+                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
+                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
+                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
+                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
+                  "make": "#/components/schemas/CreateMakeCredentialDTO",
+                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "s3": "#/components/schemas/CreateS3CredentialDTO",
+                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
+                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
+                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "custom-credential": "#/components/schemas/CreateCustomCredentialDTO",
+                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
+                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
+                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
+                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "soniox": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "inworld": "#/components/schemas/CreateInworldCredentialDTO",
+                  "minimax": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "email": "#/components/schemas/CreateEmailCredentialDTO",
+                  "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO"
+                }
+              }
+            }
+          },
+          "voicemailDetection": {
+            "description": "This is the voicemail detection plan for the workflow.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off"
+                ]
+              },
+              {
+                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
+                "title": "Twilio"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoicemailDetectionPlan",
+                "title": "Vapi"
+              }
+            ]
+          },
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum duration of the call in seconds.\n\nAfter this duration, the call will automatically end.\n\nDefault is 1800 (30 minutes), max is 43200 (12 hours), and min is 10 seconds.",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 600
+          },
+          "name": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "edges": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Edge"
+            }
+          },
+          "globalPrompt": {
+            "type": "string",
+            "maxLength": 5000
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. tool.server\n2. workflow.server / assistant.server\n3. phoneNumber.server\n4. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "compliancePlan": {
+            "description": "This is the compliance plan for the workflow. It allows you to configure HIPAA and other compliance settings.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CompliancePlan"
+              }
+            ]
+          },
+          "analysisPlan": {
+            "description": "This is the plan for analysis of workflow's calls. Stored in `call.analysis`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisPlan"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is the plan for artifacts generated during workflow's calls. Stored in `call.artifact`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the workflow nodes should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
+          },
+          "stopSpeakingPlan": {
+            "description": "This is the plan for when workflow nodes should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StopSpeakingPlan"
+              }
+            ]
+          },
+          "monitorPlan": {
+            "description": "This is the plan for real-time monitoring of the workflow's calls.\n\nUsage:\n- To enable live listening of the workflow's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the workflow's calls, set `monitorPlan.controlEnabled` to `true`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/MonitorPlan"
+              }
+            ]
+          },
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nBoth can be used together. Order of precedence:\n- Smart denoising\n- Fourier denoising",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
+              }
+            ]
+          },
+          "credentialIds": {
+            "description": "These are the credentials that will be used for the workflow calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "keypadInputPlan": {
+            "description": "This is the plan for keypad input handling during workflow calls.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/KeypadInputPlan"
+              }
+            ]
+          },
+          "voicemailMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "nodes",
+          "name",
+          "edges"
+        ]
+      },
+      "UpdateWorkflowDTO": {
+        "type": "object",
+        "properties": {
+          "nodes": {
+            "type": "array",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ConversationNode",
+                  "title": "ConversationNode"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolNode",
+                  "title": "ToolNode"
+                }
+              ]
+            }
+          },
+          "model": {
+            "description": "This is the model for the workflow.\n\nThis can be overridden at node level using `nodes[n].model`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOpenAIModel",
+                "title": "WorkflowOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicModel",
+                "title": "WorkflowAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel",
+                "title": "WorkflowAnthropicBedrockModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowGoogleModel",
+                "title": "WorkflowGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowCustomModel",
+                "title": "WorkflowCustomModel"
+              }
+            ]
+          },
+          "transcriber": {
+            "description": "This is the transcriber for the workflow.\n\nThis can be overridden at node level using `nodes[n].transcriber`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssemblyAITranscriber",
+                "title": "AssemblyAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/AzureSpeechTranscriber",
+                "title": "AzureSpeechTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CustomTranscriber",
+                "title": "CustomTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramTranscriber",
+                "title": "DeepgramTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsTranscriber",
+                "title": "ElevenLabsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GladiaTranscriber",
+                "title": "GladiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleTranscriber",
+                "title": "GoogleTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
+                "title": "SpeechmaticsTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/TalkscriberTranscriber",
+                "title": "TalkscriberTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAITranscriber",
+                "title": "OpenAITranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaTranscriber",
+                "title": "CartesiaTranscriber"
+              },
+              {
+                "$ref": "#/components/schemas/SonioxTranscriber",
+                "title": "SonioxTranscriber"
+              }
+            ]
+          },
+          "voice": {
+            "description": "This is the voice for the workflow.\n\nThis can be overridden at node level using `nodes[n].voice`.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AzureVoice",
+                "title": "AzureVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CartesiaVoice",
+                "title": "CartesiaVoice"
+              },
+              {
+                "$ref": "#/components/schemas/CustomVoice",
+                "title": "CustomVoice"
+              },
+              {
+                "$ref": "#/components/schemas/DeepgramVoice",
+                "title": "DeepgramVoice"
+              },
+              {
+                "$ref": "#/components/schemas/ElevenLabsVoice",
+                "title": "ElevenLabsVoice"
+              },
+              {
+                "$ref": "#/components/schemas/HumeVoice",
+                "title": "HumeVoice"
+              },
+              {
+                "$ref": "#/components/schemas/LMNTVoice",
+                "title": "LMNTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/NeuphonicVoice",
+                "title": "NeuphonicVoice"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoice",
+                "title": "OpenAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/PlayHTVoice",
+                "title": "PlayHTVoice"
+              },
+              {
+                "$ref": "#/components/schemas/WellSaidVoice",
+                "title": "WellSaidVoice"
+              },
+              {
+                "$ref": "#/components/schemas/RimeAIVoice",
+                "title": "RimeAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SmallestAIVoice",
+                "title": "SmallestAIVoice"
+              },
+              {
+                "$ref": "#/components/schemas/TavusVoice",
+                "title": "TavusVoice"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoice",
+                "title": "VapiVoice"
+              },
+              {
+                "$ref": "#/components/schemas/SesameVoice",
+                "title": "SesameVoice"
+              },
+              {
+                "$ref": "#/components/schemas/InworldVoice",
+                "title": "InworldVoice"
+              },
+              {
+                "$ref": "#/components/schemas/MinimaxVoice",
+                "title": "MinimaxVoice"
+              }
+            ]
+          },
+          "observabilityPlan": {
+            "description": "This is the plan for observability of workflow's calls.\n\nCurrently, only Langfuse is supported.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
+                "title": "Langfuse"
+              }
+            ],
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+              }
+            ]
+          },
+          "backgroundSound": {
+            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
+            "oneOf": [
+              {
+                "type": "enum",
+                "enum": [
+                  "off",
+                  "office"
+                ],
+                "example": "office"
+              },
+              {
+                "type": "string",
+                "format": "uri",
+                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is a set of actions that will be performed on certain events.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CallHookCallEnding",
+                  "title": "CallHookCallEnding"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookAssistantSpeechInterrupted",
+                  "title": "CallHookAssistantSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechInterrupted",
+                  "title": "CallHookCustomerSpeechInterrupted"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookCustomerSpeechTimeout",
+                  "title": "CallHookCustomerSpeechTimeout"
+                },
+                {
+                  "$ref": "#/components/schemas/CallHookModelResponseTimeout",
+                  "title": "CallHookModelResponseTimeout"
+                }
+              ]
+            }
+          },
+          "credentials": {
+            "type": "array",
+            "description": "These are dynamic credentials that will be used for the workflow 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.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "title": "AnthropicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "title": "AnthropicBedrockCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "title": "AnyscaleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "title": "AssemblyAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
+                  "title": "AzureCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "title": "AzureOpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "title": "ByoSipTrunkCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "title": "CartesiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "title": "CerebrasCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "title": "CloudflareCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "title": "CustomLLMCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "title": "DeepgramCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "title": "DeepInfraCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "title": "DeepSeekCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "title": "ElevenLabsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
+                  "title": "GcpCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "title": "GladiaCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "title": "GhlCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "title": "GoogleCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
+                  "title": "GroqCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
+                  "title": "HumeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "title": "InflectionAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "title": "LangfuseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
+                  "title": "LmntCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
+                  "title": "MakeCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
+                  "title": "MistralCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "title": "NeuphonicCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "title": "OpenAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "title": "OpenRouterCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "title": "PerplexityAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "title": "PlayHTCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "title": "RimeAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "title": "RunpodCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
+                  "title": "S3Credential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "title": "SmallestAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "title": "SpeechmaticsCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "title": "SonioxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "title": "SupabaseCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
+                  "title": "TavusCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "title": "TogetherAICredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "title": "TwilioCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
+                  "title": "VonageCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "title": "WebhookCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateCustomCredentialDTO",
+                  "title": "CustomCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
+                  "title": "XAiCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "title": "GoogleCalendarOAuth2ClientCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "title": "SlackOAuth2AuthorizationCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "title": "GoHighLevelMCPCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateInworldCredentialDTO",
+                  "title": "InworldCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "title": "MinimaxCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "title": "WellSaidCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateEmailCredentialDTO",
+                  "title": "EmailCredential"
+                },
+                {
+                  "$ref": "#/components/schemas/CreateSlackWebhookCredentialDTO",
+                  "title": "SlackWebhookCredential"
+                }
+              ],
+              "discriminator": {
+                "propertyName": "provider",
+                "mapping": {
+                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
+                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
+                  "anthropic-bedrock": "#/components/schemas/CreateAnthropicBedrockCredentialDTO",
+                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
+                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
+                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
+                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
+                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
+                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
+                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
+                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
+                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
+                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
+                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
+                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
+                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
+                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
+                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
+                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
+                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
+                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
+                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
+                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
+                  "make": "#/components/schemas/CreateMakeCredentialDTO",
+                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
+                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
+                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
+                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
+                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
+                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
+                  "s3": "#/components/schemas/CreateS3CredentialDTO",
+                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
+                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
+                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
+                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
+                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
+                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
+                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
+                  "custom-credential": "#/components/schemas/CreateCustomCredentialDTO",
+                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
+                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
+                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
+                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
+                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
+                  "soniox": "#/components/schemas/CreateSonioxCredentialDTO",
+                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
+                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
+                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
+                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
+                  "ghl.oauth2-authorization": "#/components/schemas/CreateGoHighLevelMCPCredentialDTO",
+                  "inworld": "#/components/schemas/CreateInworldCredentialDTO",
+                  "minimax": "#/components/schemas/CreateMinimaxCredentialDTO",
+                  "wellsaid": "#/components/schemas/CreateWellSaidCredentialDTO",
+                  "email": "#/components/schemas/CreateEmailCredentialDTO",
+                  "slack-webhook": "#/components/schemas/CreateSlackWebhookCredentialDTO"
+                }
+              }
+            }
+          },
+          "voicemailDetection": {
+            "description": "This is the voicemail detection plan for the workflow.",
+            "oneOf": [
+              {
+                "type": "string",
+                "enum": [
+                  "off"
+                ]
+              },
+              {
+                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
+                "title": "Google"
+              },
+              {
+                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
+                "title": "OpenAI"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
+                "title": "Twilio"
+              },
+              {
+                "$ref": "#/components/schemas/VapiVoicemailDetectionPlan",
+                "title": "Vapi"
+              }
+            ]
+          },
+          "maxDurationSeconds": {
+            "type": "number",
+            "description": "This is the maximum duration of the call in seconds.\n\nAfter this duration, the call will automatically end.\n\nDefault is 1800 (30 minutes), max is 43200 (12 hours), and min is 10 seconds.",
+            "minimum": 10,
+            "maximum": 43200,
+            "example": 600
+          },
+          "name": {
+            "type": "string",
+            "maxLength": 80
+          },
+          "edges": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Edge"
+            }
+          },
+          "globalPrompt": {
+            "type": "string",
+            "maxLength": 5000
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. tool.server\n2. workflow.server / assistant.server\n3. phoneNumber.server\n4. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "compliancePlan": {
+            "description": "This is the compliance plan for the workflow. It allows you to configure HIPAA and other compliance settings.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CompliancePlan"
+              }
+            ]
+          },
+          "analysisPlan": {
+            "description": "This is the plan for analysis of workflow's calls. Stored in `call.analysis`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisPlan"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is the plan for artifacts generated during workflow's calls. Stored in `call.artifact`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "startSpeakingPlan": {
+            "description": "This is the plan for when the workflow nodes should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StartSpeakingPlan"
+              }
+            ]
+          },
+          "stopSpeakingPlan": {
+            "description": "This is the plan for when workflow nodes should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/StopSpeakingPlan"
+              }
+            ]
+          },
+          "monitorPlan": {
+            "description": "This is the plan for real-time monitoring of the workflow's calls.\n\nUsage:\n- To enable live listening of the workflow's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the workflow's calls, set `monitorPlan.controlEnabled` to `true`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/MonitorPlan"
+              }
+            ]
+          },
+          "backgroundSpeechDenoisingPlan": {
+            "description": "This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nBoth can be used together. Order of precedence:\n- Smart denoising\n- Fourier denoising",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackgroundSpeechDenoisingPlan"
+              }
+            ]
+          },
+          "credentialIds": {
+            "description": "These are the credentials that will be used for the workflow calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "keypadInputPlan": {
+            "description": "This is the plan for keypad input handling during workflow calls.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/KeypadInputPlan"
+              }
+            ]
+          },
+          "voicemailMessage": {
+            "type": "string",
+            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
+            "maxLength": 1000
+          }
+        }
+      },
+      "SubscriptionLimits": {
+        "type": "object",
+        "properties": {
+          "concurrencyBlocked": {
+            "type": "boolean",
+            "description": "True if this call was blocked by the Call Concurrency limit",
+            "default": false
+          },
+          "concurrencyLimit": {
+            "type": "number",
+            "description": "Account Call Concurrency limit"
+          },
+          "remainingConcurrentCalls": {
+            "type": "number",
+            "description": "Incremental number of concurrent calls that will be allowed, including this call"
+          }
+        }
+      },
+      "AnalysisCostBreakdown": {
+        "type": "object",
+        "properties": {
+          "summary": {
+            "type": "number",
+            "description": "This is the cost to summarize the call."
+          },
+          "summaryPromptTokens": {
+            "type": "number",
+            "description": "This is the number of prompt tokens used to summarize the call."
+          },
+          "summaryCompletionTokens": {
+            "type": "number",
+            "description": "This is the number of completion tokens used to summarize the call."
+          },
+          "summaryCachedPromptTokens": {
+            "type": "number",
+            "description": "This is the number of cached prompt tokens used to summarize the call."
+          },
+          "structuredData": {
+            "type": "number",
+            "description": "This is the cost to extract structured data from the call."
+          },
+          "structuredDataPromptTokens": {
+            "type": "number",
+            "description": "This is the number of prompt tokens used to extract structured data from the call."
+          },
+          "structuredDataCompletionTokens": {
+            "type": "number",
+            "description": "This is the number of completion tokens used to extract structured data from the call."
+          },
+          "structuredDataCachedPromptTokens": {
+            "type": "number",
+            "description": "This is the number of cached prompt tokens used to extract structured data from the call."
+          },
+          "successEvaluation": {
+            "type": "number",
+            "description": "This is the cost to evaluate if the call was successful."
+          },
+          "successEvaluationPromptTokens": {
+            "type": "number",
+            "description": "This is the number of prompt tokens used to evaluate if the call was successful."
+          },
+          "successEvaluationCompletionTokens": {
+            "type": "number",
+            "description": "This is the number of completion tokens used to evaluate if the call was successful."
+          },
+          "successEvaluationCachedPromptTokens": {
+            "type": "number",
+            "description": "This is the number of cached prompt tokens used to evaluate if the call was successful."
+          },
+          "structuredOutput": {
+            "type": "number",
+            "description": "This is the cost to evaluate structuredOutputs from the call."
+          },
+          "structuredOutputPromptTokens": {
+            "type": "number",
+            "description": "This is the number of prompt tokens used to evaluate structuredOutputs from the call."
+          },
+          "structuredOutputCompletionTokens": {
+            "type": "number",
+            "description": "This is the number of completion tokens used to evaluate structuredOutputs from the call."
+          },
+          "structuredOutputCachedPromptTokens": {
+            "type": "number",
+            "description": "This is the number of cached prompt tokens used to evaluate structuredOutputs from the call."
+          }
+        }
+      },
+      "CostBreakdown": {
+        "type": "object",
+        "properties": {
+          "transport": {
+            "type": "number",
+            "description": "This is the cost of the transport provider, like Twilio or Vonage."
+          },
+          "stt": {
+            "type": "number",
+            "description": "This is the cost of the speech-to-text service."
+          },
+          "llm": {
+            "type": "number",
+            "description": "This is the cost of the language model."
+          },
+          "tts": {
+            "type": "number",
+            "description": "This is the cost of the text-to-speech service."
+          },
+          "vapi": {
+            "type": "number",
+            "description": "This is the cost of Vapi."
+          },
+          "chat": {
+            "type": "number",
+            "description": "This is the cost of chat interactions."
+          },
+          "total": {
+            "type": "number",
+            "description": "This is the total cost of the call."
+          },
+          "llmPromptTokens": {
+            "type": "number",
+            "description": "This is the LLM prompt tokens used for the call."
+          },
+          "llmCompletionTokens": {
+            "type": "number",
+            "description": "This is the LLM completion tokens used for the call."
+          },
+          "llmCachedPromptTokens": {
+            "type": "number",
+            "description": "This is the LLM cached prompt tokens used for the call."
+          },
+          "ttsCharacters": {
+            "type": "number",
+            "description": "This is the TTS characters used for the call."
+          },
+          "analysisCostBreakdown": {
+            "description": "This is the cost of the analysis.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AnalysisCostBreakdown"
+              }
+            ]
+          }
+        }
+      },
+      "Analysis": {
+        "type": "object",
+        "properties": {
+          "summary": {
+            "type": "string",
+            "description": "This is the summary of the call. Customize by setting `assistant.analysisPlan.summaryPrompt`."
+          },
+          "structuredData": {
+            "type": "object",
+            "description": "This is the structured data extracted from the call. Customize by setting `assistant.analysisPlan.structuredDataPrompt` and/or `assistant.analysisPlan.structuredDataSchema`."
+          },
+          "structuredDataMulti": {
+            "description": "This is the structured data catalog of the call. Customize by setting `assistant.analysisPlan.structuredDataMultiPlan`.",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
+          },
+          "successEvaluation": {
+            "type": "string",
+            "description": "This is the evaluation of the call. Customize by setting `assistant.analysisPlan.successEvaluationPrompt` and/or `assistant.analysisPlan.successEvaluationRubric`."
+          }
+        }
+      },
+      "MonitorResult": {
+        "type": "object",
+        "properties": {
+          "monitorId": {
+            "type": "string"
+          },
+          "filterPassed": {
+            "type": "boolean"
+          }
+        },
+        "required": [
+          "monitorId",
+          "filterPassed"
+        ]
+      },
+      "Monitor": {
+        "type": "object",
+        "properties": {
+          "monitors": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/MonitorResult"
+            }
+          },
+          "listenUrl": {
+            "type": "string",
+            "description": "This is the URL where the assistant's calls can be listened to in real-time. To enable, set `assistant.monitorPlan.listenEnabled` to `true`."
+          },
+          "controlUrl": {
+            "type": "string",
+            "description": "This is the URL where the assistant's calls can be controlled in real-time. To enable, set `assistant.monitorPlan.controlEnabled` to `true`."
+          }
+        }
+      },
+      "Mono": {
+        "type": "object",
+        "properties": {
+          "combinedUrl": {
+            "type": "string",
+            "description": "This is the combined recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`."
+          },
+          "assistantUrl": {
+            "type": "string",
+            "description": "This is the mono recording url for the assistant. To enable, set `assistant.artifactPlan.recordingEnabled`."
+          },
+          "customerUrl": {
+            "type": "string",
+            "description": "This is the mono recording url for the customer. To enable, set `assistant.artifactPlan.recordingEnabled`."
+          }
+        }
+      },
+      "Recording": {
+        "type": "object",
+        "properties": {
+          "stereoUrl": {
+            "type": "string",
+            "description": "This is the stereo recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`."
+          },
+          "videoUrl": {
+            "type": "string",
+            "description": "This is the video recording url for the call. To enable, set `assistant.artifactPlan.videoRecordingEnabled`."
+          },
+          "videoRecordingStartDelaySeconds": {
+            "type": "number",
+            "description": "This is video recording start delay in ms. To enable, set `assistant.artifactPlan.videoRecordingEnabled`. This can be used to align the playback of the recording with artifact.messages timestamps."
+          },
+          "mono": {
+            "description": "This is the mono recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Mono"
+              }
+            ]
+          }
+        }
+      },
+      "NodeArtifact": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that were spoken during the node.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/BotMessage",
+                  "title": "BotMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallMessage",
+                  "title": "ToolCallMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallResultMessage",
+                  "title": "ToolCallResultMessage"
+                }
+              ]
+            }
+          },
+          "nodeName": {
+            "type": "string",
+            "description": "This is the node name."
+          },
+          "variableValues": {
+            "type": "object",
+            "description": "These are the variable values that were extracted from the node."
+          }
+        }
+      },
+      "AssistantActivation": {
+        "type": "object",
+        "properties": {
+          "assistantName": {
+            "type": "string",
+            "description": "This is the name of the assistant that was active during the call."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the ID of the assistant that was active during the call."
+          }
+        },
+        "required": [
+          "assistantName"
+        ]
+      },
+      "TurnLatency": {
+        "type": "object",
+        "properties": {
+          "modelLatency": {
+            "type": "number",
+            "description": "This is the model latency for the first token."
+          },
+          "voiceLatency": {
+            "type": "number",
+            "description": "This is the voice latency from the model output."
+          },
+          "transcriberLatency": {
+            "type": "number",
+            "description": "This is the transcriber latency from the user speech."
+          },
+          "endpointingLatency": {
+            "type": "number",
+            "description": "This is the endpointing latency."
+          },
+          "turnLatency": {
+            "type": "number",
+            "description": "This is the latency for the whole turn."
+          }
+        }
+      },
+      "PerformanceMetrics": {
+        "type": "object",
+        "properties": {
+          "turnLatencies": {
+            "description": "These are the individual latencies for each turn.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/TurnLatency"
+            }
+          },
+          "modelLatencyAverage": {
+            "type": "number",
+            "description": "This is the average latency for the model to output the first token."
+          },
+          "voiceLatencyAverage": {
+            "type": "number",
+            "description": "This is the average latency for the text to speech."
+          },
+          "transcriberLatencyAverage": {
+            "type": "number",
+            "description": "This is the average latency for the transcriber."
+          },
+          "endpointingLatencyAverage": {
+            "type": "number",
+            "description": "This is the average latency for the endpointing."
+          },
+          "turnLatencyAverage": {
+            "type": "number",
+            "description": "This is the average latency for complete turns."
+          },
+          "fromTransportLatencyAverage": {
+            "type": "number",
+            "description": "This is the average latency for packets received from the transport provider in milliseconds."
+          },
+          "toTransportLatencyAverage": {
+            "type": "number",
+            "description": "This is the average latency for packets sent to the transport provider in milliseconds."
+          },
+          "numUserInterrupted": {
+            "type": "number",
+            "description": "This is the number of times the user was interrupted by the assistant during the call."
+          },
+          "numAssistantInterrupted": {
+            "type": "number",
+            "description": "This is the number of times the assistant was interrupted by the user during the call."
+          }
+        }
+      },
+      "Artifact": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that were spoken during the call.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/BotMessage",
+                  "title": "BotMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallMessage",
+                  "title": "ToolCallMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallResultMessage",
+                  "title": "ToolCallResultMessage"
+                }
+              ]
+            }
+          },
+          "messagesOpenAIFormatted": {
+            "description": "These are the messages that were spoken during the call, formatted for OpenAI.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "recordingUrl": {
+            "type": "string",
+            "description": "This is the recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`.",
+            "deprecated": true
+          },
+          "stereoRecordingUrl": {
+            "type": "string",
+            "description": "This is the stereo recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`.",
+            "deprecated": true
+          },
+          "videoRecordingUrl": {
+            "type": "string",
+            "description": "This is video recording url for the call. To enable, set `assistant.artifactPlan.videoRecordingEnabled`.",
+            "deprecated": true
+          },
+          "videoRecordingStartDelaySeconds": {
+            "type": "number",
+            "description": "This is video recording start delay in ms. To enable, set `assistant.artifactPlan.videoRecordingEnabled`. This can be used to align the playback of the recording with artifact.messages timestamps.",
+            "deprecated": true
+          },
+          "recording": {
+            "description": "This is the recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Recording"
+              }
+            ]
+          },
+          "transcript": {
+            "type": "string",
+            "description": "This is the transcript of the call. This is derived from `artifact.messages` but provided for convenience."
+          },
+          "pcapUrl": {
+            "type": "string",
+            "description": "This is the packet capture url for the call. This is only available for `phone` type calls where phone number's provider is `vapi` or `byo-phone-number`."
+          },
+          "logUrl": {
+            "type": "string",
+            "description": "This is the url for the call logs. This includes all logging output during the call for debugging purposes."
+          },
+          "nodes": {
+            "description": "This is the history of workflow nodes that were executed during the call.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/NodeArtifact"
+            }
+          },
+          "assistantActivations": {
+            "description": "Ordered list of assistants that were active during the call, including after transfers and handoffs.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/AssistantActivation"
+            }
+          },
+          "variableValues": {
+            "type": "object",
+            "description": "These are the variable values at the end of the workflow execution."
+          },
+          "performanceMetrics": {
+            "description": "This is the performance metrics for the call. It contains the turn latency, broken down by component.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/PerformanceMetrics"
+              }
+            ]
+          },
+          "structuredOutputs": {
+            "type": "object",
+            "description": "These are the structured outputs that will be extracted from the call.\nTo enable, set `assistant.artifactPlan.structuredOutputIds` with the IDs of the structured outputs you want to extract."
+          },
+          "scorecards": {
+            "type": "object",
+            "description": "These are the scorecards that have been evaluated based on the structured outputs extracted during the call.\nTo enable, set `assistant.artifactPlan.scorecardIds` or `assistant.artifactPlan.scorecards` with the IDs or objects of the scorecards you want to evaluate."
+          },
+          "transfers": {
+            "description": "These are the transfer records from warm transfers, including destinations, transcripts, and status.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "structuredOutputsLastUpdatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is when the structured outputs were last updated"
+          }
+        }
+      },
+      "RecordingConsent": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "object",
+            "description": "This is the type of recording consent."
+          },
+          "grantedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the date and time the recording consent was granted.\nIf not specified, it means the recording consent was not granted."
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "Compliance": {
+        "type": "object",
+        "properties": {
+          "recordingConsent": {
+            "description": "This is the recording consent of the call. Configure in `assistant.compliancePlan.recordingConsentPlan`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/RecordingConsent"
+              }
+            ]
+          }
+        }
+      },
+      "WorkflowOverrides": {
+        "type": "object",
+        "properties": {
+          "variableValues": {
+            "type": "object",
+            "description": "These are values that will be used to replace the template variables in the workflow messages and other text-based fields.\nThis uses LiquidJS syntax. https://liquidjs.com/tutorials/intro-to-liquid.html\n\nSo for example, `{{ name }}` will be replaced with the value of `name` in `variableValues`.\n`{{\"now\" | date: \"%b %d, %Y, %I:%M %p\", \"America/New_York\"}}` will be replaced with the current date and time in New York.\n Some VAPI reserved defaults:\n - *customer* - the customer object"
+          }
+        }
+      },
+      "TransferPhoneNumberHookAction": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of action - must be \"transfer\"",
+            "enum": [
+              "transfer"
+            ]
+          },
+          "destination": {
+            "description": "This is the destination details for the transfer - can be a phone number or SIP URI",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "SayPhoneNumberHookAction": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of action - must be \"say\"",
+            "enum": [
+              "say"
+            ]
+          },
+          "exact": {
+            "type": "string",
+            "description": "This is the message to say",
+            "maxLength": 4000
+          }
+        },
+        "required": [
+          "type",
+          "exact"
+        ]
+      },
+      "PhoneNumberCallRingingHookFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of filter - matches when the specified field starts with any of the given prefixes",
+            "enum": [
+              "startsWith"
+            ],
+            "maxLength": 1000
+          },
+          "key": {
+            "type": "string",
+            "description": "The field to check. Currently only \"number\" (the caller's phone number) is supported.",
+            "enum": [
+              "number"
+            ],
+            "maxLength": 1000
+          },
+          "startsWith": {
+            "type": "array",
+            "description": "Array of prefixes to match. Do not include the + prefix. Inbound calls from numbers starting with any of these prefixes will trigger the hook actions.",
+            "maxLength": 20,
+            "items": {
+              "type": "string",
+              "maxLength": 20
+            },
+            "example": [
+              "91",
+              "86",
+              "7"
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "key",
+          "startsWith"
+        ]
+      },
+      "PhoneNumberHookCallRinging": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "description": "This is the event to trigger the hook on",
+            "enum": [
+              "call.ringing"
+            ],
+            "maxLength": 1000
+          },
+          "filters": {
+            "type": "array",
+            "description": "Optional filters to decide when to trigger the hook. Currently supports filtering by caller country code.",
+            "items": {
+              "$ref": "#/components/schemas/PhoneNumberCallRingingHookFilter"
+            }
+          },
+          "do": {
+            "type": "array",
+            "description": "Only the first action will be executed. Additional actions will be ignored.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransferPhoneNumberHookAction",
+                  "title": "TransferPhoneNumberHookAction"
+                },
+                {
+                  "$ref": "#/components/schemas/SayPhoneNumberHookAction",
+                  "title": "SayPhoneNumberHookAction"
+                }
+              ]
+            }
+          }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
+      },
+      "PhoneNumberCallEndingHookFilter": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of filter - currently only \"oneOf\" is supported",
+            "enum": [
+              "oneOf"
+            ],
+            "maxLength": 1000
+          },
+          "key": {
+            "type": "string",
+            "description": "This is the key to filter on - only \"call.endedReason\" is allowed for phone number call ending hooks",
+            "enum": [
+              "call.endedReason"
+            ],
+            "maxLength": 1000
+          },
+          "oneOf": {
+            "type": "array",
+            "description": "This is the array of assistant-request related ended reasons to match against",
+            "enum": [
+              "assistant-request-failed",
+              "assistant-request-returned-error",
+              "assistant-request-returned-unspeakable-error",
+              "assistant-request-returned-invalid-assistant",
+              "assistant-request-returned-no-assistant",
+              "assistant-request-returned-forwarding-phone-number"
+            ],
+            "items": {
+              "type": "string",
+              "enum": [
+                "assistant-request-failed",
+                "assistant-request-returned-error",
+                "assistant-request-returned-unspeakable-error",
+                "assistant-request-returned-invalid-assistant",
+                "assistant-request-returned-no-assistant",
+                "assistant-request-returned-forwarding-phone-number"
+              ]
+            }
+          }
+        },
+        "required": [
+          "type",
+          "key",
+          "oneOf"
+        ]
+      },
+      "PhoneNumberHookCallEnding": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "description": "This is the event to trigger the hook on",
+            "enum": [
+              "call.ending"
+            ],
+            "maxLength": 1000
+          },
+          "filters": {
+            "type": "array",
+            "description": "Optional filters to decide when to trigger - restricted to assistant-request related ended reasons",
+            "items": {
+              "$ref": "#/components/schemas/PhoneNumberCallEndingHookFilter"
+            }
+          },
+          "do": {
+            "description": "This is the action to perform when the hook triggers",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferPhoneNumberHookAction",
+                "title": "TransferPhoneNumberHookAction"
+              },
+              {
+                "$ref": "#/components/schemas/SayPhoneNumberHookAction",
+                "title": "SayPhoneNumberHookAction"
+              }
+            ]
+          }
+        },
+        "required": [
+          "on"
+        ]
+      },
+      "ImportTwilioPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "smsEnabled": {
+            "type": "boolean",
+            "description": "Controls whether Vapi sets the messaging webhook URL on the Twilio number during import.\n\nIf set to `false`, Vapi will not update the Twilio messaging URL, leaving it as is.\nIf `true` or omitted (default), Vapi will configure both the voice and messaging URLs.\n\n@default true",
+            "default": true
+          },
+          "twilioPhoneNumber": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Twilio.",
+            "deprecated": true
+          },
+          "twilioAccountSid": {
+            "type": "string",
+            "description": "This is your Twilio Account SID that will be used to handle this phone number."
+          },
+          "twilioAuthToken": {
+            "type": "string",
+            "description": "This is the Twilio Auth Token that will be used to handle this phone number."
+          },
+          "twilioApiKey": {
+            "type": "string",
+            "description": "This is the Twilio API Key that will be used to handle this phone number. If AuthToken is provided, this will be ignored."
+          },
+          "twilioApiSecret": {
+            "type": "string",
+            "description": "This is the Twilio API Secret that will be used to handle this phone number. If AuthToken is provided, this will be ignored."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          }
+        },
+        "required": [
+          "twilioPhoneNumber",
+          "twilioAccountSid"
+        ]
+      },
+      "CreateCustomerDTO": {
+        "type": "object",
+        "properties": {
+          "numberE164CheckEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
+            "default": true
+          },
+          "extension": {
+            "type": "string",
+            "description": "This is the extension that will be dialed after the call is answered.",
+            "maxLength": 10,
+            "example": null
+          },
+          "assistantOverrides": {
+            "description": "These are the overrides for the assistant's settings and template variables specific to this customer.\nThis allows customization of the assistant's behavior for individual customers in batch calls.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "This is the number of the customer.",
+            "minLength": 3,
+            "maxLength": 40
+          },
+          "sipUri": {
+            "type": "string",
+            "description": "This is the SIP URI of the customer."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the customer. This is just for your own reference.\n\nFor SIP inbound calls, this is extracted from the `From` SIP header with format `\"Display Name\" <sip:username@domain>`.",
+            "maxLength": 40
+          },
+          "email": {
+            "type": "string",
+            "description": "This is the email of the customer.",
+            "maxLength": 40
+          },
+          "externalId": {
+            "type": "string",
+            "description": "This is the external ID of the customer.",
+            "maxLength": 40
+          }
+        }
+      },
+      "SchedulePlan": {
+        "type": "object",
+        "properties": {
+          "earliestAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of the earliest time the call can be scheduled."
+          },
+          "latestAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of the latest time the call can be scheduled."
+          }
+        },
+        "required": [
+          "earliestAt"
+        ]
+      },
+      "Call": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of call.",
+            "enum": [
+              "inboundPhoneCall",
+              "outboundPhoneCall",
+              "webCall",
+              "vapi.websocketCall"
+            ]
+          },
+          "costs": {
+            "type": "array",
+            "description": "These are the costs of individual components of the call in USD.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransportCost",
+                  "title": "TransportCost"
+                },
+                {
+                  "$ref": "#/components/schemas/TranscriberCost",
+                  "title": "TranscriberCost"
+                },
+                {
+                  "$ref": "#/components/schemas/ModelCost",
+                  "title": "ModelCost"
+                },
+                {
+                  "$ref": "#/components/schemas/VoiceCost",
+                  "title": "VoiceCost"
+                },
+                {
+                  "$ref": "#/components/schemas/VapiCost",
+                  "title": "VapiCost"
+                },
+                {
+                  "$ref": "#/components/schemas/VoicemailDetectionCost",
+                  "title": "VoicemailDetectionCost"
+                },
+                {
+                  "$ref": "#/components/schemas/AnalysisCost",
+                  "title": "AnalysisCost"
+                },
+                {
+                  "$ref": "#/components/schemas/KnowledgeBaseCost",
+                  "title": "KnowledgeBaseCost"
+                }
+              ]
+            }
+          },
+          "messages": {
+            "type": "array",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/BotMessage",
+                  "title": "BotMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallMessage",
+                  "title": "ToolCallMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallResultMessage",
+                  "title": "ToolCallResultMessage"
+                }
+              ]
+            }
+          },
+          "phoneCallProvider": {
+            "type": "string",
+            "description": "This is the provider of the call.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "deprecated": true,
+            "enum": [
+              "twilio",
+              "vonage",
+              "vapi",
+              "telnyx"
+            ]
+          },
+          "phoneCallTransport": {
+            "type": "string",
+            "description": "This is the transport of the phone call.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "enum": [
+              "sip",
+              "pstn"
+            ]
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the status of the call.",
+            "enum": [
+              "scheduled",
+              "queued",
+              "ringing",
+              "in-progress",
+              "forwarding",
+              "ended",
+              "not-found",
+              "deletion-failed"
+            ]
+          },
+          "endedReason": {
+            "type": "string",
+            "description": "This is the explanation for how the call ended.",
+            "enum": [
+              "call-start-error-neither-assistant-nor-server-set",
+              "assistant-request-failed",
+              "assistant-request-returned-error",
+              "assistant-request-returned-unspeakable-error",
+              "assistant-request-returned-invalid-assistant",
+              "assistant-request-returned-no-assistant",
+              "assistant-request-returned-forwarding-phone-number",
+              "scheduled-call-deleted",
+              "call.start.error-vapifault-get-org",
+              "call.start.error-vapifault-get-subscription",
+              "call.start.error-get-assistant",
+              "call.start.error-get-phone-number",
+              "call.start.error-get-customer",
+              "call.start.error-get-resources-validation",
+              "call.start.error-vapi-number-international",
+              "call.start.error-vapi-number-outbound-daily-limit",
+              "call.start.error-get-transport",
+              "call.start.error-subscription-wallet-does-not-exist",
+              "call.start.error-fraud-check-failed",
+              "call.start.error-subscription-frozen",
+              "call.start.error-subscription-insufficient-credits",
+              "call.start.error-subscription-upgrade-failed",
+              "call.start.error-subscription-concurrency-limit-reached",
+              "call.start.error-enterprise-feature-not-available-recording-consent",
+              "assistant-not-valid",
+              "call.start.error-vapifault-database-error",
+              "assistant-not-found",
+              "pipeline-error-openai-voice-failed",
+              "pipeline-error-cartesia-voice-failed",
+              "pipeline-error-deepgram-voice-failed",
+              "pipeline-error-eleven-labs-voice-failed",
+              "pipeline-error-playht-voice-failed",
+              "pipeline-error-lmnt-voice-failed",
+              "pipeline-error-azure-voice-failed",
+              "pipeline-error-rime-ai-voice-failed",
+              "pipeline-error-smallest-ai-voice-failed",
+              "pipeline-error-vapi-voice-failed",
+              "pipeline-error-neuphonic-voice-failed",
+              "pipeline-error-hume-voice-failed",
+              "pipeline-error-sesame-voice-failed",
+              "pipeline-error-inworld-voice-failed",
+              "pipeline-error-minimax-voice-failed",
+              "pipeline-error-wellsaid-voice-failed",
+              "pipeline-error-tavus-video-failed",
+              "call.in-progress.error-vapifault-openai-voice-failed",
+              "call.in-progress.error-vapifault-cartesia-voice-failed",
+              "call.in-progress.error-vapifault-deepgram-voice-failed",
+              "call.in-progress.error-vapifault-eleven-labs-voice-failed",
+              "call.in-progress.error-vapifault-playht-voice-failed",
+              "call.in-progress.error-vapifault-lmnt-voice-failed",
+              "call.in-progress.error-vapifault-azure-voice-failed",
+              "call.in-progress.error-vapifault-rime-ai-voice-failed",
+              "call.in-progress.error-vapifault-smallest-ai-voice-failed",
+              "call.in-progress.error-vapifault-vapi-voice-failed",
+              "call.in-progress.error-vapifault-neuphonic-voice-failed",
+              "call.in-progress.error-vapifault-hume-voice-failed",
+              "call.in-progress.error-vapifault-sesame-voice-failed",
+              "call.in-progress.error-vapifault-inworld-voice-failed",
+              "call.in-progress.error-vapifault-minimax-voice-failed",
+              "call.in-progress.error-vapifault-wellsaid-voice-failed",
+              "call.in-progress.error-vapifault-tavus-video-failed",
+              "pipeline-error-vapi-llm-failed",
+              "pipeline-error-vapi-400-bad-request-validation-failed",
+              "pipeline-error-vapi-401-unauthorized",
+              "pipeline-error-vapi-403-model-access-denied",
+              "pipeline-error-vapi-429-exceeded-quota",
+              "pipeline-error-vapi-500-server-error",
+              "pipeline-error-vapi-503-server-overloaded-error",
+              "call.in-progress.error-providerfault-vapi-llm-failed",
+              "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed",
+              "call.in-progress.error-vapifault-vapi-401-unauthorized",
+              "call.in-progress.error-vapifault-vapi-403-model-access-denied",
+              "call.in-progress.error-vapifault-vapi-429-exceeded-quota",
+              "call.in-progress.error-providerfault-vapi-500-server-error",
+              "call.in-progress.error-providerfault-vapi-503-server-overloaded-error",
+              "pipeline-error-deepgram-transcriber-failed",
+              "pipeline-error-deepgram-transcriber-api-key-missing",
+              "call.in-progress.error-vapifault-deepgram-transcriber-failed",
+              "pipeline-error-gladia-transcriber-failed",
+              "call.in-progress.error-vapifault-gladia-transcriber-failed",
+              "pipeline-error-speechmatics-transcriber-failed",
+              "call.in-progress.error-vapifault-speechmatics-transcriber-failed",
+              "pipeline-error-assembly-ai-transcriber-failed",
+              "pipeline-error-assembly-ai-returning-400-insufficent-funds",
+              "pipeline-error-assembly-ai-returning-400-paid-only-feature",
+              "pipeline-error-assembly-ai-returning-401-invalid-credentials",
+              "pipeline-error-assembly-ai-returning-500-invalid-schema",
+              "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed",
+              "call.in-progress.error-vapifault-assembly-ai-transcriber-failed",
+              "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds",
+              "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature",
+              "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials",
+              "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema",
+              "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed",
+              "pipeline-error-talkscriber-transcriber-failed",
+              "call.in-progress.error-vapifault-talkscriber-transcriber-failed",
+              "pipeline-error-azure-speech-transcriber-failed",
+              "call.in-progress.error-vapifault-azure-speech-transcriber-failed",
+              "pipeline-error-eleven-labs-transcriber-failed",
+              "call.in-progress.error-vapifault-eleven-labs-transcriber-failed",
+              "pipeline-error-google-transcriber-failed",
+              "call.in-progress.error-vapifault-google-transcriber-failed",
+              "pipeline-error-openai-transcriber-failed",
+              "call.in-progress.error-vapifault-openai-transcriber-failed",
+              "pipeline-error-soniox-transcriber-auth-failed",
+              "pipeline-error-soniox-transcriber-rate-limited",
+              "pipeline-error-soniox-transcriber-invalid-config",
+              "pipeline-error-soniox-transcriber-server-error",
+              "pipeline-error-soniox-transcriber-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-auth-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-rate-limited",
+              "call.in-progress.error-vapifault-soniox-transcriber-invalid-config",
+              "call.in-progress.error-vapifault-soniox-transcriber-server-error",
+              "call.in-progress.error-vapifault-soniox-transcriber-failed",
+              "call.in-progress.error-pipeline-no-available-llm-model",
+              "worker-shutdown",
+              "vonage-disconnected",
+              "vonage-failed-to-connect-call",
+              "vonage-completed",
+              "phone-call-provider-bypass-enabled-but-no-call-received",
+              "call.in-progress.error-providerfault-transport-never-connected",
               "call.in-progress.error-vapifault-worker-not-available",
               "call.in-progress.error-vapifault-transport-never-connected",
               "call.in-progress.error-vapifault-transport-connected-but-call-not-active",
               "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing",
-              "call.in-progress.error-vapifault-openai-llm-failed",
-              "call.in-progress.error-vapifault-azure-openai-llm-failed",
-              "call.in-progress.error-vapifault-groq-llm-failed",
-              "call.in-progress.error-vapifault-google-llm-failed",
-              "call.in-progress.error-vapifault-xai-llm-failed",
-              "call.in-progress.error-vapifault-mistral-llm-failed",
-              "call.in-progress.error-vapifault-inflection-ai-llm-failed",
-              "call.in-progress.error-vapifault-cerebras-llm-failed",
-              "call.in-progress.error-vapifault-deep-seek-llm-failed",
+              "call.in-progress.error-vapifault-worker-died",
+              "call.in-progress.twilio-completed-call",
+              "call.in-progress.sip-completed-call",
+              "call.in-progress.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable",
+              "call.in-progress.error-sip-outbound-call-failed-to-connect",
+              "call.ringing.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-openai-llm-failed",
+              "call.in-progress.error-providerfault-azure-openai-llm-failed",
+              "call.in-progress.error-providerfault-groq-llm-failed",
+              "call.in-progress.error-providerfault-google-llm-failed",
+              "call.in-progress.error-providerfault-xai-llm-failed",
+              "call.in-progress.error-providerfault-mistral-llm-failed",
+              "call.in-progress.error-providerfault-minimax-llm-failed",
+              "call.in-progress.error-providerfault-inflection-ai-llm-failed",
+              "call.in-progress.error-providerfault-cerebras-llm-failed",
+              "call.in-progress.error-providerfault-deep-seek-llm-failed",
+              "call.in-progress.error-providerfault-baseten-llm-failed",
+              "call.in-progress.error-vapifault-chat-pipeline-failed-to-start",
               "pipeline-error-openai-400-bad-request-validation-failed",
               "pipeline-error-openai-401-unauthorized",
               "pipeline-error-openai-401-incorrect-api-key",
@@ -18465,6 +34847,19 @@
               "call.in-progress.error-vapifault-xai-429-exceeded-quota",
               "call.in-progress.error-providerfault-xai-500-server-error",
               "call.in-progress.error-providerfault-xai-503-server-overloaded-error",
+              "pipeline-error-baseten-400-bad-request-validation-failed",
+              "pipeline-error-baseten-401-unauthorized",
+              "pipeline-error-baseten-403-model-access-denied",
+              "pipeline-error-baseten-429-exceeded-quota",
+              "pipeline-error-baseten-500-server-error",
+              "pipeline-error-baseten-503-server-overloaded-error",
+              "pipeline-error-baseten-llm-failed",
+              "call.in-progress.error-vapifault-baseten-400-bad-request-validation-failed",
+              "call.in-progress.error-vapifault-baseten-401-unauthorized",
+              "call.in-progress.error-vapifault-baseten-403-model-access-denied",
+              "call.in-progress.error-vapifault-baseten-429-exceeded-quota",
+              "call.in-progress.error-providerfault-baseten-500-server-error",
+              "call.in-progress.error-providerfault-baseten-503-server-overloaded-error",
               "pipeline-error-mistral-400-bad-request-validation-failed",
               "pipeline-error-mistral-401-unauthorized",
               "pipeline-error-mistral-403-model-access-denied",
@@ -18478,6 +34873,19 @@
               "call.in-progress.error-vapifault-mistral-429-exceeded-quota",
               "call.in-progress.error-providerfault-mistral-500-server-error",
               "call.in-progress.error-providerfault-mistral-503-server-overloaded-error",
+              "pipeline-error-minimax-400-bad-request-validation-failed",
+              "pipeline-error-minimax-401-unauthorized",
+              "pipeline-error-minimax-403-model-access-denied",
+              "pipeline-error-minimax-429-exceeded-quota",
+              "pipeline-error-minimax-500-server-error",
+              "pipeline-error-minimax-503-server-overloaded-error",
+              "pipeline-error-minimax-llm-failed",
+              "call.in-progress.error-vapifault-minimax-400-bad-request-validation-failed",
+              "call.in-progress.error-vapifault-minimax-401-unauthorized",
+              "call.in-progress.error-vapifault-minimax-403-model-access-denied",
+              "call.in-progress.error-vapifault-minimax-429-exceeded-quota",
+              "call.in-progress.error-providerfault-minimax-500-server-error",
+              "call.in-progress.error-providerfault-minimax-503-server-overloaded-error",
               "pipeline-error-inflection-ai-400-bad-request-validation-failed",
               "pipeline-error-inflection-ai-401-unauthorized",
               "pipeline-error-inflection-ai-403-model-access-denied",
@@ -18537,7 +34945,7 @@
               "pipeline-error-anthropic-500-server-error",
               "pipeline-error-anthropic-503-server-overloaded-error",
               "pipeline-error-anthropic-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-llm-failed",
               "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-403-model-access-denied",
@@ -18551,7 +34959,7 @@
               "pipeline-error-anthropic-bedrock-500-server-error",
               "pipeline-error-anthropic-bedrock-503-server-overloaded-error",
               "pipeline-error-anthropic-bedrock-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-bedrock-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed",
               "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied",
@@ -18565,7 +34973,7 @@
               "pipeline-error-anthropic-vertex-500-server-error",
               "pipeline-error-anthropic-vertex-503-server-overloaded-error",
               "pipeline-error-anthropic-vertex-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-vertex-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-vertex-llm-failed",
               "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied",
@@ -18579,7 +34987,7 @@
               "pipeline-error-together-ai-500-server-error",
               "pipeline-error-together-ai-503-server-overloaded-error",
               "pipeline-error-together-ai-llm-failed",
-              "call.in-progress.error-vapifault-together-ai-llm-failed",
+              "call.in-progress.error-providerfault-together-ai-llm-failed",
               "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-together-ai-401-unauthorized",
               "call.in-progress.error-vapifault-together-ai-403-model-access-denied",
@@ -18593,7 +35001,7 @@
               "pipeline-error-anyscale-500-server-error",
               "pipeline-error-anyscale-503-server-overloaded-error",
               "pipeline-error-anyscale-llm-failed",
-              "call.in-progress.error-vapifault-anyscale-llm-failed",
+              "call.in-progress.error-providerfault-anyscale-llm-failed",
               "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anyscale-401-unauthorized",
               "call.in-progress.error-vapifault-anyscale-403-model-access-denied",
@@ -18607,7 +35015,7 @@
               "pipeline-error-openrouter-500-server-error",
               "pipeline-error-openrouter-503-server-overloaded-error",
               "pipeline-error-openrouter-llm-failed",
-              "call.in-progress.error-vapifault-openrouter-llm-failed",
+              "call.in-progress.error-providerfault-openrouter-llm-failed",
               "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-openrouter-401-unauthorized",
               "call.in-progress.error-vapifault-openrouter-403-model-access-denied",
@@ -18621,7 +35029,7 @@
               "pipeline-error-perplexity-ai-500-server-error",
               "pipeline-error-perplexity-ai-503-server-overloaded-error",
               "pipeline-error-perplexity-ai-llm-failed",
-              "call.in-progress.error-vapifault-perplexity-ai-llm-failed",
+              "call.in-progress.error-providerfault-perplexity-ai-llm-failed",
               "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized",
               "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied",
@@ -18635,7 +35043,7 @@
               "pipeline-error-deepinfra-500-server-error",
               "pipeline-error-deepinfra-503-server-overloaded-error",
               "pipeline-error-deepinfra-llm-failed",
-              "call.in-progress.error-vapifault-deepinfra-llm-failed",
+              "call.in-progress.error-providerfault-deepinfra-llm-failed",
               "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-deepinfra-401-unauthorized",
               "call.in-progress.error-vapifault-deepinfra-403-model-access-denied",
@@ -18649,7 +35057,7 @@
               "pipeline-error-runpod-500-server-error",
               "pipeline-error-runpod-503-server-overloaded-error",
               "pipeline-error-runpod-llm-failed",
-              "call.in-progress.error-vapifault-runpod-llm-failed",
+              "call.in-progress.error-providerfault-runpod-llm-failed",
               "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-runpod-401-unauthorized",
               "call.in-progress.error-vapifault-runpod-403-model-access-denied",
@@ -18663,17 +35071,19 @@
               "pipeline-error-custom-llm-500-server-error",
               "pipeline-error-custom-llm-503-server-overloaded-error",
               "pipeline-error-custom-llm-llm-failed",
-              "call.in-progress.error-vapifault-custom-llm-llm-failed",
+              "call.in-progress.error-providerfault-custom-llm-llm-failed",
               "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-custom-llm-401-unauthorized",
               "call.in-progress.error-vapifault-custom-llm-403-model-access-denied",
               "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota",
               "call.in-progress.error-providerfault-custom-llm-500-server-error",
               "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error",
+              "call.in-progress.error-pipeline-ws-model-connection-failed",
               "pipeline-error-custom-voice-failed",
               "pipeline-error-cartesia-socket-hang-up",
               "pipeline-error-cartesia-requested-payment",
               "pipeline-error-cartesia-500-server-error",
+              "pipeline-error-cartesia-502-server-error",
               "pipeline-error-cartesia-503-server-error",
               "pipeline-error-cartesia-522-server-error",
               "call.in-progress.error-vapifault-cartesia-socket-hang-up",
@@ -18694,6 +35104,7 @@
               "pipeline-error-eleven-labs-invalid-api-key",
               "pipeline-error-eleven-labs-invalid-voice-samples",
               "pipeline-error-eleven-labs-voice-disabled-by-owner",
+              "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner",
               "pipeline-error-eleven-labs-blocked-account-in-probation",
               "pipeline-error-eleven-labs-blocked-content-against-their-policy",
               "pipeline-error-eleven-labs-missing-samples-for-voice-clone",
@@ -18702,6 +35113,7 @@
               "pipeline-error-eleven-labs-max-character-limit-exceeded",
               "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification",
               "pipeline-error-eleven-labs-500-server-error",
+              "pipeline-error-eleven-labs-503-server-error",
               "call.in-progress.error-vapifault-eleven-labs-voice-not-found",
               "call.in-progress.error-vapifault-eleven-labs-quota-exceeded",
               "call.in-progress.error-vapifault-eleven-labs-unauthorized-access",
@@ -18722,7 +35134,9 @@
               "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users",
               "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded",
               "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification",
+              "call.in-progress.error-providerfault-eleven-labs-system-busy-and-requested-upgrade",
               "call.in-progress.error-providerfault-eleven-labs-500-server-error",
+              "call.in-progress.error-providerfault-eleven-labs-503-server-error",
               "pipeline-error-playht-request-timed-out",
               "pipeline-error-playht-invalid-voice",
               "pipeline-error-playht-unexpected-error",
@@ -18758,6 +35172,7 @@
               "pipeline-error-deepgram-returning-500-invalid-json",
               "pipeline-error-deepgram-returning-502-network-error",
               "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach",
+              "pipeline-error-deepgram-returning-econnreset",
               "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination",
               "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials",
               "call.in-progress.error-vapifault-deepgram-returning-404-not-found",
@@ -18769,6 +35184,20 @@
               "call.in-progress.error-vapifault-google-transcriber-failed",
               "pipeline-error-openai-transcriber-failed",
               "call.in-progress.error-vapifault-openai-transcriber-failed",
+              "pipeline-error-soniox-transcriber-auth-failed",
+              "pipeline-error-soniox-transcriber-rate-limited",
+              "pipeline-error-soniox-transcriber-invalid-config",
+              "pipeline-error-soniox-transcriber-server-error",
+              "pipeline-error-soniox-transcriber-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-auth-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-rate-limited",
+              "call.in-progress.error-vapifault-soniox-transcriber-invalid-config",
+              "call.in-progress.error-vapifault-soniox-transcriber-server-error",
+              "call.in-progress.error-vapifault-soniox-transcriber-failed",
+              "call.in-progress.error-warm-transfer-max-duration",
+              "call.in-progress.error-warm-transfer-assistant-cancelled",
+              "call.in-progress.error-warm-transfer-silence-timeout",
+              "call.in-progress.error-warm-transfer-microphone-timeout",
               "assistant-ended-call",
               "assistant-said-end-call-phrase",
               "assistant-ended-call-with-hangup-task",
@@ -18776,8 +35205,12 @@
               "assistant-forwarded-call",
               "assistant-join-timed-out",
               "call.in-progress.error-assistant-did-not-receive-customer-audio",
+              "call.in-progress.error-transfer-failed",
               "customer-busy",
               "customer-ended-call",
+              "customer-ended-call-before-warm-transfer",
+              "customer-ended-call-after-warm-transfer-attempt",
+              "customer-ended-call-during-transfer",
               "customer-did-not-answer",
               "customer-did-not-give-microphone-permission",
               "exceeded-max-duration",
@@ -18785,5038 +35218,14161 @@
               "phone-call-provider-closed-websocket",
               "call.forwarding.operator-busy",
               "silence-timed-out",
-              "call.in-progress.error-sip-telephony-provider-failed-to-connect-call",
+              "call.in-progress.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-outbound-sip-403-forbidden",
+              "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required",
+              "call.in-progress.error-providerfault-outbound-sip-408-request-timeout",
+              "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable",
+              "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable",
+              "call.in-progress.error-sip-outbound-call-failed-to-connect",
               "call.ringing.hook-executed-say",
               "call.ringing.hook-executed-transfer",
+              "call.ending.hook-executed-say",
+              "call.ending.hook-executed-transfer",
+              "call.ringing.sip-inbound-caller-hungup-before-call-connect",
+              "call.ringing.error-sip-inbound-call-failed-to-connect",
               "twilio-failed-to-connect-call",
               "twilio-reported-customer-misdialed",
               "vonage-rejected",
-              "voicemail"
+              "voicemail",
+              "call-deleted"
+            ]
+          },
+          "endedMessage": {
+            "type": "string",
+            "description": "This is the message that adds more context to the ended reason. It can be used to provide potential error messages or warnings."
+          },
+          "destination": {
+            "description": "This is the destination where the call ended up being transferred to. If the call was not transferred, this will be empty.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the call."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this call belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the call was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the call was last updated."
+          },
+          "startedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the call was started."
+          },
+          "endedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the call was ended."
+          },
+          "cost": {
+            "type": "number",
+            "description": "This is the cost of the call in USD."
+          },
+          "costBreakdown": {
+            "description": "This is the cost of the call in USD.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CostBreakdown"
+              }
+            ]
+          },
+          "artifactPlan": {
+            "description": "This is a copy of assistant artifact plan. This isn't actually stored on the call but rather just returned in POST /call/web to enable artifact creation client side.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ArtifactPlan"
+              }
+            ]
+          },
+          "analysis": {
+            "description": "This is the analysis of the call. Configure in `assistant.analysisPlan`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Analysis"
+              }
+            ]
+          },
+          "monitor": {
+            "description": "This is to real-time monitor the call. Configure in `assistant.monitorPlan`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Monitor"
+              }
+            ]
+          },
+          "artifact": {
+            "description": "These are the artifacts created from the call. Configure in `assistant.artifactPlan`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "compliance": {
+            "description": "This is the compliance of the call. Configure in `assistant.compliancePlan`.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Compliance"
+              }
+            ]
+          },
+          "phoneCallProviderId": {
+            "type": "string",
+            "description": "The ID of the call as provided by the phone number service. callSid in Twilio. conversationUuid in Vonage. callControlId in Telnyx.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "deprecated": true
+          },
+          "campaignId": {
+            "type": "string",
+            "description": "This is the campaign ID that the call belongs to."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`"
+          },
+          "assistant": {
+            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.\n\nTo start a call with:\n- Assistant, use `assistant`\n- Squad, use `squad`\n- Workflow, use `workflow`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the overrides for the `assistant` or `assistantId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "squad": {
+            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "squadOverrides": {
+            "description": "These are the overrides for the `squad` or `squadId`'s member settings and template variables.\nThis will apply to all members of the squad.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for the call. To use a transient workflow, use `workflow` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "workflow": {
+            "description": "This is a workflow that will be used for the call. To use an existing workflow, use `workflowId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateWorkflowDTO"
+              }
+            ]
+          },
+          "workflowOverrides": {
+            "description": "These are the overrides for the `workflow` or `workflowId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOverrides"
+              }
+            ]
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number that will be used for the call. To use a transient number, use `phoneNumber` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+          },
+          "phoneNumber": {
+            "description": "This is the phone number that will be used for the call. To use an existing number, use `phoneNumberId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ImportTwilioPhoneNumberDTO"
+              }
+            ]
+          },
+          "customerId": {
+            "type": "string",
+            "description": "This is the customer that will be called. To call a transient customer , use `customer` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+          },
+          "customer": {
+            "description": "This is the customer that will be called. To call an existing customer, use `customerId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the call. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "schedulePlan": {
+            "description": "This is the schedule plan of the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SchedulePlan"
+              }
+            ]
+          },
+          "transport": {
+            "type": "object",
+            "description": "This is the transport of the call."
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "CallBatchError": {
+        "type": "object",
+        "properties": {
+          "customer": {
+            "$ref": "#/components/schemas/CreateCustomerDTO"
+          },
+          "error": {
+            "type": "string"
+          }
+        },
+        "required": [
+          "customer",
+          "error"
+        ]
+      },
+      "CallBatchResponse": {
+        "type": "object",
+        "properties": {
+          "subscriptionLimits": {
+            "description": "Subscription limits at the end of this batch",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SubscriptionLimits"
+              }
+            ]
+          },
+          "results": {
+            "description": "This is the list of calls that were created.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Call"
+            }
+          },
+          "errors": {
+            "description": "This is the list of calls that failed to be created.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CallBatchError"
+            }
+          }
+        },
+        "required": [
+          "results",
+          "errors"
+        ]
+      },
+      "AssistantSpeechWordAlignmentTiming": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "Discriminator for exact per-word timing (e.g. ElevenLabs alignment).",
+            "enum": [
+              "word-alignment"
+            ]
+          },
+          "words": {
+            "description": "The individual words in this audio segment.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "wordsStartTimesMs": {
+            "description": "Start time in milliseconds for each word (parallel to `words`).",
+            "type": "array",
+            "items": {
+              "type": "number"
+            }
+          },
+          "wordsEndTimesMs": {
+            "description": "End time in milliseconds for each word (parallel to `words`).",
+            "type": "array",
+            "items": {
+              "type": "number"
+            }
+          }
+        },
+        "required": [
+          "type",
+          "words",
+          "wordsStartTimesMs",
+          "wordsEndTimesMs"
+        ]
+      },
+      "AssistantSpeechWordTimestamp": {
+        "type": "object",
+        "properties": {
+          "word": {
+            "type": "string",
+            "description": "The full word text (syllables aggregated into complete words)."
+          },
+          "startMs": {
+            "type": "number",
+            "description": "Start time in milliseconds relative to the segment start."
+          },
+          "endMs": {
+            "type": "number",
+            "description": "End time in milliseconds relative to the segment start."
+          }
+        },
+        "required": [
+          "word",
+          "startMs",
+          "endMs"
+        ]
+      },
+      "AssistantSpeechWordProgressTiming": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "Discriminator for cursor-based word progress (e.g. Minimax subtitle data).",
+            "enum": [
+              "word-progress"
+            ]
+          },
+          "wordsSpoken": {
+            "type": "number",
+            "description": "Number of words spoken so far in this turn."
+          },
+          "totalWords": {
+            "type": "number",
+            "description": "Total number of words sent to the TTS provider for this turn.\n\n**Important**: this value grows across events within a single turn because\nMinimax synthesizes audio incrementally as the LLM streams tokens. Treat\nit as \"best known total so far\" — it will stabilize once synthesis is\ncomplete.\n\nA value of `0` is a valid sentinel meaning \"not yet known\". This can occur\non the very first `assistant-speech` event of a turn if audio begins\nplaying before the TTS provider has confirmed word-count data. Clients\n**must** guard against divide-by-zero when computing a progress fraction:\n\n```ts\nconst pct = totalWords > 0 ? wordsSpoken / totalWords : 0;\n```"
+          },
+          "segment": {
+            "type": "string",
+            "description": "The text of the latest spoken segment (sentence or clause). Use this\nfor caption display — it corresponds to the chunk just confirmed by\nthe TTS provider, unlike `text` on the parent message which carries\nthe full turn text."
+          },
+          "segmentDurationMs": {
+            "type": "number",
+            "description": "Audio duration in milliseconds for the latest spoken segment. Pair\nwith `segment` to animate karaoke-style word reveals — divide the\nsegment text across this duration for approximate per-word timing."
+          },
+          "words": {
+            "description": "Per-word timestamps for the latest spoken segment. Available when the\nTTS provider supports word-level timing (e.g. Minimax with\nsubtitle_type: \"word\"). Syllables from the provider are aggregated\ninto whole words with start/end times relative to the segment start.\n\nUse these for precise karaoke-style highlighting instead of\ninterpolating from segmentDurationMs.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/AssistantSpeechWordTimestamp"
+            }
+          }
+        },
+        "required": [
+          "type",
+          "wordsSpoken",
+          "totalWords"
+        ]
+      },
+      "CreateCallDTO": {
+        "type": "object",
+        "properties": {
+          "customers": {
+            "description": "This is used to issue batch calls to multiple customers.\n\nOnly relevant for `outboundPhoneCall`. To call a single customer, use `customer` instead.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CreateCustomerDTO"
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the call. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "schedulePlan": {
+            "description": "This is the schedule plan of the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SchedulePlan"
+              }
+            ]
+          },
+          "transport": {
+            "type": "object",
+            "description": "This is the transport of the call."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`"
+          },
+          "assistant": {
+            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.\n\nTo start a call with:\n- Assistant, use `assistant`\n- Squad, use `squad`\n- Workflow, use `workflow`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the overrides for the `assistant` or `assistantId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "squad": {
+            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "squadOverrides": {
+            "description": "These are the overrides for the `squad` or `squadId`'s member settings and template variables.\nThis will apply to all members of the squad.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for the call. To use a transient workflow, use `workflow` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "workflow": {
+            "description": "This is a workflow that will be used for the call. To use an existing workflow, use `workflowId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateWorkflowDTO"
+              }
+            ]
+          },
+          "workflowOverrides": {
+            "description": "These are the overrides for the `workflow` or `workflowId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOverrides"
+              }
+            ]
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number that will be used for the call. To use a transient number, use `phoneNumber` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+          },
+          "phoneNumber": {
+            "description": "This is the phone number that will be used for the call. To use an existing number, use `phoneNumberId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ImportTwilioPhoneNumberDTO"
+              }
+            ]
+          },
+          "customerId": {
+            "type": "string",
+            "description": "This is the customer that will be called. To call a transient customer , use `customer` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+          },
+          "customer": {
+            "description": "This is the customer that will be called. To call an existing customer, use `customerId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          }
+        }
+      },
+      "StructuredOutputFilterDTO": {
+        "type": "object",
+        "properties": {
+          "eq": {
+            "type": "string",
+            "description": "Equal to"
+          },
+          "neq": {
+            "type": "string",
+            "description": "Not equal to"
+          },
+          "gt": {
+            "type": "string",
+            "description": "Greater than"
+          },
+          "gte": {
+            "type": "string",
+            "description": "Greater than or equal to"
+          },
+          "lt": {
+            "type": "string",
+            "description": "Less than"
+          },
+          "lte": {
+            "type": "string",
+            "description": "Less than or equal to"
+          },
+          "contains": {
+            "type": "string",
+            "description": "Contains"
+          },
+          "notContains": {
+            "type": "string",
+            "description": "Not contains"
+          }
+        }
+      },
+      "CallPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Call"
+            }
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "CreateOutboundCallDTO": {
+        "type": "object",
+        "properties": {
+          "customers": {
+            "description": "This is used to issue batch calls to multiple customers.\n\nOnly relevant for `outboundPhoneCall`. To call a single customer, use `customer` instead.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CreateCustomerDTO"
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the call. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "schedulePlan": {
+            "description": "This is the schedule plan of the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SchedulePlan"
+              }
+            ]
+          },
+          "transport": {
+            "type": "object",
+            "description": "This is the transport of the call."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`"
+          },
+          "assistant": {
+            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.\n\nTo start a call with:\n- Assistant, use `assistant`\n- Squad, use `squad`\n- Workflow, use `workflow`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the overrides for the `assistant` or `assistantId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "squad": {
+            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "squadOverrides": {
+            "description": "These are the overrides for the `squad` or `squadId`'s member settings and template variables.\nThis will apply to all members of the squad.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for the call. To use a transient workflow, use `workflow` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "workflow": {
+            "description": "This is a workflow that will be used for the call. To use an existing workflow, use `workflowId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateWorkflowDTO"
+              }
+            ]
+          },
+          "workflowOverrides": {
+            "description": "These are the overrides for the `workflow` or `workflowId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOverrides"
+              }
+            ]
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number that will be used for the call. To use a transient number, use `phoneNumber` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+          },
+          "phoneNumber": {
+            "description": "This is the phone number that will be used for the call. To use an existing number, use `phoneNumberId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ImportTwilioPhoneNumberDTO"
+              }
+            ]
+          },
+          "customerId": {
+            "type": "string",
+            "description": "This is the customer that will be called. To call a transient customer , use `customer` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+          },
+          "customer": {
+            "description": "This is the customer that will be called. To call an existing customer, use `customerId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          }
+        }
+      },
+      "CreateWebCallDTO": {
+        "type": "object",
+        "properties": {
+          "roomDeleteOnUserLeaveEnabled": {
+            "type": "boolean",
+            "default": true
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`"
+          },
+          "assistant": {
+            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.\n\nTo start a call with:\n- Assistant, use `assistant`\n- Squad, use `squad`\n- Workflow, use `workflow`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the overrides for the `assistant` or `assistantId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "squad": {
+            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "squadOverrides": {
+            "description": "These are the overrides for the `squad` or `squadId`'s member settings and template variables.\nThis will apply to all members of the squad.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for the call. To use a transient workflow, use `workflow` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "workflow": {
+            "description": "This is a workflow that will be used for the call. To use an existing workflow, use `workflowId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateWorkflowDTO"
+              }
+            ]
+          },
+          "workflowOverrides": {
+            "description": "These are the overrides for the `workflow` or `workflowId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOverrides"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateCallDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the call. This is just for your own reference.",
+            "maxLength": 40
+          }
+        }
+      },
+      "DeleteCallDTO": {
+        "type": "object",
+        "properties": {
+          "ids": {
+            "description": "These are the Call IDs to be bulk deleted.\nIf provided, the call ID if any in the request query will be ignored\nWhen requesting a bulk delete, updates when a call is deleted will be sent as a webhook to the server URL configured in the Org settings.\nIt may take up to a few hours to complete the bulk delete, and will be asynchronous.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          }
+        }
+      },
+      "DeveloperMessage": {
+        "type": "object",
+        "properties": {
+          "role": {
+            "type": "string",
+            "description": "This is the role of the message author",
+            "default": "developer",
+            "enum": [
+              "developer"
+            ]
+          },
+          "content": {
+            "type": "string",
+            "description": "This is the content of the developer message",
+            "maxLength": 10000
+          },
+          "name": {
+            "type": "string",
+            "description": "This is an optional name for the participant",
+            "maxLength": 40
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is an optional metadata for the message"
+          }
+        },
+        "required": [
+          "role",
+          "content"
+        ]
+      },
+      "SystemMessage": {
+        "type": "object",
+        "properties": {
+          "role": {
+            "type": "string",
+            "description": "The role of the system in the conversation."
+          },
+          "message": {
+            "type": "string",
+            "description": "The message content from the system."
+          },
+          "time": {
+            "type": "number",
+            "description": "The timestamp when the message was sent."
+          },
+          "secondsFromStart": {
+            "type": "number",
+            "description": "The number of seconds from the start of the conversation."
+          }
+        },
+        "required": [
+          "role",
+          "message",
+          "time",
+          "secondsFromStart"
+        ]
+      },
+      "UserMessage": {
+        "type": "object",
+        "properties": {
+          "role": {
+            "type": "string",
+            "description": "The role of the user in the conversation."
+          },
+          "message": {
+            "type": "string",
+            "description": "The message content from the user."
+          },
+          "time": {
+            "type": "number",
+            "description": "The timestamp when the message was sent."
+          },
+          "endTime": {
+            "type": "number",
+            "description": "The timestamp when the message ended."
+          },
+          "secondsFromStart": {
+            "type": "number",
+            "description": "The number of seconds from the start of the conversation."
+          },
+          "duration": {
+            "type": "number",
+            "description": "The duration of the message in seconds."
+          },
+          "isFiltered": {
+            "type": "boolean",
+            "description": "Indicates if the message was filtered for security reasons."
+          },
+          "detectedThreats": {
+            "description": "List of detected security threats if the message was filtered.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "originalMessage": {
+            "type": "string",
+            "description": "The original message before filtering (only included if content was filtered)."
+          },
+          "metadata": {
+            "type": "object",
+            "description": "The metadata associated with the message. Currently used to store the transcriber's word level confidence."
+          },
+          "speakerLabel": {
+            "type": "string",
+            "description": "Stable speaker label for diarized user speakers (e.g., \"Speaker 1\")."
+          }
+        },
+        "required": [
+          "role",
+          "message",
+          "time",
+          "endTime",
+          "secondsFromStart"
+        ]
+      },
+      "ToolCallFunction": {
+        "type": "object",
+        "properties": {
+          "arguments": {
+            "type": "string",
+            "description": "This is the arguments to call the function with"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the function to call",
+            "maxLength": 80
+          }
+        },
+        "required": [
+          "arguments",
+          "name"
+        ]
+      },
+      "ToolCall": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the ID of the tool call"
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of tool"
+          },
+          "function": {
+            "description": "This is the function that was called",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolCallFunction"
+              }
+            ]
+          }
+        },
+        "required": [
+          "id",
+          "type",
+          "function"
+        ]
+      },
+      "AssistantMessage": {
+        "type": "object",
+        "properties": {
+          "role": {
+            "type": "string",
+            "description": "This is the role of the message author",
+            "default": "assistant",
+            "enum": [
+              "assistant"
+            ]
+          },
+          "content": {
+            "type": "string",
+            "description": "This is the content of the assistant message",
+            "maxLength": 10000
+          },
+          "refusal": {
+            "type": "string",
+            "description": "This is the refusal message generated by the model",
+            "maxLength": 10000
+          },
+          "tool_calls": {
+            "description": "This is the tool calls generated by the model",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolCall"
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is an optional name for the participant",
+            "maxLength": 40
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is an optional metadata for the message"
+          }
+        },
+        "required": [
+          "role"
+        ]
+      },
+      "ToolMessage": {
+        "type": "object",
+        "properties": {
+          "role": {
+            "type": "string",
+            "description": "This is the role of the message author",
+            "default": "tool",
+            "enum": [
+              "tool"
+            ]
+          },
+          "content": {
+            "type": "string",
+            "description": "This is the content of the tool message",
+            "maxLength": 10000
+          },
+          "tool_call_id": {
+            "type": "string",
+            "description": "This is the ID of the tool call this message is responding to"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is an optional name for the participant",
+            "maxLength": 40
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is an optional metadata for the message"
+          }
+        },
+        "required": [
+          "role",
+          "content",
+          "tool_call_id"
+        ]
+      },
+      "FunctionCall": {
+        "type": "object",
+        "properties": {
+          "arguments": {
+            "type": "string",
+            "description": "This is the arguments to call the function with"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the function to call",
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "arguments",
+          "name"
+        ]
+      },
+      "Chat": {
+        "type": "object",
+        "properties": {
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead."
+          },
+          "assistant": {
+            "description": "This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the variable values that will be used to replace template variables in the assistant messages.\nOnly variable substitution is supported in chat contexts - other assistant properties cannot be overridden.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for the chat. To use a transient squad, use `squad` instead."
+          },
+          "squad": {
+            "description": "This is the squad that will be used for the chat. To use an existing squad, use `squadId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the chat. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the ID of the session that will be used for the chat.\nMutually exclusive with previousChatId."
+          },
+          "input": {
+            "description": "This is the input text for the chat.\nCan be a string or an array of chat messages.",
+            "oneOf": [
+              {
+                "type": "string",
+                "title": "String"
+              },
+              {
+                "type": "array",
+                "items": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/SystemMessage",
+                      "title": "SystemMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/UserMessage",
+                      "title": "UserMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/AssistantMessage",
+                      "title": "AssistantMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ToolMessage",
+                      "title": "ToolMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DeveloperMessage",
+                      "title": "DeveloperMessage"
+                    }
+                  ]
+                },
+                "title": "MessageArray"
+              }
+            ],
+            "examples": [
+              "Hello, how can you help me?",
+              [
+                {
+                  "role": "user",
+                  "content": "Hello, how can you help me?"
+                }
+              ]
+            ]
+          },
+          "stream": {
+            "type": "boolean",
+            "description": "This is a flag that determines whether the response should be streamed.\nWhen true, the response will be sent as chunks of text.",
+            "default": false
+          },
+          "previousChatId": {
+            "type": "string",
+            "description": "This is the ID of the chat that will be used as context for the new chat.\nThe messages from the previous chat will be used as context.\nMutually exclusive with sessionId."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the chat."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this chat belongs to."
+          },
+          "messages": {
+            "type": "array",
+            "description": "This is an array of messages used as context for the chat.\nUsed to provide message history for multi-turn conversations.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/AssistantMessage",
+                  "title": "AssistantMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessage",
+                  "title": "ToolMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/DeveloperMessage",
+                  "title": "DeveloperMessage"
+                }
+              ]
+            }
+          },
+          "output": {
+            "type": "array",
+            "description": "This is the output messages generated by the system in response to the input.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/AssistantMessage",
+                  "title": "AssistantMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessage",
+                  "title": "ToolMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/DeveloperMessage",
+                  "title": "DeveloperMessage"
+                }
+              ]
+            }
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the chat was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the chat was last updated."
+          },
+          "costs": {
+            "type": "array",
+            "description": "These are the costs of individual components of the chat in USD.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ModelCost",
+                  "title": "ModelCost"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatCost",
+                  "title": "ChatCost"
+                }
+              ]
+            }
+          },
+          "cost": {
+            "type": "number",
+            "description": "This is the cost of the chat in USD."
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "TwilioSMSChatTransport": {
+        "type": "object",
+        "properties": {
+          "conversationType": {
+            "type": "string",
+            "description": "This is the conversation type of the call (ie, voice or chat).",
+            "default": "chat",
+            "enum": [
+              "chat"
+            ]
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number that will be used to send the SMS.\nIf provided, will create a new session. If not provided, uses existing session's phoneNumberId.\nThe phone number must have SMS enabled and belong to your organization."
+          },
+          "customer": {
+            "description": "This is the customer who will receive the SMS.\nIf provided, will create a new session. If not provided, uses existing session's customer.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "customerId": {
+            "type": "string",
+            "description": "This is the customerId of the customer who will receive the SMS."
+          },
+          "useLLMGeneratedMessageForOutbound": {
+            "type": "boolean",
+            "description": "Whether to use LLM-generated messages for outbound SMS.\nWhen true (default), input is processed by the assistant for a response.\nWhen false, the input text is forwarded directly as the SMS message without LLM processing.\nUseful for sending pre-defined messages or notifications.",
+            "default": true
+          },
+          "type": {
+            "type": "string",
+            "description": "The type of transport to use for sending the chat response.\nCurrently supports 'twilio.sms' for SMS delivery via Twilio.",
+            "enum": [
+              "twilio.sms"
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "CreateChatDTO": {
+        "type": "object",
+        "properties": {
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead."
+          },
+          "assistant": {
+            "description": "This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the variable values that will be used to replace template variables in the assistant messages.\nOnly variable substitution is supported in chat contexts - other assistant properties cannot be overridden.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for the chat. To use a transient squad, use `squad` instead."
+          },
+          "squad": {
+            "description": "This is the squad that will be used for the chat. To use an existing squad, use `squadId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the chat. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the ID of the session that will be used for the chat.\nMutually exclusive with previousChatId."
+          },
+          "input": {
+            "description": "This is the input text for the chat.\nCan be a string or an array of chat messages.\nThis field is REQUIRED for chat creation.",
+            "oneOf": [
+              {
+                "type": "string",
+                "title": "String"
+              },
+              {
+                "type": "array",
+                "items": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/SystemMessage",
+                      "title": "SystemMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/UserMessage",
+                      "title": "UserMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/AssistantMessage",
+                      "title": "AssistantMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ToolMessage",
+                      "title": "ToolMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DeveloperMessage",
+                      "title": "DeveloperMessage"
+                    }
+                  ]
+                },
+                "title": "MessageArray"
+              }
+            ],
+            "examples": [
+              "Hello, how can you help me?",
+              [
+                {
+                  "role": "user",
+                  "content": "Hello, how can you help me?"
+                }
+              ]
+            ]
+          },
+          "stream": {
+            "type": "boolean",
+            "description": "This is a flag that determines whether the response should be streamed.\nWhen true, the response will be sent as chunks of text.",
+            "default": false
+          },
+          "previousChatId": {
+            "type": "string",
+            "description": "This is the ID of the chat that will be used as context for the new chat.\nThe messages from the previous chat will be used as context.\nMutually exclusive with sessionId."
+          },
+          "transport": {
+            "description": "This is used to send the chat through a transport like SMS.\nIf transport.phoneNumberId and transport.customer are provided, creates a new session.\nIf sessionId is provided without transport fields, uses existing session data.\nCannot specify both sessionId and transport fields (phoneNumberId/customer) together.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TwilioSMSChatTransport"
+              }
+            ]
+          }
+        },
+        "required": [
+          "input"
+        ]
+      },
+      "GetChatPaginatedDTO": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the chat to filter by."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the unique identifier for the assistant that will be used for the chat."
+          },
+          "assistantIdAny": {
+            "type": "string",
+            "description": "Filter by multiple assistant IDs. Provide as comma-separated values.",
+            "example": "assistant-1,assistant-2,assistant-3"
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the unique identifier for the squad that will be used for the chat."
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the unique identifier for the session that will be used for the chat."
+          },
+          "previousChatId": {
+            "type": "string",
+            "description": "This is the unique identifier for the previous chat to filter by."
+          },
+          "page": {
+            "type": "number",
+            "description": "This is the page number to return. Defaults to 1.",
+            "minimum": 1
+          },
+          "sortOrder": {
+            "type": "string",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "enum": [
+              "ASC",
+              "DESC"
+            ]
+          },
+          "sortBy": {
+            "type": "string",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "enum": [
+              "createdAt",
+              "duration",
+              "cost"
+            ]
+          },
+          "limit": {
+            "type": "number",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "minimum": 0,
+            "maximum": 1000
+          },
+          "createdAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than the specified value."
+          },
+          "createdAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than the specified value."
+          },
+          "createdAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value."
+          },
+          "createdAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than or equal to the specified value."
+          },
+          "updatedAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than the specified value."
+          },
+          "updatedAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than the specified value."
+          },
+          "updatedAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value."
+          },
+          "updatedAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value."
+          }
+        }
+      },
+      "ChatPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Chat"
+            }
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "CreateChatStreamResponse": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the streaming response."
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the ID of the session that will be used for the chat.\nHelps track conversation context across multiple messages."
+          },
+          "path": {
+            "type": "string",
+            "description": "This is the path to the content being updated.\nFormat: `chat.output[{contentIndex}].content` where contentIndex identifies the specific content item.",
+            "example": "chat.output[0].content"
+          },
+          "delta": {
+            "type": "string",
+            "description": "This is the incremental content chunk being streamed."
+          }
+        },
+        "required": [
+          "id",
+          "path",
+          "delta"
+        ]
+      },
+      "OpenAIResponsesRequest": {
+        "type": "object",
+        "properties": {
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead."
+          },
+          "assistant": {
+            "description": "This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the variable values that will be used to replace template variables in the assistant messages.\nOnly variable substitution is supported in chat contexts - other assistant properties cannot be overridden.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for the chat. To use a transient squad, use `squad` instead."
+          },
+          "squad": {
+            "description": "This is the squad that will be used for the chat. To use an existing squad, use `squadId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the chat. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the ID of the session that will be used for the chat.\nMutually exclusive with previousChatId."
+          },
+          "input": {
+            "description": "This is the input text for the chat.\nCan be a string or an array of chat messages.\nThis field is REQUIRED for chat creation.",
+            "oneOf": [
+              {
+                "type": "string",
+                "title": "String"
+              },
+              {
+                "type": "array",
+                "items": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/SystemMessage",
+                      "title": "SystemMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/UserMessage",
+                      "title": "UserMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/AssistantMessage",
+                      "title": "AssistantMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ToolMessage",
+                      "title": "ToolMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DeveloperMessage",
+                      "title": "DeveloperMessage"
+                    }
+                  ]
+                },
+                "title": "MessageArray"
+              }
+            ],
+            "examples": [
+              "Hello, how can you help me?",
+              [
+                {
+                  "role": "user",
+                  "content": "Hello, how can you help me?"
+                }
+              ]
+            ]
+          },
+          "stream": {
+            "type": "boolean",
+            "description": "Whether to stream the response or not.",
+            "default": true
+          },
+          "previousChatId": {
+            "type": "string",
+            "description": "This is the ID of the chat that will be used as context for the new chat.\nThe messages from the previous chat will be used as context.\nMutually exclusive with sessionId."
+          },
+          "transport": {
+            "description": "This is used to send the chat through a transport like SMS.\nIf transport.phoneNumberId and transport.customer are provided, creates a new session.\nIf sessionId is provided without transport fields, uses existing session data.\nCannot specify both sessionId and transport fields (phoneNumberId/customer) together.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TwilioSMSChatTransport"
+              }
+            ]
+          }
+        },
+        "required": [
+          "input"
+        ]
+      },
+      "ChatAssistantOverrides": {
+        "type": "object",
+        "properties": {
+          "variableValues": {
+            "type": "object",
+            "description": "Variable values for template substitution",
+            "example": {
+              "name": "John",
+              "company": "ACME Corp"
+            }
+          }
+        }
+      },
+      "CreateWebCustomerDTO": {
+        "type": "object",
+        "properties": {
+          "numberE164CheckEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
+            "default": true
+          },
+          "extension": {
+            "type": "string",
+            "description": "This is the extension that will be dialed after the call is answered.",
+            "maxLength": 10,
+            "example": null
+          },
+          "assistantOverrides": {
+            "description": "These are the variable values that will be used to replace template variables in the assistant messages.\nOnly variable substitution is supported in web chat - other assistant properties cannot be overridden.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChatAssistantOverrides"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "This is the number of the customer.",
+            "minLength": 3,
+            "maxLength": 40
+          },
+          "sipUri": {
+            "type": "string",
+            "description": "This is the SIP URI of the customer."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the customer. This is just for your own reference.\n\nFor SIP inbound calls, this is extracted from the `From` SIP header with format `\"Display Name\" <sip:username@domain>`.",
+            "maxLength": 40
+          },
+          "email": {
+            "type": "string",
+            "description": "This is the email of the customer.",
+            "maxLength": 40
+          },
+          "externalId": {
+            "type": "string",
+            "description": "This is the external ID of the customer.",
+            "maxLength": 40
+          }
+        }
+      },
+      "CreateWebChatDTO": {
+        "type": "object",
+        "properties": {
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID to use for this chat. To use a transient assistant, use `assistant` instead."
+          },
+          "assistant": {
+            "description": "This is the transient assistant configuration for this chat. To use an existing assistant, use `assistantId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the ID of the session that will be used for the chat.\nIf provided, the conversation will continue from the previous state.\nIf not provided or expired, a new session will be created."
+          },
+          "sessionExpirationSeconds": {
+            "type": "number",
+            "description": "This is the expiration time for the session. This can ONLY be set if starting a new chat and therefore a new session is created.\nIf session already exists, this will be ignored and NOT be updated for the existing session. Use PATCH /session/:id to update the session expiration time.",
+            "minimum": 60,
+            "maximum": 2592000
+          },
+          "assistantOverrides": {
+            "description": "These are the variable values that will be used to replace template variables in the assistant messages.\nOnly variable substitution is supported in web chat - other assistant properties cannot be overridden.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChatAssistantOverrides"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer information for the chat.\nUsed to automatically manage sessions for repeat customers.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateWebCustomerDTO"
+              }
+            ]
+          },
+          "input": {
+            "description": "This is the input text for the chat.\nCan be a string or an array of chat messages.",
+            "oneOf": [
+              {
+                "type": "string",
+                "title": "String"
+              },
+              {
+                "type": "array",
+                "items": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/SystemMessage",
+                      "title": "SystemMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/UserMessage",
+                      "title": "UserMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/AssistantMessage",
+                      "title": "AssistantMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ToolMessage",
+                      "title": "ToolMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DeveloperMessage",
+                      "title": "DeveloperMessage"
+                    }
+                  ]
+                },
+                "title": "MessageArray"
+              }
+            ],
+            "examples": [
+              "Hello, how can you help me?",
+              [
+                {
+                  "role": "user",
+                  "content": "Hello, how can you help me?"
+                }
+              ]
+            ]
+          },
+          "stream": {
+            "type": "boolean",
+            "description": "This is a flag that determines whether the response should be streamed.\nWhen true, the response will be sent as chunks of text.",
+            "default": false
+          },
+          "sessionEnd": {
+            "type": "boolean",
+            "description": "This is a flag to indicate end of session. When true, the session will be marked as completed and the chat will be ended.\nUsed to end session to send End-of-session report to the customer.\nWhen flag is set to true, any messages sent will not be processed and session will directly be marked as completed.",
+            "default": false
+          }
+        },
+        "required": [
+          "input"
+        ]
+      },
+      "WebChat": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the chat."
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the ID of the session for the chat. Send it in the next chat request to continue the conversation."
+          },
+          "output": {
+            "type": "array",
+            "description": "This is the output messages generated by the system in response to the input.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/AssistantMessage",
+                  "title": "AssistantMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessage",
+                  "title": "ToolMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/DeveloperMessage",
+                  "title": "DeveloperMessage"
+                }
+              ]
+            }
+          }
+        },
+        "required": [
+          "id",
+          "output"
+        ]
+      },
+      "OpenAIWebChatRequest": {
+        "type": "object",
+        "properties": {
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID to use for this chat. To use a transient assistant, use `assistant` instead."
+          },
+          "assistant": {
+            "description": "This is the transient assistant configuration for this chat. To use an existing assistant, use `assistantId` instead.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the ID of the session that will be used for the chat.\nIf provided, the conversation will continue from the previous state.\nIf not provided or expired, a new session will be created."
+          },
+          "sessionExpirationSeconds": {
+            "type": "number",
+            "description": "This is the expiration time for the session. This can ONLY be set if starting a new chat and therefore a new session is created.\nIf session already exists, this will be ignored and NOT be updated for the existing session. Use PATCH /session/:id to update the session expiration time.",
+            "minimum": 60,
+            "maximum": 2592000
+          },
+          "assistantOverrides": {
+            "description": "These are the variable values that will be used to replace template variables in the assistant messages.\nOnly variable substitution is supported in web chat - other assistant properties cannot be overridden.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ChatAssistantOverrides"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer information for the chat.\nUsed to automatically manage sessions for repeat customers.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateWebCustomerDTO"
+              }
+            ]
+          },
+          "input": {
+            "description": "This is the input text for the chat.\nCan be a string or an array of chat messages.",
+            "oneOf": [
+              {
+                "type": "string",
+                "title": "String"
+              },
+              {
+                "type": "array",
+                "items": {
+                  "oneOf": [
+                    {
+                      "$ref": "#/components/schemas/SystemMessage",
+                      "title": "SystemMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/UserMessage",
+                      "title": "UserMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/AssistantMessage",
+                      "title": "AssistantMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/ToolMessage",
+                      "title": "ToolMessage"
+                    },
+                    {
+                      "$ref": "#/components/schemas/DeveloperMessage",
+                      "title": "DeveloperMessage"
+                    }
+                  ]
+                },
+                "title": "MessageArray"
+              }
+            ],
+            "examples": [
+              "Hello, how can you help me?",
+              [
+                {
+                  "role": "user",
+                  "content": "Hello, how can you help me?"
+                }
+              ]
+            ]
+          },
+          "stream": {
+            "type": "boolean",
+            "description": "Whether to stream the response or not.",
+            "default": true
+          },
+          "sessionEnd": {
+            "type": "boolean",
+            "description": "This is a flag to indicate end of session. When true, the session will be marked as completed and the chat will be ended.\nUsed to end session to send End-of-session report to the customer.\nWhen flag is set to true, any messages sent will not be processed and session will directly be marked as completed.",
+            "default": false
+          }
+        },
+        "required": [
+          "input"
+        ]
+      },
+      "ExportChatDTO": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the chat to filter by."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the unique identifier for the assistant that will be used for the chat."
+          },
+          "assistantIdAny": {
+            "type": "string",
+            "description": "Filter by multiple assistant IDs. Provide as comma-separated values.",
+            "example": "assistant-1,assistant-2,assistant-3"
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the unique identifier for the squad that will be used for the chat."
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "This is the unique identifier for the session that will be used for the chat."
+          },
+          "previousChatId": {
+            "type": "string",
+            "description": "This is the unique identifier for the previous chat to filter by."
+          },
+          "columns": {
+            "type": "string",
+            "description": "Columns to include in the CSV export",
+            "enum": [
+              "id",
+              "assistantId",
+              "squadId",
+              "sessionId",
+              "previousChatId",
+              "cost",
+              "messages",
+              "output",
+              "createdAt",
+              "updatedAt"
+            ],
+            "default": [
+              "id",
+              "assistantId",
+              "squadId",
+              "sessionId",
+              "previousChatId",
+              "cost",
+              "messages",
+              "output",
+              "createdAt",
+              "updatedAt"
+            ]
+          },
+          "email": {
+            "type": "string",
+            "description": "This is the email address to send the export to.\nRequired if userId is not available in the request context."
+          },
+          "format": {
+            "type": "string",
+            "description": "This is the format of the export.\n\n@default csv",
+            "enum": [
+              "csv",
+              "json"
+            ],
+            "default": "csv"
+          },
+          "page": {
+            "type": "number",
+            "description": "This is the page number to return. Defaults to 1.",
+            "minimum": 1
+          },
+          "sortOrder": {
+            "type": "string",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "enum": [
+              "ASC",
+              "DESC"
+            ]
+          },
+          "sortBy": {
+            "type": "string",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "enum": [
+              "createdAt",
+              "duration",
+              "cost"
+            ]
+          },
+          "limit": {
+            "type": "number",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "minimum": 0,
+            "maximum": 1000
+          },
+          "createdAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than the specified value."
+          },
+          "createdAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than the specified value."
+          },
+          "createdAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value."
+          },
+          "createdAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than or equal to the specified value."
+          },
+          "updatedAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than the specified value."
+          },
+          "updatedAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than the specified value."
+          },
+          "updatedAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value."
+          },
+          "updatedAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value."
+          }
+        }
+      },
+      "ResponseOutputText": {
+        "type": "object",
+        "properties": {
+          "annotations": {
+            "default": [],
+            "description": "Annotations in the text output",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
+          },
+          "text": {
+            "type": "string",
+            "description": "The text output from the model"
+          },
+          "type": {
+            "type": "string",
+            "default": "output_text",
+            "description": "The type of the output text",
+            "enum": [
+              "output_text"
+            ]
+          }
+        },
+        "required": [
+          "annotations",
+          "text",
+          "type"
+        ]
+      },
+      "ResponseOutputMessage": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "The unique ID of the output message"
+          },
+          "content": {
+            "description": "Content of the output message",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ResponseOutputText"
+            }
+          },
+          "role": {
+            "type": "string",
+            "default": "assistant",
+            "description": "The role of the output message",
+            "enum": [
+              "assistant"
+            ]
+          },
+          "status": {
+            "type": "string",
+            "description": "The status of the message",
+            "enum": [
+              "in_progress",
+              "completed",
+              "incomplete"
+            ]
+          },
+          "type": {
+            "type": "string",
+            "default": "message",
+            "description": "The type of the output message",
+            "enum": [
+              "message"
+            ]
+          }
+        },
+        "required": [
+          "id",
+          "content",
+          "role",
+          "status",
+          "type"
+        ]
+      },
+      "ResponseObject": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "Unique identifier for this Response"
+          },
+          "object": {
+            "type": "string",
+            "default": "response",
+            "description": "The object type",
+            "enum": [
+              "response"
+            ]
+          },
+          "created_at": {
+            "type": "number",
+            "description": "Unix timestamp (in seconds) of when this Response was created"
+          },
+          "status": {
+            "type": "string",
+            "description": "Status of the response",
+            "enum": [
+              "completed",
+              "failed",
+              "in_progress",
+              "incomplete"
+            ]
+          },
+          "error": {
+            "type": "string",
+            "nullable": true,
+            "default": null,
+            "description": "Error message if the response failed"
+          },
+          "output": {
+            "description": "Output messages from the model",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ResponseOutputMessage"
+            }
+          }
+        },
+        "required": [
+          "id",
+          "object",
+          "created_at",
+          "status",
+          "output"
+        ]
+      },
+      "ResponseTextDeltaEvent": {
+        "type": "object",
+        "properties": {
+          "content_index": {
+            "type": "number",
+            "description": "Index of the content part"
+          },
+          "delta": {
+            "type": "string",
+            "description": "Text delta being added"
+          },
+          "item_id": {
+            "type": "string",
+            "description": "ID of the output item"
+          },
+          "output_index": {
+            "type": "number",
+            "description": "Index of the output item"
+          },
+          "type": {
+            "type": "string",
+            "default": "response.output_text.delta",
+            "description": "Event type",
+            "enum": [
+              "response.output_text.delta"
+            ]
+          }
+        },
+        "required": [
+          "content_index",
+          "delta",
+          "item_id",
+          "output_index",
+          "type"
+        ]
+      },
+      "ResponseTextDoneEvent": {
+        "type": "object",
+        "properties": {
+          "content_index": {
+            "type": "number",
+            "description": "Index of the content part"
+          },
+          "item_id": {
+            "type": "string",
+            "description": "ID of the output item"
+          },
+          "output_index": {
+            "type": "number",
+            "description": "Index of the output item"
+          },
+          "text": {
+            "type": "string",
+            "description": "Complete text content"
+          },
+          "type": {
+            "type": "string",
+            "default": "response.output_text.done",
+            "description": "Event type",
+            "enum": [
+              "response.output_text.done"
+            ]
+          }
+        },
+        "required": [
+          "content_index",
+          "item_id",
+          "output_index",
+          "text",
+          "type"
+        ]
+      },
+      "ResponseCompletedEvent": {
+        "type": "object",
+        "properties": {
+          "response": {
+            "description": "The completed response",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ResponseObject"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "default": "response.completed",
+            "description": "Event type",
+            "enum": [
+              "response.completed"
+            ]
+          }
+        },
+        "required": [
+          "response",
+          "type"
+        ]
+      },
+      "ResponseErrorEvent": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "default": "error",
+            "description": "Event type",
+            "enum": [
+              "error"
+            ]
+          },
+          "code": {
+            "type": "string",
+            "description": "Error code",
+            "example": "ERR_SOMETHING"
+          },
+          "message": {
+            "type": "string",
+            "description": "Error message",
+            "example": "Something went wrong"
+          },
+          "param": {
+            "type": "string",
+            "nullable": true,
+            "description": "Parameter that caused the error"
+          },
+          "sequence_number": {
+            "type": "number",
+            "description": "Sequence number of the event",
+            "example": 1
+          }
+        },
+        "required": [
+          "type",
+          "code",
+          "message",
+          "sequence_number"
+        ]
+      },
+      "DialPlanEntry": {
+        "type": "object",
+        "properties": {
+          "phoneNumberId": {
+            "type": "string",
+            "description": "The phone number ID to use for calling the customers in this entry."
+          },
+          "customers": {
+            "description": "The list of customers to call using this phone number.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CreateCustomerDTO"
+            }
+          }
+        },
+        "required": [
+          "phoneNumberId",
+          "customers"
+        ]
+      },
+      "CreateCampaignDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the campaign. This is just for your own reference.",
+            "example": "Q2 Sales Campaign"
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used."
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number ID that will be used for the campaign calls. Required if dialPlan is not provided. Note: phoneNumberId and dialPlan are mutually exclusive."
+          },
+          "dialPlan": {
+            "description": "This is a list of dial entries, each specifying a phone number and the customers to call using that number. Use this when you want different phone numbers to call different sets of customers. Note: phoneNumberId and dialPlan are mutually exclusive.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/DialPlanEntry"
+            }
+          },
+          "schedulePlan": {
+            "description": "This is the schedule plan for the campaign. Calls will start at startedAt and continue until your organization’s concurrency limit is reached. Any remaining calls will be retried for up to one hour as capacity becomes available. After that hour or after latestAt, whichever comes first, any calls that couldn’t be placed won’t be retried.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SchedulePlan"
+              }
+            ]
+          },
+          "customers": {
+            "description": "These are the customers that will be called in the campaign. Required if dialPlan is not provided.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CreateCustomerDTO"
+            }
+          }
+        },
+        "required": [
+          "name"
+        ]
+      },
+      "Campaign": {
+        "type": "object",
+        "properties": {
+          "status": {
+            "type": "string",
+            "description": "This is the status of the campaign.",
+            "enum": [
+              "scheduled",
+              "in-progress",
+              "ended"
+            ]
+          },
+          "endedReason": {
+            "type": "string",
+            "description": "This is the explanation for how the campaign ended.",
+            "enum": [
+              "campaign.scheduled.ended-by-user",
+              "campaign.in-progress.ended-by-user",
+              "campaign.ended.success"
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the campaign. This is just for your own reference.",
+            "example": "Q2 Sales Campaign"
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used."
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number ID that will be used for the campaign calls. Required if dialPlan is not provided. Note: phoneNumberId and dialPlan are mutually exclusive."
+          },
+          "dialPlan": {
+            "description": "This is a list of dial entries, each specifying a phone number and the customers to call using that number. Use this when you want different phone numbers to call different sets of customers. Note: phoneNumberId and dialPlan are mutually exclusive.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/DialPlanEntry"
+            }
+          },
+          "schedulePlan": {
+            "description": "This is the schedule plan for the campaign. Calls will start at startedAt and continue until your organization’s concurrency limit is reached. Any remaining calls will be retried for up to one hour as capacity becomes available. After that hour or after latestAt, whichever comes first, any calls that couldn’t be placed won’t be retried.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SchedulePlan"
+              }
+            ]
+          },
+          "customers": {
+            "description": "These are the customers that will be called in the campaign. Required if dialPlan is not provided.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CreateCustomerDTO"
+            }
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the campaign."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this campaign belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the campaign was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the campaign was last updated."
+          },
+          "calls": {
+            "type": "object",
+            "description": "This is a map of call IDs to campaign call details."
+          },
+          "callsCounterScheduled": {
+            "type": "number",
+            "description": "This is the number of calls that have been scheduled."
+          },
+          "callsCounterQueued": {
+            "type": "number",
+            "description": "This is the number of calls that have been queued."
+          },
+          "callsCounterInProgress": {
+            "type": "number",
+            "description": "This is the number of calls that have been in progress."
+          },
+          "callsCounterEndedVoicemail": {
+            "type": "number",
+            "description": "This is the number of calls whose ended reason is 'voicemail'."
+          },
+          "callsCounterEnded": {
+            "type": "number",
+            "description": "This is the number of calls that have ended."
+          }
+        },
+        "required": [
+          "status",
+          "name",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "calls",
+          "callsCounterScheduled",
+          "callsCounterQueued",
+          "callsCounterInProgress",
+          "callsCounterEndedVoicemail",
+          "callsCounterEnded"
+        ]
+      },
+      "CampaignPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Campaign"
+            }
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "UpdateCampaignDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the campaign. This is just for your own reference."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant ID that will be used for the campaign calls.\nCan only be updated if campaign is not in progress or has ended."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow ID that will be used for the campaign calls.\nCan only be updated if campaign is not in progress or has ended."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad ID that will be used for the campaign calls.\nCan only be updated if campaign is not in progress or has ended."
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number ID that will be used for the campaign calls.\nCan only be updated if campaign is not in progress or has ended.\nNote: `phoneNumberId` and `dialPlan` are mutually exclusive."
+          },
+          "dialPlan": {
+            "description": "This is a list of dial entries, each specifying a phone number and the customers to call using that number. Can only be updated if campaign is not in progress or has ended. Note: phoneNumberId and dialPlan are mutually exclusive.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/DialPlanEntry"
+            }
+          },
+          "schedulePlan": {
+            "description": "This is the schedule plan for the campaign.\nCan only be updated if campaign is not in progress or has ended.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SchedulePlan"
+              }
+            ]
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the status of the campaign.\nCan only be updated to 'ended' if you want to end the campaign.\nWhen set to 'ended', it will delete all scheduled calls. Calls in progress will be allowed to complete.",
+            "enum": [
+              "ended"
+            ]
+          }
+        }
+      },
+      "RelayTargetAssistant": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "assistant"
+            ],
+            "description": "The type of relay target"
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "The unique identifier of the assistant"
+          },
+          "assistantName": {
+            "type": "string",
+            "description": "The name of the assistant"
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "RelayTargetSquad": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "squad"
+            ],
+            "description": "The type of relay target"
+          },
+          "squadId": {
+            "type": "string",
+            "description": "The unique identifier of the squad"
+          },
+          "squadName": {
+            "type": "string",
+            "description": "The name of the squad"
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "RelayTargetOptions": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "assistant",
+              "squad"
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "RelayCommandSay": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "say"
+            ],
+            "description": "The type of relay command"
+          },
+          "content": {
+            "type": "string",
+            "description": "The content for the assistant to speak"
+          }
+        },
+        "required": [
+          "type",
+          "content"
+        ]
+      },
+      "RelayCommandNote": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "message.add"
+            ],
+            "description": "The type of relay command"
+          },
+          "content": {
+            "type": "string",
+            "description": "The note content to add to the conversation"
+          }
+        },
+        "required": [
+          "type",
+          "content"
+        ]
+      },
+      "RelayCommandOptions": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "say",
+              "message.add"
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "RelayRequest": {
+        "type": "object",
+        "properties": {
+          "source": {
+            "type": "string",
+            "description": "The source identifier of the relay request"
+          },
+          "target": {
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/RelayTargetAssistant"
+              },
+              {
+                "$ref": "#/components/schemas/RelayTargetSquad"
+              }
+            ],
+            "description": "The target assistant or squad to relay the commands to"
+          },
+          "customerId": {
+            "type": "string",
+            "description": "The unique identifier of the customer"
+          },
+          "commands": {
+            "type": "array",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/RelayCommandSay"
+                },
+                {
+                  "$ref": "#/components/schemas/RelayCommandNote"
+                }
+              ]
+            },
+            "description": "The list of commands to relay to the target"
+          }
+        },
+        "required": [
+          "source",
+          "target",
+          "customerId",
+          "commands"
+        ]
+      },
+      "RelayResponse": {
+        "type": "object",
+        "properties": {
+          "status": {
+            "type": "string",
+            "enum": [
+              "deliveredLive",
+              "deliveredHeadless",
+              "failed"
+            ],
+            "description": "The status of the relay request"
+          },
+          "callId": {
+            "type": "string",
+            "description": "The unique identifier of the call, if delivered to a live call"
+          },
+          "sessionId": {
+            "type": "string",
+            "description": "The unique identifier of the session, if delivered to a headless session"
+          },
+          "chatId": {
+            "type": "string"
+          }
+        },
+        "required": [
+          "status"
+        ]
+      },
+      "Session": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the session."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that owns this session."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 timestamp indicating when the session was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 timestamp indicating when the session was last updated."
+          },
+          "cost": {
+            "type": "number",
+            "description": "This is the cost of the session in USD."
+          },
+          "costs": {
+            "type": "array",
+            "description": "These are the costs of individual components of the session in USD.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ModelCost",
+                  "title": "ModelCost"
+                },
+                {
+                  "$ref": "#/components/schemas/AnalysisCost",
+                  "title": "AnalysisCost"
+                },
+                {
+                  "$ref": "#/components/schemas/SessionCost",
+                  "title": "SessionCost"
+                }
+              ]
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is a user-defined name for the session. Maximum length is 40 characters.",
+            "maxLength": 40
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the current status of the session. Can be either 'active' or 'completed'.",
+            "enum": [
+              "active",
+              "completed"
+            ]
+          },
+          "expirationSeconds": {
+            "type": "number",
+            "description": "Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set.",
+            "minimum": 60,
+            "maximum": 2592000,
+            "example": 86400
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the ID of the assistant associated with this session. Use this when referencing an existing assistant."
+          },
+          "assistant": {
+            "description": "This is the assistant configuration for this session. Use this when creating a new assistant configuration.\nIf assistantId is provided, this will be ignored.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the overrides for the assistant configuration.\nUse this to provide variable values and other overrides when using assistantId.\nVariable substitution will be applied to the assistant's messages and other text-based fields.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad ID associated with this session. Use this when referencing an existing squad."
+          },
+          "squad": {
+            "description": "This is the squad configuration for this session. Use this when creating a new squad configuration.\nIf squadId is provided, this will be ignored.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "messages": {
+            "type": "array",
+            "description": "This is an array of chat messages in the session.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/AssistantMessage",
+                  "title": "AssistantMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessage",
+                  "title": "ToolMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/DeveloperMessage",
+                  "title": "DeveloperMessage"
+                }
+              ]
+            }
+          },
+          "customer": {
+            "description": "This is the customer information associated with this session.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "customerId": {
+            "type": "string",
+            "description": "This is the customerId of the customer associated with this session."
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the ID of the phone number associated with this session."
+          },
+          "phoneNumber": {
+            "description": "This is the phone number configuration for this session.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ImportTwilioPhoneNumberDTO"
+              }
+            ]
+          },
+          "artifact": {
+            "description": "These are the artifacts that were extracted from the session messages.\nThey are only available after the session has completed.\nThe artifact plan from the assistant or active assistant of squad is used to generate the artifact.\nCurrently the only supported fields of assistant artifact plan are:\n- structuredOutputIds",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "CreateSessionDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is a user-defined name for the session. Maximum length is 40 characters.",
+            "maxLength": 40
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the current status of the session. Can be either 'active' or 'completed'.",
+            "enum": [
+              "active",
+              "completed"
+            ]
+          },
+          "expirationSeconds": {
+            "type": "number",
+            "description": "Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set.",
+            "minimum": 60,
+            "maximum": 2592000,
+            "example": 86400
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the ID of the assistant associated with this session. Use this when referencing an existing assistant."
+          },
+          "assistant": {
+            "description": "This is the assistant configuration for this session. Use this when creating a new assistant configuration.\nIf assistantId is provided, this will be ignored.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "assistantOverrides": {
+            "description": "These are the overrides for the assistant configuration.\nUse this to provide variable values and other overrides when using assistantId.\nVariable substitution will be applied to the assistant's messages and other text-based fields.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad ID associated with this session. Use this when referencing an existing squad."
+          },
+          "squad": {
+            "description": "This is the squad configuration for this session. Use this when creating a new squad configuration.\nIf squadId is provided, this will be ignored.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
+          },
+          "messages": {
+            "type": "array",
+            "description": "This is an array of chat messages in the session.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/AssistantMessage",
+                  "title": "AssistantMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessage",
+                  "title": "ToolMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/DeveloperMessage",
+                  "title": "DeveloperMessage"
+                }
+              ]
+            }
+          },
+          "customer": {
+            "description": "This is the customer information associated with this session.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "customerId": {
+            "type": "string",
+            "description": "This is the customerId of the customer associated with this session."
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the ID of the phone number associated with this session."
+          },
+          "phoneNumber": {
+            "description": "This is the phone number configuration for this session.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ImportTwilioPhoneNumberDTO"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateSessionDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the new name for the session. Maximum length is 40 characters.",
+            "maxLength": 40
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the new status for the session.",
+            "enum": [
+              "active",
+              "completed"
+            ]
+          },
+          "expirationSeconds": {
+            "type": "number",
+            "description": "Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set.",
+            "minimum": 60,
+            "maximum": 2592000,
+            "example": 86400
+          },
+          "messages": {
+            "type": "array",
+            "description": "This is the updated array of chat messages.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/AssistantMessage",
+                  "title": "AssistantMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessage",
+                  "title": "ToolMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/DeveloperMessage",
+                  "title": "DeveloperMessage"
+                }
+              ]
+            }
+          }
+        }
+      },
+      "GetSessionPaginatedDTO": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the session to filter by."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the session to filter by."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the ID of the assistant to filter sessions by."
+          },
+          "assistantIdAny": {
+            "type": "string",
+            "description": "Filter by multiple assistant IDs. Provide as comma-separated values.",
+            "example": "assistant-1,assistant-2,assistant-3"
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the ID of the squad to filter sessions by."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the ID of the workflow to filter sessions by."
+          },
+          "customer": {
+            "description": "This is the customer information to filter by.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "customerNumberAny": {
+            "type": "string",
+            "description": "Filter by any of the specified customer phone numbers (comma-separated).",
+            "example": "+1234567890,+0987654321"
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This will return sessions with the specified phoneNumberId."
+          },
+          "phoneNumberIdAny": {
+            "description": "This will return sessions with any of the specified phoneNumberIds.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "page": {
+            "type": "number",
+            "description": "This is the page number to return. Defaults to 1.",
+            "minimum": 1
+          },
+          "sortOrder": {
+            "type": "string",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "enum": [
+              "ASC",
+              "DESC"
+            ]
+          },
+          "sortBy": {
+            "type": "string",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "enum": [
+              "createdAt",
+              "duration",
+              "cost"
+            ]
+          },
+          "limit": {
+            "type": "number",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "minimum": 0,
+            "maximum": 1000
+          },
+          "createdAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than the specified value."
+          },
+          "createdAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than the specified value."
+          },
+          "createdAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value."
+          },
+          "createdAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than or equal to the specified value."
+          },
+          "updatedAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than the specified value."
+          },
+          "updatedAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than the specified value."
+          },
+          "updatedAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value."
+          },
+          "updatedAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value."
+          }
+        }
+      },
+      "SessionPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Session"
+            }
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "ExportSessionDTO": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the session to filter by."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the session to filter by."
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the ID of the assistant to filter sessions by."
+          },
+          "assistantIdAny": {
+            "type": "string",
+            "description": "Filter by multiple assistant IDs. Provide as comma-separated values.",
+            "example": "assistant-1,assistant-2,assistant-3"
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the ID of the squad to filter sessions by."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the ID of the workflow to filter sessions by."
+          },
+          "customer": {
+            "description": "This is the customer information to filter by.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "customerNumberAny": {
+            "type": "string",
+            "description": "Filter by any of the specified customer phone numbers (comma-separated).",
+            "example": "+1234567890,+0987654321"
+          },
+          "columns": {
+            "type": "string",
+            "description": "Columns to include in the CSV export",
+            "enum": [
+              "id",
+              "name",
+              "status",
+              "assistantId",
+              "squadId",
+              "customerName",
+              "customerNumber",
+              "phoneNumberId",
+              "cost",
+              "messages",
+              "createdAt",
+              "updatedAt"
+            ],
+            "default": [
+              "id",
+              "name",
+              "status",
+              "assistantId",
+              "squadId",
+              "customerName",
+              "customerNumber",
+              "phoneNumberId",
+              "cost",
+              "messages",
+              "createdAt",
+              "updatedAt"
+            ]
+          },
+          "email": {
+            "type": "string",
+            "description": "This is the email address to send the export to.\nRequired if userId is not available in the request context."
+          },
+          "format": {
+            "type": "string",
+            "description": "This is the format of the export.\n\n@default csv",
+            "enum": [
+              "csv",
+              "json"
+            ],
+            "default": "csv"
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This will return sessions with the specified phoneNumberId."
+          },
+          "phoneNumberIdAny": {
+            "description": "This will return sessions with any of the specified phoneNumberIds.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "page": {
+            "type": "number",
+            "description": "This is the page number to return. Defaults to 1.",
+            "minimum": 1
+          },
+          "sortOrder": {
+            "type": "string",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "enum": [
+              "ASC",
+              "DESC"
+            ]
+          },
+          "sortBy": {
+            "type": "string",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "enum": [
+              "createdAt",
+              "duration",
+              "cost"
+            ]
+          },
+          "limit": {
+            "type": "number",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "minimum": 0,
+            "maximum": 1000
+          },
+          "createdAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than the specified value."
+          },
+          "createdAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than the specified value."
+          },
+          "createdAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value."
+          },
+          "createdAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than or equal to the specified value."
+          },
+          "updatedAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than the specified value."
+          },
+          "updatedAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than the specified value."
+          },
+          "updatedAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value."
+          },
+          "updatedAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value."
+          }
+        }
+      },
+      "ByoPhoneNumber": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to bring your own phone numbers from your own SIP trunks or Carriers.",
+            "enum": [
+              "byo-phone-number"
+            ]
+          },
+          "numberE164CheckEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
+            "default": true
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the phone number."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this phone number belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the status of the phone number.",
+            "enum": [
+              "active",
+              "activating",
+              "blocked"
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "This is the number of the customer.",
+            "minLength": 3,
+            "maxLength": 40
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential of your own SIP trunk or Carrier (type `byo-sip-trunk`) which can be used to make calls to this phone number.\n\nYou can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId."
+          }
+        },
+        "required": [
+          "provider",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "credentialId"
+        ]
+      },
+      "TwilioPhoneNumber": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to use numbers bought on Twilio.",
+            "enum": [
+              "twilio"
+            ]
+          },
+          "smsEnabled": {
+            "type": "boolean",
+            "description": "Controls whether Vapi sets the messaging webhook URL on the Twilio number during import.\n\nIf set to `false`, Vapi will not update the Twilio messaging URL, leaving it as is.\nIf `true` or omitted (default), Vapi will configure both the voice and messaging URLs.\n\n@default true",
+            "default": true
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the phone number."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this phone number belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the status of the phone number.",
+            "enum": [
+              "active",
+              "activating",
+              "blocked"
+            ]
+          },
+          "twilioAuthToken": {
+            "type": "string",
+            "description": "This is the Twilio Auth Token for the phone number."
+          },
+          "twilioApiKey": {
+            "type": "string",
+            "description": "This is the Twilio API Key for the phone number."
+          },
+          "twilioApiSecret": {
+            "type": "string",
+            "description": "This is the Twilio API Secret for the phone number."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Twilio."
+          },
+          "twilioAccountSid": {
+            "type": "string",
+            "description": "This is the Twilio Account SID for the phone number."
+          }
+        },
+        "required": [
+          "provider",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "number",
+          "twilioAccountSid"
+        ]
+      },
+      "VonagePhoneNumber": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to use numbers bought on Vonage.",
+            "enum": [
+              "vonage"
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the phone number."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this phone number belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the status of the phone number.",
+            "enum": [
+              "active",
+              "activating",
+              "blocked"
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Vonage."
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+          }
+        },
+        "required": [
+          "provider",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "number",
+          "credentialId"
+        ]
+      },
+      "SipAuthentication": {
+        "type": "object",
+        "properties": {
+          "realm": {
+            "type": "string",
+            "description": "This will be expected in the `realm` field of the `authorization` header of the SIP INVITE. Defaults to sip.vapi.ai."
+          },
+          "username": {
+            "type": "string",
+            "description": "This will be expected in the `username` field of the `authorization` header of the SIP INVITE.",
+            "minLength": 20,
+            "maxLength": 40
+          },
+          "password": {
+            "type": "string",
+            "description": "This will be expected to generate the `response` field of the `authorization` header of the SIP INVITE, through digest authentication.",
+            "minLength": 20,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "username",
+          "password"
+        ]
+      },
+      "VapiPhoneNumber": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to create free SIP phone numbers on Vapi.",
+            "enum": [
+              "vapi"
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the phone number."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this phone number belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the status of the phone number.",
+            "enum": [
+              "active",
+              "activating",
+              "blocked"
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you purchased from Vapi."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "numberDesiredAreaCode": {
+            "type": "string",
+            "description": "This is the area code of the phone number to purchase.",
+            "minLength": 3,
+            "maxLength": 3
+          },
+          "sipUri": {
+            "type": "string",
+            "description": "This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer.\n\nThis is case-insensitive."
+          },
+          "authentication": {
+            "description": "This enables authentication for incoming SIP INVITE requests to the `sipUri`.\n\nIf not set, any username/password to the 401 challenge of the SIP INVITE will be accepted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SipAuthentication"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "TelnyxPhoneNumber": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to use numbers bought on Telnyx.",
+            "enum": [
+              "telnyx"
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the phone number."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this phone number belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the status of the phone number.",
+            "enum": [
+              "active",
+              "activating",
+              "blocked"
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Telnyx."
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+          }
+        },
+        "required": [
+          "provider",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "number",
+          "credentialId"
+        ]
+      },
+      "CreateByoPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to bring your own phone numbers from your own SIP trunks or Carriers.",
+            "enum": [
+              "byo-phone-number"
+            ]
+          },
+          "numberE164CheckEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
+            "default": true
+          },
+          "number": {
+            "type": "string",
+            "description": "This is the number of the customer.",
+            "minLength": 3,
+            "maxLength": 40
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential of your own SIP trunk or Carrier (type `byo-sip-trunk`) which can be used to make calls to this phone number.\n\nYou can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "credentialId"
+        ]
+      },
+      "CreateTwilioPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to use numbers bought on Twilio.",
+            "enum": [
+              "twilio"
+            ]
+          },
+          "smsEnabled": {
+            "type": "boolean",
+            "description": "Controls whether Vapi sets the messaging webhook URL on the Twilio number during import.\n\nIf set to `false`, Vapi will not update the Twilio messaging URL, leaving it as is.\nIf `true` or omitted (default), Vapi will configure both the voice and messaging URLs.\n\n@default true",
+            "default": true
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Twilio."
+          },
+          "twilioAccountSid": {
+            "type": "string",
+            "description": "This is the Twilio Account SID for the phone number."
+          },
+          "twilioAuthToken": {
+            "type": "string",
+            "description": "This is the Twilio Auth Token for the phone number."
+          },
+          "twilioApiKey": {
+            "type": "string",
+            "description": "This is the Twilio API Key for the phone number."
+          },
+          "twilioApiSecret": {
+            "type": "string",
+            "description": "This is the Twilio API Secret for the phone number."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "number",
+          "twilioAccountSid"
+        ]
+      },
+      "CreateVonagePhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to use numbers bought on Vonage.",
+            "enum": [
+              "vonage"
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Vonage."
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "number",
+          "credentialId"
+        ]
+      },
+      "CreateVapiPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to create free SIP phone numbers on Vapi.",
+            "enum": [
+              "vapi"
+            ]
+          },
+          "numberDesiredAreaCode": {
+            "type": "string",
+            "description": "This is the area code of the phone number to purchase.",
+            "minLength": 3,
+            "maxLength": 3
+          },
+          "sipUri": {
+            "type": "string",
+            "description": "This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer.\n\nThis is case-insensitive."
+          },
+          "authentication": {
+            "description": "This enables authentication for incoming SIP INVITE requests to the `sipUri`.\n\nIf not set, any username/password to the 401 challenge of the SIP INVITE will be accepted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SipAuthentication"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "CreateTelnyxPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "provider": {
+            "type": "string",
+            "description": "This is to use numbers bought on Telnyx.",
+            "enum": [
+              "telnyx"
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Telnyx."
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          }
+        },
+        "required": [
+          "provider",
+          "number",
+          "credentialId"
+        ]
+      },
+      "UpdateByoPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "numberE164CheckEnabled": {
+            "type": "boolean",
+            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
+            "default": true
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "This is the number of the customer.",
+            "minLength": 3,
+            "maxLength": 40
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential of your own SIP trunk or Carrier (type `byo-sip-trunk`) which can be used to make calls to this phone number.\n\nYou can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId."
+          }
+        }
+      },
+      "UpdateTwilioPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "smsEnabled": {
+            "type": "boolean",
+            "description": "Controls whether Vapi sets the messaging webhook URL on the Twilio number during import.\n\nIf set to `false`, Vapi will not update the Twilio messaging URL, leaving it as is.\nIf `true` or omitted (default), Vapi will configure both the voice and messaging URLs.\n\n@default true",
+            "default": true
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Twilio."
+          },
+          "twilioAccountSid": {
+            "type": "string",
+            "description": "This is the Twilio Account SID for the phone number."
+          },
+          "twilioAuthToken": {
+            "type": "string",
+            "description": "This is the Twilio Auth Token for the phone number."
+          },
+          "twilioApiKey": {
+            "type": "string",
+            "description": "This is the Twilio API Key for the phone number."
+          },
+          "twilioApiSecret": {
+            "type": "string",
+            "description": "This is the Twilio API Secret for the phone number."
+          }
+        }
+      },
+      "UpdateVonagePhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Vonage."
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+          }
+        }
+      },
+      "UpdateVapiPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "sipUri": {
+            "type": "string",
+            "description": "This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer.\n\nThis is case-insensitive."
+          },
+          "authentication": {
+            "description": "This enables authentication for incoming SIP INVITE requests to the `sipUri`.\n\nIf not set, any username/password to the 401 challenge of the SIP INVITE will be accepted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SipAuthentication"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateTelnyxPhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "number": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Telnyx."
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+          }
+        }
+      },
+      "ImportVonagePhoneNumberDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackDestination": {
+            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "array",
+            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
+                  "title": "PhoneNumberHookCallRinging"
+                },
+                {
+                  "$ref": "#/components/schemas/PhoneNumberHookCallEnding",
+                  "title": "PhoneNumberHookCallEnding"
+                }
+              ]
+            }
+          },
+          "vonagePhoneNumber": {
+            "type": "string",
+            "description": "These are the digits of the phone number you own on your Vonage.",
+            "deprecated": true
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the phone number. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId` nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId`, `squadId`, nor `workflowId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          }
+        },
+        "required": [
+          "vonagePhoneNumber",
+          "credentialId"
+        ]
+      },
+      "PhoneNumberPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "description": "A list of phone numbers, which can be of any provider type.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ByoPhoneNumber"
+                },
+                {
+                  "$ref": "#/components/schemas/TwilioPhoneNumber"
+                },
+                {
+                  "$ref": "#/components/schemas/VonagePhoneNumber"
+                },
+                {
+                  "$ref": "#/components/schemas/VapiPhoneNumber"
+                },
+                {
+                  "$ref": "#/components/schemas/TelnyxPhoneNumber"
+                }
+              ]
+            }
+          },
+          "metadata": {
+            "description": "Metadata about the pagination.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/PaginationMeta"
+              }
+            ]
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "ApiRequestTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "apiRequest"
+            ],
+            "description": "The type of tool. \"apiRequest\" for API request tool."
+          },
+          "method": {
+            "type": "string",
+            "enum": [
+              "POST",
+              "GET",
+              "PUT",
+              "PATCH",
+              "DELETE"
+            ]
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the timeout in seconds for the request. Defaults to 20 seconds.\n\n@default 20",
+            "minimum": 1,
+            "maximum": 300,
+            "example": 20
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "The credential ID for API request authentication",
+            "example": "550e8400-e29b-41d4-a716-446655440000"
+          },
+          "encryptedPaths": {
+            "type": "array",
+            "description": "This is the paths to encrypt in the request body if credentialId and encryptionPlan are defined.",
+            "items": {
+              "type": "string"
+            }
+          },
+          "parameters": {
+            "description": "Static key-value pairs merged into the request body. Values support Liquid templates.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolParameter"
+            }
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the tool. This will be passed to the model.\n\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 40.",
+            "maxLength": 40,
+            "pattern": "/^[a-zA-Z0-9_-]{1,40}$/"
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of the tool. This will be passed to the model."
+          },
+          "url": {
+            "type": "string",
+            "description": "This is where the request will be sent."
+          },
+          "body": {
+            "description": "This is the body of the request.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
+            ]
+          },
+          "headers": {
+            "description": "These are the headers to send with the request.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
+            ]
+          },
+          "backoffPlan": {
+            "description": "This is the backoff plan if the request fails. Defaults to undefined (the request will not be retried).\n\n@default undefined (the request will not be retried)",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/BackoffPlan"
+              }
+            ]
+          },
+          "variableExtractionPlan": {
+            "description": "This is the plan to extract variables from the tool's response. These will be accessible during the call and stored in `call.artifact.variableValues` after the call.\n\nUsage:\n1. Use `aliases` to extract variables from the tool's response body. (Most common case)\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{customer.name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{customer.age}}\"\n    }\n  ]\n}\n```\n\nThe tool response body is made available to the liquid template.\n\n2. Use `aliases` to extract variables from the tool's response body if the response is an array.\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{$[0].name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{$[0].age}}\"\n    }\n  ]\n}\n```\n\n$ is a shorthand for the tool's response body. `$[0]` is the first item in the array. `$[n]` is the nth item in the array. Note, $ is available regardless of the response body type (both object and array).\n\n3. Use `aliases` to extract variables from the tool's response headers.\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{tool.response.headers.customer-name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{tool.response.headers.customer-age}}\"\n    }\n  ]\n}\n```\n\n`tool.response` is made available to the liquid template. Particularly, both `tool.response.headers` and `tool.response.body` are available. Note, `tool.response` is available regardless of the response body type (both object and array).\n\n4. Use `schema` to extract a large portion of the tool's response body.\n\n4.1. If you hit example.com and it returns `{\"name\": \"John\", \"age\": 30}`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"name\": {\n        \"type\": \"string\"\n      },\n      \"age\": {\n        \"type\": \"number\"\n      }\n    }\n  }\n}\n```\nThese will be extracted as `{{ name }}` and `{{ age }}` respectively. To emphasize, object properties are extracted as direct global variables.\n\n4.2. If you hit example.com and it returns `{\"name\": {\"first\": \"John\", \"last\": \"Doe\"}}`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"name\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"first\": {\n            \"type\": \"string\"\n          },\n          \"last\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\nThese will be extracted as `{{ name }}`. And, `{{ name.first }}` and `{{ name.last }}` will be accessible.\n\n4.3. If you hit example.com and it returns `[\"94123\", \"94124\"]`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"array\",\n    \"title\": \"zipCodes\",\n    \"items\": {\n      \"type\": \"string\"\n    }\n  }\n}\n```\n\nThis will be extracted as `{{ zipCodes }}`. To access the array items, you can use `{{ zipCodes[0] }}` and `{{ zipCodes[1] }}`.\n\n4.4. If you hit example.com and it returns `[{\"name\": \"John\", \"age\": 30, \"zipCodes\": [\"94123\", \"94124\"]}, {\"name\": \"Jane\", \"age\": 25, \"zipCodes\": [\"94125\", \"94126\"]}]`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"array\",\n    \"title\": \"people\",\n    \"items\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"age\": {\n          \"type\": \"number\"\n        },\n        \"zipCodes\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\nThis will be extracted as `{{ people }}`. To access the array items, you can use `{{ people[n].name }}`, `{{ people[n].age }}`, `{{ people[n].zipCodes }}`, `{{ people[n].zipCodes[0] }}` and `{{ people[n].zipCodes[1] }}`.\n\nNote: Both `aliases` and `schema` can be used together.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VariableExtractionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "method",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "url"
+        ]
+      },
+      "CodeToolEnvironmentVariable": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "Name of the environment variable",
+            "maxLength": 64,
+            "pattern": "/^[A-Z][A-Z0-9_]*$/",
+            "example": "API_KEY"
+          },
+          "value": {
+            "type": "string",
+            "description": "Value of the environment variable. Supports Liquid templates.",
+            "maxLength": 10000,
+            "example": "{{apiKey}}"
+          }
+        },
+        "required": [
+          "name",
+          "value"
+        ]
+      },
+      "CodeTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "code"
+            ],
+            "description": "The type of tool. \"code\" for Code tool."
+          },
+          "async": {
+            "type": "boolean",
+            "example": false,
+            "description": "This determines if the tool is async.\n\n  If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\n  If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\n  Defaults to synchronous (`false`)."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "code": {
+            "type": "string",
+            "description": "TypeScript code to execute when the tool is called",
+            "maxLength": 50000
+          },
+          "environmentVariables": {
+            "description": "Environment variables available in code via `env` object",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CodeToolEnvironmentVariable"
+            }
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the timeout in seconds for the code execution. Defaults to 10 seconds.\nMaximum is 30 seconds to prevent abuse.\n\n@default 10",
+            "minimum": 1,
+            "maximum": 30,
+            "example": 10
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "Credential ID containing the Val Town API key",
+            "example": "550e8400-e29b-41d4-a716-446655440000"
+          },
+          "variableExtractionPlan": {
+            "description": "Plan to extract variables from the tool response",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VariableExtractionPlan"
+              }
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "function": {
+            "description": "This is the function definition of the tool.\n\nFor the Code tool, this defines the name, description, and parameters that the model\nwill use to understand when and how to call this tool.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OpenAIFunction"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "code",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "DtmfTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "dtmf"
+            ],
+            "description": "The type of tool. \"dtmf\" for DTMF tool."
+          },
+          "sipInfoDtmfEnabled": {
+            "type": "boolean",
+            "description": "This enables sending DTMF tones via SIP INFO messages instead of RFC 2833 (RTP events). When enabled, DTMF digits will be sent using the SIP INFO method, which can be more reliable in some network configurations. Only relevant when using the `vapi.sip` transport.",
+            "default": false
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "EndCallTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "endCall"
+            ],
+            "description": "The type of tool. \"endCall\" for End Call tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "FunctionTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "function"
+            ],
+            "description": "The type of tool. \"function\" for Function tool."
+          },
+          "async": {
+            "type": "boolean",
+            "example": false,
+            "description": "This determines if the tool is async.\n\n  If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\n  If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\n  Defaults to synchronous (`false`)."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "variableExtractionPlan": {
+            "description": "Plan to extract variables from the tool response",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VariableExtractionPlan"
+              }
+            ]
+          },
+          "parameters": {
+            "description": "Static key-value pairs merged into the request body. Values support Liquid templates.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolParameter"
+            }
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "function": {
+            "description": "This is the function definition of the tool.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OpenAIFunction"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "GhlTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "ghl"
+            ],
+            "description": "The type of tool. \"ghl\" for GHL tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/GhlToolMetadata"
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "metadata"
+        ]
+      },
+      "MakeTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "make"
+            ],
+            "description": "The type of tool. \"make\" for Make tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/MakeToolMetadata"
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "metadata"
+        ]
+      },
+      "TransferCallTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "transferCall"
+            ]
+          },
+          "destinations": {
+            "type": "array",
+            "description": "These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransferDestinationAssistant",
+                  "title": "Assistant"
+                },
+                {
+                  "$ref": "#/components/schemas/TransferDestinationNumber",
+                  "title": "Number"
+                },
+                {
+                  "$ref": "#/components/schemas/TransferDestinationSip",
+                  "title": "Sip"
+                }
+              ]
+            }
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "HandoffTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the tool.\nWhen you're using handoff tool, we recommend adding this to your system prompt\n---\n# System context\n\nYou are part of a multi-agent system designed to make agent coordination and execution easy. Agents uses two primary abstraction: **Agents** and **Handoffs**. An agent encompasses instructions and tools and can hand off a conversation to another agent when appropriate. Handoffs are achieved by calling a handoff function, generally named `handoff_to_<agent_name>`. Handoffs between agents are handled seamlessly in the background; do not mention or draw attention to these handoffs in your conversation with the user.\n\n# Agent context\n\n{put your agent system prompt here}\n---",
+            "enum": [
+              "handoff"
+            ]
+          },
+          "defaultResult": {
+            "type": "string",
+            "description": "This is the default local tool result message used when no runtime handoff result override is returned."
+          },
+          "destinations": {
+            "type": "array",
+            "description": "These are the destinations that the call can be handed off to.\n\nUsage:\n1. Single destination\n\nUse `assistantId` to handoff the call to a saved assistant, or `assistantName` to handoff the call to an assistant in the same squad.\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\", // or \"assistantName\": \"Assistant123\"\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n2. Multiple destinations\n\n2.1. Multiple Tools, Each With One Destination (OpenAI recommended)\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n      ],\n    },\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n2.2. One Tool, Multiple Destinations (Anthropic recommended)\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n3. Dynamic destination\n\n3.1 To determine the destination dynamically, supply a `dynamic` handoff destination type and a `server` object.\n    VAPI will send a handoff-destination-request webhook to the `server.url`.\n    The response from the server will be used as the destination (if valid).\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"dynamic\",\n          \"server\": {\n            \"url\": \"https://example.com\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n3.2. To pass custom parameters to the server, you can use the `function` object.\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"dynamic\",\n          \"server\": {\n            \"url\": \"https://example.com\"\n          },\n        }\n      ],\n      \"function\": {\n        \"name\": \"handoff\",\n        \"description\": \"Call this function when the customer is ready to be handed off to the next assistant\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"destination\": {\n              \"type\": \"string\",\n              \"description\": \"Use dynamic when customer is ready to be handed off to the next assistant\",\n              \"enum\": [\"dynamic\"]\n            },\n            \"customerAreaCode\": {\n              \"type\": \"number\",\n              \"description\": \"Area code of the customer\"\n            },\n            \"customerIntent\": {\n              \"type\": \"string\",\n              \"enum\": [\"new-customer\", \"existing-customer\"],\n              \"description\": \"Use new-customer when customer is a new customer, existing-customer when customer is an existing customer\"\n            },\n            \"customerSentiment\": {\n              \"type\": \"string\",\n              \"enum\": [\"positive\", \"negative\", \"neutral\"],\n              \"description\": \"Use positive when customer is happy, negative when customer is unhappy, neutral when customer is neutral\"\n            }\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\nThe properties `customerAreaCode`, `customerIntent`, and `customerSentiment` will be passed to the server in the webhook request body.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationAssistant",
+                  "title": "Assistant"
+                },
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationDynamic",
+                  "title": "Dynamic"
+                },
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationSquad",
+                  "title": "Squad"
+                }
+              ]
+            }
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "function": {
+            "description": "This is the optional function definition that will be passed to the LLM.\nIf this is not defined, we will construct this based on the other properties.\n\nFor example, given the following tools definition:\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\nWe will construct the following function definition:\n```json\n{\n  \"function\": {\n    \"name\": \"handoff_to_assistant-123\",\n    \"description\": \"\n         Use this function to handoff the call to the next assistant.\n         Only use it when instructions explicitly ask you to use the handoff_to_assistant function.\n         DO NOT call this function unless you are instructed to do so.\n         Here are the destinations you can handoff the call to:\n         1. assistant-123. When: customer wants to be handed off to assistant-123\n         2. assistant-456. When: customer wants to be handed off to assistant-456\n    \",\n    \"parameters\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"destination\": {\n          \"type\": \"string\",\n          \"description\": \"Options: assistant-123 (customer wants to be handed off to assistant-123), assistant-456 (customer wants to be handed off to assistant-456)\",\n          \"enum\": [\"assistant-123\", \"assistant-456\"]\n        },\n      },\n      \"required\": [\"destination\"]\n    }\n  }\n}\n```\n\nTo override this function, please provide an OpenAI function definition and refer to it in the system prompt.\nYou may override parts of the function definition (i.e. you may only want to change the function name for your prompt).\nIf you choose to override the function parameters, it must include `destination` as a required parameter, and it must evaluate to either an assistantId, assistantName, or a the string literal `dynamic`.\n\nTo pass custom parameters to the server in a dynamic handoff, you can use the function parameters, with `dynamic` as the destination.\n```json\n{\n  \"function\": {\n    \"name\": \"dynamic_handoff\",\n    \"description\": \"\n         Call this function when the customer is ready to be handed off to the next assistant\n    \",\n    \"parameters\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"destination\": {\n          \"type\": \"string\",\n          \"enum\": [\"dynamic\"]\n        },\n        \"customerAreaCode\": {\n          \"type\": \"number\",\n          \"description\": \"Area code of the customer\"\n        },\n        \"customerIntent\": {\n          \"type\": \"string\",\n          \"enum\": [\"new-customer\", \"existing-customer\"],\n          \"description\": \"Use new-customer when customer is a new customer, existing-customer when customer is an existing customer\"\n        },\n        \"customerSentiment\": {\n          \"type\": \"string\",\n          \"enum\": [\"positive\", \"negative\", \"neutral\"],\n          \"description\": \"Use positive when customer is happy, negative when customer is unhappy, neutral when customer is neutral\"\n        }\n      },\n      \"required\": [\"destination\", \"customerAreaCode\", \"customerIntent\", \"customerSentiment\"]\n    }\n  }\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OpenAIFunction"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "OutputTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "output"
+            ],
+            "description": "The type of tool. \"output\" for Output tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "BashTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "bash"
+            ],
+            "description": "The type of tool. \"bash\" for Bash tool."
+          },
+          "subType": {
+            "type": "string",
+            "enum": [
+              "bash_20241022"
+            ],
+            "description": "The sub type of tool."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "The name of the tool, fixed to 'bash'",
+            "default": "bash",
+            "enum": [
+              "bash"
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "subType",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "name"
+        ]
+      },
+      "ComputerTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "computer"
+            ],
+            "description": "The type of tool. \"computer\" for Computer tool."
+          },
+          "subType": {
+            "type": "string",
+            "enum": [
+              "computer_20241022"
+            ],
+            "description": "The sub type of tool."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "The name of the tool, fixed to 'computer'",
+            "default": "computer",
+            "enum": [
+              "computer"
+            ]
+          },
+          "displayWidthPx": {
+            "type": "number",
+            "description": "The display width in pixels"
+          },
+          "displayHeightPx": {
+            "type": "number",
+            "description": "The display height in pixels"
+          },
+          "displayNumber": {
+            "type": "number",
+            "description": "Optional display number"
+          }
+        },
+        "required": [
+          "type",
+          "subType",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "name",
+          "displayWidthPx",
+          "displayHeightPx"
+        ]
+      },
+      "TextEditorTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "textEditor"
+            ],
+            "description": "The type of tool. \"textEditor\" for Text Editor tool."
+          },
+          "subType": {
+            "type": "string",
+            "enum": [
+              "text_editor_20241022"
+            ],
+            "description": "The sub type of tool."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "The name of the tool, fixed to 'str_replace_editor'",
+            "default": "str_replace_editor",
+            "enum": [
+              "str_replace_editor"
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "subType",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "name"
+        ]
+      },
+      "QueryTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "query"
+            ],
+            "description": "The type of tool. \"query\" for Query tool."
+          },
+          "knowledgeBases": {
+            "description": "The knowledge bases to query",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/KnowledgeBase"
+            }
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "GoogleCalendarCreateEventTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "google.calendar.event.create"
+            ],
+            "description": "The type of tool. \"google.calendar.event.create\" for Google Calendar Create Event tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "GoogleSheetsRowAppendTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "google.sheets.row.append"
+            ],
+            "description": "The type of tool. \"google.sheets.row.append\" for Google Sheets Row Append tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "GoogleCalendarCheckAvailabilityTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "google.calendar.availability.check"
+            ],
+            "description": "The type of tool. \"google.calendar.availability.check\" for Google Calendar Check Availability tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "SlackSendMessageTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "slack.message.send"
+            ],
+            "description": "The type of tool. \"slack.message.send\" for Slack Send Message tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "SmsTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "sms"
+            ],
+            "description": "The type of tool. \"sms\" for Twilio SMS sending tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "McpTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "mcp"
+            ],
+            "description": "The type of tool. \"mcp\" for MCP tool."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "toolMessages": {
+            "description": "Per-tool message overrides for individual tools loaded from the MCP server. Set messages to an empty array to suppress messages for a specific tool. Tools not listed here will use the default messages from the parent tool.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/McpToolMessages"
+            }
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/McpToolMetadata"
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "GoHighLevelCalendarAvailabilityTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "gohighlevel.calendar.availability.check"
+            ],
+            "description": "The type of tool. \"gohighlevel.calendar.availability.check\" for GoHighLevel Calendar Availability Check tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "GoHighLevelCalendarEventCreateTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "gohighlevel.calendar.event.create"
+            ],
+            "description": "The type of tool. \"gohighlevel.calendar.event.create\" for GoHighLevel Calendar Event Create tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "GoHighLevelContactCreateTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "gohighlevel.contact.create"
+            ],
+            "description": "The type of tool. \"gohighlevel.contact.create\" for GoHighLevel Contact Create tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "GoHighLevelContactGetTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "gohighlevel.contact.get"
+            ],
+            "description": "The type of tool. \"gohighlevel.contact.get\" for GoHighLevel Contact Get tool."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "SipRequestTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "sipRequest"
+            ],
+            "description": "The type of tool. \"sipRequest\" for SIP request tool."
+          },
+          "verb": {
+            "type": "string",
+            "enum": [
+              "INFO",
+              "MESSAGE",
+              "NOTIFY"
+            ],
+            "description": "The SIP method to send."
+          },
+          "headers": {
+            "description": "JSON schema for headers the model should populate when sending the SIP request.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
             ]
           },
-          "destination": {
-            "description": "This is the destination where the call ended up being transferred to. If the call was not transferred, this will be empty.",
+          "body": {
+            "description": "Body to include in the SIP request. Either a literal string body, or a JSON schema describing a structured body that the model should populate.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
+                "type": "string"
               },
               {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
           },
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the call."
+            "description": "This is the unique identifier for the tool."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this call belongs to."
+            "description": "This is the unique identifier for the organization that this tool belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the call was created."
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the call was last updated."
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
           },
-          "startedAt": {
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "verb",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "VoicemailTool": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "description": "The type of tool. \"voicemail\" for Voicemail tool.",
+            "enum": [
+              "voicemail"
+            ]
+          },
+          "beepDetectionEnabled": {
+            "type": "boolean",
+            "description": "This is the flag that enables beep detection for voicemail detection and applies only for twilio based calls.\n\n@default false",
+            "default": false,
+            "example": false
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the tool."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization that this tool belongs to."
+          },
+          "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the call was started."
+            "description": "This is the ISO 8601 date-time string of when the tool was created."
           },
-          "endedAt": {
+          "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the call was ended."
+            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
           },
-          "cost": {
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "CreateApiRequestToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "apiRequest"
+            ],
+            "description": "The type of tool. \"apiRequest\" for API request tool."
+          },
+          "method": {
+            "type": "string",
+            "enum": [
+              "POST",
+              "GET",
+              "PUT",
+              "PATCH",
+              "DELETE"
+            ]
+          },
+          "timeoutSeconds": {
             "type": "number",
-            "description": "This is the cost of the call in USD."
+            "description": "This is the timeout in seconds for the request. Defaults to 20 seconds.\n\n@default 20",
+            "minimum": 1,
+            "maximum": 300,
+            "example": 20
           },
-          "costBreakdown": {
-            "description": "This is the cost of the call in USD.",
+          "credentialId": {
+            "type": "string",
+            "description": "The credential ID for API request authentication",
+            "example": "550e8400-e29b-41d4-a716-446655440000"
+          },
+          "encryptedPaths": {
+            "type": "array",
+            "description": "This is the paths to encrypt in the request body if credentialId and encryptionPlan are defined.",
+            "items": {
+              "type": "string"
+            }
+          },
+          "parameters": {
+            "description": "Static key-value pairs merged into the request body. Values support Liquid templates.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolParameter"
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the tool. This will be passed to the model.\n\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 40.",
+            "maxLength": 40,
+            "pattern": "/^[a-zA-Z0-9_-]{1,40}$/"
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of the tool. This will be passed to the model."
+          },
+          "url": {
+            "type": "string",
+            "description": "This is where the request will be sent."
+          },
+          "body": {
+            "description": "This is the body of the request.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CostBreakdown"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
           },
-          "artifactPlan": {
-            "description": "This is a copy of assistant artifact plan. This isn't actually stored on the call but rather just returned in POST /call/web to enable artifact creation client side.",
+          "headers": {
+            "description": "These are the headers to send with the request.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ArtifactPlan"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
           },
-          "analysis": {
-            "description": "This is the analysis of the call. Configure in `assistant.analysisPlan`.",
+          "backoffPlan": {
+            "description": "This is the backoff plan if the request fails. Defaults to undefined (the request will not be retried).\n\n@default undefined (the request will not be retried)",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Analysis"
+                "$ref": "#/components/schemas/BackoffPlan"
               }
             ]
           },
-          "monitor": {
-            "description": "This is to real-time monitor the call. Configure in `assistant.monitorPlan`.",
+          "variableExtractionPlan": {
+            "description": "This is the plan to extract variables from the tool's response. These will be accessible during the call and stored in `call.artifact.variableValues` after the call.\n\nUsage:\n1. Use `aliases` to extract variables from the tool's response body. (Most common case)\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{customer.name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{customer.age}}\"\n    }\n  ]\n}\n```\n\nThe tool response body is made available to the liquid template.\n\n2. Use `aliases` to extract variables from the tool's response body if the response is an array.\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{$[0].name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{$[0].age}}\"\n    }\n  ]\n}\n```\n\n$ is a shorthand for the tool's response body. `$[0]` is the first item in the array. `$[n]` is the nth item in the array. Note, $ is available regardless of the response body type (both object and array).\n\n3. Use `aliases` to extract variables from the tool's response headers.\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{tool.response.headers.customer-name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{tool.response.headers.customer-age}}\"\n    }\n  ]\n}\n```\n\n`tool.response` is made available to the liquid template. Particularly, both `tool.response.headers` and `tool.response.body` are available. Note, `tool.response` is available regardless of the response body type (both object and array).\n\n4. Use `schema` to extract a large portion of the tool's response body.\n\n4.1. If you hit example.com and it returns `{\"name\": \"John\", \"age\": 30}`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"name\": {\n        \"type\": \"string\"\n      },\n      \"age\": {\n        \"type\": \"number\"\n      }\n    }\n  }\n}\n```\nThese will be extracted as `{{ name }}` and `{{ age }}` respectively. To emphasize, object properties are extracted as direct global variables.\n\n4.2. If you hit example.com and it returns `{\"name\": {\"first\": \"John\", \"last\": \"Doe\"}}`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"name\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"first\": {\n            \"type\": \"string\"\n          },\n          \"last\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\nThese will be extracted as `{{ name }}`. And, `{{ name.first }}` and `{{ name.last }}` will be accessible.\n\n4.3. If you hit example.com and it returns `[\"94123\", \"94124\"]`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"array\",\n    \"title\": \"zipCodes\",\n    \"items\": {\n      \"type\": \"string\"\n    }\n  }\n}\n```\n\nThis will be extracted as `{{ zipCodes }}`. To access the array items, you can use `{{ zipCodes[0] }}` and `{{ zipCodes[1] }}`.\n\n4.4. If you hit example.com and it returns `[{\"name\": \"John\", \"age\": 30, \"zipCodes\": [\"94123\", \"94124\"]}, {\"name\": \"Jane\", \"age\": 25, \"zipCodes\": [\"94125\", \"94126\"]}]`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"array\",\n    \"title\": \"people\",\n    \"items\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"age\": {\n          \"type\": \"number\"\n        },\n        \"zipCodes\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\nThis will be extracted as `{{ people }}`. To access the array items, you can use `{{ people[n].name }}`, `{{ people[n].age }}`, `{{ people[n].zipCodes }}`, `{{ people[n].zipCodes[0] }}` and `{{ people[n].zipCodes[1] }}`.\n\nNote: Both `aliases` and `schema` can be used together.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Monitor"
+                "$ref": "#/components/schemas/VariableExtractionPlan"
               }
             ]
           },
-          "artifact": {
-            "description": "These are the artifacts created from the call. Configure in `assistant.artifactPlan`.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Artifact"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
+          }
+        },
+        "required": [
+          "type",
+          "method",
+          "url"
+        ]
+      },
+      "CreateCodeToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "phoneCallProviderId": {
+          "type": {
             "type": "string",
-            "description": "The ID of the call as provided by the phone number service. callSid in Twilio. conversationUuid in Vonage. callControlId in Telnyx.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+            "enum": [
+              "code"
+            ],
+            "description": "The type of tool. \"code\" for Code tool."
           },
-          "assistantId": {
+          "async": {
+            "type": "boolean",
+            "example": false,
+            "description": "This determines if the tool is async.\n\n  If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\n  If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\n  Defaults to synchronous (`false`)."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "code": {
             "type": "string",
-            "description": "This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead."
+            "description": "TypeScript code to execute when the tool is called",
+            "maxLength": 50000
           },
-          "assistant": {
-            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.",
+          "environmentVariables": {
+            "description": "Environment variables available in code via `env` object",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CodeToolEnvironmentVariable"
+            }
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the timeout in seconds for the code execution. Defaults to 10 seconds.\nMaximum is 30 seconds to prevent abuse.\n\n@default 10",
+            "minimum": 1,
+            "maximum": 30,
+            "example": 10
+          },
+          "credentialId": {
+            "type": "string",
+            "description": "Credential ID containing the Val Town API key",
+            "example": "550e8400-e29b-41d4-a716-446655440000"
+          },
+          "variableExtractionPlan": {
+            "description": "Plan to extract variables from the tool response",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
+                "$ref": "#/components/schemas/VariableExtractionPlan"
               }
             ]
           },
-          "assistantOverrides": {
-            "description": "These are the overrides for the `assistant` or `assistantId`'s settings and template variables.",
+          "function": {
+            "description": "This is the function definition of the tool.\n\nFor the Code tool, this defines the name, description, and parameters that the model\nwill use to understand when and how to call this tool.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/AssistantOverrides"
+                "$ref": "#/components/schemas/OpenAIFunction"
               }
             ]
           },
-          "squadId": {
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "code"
+        ]
+      },
+      "CreateOutputToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead."
+            "enum": [
+              "output"
+            ],
+            "description": "The type of tool. \"output\" for Output tool."
           },
-          "squad": {
-            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateSquadDTO"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "CreateBashToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "phoneNumberId": {
+          "type": {
             "type": "string",
-            "description": "This is the phone number that will be used for the call. To use a transient number, use `phoneNumber` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+            "enum": [
+              "bash"
+            ],
+            "description": "The type of tool. \"bash\" for Bash tool."
           },
-          "phoneNumber": {
-            "description": "This is the phone number that will be used for the call. To use an existing number, use `phoneNumberId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+          "subType": {
+            "type": "string",
+            "enum": [
+              "bash_20241022"
+            ],
+            "description": "The sub type of tool."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ImportTwilioPhoneNumberDTO"
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "The name of the tool, fixed to 'bash'",
+            "default": "bash",
+            "enum": [
+              "bash"
+            ]
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "subType",
+          "name"
+        ]
+      },
+      "CreateComputerToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "computer"
+            ],
+            "description": "The type of tool. \"computer\" for Computer tool."
+          },
+          "subType": {
+            "type": "string",
+            "enum": [
+              "computer_20241022"
+            ],
+            "description": "The sub type of tool."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "The name of the tool, fixed to 'computer'",
+            "default": "computer",
+            "enum": [
+              "computer"
+            ]
+          },
+          "displayWidthPx": {
+            "type": "number",
+            "description": "The display width in pixels"
+          },
+          "displayHeightPx": {
+            "type": "number",
+            "description": "The display height in pixels"
+          },
+          "displayNumber": {
+            "type": "number",
+            "description": "Optional display number"
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
+          }
+        },
+        "required": [
+          "type",
+          "subType",
+          "name",
+          "displayWidthPx",
+          "displayHeightPx"
+        ]
+      },
+      "CreateTextEditorToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "textEditor"
+            ],
+            "description": "The type of tool. \"textEditor\" for Text Editor tool."
           },
-          "customerId": {
+          "subType": {
             "type": "string",
-            "description": "This is the customer that will be called. To call a transient customer , use `customer` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+            "enum": [
+              "text_editor_20241022"
+            ],
+            "description": "The sub type of tool."
           },
-          "customer": {
-            "description": "This is the customer that will be called. To call an existing customer, use `customerId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateCustomerDTO"
+                "$ref": "#/components/schemas/Server"
               }
             ]
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the call. This is just for your own reference.",
-            "maxLength": 40
+            "description": "The name of the tool, fixed to 'str_replace_editor'",
+            "default": "str_replace_editor",
+            "enum": [
+              "str_replace_editor"
+            ]
           },
-          "schedulePlan": {
-            "description": "This is the schedule plan of the call.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/SchedulePlan"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
-          },
-          "transport": {
-            "type": "object",
-            "description": "This is the transport of the call."
-          }
-        },
-        "required": [
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
-      },
-      "CallBatchError": {
-        "type": "object",
-        "properties": {
-          "customer": {
-            "$ref": "#/components/schemas/CreateCustomerDTO"
-          },
-          "error": {
-            "type": "string"
           }
         },
         "required": [
-          "customer",
-          "error"
+          "type",
+          "subType",
+          "name"
         ]
       },
-      "CallBatchResponse": {
+      "CreateSmsToolDTO": {
         "type": "object",
         "properties": {
-          "results": {
-            "description": "This is the list of calls that were created.",
+          "messages": {
             "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "$ref": "#/components/schemas/Call"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
             }
           },
-          "errors": {
-            "description": "This is the list of calls that failed to be created.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/CallBatchError"
-            }
+          "type": {
+            "type": "string",
+            "enum": [
+              "sms"
+            ],
+            "description": "The type of tool. \"sms\" for Twilio SMS sending tool."
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
         },
         "required": [
-          "results",
-          "errors"
+          "type"
         ]
       },
-      "CreateCallDTO": {
+      "CreateSipRequestToolDTO": {
         "type": "object",
         "properties": {
-          "customers": {
-            "description": "This is used to issue batch calls to multiple customers.\n\nOnly relevant for `outboundPhoneCall`. To call a single customer, use `customer` instead.",
+          "messages": {
             "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "$ref": "#/components/schemas/CreateCustomerDTO"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
             }
           },
-          "name": {
+          "type": {
             "type": "string",
-            "description": "This is the name of the call. This is just for your own reference.",
-            "maxLength": 40
-          },
-          "schedulePlan": {
-            "description": "This is the schedule plan of the call.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SchedulePlan"
-              }
-            ]
-          },
-          "transport": {
-            "type": "object",
-            "description": "This is the transport of the call."
+            "enum": [
+              "sipRequest"
+            ],
+            "description": "The type of tool. \"sipRequest\" for SIP request tool."
           },
-          "assistantId": {
+          "verb": {
             "type": "string",
-            "description": "This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead."
-          },
-          "assistant": {
-            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
-              }
-            ]
+            "enum": [
+              "INFO",
+              "MESSAGE",
+              "NOTIFY"
+            ],
+            "description": "The SIP method to send."
           },
-          "assistantOverrides": {
-            "description": "These are the overrides for the `assistant` or `assistantId`'s settings and template variables.",
+          "headers": {
+            "description": "JSON schema for headers the model should populate when sending the SIP request.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/AssistantOverrides"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
           },
-          "squadId": {
-            "type": "string",
-            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead."
-          },
-          "squad": {
-            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.",
-            "allOf": [
+          "body": {
+            "description": "Body to include in the SIP request. Either a literal string body, or a JSON schema describing a structured body that the model should populate.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/CreateSquadDTO"
-              }
-            ]
-          },
-          "phoneNumberId": {
-            "type": "string",
-            "description": "This is the phone number that will be used for the call. To use a transient number, use `phoneNumber` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
-          },
-          "phoneNumber": {
-            "description": "This is the phone number that will be used for the call. To use an existing number, use `phoneNumberId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
-            "allOf": [
+                "type": "string"
+              },
               {
-                "$ref": "#/components/schemas/ImportTwilioPhoneNumberDTO"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
           },
-          "customerId": {
-            "type": "string",
-            "description": "This is the customer that will be called. To call a transient customer , use `customer` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
-          },
-          "customer": {
-            "description": "This is the customer that will be called. To call an existing customer, use `customerId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateCustomerDTO"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
-        }
-      },
-      "PaginationMeta": {
-        "type": "object",
-        "properties": {
-          "itemsPerPage": {
-            "type": "number"
-          },
-          "totalItems": {
-            "type": "number"
-          },
-          "currentPage": {
-            "type": "number"
-          }
-        },
-        "required": [
-          "itemsPerPage",
-          "totalItems",
-          "currentPage"
-        ]
-      },
-      "CallPaginatedResponse": {
-        "type": "object",
-        "properties": {
-          "results": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Call"
-            }
-          },
-          "metadata": {
-            "$ref": "#/components/schemas/PaginationMeta"
-          }
         },
         "required": [
-          "results",
-          "metadata"
+          "type",
+          "verb"
         ]
       },
-      "CreateOutboundCallDTO": {
+      "UpdateApiRequestToolDTO": {
         "type": "object",
         "properties": {
-          "customers": {
-            "description": "This is used to issue batch calls to multiple customers.\n\nOnly relevant for `outboundPhoneCall`. To call a single customer, use `customer` instead.",
+          "messages": {
             "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "$ref": "#/components/schemas/CreateCustomerDTO"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
             }
           },
-          "name": {
+          "method": {
             "type": "string",
-            "description": "This is the name of the call. This is just for your own reference.",
-            "maxLength": 40
-          },
-          "schedulePlan": {
-            "description": "This is the schedule plan of the call.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SchedulePlan"
-              }
+            "enum": [
+              "POST",
+              "GET",
+              "PUT",
+              "PATCH",
+              "DELETE"
             ]
           },
-          "transport": {
-            "type": "object",
-            "description": "This is the transport of the call."
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the timeout in seconds for the request. Defaults to 20 seconds.\n\n@default 20",
+            "minimum": 1,
+            "maximum": 300,
+            "example": 20
           },
-          "assistantId": {
+          "credentialId": {
             "type": "string",
-            "description": "This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead."
-          },
-          "assistant": {
-            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
-              }
-            ]
+            "description": "The credential ID for API request authentication",
+            "example": "550e8400-e29b-41d4-a716-446655440000"
           },
-          "assistantOverrides": {
-            "description": "These are the overrides for the `assistant` or `assistantId`'s settings and template variables.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AssistantOverrides"
-              }
-            ]
+          "encryptedPaths": {
+            "type": "array",
+            "description": "This is the paths to encrypt in the request body if credentialId and encryptionPlan are defined.",
+            "items": {
+              "type": "string"
+            }
           },
-          "squadId": {
-            "type": "string",
-            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead."
+          "parameters": {
+            "description": "Static key-value pairs merged into the request body. Values support Liquid templates.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolParameter"
+            }
           },
-          "squad": {
-            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateSquadDTO"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           },
-          "phoneNumberId": {
+          "name": {
             "type": "string",
-            "description": "This is the phone number that will be used for the call. To use a transient number, use `phoneNumber` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+            "description": "This is the name of the tool. This will be passed to the model.\n\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 40.",
+            "maxLength": 40,
+            "pattern": "/^[a-zA-Z0-9_-]{1,40}$/"
           },
-          "phoneNumber": {
-            "description": "This is the phone number that will be used for the call. To use an existing number, use `phoneNumberId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ImportTwilioPhoneNumberDTO"
-              }
-            ]
+          "description": {
+            "type": "string",
+            "description": "This is the description of the tool. This will be passed to the model."
           },
-          "customerId": {
+          "url": {
             "type": "string",
-            "description": "This is the customer that will be called. To call a transient customer , use `customer` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type."
+            "description": "This is where the request will be sent."
           },
-          "customer": {
-            "description": "This is the customer that will be called. To call an existing customer, use `customerId` instead.\n\nOnly relevant for `outboundPhoneCall` and `inboundPhoneCall` type.",
+          "body": {
+            "description": "This is the body of the request.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateCustomerDTO"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
-          }
-        }
-      },
-      "CreateWebCallDTO": {
-        "type": "object",
-        "properties": {
-          "assistantId": {
-            "type": "string",
-            "description": "This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead."
           },
-          "assistant": {
-            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.",
+          "headers": {
+            "description": "These are the headers to send with the request.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
+                "$ref": "#/components/schemas/JsonSchema"
               }
             ]
           },
-          "assistantOverrides": {
-            "description": "These are the overrides for the `assistant` or `assistantId`'s settings and template variables.",
+          "backoffPlan": {
+            "description": "This is the backoff plan if the request fails. Defaults to undefined (the request will not be retried).\n\n@default undefined (the request will not be retried)",
             "allOf": [
               {
-                "$ref": "#/components/schemas/AssistantOverrides"
+                "$ref": "#/components/schemas/BackoffPlan"
               }
             ]
           },
-          "squadId": {
-            "type": "string",
-            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead."
-          },
-          "squad": {
-            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.",
+          "variableExtractionPlan": {
+            "description": "This is the plan to extract variables from the tool's response. These will be accessible during the call and stored in `call.artifact.variableValues` after the call.\n\nUsage:\n1. Use `aliases` to extract variables from the tool's response body. (Most common case)\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{customer.name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{customer.age}}\"\n    }\n  ]\n}\n```\n\nThe tool response body is made available to the liquid template.\n\n2. Use `aliases` to extract variables from the tool's response body if the response is an array.\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{$[0].name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{$[0].age}}\"\n    }\n  ]\n}\n```\n\n$ is a shorthand for the tool's response body. `$[0]` is the first item in the array. `$[n]` is the nth item in the array. Note, $ is available regardless of the response body type (both object and array).\n\n3. Use `aliases` to extract variables from the tool's response headers.\n\n```json\n{\n  \"aliases\": [\n    {\n      \"key\": \"customerName\",\n      \"value\": \"{{tool.response.headers.customer-name}}\"\n    },\n    {\n      \"key\": \"customerAge\",\n      \"value\": \"{{tool.response.headers.customer-age}}\"\n    }\n  ]\n}\n```\n\n`tool.response` is made available to the liquid template. Particularly, both `tool.response.headers` and `tool.response.body` are available. Note, `tool.response` is available regardless of the response body type (both object and array).\n\n4. Use `schema` to extract a large portion of the tool's response body.\n\n4.1. If you hit example.com and it returns `{\"name\": \"John\", \"age\": 30}`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"name\": {\n        \"type\": \"string\"\n      },\n      \"age\": {\n        \"type\": \"number\"\n      }\n    }\n  }\n}\n```\nThese will be extracted as `{{ name }}` and `{{ age }}` respectively. To emphasize, object properties are extracted as direct global variables.\n\n4.2. If you hit example.com and it returns `{\"name\": {\"first\": \"John\", \"last\": \"Doe\"}}`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"name\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"first\": {\n            \"type\": \"string\"\n          },\n          \"last\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\nThese will be extracted as `{{ name }}`. And, `{{ name.first }}` and `{{ name.last }}` will be accessible.\n\n4.3. If you hit example.com and it returns `[\"94123\", \"94124\"]`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"array\",\n    \"title\": \"zipCodes\",\n    \"items\": {\n      \"type\": \"string\"\n    }\n  }\n}\n```\n\nThis will be extracted as `{{ zipCodes }}`. To access the array items, you can use `{{ zipCodes[0] }}` and `{{ zipCodes[1] }}`.\n\n4.4. If you hit example.com and it returns `[{\"name\": \"John\", \"age\": 30, \"zipCodes\": [\"94123\", \"94124\"]}, {\"name\": \"Jane\", \"age\": 25, \"zipCodes\": [\"94125\", \"94126\"]}]`, then you can specify the schema as:\n\n```json\n{\n  \"schema\": {\n    \"type\": \"array\",\n    \"title\": \"people\",\n    \"items\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"age\": {\n          \"type\": \"number\"\n        },\n        \"zipCodes\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\nThis will be extracted as `{{ people }}`. To access the array items, you can use `{{ people[n].name }}`, `{{ people[n].age }}`, `{{ people[n].zipCodes }}`, `{{ people[n].zipCodes[0] }}` and `{{ people[n].zipCodes[1] }}`.\n\nNote: Both `aliases` and `schema` can be used together.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateSquadDTO"
+                "$ref": "#/components/schemas/VariableExtractionPlan"
               }
             ]
           }
         }
       },
-      "UpdateCallDTO": {
-        "type": "object",
-        "properties": {
-          "name": {
-            "type": "string",
-            "description": "This is the name of the call. This is just for your own reference.",
-            "maxLength": 40
-          }
-        }
-      },
-      "ChatServiceResponse": {
-        "type": "object",
-        "properties": {}
-      },
-      "ChatCompletionMessageMetadata": {
+      "UpdateCodeToolDTO": {
         "type": "object",
         "properties": {
-          "taskName": {
-            "type": "string"
-          },
-          "taskType": {
-            "type": "string"
-          },
-          "taskOutput": {
-            "type": "string"
-          },
-          "taskState": {
-            "type": "object"
-          },
-          "nodeTrace": {
+          "messages": {
             "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "type": "string"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
             }
-          }
-        },
-        "required": [
-          "taskName",
-          "taskType",
-          "taskOutput"
-        ]
-      },
-      "ChatCompletionMessageWorkflows": {
-        "type": "object",
-        "properties": {
-          "role": {
-            "type": "object"
           },
-          "content": {
-            "type": "string",
-            "nullable": true
+          "async": {
+            "type": "boolean",
+            "example": false,
+            "description": "This determines if the tool is async.\n\n  If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\n  If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\n  Defaults to synchronous (`false`)."
           },
-          "metadata": {
-            "$ref": "#/components/schemas/ChatCompletionMessageMetadata"
-          }
-        },
-        "required": [
-          "role",
-          "content"
-        ]
-      },
-      "Say": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "enum": [
-              "say"
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
             ]
           },
-          "exact": {
+          "code": {
             "type": "string",
-            "maxLength": 1000
+            "description": "TypeScript code to execute when the tool is called",
+            "maxLength": 50000
           },
-          "prompt": {
-            "type": "string",
-            "maxLength": 1000
+          "environmentVariables": {
+            "description": "Environment variables available in code via `env` object",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CodeToolEnvironmentVariable"
+            }
           },
-          "name": {
-            "type": "string",
-            "maxLength": 80
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the timeout in seconds for the code execution. Defaults to 10 seconds.\nMaximum is 30 seconds to prevent abuse.\n\n@default 10",
+            "minimum": 1,
+            "maximum": 30,
+            "example": 10
           },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the task."
-          }
-        },
-        "required": [
-          "type",
-          "name"
-        ]
-      },
-      "SayHook": {
-        "type": "object",
-        "properties": {
-          "type": {
+          "credentialId": {
             "type": "string",
-            "enum": [
-              "say"
-            ]
+            "description": "Credential ID containing the Val Town API key",
+            "example": "550e8400-e29b-41d4-a716-446655440000"
           },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the task."
+          "variableExtractionPlan": {
+            "description": "Plan to extract variables from the tool response",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VariableExtractionPlan"
+              }
+            ]
           },
-          "exact": {
-            "type": "string",
-            "maxLength": 1000
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           },
-          "prompt": {
-            "type": "string",
-            "maxLength": 1000
+          "function": {
+            "description": "This is the function definition of the tool.\n\nFor the Code tool, this defines the name, description, and parameters that the model\nwill use to understand when and how to call this tool.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OpenAIFunction"
+              }
+            ]
           }
-        },
-        "required": [
-          "type"
-        ]
+        }
       },
-      "Hook": {
+      "UpdateDtmfToolDTO": {
         "type": "object",
         "properties": {
-          "on": {
-            "type": "string",
-            "enum": [
-              "task.start",
-              "task.output.confirmation",
-              "task.delayed"
-            ],
-            "maxLength": 80
-          },
-          "do": {
+          "messages": {
             "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "$ref": "#/components/schemas/SayHook"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
             }
+          },
+          "sipInfoDtmfEnabled": {
+            "type": "boolean",
+            "description": "This enables sending DTMF tones via SIP INFO messages instead of RFC 2833 (RTP events). When enabled, DTMF digits will be sent using the SIP INFO method, which can be more reliable in some network configurations. Only relevant when using the `vapi.sip` transport.",
+            "default": false
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
-        },
-        "required": [
-          "on",
-          "do"
-        ]
+        }
       },
-      "Gather": {
+      "UpdateEndCallToolDTO": {
         "type": "object",
         "properties": {
-          "type": {
-            "type": "string",
-            "enum": [
-              "gather"
-            ]
-          },
-          "output": {
-            "$ref": "#/components/schemas/JsonSchema"
-          },
-          "confirmContent": {
-            "type": "boolean",
-            "description": "This is whether or not the workflow should read back the gathered data to the user, and ask about its correctness."
-          },
-          "hooks": {
-            "description": "This is a list of hooks for a task.\nEach hook is a list of tasks to run on a trigger (such as on start, on failure, etc).\nOnly Say is supported for now.",
+          "messages": {
             "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "$ref": "#/components/schemas/Hook"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
             }
           },
-          "maxRetries": {
-            "type": "number",
-            "description": "This is the number of times we should try to gather the information from the user before we failover to the fail path. An example of this would be a user refusing to give their phone number for privacy reasons, and then going down a different path on account of this"
-          },
-          "literalTemplate": {
-            "type": "string",
-            "description": "This is a liquid templating string. On the first call to Gather, the template will be filled out with variables from the context, and will be spoken verbatim to the user. An example would be \"Base on your zipcode, it looks like you could be in one of these counties: {{ counties | join: \", \" }}. Which one do you live in?\""
-          },
-          "name": {
-            "type": "string",
-            "maxLength": 80
-          },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the task."
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           }
-        },
-        "required": [
-          "type",
-          "output",
-          "name"
-        ]
+        }
       },
-      "ApiRequest": {
+      "UpdateFunctionToolDTO": {
         "type": "object",
         "properties": {
-          "type": {
-            "type": "string",
-            "enum": [
-              "apiRequest"
-            ]
-          },
-          "method": {
-            "type": "string",
-            "enum": [
-              "POST",
-              "GET"
-            ]
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "url": {
-            "type": "string",
-            "description": "Api endpoint to send requests to."
+          "async": {
+            "type": "boolean",
+            "example": false,
+            "description": "This determines if the tool is async.\n\n  If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\n  If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\n  Defaults to synchronous (`false`)."
           },
-          "headers": {
-            "description": "These are the custom headers to include in the Api Request sent.\n\nEach key-value pair represents a header name and its value.",
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/JsonSchema"
+                "$ref": "#/components/schemas/Server"
               }
             ]
           },
-          "body": {
-            "description": "This defined the JSON body of your Api Request. For example, if `body_schema`\nincluded \"my_field\": \"my_gather_statement.user_age\", then the json body sent to the server would have that particular value assign to it.\nRight now, only data from gather statements are supported.",
+          "variableExtractionPlan": {
+            "description": "Plan to extract variables from the tool response",
             "allOf": [
               {
-                "$ref": "#/components/schemas/JsonSchema"
+                "$ref": "#/components/schemas/VariableExtractionPlan"
               }
             ]
           },
-          "mode": {
-            "type": "string",
-            "description": "This is the mode of the Api Request.\nWe only support BLOCKING and BACKGROUND for now.",
-            "enum": [
-              "blocking",
-              "background"
-            ]
-          },
-          "hooks": {
-            "description": "This is a list of hooks for a task.\nEach hook is a list of tasks to run on a trigger (such as on start, on failure, etc).\nOnly Say is supported for now.",
+          "parameters": {
+            "description": "Static key-value pairs merged into the request body. Values support Liquid templates.",
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/Hook"
+              "$ref": "#/components/schemas/ToolParameter"
             }
           },
-          "output": {
-            "description": "This is the schema for the outputs of the Api Request.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/JsonSchema"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           },
-          "name": {
-            "type": "string",
-            "maxLength": 80
-          },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the task."
-          }
-        },
-        "required": [
-          "type",
-          "method",
-          "url",
-          "mode",
-          "name"
-        ]
-      },
-      "Hangup": {
-        "type": "object",
-        "properties": {
-          "type": {
-            "type": "string",
-            "enum": [
-              "hangup"
+          "function": {
+            "description": "This is the function definition of the tool.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OpenAIFunction"
+              }
             ]
-          },
-          "name": {
-            "type": "string",
-            "maxLength": 80
-          },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the task."
           }
-        },
-        "required": [
-          "type",
-          "name"
-        ]
+        }
       },
-      "Transfer": {
+      "UpdateGhlToolDTO": {
         "type": "object",
         "properties": {
-          "type": {
-            "type": "string",
-            "enum": [
-              "transfer"
-            ]
-          },
-          "destination": {
-            "type": "object"
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "name": {
-            "type": "string",
-            "maxLength": 80
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
           },
           "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the task."
+            "$ref": "#/components/schemas/GhlToolMetadata"
           }
-        },
-        "required": [
-          "type",
-          "destination",
-          "name"
-        ]
+        }
       },
-      "CreateWorkflowDTO": {
+      "UpdateMakeToolDTO": {
         "type": "object",
         "properties": {
-          "nodes": {
+          "messages": {
             "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/Say",
-                  "title": "Say"
-                },
-                {
-                  "$ref": "#/components/schemas/Gather",
-                  "title": "Gather"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/ApiRequest",
-                  "title": "ApiRequest"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/Hangup",
-                  "title": "Hangup"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/Transfer",
-                  "title": "Transfer"
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
                 }
               ]
             }
           },
-          "model": {
-            "description": "These are the options for the workflow's LLM.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AnthropicModel",
-                "title": "Anthropic"
-              },
-              {
-                "$ref": "#/components/schemas/AnyscaleModel",
-                "title": "Anyscale"
-              },
-              {
-                "$ref": "#/components/schemas/CerebrasModel",
-                "title": "Cerebras"
-              },
-              {
-                "$ref": "#/components/schemas/CustomLLMModel",
-                "title": "CustomLLM"
-              },
-              {
-                "$ref": "#/components/schemas/DeepInfraModel",
-                "title": "DeepInfra"
-              },
-              {
-                "$ref": "#/components/schemas/DeepSeekModel",
-                "title": "DeepSeek"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleModel",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/GroqModel",
-                "title": "Groq"
-              },
-              {
-                "$ref": "#/components/schemas/InflectionAIModel",
-                "title": "InflectionAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIModel",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenRouterModel",
-                "title": "OpenRouter"
-              },
-              {
-                "$ref": "#/components/schemas/PerplexityAIModel",
-                "title": "PerplexityAI"
-              },
-              {
-                "$ref": "#/components/schemas/TogetherAIModel",
-                "title": "Together"
-              },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/XaiModel",
-                "title": "XAI"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           },
-          "name": {
-            "type": "string",
-            "maxLength": 80
-          },
-          "edges": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Edge"
-            }
+          "metadata": {
+            "$ref": "#/components/schemas/MakeToolMetadata"
           }
-        },
-        "required": [
-          "nodes",
-          "name",
-          "edges"
-        ]
+        }
       },
-      "ChatCompletionsDTO": {
+      "UpdateHandoffToolDTO": {
         "type": "object",
         "properties": {
           "messages": {
             "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "$ref": "#/components/schemas/ChatCompletionMessageWorkflows"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
             }
           },
-          "workflowId": {
-            "type": "string"
+          "defaultResult": {
+            "type": "string",
+            "description": "This is the default local tool result message used when no runtime handoff result override is returned."
           },
-          "workflow": {
-            "$ref": "#/components/schemas/CreateWorkflowDTO"
-          }
-        },
-        "required": [
-          "messages"
-        ]
-      },
-      "Assistant": {
-        "type": "object",
-        "properties": {
-          "transcriber": {
-            "description": "These are the options for the assistant's transcriber.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AssemblyAITranscriber",
-                "title": "AssemblyAI"
-              },
-              {
-                "$ref": "#/components/schemas/AzureSpeechTranscriber",
-                "title": "Azure"
-              },
-              {
-                "$ref": "#/components/schemas/CustomTranscriber",
-                "title": "CustomTranscriber"
-              },
-              {
-                "$ref": "#/components/schemas/DeepgramTranscriber",
-                "title": "Deepgram"
-              },
-              {
-                "$ref": "#/components/schemas/ElevenLabsTranscriber",
-                "title": "ElevenLabs"
-              },
-              {
-                "$ref": "#/components/schemas/GladiaTranscriber",
-                "title": "Gladia"
-              },
-              {
-                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
-                "title": "Speechmatics"
-              },
-              {
-                "$ref": "#/components/schemas/TalkscriberTranscriber",
-                "title": "Talkscriber"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleTranscriber",
-                "title": "Google"
-              },
+          "destinations": {
+            "type": "array",
+            "description": "These are the destinations that the call can be handed off to.\n\nUsage:\n1. Single destination\n\nUse `assistantId` to handoff the call to a saved assistant, or `assistantName` to handoff the call to an assistant in the same squad.\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\", // or \"assistantName\": \"Assistant123\"\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n2. Multiple destinations\n\n2.1. Multiple Tools, Each With One Destination (OpenAI recommended)\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n      ],\n    },\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n2.2. One Tool, Multiple Destinations (Anthropic recommended)\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n3. Dynamic destination\n\n3.1 To determine the destination dynamically, supply a `dynamic` handoff destination type and a `server` object.\n    VAPI will send a handoff-destination-request webhook to the `server.url`.\n    The response from the server will be used as the destination (if valid).\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"dynamic\",\n          \"server\": {\n            \"url\": \"https://example.com\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\n3.2. To pass custom parameters to the server, you can use the `function` object.\n\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"dynamic\",\n          \"server\": {\n            \"url\": \"https://example.com\"\n          },\n        }\n      ],\n      \"function\": {\n        \"name\": \"handoff\",\n        \"description\": \"Call this function when the customer is ready to be handed off to the next assistant\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"destination\": {\n              \"type\": \"string\",\n              \"description\": \"Use dynamic when customer is ready to be handed off to the next assistant\",\n              \"enum\": [\"dynamic\"]\n            },\n            \"customerAreaCode\": {\n              \"type\": \"number\",\n              \"description\": \"Area code of the customer\"\n            },\n            \"customerIntent\": {\n              \"type\": \"string\",\n              \"enum\": [\"new-customer\", \"existing-customer\"],\n              \"description\": \"Use new-customer when customer is a new customer, existing-customer when customer is an existing customer\"\n            },\n            \"customerSentiment\": {\n              \"type\": \"string\",\n              \"enum\": [\"positive\", \"negative\", \"neutral\"],\n              \"description\": \"Use positive when customer is happy, negative when customer is unhappy, neutral when customer is neutral\"\n            }\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\nThe properties `customerAreaCode`, `customerIntent`, and `customerSentiment` will be passed to the server in the webhook request body.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationAssistant",
+                  "title": "Assistant"
+                },
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationDynamic",
+                  "title": "Dynamic"
+                },
+                {
+                  "$ref": "#/components/schemas/HandoffDestinationSquad",
+                  "title": "Squad"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAITranscriber",
-                "title": "OpenAI"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           },
-          "model": {
-            "description": "These are the options for the assistant's LLM.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AnyscaleModel",
-                "title": "Anyscale"
-              },
-              {
-                "$ref": "#/components/schemas/AnthropicModel",
-                "title": "Anthropic"
-              },
-              {
-                "$ref": "#/components/schemas/CerebrasModel",
-                "title": "Cerebras"
-              },
-              {
-                "$ref": "#/components/schemas/CustomLLMModel",
-                "title": "CustomLLM"
-              },
-              {
-                "$ref": "#/components/schemas/DeepInfraModel",
-                "title": "DeepInfra"
-              },
-              {
-                "$ref": "#/components/schemas/DeepSeekModel",
-                "title": "DeepSeek"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleModel",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/GroqModel",
-                "title": "Groq"
-              },
-              {
-                "$ref": "#/components/schemas/InflectionAIModel",
-                "title": "InflectionAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIModel",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenRouterModel",
-                "title": "OpenRouter"
-              },
-              {
-                "$ref": "#/components/schemas/PerplexityAIModel",
-                "title": "PerplexityAI"
-              },
-              {
-                "$ref": "#/components/schemas/TogetherAIModel",
-                "title": "Together"
-              },
-              {
-                "$ref": "#/components/schemas/VapiModel",
-                "title": "Vapi"
-              },
+          "function": {
+            "description": "This is the optional function definition that will be passed to the LLM.\nIf this is not defined, we will construct this based on the other properties.\n\nFor example, given the following tools definition:\n```json\n{\n  \"tools\": [\n    {\n      \"type\": \"handoff\",\n      \"destinations\": [\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-123\",\n          \"description\": \"customer wants to be handed off to assistant-123\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        },\n        {\n          \"type\": \"assistant\",\n          \"assistantId\": \"assistant-456\",\n          \"description\": \"customer wants to be handed off to assistant-456\",\n          \"contextEngineeringPlan\": {\n            \"type\": \"all\"\n          }\n        }\n      ],\n    }\n  ]\n}\n```\n\nWe will construct the following function definition:\n```json\n{\n  \"function\": {\n    \"name\": \"handoff_to_assistant-123\",\n    \"description\": \"\n         Use this function to handoff the call to the next assistant.\n         Only use it when instructions explicitly ask you to use the handoff_to_assistant function.\n         DO NOT call this function unless you are instructed to do so.\n         Here are the destinations you can handoff the call to:\n         1. assistant-123. When: customer wants to be handed off to assistant-123\n         2. assistant-456. When: customer wants to be handed off to assistant-456\n    \",\n    \"parameters\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"destination\": {\n          \"type\": \"string\",\n          \"description\": \"Options: assistant-123 (customer wants to be handed off to assistant-123), assistant-456 (customer wants to be handed off to assistant-456)\",\n          \"enum\": [\"assistant-123\", \"assistant-456\"]\n        },\n      },\n      \"required\": [\"destination\"]\n    }\n  }\n}\n```\n\nTo override this function, please provide an OpenAI function definition and refer to it in the system prompt.\nYou may override parts of the function definition (i.e. you may only want to change the function name for your prompt).\nIf you choose to override the function parameters, it must include `destination` as a required parameter, and it must evaluate to either an assistantId, assistantName, or a the string literal `dynamic`.\n\nTo pass custom parameters to the server in a dynamic handoff, you can use the function parameters, with `dynamic` as the destination.\n```json\n{\n  \"function\": {\n    \"name\": \"dynamic_handoff\",\n    \"description\": \"\n         Call this function when the customer is ready to be handed off to the next assistant\n    \",\n    \"parameters\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"destination\": {\n          \"type\": \"string\",\n          \"enum\": [\"dynamic\"]\n        },\n        \"customerAreaCode\": {\n          \"type\": \"number\",\n          \"description\": \"Area code of the customer\"\n        },\n        \"customerIntent\": {\n          \"type\": \"string\",\n          \"enum\": [\"new-customer\", \"existing-customer\"],\n          \"description\": \"Use new-customer when customer is a new customer, existing-customer when customer is an existing customer\"\n        },\n        \"customerSentiment\": {\n          \"type\": \"string\",\n          \"enum\": [\"positive\", \"negative\", \"neutral\"],\n          \"description\": \"Use positive when customer is happy, negative when customer is unhappy, neutral when customer is neutral\"\n        }\n      },\n      \"required\": [\"destination\", \"customerAreaCode\", \"customerIntent\", \"customerSentiment\"]\n    }\n  }\n}\n```",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/XaiModel",
-                "title": "XAI"
+                "$ref": "#/components/schemas/OpenAIFunction"
               }
             ]
-          },
-          "voice": {
-            "description": "These are the options for the assistant's voice.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AzureVoice",
-                "title": "Azure"
-              },
-              {
-                "$ref": "#/components/schemas/CartesiaVoice",
-                "title": "Cartesia"
-              },
-              {
-                "$ref": "#/components/schemas/CustomVoice",
-                "title": "CustomVoice"
-              },
-              {
-                "$ref": "#/components/schemas/DeepgramVoice",
-                "title": "Deepgram"
-              },
-              {
-                "$ref": "#/components/schemas/ElevenLabsVoice",
-                "title": "ElevenLabs"
-              },
-              {
-                "$ref": "#/components/schemas/HumeVoice",
-                "title": "Hume"
-              },
-              {
-                "$ref": "#/components/schemas/LMNTVoice",
-                "title": "LMNT"
-              },
-              {
-                "$ref": "#/components/schemas/NeuphonicVoice",
-                "title": "Neuphonic"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIVoice",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/PlayHTVoice",
-                "title": "PlayHT"
-              },
-              {
-                "$ref": "#/components/schemas/RimeAIVoice",
-                "title": "RimeAI"
-              },
-              {
-                "$ref": "#/components/schemas/SmallestAIVoice",
-                "title": "SmallestAI"
-              },
-              {
-                "$ref": "#/components/schemas/TavusVoice",
-                "title": "TavusVoice"
-              },
+          }
+        }
+      },
+      "UpdateTransferCallToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "destinations": {
+            "type": "array",
+            "description": "These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TransferDestinationAssistant",
+                  "title": "Assistant"
+                },
+                {
+                  "$ref": "#/components/schemas/TransferDestinationNumber",
+                  "title": "Number"
+                },
+                {
+                  "$ref": "#/components/schemas/TransferDestinationSip",
+                  "title": "Sip"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/VapiVoice",
-                "title": "Vapi"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
-            ],
-            "default": {
-              "provider": "playht",
-              "voiceId": "jennifer"
+            ]
+          }
+        }
+      },
+      "UpdateOutputToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
             }
           },
-          "firstMessage": {
-            "type": "string",
-            "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
-            "example": "Hello! How can I help you today?"
-          },
-          "firstMessageInterruptionsEnabled": {
-            "type": "boolean",
-            "default": false
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateBashToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "firstMessageMode": {
+          "subType": {
             "type": "string",
-            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'",
             "enum": [
-              "assistant-speaks-first",
-              "assistant-speaks-first-with-model-generated-message",
-              "assistant-waits-for-user"
+              "bash_20241022"
             ],
-            "example": "assistant-speaks-first"
+            "description": "The sub type of tool."
           },
-          "voicemailDetection": {
-            "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nThis uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached.\nYou can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
-                "title": "Google"
-              },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
-                "title": "OpenAI"
-              },
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
-                "title": "Twilio"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           },
-          "clientMessages": {
-            "type": "array",
+          "name": {
+            "type": "string",
+            "description": "The name of the tool, fixed to 'bash'",
+            "default": "bash",
             "enum": [
-              "conversation-update",
-              "function-call",
-              "function-call-result",
-              "hang",
-              "language-changed",
-              "metadata",
-              "model-output",
-              "speech-update",
-              "status-update",
-              "transcript",
-              "tool-calls",
-              "tool-calls-result",
-              "transfer-update",
-              "user-interrupted",
-              "voice-input",
-              "workflow.node.started"
-            ],
-            "example": [
-              "conversation-update",
-              "function-call",
-              "hang",
-              "model-output",
-              "speech-update",
-              "status-update",
-              "transfer-update",
-              "transcript",
-              "tool-calls",
-              "user-interrupted",
-              "voice-input",
-              "workflow.node.started"
-            ],
-            "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema.",
+              "bash"
+            ]
+          }
+        }
+      },
+      "UpdateComputerToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "type": "string",
-              "enum": [
-                "conversation-update",
-                "function-call",
-                "function-call-result",
-                "hang",
-                "language-changed",
-                "metadata",
-                "model-output",
-                "speech-update",
-                "status-update",
-                "transcript",
-                "tool-calls",
-                "tool-calls-result",
-                "transfer-update",
-                "user-interrupted",
-                "voice-input",
-                "workflow.node.started"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
               ]
             }
           },
-          "serverMessages": {
-            "type": "array",
+          "subType": {
+            "type": "string",
             "enum": [
-              "conversation-update",
-              "end-of-call-report",
-              "function-call",
-              "hang",
-              "language-changed",
-              "language-change-detected",
-              "model-output",
-              "phone-call-control",
-              "speech-update",
-              "status-update",
-              "transcript",
-              "transcript[transcriptType=\"final\"]",
-              "tool-calls",
-              "transfer-destination-request",
-              "transfer-update",
-              "user-interrupted",
-              "voice-input"
-            ],
-            "example": [
-              "conversation-update",
-              "end-of-call-report",
-              "function-call",
-              "hang",
-              "speech-update",
-              "status-update",
-              "tool-calls",
-              "transfer-destination-request",
-              "user-interrupted"
+              "computer_20241022"
             ],
-            "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema.",
-            "items": {
-              "type": "string",
-              "enum": [
-                "conversation-update",
-                "end-of-call-report",
-                "function-call",
-                "hang",
-                "language-changed",
-                "language-change-detected",
-                "model-output",
-                "phone-call-control",
-                "speech-update",
-                "status-update",
-                "transcript",
-                "transcript[transcriptType=\"final\"]",
-                "tool-calls",
-                "transfer-destination-request",
-                "transfer-update",
-                "user-interrupted",
-                "voice-input"
-              ]
-            }
-          },
-          "silenceTimeoutSeconds": {
-            "type": "number",
-            "description": "How many seconds of silence to wait before ending the call. Defaults to 30.\n\n@default 30",
-            "minimum": 10,
-            "maximum": 3600,
-            "example": 30
-          },
-          "maxDurationSeconds": {
-            "type": "number",
-            "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)",
-            "minimum": 10,
-            "maximum": 43200,
-            "example": 600
+            "description": "The sub type of tool."
           },
-          "backgroundSound": {
-            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
-            "maxLength": 1000,
-            "oneOf": [
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
               {
-                "type": "enum",
-                "enum": [
-                  "off",
-                  "office"
-                ],
-                "example": "office"
-              },
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
               {
-                "type": "string",
-                "format": "uri",
-                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           },
-          "backgroundDenoisingEnabled": {
-            "type": "boolean",
-            "description": "This enables filtering of noise and background speech while the user is talking.\n\nDefault `false` while in beta.\n\n@default false",
-            "example": false
+          "name": {
+            "type": "string",
+            "description": "The name of the tool, fixed to 'computer'",
+            "default": "computer",
+            "enum": [
+              "computer"
+            ]
           },
-          "modelOutputInMessagesEnabled": {
-            "type": "boolean",
-            "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\nDefault `false` while in beta.\n\n@default false",
-            "example": false
+          "displayWidthPx": {
+            "type": "number",
+            "description": "The display width in pixels"
           },
-          "transportConfigurations": {
+          "displayHeightPx": {
+            "type": "number",
+            "description": "The display height in pixels"
+          },
+          "displayNumber": {
+            "type": "number",
+            "description": "Optional display number"
+          }
+        }
+      },
+      "UpdateTextEditorToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
             "type": "array",
-            "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/TransportConfigurationTwilio",
-                  "title": "Twilio"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
                 }
               ]
             }
           },
-          "observabilityPlan": {
-            "description": "This is the plan for observability configuration of assistant's calls.\nCurrently supports Langfuse for tracing and monitoring.",
-            "oneOf": [
+          "subType": {
+            "type": "string",
+            "enum": [
+              "text_editor_20241022"
+            ],
+            "description": "The sub type of tool."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
-                "title": "Langfuse"
+                "$ref": "#/components/schemas/Server"
               }
-            ],
+            ]
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           },
-          "credentials": {
+          "name": {
+            "type": "string",
+            "description": "The name of the tool, fixed to 'str_replace_editor'",
+            "default": "str_replace_editor",
+            "enum": [
+              "str_replace_editor"
+            ]
+          }
+        }
+      },
+      "UpdateQueryToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
             "type": "array",
-            "description": "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.",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
-                  "title": "AnthropicCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
-                  "title": "AnyscaleCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
-                  "title": "AssemblyAICredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
-                  "title": "AzureCredential"
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "knowledgeBases": {
+            "description": "The knowledge bases to query",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/KnowledgeBase"
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateGoogleCalendarCreateEventToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
-                  "title": "AzureOpenAICredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
-                  "title": "ByoSipTrunkCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
-                  "title": "CartesiaCredential"
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateGoogleSheetsRowAppendToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
-                  "title": "CerebrasCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
-                  "title": "CloudflareCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
-                  "title": "CustomLLMCredential"
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateGoogleCalendarCheckAvailabilityToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
-                  "title": "DeepgramCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
-                  "title": "DeepInfraCredential"
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateSlackSendMessageToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
-                  "title": "DeepSeekCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
-                  "title": "ElevenLabsCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
-                  "title": "GcpCredential"
-                },
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateSmsToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
-                  "title": "GladiaCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
-                  "title": "GhlCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
-                  "title": "GoogleCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
-                  "title": "GroqCredential"
-                },
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateMcpToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
-                  "title": "HumeCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
-                  "title": "InflectionAICredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
-                  "title": "LangfuseCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
-                  "title": "LmntCredential"
-                },
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "toolMessages": {
+            "description": "Per-tool message overrides for individual tools loaded from the MCP server. Set messages to an empty array to suppress messages for a specific tool. Tools not listed here will use the default messages from the parent tool.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/McpToolMessages"
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/McpToolMetadata"
+          }
+        }
+      },
+      "UpdateGoHighLevelCalendarAvailabilityToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
-                  "title": "MakeCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
-                  "title": "MistralCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
-                  "title": "NeuphonicCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
-                  "title": "OpenAICredential"
-                },
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateGoHighLevelCalendarEventCreateToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
-                  "title": "OpenRouterCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
-                  "title": "PerplexityAICredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
-                  "title": "PlayHTCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
-                  "title": "RimeAICredential"
-                },
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateGoHighLevelContactCreateToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
-                  "title": "RunpodCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
-                  "title": "S3Credential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
-                  "title": "SmallestAICredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
-                  "title": "SpeechmaticsCredential"
-                },
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateGoHighLevelContactGetToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
-                  "title": "SupabaseCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
-                  "title": "TavusCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
-                  "title": "TogetherAICredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateTrieveCredentialDTO",
-                  "title": "TrieveCredential"
-                },
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateSipRequestToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
-                  "title": "TwilioCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
-                  "title": "VonageCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
-                  "title": "WebhookCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
-                  "title": "XAiCredential"
-                },
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "verb": {
+            "type": "string",
+            "enum": [
+              "INFO",
+              "MESSAGE",
+              "NOTIFY"
+            ],
+            "description": "The SIP method to send."
+          },
+          "headers": {
+            "description": "JSON schema for headers the model should populate when sending the SIP request.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
+            ]
+          },
+          "body": {
+            "description": "Body to include in the SIP request. Either a literal string body, or a JSON schema describing a structured body that the model should populate.",
+            "oneOf": [
+              {
+                "type": "string"
+              },
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
+            ]
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateVoicemailToolDTO": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
                 {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
-                  "title": "GoogleCalendarOAuth2ClientCredential"
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
-                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
-                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
                 },
                 {
-                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
-                  "title": "SlackOAuth2AuthorizationCredential"
-                }
-              ],
-              "discriminator": {
-                "propertyName": "provider",
-                "mapping": {
-                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
-                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
-                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
-                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
-                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
-                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
-                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
-                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
-                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
-                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
-                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
-                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
-                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
-                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
-                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
-                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
-                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
-                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
-                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
-                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
-                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
-                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
-                  "make": "#/components/schemas/CreateMakeCredentialDTO",
-                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
-                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
-                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
-                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
-                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
-                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
-                  "s3": "#/components/schemas/CreateS3CredentialDTO",
-                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
-                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
-                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
-                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
-                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
-                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
-                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
-                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
-                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
-                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
-                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
-                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
-                  "trieve": "#/components/schemas/CreateTrieveCredentialDTO",
-                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
-                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
-                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
-                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO"
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
                 }
+              ]
+            }
+          },
+          "beepDetectionEnabled": {
+            "type": "boolean",
+            "description": "This is the flag that enables beep detection for voicemail detection and applies only for twilio based calls.\n\n@default false",
+            "default": false,
+            "example": false
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        }
+      },
+      "CreateFileDTO": {
+        "type": "object",
+        "properties": {
+          "file": {
+            "type": "string",
+            "description": "This is the File you want to upload for use with the Knowledge Base.",
+            "format": "binary"
+          }
+        },
+        "required": [
+          "file"
+        ]
+      },
+      "File": {
+        "type": "object",
+        "properties": {
+          "object": {
+            "type": "string",
+            "enum": [
+              "file"
+            ]
+          },
+          "status": {
+            "enum": [
+              "processing",
+              "done",
+              "failed"
+            ],
+            "type": "string"
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the file. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "originalName": {
+            "type": "string"
+          },
+          "bytes": {
+            "type": "number"
+          },
+          "purpose": {
+            "type": "string"
+          },
+          "mimetype": {
+            "type": "string"
+          },
+          "key": {
+            "type": "string"
+          },
+          "path": {
+            "type": "string"
+          },
+          "bucket": {
+            "type": "string"
+          },
+          "url": {
+            "type": "string"
+          },
+          "parsedTextUrl": {
+            "type": "string"
+          },
+          "parsedTextBytes": {
+            "type": "number"
+          },
+          "metadata": {
+            "type": "object"
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the file."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this file belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the file was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the file was last updated."
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "UpdateFileDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the file. This is just for your own reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "CustomKnowledgeBase": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This knowledge base is bring your own knowledge base implementation.",
+            "enum": [
+              "custom-knowledge-base"
+            ]
+          },
+          "server": {
+            "description": "This is where the knowledge base request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"messsage\": {\n    \"type\": \"knowledge-base-request\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Why is ocean blue?\"\n      }\n    ],\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected:\n```\n{\n  \"message\": {\n     \"role\": \"assistant\",\n     \"content\": \"The ocean is blue because water absorbs everything but blue.\",\n  }, // YOU CAN RETURN THE EXACT RESPONSE TO SPEAK\n  \"documents\": [\n    {\n      \"content\": \"The ocean is blue primarily because water absorbs colors in the red part of the light spectrum and scatters the blue light, making it more visible to our eyes.\",\n      \"similarity\": 1\n    },\n    {\n      \"content\": \"Blue light is scattered more by the water molecules than other colors, enhancing the blue appearance of the ocean.\",\n      \"similarity\": .5\n    }\n  ] // OR, YOU CAN RETURN AN ARRAY OF DOCUMENTS THAT WILL BE SENT TO THE MODEL\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
               }
-            }
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the id of the knowledge base."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the org id of the knowledge base."
+          }
+        },
+        "required": [
+          "provider",
+          "server",
+          "id",
+          "orgId"
+        ]
+      },
+      "UpdateCustomKnowledgeBaseDTO": {
+        "type": "object",
+        "properties": {
+          "server": {
+            "description": "This is where the knowledge base request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"messsage\": {\n    \"type\": \"knowledge-base-request\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Why is ocean blue?\"\n      }\n    ],\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected:\n```\n{\n  \"message\": {\n     \"role\": \"assistant\",\n     \"content\": \"The ocean is blue because water absorbs everything but blue.\",\n  }, // YOU CAN RETURN THE EXACT RESPONSE TO SPEAK\n  \"documents\": [\n    {\n      \"content\": \"The ocean is blue primarily because water absorbs colors in the red part of the light spectrum and scatters the blue light, making it more visible to our eyes.\",\n      \"similarity\": 1\n    },\n    {\n      \"content\": \"Blue light is scattered more by the water molecules than other colors, enhancing the blue appearance of the ocean.\",\n      \"similarity\": .5\n    }\n  ] // OR, YOU CAN RETURN AN ARRAY OF DOCUMENTS THAT WILL BE SENT TO THE MODEL\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          }
+        }
+      },
+      "StructuredOutput": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of structured output.\n\n- 'ai': Uses an LLM to extract structured data from the conversation (default).\n- 'regex': Uses a regex pattern to extract data from the transcript without an LLM.",
+            "enum": [
+              "ai",
+              "regex"
+            ]
+          },
+          "regex": {
+            "type": "string",
+            "description": "This is the regex pattern to match against the transcript.\n\nOnly used when type is 'regex'. Supports both raw patterns (e.g. '\\d+') and\nregex literal format (e.g. '/\\d+/gi'). Uses RE2 syntax for safety.\n\nThe result depends on the schema type:\n- boolean: true if the pattern matches, false otherwise\n- string: the first match or first capture group\n- number/integer: the first match parsed as a number\n- array: all matches",
+            "minLength": 1,
+            "maxLength": 1000
+          },
+          "model": {
+            "description": "This is the model that will be used to extract the structured output.\n\nTo provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages.\nBetween the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history.\nBetween the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition.\ni.e.:\n`{{structuredOutput}}`\n`{{structuredOutput.name}}`\n`{{structuredOutput.description}}`\n`{{structuredOutput.schema}}`\n\nIf model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts.\nIf messages or required fields are not specified, the default system and user prompts will be used.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOpenAIModel",
+                "title": "WorkflowOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicModel",
+                "title": "WorkflowAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel",
+                "title": "WorkflowAnthropicBedrockModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowGoogleModel",
+                "title": "WorkflowGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowCustomModel",
+                "title": "WorkflowCustomModel"
+              }
+            ]
+          },
+          "compliancePlan": {
+            "description": "Compliance configuration for this output. Only enable overrides if no sensitive data will be stored.",
+            "example": {
+              "forceStoreOnHipaaEnabled": false
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ComplianceOverride"
+              }
+            ]
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the structured output."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this structured output belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the structured output was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the structured output was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.",
+            "description": "This is the name of the structured output.",
+            "minLength": 1,
             "maxLength": 40
           },
-          "voicemailMessage": {
+          "description": {
             "type": "string",
-            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
-            "maxLength": 1000
+            "description": "This is the description of what the structured output extracts.\n\nUse this to provide context about what data will be extracted and how it will be used."
           },
-          "endCallMessage": {
+          "assistantIds": {
+            "description": "These are the assistant IDs that this structured output is linked to.\n\nWhen linked to assistants, this structured output will be available for extraction during those assistant's calls.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "workflowIds": {
+            "description": "These are the workflow IDs that this structured output is linked to.\n\nWhen linked to workflows, this structured output will be available for extraction during those workflow's execution.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "schema": {
+            "description": "This is the JSON Schema definition for the structured output.\n\nDefines the structure and validation rules for the data that will be extracted. Supports all JSON Schema features including:\n- Objects and nested properties\n- Arrays and array validation\n- String, number, boolean, and null types\n- Enums and const values\n- Validation constraints (min/max, patterns, etc.)\n- Composition with allOf, anyOf, oneOf",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
+            ]
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "name",
+          "schema"
+        ]
+      },
+      "StructuredOutputPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/StructuredOutput"
+            }
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "UpdateStructuredOutputDTO": {
+        "type": "object",
+        "properties": {
+          "type": {
             "type": "string",
-            "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.",
+            "description": "This is the type of structured output.\n\n- 'ai': Uses an LLM to extract structured data from the conversation (default).\n- 'regex': Uses a regex pattern to extract data from the transcript without an LLM.",
+            "enum": [
+              "ai",
+              "regex"
+            ]
+          },
+          "regex": {
+            "type": "string",
+            "description": "This is the regex pattern to match against the transcript.\n\nOnly used when type is 'regex'. Supports both raw patterns (e.g. '\\d+') and\nregex literal format (e.g. '/\\d+/gi'). Uses RE2 syntax for safety.\n\nThe result depends on the schema type:\n- boolean: true if the pattern matches, false otherwise\n- string: the first match or first capture group\n- number/integer: the first match parsed as a number\n- array: all matches",
+            "minLength": 1,
             "maxLength": 1000
           },
-          "endCallPhrases": {
-            "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.",
+          "model": {
+            "description": "This is the model that will be used to extract the structured output.\n\nTo provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages.\nBetween the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history.\nBetween the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition.\ni.e.:\n`{{structuredOutput}}`\n`{{structuredOutput.name}}`\n`{{structuredOutput.description}}`\n`{{structuredOutput.schema}}`\n\nIf model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts.\nIf messages or required fields are not specified, the default system and user prompts will be used.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOpenAIModel",
+                "title": "WorkflowOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicModel",
+                "title": "WorkflowAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowAnthropicBedrockModel",
+                "title": "WorkflowAnthropicBedrockModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowGoogleModel",
+                "title": "WorkflowGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/WorkflowCustomModel",
+                "title": "WorkflowCustomModel"
+              }
+            ]
+          },
+          "compliancePlan": {
+            "description": "Compliance configuration for this output. Only enable overrides if no sensitive data will be stored.",
+            "example": {
+              "forceStoreOnHipaaEnabled": false
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ComplianceOverride"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the structured output.",
+            "minLength": 1,
+            "maxLength": 40
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of what the structured output extracts.\n\nUse this to provide context about what data will be extracted and how it will be used."
+          },
+          "assistantIds": {
+            "description": "These are the assistant IDs that this structured output is linked to.\n\nWhen linked to assistants, this structured output will be available for extraction during those assistant's calls.",
             "type": "array",
             "items": {
-              "type": "string",
-              "maxLength": 140,
-              "minLength": 2
+              "type": "string"
             }
           },
-          "compliancePlan": {
-            "$ref": "#/components/schemas/CompliancePlan"
+          "workflowIds": {
+            "description": "These are the workflow IDs that this structured output is linked to.\n\nWhen linked to workflows, this structured output will be available for extraction during those workflow's execution.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the assistant."
+          "schema": {
+            "description": "This is the JSON Schema definition for the structured output.\n\nDefines the structure and validation rules for the data that will be extracted. Supports all JSON Schema features including:\n- Objects and nested properties\n- Arrays and array validation\n- String, number, boolean, and null types\n- Enums and const values\n- Validation constraints (min/max, patterns, etc.)\n- Composition with allOf, anyOf, oneOf",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/JsonSchema"
+              }
+            ]
+          }
+        }
+      },
+      "StructuredOutputRunDTO": {
+        "type": "object",
+        "properties": {
+          "previewEnabled": {
+            "type": "boolean",
+            "description": "This is the preview flag for the re-run. If true, the re-run will be executed and the response will be returned immediately and the call artifact will NOT be updated.\nIf false (default), the re-run will be executed and the response will be updated in the call artifact.",
+            "default": false
           },
-          "analysisPlan": {
-            "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.",
+          "structuredOutputId": {
+            "type": "string",
+            "description": "This is the ID of the structured output that will be run. This must be provided unless a transient structured output is provided.\nWhen the re-run is executed, only the value of this structured output will be replaced with the new value, or added if not present."
+          },
+          "structuredOutput": {
+            "description": "This is the transient structured output that will be run. This must be provided if a structured output ID is not provided.\nWhen the re-run is executed, the structured output value will be added to the existing artifact.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/AnalysisPlan"
+                "$ref": "#/components/schemas/CreateStructuredOutputDTO"
               }
             ]
           },
-          "artifactPlan": {
-            "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.\n\nNote: `recordingEnabled` is currently at the root level. It will be moved to `artifactPlan` in the future, but will remain backwards compatible.",
+          "callIds": {
+            "description": "This is the array of callIds that will be updated with the new structured output value. If preview is true, this array must be provided and contain exactly 1 callId.\nIf preview is false, up to 100 callIds may be provided.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          }
+        },
+        "required": [
+          "callIds"
+        ]
+      },
+      "TesterPlan": {
+        "type": "object",
+        "properties": {
+          "assistant": {
+            "description": "Pass a transient assistant to use for the test assistant.\n\nMake sure to write a detailed system prompt for a test assistant, and use the {{test.script}} variable to access the test script.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ArtifactPlan"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
           },
-          "messagePlan": {
-            "description": "This is the plan for static predefined messages that can be spoken by the assistant during the call, like `idleMessages`.\n\nNote: `firstMessage`, `voicemailMessage`, and `endCallMessage` are currently at the root level. They will be moved to `messagePlan` in the future, but will remain backwards compatible.",
+          "assistantId": {
+            "type": "string",
+            "description": "Pass an assistant id that can be access\n\nMake sure to write a detailed system prompt for the test assistant, and use the {{test.script}} variable to access the test script."
+          },
+          "assistantOverrides": {
+            "description": "Add any assistant overrides to the test assistant.\n\nOne use case is if you want to pass custom variables into the test using variableValues, that you can then access in the script\nand rubric using {{varName}}.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/MessagePlan"
+                "$ref": "#/components/schemas/AssistantOverrides"
               }
             ]
+          }
+        }
+      },
+      "TestSuitePhoneNumber": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the phone number.",
+            "enum": [
+              "test-suite"
+            ]
           },
-          "startSpeakingPlan": {
-            "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
+          "number": {
+            "type": "string",
+            "description": "This is the phone number that is being tested.",
+            "maxLength": 50
+          }
+        },
+        "required": [
+          "provider",
+          "number"
+        ]
+      },
+      "TargetPlan": {
+        "type": "object",
+        "properties": {
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number that is being tested.\nDuring the actual test, it'll be called and the assistant attached to it will pick up and be tested.\nTo test an assistant directly, send assistantId instead."
+          },
+          "phoneNumber": {
+            "description": "This can be any phone number (even not on Vapi).\nDuring the actual test, it'll be called.\nTo test a Vapi number, send phoneNumberId. To test an assistant directly, send assistantId instead.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/StartSpeakingPlan"
+                "$ref": "#/components/schemas/TestSuitePhoneNumber"
               }
             ]
           },
-          "stopSpeakingPlan": {
-            "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+          "assistantId": {
+            "type": "string",
+            "description": "This is the assistant being tested.\nDuring the actual test, it'll invoked directly.\nTo test the assistant over phone number, send phoneNumberId instead."
+          },
+          "assistantOverrides": {
+            "description": "This is the assistant overrides applied to assistantId before it is tested.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/StopSpeakingPlan"
+                "$ref": "#/components/schemas/AssistantOverrides"
               }
             ]
+          }
+        }
+      },
+      "TestSuite": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the test suite."
           },
-          "monitorPlan": {
-            "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n\nNote, `serverMessages`, `clientMessages`, `serverUrl` and `serverUrlSecret` are currently at the root level but will be moved to `monitorPlan` in the future. Will remain backwards compatible",
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this test suite belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the test suite was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the test suite was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test suite.",
+            "maxLength": 80
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number ID associated with this test suite.",
+            "deprecated": true
+          },
+          "testerPlan": {
+            "description": "Override the default tester plan by providing custom assistant configuration for the test agent.\n\nWe recommend only using this if you are confident, as we have already set sensible defaults on the tester plan.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/MonitorPlan"
+                "$ref": "#/components/schemas/TesterPlan"
               }
             ]
           },
-          "credentialIds": {
-            "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+          "targetPlan": {
+            "description": "These are the configuration for the assistant / phone number that is being tested.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TargetPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "TestSuitesPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
             "type": "array",
             "items": {
-              "type": "string"
+              "$ref": "#/components/schemas/TestSuite"
             }
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl",
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "CreateTestSuiteDto": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test suite.",
+            "maxLength": 80
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number ID associated with this test suite.",
+            "deprecated": true
+          },
+          "testerPlan": {
+            "description": "Override the default tester plan by providing custom assistant configuration for the test agent.\n\nWe recommend only using this if you are confident, as we have already set sensible defaults on the tester plan.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/TesterPlan"
               }
             ]
           },
-          "hooks": {
-            "description": "This is a set of actions that will be performed on certain events.",
+          "targetPlan": {
+            "description": "These are the configuration for the assistant / phone number that is being tested.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TargetPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateTestSuiteDto": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test suite.",
+            "maxLength": 80
+          },
+          "phoneNumberId": {
+            "type": "string",
+            "description": "This is the phone number ID associated with this test suite.",
+            "deprecated": true
+          },
+          "testerPlan": {
+            "description": "Override the default tester plan by providing custom assistant configuration for the test agent.\n\nWe recommend only using this if you are confident, as we have already set sensible defaults on the tester plan.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TesterPlan"
+              }
+            ]
+          },
+          "targetPlan": {
+            "description": "These are the configuration for the assistant / phone number that is being tested.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TargetPlan"
+              }
+            ]
+          }
+        }
+      },
+      "TestSuiteTestVoice": {
+        "type": "object",
+        "properties": {
+          "scorers": {
             "type": "array",
+            "description": "These are the scorers used to evaluate the test.",
             "items": {
-              "$ref": "#/components/schemas/AssistantHooks"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
+                  "title": "AI"
+                }
+              ]
             }
           },
-          "keypadInputPlan": {
-            "$ref": "#/components/schemas/KeypadInputPlan"
+          "type": {
+            "type": "string",
+            "description": "This is the type of the test, which must be voice.",
+            "enum": [
+              "voice"
+            ],
+            "maxLength": 100
           },
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the assistant."
+            "description": "This is the unique identifier for the test."
+          },
+          "testSuiteId": {
+            "type": "string",
+            "description": "This is the unique identifier for the test suite this test belongs to."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the organization this test belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the test was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the test was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test.",
+            "maxLength": 80
+          },
+          "script": {
+            "type": "string",
+            "description": "This is the script to be used for the voice test.",
+            "maxLength": 10000
+          },
+          "numAttempts": {
+            "type": "number",
+            "description": "This is the number of attempts allowed for the test.",
+            "minimum": 1,
+            "maximum": 10
+          }
+        },
+        "required": [
+          "scorers",
+          "type",
+          "id",
+          "testSuiteId",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "script"
+        ]
+      },
+      "TestSuiteTestChat": {
+        "type": "object",
+        "properties": {
+          "scorers": {
+            "type": "array",
+            "description": "These are the scorers used to evaluate the test.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
+                  "title": "AI"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the test, which must be chat.",
+            "enum": [
+              "chat"
+            ],
+            "maxLength": 100
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the test."
+          },
+          "testSuiteId": {
+            "type": "string",
+            "description": "This is the unique identifier for the test suite this test belongs to."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this assistant belongs to."
+            "description": "This is the unique identifier for the organization this test belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was created."
+            "description": "This is the ISO 8601 date-time string of when the test was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is the ISO 8601 date-time string of when the test was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test.",
+            "maxLength": 80
+          },
+          "script": {
+            "type": "string",
+            "description": "This is the script to be used for the chat test.",
+            "maxLength": 10000
+          },
+          "numAttempts": {
+            "type": "number",
+            "description": "This is the number of attempts allowed for the test.",
+            "minimum": 1,
+            "maximum": 10
           }
         },
         "required": [
+          "scorers",
+          "type",
           "id",
+          "testSuiteId",
           "orgId",
           "createdAt",
-          "updatedAt"
+          "updatedAt",
+          "script"
         ]
       },
-      "AssistantPaginatedResponse": {
+      "CreateTestSuiteTestVoiceDto": {
         "type": "object",
         "properties": {
-          "results": {
+          "scorers": {
             "type": "array",
+            "description": "These are the scorers used to evaluate the test.",
             "items": {
-              "$ref": "#/components/schemas/Assistant"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
+                  "title": "AI"
+                }
+              ]
             }
           },
-          "metadata": {
-            "$ref": "#/components/schemas/PaginationMeta"
+          "type": {
+            "type": "string",
+            "description": "This is the type of the test, which must be voice.",
+            "enum": [
+              "voice"
+            ],
+            "maxLength": 100
+          },
+          "script": {
+            "type": "string",
+            "description": "This is the script to be used for the voice test.",
+            "maxLength": 10000
+          },
+          "numAttempts": {
+            "type": "number",
+            "description": "This is the number of attempts allowed for the test.",
+            "minimum": 1,
+            "maximum": 10
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test.",
+            "maxLength": 80
           }
         },
         "required": [
-          "results",
-          "metadata"
+          "scorers",
+          "type",
+          "script"
         ]
       },
-      "UpdateAssistantDTO": {
+      "CreateTestSuiteTestChatDto": {
         "type": "object",
         "properties": {
-          "transcriber": {
-            "description": "These are the options for the assistant's transcriber.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AssemblyAITranscriber",
-                "title": "AssemblyAI"
-              },
-              {
-                "$ref": "#/components/schemas/AzureSpeechTranscriber",
-                "title": "Azure"
-              },
-              {
-                "$ref": "#/components/schemas/CustomTranscriber",
-                "title": "CustomTranscriber"
-              },
-              {
-                "$ref": "#/components/schemas/DeepgramTranscriber",
-                "title": "Deepgram"
-              },
-              {
-                "$ref": "#/components/schemas/ElevenLabsTranscriber",
-                "title": "ElevenLabs"
-              },
-              {
-                "$ref": "#/components/schemas/GladiaTranscriber",
-                "title": "Gladia"
-              },
-              {
-                "$ref": "#/components/schemas/SpeechmaticsTranscriber",
-                "title": "Speechmatics"
-              },
-              {
-                "$ref": "#/components/schemas/TalkscriberTranscriber",
-                "title": "Talkscriber"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleTranscriber",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAITranscriber",
-                "title": "OpenAI"
-              }
-            ]
-          },
-          "model": {
-            "description": "These are the options for the assistant's LLM.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AnyscaleModel",
-                "title": "Anyscale"
-              },
-              {
-                "$ref": "#/components/schemas/AnthropicModel",
-                "title": "Anthropic"
-              },
-              {
-                "$ref": "#/components/schemas/CerebrasModel",
-                "title": "Cerebras"
-              },
-              {
-                "$ref": "#/components/schemas/CustomLLMModel",
-                "title": "CustomLLM"
-              },
-              {
-                "$ref": "#/components/schemas/DeepInfraModel",
-                "title": "DeepInfra"
-              },
-              {
-                "$ref": "#/components/schemas/DeepSeekModel",
-                "title": "DeepSeek"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleModel",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/GroqModel",
-                "title": "Groq"
-              },
-              {
-                "$ref": "#/components/schemas/InflectionAIModel",
-                "title": "InflectionAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIModel",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenRouterModel",
-                "title": "OpenRouter"
-              },
-              {
-                "$ref": "#/components/schemas/PerplexityAIModel",
-                "title": "PerplexityAI"
-              },
-              {
-                "$ref": "#/components/schemas/TogetherAIModel",
-                "title": "Together"
-              },
-              {
-                "$ref": "#/components/schemas/VapiModel",
-                "title": "Vapi"
-              },
-              {
-                "$ref": "#/components/schemas/XaiModel",
-                "title": "XAI"
-              }
-            ]
+          "scorers": {
+            "type": "array",
+            "description": "These are the scorers used to evaluate the test.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
+                  "title": "AI"
+                }
+              ]
+            }
           },
-          "voice": {
-            "description": "These are the options for the assistant's voice.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AzureVoice",
-                "title": "Azure"
-              },
-              {
-                "$ref": "#/components/schemas/CartesiaVoice",
-                "title": "Cartesia"
-              },
-              {
-                "$ref": "#/components/schemas/CustomVoice",
-                "title": "CustomVoice"
-              },
-              {
-                "$ref": "#/components/schemas/DeepgramVoice",
-                "title": "Deepgram"
-              },
-              {
-                "$ref": "#/components/schemas/ElevenLabsVoice",
-                "title": "ElevenLabs"
-              },
-              {
-                "$ref": "#/components/schemas/HumeVoice",
-                "title": "Hume"
-              },
-              {
-                "$ref": "#/components/schemas/LMNTVoice",
-                "title": "LMNT"
-              },
-              {
-                "$ref": "#/components/schemas/NeuphonicVoice",
-                "title": "Neuphonic"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIVoice",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/PlayHTVoice",
-                "title": "PlayHT"
-              },
-              {
-                "$ref": "#/components/schemas/RimeAIVoice",
-                "title": "RimeAI"
-              },
-              {
-                "$ref": "#/components/schemas/SmallestAIVoice",
-                "title": "SmallestAI"
-              },
-              {
-                "$ref": "#/components/schemas/TavusVoice",
-                "title": "TavusVoice"
-              },
-              {
-                "$ref": "#/components/schemas/VapiVoice",
-                "title": "Vapi"
-              }
+          "type": {
+            "type": "string",
+            "description": "This is the type of the test, which must be chat.",
+            "enum": [
+              "chat"
             ],
-            "default": {
-              "provider": "playht",
-              "voiceId": "jennifer"
-            }
+            "maxLength": 100
           },
-          "firstMessage": {
+          "script": {
             "type": "string",
-            "description": "This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.",
-            "example": "Hello! How can I help you today?"
+            "description": "This is the script to be used for the chat test.",
+            "maxLength": 10000
           },
-          "firstMessageInterruptionsEnabled": {
-            "type": "boolean",
-            "default": false
+          "numAttempts": {
+            "type": "number",
+            "description": "This is the number of attempts allowed for the test.",
+            "minimum": 1,
+            "maximum": 10
           },
-          "firstMessageMode": {
+          "name": {
             "type": "string",
-            "description": "This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'",
+            "description": "This is the name of the test.",
+            "maxLength": 80
+          }
+        },
+        "required": [
+          "scorers",
+          "type",
+          "script"
+        ]
+      },
+      "UpdateTestSuiteTestVoiceDto": {
+        "type": "object",
+        "properties": {
+          "scorers": {
+            "type": "array",
+            "description": "These are the scorers used to evaluate the test.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
+                  "title": "AI"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the test, which must be voice.",
             "enum": [
-              "assistant-speaks-first",
-              "assistant-speaks-first-with-model-generated-message",
-              "assistant-waits-for-user"
+              "voice"
             ],
-            "example": "assistant-speaks-first"
+            "maxLength": 100
           },
-          "voicemailDetection": {
-            "description": "These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nThis uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached.\nYou can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/GoogleVoicemailDetectionPlan",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIVoicemailDetectionPlan",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/TwilioVoicemailDetectionPlan",
-                "title": "Twilio"
-              }
-            ]
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test.",
+            "maxLength": 80
           },
-          "clientMessages": {
+          "script": {
+            "type": "string",
+            "description": "This is the script to be used for the voice test.",
+            "maxLength": 10000
+          },
+          "numAttempts": {
+            "type": "number",
+            "description": "This is the number of attempts allowed for the test.",
+            "minimum": 1,
+            "maximum": 10
+          }
+        }
+      },
+      "UpdateTestSuiteTestChatDto": {
+        "type": "object",
+        "properties": {
+          "scorers": {
             "type": "array",
-            "enum": [
-              "conversation-update",
-              "function-call",
-              "function-call-result",
-              "hang",
-              "language-changed",
-              "metadata",
-              "model-output",
-              "speech-update",
-              "status-update",
-              "transcript",
-              "tool-calls",
-              "tool-calls-result",
-              "transfer-update",
-              "user-interrupted",
-              "voice-input",
-              "workflow.node.started"
-            ],
-            "example": [
-              "conversation-update",
-              "function-call",
-              "hang",
-              "model-output",
-              "speech-update",
-              "status-update",
-              "transfer-update",
-              "transcript",
-              "tool-calls",
-              "user-interrupted",
-              "voice-input",
-              "workflow.node.started"
-            ],
-            "description": "These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema.",
+            "description": "These are the scorers used to evaluate the test.",
             "items": {
-              "type": "string",
-              "enum": [
-                "conversation-update",
-                "function-call",
-                "function-call-result",
-                "hang",
-                "language-changed",
-                "metadata",
-                "model-output",
-                "speech-update",
-                "status-update",
-                "transcript",
-                "tool-calls",
-                "tool-calls-result",
-                "transfer-update",
-                "user-interrupted",
-                "voice-input",
-                "workflow.node.started"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
+                  "title": "AI"
+                }
               ]
             }
           },
-          "serverMessages": {
-            "type": "array",
+          "type": {
+            "type": "string",
+            "description": "This is the type of the test, which must be chat.",
             "enum": [
-              "conversation-update",
-              "end-of-call-report",
-              "function-call",
-              "hang",
-              "language-changed",
-              "language-change-detected",
-              "model-output",
-              "phone-call-control",
-              "speech-update",
-              "status-update",
-              "transcript",
-              "transcript[transcriptType=\"final\"]",
-              "tool-calls",
-              "transfer-destination-request",
-              "transfer-update",
-              "user-interrupted",
-              "voice-input"
-            ],
-            "example": [
-              "conversation-update",
-              "end-of-call-report",
-              "function-call",
-              "hang",
-              "speech-update",
-              "status-update",
-              "tool-calls",
-              "transfer-destination-request",
-              "user-interrupted"
+              "chat"
             ],
-            "description": "These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema.",
-            "items": {
-              "type": "string",
-              "enum": [
-                "conversation-update",
-                "end-of-call-report",
-                "function-call",
-                "hang",
-                "language-changed",
-                "language-change-detected",
-                "model-output",
-                "phone-call-control",
-                "speech-update",
-                "status-update",
-                "transcript",
-                "transcript[transcriptType=\"final\"]",
-                "tool-calls",
-                "transfer-destination-request",
-                "transfer-update",
-                "user-interrupted",
-                "voice-input"
-              ]
-            }
+            "maxLength": 100
           },
-          "silenceTimeoutSeconds": {
-            "type": "number",
-            "description": "How many seconds of silence to wait before ending the call. Defaults to 30.\n\n@default 30",
-            "minimum": 10,
-            "maximum": 3600,
-            "example": 30
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test.",
+            "maxLength": 80
           },
-          "maxDurationSeconds": {
+          "script": {
+            "type": "string",
+            "description": "This is the script to be used for the chat test.",
+            "maxLength": 10000
+          },
+          "numAttempts": {
             "type": "number",
-            "description": "This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)",
-            "minimum": 10,
-            "maximum": 43200,
-            "example": 600
+            "description": "This is the number of attempts allowed for the test.",
+            "minimum": 1,
+            "maximum": 10
+          }
+        }
+      },
+      "TestSuiteTestScorerAI": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of the scorer, which must be AI.",
+            "enum": [
+              "ai"
+            ],
+            "maxLength": 100
           },
-          "backgroundSound": {
-            "description": "This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.",
-            "maxLength": 1000,
-            "oneOf": [
-              {
-                "type": "enum",
-                "enum": [
-                  "off",
-                  "office"
-                ],
-                "example": "office"
-              },
+          "rubric": {
+            "type": "string",
+            "description": "This is the rubric used by the AI scorer.",
+            "maxLength": 10000
+          }
+        },
+        "required": [
+          "type",
+          "rubric"
+        ]
+      },
+      "TestSuiteTestsPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "description": "A list of test suite tests.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/TestSuiteTestVoice"
+                },
+                {
+                  "$ref": "#/components/schemas/TestSuiteTestChat"
+                }
+              ]
+            }
+          },
+          "metadata": {
+            "description": "Metadata about the pagination.",
+            "allOf": [
               {
-                "type": "string",
-                "format": "uri",
-                "example": "https://www.soundjay.com/ambient/sounds/people-in-lounge-1.mp3"
+                "$ref": "#/components/schemas/PaginationMeta"
               }
             ]
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "TestSuiteRunScorerAI": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of the scorer, which must be AI.",
+            "enum": [
+              "ai"
+            ],
+            "maxLength": 100
           },
-          "backgroundDenoisingEnabled": {
-            "type": "boolean",
-            "description": "This enables filtering of noise and background speech while the user is talking.\n\nDefault `false` while in beta.\n\n@default false",
-            "example": false
+          "result": {
+            "type": "string",
+            "description": "This is the result of the test suite.",
+            "enum": [
+              "pass",
+              "fail"
+            ],
+            "maxLength": 100
           },
-          "modelOutputInMessagesEnabled": {
-            "type": "boolean",
-            "description": "This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\nDefault `false` while in beta.\n\n@default false",
-            "example": false
+          "reasoning": {
+            "type": "string",
+            "description": "This is the reasoning provided by the AI scorer.",
+            "maxLength": 10000
           },
-          "transportConfigurations": {
+          "rubric": {
+            "type": "string",
+            "description": "This is the rubric used by the AI scorer.",
+            "maxLength": 10000
+          }
+        },
+        "required": [
+          "type",
+          "result",
+          "reasoning",
+          "rubric"
+        ]
+      },
+      "TestSuiteRunTestAttemptCall": {
+        "type": "object",
+        "properties": {
+          "artifact": {
+            "description": "This is the artifact of the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          }
+        },
+        "required": [
+          "artifact"
+        ]
+      },
+      "TestSuiteRunTestAttemptMetadata": {
+        "type": "object",
+        "properties": {
+          "sessionId": {
+            "type": "string",
+            "description": "This is the session ID for the test attempt."
+          }
+        },
+        "required": [
+          "sessionId"
+        ]
+      },
+      "TestSuiteRunTestAttempt": {
+        "type": "object",
+        "properties": {
+          "scorerResults": {
             "type": "array",
-            "description": "These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.",
+            "description": "These are the results of the scorers used to evaluate the test attempt.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/TransportConfigurationTwilio",
-                  "title": "Twilio"
+                  "$ref": "#/components/schemas/TestSuiteRunScorerAI",
+                  "title": "AI"
                 }
               ]
             }
           },
-          "observabilityPlan": {
-            "description": "This is the plan for observability configuration of assistant's calls.\nCurrently supports Langfuse for tracing and monitoring.",
-            "oneOf": [
+          "call": {
+            "description": "This is the call made during the test attempt.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/LangfuseObservabilityPlan",
-                "title": "Langfuse"
+                "$ref": "#/components/schemas/TestSuiteRunTestAttemptCall"
               }
-            ],
+            ]
+          },
+          "callId": {
+            "type": "string",
+            "description": "This is the call ID for the test attempt."
+          },
+          "metadata": {
+            "description": "This is the metadata for the test attempt.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/LangfuseObservabilityPlan"
+                "$ref": "#/components/schemas/TestSuiteRunTestAttemptMetadata"
+              }
+            ]
+          }
+        },
+        "required": [
+          "scorerResults"
+        ]
+      },
+      "TestSuiteRunTestResult": {
+        "type": "object",
+        "properties": {
+          "test": {
+            "description": "This is the test that was run.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TestSuiteTestVoice",
+                "title": "TestSuiteTestVoice"
               }
             ]
           },
-          "credentials": {
+          "attempts": {
+            "description": "These are the attempts made for this test.",
             "type": "array",
-            "description": "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.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/CreateAnthropicCredentialDTO",
-                  "title": "AnthropicCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateAnyscaleCredentialDTO",
-                  "title": "AnyscaleCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateAssemblyAICredentialDTO",
-                  "title": "AssemblyAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateAzureCredentialDTO",
-                  "title": "AzureCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateAzureOpenAICredentialDTO",
-                  "title": "AzureOpenAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
-                  "title": "ByoSipTrunkCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateCartesiaCredentialDTO",
-                  "title": "CartesiaCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateCerebrasCredentialDTO",
-                  "title": "CerebrasCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateCloudflareCredentialDTO",
-                  "title": "CloudflareCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateCustomLLMCredentialDTO",
-                  "title": "CustomLLMCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateDeepgramCredentialDTO",
-                  "title": "DeepgramCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateDeepInfraCredentialDTO",
-                  "title": "DeepInfraCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateDeepSeekCredentialDTO",
-                  "title": "DeepSeekCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateElevenLabsCredentialDTO",
-                  "title": "ElevenLabsCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGcpCredentialDTO",
-                  "title": "GcpCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGladiaCredentialDTO",
-                  "title": "GladiaCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoHighLevelCredentialDTO",
-                  "title": "GhlCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCredentialDTO",
-                  "title": "GoogleCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGroqCredentialDTO",
-                  "title": "GroqCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateHumeCredentialDTO",
-                  "title": "HumeCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateInflectionAICredentialDTO",
-                  "title": "InflectionAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateLangfuseCredentialDTO",
-                  "title": "LangfuseCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateLmntCredentialDTO",
-                  "title": "LmntCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMakeCredentialDTO",
-                  "title": "MakeCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateMistralCredentialDTO",
-                  "title": "MistralCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateNeuphonicCredentialDTO",
-                  "title": "NeuphonicCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateOpenAICredentialDTO",
-                  "title": "OpenAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateOpenRouterCredentialDTO",
-                  "title": "OpenRouterCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreatePerplexityAICredentialDTO",
-                  "title": "PerplexityAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreatePlayHTCredentialDTO",
-                  "title": "PlayHTCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateRimeAICredentialDTO",
-                  "title": "RimeAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateRunpodCredentialDTO",
-                  "title": "RunpodCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateS3CredentialDTO",
-                  "title": "S3Credential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSmallestAICredentialDTO",
-                  "title": "SmallestAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
-                  "title": "SpeechmaticsCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSupabaseCredentialDTO",
-                  "title": "SupabaseCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTavusCredentialDTO",
-                  "title": "TavusCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTogetherAICredentialDTO",
-                  "title": "TogetherAICredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTrieveCredentialDTO",
-                  "title": "TrieveCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateTwilioCredentialDTO",
-                  "title": "TwilioCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateVonageCredentialDTO",
-                  "title": "VonageCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateWebhookCredentialDTO",
-                  "title": "WebhookCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateXAiCredentialDTO",
-                  "title": "XAiCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
-                  "title": "GoogleCalendarOAuth2ClientCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
-                  "title": "GoogleCalendarOAuth2AuthorizationCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
-                  "title": "GoogleSheetsOAuth2AuthorizationCredential"
-                },
-                {
-                  "$ref": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO",
-                  "title": "SlackOAuth2AuthorizationCredential"
-                }
-              ],
-              "discriminator": {
-                "propertyName": "provider",
-                "mapping": {
-                  "11labs": "#/components/schemas/CreateElevenLabsCredentialDTO",
-                  "anthropic": "#/components/schemas/CreateAnthropicCredentialDTO",
-                  "anyscale": "#/components/schemas/CreateAnyscaleCredentialDTO",
-                  "assembly-ai": "#/components/schemas/CreateAssemblyAICredentialDTO",
-                  "azure-openai": "#/components/schemas/CreateAzureOpenAICredentialDTO",
-                  "azure": "#/components/schemas/CreateAzureCredentialDTO",
-                  "byo-sip-trunk": "#/components/schemas/CreateByoSipTrunkCredentialDTO",
-                  "cartesia": "#/components/schemas/CreateCartesiaCredentialDTO",
-                  "cerebras": "#/components/schemas/CreateCerebrasCredentialDTO",
-                  "cloudflare": "#/components/schemas/CreateCloudflareCredentialDTO",
-                  "custom-llm": "#/components/schemas/CreateCustomLLMCredentialDTO",
-                  "deepgram": "#/components/schemas/CreateDeepgramCredentialDTO",
-                  "deepinfra": "#/components/schemas/CreateDeepInfraCredentialDTO",
-                  "deep-seek": "#/components/schemas/CreateDeepSeekCredentialDTO",
-                  "gcp": "#/components/schemas/CreateGcpCredentialDTO",
-                  "gladia": "#/components/schemas/CreateGladiaCredentialDTO",
-                  "gohighlevel": "#/components/schemas/CreateGoHighLevelCredentialDTO",
-                  "google": "#/components/schemas/CreateGoogleCredentialDTO",
-                  "groq": "#/components/schemas/CreateGroqCredentialDTO",
-                  "inflection-ai": "#/components/schemas/CreateInflectionAICredentialDTO",
-                  "langfuse": "#/components/schemas/CreateLangfuseCredentialDTO",
-                  "lmnt": "#/components/schemas/CreateLmntCredentialDTO",
-                  "make": "#/components/schemas/CreateMakeCredentialDTO",
-                  "openai": "#/components/schemas/CreateOpenAICredentialDTO",
-                  "openrouter": "#/components/schemas/CreateOpenRouterCredentialDTO",
-                  "perplexity-ai": "#/components/schemas/CreatePerplexityAICredentialDTO",
-                  "playht": "#/components/schemas/CreatePlayHTCredentialDTO",
-                  "rime-ai": "#/components/schemas/CreateRimeAICredentialDTO",
-                  "runpod": "#/components/schemas/CreateRunpodCredentialDTO",
-                  "s3": "#/components/schemas/CreateS3CredentialDTO",
-                  "supabase": "#/components/schemas/CreateSupabaseCredentialDTO",
-                  "smallest-ai": "#/components/schemas/CreateSmallestAICredentialDTO",
-                  "tavus": "#/components/schemas/CreateTavusCredentialDTO",
-                  "together-ai": "#/components/schemas/CreateTogetherAICredentialDTO",
-                  "twilio": "#/components/schemas/CreateTwilioCredentialDTO",
-                  "vonage": "#/components/schemas/CreateVonageCredentialDTO",
-                  "webhook": "#/components/schemas/CreateWebhookCredentialDTO",
-                  "xai": "#/components/schemas/CreateXAiCredentialDTO",
-                  "neuphonic": "#/components/schemas/CreateNeuphonicCredentialDTO",
-                  "hume": "#/components/schemas/CreateHumeCredentialDTO",
-                  "mistral": "#/components/schemas/CreateMistralCredentialDTO",
-                  "speechmatics": "#/components/schemas/CreateSpeechmaticsCredentialDTO",
-                  "trieve": "#/components/schemas/CreateTrieveCredentialDTO",
-                  "google.calendar.oauth2-client": "#/components/schemas/CreateGoogleCalendarOAuth2ClientCredentialDTO",
-                  "google.calendar.oauth2-authorization": "#/components/schemas/CreateGoogleCalendarOAuth2AuthorizationCredentialDTO",
-                  "google.sheets.oauth2-authorization": "#/components/schemas/CreateGoogleSheetsOAuth2AuthorizationCredentialDTO",
-                  "slack.oauth2-authorization": "#/components/schemas/CreateSlackOAuth2AuthorizationCredentialDTO"
-                }
-              }
+              "$ref": "#/components/schemas/TestSuiteRunTestAttempt"
             }
+          }
+        },
+        "required": [
+          "test",
+          "attempts"
+        ]
+      },
+      "TestSuiteRun": {
+        "type": "object",
+        "properties": {
+          "status": {
+            "type": "string",
+            "description": "This is the current status of the test suite run.",
+            "enum": [
+              "queued",
+              "in-progress",
+              "completed",
+              "failed"
+            ]
           },
-          "name": {
+          "id": {
             "type": "string",
-            "description": "This is the name of the assistant.\n\nThis is required when you want to transfer between assistants in a call.",
-            "maxLength": 40
+            "description": "This is the unique identifier for the test suite run."
           },
-          "voicemailMessage": {
+          "orgId": {
             "type": "string",
-            "description": "This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.",
-            "maxLength": 1000
+            "description": "This is the unique identifier for the organization this run belongs to."
           },
-          "endCallMessage": {
+          "testSuiteId": {
             "type": "string",
-            "description": "This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.",
-            "maxLength": 1000
+            "description": "This is the unique identifier for the test suite this run belongs to."
           },
-          "endCallPhrases": {
-            "description": "This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.",
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the test suite run was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the test suite run was last updated."
+          },
+          "testResults": {
+            "description": "These are the results of the tests in this test suite run.",
             "type": "array",
             "items": {
-              "type": "string",
-              "maxLength": 140,
-              "minLength": 2
+              "$ref": "#/components/schemas/TestSuiteRunTestResult"
+            }
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test suite run.",
+            "maxLength": 80
+          }
+        },
+        "required": [
+          "status",
+          "id",
+          "orgId",
+          "testSuiteId",
+          "createdAt",
+          "updatedAt",
+          "testResults"
+        ]
+      },
+      "TestSuiteRunsPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/TestSuiteRun"
             }
           },
-          "compliancePlan": {
-            "$ref": "#/components/schemas/CompliancePlan"
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "CreateTestSuiteRunDto": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test suite run.",
+            "maxLength": 80
+          }
+        }
+      },
+      "UpdateTestSuiteRunDto": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the test suite run.",
+            "maxLength": 80
+          }
+        }
+      },
+      "CreatePersonalityDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the personality (e.g., \"Confused Carl\", \"Rude Rob\").",
+            "maxLength": 80
+          },
+          "assistant": {
+            "description": "This is the full assistant configuration for this personality.\nIt defines the tester's voice, model, behavior via system prompt, and other settings.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "path": {
+            "type": "string",
+            "nullable": true,
+            "description": "Optional folder path for organizing personalities.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nMaps to GitOps resource folder structure.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
+          }
+        },
+        "required": [
+          "name",
+          "assistant"
+        ]
+      },
+      "Personality": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the personality.",
+            "format": "uuid"
+          },
+          "orgId": {
+            "type": "string",
+            "nullable": true,
+            "description": "This is the unique identifier for the organization this personality belongs to.\nIf null, this is a Vapi-provided default personality available to all organizations.",
+            "format": "uuid"
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the personality was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the personality was last updated."
           },
-          "metadata": {
-            "type": "object",
-            "description": "This is for metadata you want to store on the assistant."
+          "name": {
+            "type": "string",
+            "description": "This is the name of the personality (e.g., \"Confused Carl\", \"Rude Rob\").",
+            "maxLength": 80
           },
-          "analysisPlan": {
-            "description": "This is the plan for analysis of assistant's calls. Stored in `call.analysis`.",
+          "assistant": {
+            "description": "This is the full assistant configuration for this personality.\nIt defines the tester's voice, model, behavior via system prompt, and other settings.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/AnalysisPlan"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
           },
-          "artifactPlan": {
-            "description": "This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.\n\nNote: `recordingEnabled` is currently at the root level. It will be moved to `artifactPlan` in the future, but will remain backwards compatible.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/ArtifactPlan"
-              }
-            ]
+          "path": {
+            "type": "string",
+            "nullable": true,
+            "description": "Optional folder path for organizing personalities.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nMaps to GitOps resource folder structure.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "name",
+          "assistant"
+        ]
+      },
+      "UpdatePersonalityDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the personality.",
+            "maxLength": 80
           },
-          "messagePlan": {
-            "description": "This is the plan for static predefined messages that can be spoken by the assistant during the call, like `idleMessages`.\n\nNote: `firstMessage`, `voicemailMessage`, and `endCallMessage` are currently at the root level. They will be moved to `messagePlan` in the future, but will remain backwards compatible.",
+          "assistant": {
+            "description": "This is the full assistant configuration for this personality.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/MessagePlan"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
           },
-          "startSpeakingPlan": {
-            "description": "This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/StartSpeakingPlan"
-              }
+          "path": {
+            "type": "string",
+            "nullable": true,
+            "description": "Optional folder path for organizing personalities.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nSet to null to remove from folder.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
+          }
+        }
+      },
+      "SimulationHookInclude": {
+        "type": "object",
+        "properties": {
+          "transcript": {
+            "type": "boolean",
+            "description": "Include transcript in the hook payload",
+            "default": false
+          },
+          "messages": {
+            "type": "boolean",
+            "description": "Include messages in the hook payload",
+            "default": false
+          },
+          "recordingUrl": {
+            "type": "boolean",
+            "description": "Include recordingUrl in the hook payload",
+            "default": false
+          }
+        }
+      },
+      "SimulationHookWebhookAction": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "webhook"
             ]
           },
-          "stopSpeakingPlan": {
-            "description": "This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.",
+          "server": {
+            "description": "Optional server override for this hook action.\nIf omitted, runtime defaults may apply (e.g. org server).",
             "allOf": [
               {
-                "$ref": "#/components/schemas/StopSpeakingPlan"
+                "$ref": "#/components/schemas/Server"
               }
             ]
           },
-          "monitorPlan": {
-            "description": "This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n\nNote, `serverMessages`, `clientMessages`, `serverUrl` and `serverUrlSecret` are currently at the root level but will be moved to `monitorPlan` in the future. Will remain backwards compatible",
+          "include": {
+            "description": "Optional payload include controls.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/MonitorPlan"
+                "$ref": "#/components/schemas/SimulationHookInclude"
               }
             ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "SimulationHookCallStarted": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "enum": [
+              "simulation.run.started"
+            ],
+            "maxLength": 1000
           },
-          "credentialIds": {
-            "description": "These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.",
+          "do": {
             "type": "array",
             "items": {
-              "type": "string"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SimulationHookWebhookAction",
+                  "title": "SimulationHookWebhookAction"
+                }
+              ]
             }
+          }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
+      },
+      "SimulationHookCallEnded": {
+        "type": "object",
+        "properties": {
+          "on": {
+            "type": "string",
+            "enum": [
+              "simulation.run.ended"
+            ],
+            "maxLength": 1000
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server.url\n2. phoneNumber.serverUrl\n3. org.serverUrl",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          },
-          "hooks": {
-            "description": "This is a set of actions that will be performed on certain events.",
+          "do": {
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/AssistantHooks"
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SimulationHookWebhookAction",
+                  "title": "SimulationHookWebhookAction"
+                }
+              ]
             }
-          },
-          "keypadInputPlan": {
-            "$ref": "#/components/schemas/KeypadInputPlan"
           }
-        }
+        },
+        "required": [
+          "on",
+          "do"
+        ]
       },
-      "ByoPhoneNumber": {
+      "EvaluationPlanItem": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+          "structuredOutputId": {
+            "type": "string",
+            "description": "This is the ID of an existing structured output to use for evaluation.\nMutually exclusive with structuredOutput.",
+            "format": "uuid"
+          },
+          "structuredOutput": {
+            "description": "This is an inline structured output definition for evaluation.\nMutually exclusive with structuredOutputId.\nOnly primitive schema types (string, number, integer, boolean) are allowed.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateStructuredOutputDTO"
+              }
+            ]
+          },
+          "comparator": {
+            "type": "string",
+            "description": "This is the comparison operator to use when evaluating the extracted value against the expected value.\nAvailable operators depend on the structured output's schema type:\n- boolean: '=', '!='\n- string: '=', '!='\n- number/integer: '=', '!=', '>', '<', '>=', '<='",
+            "enum": [
+              "=",
+              "!=",
+              ">",
+              "<",
+              ">=",
+              "<="
+            ],
+            "example": "="
+          },
+          "value": {
+            "description": "This is the expected value to compare against the extracted structured output result.\nType should match the structured output's schema type.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
+                "type": "number"
               },
               {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
+                "type": "string"
+              },
+              {
+                "type": "boolean"
               }
             ]
           },
+          "required": {
+            "type": "boolean",
+            "description": "This is whether this evaluation must pass for the simulation to pass.\nDefaults to true. If false, the result is informational only.",
+            "default": true
+          }
+        },
+        "required": [
+          "comparator",
+          "value"
+        ]
+      },
+      "ScenarioToolMock": {
+        "type": "object",
+        "properties": {
+          "toolName": {
+            "type": "string",
+            "description": "This is the tool call function name to mock (must match `toolCall.function.name`)."
+          },
+          "result": {
+            "type": "string",
+            "description": "This is the result content to return for this tool call."
+          },
+          "enabled": {
+            "type": "boolean",
+            "description": "This is whether this mock is enabled. Defaults to true when omitted.",
+            "default": true
+          }
+        },
+        "required": [
+          "toolName"
+        ]
+      },
+      "CreateScenarioDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the scenario.",
+            "maxLength": 80,
+            "example": "Health Enrollment - Eligible Path"
+          },
+          "instructions": {
+            "type": "string",
+            "description": "This is the script/instructions for the tester to follow during the simulation.",
+            "maxLength": 10000,
+            "example": "You are calling to enroll in the Twin Health program. Confirm your identity when asked."
+          },
+          "evaluations": {
+            "description": "This is the structured output-based evaluation plan for the simulation.\nEach item defines a structured output to extract and evaluate against an expected value.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/EvaluationPlanItem"
+            }
+          },
           "hooks": {
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "description": "Hooks to run on simulation lifecycle events",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
+                  "$ref": "#/components/schemas/SimulationHookCallStarted",
+                  "title": "SimulationHookCallStarted"
+                },
+                {
+                  "$ref": "#/components/schemas/SimulationHookCallEnded",
+                  "title": "SimulationHookCallEnded"
                 }
               ]
             }
           },
-          "provider": {
-            "type": "string",
-            "description": "This is to bring your own phone numbers from your own SIP trunks or Carriers.",
-            "enum": [
-              "byo-phone-number"
+          "targetOverrides": {
+            "description": "Overrides to inject into the simulated target assistant or squad",
+            "example": {
+              "variableValues": {
+                "customerName": "Alice",
+                "orderId": "12345"
+              }
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
             ]
           },
-          "numberE164CheckEnabled": {
-            "type": "boolean",
-            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
-            "default": true
+          "toolMocks": {
+            "description": "Scenario-level tool call mocks to use during simulations.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ScenarioToolMock"
+            }
           },
+          "path": {
+            "type": "string",
+            "nullable": true,
+            "description": "Optional folder path for organizing scenarios.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nMaps to GitOps resource folder structure.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
+          }
+        },
+        "required": [
+          "name",
+          "instructions",
+          "evaluations"
+        ]
+      },
+      "Scenario": {
+        "type": "object",
+        "properties": {
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the phone number."
+            "description": "This is the unique identifier for the scenario.",
+            "format": "uuid"
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this phone number belongs to."
+            "description": "This is the unique identifier for the organization this scenario belongs to.",
+            "format": "uuid"
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+            "description": "This is the ISO 8601 date-time string of when the scenario was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
-          },
-          "status": {
-            "type": "string",
-            "description": "This is the status of the phone number.",
-            "enum": [
-              "active",
-              "activating",
-              "blocked"
-            ]
+            "description": "This is the ISO 8601 date-time string of when the scenario was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the name of the scenario.",
+            "maxLength": 80,
+            "example": "Health Enrollment - Eligible Path"
           },
-          "assistantId": {
+          "instructions": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the script/instructions for the tester to follow during the simulation.",
+            "maxLength": 10000,
+            "example": "You are calling to enroll in the Twin Health program. Confirm your identity when asked."
           },
-          "squadId": {
-            "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          "evaluations": {
+            "description": "This is the structured output-based evaluation plan for the simulation.\nEach item defines a structured output to extract and evaluate against an expected value.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/EvaluationPlanItem"
+            }
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+          "hooks": {
+            "type": "array",
+            "description": "Hooks to run on simulation lifecycle events",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SimulationHookCallStarted",
+                  "title": "SimulationHookCallStarted"
+                },
+                {
+                  "$ref": "#/components/schemas/SimulationHookCallEnded",
+                  "title": "SimulationHookCallEnded"
+                }
+              ]
+            }
+          },
+          "targetOverrides": {
+            "description": "Overrides to inject into the simulated target assistant or squad",
+            "example": {
+              "variableValues": {
+                "customerName": "Alice",
+                "orderId": "12345"
+              }
+            },
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/AssistantOverrides"
               }
             ]
           },
-          "number": {
-            "type": "string",
-            "description": "This is the number of the customer.",
-            "minLength": 3,
-            "maxLength": 40
+          "toolMocks": {
+            "description": "Scenario-level tool call mocks to use during simulations.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ScenarioToolMock"
+            }
           },
-          "credentialId": {
+          "path": {
             "type": "string",
-            "description": "This is the credential of your own SIP trunk or Carrier (type `byo-sip-trunk`) which can be used to make calls to this phone number.\n\nYou can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId."
+            "nullable": true,
+            "description": "Optional folder path for organizing scenarios.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nMaps to GitOps resource folder structure.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
           }
         },
         "required": [
-          "provider",
           "id",
           "orgId",
           "createdAt",
           "updatedAt",
-          "credentialId"
+          "name",
+          "instructions",
+          "evaluations"
         ]
       },
-      "TwilioPhoneNumber": {
+      "UpdateScenarioDTO": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
+          "name": {
+            "type": "string",
+            "description": "This is the name of the scenario.",
+            "maxLength": 80
+          },
+          "instructions": {
+            "type": "string",
+            "description": "This is the script/instructions for the tester to follow during the simulation.",
+            "maxLength": 10000
+          },
+          "evaluations": {
+            "description": "This is the structured output-based evaluation plan for the simulation.\nEach item defines a structured output to extract and evaluate against an expected value.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/EvaluationPlanItem"
+            }
           },
           "hooks": {
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "description": "Hooks to run on simulation lifecycle events",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
+                  "$ref": "#/components/schemas/SimulationHookCallStarted",
+                  "title": "SimulationHookCallStarted"
+                },
+                {
+                  "$ref": "#/components/schemas/SimulationHookCallEnded",
+                  "title": "SimulationHookCallEnded"
                 }
               ]
             }
           },
-          "provider": {
-            "type": "string",
-            "description": "This is to use numbers bought on Twilio.",
-            "enum": [
-              "twilio"
+          "targetOverrides": {
+            "description": "Overrides to inject into the simulated target assistant or squad",
+            "example": {
+              "variableValues": {
+                "customerName": "Alice",
+                "orderId": "12345"
+              }
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
             ]
           },
-          "id": {
+          "toolMocks": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ScenarioToolMock"
+            }
+          },
+          "path": {
             "type": "string",
-            "description": "This is the unique identifier for the phone number."
+            "nullable": true,
+            "description": "Optional folder path for organizing scenarios.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nSet to null to remove from folder.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
+          }
+        }
+      },
+      "SimulationRunSimulationEntry": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "enum": [
+              "simulation"
+            ],
+            "description": "Type discriminator"
           },
-          "orgId": {
+          "simulationId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this phone number belongs to."
+            "description": "ID of an existing simulation to run. When provided, scenarioId/personalityId/inline fields are ignored.",
+            "format": "uuid"
           },
-          "createdAt": {
-            "format": "date-time",
+          "scenarioId": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+            "description": "ID of an existing scenario. Cannot be combined with inline scenario.",
+            "format": "uuid"
           },
-          "updatedAt": {
-            "format": "date-time",
+          "scenario": {
+            "description": "Inline scenario configuration. Cannot be combined with scenarioId.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateScenarioDTO"
+              }
+            ]
+          },
+          "personalityId": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+            "description": "ID of an existing personality. Cannot be combined with inline personality.",
+            "format": "uuid"
           },
-          "status": {
+          "personality": {
+            "description": "Inline personality configuration. Cannot be combined with personalityId.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreatePersonalityDTO"
+              }
+            ]
+          },
+          "name": {
             "type": "string",
-            "description": "This is the status of the phone number.",
+            "maxLength": 80,
+            "description": "Optional name for this simulation entry"
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "SimulationRunSuiteEntry": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "Type discriminator",
             "enum": [
-              "active",
-              "activating",
-              "blocked"
+              "simulationSuite"
             ]
           },
-          "name": {
+          "simulationSuiteId": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "ID of the simulation suite to run",
+            "format": "uuid"
           },
-          "assistantId": {
+          "suiteId": {
+            "type": "string",
+            "deprecated": true
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "SimulationRunTargetAssistant": {
+        "type": "object",
+        "properties": {
+          "type": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "enum": [
+              "assistant"
+            ],
+            "description": "Type of target"
           },
-          "squadId": {
+          "assistantId": {
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "ID of an existing assistant to test against. Cannot be combined with inline assistant.",
+            "format": "uuid"
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+          "assistant": {
+            "description": "Inline assistant configuration to test against. Cannot be combined with assistantId.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
-          },
-          "number": {
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "SimulationRunTargetSquad": {
+        "type": "object",
+        "properties": {
+          "type": {
             "type": "string",
-            "description": "These are the digits of the phone number you own on your Twilio."
+            "enum": [
+              "squad"
+            ],
+            "description": "Type of target"
           },
-          "twilioAccountSid": {
+          "squadId": {
             "type": "string",
-            "description": "This is the Twilio Account SID for the phone number."
+            "description": "ID of an existing squad to test against. Cannot be combined with inline squad.",
+            "format": "uuid"
           },
-          "twilioAuthToken": {
-            "type": "string",
-            "description": "This is the Twilio Auth Token for the phone number."
+          "squad": {
+            "description": "Inline squad configuration to test against. Cannot be combined with squadId.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "number",
-          "twilioAccountSid",
-          "twilioAuthToken"
+          "type"
         ]
       },
-      "VonagePhoneNumber": {
+      "SimulationRunTransportConfiguration": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
+          "provider": {
+            "type": "string",
+            "description": "Transport provider for the simulation run",
+            "enum": [
+              "vapi.websocket",
+              "vapi.webchat"
             ]
-          },
-          "hooks": {
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "CreateSimulationRunDTO": {
+        "type": "object",
+        "properties": {
+          "simulations": {
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "description": "Array of simulations and/or suites to run",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
+                  "$ref": "#/components/schemas/SimulationRunSimulationEntry",
+                  "title": "Simulation"
+                },
+                {
+                  "$ref": "#/components/schemas/SimulationRunSuiteEntry",
+                  "title": "Suite"
                 }
               ]
             }
           },
-          "provider": {
-            "type": "string",
-            "description": "This is to use numbers bought on Vonage.",
-            "enum": [
-              "vonage"
+          "target": {
+            "description": "Target to test against",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunTargetAssistant",
+                "title": "Assistant"
+              },
+              {
+                "$ref": "#/components/schemas/SimulationRunTargetSquad",
+                "title": "Squad"
+              }
+            ]
+          },
+          "iterations": {
+            "type": "number",
+            "minimum": 1,
+            "description": "Number of times to run each simulation (default: 1)",
+            "default": 1
+          },
+          "transport": {
+            "description": "Transport configuration for the simulation runs",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunTransportConfiguration"
+              }
             ]
+          }
+        },
+        "required": [
+          "simulations",
+          "target"
+        ]
+      },
+      "SimulationRunItemCounts": {
+        "type": "object",
+        "properties": {
+          "total": {
+            "type": "number",
+            "description": "Total number of run items"
+          },
+          "passed": {
+            "type": "number",
+            "description": "Number of passed run items"
+          },
+          "failed": {
+            "type": "number",
+            "description": "Number of failed run items"
+          },
+          "running": {
+            "type": "number",
+            "description": "Number of running/evaluating run items"
+          },
+          "queued": {
+            "type": "number",
+            "description": "Number of queued run items"
           },
+          "canceled": {
+            "type": "number",
+            "description": "Number of canceled run items"
+          }
+        },
+        "required": [
+          "total",
+          "passed",
+          "failed",
+          "running",
+          "queued",
+          "canceled"
+        ]
+      },
+      "SimulationRun": {
+        "type": "object",
+        "properties": {
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the phone number."
+            "description": "Unique identifier for the run",
+            "format": "uuid"
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this phone number belongs to."
+            "description": "Organization ID",
+            "format": "uuid"
           },
-          "createdAt": {
+          "status": {
+            "type": "string",
+            "enum": [
+              "queued",
+              "running",
+              "ended"
+            ],
+            "description": "Current status of the run"
+          },
+          "queuedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+            "description": "When the run was queued"
           },
-          "updatedAt": {
+          "startedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+            "description": "When the run started"
           },
-          "status": {
+          "endedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the status of the phone number.",
-            "enum": [
-              "active",
-              "activating",
-              "blocked"
-            ]
+            "description": "When the run ended"
           },
-          "name": {
+          "endedReason": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "Reason the run ended"
           },
-          "assistantId": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "ISO 8601 date-time when created"
           },
-          "squadId": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "ISO 8601 date-time when last updated"
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+          "itemCounts": {
+            "description": "Aggregate counts of run items by status",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/SimulationRunItemCounts"
               }
             ]
           },
-          "number": {
-            "type": "string",
-            "description": "These are the digits of the phone number you own on your Vonage."
+          "simulations": {
+            "type": "array",
+            "description": "Array of simulations and/or suites to run",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/SimulationRunSimulationEntry",
+                  "title": "Simulation"
+                },
+                {
+                  "$ref": "#/components/schemas/SimulationRunSuiteEntry",
+                  "title": "Suite"
+                }
+              ]
+            }
           },
-          "credentialId": {
-            "type": "string",
-            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+          "target": {
+            "description": "Target to test against",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunTargetAssistant",
+                "title": "Assistant"
+              },
+              {
+                "$ref": "#/components/schemas/SimulationRunTargetSquad",
+                "title": "Squad"
+              }
+            ]
+          },
+          "iterations": {
+            "type": "number",
+            "minimum": 1,
+            "description": "Number of times to run each simulation (default: 1)",
+            "default": 1
+          },
+          "transport": {
+            "description": "Transport configuration for the simulation runs",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunTransportConfiguration"
+              }
+            ]
           }
         },
         "required": [
-          "provider",
           "id",
           "orgId",
+          "status",
+          "queuedAt",
           "createdAt",
           "updatedAt",
-          "number",
-          "credentialId"
+          "simulations",
+          "target"
         ]
       },
-      "SipAuthentication": {
+      "SimulationRunItemCallMonitor": {
         "type": "object",
         "properties": {
-          "realm": {
+          "listenUrl": {
             "type": "string",
-            "description": "This will be expected in the `realm` field of the `authorization` header of the SIP INVITE. Defaults to sip.vapi.ai."
-          },
-          "username": {
+            "description": "This is the WebSocket URL to listen to the live call audio (combined both parties)."
+          }
+        }
+      },
+      "SimulationRunItemCallMetadata": {
+        "type": "object",
+        "properties": {
+          "transcript": {
             "type": "string",
-            "description": "This will be expected in the `username` field of the `authorization` header of the SIP INVITE.",
-            "minLength": 20,
-            "maxLength": 40
+            "description": "This is the transcript of the conversation."
           },
-          "password": {
+          "messages": {
+            "type": "array",
+            "description": "This is the list of conversation messages in OpenAI format.",
+            "items": {
+              "type": "object"
+            }
+          },
+          "recordingUrl": {
             "type": "string",
-            "description": "This will be expected to generate the `response` field of the `authorization` header of the SIP INVITE, through digest authentication.",
-            "minLength": 20,
-            "maxLength": 40
+            "description": "This is the URL to the call recording."
+          },
+          "monitor": {
+            "description": "This is the call monitoring data (live listen URL).",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunItemCallMonitor"
+              }
+            ]
           }
-        },
-        "required": [
-          "username",
-          "password"
-        ]
+        }
       },
-      "VapiPhoneNumber": {
+      "SimulationRunItemMetadata": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
+          "assistant": {
+            "type": "object",
+            "description": "This is a snapshot of the assistant at run creation time.",
+            "additionalProperties": true
+          },
+          "squad": {
+            "type": "object",
+            "description": "This is a snapshot of the squad at run creation time.",
+            "additionalProperties": true
+          },
+          "scenario": {
+            "type": "object",
+            "description": "This is a snapshot of the scenario at run creation time.",
+            "additionalProperties": true
+          },
+          "personality": {
+            "type": "object",
+            "description": "This is a snapshot of the personality at run creation time.",
+            "additionalProperties": true
+          },
+          "simulation": {
+            "type": "object",
+            "description": "This is a snapshot of the simulation at run creation time.",
+            "additionalProperties": true
+          },
+          "call": {
+            "description": "This is the call-related data (transcript, messages, recording).",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunItemCallMetadata"
+              }
+            ]
+          },
+          "hooks": {
+            "type": "object",
+            "description": "Hook execution state for this run item (used for idempotency + debugging).",
+            "additionalProperties": true
+          }
+        }
+      },
+      "StructuredOutputEvaluationResult": {
+        "type": "object",
+        "properties": {
+          "structuredOutputId": {
+            "type": "string",
+            "description": "This is the ID of the structured output that was evaluated.\nWill be 'inline' for inline structured output definitions."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the structured output."
+          },
+          "extractedValue": {
+            "description": "This is the value extracted from the call by the structured output.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
+                "type": "number"
               },
               {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
+                "type": "string"
+              },
+              {
+                "type": "boolean"
+              },
+              {
+                "type": "null"
               }
             ]
           },
-          "hooks": {
-            "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
-            }
+          "expectedValue": {
+            "description": "This is the expected value that was defined in the evaluation plan.",
+            "oneOf": [
+              {
+                "type": "number"
+              },
+              {
+                "type": "string"
+              },
+              {
+                "type": "boolean"
+              }
+            ]
           },
-          "provider": {
+          "comparator": {
             "type": "string",
-            "description": "This is to create free SIP phone numbers on Vapi.",
+            "description": "This is the comparison operator used for evaluation.",
             "enum": [
-              "vapi"
+              "=",
+              "!=",
+              ">",
+              "<",
+              ">=",
+              "<="
             ]
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the phone number."
+          "passed": {
+            "type": "boolean",
+            "description": "This indicates whether the evaluation passed (extracted value matched expected value using comparator)."
           },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this phone number belongs to."
+          "required": {
+            "type": "boolean",
+            "description": "This indicates whether this evaluation was required for the simulation to pass."
           },
-          "createdAt": {
-            "format": "date-time",
+          "error": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+            "description": "This contains any error that occurred during extraction."
           },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+          "isSkipped": {
+            "type": "boolean",
+            "description": "This indicates whether this evaluation was skipped (e.g., multimodal in chat mode)."
           },
-          "status": {
+          "skipReason": {
             "type": "string",
-            "description": "This is the status of the phone number.",
-            "enum": [
-              "active",
-              "activating",
-              "blocked"
-            ]
+            "description": "This contains the reason for skipping the evaluation."
+          }
+        },
+        "required": [
+          "structuredOutputId",
+          "name",
+          "extractedValue",
+          "expectedValue",
+          "comparator",
+          "passed",
+          "required"
+        ]
+      },
+      "LatencyMetrics": {
+        "type": "object",
+        "properties": {
+          "turnCount": {
+            "type": "number",
+            "description": "This is the number of conversation turns."
           },
-          "number": {
-            "type": "string",
-            "description": "These are the digits of the phone number you purchased from Vapi."
+          "avgTurn": {
+            "type": "number",
+            "description": "This is the average total turn latency in milliseconds."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+          "avgTranscriber": {
+            "type": "number",
+            "description": "This is the average transcriber latency in milliseconds."
           },
-          "assistantId": {
-            "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          "avgModel": {
+            "type": "number",
+            "description": "This is the average LLM/model latency in milliseconds."
           },
-          "squadId": {
-            "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          "avgVoice": {
+            "type": "number",
+            "description": "This is the average voice/TTS latency in milliseconds."
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+          "avgEndpointing": {
+            "type": "number",
+            "description": "This is the average endpointing latency in milliseconds."
+          }
+        },
+        "required": [
+          "turnCount"
+        ]
+      },
+      "SimulationRunItemResults": {
+        "type": "object",
+        "properties": {
+          "evaluations": {
+            "description": "This is the list of results from structured output evaluations.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/StructuredOutputEvaluationResult"
+            }
+          },
+          "passed": {
+            "type": "boolean",
+            "description": "This indicates whether all required evaluations passed."
+          },
+          "latencyMetrics": {
+            "description": "This contains the latency metrics collected from the call.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/LatencyMetrics"
               }
             ]
-          },
-          "numberDesiredAreaCode": {
+          }
+        },
+        "required": [
+          "evaluations",
+          "passed"
+        ]
+      },
+      "SimulationRunItemImprovementSuggestion": {
+        "type": "object",
+        "properties": {
+          "issue": {
             "type": "string",
-            "description": "This is the area code of the phone number to purchase.",
-            "minLength": 3,
-            "maxLength": 3
+            "description": "This is the issue identified."
           },
-          "sipUri": {
+          "suggestion": {
             "type": "string",
-            "description": "This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer.\n\nThis is case-insensitive."
-          },
-          "authentication": {
-            "description": "This enables authentication for incoming SIP INVITE requests to the `sipUri`.\n\nIf not set, any username/password to the 401 challenge of the SIP INVITE will be accepted.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SipAuthentication"
-              }
-            ]
+            "description": "This is the suggested improvement."
           }
         },
         "required": [
-          "provider",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "issue",
+          "suggestion"
         ]
       },
-      "TelnyxPhoneNumber": {
+      "SimulationRunItemImprovements": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
+          "analysis": {
+            "type": "string",
+            "description": "This is a summary analysis of why evaluations failed."
           },
-          "hooks": {
+          "systemPromptSuggestions": {
+            "description": "This is the list of suggestions for improving the system prompt.",
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
+              "$ref": "#/components/schemas/SimulationRunItemImprovementSuggestion"
             }
           },
-          "provider": {
+          "toolSuggestions": {
+            "description": "This is the list of suggestions for improving tools.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SimulationRunItemImprovementSuggestion"
+            }
+          },
+          "scenarioSuggestions": {
+            "description": "This is the list of suggestions for improving the scenario/evaluation plan.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SimulationRunItemImprovementSuggestion"
+            }
+          },
+          "suggestedSystemPrompt": {
             "type": "string",
-            "description": "This is to use numbers bought on Telnyx.",
-            "enum": [
-              "telnyx"
+            "description": "This is a complete revised system prompt if major changes are needed."
+          }
+        },
+        "required": [
+          "analysis",
+          "systemPromptSuggestions",
+          "toolSuggestions",
+          "scenarioSuggestions"
+        ]
+      },
+      "SimulationRunConfiguration": {
+        "type": "object",
+        "properties": {
+          "transport": {
+            "description": "Transport configuration for the simulation run",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunTransportConfiguration"
+              }
             ]
-          },
+          }
+        }
+      },
+      "SimulationRunItem": {
+        "type": "object",
+        "properties": {
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the phone number."
+            "description": "This is the unique identifier for the simulation run item.",
+            "format": "uuid"
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this phone number belongs to."
+            "description": "This is the unique identifier for the organization.",
+            "format": "uuid"
           },
-          "createdAt": {
+          "simulationId": {
+            "type": "string",
+            "description": "This is the ID of the simulation this run belongs to.",
+            "format": "uuid"
+          },
+          "status": {
+            "type": "string",
+            "description": "This is the current status of the run.",
+            "enum": [
+              "queued",
+              "running",
+              "evaluating",
+              "passed",
+              "failed",
+              "canceled"
+            ]
+          },
+          "queuedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was created."
+            "description": "This is the ISO 8601 date-time string of when the run was queued."
           },
-          "updatedAt": {
+          "startedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the phone number was last updated."
+            "description": "This is the ISO 8601 date-time string of when the run started."
           },
-          "status": {
+          "completedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the status of the phone number.",
-            "enum": [
-              "active",
-              "activating",
-              "blocked"
-            ]
+            "description": "This is the ISO 8601 date-time string of when the run completed."
           },
-          "name": {
+          "failedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the ISO 8601 date-time string of when the run failed."
           },
-          "assistantId": {
+          "canceledAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the ISO 8601 date-time string of when the run was canceled."
           },
-          "squadId": {
+          "failureReason": {
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the reason for failure.",
+            "maxLength": 2000
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "callId": {
+            "type": "string",
+            "description": "This is the ID of the target Vapi call (the assistant being tested).",
+            "format": "uuid"
           },
-          "number": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "These are the digits of the phone number you own on your Telnyx."
+            "description": "This is the ISO 8601 date-time string of when the run item was created."
           },
-          "credentialId": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
-          }
-        },
-        "required": [
-          "provider",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "number",
-          "credentialId"
-        ]
-      },
-      "CreateByoPhoneNumberDTO": {
-        "type": "object",
-        "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
+            "description": "This is the ISO 8601 date-time string of when the run item was last updated."
+          },
+          "runId": {
+            "type": "string",
+            "description": "This is the ID of the parent run (batch/group).",
+            "format": "uuid"
           },
           "hooks": {
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "description": "Hooks configured for this simulation run item",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
+                  "$ref": "#/components/schemas/SimulationHookCallStarted",
+                  "title": "SimulationHookCallStarted"
+                },
+                {
+                  "$ref": "#/components/schemas/SimulationHookCallEnded",
+                  "title": "SimulationHookCallEnded"
                 }
               ]
             }
           },
-          "provider": {
-            "type": "string",
-            "description": "This is to bring your own phone numbers from your own SIP trunks or Carriers.",
-            "enum": [
-              "byo-phone-number"
-            ]
-          },
-          "numberE164CheckEnabled": {
-            "type": "boolean",
-            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
-            "default": true
+          "iterationNumber": {
+            "type": "number",
+            "description": "This is the iteration number (1-indexed) when run with iterations > 1.",
+            "default": 1
           },
-          "number": {
+          "sessionId": {
             "type": "string",
-            "description": "This is the number of the customer.",
-            "minLength": 3,
-            "maxLength": 40
+            "description": "This is the session ID for chat-based simulations (webchat transport).",
+            "format": "uuid"
           },
-          "credentialId": {
+          "scenarioId": {
             "type": "string",
-            "description": "This is the credential of your own SIP trunk or Carrier (type `byo-sip-trunk`) which can be used to make calls to this phone number.\n\nYou can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId."
+            "description": "This is the scenario ID at run creation time.",
+            "format": "uuid"
           },
-          "name": {
+          "personalityId": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the personality ID at run creation time.",
+            "format": "uuid"
           },
-          "assistantId": {
-            "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          "metadata": {
+            "description": "This is the metadata containing snapshots and call data.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunItemMetadata"
+              }
+            ]
           },
-          "squadId": {
-            "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          "results": {
+            "description": "This is the results of the simulation run.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunItemResults"
+              }
+            ]
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+          "improvementSuggestions": {
+            "description": "This is the AI-generated improvement suggestions for failed runs.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/SimulationRunItemImprovements"
+              }
+            ]
+          },
+          "configurations": {
+            "description": "This is the configuration for how this simulation run executes.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SimulationRunConfiguration"
               }
             ]
           }
         },
         "required": [
-          "provider",
-          "credentialId"
+          "id",
+          "orgId",
+          "simulationId",
+          "status",
+          "queuedAt",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "CreateTwilioPhoneNumberDTO": {
+      "CreateSimulationSuiteDTO": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
+          "name": {
+            "type": "string",
+            "description": "This is the name of the simulation suite.",
+            "maxLength": 80,
+            "example": "Checkout Flow Tests"
           },
-          "hooks": {
+          "slackWebhookUrl": {
+            "type": "string",
+            "description": "This is the Slack webhook URL for notifications."
+          },
+          "simulationIds": {
+            "description": "This is the list of simulation IDs to include in the suite.",
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
+              "type": "string"
             }
           },
-          "provider": {
+          "path": {
             "type": "string",
-            "description": "This is to use numbers bought on Twilio.",
-            "enum": [
-              "twilio"
-            ]
+            "nullable": true,
+            "description": "Optional folder path for organizing simulation suites.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nMaps to GitOps resource folder structure.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
+          }
+        },
+        "required": [
+          "name",
+          "simulationIds"
+        ]
+      },
+      "SimulationSuite": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the simulation suite.",
+            "format": "uuid"
           },
-          "number": {
+          "orgId": {
             "type": "string",
-            "description": "These are the digits of the phone number you own on your Twilio."
+            "description": "This is the unique identifier for the organization this suite belongs to.",
+            "format": "uuid"
           },
-          "twilioAccountSid": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the Twilio Account SID for the phone number."
+            "description": "This is the ISO 8601 date-time string of when the suite was created."
           },
-          "twilioAuthToken": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the Twilio Auth Token for the phone number."
+            "description": "This is the ISO 8601 date-time string of when the suite was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the name of the simulation suite.",
+            "maxLength": 80,
+            "example": "Checkout Flow Tests"
           },
-          "assistantId": {
+          "slackWebhookUrl": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the Slack webhook URL for notifications."
           },
-          "squadId": {
+          "path": {
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "nullable": true,
+            "description": "Optional folder path for organizing simulation suites.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nMaps to GitOps resource folder structure.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "simulationIds": {
+            "description": "This is the list of simulation IDs in this suite.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           }
         },
         "required": [
-          "provider",
-          "number",
-          "twilioAccountSid",
-          "twilioAuthToken"
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "name",
+          "simulationIds"
         ]
       },
-      "CreateVonagePhoneNumberDTO": {
+      "UpdateSimulationSuiteDTO": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
+          "name": {
+            "type": "string",
+            "description": "This is the name of the simulation suite.",
+            "maxLength": 80
           },
-          "hooks": {
+          "slackWebhookUrl": {
+            "type": "string",
+            "description": "This is the Slack webhook URL for notifications."
+          },
+          "simulationIds": {
+            "description": "This is the list of simulation IDs to include in the suite (replaces existing).",
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
+              "type": "string"
             }
           },
-          "provider": {
+          "path": {
             "type": "string",
-            "description": "This is to use numbers bought on Vonage.",
-            "enum": [
-              "vonage"
-            ]
-          },
-          "number": {
+            "nullable": true,
+            "description": "Optional folder path for organizing simulation suites.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nSet to null to remove from folder.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
+          }
+        }
+      },
+      "GenerateScenariosDTO": {
+        "type": "object",
+        "properties": {
+          "assistantId": {
             "type": "string",
-            "description": "These are the digits of the phone number you own on your Vonage."
+            "description": "ID of the assistant to generate scenarios for"
           },
-          "credentialId": {
+          "squadId": {
             "type": "string",
-            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
-          },
+            "description": "ID of the squad to generate scenarios for"
+          }
+        }
+      },
+      "GeneratedScenario": {
+        "type": "object",
+        "properties": {
           "name": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "Short descriptive name"
           },
-          "assistantId": {
+          "instructions": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "Instructions for the tester"
           },
-          "squadId": {
+          "category": {
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "enum": [
+              "happy_path",
+              "edge_case",
+              "failure_mode"
+            ],
+            "description": "Scenario category"
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "reasoning": {
+            "type": "string",
+            "description": "Why this scenario is valuable"
           }
         },
         "required": [
-          "provider",
-          "number",
-          "credentialId"
+          "name",
+          "instructions",
+          "category",
+          "reasoning"
         ]
       },
-      "CreateVapiPhoneNumberDTO": {
+      "GenerateScenariosResponse": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
-          },
-          "hooks": {
+          "scenarios": {
+            "description": "Generated scenarios",
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
+              "$ref": "#/components/schemas/GeneratedScenario"
             }
           },
-          "provider": {
-            "type": "string",
-            "description": "This is to create free SIP phone numbers on Vapi.",
-            "enum": [
-              "vapi"
-            ]
-          },
-          "numberDesiredAreaCode": {
-            "type": "string",
-            "description": "This is the area code of the phone number to purchase.",
-            "minLength": 3,
-            "maxLength": 3
-          },
-          "sipUri": {
+          "coverageNotes": {
             "type": "string",
-            "description": "This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer.\n\nThis is case-insensitive."
-          },
-          "authentication": {
-            "description": "This enables authentication for incoming SIP INVITE requests to the `sipUri`.\n\nIf not set, any username/password to the 401 challenge of the SIP INVITE will be accepted.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SipAuthentication"
-              }
-            ]
-          },
+            "description": "Summary of test coverage"
+          }
+        },
+        "required": [
+          "scenarios",
+          "coverageNotes"
+        ]
+      },
+      "CreateSimulationDTO": {
+        "type": "object",
+        "properties": {
           "name": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is an optional friendly name for the simulation.",
+            "maxLength": 80,
+            "example": "Eligible Path with Confused User"
           },
-          "assistantId": {
+          "scenarioId": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the ID of the scenario to use for this simulation.",
+            "format": "uuid"
           },
-          "squadId": {
+          "personalityId": {
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the ID of the personality to use for this simulation.",
+            "format": "uuid"
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "path": {
+            "type": "string",
+            "nullable": true,
+            "description": "Optional folder path for organizing simulations.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nMaps to GitOps resource folder structure.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
           }
         },
         "required": [
-          "provider"
+          "scenarioId",
+          "personalityId"
         ]
       },
-      "CreateTelnyxPhoneNumberDTO": {
+      "Simulation": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
-          },
-          "hooks": {
-            "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
-            }
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the simulation.",
+            "format": "uuid"
           },
-          "provider": {
+          "orgId": {
             "type": "string",
-            "description": "This is to use numbers bought on Telnyx.",
-            "enum": [
-              "telnyx"
-            ]
+            "description": "This is the unique identifier for the organization this simulation belongs to.",
+            "format": "uuid"
           },
-          "number": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "These are the digits of the phone number you own on your Telnyx."
+            "description": "This is the ISO 8601 date-time string of when the simulation was created."
           },
-          "credentialId": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+            "description": "This is the ISO 8601 date-time string of when the simulation was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is an optional friendly name for the simulation.",
+            "maxLength": 80,
+            "example": "Eligible Path with Confused User"
           },
-          "assistantId": {
+          "scenarioId": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the ID of the scenario to use for this simulation.",
+            "format": "uuid"
           },
-          "squadId": {
+          "personalityId": {
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the ID of the personality to use for this simulation.",
+            "format": "uuid"
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "path": {
+            "type": "string",
+            "nullable": true,
+            "description": "Optional folder path for organizing simulations.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nMaps to GitOps resource folder structure.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
           }
         },
         "required": [
-          "provider",
-          "number",
-          "credentialId"
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "scenarioId",
+          "personalityId"
         ]
       },
-      "UpdateByoPhoneNumberDTO": {
+      "UpdateSimulationDTO": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
-            ]
+          "name": {
+            "type": "string",
+            "description": "This is an optional friendly name for the simulation.",
+            "maxLength": 80
           },
-          "hooks": {
-            "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
-            }
+          "scenarioId": {
+            "type": "string",
+            "description": "This is the ID of the scenario to use for this simulation.",
+            "format": "uuid"
           },
-          "numberE164CheckEnabled": {
-            "type": "boolean",
-            "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)",
-            "default": true
+          "personalityId": {
+            "type": "string",
+            "description": "This is the ID of the personality to use for this simulation.",
+            "format": "uuid"
           },
-          "name": {
+          "path": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "nullable": true,
+            "description": "Optional folder path for organizing simulations.\nSupports up to 3 levels (e.g., \"dept/feature/variant\").\nSet to null to remove from folder.",
+            "maxLength": 255,
+            "pattern": "/^[a-zA-Z0-9][a-zA-Z0-9._-]*(?:\\/[a-zA-Z0-9][a-zA-Z0-9._-]*){0,2}$/"
+          }
+        }
+      },
+      "SimulationConcurrencyResponse": {
+        "type": "object",
+        "properties": {
+          "orgId": {
+            "type": "string"
           },
-          "assistantId": {
+          "concurrencyLimit": {
+            "type": "number",
+            "description": "Max call slots for simulations (each voice simulation uses 2 call slots: tester + target)"
+          },
+          "activeSimulations": {
+            "type": "number",
+            "description": "Number of call slots currently in use by running simulations"
+          },
+          "availableToStart": {
+            "type": "number",
+            "description": "Number of voice simulations that can start now (available call slots / 2)"
+          },
+          "createdAt": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "format": "date-time",
+            "nullable": true
           },
-          "squadId": {
+          "updatedAt": {
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "format": "date-time",
+            "nullable": true
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "isDefault": {
+            "type": "boolean",
+            "description": "True if org is using platform default concurrency limit"
+          }
+        },
+        "required": [
+          "orgId",
+          "concurrencyLimit",
+          "activeSimulations",
+          "availableToStart",
+          "createdAt",
+          "updatedAt",
+          "isDefault"
+        ]
+      },
+      "BarInsightMetadata": {
+        "type": "object",
+        "properties": {
+          "xAxisLabel": {
+            "type": "string",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "number": {
+          "yAxisLabel": {
             "type": "string",
-            "description": "This is the number of the customer.",
-            "minLength": 3,
+            "minLength": 1,
             "maxLength": 40
           },
-          "credentialId": {
+          "yAxisMin": {
+            "type": "number"
+          },
+          "yAxisMax": {
+            "type": "number"
+          },
+          "name": {
             "type": "string",
-            "description": "This is the credential of your own SIP trunk or Carrier (type `byo-sip-trunk`) which can be used to make calls to this phone number.\n\nYou can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId."
+            "minLength": 1,
+            "maxLength": 255
           }
         }
       },
-      "UpdateTwilioPhoneNumberDTO": {
+      "InsightTimeRangeWithStep": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
+          "step": {
+            "type": "string",
+            "description": "This is the group by step for aggregation.\n\nIf not provided, defaults to group by day.",
+            "enum": [
+              "minute",
+              "hour",
+              "day",
+              "week",
+              "month",
+              "quarter",
+              "year"
             ]
           },
-          "hooks": {
-            "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
-                }
-              ]
-            }
+          "start": {
+            "type": "object",
+            "description": "This is the start date for the time range.\n\nShould be a valid ISO 8601 date-time string or relative time string.\nIf not provided, defaults to the 7 days ago.\n\nRelative time strings of the format \"-{number}{unit}\" are allowed.\n\nValid units are:\n- d: days\n- h: hours\n- w: weeks\n- m: months\n- y: years",
+            "example": "\"2025-01-01\" or \"-7d\" or \"now\""
+          },
+          "end": {
+            "type": "object",
+            "description": "This is the end date for the time range.\n\nShould be a valid ISO 8601 date-time string or relative time string.\nIf not provided, defaults to now.\n\nRelative time strings of the format \"-{number}{unit}\" are allowed.\n\nValid units are:\n- d: days\n- h: hours\n- w: weeks\n- m: months\n- y: years",
+            "example": "\"2025-01-01\" or \"now\""
           },
+          "timezone": {
+            "type": "string",
+            "description": "This is the timezone you want to set for the query.\n\nIf not provided, defaults to UTC."
+          }
+        }
+      },
+      "BarInsight": {
+        "type": "object",
+        "properties": {
           "name": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
-          "assistantId": {
+          "type": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the type of the Insight.\nIt is required to be `bar` to create a bar insight.",
+            "enum": [
+              "bar"
+            ]
           },
-          "squadId": {
-            "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
+          "metadata": {
+            "description": "This is the metadata for the insight.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/BarInsightMetadata"
               }
             ]
           },
-          "number": {
-            "type": "string",
-            "description": "These are the digits of the phone number you own on your Twilio."
-          },
-          "twilioAccountSid": {
-            "type": "string",
-            "description": "This is the Twilio Account SID for the phone number."
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRangeWithStep"
           },
-          "twilioAuthToken": {
+          "groupBy": {
             "type": "string",
-            "description": "This is the Twilio Auth Token for the phone number."
-          }
-        }
-      },
-      "UpdateVonagePhoneNumberDTO": {
-        "type": "object",
-        "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
             ]
           },
-          "hooks": {
+          "queries": {
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "description": "These are the queries to run to generate the insight.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnEventsTable",
+                  "title": "JSONQueryOnEventsTable"
                 }
               ]
             }
           },
-          "name": {
+          "id": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the unique identifier for the Insight."
           },
-          "assistantId": {
+          "orgId": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the unique identifier for the org that this Insight belongs to."
           },
-          "squadId": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the ISO 8601 date-time string of when the Insight was created."
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the Insight was last updated."
           },
-          "number": {
+          "systemKey": {
             "type": "string",
-            "description": "These are the digits of the phone number you own on your Vonage."
+            "description": "Stable server-owned identifier for system-created insights."
+          }
+        },
+        "required": [
+          "type",
+          "queries",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "InsightTimeRange": {
+        "type": "object",
+        "properties": {
+          "start": {
+            "type": "object",
+            "description": "This is the start date for the time range.\n\nShould be a valid ISO 8601 date-time string or relative time string.\nIf not provided, defaults to the 7 days ago.\n\nRelative time strings of the format \"-{number}{unit}\" are allowed.\n\nValid units are:\n- d: days\n- h: hours\n- w: weeks\n- m: months\n- y: years",
+            "example": "\"2025-01-01\" or \"-7d\" or \"now\""
           },
-          "credentialId": {
+          "end": {
+            "type": "object",
+            "description": "This is the end date for the time range.\n\nShould be a valid ISO 8601 date-time string or relative time string.\nIf not provided, defaults to now.\n\nRelative time strings of the format \"-{number}{unit}\" are allowed.\n\nValid units are:\n- d: days\n- h: hours\n- w: weeks\n- m: months\n- y: years",
+            "example": "\"2025-01-01\" or \"now\""
+          },
+          "timezone": {
             "type": "string",
-            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+            "description": "This is the timezone you want to set for the query.\n\nIf not provided, defaults to UTC."
           }
         }
       },
-      "UpdateVapiPhoneNumberDTO": {
+      "PieInsight": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `pie` to create a pie insight.",
+            "enum": [
+              "pie"
             ]
           },
-          "hooks": {
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
+          },
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRange"
+          },
+          "groupBy": {
+            "type": "string",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
+            ]
+          },
+          "queries": {
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "description": "These are the queries to run to generate the insight.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 }
               ]
             }
           },
-          "name": {
+          "id": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the unique identifier for the Insight."
           },
-          "assistantId": {
+          "orgId": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the unique identifier for the org that this Insight belongs to."
           },
-          "squadId": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the ISO 8601 date-time string of when the Insight was created."
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the Insight was last updated."
           },
-          "sipUri": {
+          "systemKey": {
             "type": "string",
-            "description": "This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer.\n\nThis is case-insensitive."
+            "description": "Stable server-owned identifier for system-created insights."
+          }
+        },
+        "required": [
+          "type",
+          "queries",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "LineInsightMetadata": {
+        "type": "object",
+        "properties": {
+          "xAxisLabel": {
+            "type": "string",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "authentication": {
-            "description": "This enables authentication for incoming SIP INVITE requests to the `sipUri`.\n\nIf not set, any username/password to the 401 challenge of the SIP INVITE will be accepted.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SipAuthentication"
-              }
-            ]
+          "yAxisLabel": {
+            "type": "string",
+            "minLength": 1,
+            "maxLength": 40
+          },
+          "yAxisMin": {
+            "type": "number"
+          },
+          "yAxisMax": {
+            "type": "number"
+          },
+          "name": {
+            "type": "string",
+            "minLength": 1,
+            "maxLength": 255
           }
         }
       },
-      "UpdateTelnyxPhoneNumberDTO": {
+      "LineInsight": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `line` to create a line insight.",
+            "enum": [
+              "line"
+            ]
+          },
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
+          },
+          "metadata": {
+            "description": "This is the metadata for the insight.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
+                "$ref": "#/components/schemas/LineInsightMetadata"
               }
             ]
           },
-          "hooks": {
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRangeWithStep"
+          },
+          "groupBy": {
+            "type": "string",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
+            ]
+          },
+          "queries": {
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "description": "These are the queries to run to generate the insight.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 }
               ]
             }
           },
-          "name": {
+          "id": {
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the unique identifier for the Insight."
           },
-          "assistantId": {
+          "orgId": {
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the unique identifier for the org that this Insight belongs to."
           },
-          "squadId": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
-          },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+            "description": "This is the ISO 8601 date-time string of when the Insight was created."
           },
-          "number": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "These are the digits of the phone number you own on your Telnyx."
+            "description": "This is the ISO 8601 date-time string of when the Insight was last updated."
           },
-          "credentialId": {
+          "systemKey": {
             "type": "string",
-            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+            "description": "Stable server-owned identifier for system-created insights."
           }
-        }
+        },
+        "required": [
+          "type",
+          "queries",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "ImportVonagePhoneNumberDTO": {
+      "TextInsight": {
         "type": "object",
         "properties": {
-          "fallbackDestination": {
-            "description": "This is the fallback destination an inbound call will be transferred to if:\n1. `assistantId` is not set\n2. `squadId` is not set\n3. and, `assistant-request` message to the `serverUrl` fails\n\nIf this is not set and above conditions are met, the inbound call is hung up with an error message.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
-              }
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `text` to create a text insight.",
+            "enum": [
+              "text"
             ]
           },
-          "hooks": {
+          "formula": {
+            "type": "object",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
+          },
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRange"
+          },
+          "queries": {
             "type": "array",
-            "description": "This is the hooks that will be used for incoming calls to this phone number.",
+            "description": "These are the queries to run to generate the insight.\nFor Text Insights, we only allow a single query, or require a formula if multiple queries are provided",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/PhoneNumberHookCallRinging",
-                  "title": "PhoneNumberHookCallRinging"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 }
               ]
             }
           },
-          "vonagePhoneNumber": {
+          "id": {
             "type": "string",
-            "description": "These are the digits of the phone number you own on your Vonage.",
-            "deprecated": true
+            "description": "This is the unique identifier for the Insight."
           },
-          "credentialId": {
+          "orgId": {
             "type": "string",
-            "description": "This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups."
+            "description": "This is the unique identifier for the org that this Insight belongs to."
           },
-          "name": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the name of the phone number. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the ISO 8601 date-time string of when the Insight was created."
           },
-          "assistantId": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the assistant that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
+            "description": "This is the ISO 8601 date-time string of when the Insight was last updated."
           },
-          "squadId": {
+          "systemKey": {
             "type": "string",
-            "description": "This is the squad that will be used for incoming calls to this phone number.\n\nIf neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected."
-          },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+            "description": "Stable server-owned identifier for system-created insights."
           }
         },
         "required": [
-          "vonagePhoneNumber",
-          "credentialId"
+          "type",
+          "queries",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "PhoneNumberPaginatedResponse": {
+      "UpdateBarInsightFromCallTableDTO": {
         "type": "object",
         "properties": {
-          "results": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `bar` to create a bar insight.",
+            "enum": [
+              "bar"
+            ]
+          },
+          "formulas": {
             "type": "array",
-            "description": "A list of phone numbers, which can be of any provider type.",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ByoPhoneNumber"
-                },
-                {
-                  "$ref": "#/components/schemas/TwilioPhoneNumber"
-                },
-                {
-                  "$ref": "#/components/schemas/VonagePhoneNumber"
-                },
-                {
-                  "$ref": "#/components/schemas/VapiPhoneNumber"
-                },
-                {
-                  "$ref": "#/components/schemas/TelnyxPhoneNumber"
-                }
-              ]
+              "$ref": "#/components/schemas/InsightFormula"
             }
           },
           "metadata": {
-            "description": "Metadata about the pagination.",
+            "description": "This is the metadata for the insight.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/PaginationMeta"
+                "$ref": "#/components/schemas/BarInsightMetadata"
               }
             ]
-          }
-        },
-        "required": [
-          "results",
-          "metadata"
-        ]
-      },
-      "DtmfTool": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
           },
-          "messages": {
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRangeWithStep"
+          },
+          "groupBy": {
+            "type": "string",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
+            ]
+          },
+          "queries": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "These are the queries to run to generate the insight.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/JSONQueryOnEventsTable",
+                  "title": "JSONQueryOnEventsTable"
                 }
               ]
             }
+          }
+        }
+      },
+      "UpdatePieInsightFromCallTableDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
           "type": {
             "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `pie` to create a pie insight.",
             "enum": [
-              "dtmf"
-            ],
-            "description": "The type of tool. \"dtmf\" for DTMF tool."
+              "pie"
+            ]
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
           },
-          "orgId": {
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRange"
+          },
+          "groupBy": {
             "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
+            ]
           },
-          "createdAt": {
-            "format": "date-time",
+          "queries": {
+            "type": "array",
+            "description": "These are the queries to run to generate the insight.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
+                }
+              ]
+            }
+          }
+        }
+      },
+      "UpdateLineInsightFromCallTableDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
-          "updatedAt": {
-            "format": "date-time",
+          "type": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+            "description": "This is the type of the Insight.\nIt is required to be `line` to create a line insight.",
+            "enum": [
+              "line"
+            ]
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
+          },
+          "metadata": {
+            "description": "This is the metadata for the insight.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/LineInsightMetadata"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRangeWithStep"
+          },
+          "groupBy": {
+            "type": "string",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
             ]
-          }
-        },
-        "required": [
-          "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
-      },
-      "EndCallTool": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
           },
-          "messages": {
+          "queries": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "These are the queries to run to generate the insight.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 }
               ]
             }
+          }
+        }
+      },
+      "UpdateTextInsightFromCallTableDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
           "type": {
             "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `text` to create a text insight.",
             "enum": [
-              "endCall"
-            ],
-            "description": "The type of tool. \"endCall\" for End Call tool."
+              "text"
+            ]
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
+          "formula": {
+            "type": "object",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
           },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRange"
           },
-          "createdAt": {
-            "format": "date-time",
+          "queries": {
+            "type": "array",
+            "description": "These are the queries to run to generate the insight.\nFor Text Insights, we only allow a single query, or require a formula if multiple queries are provided",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
+                }
+              ]
+            }
+          }
+        }
+      },
+      "CreateBarInsightFromCallTableDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
-          "updatedAt": {
-            "format": "date-time",
+          "type": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+            "description": "This is the type of the Insight.\nIt is required to be `bar` to create a bar insight.",
+            "enum": [
+              "bar"
+            ]
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
+          },
+          "metadata": {
+            "description": "This is the metadata for the insight.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/BarInsightMetadata"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRangeWithStep"
+          },
+          "groupBy": {
+            "type": "string",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
             ]
+          },
+          "queries": {
+            "type": "array",
+            "description": "These are the queries to run to generate the insight.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnEventsTable",
+                  "title": "JSONQueryOnEventsTable"
+                }
+              ]
+            }
           }
         },
         "required": [
           "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "queries"
         ]
       },
-      "FunctionTool": {
+      "CreatePieInsightFromCallTableDTO": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
-          "messages": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `pie` to create a pie insight.",
+            "enum": [
+              "pie"
+            ]
+          },
+          "formulas": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
+          },
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRange"
+          },
+          "groupBy": {
+            "type": "string",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
+            ]
+          },
+          "queries": {
+            "type": "array",
+            "description": "These are the queries to run to generate the insight.",
             "items": {
               "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 }
               ]
             }
+          }
+        },
+        "required": [
+          "type",
+          "queries"
+        ]
+      },
+      "CreateLineInsightFromCallTableDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
           "type": {
             "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `line` to create a line insight.",
             "enum": [
-              "function"
-            ],
-            "description": "The type of tool. \"function\" for Function tool."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+              "line"
+            ]
           },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "metadata": {
+            "description": "This is the metadata for the insight.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/LineInsightMetadata"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRangeWithStep"
+          },
+          "groupBy": {
+            "type": "string",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
             ]
+          },
+          "queries": {
+            "type": "array",
+            "description": "These are the queries to run to generate the insight.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
+                }
+              ]
+            }
           }
         },
         "required": [
           "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "queries"
         ]
       },
-      "GhlTool": {
+      "CreateTextInsightFromCallTableDTO": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
-          "messages": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `text` to create a text insight.",
+            "enum": [
+              "text"
+            ]
+          },
+          "formula": {
+            "type": "object",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
+          },
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRange"
+          },
+          "queries": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "These are the queries to run to generate the insight.\nFor Text Insights, we only allow a single query, or require a formula if multiple queries are provided",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 }
               ]
             }
-          },
-          "type": {
-            "type": "string",
-            "enum": [
-              "ghl"
-            ],
-            "description": "The type of tool. \"ghl\" for GHL tool."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          },
-          "metadata": {
-            "$ref": "#/components/schemas/GhlToolMetadata"
           }
         },
         "required": [
           "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "metadata"
+          "queries"
         ]
       },
-      "MakeTool": {
+      "JSONQueryOnCallTableWithStringTypeColumn": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "type": {
+            "type": "string",
+            "description": "This is the type of query. Only allowed type is \"vapiql-json\".",
+            "example": "vapiql-json",
+            "enum": [
+              "vapiql-json"
+            ]
           },
-          "messages": {
+          "table": {
+            "type": "string",
+            "description": "This is the table that will be queried.",
+            "enum": [
+              "call"
+            ]
+          },
+          "filters": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "This is the filters to apply to the insight.\nThe discriminator automatically selects the correct filter type based on column and operator.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/FilterStringTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/FilterStringArrayTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/FilterNumberTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/FilterNumberArrayTypeColumnOnCallTable"
+                },
+                {
+                  "$ref": "#/components/schemas/FilterDateTypeColumnOnCallTable"
+                },
+                {
+                  "$ref": "#/components/schemas/FilterStructuredOutputColumnOnCallTable"
                 }
               ]
             }
           },
-          "type": {
+          "column": {
             "type": "string",
             "enum": [
-              "make"
+              "id",
+              "artifact.structuredOutputs[OutputID]"
             ],
-            "description": "The type of tool. \"make\" for Make tool."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "This is the column that will be queried in the selected table.\nAvailable columns depend on the selected table.\nString Type columns are columns where the rows store String data",
+            "example": "id"
           },
-          "createdAt": {
-            "format": "date-time",
+          "operation": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "enum": [
+              "count"
+            ],
+            "description": "This is the aggregation operation to perform on the column.\nWhen the column is a string type, the operation must be \"count\".",
+            "example": "count"
           },
-          "updatedAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          },
-          "metadata": {
-            "$ref": "#/components/schemas/MakeToolMetadata"
+            "description": "This is the name of the query.\nIt will be used to label the query in the insight board on the UI.",
+            "example": "Total Calls"
           }
         },
         "required": [
           "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "metadata"
+          "table",
+          "column",
+          "operation"
         ]
       },
-      "TransferCallTool": {
+      "JSONQueryOnCallTableWithNumberTypeColumn": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
           "type": {
             "type": "string",
+            "description": "This is the type of query. Only allowed type is \"vapiql-json\".",
+            "example": "vapiql-json",
             "enum": [
-              "transferCall"
+              "vapiql-json"
             ]
           },
-          "destinations": {
+          "table": {
+            "type": "string",
+            "description": "This is the table that will be queried.",
+            "enum": [
+              "call"
+            ]
+          },
+          "filters": {
             "type": "array",
-            "description": "These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called.",
+            "description": "This is the filters to apply to the insight.\nThe discriminator automatically selects the correct filter type based on column and operator.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/TransferDestinationAssistant",
-                  "title": "Assistant"
+                  "$ref": "#/components/schemas/FilterStringTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/TransferDestinationStep",
-                  "title": "Step"
+                  "$ref": "#/components/schemas/FilterStringArrayTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/TransferDestinationNumber",
-                  "title": "Number"
+                  "$ref": "#/components/schemas/FilterNumberTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/TransferDestinationSip",
-                  "title": "Sip"
+                  "$ref": "#/components/schemas/FilterNumberArrayTypeColumnOnCallTable"
+                },
+                {
+                  "$ref": "#/components/schemas/FilterDateTypeColumnOnCallTable"
+                },
+                {
+                  "$ref": "#/components/schemas/FilterStructuredOutputColumnOnCallTable"
                 }
               ]
             }
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
-          },
-          "orgId": {
+          "column": {
             "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "enum": [
+              "cost",
+              "duration",
+              "averageModelLatency",
+              "averageVoiceLatency",
+              "averageTranscriberLatency",
+              "averageTurnLatency",
+              "averageEndpointingLatency",
+              "artifact.structuredOutputs[OutputID]"
+            ],
+            "description": "This is the column that will be queried in the selected table.\nAvailable columns depend on the selected table.\nNumber Type columns are columns where the rows store Number data",
+            "example": "duration"
           },
-          "createdAt": {
-            "format": "date-time",
+          "operation": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "enum": [
+              "average",
+              "sum",
+              "min",
+              "max"
+            ],
+            "description": "This is the aggregation operation to perform on the column.\nWhen the column is a number type, the operation must be one of the following:\n- average\n- sum\n- min\n- max",
+            "example": "sum"
           },
-          "updatedAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+            "description": "This is the name of the query.\nIt will be used to label the query in the insight board on the UI.",
+            "example": "Total Calls"
           }
         },
         "required": [
           "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "table",
+          "column",
+          "operation"
         ]
       },
-      "OutputTool": {
+      "JSONQueryOnCallTableWithStructuredOutputColumn": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "type": {
+            "type": "string",
+            "description": "This is the type of query. Only allowed type is \"vapiql-json\".",
+            "example": "vapiql-json",
+            "enum": [
+              "vapiql-json"
+            ]
           },
-          "messages": {
+          "table": {
+            "type": "string",
+            "description": "This is the table that will be queried.",
+            "enum": [
+              "call"
+            ]
+          },
+          "filters": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "This is the filters to apply to the insight.\nThe discriminator automatically selects the correct filter type based on column and operator.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/FilterStringTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/FilterStringArrayTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/FilterNumberTypeColumnOnCallTable"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/FilterNumberArrayTypeColumnOnCallTable"
+                },
+                {
+                  "$ref": "#/components/schemas/FilterDateTypeColumnOnCallTable"
+                },
+                {
+                  "$ref": "#/components/schemas/FilterStructuredOutputColumnOnCallTable"
                 }
               ]
             }
           },
-          "type": {
+          "column": {
             "type": "string",
             "enum": [
-              "output"
+              "artifact.structuredOutputs[OutputID]"
             ],
-            "description": "The type of tool. \"output\" for Output tool."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "This is the column that will be queried in the call table.\nStructured Output Type columns are only to query on artifact.structuredOutputs[OutputID] column.",
+            "example": "artifact.structuredOutputs[OutputID]"
           },
-          "createdAt": {
-            "format": "date-time",
+          "operation": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "enum": [
+              "average",
+              "count",
+              "sum",
+              "min",
+              "max"
+            ],
+            "description": "This is the aggregation operation to perform on the column.\nWhen the column is a structured output type, the operation depends on the value of the structured output.\nIf the structured output is a string or boolean, the operation must be \"count\".\nIf the structured output is a number, the operation can be \"average\", \"sum\", \"min\", or \"max\".",
+            "example": "count"
           },
-          "updatedAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+            "description": "This is the name of the query.\nIt will be used to label the query in the insight board on the UI.",
+            "example": "Total Calls"
           }
         },
         "required": [
           "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "table",
+          "column",
+          "operation"
         ]
       },
-      "BashTool": {
+      "JSONQueryOnEventsTable": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "type": {
+            "type": "string",
+            "description": "This is the type of query. Only allowed type is \"vapiql-json\".",
+            "example": "vapiql-json",
+            "enum": [
+              "vapiql-json"
+            ]
           },
-          "messages": {
+          "table": {
+            "type": "string",
+            "description": "This is the table that will be queried.\nMust be \"events\" for event-based insights.",
+            "enum": [
+              "events"
+            ]
+          },
+          "on": {
+            "type": "string",
+            "description": "The event type to query",
+            "example": "assistant.model.requestFailed",
+            "enum": [
+              "call.started",
+              "call.ended",
+              "call.inProgress",
+              "call.queued",
+              "call.transportConnected",
+              "call.transportDisconnected",
+              "call.transportReconnected",
+              "call.transferInitiated",
+              "call.transferCompleted",
+              "call.transferFailed",
+              "call.transferCancelled",
+              "call.handoffInitiated",
+              "call.handoffCompleted",
+              "call.handoffFailed",
+              "call.assistantSwapped",
+              "call.assistantStarted",
+              "call.customerJoined",
+              "call.customerLeft",
+              "call.controlReceived",
+              "call.listenStarted",
+              "call.recordingStarted",
+              "call.recordingPaused",
+              "call.recordingResumed",
+              "call.voicemailDetected",
+              "call.voicemailNotDetected",
+              "call.dtmfReceived",
+              "call.dtmfSent",
+              "call.amdDetected",
+              "call.hookTriggered",
+              "call.hookSucceeded",
+              "call.hookFailed",
+              "call.statusReceived",
+              "call.silenceTimeout",
+              "call.microphoneTimeout",
+              "call.maxDurationReached",
+              "assistant.voice.requestStarted",
+              "assistant.voice.requestSucceeded",
+              "assistant.voice.requestFailed",
+              "assistant.voice.connectionOpened",
+              "assistant.voice.connectionClosed",
+              "assistant.voice.firstAudioReceived",
+              "assistant.voice.audioChunkReceived",
+              "assistant.voice.generationSucceeded",
+              "assistant.voice.generationFailed",
+              "assistant.voice.textPushed",
+              "assistant.voice.reconnecting",
+              "assistant.voice.cleanup",
+              "assistant.voice.clearing",
+              "assistant.voice.voiceSwitched",
+              "assistant.model.requestStarted",
+              "assistant.model.requestSucceeded",
+              "assistant.model.requestFailed",
+              "assistant.model.requestAttemptStarted",
+              "assistant.model.requestAttemptSucceeded",
+              "assistant.model.requestAttemptFailed",
+              "assistant.model.connectionOpened",
+              "assistant.model.connectionClosed",
+              "assistant.model.firstTokenReceived",
+              "assistant.model.tokenReceived",
+              "assistant.model.responseSucceeded",
+              "assistant.model.responseFailed",
+              "assistant.model.toolCallsReceived",
+              "assistant.model.reconnecting",
+              "assistant.model.cleanup",
+              "assistant.model.clearing",
+              "assistant.tool.started",
+              "assistant.tool.completed",
+              "assistant.tool.failed",
+              "assistant.tool.delayedMessageSent",
+              "assistant.tool.timeout",
+              "assistant.tool.asyncCallbackReceived",
+              "assistant.transcriber.requestStarted",
+              "assistant.transcriber.requestSucceeded",
+              "assistant.transcriber.requestFailed",
+              "assistant.transcriber.connectionOpened",
+              "assistant.transcriber.connectionClosed",
+              "assistant.transcriber.partialTranscript",
+              "assistant.transcriber.finalTranscript",
+              "assistant.transcriber.keepAlive",
+              "assistant.transcriber.reconnecting",
+              "assistant.transcriber.cleanup",
+              "assistant.transcriber.clearing",
+              "assistant.transcriber.transcriptIgnored",
+              "assistant.transcriber.languageSwitched",
+              "assistant.analysis.structuredOutputGenerated",
+              "pipeline.turnStarted",
+              "pipeline.cleared",
+              "pipeline.botSpeechStarted",
+              "pipeline.botSpeechStopped",
+              "pipeline.userSpeechStarted",
+              "pipeline.userSpeechStopped",
+              "pipeline.endpointingTriggered",
+              "pipeline.firstMessageStarted",
+              "pipeline.firstMessageCompleted"
+            ]
+          },
+          "operation": {
+            "type": "string",
+            "description": "This is the operation to perform on matching events.\n- \"count\": Returns the raw count of matching events\n- \"percentage\": Returns (count of matching events / total calls) * 100",
+            "example": "count",
+            "enum": [
+              "count",
+              "percentage"
+            ]
+          },
+          "filters": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "These are the filters to apply to the events query.\nEach filter filters on a field specific to the event type.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/EventsTableStringCondition"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/EventsTableNumberCondition"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/EventsTableBooleanCondition"
                 }
               ]
             }
           },
-          "type": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the query.\nIt will be used to label the query in the insight board on the UI.",
+            "example": "Model Failures"
+          }
+        },
+        "required": [
+          "type",
+          "table",
+          "on",
+          "operation"
+        ]
+      },
+      "FilterStringTypeColumnOnCallTable": {
+        "type": "object",
+        "properties": {
+          "column": {
             "type": "string",
+            "description": "This is the column in the call table that will be filtered on.\nString Type columns are columns where the rows store data as a string.\nMust be a valid column for the selected table.",
+            "example": "assistant_id",
             "enum": [
-              "bash"
-            ],
-            "description": "The type of tool. \"bash\" for Bash tool."
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "customerNumber",
+              "status",
+              "endedReason",
+              "forwardedPhoneNumber",
+              "campaignId"
+            ]
           },
-          "subType": {
+          "operator": {
             "type": "string",
+            "description": "This is the operator to use for the filter.\nFor string type columns, the operator must be \"=\", \"!=\", \"contains\", \"not contains\"",
+            "example": "\"=\" or \"!=\"",
             "enum": [
-              "bash_20241022"
-            ],
-            "description": "The sub type of tool."
+              "=",
+              "!=",
+              "contains",
+              "not_contains"
+            ]
           },
-          "id": {
+          "value": {
             "type": "string",
-            "description": "This is the unique identifier for the tool."
+            "description": "This is the value to filter on."
+          }
+        },
+        "required": [
+          "column",
+          "operator",
+          "value"
+        ]
+      },
+      "FilterNumberTypeColumnOnCallTable": {
+        "type": "object",
+        "properties": {
+          "column": {
+            "type": "string",
+            "description": "This is the column in the call table that will be filtered on.\nNumber Type columns are columns where the rows store data as a number.\nMust be a valid column for the selected table.",
+            "example": "duration",
+            "enum": [
+              "duration",
+              "cost",
+              "averageModelLatency",
+              "averageVoiceLatency",
+              "averageTranscriberLatency",
+              "averageTurnLatency",
+              "averageEndpointingLatency"
+            ]
           },
-          "orgId": {
+          "operator": {
             "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "This is the operator to use for the filter.\nFor number type columns, the operator must be \"=\", \">\", \"<\", \">=\", \"<=\"",
+            "example": "\"=\" or \">\" or \"<\" or \">=\" or \"<=\"",
+            "enum": [
+              "=",
+              "!=",
+              ">",
+              "<",
+              ">=",
+              "<="
+            ]
           },
-          "createdAt": {
-            "format": "date-time",
+          "value": {
+            "type": "number",
+            "description": "This is the value to filter on."
+          }
+        },
+        "required": [
+          "column",
+          "operator",
+          "value"
+        ]
+      },
+      "FilterDateTypeColumnOnCallTable": {
+        "type": "object",
+        "properties": {
+          "column": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "description": "This is the column in the call table that will be filtered on.\nDate Type columns are columns where the rows store data as a date.\nMust be a valid column for the selected table.",
+            "example": "created_at",
+            "enum": [
+              "startedAt",
+              "endedAt"
+            ]
           },
-          "updatedAt": {
-            "format": "date-time",
+          "operator": {
+            "type": "string",
+            "description": "This is the operator to use for the filter.\nFor date type columns, the operator must be \"=\", \">\", \"<\", \">=\", \"<=\"",
+            "example": "\"=\" or \">\" or \"<\" or \">=\" or \"<=\"",
+            "enum": [
+              "=",
+              "!=",
+              ">",
+              "<",
+              ">=",
+              "<="
+            ]
+          },
+          "value": {
+            "type": "string",
+            "description": "This is the value to filter on.\nMust be a valid ISO 8601 date-time string.",
+            "example": "2025-01-01T00:00:00Z"
+          }
+        },
+        "required": [
+          "column",
+          "operator",
+          "value"
+        ]
+      },
+      "FilterStructuredOutputColumnOnCallTable": {
+        "type": "object",
+        "properties": {
+          "column": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+            "description": "This is the column in the call table that will be filtered on.\nStructured Output Type columns are only to filter on artifact.structuredOutputs[OutputID] column.",
+            "example": "artifact.structuredOutputs[OutputID]",
+            "enum": [
+              "artifact.structuredOutputs[OutputID]"
             ]
           },
-          "name": {
+          "operator": {
             "type": "string",
-            "description": "The name of the tool, fixed to 'bash'",
-            "default": "bash",
+            "description": "This is the operator to use for the filter.\nThe operator depends on the value type of the structured output.\nIf the structured output is a string or boolean, the operator must be \"=\", \"!=\"\nIf the structured output is a number, the operator must be \"=\", \">\", \"<\", \">=\", \"<=\"\nIf the structured output is an array, the operator must be \"in\" or \"not_in\"",
+            "example": "\"=\" or \">\" or \"<\" or \"in\" or \"not_in\"",
             "enum": [
-              "bash"
+              "=",
+              "!=",
+              ">",
+              "<",
+              ">=",
+              "<=",
+              "in",
+              "not_in",
+              "contains",
+              "not_contains",
+              "is_empty",
+              "is_not_empty"
             ]
+          },
+          "value": {
+            "type": "object",
+            "description": "This is the value to filter on.\nThe value type depends on the structured output type being filtered."
           }
         },
         "required": [
-          "type",
-          "subType",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "name"
+          "column",
+          "operator",
+          "value"
         ]
       },
-      "ComputerTool": {
+      "FilterStringArrayTypeColumnOnCallTable": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "column": {
+            "type": "string",
+            "description": "This is the column in the call table that will be filtered on.\nString Array Type columns are the same as String Type columns, but provides the ability to filter on multiple values provided as an array.\nMust be a valid column for the selected table.",
+            "example": "assistant_id",
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "customerNumber",
+              "status",
+              "endedReason",
+              "forwardedPhoneNumber",
+              "campaignId"
+            ]
           },
-          "messages": {
+          "operator": {
+            "type": "string",
+            "description": "This is the operator to use for the filter.\nThe operator must be `in` or `not_in`.",
+            "example": "\"in\" or \"not_in\"",
+            "enum": [
+              "in",
+              "not_in",
+              "is_empty",
+              "is_not_empty"
+            ]
+          },
+          "value": {
+            "description": "These are the values to filter on.",
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "type": "string"
             }
-          },
-          "type": {
+          }
+        },
+        "required": [
+          "column",
+          "operator",
+          "value"
+        ]
+      },
+      "FilterNumberArrayTypeColumnOnCallTable": {
+        "type": "object",
+        "properties": {
+          "column": {
             "type": "string",
+            "description": "This is the column in the call table that will be filtered on.\nNumber Array Type columns are the same as Number Type columns, but provides the ability to filter on multiple values provided as an array.\nMust be a valid column for the selected table.",
+            "example": "duration",
             "enum": [
-              "computer"
-            ],
-            "description": "The type of tool. \"computer\" for Computer tool."
+              "duration",
+              "cost",
+              "averageModelLatency",
+              "averageVoiceLatency",
+              "averageTranscriberLatency",
+              "averageTurnLatency",
+              "averageEndpointingLatency"
+            ]
           },
-          "subType": {
+          "operator": {
             "type": "string",
+            "description": "This is the operator to use for the filter.\nThe operator must be `in` or `not_in`.",
+            "example": "\"in\" or \"not_in\"",
             "enum": [
-              "computer_20241022"
-            ],
-            "description": "The sub type of tool."
+              "in",
+              "not_in",
+              "is_empty",
+              "is_not_empty"
+            ]
           },
-          "id": {
+          "value": {
+            "description": "This is the value to filter on.",
+            "type": "array",
+            "items": {
+              "type": "number"
+            }
+          }
+        },
+        "required": [
+          "column",
+          "operator",
+          "value"
+        ]
+      },
+      "EventsTableStringCondition": {
+        "type": "object",
+        "properties": {
+          "column": {
             "type": "string",
-            "description": "This is the unique identifier for the tool."
+            "description": "The string field name from the event data",
+            "example": "provider"
           },
-          "orgId": {
+          "operator": {
             "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "String comparison operator",
+            "example": "=",
+            "enum": [
+              "=",
+              "!=",
+              "contains",
+              "notContains"
+            ]
           },
-          "createdAt": {
-            "format": "date-time",
+          "value": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+            "description": "The string value to compare",
+            "example": "openai"
+          }
+        },
+        "required": [
+          "column",
+          "operator",
+          "value"
+        ]
+      },
+      "EventsTableNumberCondition": {
+        "type": "object",
+        "properties": {
+          "column": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+            "description": "The number field name from the event data",
+            "example": "latency"
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
-          },
-          "name": {
+          "operator": {
             "type": "string",
-            "description": "The name of the tool, fixed to 'computer'",
-            "default": "computer",
+            "description": "Number comparison operator",
+            "example": ">=",
             "enum": [
-              "computer"
+              "=",
+              "!=",
+              ">",
+              ">=",
+              "<",
+              "<="
             ]
           },
-          "displayWidthPx": {
-            "type": "number",
-            "description": "The display width in pixels"
-          },
-          "displayHeightPx": {
-            "type": "number",
-            "description": "The display height in pixels"
-          },
-          "displayNumber": {
+          "value": {
             "type": "number",
-            "description": "Optional display number"
+            "description": "The number value to compare",
+            "example": 1000
           }
         },
         "required": [
-          "type",
-          "subType",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "name",
-          "displayWidthPx",
-          "displayHeightPx"
+          "column",
+          "operator",
+          "value"
         ]
       },
-      "TextEditorTool": {
+      "EventsTableBooleanCondition": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
-          "type": {
+          "column": {
             "type": "string",
-            "enum": [
-              "textEditor"
-            ],
-            "description": "The type of tool. \"textEditor\" for Text Editor tool."
+            "description": "The boolean field name from the event data",
+            "example": "success"
           },
-          "subType": {
+          "operator": {
             "type": "string",
+            "description": "Boolean comparison operator",
+            "example": "=",
             "enum": [
-              "text_editor_20241022"
-            ],
-            "description": "The sub type of tool."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
+              "="
+            ]
           },
-          "orgId": {
+          "value": {
+            "type": "boolean",
+            "description": "The boolean value to compare",
+            "example": true
+          }
+        },
+        "required": [
+          "column",
+          "operator",
+          "value"
+        ]
+      },
+      "BarInsightFromCallTable": {
+        "type": "object",
+        "properties": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
-          "createdAt": {
-            "format": "date-time",
+          "type": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "description": "This is the type of the Insight.\nIt is required to be `bar` to create a bar insight.",
+            "enum": [
+              "bar"
+            ]
           },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "metadata": {
+            "description": "This is the metadata for the insight.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/BarInsightMetadata"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRangeWithStep"
           },
-          "name": {
+          "groupBy": {
             "type": "string",
-            "description": "The name of the tool, fixed to 'str_replace_editor'",
-            "default": "str_replace_editor",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
             "enum": [
-              "str_replace_editor"
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
             ]
-          }
-        },
-        "required": [
-          "type",
-          "subType",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "name"
-        ]
-      },
-      "QueryTool": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
           },
-          "messages": {
+          "queries": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "These are the queries to run to generate the insight.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/JSONQueryOnEventsTable",
+                  "title": "JSONQueryOnEventsTable"
                 }
               ]
             }
+          }
+        },
+        "required": [
+          "type",
+          "queries"
+        ]
+      },
+      "PieInsightFromCallTable": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
           "type": {
             "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `pie` to create a pie insight.",
             "enum": [
-              "query"
-            ],
-            "description": "The type of tool. \"query\" for Query tool."
+              "pie"
+            ]
           },
-          "knowledgeBases": {
-            "description": "The knowledge bases to query",
+          "formulas": {
             "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
             "items": {
-              "$ref": "#/components/schemas/KnowledgeBase"
+              "$ref": "#/components/schemas/InsightFormula"
             }
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRange"
           },
-          "updatedAt": {
-            "format": "date-time",
+          "groupBy": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
             ]
-          }
-        },
-        "required": [
-          "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
-      },
-      "GoogleCalendarCreateEventTool": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
           },
-          "messages": {
+          "queries": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "These are the queries to run to generate the insight.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 }
               ]
             }
+          }
+        },
+        "required": [
+          "type",
+          "queries"
+        ]
+      },
+      "LineInsightFromCallTable": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
           "type": {
             "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `line` to create a line insight.",
             "enum": [
-              "google.calendar.event.create"
-            ],
-            "description": "The type of tool. \"google.calendar.event.create\" for Google Calendar tool."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+              "line"
+            ]
           },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+          "formulas": {
+            "type": "array",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "metadata": {
+            "description": "This is the metadata for the insight.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/LineInsightMetadata"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRangeWithStep"
+          },
+          "groupBy": {
+            "type": "string",
+            "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
+            "example": [
+              "assistant_id"
+            ],
+            "enum": [
+              "assistantId",
+              "workflowId",
+              "squadId",
+              "phoneNumberId",
+              "type",
+              "endedReason",
+              "customerNumber",
+              "campaignId",
+              "artifact.structuredOutputs[OutputID]"
             ]
+          },
+          "queries": {
+            "type": "array",
+            "description": "These are the queries to run to generate the insight.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
+                },
+                {
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
+                }
+              ]
+            }
           }
         },
         "required": [
           "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "queries"
         ]
       },
-      "GoogleSheetsRowAppendTool": {
+      "TextInsightFromCallTable": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
-          "messages": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of the Insight.\nIt is required to be `text` to create a text insight.",
+            "enum": [
+              "text"
+            ]
+          },
+          "formula": {
+            "type": "object",
+            "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
+            "items": {
+              "$ref": "#/components/schemas/InsightFormula"
+            }
+          },
+          "timeRange": {
+            "$ref": "#/components/schemas/InsightTimeRange"
+          },
+          "queries": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "These are the queries to run to generate the insight.\nFor Text Insights, we only allow a single query, or require a formula if multiple queries are provided",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
+                  "title": "JSONQueryOnCallTableWithStringTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
+                  "title": "JSONQueryOnCallTableWithNumberTypeColumn"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
+                  "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
                 }
               ]
             }
+          }
+        },
+        "required": [
+          "type",
+          "queries"
+        ]
+      },
+      "InsightFormula": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the formula.\nIt will be used to label the formula in the insight board on the UI.",
+            "example": "Booking Rate",
+            "minLength": 1,
+            "maxLength": 255
           },
-          "type": {
+          "formula": {
+            "type": "string",
+            "description": "This is the formula to calculate the insight from the queries.\nThe formula needs to be a valid mathematical expression.\nThe formula must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nAny MathJS formula is allowed - https://mathjs.org/docs/expressions/syntax.html\n\nCommon valid math operations are +, -, *, /, %",
+            "minLength": 1,
+            "maxLength": 1000
+          }
+        },
+        "required": [
+          "formula"
+        ]
+      },
+      "InsightRunFormatPlan": {
+        "type": "object",
+        "properties": {
+          "format": {
             "type": "string",
+            "description": "This is the format of the data to return.\nIf not provided, defaults to \"raw\".\nRaw provides the data as fetched from the database, with formulas evaluated.\nRecharts provides the data in a format that can is ready to be used by recharts.js to render charts.",
+            "example": "raw",
             "enum": [
-              "google.sheets.row.append"
-            ],
-            "description": "The type of tool. \"google.sheets.row.append\" for Google Sheets tool."
+              "raw",
+              "recharts"
+            ]
+          }
+        }
+      },
+      "InsightRunDTO": {
+        "type": "object",
+        "properties": {
+          "formatPlan": {
+            "$ref": "#/components/schemas/InsightRunFormatPlan"
           },
-          "id": {
+          "timeRangeOverride": {
+            "description": "This is the optional time range override for the insight.\nIf provided, overrides every field in the insight's timeRange.\nIf this is provided with missing fields, defaults will be used, not the insight's timeRange.\nstart default - \"-7d\"\nend default - \"now\"\nstep default - \"day\"\nFor Pie and Text Insights, step will be ignored even if provided.",
+            "example": "{ start: \"2025-01-01\", end: \"2025-01-07\", step: \"day\" }",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/InsightTimeRangeWithStep"
+              }
+            ]
+          },
+          "assistantId": {
             "type": "string",
-            "description": "This is the unique identifier for the tool."
+            "description": "Optional runtime assistant scope for dashboards.\nThis is applied to call-table queries without mutating the saved insight."
+          }
+        }
+      },
+      "InsightRunResponse": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string"
+          },
+          "insightId": {
+            "type": "string"
           },
           "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "type": "string"
           },
           "createdAt": {
             "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "type": "string"
           },
           "updatedAt": {
             "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+            "type": "string"
           }
         },
         "required": [
-          "type",
           "id",
+          "insightId",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "GoogleCalendarCheckAvailabilityTool": {
+      "Insight": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "name": {
+            "type": "string",
+            "description": "This is the name of the Insight.",
+            "minLength": 1,
+            "maxLength": 255
           },
           "type": {
             "type": "string",
+            "description": "This is the type of the Insight.",
             "enum": [
-              "google.calendar.availability.check"
-            ],
-            "description": "The type of tool. \"google.calendar.availability.check\" for Google Calendar availability check tool."
+              "bar",
+              "line",
+              "pie",
+              "text"
+            ]
           },
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the tool."
+            "description": "This is the unique identifier for the Insight."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "This is the unique identifier for the org that this Insight belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "description": "This is the ISO 8601 date-time string of when the Insight was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+            "description": "This is the ISO 8601 date-time string of when the Insight was last updated."
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "systemKey": {
+            "type": "string",
+            "description": "Stable server-owned identifier for system-created insights."
           }
         },
         "required": [
@@ -23827,4165 +49383,5049 @@
           "updatedAt"
         ]
       },
-      "SlackSendMessageTool": {
+      "InsightPaginatedResponse": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Insight"
+            }
           },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "CreateEvalDTO": {
+        "type": "object",
+        "properties": {
           "messages": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "This is the mock conversation that will be used to evaluate the flow of the conversation.\n\nMock Messages are used to simulate the flow of the conversation\n\nEvaluation Messages are used as checkpoints in the flow where the model's response to previous conversation needs to be evaluated to check the content and tool calls",
+            "example": "[{ role: \"user\", content: \"Hello, how are you?\" }, { role: \"assistant\", judgePlan: { type: \"exact\", content: \"I am good, thank you!\" } }]",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageMock",
+                  "title": "ChatEvalAssistantMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/ChatEvalSystemMessageMock",
+                  "title": "ChatEvalSystemMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageMock",
+                  "title": "ChatEvalToolResponseMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageEvaluation",
+                  "title": "ChatEvalToolResponseMessageEvaluation"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatEvalUserMessageMock",
+                  "title": "ChatEvalUserMessageMock"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageEvaluation",
+                  "title": "ChatEvalAssistantMessageEvaluation"
                 }
               ]
             }
           },
-          "type": {
-            "type": "string",
-            "enum": [
-              "slack.message.send"
-            ],
-            "description": "The type of tool. \"slack.message.send\" for Slack send message tool."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
-          },
-          "orgId": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "This is the name of the eval.\nIt helps identify what the eval is checking for.",
+            "example": "Verified User Flow Eval",
+            "minLength": 1,
+            "maxLength": 80
           },
-          "createdAt": {
-            "format": "date-time",
+          "description": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "description": "This is the description of the eval.\nThis helps describe the eval and its purpose in detail. It will not be used to evaluate the flow of the conversation.",
+            "example": "This eval checks if the user flow is verified.",
+            "maxLength": 500
           },
-          "updatedAt": {
-            "format": "date-time",
+          "type": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+            "description": "This is the type of the eval.\nCurrently it is fixed to `chat.mockConversation`.",
+            "example": "chat.mockConversation",
+            "enum": [
+              "chat.mockConversation"
             ]
           }
         },
         "required": [
-          "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "messages",
+          "type"
         ]
       },
-      "SmsSendTool": {
+      "Eval": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "This is the mock conversation that will be used to evaluate the flow of the conversation.\n\nMock Messages are used to simulate the flow of the conversation\n\nEvaluation Messages are used as checkpoints in the flow where the model's response to previous conversation needs to be evaluated to check the content and tool calls",
+            "example": "[{ role: \"user\", content: \"Hello, how are you?\" }, { role: \"assistant\", judgePlan: { type: \"exact\", content: \"I am good, thank you!\" } }]",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageMock",
+                  "title": "ChatEvalAssistantMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/ChatEvalSystemMessageMock",
+                  "title": "ChatEvalSystemMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageMock",
+                  "title": "ChatEvalToolResponseMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageEvaluation",
+                  "title": "ChatEvalToolResponseMessageEvaluation"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatEvalUserMessageMock",
+                  "title": "ChatEvalUserMessageMock"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageEvaluation",
+                  "title": "ChatEvalAssistantMessageEvaluation"
                 }
               ]
             }
           },
-          "type": {
-            "type": "string",
-            "enum": [
-              "sms"
-            ],
-            "description": "The type of tool. \"sms\" for Twilio SMS sending tool."
-          },
           "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool."
+            "type": "string"
           },
           "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "type": "string"
           },
           "createdAt": {
             "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "type": "string"
           },
           "updatedAt": {
             "format": "date-time",
+            "type": "string"
+          },
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+            "description": "This is the name of the eval.\nIt helps identify what the eval is checking for.",
+            "example": "Verified User Flow Eval",
+            "minLength": 1,
+            "maxLength": 80
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "description": {
+            "type": "string",
+            "description": "This is the description of the eval.\nThis helps describe the eval and its purpose in detail. It will not be used to evaluate the flow of the conversation.",
+            "example": "This eval checks if the user flow is verified.",
+            "maxLength": 500
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "type": {
+            "type": "string",
+            "description": "This is the type of the eval.\nCurrently it is fixed to `chat.mockConversation`.",
+            "example": "chat.mockConversation",
+            "enum": [
+              "chat.mockConversation"
             ]
           }
         },
         "required": [
-          "type",
+          "messages",
           "id",
           "orgId",
           "createdAt",
-          "updatedAt"
+          "updatedAt",
+          "type"
         ]
       },
-      "McpTool": {
+      "EvalModelListOptions": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model.",
+            "enum": [
+              "openai",
+              "anthropic",
+              "google",
+              "groq",
+              "custom-llm"
+            ]
+          }
+        },
+        "required": [
+          "provider"
+        ]
+      },
+      "EvalUserEditable": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "This is the mock conversation that will be used to evaluate the flow of the conversation.\n\nMock Messages are used to simulate the flow of the conversation\n\nEvaluation Messages are used as checkpoints in the flow where the model's response to previous conversation needs to be evaluated to check the content and tool calls",
+            "example": "[{ role: \"user\", content: \"Hello, how are you?\" }, { role: \"assistant\", judgePlan: { type: \"exact\", content: \"I am good, thank you!\" } }]",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageMock",
+                  "title": "ChatEvalAssistantMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/ChatEvalSystemMessageMock",
+                  "title": "ChatEvalSystemMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageMock",
+                  "title": "ChatEvalToolResponseMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageEvaluation",
+                  "title": "ChatEvalToolResponseMessageEvaluation"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatEvalUserMessageMock",
+                  "title": "ChatEvalUserMessageMock"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageEvaluation",
+                  "title": "ChatEvalAssistantMessageEvaluation"
                 }
               ]
             }
           },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the eval.\nIt helps identify what the eval is checking for.",
+            "example": "Verified User Flow Eval",
+            "minLength": 1,
+            "maxLength": 80
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of the eval.\nThis helps describe the eval and its purpose in detail. It will not be used to evaluate the flow of the conversation.",
+            "example": "This eval checks if the user flow is verified.",
+            "maxLength": 500
+          },
           "type": {
             "type": "string",
+            "description": "This is the type of the eval.\nCurrently it is fixed to `chat.mockConversation`.",
+            "example": "chat.mockConversation",
             "enum": [
-              "mcp"
-            ],
-            "description": "The type of tool. \"mcp\" for MCP tool."
+              "chat.mockConversation"
+            ]
+          }
+        },
+        "required": [
+          "messages",
+          "type"
+        ]
+      },
+      "ChatEvalAssistantMessageMockToolCall": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the tool that will be called.\nIt should be one of the tools created in the organization.",
+            "example": "get_weather",
+            "maxLength": 100
           },
-          "id": {
+          "arguments": {
+            "type": "object",
+            "description": "This is the arguments that will be passed to the tool call.",
+            "example": "\"{\"city\": \"San Francisco\"}\""
+          }
+        },
+        "required": [
+          "name"
+        ]
+      },
+      "ChatEvalAssistantMessageMock": {
+        "type": "object",
+        "properties": {
+          "role": {
             "type": "string",
-            "description": "This is the unique identifier for the tool."
+            "enum": [
+              "assistant"
+            ],
+            "description": "This is the role of the message author.\nFor a mock assistant message, the role is always 'assistant'\n@default 'assistant'",
+            "default": "assistant"
           },
-          "orgId": {
+          "content": {
             "type": "string",
-            "description": "This is the unique identifier for the organization that this tool belongs to."
+            "description": "This is the content of the assistant message.\nThis is the message that the assistant would have sent.",
+            "example": "The weather in San Francisco is sunny.",
+            "maxLength": 1000
           },
-          "createdAt": {
-            "format": "date-time",
+          "toolCalls": {
+            "description": "This is the tool calls that will be made by the assistant.",
+            "example": "[{ name: \"get_weather\", arguments: { city: \"San Francisco\" } }]",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ChatEvalAssistantMessageMockToolCall"
+            }
+          }
+        },
+        "required": [
+          "role"
+        ]
+      },
+      "ChatEvalSystemMessageMock": {
+        "type": "object",
+        "properties": {
+          "role": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was created."
+            "enum": [
+              "system"
+            ],
+            "description": "This is the role of the message author.\nFor a mock system message, the role is always 'system'\n@default 'system'",
+            "default": "system"
           },
-          "updatedAt": {
-            "format": "date-time",
+          "content": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the tool was last updated."
+            "description": "This is the content of the system message that would have been added in the middle of the conversation.\nDo not include the assistant prompt as a part of this message. It will automatically be fetched during runtime.",
+            "example": "You are a helpful assistant."
+          }
+        },
+        "required": [
+          "role",
+          "content"
+        ]
+      },
+      "ChatEvalToolResponseMessageMock": {
+        "type": "object",
+        "properties": {
+          "role": {
+            "type": "string",
+            "enum": [
+              "tool"
+            ],
+            "description": "This is the role of the message author.\nFor a mock tool response message, the role is always 'tool'\n@default 'tool'",
+            "default": "tool"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
+          "content": {
+            "type": "string",
+            "description": "This is the content of the tool response message. JSON Objects should be stringified.",
+            "examples": [
+              "The weather in San Francisco is sunny.",
+              "{weather: sunny}"
             ]
+          }
+        },
+        "required": [
+          "role",
+          "content"
+        ]
+      },
+      "ChatEvalUserMessageMock": {
+        "type": "object",
+        "properties": {
+          "role": {
+            "type": "string",
+            "enum": [
+              "user"
+            ],
+            "description": "This is the role of the message author.\nFor a mock user message, the role is always 'user'\n@default 'user'",
+            "default": "user"
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "content": {
+            "type": "string",
+            "description": "This is the content of the user message.\nThis is the message that the user would have sent.",
+            "example": "Hello, how are you?",
+            "maxLength": 1000
           }
         },
         "required": [
-          "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "role",
+          "content"
         ]
       },
-      "CreateOutputToolDTO": {
+      "AssistantMessageEvaluationContinuePlan": {
         "type": "object",
         "properties": {
-          "async": {
+          "exitOnFailureEnabled": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+            "description": "This is whether the evaluation should exit if the assistant message evaluates to false.\nBy default, it is false and the evaluation will continue.\n@default false"
           },
-          "messages": {
+          "contentOverride": {
+            "type": "string",
+            "description": "This is the content that will be used in the conversation for this assistant turn moving forward if provided.\nIt will override the content received from the model.",
+            "example": "The weather in San Francisco is sunny.",
+            "maxLength": 1000
+          },
+          "toolCallsOverride": {
+            "description": "This is the tool calls that will be used in the conversation for this assistant turn moving forward if provided.\nIt will override the tool calls received from the model.",
+            "example": "[{ name: \"get_weather\", arguments: { city: \"San Francisco\" } }]",
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "$ref": "#/components/schemas/ChatEvalAssistantMessageMockToolCall"
             }
-          },
-          "type": {
+          }
+        }
+      },
+      "ChatEvalAssistantMessageEvaluation": {
+        "type": "object",
+        "properties": {
+          "role": {
             "type": "string",
             "enum": [
-              "output"
+              "assistant"
             ],
-            "description": "The type of tool. \"output\" for Output tool."
+            "description": "This is the role of the message author.\nFor an assistant message evaluation, the role is always 'assistant'\n@default 'assistant'",
+            "default": "assistant"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
+          "judgePlan": {
+            "description": "This is the judge plan that instructs how to evaluate the assistant message.\nThe assistant message can be evaluated against fixed content (exact match or RegEx) or with an LLM-as-judge by defining the evaluation criteria in a prompt.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/AssistantMessageJudgePlanExact",
+                "title": "AssistantMessageJudgePlanExact"
+              },
+              {
+                "$ref": "#/components/schemas/AssistantMessageJudgePlanRegex",
+                "title": "AssistantMessageJudgePlanRegex"
+              },
+              {
+                "$ref": "#/components/schemas/AssistantMessageJudgePlanAI",
+                "title": "AssistantMessageJudgePlanAI"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "continuePlan": {
+            "description": "This is the plan for how the overall evaluation will proceed after the assistant message is evaluated.\nThis lets you configure whether to stop the evaluation if this message fails, and whether to override any content for future turns",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/AssistantMessageEvaluationContinuePlan"
               }
             ]
           }
         },
         "required": [
-          "type"
+          "role",
+          "judgePlan"
         ]
       },
-      "CreateBashToolDTO": {
+      "EvalOpenAIModel": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model (`openai`).",
+            "enum": [
+              "openai"
+            ]
           },
-          "type": {
+          "model": {
             "type": "string",
+            "description": "This is the OpenAI model that will be used.\n\nWhen using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense.\nThis is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.",
+            "maxLength": 100,
             "enum": [
-              "bash"
-            ],
-            "description": "The type of tool. \"bash\" for Bash tool."
+              "gpt-5.4",
+              "gpt-5.4-mini",
+              "gpt-5.4-nano",
+              "gpt-5.2",
+              "gpt-5.2-chat-latest",
+              "gpt-5.1",
+              "gpt-5.1-chat-latest",
+              "gpt-5",
+              "gpt-5-chat-latest",
+              "gpt-5-mini",
+              "gpt-5-nano",
+              "gpt-4.1-2025-04-14",
+              "gpt-4.1-mini-2025-04-14",
+              "gpt-4.1-nano-2025-04-14",
+              "gpt-4.1",
+              "gpt-4.1-mini",
+              "gpt-4.1-nano",
+              "chatgpt-4o-latest",
+              "o3",
+              "o3-mini",
+              "o4-mini",
+              "o1-mini",
+              "o1-mini-2024-09-12",
+              "gpt-4o-mini-2024-07-18",
+              "gpt-4o-mini",
+              "gpt-4o",
+              "gpt-4o-2024-05-13",
+              "gpt-4o-2024-08-06",
+              "gpt-4o-2024-11-20",
+              "gpt-4-turbo",
+              "gpt-4-turbo-2024-04-09",
+              "gpt-4-turbo-preview",
+              "gpt-4-0125-preview",
+              "gpt-4-1106-preview",
+              "gpt-4",
+              "gpt-4-0613",
+              "gpt-3.5-turbo",
+              "gpt-3.5-turbo-0125",
+              "gpt-3.5-turbo-1106",
+              "gpt-3.5-turbo-16k",
+              "gpt-3.5-turbo-0613",
+              "gpt-4.1-2025-04-14:westus",
+              "gpt-4.1-2025-04-14:eastus2",
+              "gpt-4.1-2025-04-14:eastus",
+              "gpt-4.1-2025-04-14:westus3",
+              "gpt-4.1-2025-04-14:northcentralus",
+              "gpt-4.1-2025-04-14:southcentralus",
+              "gpt-4.1-2025-04-14:westeurope",
+              "gpt-4.1-2025-04-14:germanywestcentral",
+              "gpt-4.1-2025-04-14:polandcentral",
+              "gpt-4.1-2025-04-14:spaincentral",
+              "gpt-4.1-mini-2025-04-14:westus",
+              "gpt-4.1-mini-2025-04-14:eastus2",
+              "gpt-4.1-mini-2025-04-14:eastus",
+              "gpt-4.1-mini-2025-04-14:westus3",
+              "gpt-4.1-mini-2025-04-14:northcentralus",
+              "gpt-4.1-mini-2025-04-14:southcentralus",
+              "gpt-4.1-mini-2025-04-14:westeurope",
+              "gpt-4.1-mini-2025-04-14:germanywestcentral",
+              "gpt-4.1-mini-2025-04-14:polandcentral",
+              "gpt-4.1-mini-2025-04-14:spaincentral",
+              "gpt-4.1-nano-2025-04-14:westus",
+              "gpt-4.1-nano-2025-04-14:eastus2",
+              "gpt-4.1-nano-2025-04-14:westus3",
+              "gpt-4.1-nano-2025-04-14:northcentralus",
+              "gpt-4.1-nano-2025-04-14:southcentralus",
+              "gpt-4o-2024-11-20:swedencentral",
+              "gpt-4o-2024-11-20:westus",
+              "gpt-4o-2024-11-20:eastus2",
+              "gpt-4o-2024-11-20:eastus",
+              "gpt-4o-2024-11-20:westus3",
+              "gpt-4o-2024-11-20:southcentralus",
+              "gpt-4o-2024-11-20:westeurope",
+              "gpt-4o-2024-11-20:germanywestcentral",
+              "gpt-4o-2024-11-20:polandcentral",
+              "gpt-4o-2024-11-20:spaincentral",
+              "gpt-4o-2024-08-06:westus",
+              "gpt-4o-2024-08-06:westus3",
+              "gpt-4o-2024-08-06:eastus",
+              "gpt-4o-2024-08-06:eastus2",
+              "gpt-4o-2024-08-06:northcentralus",
+              "gpt-4o-2024-08-06:southcentralus",
+              "gpt-4o-mini-2024-07-18:westus",
+              "gpt-4o-mini-2024-07-18:westus3",
+              "gpt-4o-mini-2024-07-18:eastus",
+              "gpt-4o-mini-2024-07-18:eastus2",
+              "gpt-4o-mini-2024-07-18:northcentralus",
+              "gpt-4o-mini-2024-07-18:southcentralus",
+              "gpt-4o-2024-05-13:eastus2",
+              "gpt-4o-2024-05-13:eastus",
+              "gpt-4o-2024-05-13:northcentralus",
+              "gpt-4o-2024-05-13:southcentralus",
+              "gpt-4o-2024-05-13:westus3",
+              "gpt-4o-2024-05-13:westus",
+              "gpt-4-turbo-2024-04-09:eastus2",
+              "gpt-4-0125-preview:eastus",
+              "gpt-4-0125-preview:northcentralus",
+              "gpt-4-0125-preview:southcentralus",
+              "gpt-4-1106-preview:australiaeast",
+              "gpt-4-1106-preview:canadaeast",
+              "gpt-4-1106-preview:france",
+              "gpt-4-1106-preview:india",
+              "gpt-4-1106-preview:norway",
+              "gpt-4-1106-preview:swedencentral",
+              "gpt-4-1106-preview:uk",
+              "gpt-4-1106-preview:westus",
+              "gpt-4-1106-preview:westus3",
+              "gpt-4-0613:canadaeast",
+              "gpt-3.5-turbo-0125:canadaeast",
+              "gpt-3.5-turbo-0125:northcentralus",
+              "gpt-3.5-turbo-0125:southcentralus",
+              "gpt-3.5-turbo-1106:canadaeast",
+              "gpt-3.5-turbo-1106:westus"
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model. For LLM-as-a-judge, it's recommended to set it between 0 - 0.3 to avoid hallucinations and ensure the model judges the output correctly based on the instructions.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.\nIf your Judge instructions return `true` or `false` takes only 1 token (as per the OpenAI Tokenizer), and therefore is recommended to set it to a low number to force the model to return a short response.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "subType": {
+          "messages": {
+            "description": "These are the messages which will instruct the AI Judge on how to evaluate the assistant message.\nThe LLM-Judge must respond with \"pass\" or \"fail\" to indicate if the assistant message passes the eval.\n\nTo access the messages in the mock conversation, use the LiquidJS variable `{{messages}}`.\nThe assistant message to be evaluated will be passed as the last message in the `messages` array and can be accessed using `{{messages[-1]}}`.\n\nIt is recommended to use the system message to instruct the LLM how to evaluate the assistant message, and then use the first user message to pass the assistant message to be evaluated.",
+            "example": "{",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
+          }
+        },
+        "required": [
+          "provider",
+          "model",
+          "messages"
+        ]
+      },
+      "EvalAnthropicModel": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
+            "description": "This is the provider of the model (`anthropic`).",
             "enum": [
-              "bash_20241022"
-            ],
-            "description": "The sub type of tool."
+              "anthropic"
+            ]
           },
-          "name": {
+          "model": {
             "type": "string",
-            "description": "The name of the tool, fixed to 'bash'",
-            "default": "bash",
+            "description": "This is the specific model that will be used.",
+            "maxLength": 100,
             "enum": [
-              "bash"
+              "claude-3-opus-20240229",
+              "claude-3-sonnet-20240229",
+              "claude-3-haiku-20240307",
+              "claude-3-5-sonnet-20240620",
+              "claude-3-5-sonnet-20241022",
+              "claude-3-5-haiku-20241022",
+              "claude-3-7-sonnet-20250219",
+              "claude-opus-4-20250514",
+              "claude-opus-4-5-20251101",
+              "claude-opus-4-6",
+              "claude-sonnet-4-20250514",
+              "claude-sonnet-4-5-20250929",
+              "claude-sonnet-4-6",
+              "claude-haiku-4-5-20251001"
             ]
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "thinking": {
+            "description": "This is the optional configuration for Anthropic's thinking feature.\n\n- If provided, `maxTokens` must be greater than `thinking.budgetTokens`.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/AnthropicThinkingConfig"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model. For LLM-as-a-judge, it's recommended to set it between 0 - 0.3 to avoid hallucinations and ensure the model judges the output correctly based on the instructions.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.\nIf your Judge instructions return `true` or `false` takes only 1 token (as per the OpenAI Tokenizer), and therefore is recommended to set it to a low number to force the model to return a short response.",
+            "minimum": 50,
+            "maximum": 10000
+          },
+          "messages": {
+            "description": "These are the messages which will instruct the AI Judge on how to evaluate the assistant message.\nThe LLM-Judge must respond with \"pass\" or \"fail\" to indicate if the assistant message passes the eval.\n\nTo access the messages in the mock conversation, use the LiquidJS variable `{{messages}}`.\nThe assistant message to be evaluated will be passed as the last message in the `messages` array and can be accessed using `{{messages[-1]}}`.\n\nIt is recommended to use the system message to instruct the LLM how to evaluate the assistant message, and then use the first user message to pass the assistant message to be evaluated.",
+            "example": "{",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
           }
         },
         "required": [
-          "type",
-          "subType",
-          "name"
+          "provider",
+          "model",
+          "messages"
         ]
       },
-      "CreateComputerToolDTO": {
+      "EvalGoogleModel": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model (`google`).",
+            "enum": [
+              "google"
+            ]
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. gpt-4o",
+            "maxLength": 100,
+            "enum": [
+              "gemini-3-flash-preview",
+              "gemini-2.5-pro",
+              "gemini-2.5-flash",
+              "gemini-2.5-flash-lite",
+              "gemini-2.0-flash-thinking-exp",
+              "gemini-2.0-pro-exp-02-05",
+              "gemini-2.0-flash",
+              "gemini-2.0-flash-lite",
+              "gemini-2.0-flash-exp",
+              "gemini-2.0-flash-realtime-exp",
+              "gemini-1.5-flash",
+              "gemini-1.5-flash-002",
+              "gemini-1.5-pro",
+              "gemini-1.5-pro-002",
+              "gemini-1.0-pro"
+            ]
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model. For LLM-as-a-judge, it's recommended to set it between 0 - 0.3 to avoid hallucinations and ensure the model judges the output correctly based on the instructions.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.\nIf your Judge instructions return `true` or `false` takes only 1 token (as per the OpenAI Tokenizer), and therefore is recommended to set it to a low number to force the model to return a short response.",
+            "minimum": 50,
+            "maximum": 10000
           },
           "messages": {
+            "description": "These are the messages which will instruct the AI Judge on how to evaluate the assistant message.\nThe LLM-Judge must respond with \"pass\" or \"fail\" to indicate if the assistant message passes the eval.\n\nTo access the messages in the mock conversation, use the LiquidJS variable `{{messages}}`.\nThe assistant message to be evaluated will be passed as the last message in the `messages` array and can be accessed using `{{messages[-1]}}`.\n\nIt is recommended to use the system message to instruct the LLM how to evaluate the assistant message, and then use the first user message to pass the assistant message to be evaluated.",
+            "example": "{",
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "type": "object"
             }
-          },
-          "type": {
-            "type": "string",
-            "enum": [
-              "computer"
-            ],
-            "description": "The type of tool. \"computer\" for Computer tool."
-          },
-          "subType": {
+          }
+        },
+        "required": [
+          "provider",
+          "model",
+          "messages"
+        ]
+      },
+      "EvalGroqModel": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
+            "description": "This is the provider of the model (`groq`).",
             "enum": [
-              "computer_20241022"
-            ],
-            "description": "The sub type of tool."
+              "groq"
+            ]
           },
-          "name": {
+          "model": {
             "type": "string",
-            "description": "The name of the tool, fixed to 'computer'",
-            "default": "computer",
+            "description": "This is the name of the model. Ex. gpt-4o",
+            "maxLength": 100,
             "enum": [
-              "computer"
+              "openai/gpt-oss-20b",
+              "openai/gpt-oss-120b",
+              "deepseek-r1-distill-llama-70b",
+              "llama-3.3-70b-versatile",
+              "llama-3.1-405b-reasoning",
+              "llama-3.1-8b-instant",
+              "llama3-8b-8192",
+              "llama3-70b-8192",
+              "gemma2-9b-it",
+              "moonshotai/kimi-k2-instruct-0905",
+              "meta-llama/llama-4-maverick-17b-128e-instruct",
+              "meta-llama/llama-4-scout-17b-16e-instruct",
+              "mistral-saba-24b",
+              "compound-beta",
+              "compound-beta-mini"
             ]
           },
-          "displayWidthPx": {
-            "type": "number",
-            "description": "The display width in pixels"
-          },
-          "displayHeightPx": {
+          "temperature": {
             "type": "number",
-            "description": "The display height in pixels"
+            "description": "This is the temperature of the model. For LLM-as-a-judge, it's recommended to set it between 0 - 0.3 to avoid hallucinations and ensure the model judges the output correctly based on the instructions.",
+            "minimum": 0,
+            "maximum": 2
           },
-          "displayNumber": {
+          "maxTokens": {
             "type": "number",
-            "description": "Optional display number"
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+            "description": "This is the max tokens of the model.\nIf your Judge instructions return `true` or `false` takes only 1 token (as per the OpenAI Tokenizer), and therefore is recommended to set it to a low number to force the model to return a short response.",
+            "minimum": 50,
+            "maximum": 10000
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "messages": {
+            "description": "These are the messages which will instruct the AI Judge on how to evaluate the assistant message.\nThe LLM-Judge must respond with \"pass\" or \"fail\" to indicate if the assistant message passes the eval.\n\nTo access the messages in the mock conversation, use the LiquidJS variable `{{messages}}`.\nThe assistant message to be evaluated will be passed as the last message in the `messages` array and can be accessed using `{{messages[-1]}}`.\n\nIt is recommended to use the system message to instruct the LLM how to evaluate the assistant message, and then use the first user message to pass the assistant message to be evaluated.",
+            "example": "{",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
           }
         },
         "required": [
-          "type",
-          "subType",
-          "name",
-          "displayWidthPx",
-          "displayHeightPx"
+          "provider",
+          "model",
+          "messages"
         ]
       },
-      "CreateTextEditorToolDTO": {
+      "EvalCustomModel": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "provider": {
+            "type": "string",
+            "description": "This is the provider of the model (`custom-llm`).",
+            "enum": [
+              "custom-llm"
+            ]
+          },
+          "url": {
+            "type": "string",
+            "description": "These is the URL we'll use for the OpenAI client's `baseURL`. Ex. https://openrouter.ai/api/v1"
+          },
+          "headers": {
+            "type": "object",
+            "description": "These are the headers we'll use for the OpenAI client's `headers`."
+          },
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This sets the timeout for the connection to the custom provider without needing to stream any tokens back. Default is 20 seconds.",
+            "minimum": 20,
+            "maximum": 600
+          },
+          "model": {
+            "type": "string",
+            "description": "This is the name of the model. Ex. gpt-4o",
+            "maxLength": 100
+          },
+          "temperature": {
+            "type": "number",
+            "description": "This is the temperature of the model. For LLM-as-a-judge, it's recommended to set it between 0 - 0.3 to avoid hallucinations and ensure the model judges the output correctly based on the instructions.",
+            "minimum": 0,
+            "maximum": 2
+          },
+          "maxTokens": {
+            "type": "number",
+            "description": "This is the max tokens of the model.\nIf your Judge instructions return `true` or `false` takes only 1 token (as per the OpenAI Tokenizer), and therefore is recommended to set it to a low number to force the model to return a short response.",
+            "minimum": 50,
+            "maximum": 10000
           },
           "messages": {
+            "description": "These are the messages which will instruct the AI Judge on how to evaluate the assistant message.\nThe LLM-Judge must respond with \"pass\" or \"fail\" to indicate if the assistant message passes the eval.\n\nTo access the messages in the mock conversation, use the LiquidJS variable `{{messages}}`.\nThe assistant message to be evaluated will be passed as the last message in the `messages` array and can be accessed using `{{messages[-1]}}`.\n\nIt is recommended to use the system message to instruct the LLM how to evaluate the assistant message, and then use the first user message to pass the assistant message to be evaluated.",
+            "example": "{",
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "type": "object"
             }
+          }
+        },
+        "required": [
+          "provider",
+          "url",
+          "model",
+          "messages"
+        ]
+      },
+      "AssistantMessageJudgePlanAI": {
+        "type": "object",
+        "properties": {
+          "model": {
+            "description": "This is the model to use for the LLM-as-a-judge.\nIf not provided, will default to the assistant's model.\n\nThe instructions on how to evaluate the model output with this LLM-Judge must be passed as a system message in the messages array of the model.\n\nThe Mock conversation can be passed to the LLM-Judge to evaluate using the prompt {{messages}} and will be evaluated as a LiquidJS Variable. To access and judge only the last message, use {{messages[-1]}}\n\nThe LLM-Judge must respond with \"pass\" or \"fail\" and only those two responses are allowed.",
+            "example": "{",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/EvalOpenAIModel",
+                "title": "EvalOpenAIModel"
+              },
+              {
+                "$ref": "#/components/schemas/EvalAnthropicModel",
+                "title": "EvalAnthropicModel"
+              },
+              {
+                "$ref": "#/components/schemas/EvalGoogleModel",
+                "title": "EvalGoogleModel"
+              },
+              {
+                "$ref": "#/components/schemas/EvalCustomModel",
+                "title": "EvalCustomModel"
+              }
+            ]
           },
           "type": {
             "type": "string",
             "enum": [
-              "textEditor"
+              "ai"
             ],
-            "description": "The type of tool. \"textEditor\" for Text Editor tool."
+            "description": "This is the type of the judge plan.\nUse 'ai' to evaluate the assistant message content using LLM-as-a-judge.\n@default 'ai'"
           },
-          "subType": {
+          "autoIncludeMessageHistory": {
+            "type": "boolean",
+            "description": "This is the flag to enable automatically adding the liquid variable {{messages}} to the model's messages array\nThis is only applicable if the user has not provided any messages in the model's messages array\n@default true"
+          }
+        },
+        "required": [
+          "model",
+          "type"
+        ]
+      },
+      "ChatEvalToolResponseMessageEvaluation": {
+        "type": "object",
+        "properties": {
+          "role": {
             "type": "string",
             "enum": [
-              "text_editor_20241022"
+              "tool"
             ],
-            "description": "The sub type of tool."
-          },
-          "name": {
-            "type": "string",
-            "description": "The name of the tool, fixed to 'str_replace_editor'",
-            "default": "str_replace_editor",
-            "enum": [
-              "str_replace_editor"
-            ]
+            "description": "This is the role of the message author.\nFor a tool response message evaluation, the role is always 'tool'\n@default 'tool'",
+            "default": "tool"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
+          "judgePlan": {
+            "description": "This is the judge plan that instructs how to evaluate the tool response message.\nThe tool response message can be evaluated with an LLM-as-judge by defining the evaluation criteria in a prompt.",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/AssistantMessageJudgePlanAI",
+                "title": "AssistantMessageJudgePlanAI"
               }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+            ],
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/AssistantMessageJudgePlanAI"
               }
             ]
           }
         },
         "required": [
-          "type",
-          "subType",
-          "name"
+          "role",
+          "judgePlan"
         ]
       },
-      "CreateSmsSendToolDTO": {
+      "AssistantMessageJudgePlanExact": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
           "type": {
             "type": "string",
             "enum": [
-              "sms"
+              "exact"
             ],
-            "description": "The type of tool. \"sms\" for Twilio SMS sending tool."
+            "description": "This is the type of the judge plan.\nUse 'exact' for an exact match on the content and tool calls - without using LLM-as-a-judge.\n@default 'exact'"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "content": {
+            "type": "string",
+            "description": "This is what that will be used to evaluate the model's message content.\nIf you provide a string, the assistant message content will be evaluated against it as an exact match, case-insensitive.",
+            "example": "The weather in San Francisco is sunny.",
+            "maxLength": 1000
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "toolCalls": {
+            "description": "This is the tool calls that will be used to evaluate the model's message content.\nThe tool name must be a valid tool that the assistant is allowed to call.\n\nFor the Query tool, the arguments for the tool call are in the format - {knowledgeBaseNames: ['kb_name', 'kb_name_2']}\n\nFor the DTMF tool, the arguments for the tool call are in the format - {dtmf: \"1234*\"}\n\nFor the Handoff tool, the arguments for the tool call are in the format - {destination: \"assistant_id\"}\n\nFor the Transfer Call tool, the arguments for the tool call are in the format - {destination: \"phone_number_or_assistant_id\"}\n\nFor all other tools, they are called without arguments or with user-defined arguments",
+            "example": "[{ name: \"get_weather\", arguments: { city: \"San Francisco\" } }]",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ChatEvalAssistantMessageMockToolCall"
+            }
           }
         },
         "required": [
-          "type"
+          "type",
+          "content"
         ]
       },
-      "CreateMcpToolDTO": {
+      "AssistantMessageJudgePlanRegex": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
           "type": {
             "type": "string",
             "enum": [
-              "mcp"
+              "regex"
             ],
-            "description": "The type of tool. \"mcp\" for MCP tool."
+            "description": "This is the type of the judge plan.\nUse 'regex' for a regex match on the content and tool calls - without using LLM-as-a-judge.\n@default 'regex'"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "content": {
+            "type": "string",
+            "description": "This is what that will be used to evaluate the model's message content.\nThe content will be evaluated against the regex pattern provided in the Judge Plan content field.\nEvaluation is considered successful if the regex pattern matches any part of the assistant message content.",
+            "example": "/sunny/i",
+            "maxLength": 1000
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "toolCalls": {
+            "description": "This is the tool calls that will be used to evaluate the model's message content.\nThe tool name must be a valid tool that the assistant is allowed to call.\nThe values to the arguments for the tool call should be a Regular Expression.\nEvaluation is considered successful if the regex pattern matches any part of each tool call argument.\n\nFor the Query tool, the arguments for the tool call are in the format - {knowledgeBaseNames: ['kb_name', 'kb_name_2']}\n\nFor the DTMF tool, the arguments for the tool call are in the format - {dtmf: \"1234*\"}\n\nFor the Handoff tool, the arguments for the tool call are in the format - {destination: \"assistant_id\"}\n\nFor the Transfer Call tool, the arguments for the tool call are in the format - {destination: \"phone_number_or_assistant_id\"}\n\nFor all other tools, they are called without arguments or with user-defined arguments",
+            "example": "[{ name: \"get_weather\", arguments: { city: \"/San Francisco/i\" } }]",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ChatEvalAssistantMessageMockToolCall"
+            }
           }
         },
         "required": [
-          "type"
+          "type",
+          "content"
         ]
       },
-      "UpdateDtmfToolDTO": {
+      "GetEvalPaginatedDTO": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "id": {
+            "type": "string"
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "page": {
+            "type": "number",
+            "description": "This is the page number to return. Defaults to 1.",
+            "minimum": 1
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
+          "sortOrder": {
+            "type": "string",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "enum": [
+              "ASC",
+              "DESC"
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "sortBy": {
+            "type": "string",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "enum": [
+              "createdAt",
+              "duration",
+              "cost"
             ]
+          },
+          "limit": {
+            "type": "number",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "minimum": 0,
+            "maximum": 1000
+          },
+          "createdAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than the specified value."
+          },
+          "createdAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than the specified value."
+          },
+          "createdAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value."
+          },
+          "createdAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than or equal to the specified value."
+          },
+          "updatedAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than the specified value."
+          },
+          "updatedAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than the specified value."
+          },
+          "updatedAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value."
+          },
+          "updatedAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value."
           }
         }
       },
-      "UpdateEndCallToolDTO": {
+      "EvalPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Eval"
+            }
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "UpdateEvalDTO": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "This is the mock conversation that will be used to evaluate the flow of the conversation.\n\nMock Messages are used to simulate the flow of the conversation\n\nEvaluation Messages are used as checkpoints in the flow where the model's response to previous conversation needs to be evaluated to check the content and tool calls",
+            "example": "[{ role: \"user\", content: \"Hello, how are you?\" }, { role: \"assistant\", judgePlan: { type: \"exact\", content: \"I am good, thank you!\" } }]",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageMock",
+                  "title": "ChatEvalAssistantMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/ChatEvalSystemMessageMock",
+                  "title": "ChatEvalSystemMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageMock",
+                  "title": "ChatEvalToolResponseMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageEvaluation",
+                  "title": "ChatEvalToolResponseMessageEvaluation"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatEvalUserMessageMock",
+                  "title": "ChatEvalUserMessageMock"
+                },
+                {
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageEvaluation",
+                  "title": "ChatEvalAssistantMessageEvaluation"
                 }
               ]
             }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "name": {
+            "type": "string",
+            "description": "This is the name of the eval.\nIt helps identify what the eval is checking for.",
+            "example": "Verified User Flow Eval",
+            "minLength": 1,
+            "maxLength": 80
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of the eval.\nThis helps describe the eval and its purpose in detail. It will not be used to evaluate the flow of the conversation.",
+            "example": "This eval checks if the user flow is verified.",
+            "maxLength": 500
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the eval.\nCurrently it is fixed to `chat.mockConversation`.",
+            "example": "chat.mockConversation",
+            "enum": [
+              "chat.mockConversation"
+            ]
+          }
+        }
+      },
+      "CreateEvalRunDTO": {
+        "type": "object",
+        "properties": {
+          "eval": {
+            "description": "This is the transient eval that will be run",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateEvalDTO",
+                "title": "CreateEvalDTO"
+              }
+            ],
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/CreateEvalDTO"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
+          "target": {
+            "description": "This is the target that will be run against the eval",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/EvalRunTargetAssistant",
+                "title": "EvalRunTargetAssistant"
+              },
+              {
+                "$ref": "#/components/schemas/EvalRunTargetSquad",
+                "title": "EvalRunTargetSquad"
               }
             ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the run.\nCurrently it is fixed to `eval`.",
+            "example": "eval",
+            "enum": [
+              "eval"
+            ]
+          },
+          "evalId": {
+            "type": "string",
+            "description": "This is the id of the eval that will be run.",
+            "example": "123e4567-e89b-12d3-a456-426614174000"
           }
-        }
+        },
+        "required": [
+          "target",
+          "type"
+        ]
       },
-      "UpdateFunctionToolDTO": {
+      "EvalRunResult": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "status": {
+            "type": "string",
+            "description": "This is the status of the eval run result.\nThe status is only 'pass' or 'fail' for an eval run result.\nCurrently, An eval is considered `pass` only if all the Assistant Judge messages are evaluated to pass.",
+            "example": "pass",
+            "enum": [
+              "pass",
+              "fail"
+            ]
           },
           "messages": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "description": "This is the messages of the eval run result.\nIt contains the user/system messages",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
+                  "$ref": "#/components/schemas/ChatEvalUserMessageMock",
+                  "title": "ChatEvalUserMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
+                  "$ref": "#/components/schemas/ChatEvalSystemMessageMock",
+                  "title": "ChatEvalSystemMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
+                  "$ref": "#/components/schemas/ChatEvalToolResponseMessageMock",
+                  "title": "ChatEvalToolResponseMessageMock"
                 },
                 {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
+                  "$ref": "#/components/schemas/ChatEvalAssistantMessageMock",
+                  "title": "ChatEvalAssistantMessageMock"
                 }
               ]
             }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "startedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the start time of the eval run result.",
+            "example": "2021-01-01T00:00:00.000Z"
+          },
+          "endedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the end time of the eval run result.",
+            "example": "2021-01-01T00:00:00.000Z"
+          }
+        },
+        "required": [
+          "status",
+          "messages",
+          "startedAt",
+          "endedAt"
+        ]
+      },
+      "EvalRun": {
+        "type": "object",
+        "properties": {
+          "status": {
+            "type": "string",
+            "description": "This is the status of the eval run. When an eval run is created, the status is 'running'.\nWhen the eval run is completed, the status is 'ended'.",
+            "example": "running",
+            "enum": [
+              "running",
+              "ended",
+              "queued"
+            ]
+          },
+          "endedReason": {
+            "type": "string",
+            "description": "This is the reason for the eval run to end.\nWhen the eval run is completed normally i.e end of mock conversation, the status is 'mockConversation.done'.\nWhen the eval fails due to an error like Chat error or incorrect configuration, the status is 'error'.\nWhen the eval runs for too long, due to model issues or tool call issues, the status is 'timeout'.\nWhen the eval run is cancelled by the user, the status is 'cancelled'.\nWhen the eval run is cancelled by Vapi for any reason, the status is 'aborted'.",
+            "example": "mockConversation.done",
+            "enum": [
+              "mockConversation.done",
+              "error",
+              "timeout",
+              "cancelled",
+              "aborted"
+            ]
+          },
+          "eval": {
+            "description": "This is the transient eval that will be run",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateEvalDTO",
+                "title": "CreateEvalDTO"
+              }
+            ],
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/CreateEvalDTO"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
+          "target": {
+            "description": "This is the target that will be run against the eval",
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/EvalRunTargetAssistant",
+                "title": "EvalRunTargetAssistant"
+              },
+              {
+                "$ref": "#/components/schemas/EvalRunTargetSquad",
+                "title": "EvalRunTargetSquad"
               }
             ]
+          },
+          "id": {
+            "type": "string"
+          },
+          "orgId": {
+            "type": "string"
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string"
+          },
+          "startedAt": {
+            "format": "date-time",
+            "type": "string"
+          },
+          "endedAt": {
+            "format": "date-time",
+            "type": "string"
+          },
+          "endedMessage": {
+            "type": "string",
+            "description": "This is the ended message when the eval run ended for any reason apart from mockConversation.done",
+            "example": "The Assistant returned an error"
+          },
+          "results": {
+            "description": "This is the results of the eval or suite run.\nThe array will have a single item for an eval run, and multiple items each corresponding to the an eval in a suite run in the same order as the evals in the suite.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/EvalRunResult"
+            }
+          },
+          "cost": {
+            "type": "number",
+            "description": "This is the cost of the eval or suite run in USD.",
+            "example": 0.01
+          },
+          "costs": {
+            "description": "This is the break up of costs of the eval or suite run.",
+            "example": "[{ type: \"model\", model: \"gpt-4o\", cost: 0.01 }]",
+            "type": "array",
+            "items": {
+              "type": "object"
+            }
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the run.\nCurrently it is fixed to `eval`.",
+            "example": "eval",
+            "enum": [
+              "eval"
+            ]
+          },
+          "evalId": {
+            "type": "string",
+            "description": "This is the id of the eval that will be run.",
+            "example": "123e4567-e89b-12d3-a456-426614174000"
           }
-        }
+        },
+        "required": [
+          "status",
+          "endedReason",
+          "target",
+          "id",
+          "orgId",
+          "createdAt",
+          "startedAt",
+          "endedAt",
+          "results",
+          "cost",
+          "costs",
+          "type"
+        ]
       },
-      "UpdateGhlToolDTO": {
+      "EvalRunPaginatedResponse": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
+          "results": {
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "$ref": "#/components/schemas/EvalRun"
             }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "GetEvalRunPaginatedDTO": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string"
+          },
+          "page": {
+            "type": "number",
+            "description": "This is the page number to return. Defaults to 1.",
+            "minimum": 1
+          },
+          "sortOrder": {
+            "type": "string",
+            "description": "This is the sort order for pagination. Defaults to 'DESC'.",
+            "enum": [
+              "ASC",
+              "DESC"
+            ]
+          },
+          "sortBy": {
+            "type": "string",
+            "description": "This is the column to sort by. Defaults to 'createdAt'.",
+            "enum": [
+              "createdAt",
+              "duration",
+              "cost"
+            ]
+          },
+          "limit": {
+            "type": "number",
+            "description": "This is the maximum number of items to return. Defaults to 100.",
+            "minimum": 0,
+            "maximum": 1000
+          },
+          "createdAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than the specified value."
+          },
+          "createdAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than the specified value."
+          },
+          "createdAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is greater than or equal to the specified value."
+          },
+          "createdAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the createdAt is less than or equal to the specified value."
+          },
+          "updatedAtGt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than the specified value."
+          },
+          "updatedAtLt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than the specified value."
+          },
+          "updatedAtGe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is greater than or equal to the specified value."
+          },
+          "updatedAtLe": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This will return items where the updatedAt is less than or equal to the specified value."
+          }
+        }
+      },
+      "EvalRunTargetAssistant": {
+        "type": "object",
+        "properties": {
+          "assistant": {
+            "description": "This is the transient assistant that will be run against the eval",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO",
+                "title": "CreateAssistantDTO"
+              }
+            ],
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "assistantOverrides": {
+            "description": "This is the overrides that will be applied to the assistant.",
+            "example": "{",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides",
+                "title": "AssistantOverrides"
+              }
+            ],
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/AssistantOverrides"
               }
             ]
           },
-          "metadata": {
-            "$ref": "#/components/schemas/GhlToolMetadata"
+          "type": {
+            "type": "string",
+            "description": "This is the type of the target.\nCurrently it is fixed to `assistant`.",
+            "example": "assistant",
+            "enum": [
+              "assistant"
+            ]
+          },
+          "assistantId": {
+            "type": "string",
+            "description": "This is the id of the assistant that will be run against the eval",
+            "example": "123e4567-e89b-12d3-a456-426614174000"
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateMakeToolDTO": {
+      "EvalRunTargetSquad": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
-          },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "squad": {
+            "description": "This is the transient squad that will be run against the eval",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateSquadDTO",
+                "title": "CreateSquadDTO"
+              }
+            ],
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/CreateSquadDTO"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "assistantOverrides": {
+            "description": "This is the overrides that will be applied to the assistants.",
+            "example": "{",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides",
+                "title": "AssistantOverrides"
+              }
+            ],
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/AssistantOverrides"
               }
             ]
           },
-          "metadata": {
-            "$ref": "#/components/schemas/MakeToolMetadata"
+          "type": {
+            "type": "string",
+            "description": "This is the type of the target.\nCurrently it is fixed to `squad`.",
+            "example": "squad",
+            "enum": [
+              "squad"
+            ]
+          },
+          "squadId": {
+            "type": "string",
+            "description": "This is the id of the squad that will be run against the eval",
+            "example": "123e4567-e89b-12d3-a456-426614174000"
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateTransferCallToolDTO": {
+      "Scorecard": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the scorecard."
           },
-          "messages": {
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this scorecard belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the scorecard was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the scorecard was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the scorecard. It is only for user reference and will not be used for any evaluation.",
+            "maxLength": 80
+          },
+          "description": {
+            "type": "string",
+            "description": "This is the description of the scorecard. It is only for user reference and will not be used for any evaluation.",
+            "maxLength": 500
+          },
+          "metrics": {
+            "description": "These are the metrics that will be used to evaluate the scorecard.\nEach metric will have a set of conditions and points that will be used to generate the score.",
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "$ref": "#/components/schemas/ScorecardMetric"
             }
           },
-          "destinations": {
+          "assistantIds": {
+            "description": "These are the assistant IDs that this scorecard is linked to.\nWhen linked to assistants, this scorecard will be available for evaluation during those assistants' calls.",
             "type": "array",
-            "description": "These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TransferDestinationAssistant",
-                  "title": "Assistant"
-                },
-                {
-                  "$ref": "#/components/schemas/TransferDestinationStep",
-                  "title": "Step"
-                },
-                {
-                  "$ref": "#/components/schemas/TransferDestinationNumber",
-                  "title": "Number"
-                },
-                {
-                  "$ref": "#/components/schemas/TransferDestinationSip",
-                  "title": "Sip"
-                }
-              ]
+              "type": "string"
+            }
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "metrics"
+        ]
+      },
+      "ScorecardPaginatedResponse": {
+        "type": "object",
+        "properties": {
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/Scorecard"
             }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
+          }
+        },
+        "required": [
+          "results",
+          "metadata"
+        ]
+      },
+      "UpdateScorecardDTO": {
+        "type": "object",
+        "properties": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of the scorecard. It is only for user reference and will not be used for any evaluation.",
+            "maxLength": 80
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "description": {
+            "type": "string",
+            "description": "This is the description of the scorecard. It is only for user reference and will not be used for any evaluation.",
+            "maxLength": 500
+          },
+          "metrics": {
+            "description": "These are the metrics that will be used to evaluate the scorecard.\nEach metric will have a set of conditions and points that will be used to generate the score.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ScorecardMetric"
+            }
+          },
+          "assistantIds": {
+            "description": "These are the assistant IDs that this scorecard is linked to.\nWhen linked to assistants, this scorecard will be available for evaluation during those assistants' calls.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
           }
         }
       },
-      "UpdateOutputToolDTO": {
+      "CreateOrgDTO": {
         "type": "object",
         "properties": {
-          "async": {
+          "hipaaEnabled": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
+            "description": "When this is enabled, logs, recordings, and transcriptions will be stored in HIPAA-compliant storage. Defaults to false.\nWhen HIPAA is enabled, only HIPAA-compliant providers will be available for LLM, Voice, and Transcriber respectively.\nThis is due to the compliance requirements of HIPAA. Other providers may not meet these requirements.",
             "example": false
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "subscriptionId": {
+            "type": "string",
+            "description": "This is the ID of the subscription the org belongs to."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the org. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "channel": {
+            "type": "string",
+            "description": "This is the channel of the org. There is the cluster the API traffic for the org will be directed.",
+            "enum": [
+              "daily",
+              "default",
+              "weekly",
+              "intuit",
+              "hcs"
+            ]
+          },
+          "billingLimit": {
+            "type": "number",
+            "description": "This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai.",
+            "minimum": 0,
+            "maximum": 1000
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/Server"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "concurrencyLimit": {
+            "type": "number",
+            "description": "This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai.",
+            "deprecated": true,
+            "minimum": 1,
+            "maximum": 10
+          },
+          "compliancePlan": {
+            "description": "Stores the information about the compliance plan enforced at the organization level. Currently pciEnabled is supported through this field.\nWhen this is enabled, any logs, recordings, or transcriptions will be shipped to the customer endpoints if provided else lost.\nAt the end of the call, you will receive an end-of-call-report message to store on your server, if webhook is provided.\nDefaults to false.\nWhen PCI is enabled, only PCI-compliant Providers will be available for LLM, Voice and transcribers.\nThis is due to the compliance requirements of PCI. Other providers may not meet these requirements.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/CompliancePlan"
               }
             ]
           }
         }
       },
-      "UpdateBashToolDTO": {
+      "AutoReloadPlan": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "credits": {
+            "type": "number",
+            "description": "This the amount of credits to reload."
           },
-          "subType": {
+          "threshold": {
+            "type": "number",
+            "description": "This is the limit at which the reload is triggered."
+          }
+        },
+        "required": [
+          "credits",
+          "threshold"
+        ]
+      },
+      "InvoicePlan": {
+        "type": "object",
+        "properties": {
+          "companyName": {
             "type": "string",
-            "enum": [
-              "bash_20241022"
-            ],
-            "description": "The sub type of tool."
+            "description": "This is the name of the company."
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "companyAddress": {
+            "type": "string",
+            "description": "This is the address of the company."
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "companyTaxId": {
+            "type": "string",
+            "description": "This is the tax ID of the company."
           },
-          "name": {
+          "companyEmail": {
             "type": "string",
-            "description": "The name of the tool, fixed to 'bash'",
-            "default": "bash",
-            "enum": [
-              "bash"
-            ]
+            "description": "This is the preferred invoicing email of the company. If not specified, defaults to the subscription's email."
           }
         }
       },
-      "UpdateComputerToolDTO": {
+      "Subscription": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the subscription."
           },
-          "subType": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "enum": [
-              "computer_20241022"
-            ],
-            "description": "The sub type of tool."
+            "description": "This is the timestamp when the subscription was created."
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the timestamp when the subscription was last updated."
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "type": {
+            "type": "string",
+            "description": "This is the type / tier of the subscription.",
+            "enum": [
+              "pay-as-you-go",
+              "enterprise",
+              "agency",
+              "startup",
+              "growth",
+              "scale"
             ]
           },
-          "name": {
+          "status": {
             "type": "string",
-            "description": "The name of the tool, fixed to 'computer'",
-            "default": "computer",
+            "description": "This is the status of the subscription. Past due subscriptions are subscriptions\nwith past due payments.",
             "enum": [
-              "computer"
+              "active",
+              "frozen"
             ]
           },
-          "displayWidthPx": {
+          "credits": {
+            "type": "string",
+            "description": "This is the number of credits the subscription currently has.\n\nNote: This is a string to avoid floating point precision issues."
+          },
+          "concurrencyCounter": {
             "type": "number",
-            "description": "The display width in pixels"
+            "description": "This is the total number of active calls (concurrency) across all orgs under this subscription.",
+            "minimum": 1
           },
-          "displayHeightPx": {
+          "concurrencyLimitIncluded": {
             "type": "number",
-            "description": "The display height in pixels"
+            "description": "This is the default concurrency limit for the subscription.",
+            "minimum": 1
           },
-          "displayNumber": {
+          "phoneNumbersCounter": {
             "type": "number",
-            "description": "Optional display number"
-          }
-        }
-      },
-      "UpdateTextEditorToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
+            "description": "This is the number of free phone numbers the subscription has",
+            "minimum": 1
+          },
+          "phoneNumbersIncluded": {
+            "type": "number",
+            "description": "This is the maximum number of free phone numbers the subscription can have",
+            "minimum": 1
+          },
+          "concurrencyLimitPurchased": {
+            "type": "number",
+            "description": "This is the purchased add-on concurrency limit for the subscription.",
+            "minimum": 1
+          },
+          "monthlyChargeScheduleId": {
+            "type": "number",
+            "description": "This is the ID of the monthly job that charges for subscription add ons and phone numbers."
+          },
+          "monthlyCreditCheckScheduleId": {
+            "type": "number",
+            "description": "This is the ID of the monthly job that checks whether the credit balance of the subscription\nis sufficient for the monthly charge."
+          },
+          "stripeCustomerId": {
+            "type": "string",
+            "description": "This is the Stripe customer ID."
+          },
+          "stripePaymentMethodId": {
+            "type": "string",
+            "description": "This is the Stripe payment ID."
+          },
+          "slackSupportEnabled": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+            "description": "If this flag is true, then the user has purchased slack support."
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "slackChannelId": {
+            "type": "string",
+            "description": "If this subscription has a slack support subscription, the slack channel's ID will be stored here."
           },
-          "subType": {
+          "hipaaEnabled": {
+            "type": "boolean",
+            "description": "This is the HIPAA enabled flag for the subscription. It determines whether orgs under this\nsubscription have the option to enable HIPAA compliance."
+          },
+          "zdrEnabled": {
+            "type": "boolean",
+            "description": "This is the ZDR enabled flag for the subscription. It determines whether orgs under this\nsubscription have the option to enable ZDR."
+          },
+          "dataRetentionEnabled": {
+            "type": "boolean",
+            "description": "This is the data retention enabled flag for the subscription. It determines whether orgs under this\nsubscription have the option to enable data retention."
+          },
+          "hipaaCommonPaperAgreementId": {
             "type": "string",
-            "enum": [
-              "text_editor_20241022"
-            ],
-            "description": "The sub type of tool."
+            "description": "This is the ID for the Common Paper agreement outlining the HIPAA contract."
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "stripePaymentMethodFingerprint": {
+            "type": "string",
+            "description": "This is the Stripe fingerprint of the payment method (card). It allows us\nto detect users who try to abuse our system through multiple sign-ups."
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "stripeCustomerEmail": {
+            "type": "string",
+            "description": "This is the customer's email on Stripe."
+          },
+          "referredByEmail": {
+            "type": "string",
+            "description": "This is the email of the referrer for the subscription."
+          },
+          "autoReloadPlan": {
+            "description": "This is the auto reload plan configured for the subscription.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/AutoReloadPlan"
               }
             ]
           },
-          "name": {
+          "minutesIncluded": {
+            "type": "number",
+            "description": "The number of minutes included in the subscription.",
+            "minimum": 0
+          },
+          "minutesUsed": {
+            "type": "number",
+            "description": "The number of minutes used in the subscription.",
+            "minimum": 0
+          },
+          "minutesUsedNextResetAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "The name of the tool, fixed to 'str_replace_editor'",
-            "default": "str_replace_editor",
-            "enum": [
-              "str_replace_editor"
-            ]
-          }
-        }
-      },
-      "UpdateQueryToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+            "description": "This is the timestamp at which the number of monthly free minutes is scheduled to reset at."
           },
-          "messages": {
+          "minutesOverageCost": {
+            "type": "number",
+            "description": "The per minute charge on minutes that exceed the included minutes. Enterprise only."
+          },
+          "providersIncluded": {
+            "description": "The list of providers included in the subscription. Enterprise only.",
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "type": "string"
             }
           },
-          "knowledgeBases": {
-            "description": "The knowledge bases to query",
+          "outboundCallsDailyLimit": {
+            "type": "number",
+            "description": "The maximum number of outbound calls this subscription may make in a day. Resets every night.",
+            "minimum": 1
+          },
+          "outboundCallsCounter": {
+            "type": "number",
+            "description": "The current number of outbound calls the subscription has made in the current day.",
+            "minimum": 1
+          },
+          "outboundCallsCounterNextResetAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the timestamp at which the outbound calls counter is scheduled to reset at."
+          },
+          "couponIds": {
+            "description": "This is the IDs of the coupons applicable to this subscription.",
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/KnowledgeBase"
+              "type": "string"
             }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "couponUsageLeft": {
+            "type": "string",
+            "description": "This is the number of credits left obtained from a coupon."
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "invoicePlan": {
+            "description": "This is the invoice plan for the subscription.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/InvoicePlan"
               }
             ]
-          }
-        }
-      },
-      "UpdateGoogleCalendarCreateEventToolDTO": {
-        "type": "object",
-        "properties": {
-          "async": {
+          },
+          "pciEnabled": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+            "description": "This is the PCI enabled flag for the subscription. It determines whether orgs under this\nsubscription have the option to enable PCI compliance."
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "pciCommonPaperAgreementId": {
+            "type": "string",
+            "description": "This is the ID for the Common Paper agreement outlining the PCI contract."
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "callRetentionDays": {
+            "type": "number",
+            "description": "This is the call retention days for the subscription."
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "chatRetentionDays": {
+            "type": "number",
+            "description": "This is the chat retention days for the subscription."
+          },
+          "minutesIncludedResetFrequency": {
+            "type": "string",
+            "description": "This is the minutes_included reset frequency for the subscription.",
+            "enum": [
+              "monthly",
+              "annually"
             ]
+          },
+          "rbacEnabled": {
+            "type": "boolean",
+            "description": "This is the Role Based Access Control (RBAC) enabled flag for the subscription."
+          },
+          "platformFee": {
+            "type": "number",
+            "description": "This is the platform fee for the subscription."
           }
-        }
+        },
+        "required": [
+          "id",
+          "createdAt",
+          "updatedAt",
+          "type",
+          "status",
+          "credits",
+          "concurrencyCounter",
+          "concurrencyLimitIncluded",
+          "concurrencyLimitPurchased"
+        ]
       },
-      "UpdateGoogleSheetsRowAppendToolDTO": {
+      "Org": {
         "type": "object",
         "properties": {
-          "async": {
+          "hipaaEnabled": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
+            "description": "When this is enabled, logs, recordings, and transcriptions will be stored in HIPAA-compliant storage. Defaults to false.\nWhen HIPAA is enabled, only HIPAA-compliant providers will be available for LLM, Voice, and Transcriber respectively.\nThis is due to the compliance requirements of HIPAA. Other providers may not meet these requirements.",
             "example": false
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "subscription": {
+            "$ref": "#/components/schemas/Subscription"
+          },
+          "subscriptionId": {
+            "type": "string",
+            "description": "This is the ID of the subscription the org belongs to."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the org."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the org was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the org was last updated."
+          },
+          "stripeSubscriptionId": {
+            "type": "string",
+            "description": "This is the subscription for the org."
+          },
+          "stripeSubscriptionItemId": {
+            "type": "string",
+            "description": "This is the subscription's subscription item."
+          },
+          "stripeSubscriptionCurrentPeriodStart": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the subscription's current period start."
+          },
+          "stripeSubscriptionStatus": {
+            "type": "string",
+            "description": "This is the subscription's status."
+          },
+          "jwtSecret": {
+            "type": "string",
+            "description": "This is the secret key used for signing JWT tokens for the org."
+          },
+          "minutesUsed": {
+            "type": "number",
+            "description": "This is the total number of call minutes used by this org across all time."
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "name": {
+            "type": "string",
+            "description": "This is the name of the org. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "channel": {
+            "type": "string",
+            "description": "This is the channel of the org. There is the cluster the API traffic for the org will be directed.",
+            "enum": [
+              "daily",
+              "default",
+              "weekly",
+              "intuit",
+              "hcs"
+            ]
+          },
+          "billingLimit": {
+            "type": "number",
+            "description": "This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai.",
+            "minimum": 0,
+            "maximum": 1000
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/Server"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "concurrencyLimit": {
+            "type": "number",
+            "description": "This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai.",
+            "deprecated": true,
+            "minimum": 1,
+            "maximum": 10
+          },
+          "compliancePlan": {
+            "description": "Stores the information about the compliance plan enforced at the organization level. Currently pciEnabled is supported through this field.\nWhen this is enabled, any logs, recordings, or transcriptions will be shipped to the customer endpoints if provided else lost.\nAt the end of the call, you will receive an end-of-call-report message to store on your server, if webhook is provided.\nDefaults to false.\nWhen PCI is enabled, only PCI-compliant Providers will be available for LLM, Voice and transcribers.\nThis is due to the compliance requirements of PCI. Other providers may not meet these requirements.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/CompliancePlan"
               }
             ]
           }
-        }
+        },
+        "required": [
+          "id",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "UpdateGoogleCalendarCheckAvailabilityToolDTO": {
+      "UpdateOrgDTO": {
         "type": "object",
         "properties": {
-          "async": {
+          "hipaaEnabled": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
+            "description": "When this is enabled, logs, recordings, and transcriptions will be stored in HIPAA-compliant storage. Defaults to false.\nWhen HIPAA is enabled, only HIPAA-compliant providers will be available for LLM, Voice, and Transcriber respectively.\nThis is due to the compliance requirements of HIPAA. Other providers may not meet these requirements.",
             "example": false
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "subscriptionId": {
+            "type": "string",
+            "description": "This is the ID of the subscription the org belongs to."
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "name": {
+            "type": "string",
+            "description": "This is the name of the org. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "channel": {
+            "type": "string",
+            "description": "This is the channel of the org. There is the cluster the API traffic for the org will be directed.",
+            "enum": [
+              "daily",
+              "default",
+              "weekly",
+              "intuit",
+              "hcs"
+            ]
+          },
+          "billingLimit": {
+            "type": "number",
+            "description": "This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai.",
+            "minimum": 0,
+            "maximum": 1000
+          },
+          "server": {
+            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/Server"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "concurrencyLimit": {
+            "type": "number",
+            "description": "This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai.",
+            "deprecated": true,
+            "minimum": 1,
+            "maximum": 10
+          },
+          "compliancePlan": {
+            "description": "Stores the information about the compliance plan enforced at the organization level. Currently pciEnabled is supported through this field.\nWhen this is enabled, any logs, recordings, or transcriptions will be shipped to the customer endpoints if provided else lost.\nAt the end of the call, you will receive an end-of-call-report message to store on your server, if webhook is provided.\nDefaults to false.\nWhen PCI is enabled, only PCI-compliant Providers will be available for LLM, Voice and transcribers.\nThis is due to the compliance requirements of PCI. Other providers may not meet these requirements.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/CompliancePlan"
               }
             ]
           }
         }
       },
-      "UpdateSlackSendMessageToolDTO": {
+      "User": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the profile or user."
           },
-          "messages": {
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the profile was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the profile was last updated."
+          },
+          "email": {
+            "type": "string",
+            "description": "This is the email of the user that is associated with the profile."
+          },
+          "fullName": {
+            "type": "string",
+            "description": "This is the full name of the user that is associated with the profile."
+          }
+        },
+        "required": [
+          "id",
+          "createdAt",
+          "updatedAt",
+          "email"
+        ]
+      },
+      "InviteUserDTO": {
+        "type": "object",
+        "properties": {
+          "emails": {
+            "maxItems": 100,
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "type": "string"
             }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
+          "role": {
+            "enum": [
+              "admin",
+              "editor",
+              "viewer"
+            ],
+            "type": "string"
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "redirectTo": {
+            "type": "string"
           }
-        }
+        },
+        "required": [
+          "emails",
+          "role"
+        ]
       },
-      "UpdateSmsSendToolDTO": {
+      "UpdateUserRoleDTO": {
         "type": "object",
         "properties": {
-          "async": {
+          "userId": {
+            "type": "string"
+          },
+          "role": {
+            "enum": [
+              "admin",
+              "editor",
+              "viewer"
+            ],
+            "type": "string"
+          }
+        },
+        "required": [
+          "userId",
+          "role"
+        ]
+      },
+      "JwtResponse": {
+        "type": "object",
+        "properties": {
+          "accessToken": {
+            "type": "string"
+          },
+          "aud": {
+            "type": "object"
+          }
+        },
+        "required": [
+          "accessToken",
+          "aud"
+        ]
+      },
+      "TokenRestrictions": {
+        "type": "object",
+        "properties": {
+          "enabled": {
             "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+            "description": "This determines whether the token is enabled or disabled. Default is true, it's enabled."
           },
-          "messages": {
+          "allowedOrigins": {
+            "description": "This determines the allowed origins for this token. Validates the `Origin` header. Default is any origin.\n\nOnly relevant for `public` tokens.",
             "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
+              "type": "string"
             }
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
+          "allowedAssistantIds": {
+            "description": "This determines which assistantIds can be used when creating a call. Default is any assistantId.\n\nOnly relevant for `public` tokens.",
+            "type": "array",
+            "items": {
+              "type": "string"
+            }
+          },
+          "allowTransientAssistant": {
+            "type": "boolean",
+            "description": "This determines whether transient assistants can be used when creating a call. Default is true.\n\nIf `allowedAssistantIds` is provided, this is automatically false.\n\nOnly relevant for `public` tokens."
+          }
+        }
+      },
+      "CreateTokenDTO": {
+        "type": "object",
+        "properties": {
+          "tag": {
+            "type": "string",
+            "description": "This is the tag for the token. It represents its scope.",
+            "enum": [
+              "private",
+              "public"
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "name": {
+            "type": "string",
+            "description": "This is the name of the token. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "restrictions": {
+            "description": "This are the restrictions for the token.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/TokenRestrictions"
               }
             ]
           }
         }
       },
-      "UpdateMcpToolDTO": {
+      "Token": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "tag": {
+            "type": "string",
+            "description": "This is the tag for the token. It represents its scope.",
+            "enum": [
+              "private",
+              "public"
+            ]
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageStart",
-                  "title": "ToolMessageStart"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageDelayed",
-                  "title": "ToolMessageDelayed"
-                }
-              ]
-            }
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the token."
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "orgId": {
+            "type": "string",
+            "description": "This is unique identifier for the org that this token belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the token was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the token was last updated."
+          },
+          "value": {
+            "type": "string",
+            "description": "This is the token key."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of the token. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "restrictions": {
+            "description": "This are the restrictions for the token.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/TokenRestrictions"
               }
             ]
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "UpdateTokenDTO": {
+        "type": "object",
+        "properties": {
+          "tag": {
+            "type": "string",
+            "description": "This is the tag for the token. It represents its scope.",
+            "enum": [
+              "private",
+              "public"
+            ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "name": {
+            "type": "string",
+            "description": "This is the name of the token. This is just for your own reference.",
+            "maxLength": 40
+          },
+          "restrictions": {
+            "description": "This are the restrictions for the token.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/TokenRestrictions"
               }
             ]
           }
         }
       },
-      "CreateFileDTO": {
+      "AnthropicCredential": {
         "type": "object",
         "properties": {
-          "file": {
+          "provider": {
             "type": "string",
-            "description": "This is the File you want to upload for use with the Knowledge Base.",
-            "format": "binary"
+            "enum": [
+              "anthropic"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "file"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "File": {
+      "AWSStsAuthenticationArtifact": {
         "type": "object",
         "properties": {
-          "object": {
+          "externalId": {
             "type": "string",
-            "enum": [
-              "file"
-            ]
-          },
-          "status": {
-            "enum": [
-              "processing",
-              "done",
-              "failed"
-            ],
-            "type": "string"
-          },
-          "name": {
+            "description": "This is the optional external ID for the AWS credential"
+          }
+        },
+        "required": [
+          "externalId"
+        ]
+      },
+      "AWSStsAssumeRoleUser": {
+        "type": "object",
+        "properties": {
+          "AssumedRoleId": {
             "type": "string",
-            "description": "This is the name of the file. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the assumed role ID"
           },
-          "originalName": {
-            "type": "string"
-          },
-          "bytes": {
-            "type": "number"
-          },
-          "purpose": {
-            "type": "string"
+          "Arn": {
+            "type": "string",
+            "description": "This is the assumed role ARN"
+          }
+        }
+      },
+      "AWSStsCredentials": {
+        "type": "object",
+        "properties": {
+          "AccessKeyId": {
+            "type": "string",
+            "description": "This is the access key ID for the AWS credential"
           },
-          "mimetype": {
-            "type": "string"
+          "Expiration": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the expiration date for the AWS credential"
           },
-          "key": {
-            "type": "string"
+          "SecretAccessKey": {
+            "type": "string",
+            "description": "This is the secret access key for the AWS credential"
           },
-          "path": {
-            "type": "string"
+          "SessionToken": {
+            "type": "string",
+            "description": "This is the session token for the AWS credential"
+          }
+        }
+      },
+      "AWSStsAuthenticationSession": {
+        "type": "object",
+        "properties": {
+          "assumedRoleUser": {
+            "description": "This is the assumed role user",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AWSStsAssumeRoleUser"
+              }
+            ]
           },
-          "bucket": {
-            "type": "string"
+          "credentials": {
+            "description": "This is the credentials for the AWS STS assume role",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AWSStsCredentials"
+              }
+            ]
           },
-          "url": {
-            "type": "string"
+          "packedPolicySize": {
+            "type": "number",
+            "description": "This is the size of the policy"
           },
-          "parsedTextUrl": {
-            "type": "string"
+          "sourcedIDEntity": {
+            "type": "string",
+            "description": "This is the sourced ID entity"
+          }
+        }
+      },
+      "AnthropicBedrockCredential": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "anthropic-bedrock"
+            ]
           },
-          "parsedTextBytes": {
-            "type": "number"
+          "region": {
+            "type": "string",
+            "description": "AWS region where Bedrock is configured.",
+            "enum": [
+              "us-east-1",
+              "us-west-2",
+              "eu-west-1",
+              "eu-west-3",
+              "ap-northeast-1",
+              "ap-southeast-2"
+            ]
           },
-          "metadata": {
-            "type": "object"
+          "authenticationPlan": {
+            "description": "Authentication method - either direct IAM credentials or cross-account role assumption.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AWSIAMCredentialsAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/AWSStsAuthenticationPlan"
+              }
+            ]
           },
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the file."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this file belongs to."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the file was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the file was last updated."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "authenticationArtifact": {
+            "description": "Stores the external ID (generated or user-provided) for future AssumeRole calls.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AWSStsAuthenticationArtifact"
+              }
+            ]
+          },
+          "authenticationSession": {
+            "description": "Cached authentication session from AssumeRole (temporary credentials).\nManaged by the system, auto-refreshed when expired.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AWSStsAuthenticationSession"
+              }
+            ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
+          "provider",
+          "region",
+          "authenticationPlan",
           "id",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "UpdateFileDTO": {
+      "AnyscaleCredential": {
         "type": "object",
         "properties": {
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the file. This is just for your own reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "TrieveKnowledgeBaseSearchPlan": {
-        "type": "object",
-        "properties": {
-          "topK": {
-            "type": "number",
-            "description": "Specifies the number of top chunks to return. This corresponds to the `page_size` parameter in Trieve."
+            "enum": [
+              "anyscale"
+            ]
           },
-          "removeStopWords": {
-            "type": "boolean",
-            "description": "If true, stop words (specified in server/src/stop-words.txt in the git repo) will be removed. This will preserve queries that are entirely stop words."
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "scoreThreshold": {
-            "type": "number",
-            "description": "This is the score threshold to filter out chunks with a score below the threshold for cosine distance metric. For Manhattan Distance, Euclidean Distance, and Dot Product, it will filter out scores above the threshold distance. This threshold applies before weight and bias modifications. If not specified, this defaults to no threshold. A threshold of 0 will default to no threshold."
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
           },
-          "searchType": {
+          "orgId": {
             "type": "string",
-            "description": "This is the search method used when searching for relevant chunks from the vector store.",
-            "enum": [
-              "fulltext",
-              "semantic",
-              "hybrid",
-              "bm25"
-            ]
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "searchType"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "TrieveKnowledgeBase": {
+      "AssemblyAICredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This knowledge base is provided by Trieve.\n\nTo learn more about Trieve, visit https://trieve.ai.",
             "enum": [
-              "trieve"
+              "assembly-ai"
             ]
           },
-          "name": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the name of the knowledge base."
-          },
-          "searchPlan": {
-            "description": "This is the searching plan used when searching for relevant chunks from the vector store.\n\nYou should configure this if you're running into these issues:\n- Too much unnecessary context is being fed as knowledge base context.\n- Not enough relevant context is being fed as knowledge base context.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TrieveKnowledgeBaseSearchPlan"
-              }
-            ]
-          },
-          "createPlan": {
-            "description": "This is the plan if you want us to create/import a new vector store using Trieve.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TrieveKnowledgeBaseImport",
-                "title": "Import"
-              }
-            ]
+            "description": "This is not returned in the API."
           },
           "id": {
             "type": "string",
-            "description": "This is the id of the knowledge base."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the org id of the knowledge base."
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
           "provider",
+          "apiKey",
           "id",
-          "orgId"
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "CustomKnowledgeBase": {
+      "AzureCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This knowledge base is bring your own knowledge base implementation.",
             "enum": [
-              "custom-knowledge-base"
+              "azure"
             ]
           },
-          "server": {
-            "description": "This is where the knowledge base request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"messsage\": {\n    \"type\": \"knowledge-base-request\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Why is ocean blue?\"\n      }\n    ],\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected:\n```\n{\n  \"message\": {\n     \"role\": \"assistant\",\n     \"content\": \"The ocean is blue because water absorbs everything but blue.\",\n  }, // YOU CAN RETURN THE EXACT RESPONSE TO SPEAK\n  \"documents\": [\n    {\n      \"content\": \"The ocean is blue primarily because water absorbs colors in the red part of the light spectrum and scatters the blue light, making it more visible to our eyes.\",\n      \"similarity\": 1\n    },\n    {\n      \"content\": \"Blue light is scattered more by the water molecules than other colors, enhancing the blue appearance of the ocean.\",\n      \"similarity\": .5\n    }\n  ] // OR, YOU CAN RETURN AN ARRAY OF DOCUMENTS THAT WILL BE SENT TO THE MODEL\n}\n```",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "service": {
+            "type": "string",
+            "description": "This is the service being used in Azure.",
+            "enum": [
+              "speech",
+              "blob_storage"
+            ],
+            "default": "speech"
+          },
+          "region": {
+            "type": "string",
+            "description": "This is the region of the Azure resource.",
+            "enum": [
+              "australiaeast",
+              "canadaeast",
+              "canadacentral",
+              "centralus",
+              "eastus2",
+              "eastus",
+              "france",
+              "germanywestcentral",
+              "india",
+              "japaneast",
+              "japanwest",
+              "northcentralus",
+              "norway",
+              "polandcentral",
+              "southcentralus",
+              "spaincentral",
+              "swedencentral",
+              "switzerland",
+              "uaenorth",
+              "uk",
+              "westeurope",
+              "westus",
+              "westus3"
             ]
           },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API.",
+            "maxLength": 10000
+          },
+          "fallbackIndex": {
+            "type": "number",
+            "minimum": 1,
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order."
+          },
           "id": {
             "type": "string",
-            "description": "This is the id of the knowledge base."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the org id of the knowledge base."
-          }
-        },
-        "required": [
-          "provider",
-          "server",
-          "id",
-          "orgId"
-        ]
-      },
-      "CreateTrieveKnowledgeBaseDTO": {
-        "type": "object",
-        "properties": {
-          "provider": {
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This knowledge base is provided by Trieve.\n\nTo learn more about Trieve, visit https://trieve.ai.",
-            "enum": [
-              "trieve"
-            ]
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the knowledge base."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "searchPlan": {
-            "description": "This is the searching plan used when searching for relevant chunks from the vector store.\n\nYou should configure this if you're running into these issues:\n- Too much unnecessary context is being fed as knowledge base context.\n- Not enough relevant context is being fed as knowledge base context.",
+          "bucketPlan": {
+            "description": "This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/TrieveKnowledgeBaseSearchPlan"
-              }
-            ]
-          },
-          "createPlan": {
-            "description": "This is the plan if you want us to create/import a new vector store using Trieve.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TrieveKnowledgeBaseImport",
-                "title": "Import"
+                "$ref": "#/components/schemas/AzureBlobStorageBucketPlan"
               }
             ]
           }
         },
         "required": [
-          "provider"
+          "provider",
+          "service",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "UpdateTrieveKnowledgeBaseDTO": {
+      "AzureOpenAICredential": {
         "type": "object",
         "properties": {
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the knowledge base."
-          },
-          "searchPlan": {
-            "description": "This is the searching plan used when searching for relevant chunks from the vector store.\n\nYou should configure this if you're running into these issues:\n- Too much unnecessary context is being fed as knowledge base context.\n- Not enough relevant context is being fed as knowledge base context.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TrieveKnowledgeBaseSearchPlan"
-              }
+            "enum": [
+              "azure-openai"
             ]
           },
-          "createPlan": {
-            "description": "This is the plan if you want us to create/import a new vector store using Trieve.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TrieveKnowledgeBaseImport",
-                "title": "Import"
-              }
-            ]
-          }
-        }
-      },
-      "UpdateCustomKnowledgeBaseDTO": {
-        "type": "object",
-        "properties": {
-          "server": {
-            "description": "This is where the knowledge base request will be sent.\n\nRequest Example:\n\nPOST https://{server.url}\nContent-Type: application/json\n\n{\n  \"messsage\": {\n    \"type\": \"knowledge-base-request\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Why is ocean blue?\"\n      }\n    ],\n    ...other metadata about the call...\n  }\n}\n\nResponse Expected:\n```\n{\n  \"message\": {\n     \"role\": \"assistant\",\n     \"content\": \"The ocean is blue because water absorbs everything but blue.\",\n  }, // YOU CAN RETURN THE EXACT RESPONSE TO SPEAK\n  \"documents\": [\n    {\n      \"content\": \"The ocean is blue primarily because water absorbs colors in the red part of the light spectrum and scatters the blue light, making it more visible to our eyes.\",\n      \"similarity\": 1\n    },\n    {\n      \"content\": \"Blue light is scattered more by the water molecules than other colors, enhancing the blue appearance of the ocean.\",\n      \"similarity\": .5\n    }\n  ] // OR, YOU CAN RETURN AN ARRAY OF DOCUMENTS THAT WILL BE SENT TO THE MODEL\n}\n```",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
+          "region": {
+            "type": "string",
+            "enum": [
+              "australiaeast",
+              "canadaeast",
+              "canadacentral",
+              "centralus",
+              "eastus2",
+              "eastus",
+              "france",
+              "germanywestcentral",
+              "india",
+              "japaneast",
+              "japanwest",
+              "northcentralus",
+              "norway",
+              "polandcentral",
+              "southcentralus",
+              "spaincentral",
+              "swedencentral",
+              "switzerland",
+              "uaenorth",
+              "uk",
+              "westeurope",
+              "westus",
+              "westus3"
             ]
-          }
-        }
-      },
-      "TrieveKnowledgeBaseChunkPlan": {
-        "type": "object",
-        "properties": {
-          "fileIds": {
-            "description": "These are the file ids that will be used to create the vector store. To upload files, use the `POST /files` endpoint.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
           },
-          "websites": {
-            "description": "These are the websites that will be used to create the vector store.",
+          "models": {
             "type": "array",
+            "enum": [
+              "gpt-5.4",
+              "gpt-5.4-mini",
+              "gpt-5.4-nano",
+              "gpt-5.2",
+              "gpt-5.2-chat",
+              "gpt-5.1",
+              "gpt-5.1-chat",
+              "gpt-5",
+              "gpt-5-mini",
+              "gpt-5-nano",
+              "gpt-4.1-2025-04-14",
+              "gpt-4.1-mini-2025-04-14",
+              "gpt-4.1-nano-2025-04-14",
+              "gpt-4o-2024-11-20",
+              "gpt-4o-2024-08-06",
+              "gpt-4o-2024-05-13",
+              "gpt-4o-mini-2024-07-18",
+              "gpt-4-turbo-2024-04-09",
+              "gpt-4-0125-preview",
+              "gpt-4-1106-preview",
+              "gpt-4-0613",
+              "gpt-35-turbo-0125",
+              "gpt-35-turbo-1106"
+            ],
+            "example": [
+              "gpt-4-0125-preview",
+              "gpt-4-0613"
+            ],
             "items": {
-              "type": "string"
+              "type": "string",
+              "enum": [
+                "gpt-5.4",
+                "gpt-5.4-mini",
+                "gpt-5.4-nano",
+                "gpt-5.2",
+                "gpt-5.2-chat",
+                "gpt-5.1",
+                "gpt-5.1-chat",
+                "gpt-5",
+                "gpt-5-mini",
+                "gpt-5-nano",
+                "gpt-4.1-2025-04-14",
+                "gpt-4.1-mini-2025-04-14",
+                "gpt-4.1-nano-2025-04-14",
+                "gpt-4o-2024-11-20",
+                "gpt-4o-2024-08-06",
+                "gpt-4o-2024-05-13",
+                "gpt-4o-mini-2024-07-18",
+                "gpt-4-turbo-2024-04-09",
+                "gpt-4-0125-preview",
+                "gpt-4-1106-preview",
+                "gpt-4-0613",
+                "gpt-35-turbo-0125",
+                "gpt-35-turbo-1106"
+              ]
             }
           },
-          "targetSplitsPerChunk": {
-            "type": "number",
-            "description": "This is an optional field which allows you to specify the number of splits you want per chunk. If not specified, the default 20 is used. However, you may want to use a different number."
+          "openAIKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "splitDelimiters": {
-            "description": "This is an optional field which allows you to specify the delimiters to use when splitting the file before chunking the text. If not specified, the default [.!?\\n] are used to split into sentences. However, you may want to use spaces or other delimiters.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+          "ocpApimSubscriptionKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
           },
-          "rebalanceChunks": {
-            "type": "boolean",
-            "description": "This is an optional field which allows you to specify whether or not to rebalance the chunks created from the file. If not specified, the default true is used. If true, Trieve will evenly distribute remainder splits across chunks such that 66 splits with a target_splits_per_chunk of 20 will result in 3 chunks with 22 splits each."
-          }
-        }
-      },
-      "TrieveKnowledgeBaseCreate": {
-        "type": "object",
-        "properties": {
-          "type": {
+          "id": {
             "type": "string",
-            "description": "This is to create a new dataset on Trieve.",
-            "enum": [
-              "create"
-            ]
+            "description": "This is the unique identifier for the credential."
           },
-          "chunkPlans": {
-            "description": "These are the chunk plans used to create the dataset.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/TrieveKnowledgeBaseChunkPlan"
-            }
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          },
+          "openAIEndpoint": {
+            "type": "string",
+            "maxLength": 10000
           }
         },
         "required": [
-          "type",
-          "chunkPlans"
+          "provider",
+          "region",
+          "models",
+          "openAIKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "openAIEndpoint"
         ]
       },
-      "TrieveKnowledgeBaseImport": {
+      "ByoSipTrunkCredential": {
         "type": "object",
         "properties": {
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is to import an existing dataset from Trieve.",
+            "description": "This can be used to bring your own SIP trunks or to connect to a Carrier.",
             "enum": [
-              "import"
+              "byo-sip-trunk"
             ]
           },
-          "providerId": {
+          "id": {
             "type": "string",
-            "description": "This is the `datasetId` of the dataset on your Trieve account."
-          }
-        },
-        "required": [
-          "type",
-          "providerId"
-        ]
-      },
-      "UpdateWorkflowDTO": {
-        "type": "object",
-        "properties": {
-          "nodes": {
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          },
+          "gateways": {
+            "description": "This is the list of SIP trunk's gateways.",
             "type": "array",
             "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/Say",
-                  "title": "Say"
-                },
-                {
-                  "$ref": "#/components/schemas/Gather",
-                  "title": "Gather"
-                },
-                {
-                  "$ref": "#/components/schemas/ApiRequest",
-                  "title": "ApiRequest"
-                },
-                {
-                  "$ref": "#/components/schemas/Hangup",
-                  "title": "Hangup"
-                },
-                {
-                  "$ref": "#/components/schemas/Transfer",
-                  "title": "Transfer"
-                }
-              ]
+              "$ref": "#/components/schemas/SipTrunkGateway"
             }
           },
-          "model": {
-            "description": "These are the options for the workflow's LLM.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/AnthropicModel",
-                "title": "Anthropic"
-              },
-              {
-                "$ref": "#/components/schemas/AnyscaleModel",
-                "title": "Anyscale"
-              },
-              {
-                "$ref": "#/components/schemas/CerebrasModel",
-                "title": "Cerebras"
-              },
-              {
-                "$ref": "#/components/schemas/CustomLLMModel",
-                "title": "CustomLLM"
-              },
-              {
-                "$ref": "#/components/schemas/DeepInfraModel",
-                "title": "DeepInfra"
-              },
-              {
-                "$ref": "#/components/schemas/DeepSeekModel",
-                "title": "DeepSeek"
-              },
-              {
-                "$ref": "#/components/schemas/GoogleModel",
-                "title": "Google"
-              },
-              {
-                "$ref": "#/components/schemas/GroqModel",
-                "title": "Groq"
-              },
-              {
-                "$ref": "#/components/schemas/InflectionAIModel",
-                "title": "InflectionAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenAIModel",
-                "title": "OpenAI"
-              },
-              {
-                "$ref": "#/components/schemas/OpenRouterModel",
-                "title": "OpenRouter"
-              },
-              {
-                "$ref": "#/components/schemas/PerplexityAIModel",
-                "title": "PerplexityAI"
-              },
+          "outboundAuthenticationPlan": {
+            "description": "This can be used to configure the outbound authentication if required by the SIP trunk.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/TogetherAIModel",
-                "title": "Together"
-              },
+                "$ref": "#/components/schemas/SipTrunkOutboundAuthenticationPlan"
+              }
+            ]
+          },
+          "outboundLeadingPlusEnabled": {
+            "type": "boolean",
+            "description": "This ensures the outbound origination attempts have a leading plus. Defaults to false to match conventional telecom behavior.\n\nUsage:\n- Vonage/Twilio requires leading plus for all outbound calls. Set this to true.\n\n@default false"
+          },
+          "techPrefix": {
+            "type": "string",
+            "description": "This can be used to configure the tech prefix on outbound calls. This is an advanced property.",
+            "maxLength": 10000
+          },
+          "sipDiversionHeader": {
+            "type": "string",
+            "description": "This can be used to enable the SIP diversion header for authenticating the calling number if the SIP trunk supports it. This is an advanced property.",
+            "maxLength": 10000
+          },
+          "sbcConfiguration": {
+            "description": "This is an advanced configuration for enterprise deployments. This uses the onprem SBC to trunk into the SIP trunk's `gateways`, rather than the managed SBC provided by Vapi.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/XaiModel",
-                "title": "XAI"
+                "$ref": "#/components/schemas/SbcConfiguration"
               }
             ]
+          }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "gateways"
+        ]
+      },
+      "CartesiaCredential": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "cartesia"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "maxLength": 80
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "edges": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Edge"
-            }
+          "apiUrl": {
+            "type": "string",
+            "description": "This can be used to point to an onprem Cartesia instance. Defaults to api.cartesia.ai."
           }
-        }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "Squad": {
+      "CerebrasCredential": {
         "type": "object",
         "properties": {
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the squad."
-          },
-          "members": {
-            "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/SquadMemberDTO"
-            }
-          },
-          "membersOverrides": {
-            "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AssistantOverrides"
-              }
+            "enum": [
+              "cerebras"
             ]
           },
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the squad."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this squad belongs to."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the squad was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the squad was last updated."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "members",
+          "provider",
+          "apiKey",
           "id",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "UpdateSquadDTO": {
+      "CloudflareCredential": {
         "type": "object",
         "properties": {
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the squad."
+            "enum": [
+              "cloudflare"
+            ],
+            "description": "Credential provider. Only allowed value is cloudflare"
           },
-          "members": {
-            "description": "This is the list of assistants that make up the squad.\n\nThe call will start with the first assistant in the list.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/SquadMemberDTO"
-            }
+          "accountId": {
+            "type": "string",
+            "description": "Cloudflare Account Id."
           },
-          "membersOverrides": {
-            "description": "This can be used to override all the assistants' settings and provide values for their template variables.\n\nBoth `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override.",
+          "apiKey": {
+            "type": "string",
+            "description": "Cloudflare API Key / Token."
+          },
+          "accountEmail": {
+            "type": "string",
+            "description": "Cloudflare Account Email."
+          },
+          "fallbackIndex": {
+            "type": "number",
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.",
+            "minimum": 1
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          },
+          "bucketPlan": {
+            "description": "This is the bucket plan that can be provided to store call artifacts in R2",
             "allOf": [
               {
-                "$ref": "#/components/schemas/AssistantOverrides"
+                "$ref": "#/components/schemas/CloudflareR2BucketPlan"
               }
             ]
           }
         },
         "required": [
-          "members"
+          "provider",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "TesterPlan": {
+      "Oauth2AuthenticationSession": {
         "type": "object",
         "properties": {
-          "assistant": {
-            "description": "Pass a transient assistant to use for the test assistant.\n\nMake sure to write a detailed system prompt for a test assistant, and use the {{test.script}} variable to access the test script.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
-              }
-            ]
+          "accessToken": {
+            "type": "string",
+            "description": "This is the OAuth2 access token."
           },
-          "assistantId": {
+          "expiresAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "Pass an assistant id that can be access\n\nMake sure to write a detailed system prompt for the test assistant, and use the {{test.script}} variable to access the test script."
+            "description": "This is the OAuth2 access token expiration."
           },
-          "assistantOverrides": {
-            "description": "Add any assistant overrides to the test assistant.\n\nOne use case is if you want to pass custom variables into the test using variableValues, that you can then access in the script\nand rubric using {{varName}}.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AssistantOverrides"
-              }
-            ]
+          "refreshToken": {
+            "type": "string",
+            "description": "This is the OAuth2 refresh token."
           }
         }
       },
-      "TestSuitePhoneNumber": {
+      "CustomLLMCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This is the provider of the phone number.",
             "enum": [
-              "test-suite"
+              "custom-llm"
             ]
           },
-          "number": {
-            "type": "string",
-            "description": "This is the phone number that is being tested.",
-            "maxLength": 50
-          }
-        },
-        "required": [
-          "provider",
-          "number"
-        ]
-      },
-      "TargetPlan": {
-        "type": "object",
-        "properties": {
-          "phoneNumberId": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the phone number that is being tested.\nDuring the actual test, it'll be called and the assistant attached to it will pick up and be tested.\nTo test an assistant directly, send assistantId instead."
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "phoneNumber": {
-            "description": "This can be any phone number (even not on Vapi).\nDuring the actual test, it'll be called.\nTo test a Vapi number, send phoneNumberId. To test an assistant directly, send assistantId instead.",
+          "authenticationPlan": {
+            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey",
             "allOf": [
               {
-                "$ref": "#/components/schemas/TestSuitePhoneNumber"
+                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
               }
             ]
           },
-          "assistantId": {
+          "id": {
             "type": "string",
-            "description": "This is the assistant being tested.\nDuring the actual test, it'll invoked directly.\nTo test the assistant over phone number, send phoneNumberId instead."
+            "description": "This is the unique identifier for the credential."
           },
-          "assistantOverrides": {
-            "description": "This is the assistant overrides applied to assistantId before it is tested.",
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "authenticationSession": {
+            "description": "This is the authentication session for the credential. Available for credentials that have an authentication plan.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/AssistantOverrides"
+                "$ref": "#/components/schemas/Oauth2AuthenticationSession"
               }
             ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
-        }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "TestSuite": {
+      "DeepgramCredential": {
         "type": "object",
         "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "deepgram"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the test suite."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this test suite belongs to."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the test suite was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the test suite was last updated."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the test suite.",
-            "maxLength": 80
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "phoneNumberId": {
+          "apiUrl": {
             "type": "string",
-            "description": "This is the phone number ID associated with this test suite.",
-            "deprecated": true
-          },
-          "testerPlan": {
-            "description": "Override the default tester plan by providing custom assistant configuration for the test agent.\n\nWe recommend only using this if you are confident, as we have already set sensible defaults on the tester plan.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TesterPlan"
-              }
-            ]
-          },
-          "targetPlan": {
-            "description": "These are the configuration for the assistant / phone number that is being tested.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TargetPlan"
-              }
-            ]
+            "description": "This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com."
           }
         },
         "required": [
+          "provider",
+          "apiKey",
           "id",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "TestSuitesPaginatedResponse": {
+      "DeepInfraCredential": {
         "type": "object",
         "properties": {
-          "results": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/TestSuite"
-            }
+          "provider": {
+            "type": "string",
+            "enum": [
+              "deepinfra"
+            ]
           },
-          "metadata": {
-            "$ref": "#/components/schemas/PaginationMeta"
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "results",
-          "metadata"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "CreateTestSuiteDto": {
+      "DeepSeekCredential": {
         "type": "object",
         "properties": {
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the test suite.",
-            "maxLength": 80
+            "enum": [
+              "deep-seek"
+            ]
           },
-          "phoneNumberId": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the phone number ID associated with this test suite.",
-            "deprecated": true
+            "description": "This is not returned in the API."
           },
-          "testerPlan": {
-            "description": "Override the default tester plan by providing custom assistant configuration for the test agent.\n\nWe recommend only using this if you are confident, as we have already set sensible defaults on the tester plan.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TesterPlan"
-              }
-            ]
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
           },
-          "targetPlan": {
-            "description": "These are the configuration for the assistant / phone number that is being tested.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TargetPlan"
-              }
-            ]
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
-        }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "UpdateTestSuiteDto": {
+      "ElevenLabsCredential": {
         "type": "object",
         "properties": {
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the test suite.",
-            "maxLength": 80
+            "enum": [
+              "11labs"
+            ]
           },
-          "phoneNumberId": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the phone number ID associated with this test suite.",
-            "deprecated": true
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "testerPlan": {
-            "description": "Override the default tester plan by providing custom assistant configuration for the test agent.\n\nWe recommend only using this if you are confident, as we have already set sensible defaults on the tester plan.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TesterPlan"
-              }
-            ]
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
           },
-          "targetPlan": {
-            "description": "These are the configuration for the assistant / phone number that is being tested.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TargetPlan"
-              }
-            ]
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
-        }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "TestSuiteTestVoice": {
+      "GcpCredential": {
         "type": "object",
         "properties": {
-          "scorers": {
-            "type": "array",
-            "description": "These are the scorers used to evaluate the test.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
-                  "title": "AI"
-                }
-              ]
-            }
-          },
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is the type of the test, which must be voice.",
             "enum": [
-              "voice"
-            ],
-            "maxLength": 100
+              "gcp"
+            ]
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the test."
+          "fallbackIndex": {
+            "type": "number",
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.",
+            "minimum": 1
           },
-          "testSuiteId": {
+          "id": {
             "type": "string",
-            "description": "This is the unique identifier for the test suite this test belongs to."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the organization this test belongs to."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the test was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the test was last updated."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the test.",
-            "maxLength": 80
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "script": {
+          "gcpKey": {
+            "description": "This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/<service-account-id>/keys.\n\nThe schema is identical to the JSON that GCP outputs.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/GcpKey"
+              }
+            ]
+          },
+          "region": {
             "type": "string",
-            "description": "This is the script to be used for the voice test.",
-            "maxLength": 10000
+            "description": "This is the region of the GCP resource.",
+            "maxLength": 40
           },
-          "numAttempts": {
-            "type": "number",
-            "description": "This is the number of attempts allowed for the test.",
-            "minimum": 1,
-            "maximum": 10
+          "bucketPlan": {
+            "$ref": "#/components/schemas/BucketPlan"
           }
         },
         "required": [
-          "scorers",
-          "type",
+          "provider",
           "id",
-          "testSuiteId",
           "orgId",
           "createdAt",
           "updatedAt",
-          "script"
+          "gcpKey"
         ]
       },
-      "TestSuiteTestChat": {
+      "GladiaCredential": {
         "type": "object",
         "properties": {
-          "scorers": {
-            "type": "array",
-            "description": "These are the scorers used to evaluate the test.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
-                  "title": "AI"
-                }
-              ]
-            }
-          },
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is the type of the test, which must be chat.",
             "enum": [
-              "chat"
-            ],
-            "maxLength": 100
+              "gladia"
+            ]
           },
-          "id": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the unique identifier for the test."
+            "description": "This is not returned in the API."
           },
-          "testSuiteId": {
+          "id": {
             "type": "string",
-            "description": "This is the unique identifier for the test suite this test belongs to."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the organization this test belongs to."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the test was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the test was last updated."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the test.",
-            "maxLength": 80
-          },
-          "script": {
-            "type": "string",
-            "description": "This is the script to be used for the chat test.",
-            "maxLength": 10000
-          },
-          "numAttempts": {
-            "type": "number",
-            "description": "This is the number of attempts allowed for the test.",
-            "minimum": 1,
-            "maximum": 10
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "scorers",
-          "type",
+          "provider",
+          "apiKey",
           "id",
-          "testSuiteId",
           "orgId",
           "createdAt",
-          "updatedAt",
-          "script"
+          "updatedAt"
         ]
       },
-      "CreateTestSuiteTestVoiceDto": {
+      "GoHighLevelCredential": {
         "type": "object",
         "properties": {
-          "scorers": {
-            "type": "array",
-            "description": "These are the scorers used to evaluate the test.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
-                  "title": "AI"
-                }
-              ]
-            }
-          },
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is the type of the test, which must be voice.",
             "enum": [
-              "voice"
-            ],
-            "maxLength": 100
+              "gohighlevel"
+            ]
           },
-          "script": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the script to be used for the voice test.",
-            "maxLength": 10000
+            "description": "This is not returned in the API."
           },
-          "numAttempts": {
-            "type": "number",
-            "description": "This is the number of attempts allowed for the test.",
-            "minimum": 1,
-            "maximum": 10
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the test.",
-            "maxLength": 80
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "scorers",
-          "type",
-          "script"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "CreateTestSuiteTestChatDto": {
+      "GoogleCredential": {
         "type": "object",
         "properties": {
-          "scorers": {
-            "type": "array",
-            "description": "These are the scorers used to evaluate the test.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
-                  "title": "AI"
-                }
-              ]
-            }
-          },
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is the type of the test, which must be chat.",
+            "description": "This is the key for Gemini in Google AI Studio. Get it from here: https://aistudio.google.com/app/apikey",
             "enum": [
-              "chat"
-            ],
-            "maxLength": 100
+              "google"
+            ]
           },
-          "script": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the script to be used for the chat test.",
-            "maxLength": 10000
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "numAttempts": {
-            "type": "number",
-            "description": "This is the number of attempts allowed for the test.",
-            "minimum": 1,
-            "maximum": 10
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the test.",
-            "maxLength": 80
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "scorers",
-          "type",
-          "script"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "UpdateTestSuiteTestVoiceDto": {
+      "GroqCredential": {
         "type": "object",
         "properties": {
-          "scorers": {
-            "type": "array",
-            "description": "These are the scorers used to evaluate the test.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
-                  "title": "AI"
-                }
-              ]
-            }
-          },
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is the type of the test, which must be voice.",
             "enum": [
-              "voice"
-            ],
-            "maxLength": 100
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of the test.",
-            "maxLength": 80
+              "groq"
+            ]
           },
-          "script": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the script to be used for the voice test.",
-            "maxLength": 10000
-          },
-          "numAttempts": {
-            "type": "number",
-            "description": "This is the number of attempts allowed for the test.",
-            "minimum": 1,
-            "maximum": 10
-          }
-        }
-      },
-      "UpdateTestSuiteTestChatDto": {
-        "type": "object",
-        "properties": {
-          "scorers": {
-            "type": "array",
-            "description": "These are the scorers used to evaluate the test.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TestSuiteTestScorerAI",
-                  "title": "AI"
-                }
-              ]
-            }
+            "description": "This is not returned in the API."
           },
-          "type": {
+          "id": {
             "type": "string",
-            "description": "This is the type of the test, which must be chat.",
-            "enum": [
-              "chat"
-            ],
-            "maxLength": 100
+            "description": "This is the unique identifier for the credential."
           },
-          "name": {
+          "orgId": {
             "type": "string",
-            "description": "This is the name of the test.",
-            "maxLength": 80
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "script": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the script to be used for the chat test.",
-            "maxLength": 10000
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "numAttempts": {
-            "type": "number",
-            "description": "This is the number of attempts allowed for the test.",
-            "minimum": 1,
-            "maximum": 10
-          }
-        }
-      },
-      "TestSuiteTestScorerAI": {
-        "type": "object",
-        "properties": {
-          "type": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the type of the scorer, which must be AI.",
-            "enum": [
-              "ai"
-            ],
-            "maxLength": 100
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "rubric": {
+          "name": {
             "type": "string",
-            "description": "This is the rubric used by the AI scorer.",
-            "maxLength": 1000
-          }
-        },
-        "required": [
-          "type",
-          "rubric"
-        ]
-      },
-      "TestSuiteTestsPaginatedResponse": {
-        "type": "object",
-        "properties": {
-          "results": {
-            "type": "array",
-            "description": "A list of test suite tests.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TestSuiteTestVoice"
-                },
-                {
-                  "$ref": "#/components/schemas/TestSuiteTestChat"
-                }
-              ]
-            }
-          },
-          "metadata": {
-            "description": "Metadata about the pagination.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/PaginationMeta"
-              }
-            ]
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "results",
-          "metadata"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "TestSuiteRunScorerAI": {
+      "HumeCredential": {
         "type": "object",
         "properties": {
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is the type of the scorer, which must be AI.",
             "enum": [
-              "ai"
-            ],
-            "maxLength": 100
+              "hume"
+            ]
           },
-          "result": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the result of the test suite.",
-            "enum": [
-              "pass",
-              "fail"
-            ],
-            "maxLength": 100
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "reasoning": {
+          "id": {
             "type": "string",
-            "description": "This is the reasoning provided by the AI scorer.",
-            "maxLength": 10000
+            "description": "This is the unique identifier for the credential."
           },
-          "rubric": {
+          "orgId": {
             "type": "string",
-            "description": "This is the rubric used by the AI scorer.",
-            "maxLength": 1000
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "type",
-          "result",
-          "reasoning",
-          "rubric"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "TestSuiteRunTestAttemptCall": {
+      "InflectionAICredential": {
         "type": "object",
         "properties": {
-          "artifact": {
-            "description": "This is the artifact of the call.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Artifact"
-              }
+          "provider": {
+            "type": "string",
+            "description": "This is the api key for Pi in InflectionAI's console. Get it from here: https://developers.inflection.ai/keys, billing will need to be setup",
+            "enum": [
+              "inflection-ai"
             ]
-          }
-        },
-        "required": [
-          "artifact"
-        ]
-      },
-      "TestSuiteRunTestAttemptMetadata": {
-        "type": "object",
-        "properties": {
-          "sessionId": {
+          },
+          "apiKey": {
             "type": "string",
-            "description": "This is the session ID for the test attempt."
-          }
-        },
-        "required": [
-          "sessionId"
-        ]
-      },
-      "TestSuiteRunTestAttempt": {
-        "type": "object",
-        "properties": {
-          "scorerResults": {
-            "type": "array",
-            "description": "These are the results of the scorers used to evaluate the test attempt.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/TestSuiteRunScorerAI",
-                  "title": "AI"
-                }
-              ]
-            }
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "call": {
-            "description": "This is the call made during the test attempt.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TestSuiteRunTestAttemptCall"
-              }
-            ]
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
           },
-          "callId": {
+          "orgId": {
             "type": "string",
-            "description": "This is the call ID for the test attempt."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "metadata": {
-            "description": "This is the metadata for the test attempt.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TestSuiteRunTestAttemptMetadata"
-              }
-            ]
-          }
-        },
-        "required": [
-          "scorerResults"
-        ]
-      },
-      "TestSuiteRunTestResult": {
-        "type": "object",
-        "properties": {
-          "test": {
-            "description": "This is the test that was run.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TestSuiteTestVoice",
-                "title": "TestSuiteTestVoice"
-              }
-            ]
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "attempts": {
-            "description": "These are the attempts made for this test.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/TestSuiteRunTestAttempt"
-            }
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "test",
-          "attempts"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "TestSuiteRun": {
+      "LangfuseCredential": {
         "type": "object",
         "properties": {
-          "status": {
+          "provider": {
             "type": "string",
-            "description": "This is the current status of the test suite run.",
             "enum": [
-              "queued",
-              "in-progress",
-              "completed",
-              "failed"
+              "langfuse"
             ]
           },
-          "id": {
+          "publicKey": {
             "type": "string",
-            "description": "This is the unique identifier for the test suite run."
+            "description": "The public key for Langfuse project. Eg: pk-lf-..."
           },
-          "orgId": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the unique identifier for the organization this run belongs to."
+            "description": "The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API."
           },
-          "testSuiteId": {
+          "apiUrl": {
             "type": "string",
-            "description": "This is the unique identifier for the test suite this run belongs to."
+            "description": "The host URL for Langfuse project. Eg: https://cloud.langfuse.com"
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the test suite run was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the test suite run was last updated."
-          },
-          "testResults": {
-            "description": "These are the results of the tests in this test suite run.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/TestSuiteRunTestResult"
-            }
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the test suite run.",
-            "maxLength": 80
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "status",
+          "provider",
+          "publicKey",
+          "apiKey",
+          "apiUrl",
           "id",
           "orgId",
-          "testSuiteId",
           "createdAt",
-          "updatedAt",
-          "testResults"
+          "updatedAt"
         ]
       },
-      "TestSuiteRunsPaginatedResponse": {
+      "LmntCredential": {
         "type": "object",
         "properties": {
-          "results": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/TestSuiteRun"
-            }
+          "provider": {
+            "type": "string",
+            "enum": [
+              "lmnt"
+            ]
           },
-          "metadata": {
-            "$ref": "#/components/schemas/PaginationMeta"
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "results",
-          "metadata"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "CreateTestSuiteRunDto": {
-        "type": "object",
-        "properties": {
-          "name": {
-            "type": "string",
-            "description": "This is the name of the test suite run.",
-            "maxLength": 80
-          }
-        }
-      },
-      "UpdateTestSuiteRunDto": {
+      "MakeCredential": {
         "type": "object",
         "properties": {
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the test suite run.",
-            "maxLength": 80
-          }
-        }
-      },
-      "Metrics": {
-        "type": "object",
-        "properties": {
-          "orgId": {
-            "type": "string"
-          },
-          "rangeStart": {
-            "type": "string"
-          },
-          "rangeEnd": {
-            "type": "string"
-          },
-          "bill": {
-            "type": "number"
-          },
-          "billWithinBillingLimit": {
-            "type": "boolean"
-          },
-          "billDailyBreakdown": {
-            "type": "object"
+            "enum": [
+              "make"
+            ]
           },
-          "callActive": {
-            "type": "number"
+          "teamId": {
+            "type": "string",
+            "description": "Team ID"
           },
-          "callActiveWithinConcurrencyLimit": {
-            "type": "boolean"
+          "region": {
+            "type": "string",
+            "description": "Region of your application. For example: eu1, eu2, us1, us2"
           },
-          "callMinutes": {
-            "type": "number"
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
           },
-          "callMinutesDailyBreakdown": {
-            "type": "object"
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
           },
-          "callMinutesAverage": {
-            "type": "number"
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "callMinutesAverageDailyBreakdown": {
-            "type": "object"
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "callCount": {
-            "type": "number"
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "callCountDailyBreakdown": {
-            "type": "object"
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
+          "provider",
+          "teamId",
+          "region",
+          "apiKey",
+          "id",
           "orgId",
-          "rangeStart",
-          "rangeEnd",
-          "bill",
-          "billWithinBillingLimit",
-          "billDailyBreakdown",
-          "callActive",
-          "callActiveWithinConcurrencyLimit",
-          "callMinutes",
-          "callMinutesDailyBreakdown",
-          "callMinutesAverage",
-          "callMinutesAverageDailyBreakdown",
-          "callCount",
-          "callCountDailyBreakdown"
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "TimeRange": {
+      "MistralCredential": {
         "type": "object",
         "properties": {
-          "step": {
+          "provider": {
             "type": "string",
-            "description": "This is the time step for aggregations.\n\nIf not provided, defaults to returning for the entire time range.",
             "enum": [
-              "second",
-              "minute",
-              "hour",
-              "day",
-              "week",
-              "month",
-              "quarter",
-              "year",
-              "decade",
-              "century",
-              "millennium"
+              "mistral"
             ]
           },
-          "start": {
+          "apiKey": {
+            "type": "string",
+            "maxLength": 100,
+            "description": "This is not returned in the API."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the start date for the time range.\n\nIf not provided, defaults to the 7 days ago."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "end": {
+          "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the end date for the time range.\n\nIf not provided, defaults to now."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "timezone": {
+          "name": {
             "type": "string",
-            "description": "This is the timezone you want to set for the query.\n\nIf not provided, defaults to UTC."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
-        }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "AnalyticsOperation": {
+      "NeuphonicCredential": {
         "type": "object",
         "properties": {
-          "operation": {
+          "provider": {
             "type": "string",
-            "description": "This is the aggregation operation you want to perform.",
             "enum": [
-              "sum",
-              "avg",
-              "count",
-              "min",
-              "max",
-              "history"
+              "neuphonic"
             ]
           },
-          "column": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the columns you want to perform the aggregation operation on.",
-            "enum": [
-              "id",
-              "cost",
-              "costBreakdown.llm",
-              "costBreakdown.stt",
-              "costBreakdown.tts",
-              "costBreakdown.vapi",
-              "costBreakdown.ttsCharacters",
-              "costBreakdown.llmPromptTokens",
-              "costBreakdown.llmCompletionTokens",
-              "duration",
-              "concurrency",
-              "minutesUsed"
-            ]
+            "description": "This is not returned in the API."
           },
-          "alias": {
+          "id": {
             "type": "string",
-            "description": "This is the alias for column name returned. Defaults to `${operation}${column}`.",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
             "maxLength": 40
           }
         },
         "required": [
-          "operation",
-          "column"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "AnalyticsQuery": {
+      "OpenAICredential": {
         "type": "object",
         "properties": {
-          "table": {
+          "provider": {
             "type": "string",
-            "description": "This is the table you want to query.",
             "enum": [
-              "call",
-              "subscription"
+              "openai"
             ]
           },
-          "groupBy": {
-            "type": "array",
-            "description": "This is the list of columns you want to group by.",
-            "enum": [
-              "type",
-              "assistantId",
-              "endedReason",
-              "analysis.successEvaluation",
-              "status"
-            ],
-            "items": {
-              "type": "string",
-              "enum": [
-                "type",
-                "assistantId",
-                "endedReason",
-                "analysis.successEvaluation",
-                "status"
-              ]
-            }
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
           },
-          "name": {
+          "id": {
             "type": "string",
-            "description": "This is the name of the query. This will be used to identify the query in the response.",
-            "maxLength": 40
+            "description": "This is the unique identifier for the credential."
           },
-          "timeRange": {
-            "description": "This is the time range for the query.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TimeRange"
-              }
-            ]
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "operations": {
-            "description": "This is the list of operations you want to perform.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/AnalyticsOperation"
-            }
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "table",
-          "name",
-          "operations"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "AnalyticsQueryDTO": {
+      "OpenRouterCredential": {
         "type": "object",
         "properties": {
-          "queries": {
-            "description": "This is the list of metric queries you want to perform.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/AnalyticsQuery"
-            }
+          "provider": {
+            "type": "string",
+            "enum": [
+              "openrouter"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "queries"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "AnalyticsQueryResult": {
+      "PerplexityAICredential": {
         "type": "object",
         "properties": {
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the unique key for the query."
-          },
-          "timeRange": {
-            "description": "This is the time range for the query.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TimeRange"
-              }
+            "enum": [
+              "perplexity-ai"
             ]
           },
-          "result": {
-            "description": "This is the result of the query, a list of unique groups with result of their aggregations.\n\nExample:\n\"result\": [\n  { \"date\": \"2023-01-01\", \"assistantId\": \"123\", \"endedReason\": \"customer-ended-call\", \"sumDuration\": 120, \"avgCost\": 10.5 },\n  { \"date\": \"2023-01-02\", \"assistantId\": \"123\", \"endedReason\": \"customer-did-not-give-microphone-permission\", \"sumDuration\": 0, \"avgCost\": 0 },\n  // Additional results\n]",
-            "type": "array",
-            "items": {
-              "type": "object"
-            }
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "name",
-          "timeRange",
-          "result"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "CallLogPrivileged": {
+      "PlayHTCredential": {
         "type": "object",
         "properties": {
-          "callId": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "playht"
+            ]
+          },
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
+          },
+          "id": {
             "type": "string",
-            "description": "This is the unique identifier for the call."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this call log belongs to."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "log": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the log message associated with the call."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "level": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the level of the log message.",
-            "enum": [
-              "INFO",
-              "LOG",
-              "WARN",
-              "ERROR",
-              "CHECKPOINT"
-            ]
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "time": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the log was created."
-          }
-        },
-        "required": [
-          "callId",
-          "orgId",
-          "log",
-          "level",
-          "time"
-        ]
-      },
-      "CallLogsPaginatedResponse": {
-        "type": "object",
-        "properties": {
-          "results": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/CallLogPrivileged"
-            }
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "metadata": {
-            "$ref": "#/components/schemas/PaginationMeta"
-          }
-        },
-        "required": [
-          "results",
-          "metadata"
-        ]
-      },
-      "Error": {
-        "type": "object",
-        "properties": {
-          "message": {
+          "userId": {
             "type": "string"
           }
         },
         "required": [
-          "message"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "userId"
         ]
       },
-      "Log": {
+      "RimeAICredential": {
         "type": "object",
         "properties": {
-          "time": {
-            "type": "string",
-            "description": "This is the timestamp at which the log was written."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this log belongs to."
-          },
-          "type": {
+          "provider": {
             "type": "string",
-            "description": "This is the type of the log.",
             "enum": [
-              "API",
-              "Webhook",
-              "Call",
-              "Provider"
+              "rime-ai"
             ]
           },
-          "webhookType": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the type of the webhook, given the log is from a webhook."
+            "description": "This is not returned in the API."
           },
-          "resource": {
+          "id": {
             "type": "string",
-            "description": "This is the specific resource, relevant only to API logs.",
-            "enum": [
-              "org",
-              "assistant",
-              "analytics",
-              "credential",
-              "phone-number",
-              "block",
-              "voice-library",
-              "provider",
-              "tool",
-              "token",
-              "template",
-              "squad",
-              "call",
-              "file",
-              "metric",
-              "log"
-            ]
-          },
-          "requestDurationSeconds": {
-            "type": "number",
-            "description": "'This is how long the request took.",
-            "minimum": 0
+            "description": "This is the unique identifier for the credential."
           },
-          "requestStartedAt": {
+          "orgId": {
             "type": "string",
-            "description": "This is the timestamp at which the request began."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "requestFinishedAt": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the timestamp at which the request finished."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "requestBody": {
-            "type": "object",
-            "description": "This is the body of the request."
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "requestHttpMethod": {
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "RunpodCredential": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
-            "description": "This is the request method.",
             "enum": [
-              "POST",
-              "GET",
-              "PUT",
-              "PATCH",
-              "DELETE"
+              "runpod"
             ]
           },
-          "requestUrl": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the request URL."
+            "description": "This is not returned in the API."
           },
-          "requestPath": {
+          "id": {
             "type": "string",
-            "description": "This is the request path."
+            "description": "This is the unique identifier for the credential."
           },
-          "requestQuery": {
+          "orgId": {
             "type": "string",
-            "description": "This is the request query."
-          },
-          "responseHttpCode": {
-            "type": "number",
-            "description": "This the HTTP status code of the response."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "requestIpAddress": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the request IP address."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "requestOrigin": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the origin of the request"
-          },
-          "responseBody": {
-            "type": "object",
-            "description": "This is the body of the response."
-          },
-          "requestHeaders": {
-            "type": "object",
-            "description": "These are the headers of the request."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "error": {
-            "description": "This is the error, if one occurred.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Error"
-              }
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "WellSaidCredential": {
+        "type": "object",
+        "properties": {
+          "provider": {
+            "type": "string",
+            "enum": [
+              "wellsaid"
             ]
           },
-          "assistantId": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ID of the assistant."
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "phoneNumberId": {
+          "id": {
             "type": "string",
-            "description": "This is the ID of the phone number."
+            "description": "This is the unique identifier for the credential."
           },
-          "customerId": {
+          "orgId": {
             "type": "string",
-            "description": "This is the ID of the customer."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "squadId": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the ID of the squad."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "callId": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the ID of the call."
-          }
-        },
-        "required": [
-          "time",
-          "orgId",
-          "type"
-        ]
-      },
-      "LogsPaginatedResponse": {
-        "type": "object",
-        "properties": {
-          "results": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/Log"
-            }
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "metadata": {
-            "$ref": "#/components/schemas/PaginationMeta"
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "results",
-          "metadata"
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "CreateOrgDTO": {
+      "S3Credential": {
         "type": "object",
         "properties": {
-          "hipaaEnabled": {
-            "type": "boolean",
-            "description": "When this is enabled, no logs, recordings, or transcriptions will be stored. At the end of the call, you will still receive an end-of-call-report message to store on your server. Defaults to false.\nWhen HIPAA is enabled, only OpenAI/Custom LLM or Azure Providers will be available for LLM and Voice respectively.\nThis is due to the compliance requirements of HIPAA. Other providers may not meet these requirements.",
-            "example": false
+          "provider": {
+            "type": "string",
+            "enum": [
+              "s3"
+            ],
+            "description": "Credential provider. Only allowed value is s3"
           },
-          "subscriptionId": {
+          "awsAccessKeyId": {
             "type": "string",
-            "description": "This is the ID of the subscription the org belongs to."
+            "description": "AWS access key ID."
           },
-          "name": {
+          "awsSecretAccessKey": {
             "type": "string",
-            "description": "This is the name of the org. This is just for your own reference.",
-            "maxLength": 40
+            "description": "AWS access key secret. This is not returned in the API."
           },
-          "channel": {
+          "region": {
             "type": "string",
-            "description": "This is the channel of the org. There is the cluster the API traffic for the org will be directed.",
-            "enum": [
-              "default",
-              "weekly"
-            ]
+            "description": "AWS region in which the S3 bucket is located."
           },
-          "billingLimit": {
-            "type": "number",
-            "description": "This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai.",
-            "minimum": 0,
-            "maximum": 1000
+          "s3BucketName": {
+            "type": "string",
+            "description": "AWS S3 bucket name."
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "s3PathPrefix": {
+            "type": "string",
+            "description": "The path prefix for the uploaded recording. Ex. \"recordings/\""
           },
-          "concurrencyLimit": {
+          "fallbackIndex": {
             "type": "number",
-            "description": "This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai.",
             "minimum": 1,
-            "maximum": 10
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order."
           },
-          "compliancePlan": {
-            "description": "Stores the information about the compliance plan enforced at the organization level. Currently pciEnabled is supported through this field.\nWhen this is enabled, any logs, recordings, or transcriptions will be shipped to the customer endpoints if provided else lost.\nAt the end of the call, you will receive an end-of-call-report message to store on your server, if webhook is provided.\nDefaults to false.\nWhen PCI is enabled, only PCI-compliant Providers will be available for LLM, Voice and transcribers.\nThis is due to the compliance requirements of PCI. Other providers may not meet these requirements.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CompliancePlan"
-              }
-            ]
-          }
-        }
-      },
-      "AutoReloadPlan": {
-        "type": "object",
-        "properties": {
-          "credits": {
-            "type": "number",
-            "description": "This the amount of credits to reload."
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
           },
-          "threshold": {
-            "type": "number",
-            "description": "This is the limit at which the reload is triggered."
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
-          "credits",
-          "threshold"
+          "provider",
+          "awsAccessKeyId",
+          "awsSecretAccessKey",
+          "region",
+          "s3BucketName",
+          "s3PathPrefix",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
         ]
       },
-      "InvoicePlan": {
+      "SmallestAICredential": {
         "type": "object",
         "properties": {
-          "companyName": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of the company."
+            "enum": [
+              "smallest-ai"
+            ]
           },
-          "companyAddress": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the address of the company."
+            "description": "This is not returned in the API."
           },
-          "companyTaxId": {
+          "id": {
             "type": "string",
-            "description": "This is the tax ID of the company."
+            "description": "This is the unique identifier for the credential."
           },
-          "companyEmail": {
-            "type": "string",
-            "description": "This is the preferred invoicing email of the company. If not specified, defaults to the subscription's email."
-          }
-        }
-      },
-      "Subscription": {
-        "type": "object",
-        "properties": {
-          "id": {
+          "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the subscription."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the timestamp when the subscription was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the timestamp when the subscription was last updated."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "type": {
+          "name": {
             "type": "string",
-            "description": "This is the type / tier of the subscription.",
-            "enum": [
-              "trial",
-              "pay-as-you-go",
-              "enterprise"
-            ]
-          },
-          "status": {
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "SonioxCredential": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
-            "description": "This is the status of the subscription. Past due subscriptions are subscriptions\nwith past due payments.",
             "enum": [
-              "active",
-              "frozen"
+              "soniox"
             ]
           },
-          "credits": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the number of credits the subscription currently has.\n\nNote: This is a string to avoid floating point precision issues."
-          },
-          "concurrencyCounter": {
-            "type": "number",
-            "description": "This is the total number of active calls (concurrency) across all orgs under this subscription.",
-            "minimum": 1
-          },
-          "concurrencyLimitIncluded": {
-            "type": "number",
-            "description": "This is the default concurrency limit for the subscription.",
-            "minimum": 1
-          },
-          "phoneNumbersCounter": {
-            "type": "number",
-            "description": "This is the number of free phone numbers the subscription has",
-            "minimum": 1
-          },
-          "phoneNumbersIncluded": {
-            "type": "number",
-            "description": "This is the maximum number of free phone numbers the subscription can have",
-            "minimum": 1
-          },
-          "concurrencyLimitPurchased": {
-            "type": "number",
-            "description": "This is the purchased add-on concurrency limit for the subscription.",
-            "minimum": 1
-          },
-          "monthlyChargeScheduleId": {
-            "type": "number",
-            "description": "This is the ID of the monthly job that charges for subscription add ons and phone numbers."
-          },
-          "monthlyCreditCheckScheduleId": {
-            "type": "number",
-            "description": "This is the ID of the monthly job that checks whether the credit balance of the subscription\nis sufficient for the monthly charge."
+            "description": "This is not returned in the API."
           },
-          "stripeCustomerId": {
+          "apiUrl": {
             "type": "string",
-            "description": "This is the Stripe customer ID."
+            "description": "Custom Soniox WebSocket endpoint (e.g. EU server wss://stt-rt.eu.soniox.com/transcribe-websocket). Defaults to the region-appropriate endpoint when omitted."
           },
-          "stripePaymentMethodId": {
+          "id": {
             "type": "string",
-            "description": "This is the Stripe payment ID."
-          },
-          "slackSupportEnabled": {
-            "type": "boolean",
-            "description": "If this flag is true, then the user has purchased slack support."
+            "description": "This is the unique identifier for the credential."
           },
-          "slackChannelId": {
+          "orgId": {
             "type": "string",
-            "description": "If this subscription has a slack support subscription, the slack channel's ID will be stored here."
-          },
-          "hipaaEnabled": {
-            "type": "boolean",
-            "description": "This is the HIPAA enabled flag for the subscription. It determines whether orgs under this\nsubscription have the option to enable HIPAA compliance."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "hipaaCommonPaperAgreementId": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the ID for the Common Paper agreement outlining the HIPAA contract."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "stripePaymentMethodFingerprint": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the Stripe fingerprint of the payment method (card). It allows us\nto detect users who try to abuse our system through multiple sign-ups."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "stripeCustomerEmail": {
+          "name": {
             "type": "string",
-            "description": "This is the customer's email on Stripe."
-          },
-          "referredByEmail": {
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "SpeechmaticsCredential": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
-            "description": "This is the email of the referrer for the subscription."
-          },
-          "autoReloadPlan": {
-            "description": "This is the auto reload plan configured for the subscription.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AutoReloadPlan"
-              }
+            "enum": [
+              "speechmatics"
             ]
           },
-          "minutesIncluded": {
-            "type": "number",
-            "description": "The number of minutes included in the subscription.",
-            "minimum": 0
-          },
-          "minutesUsed": {
-            "type": "number",
-            "description": "The number of minutes used in the subscription.",
-            "minimum": 0
-          },
-          "minutesUsedNextResetAt": {
-            "format": "date-time",
+          "apiKey": {
             "type": "string",
-            "description": "This is the timestamp at which the number of monthly free minutes is scheduled to reset at."
-          },
-          "minutesOverageCost": {
-            "type": "number",
-            "description": "The per minute charge on minutes that exceed the included minutes. Enterprise only."
-          },
-          "providersIncluded": {
-            "description": "The list of providers included in the subscription. Enterprise only.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
-          },
-          "outboundCallsDailyLimit": {
-            "type": "number",
-            "description": "The maximum number of outbound calls this subscription may make in a day. Resets every night.",
-            "minimum": 1
-          },
-          "outboundCallsCounter": {
-            "type": "number",
-            "description": "The current number of outbound calls the subscription has made in the current day.",
-            "minimum": 1
+            "description": "This is not returned in the API."
           },
-          "outboundCallsCounterNextResetAt": {
-            "format": "date-time",
+          "id": {
             "type": "string",
-            "description": "This is the timestamp at which the outbound calls counter is scheduled to reset at."
-          },
-          "couponIds": {
-            "description": "This is the IDs of the coupons applicable to this subscription.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+            "description": "This is the unique identifier for the credential."
           },
-          "couponUsageLeft": {
+          "orgId": {
             "type": "string",
-            "description": "This is the number of credits left obtained from a coupon."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "invoicePlan": {
-            "description": "This is the invoice plan for the subscription.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/InvoicePlan"
-              }
-            ]
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "pciEnabled": {
-            "type": "boolean",
-            "description": "This is the PCI enabled flag for the subscription. It determines whether orgs under this\nsubscription have the option to enable PCI compliance."
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "pciCommonPaperAgreementId": {
+          "name": {
             "type": "string",
-            "description": "This is the ID for the Common Paper agreement outlining the PCI contract."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
+          "provider",
+          "apiKey",
           "id",
+          "orgId",
           "createdAt",
-          "updatedAt",
-          "type",
-          "status",
-          "credits",
-          "concurrencyCounter",
-          "concurrencyLimitIncluded",
-          "concurrencyLimitPurchased"
+          "updatedAt"
         ]
       },
-      "OrgPlan": {
-        "type": "object",
-        "properties": {
-          "includedProviders": {
-            "type": "array",
-            "items": {
-              "type": "object"
-            }
-          },
-          "includedMinutes": {
-            "type": "number"
-          },
-          "costPerOverageMinute": {
-            "type": "number"
-          }
-        }
-      },
-      "Org": {
+      "SupabaseCredential": {
         "type": "object",
         "properties": {
-          "hipaaEnabled": {
-            "type": "boolean",
-            "description": "When this is enabled, no logs, recordings, or transcriptions will be stored. At the end of the call, you will still receive an end-of-call-report message to store on your server. Defaults to false.\nWhen HIPAA is enabled, only OpenAI/Custom LLM or Azure Providers will be available for LLM and Voice respectively.\nThis is due to the compliance requirements of HIPAA. Other providers may not meet these requirements.",
-            "example": false
+          "provider": {
+            "type": "string",
+            "enum": [
+              "supabase"
+            ],
+            "description": "This is for supabase storage."
           },
-          "subscription": {
-            "$ref": "#/components/schemas/Subscription"
+          "fallbackIndex": {
+            "type": "number",
+            "minimum": 1,
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order."
           },
-          "subscriptionId": {
+          "id": {
             "type": "string",
-            "description": "This is the ID of the subscription the org belongs to."
+            "description": "This is the unique identifier for the credential."
           },
-          "id": {
+          "orgId": {
             "type": "string",
-            "description": "This is the unique identifier for the org."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the org was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the org was last updated."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "stripeCustomerId": {
+          "name": {
             "type": "string",
-            "description": "This is the Stripe customer for the org."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "stripeSubscriptionId": {
+          "bucketPlan": {
+            "$ref": "#/components/schemas/SupabaseBucketPlan"
+          }
+        },
+        "required": [
+          "provider",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "TavusCredential": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
-            "description": "This is the subscription for the org."
+            "enum": [
+              "tavus"
+            ]
           },
-          "stripeSubscriptionItemId": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the subscription's subscription item."
+            "description": "This is not returned in the API."
           },
-          "stripeSubscriptionCurrentPeriodStart": {
-            "format": "date-time",
+          "id": {
             "type": "string",
-            "description": "This is the subscription's current period start."
+            "description": "This is the unique identifier for the credential."
           },
-          "stripeSubscriptionStatus": {
+          "orgId": {
             "type": "string",
-            "description": "This is the subscription's status."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "plan": {
-            "description": "This is the plan for the org.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OrgPlan"
-              }
-            ]
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "jwtSecret": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the secret key used for signing JWT tokens for the org."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the org. This is just for your own reference.",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
             "maxLength": 40
-          },
-          "channel": {
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
+      },
+      "TogetherAICredential": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
-            "description": "This is the channel of the org. There is the cluster the API traffic for the org will be directed.",
             "enum": [
-              "default",
-              "weekly"
+              "together-ai"
             ]
           },
-          "billingLimit": {
-            "type": "number",
-            "description": "This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai.",
-            "minimum": 0,
-            "maximum": 1000
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
           },
-          "concurrencyLimit": {
-            "type": "number",
-            "description": "This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai.",
-            "minimum": 1,
-            "maximum": 10
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "compliancePlan": {
-            "description": "Stores the information about the compliance plan enforced at the organization level. Currently pciEnabled is supported through this field.\nWhen this is enabled, any logs, recordings, or transcriptions will be shipped to the customer endpoints if provided else lost.\nAt the end of the call, you will receive an end-of-call-report message to store on your server, if webhook is provided.\nDefaults to false.\nWhen PCI is enabled, only PCI-compliant Providers will be available for LLM, Voice and transcribers.\nThis is due to the compliance requirements of PCI. Other providers may not meet these requirements.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CompliancePlan"
-              }
-            ]
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
+          "provider",
+          "apiKey",
           "id",
+          "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "UpdateOrgDTO": {
+      "TwilioCredential": {
         "type": "object",
         "properties": {
-          "hipaaEnabled": {
-            "type": "boolean",
-            "description": "When this is enabled, no logs, recordings, or transcriptions will be stored. At the end of the call, you will still receive an end-of-call-report message to store on your server. Defaults to false.\nWhen HIPAA is enabled, only OpenAI/Custom LLM or Azure Providers will be available for LLM and Voice respectively.\nThis is due to the compliance requirements of HIPAA. Other providers may not meet these requirements.",
-            "example": false
-          },
-          "subscriptionId": {
-            "type": "string",
-            "description": "This is the ID of the subscription the org belongs to."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of the org. This is just for your own reference.",
-            "maxLength": 40
-          },
-          "channel": {
+          "provider": {
             "type": "string",
-            "description": "This is the channel of the org. There is the cluster the API traffic for the org will be directed.",
             "enum": [
-              "default",
-              "weekly"
+              "twilio"
             ]
           },
-          "billingLimit": {
-            "type": "number",
-            "description": "This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai.",
-            "minimum": 0,
-            "maximum": 1000
+          "authToken": {
+            "type": "string",
+            "description": "This is not returned in the API."
           },
-          "server": {
-            "description": "This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.\n\nThe order of precedence is:\n\n1. assistant.server\n2. phoneNumber.server\n3. org.server",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
-              }
-            ]
+          "apiKey": {
+            "type": "string",
+            "description": "This is not returned in the API."
           },
-          "concurrencyLimit": {
-            "type": "number",
-            "description": "This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai.",
-            "minimum": 1,
-            "maximum": 10
+          "apiSecret": {
+            "type": "string",
+            "description": "This is not returned in the API."
           },
-          "compliancePlan": {
-            "description": "Stores the information about the compliance plan enforced at the organization level. Currently pciEnabled is supported through this field.\nWhen this is enabled, any logs, recordings, or transcriptions will be shipped to the customer endpoints if provided else lost.\nAt the end of the call, you will receive an end-of-call-report message to store on your server, if webhook is provided.\nDefaults to false.\nWhen PCI is enabled, only PCI-compliant Providers will be available for LLM, Voice and transcribers.\nThis is due to the compliance requirements of PCI. Other providers may not meet these requirements.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CompliancePlan"
-              }
-            ]
-          }
-        }
-      },
-      "User": {
-        "type": "object",
-        "properties": {
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the profile or user."
+            "description": "This is the unique identifier for the credential."
+          },
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the profile was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the profile was last updated."
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "email": {
+          "name": {
             "type": "string",
-            "description": "This is the email of the user that is associated with the profile."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "fullName": {
-            "type": "string",
-            "description": "This is the full name of the user that is associated with the profile."
+          "accountSid": {
+            "type": "string"
           }
         },
         "required": [
+          "provider",
           "id",
+          "orgId",
           "createdAt",
           "updatedAt",
-          "email"
+          "accountSid"
         ]
       },
-      "InviteUserDTO": {
+      "VonageCredential": {
         "type": "object",
         "properties": {
-          "emails": {
-            "maxItems": 100,
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+          "vonageApplicationPrivateKey": {
+            "type": "string",
+            "description": "This is not returned in the API.",
+            "maxLength": 10000
           },
-          "role": {
+          "provider": {
+            "type": "string",
             "enum": [
-              "admin",
-              "editor",
-              "viewer"
-            ],
-            "type": "string"
+              "vonage"
+            ]
           },
-          "redirectTo": {
-            "type": "string"
-          }
-        },
-        "required": [
-          "emails",
-          "role"
-        ]
-      },
-      "UpdateUserRoleDTO": {
-        "type": "object",
-        "properties": {
-          "userId": {
-            "type": "string"
+          "apiSecret": {
+            "type": "string",
+            "description": "This is not returned in the API."
           },
-          "role": {
-            "enum": [
-              "admin",
-              "editor",
-              "viewer"
-            ],
-            "type": "string"
-          }
-        },
-        "required": [
-          "userId",
-          "role"
-        ]
-      },
-      "JwtResponse": {
-        "type": "object",
-        "properties": {
-          "accessToken": {
-            "type": "string"
+          "id": {
+            "type": "string",
+            "description": "This is the unique identifier for the credential."
           },
-          "aud": {
-            "type": "object"
-          }
-        },
-        "required": [
-          "accessToken",
-          "aud"
-        ]
-      },
-      "TokenRestrictions": {
-        "type": "object",
-        "properties": {
-          "enabled": {
-            "type": "boolean",
-            "description": "This determines whether the token is enabled or disabled. Default is true, it's enabled."
+          "orgId": {
+            "type": "string",
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
-          "allowedOrigins": {
-            "description": "This determines the allowed origins for this token. Validates the `Origin` header. Default is any origin.\n\nOnly relevant for `public` tokens.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+          "createdAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
-          "allowedAssistantIds": {
-            "description": "This determines which assistantIds can be used when creating a call. Default is any assistantId.\n\nOnly relevant for `public` tokens.",
-            "type": "array",
-            "items": {
-              "type": "string"
-            }
+          "updatedAt": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "allowTransientAssistant": {
-            "type": "boolean",
-            "description": "This determines whether transient assistants can be used when creating a call. Default is true.\n\nIf `allowedAssistantIds` is provided, this is automatically false.\n\nOnly relevant for `public` tokens."
-          }
-        }
-      },
-      "CreateTokenDTO": {
-        "type": "object",
-        "properties": {
-          "tag": {
+          "vonageApplicationId": {
             "type": "string",
-            "description": "This is the tag for the token. It represents its scope.",
-            "enum": [
-              "private",
-              "public"
-            ]
+            "description": "This is the Vonage Application ID for the credential.\n\nOnly relevant for Vonage credentials.",
+            "maxLength": 10000
           },
           "name": {
             "type": "string",
-            "description": "This is the name of the token. This is just for your own reference.",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
             "maxLength": 40
           },
-          "restrictions": {
-            "description": "This are the restrictions for the token.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/TokenRestrictions"
-              }
-            ]
+          "apiKey": {
+            "type": "string"
           }
-        }
+        },
+        "required": [
+          "vonageApplicationPrivateKey",
+          "provider",
+          "apiSecret",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "vonageApplicationId",
+          "apiKey"
+        ]
       },
-      "Token": {
+      "WebhookCredential": {
         "type": "object",
         "properties": {
-          "tag": {
+          "provider": {
             "type": "string",
-            "description": "This is the tag for the token. It represents its scope.",
             "enum": [
-              "private",
-              "public"
+              "webhook"
             ]
           },
+          "authenticationPlan": {
+            "description": "This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/HMACAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "oauth2": "#/components/schemas/OAuth2AuthenticationPlan",
+                "hmac": "#/components/schemas/HMACAuthenticationPlan",
+                "bearer": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            }
+          },
           "id": {
             "type": "string",
-            "description": "This is the unique identifier for the token."
+            "description": "This is the unique identifier for the credential."
           },
           "orgId": {
             "type": "string",
-            "description": "This is unique identifier for the org that this token belongs to."
+            "description": "This is the unique identifier for the org that this credential belongs to."
           },
           "createdAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the token was created."
+            "description": "This is the ISO 8601 date-time string of when the credential was created."
           },
           "updatedAt": {
             "format": "date-time",
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the token was last updated."
-          },
-          "value": {
-            "type": "string",
-            "description": "This is the token key."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of the token. This is just for your own reference.",
-            "maxLength": 40
+            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "restrictions": {
-            "description": "This are the restrictions for the token.",
+          "authenticationSession": {
+            "description": "This is the authentication session for the credential. Available for credentials that have an authentication plan.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/TokenRestrictions"
+                "$ref": "#/components/schemas/Oauth2AuthenticationSession"
               }
             ]
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           }
         },
         "required": [
+          "provider",
+          "authenticationPlan",
           "id",
           "orgId",
           "createdAt",
           "updatedAt",
-          "value"
+          "authenticationSession"
         ]
       },
-      "UpdateTokenDTO": {
+      "SpkiPemPublicKeyConfig": {
         "type": "object",
         "properties": {
-          "tag": {
+          "name": {
             "type": "string",
-            "description": "This is the tag for the token. It represents its scope.",
+            "description": "Optional name of the key for identification purposes.",
+            "maxLength": 100
+          },
+          "format": {
+            "type": "string",
+            "description": "The format of the public key.",
             "enum": [
-              "private",
-              "public"
+              "spki-pem"
             ]
           },
-          "name": {
+          "pem": {
             "type": "string",
-            "description": "This is the name of the token. This is just for your own reference.",
-            "maxLength": 40
+            "description": "The PEM-encoded public key."
+          }
+        },
+        "required": [
+          "format",
+          "pem"
+        ]
+      },
+      "PublicKeyEncryptionPlan": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "The type of encryption plan.",
+            "enum": [
+              "public-key"
+            ]
           },
-          "restrictions": {
-            "description": "This are the restrictions for the token.",
+          "algorithm": {
+            "type": "string",
+            "description": "The encryption algorithm to use.",
+            "enum": [
+              "RSA-OAEP-256"
+            ]
+          },
+          "publicKey": {
+            "description": "The public key configuration.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/SpkiPemPublicKeyConfig"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "format",
+              "mapping": {
+                "spki-pem": "#/components/schemas/SpkiPemPublicKeyConfig"
+              }
+            },
             "allOf": [
               {
-                "$ref": "#/components/schemas/TokenRestrictions"
+                "$ref": "#/components/schemas/SpkiPemPublicKeyConfig"
               }
             ]
           }
-        }
+        },
+        "required": [
+          "type",
+          "algorithm",
+          "publicKey"
+        ]
       },
-      "AnthropicCredential": {
+      "CustomCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "anthropic"
+              "custom-credential"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+          "authenticationPlan": {
+            "description": "This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/HMACAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "oauth2": "#/components/schemas/OAuth2AuthenticationPlan",
+                "hmac": "#/components/schemas/HMACAuthenticationPlan",
+                "bearer": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            }
+          },
+          "encryptionPlan": {
+            "description": "This is the encryption plan for encrypting sensitive data. Currently supports public-key encryption.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "public-key": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            ]
           },
           "id": {
             "type": "string",
@@ -28005,6 +54445,14 @@
             "type": "string",
             "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
+          "authenticationSession": {
+            "description": "This is the authentication session for the credential. Available for credentials that have an authentication plan.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Oauth2AuthenticationSession"
+              }
+            ]
+          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
@@ -28014,20 +54462,22 @@
         },
         "required": [
           "provider",
-          "apiKey",
+          "authenticationPlan",
           "id",
           "orgId",
           "createdAt",
-          "updatedAt"
+          "updatedAt",
+          "authenticationSession"
         ]
       },
-      "AnyscaleCredential": {
+      "XAiCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
+            "description": "This is the api key for Grok in XAi's console. Get it from here: https://console.x.ai",
             "enum": [
-              "anyscale"
+              "xai"
             ]
           },
           "apiKey": {
@@ -28069,19 +54519,15 @@
           "updatedAt"
         ]
       },
-      "AssemblyAICredential": {
+      "GoogleCalendarOAuth2ClientCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "assembly-ai"
+              "google.calendar.oauth2-client"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
           "id": {
             "type": "string",
             "description": "This is the unique identifier for the credential."
@@ -28109,59 +54555,24 @@
         },
         "required": [
           "provider",
-          "apiKey",
           "id",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "AzureCredential": {
+      "GoogleCalendarOAuth2AuthorizationCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "azure"
-            ]
-          },
-          "service": {
-            "type": "string",
-            "description": "This is the service being used in Azure.",
-            "enum": [
-              "speech",
-              "blob_storage"
-            ],
-            "default": "speech"
-          },
-          "region": {
-            "type": "string",
-            "description": "This is the region of the Azure resource.",
-            "enum": [
-              "australia",
-              "canadaeast",
-              "canadacentral",
-              "eastus2",
-              "eastus",
-              "france",
-              "india",
-              "japaneast",
-              "japanwest",
-              "uaenorth",
-              "northcentralus",
-              "norway",
-              "southcentralus",
-              "swedencentral",
-              "switzerland",
-              "uk",
-              "westus",
-              "westus3"
+              "google.calendar.oauth2-authorization"
             ]
           },
-          "apiKey": {
+          "authorizationId": {
             "type": "string",
-            "description": "This is not returned in the API.",
-            "maxLength": 10000
+            "description": "The authorization ID for the OAuth2 authorization"
           },
           "id": {
             "type": "string",
@@ -28186,99 +54597,29 @@
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
-          },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AzureBlobStorageBucketPlan"
-              }
-            ]
           }
         },
         "required": [
           "provider",
-          "service",
+          "authorizationId",
           "id",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "AzureOpenAICredential": {
+      "GoogleSheetsOAuth2AuthorizationCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "azure-openai"
-            ]
-          },
-          "region": {
-            "type": "string",
-            "enum": [
-              "australia",
-              "canadaeast",
-              "canadacentral",
-              "eastus2",
-              "eastus",
-              "france",
-              "india",
-              "japaneast",
-              "japanwest",
-              "uaenorth",
-              "northcentralus",
-              "norway",
-              "southcentralus",
-              "swedencentral",
-              "switzerland",
-              "uk",
-              "westus",
-              "westus3"
+              "google.sheets.oauth2-authorization"
             ]
           },
-          "models": {
-            "type": "array",
-            "enum": [
-              "gpt-4o-2024-11-20",
-              "gpt-4o-2024-08-06",
-              "gpt-4o-mini-2024-07-18",
-              "gpt-4o-2024-05-13",
-              "gpt-4-turbo-2024-04-09",
-              "gpt-4-0125-preview",
-              "gpt-4-1106-preview",
-              "gpt-4-0613",
-              "gpt-35-turbo-0125",
-              "gpt-35-turbo-1106"
-            ],
-            "example": [
-              "gpt-4-0125-preview",
-              "gpt-4-0613"
-            ],
-            "items": {
-              "type": "string",
-              "enum": [
-                "gpt-4o-2024-11-20",
-                "gpt-4o-2024-08-06",
-                "gpt-4o-mini-2024-07-18",
-                "gpt-4o-2024-05-13",
-                "gpt-4-turbo-2024-04-09",
-                "gpt-4-0125-preview",
-                "gpt-4-1106-preview",
-                "gpt-4-0613",
-                "gpt-35-turbo-0125",
-                "gpt-35-turbo-1106"
-              ]
-            }
-          },
-          "openAIKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
-          },
-          "ocpApimSubscriptionKey": {
+          "authorizationId": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The authorization ID for the OAuth2 authorization"
           },
           "id": {
             "type": "string",
@@ -28303,34 +54644,30 @@
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
-          },
-          "openAIEndpoint": {
-            "type": "string",
-            "maxLength": 10000
           }
         },
         "required": [
           "provider",
-          "region",
-          "models",
-          "openAIKey",
+          "authorizationId",
           "id",
           "orgId",
           "createdAt",
-          "updatedAt",
-          "openAIEndpoint"
+          "updatedAt"
         ]
       },
-      "ByoSipTrunkCredential": {
+      "SlackOAuth2AuthorizationCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This can be used to bring your own SIP trunks or to connect to a Carrier.",
             "enum": [
-              "byo-sip-trunk"
+              "slack.oauth2-authorization"
             ]
           },
+          "authorizationId": {
+            "type": "string",
+            "description": "The authorization ID for the OAuth2 authorization"
+          },
           "id": {
             "type": "string",
             "description": "This is the unique identifier for the credential."
@@ -28354,65 +54691,33 @@
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
-          },
-          "gateways": {
-            "description": "This is the list of SIP trunk's gateways.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/SipTrunkGateway"
-            }
-          },
-          "outboundAuthenticationPlan": {
-            "description": "This can be used to configure the outbound authentication if required by the SIP trunk.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SipTrunkOutboundAuthenticationPlan"
-              }
-            ]
-          },
-          "outboundLeadingPlusEnabled": {
-            "type": "boolean",
-            "description": "This ensures the outbound origination attempts have a leading plus. Defaults to false to match conventional telecom behavior.\n\nUsage:\n- Vonage/Twilio requires leading plus for all outbound calls. Set this to true.\n\n@default false"
-          },
-          "techPrefix": {
-            "type": "string",
-            "description": "This can be used to configure the tech prefix on outbound calls. This is an advanced property.",
-            "maxLength": 10000
-          },
-          "sipDiversionHeader": {
-            "type": "string",
-            "description": "This can be used to enable the SIP diversion header for authenticating the calling number if the SIP trunk supports it. This is an advanced property.",
-            "maxLength": 10000
-          },
-          "sbcConfiguration": {
-            "description": "This is an advanced configuration for enterprise deployments. This uses the onprem SBC to trunk into the SIP trunk's `gateways`, rather than the managed SBC provided by Vapi.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SbcConfiguration"
-              }
-            ]
           }
         },
         "required": [
+          "provider",
+          "authorizationId",
           "id",
           "orgId",
           "createdAt",
-          "updatedAt",
-          "gateways"
+          "updatedAt"
         ]
       },
-      "CartesiaCredential": {
+      "GoHighLevelMCPCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "cartesia"
+              "ghl.oauth2-authorization"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "authenticationSession": {
+            "description": "This is the authentication session for the credential.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Oauth2AuthenticationSession"
+              }
+            ]
           },
           "id": {
             "type": "string",
@@ -28441,26 +54746,26 @@
         },
         "required": [
           "provider",
-          "apiKey",
+          "authenticationSession",
           "id",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "CerebrasCredential": {
+      "InworldCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "cerebras"
+              "inworld"
             ]
           },
           "apiKey": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "This is the Inworld Basic (Base64) authentication token. This is not returned in the API.",
+            "example": "your-base64-token-here"
           },
           "id": {
             "type": "string",
@@ -28496,27 +54801,18 @@
           "updatedAt"
         ]
       },
-      "CloudflareCredential": {
+      "EmailCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "cloudflare"
-            ],
-            "description": "Credential provider. Only allowed value is cloudflare"
-          },
-          "accountId": {
-            "type": "string",
-            "description": "Cloudflare Account Id."
-          },
-          "apiKey": {
-            "type": "string",
-            "description": "Cloudflare API Key / Token."
+              "email"
+            ]
           },
-          "accountEmail": {
+          "email": {
             "type": "string",
-            "description": "Cloudflare Account Email."
+            "description": "The recipient email address for alerts"
           },
           "id": {
             "type": "string",
@@ -28541,59 +54837,29 @@
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
-          },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in R2",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CloudflareR2BucketPlan"
-              }
-            ]
           }
         },
         "required": [
           "provider",
+          "email",
           "id",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "Oauth2AuthenticationSession": {
-        "type": "object",
-        "properties": {
-          "accessToken": {
-            "type": "string",
-            "description": "This is the OAuth2 access token."
-          },
-          "expiresAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the OAuth2 access token expiration."
-          }
-        }
-      },
-      "CustomLLMCredential": {
+      "SlackWebhookCredential": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "custom-llm"
+              "slack-webhook"
             ]
           },
-          "apiKey": {
+          "webhookUrl": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
-          },
-          "authenticationPlan": {
-            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
-              }
-            ]
+            "description": "Slack incoming webhook URL. See https://api.slack.com/messaging/webhooks for setup instructions. This is not returned in the API."
           },
           "id": {
             "type": "string",
@@ -28613,14 +54879,6 @@
             "type": "string",
             "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
           },
-          "authenticationSession": {
-            "description": "This is the authentication session for the credential. Available for credentials that have an authentication plan.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Oauth2AuthenticationSession"
-              }
-            ]
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
@@ -28630,95 +54888,54 @@
         },
         "required": [
           "provider",
-          "apiKey",
+          "webhookUrl",
           "id",
           "orgId",
           "createdAt",
           "updatedAt"
         ]
       },
-      "DeepgramCredential": {
+      "CreateCerebrasCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "deepgram"
+              "cerebras"
             ]
           },
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
-          },
-          "apiUrl": {
-            "type": "string",
-            "description": "This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com."
           }
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "apiKey"
         ]
       },
-      "DeepInfraCredential": {
+      "CreateGoogleCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
+            "description": "This is the key for Gemini in Google AI Studio. Get it from here: https://aistudio.google.com/app/apikey",
             "enum": [
-              "deepinfra"
+              "google"
             ]
           },
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
@@ -28728,44 +54945,23 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "apiKey"
         ]
       },
-      "DeepSeekCredential": {
+      "CreateHumeCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "deep-seek"
+              "hume"
             ]
           },
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
@@ -28775,20 +54971,17 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "apiKey"
         ]
       },
-      "ElevenLabsCredential": {
+      "CreateInflectionAICredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
+            "description": "This is the api key for Pi in InflectionAI's console. Get it from here: https://developers.inflection.ai/keys, billing will need to be setup",
             "enum": [
-              "11labs"
+              "inflection-ai"
             ]
           },
           "apiKey": {
@@ -28796,24 +54989,6 @@
             "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
@@ -28823,102 +54998,47 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "apiKey"
         ]
       },
-      "GcpCredential": {
+      "CreateMistralCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "gcp"
+              "mistral"
             ]
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "maxLength": 100,
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
-          },
-          "gcpKey": {
-            "description": "This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/<service-account-id>/keys.\n\nThe schema is identical to the JSON that GCP outputs.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/GcpKey"
-              }
-            ]
-          },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in GCP.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/BucketPlan"
-              }
-            ]
           }
         },
         "required": [
           "provider",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "gcpKey"
+          "apiKey"
         ]
       },
-      "GladiaCredential": {
+      "CreateNeuphonicCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "gladia"
+              "neuphonic"
             ]
           },
           "apiKey": {
             "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -28929,44 +55049,23 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "apiKey"
         ]
       },
-      "GoHighLevelCredential": {
+      "CreateWellSaidCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "gohighlevel"
+              "wellsaid"
             ]
           },
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
@@ -28976,45 +55075,25 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "apiKey"
         ]
       },
-      "GoogleCredential": {
+      "CreateSonioxCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This is the key for Gemini in Google AI Studio. Get it from here: https://aistudio.google.com/app/apikey",
             "enum": [
-              "google"
+              "soniox"
             ]
           },
           "apiKey": {
             "type": "string",
-            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+          "apiUrl": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "Custom Soniox WebSocket endpoint (e.g. EU server wss://stt-rt.eu.soniox.com/transcribe-websocket). Defaults to the region-appropriate endpoint when omitted."
           },
           "name": {
             "type": "string",
@@ -29025,44 +55104,22 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "apiKey"
         ]
       },
-      "GroqCredential": {
+      "CreateSpeechmaticsCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "groq"
+              "speechmatics"
             ]
           },
           "apiKey": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
@@ -29072,44 +55129,58 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "apiKey"
         ]
       },
-      "HumeCredential": {
+      "CreateCustomCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "hume"
+              "custom-credential"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          "authenticationPlan": {
+            "description": "This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/HMACAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "oauth2": "#/components/schemas/OAuth2AuthenticationPlan",
+                "hmac": "#/components/schemas/HMACAuthenticationPlan",
+                "bearer": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            }
           },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          "encryptionPlan": {
+            "description": "This is the encryption plan for encrypting sensitive data. Currently supports public-key encryption.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "public-key": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            ]
           },
           "name": {
             "type": "string",
@@ -29120,45 +55191,25 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "authenticationPlan"
         ]
       },
-      "InflectionAICredential": {
+      "CreateGoHighLevelMCPCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
-            "description": "This is the api key for Pi in InflectionAI's console. Get it from here: https://developers.inflection.ai/keys, billing will need to be setup",
             "enum": [
-              "inflection-ai"
+              "ghl.oauth2-authorization"
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          "authenticationSession": {
+            "description": "This is the authentication session for the credential.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Oauth2AuthenticationSession"
+              }
+            ]
           },
           "name": {
             "type": "string",
@@ -29169,51 +55220,47 @@
         },
         "required": [
           "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "authenticationSession"
         ]
       },
-      "LangfuseCredential": {
+      "CreateInworldCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "langfuse"
+              "inworld"
             ]
           },
-          "publicKey": {
-            "type": "string",
-            "description": "The public key for Langfuse project. Eg: pk-lf-..."
-          },
           "apiKey": {
             "type": "string",
-            "description": "The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API."
-          },
-          "apiUrl": {
-            "type": "string",
-            "description": "The host URL for Langfuse project. Eg: https://cloud.langfuse.com"
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
+            "description": "This is the Inworld Basic (Base64) authentication token. This is not returned in the API.",
+            "example": "your-base64-token-here"
           },
-          "orgId": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "apiKey"
+        ]
+      },
+      "CreateEmailCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "provider": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+            "enum": [
+              "email"
+            ]
           },
-          "updatedAt": {
-            "format": "date-time",
+          "email": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "The recipient email address for alerts"
           },
           "name": {
             "type": "string",
@@ -29224,45 +55271,91 @@
         },
         "required": [
           "provider",
-          "publicKey",
-          "apiKey",
-          "apiUrl",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "email"
         ]
       },
-      "LmntCredential": {
+      "CreateSlackWebhookCredentialDTO": {
         "type": "object",
         "properties": {
           "provider": {
             "type": "string",
             "enum": [
-              "lmnt"
+              "slack-webhook"
             ]
           },
+          "webhookUrl": {
+            "type": "string",
+            "description": "Slack incoming webhook URL. See https://api.slack.com/messaging/webhooks for setup instructions. This is not returned in the API."
+          },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        },
+        "required": [
+          "provider",
+          "webhookUrl"
+        ]
+      },
+      "UpdateAnthropicCredentialDTO": {
+        "type": "object",
+        "properties": {
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateAnthropicBedrockCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "region": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "description": "AWS region where Bedrock is configured.",
+            "enum": [
+              "us-east-1",
+              "us-west-2",
+              "eu-west-1",
+              "eu-west-3",
+              "ap-northeast-1",
+              "ap-southeast-2"
+            ]
           },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          "authenticationPlan": {
+            "description": "Authentication method - either direct IAM credentials or cross-account role assumption.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AWSIAMCredentialsAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/AWSStsAuthenticationPlan"
+              }
+            ]
           },
-          "updatedAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateAnyscaleCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
+            "type": "string",
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -29270,104 +55363,276 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "MakeCredential": {
+      "UpdateAssemblyAICredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "apiKey": {
             "type": "string",
-            "enum": [
-              "make"
-            ]
+            "description": "This is not returned in the API."
           },
-          "teamId": {
+          "name": {
             "type": "string",
-            "description": "Team ID"
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateAzureCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "service": {
+            "type": "string",
+            "description": "This is the service being used in Azure.",
+            "enum": [
+              "speech",
+              "blob_storage"
+            ],
+            "default": "speech"
           },
           "region": {
             "type": "string",
-            "description": "Region of your application. For example: eu1, eu2, us1, us2"
+            "description": "This is the region of the Azure resource.",
+            "enum": [
+              "australiaeast",
+              "canadaeast",
+              "canadacentral",
+              "centralus",
+              "eastus2",
+              "eastus",
+              "france",
+              "germanywestcentral",
+              "india",
+              "japaneast",
+              "japanwest",
+              "northcentralus",
+              "norway",
+              "polandcentral",
+              "southcentralus",
+              "spaincentral",
+              "swedencentral",
+              "switzerland",
+              "uaenorth",
+              "uk",
+              "westeurope",
+              "westus",
+              "westus3"
+            ]
           },
           "apiKey": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "This is not returned in the API.",
+            "maxLength": 10000
           },
-          "id": {
+          "fallbackIndex": {
+            "type": "number",
+            "minimum": 1,
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order."
+          },
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "orgId": {
+          "bucketPlan": {
+            "description": "This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AzureBlobStorageBucketPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateAzureOpenAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "region": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "enum": [
+              "australiaeast",
+              "canadaeast",
+              "canadacentral",
+              "centralus",
+              "eastus2",
+              "eastus",
+              "france",
+              "germanywestcentral",
+              "india",
+              "japaneast",
+              "japanwest",
+              "northcentralus",
+              "norway",
+              "polandcentral",
+              "southcentralus",
+              "spaincentral",
+              "swedencentral",
+              "switzerland",
+              "uaenorth",
+              "uk",
+              "westeurope",
+              "westus",
+              "westus3"
+            ]
           },
-          "createdAt": {
-            "format": "date-time",
+          "models": {
+            "type": "array",
+            "enum": [
+              "gpt-5.4",
+              "gpt-5.4-mini",
+              "gpt-5.4-nano",
+              "gpt-5.2",
+              "gpt-5.2-chat",
+              "gpt-5.1",
+              "gpt-5.1-chat",
+              "gpt-5",
+              "gpt-5-mini",
+              "gpt-5-nano",
+              "gpt-4.1-2025-04-14",
+              "gpt-4.1-mini-2025-04-14",
+              "gpt-4.1-nano-2025-04-14",
+              "gpt-4o-2024-11-20",
+              "gpt-4o-2024-08-06",
+              "gpt-4o-2024-05-13",
+              "gpt-4o-mini-2024-07-18",
+              "gpt-4-turbo-2024-04-09",
+              "gpt-4-0125-preview",
+              "gpt-4-1106-preview",
+              "gpt-4-0613",
+              "gpt-35-turbo-0125",
+              "gpt-35-turbo-1106"
+            ],
+            "example": [
+              "gpt-4-0125-preview",
+              "gpt-4-0613"
+            ],
+            "items": {
+              "type": "string",
+              "enum": [
+                "gpt-5.4",
+                "gpt-5.4-mini",
+                "gpt-5.4-nano",
+                "gpt-5.2",
+                "gpt-5.2-chat",
+                "gpt-5.1",
+                "gpt-5.1-chat",
+                "gpt-5",
+                "gpt-5-mini",
+                "gpt-5-nano",
+                "gpt-4.1-2025-04-14",
+                "gpt-4.1-mini-2025-04-14",
+                "gpt-4.1-nano-2025-04-14",
+                "gpt-4o-2024-11-20",
+                "gpt-4o-2024-08-06",
+                "gpt-4o-2024-05-13",
+                "gpt-4o-mini-2024-07-18",
+                "gpt-4-turbo-2024-04-09",
+                "gpt-4-0125-preview",
+                "gpt-4-1106-preview",
+                "gpt-4-0613",
+                "gpt-35-turbo-0125",
+                "gpt-35-turbo-1106"
+              ]
+            }
+          },
+          "openAIKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
-          "updatedAt": {
-            "format": "date-time",
+          "ocpApimSubscriptionKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
+          },
+          "openAIEndpoint": {
+            "type": "string",
+            "maxLength": 10000
           }
-        },
-        "required": [
-          "provider",
-          "teamId",
-          "region",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "MistralCredential": {
+      "UpdateByoSipTrunkCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "name": {
             "type": "string",
-            "enum": [
-              "mistral"
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          },
+          "gateways": {
+            "description": "This is the list of SIP trunk's gateways.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/SipTrunkGateway"
+            }
+          },
+          "outboundAuthenticationPlan": {
+            "description": "This can be used to configure the outbound authentication if required by the SIP trunk.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SipTrunkOutboundAuthenticationPlan"
+              }
             ]
           },
-          "apiKey": {
+          "outboundLeadingPlusEnabled": {
+            "type": "boolean",
+            "description": "This ensures the outbound origination attempts have a leading plus. Defaults to false to match conventional telecom behavior.\n\nUsage:\n- Vonage/Twilio requires leading plus for all outbound calls. Set this to true.\n\n@default false"
+          },
+          "techPrefix": {
             "type": "string",
-            "maxLength": 100,
-            "description": "This is not returned in the API."
+            "description": "This can be used to configure the tech prefix on outbound calls. This is an advanced property.",
+            "maxLength": 10000
           },
-          "id": {
+          "sipDiversionHeader": {
+            "type": "string",
+            "description": "This can be used to enable the SIP diversion header for authenticating the calling number if the SIP trunk supports it. This is an advanced property.",
+            "maxLength": 10000
+          },
+          "sbcConfiguration": {
+            "description": "This is an advanced configuration for enterprise deployments. This uses the onprem SBC to trunk into the SIP trunk's `gateways`, rather than the managed SBC provided by Vapi.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/SbcConfiguration"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateCartesiaCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
+            "description": "This is not returned in the API."
           },
-          "orgId": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "createdAt": {
-            "format": "date-time",
+          "apiUrl": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+            "description": "This can be used to point to an onprem Cartesia instance. Defaults to api.cartesia.ai."
+          }
+        }
+      },
+      "UpdateCerebrasCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -29375,46 +55640,59 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "NeuphonicCredential": {
+      "UpdateCloudflareCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "accountId": {
             "type": "string",
-            "enum": [
-              "neuphonic"
-            ]
+            "description": "Cloudflare Account Id."
           },
           "apiKey": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "Cloudflare API Key / Token."
           },
-          "id": {
+          "accountEmail": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
+            "description": "Cloudflare Account Email."
           },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+          "fallbackIndex": {
+            "type": "number",
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.",
+            "minimum": 1
           },
-          "createdAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "updatedAt": {
-            "format": "date-time",
+          "bucketPlan": {
+            "description": "This is the bucket plan that can be provided to store call artifacts in R2",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CloudflareR2BucketPlan"
+              }
+            ]
+          }
+        }
+      },
+      "UpdateCustomLLMCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
+          },
+          "authenticationPlan": {
+            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+              }
+            ]
           },
           "name": {
             "type": "string",
@@ -29422,46 +55700,33 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "OpenAICredential": {
+      "UpdateDeepgramCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "openai"
-            ]
-          },
           "apiKey": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "createdAt": {
-            "format": "date-time",
+          "apiUrl": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+            "description": "This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com."
+          }
+        }
+      },
+      "UpdateDeepInfraCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -29469,93 +55734,77 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "OpenRouterCredential": {
+      "UpdateDeepSeekCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "openrouter"
-            ]
-          },
           "apiKey": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "PerplexityAICredential": {
+      "UpdateElevenLabsCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "perplexity-ai"
-            ]
-          },
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateGcpCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "fallbackIndex": {
+            "type": "number",
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.",
+            "minimum": 1
           },
-          "orgId": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "createdAt": {
-            "format": "date-time",
+          "gcpKey": {
+            "description": "This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/<service-account-id>/keys.\n\nThe schema is identical to the JSON that GCP outputs.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/GcpKey"
+              }
+            ]
+          },
+          "region": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+            "description": "This is the region of the GCP resource.",
+            "maxLength": 40
           },
-          "updatedAt": {
-            "format": "date-time",
+          "bucketPlan": {
+            "$ref": "#/components/schemas/BucketPlan"
+          }
+        }
+      },
+      "UpdateGladiaCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -29563,97 +55812,61 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "PlayHTCredential": {
+      "UpdateGoHighLevelCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "playht"
-            ]
-          },
           "apiKey": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
-          },
-          "userId": {
-            "type": "string"
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "userId"
-        ]
+        }
       },
-      "RimeAICredential": {
+      "UpdateGoogleCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "rime-ai"
-            ]
-          },
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateGroqCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "description": "This is not returned in the API."
           },
-          "createdAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateHumeCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -29661,46 +55874,38 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "RunpodCredential": {
+      "UpdateInflectionAICredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "runpod"
-            ]
-          },
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateLangfuseCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "publicKey": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "description": "The public key for Langfuse project. Eg: pk-lf-..."
           },
-          "createdAt": {
-            "format": "date-time",
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+            "description": "The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API."
           },
-          "updatedAt": {
-            "format": "date-time",
+          "apiUrl": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "The host URL for Langfuse project. Eg: https://cloud.langfuse.com"
           },
           "name": {
             "type": "string",
@@ -29708,63 +55913,68 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "S3Credential": {
+      "UpdateLmntCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "apiKey": {
             "type": "string",
-            "enum": [
-              "s3"
-            ],
-            "description": "Credential provider. Only allowed value is s3"
+            "description": "This is not returned in the API."
           },
-          "awsAccessKeyId": {
+          "name": {
             "type": "string",
-            "description": "AWS access key ID."
-          },
-          "awsSecretAccessKey": {
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateMakeCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "teamId": {
             "type": "string",
-            "description": "AWS access key secret. This is not returned in the API."
+            "description": "Team ID"
           },
           "region": {
             "type": "string",
-            "description": "AWS region in which the S3 bucket is located."
-          },
-          "s3BucketName": {
-            "type": "string",
-            "description": "AWS S3 bucket name."
+            "description": "Region of your application. For example: eu1, eu2, us1, us2"
           },
-          "s3PathPrefix": {
+          "apiKey": {
             "type": "string",
-            "description": "The path prefix for the uploaded recording. Ex. \"recordings/\""
+            "description": "This is not returned in the API."
           },
-          "id": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateMistralCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "maxLength": 100,
+            "description": "This is not returned in the API."
           },
-          "createdAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateNeuphonicCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -29772,50 +55982,44 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "awsAccessKeyId",
-          "awsSecretAccessKey",
-          "region",
-          "s3BucketName",
-          "s3PathPrefix",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "SmallestAICredential": {
+      "UpdateOpenAICredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "smallest-ai"
-            ]
-          },
           "apiKey": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
+          "name": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateOpenRouterCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "description": "This is not returned in the API."
           },
-          "createdAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdatePerplexityAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -29823,46 +56027,32 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "SpeechmaticsCredential": {
+      "UpdatePlayHTCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "speechmatics"
-            ]
-          },
           "apiKey": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
           },
-          "updatedAt": {
-            "format": "date-time",
+          "userId": {
+            "type": "string"
+          }
+        }
+      },
+      "UpdateRimeAICredentialDTO": {
+        "type": "object",
+        "properties": {
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -29870,139 +56060,66 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "SupabaseCredential": {
+      "UpdateRunpodCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "supabase"
-            ],
-            "description": "This is for supabase storage."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
-          },
-          "bucketPlan": {
-            "$ref": "#/components/schemas/SupabaseBucketPlan"
           }
-        },
-        "required": [
-          "provider",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "TavusCredential": {
+      "UpdateWellSaidCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "tavus"
-            ]
-          },
           "apiKey": {
             "type": "string",
+            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "TogetherAICredential": {
+      "UpdateS3CredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "awsAccessKeyId": {
             "type": "string",
-            "enum": [
-              "together-ai"
-            ]
+            "description": "AWS access key ID."
           },
-          "apiKey": {
+          "awsSecretAccessKey": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "AWS access key secret. This is not returned in the API."
           },
-          "id": {
+          "region": {
             "type": "string",
-            "description": "This is the unique identifier for the credential."
+            "description": "AWS region in which the S3 bucket is located."
           },
-          "orgId": {
+          "s3BucketName": {
             "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
+            "description": "AWS S3 bucket name."
           },
-          "createdAt": {
-            "format": "date-time",
+          "s3PathPrefix": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+            "description": "The path prefix for the uploaded recording. Ex. \"recordings/\""
           },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          "fallbackIndex": {
+            "type": "number",
+            "minimum": 1,
+            "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order."
           },
           "name": {
             "type": "string",
@@ -30010,93 +56127,37 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "TrieveCredential": {
+      "UpdateTogetherAICredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "trieve"
-            ]
-          },
           "apiKey": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "TwilioCredential": {
+      "UpdateTwilioCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "twilio"
-            ]
-          },
           "authToken": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+            "description": "This is not returned in the API."
           },
-          "updatedAt": {
-            "format": "date-time",
+          "apiSecret": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -30107,58 +56168,15 @@
           "accountSid": {
             "type": "string"
           }
-        },
-        "required": [
-          "provider",
-          "authToken",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "accountSid"
-        ]
+        }
       },
-      "VonageCredential": {
+      "UpdateVonageCredentialDTO": {
         "type": "object",
         "properties": {
-          "vonageApplicationPrivateKey": {
-            "type": "string",
-            "description": "This is not returned in the API.",
-            "maxLength": 10000
-          },
-          "provider": {
-            "type": "string",
-            "enum": [
-              "vonage"
-            ]
-          },
           "apiSecret": {
             "type": "string",
             "description": "This is not returned in the API."
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
-          "vonageApplicationId": {
-            "type": "string",
-            "description": "This is the Vonage Application ID for the credential.\n\nOnly relevant for Vonage credentials.",
-            "maxLength": 10000
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
@@ -30168,61 +56186,32 @@
           "apiKey": {
             "type": "string"
           }
-        },
-        "required": [
-          "vonageApplicationPrivateKey",
-          "provider",
-          "apiSecret",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "vonageApplicationId",
-          "apiKey"
-        ]
+        }
       },
-      "WebhookCredential": {
+      "UpdateWebhookCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "webhook"
-            ]
-          },
           "authenticationPlan": {
-            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749.",
-            "allOf": [
+            "description": "This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication.",
+            "oneOf": [
               {
                 "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
-              }
-            ]
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
-          "authenticationSession": {
-            "description": "This is the authentication session for the credential. Available for credentials that have an authentication plan.",
-            "allOf": [
+              },
               {
-                "$ref": "#/components/schemas/Oauth2AuthenticationSession"
+                "$ref": "#/components/schemas/HMACAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/BearerAuthenticationPlan"
               }
-            ]
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "oauth2": "#/components/schemas/OAuth2AuthenticationPlan",
+                "hmac": "#/components/schemas/HMACAuthenticationPlan",
+                "bearer": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            }
           },
           "name": {
             "type": "string",
@@ -30230,49 +56219,51 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "authenticationPlan",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt",
-          "authenticationSession"
-        ]
+        }
       },
-      "XAiCredential": {
+      "UpdateCustomCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the api key for Grok in XAi's console. Get it from here: https://console.x.ai",
-            "enum": [
-              "xai"
-            ]
-          },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
+          "authenticationPlan": {
+            "description": "This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/HMACAuthenticationPlan"
+              },
+              {
+                "$ref": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "oauth2": "#/components/schemas/OAuth2AuthenticationPlan",
+                "hmac": "#/components/schemas/HMACAuthenticationPlan",
+                "bearer": "#/components/schemas/BearerAuthenticationPlan"
+              }
+            }
           },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+          "encryptionPlan": {
+            "description": "This is the encryption plan for encrypting sensitive data. Currently supports public-key encryption.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type",
+              "mapping": {
+                "public-key": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            },
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/PublicKeyEncryptionPlan"
+              }
+            ]
           },
           "name": {
             "type": "string",
@@ -30280,42 +56271,15 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "GoogleCalendarOAuth2ClientCredential": {
+      "UpdateXAiCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "google.calendar.oauth2-client"
-            ]
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+          "apiKey": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "maxLength": 10000,
+            "description": "This is not returned in the API."
           },
           "name": {
             "type": "string",
@@ -30323,92 +56287,25 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "GoogleCalendarOAuth2AuthorizationCredential": {
+      "UpdateGoogleCalendarOAuth2ClientCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "google.calendar.oauth2-authorization"
-            ]
-          },
-          "authorizationId": {
-            "type": "string",
-            "description": "The authorization ID for the OAuth2 authorization"
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "authorizationId",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "GoogleSheetsOAuth2AuthorizationCredential": {
+      "UpdateGoogleCalendarOAuth2AuthorizationCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "google.sheets.oauth2-authorization"
-            ]
-          },
           "authorizationId": {
             "type": "string",
-            "description": "The authorization ID for the OAuth2 authorization"
-          },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "The authorization ID for the OAuth2 authorization"
           },
           "name": {
             "type": "string",
@@ -30416,46 +56313,29 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "authorizationId",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "SlackOAuth2AuthorizationCredential": {
+      "UpdateGoogleSheetsOAuth2AuthorizationCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "slack.oauth2-authorization"
-            ]
-          },
           "authorizationId": {
             "type": "string",
             "description": "The authorization ID for the OAuth2 authorization"
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the credential."
-          },
-          "orgId": {
-            "type": "string",
-            "description": "This is the unique identifier for the org that this credential belongs to."
-          },
-          "createdAt": {
-            "format": "date-time",
+          "name": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the credential was created."
-          },
-          "updatedAt": {
-            "format": "date-time",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateSlackOAuth2AuthorizationCredentialDTO": {
+        "type": "object",
+        "properties": {
+          "authorizationId": {
             "type": "string",
-            "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
+            "description": "The authorization ID for the OAuth2 authorization"
           },
           "name": {
             "type": "string",
@@ -30463,56 +56343,34 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "authorizationId",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
-        ]
+        }
       },
-      "CreateCerebrasCredentialDTO": {
+      "UpdateGoHighLevelMCPCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "cerebras"
+          "authenticationSession": {
+            "description": "This is the authentication session for the credential.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Oauth2AuthenticationSession"
+              }
             ]
           },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
-          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey"
-        ]
+        }
       },
-      "CreateGoogleCredentialDTO": {
+      "UpdateInworldCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "description": "This is the key for Gemini in Google AI Studio. Get it from here: https://aistudio.google.com/app/apikey",
-            "enum": [
-              "google"
-            ]
-          },
           "apiKey": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "This is the Inworld Basic (Base64) authentication token. This is not returned in the API.",
+            "example": "your-base64-token-here"
           },
           "name": {
             "type": "string",
@@ -30520,25 +56378,14 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey"
-        ]
+        }
       },
-      "CreateHumeCredentialDTO": {
+      "UpdateEmailCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "string",
-            "enum": [
-              "hume"
-            ]
-          },
-          "apiKey": {
+          "email": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "The recipient email address for alerts"
           },
           "name": {
             "type": "string",
@@ -30546,2063 +56393,2847 @@
             "minLength": 1,
             "maxLength": 40
           }
-        },
-        "required": [
-          "provider",
-          "apiKey"
-        ]
+        }
       },
-      "CreateInflectionAICredentialDTO": {
+      "UpdateSlackWebhookCredentialDTO": {
         "type": "object",
         "properties": {
-          "provider": {
+          "webhookUrl": {
             "type": "string",
-            "description": "This is the api key for Pi in InflectionAI's console. Get it from here: https://developers.inflection.ai/keys, billing will need to be setup",
-            "enum": [
-              "inflection-ai"
-            ]
+            "description": "Slack incoming webhook URL. See https://api.slack.com/messaging/webhooks for setup instructions. This is not returned in the API."
           },
+          "name": {
+            "type": "string",
+            "description": "This is the name of credential. This is just for your reference.",
+            "minLength": 1,
+            "maxLength": 40
+          }
+        }
+      },
+      "UpdateSonioxCredentialDTO": {
+        "type": "object",
+        "properties": {
           "apiKey": {
             "type": "string",
-            "maxLength": 10000,
             "description": "This is not returned in the API."
           },
+          "apiUrl": {
+            "type": "string",
+            "description": "Custom Soniox WebSocket endpoint (e.g. EU server wss://stt-rt.eu.soniox.com/transcribe-websocket). Defaults to the region-appropriate endpoint when omitted."
+          },
           "name": {
             "type": "string",
             "description": "This is the name of credential. This is just for your reference.",
             "minLength": 1,
             "maxLength": 40
           }
+        }
+      },
+      "CredentialSessionResponse": {
+        "type": "object",
+        "properties": {
+          "sessionToken": {
+            "type": "string"
+          }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "sessionToken"
         ]
       },
-      "CreateMistralCredentialDTO": {
+      "CredentialEndUser": {
         "type": "object",
         "properties": {
-          "provider": {
+          "endUserEmail": {
             "type": "string",
-            "enum": [
-              "mistral"
-            ]
+            "nullable": true
           },
-          "apiKey": {
-            "type": "string",
-            "maxLength": 100,
-            "description": "This is not returned in the API."
+          "endUserId": {
+            "type": "string"
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "organizationId": {
+            "type": "string"
+          },
+          "tags": {
+            "type": "object"
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "endUserId",
+          "organizationId"
         ]
       },
-      "CreateNeuphonicCredentialDTO": {
+      "CredentialSessionError": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
+            "type": "string"
+          },
+          "description": {
+            "type": "string"
+          }
+        },
+        "required": [
+          "type",
+          "description"
+        ]
+      },
+      "CredentialWebhookDTO": {
+        "type": "object",
+        "properties": {
+          "type": {
             "type": "string",
             "enum": [
-              "neuphonic"
+              "auth",
+              "sync",
+              "forward"
             ]
           },
-          "apiKey": {
+          "operation": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "enum": [
+              "creation",
+              "override",
+              "refresh"
+            ]
           },
-          "name": {
+          "from": {
+            "type": "string"
+          },
+          "connectionId": {
+            "type": "string"
+          },
+          "authMode": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "enum": [
+              "OAUTH2",
+              "API_KEY",
+              "BASIC"
+            ]
+          },
+          "providerConfigKey": {
+            "type": "string"
+          },
+          "provider": {
+            "type": "string"
+          },
+          "environment": {
+            "type": "string"
+          },
+          "success": {
+            "type": "boolean"
+          },
+          "endUser": {
+            "$ref": "#/components/schemas/CredentialEndUser"
+          },
+          "error": {
+            "$ref": "#/components/schemas/CredentialSessionError"
+          },
+          "tags": {
+            "type": "object"
           }
         },
         "required": [
+          "type",
+          "operation",
+          "from",
+          "connectionId",
+          "authMode",
+          "providerConfigKey",
           "provider",
-          "apiKey"
+          "environment",
+          "success",
+          "endUser"
         ]
       },
-      "CreateSpeechmaticsCredentialDTO": {
+      "CredentialActionRequest": {
         "type": "object",
         "properties": {
-          "provider": {
+          "action_name": {
+            "type": "string"
+          },
+          "input": {
+            "type": "object"
+          }
+        },
+        "required": [
+          "action_name",
+          "input"
+        ]
+      },
+      "HMACAuthenticationPlan": {
+        "type": "object",
+        "properties": {
+          "type": {
             "type": "string",
             "enum": [
-              "speechmatics"
+              "hmac"
             ]
           },
-          "apiKey": {
+          "secretKey": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "This is the HMAC secret key used to sign requests."
           },
-          "name": {
+          "algorithm": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "enum": [
+              "sha256",
+              "sha512",
+              "sha1"
+            ],
+            "description": "This is the HMAC algorithm to use for signing."
+          },
+          "signatureHeader": {
+            "type": "string",
+            "description": "This is the header name where the signature will be sent. Defaults to 'x-signature'."
+          },
+          "timestampHeader": {
+            "type": "string",
+            "description": "This is the header name where the timestamp will be sent. Defaults to 'x-timestamp'."
+          },
+          "signaturePrefix": {
+            "type": "string",
+            "description": "This is the prefix for the signature. For example, 'sha256=' for GitHub-style signatures."
+          },
+          "includeTimestamp": {
+            "type": "boolean",
+            "description": "Whether to include a timestamp in the signature payload. Defaults to true."
+          },
+          "payloadFormat": {
+            "type": "string",
+            "description": "Custom payload format. Use {body} for request body, {timestamp} for timestamp, {method} for HTTP method, {url} for URL, {svix-id} for unique message ID. Defaults to '{timestamp}.{body}'."
+          },
+          "messageIdHeader": {
+            "type": "string",
+            "description": "This is the header name where the unique message ID will be sent. Used for Svix-style webhooks."
+          },
+          "signatureEncoding": {
+            "type": "string",
+            "enum": [
+              "hex",
+              "base64"
+            ],
+            "description": "The encoding format for the signature. Defaults to 'hex'."
+          },
+          "secretIsBase64": {
+            "type": "boolean",
+            "description": "Whether the secret key is base64-encoded and should be decoded before use. Defaults to false."
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type",
+          "secretKey",
+          "algorithm"
         ]
       },
-      "CreateTrieveCredentialDTO": {
+      "BearerAuthenticationPlan": {
         "type": "object",
         "properties": {
-          "provider": {
+          "type": {
             "type": "string",
             "enum": [
-              "trieve"
+              "bearer"
             ]
           },
-          "apiKey": {
+          "token": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "This is the bearer token value."
           },
-          "name": {
+          "headerName": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the header name where the bearer token will be sent. Defaults to 'Authorization'."
+          },
+          "bearerPrefixEnabled": {
+            "type": "boolean",
+            "description": "Whether to include the 'Bearer ' prefix in the header value. Defaults to true."
           }
         },
         "required": [
-          "provider",
-          "apiKey"
+          "type",
+          "token"
         ]
       },
-      "UpdateAnthropicCredentialDTO": {
+      "AWSIAMCredentialsAuthenticationPlan": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "type": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "enum": [
+              "aws-iam"
+            ]
           },
-          "name": {
+          "awsAccessKeyId": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "AWS Access Key ID. This is not returned in the API.",
+            "maxLength": 128
+          },
+          "awsSecretAccessKey": {
+            "type": "string",
+            "description": "AWS Secret Access Key. This is not returned in the API.",
+            "maxLength": 256
           }
-        }
+        },
+        "required": [
+          "type",
+          "awsAccessKeyId",
+          "awsSecretAccessKey"
+        ]
       },
-      "UpdateAnyscaleCredentialDTO": {
+      "AWSStsAuthenticationPlan": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "type": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "This is the type of authentication plan",
+            "enum": [
+              "aws-sts"
+            ]
           },
-          "name": {
+          "roleArn": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the role ARN for the AWS credential"
+          },
+          "externalId": {
+            "type": "string",
+            "description": "Optional external ID for additional security in the role trust policy.",
+            "maxLength": 256
           }
-        }
+        },
+        "required": [
+          "type",
+          "roleArn"
+        ]
       },
-      "UpdateAssemblyAICredentialDTO": {
+      "ToolTemplateSetup": {
         "type": "object",
         "properties": {
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "title": {
+            "type": "string"
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "description": {
+            "type": "string"
+          },
+          "videoUrl": {
+            "type": "string"
+          },
+          "docsUrl": {
+            "type": "string"
           }
-        }
+        },
+        "required": [
+          "title"
+        ]
       },
-      "UpdateAzureCredentialDTO": {
+      "MakeToolProviderDetails": {
         "type": "object",
         "properties": {
-          "service": {
+          "templateUrl": {
             "type": "string",
-            "description": "This is the service being used in Azure.",
-            "enum": [
-              "speech",
-              "blob_storage"
-            ],
-            "default": "speech"
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "region": {
+          "setupInstructions": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolTemplateSetup"
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the region of the Azure resource.",
             "enum": [
-              "australia",
-              "canadaeast",
-              "canadacentral",
-              "eastus2",
-              "eastus",
-              "france",
-              "india",
-              "japaneast",
-              "japanwest",
-              "uaenorth",
-              "northcentralus",
-              "norway",
-              "southcentralus",
-              "swedencentral",
-              "switzerland",
-              "uk",
-              "westus",
-              "westus3"
-            ]
+              "make"
+            ],
+            "description": "The type of tool. \"make\" for Make tool."
           },
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API.",
-            "maxLength": 10000
+          "scenarioId": {
+            "type": "number"
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "scenarioName": {
+            "type": "string"
           },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/AzureBlobStorageBucketPlan"
-              }
-            ]
+          "triggerHookId": {
+            "type": "number"
+          },
+          "triggerHookName": {
+            "type": "string"
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateAzureOpenAICredentialDTO": {
+      "GhlToolProviderDetails": {
         "type": "object",
         "properties": {
-          "region": {
+          "templateUrl": {
             "type": "string",
-            "enum": [
-              "australia",
-              "canadaeast",
-              "canadacentral",
-              "eastus2",
-              "eastus",
-              "france",
-              "india",
-              "japaneast",
-              "japanwest",
-              "uaenorth",
-              "northcentralus",
-              "norway",
-              "southcentralus",
-              "swedencentral",
-              "switzerland",
-              "uk",
-              "westus",
-              "westus3"
-            ]
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "models": {
+          "setupInstructions": {
             "type": "array",
-            "enum": [
-              "gpt-4o-2024-11-20",
-              "gpt-4o-2024-08-06",
-              "gpt-4o-mini-2024-07-18",
-              "gpt-4o-2024-05-13",
-              "gpt-4-turbo-2024-04-09",
-              "gpt-4-0125-preview",
-              "gpt-4-1106-preview",
-              "gpt-4-0613",
-              "gpt-35-turbo-0125",
-              "gpt-35-turbo-1106"
-            ],
-            "example": [
-              "gpt-4-0125-preview",
-              "gpt-4-0613"
-            ],
             "items": {
-              "type": "string",
-              "enum": [
-                "gpt-4o-2024-11-20",
-                "gpt-4o-2024-08-06",
-                "gpt-4o-mini-2024-07-18",
-                "gpt-4o-2024-05-13",
-                "gpt-4-turbo-2024-04-09",
-                "gpt-4-0125-preview",
-                "gpt-4-1106-preview",
-                "gpt-4-0613",
-                "gpt-35-turbo-0125",
-                "gpt-35-turbo-1106"
-              ]
+              "$ref": "#/components/schemas/ToolTemplateSetup"
             }
           },
-          "openAIKey": {
+          "type": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "enum": [
+              "ghl"
+            ],
+            "description": "The type of tool. \"ghl\" for GHL tool."
+          },
+          "workflowId": {
+            "type": "string"
+          },
+          "workflowName": {
+            "type": "string"
           },
-          "ocpApimSubscriptionKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "webhookHookId": {
+            "type": "string"
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "webhookHookName": {
+            "type": "string"
           },
-          "openAIEndpoint": {
-            "type": "string",
-            "maxLength": 10000
+          "locationId": {
+            "type": "string"
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateByoSipTrunkCredentialDTO": {
+      "FunctionToolProviderDetails": {
         "type": "object",
         "properties": {
-          "name": {
+          "templateUrl": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "gateways": {
-            "description": "This is the list of SIP trunk's gateways.",
+          "setupInstructions": {
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/SipTrunkGateway"
+              "$ref": "#/components/schemas/ToolTemplateSetup"
             }
           },
-          "outboundAuthenticationPlan": {
-            "description": "This can be used to configure the outbound authentication if required by the SIP trunk.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SipTrunkOutboundAuthenticationPlan"
-              }
-            ]
-          },
-          "outboundLeadingPlusEnabled": {
-            "type": "boolean",
-            "description": "This ensures the outbound origination attempts have a leading plus. Defaults to false to match conventional telecom behavior.\n\nUsage:\n- Vonage/Twilio requires leading plus for all outbound calls. Set this to true.\n\n@default false"
-          },
-          "techPrefix": {
-            "type": "string",
-            "description": "This can be used to configure the tech prefix on outbound calls. This is an advanced property.",
-            "maxLength": 10000
-          },
-          "sipDiversionHeader": {
+          "type": {
             "type": "string",
-            "description": "This can be used to enable the SIP diversion header for authenticating the calling number if the SIP trunk supports it. This is an advanced property.",
-            "maxLength": 10000
-          },
-          "sbcConfiguration": {
-            "description": "This is an advanced configuration for enterprise deployments. This uses the onprem SBC to trunk into the SIP trunk's `gateways`, rather than the managed SBC provided by Vapi.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/SbcConfiguration"
-              }
-            ]
+            "enum": [
+              "function"
+            ],
+            "description": "The type of tool. \"function\" for Function tool."
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateCartesiaCredentialDTO": {
+      "GoogleCalendarCreateEventToolProviderDetails": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "templateUrl": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "name": {
+          "setupInstructions": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolTemplateSetup"
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "enum": [
+              "google.calendar.event.create"
+            ],
+            "description": "The type of tool. \"google.calendar.event.create\" for Google Calendar tool."
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateCerebrasCredentialDTO": {
+      "GoogleSheetsRowAppendToolProviderDetails": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "templateUrl": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "name": {
+          "setupInstructions": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolTemplateSetup"
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "enum": [
+              "google.sheets.row.append"
+            ],
+            "description": "The type of tool. \"google.sheets.row.append\" for Google Sheets tool."
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateCloudflareCredentialDTO": {
+      "GoHighLevelCalendarAvailabilityToolProviderDetails": {
         "type": "object",
         "properties": {
-          "accountId": {
-            "type": "string",
-            "description": "Cloudflare Account Id."
-          },
-          "apiKey": {
+          "templateUrl": {
             "type": "string",
-            "description": "Cloudflare API Key / Token."
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "accountEmail": {
-            "type": "string",
-            "description": "Cloudflare Account Email."
+          "setupInstructions": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolTemplateSetup"
+            }
           },
-          "name": {
+          "type": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in R2",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CloudflareR2BucketPlan"
-              }
-            ]
+            "enum": [
+              "gohighlevel.calendar.availability.check"
+            ],
+            "description": "The type of tool. \"gohighlevel.calendar.availability.check\" for GoHighLevel Calendar availability check tool."
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateCustomLLMCredentialDTO": {
+      "GoHighLevelCalendarEventCreateToolProviderDetails": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "templateUrl": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "authenticationPlan": {
-            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
-              }
-            ]
+          "setupInstructions": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolTemplateSetup"
+            }
           },
-          "name": {
+          "type": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "enum": [
+              "gohighlevel.calendar.event.create"
+            ],
+            "description": "The type of tool. \"gohighlevel.calendar.event.create\" for GoHighLevel Calendar event create tool."
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateDeepgramCredentialDTO": {
+      "GoHighLevelContactCreateToolProviderDetails": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "templateUrl": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "setupInstructions": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolTemplateSetup"
+            }
           },
-          "apiUrl": {
+          "type": {
             "type": "string",
-            "description": "This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com."
+            "enum": [
+              "gohighlevel.contact.create"
+            ],
+            "description": "The type of tool. \"gohighlevel.contact.create\" for GoHighLevel contact create tool."
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateDeepInfraCredentialDTO": {
+      "GoHighLevelContactGetToolProviderDetails": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "templateUrl": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
           },
-          "name": {
+          "setupInstructions": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolTemplateSetup"
+            }
+          },
+          "type": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "enum": [
+              "gohighlevel.contact.get"
+            ],
+            "description": "The type of tool. \"gohighlevel.contact.get\" for GoHighLevel contact get tool."
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateDeepSeekCredentialDTO": {
+      "ToolTemplateMetadata": {
         "type": "object",
         "properties": {
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "collectionType": {
+            "type": "string"
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "collectionId": {
+            "type": "string"
+          },
+          "collectionName": {
+            "type": "string"
           }
         }
       },
-      "UpdateElevenLabsCredentialDTO": {
+      "CreateToolTemplateDTO": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "details": {
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                "title": "ApiRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateBashToolDTO",
+                "title": "BashTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateCodeToolDTO",
+                "title": "CodeTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateComputerToolDTO",
+                "title": "ComputerTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                "title": "DtmfTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                "title": "EndCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                "title": "FunctionTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                "title": "GoHighLevelCalendarAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                "title": "GoHighLevelCalendarEventCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                "title": "GoHighLevelContactCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                "title": "GoHighLevelContactGetTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                "title": "GoogleCalendarCheckAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                "title": "GoogleCalendarCreateEventTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                "title": "GoogleSheetsRowAppendTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                "title": "HandoffTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateMcpToolDTO",
+                "title": "McpTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateQueryToolDTO",
+                "title": "QueryTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                "title": "SlackSendMessageTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSmsToolDTO",
+                "title": "SmsTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                "title": "TextEditorTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                "title": "TransferCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                "title": "SipRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                "title": "VoicemailTool"
+              }
+            ]
+          },
+          "providerDetails": {
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/MakeToolProviderDetails",
+                "title": "MakeToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GhlToolProviderDetails",
+                "title": "GhlToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/FunctionToolProviderDetails",
+                "title": "FunctionToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleCalendarCreateEventToolProviderDetails",
+                "title": "GoogleCalendarCreateEventToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleSheetsRowAppendToolProviderDetails",
+                "title": "GoogleSheetsRowAppendToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelCalendarAvailabilityToolProviderDetails",
+                "title": "GoHighLevelCalendarAvailabilityToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelCalendarEventCreateToolProviderDetails",
+                "title": "GoHighLevelCalendarEventCreateToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelContactCreateToolProviderDetails",
+                "title": "GoHighLevelContactCreateToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelContactGetToolProviderDetails",
+                "title": "GoHighLevelContactGetToolProviderDetails"
+              }
+            ]
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/ToolTemplateMetadata"
+          },
+          "visibility": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "default": "private",
+            "enum": [
+              "public",
+              "private"
+            ]
+          },
+          "type": {
+            "type": "string",
+            "default": "tool",
+            "enum": [
+              "tool"
+            ]
           },
           "name": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
+            "description": "The name of the template. This is just for your own reference.",
             "maxLength": 40
+          },
+          "provider": {
+            "type": "string",
+            "enum": [
+              "make",
+              "gohighlevel",
+              "function"
+            ]
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateGcpCredentialDTO": {
+      "Template": {
         "type": "object",
         "properties": {
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          },
-          "gcpKey": {
-            "description": "This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/<service-account-id>/keys.\n\nThe schema is identical to the JSON that GCP outputs.",
-            "allOf": [
+          "details": {
+            "oneOf": [
               {
-                "$ref": "#/components/schemas/GcpKey"
+                "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                "title": "ApiRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateBashToolDTO",
+                "title": "BashTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateCodeToolDTO",
+                "title": "CodeTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateComputerToolDTO",
+                "title": "ComputerTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                "title": "DtmfTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                "title": "EndCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                "title": "FunctionTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                "title": "GoHighLevelCalendarAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                "title": "GoHighLevelCalendarEventCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                "title": "GoHighLevelContactCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                "title": "GoHighLevelContactGetTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                "title": "GoogleCalendarCheckAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                "title": "GoogleCalendarCreateEventTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                "title": "GoogleSheetsRowAppendTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                "title": "HandoffTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateMcpToolDTO",
+                "title": "McpTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateQueryToolDTO",
+                "title": "QueryTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                "title": "SlackSendMessageTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSmsToolDTO",
+                "title": "SmsTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                "title": "TextEditorTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                "title": "TransferCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                "title": "SipRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                "title": "VoicemailTool"
               }
             ]
           },
-          "bucketPlan": {
-            "description": "This is the bucket plan that can be provided to store call artifacts in GCP.",
-            "allOf": [
+          "providerDetails": {
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/MakeToolProviderDetails",
+                "title": "MakeToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GhlToolProviderDetails",
+                "title": "GhlToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/FunctionToolProviderDetails",
+                "title": "FunctionToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleCalendarCreateEventToolProviderDetails",
+                "title": "GoogleCalendarCreateEventToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleSheetsRowAppendToolProviderDetails",
+                "title": "GoogleSheetsRowAppendToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelCalendarAvailabilityToolProviderDetails",
+                "title": "GoHighLevelCalendarAvailabilityToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelCalendarEventCreateToolProviderDetails",
+                "title": "GoHighLevelCalendarEventCreateToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelContactCreateToolProviderDetails",
+                "title": "GoHighLevelContactCreateToolProviderDetails"
+              },
               {
-                "$ref": "#/components/schemas/BucketPlan"
+                "$ref": "#/components/schemas/GoHighLevelContactGetToolProviderDetails",
+                "title": "GoHighLevelContactGetToolProviderDetails"
               }
             ]
-          }
-        }
-      },
-      "UpdateGladiaCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateGoHighLevelCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "metadata": {
+            "$ref": "#/components/schemas/ToolTemplateMetadata"
+          },
+          "visibility": {
+            "default": "private",
+            "enum": [
+              "public",
+              "private"
+            ],
+            "type": "string"
+          },
+          "type": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "default": "tool",
+            "enum": [
+              "tool"
+            ]
           },
           "name": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
+            "description": "The name of the template. This is just for your own reference.",
             "maxLength": 40
-          }
-        }
-      },
-      "UpdateGoogleCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
-            "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateGroqCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "provider": {
+            "enum": [
+              "make",
+              "gohighlevel",
+              "function"
+            ],
+            "type": "string"
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateHumeCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "id": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "The unique identifier for the template."
           },
-          "name": {
+          "orgId": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateInflectionAICredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+            "description": "The unique identifier for the organization that this template belongs to."
+          },
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "The ISO 8601 date-time string of when the template was created."
           },
-          "name": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "The ISO 8601 date-time string of when the template was last updated."
           }
-        }
+        },
+        "required": [
+          "type",
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "UpdateLangfuseCredentialDTO": {
+      "UpdateToolTemplateDTO": {
         "type": "object",
         "properties": {
-          "publicKey": {
-            "type": "string",
-            "description": "The public key for Langfuse project. Eg: pk-lf-..."
+          "details": {
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateApiRequestToolDTO",
+                "title": "ApiRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateBashToolDTO",
+                "title": "BashTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateCodeToolDTO",
+                "title": "CodeTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateComputerToolDTO",
+                "title": "ComputerTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateDtmfToolDTO",
+                "title": "DtmfTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateEndCallToolDTO",
+                "title": "EndCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateFunctionToolDTO",
+                "title": "FunctionTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarAvailabilityToolDTO",
+                "title": "GoHighLevelCalendarAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelCalendarEventCreateToolDTO",
+                "title": "GoHighLevelCalendarEventCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactCreateToolDTO",
+                "title": "GoHighLevelContactCreateTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoHighLevelContactGetToolDTO",
+                "title": "GoHighLevelContactGetTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCheckAvailabilityToolDTO",
+                "title": "GoogleCalendarCheckAvailabilityTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
+                "title": "GoogleCalendarCreateEventTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
+                "title": "GoogleSheetsRowAppendTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateHandoffToolDTO",
+                "title": "HandoffTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateMcpToolDTO",
+                "title": "McpTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateQueryToolDTO",
+                "title": "QueryTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSlackSendMessageToolDTO",
+                "title": "SlackSendMessageTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSmsToolDTO",
+                "title": "SmsTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTextEditorToolDTO",
+                "title": "TextEditorTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTransferCallToolDTO",
+                "title": "TransferCallTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateSipRequestToolDTO",
+                "title": "SipRequestTool"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVoicemailToolDTO",
+                "title": "VoicemailTool"
+              }
+            ]
           },
-          "apiKey": {
+          "providerDetails": {
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/MakeToolProviderDetails",
+                "title": "MakeToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GhlToolProviderDetails",
+                "title": "GhlToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/FunctionToolProviderDetails",
+                "title": "FunctionToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleCalendarCreateEventToolProviderDetails",
+                "title": "GoogleCalendarCreateEventToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoogleSheetsRowAppendToolProviderDetails",
+                "title": "GoogleSheetsRowAppendToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelCalendarAvailabilityToolProviderDetails",
+                "title": "GoHighLevelCalendarAvailabilityToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelCalendarEventCreateToolProviderDetails",
+                "title": "GoHighLevelCalendarEventCreateToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelContactCreateToolProviderDetails",
+                "title": "GoHighLevelContactCreateToolProviderDetails"
+              },
+              {
+                "$ref": "#/components/schemas/GoHighLevelContactGetToolProviderDetails",
+                "title": "GoHighLevelContactGetToolProviderDetails"
+              }
+            ]
+          },
+          "metadata": {
+            "$ref": "#/components/schemas/ToolTemplateMetadata"
+          },
+          "visibility": {
             "type": "string",
-            "description": "The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API."
+            "default": "private",
+            "enum": [
+              "public",
+              "private"
+            ]
           },
-          "apiUrl": {
+          "type": {
             "type": "string",
-            "description": "The host URL for Langfuse project. Eg: https://cloud.langfuse.com"
+            "default": "tool",
+            "enum": [
+              "tool"
+            ]
           },
           "name": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
+            "description": "The name of the template. This is just for your own reference.",
             "maxLength": 40
-          }
-        }
-      },
-      "UpdateLmntCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
           },
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "enum": [
+              "make",
+              "gohighlevel",
+              "function"
+            ]
           }
-        }
+        },
+        "required": [
+          "type"
+        ]
       },
-      "UpdateMakeCredentialDTO": {
+      "VoiceLibrary": {
         "type": "object",
         "properties": {
-          "teamId": {
-            "type": "string",
-            "description": "Team ID"
+          "provider": {
+            "type": "object",
+            "description": "This is the voice provider that will be used.",
+            "enum": [
+              "vapi",
+              "11labs",
+              "azure",
+              "cartesia",
+              "custom-voice",
+              "deepgram",
+              "hume",
+              "lmnt",
+              "neuphonic",
+              "openai",
+              "playht",
+              "rime-ai",
+              "smallest-ai",
+              "tavus",
+              "sesame",
+              "inworld",
+              "minimax",
+              "wellsaid",
+              "orpheus"
+            ]
           },
-          "region": {
+          "providerId": {
             "type": "string",
-            "description": "Region of your application. For example: eu1, eu2, us1, us2"
+            "description": "The ID of the voice provided by the provider."
           },
-          "apiKey": {
+          "slug": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The unique slug of the voice."
           },
           "name": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateMistralCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
-            "type": "string",
-            "maxLength": 100,
-            "description": "This is not returned in the API."
+            "description": "The name of the voice."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateNeuphonicCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "language": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The language of the voice."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateOpenAICredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "languageCode": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The language code of the voice."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateOpenRouterCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "model": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The model of the voice."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdatePerplexityAICredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "supportedModels": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The supported models of the voice."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdatePlayHTCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "gender": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The gender of the voice.",
+            "enum": [
+              "male",
+              "female"
+            ]
           },
-          "name": {
+          "accent": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "The accent of the voice."
           },
-          "userId": {
-            "type": "string"
-          }
-        }
-      },
-      "UpdateRimeAICredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "previewUrl": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The preview URL of the voice."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateRunpodCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
+          "sortOrder": {
+            "type": "number",
+            "description": "The sort order of the voice for display purposes. Lower values appear first."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateS3CredentialDTO": {
-        "type": "object",
-        "properties": {
-          "awsAccessKeyId": {
+          "description": {
             "type": "string",
-            "description": "AWS access key ID."
+            "description": "The description of the voice."
           },
-          "awsSecretAccessKey": {
+          "credentialId": {
             "type": "string",
-            "description": "AWS access key secret. This is not returned in the API."
+            "description": "The credential ID of the voice."
           },
-          "region": {
+          "id": {
             "type": "string",
-            "description": "AWS region in which the S3 bucket is located."
+            "description": "The unique identifier for the voice library."
           },
-          "s3BucketName": {
+          "orgId": {
             "type": "string",
-            "description": "AWS S3 bucket name."
+            "description": "The unique identifier for the organization that this voice library belongs to."
           },
-          "s3PathPrefix": {
+          "isPublic": {
+            "type": "boolean",
+            "description": "The Public voice is shared accross all the organizations."
+          },
+          "isDeleted": {
+            "type": "boolean",
+            "description": "The deletion status of the voice."
+          },
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "The path prefix for the uploaded recording. Ex. \"recordings/\""
+            "description": "The ISO 8601 date-time string of when the voice library was created."
           },
-          "name": {
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "The ISO 8601 date-time string of when the voice library was last updated."
           }
-        }
+        },
+        "required": [
+          "id",
+          "orgId",
+          "isPublic",
+          "isDeleted",
+          "createdAt",
+          "updatedAt"
+        ]
       },
-      "UpdateSmallestAICredentialDTO": {
+      "SyncVoiceLibraryDTO": {
         "type": "object",
         "properties": {
-          "apiKey": {
-            "type": "string",
-            "description": "This is not returned in the API."
-          },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+          "providers": {
+            "type": "array",
+            "description": "List of providers you want to sync.",
+            "enum": [
+              "vapi",
+              "11labs",
+              "azure",
+              "cartesia",
+              "custom-voice",
+              "deepgram",
+              "hume",
+              "lmnt",
+              "neuphonic",
+              "openai",
+              "playht",
+              "rime-ai",
+              "smallest-ai",
+              "tavus",
+              "sesame",
+              "inworld",
+              "minimax",
+              "wellsaid",
+              "orpheus"
+            ],
+            "items": {
+              "type": "string",
+              "enum": [
+                "vapi",
+                "11labs",
+                "azure",
+                "cartesia",
+                "custom-voice",
+                "deepgram",
+                "hume",
+                "lmnt",
+                "neuphonic",
+                "openai",
+                "playht",
+                "rime-ai",
+                "smallest-ai",
+                "tavus",
+                "sesame",
+                "inworld",
+                "minimax",
+                "wellsaid",
+                "orpheus"
+              ]
+            }
           }
         }
       },
-      "UpdateSpeechmaticsCredentialDTO": {
+      "CreateSesameVoiceDTO": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "voiceName": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The name of the voice."
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateSupabaseCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "name": {
+          "transcription": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          },
-          "bucketPlan": {
-            "$ref": "#/components/schemas/SupabaseBucketPlan"
+            "description": "The transcript of the utterance."
           }
         }
       },
-      "UpdateTavusCredentialDTO": {
+      "CartesiaPronunciationDictItem": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "text": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The text to be replaced in pronunciation",
+            "example": "Vapi"
           },
-          "name": {
+          "alias": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "The pronunciation alias or IPA representation\nCan be a \"sounds-like\" guidance (e.g., \"VAH-pee\") or IPA notation (e.g., \"<<ˈ|v|ɑ|ˈ|p|i>>\")",
+            "example": "VAH-pee"
           }
-        }
+        },
+        "required": [
+          "text",
+          "alias"
+        ]
       },
-      "UpdateTogetherAICredentialDTO": {
+      "CartesiaPronunciationDictionary": {
         "type": "object",
         "properties": {
-          "apiKey": {
+          "id": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "Unique identifier for the pronunciation dictionary",
+            "example": "dict_abc123"
           },
           "name": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateTrieveCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+            "description": "Name of the pronunciation dictionary",
+            "example": "My Dictionary"
+          },
+          "ownerId": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "ID of the user who owns this dictionary",
+            "example": "user_xyz789"
           },
-          "name": {
+          "pinned": {
+            "type": "boolean",
+            "description": "Whether this dictionary is pinned for the user",
+            "example": false
+          },
+          "items": {
+            "description": "List of text-to-pronunciation mappings",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/CartesiaPronunciationDictItem"
+            }
+          },
+          "createdAt": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "ISO 8601 timestamp of when the dictionary was created",
+            "example": "2024-01-15T10:30:00Z"
           }
-        }
+        },
+        "required": [
+          "id",
+          "name",
+          "ownerId",
+          "pinned",
+          "items",
+          "createdAt"
+        ]
       },
-      "UpdateTwilioCredentialDTO": {
+      "ElevenLabsPronunciationDictionary": {
         "type": "object",
         "properties": {
-          "authToken": {
+          "pronunciationDictionaryId": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The ID of the pronunciation dictionary",
+            "example": "5xM3yVvZQKV0EfqQpLrJ"
           },
-          "name": {
+          "dictionaryName": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "The name of the pronunciation dictionary",
+            "example": "My Dictionary"
           },
-          "accountSid": {
-            "type": "string"
-          }
-        }
-      },
-      "UpdateVonageCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiSecret": {
+          "createdBy": {
             "type": "string",
-            "description": "This is not returned in the API."
+            "description": "The user ID of the creator",
+            "example": "ar6633Es2kUjFXBdR1iVc9ztsXl1"
           },
-          "name": {
+          "creationTimeUnix": {
+            "type": "number",
+            "description": "The creation time in Unix timestamp",
+            "example": 1714156800
+          },
+          "versionId": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "The version ID of the pronunciation dictionary",
+            "example": "5xM3yVvZQKV0EfqQpLrJ"
           },
-          "apiKey": {
-            "type": "string"
-          }
-        }
-      },
-      "UpdateWebhookCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "authenticationPlan": {
-            "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
-              }
-            ]
+          "versionRulesNum": {
+            "type": "number",
+            "description": "The number of rules in this version",
+            "example": 5
           },
-          "name": {
-            "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateXAiCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "apiKey": {
+          "permissionOnResource": {
             "type": "string",
-            "maxLength": 10000,
-            "description": "This is not returned in the API."
+            "description": "The permission level on this resource",
+            "enum": [
+              "admin",
+              "editor",
+              "viewer"
+            ]
           },
-          "name": {
+          "description": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
+            "description": "The description of the pronunciation dictionary",
+            "example": "This is a test dictionary"
           }
-        }
+        },
+        "required": [
+          "pronunciationDictionaryId",
+          "dictionaryName",
+          "createdBy",
+          "creationTimeUnix",
+          "versionId",
+          "versionRulesNum"
+        ]
       },
-      "UpdateGoogleCalendarOAuth2ClientCredentialDTO": {
+      "ProviderResource": {
         "type": "object",
         "properties": {
-          "name": {
+          "id": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateGoogleCalendarOAuth2AuthorizationCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "authorizationId": {
+            "description": "This is the unique identifier for the provider resource."
+          },
+          "orgId": {
             "type": "string",
-            "description": "The authorization ID for the OAuth2 authorization"
+            "description": "This is the unique identifier for the org that this provider resource belongs to."
           },
-          "name": {
+          "createdAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateGoogleSheetsOAuth2AuthorizationCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "authorizationId": {
+            "description": "This is the ISO 8601 date-time string of when the provider resource was created."
+          },
+          "updatedAt": {
+            "format": "date-time",
             "type": "string",
-            "description": "The authorization ID for the OAuth2 authorization"
+            "description": "This is the ISO 8601 date-time string of when the provider resource was last updated."
           },
-          "name": {
+          "provider": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "UpdateSlackOAuth2AuthorizationCredentialDTO": {
-        "type": "object",
-        "properties": {
-          "authorizationId": {
+            "description": "This is the provider that manages this resource.",
+            "enum": [
+              "cartesia",
+              "11labs"
+            ]
+          },
+          "resourceName": {
             "type": "string",
-            "description": "The authorization ID for the OAuth2 authorization"
+            "description": "This is the name/type of the resource.",
+            "enum": [
+              "pronunciation-dictionary"
+            ]
           },
-          "name": {
+          "resourceId": {
             "type": "string",
-            "description": "This is the name of credential. This is just for your reference.",
-            "minLength": 1,
-            "maxLength": 40
-          }
-        }
-      },
-      "CredentialSessionResponse": {
-        "type": "object",
-        "properties": {
-          "sessionToken": {
-            "type": "string"
+            "description": "This is the provider-specific identifier for the resource."
+          },
+          "resource": {
+            "type": "object",
+            "description": "This is the full resource data from the provider's API."
           }
         },
         "required": [
-          "sessionToken"
+          "id",
+          "orgId",
+          "createdAt",
+          "updatedAt",
+          "provider",
+          "resourceName",
+          "resourceId",
+          "resource"
         ]
       },
-      "CredentialEndUser": {
+      "ProviderResourcePaginatedResponse": {
         "type": "object",
         "properties": {
-          "endUserId": {
-            "type": "string"
+          "results": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ProviderResource"
+            }
           },
-          "organizationId": {
-            "type": "string"
+          "metadata": {
+            "$ref": "#/components/schemas/PaginationMeta"
           }
         },
         "required": [
-          "endUserId",
-          "organizationId"
+          "results",
+          "metadata"
         ]
       },
-      "CredentialSessionError": {
+      "VoiceLibraryVoiceResponse": {
         "type": "object",
         "properties": {
-          "type": {
+          "voiceId": {
+            "type": "string"
+          },
+          "name": {
+            "type": "string"
+          },
+          "publicOwnerId": {
             "type": "string"
           },
           "description": {
             "type": "string"
+          },
+          "gender": {
+            "type": "string"
+          },
+          "age": {
+            "type": "object"
+          },
+          "accent": {
+            "type": "string"
           }
         },
         "required": [
-          "type",
-          "description"
+          "voiceId",
+          "name"
         ]
       },
-      "CredentialWebhookDTO": {
+      "AddVoiceToProviderDTO": {
         "type": "object",
         "properties": {
-          "type": {
+          "ownerId": {
             "type": "string",
-            "enum": [
-              "auth",
-              "sync",
-              "forward"
-            ]
+            "description": "This is the owner_id of your shared voice which you want to add to your provider Account from Provider Voice Library"
           },
-          "operation": {
+          "voiceId": {
             "type": "string",
-            "enum": [
-              "creation",
-              "override",
-              "refresh"
-            ]
-          },
-          "from": {
-            "type": "string"
-          },
-          "connectionId": {
-            "type": "string"
+            "description": "This is the voice_id of the shared voice which you want to add to your provider Account from Provider Voice Library"
           },
-          "authMode": {
+          "name": {
             "type": "string",
-            "enum": [
-              "OAUTH2",
-              "API_KEY",
-              "BASIC"
-            ]
-          },
-          "providerConfigKey": {
-            "type": "string"
-          },
-          "provider": {
-            "type": "string"
-          },
-          "environment": {
-            "type": "string"
-          },
-          "success": {
-            "type": "boolean"
-          },
-          "endUser": {
-            "$ref": "#/components/schemas/CredentialEndUser"
-          },
-          "error": {
-            "$ref": "#/components/schemas/CredentialSessionError"
+            "description": "This is the new name of the voice which you want to have once you have added voice to your provider Account from Provider Voice Library"
           }
         },
         "required": [
-          "type",
-          "operation",
-          "from",
-          "connectionId",
-          "authMode",
-          "providerConfigKey",
-          "provider",
-          "environment",
-          "success",
-          "endUser"
+          "ownerId",
+          "voiceId",
+          "name"
         ]
       },
-      "CredentialActionRequest": {
+      "CloneVoiceDTO": {
         "type": "object",
         "properties": {
-          "action_name": {
-            "type": "string"
+          "name": {
+            "type": "string",
+            "description": "This is the name of the cloned voice in the provider account."
           },
-          "input": {
-            "type": "object"
+          "description": {
+            "type": "string",
+            "description": "This is the description of your cloned voice."
+          },
+          "labels": {
+            "type": "string",
+            "description": "Serialized labels dictionary for the voice."
+          },
+          "files": {
+            "description": "These are the files you want to use to clone your voice. Only Audio files are supported.",
+            "type": "array",
+            "items": {
+              "type": "string",
+              "format": "binary"
+            }
           }
         },
         "required": [
-          "action_name",
-          "input"
+          "name",
+          "files"
         ]
       },
-      "CredentialSessionDTO": {
+      "VariableValueGroupBy": {
         "type": "object",
         "properties": {
-          "provider": {
+          "key": {
             "type": "string",
-            "enum": [
-              "google.calendar.oauth2-client",
-              "google.calendar.oauth2-authorization",
-              "google.sheets.oauth2-authorization",
-              "slack.oauth2-authorization"
-            ],
-            "description": "The type of credential to generate a session for. Only Nango user-facing providers are supported."
+            "description": "This is the key of the variable value to group by.",
+            "maxLength": 100
           }
         },
         "required": [
-          "provider"
+          "key"
         ]
       },
-      "ToolTemplateSetup": {
+      "TimeRange": {
         "type": "object",
         "properties": {
-          "title": {
-            "type": "string"
+          "step": {
+            "type": "string",
+            "description": "This is the time step for aggregations.\n\nIf not provided, defaults to returning for the entire time range.",
+            "enum": [
+              "second",
+              "minute",
+              "hour",
+              "day",
+              "week",
+              "month",
+              "quarter",
+              "year",
+              "decade",
+              "century",
+              "millennium"
+            ]
           },
-          "description": {
-            "type": "string"
+          "start": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the start date for the time range.\n\nIf not provided, defaults to the 7 days ago."
           },
-          "videoUrl": {
-            "type": "string"
+          "end": {
+            "format": "date-time",
+            "type": "string",
+            "description": "This is the end date for the time range.\n\nIf not provided, defaults to now."
           },
-          "docsUrl": {
-            "type": "string"
+          "timezone": {
+            "type": "string",
+            "description": "This is the timezone you want to set for the query.\n\nIf not provided, defaults to UTC."
           }
-        },
-        "required": [
-          "title"
-        ]
+        }
       },
-      "MakeToolProviderDetails": {
+      "AnalyticsOperation": {
         "type": "object",
         "properties": {
-          "templateUrl": {
+          "operation": {
             "type": "string",
-            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
-          },
-          "setupInstructions": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/ToolTemplateSetup"
-            }
+            "description": "This is the aggregation operation you want to perform.",
+            "enum": [
+              "sum",
+              "avg",
+              "count",
+              "min",
+              "max",
+              "history"
+            ]
           },
-          "type": {
+          "column": {
             "type": "string",
+            "description": "This is the columns you want to perform the aggregation operation on.",
             "enum": [
-              "make"
-            ],
-            "description": "The type of tool. \"make\" for Make tool."
-          },
-          "scenarioId": {
-            "type": "number"
-          },
-          "scenarioName": {
-            "type": "string"
-          },
-          "triggerHookId": {
-            "type": "number"
+              "id",
+              "cost",
+              "costBreakdown.llm",
+              "costBreakdown.stt",
+              "costBreakdown.tts",
+              "costBreakdown.vapi",
+              "costBreakdown.transport",
+              "costBreakdown.analysisBreakdown.summary",
+              "costBreakdown.transcriber",
+              "costBreakdown.ttsCharacters",
+              "costBreakdown.llmPromptTokens",
+              "costBreakdown.llmCompletionTokens",
+              "costBreakdown.llmCachedPromptTokens",
+              "duration",
+              "concurrency",
+              "minutesUsed"
+            ]
           },
-          "triggerHookName": {
-            "type": "string"
+          "alias": {
+            "type": "string",
+            "description": "This is the alias for column name returned. Defaults to `${operation}${column}`.",
+            "maxLength": 40
           }
         },
         "required": [
-          "type"
+          "operation",
+          "column"
         ]
       },
-      "GhlToolProviderDetails": {
+      "AnalyticsQuery": {
         "type": "object",
         "properties": {
-          "templateUrl": {
+          "table": {
             "type": "string",
-            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
+            "description": "This is the table you want to query.",
+            "enum": [
+              "call",
+              "subscription"
+            ]
           },
-          "setupInstructions": {
+          "groupBy": {
             "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/ToolTemplateSetup"
-            }
-          },
-          "type": {
-            "type": "string",
+            "description": "This is the list of columns you want to group by.",
             "enum": [
-              "ghl"
+              "type",
+              "assistantId",
+              "endedReason",
+              "analysis.successEvaluation",
+              "status"
             ],
-            "description": "The type of tool. \"ghl\" for GHL tool."
-          },
-          "workflowId": {
-            "type": "string"
-          },
-          "workflowName": {
-            "type": "string"
+            "items": {
+              "type": "string",
+              "enum": [
+                "type",
+                "assistantId",
+                "endedReason",
+                "analysis.successEvaluation",
+                "status"
+              ]
+            }
           },
-          "webhookHookId": {
-            "type": "string"
+          "groupByVariableValue": {
+            "description": "This is the list of variable value keys you want to group by.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/VariableValueGroupBy"
+            }
           },
-          "webhookHookName": {
-            "type": "string"
+          "name": {
+            "type": "string",
+            "description": "This is the name of the query. This will be used to identify the query in the response.",
+            "maxLength": 40
           },
-          "locationId": {
-            "type": "string"
+          "timeRange": {
+            "description": "This is the time range for the query.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TimeRange"
+              }
+            ]
+          },
+          "operations": {
+            "description": "This is the list of operations you want to perform.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/AnalyticsOperation"
+            }
           }
         },
         "required": [
-          "type"
+          "table",
+          "name",
+          "operations"
         ]
       },
-      "FunctionToolProviderDetails": {
+      "AnalyticsQueryDTO": {
         "type": "object",
         "properties": {
-          "templateUrl": {
-            "type": "string",
-            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
-          },
-          "setupInstructions": {
+          "queries": {
+            "description": "This is the list of metric queries you want to perform.",
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/ToolTemplateSetup"
+              "$ref": "#/components/schemas/AnalyticsQuery"
             }
-          },
-          "type": {
-            "type": "string",
-            "enum": [
-              "function"
-            ],
-            "description": "The type of tool. \"function\" for Function tool."
           }
         },
         "required": [
-          "type"
+          "queries"
         ]
       },
-      "GoogleCalendarCreateEventToolProviderDetails": {
+      "AnalyticsQueryResult": {
         "type": "object",
         "properties": {
-          "templateUrl": {
+          "name": {
             "type": "string",
-            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
+            "description": "This is the unique key for the query."
           },
-          "setupInstructions": {
+          "timeRange": {
+            "description": "This is the time range for the query.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/TimeRange"
+              }
+            ]
+          },
+          "result": {
+            "description": "This is the result of the query, a list of unique groups with result of their aggregations.\n\nExample:\n\"result\": [\n  { \"date\": \"2023-01-01\", \"assistantId\": \"123\", \"endedReason\": \"customer-ended-call\", \"sumDuration\": 120, \"avgCost\": 10.5 },\n  { \"date\": \"2023-01-02\", \"assistantId\": \"123\", \"endedReason\": \"customer-did-not-give-microphone-permission\", \"sumDuration\": 0, \"avgCost\": 0 },\n  // Additional results\n]",
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/ToolTemplateSetup"
+              "type": "object"
             }
-          },
-          "type": {
-            "type": "string",
-            "enum": [
-              "google.calendar.event.create"
-            ],
-            "description": "The type of tool. \"google.calendar.event.create\" for Google Calendar tool."
           }
         },
         "required": [
-          "type"
+          "name",
+          "timeRange",
+          "result"
         ]
       },
-      "GoogleSheetsRowAppendToolProviderDetails": {
+      "ClientMessageWorkflowNodeStarted": {
         "type": "object",
         "properties": {
-          "templateUrl": {
-            "type": "string",
-            "description": "This is the Template URL or the Snapshot URL corresponding to the Template."
-          },
-          "setupInstructions": {
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/ToolTemplateSetup"
-            }
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
           },
           "type": {
             "type": "string",
+            "description": "This is the type of the message. \"workflow.node.started\" is sent when the active node changes.",
             "enum": [
-              "google.sheets.row.append"
-            ],
-            "description": "The type of tool. \"google.sheets.row.append\" for Google Sheets tool."
+              "workflow.node.started"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "node": {
+            "type": "object",
+            "description": "This is the active node."
           }
         },
         "required": [
-          "type"
+          "type",
+          "node"
         ]
       },
-      "ToolTemplateMetadata": {
-        "type": "object",
-        "properties": {
-          "collectionType": {
-            "type": "string"
-          },
-          "collectionId": {
-            "type": "string"
-          },
-          "collectionName": {
-            "type": "string"
-          }
-        }
-      },
-      "CreateToolTemplateDTO": {
+      "ClientMessageAssistantStarted": {
         "type": "object",
         "properties": {
-          "details": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                "title": "DtmfTool"
-              },
-              {
-                "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                "title": "EndCallTool"
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                "title": "VoicemailTool"
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                "title": "FunctionTool"
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateGhlToolDTO",
-                "title": "GhlTool"
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateMakeToolDTO",
-                "title": "MakeTool"
-              },
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"assistant.started\" is sent when the assistant is started.",
+            "enum": [
+              "assistant.started"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                "title": "TransferCallTool"
-              },
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                "title": "GoogleCalendarCreateEventTool"
-              },
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                "title": "GoogleSheetsRowAppendTool"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
           },
-          "providerDetails": {
+          "newAssistant": {
+            "description": "This is the assistant that was updated.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "newAssistant"
+        ]
+      },
+      "ClientMessageConversationUpdate": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/MakeToolProviderDetails",
-                "title": "MakeToolProviderDetails"
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GhlToolProviderDetails",
-                "title": "GhlToolProviderDetails"
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/FunctionToolProviderDetails",
-                "title": "FunctionToolProviderDetails"
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GoogleCalendarCreateEventToolProviderDetails",
-                "title": "GoogleCalendarCreateEventToolProviderDetails"
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GoogleSheetsRowAppendToolProviderDetails",
-                "title": "GoogleSheetsRowAppendToolProviderDetails"
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
-          "metadata": {
-            "$ref": "#/components/schemas/ToolTemplateMetadata"
-          },
-          "visibility": {
+          "type": {
             "type": "string",
-            "default": "private",
+            "description": "This is the type of the message. \"conversation-update\" is sent when an update is committed to the conversation history.",
             "enum": [
-              "public",
-              "private"
+              "conversation-update"
             ]
           },
-          "type": {
-            "type": "string",
-            "default": "tool",
-            "enum": [
-              "tool"
+          "messages": {
+            "type": "array",
+            "description": "This is the most up-to-date conversation history at the time the message is sent.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/BotMessage",
+                  "title": "BotMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallMessage",
+                  "title": "ToolCallMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallResultMessage",
+                  "title": "ToolCallResultMessage"
+                }
+              ]
+            }
+          },
+          "messagesOpenAIFormatted": {
+            "description": "This is the most up-to-date conversation history at the time the message is sent, formatted for OpenAI.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
             ]
           },
-          "name": {
-            "type": "string",
-            "description": "The name of the template. This is just for your own reference.",
-            "maxLength": 40
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
           },
-          "provider": {
-            "type": "string",
-            "enum": [
-              "make",
-              "gohighlevel",
-              "function"
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
             ]
           }
         },
         "required": [
-          "type"
+          "type",
+          "messagesOpenAIFormatted"
         ]
       },
-      "Template": {
+      "ClientMessageHang": {
         "type": "object",
         "properties": {
-          "details": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                "title": "DtmfTool"
-              },
-              {
-                "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                "title": "EndCallTool"
-              },
-              {
-                "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                "title": "VoicemailTool"
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                "title": "FunctionTool"
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateGhlToolDTO",
-                "title": "GhlTool"
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateMakeToolDTO",
-                "title": "MakeTool"
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                "title": "TransferCallTool"
-              },
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"hang\" is sent when the assistant is hanging due to a delay. The delay can be caused by many factors, such as:\n- the model is too slow to respond\n- the voice is too slow to respond\n- the tool call is still waiting for a response from your server\n- etc.",
+            "enum": [
+              "hang"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                "title": "GoogleCalendarCreateEventTool"
-              },
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                "title": "GoogleSheetsRowAppendTool"
+                "$ref": "#/components/schemas/CreateCustomerDTO"
               }
             ]
           },
-          "providerDetails": {
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "ClientMessageMetadata": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/MakeToolProviderDetails",
-                "title": "MakeToolProviderDetails"
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GhlToolProviderDetails",
-                "title": "GhlToolProviderDetails"
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/FunctionToolProviderDetails",
-                "title": "FunctionToolProviderDetails"
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GoogleCalendarCreateEventToolProviderDetails",
-                "title": "GoogleCalendarCreateEventToolProviderDetails"
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GoogleSheetsRowAppendToolProviderDetails",
-                "title": "GoogleSheetsRowAppendToolProviderDetails"
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
-          "metadata": {
-            "$ref": "#/components/schemas/ToolTemplateMetadata"
-          },
-          "visibility": {
-            "default": "private",
-            "enum": [
-              "public",
-              "private"
-            ],
-            "type": "string"
-          },
           "type": {
             "type": "string",
-            "default": "tool",
+            "description": "This is the type of the message. \"metadata\" is sent to forward metadata to the client.",
             "enum": [
-              "tool"
+              "metadata"
             ]
           },
-          "name": {
-            "type": "string",
-            "description": "The name of the template. This is just for your own reference.",
-            "maxLength": 40
-          },
-          "provider": {
-            "enum": [
-              "make",
-              "gohighlevel",
-              "function"
-            ],
-            "type": "string"
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
           },
-          "id": {
-            "type": "string",
-            "description": "The unique identifier for the template."
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
           },
-          "orgId": {
-            "type": "string",
-            "description": "The unique identifier for the organization that this template belongs to."
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
           },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "The ISO 8601 date-time string of when the template was created."
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
           },
-          "updatedAt": {
-            "format": "date-time",
+          "metadata": {
             "type": "string",
-            "description": "The ISO 8601 date-time string of when the template was last updated."
+            "description": "This is the metadata content"
           }
         },
         "required": [
           "type",
-          "id",
-          "orgId",
-          "createdAt",
-          "updatedAt"
+          "metadata"
         ]
       },
-      "UpdateToolTemplateDTO": {
+      "ClientMessageModelOutput": {
         "type": "object",
         "properties": {
-          "details": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/CreateDtmfToolDTO",
-                "title": "DtmfTool"
-              },
-              {
-                "$ref": "#/components/schemas/CreateEndCallToolDTO",
-                "title": "EndCallTool"
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateVoicemailToolDTO",
-                "title": "VoicemailTool"
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateFunctionToolDTO",
-                "title": "FunctionTool"
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateGhlToolDTO",
-                "title": "GhlTool"
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/CreateMakeToolDTO",
-                "title": "MakeTool"
-              },
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"model-output\" is sent as the model outputs tokens.",
+            "enum": [
+              "model-output"
+            ]
+          },
+          "turnId": {
+            "type": "string",
+            "description": "This is the unique identifier for the current LLM turn. All tokens from the same\nLLM response share the same turnId. Use this to group tokens and discard on interruption."
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateTransferCallToolDTO",
-                "title": "TransferCallTool"
-              },
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO",
-                "title": "GoogleCalendarCreateEventTool"
-              },
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
               {
-                "$ref": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO",
-                "title": "GoogleSheetsRowAppendTool"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
           },
-          "providerDetails": {
+          "output": {
+            "type": "object",
+            "description": "This is the output of the model. It can be a token or tool call."
+          }
+        },
+        "required": [
+          "type",
+          "output"
+        ]
+      },
+      "ClientMessageSpeechUpdate": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/MakeToolProviderDetails",
-                "title": "MakeToolProviderDetails"
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GhlToolProviderDetails",
-                "title": "GhlToolProviderDetails"
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/FunctionToolProviderDetails",
-                "title": "FunctionToolProviderDetails"
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GoogleCalendarCreateEventToolProviderDetails",
-                "title": "GoogleCalendarCreateEventToolProviderDetails"
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/GoogleSheetsRowAppendToolProviderDetails",
-                "title": "GoogleSheetsRowAppendToolProviderDetails"
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
-          "metadata": {
-            "$ref": "#/components/schemas/ToolTemplateMetadata"
-          },
-          "visibility": {
+          "type": {
             "type": "string",
-            "default": "private",
+            "description": "This is the type of the message. \"speech-update\" is sent whenever assistant or user start or stop speaking.",
             "enum": [
-              "public",
-              "private"
+              "speech-update"
             ]
           },
-          "type": {
+          "status": {
             "type": "string",
-            "default": "tool",
+            "description": "This is the status of the speech update.",
             "enum": [
-              "tool"
+              "started",
+              "stopped"
             ]
           },
-          "name": {
-            "type": "string",
-            "description": "The name of the template. This is just for your own reference.",
-            "maxLength": 40
-          },
-          "provider": {
+          "role": {
             "type": "string",
+            "description": "This is the role which the speech update is for.",
             "enum": [
-              "make",
-              "gohighlevel",
-              "function"
+              "assistant",
+              "user"
+            ]
+          },
+          "turn": {
+            "type": "number",
+            "description": "This is the turn number of the speech update (0-indexed)."
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
             ]
           }
         },
         "required": [
-          "type"
+          "type",
+          "status",
+          "role"
         ]
       },
-      "VoiceLibrary": {
+      "ClientMessageTranscript": {
         "type": "object",
         "properties": {
-          "provider": {
-            "type": "object",
-            "description": "This is the voice provider that will be used.",
-            "enum": [
-              "vapi",
-              "11labs",
-              "azure",
-              "cartesia",
-              "custom-voice",
-              "deepgram",
-              "hume",
-              "lmnt",
-              "neuphonic",
-              "openai",
-              "playht",
-              "rime-ai",
-              "smallest-ai",
-              "tavus",
-              "sesame"
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
             ]
           },
-          "providerId": {
-            "type": "string",
-            "description": "The ID of the voice provided by the provider."
-          },
-          "slug": {
-            "type": "string",
-            "description": "The unique slug of the voice."
-          },
-          "name": {
+          "type": {
             "type": "string",
-            "description": "The name of the voice."
+            "description": "This is the type of the message. \"transcript\" is sent as transcriber outputs partial or final transcript.",
+            "enum": [
+              "transcript",
+              "transcript[transcriptType=\"final\"]"
+            ]
           },
-          "language": {
-            "type": "string",
-            "description": "The language of the voice."
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
           },
-          "languageCode": {
-            "type": "string",
-            "description": "The language code of the voice."
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
           },
-          "model": {
-            "type": "string",
-            "description": "The model of the voice."
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
           },
-          "supportedModels": {
-            "type": "string",
-            "description": "The supported models of the voice."
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
           },
-          "gender": {
+          "role": {
             "type": "string",
-            "description": "The gender of the voice.",
+            "description": "This is the role for which the transcript is for.",
             "enum": [
-              "male",
-              "female"
+              "assistant",
+              "user"
             ]
           },
-          "accent": {
-            "type": "string",
-            "description": "The accent of the voice."
-          },
-          "previewUrl": {
-            "type": "string",
-            "description": "The preview URL of the voice."
-          },
-          "description": {
-            "type": "string",
-            "description": "The description of the voice."
-          },
-          "credentialId": {
-            "type": "string",
-            "description": "The credential ID of the voice."
-          },
-          "id": {
+          "transcriptType": {
             "type": "string",
-            "description": "The unique identifier for the voice library."
+            "description": "This is the type of the transcript.",
+            "enum": [
+              "partial",
+              "final"
+            ]
           },
-          "orgId": {
+          "transcript": {
             "type": "string",
-            "description": "The unique identifier for the organization that this voice library belongs to."
-          },
-          "isPublic": {
-            "type": "boolean",
-            "description": "The Public voice is shared accross all the organizations."
+            "description": "This is the transcript content."
           },
-          "isDeleted": {
+          "isFiltered": {
             "type": "boolean",
-            "description": "The deletion status of the voice."
-          },
-          "createdAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "The ISO 8601 date-time string of when the voice library was created."
+            "description": "Indicates if the transcript was filtered for security reasons."
           },
-          "updatedAt": {
-            "format": "date-time",
-            "type": "string",
-            "description": "The ISO 8601 date-time string of when the voice library was last updated."
-          }
-        },
-        "required": [
-          "id",
-          "orgId",
-          "isPublic",
-          "isDeleted",
-          "createdAt",
-          "updatedAt"
-        ]
-      },
-      "SyncVoiceLibraryDTO": {
-        "type": "object",
-        "properties": {
-          "providers": {
+          "detectedThreats": {
+            "description": "List of detected security threats if the transcript was filtered.",
             "type": "array",
-            "description": "List of providers you want to sync.",
-            "enum": [
-              "vapi",
-              "11labs",
-              "azure",
-              "cartesia",
-              "custom-voice",
-              "deepgram",
-              "hume",
-              "lmnt",
-              "neuphonic",
-              "openai",
-              "playht",
-              "rime-ai",
-              "smallest-ai",
-              "tavus",
-              "sesame"
-            ],
             "items": {
-              "type": "string",
-              "enum": [
-                "vapi",
-                "11labs",
-                "azure",
-                "cartesia",
-                "custom-voice",
-                "deepgram",
-                "hume",
-                "lmnt",
-                "neuphonic",
-                "openai",
-                "playht",
-                "rime-ai",
-                "smallest-ai",
-                "tavus",
-                "sesame"
-              ]
+              "type": "string"
             }
-          }
-        }
-      },
-      "CreateSesameVoiceDTO": {
-        "type": "object",
-        "properties": {
-          "voiceName": {
-            "type": "string",
-            "description": "The name of the voice."
           },
-          "transcription": {
+          "originalTranscript": {
             "type": "string",
-            "description": "The transcript of the utterance."
-          }
-        }
-      },
-      "VoiceLibraryVoiceResponse": {
-        "type": "object",
-        "properties": {
-          "voiceId": {
-            "type": "string"
-          },
-          "name": {
-            "type": "string"
-          },
-          "publicOwnerId": {
-            "type": "string"
-          },
-          "description": {
-            "type": "string"
-          },
-          "gender": {
-            "type": "string"
-          },
-          "age": {
-            "type": "object"
-          },
-          "accent": {
-            "type": "string"
+            "description": "The original transcript before filtering (only included if content was filtered)."
           }
         },
         "required": [
-          "voiceId",
-          "name"
+          "type",
+          "role",
+          "transcriptType",
+          "transcript"
         ]
       },
-      "AddVoiceToProviderDTO": {
+      "ClientMessageToolCalls": {
         "type": "object",
         "properties": {
-          "ownerId": {
-            "type": "string",
-            "description": "This is the owner_id of your shared voice which you want to add to your provider Account from Provider Voice Library"
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
           },
-          "voiceId": {
+          "type": {
             "type": "string",
-            "description": "This is the voice_id of the shared voice which you want to add to your provider Account from Provider Voice Library"
+            "description": "This is the type of the message. \"tool-calls\" is sent to call a tool.",
+            "enum": [
+              "tool-calls"
+            ]
           },
-          "name": {
-            "type": "string",
-            "description": "This is the new name of the voice which you want to have once you have added voice to your provider Account from Provider Voice Library"
-          }
-        },
-        "required": [
-          "ownerId",
-          "voiceId",
-          "name"
-        ]
-      },
-      "CloneVoiceDTO": {
-        "type": "object",
-        "properties": {
-          "name": {
-            "type": "string",
-            "description": "This is the name of the cloned voice in the provider account."
+          "toolWithToolCallList": {
+            "type": "array",
+            "description": "This is the list of tools calls that the model is requesting along with the original tool configuration.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/FunctionToolWithToolCall",
+                  "title": "FunctionToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/GhlToolWithToolCall",
+                  "title": "GhlToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/MakeToolWithToolCall",
+                  "title": "MakeToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/BashToolWithToolCall",
+                  "title": "BashToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/ComputerToolWithToolCall",
+                  "title": "ComputerToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/TextEditorToolWithToolCall",
+                  "title": "TextEditorToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/GoogleCalendarCreateEventToolWithToolCall",
+                  "title": "GoogleCalendarCreateEventToolWithToolCall"
+                }
+              ]
+            }
           },
-          "description": {
-            "type": "string",
-            "description": "This is the description of your cloned voice."
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
           },
-          "labels": {
-            "type": "string",
-            "description": "Serialized labels dictionary for the voice."
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
           },
-          "files": {
-            "description": "These are the files you want to use to clone your voice. Only Audio files are supported.",
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "toolCallList": {
+            "description": "This is the list of tool calls that the model is requesting.",
             "type": "array",
             "items": {
-              "type": "string",
-              "format": "binary"
+              "$ref": "#/components/schemas/ToolCall"
             }
           }
         },
         "required": [
-          "name",
-          "files"
+          "toolWithToolCallList",
+          "toolCallList"
         ]
       },
-      "ClientMessageWorkflowNodeStarted": {
+      "ClientMessageToolCallsResult": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"workflow.node.started\" is sent when the active node changes.",
+            "description": "This is the type of the message. \"tool-calls-result\" is sent to forward the result of a tool call to the client.",
             "enum": [
-              "workflow.node.started"
+              "tool-calls-result"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
             ]
           },
-          "node": {
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "toolCallResult": {
             "type": "object",
-            "description": "This is the active node."
+            "description": "This is the result of the tool call."
           }
         },
         "required": [
           "type",
-          "node"
+          "toolCallResult"
         ]
       },
-      "ClientMessageConversationUpdate": {
+      "ClientMessageTransferUpdate": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"conversation-update\" is sent when an update is committed to the conversation history.",
+            "description": "This is the type of the message. \"transfer-update\" is sent whenever a transfer happens.",
             "enum": [
-              "conversation-update"
+              "transfer-update"
             ]
           },
-          "messages": {
-            "type": "array",
-            "description": "This is the most up-to-date conversation history at the time the message is sent.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/UserMessage",
-                  "title": "UserMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/SystemMessage",
-                  "title": "SystemMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/BotMessage",
-                  "title": "BotMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolCallMessage",
-                  "title": "ToolCallMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolCallResultMessage",
-                  "title": "ToolCallResultMessage"
-                }
-              ]
-            }
+          "destination": {
+            "description": "This is the destination of the transfer.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationAssistant",
+                "title": "Assistant"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "Number"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "Sip"
+              }
+            ]
           },
-          "messagesOpenAIFormatted": {
-            "description": "This is the most up-to-date conversation history at the time the message is sent, formatted for OpenAI.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
-            }
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "toAssistant": {
+            "description": "This is the assistant that the call is being transferred to. This is only sent if `destination.type` is \"assistant\".",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "fromAssistant": {
+            "description": "This is the assistant that the call is being transferred from. This is only sent if `destination.type` is \"assistant\".",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "toStepRecord": {
+            "type": "object",
+            "description": "This is the step that the conversation moved to."
+          },
+          "fromStepRecord": {
+            "type": "object",
+            "description": "This is the step that the conversation moved from. ="
           }
         },
         "required": [
-          "type",
-          "messagesOpenAIFormatted"
+          "type"
         ]
       },
-      "ClientMessageHang": {
+      "ClientMessageUserInterrupted": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"hang\" is sent when the assistant is hanging due to a delay. The delay can be caused by many factors, such as:\n- the model is too slow to respond\n- the voice is too slow to respond\n- the tool call is still waiting for a response from your server\n- etc.",
+            "description": "This is the type of the message. \"user-interrupted\" is sent when the user interrupts the assistant.",
             "enum": [
-              "hang"
+              "user-interrupted"
+            ]
+          },
+          "turnId": {
+            "type": "string",
+            "description": "This is the turnId of the LLM response that was interrupted. Matches the turnId\non model-output messages so clients can discard the interrupted turn's tokens."
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
             ]
           }
         },
@@ -32610,315 +59241,700 @@
           "type"
         ]
       },
-      "ClientMessageMetadata": {
+      "ClientMessageLanguageChangeDetected": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"metadata\" is sent to forward metadata to the client.",
+            "description": "This is the type of the message. \"language-change-detected\" is sent when the transcriber is automatically switched based on the detected language.",
             "enum": [
-              "metadata"
+              "language-change-detected"
             ]
           },
-          "metadata": {
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "language": {
             "type": "string",
-            "description": "This is the metadata content"
+            "description": "This is the language the transcriber is switched to."
           }
         },
         "required": [
           "type",
-          "metadata"
+          "language"
         ]
       },
-      "ClientMessageModelOutput": {
+      "ClientMessageVoiceInput": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"model-output\" is sent as the model outputs tokens.",
+            "description": "This is the type of the message. \"voice-input\" is sent when a generation is requested from voice provider.",
             "enum": [
-              "model-output"
+              "voice-input"
             ]
           },
-          "output": {
-            "type": "object",
-            "description": "This is the output of the model. It can be a token or tool call."
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "input": {
+            "type": "string",
+            "description": "This is the voice input content"
           }
         },
         "required": [
           "type",
-          "output"
+          "input"
         ]
       },
-      "ClientMessageSpeechUpdate": {
+      "ClientMessageAssistantSpeech": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"speech-update\" is sent whenever assistant or user start or stop speaking.",
+            "description": "This is the type of the message. \"assistant-speech\" is sent as assistant audio is being played.",
             "enum": [
-              "speech-update"
+              "assistant.speechStarted"
             ]
           },
-          "status": {
+          "text": {
             "type": "string",
-            "description": "This is the status of the speech update.",
-            "enum": [
-              "started",
-              "stopped"
-            ]
+            "description": "The full assistant text for the current turn. This is the complete text,\nnot an incremental delta — consumers should use `timing` metadata (e.g.\n`wordsSpoken`) to determine which portion has been spoken so far."
           },
-          "role": {
+          "turn": {
+            "type": "number",
+            "description": "This is the turn number of the assistant speech event (0-indexed)."
+          },
+          "source": {
             "type": "string",
-            "description": "This is the role which the speech update is for.",
+            "description": "Indicates how the text was sourced.",
             "enum": [
-              "assistant",
-              "user"
+              "model",
+              "force-say",
+              "custom-voice"
             ]
           },
-          "turn": {
+          "timing": {
+            "description": "Optional timing metadata. Shape depends on `timing.type`:\n\n- `word-alignment` (ElevenLabs): per-character timing at playback\n  cadence. words[] includes space entries. Best consumed by tracking\n  a running character count: join timing.words, add to a char cursor,\n  and highlight text up to that position. No interpolation needed.\n\n- `word-progress` (Minimax with voice.subtitleType: 'word'): cursor-\n  based word count per TTS segment. Use wordsSpoken as the anchor,\n  interpolate forward using segmentDurationMs or timing.words until\n  the next event arrives.\n\nWhen absent, the event is a text-only fallback for providers without\nword-level timing (e.g. Cartesia, Deepgram, Azure). Text emits once\nper TTS chunk when audio is playing. Optionally interpolate a word\ncursor at ~3.5 words/sec between events for approximate tracking.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssistantSpeechWordAlignmentTiming",
+                "title": "WordAlignmentTiming"
+              },
+              {
+                "$ref": "#/components/schemas/AssistantSpeechWordProgressTiming",
+                "title": "WordProgressTiming"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type"
+            }
+          },
+          "timestamp": {
             "type": "number",
-            "description": "This is the turn number of the speech update (0-indexed)."
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
           }
         },
         "required": [
           "type",
-          "status",
-          "role"
+          "text"
         ]
       },
-      "ClientMessageTranscript": {
+      "ClientMessageChatCreated": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"transcript\" is sent as transcriber outputs partial or final transcript.",
+            "description": "This is the type of the message. \"chat.created\" is sent when a new chat is created.",
             "enum": [
-              "transcript",
-              "transcript[transcriptType=\"final\"]"
+              "chat.created"
             ]
           },
-          "role": {
-            "type": "string",
-            "description": "This is the role for which the transcript is for.",
-            "enum": [
-              "assistant",
-              "user"
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
             ]
           },
-          "transcriptType": {
-            "type": "string",
-            "description": "This is the type of the transcript.",
-            "enum": [
-              "partial",
-              "final"
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
             ]
           },
-          "transcript": {
-            "type": "string",
-            "description": "This is the transcript content."
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat that was created.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
           "type",
-          "role",
-          "transcriptType",
-          "transcript"
+          "chat"
         ]
       },
-      "ToolCallFunction": {
+      "ClientMessageChatDeleted": {
         "type": "object",
         "properties": {
-          "name": {
-            "type": "string",
-            "description": "This is the name of the function the model called."
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
           },
-          "arguments": {
-            "type": "object",
-            "description": "These are the arguments that the function was called with."
-          }
-        },
-        "required": [
-          "name",
-          "arguments"
-        ]
-      },
-      "ToolCall": {
-        "type": "object",
-        "properties": {
           "type": {
             "type": "string",
-            "description": "This is the type of tool the model called.",
+            "description": "This is the type of the message. \"chat.deleted\" is sent when a chat is deleted.",
             "enum": [
-              "function"
+              "chat.deleted"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
             ]
           },
-          "function": {
-            "description": "This is the function the model called.",
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/ToolCallFunction"
+                "$ref": "#/components/schemas/CreateAssistantDTO"
               }
             ]
           },
-          "id": {
-            "type": "string",
-            "description": "This is the unique identifier for the tool call."
+          "chat": {
+            "description": "This is the chat that was deleted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
           "type",
-          "function",
-          "id"
+          "chat"
         ]
       },
-      "ClientMessageToolCalls": {
+      "ClientMessageSessionCreated": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"tool-calls\" is sent to call a tool.",
+            "description": "This is the type of the message. \"session.created\" is sent when a new session is created.",
             "enum": [
-              "tool-calls"
+              "session.created"
             ]
           },
-          "toolWithToolCallList": {
-            "type": "array",
-            "description": "This is the list of tools calls that the model is requesting along with the original tool configuration.",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/FunctionToolWithToolCall",
-                  "title": "FunctionToolWithToolCall"
-                },
-                {
-                  "$ref": "#/components/schemas/GhlToolWithToolCall",
-                  "title": "GhlToolWithToolCall"
-                },
-                {
-                  "$ref": "#/components/schemas/MakeToolWithToolCall",
-                  "title": "MakeToolWithToolCall"
-                },
-                {
-                  "$ref": "#/components/schemas/BashToolWithToolCall",
-                  "title": "BashToolWithToolCall"
-                },
-                {
-                  "$ref": "#/components/schemas/ComputerToolWithToolCall",
-                  "title": "ComputerToolWithToolCall"
-                },
-                {
-                  "$ref": "#/components/schemas/TextEditorToolWithToolCall",
-                  "title": "TextEditorToolWithToolCall"
-                },
-                {
-                  "$ref": "#/components/schemas/GoogleCalendarCreateEventToolWithToolCall",
-                  "title": "GoogleCalendarCreateEventToolWithToolCall"
-                }
-              ]
-            }
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
           },
-          "toolCallList": {
-            "description": "This is the list of tool calls that the model is requesting.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/ToolCall"
-            }
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "session": {
+            "description": "This is the session that was created.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Session"
+              }
+            ]
           }
         },
         "required": [
-          "toolWithToolCallList",
-          "toolCallList"
+          "type",
+          "session"
         ]
       },
-      "ClientMessageToolCallsResult": {
+      "ClientMessageSessionUpdated": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"tool-calls-result\" is sent to forward the result of a tool call to the client.",
+            "description": "This is the type of the message. \"session.updated\" is sent when a session is updated.",
             "enum": [
-              "tool-calls-result"
+              "session.updated"
             ]
           },
-          "toolCallResult": {
-            "type": "object",
-            "description": "This is the result of the tool call."
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "session": {
+            "description": "This is the session that was updated.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Session"
+              }
+            ]
           }
         },
         "required": [
           "type",
-          "toolCallResult"
+          "session"
         ]
       },
-      "ClientMessageTransferUpdate": {
+      "ClientMessageSessionDeleted": {
         "type": "object",
         "properties": {
-          "type": {
-            "type": "string",
-            "description": "This is the type of the message. \"transfer-update\" is sent whenever a transfer happens.",
-            "enum": [
-              "transfer-update"
-            ]
-          },
-          "destination": {
-            "description": "This is the destination of the transfer.",
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/TransferDestinationAssistant",
-                "title": "Assistant"
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/TransferDestinationStep",
-                "title": "Step"
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "Number"
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "Sip"
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
-          "toAssistant": {
-            "description": "This is the assistant that the call is being transferred to. This is only sent if `destination.type` is \"assistant\".",
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"session.deleted\" is sent when a session is deleted.",
+            "enum": [
+              "session.deleted"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
+                "$ref": "#/components/schemas/Call"
               }
             ]
           },
-          "fromAssistant": {
-            "description": "This is the assistant that the call is being transferred from. This is only sent if `destination.type` is \"assistant\".",
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
+                "$ref": "#/components/schemas/CreateCustomerDTO"
               }
             ]
           },
-          "toStepRecord": {
-            "type": "object",
-            "description": "This is the step that the conversation moved to."
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
           },
-          "fromStepRecord": {
-            "type": "object",
-            "description": "This is the step that the conversation moved from. ="
+          "session": {
+            "description": "This is the session that was deleted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Session"
+              }
+            ]
           }
         },
         "required": [
-          "type"
+          "type",
+          "session"
         ]
       },
-      "ClientMessageUserInterrupted": {
+      "ClientMessageCallDeleted": {
         "type": "object",
         "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"user-interrupted\" is sent when the user interrupts the assistant.",
+            "description": "This is the type of the message. \"call.deleted\" is sent when a call is deleted.",
             "enum": [
-              "user-interrupted"
+              "call.deleted"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
             ]
           }
         },
@@ -32926,44 +59942,72 @@
           "type"
         ]
       },
-      "ClientMessageLanguageChangeDetected": {
+      "ClientMessageCallDeleteFailed": {
         "type": "object",
         "properties": {
-          "type": {
-            "type": "string",
-            "description": "This is the type of the message. \"language-change-detected\" is sent when the transcriber is automatically switched based on the detected language.",
-            "enum": [
-              "language-change-detected"
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
             ]
           },
-          "language": {
-            "type": "string",
-            "description": "This is the language the transcriber is switched to."
-          }
-        },
-        "required": [
-          "type",
-          "language"
-        ]
-      },
-      "ClientMessageVoiceInput": {
-        "type": "object",
-        "properties": {
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"voice-input\" is sent when a generation is requested from voice provider.",
+            "description": "This is the type of the message. \"call.deleted\" is sent when a call is deleted.",
             "enum": [
-              "voice-input"
+              "call.delete.failed"
             ]
           },
-          "input": {
-            "type": "string",
-            "description": "This is the voice input content"
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
           }
         },
         "required": [
-          "type",
-          "input"
+          "type"
         ]
       },
       "ClientMessage": {
@@ -32976,6 +60020,10 @@
                 "$ref": "#/components/schemas/ClientMessageWorkflowNodeStarted",
                 "title": "WorkflowNodeStarted"
               },
+              {
+                "$ref": "#/components/schemas/ClientMessageAssistantStarted",
+                "title": "AssistantStarted"
+              },
               {
                 "$ref": "#/components/schemas/ClientMessageConversationUpdate",
                 "title": "ConversationUpdate"
@@ -33023,6 +60071,38 @@
               {
                 "$ref": "#/components/schemas/ClientMessageVoiceInput",
                 "title": "VoiceInput"
+              },
+              {
+                "$ref": "#/components/schemas/ClientMessageAssistantSpeech",
+                "title": "AssistantSpeech"
+              },
+              {
+                "$ref": "#/components/schemas/ClientMessageChatCreated",
+                "title": "ChatCreated"
+              },
+              {
+                "$ref": "#/components/schemas/ClientMessageChatDeleted",
+                "title": "ChatDeleted"
+              },
+              {
+                "$ref": "#/components/schemas/ClientMessageSessionCreated",
+                "title": "SessionCreated"
+              },
+              {
+                "$ref": "#/components/schemas/ClientMessageSessionUpdated",
+                "title": "SessionUpdated"
+              },
+              {
+                "$ref": "#/components/schemas/ClientMessageSessionDeleted",
+                "title": "SessionDeleted"
+              },
+              {
+                "$ref": "#/components/schemas/ClientMessageCallDeleted",
+                "title": "CallDeleted"
+              },
+              {
+                "$ref": "#/components/schemas/ClientMessageCallDeleteFailed",
+                "title": "CallDeleteFailed"
               }
             ]
           }
@@ -33035,7 +60115,7 @@
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -33052,6 +60132,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -33064,7 +60148,7 @@
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -33075,7 +60159,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -33083,7 +60167,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -33091,12 +60175,20 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
@@ -33107,7 +60199,7 @@
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -33124,6 +60216,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -33171,7 +60267,7 @@
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -33182,7 +60278,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -33190,7 +60286,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -33198,12 +60294,20 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
@@ -33215,7 +60319,7 @@
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -33232,6 +60336,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -33253,8 +60361,9 @@
               "assistant-request-returned-invalid-assistant",
               "assistant-request-returned-no-assistant",
               "assistant-request-returned-forwarding-phone-number",
-              "call.start.error-get-org",
-              "call.start.error-get-subscription",
+              "scheduled-call-deleted",
+              "call.start.error-vapifault-get-org",
+              "call.start.error-vapifault-get-subscription",
               "call.start.error-get-assistant",
               "call.start.error-get-phone-number",
               "call.start.error-get-customer",
@@ -33262,8 +60371,15 @@
               "call.start.error-vapi-number-international",
               "call.start.error-vapi-number-outbound-daily-limit",
               "call.start.error-get-transport",
+              "call.start.error-subscription-wallet-does-not-exist",
+              "call.start.error-fraud-check-failed",
+              "call.start.error-subscription-frozen",
+              "call.start.error-subscription-insufficient-credits",
+              "call.start.error-subscription-upgrade-failed",
+              "call.start.error-subscription-concurrency-limit-reached",
+              "call.start.error-enterprise-feature-not-available-recording-consent",
               "assistant-not-valid",
-              "database-error",
+              "call.start.error-vapifault-database-error",
               "assistant-not-found",
               "pipeline-error-openai-voice-failed",
               "pipeline-error-cartesia-voice-failed",
@@ -33274,9 +60390,13 @@
               "pipeline-error-azure-voice-failed",
               "pipeline-error-rime-ai-voice-failed",
               "pipeline-error-smallest-ai-voice-failed",
+              "pipeline-error-vapi-voice-failed",
               "pipeline-error-neuphonic-voice-failed",
               "pipeline-error-hume-voice-failed",
               "pipeline-error-sesame-voice-failed",
+              "pipeline-error-inworld-voice-failed",
+              "pipeline-error-minimax-voice-failed",
+              "pipeline-error-wellsaid-voice-failed",
               "pipeline-error-tavus-video-failed",
               "call.in-progress.error-vapifault-openai-voice-failed",
               "call.in-progress.error-vapifault-cartesia-voice-failed",
@@ -33287,9 +60407,13 @@
               "call.in-progress.error-vapifault-azure-voice-failed",
               "call.in-progress.error-vapifault-rime-ai-voice-failed",
               "call.in-progress.error-vapifault-smallest-ai-voice-failed",
+              "call.in-progress.error-vapifault-vapi-voice-failed",
               "call.in-progress.error-vapifault-neuphonic-voice-failed",
               "call.in-progress.error-vapifault-hume-voice-failed",
               "call.in-progress.error-vapifault-sesame-voice-failed",
+              "call.in-progress.error-vapifault-inworld-voice-failed",
+              "call.in-progress.error-vapifault-minimax-voice-failed",
+              "call.in-progress.error-vapifault-wellsaid-voice-failed",
               "call.in-progress.error-vapifault-tavus-video-failed",
               "pipeline-error-vapi-llm-failed",
               "pipeline-error-vapi-400-bad-request-validation-failed",
@@ -33298,7 +60422,7 @@
               "pipeline-error-vapi-429-exceeded-quota",
               "pipeline-error-vapi-500-server-error",
               "pipeline-error-vapi-503-server-overloaded-error",
-              "call.in-progress.error-vapifault-vapi-llm-failed",
+              "call.in-progress.error-providerfault-vapi-llm-failed",
               "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-vapi-401-unauthorized",
               "call.in-progress.error-vapifault-vapi-403-model-access-denied",
@@ -33306,6 +60430,7 @@
               "call.in-progress.error-providerfault-vapi-500-server-error",
               "call.in-progress.error-providerfault-vapi-503-server-overloaded-error",
               "pipeline-error-deepgram-transcriber-failed",
+              "pipeline-error-deepgram-transcriber-api-key-missing",
               "call.in-progress.error-vapifault-deepgram-transcriber-failed",
               "pipeline-error-gladia-transcriber-failed",
               "call.in-progress.error-vapifault-gladia-transcriber-failed",
@@ -33327,9 +60452,24 @@
               "call.in-progress.error-vapifault-talkscriber-transcriber-failed",
               "pipeline-error-azure-speech-transcriber-failed",
               "call.in-progress.error-vapifault-azure-speech-transcriber-failed",
+              "pipeline-error-eleven-labs-transcriber-failed",
+              "call.in-progress.error-vapifault-eleven-labs-transcriber-failed",
+              "pipeline-error-google-transcriber-failed",
+              "call.in-progress.error-vapifault-google-transcriber-failed",
+              "pipeline-error-openai-transcriber-failed",
+              "call.in-progress.error-vapifault-openai-transcriber-failed",
+              "pipeline-error-soniox-transcriber-auth-failed",
+              "pipeline-error-soniox-transcriber-rate-limited",
+              "pipeline-error-soniox-transcriber-invalid-config",
+              "pipeline-error-soniox-transcriber-server-error",
+              "pipeline-error-soniox-transcriber-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-auth-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-rate-limited",
+              "call.in-progress.error-vapifault-soniox-transcriber-invalid-config",
+              "call.in-progress.error-vapifault-soniox-transcriber-server-error",
+              "call.in-progress.error-vapifault-soniox-transcriber-failed",
               "call.in-progress.error-pipeline-no-available-llm-model",
               "worker-shutdown",
-              "unknown-error",
               "vonage-disconnected",
               "vonage-failed-to-connect-call",
               "vonage-completed",
@@ -33339,15 +60479,25 @@
               "call.in-progress.error-vapifault-transport-never-connected",
               "call.in-progress.error-vapifault-transport-connected-but-call-not-active",
               "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing",
-              "call.in-progress.error-vapifault-openai-llm-failed",
-              "call.in-progress.error-vapifault-azure-openai-llm-failed",
-              "call.in-progress.error-vapifault-groq-llm-failed",
-              "call.in-progress.error-vapifault-google-llm-failed",
-              "call.in-progress.error-vapifault-xai-llm-failed",
-              "call.in-progress.error-vapifault-mistral-llm-failed",
-              "call.in-progress.error-vapifault-inflection-ai-llm-failed",
-              "call.in-progress.error-vapifault-cerebras-llm-failed",
-              "call.in-progress.error-vapifault-deep-seek-llm-failed",
+              "call.in-progress.error-vapifault-worker-died",
+              "call.in-progress.twilio-completed-call",
+              "call.in-progress.sip-completed-call",
+              "call.in-progress.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable",
+              "call.in-progress.error-sip-outbound-call-failed-to-connect",
+              "call.ringing.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-openai-llm-failed",
+              "call.in-progress.error-providerfault-azure-openai-llm-failed",
+              "call.in-progress.error-providerfault-groq-llm-failed",
+              "call.in-progress.error-providerfault-google-llm-failed",
+              "call.in-progress.error-providerfault-xai-llm-failed",
+              "call.in-progress.error-providerfault-mistral-llm-failed",
+              "call.in-progress.error-providerfault-minimax-llm-failed",
+              "call.in-progress.error-providerfault-inflection-ai-llm-failed",
+              "call.in-progress.error-providerfault-cerebras-llm-failed",
+              "call.in-progress.error-providerfault-deep-seek-llm-failed",
+              "call.in-progress.error-providerfault-baseten-llm-failed",
+              "call.in-progress.error-vapifault-chat-pipeline-failed-to-start",
               "pipeline-error-openai-400-bad-request-validation-failed",
               "pipeline-error-openai-401-unauthorized",
               "pipeline-error-openai-401-incorrect-api-key",
@@ -33406,6 +60556,19 @@
               "call.in-progress.error-vapifault-xai-429-exceeded-quota",
               "call.in-progress.error-providerfault-xai-500-server-error",
               "call.in-progress.error-providerfault-xai-503-server-overloaded-error",
+              "pipeline-error-baseten-400-bad-request-validation-failed",
+              "pipeline-error-baseten-401-unauthorized",
+              "pipeline-error-baseten-403-model-access-denied",
+              "pipeline-error-baseten-429-exceeded-quota",
+              "pipeline-error-baseten-500-server-error",
+              "pipeline-error-baseten-503-server-overloaded-error",
+              "pipeline-error-baseten-llm-failed",
+              "call.in-progress.error-vapifault-baseten-400-bad-request-validation-failed",
+              "call.in-progress.error-vapifault-baseten-401-unauthorized",
+              "call.in-progress.error-vapifault-baseten-403-model-access-denied",
+              "call.in-progress.error-vapifault-baseten-429-exceeded-quota",
+              "call.in-progress.error-providerfault-baseten-500-server-error",
+              "call.in-progress.error-providerfault-baseten-503-server-overloaded-error",
               "pipeline-error-mistral-400-bad-request-validation-failed",
               "pipeline-error-mistral-401-unauthorized",
               "pipeline-error-mistral-403-model-access-denied",
@@ -33419,6 +60582,19 @@
               "call.in-progress.error-vapifault-mistral-429-exceeded-quota",
               "call.in-progress.error-providerfault-mistral-500-server-error",
               "call.in-progress.error-providerfault-mistral-503-server-overloaded-error",
+              "pipeline-error-minimax-400-bad-request-validation-failed",
+              "pipeline-error-minimax-401-unauthorized",
+              "pipeline-error-minimax-403-model-access-denied",
+              "pipeline-error-minimax-429-exceeded-quota",
+              "pipeline-error-minimax-500-server-error",
+              "pipeline-error-minimax-503-server-overloaded-error",
+              "pipeline-error-minimax-llm-failed",
+              "call.in-progress.error-vapifault-minimax-400-bad-request-validation-failed",
+              "call.in-progress.error-vapifault-minimax-401-unauthorized",
+              "call.in-progress.error-vapifault-minimax-403-model-access-denied",
+              "call.in-progress.error-vapifault-minimax-429-exceeded-quota",
+              "call.in-progress.error-providerfault-minimax-500-server-error",
+              "call.in-progress.error-providerfault-minimax-503-server-overloaded-error",
               "pipeline-error-inflection-ai-400-bad-request-validation-failed",
               "pipeline-error-inflection-ai-401-unauthorized",
               "pipeline-error-inflection-ai-403-model-access-denied",
@@ -33478,7 +60654,7 @@
               "pipeline-error-anthropic-500-server-error",
               "pipeline-error-anthropic-503-server-overloaded-error",
               "pipeline-error-anthropic-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-llm-failed",
               "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-403-model-access-denied",
@@ -33492,7 +60668,7 @@
               "pipeline-error-anthropic-bedrock-500-server-error",
               "pipeline-error-anthropic-bedrock-503-server-overloaded-error",
               "pipeline-error-anthropic-bedrock-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-bedrock-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed",
               "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied",
@@ -33506,7 +60682,7 @@
               "pipeline-error-anthropic-vertex-500-server-error",
               "pipeline-error-anthropic-vertex-503-server-overloaded-error",
               "pipeline-error-anthropic-vertex-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-vertex-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-vertex-llm-failed",
               "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied",
@@ -33520,7 +60696,7 @@
               "pipeline-error-together-ai-500-server-error",
               "pipeline-error-together-ai-503-server-overloaded-error",
               "pipeline-error-together-ai-llm-failed",
-              "call.in-progress.error-vapifault-together-ai-llm-failed",
+              "call.in-progress.error-providerfault-together-ai-llm-failed",
               "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-together-ai-401-unauthorized",
               "call.in-progress.error-vapifault-together-ai-403-model-access-denied",
@@ -33534,7 +60710,7 @@
               "pipeline-error-anyscale-500-server-error",
               "pipeline-error-anyscale-503-server-overloaded-error",
               "pipeline-error-anyscale-llm-failed",
-              "call.in-progress.error-vapifault-anyscale-llm-failed",
+              "call.in-progress.error-providerfault-anyscale-llm-failed",
               "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anyscale-401-unauthorized",
               "call.in-progress.error-vapifault-anyscale-403-model-access-denied",
@@ -33548,7 +60724,7 @@
               "pipeline-error-openrouter-500-server-error",
               "pipeline-error-openrouter-503-server-overloaded-error",
               "pipeline-error-openrouter-llm-failed",
-              "call.in-progress.error-vapifault-openrouter-llm-failed",
+              "call.in-progress.error-providerfault-openrouter-llm-failed",
               "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-openrouter-401-unauthorized",
               "call.in-progress.error-vapifault-openrouter-403-model-access-denied",
@@ -33562,7 +60738,7 @@
               "pipeline-error-perplexity-ai-500-server-error",
               "pipeline-error-perplexity-ai-503-server-overloaded-error",
               "pipeline-error-perplexity-ai-llm-failed",
-              "call.in-progress.error-vapifault-perplexity-ai-llm-failed",
+              "call.in-progress.error-providerfault-perplexity-ai-llm-failed",
               "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized",
               "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied",
@@ -33576,7 +60752,7 @@
               "pipeline-error-deepinfra-500-server-error",
               "pipeline-error-deepinfra-503-server-overloaded-error",
               "pipeline-error-deepinfra-llm-failed",
-              "call.in-progress.error-vapifault-deepinfra-llm-failed",
+              "call.in-progress.error-providerfault-deepinfra-llm-failed",
               "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-deepinfra-401-unauthorized",
               "call.in-progress.error-vapifault-deepinfra-403-model-access-denied",
@@ -33590,7 +60766,7 @@
               "pipeline-error-runpod-500-server-error",
               "pipeline-error-runpod-503-server-overloaded-error",
               "pipeline-error-runpod-llm-failed",
-              "call.in-progress.error-vapifault-runpod-llm-failed",
+              "call.in-progress.error-providerfault-runpod-llm-failed",
               "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-runpod-401-unauthorized",
               "call.in-progress.error-vapifault-runpod-403-model-access-denied",
@@ -33604,17 +60780,19 @@
               "pipeline-error-custom-llm-500-server-error",
               "pipeline-error-custom-llm-503-server-overloaded-error",
               "pipeline-error-custom-llm-llm-failed",
-              "call.in-progress.error-vapifault-custom-llm-llm-failed",
+              "call.in-progress.error-providerfault-custom-llm-llm-failed",
               "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-custom-llm-401-unauthorized",
               "call.in-progress.error-vapifault-custom-llm-403-model-access-denied",
               "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota",
               "call.in-progress.error-providerfault-custom-llm-500-server-error",
               "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error",
+              "call.in-progress.error-pipeline-ws-model-connection-failed",
               "pipeline-error-custom-voice-failed",
               "pipeline-error-cartesia-socket-hang-up",
               "pipeline-error-cartesia-requested-payment",
               "pipeline-error-cartesia-500-server-error",
+              "pipeline-error-cartesia-502-server-error",
               "pipeline-error-cartesia-503-server-error",
               "pipeline-error-cartesia-522-server-error",
               "call.in-progress.error-vapifault-cartesia-socket-hang-up",
@@ -33635,6 +60813,7 @@
               "pipeline-error-eleven-labs-invalid-api-key",
               "pipeline-error-eleven-labs-invalid-voice-samples",
               "pipeline-error-eleven-labs-voice-disabled-by-owner",
+              "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner",
               "pipeline-error-eleven-labs-blocked-account-in-probation",
               "pipeline-error-eleven-labs-blocked-content-against-their-policy",
               "pipeline-error-eleven-labs-missing-samples-for-voice-clone",
@@ -33643,6 +60822,7 @@
               "pipeline-error-eleven-labs-max-character-limit-exceeded",
               "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification",
               "pipeline-error-eleven-labs-500-server-error",
+              "pipeline-error-eleven-labs-503-server-error",
               "call.in-progress.error-vapifault-eleven-labs-voice-not-found",
               "call.in-progress.error-vapifault-eleven-labs-quota-exceeded",
               "call.in-progress.error-vapifault-eleven-labs-unauthorized-access",
@@ -33663,7 +60843,9 @@
               "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users",
               "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded",
               "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification",
+              "call.in-progress.error-providerfault-eleven-labs-system-busy-and-requested-upgrade",
               "call.in-progress.error-providerfault-eleven-labs-500-server-error",
+              "call.in-progress.error-providerfault-eleven-labs-503-server-error",
               "pipeline-error-playht-request-timed-out",
               "pipeline-error-playht-invalid-voice",
               "pipeline-error-playht-unexpected-error",
@@ -33699,6 +60881,7 @@
               "pipeline-error-deepgram-returning-500-invalid-json",
               "pipeline-error-deepgram-returning-502-network-error",
               "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach",
+              "pipeline-error-deepgram-returning-econnreset",
               "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination",
               "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials",
               "call.in-progress.error-vapifault-deepgram-returning-404-not-found",
@@ -33710,6 +60893,20 @@
               "call.in-progress.error-vapifault-google-transcriber-failed",
               "pipeline-error-openai-transcriber-failed",
               "call.in-progress.error-vapifault-openai-transcriber-failed",
+              "pipeline-error-soniox-transcriber-auth-failed",
+              "pipeline-error-soniox-transcriber-rate-limited",
+              "pipeline-error-soniox-transcriber-invalid-config",
+              "pipeline-error-soniox-transcriber-server-error",
+              "pipeline-error-soniox-transcriber-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-auth-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-rate-limited",
+              "call.in-progress.error-vapifault-soniox-transcriber-invalid-config",
+              "call.in-progress.error-vapifault-soniox-transcriber-server-error",
+              "call.in-progress.error-vapifault-soniox-transcriber-failed",
+              "call.in-progress.error-warm-transfer-max-duration",
+              "call.in-progress.error-warm-transfer-assistant-cancelled",
+              "call.in-progress.error-warm-transfer-silence-timeout",
+              "call.in-progress.error-warm-transfer-microphone-timeout",
               "assistant-ended-call",
               "assistant-said-end-call-phrase",
               "assistant-ended-call-with-hangup-task",
@@ -33717,8 +60914,12 @@
               "assistant-forwarded-call",
               "assistant-join-timed-out",
               "call.in-progress.error-assistant-did-not-receive-customer-audio",
+              "call.in-progress.error-transfer-failed",
               "customer-busy",
               "customer-ended-call",
+              "customer-ended-call-before-warm-transfer",
+              "customer-ended-call-after-warm-transfer-attempt",
+              "customer-ended-call-during-transfer",
               "customer-did-not-answer",
               "customer-did-not-give-microphone-permission",
               "exceeded-max-duration",
@@ -33726,13 +60927,24 @@
               "phone-call-provider-closed-websocket",
               "call.forwarding.operator-busy",
               "silence-timed-out",
-              "call.in-progress.error-sip-telephony-provider-failed-to-connect-call",
+              "call.in-progress.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-outbound-sip-403-forbidden",
+              "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required",
+              "call.in-progress.error-providerfault-outbound-sip-408-request-timeout",
+              "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable",
+              "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable",
+              "call.in-progress.error-sip-outbound-call-failed-to-connect",
               "call.ringing.hook-executed-say",
               "call.ringing.hook-executed-transfer",
+              "call.ending.hook-executed-say",
+              "call.ending.hook-executed-transfer",
+              "call.ringing.sip-inbound-caller-hungup-before-call-connect",
+              "call.ringing.error-sip-inbound-call-failed-to-connect",
               "twilio-failed-to-connect-call",
               "twilio-reported-customer-misdialed",
               "vonage-rejected",
-              "voicemail"
+              "voicemail",
+              "call-deleted"
             ]
           },
           "cost": {
@@ -33771,13 +60983,30 @@
                 {
                   "$ref": "#/components/schemas/AnalysisCost",
                   "title": "AnalysisCost"
+                },
+                {
+                  "$ref": "#/components/schemas/KnowledgeBaseCost",
+                  "title": "KnowledgeBaseCost"
                 }
               ]
             }
           },
+          "destination": {
+            "description": "This is the destination the call was transferred to, if the call was forwarded.\nThis can also be found at `call.destination` on GET /call/:id.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "These are the artifacts from the call. This can also be found at `call.artifact` on GET /call/:id.",
@@ -33788,7 +61017,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -33796,7 +61025,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -33804,13 +61033,21 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
           "analysis": {
             "description": "This is the analysis of the call. This can also be found at `call.analysis` on GET /call/:id.",
             "allOf": [
@@ -33828,6 +61065,14 @@
             "format": "date-time",
             "type": "string",
             "description": "This is the ISO 8601 date-time string of when the call ended. This can also be found at `call.endedAt` on GET /call/:id."
+          },
+          "compliance": {
+            "description": "This is the compliance result of the call. This can also be found at `call.compliance` on GET /call/:id.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Compliance"
+              }
+            ]
           }
         },
         "required": [
@@ -33837,11 +61082,100 @@
           "analysis"
         ]
       },
+      "ServerMessageHandoffDestinationRequest": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"handoff-destination-request\" is sent when the model is requesting handoff but destination is unknown.",
+            "enum": [
+              "handoff-destination-request"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "parameters": {
+            "type": "object",
+            "description": "This is the parameters of the handoff destination request."
+          }
+        },
+        "required": [
+          "type",
+          "parameters"
+        ]
+      },
       "ServerMessageHang": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -33858,6 +61192,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -33870,7 +61208,7 @@
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -33881,7 +61219,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -33889,7 +61227,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -33897,12 +61235,20 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
@@ -33913,7 +61259,7 @@
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -33930,6 +61276,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -33977,7 +61327,7 @@
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -33988,7 +61338,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -33996,7 +61346,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -34004,12 +61354,20 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
@@ -34021,7 +61379,7 @@
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -34038,6 +61396,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -34048,9 +61410,13 @@
               "model-output"
             ]
           },
+          "turnId": {
+            "type": "string",
+            "description": "This is the unique identifier for the current LLM turn. All tokens from the same\nLLM response share the same turnId. Use this to group tokens and discard on interruption."
+          },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -34061,7 +61427,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -34069,7 +61435,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -34077,13 +61443,21 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
           "output": {
             "type": "object",
             "description": "This is the output of the model. It can be a token or tool call."
@@ -34098,7 +61472,7 @@
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -34115,6 +61489,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -34148,7 +61526,7 @@
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -34159,7 +61537,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -34167,7 +61545,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -34175,12 +61553,20 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
@@ -34192,7 +61578,7 @@
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -34209,6 +61595,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -34241,7 +61631,7 @@
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -34252,7 +61642,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -34260,7 +61650,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -34268,12 +61658,20 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
@@ -34286,7 +61684,7 @@
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -34303,6 +61701,10 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
@@ -34322,7 +61724,9 @@
               "ringing",
               "in-progress",
               "forwarding",
-              "ended"
+              "ended",
+              "not-found",
+              "deletion-failed"
             ]
           },
           "endedReason": {
@@ -34336,8 +61740,9 @@
               "assistant-request-returned-invalid-assistant",
               "assistant-request-returned-no-assistant",
               "assistant-request-returned-forwarding-phone-number",
-              "call.start.error-get-org",
-              "call.start.error-get-subscription",
+              "scheduled-call-deleted",
+              "call.start.error-vapifault-get-org",
+              "call.start.error-vapifault-get-subscription",
               "call.start.error-get-assistant",
               "call.start.error-get-phone-number",
               "call.start.error-get-customer",
@@ -34345,8 +61750,15 @@
               "call.start.error-vapi-number-international",
               "call.start.error-vapi-number-outbound-daily-limit",
               "call.start.error-get-transport",
+              "call.start.error-subscription-wallet-does-not-exist",
+              "call.start.error-fraud-check-failed",
+              "call.start.error-subscription-frozen",
+              "call.start.error-subscription-insufficient-credits",
+              "call.start.error-subscription-upgrade-failed",
+              "call.start.error-subscription-concurrency-limit-reached",
+              "call.start.error-enterprise-feature-not-available-recording-consent",
               "assistant-not-valid",
-              "database-error",
+              "call.start.error-vapifault-database-error",
               "assistant-not-found",
               "pipeline-error-openai-voice-failed",
               "pipeline-error-cartesia-voice-failed",
@@ -34357,9 +61769,13 @@
               "pipeline-error-azure-voice-failed",
               "pipeline-error-rime-ai-voice-failed",
               "pipeline-error-smallest-ai-voice-failed",
+              "pipeline-error-vapi-voice-failed",
               "pipeline-error-neuphonic-voice-failed",
               "pipeline-error-hume-voice-failed",
               "pipeline-error-sesame-voice-failed",
+              "pipeline-error-inworld-voice-failed",
+              "pipeline-error-minimax-voice-failed",
+              "pipeline-error-wellsaid-voice-failed",
               "pipeline-error-tavus-video-failed",
               "call.in-progress.error-vapifault-openai-voice-failed",
               "call.in-progress.error-vapifault-cartesia-voice-failed",
@@ -34370,9 +61786,13 @@
               "call.in-progress.error-vapifault-azure-voice-failed",
               "call.in-progress.error-vapifault-rime-ai-voice-failed",
               "call.in-progress.error-vapifault-smallest-ai-voice-failed",
+              "call.in-progress.error-vapifault-vapi-voice-failed",
               "call.in-progress.error-vapifault-neuphonic-voice-failed",
               "call.in-progress.error-vapifault-hume-voice-failed",
               "call.in-progress.error-vapifault-sesame-voice-failed",
+              "call.in-progress.error-vapifault-inworld-voice-failed",
+              "call.in-progress.error-vapifault-minimax-voice-failed",
+              "call.in-progress.error-vapifault-wellsaid-voice-failed",
               "call.in-progress.error-vapifault-tavus-video-failed",
               "pipeline-error-vapi-llm-failed",
               "pipeline-error-vapi-400-bad-request-validation-failed",
@@ -34381,7 +61801,7 @@
               "pipeline-error-vapi-429-exceeded-quota",
               "pipeline-error-vapi-500-server-error",
               "pipeline-error-vapi-503-server-overloaded-error",
-              "call.in-progress.error-vapifault-vapi-llm-failed",
+              "call.in-progress.error-providerfault-vapi-llm-failed",
               "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-vapi-401-unauthorized",
               "call.in-progress.error-vapifault-vapi-403-model-access-denied",
@@ -34389,6 +61809,7 @@
               "call.in-progress.error-providerfault-vapi-500-server-error",
               "call.in-progress.error-providerfault-vapi-503-server-overloaded-error",
               "pipeline-error-deepgram-transcriber-failed",
+              "pipeline-error-deepgram-transcriber-api-key-missing",
               "call.in-progress.error-vapifault-deepgram-transcriber-failed",
               "pipeline-error-gladia-transcriber-failed",
               "call.in-progress.error-vapifault-gladia-transcriber-failed",
@@ -34410,9 +61831,24 @@
               "call.in-progress.error-vapifault-talkscriber-transcriber-failed",
               "pipeline-error-azure-speech-transcriber-failed",
               "call.in-progress.error-vapifault-azure-speech-transcriber-failed",
+              "pipeline-error-eleven-labs-transcriber-failed",
+              "call.in-progress.error-vapifault-eleven-labs-transcriber-failed",
+              "pipeline-error-google-transcriber-failed",
+              "call.in-progress.error-vapifault-google-transcriber-failed",
+              "pipeline-error-openai-transcriber-failed",
+              "call.in-progress.error-vapifault-openai-transcriber-failed",
+              "pipeline-error-soniox-transcriber-auth-failed",
+              "pipeline-error-soniox-transcriber-rate-limited",
+              "pipeline-error-soniox-transcriber-invalid-config",
+              "pipeline-error-soniox-transcriber-server-error",
+              "pipeline-error-soniox-transcriber-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-auth-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-rate-limited",
+              "call.in-progress.error-vapifault-soniox-transcriber-invalid-config",
+              "call.in-progress.error-vapifault-soniox-transcriber-server-error",
+              "call.in-progress.error-vapifault-soniox-transcriber-failed",
               "call.in-progress.error-pipeline-no-available-llm-model",
               "worker-shutdown",
-              "unknown-error",
               "vonage-disconnected",
               "vonage-failed-to-connect-call",
               "vonage-completed",
@@ -34422,15 +61858,25 @@
               "call.in-progress.error-vapifault-transport-never-connected",
               "call.in-progress.error-vapifault-transport-connected-but-call-not-active",
               "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing",
-              "call.in-progress.error-vapifault-openai-llm-failed",
-              "call.in-progress.error-vapifault-azure-openai-llm-failed",
-              "call.in-progress.error-vapifault-groq-llm-failed",
-              "call.in-progress.error-vapifault-google-llm-failed",
-              "call.in-progress.error-vapifault-xai-llm-failed",
-              "call.in-progress.error-vapifault-mistral-llm-failed",
-              "call.in-progress.error-vapifault-inflection-ai-llm-failed",
-              "call.in-progress.error-vapifault-cerebras-llm-failed",
-              "call.in-progress.error-vapifault-deep-seek-llm-failed",
+              "call.in-progress.error-vapifault-worker-died",
+              "call.in-progress.twilio-completed-call",
+              "call.in-progress.sip-completed-call",
+              "call.in-progress.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable",
+              "call.in-progress.error-sip-outbound-call-failed-to-connect",
+              "call.ringing.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-openai-llm-failed",
+              "call.in-progress.error-providerfault-azure-openai-llm-failed",
+              "call.in-progress.error-providerfault-groq-llm-failed",
+              "call.in-progress.error-providerfault-google-llm-failed",
+              "call.in-progress.error-providerfault-xai-llm-failed",
+              "call.in-progress.error-providerfault-mistral-llm-failed",
+              "call.in-progress.error-providerfault-minimax-llm-failed",
+              "call.in-progress.error-providerfault-inflection-ai-llm-failed",
+              "call.in-progress.error-providerfault-cerebras-llm-failed",
+              "call.in-progress.error-providerfault-deep-seek-llm-failed",
+              "call.in-progress.error-providerfault-baseten-llm-failed",
+              "call.in-progress.error-vapifault-chat-pipeline-failed-to-start",
               "pipeline-error-openai-400-bad-request-validation-failed",
               "pipeline-error-openai-401-unauthorized",
               "pipeline-error-openai-401-incorrect-api-key",
@@ -34489,6 +61935,19 @@
               "call.in-progress.error-vapifault-xai-429-exceeded-quota",
               "call.in-progress.error-providerfault-xai-500-server-error",
               "call.in-progress.error-providerfault-xai-503-server-overloaded-error",
+              "pipeline-error-baseten-400-bad-request-validation-failed",
+              "pipeline-error-baseten-401-unauthorized",
+              "pipeline-error-baseten-403-model-access-denied",
+              "pipeline-error-baseten-429-exceeded-quota",
+              "pipeline-error-baseten-500-server-error",
+              "pipeline-error-baseten-503-server-overloaded-error",
+              "pipeline-error-baseten-llm-failed",
+              "call.in-progress.error-vapifault-baseten-400-bad-request-validation-failed",
+              "call.in-progress.error-vapifault-baseten-401-unauthorized",
+              "call.in-progress.error-vapifault-baseten-403-model-access-denied",
+              "call.in-progress.error-vapifault-baseten-429-exceeded-quota",
+              "call.in-progress.error-providerfault-baseten-500-server-error",
+              "call.in-progress.error-providerfault-baseten-503-server-overloaded-error",
               "pipeline-error-mistral-400-bad-request-validation-failed",
               "pipeline-error-mistral-401-unauthorized",
               "pipeline-error-mistral-403-model-access-denied",
@@ -34502,6 +61961,19 @@
               "call.in-progress.error-vapifault-mistral-429-exceeded-quota",
               "call.in-progress.error-providerfault-mistral-500-server-error",
               "call.in-progress.error-providerfault-mistral-503-server-overloaded-error",
+              "pipeline-error-minimax-400-bad-request-validation-failed",
+              "pipeline-error-minimax-401-unauthorized",
+              "pipeline-error-minimax-403-model-access-denied",
+              "pipeline-error-minimax-429-exceeded-quota",
+              "pipeline-error-minimax-500-server-error",
+              "pipeline-error-minimax-503-server-overloaded-error",
+              "pipeline-error-minimax-llm-failed",
+              "call.in-progress.error-vapifault-minimax-400-bad-request-validation-failed",
+              "call.in-progress.error-vapifault-minimax-401-unauthorized",
+              "call.in-progress.error-vapifault-minimax-403-model-access-denied",
+              "call.in-progress.error-vapifault-minimax-429-exceeded-quota",
+              "call.in-progress.error-providerfault-minimax-500-server-error",
+              "call.in-progress.error-providerfault-minimax-503-server-overloaded-error",
               "pipeline-error-inflection-ai-400-bad-request-validation-failed",
               "pipeline-error-inflection-ai-401-unauthorized",
               "pipeline-error-inflection-ai-403-model-access-denied",
@@ -34561,7 +62033,7 @@
               "pipeline-error-anthropic-500-server-error",
               "pipeline-error-anthropic-503-server-overloaded-error",
               "pipeline-error-anthropic-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-llm-failed",
               "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-403-model-access-denied",
@@ -34575,7 +62047,7 @@
               "pipeline-error-anthropic-bedrock-500-server-error",
               "pipeline-error-anthropic-bedrock-503-server-overloaded-error",
               "pipeline-error-anthropic-bedrock-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-bedrock-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed",
               "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied",
@@ -34589,7 +62061,7 @@
               "pipeline-error-anthropic-vertex-500-server-error",
               "pipeline-error-anthropic-vertex-503-server-overloaded-error",
               "pipeline-error-anthropic-vertex-llm-failed",
-              "call.in-progress.error-vapifault-anthropic-vertex-llm-failed",
+              "call.in-progress.error-providerfault-anthropic-vertex-llm-failed",
               "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized",
               "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied",
@@ -34603,7 +62075,7 @@
               "pipeline-error-together-ai-500-server-error",
               "pipeline-error-together-ai-503-server-overloaded-error",
               "pipeline-error-together-ai-llm-failed",
-              "call.in-progress.error-vapifault-together-ai-llm-failed",
+              "call.in-progress.error-providerfault-together-ai-llm-failed",
               "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-together-ai-401-unauthorized",
               "call.in-progress.error-vapifault-together-ai-403-model-access-denied",
@@ -34617,7 +62089,7 @@
               "pipeline-error-anyscale-500-server-error",
               "pipeline-error-anyscale-503-server-overloaded-error",
               "pipeline-error-anyscale-llm-failed",
-              "call.in-progress.error-vapifault-anyscale-llm-failed",
+              "call.in-progress.error-providerfault-anyscale-llm-failed",
               "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-anyscale-401-unauthorized",
               "call.in-progress.error-vapifault-anyscale-403-model-access-denied",
@@ -34631,7 +62103,7 @@
               "pipeline-error-openrouter-500-server-error",
               "pipeline-error-openrouter-503-server-overloaded-error",
               "pipeline-error-openrouter-llm-failed",
-              "call.in-progress.error-vapifault-openrouter-llm-failed",
+              "call.in-progress.error-providerfault-openrouter-llm-failed",
               "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-openrouter-401-unauthorized",
               "call.in-progress.error-vapifault-openrouter-403-model-access-denied",
@@ -34645,7 +62117,7 @@
               "pipeline-error-perplexity-ai-500-server-error",
               "pipeline-error-perplexity-ai-503-server-overloaded-error",
               "pipeline-error-perplexity-ai-llm-failed",
-              "call.in-progress.error-vapifault-perplexity-ai-llm-failed",
+              "call.in-progress.error-providerfault-perplexity-ai-llm-failed",
               "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized",
               "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied",
@@ -34659,7 +62131,7 @@
               "pipeline-error-deepinfra-500-server-error",
               "pipeline-error-deepinfra-503-server-overloaded-error",
               "pipeline-error-deepinfra-llm-failed",
-              "call.in-progress.error-vapifault-deepinfra-llm-failed",
+              "call.in-progress.error-providerfault-deepinfra-llm-failed",
               "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-deepinfra-401-unauthorized",
               "call.in-progress.error-vapifault-deepinfra-403-model-access-denied",
@@ -34673,7 +62145,7 @@
               "pipeline-error-runpod-500-server-error",
               "pipeline-error-runpod-503-server-overloaded-error",
               "pipeline-error-runpod-llm-failed",
-              "call.in-progress.error-vapifault-runpod-llm-failed",
+              "call.in-progress.error-providerfault-runpod-llm-failed",
               "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-runpod-401-unauthorized",
               "call.in-progress.error-vapifault-runpod-403-model-access-denied",
@@ -34687,17 +62159,19 @@
               "pipeline-error-custom-llm-500-server-error",
               "pipeline-error-custom-llm-503-server-overloaded-error",
               "pipeline-error-custom-llm-llm-failed",
-              "call.in-progress.error-vapifault-custom-llm-llm-failed",
+              "call.in-progress.error-providerfault-custom-llm-llm-failed",
               "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed",
               "call.in-progress.error-vapifault-custom-llm-401-unauthorized",
               "call.in-progress.error-vapifault-custom-llm-403-model-access-denied",
               "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota",
               "call.in-progress.error-providerfault-custom-llm-500-server-error",
               "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error",
+              "call.in-progress.error-pipeline-ws-model-connection-failed",
               "pipeline-error-custom-voice-failed",
               "pipeline-error-cartesia-socket-hang-up",
               "pipeline-error-cartesia-requested-payment",
               "pipeline-error-cartesia-500-server-error",
+              "pipeline-error-cartesia-502-server-error",
               "pipeline-error-cartesia-503-server-error",
               "pipeline-error-cartesia-522-server-error",
               "call.in-progress.error-vapifault-cartesia-socket-hang-up",
@@ -34718,6 +62192,7 @@
               "pipeline-error-eleven-labs-invalid-api-key",
               "pipeline-error-eleven-labs-invalid-voice-samples",
               "pipeline-error-eleven-labs-voice-disabled-by-owner",
+              "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner",
               "pipeline-error-eleven-labs-blocked-account-in-probation",
               "pipeline-error-eleven-labs-blocked-content-against-their-policy",
               "pipeline-error-eleven-labs-missing-samples-for-voice-clone",
@@ -34726,6 +62201,7 @@
               "pipeline-error-eleven-labs-max-character-limit-exceeded",
               "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification",
               "pipeline-error-eleven-labs-500-server-error",
+              "pipeline-error-eleven-labs-503-server-error",
               "call.in-progress.error-vapifault-eleven-labs-voice-not-found",
               "call.in-progress.error-vapifault-eleven-labs-quota-exceeded",
               "call.in-progress.error-vapifault-eleven-labs-unauthorized-access",
@@ -34746,7 +62222,9 @@
               "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users",
               "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded",
               "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification",
+              "call.in-progress.error-providerfault-eleven-labs-system-busy-and-requested-upgrade",
               "call.in-progress.error-providerfault-eleven-labs-500-server-error",
+              "call.in-progress.error-providerfault-eleven-labs-503-server-error",
               "pipeline-error-playht-request-timed-out",
               "pipeline-error-playht-invalid-voice",
               "pipeline-error-playht-unexpected-error",
@@ -34782,6 +62260,7 @@
               "pipeline-error-deepgram-returning-500-invalid-json",
               "pipeline-error-deepgram-returning-502-network-error",
               "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach",
+              "pipeline-error-deepgram-returning-econnreset",
               "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination",
               "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials",
               "call.in-progress.error-vapifault-deepgram-returning-404-not-found",
@@ -34793,6 +62272,20 @@
               "call.in-progress.error-vapifault-google-transcriber-failed",
               "pipeline-error-openai-transcriber-failed",
               "call.in-progress.error-vapifault-openai-transcriber-failed",
+              "pipeline-error-soniox-transcriber-auth-failed",
+              "pipeline-error-soniox-transcriber-rate-limited",
+              "pipeline-error-soniox-transcriber-invalid-config",
+              "pipeline-error-soniox-transcriber-server-error",
+              "pipeline-error-soniox-transcriber-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-auth-failed",
+              "call.in-progress.error-vapifault-soniox-transcriber-rate-limited",
+              "call.in-progress.error-vapifault-soniox-transcriber-invalid-config",
+              "call.in-progress.error-vapifault-soniox-transcriber-server-error",
+              "call.in-progress.error-vapifault-soniox-transcriber-failed",
+              "call.in-progress.error-warm-transfer-max-duration",
+              "call.in-progress.error-warm-transfer-assistant-cancelled",
+              "call.in-progress.error-warm-transfer-silence-timeout",
+              "call.in-progress.error-warm-transfer-microphone-timeout",
               "assistant-ended-call",
               "assistant-said-end-call-phrase",
               "assistant-ended-call-with-hangup-task",
@@ -34800,8 +62293,12 @@
               "assistant-forwarded-call",
               "assistant-join-timed-out",
               "call.in-progress.error-assistant-did-not-receive-customer-audio",
+              "call.in-progress.error-transfer-failed",
               "customer-busy",
               "customer-ended-call",
+              "customer-ended-call-before-warm-transfer",
+              "customer-ended-call-after-warm-transfer-attempt",
+              "customer-ended-call-during-transfer",
               "customer-did-not-answer",
               "customer-did-not-give-microphone-permission",
               "exceeded-max-duration",
@@ -34809,66 +62306,933 @@
               "phone-call-provider-closed-websocket",
               "call.forwarding.operator-busy",
               "silence-timed-out",
-              "call.in-progress.error-sip-telephony-provider-failed-to-connect-call",
+              "call.in-progress.error-sip-inbound-call-failed-to-connect",
+              "call.in-progress.error-providerfault-outbound-sip-403-forbidden",
+              "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required",
+              "call.in-progress.error-providerfault-outbound-sip-408-request-timeout",
+              "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable",
+              "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable",
+              "call.in-progress.error-sip-outbound-call-failed-to-connect",
               "call.ringing.hook-executed-say",
               "call.ringing.hook-executed-transfer",
+              "call.ending.hook-executed-say",
+              "call.ending.hook-executed-transfer",
+              "call.ringing.sip-inbound-caller-hungup-before-call-connect",
+              "call.ringing.error-sip-inbound-call-failed-to-connect",
               "twilio-failed-to-connect-call",
               "twilio-reported-customer-misdialed",
               "vonage-rejected",
-              "voicemail"
+              "voicemail",
+              "call-deleted"
+            ]
+          },
+          "messages": {
+            "type": "array",
+            "description": "These are the conversation messages of the call. This is only sent if the status is \"forwarding\".",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/BotMessage",
+                  "title": "BotMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallMessage",
+                  "title": "ToolCallMessage"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolCallResultMessage",
+                  "title": "ToolCallResultMessage"
+                }
+              ]
+            }
+          },
+          "messagesOpenAIFormatted": {
+            "description": "These are the conversation messages of the call. This is only sent if the status is \"forwarding\".",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
+          "destination": {
+            "description": "This is the destination the call is being transferred to. This is only sent if the status is \"forwarding\".",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "NumberTransferDestination"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "SipTransferDestination"
+              }
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "transcript": {
+            "type": "string",
+            "description": "This is the transcript of the call. This is only sent if the status is \"forwarding\"."
+          },
+          "summary": {
+            "type": "string",
+            "description": "This is the summary of the call. This is only sent if the status is \"forwarding\"."
+          },
+          "inboundPhoneCallDebuggingArtifacts": {
+            "type": "object",
+            "description": "This is the inbound phone call debugging artifacts. This is only sent if the status is \"ended\" and there was an error accepting the inbound phone call.\n\nThis will include any errors related to the \"assistant-request\" if one was made."
+          }
+        },
+        "required": [
+          "type",
+          "status"
+        ]
+      },
+      "ServerMessageToolCalls": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"tool-calls\" is sent to call a tool.",
+            "enum": [
+              "tool-calls"
+            ]
+          },
+          "toolWithToolCallList": {
+            "type": "array",
+            "description": "This is the list of tools calls that the model is requesting along with the original tool configuration.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/FunctionToolWithToolCall",
+                  "title": "FunctionToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/GhlToolWithToolCall",
+                  "title": "GhlToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/MakeToolWithToolCall",
+                  "title": "MakeToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/BashToolWithToolCall",
+                  "title": "BashToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/ComputerToolWithToolCall",
+                  "title": "ComputerToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/TextEditorToolWithToolCall",
+                  "title": "TextEditorToolWithToolCall"
+                },
+                {
+                  "$ref": "#/components/schemas/GoogleCalendarCreateEventToolWithToolCall",
+                  "title": "GoogleCalendarCreateEventToolWithToolCall"
+                }
+              ]
+            }
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "toolCallList": {
+            "description": "This is the list of tool calls that the model is requesting.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolCall"
+            }
+          }
+        },
+        "required": [
+          "toolWithToolCallList",
+          "toolCallList"
+        ]
+      },
+      "ServerMessageTransferDestinationRequest": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"transfer-destination-request\" is sent when the model is requesting transfer but destination is unknown.",
+            "enum": [
+              "transfer-destination-request"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "ServerMessageTransferUpdate": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
             ]
           },
-          "messages": {
-            "type": "array",
-            "description": "These are the conversation messages of the call. This is only sent if the status is \"forwarding\".",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/UserMessage",
-                  "title": "UserMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/SystemMessage",
-                  "title": "SystemMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/BotMessage",
-                  "title": "BotMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolCallMessage",
-                  "title": "ToolCallMessage"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolCallResultMessage",
-                  "title": "ToolCallResultMessage"
-                }
-              ]
-            }
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"transfer-update\" is sent whenever a transfer happens.",
+            "enum": [
+              "transfer-update"
+            ]
           },
-          "messagesOpenAIFormatted": {
-            "description": "These are the conversation messages of the call. This is only sent if the status is \"forwarding\".",
+          "destination": {
+            "description": "This is the destination of the transfer.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/TransferDestinationAssistant",
+                "title": "Assistant"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationNumber",
+                "title": "Number"
+              },
+              {
+                "$ref": "#/components/schemas/TransferDestinationSip",
+                "title": "Sip"
+              }
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "toAssistant": {
+            "description": "This is the assistant that the call is being transferred to. This is only sent if `destination.type` is \"assistant\".",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "fromAssistant": {
+            "description": "This is the assistant that the call is being transferred from. This is only sent if `destination.type` is \"assistant\".",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "toStepRecord": {
+            "type": "object",
+            "description": "This is the step that the conversation moved to."
+          },
+          "fromStepRecord": {
+            "type": "object",
+            "description": "This is the step that the conversation moved from. ="
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "ServerMessageTranscript": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"transcript\" is sent as transcriber outputs partial or final transcript.",
+            "enum": [
+              "transcript",
+              "transcript[transcriptType=\"final\"]"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "role": {
+            "type": "string",
+            "description": "This is the role for which the transcript is for.",
+            "enum": [
+              "assistant",
+              "user"
+            ]
+          },
+          "transcriptType": {
+            "type": "string",
+            "description": "This is the type of the transcript.",
+            "enum": [
+              "partial",
+              "final"
+            ]
+          },
+          "transcript": {
+            "type": "string",
+            "description": "This is the transcript content."
+          },
+          "isFiltered": {
+            "type": "boolean",
+            "description": "Indicates if the transcript was filtered for security reasons."
+          },
+          "detectedThreats": {
+            "description": "List of detected security threats if the transcript was filtered.",
             "type": "array",
             "items": {
-              "$ref": "#/components/schemas/OpenAIMessage"
+              "type": "string"
             }
           },
-          "destination": {
-            "description": "This is the destination the call is being transferred to. This is only sent if the status is \"forwarding\".",
+          "originalTranscript": {
+            "type": "string",
+            "description": "The original transcript before filtering (only included if content was filtered)."
+          }
+        },
+        "required": [
+          "type",
+          "role",
+          "transcriptType",
+          "transcript"
+        ]
+      },
+      "ServerMessageUserInterrupted": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "NumberTransferDestination"
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
               },
               {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "SipTransferDestination"
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"user-interrupted\" is sent when the user interrupts the assistant.",
+            "enum": [
+              "user-interrupted"
+            ]
+          },
+          "turnId": {
+            "type": "string",
+            "description": "This is the turnId of the LLM response that was interrupted. Matches the turnId\non model-output messages so clients can discard the interrupted turn's tokens."
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type"
+        ]
+      },
+      "ServerMessageLanguageChangeDetected": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"language-change-detected\" is sent when the transcriber is automatically switched based on the detected language.",
+            "enum": [
+              "language-change-detected"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "language": {
+            "type": "string",
+            "description": "This is the language the transcriber is switched to."
+          }
+        },
+        "required": [
+          "type",
+          "language"
+        ]
+      },
+      "ServerMessageVoiceInput": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"voice-input\" is sent when a generation is requested from voice provider.",
+            "enum": [
+              "voice-input"
+            ]
+          },
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
               }
             ]
           },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "input": {
+            "type": "string",
+            "description": "This is the voice input content"
+          }
+        },
+        "required": [
+          "type",
+          "input"
+        ]
+      },
+      "ServerMessageAssistantSpeech": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. \"assistant-speech\" is sent as assistant audio is being played.",
+            "enum": [
+              "assistant.speechStarted"
+            ]
+          },
+          "text": {
+            "type": "string",
+            "description": "The full assistant text for the current turn. This is the complete text,\nnot an incremental delta — consumers should use `timing` metadata (e.g.\n`wordsSpoken`) to determine which portion has been spoken so far."
+          },
+          "turn": {
+            "type": "number",
+            "description": "This is the turn number of the assistant speech event (0-indexed)."
+          },
+          "source": {
+            "type": "string",
+            "description": "Indicates how the text was sourced.",
+            "enum": [
+              "model",
+              "force-say",
+              "custom-voice"
+            ]
+          },
+          "timing": {
+            "description": "Optional timing metadata. Shape depends on `timing.type`:\n\n- `word-alignment` (ElevenLabs): per-character timing at playback\n  cadence. words[] includes space entries. Best consumed by tracking\n  a running character count: join timing.words, add to a char cursor,\n  and highlight text up to that position. No interpolation needed.\n\n- `word-progress` (Minimax with voice.subtitleType: 'word'): cursor-\n  based word count per TTS segment. Use wordsSpoken as the anchor,\n  interpolate forward using segmentDurationMs or timing.words until\n  the next event arrives.\n\nWhen absent, the event is a text-only fallback for providers without\nword-level timing (e.g. Cartesia, Deepgram, Azure). Text emits once\nper TTS chunk when audio is playing. Optionally interpolate a word\ncursor at ~3.5 words/sec between events for approximate tracking.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/AssistantSpeechWordAlignmentTiming",
+                "title": "WordAlignmentTiming"
+              },
+              {
+                "$ref": "#/components/schemas/AssistantSpeechWordProgressTiming",
+                "title": "WordProgressTiming"
+              }
+            ],
+            "discriminator": {
+              "propertyName": "type"
+            }
+          },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -34879,7 +63243,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -34887,7 +63251,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -34895,36 +63259,126 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
-          "transcript": {
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "text"
+        ]
+      },
+      "ServerMessageVoiceRequest": {
+        "type": "object",
+        "properties": {
+          "phoneNumber": {
+            "description": "This is the phone number that the message is associated with.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
+                "title": "ByoPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTwilioPhoneNumberDTO",
+                "title": "TwilioPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVonagePhoneNumberDTO",
+                "title": "VonagePhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
+                "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
+              }
+            ]
+          },
+          "type": {
             "type": "string",
-            "description": "This is the transcript of the call. This is only sent if the status is \"forwarding\"."
+            "description": "This is the type of the message. \"voice-request\" is sent when using `assistant.voice={ \"type\": \"custom-voice\" }`.\n\nHere is what the request will look like:\n\nPOST https://{assistant.voice.server.url}\nContent-Type: application/json\n\n{\n  \"messsage\": {\n    \"type\": \"voice-request\",\n    \"text\": \"Hello, world!\",\n    \"sampleRate\": 24000,\n    ...other metadata about the call...\n  }\n}\n\nThe expected response is 1-channel 16-bit raw PCM audio at the sample rate specified in the request. Here is how the response will be piped to the transport:\n```\nresponse.on('data', (chunk: Buffer) => {\n  outputStream.write(chunk);\n});\n```",
+            "enum": [
+              "voice-request"
+            ]
           },
-          "summary": {
+          "timestamp": {
+            "type": "number",
+            "description": "This is the timestamp of the message."
+          },
+          "artifact": {
+            "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Artifact"
+              }
+            ]
+          },
+          "assistant": {
+            "description": "This is the assistant that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateAssistantDTO"
+              }
+            ]
+          },
+          "customer": {
+            "description": "This is the customer that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateCustomerDTO"
+              }
+            ]
+          },
+          "call": {
+            "description": "This is the call that the message is associated with.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Call"
+              }
+            ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "text": {
             "type": "string",
-            "description": "This is the summary of the call. This is only sent if the status is \"forwarding\"."
+            "description": "This is the text to be synthesized."
           },
-          "inboundPhoneCallDebuggingArtifacts": {
-            "type": "object",
-            "description": "This is the inbound phone call debugging artifacts. This is only sent if the status is \"ended\" and there was an error accepting the inbound phone call.\n\nThis will include any errors related to the \"assistant-request\" if one was made."
+          "sampleRate": {
+            "type": "number",
+            "description": "This is the sample rate to be synthesized."
           }
         },
         "required": [
           "type",
-          "status"
+          "text",
+          "sampleRate"
         ]
       },
-      "ServerMessageToolCalls": {
+      "ServerMessageCallEndpointingRequest": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -34941,55 +63395,58 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"tool-calls\" is sent to call a tool.",
+            "description": "This is the type of the message. \"call.endpointing.request\" is sent when using `assistant.startSpeakingPlan.smartEndpointingPlan={ \"provider\": \"custom-endpointing-model\" }`.\n\nHere is what the request will look like:\n\nPOST https://{assistant.startSpeakingPlan.smartEndpointingPlan.server.url}\nContent-Type: application/json\n\n{\n  \"message\": {\n    \"type\": \"call.endpointing.request\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"message\": \"Hello, how are you?\",\n        \"time\": 1234567890,\n        \"secondsFromStart\": 0\n      }\n    ],\n    ...other metadata about the call...\n  }\n}\n\nThe expected response:\n{\n  \"timeoutSeconds\": 0.5\n}",
             "enum": [
-              "tool-calls"
+              "call.endpointing.request"
             ]
           },
-          "toolWithToolCallList": {
+          "messages": {
             "type": "array",
-            "description": "This is the list of tools calls that the model is requesting along with the original tool configuration.",
+            "description": "This is the conversation history at the time of the endpointing request.",
             "items": {
               "oneOf": [
                 {
-                  "$ref": "#/components/schemas/FunctionToolWithToolCall",
-                  "title": "FunctionToolWithToolCall"
-                },
-                {
-                  "$ref": "#/components/schemas/GhlToolWithToolCall",
-                  "title": "GhlToolWithToolCall"
-                },
-                {
-                  "$ref": "#/components/schemas/MakeToolWithToolCall",
-                  "title": "MakeToolWithToolCall"
+                  "$ref": "#/components/schemas/UserMessage",
+                  "title": "UserMessage"
                 },
                 {
-                  "$ref": "#/components/schemas/BashToolWithToolCall",
-                  "title": "BashToolWithToolCall"
+                  "$ref": "#/components/schemas/SystemMessage",
+                  "title": "SystemMessage"
                 },
                 {
-                  "$ref": "#/components/schemas/ComputerToolWithToolCall",
-                  "title": "ComputerToolWithToolCall"
+                  "$ref": "#/components/schemas/BotMessage",
+                  "title": "BotMessage"
                 },
                 {
-                  "$ref": "#/components/schemas/TextEditorToolWithToolCall",
-                  "title": "TextEditorToolWithToolCall"
+                  "$ref": "#/components/schemas/ToolCallMessage",
+                  "title": "ToolCallMessage"
                 },
                 {
-                  "$ref": "#/components/schemas/GoogleCalendarCreateEventToolWithToolCall",
-                  "title": "GoogleCalendarCreateEventToolWithToolCall"
+                  "$ref": "#/components/schemas/ToolCallResultMessage",
+                  "title": "ToolCallResultMessage"
                 }
               ]
             }
           },
+          "messagesOpenAIFormatted": {
+            "description": "This is just `messages` formatted for OpenAI.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/OpenAIMessage"
+            }
+          },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -35000,7 +63457,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35008,7 +63465,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -35016,31 +63473,32 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
-          "toolCallList": {
-            "description": "This is the list of tool calls that the model is requesting.",
-            "type": "array",
-            "items": {
-              "$ref": "#/components/schemas/ToolCall"
-            }
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
-          "toolWithToolCallList",
-          "toolCallList"
+          "type",
+          "messagesOpenAIFormatted"
         ]
       },
-      "ServerMessageTransferDestinationRequest": {
+      "ServerMessageChatCreated": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -35057,19 +63515,23 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"transfer-destination-request\" is sent when the model is requesting transfer but destination is unknown.",
+            "description": "This is the type of the message. \"chat.created\" is sent when a new chat is created.",
             "enum": [
-              "transfer-destination-request"
+              "chat.created"
             ]
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -35080,7 +63542,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35088,7 +63550,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -35096,23 +63558,32 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
+          },
+          "chat": {
+            "description": "This is the chat that was created.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
-          "type"
+          "type",
+          "chat"
         ]
       },
-      "ServerMessageTransferUpdate": {
+      "ServerMessageChatDeleted": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -35129,40 +63600,23 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"transfer-update\" is sent whenever a transfer happens.",
+            "description": "This is the type of the message. \"chat.deleted\" is sent when a chat is deleted.",
             "enum": [
-              "transfer-update"
-            ]
-          },
-          "destination": {
-            "description": "This is the destination of the transfer.",
-            "oneOf": [
-              {
-                "$ref": "#/components/schemas/TransferDestinationAssistant",
-                "title": "Assistant"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationStep",
-                "title": "Step"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationNumber",
-                "title": "Number"
-              },
-              {
-                "$ref": "#/components/schemas/TransferDestinationSip",
-                "title": "Sip"
-              }
+              "chat.deleted"
             ]
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -35173,7 +63627,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35181,7 +63635,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -35189,47 +63643,32 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
-          "toAssistant": {
-            "description": "This is the assistant that the call is being transferred to. This is only sent if `destination.type` is \"assistant\".",
+          "chat": {
+            "description": "This is the chat that was deleted.",
             "allOf": [
               {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
+                "$ref": "#/components/schemas/Chat"
               }
             ]
-          },
-          "fromAssistant": {
-            "description": "This is the assistant that the call is being transferred from. This is only sent if `destination.type` is \"assistant\".",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/CreateAssistantDTO"
-              }
-            ]
-          },
-          "toStepRecord": {
-            "type": "object",
-            "description": "This is the step that the conversation moved to."
-          },
-          "fromStepRecord": {
-            "type": "object",
-            "description": "This is the step that the conversation moved from. ="
           }
         },
         "required": [
-          "type"
+          "type",
+          "chat"
         ]
       },
-      "ServerMessageTranscript": {
+      "ServerMessageSessionCreated": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -35246,20 +63685,23 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"transcript\" is sent as transcriber outputs partial or final transcript.",
+            "description": "This is the type of the message. \"session.created\" is sent when a new session is created.",
             "enum": [
-              "transcript",
-              "transcript[transcriptType=\"final\"]"
+              "session.created"
             ]
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -35270,7 +63712,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35278,7 +63720,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -35286,46 +63728,40 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
-          "role": {
-            "type": "string",
-            "description": "This is the role for which the transcript is for.",
-            "enum": [
-              "assistant",
-              "user"
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
             ]
           },
-          "transcriptType": {
-            "type": "string",
-            "description": "This is the type of the transcript.",
-            "enum": [
-              "partial",
-              "final"
+          "session": {
+            "description": "This is the session that was created.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Session"
+              }
             ]
-          },
-          "transcript": {
-            "type": "string",
-            "description": "This is the transcript content."
           }
         },
         "required": [
           "type",
-          "role",
-          "transcriptType",
-          "transcript"
+          "session"
         ]
       },
-      "ServerMessageUserInterrupted": {
+      "ServerMessageSessionUpdated": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -35342,19 +63778,23 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"user-interrupted\" is sent when the user interrupts the assistant.",
+            "description": "This is the type of the message. \"session.updated\" is sent when a session is updated.",
             "enum": [
-              "user-interrupted"
+              "session.updated"
             ]
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -35365,7 +63805,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35373,7 +63813,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -35381,23 +63821,40 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
+          },
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "session": {
+            "description": "This is the session that was updated.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Session"
+              }
+            ]
           }
         },
         "required": [
-          "type"
+          "type",
+          "session"
         ]
       },
-      "ServerMessageLanguageChangeDetected": {
+      "ServerMessageSessionDeleted": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -35414,19 +63871,23 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"language-change-detected\" is sent when the transcriber is automatically switched based on the detected language.",
+            "description": "This is the type of the message. \"session.deleted\" is sent when a session is deleted.",
             "enum": [
-              "language-change-detected"
+              "session.deleted"
             ]
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -35437,7 +63898,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35445,7 +63906,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -35453,28 +63914,40 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
-          "language": {
-            "type": "string",
-            "description": "This is the language the transcriber is switched to."
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
+          },
+          "session": {
+            "description": "This is the session that was deleted.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Session"
+              }
+            ]
           }
         },
         "required": [
           "type",
-          "language"
+          "session"
         ]
       },
-      "ServerMessageVoiceInput": {
+      "ServerMessageCallDeleted": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -35491,19 +63964,23 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"voice-input\" is sent when a generation is requested from voice provider.",
+            "description": "This is the type of the message. \"call.deleted\" is sent when a call is deleted.",
             "enum": [
-              "voice-input"
+              "call.deleted"
             ]
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -35514,7 +63991,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35522,7 +63999,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -35530,28 +64007,31 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
-          "input": {
-            "type": "string",
-            "description": "This is the voice input content"
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
-          "type",
-          "input"
+          "type"
         ]
       },
-      "ServerMessageVoiceRequest": {
+      "ServerMessageCallDeleteFailed": {
         "type": "object",
         "properties": {
           "phoneNumber": {
-            "description": "This is the phone number associated with the call.\n\nThis matches one of the following:\n- `call.phoneNumber`,\n- `call.phoneNumberId`.",
+            "description": "This is the phone number that the message is associated with.",
             "oneOf": [
               {
                 "$ref": "#/components/schemas/CreateByoPhoneNumberDTO",
@@ -35568,19 +64048,23 @@
               {
                 "$ref": "#/components/schemas/CreateVapiPhoneNumberDTO",
                 "title": "VapiPhoneNumber"
+              },
+              {
+                "$ref": "#/components/schemas/CreateTelnyxPhoneNumberDTO",
+                "title": "TelnyxPhoneNumber"
               }
             ]
           },
           "type": {
             "type": "string",
-            "description": "This is the type of the message. \"voice-request\" is sent when using `assistant.voice={ \"type\": \"custom-voice\" }`.\n\nHere is what the request will look like:\n\nPOST https://{assistant.voice.server.url}\nContent-Type: application/json\n\n{\n  \"messsage\": {\n    \"type\": \"voice-request\",\n    \"text\": \"Hello, world!\",\n    \"sampleRate\": 24000,\n    ...other metadata about the call...\n  }\n}\n\nThe expected response is 1-channel 16-bit raw PCM audio at the sample rate specified in the request. Here is how the response will be piped to the transport:\n```\nresponse.on('data', (chunk: Buffer) => {\n  outputStream.write(chunk);\n});\n```",
+            "description": "This is the type of the message. \"call.deleted\" is sent when a call is deleted.",
             "enum": [
-              "voice-request"
+              "call.delete.failed"
             ]
           },
           "timestamp": {
             "type": "number",
-            "description": "This is the timestamp of when the message was sent in milliseconds since Unix Epoch."
+            "description": "This is the timestamp of the message."
           },
           "artifact": {
             "description": "This is a live version of the `call.artifact`.\n\nThis matches what is stored on `call.artifact` after the call.",
@@ -35591,7 +64075,7 @@
             ]
           },
           "assistant": {
-            "description": "This is the assistant that is currently active. This is provided for convenience.\n\nThis matches one of the following:\n- `call.assistant`,\n- `call.assistantId`,\n- `call.squad[n].assistant`,\n- `call.squad[n].assistantId`,\n- `call.squadId->[n].assistant`,\n- `call.squadId->[n].assistantId`.",
+            "description": "This is the assistant that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35599,7 +64083,7 @@
             ]
           },
           "customer": {
-            "description": "This is the customer associated with the call.\n\nThis matches one of the following:\n- `call.customer`,\n- `call.customerId`.",
+            "description": "This is the customer that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateCustomerDTO"
@@ -35607,26 +64091,24 @@
             ]
           },
           "call": {
-            "description": "This is the call object.\n\nThis matches what was returned in POST /call.\n\nNote: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.",
+            "description": "This is the call that the message is associated with.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/Call"
               }
             ]
           },
-          "text": {
-            "type": "string",
-            "description": "This is the text to be synthesized."
-          },
-          "sampleRate": {
-            "type": "number",
-            "description": "This is the sample rate to be synthesized."
+          "chat": {
+            "description": "This is the chat object.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Chat"
+              }
+            ]
           }
         },
         "required": [
-          "type",
-          "text",
-          "sampleRate"
+          "type"
         ]
       },
       "ServerMessage": {
@@ -35647,6 +64129,10 @@
                 "$ref": "#/components/schemas/ServerMessageEndOfCallReport",
                 "title": "EndOfCallReport"
               },
+              {
+                "$ref": "#/components/schemas/ServerMessageHandoffDestinationRequest",
+                "title": "HandoffDestinationRequest"
+              },
               {
                 "$ref": "#/components/schemas/ServerMessageHang",
                 "title": "Hang"
@@ -35699,9 +64185,45 @@
                 "$ref": "#/components/schemas/ServerMessageVoiceInput",
                 "title": "VoiceInput"
               },
+              {
+                "$ref": "#/components/schemas/ServerMessageAssistantSpeech",
+                "title": "AssistantSpeech"
+              },
               {
                 "$ref": "#/components/schemas/ServerMessageVoiceRequest",
                 "title": "VoiceRequest"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageCallEndpointingRequest",
+                "title": "CallEndpointingRequest"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageChatCreated",
+                "title": "ChatCreated"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageChatDeleted",
+                "title": "ChatDeleted"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageSessionCreated",
+                "title": "SessionCreated"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageSessionUpdated",
+                "title": "SessionUpdated"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageSessionDeleted",
+                "title": "SessionDeleted"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageCallDeleted",
+                "title": "CallDeleted"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageCallDeleteFailed",
+                "title": "CallDeleteFailed"
               }
             ]
           }
@@ -35728,11 +64250,10 @@
           },
           "assistantId": {
             "type": "string",
-            "nullable": true,
-            "description": "This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead."
+            "description": "This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`"
           },
           "assistant": {
-            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.\n\nIf you're unsure why you're getting an invalid assistant, try logging your response and send the JSON blob to POST /assistant which will return the validation errors.",
+            "description": "This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.\n\nTo start a call with:\n- Assistant, use `assistant`\n- Squad, use `squad`\n- Workflow, use `workflow`",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateAssistantDTO"
@@ -35749,22 +64270,70 @@
           },
           "squadId": {
             "type": "string",
-            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead."
+            "description": "This is the squad that will be used for the call. To use a transient squad, use `squad` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
           },
           "squad": {
-            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.",
+            "description": "This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
             "allOf": [
               {
                 "$ref": "#/components/schemas/CreateSquadDTO"
               }
             ]
           },
+          "squadOverrides": {
+            "description": "These are the overrides for the `squad` or `squadId`'s member settings and template variables.\nThis will apply to all members of the squad.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/AssistantOverrides"
+              }
+            ]
+          },
+          "workflowId": {
+            "type": "string",
+            "description": "This is the workflow that will be used for the call. To use a transient workflow, use `workflow` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`"
+          },
+          "workflow": {
+            "description": "This is a workflow that will be used for the call. To use an existing workflow, use `workflowId` instead.\n\nTo start a call with:\n- Assistant, use `assistant` or `assistantId`\n- Squad, use `squad` or `squadId`\n- Workflow, use `workflow` or `workflowId`",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/CreateWorkflowDTO"
+              }
+            ]
+          },
+          "workflowOverrides": {
+            "description": "These are the overrides for the `workflow` or `workflowId`'s settings and template variables.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/WorkflowOverrides"
+              }
+            ]
+          },
           "error": {
             "type": "string",
             "description": "This is the error if the call shouldn't be accepted. This is spoken to the customer.\n\nIf this is sent, `assistantId`, `assistant`, `squadId`, `squad`, and `destination` are ignored."
           }
         }
       },
+      "ServerMessageResponseHandoffDestinationRequest": {
+        "type": "object",
+        "properties": {
+          "result": {
+            "type": "string",
+            "description": "This is the local tool result message returned for the handoff tool call."
+          },
+          "destination": {
+            "type": "object",
+            "description": "This is the destination you'd like the call to be transferred to."
+          },
+          "error": {
+            "type": "string",
+            "description": "This is the error message if the handoff should not be made."
+          }
+        },
+        "required": [
+          "destination"
+        ]
+      },
       "KnowledgeBaseResponseDocument": {
         "type": "object",
         "properties": {
@@ -35810,20 +64379,17 @@
         "type": "object",
         "properties": {
           "message": {
-            "type": "array",
             "description": "This is the message that will be spoken to the user.\n\nIf this is not returned, assistant will speak:\n1. a `request-complete` or `request-failed` message from `tool.messages`, if it exists\n2. a response generated by the model, if not",
-            "items": {
-              "oneOf": [
-                {
-                  "$ref": "#/components/schemas/ToolMessageComplete",
-                  "title": "ToolMessageComplete"
-                },
-                {
-                  "$ref": "#/components/schemas/ToolMessageFailed",
-                  "title": "ToolMessageFailed"
-                }
-              ]
-            }
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/ToolMessageComplete",
+                "title": "ToolMessageComplete"
+              },
+              {
+                "$ref": "#/components/schemas/ToolMessageFailed",
+                "title": "ToolMessageFailed"
+              }
+            ]
           },
           "name": {
             "type": "string",
@@ -35840,6 +64406,10 @@
           "error": {
             "type": "string",
             "description": "This is the error if the tool call was not successful. This is added to the conversation history.\n\nFurther, if this is returned, assistant will speak:\n1. the `message`, if it exists and is of type `request-failed`\n2. a `request-failed` message from `tool.messages`, if it exists\n3. a response generated by the model, if neither exist"
+          },
+          "metadata": {
+            "type": "object",
+            "description": "This is optional metadata for the tool call result to be sent to the client."
           }
         },
         "required": [
@@ -35873,10 +64443,6 @@
                 "$ref": "#/components/schemas/TransferDestinationAssistant",
                 "title": "Assistant"
               },
-              {
-                "$ref": "#/components/schemas/TransferDestinationStep",
-                "title": "Step"
-              },
               {
                 "$ref": "#/components/schemas/TransferDestinationNumber",
                 "title": "Number"
@@ -35887,6 +64453,27 @@
               }
             ]
           },
+          "message": {
+            "description": "This is the message that will be spoken to the user as the tool is running.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/ToolMessageStart",
+                "title": "ToolMessageStart"
+              },
+              {
+                "$ref": "#/components/schemas/ToolMessageComplete",
+                "title": "ToolMessageComplete"
+              },
+              {
+                "$ref": "#/components/schemas/ToolMessageFailed",
+                "title": "ToolMessageFailed"
+              },
+              {
+                "$ref": "#/components/schemas/ToolMessageDelayed",
+                "title": "ToolMessageDelayed"
+              }
+            ]
+          },
           "error": {
             "type": "string",
             "description": "This is the error message if the transfer should not be made."
@@ -35905,6 +64492,20 @@
           "data"
         ]
       },
+      "ServerMessageResponseCallEndpointingRequest": {
+        "type": "object",
+        "properties": {
+          "timeoutSeconds": {
+            "type": "number",
+            "description": "This is the timeout in seconds to wait before considering the user's speech as finished.",
+            "minimum": 0,
+            "maximum": 15
+          }
+        },
+        "required": [
+          "timeoutSeconds"
+        ]
+      },
       "ServerMessageResponse": {
         "type": "object",
         "properties": {
@@ -35915,6 +64516,10 @@
                 "$ref": "#/components/schemas/ServerMessageResponseAssistantRequest",
                 "title": "AssistantRequest"
               },
+              {
+                "$ref": "#/components/schemas/ServerMessageResponseHandoffDestinationRequest",
+                "title": "HandoffDestinationRequest"
+              },
               {
                 "$ref": "#/components/schemas/ServerMessageResponseKnowledgeBaseRequest",
                 "title": "KnowledgeBaseRequest"
@@ -35930,6 +64535,10 @@
               {
                 "$ref": "#/components/schemas/ServerMessageResponseVoiceRequest",
                 "title": "VoiceRequest"
+              },
+              {
+                "$ref": "#/components/schemas/ServerMessageResponseCallEndpointingRequest",
+                "title": "CallEndpointingRequest"
               }
             ]
           }
@@ -35972,7 +64581,7 @@
         "properties": {
           "type": {
             "type": "string",
-            "description": "This is the type of the message. Send \"control\" message to control the assistant. `control` options are:\n- \"mute-assistant\" - mute the assistant\n- \"unmute-assistant\" - unmute the assistant\n- \"say-first-message\" - say the first message (this is used when video recording is enabled and the conversation is only started once the client side kicks off the recording)",
+            "description": "This is the type of the message. Send \"control\" message to control the assistant. `control` options are:\n- \"mute-assistant\" - mute the assistant\n- \"unmute-assistant\" - unmute the assistant\n- \"mute-customer\" - mute the user\n- \"unmute-customer\" - unmute the user\n- \"say-first-message\" - say the first message (this is used when video recording is enabled and the conversation is only started once the client side kicks off the recording)",
             "enum": [
               "control"
             ]
@@ -35983,6 +64592,8 @@
             "enum": [
               "mute-assistant",
               "unmute-assistant",
+              "mute-customer",
+              "unmute-customer",
               "say-first-message"
             ]
           }
@@ -36002,6 +64613,11 @@
               "say"
             ]
           },
+          "interruptAssistantEnabled": {
+            "type": "boolean",
+            "description": "This is the flag for whether the message should replace existing assistant speech.\n\n@default false",
+            "default": false
+          },
           "content": {
             "type": "string",
             "description": "This is the content to say."
@@ -36012,7 +64628,7 @@
           },
           "interruptionsEnabled": {
             "type": "boolean",
-            "description": "This is the flag for whether the message is interruptible."
+            "description": "This is the flag for whether the message is interruptible by the user."
           }
         }
       },
@@ -36063,6 +64679,35 @@
           "type"
         ]
       },
+      "ClientInboundMessageSendTransportMessage": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of the message. Send \"send-transport-message\" to send a transport-specific message during the call.",
+            "enum": [
+              "send-transport-message"
+            ]
+          },
+          "message": {
+            "description": "This is the transport-specific message to send.",
+            "oneOf": [
+              {
+                "$ref": "#/components/schemas/VapiSipTransportMessage",
+                "title": "VapiSipTransportMessage"
+              },
+              {
+                "$ref": "#/components/schemas/TwilioTransportMessage",
+                "title": "TwilioTransportMessage"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "message"
+        ]
+      },
       "ClientInboundMessage": {
         "type": "object",
         "properties": {
@@ -36088,6 +64733,10 @@
               {
                 "$ref": "#/components/schemas/ClientInboundMessageTransfer",
                 "title": "Transfer"
+              },
+              {
+                "$ref": "#/components/schemas/ClientInboundMessageSendTransportMessage",
+                "title": "SendTransportMessage"
               }
             ]
           }
@@ -36096,69 +64745,6 @@
           "message"
         ]
       },
-      "UserMessage": {
-        "type": "object",
-        "properties": {
-          "role": {
-            "type": "string",
-            "description": "The role of the user in the conversation."
-          },
-          "message": {
-            "type": "string",
-            "description": "The message content from the user."
-          },
-          "time": {
-            "type": "number",
-            "description": "The timestamp when the message was sent."
-          },
-          "endTime": {
-            "type": "number",
-            "description": "The timestamp when the message ended."
-          },
-          "secondsFromStart": {
-            "type": "number",
-            "description": "The number of seconds from the start of the conversation."
-          },
-          "duration": {
-            "type": "number",
-            "description": "The duration of the message in seconds."
-          }
-        },
-        "required": [
-          "role",
-          "message",
-          "time",
-          "endTime",
-          "secondsFromStart"
-        ]
-      },
-      "SystemMessage": {
-        "type": "object",
-        "properties": {
-          "role": {
-            "type": "string",
-            "description": "The role of the system in the conversation."
-          },
-          "message": {
-            "type": "string",
-            "description": "The message content from the system."
-          },
-          "time": {
-            "type": "number",
-            "description": "The timestamp when the message was sent."
-          },
-          "secondsFromStart": {
-            "type": "number",
-            "description": "The number of seconds from the start of the conversation."
-          }
-        },
-        "required": [
-          "role",
-          "message",
-          "time",
-          "secondsFromStart"
-        ]
-      },
       "BotMessage": {
         "type": "object",
         "properties": {
@@ -36234,6 +64820,31 @@
           "secondsFromStart"
         ]
       },
+      "ToolCallResultMessageWarning": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "The kind of warning. Currently:\n- `oversized-tool-response`: the tool's serialized response exceeded the\n  recommended size and is likely to bloat the model context, increasing\n  latency and risking truncation of earlier instructions.",
+            "enum": [
+              "oversized-tool-response"
+            ]
+          },
+          "tokenCount": {
+            "type": "number",
+            "description": "The estimated number of tokens in the serialized tool response."
+          },
+          "threshold": {
+            "type": "number",
+            "description": "The threshold (in tokens) above which the warning is raised."
+          }
+        },
+        "required": [
+          "type",
+          "tokenCount",
+          "threshold"
+        ]
+      },
       "ToolCallResultMessage": {
         "type": "object",
         "properties": {
@@ -36260,6 +64871,17 @@
           "secondsFromStart": {
             "type": "number",
             "description": "The number of seconds from the start of the conversation."
+          },
+          "metadata": {
+            "type": "object",
+            "description": "The metadata for the tool call result."
+          },
+          "warnings": {
+            "description": "Warnings raised for this tool call result, e.g. when the response is\nlarger than recommended for voice AI context windows.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolCallResultMessageWarning"
+            }
           }
         },
         "required": [
@@ -36284,9 +64906,12 @@
           "provider": {
             "type": "string",
             "enum": [
+              "daily",
+              "vapi.websocket",
               "twilio",
               "vonage",
-              "vapi"
+              "telnyx",
+              "vapi.sip"
             ]
           },
           "minutes": {
@@ -36356,6 +64981,10 @@
             "type": "number",
             "description": "This is the number of completion tokens generated in the call. These should be total completion tokens used in the call for single assistant calls, while squad calls will have multiple model costs one for each assistant that was used."
           },
+          "cachedPromptTokens": {
+            "type": "number",
+            "description": "This is the number of cached prompt tokens used in the call. This is only applicable to certain providers (e.g., OpenAI, Azure OpenAI) that support prompt caching. Cached tokens are billed at a discounted rate."
+          },
           "cost": {
             "type": "number",
             "description": "This is the cost of the component in USD."
@@ -36449,7 +65078,8 @@
             "enum": [
               "summary",
               "structuredData",
-              "successEvaluation"
+              "successEvaluation",
+              "structuredOutput"
             ]
           },
           "model": {
@@ -36464,6 +65094,10 @@
             "type": "number",
             "description": "This is the number of completion tokens generated in the analysis."
           },
+          "cachedPromptTokens": {
+            "type": "number",
+            "description": "This is the number of cached prompt tokens used in the analysis. This is only applicable to certain providers (e.g., OpenAI, Azure OpenAI) that support prompt caching. Cached tokens are billed at a discounted rate."
+          },
           "cost": {
             "type": "number",
             "description": "This is the cost of the component in USD."
@@ -36498,7 +65132,8 @@
             "enum": [
               "twilio",
               "google",
-              "openai"
+              "openai",
+              "vapi"
             ]
           },
           "promptTextTokens": {
@@ -36533,14 +65168,84 @@
           "cost"
         ]
       },
-      "FunctionToolWithToolCall": {
+      "KnowledgeBaseCost": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "type": {
+            "type": "string",
+            "description": "This is the type of cost, always 'knowledge-base' for this class.",
+            "enum": [
+              "knowledge-base"
+            ]
+          },
+          "model": {
+            "type": "object",
+            "description": "This is the model that was used for processing the knowledge base."
+          },
+          "promptTokens": {
+            "type": "number",
+            "description": "This is the number of prompt tokens used in the knowledge base query."
+          },
+          "completionTokens": {
+            "type": "number",
+            "description": "This is the number of completion tokens generated in the knowledge base query."
+          },
+          "cost": {
+            "type": "number",
+            "description": "This is the cost of the component in USD."
+          }
+        },
+        "required": [
+          "type",
+          "model",
+          "promptTokens",
+          "completionTokens",
+          "cost"
+        ]
+      },
+      "ChatCost": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of cost, always 'chat' for this class.",
+            "enum": [
+              "chat"
+            ]
+          },
+          "cost": {
+            "type": "number",
+            "description": "This is the cost of the component in USD."
+          }
+        },
+        "required": [
+          "type",
+          "cost"
+        ]
+      },
+      "SessionCost": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "description": "This is the type of cost, always 'session' for this class.",
+            "enum": [
+              "session"
+            ]
           },
+          "cost": {
+            "type": "number",
+            "description": "This is the cost of the component in USD."
+          }
+        },
+        "required": [
+          "type",
+          "cost"
+        ]
+      },
+      "FunctionToolWithToolCall": {
+        "type": "object",
+        "properties": {
           "messages": {
             "type": "array",
             "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
@@ -36572,22 +65277,50 @@
             ],
             "description": "The type of tool. \"function\" for Function tool."
           },
+          "async": {
+            "type": "boolean",
+            "example": false,
+            "description": "This determines if the tool is async.\n\n  If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\n  If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\n  Defaults to synchronous (`false`)."
+          },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
+          "variableExtractionPlan": {
+            "description": "Plan to extract variables from the tool response",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/VariableExtractionPlan"
+              }
+            ]
+          },
+          "parameters": {
+            "description": "Static key-value pairs merged into the request body. Values support Liquid templates.",
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/ToolParameter"
+            }
+          },
           "toolCall": {
             "$ref": "#/components/schemas/ToolCall"
           },
           "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+            "description": "This is the function definition of the tool.",
             "allOf": [
               {
                 "$ref": "#/components/schemas/OpenAIFunction"
               }
             ]
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
@@ -36600,11 +65333,6 @@
       "GhlToolWithToolCall": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
             "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
@@ -36642,19 +65370,11 @@
           "metadata": {
             "$ref": "#/components/schemas/GhlToolMetadata"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
@@ -36668,11 +65388,6 @@
       "MakeToolWithToolCall": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
             "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
@@ -36710,19 +65425,11 @@
           "metadata": {
             "$ref": "#/components/schemas/MakeToolMetadata"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
@@ -36736,11 +65443,6 @@
       "BashToolWithToolCall": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
             "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
@@ -36779,6 +65481,14 @@
             ],
             "description": "The sub type of tool."
           },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
           "toolCall": {
             "$ref": "#/components/schemas/ToolCall"
           },
@@ -36790,19 +65500,11 @@
               "bash"
             ]
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
@@ -36817,11 +65519,6 @@
       "ComputerToolWithToolCall": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
             "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
@@ -36860,6 +65557,14 @@
             ],
             "description": "The sub type of tool."
           },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
           "toolCall": {
             "$ref": "#/components/schemas/ToolCall"
           },
@@ -36883,19 +65588,11 @@
             "type": "number",
             "description": "Optional display number"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
@@ -36912,11 +65609,6 @@
       "TextEditorToolWithToolCall": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
             "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
@@ -36955,6 +65647,14 @@
             ],
             "description": "The sub type of tool."
           },
+          "server": {
+            "description": "\n  This is the server where a `tool-calls` webhook will be sent.\n\n  Notes:\n  - Webhook is sent to this server when a tool call is made.\n  - Webhook contains the call, assistant, and phone number objects.\n  - Webhook contains the variables set on the assistant.\n  - Webhook is sent to the first available URL in this order: {{tool.server.url}}, {{assistant.server.url}}, {{phoneNumber.server.url}}, {{org.server.url}}.\n  - Webhook expects a response with tool call result.",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/Server"
+              }
+            ]
+          },
           "toolCall": {
             "$ref": "#/components/schemas/ToolCall"
           },
@@ -36966,19 +65666,11 @@
               "str_replace_editor"
             ]
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
-              }
-            ]
-          },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
-            "allOf": [
-              {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
@@ -36993,11 +65685,6 @@
       "GoogleCalendarCreateEventToolWithToolCall": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
-          },
           "messages": {
             "type": "array",
             "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
@@ -37027,24 +65714,67 @@
             "enum": [
               "google.calendar.event.create"
             ],
-            "description": "The type of tool. \"google.calendar.event.create\" for Google Calendar tool."
+            "description": "The type of tool. \"google.calendar.event.create\" for Google Calendar Create Event tool."
           },
           "toolCall": {
             "$ref": "#/components/schemas/ToolCall"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
+          }
+        },
+        "required": [
+          "type",
+          "toolCall"
+        ]
+      },
+      "GoogleSheetsRowAppendToolWithToolCall": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "type": {
+            "type": "string",
+            "enum": [
+              "google.sheets.row.append"
+            ],
+            "description": "The type of tool. \"google.sheets.row.append\" for Google Sheets Row Append tool."
+          },
+          "toolCall": {
+            "$ref": "#/components/schemas/ToolCall"
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
@@ -37054,14 +65784,60 @@
           "toolCall"
         ]
       },
-      "GoogleSheetsRowAppendToolWithToolCall": {
+      "GoHighLevelCalendarAvailabilityToolWithToolCall": {
         "type": "object",
         "properties": {
-          "async": {
-            "type": "boolean",
-            "description": "This determines if the tool is async.\n\nIf async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server.\n\nIf sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server.\n\nDefaults to synchronous (`false`).",
-            "example": false
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
+          "type": {
+            "type": "string",
+            "enum": [
+              "gohighlevel.calendar.availability.check"
+            ],
+            "description": "The type of tool. \"gohighlevel.calendar.availability.check\" for GoHighLevel Calendar Availability Check tool."
+          },
+          "toolCall": {
+            "$ref": "#/components/schemas/ToolCall"
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "toolCall"
+        ]
+      },
+      "GoHighLevelCalendarEventCreateToolWithToolCall": {
+        "type": "object",
+        "properties": {
           "messages": {
             "type": "array",
             "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
@@ -37089,26 +65865,120 @@
           "type": {
             "type": "string",
             "enum": [
-              "google.sheets.row.append"
+              "gohighlevel.calendar.event.create"
             ],
-            "description": "The type of tool. \"google.sheets.row.append\" for Google Sheets tool."
+            "description": "The type of tool. \"gohighlevel.calendar.event.create\" for GoHighLevel Calendar Event Create tool."
           },
           "toolCall": {
             "$ref": "#/components/schemas/ToolCall"
           },
-          "function": {
-            "description": "This is the function definition of the tool.\n\nFor `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases.\n\nAn example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument \"reason\". Then, in `messages` array, you can have many \"request-complete\" messages. One of these messages will be triggered if the `messages[].conditions` matches the \"reason\" argument.",
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/OpenAIFunction"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
+              }
+            ]
+          }
+        },
+        "required": [
+          "type",
+          "toolCall"
+        ]
+      },
+      "GoHighLevelContactCreateToolWithToolCall": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
+          },
+          "type": {
+            "type": "string",
+            "enum": [
+              "gohighlevel.contact.create"
+            ],
+            "description": "The type of tool. \"gohighlevel.contact.create\" for GoHighLevel Contact Create tool."
+          },
+          "toolCall": {
+            "$ref": "#/components/schemas/ToolCall"
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
+            "allOf": [
+              {
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
+          }
+        },
+        "required": [
+          "type",
+          "toolCall"
+        ]
+      },
+      "GoHighLevelContactGetToolWithToolCall": {
+        "type": "object",
+        "properties": {
+          "messages": {
+            "type": "array",
+            "description": "These are the messages that will be spoken to the user as the tool is running.\n\nFor some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured.",
+            "items": {
+              "oneOf": [
+                {
+                  "$ref": "#/components/schemas/ToolMessageStart",
+                  "title": "ToolMessageStart"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageComplete",
+                  "title": "ToolMessageComplete"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageFailed",
+                  "title": "ToolMessageFailed"
+                },
+                {
+                  "$ref": "#/components/schemas/ToolMessageDelayed",
+                  "title": "ToolMessageDelayed"
+                }
+              ]
+            }
           },
-          "server": {
-            "description": "This is the server that will be hit when this tool is requested by the model.\n\nAll requests will be sent with the call object among other things. You can find more details in the Server URL documentation.\n\nThis overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl.",
+          "type": {
+            "type": "string",
+            "enum": [
+              "gohighlevel.contact.get"
+            ],
+            "description": "The type of tool. \"gohighlevel.contact.get\" for GoHighLevel Contact Get tool."
+          },
+          "toolCall": {
+            "$ref": "#/components/schemas/ToolCall"
+          },
+          "rejectionPlan": {
+            "description": "This is the plan to reject a tool call based on the conversation state.\n\n// Example 1: Reject endCall if user didn't say goodbye\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '(?i)\\\\b(bye|goodbye|farewell|see you later|take care)\\\\b',\n    target: { position: -1, role: 'user' },\n    negate: true  // Reject if pattern does NOT match\n  }]\n}\n```\n\n// Example 2: Reject transfer if user is actually asking a question\n```json\n{\n  conditions: [{\n    type: 'regex',\n    regex: '\\\\?',\n    target: { position: -1, role: 'user' }\n  }]\n}\n```\n\n// Example 3: Reject transfer if user didn't mention transfer recently\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 5 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' %}\n{% assign mentioned = false %}\n{% for msg in userMessages %}\n  {% if msg.content contains 'transfer' or msg.content contains 'connect' or msg.content contains 'speak to' %}\n    {% assign mentioned = true %}\n    {% break %}\n  {% endif %}\n{% endfor %}\n{% if mentioned %}\n  false\n{% else %}\n  true\n{% endif %}`\n  }]\n}\n```\n\n// Example 4: Reject endCall if the bot is looping and trying to exit\n```json\n{\n  conditions: [{\n    type: 'liquid',\n    liquid: `{% assign recentMessages = messages | last: 6 %}\n{% assign userMessages = recentMessages | where: 'role', 'user' | reverse %}\n{% if userMessages.size < 3 %}\n  false\n{% else %}\n  {% assign msg1 = userMessages[0].content | downcase %}\n  {% assign msg2 = userMessages[1].content | downcase %}\n  {% assign msg3 = userMessages[2].content | downcase %}\n  {% comment %} Check for repetitive messages {% endcomment %}\n  {% if msg1 == msg2 or msg1 == msg3 or msg2 == msg3 %}\n    true\n  {% comment %} Check for common loop phrases {% endcomment %}\n  {% elsif msg1 contains 'cool thanks' or msg2 contains 'cool thanks' or msg3 contains 'cool thanks' %}\n    true\n  {% elsif msg1 contains 'okay thanks' or msg2 contains 'okay thanks' or msg3 contains 'okay thanks' %}\n    true\n  {% elsif msg1 contains 'got it' or msg2 contains 'got it' or msg3 contains 'got it' %}\n    true\n  {% else %}\n    false\n  {% endif %}\n{% endif %}`\n  }]\n}\n```",
             "allOf": [
               {
-                "$ref": "#/components/schemas/Server"
+                "$ref": "#/components/schemas/ToolRejectionPlan"
               }
             ]
           }
@@ -37117,6 +65987,59 @@
           "type",
           "toolCall"
         ]
+      },
+      "VapiSipTransportMessage": {
+        "type": "object",
+        "properties": {
+          "transport": {
+            "type": "string",
+            "description": "This is the transport type.",
+            "enum": [
+              "vapi.sip"
+            ]
+          },
+          "sipVerb": {
+            "type": "string",
+            "description": "This is the SIP verb to use. Must be one of INFO, MESSAGE, or NOTIFY.",
+            "enum": [
+              "INFO",
+              "MESSAGE",
+              "NOTIFY"
+            ]
+          },
+          "headers": {
+            "type": "object",
+            "description": "These are the headers to include with the SIP request."
+          },
+          "body": {
+            "type": "string",
+            "description": "This is the body of the SIP request, if any."
+          }
+        },
+        "required": [
+          "transport",
+          "sipVerb"
+        ]
+      },
+      "TwilioTransportMessage": {
+        "type": "object",
+        "properties": {
+          "transport": {
+            "type": "string",
+            "description": "This is the transport type.",
+            "enum": [
+              "twilio"
+            ]
+          },
+          "twiml": {
+            "type": "string",
+            "description": "This is the TwiML to send to the Twilio call."
+          }
+        },
+        "required": [
+          "transport",
+          "twiml"
+        ]
       }
     }
   }
