📝 Add generate upload url endpoint api doc
This commit is contained in:
@ -2310,7 +2310,7 @@
|
||||
},
|
||||
"/v1/generate-upload-url": {
|
||||
"post": {
|
||||
"operationId": "generateUploadUrl",
|
||||
"operationId": "generateUploadUrlV1",
|
||||
"summary": "Generate upload URL",
|
||||
"description": "Used to upload anything from the client to S3 bucket",
|
||||
"requestBody": {
|
||||
@ -2424,6 +2424,87 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v2/generate-upload-url": {
|
||||
"post": {
|
||||
"operationId": "generateUploadUrl",
|
||||
"summary": "Generate upload URL",
|
||||
"description": "Used to upload anything from the client to S3 bucket",
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sessionId": {
|
||||
"type": "string"
|
||||
},
|
||||
"fileName": {
|
||||
"type": "string"
|
||||
},
|
||||
"fileType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"sessionId",
|
||||
"fileName"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"presignedUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"formData": {
|
||||
"type": "object",
|
||||
"additionalProperties": {}
|
||||
},
|
||||
"fileUrl": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"presignedUrl",
|
||||
"formData",
|
||||
"fileUrl"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Invalid input data",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/error.BAD_REQUEST"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal server error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/sessions/{sessionId}/updateTypebot": {
|
||||
"post": {
|
||||
"operationId": "updateTypebotInSession",
|
||||
@ -3389,6 +3470,20 @@
|
||||
},
|
||||
{}
|
||||
]
|
||||
},
|
||||
"waitForEvent": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"saveDataInVariableId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -7536,6 +7631,20 @@
|
||||
},
|
||||
{}
|
||||
]
|
||||
},
|
||||
"waitForEvent": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"saveDataInVariableId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -12720,6 +12829,20 @@
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"waitForEvent": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"saveDataInVariableId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"height": {
|
||||
"type": "number"
|
||||
}
|
||||
|
Reference in New Issue
Block a user