Restructure backend and frontend modules; add story, library, and editor schema migrations. Support editable automatic production, manual confirmation modes, account and user lifecycle management, compact container scrolling, consistent forms, and per-task result previews. Update inference and TTS scheduling, deployment guidance, and regression coverage; remove obsolete standalone pages and temporary acceptance artifacts.
5868 lines
141 KiB
JSON
5868 lines
141 KiB
JSON
{
|
|
"routes": [
|
|
{
|
|
"path": "/api/assets",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/assets",
|
|
"method": "POST",
|
|
"responses": [
|
|
"201",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/assets/{asset_id}",
|
|
"method": "DELETE",
|
|
"responses": [
|
|
"204",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/assets/{asset_id}",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/assets/{asset_id}",
|
|
"method": "PATCH",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/assets/{asset_id}/content",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/assets/{asset_id}/publish",
|
|
"method": "POST",
|
|
"responses": [
|
|
"201",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/assets/{asset_id}/thumbnail",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/login",
|
|
"method": "POST",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/logout",
|
|
"method": "POST",
|
|
"responses": [
|
|
"204"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/me",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/password",
|
|
"method": "POST",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/tokens",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/tokens",
|
|
"method": "POST",
|
|
"responses": [
|
|
"201",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/tokens/{token_id}",
|
|
"method": "DELETE",
|
|
"responses": [
|
|
"204",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/users",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/users",
|
|
"method": "POST",
|
|
"responses": [
|
|
"201",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/auth/users/{user_id}",
|
|
"method": "PATCH",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/batches",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/batches",
|
|
"method": "POST",
|
|
"responses": [
|
|
"202",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/batches/{id}",
|
|
"method": "DELETE",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/batches/{id}",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/batches/{id}/control",
|
|
"method": "POST",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/capabilities",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/events",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/health",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/jobs",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/jobs",
|
|
"method": "POST",
|
|
"responses": [
|
|
"202",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/jobs/{job_id}",
|
|
"method": "DELETE",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/jobs/{job_id}",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/jobs/{job_id}/cancel",
|
|
"method": "POST",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/jobs/{job_id}/retry",
|
|
"method": "POST",
|
|
"responses": [
|
|
"202",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/live",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/ready",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/shared-assets",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/shared-assets/{shared_id}",
|
|
"method": "DELETE",
|
|
"responses": [
|
|
"204",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/shared-assets/{shared_id}",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/shared-assets/{shared_id}/content",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/shared-assets/{shared_id}/import",
|
|
"method": "POST",
|
|
"responses": [
|
|
"201",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/shared-assets/{shared_id}/thumbnail",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/submissions/{key}",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/system/status",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflow-runs",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflow-runs/{id}",
|
|
"method": "DELETE",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflow-runs/{id}",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflow-runs/{id}/cancel",
|
|
"method": "POST",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflow-runs/{id}/pause",
|
|
"method": "POST",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflow-runs/{id}/resume",
|
|
"method": "POST",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflow-runs/{id}/steps/{key}/retry",
|
|
"method": "POST",
|
|
"responses": [
|
|
"202",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflows",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflows",
|
|
"method": "POST",
|
|
"responses": [
|
|
"201",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflows/{id}",
|
|
"method": "DELETE",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflows/{id}",
|
|
"method": "GET",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflows/{id}",
|
|
"method": "PATCH",
|
|
"responses": [
|
|
"200",
|
|
"422"
|
|
]
|
|
},
|
|
{
|
|
"path": "/api/workflows/{id}/runs",
|
|
"method": "POST",
|
|
"responses": [
|
|
"202",
|
|
"422"
|
|
]
|
|
}
|
|
],
|
|
"tables": {
|
|
"visual_api_tokens": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "name",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "token_hash",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "scopes",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "list"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "revoked_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_api_tokens_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": [
|
|
[
|
|
"token_hash"
|
|
]
|
|
]
|
|
},
|
|
"visual_asset_refs": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "asset_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "ref_kind",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "ref_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_asset_refs_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": [
|
|
[
|
|
"asset_id",
|
|
"ref_id",
|
|
"ref_kind"
|
|
]
|
|
]
|
|
},
|
|
"visual_asset_tags": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "asset_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "tag",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_asset_tags_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": [
|
|
[
|
|
"asset_id",
|
|
"tag"
|
|
]
|
|
]
|
|
},
|
|
"visual_assets": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "name",
|
|
"type": "VARCHAR(255)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "storage_key",
|
|
"type": "VARCHAR(512)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "thumbnail_key",
|
|
"type": "VARCHAR(512)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "kind",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "mime_type",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "size_bytes",
|
|
"type": "BIGINT",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "sha256",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "width",
|
|
"type": "INTEGER",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "height",
|
|
"type": "INTEGER",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "duration_seconds",
|
|
"type": "DOUBLE",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "tags",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "list"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "favorite",
|
|
"type": "BOOL",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "False"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "origin",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "upload"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "library_scope",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "private"
|
|
},
|
|
"server_default": "private",
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "ready",
|
|
"type": "BOOL",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "True"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "source_job_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_jobs.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "source_upstream_id",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "source_output_index",
|
|
"type": "INTEGER",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "deleted_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_assets_created_at",
|
|
"unique": false,
|
|
"columns": [
|
|
"created_at"
|
|
]
|
|
},
|
|
{
|
|
"name": "ix_visual_assets_library_scope",
|
|
"unique": false,
|
|
"columns": [
|
|
"library_scope"
|
|
]
|
|
},
|
|
{
|
|
"name": "ix_visual_assets_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "ix_visual_assets_source_job_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"source_job_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": [
|
|
[
|
|
"source_job_id",
|
|
"source_output_index"
|
|
],
|
|
[
|
|
"source_output_index",
|
|
"source_upstream_id"
|
|
],
|
|
[
|
|
"storage_key"
|
|
]
|
|
]
|
|
},
|
|
"visual_batch_items": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "batch_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "item_index",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "target_kind",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "target_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "spec_json",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "dict"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "state",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "queued"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [],
|
|
"unique_constraints": [
|
|
[
|
|
"batch_id",
|
|
"item_index"
|
|
]
|
|
]
|
|
},
|
|
"visual_batches": {
|
|
"columns": [
|
|
{
|
|
"name": "hold_reasons",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "list"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "name",
|
|
"type": "VARCHAR(255)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "spec_snapshot",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "dict"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "state",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "queued"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "desired_state",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "run"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "version",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "finished_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "deleted_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_batches_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": []
|
|
},
|
|
"visual_drafts": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "name",
|
|
"type": "VARCHAR(255)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "kind",
|
|
"type": "VARCHAR(48)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "three_shot"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "spec",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "dict"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "revision",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "version",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "current_run_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "deleted_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_drafts_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": []
|
|
},
|
|
"visual_job_assets": {
|
|
"columns": [
|
|
{
|
|
"name": "job_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_jobs.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "asset_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_assets.id"
|
|
]
|
|
}
|
|
],
|
|
"indexes": [],
|
|
"unique_constraints": []
|
|
},
|
|
"visual_job_events": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "BIGINT",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "job_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "event_type",
|
|
"type": "VARCHAR(48)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "data",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "visual_events_owner_cursor",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id",
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": []
|
|
},
|
|
"visual_job_executions": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "job_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "ordinal",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "phase_key",
|
|
"type": "VARCHAR(48)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "resource_pool",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "fence_token",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "state",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "allocated"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "manifest_json",
|
|
"type": "JSON",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "started_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "finished_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "error_json",
|
|
"type": "JSON",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [],
|
|
"unique_constraints": [
|
|
[
|
|
"job_id",
|
|
"ordinal"
|
|
]
|
|
]
|
|
},
|
|
"visual_jobs": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "task_type",
|
|
"type": "VARCHAR(48)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "execution_mode",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "interactive"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "policy_version",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "night-v1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "run_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "step_key",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "batch_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "batch_item_index",
|
|
"type": "INTEGER",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "explicit_attempt",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "desired_state",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "run"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "hold_reasons",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "list"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "current_execution_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "admitted_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "state",
|
|
"type": "VARCHAR(24)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "phase",
|
|
"type": "VARCHAR(48)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "version",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "input_json",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "parameters",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "request_key",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "request_hash",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "batch_index",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "0"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "upstream_key",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "upstream_id",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "upstream_payload",
|
|
"type": "JSON",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "upstream_result",
|
|
"type": "JSON",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "result_json",
|
|
"type": "JSON",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "error_json",
|
|
"type": "JSON",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "cancel_requested",
|
|
"type": "BOOL",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "False"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "attempt_count",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "0"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "work_attempt",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "0"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "preemptions",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "0"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "last_preempted_reason",
|
|
"type": "TEXT",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "sync_warning",
|
|
"type": "VARCHAR(512)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "sync_failures",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "0"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "next_action_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "scheduled_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "started_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "finished_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "deleted_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_jobs_created_at",
|
|
"unique": false,
|
|
"columns": [
|
|
"created_at"
|
|
]
|
|
},
|
|
{
|
|
"name": "ix_visual_jobs_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "visual_jobs_dispatch",
|
|
"unique": false,
|
|
"columns": [
|
|
"state",
|
|
"next_action_at"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": [
|
|
[
|
|
"batch_index",
|
|
"owner_id",
|
|
"request_key"
|
|
],
|
|
[
|
|
"upstream_id"
|
|
],
|
|
[
|
|
"upstream_key"
|
|
]
|
|
]
|
|
},
|
|
"visual_quota_reservations": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "operation",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "units",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "bytes_reserved",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "0"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "released_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_quota_reservations_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": []
|
|
},
|
|
"visual_sessions": {
|
|
"columns": [
|
|
{
|
|
"name": "token_hash",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "csrf_token",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_sessions_expires_at",
|
|
"unique": false,
|
|
"columns": [
|
|
"expires_at"
|
|
]
|
|
},
|
|
{
|
|
"name": "ix_visual_sessions_user_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"user_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": []
|
|
},
|
|
"visual_shared_assets": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "publisher_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "asset_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_assets.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "source_asset_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_assets.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "version",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": "1",
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "withdrawn_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_shared_assets_created_at",
|
|
"unique": false,
|
|
"columns": [
|
|
"created_at"
|
|
]
|
|
},
|
|
{
|
|
"name": "ix_visual_shared_assets_publisher_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"publisher_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "ix_visual_shared_assets_source_asset_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"source_asset_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": [
|
|
[
|
|
"asset_id"
|
|
]
|
|
]
|
|
},
|
|
"visual_submissions": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "operation",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "key",
|
|
"type": "VARCHAR(128)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "payload_schema",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "2"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "body_hash",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "request_json",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "dict"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "resource_json",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "dict"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "status",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "accepted"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_submissions_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": [
|
|
[
|
|
"key",
|
|
"operation",
|
|
"owner_id"
|
|
]
|
|
]
|
|
},
|
|
"visual_users": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "username",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "display_name",
|
|
"type": "VARCHAR(80)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "password_hash",
|
|
"type": "VARCHAR(512)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "role",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "user"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "disabled",
|
|
"type": "BOOL",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "False"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "must_change_password",
|
|
"type": "BOOL",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "False"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [],
|
|
"unique_constraints": [
|
|
[
|
|
"username"
|
|
]
|
|
]
|
|
},
|
|
"visual_workflow_runs": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "owner_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": [
|
|
"visual_users.id"
|
|
]
|
|
},
|
|
{
|
|
"name": "draft_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "draft_revision",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "spec_snapshot",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "dict"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "spec_hash",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "execution_mode",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "interactive"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "state",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "queued"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "desired_state",
|
|
"type": "VARCHAR(16)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "run"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "hold_reasons",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "list"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "version",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "batch_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "batch_item_index",
|
|
"type": "INTEGER",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "current_output_asset_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "error_json",
|
|
"type": "JSON",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "utcnow"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "started_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "finished_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "deleted_at",
|
|
"type": "DATETIME(6)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "ix_visual_workflow_runs_owner_id",
|
|
"unique": false,
|
|
"columns": [
|
|
"owner_id"
|
|
]
|
|
}
|
|
],
|
|
"unique_constraints": []
|
|
},
|
|
"visual_workflow_steps": {
|
|
"columns": [
|
|
{
|
|
"name": "id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": true,
|
|
"default": {
|
|
"callable": "new_id"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "run_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "step_key",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "kind",
|
|
"type": "VARCHAR(48)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "dependencies",
|
|
"type": "JSON",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"callable": "list"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "semantic_input_hash",
|
|
"type": "VARCHAR(64)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "selected_job_id",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": true,
|
|
"primary_key": false,
|
|
"default": null,
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "state",
|
|
"type": "VARCHAR(32)",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "waiting"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "explicit_attempt",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "0"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
},
|
|
{
|
|
"name": "version",
|
|
"type": "INTEGER",
|
|
"nullable": false,
|
|
"primary_key": false,
|
|
"default": {
|
|
"value": "1"
|
|
},
|
|
"server_default": null,
|
|
"foreign_keys": []
|
|
}
|
|
],
|
|
"indexes": [],
|
|
"unique_constraints": [
|
|
[
|
|
"run_id",
|
|
"step_key"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"http_contract": {
|
|
"operations": {
|
|
"/api/auth/login": {
|
|
"post": {
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Login"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/auth/me": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/auth/logout": {
|
|
"post": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "Successful Response"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/auth/users": {
|
|
"post": {
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateUser"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 1,
|
|
"title": "Page"
|
|
}
|
|
},
|
|
{
|
|
"name": "page_size",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 24,
|
|
"title": "Page Size"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/auth/users/{user_id}": {
|
|
"patch": {
|
|
"parameters": [
|
|
{
|
|
"name": "user_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "User Id"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserPatch"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/auth/password": {
|
|
"post": {
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PasswordChange"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/assets": {
|
|
"post": {
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"multipart/form-data": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Body_upload_api_assets_post"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 1,
|
|
"title": "Page"
|
|
}
|
|
},
|
|
{
|
|
"name": "page_size",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 24,
|
|
"title": "Page Size"
|
|
}
|
|
},
|
|
{
|
|
"name": "kind",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "Kind"
|
|
}
|
|
},
|
|
{
|
|
"name": "q",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "Q"
|
|
}
|
|
},
|
|
{
|
|
"name": "tag",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "Tag"
|
|
}
|
|
},
|
|
{
|
|
"name": "favorite",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Favorite"
|
|
}
|
|
},
|
|
{
|
|
"name": "origin",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "Origin"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/assets/{asset_id}": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "asset_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Asset Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"patch": {
|
|
"parameters": [
|
|
{
|
|
"name": "asset_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Asset Id"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/AssetPatch"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"parameters": [
|
|
{
|
|
"name": "asset_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Asset Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/assets/{asset_id}/content": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "asset_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Asset Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "download",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"title": "Download"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/assets/{asset_id}/thumbnail": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "asset_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Asset Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/shared-assets": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "q",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "Q"
|
|
}
|
|
},
|
|
{
|
|
"name": "kind",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "Kind"
|
|
}
|
|
},
|
|
{
|
|
"name": "tag",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "Tag"
|
|
}
|
|
},
|
|
{
|
|
"name": "mine",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"title": "Mine"
|
|
}
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 1,
|
|
"title": "Page"
|
|
}
|
|
},
|
|
{
|
|
"name": "page_size",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 24,
|
|
"title": "Page Size"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/shared-assets/{shared_id}": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "shared_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Shared Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"parameters": [
|
|
{
|
|
"name": "shared_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Shared Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/shared-assets/{shared_id}/content": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "shared_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Shared Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "download",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"title": "Download"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/shared-assets/{shared_id}/thumbnail": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "shared_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Shared Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/shared-assets/{shared_id}/import": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "shared_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Shared Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/EmptyPayload"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Body"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/assets/{asset_id}/publish": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "asset_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Asset Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/EmptyPayload"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Body"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/jobs": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Submit"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"202": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 1,
|
|
"title": "Page"
|
|
}
|
|
},
|
|
{
|
|
"name": "page_size",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 24,
|
|
"title": "Page Size"
|
|
}
|
|
},
|
|
{
|
|
"name": "task_type",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "Task Type"
|
|
}
|
|
},
|
|
{
|
|
"name": "state",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "",
|
|
"title": "State"
|
|
}
|
|
},
|
|
{
|
|
"name": "root_only",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"title": "Root Only"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/jobs/{job_id}": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "job_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Job Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"parameters": [
|
|
{
|
|
"name": "job_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Job Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "if-match",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "If-Match"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/jobs/{job_id}/cancel": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "job_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Job Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/jobs/{job_id}/retry": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "job_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Job Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"202": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/events": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "after",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 0,
|
|
"title": "After"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/submissions/{key}": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "key",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Key"
|
|
}
|
|
},
|
|
{
|
|
"name": "operation",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Operation"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/auth/tokens": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/TokenInput"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/auth/tokens/{token_id}": {
|
|
"delete": {
|
|
"parameters": [
|
|
{
|
|
"name": "token_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Token Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflows": {
|
|
"post": {
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DraftCreate"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 1,
|
|
"title": "Page"
|
|
}
|
|
},
|
|
{
|
|
"name": "page_size",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 24,
|
|
"title": "Page Size"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflows/{id}": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "if-match",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "If-Match"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"patch": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "if-match",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "If-Match"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DraftPatch"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflows/{id}/runs": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RunCreate"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"202": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflow-runs": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 1,
|
|
"title": "Page"
|
|
}
|
|
},
|
|
{
|
|
"name": "page_size",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 24,
|
|
"title": "Page Size"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflow-runs/{id}": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "if-match",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "If-Match"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflow-runs/{id}/steps/{key}/retry": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "key",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Key"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Retry"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"202": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflow-runs/{id}/cancel": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Control"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflow-runs/{id}/pause": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Control"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/workflow-runs/{id}/resume": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Control"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/batches": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/BatchCreate"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"202": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 1,
|
|
"title": "Page"
|
|
}
|
|
},
|
|
{
|
|
"name": "page_size",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 24,
|
|
"title": "Page Size"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/batches/{id}": {
|
|
"get": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"delete": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "if-match",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "If-Match"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/batches/{id}/control": {
|
|
"post": {
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
}
|
|
},
|
|
{
|
|
"name": "idempotency-key",
|
|
"in": "header",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Idempotency-Key"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/BatchControl"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
},
|
|
"422": {
|
|
"description": "Validation Error",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/health": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/live": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/ready": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/capabilities": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/system/status": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful Response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"AssetPatch": {
|
|
"properties": {
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"maxLength": 255,
|
|
"minLength": 1
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Name"
|
|
},
|
|
"tags": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"maxItems": 30
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Tags"
|
|
},
|
|
"favorite": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Favorite"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "AssetPatch"
|
|
},
|
|
"Audio": {
|
|
"properties": {
|
|
"asset_id": {
|
|
"type": "string",
|
|
"maxLength": 64,
|
|
"minLength": 1,
|
|
"title": "Asset Id"
|
|
},
|
|
"source_start_ms": {
|
|
"type": "integer",
|
|
"minimum": 0.0,
|
|
"title": "Source Start Ms"
|
|
},
|
|
"source_end_ms": {
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0.0,
|
|
"title": "Source End Ms"
|
|
},
|
|
"offset_frame": {
|
|
"type": "integer",
|
|
"minimum": 0.0,
|
|
"title": "Offset Frame",
|
|
"default": 0
|
|
},
|
|
"short_policy": {
|
|
"type": "string",
|
|
"const": "silence",
|
|
"title": "Short Policy",
|
|
"default": "silence"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"asset_id",
|
|
"source_start_ms",
|
|
"source_end_ms"
|
|
],
|
|
"title": "Audio"
|
|
},
|
|
"BatchControl": {
|
|
"properties": {
|
|
"desired_state": {
|
|
"type": "string",
|
|
"enum": [
|
|
"run",
|
|
"pause",
|
|
"cancel"
|
|
],
|
|
"title": "Desired State"
|
|
},
|
|
"expected_version": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer",
|
|
"minimum": 1.0
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Expected Version"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"desired_state"
|
|
],
|
|
"title": "BatchControl"
|
|
},
|
|
"BatchCreate": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 255,
|
|
"minLength": 1,
|
|
"title": "Name",
|
|
"default": "夜间批次"
|
|
},
|
|
"items": {
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/BatchWorkflow"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/BatchJob"
|
|
}
|
|
]
|
|
},
|
|
"type": "array",
|
|
"maxItems": 100,
|
|
"minItems": 1,
|
|
"title": "Items"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"items"
|
|
],
|
|
"title": "BatchCreate"
|
|
},
|
|
"BatchJob": {
|
|
"properties": {
|
|
"kind": {
|
|
"type": "string",
|
|
"const": "job",
|
|
"title": "Kind"
|
|
},
|
|
"task_type": {
|
|
"type": "string",
|
|
"title": "Task Type"
|
|
},
|
|
"input": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Input"
|
|
},
|
|
"parameters": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Parameters"
|
|
},
|
|
"count": {
|
|
"type": "integer",
|
|
"maximum": 4.0,
|
|
"minimum": 1.0,
|
|
"title": "Count",
|
|
"default": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"kind",
|
|
"task_type"
|
|
],
|
|
"title": "BatchJob"
|
|
},
|
|
"BatchWorkflow": {
|
|
"properties": {
|
|
"kind": {
|
|
"type": "string",
|
|
"const": "workflow",
|
|
"title": "Kind"
|
|
},
|
|
"draft_id": {
|
|
"type": "string",
|
|
"title": "Draft Id"
|
|
},
|
|
"draft_revision": {
|
|
"type": "integer",
|
|
"minimum": 1.0,
|
|
"title": "Draft Revision"
|
|
},
|
|
"expected_version": {
|
|
"type": "integer",
|
|
"minimum": 1.0,
|
|
"title": "Expected Version"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"kind",
|
|
"draft_id",
|
|
"draft_revision",
|
|
"expected_version"
|
|
],
|
|
"title": "BatchWorkflow"
|
|
},
|
|
"Body_upload_api_assets_post": {
|
|
"properties": {
|
|
"file": {
|
|
"type": "string",
|
|
"contentMediaType": "application/octet-stream",
|
|
"title": "File"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Name"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"file"
|
|
],
|
|
"title": "Body_upload_api_assets_post"
|
|
},
|
|
"Control": {
|
|
"properties": {
|
|
"expected_version": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer",
|
|
"minimum": 1.0
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Expected Version"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"title": "Control"
|
|
},
|
|
"CreateUser": {
|
|
"properties": {
|
|
"username": {
|
|
"type": "string",
|
|
"maxLength": 64,
|
|
"minLength": 1,
|
|
"title": "Username"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"maxLength": 256,
|
|
"minLength": 1,
|
|
"title": "Password"
|
|
},
|
|
"display_name": {
|
|
"type": "string",
|
|
"maxLength": 80,
|
|
"title": "Display Name",
|
|
"default": ""
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"username",
|
|
"password"
|
|
],
|
|
"title": "CreateUser"
|
|
},
|
|
"DraftCreate": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 255,
|
|
"minLength": 1,
|
|
"title": "Name",
|
|
"default": "多镜头工作流"
|
|
},
|
|
"kind": {
|
|
"type": "string",
|
|
"enum": [
|
|
"three_shot",
|
|
"multi_shot"
|
|
],
|
|
"title": "Kind",
|
|
"default": "multi_shot"
|
|
},
|
|
"spec": {
|
|
"$ref": "#/components/schemas/WorkflowSpec"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"spec"
|
|
],
|
|
"title": "DraftCreate"
|
|
},
|
|
"DraftPatch": {
|
|
"properties": {
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"maxLength": 255,
|
|
"minLength": 1
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Name"
|
|
},
|
|
"spec": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/WorkflowSpec"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"title": "DraftPatch"
|
|
},
|
|
"EmptyPayload": {
|
|
"properties": {},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"title": "EmptyPayload"
|
|
},
|
|
"HTTPValidationError": {
|
|
"properties": {
|
|
"detail": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/ValidationError"
|
|
},
|
|
"type": "array",
|
|
"title": "Detail"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "HTTPValidationError"
|
|
},
|
|
"Login": {
|
|
"properties": {
|
|
"username": {
|
|
"type": "string",
|
|
"maxLength": 64,
|
|
"minLength": 1,
|
|
"title": "Username"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"maxLength": 256,
|
|
"minLength": 1,
|
|
"title": "Password"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"username",
|
|
"password"
|
|
],
|
|
"title": "Login"
|
|
},
|
|
"PasswordChange": {
|
|
"properties": {
|
|
"current_password": {
|
|
"type": "string",
|
|
"maxLength": 256,
|
|
"title": "Current Password"
|
|
},
|
|
"new_password": {
|
|
"type": "string",
|
|
"maxLength": 256,
|
|
"title": "New Password"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"current_password",
|
|
"new_password"
|
|
],
|
|
"title": "PasswordChange"
|
|
},
|
|
"Render": {
|
|
"properties": {
|
|
"fps": {
|
|
"type": "integer",
|
|
"const": 24,
|
|
"title": "Fps",
|
|
"default": 24
|
|
},
|
|
"total_frames": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer",
|
|
"maximum": 360000.0,
|
|
"minimum": 1.0
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Total Frames"
|
|
},
|
|
"fit": {
|
|
"type": "string",
|
|
"enum": [
|
|
"contain",
|
|
"cover"
|
|
],
|
|
"title": "Fit",
|
|
"default": "contain"
|
|
},
|
|
"audio": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Audio"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"subtitles": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Subtitle"
|
|
},
|
|
"type": "array",
|
|
"maxItems": 1000,
|
|
"title": "Subtitles"
|
|
},
|
|
"template_version": {
|
|
"type": "string",
|
|
"const": "plain-v1",
|
|
"title": "Template Version",
|
|
"default": "plain-v1"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"title": "Render"
|
|
},
|
|
"Retry": {
|
|
"properties": {
|
|
"expected_run_version": {
|
|
"type": "integer",
|
|
"minimum": 1.0,
|
|
"title": "Expected Run Version"
|
|
},
|
|
"target_job_id": {
|
|
"type": "string",
|
|
"title": "Target Job Id"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"expected_run_version",
|
|
"target_job_id"
|
|
],
|
|
"title": "Retry"
|
|
},
|
|
"RunCreate": {
|
|
"properties": {
|
|
"draft_revision": {
|
|
"type": "integer",
|
|
"minimum": 1.0,
|
|
"title": "Draft Revision"
|
|
},
|
|
"expected_version": {
|
|
"type": "integer",
|
|
"minimum": 1.0,
|
|
"title": "Expected Version"
|
|
},
|
|
"execution_mode": {
|
|
"type": "string",
|
|
"enum": [
|
|
"interactive",
|
|
"batch"
|
|
],
|
|
"title": "Execution Mode",
|
|
"default": "interactive"
|
|
},
|
|
"reuse_run_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Reuse Run Id"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"draft_revision",
|
|
"expected_version"
|
|
],
|
|
"title": "RunCreate"
|
|
},
|
|
"Shot": {
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"pattern": "^shot_[1-9][0-9]{0,3}$",
|
|
"title": "Key"
|
|
},
|
|
"prompt": {
|
|
"type": "string",
|
|
"maxLength": 8000,
|
|
"minLength": 1,
|
|
"title": "Prompt"
|
|
},
|
|
"duration_frames": {
|
|
"type": "integer",
|
|
"maximum": 360.0,
|
|
"minimum": 24.0,
|
|
"title": "Duration Frames",
|
|
"default": 120
|
|
},
|
|
"image_asset_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"maxLength": 64,
|
|
"minLength": 1
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Image Asset Id"
|
|
},
|
|
"parameters": {
|
|
"$ref": "#/components/schemas/ShotParameters"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"key",
|
|
"prompt"
|
|
],
|
|
"title": "Shot"
|
|
},
|
|
"ShotParameters": {
|
|
"properties": {
|
|
"seed": {
|
|
"type": "integer",
|
|
"maximum": 4294967295.0,
|
|
"minimum": 0.0,
|
|
"title": "Seed",
|
|
"default": 42
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"title": "ShotParameters"
|
|
},
|
|
"Submit": {
|
|
"properties": {
|
|
"execution_mode": {
|
|
"type": "string",
|
|
"enum": [
|
|
"interactive",
|
|
"batch"
|
|
],
|
|
"title": "Execution Mode",
|
|
"default": "interactive"
|
|
},
|
|
"task_type": {
|
|
"type": "string",
|
|
"title": "Task Type"
|
|
},
|
|
"input": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Input"
|
|
},
|
|
"parameters": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Parameters"
|
|
},
|
|
"count": {
|
|
"type": "integer",
|
|
"maximum": 4.0,
|
|
"minimum": 1.0,
|
|
"title": "Count",
|
|
"default": 1
|
|
},
|
|
"scheduled_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Scheduled At"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"task_type"
|
|
],
|
|
"title": "Submit"
|
|
},
|
|
"Subtitle": {
|
|
"properties": {
|
|
"start_frame": {
|
|
"type": "integer",
|
|
"minimum": 0.0,
|
|
"title": "Start Frame"
|
|
},
|
|
"end_frame": {
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0.0,
|
|
"title": "End Frame"
|
|
},
|
|
"text": {
|
|
"type": "string",
|
|
"maxLength": 2000,
|
|
"minLength": 1,
|
|
"title": "Text"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"start_frame",
|
|
"end_frame",
|
|
"text"
|
|
],
|
|
"title": "Subtitle"
|
|
},
|
|
"TokenInput": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 128,
|
|
"minLength": 1,
|
|
"title": "Name"
|
|
},
|
|
"scopes": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"maxItems": 20,
|
|
"title": "Scopes"
|
|
},
|
|
"expires_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Expires At"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"scopes"
|
|
],
|
|
"title": "TokenInput"
|
|
},
|
|
"UserPatch": {
|
|
"properties": {
|
|
"display_name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"maxLength": 80,
|
|
"minLength": 1
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Display Name"
|
|
},
|
|
"disabled": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Disabled"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "UserPatch"
|
|
},
|
|
"ValidationError": {
|
|
"properties": {
|
|
"loc": {
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
]
|
|
},
|
|
"type": "array",
|
|
"title": "Location"
|
|
},
|
|
"msg": {
|
|
"type": "string",
|
|
"title": "Message"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"title": "Error Type"
|
|
},
|
|
"input": {
|
|
"title": "Input"
|
|
},
|
|
"ctx": {
|
|
"type": "object",
|
|
"title": "Context"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"loc",
|
|
"msg",
|
|
"type"
|
|
],
|
|
"title": "ValidationError"
|
|
},
|
|
"WorkflowSpec": {
|
|
"properties": {
|
|
"schema_version": {
|
|
"type": "integer",
|
|
"enum": [
|
|
1,
|
|
2
|
|
],
|
|
"title": "Schema Version",
|
|
"default": 1
|
|
},
|
|
"shots": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Shot"
|
|
},
|
|
"type": "array",
|
|
"maxItems": 1000,
|
|
"minItems": 1,
|
|
"title": "Shots"
|
|
},
|
|
"profile": {
|
|
"type": "string",
|
|
"enum": [
|
|
"landscape_1080_v1",
|
|
"portrait_1080_v1"
|
|
],
|
|
"title": "Profile",
|
|
"default": "landscape_1080_v1"
|
|
},
|
|
"render": {
|
|
"$ref": "#/components/schemas/Render"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"shots"
|
|
],
|
|
"title": "WorkflowSpec"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|