diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json index 47ce09cb..7d435361 100644 --- a/fern/apis/api/openapi.json +++ b/fern/apis/api/openapi.json @@ -1178,7 +1178,7 @@ "output": "#/components/schemas/CreateOutputToolDTO", "bash": "#/components/schemas/CreateBashToolDTO", "computer": "#/components/schemas/CreateComputerToolDTO", - "textEditor": "#/components/schemas/CreateTextEditorToolDTO", + "text-editor": "#/components/schemas/CreateTextEditorToolDTO", "query": "#/components/schemas/CreateQueryToolDTO", "google.calendar.event.create": "#/components/schemas/CreateGoogleCalendarCreateEventToolDTO", "google.sheets.row.append": "#/components/schemas/CreateGoogleSheetsRowAppendToolDTO", @@ -1300,7 +1300,7 @@ "output": "#/components/schemas/OutputTool", "bash": "#/components/schemas/BashTool", "computer": "#/components/schemas/ComputerTool", - "textEditor": "#/components/schemas/TextEditorTool", + "text-editor": "#/components/schemas/TextEditorTool", "query": "#/components/schemas/QueryTool", "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool", "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool", @@ -1530,7 +1530,7 @@ "output": "#/components/schemas/OutputTool", "bash": "#/components/schemas/BashTool", "computer": "#/components/schemas/ComputerTool", - "textEditor": "#/components/schemas/TextEditorTool", + "text-editor": "#/components/schemas/TextEditorTool", "query": "#/components/schemas/QueryTool", "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool", "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool", @@ -1678,7 +1678,7 @@ "output": "#/components/schemas/OutputTool", "bash": "#/components/schemas/BashTool", "computer": "#/components/schemas/ComputerTool", - "textEditor": "#/components/schemas/TextEditorTool", + "text-editor": "#/components/schemas/TextEditorTool", "query": "#/components/schemas/QueryTool", "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool", "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool", @@ -1822,7 +1822,7 @@ "output": "#/components/schemas/UpdateOutputToolDTO", "bash": "#/components/schemas/UpdateBashToolDTO", "computer": "#/components/schemas/UpdateComputerToolDTO", - "textEditor": "#/components/schemas/UpdateTextEditorToolDTO", + "text-editor": "#/components/schemas/UpdateTextEditorToolDTO", "query": "#/components/schemas/UpdateQueryToolDTO", "google.calendar.event.create": "#/components/schemas/UpdateGoogleCalendarCreateEventToolDTO", "google.sheets.row.append": "#/components/schemas/UpdateGoogleSheetsRowAppendToolDTO", @@ -1944,7 +1944,7 @@ "output": "#/components/schemas/OutputTool", "bash": "#/components/schemas/BashTool", "computer": "#/components/schemas/ComputerTool", - "textEditor": "#/components/schemas/TextEditorTool", + "text-editor": "#/components/schemas/TextEditorTool", "query": "#/components/schemas/QueryTool", "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool", "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool", @@ -2089,7 +2089,7 @@ "output": "#/components/schemas/OutputTool", "bash": "#/components/schemas/BashTool", "computer": "#/components/schemas/ComputerTool", - "textEditor": "#/components/schemas/TextEditorTool", + "text-editor": "#/components/schemas/TextEditorTool", "query": "#/components/schemas/QueryTool", "google.calendar.event.create": "#/components/schemas/GoogleCalendarCreateEventTool", "google.sheets.row.append": "#/components/schemas/GoogleSheetsRowAppendTool", @@ -14402,7 +14402,6 @@ "description": "The voices provided by Vapi", "enum": [ "Elliot", - "Kylie", "Rohan", "Lily", "Savannah", @@ -15684,7 +15683,6 @@ "description": "The voices provided by Vapi", "enum": [ "Elliot", - "Kylie", "Rohan", "Lily", "Savannah", @@ -25340,9 +25338,9 @@ "type": { "type": "string", "enum": [ - "textEditor" + "text-editor" ], - "description": "The type of tool. \"textEditor\" for Text Editor tool." + "description": "The type of tool. \"text-editor\" for Text Editor tool." }, "subType": { "type": "string", @@ -26463,9 +26461,61 @@ "type": { "type": "string", "enum": [ - "output" + "apiRequest" ], - "description": "The type of tool. \"output\" for Output tool." + "description": "The type of tool. \"apiRequest\" for API request tool." + }, + "method": { + "type": "string", + "enum": [ + "POST", + "GET" + ] + }, + "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 + }, + "name": { + "type": "string", + "description": "This is the name of the tool. This will be passed to the model.", + "maxLength": 40 + }, + "description": { + "type": "string", + "description": "This is the description of the tool. This will be passed to the model.", + "maxLength": 1000 + }, + "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 in 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" + } + ] }, "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.", @@ -26485,10 +26535,13 @@ } }, "required": [ - "type" + "type", + "method", + "url", + "body" ] }, - "CreateBashToolDTO": { + "CreateOutputToolDTO": { "type": "object", "properties": { "async": { @@ -26523,24 +26576,9 @@ "type": { "type": "string", "enum": [ - "bash" - ], - "description": "The type of tool. \"bash\" for Bash tool." - }, - "subType": { - "type": "string", - "enum": [ - "bash_20241022" + "output" ], - "description": "The sub type of tool." - }, - "name": { - "type": "string", - "description": "The name of the tool, fixed to 'bash'", - "default": "bash", - "enum": [ - "bash" - ] + "description": "The type of tool. \"output\" for Output 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.", @@ -26560,12 +26598,10 @@ } }, "required": [ - "type", - "subType", - "name" + "type" ] }, - "CreateComputerToolDTO": { + "CreateBashToolDTO": { "type": "object", "properties": { "async": { @@ -26600,37 +26636,25 @@ "type": { "type": "string", "enum": [ - "computer" + "bash" ], - "description": "The type of tool. \"computer\" for Computer tool." + "description": "The type of tool. \"bash\" for Bash tool." }, "subType": { "type": "string", "enum": [ - "computer_20241022" + "bash_20241022" ], "description": "The sub type of tool." }, "name": { "type": "string", - "description": "The name of the tool, fixed to 'computer'", - "default": "computer", + "description": "The name of the tool, fixed to 'bash'", + "default": "bash", "enum": [ - "computer" + "bash" ] }, - "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" - }, "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": [ @@ -26651,12 +26675,10 @@ "required": [ "type", "subType", - "name", - "displayWidthPx", - "displayHeightPx" + "name" ] }, - "CreateTextEditorToolDTO": { + "CreateComputerToolDTO": { "type": "object", "properties": { "async": { @@ -26698,18 +26720,30 @@ "subType": { "type": "string", "enum": [ - "text_editor_20241022" + "computer_20241022" ], "description": "The sub type of tool." }, "name": { "type": "string", - "description": "The name of the tool, fixed to 'str_replace_editor'", - "default": "str_replace_editor", + "description": "The name of the tool, fixed to 'computer'", + "default": "computer", "enum": [ - "str_replace_editor" + "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" + }, "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": [ @@ -26730,7 +26764,9 @@ "required": [ "type", "subType", - "name" + "name", + "displayWidthPx", + "displayHeightPx" ] }, "CreateSmsToolDTO": { @@ -26768,9 +26804,24 @@ "type": { "type": "string", "enum": [ - "sms" + "text-editor" ], - "description": "The type of tool. \"sms\" for Twilio SMS sending tool." + "description": "The type of tool. \"text-editor\" for Text Editor tool." + }, + "subType": { + "type": "string", + "enum": [ + "text_editor_20241022" + ], + "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" + ] }, "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.", @@ -26790,7 +26841,9 @@ } }, "required": [ - "type" + "type", + "subType", + "name" ] }, "UpdateDtmfToolDTO": { @@ -40640,9 +40693,9 @@ "type": { "type": "string", "enum": [ - "textEditor" + "text-editor" ], - "description": "The type of tool. \"textEditor\" for Text Editor tool." + "description": "The type of tool. \"text-editor\" for Text Editor tool." }, "subType": { "type": "string",