What you configure
add channel adds a reference to an existing resource (sometimes called an artifact) in agent.json. It does not create the resource, modify a phone number, or reassign a number. Other supported channel types include call_control_application and email_domain. See the messaging and voice guides for channel-specific setup.
For the generated project files and internal SDK layout, see the Agent SDK internals. You do not need to edit generated .telnyx/ files.
What the SDK handles at deploy
Atdeploy, the SDK wires each configured resource’s webhook to the deployed function and tracks the previous webhook value. Internally, wireChannels in channels/wire.ts does that setup, and .telnyx/index.ts registers its route with channelRoutes. You do not call those functions yourself.
The generated handler in channels/index.ts serves every route at /webhooks/<type>/<id> and verifies each webhook against the account’s public key before reading it. A messaging_profile route runs messagingWebhook, a call_control_application route runs the call handler, and an email_domain route runs emailWebhook.