Skip to content

Commit 332fc10

Browse files
committed
fix(openapi): replace HttpRequest with ApiRequest and add silenceTimeoutMessage
1 parent 8fe21bc commit 332fc10

File tree

1 file changed

+19
-59
lines changed

1 file changed

+19
-59
lines changed

fern/apis/api/openapi.json

Lines changed: 19 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -6924,8 +6924,8 @@
69246924
"title": "Gather"
69256925
},
69266926
{
6927-
"$ref": "#/components/schemas/HttpRequest",
6928-
"title": "HttpRequest"
6927+
"$ref": "#/components/schemas/ApiRequest",
6928+
"title": "ApiRequest"
69296929
},
69306930
{
69316931
"$ref": "#/components/schemas/Hangup",
@@ -11004,6 +11004,11 @@
1100411004
"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",
1100511005
"minimum": 5,
1100611006
"maximum": 60
11007+
},
11008+
"silenceTimeoutMessage": {
11009+
"type": "string",
11010+
"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.",
11011+
"maxLength": 1000
1100711012
}
1100811013
}
1100911014
},
@@ -15412,54 +15417,6 @@
1541215417
}
1541315418
}
1541415419
},
15415-
"BuyPhoneNumberDTO": {
15416-
"type": "object",
15417-
"properties": {
15418-
"fallbackDestination": {
15419-
"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.",
15420-
"oneOf": [
15421-
{
15422-
"$ref": "#/components/schemas/TransferDestinationNumber",
15423-
"title": "NumberTransferDestination"
15424-
},
15425-
{
15426-
"$ref": "#/components/schemas/TransferDestinationSip",
15427-
"title": "SipTransferDestination"
15428-
}
15429-
]
15430-
},
15431-
"areaCode": {
15432-
"type": "string",
15433-
"description": "This is the area code of the phone number to purchase.",
15434-
"minLength": 3,
15435-
"maxLength": 3
15436-
},
15437-
"name": {
15438-
"type": "string",
15439-
"description": "This is the name of the phone number. This is just for your own reference.",
15440-
"maxLength": 40
15441-
},
15442-
"assistantId": {
15443-
"type": "string",
15444-
"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."
15445-
},
15446-
"squadId": {
15447-
"type": "string",
15448-
"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."
15449-
},
15450-
"server": {
15451-
"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",
15452-
"allOf": [
15453-
{
15454-
"$ref": "#/components/schemas/Server"
15455-
}
15456-
]
15457-
}
15458-
},
15459-
"required": [
15460-
"areaCode"
15461-
]
15462-
},
1546315420
"ImportVonagePhoneNumberDTO": {
1546415421
"type": "object",
1546515422
"properties": {
@@ -19225,6 +19182,9 @@
1922519182
"type": "boolean",
1922619183
"description": "This is whether or not the workflow should read back the gathered data to the user, and ask about its correctness."
1922719184
},
19185+
"maxRetries": {
19186+
"type": "number"
19187+
},
1922819188
"name": {
1922919189
"type": "string",
1923019190
"maxLength": 80
@@ -19240,13 +19200,13 @@
1924019200
"name"
1924119201
]
1924219202
},
19243-
"HttpRequest": {
19203+
"ApiRequest": {
1924419204
"type": "object",
1924519205
"properties": {
1924619206
"type": {
1924719207
"type": "string",
1924819208
"enum": [
19249-
"http-request"
19209+
"api-request"
1925019210
]
1925119211
},
1925219212
"method": {
@@ -19257,15 +19217,15 @@
1925719217
},
1925819218
"url": {
1925919219
"type": "string",
19260-
"description": "API endpoint to send requests to."
19220+
"description": "Api endpoint to send requests to."
1926119221
},
1926219222
"headers": {
1926319223
"type": "object",
19264-
"description": "These are the custom headers to include in the HTTP request sent.\n\nEach key-value pair represents a header name and its value."
19224+
"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."
1926519225
},
1926619226
"body": {
1926719227
"type": "object",
19268-
"description": "This defined the JSON body of your HTTP 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."
19228+
"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."
1926919229
},
1927019230
"isAsync": {
1927119231
"type": "boolean"
@@ -19343,8 +19303,8 @@
1934319303
"title": "Gather"
1934419304
},
1934519305
{
19346-
"$ref": "#/components/schemas/HttpRequest",
19347-
"title": "HttpRequest"
19306+
"$ref": "#/components/schemas/ApiRequest",
19307+
"title": "ApiRequest"
1934819308
},
1934919309
{
1935019310
"$ref": "#/components/schemas/Hangup",
@@ -23661,8 +23621,8 @@
2366123621
"title": "Gather"
2366223622
},
2366323623
{
23664-
"$ref": "#/components/schemas/HttpRequest",
23665-
"title": "HttpRequest"
23624+
"$ref": "#/components/schemas/ApiRequest",
23625+
"title": "ApiRequest"
2366623626
},
2366723627
{
2366823628
"$ref": "#/components/schemas/Hangup",

0 commit comments

Comments
 (0)