Skip to content

Add phone show <id> + phone update <id> --patch #5

@longevityboris

Description

@longevityboris

Context

Flagged by Codex audit. The CLI exposes phone list and phone call but not the single-number read/write endpoints:

  • GET /v1/convai/phone-numbers/{phone_number_id}get_phone_number_route
  • PATCH /v1/convai/phone-numbers/{phone_number_id}update_phone_number_route

Use case

Retargeting a number to a different agent without logging into the dashboard; inspecting trunk/provider/livekit settings; bulk-editing from a script.

What to do

Add two subcommands under the existing phone tree:

  • phone show <phone_number_id> (alias get)
  • phone update <phone_number_id> --patch <json_file>

Follow the same pass-through PATCH pattern as agents update --patch. Optionally add client-side enum validation for livekit_stack (standard|static), outbound_trunk_config.transport (auto|udp|tcp|tls), and media_encryption (disabled|allowed|required).

Files

  • src/cli.rs (PhoneAction::Show, PhoneAction::Update)
  • src/commands/phone/show.rs (new), update.rs (new)
  • src/commands/phone/mod.rs (dispatch)
  • src/commands/agent_info.rs
  • src/help.rs (new PHONE_UPDATE_HELP)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions