Skip to content

Commit c154e6c

Browse files
committed
feat(openapi): add Transfer and SayHook, update ApiRequest and GatherTask
1 parent 7d6913d commit c154e6c

File tree

1 file changed

+77
-7
lines changed

1 file changed

+77
-7
lines changed

fern/apis/api/openapi.json

Lines changed: 77 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6951,6 +6951,10 @@
69516951
"$ref": "#/components/schemas/Hangup",
69526952
"title": "Hangup"
69536953
},
6954+
{
6955+
"$ref": "#/components/schemas/Transfer",
6956+
"title": "Transfer"
6957+
},
69546958
{
69556959
"$ref": "#/components/schemas/CreateWorkflowDTO",
69566960
"title": "CreateWorkflowDTO"
@@ -19325,6 +19329,32 @@
1932519329
"name"
1932619330
]
1932719331
},
19332+
"SayHook": {
19333+
"type": "object",
19334+
"properties": {
19335+
"type": {
19336+
"type": "string",
19337+
"enum": [
19338+
"say"
19339+
]
19340+
},
19341+
"metadata": {
19342+
"type": "object",
19343+
"description": "This is for metadata you want to store on the task."
19344+
},
19345+
"exact": {
19346+
"type": "string",
19347+
"maxLength": 1000
19348+
},
19349+
"prompt": {
19350+
"type": "string",
19351+
"maxLength": 1000
19352+
}
19353+
},
19354+
"required": [
19355+
"type"
19356+
]
19357+
},
1932819358
"Hook": {
1932919359
"type": "object",
1933019360
"properties": {
@@ -19340,7 +19370,7 @@
1934019370
"do": {
1934119371
"type": "array",
1934219372
"items": {
19343-
"$ref": "#/components/schemas/Say"
19373+
"$ref": "#/components/schemas/SayHook"
1934419374
}
1934519375
}
1934619376
},
@@ -19358,13 +19388,9 @@
1935819388
"gather"
1935919389
]
1936019390
},
19361-
"schema": {
19391+
"output": {
1936219392
"$ref": "#/components/schemas/JsonSchema"
1936319393
},
19364-
"instruction": {
19365-
"type": "string",
19366-
"maxLength": 1000
19367-
},
1936819394
"confirmContent": {
1936919395
"type": "boolean",
1937019396
"description": "This is whether or not the workflow should read back the gathered data to the user, and ask about its correctness."
@@ -19395,7 +19421,7 @@
1939519421
},
1939619422
"required": [
1939719423
"type",
19398-
"instruction",
19424+
"output",
1939919425
"name"
1940019426
]
1940119427
},
@@ -19436,6 +19462,7 @@
1943619462
},
1943719463
"mode": {
1943819464
"type": "string",
19465+
"description": "This is the mode of the Api Request.\nWe only support BLOCKING and BACKGROUND for now.",
1943919466
"enum": [
1944019467
"blocking",
1944119468
"background"
@@ -19448,6 +19475,14 @@
1944819475
"$ref": "#/components/schemas/Hook"
1944919476
}
1945019477
},
19478+
"output": {
19479+
"description": "This is the schema for the outputs of the Api Request.",
19480+
"allOf": [
19481+
{
19482+
"$ref": "#/components/schemas/JsonSchema"
19483+
}
19484+
]
19485+
},
1945119486
"startTaskMessage": {
1945219487
"type": "string"
1945319488
},
@@ -19500,6 +19535,33 @@
1950019535
"name"
1950119536
]
1950219537
},
19538+
"Transfer": {
19539+
"type": "object",
19540+
"properties": {
19541+
"type": {
19542+
"type": "string",
19543+
"enum": [
19544+
"transfer"
19545+
]
19546+
},
19547+
"destination": {
19548+
"$ref": "#/components/schemas/TransferDestinationNumber"
19549+
},
19550+
"name": {
19551+
"type": "string",
19552+
"maxLength": 80
19553+
},
19554+
"metadata": {
19555+
"type": "object",
19556+
"description": "This is for metadata you want to store on the task."
19557+
}
19558+
},
19559+
"required": [
19560+
"type",
19561+
"destination",
19562+
"name"
19563+
]
19564+
},
1950319565
"CreateWorkflowDTO": {
1950419566
"type": "object",
1950519567
"properties": {
@@ -19529,6 +19591,10 @@
1952919591
"$ref": "#/components/schemas/Hangup",
1953019592
"title": "Hangup"
1953119593
},
19594+
{
19595+
"$ref": "#/components/schemas/Transfer",
19596+
"title": "Transfer"
19597+
},
1953219598
{
1953319599
"$ref": "#/components/schemas/CreateWorkflowDTO",
1953419600
"title": "CreateWorkflowDTO"
@@ -23847,6 +23913,10 @@
2384723913
"$ref": "#/components/schemas/Hangup",
2384823914
"title": "Hangup"
2384923915
},
23916+
{
23917+
"$ref": "#/components/schemas/Transfer",
23918+
"title": "Transfer"
23919+
},
2385023920
{
2385123921
"$ref": "#/components/schemas/CreateWorkflowDTO",
2385223922
"title": "CreateWorkflowDTO"

0 commit comments

Comments
 (0)