2
0

Add audio clips option on text input block

Closes #157
This commit is contained in:
Baptiste Arnaud
2024-08-20 14:35:20 +02:00
parent 984c2bf387
commit 135251d3f7
55 changed files with 1535 additions and 366 deletions

View File

@ -1082,6 +1082,25 @@
"type",
"text"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"audio"
]
},
"url": {
"type": "string"
}
},
"required": [
"type",
"url"
],
"description": "Can only be provided if current input block is a text input that allows audio clips"
}
],
"description": "Only provide it if your flow starts with an input block and you'd like to directly provide an answer to it."
@ -1502,6 +1521,25 @@
"type",
"text"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"audio"
]
},
"url": {
"type": "string"
}
},
"required": [
"type",
"url"
],
"description": "Can only be provided if current input block is a text input that allows audio clips"
}
]
},
@ -1872,6 +1910,25 @@
"type",
"text"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"audio"
]
},
"url": {
"type": "string"
}
},
"required": [
"type",
"url"
],
"description": "Can only be provided if current input block is a text input that allows audio clips"
}
]
},
@ -5928,6 +5985,25 @@
"isLong": {
"type": "boolean"
},
"audioClip": {
"type": "object",
"properties": {
"isEnabled": {
"type": "boolean"
},
"saveVariableId": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"Auto",
"Public",
"Private"
]
}
}
},
"attachments": {
"type": "object",
"properties": {
@ -12505,6 +12581,176 @@
"id",
"type"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"outgoingEdgeId": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"segment"
]
},
"options": {
"oneOf": [
{
"type": "object",
"properties": {
"credentialsId": {
"type": "string"
}
}
},
{
"type": "object",
"properties": {
"credentialsId": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"Alias"
]
},
"userId": {
"type": "string"
},
"previousId": {
"type": "string"
}
},
"required": [
"action"
]
},
{
"type": "object",
"properties": {
"credentialsId": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"Identify User"
]
},
"userId": {
"type": "string"
},
"email": {
"type": "string"
},
"traits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"action"
]
},
{
"type": "object",
"properties": {
"credentialsId": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"Page"
]
},
"userId": {
"type": "string"
},
"name": {
"type": "string"
},
"category": {
"type": "string"
},
"properties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"action"
]
},
{
"type": "object",
"properties": {
"credentialsId": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"Track"
]
},
"eventName": {
"type": "string"
},
"userId": {
"type": "string"
},
"properties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"action"
]
}
]
}
},
"required": [
"id",
"type"
]
}
],
"title": "Block"