Skip to content

Update API specifications with fern api update #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
189 changes: 121 additions & 68 deletions fern/apis/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -14402,7 +14402,6 @@
"description": "The voices provided by Vapi",
"enum": [
"Elliot",
"Kylie",
"Rohan",
"Lily",
"Savannah",
Expand Down Expand Up @@ -15684,7 +15683,6 @@
"description": "The voices provided by Vapi",
"enum": [
"Elliot",
"Kylie",
"Rohan",
"Lily",
"Savannah",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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.",
Expand All @@ -26485,10 +26535,13 @@
}
},
"required": [
"type"
"type",
"method",
"url",
"body"
]
},
"CreateBashToolDTO": {
"CreateOutputToolDTO": {
"type": "object",
"properties": {
"async": {
Expand Down Expand Up @@ -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.",
Expand All @@ -26560,12 +26598,10 @@
}
},
"required": [
"type",
"subType",
"name"
"type"
]
},
"CreateComputerToolDTO": {
"CreateBashToolDTO": {
"type": "object",
"properties": {
"async": {
Expand Down Expand Up @@ -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": [
Expand All @@ -26651,12 +26675,10 @@
"required": [
"type",
"subType",
"name",
"displayWidthPx",
"displayHeightPx"
"name"
]
},
"CreateTextEditorToolDTO": {
"CreateComputerToolDTO": {
"type": "object",
"properties": {
"async": {
Expand Down Expand Up @@ -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": [
Expand All @@ -26730,7 +26764,9 @@
"required": [
"type",
"subType",
"name"
"name",
"displayWidthPx",
"displayHeightPx"
]
},
"CreateSmsToolDTO": {
Expand Down Expand Up @@ -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.",
Expand All @@ -26790,7 +26841,9 @@
}
},
"required": [
"type"
"type",
"subType",
"name"
]
},
"UpdateDtmfToolDTO": {
Expand Down Expand Up @@ -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",
Expand Down
Loading