Feat/inbound telephony (#113)

* feat: inbound telephony (twilio & vobiz)

* chore: add ruff and lint formatting

* fix: add missing cloudonix interface compliance implementation
This commit is contained in:
Sabiha Khan 2026-01-12 10:10:30 +05:30 committed by GitHub
parent b79bc4221d
commit 97fbd9b37b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 1998 additions and 40 deletions

View file

@ -0,0 +1,45 @@
"""add call_type column to workflow_runs
Revision ID: b79f19f68157
Revises: 488eb58e4e6e
Create Date: 2026-01-08 21:20:17.298334
"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision: str = "b79f19f68157"
down_revision: Union[str, None] = "488eb58e4e6e"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# Create the workflow_call_type enum
sa.Enum("inbound", "outbound", name="workflow_call_type").create(op.get_bind())
# Add call_type column to workflow_runs table
op.add_column(
"workflow_runs",
sa.Column(
"call_type",
postgresql.ENUM(
"inbound", "outbound", name="workflow_call_type", create_type=False
),
server_default=sa.text("'outbound'::workflow_call_type"),
nullable=False,
),
)
def downgrade() -> None:
# Drop the call_type column
op.drop_column("workflow_runs", "call_type")
# Drop the workflow_call_type enum
sa.Enum("inbound", "outbound", name="workflow_call_type").drop(op.get_bind())