|
6951 | 6951 | "$ref": "#/components/schemas/Hangup", |
6952 | 6952 | "title": "Hangup" |
6953 | 6953 | }, |
| 6954 | + { |
| 6955 | + "$ref": "#/components/schemas/Transfer", |
| 6956 | + "title": "Transfer" |
| 6957 | + }, |
6954 | 6958 | { |
6955 | 6959 | "$ref": "#/components/schemas/CreateWorkflowDTO", |
6956 | 6960 | "title": "CreateWorkflowDTO" |
|
19325 | 19329 | "name" |
19326 | 19330 | ] |
19327 | 19331 | }, |
| 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 | + }, |
19328 | 19358 | "Hook": { |
19329 | 19359 | "type": "object", |
19330 | 19360 | "properties": { |
|
19340 | 19370 | "do": { |
19341 | 19371 | "type": "array", |
19342 | 19372 | "items": { |
19343 | | - "$ref": "#/components/schemas/Say" |
| 19373 | + "$ref": "#/components/schemas/SayHook" |
19344 | 19374 | } |
19345 | 19375 | } |
19346 | 19376 | }, |
|
19358 | 19388 | "gather" |
19359 | 19389 | ] |
19360 | 19390 | }, |
19361 | | - "schema": { |
| 19391 | + "output": { |
19362 | 19392 | "$ref": "#/components/schemas/JsonSchema" |
19363 | 19393 | }, |
19364 | | - "instruction": { |
19365 | | - "type": "string", |
19366 | | - "maxLength": 1000 |
19367 | | - }, |
19368 | 19394 | "confirmContent": { |
19369 | 19395 | "type": "boolean", |
19370 | 19396 | "description": "This is whether or not the workflow should read back the gathered data to the user, and ask about its correctness." |
|
19395 | 19421 | }, |
19396 | 19422 | "required": [ |
19397 | 19423 | "type", |
19398 | | - "instruction", |
| 19424 | + "output", |
19399 | 19425 | "name" |
19400 | 19426 | ] |
19401 | 19427 | }, |
|
19436 | 19462 | }, |
19437 | 19463 | "mode": { |
19438 | 19464 | "type": "string", |
| 19465 | + "description": "This is the mode of the Api Request.\nWe only support BLOCKING and BACKGROUND for now.", |
19439 | 19466 | "enum": [ |
19440 | 19467 | "blocking", |
19441 | 19468 | "background" |
|
19448 | 19475 | "$ref": "#/components/schemas/Hook" |
19449 | 19476 | } |
19450 | 19477 | }, |
| 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 | + }, |
19451 | 19486 | "startTaskMessage": { |
19452 | 19487 | "type": "string" |
19453 | 19488 | }, |
|
19500 | 19535 | "name" |
19501 | 19536 | ] |
19502 | 19537 | }, |
| 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 | + }, |
19503 | 19565 | "CreateWorkflowDTO": { |
19504 | 19566 | "type": "object", |
19505 | 19567 | "properties": { |
|
19529 | 19591 | "$ref": "#/components/schemas/Hangup", |
19530 | 19592 | "title": "Hangup" |
19531 | 19593 | }, |
| 19594 | + { |
| 19595 | + "$ref": "#/components/schemas/Transfer", |
| 19596 | + "title": "Transfer" |
| 19597 | + }, |
19532 | 19598 | { |
19533 | 19599 | "$ref": "#/components/schemas/CreateWorkflowDTO", |
19534 | 19600 | "title": "CreateWorkflowDTO" |
|
23847 | 23913 | "$ref": "#/components/schemas/Hangup", |
23848 | 23914 | "title": "Hangup" |
23849 | 23915 | }, |
| 23916 | + { |
| 23917 | + "$ref": "#/components/schemas/Transfer", |
| 23918 | + "title": "Transfer" |
| 23919 | + }, |
23850 | 23920 | { |
23851 | 23921 | "$ref": "#/components/schemas/CreateWorkflowDTO", |
23852 | 23922 | "title": "CreateWorkflowDTO" |
|
0 commit comments