jaxl-python 0.0.51__tar.gz → 0.0.53__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/.gitignore +0 -1
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/PKG-INFO +56 -3
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/README.md +55 -2
- jaxl_python-0.0.53/calls_add_unset.patch +26 -0
- jaxl_python-0.0.53/campaign_upload_request.patch +35 -0
- jaxl_python-0.0.53/ivr_options.patch +13 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/_scm_version.py +2 -2
- jaxl_python-0.0.53/jaxl/api/client/api/v1/v1_calls_dtmf_create.py +127 -0
- jaxl_python-0.0.53/jaxl/api/client/models/call_dtmf_request_request.py +67 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/apps.py +52 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/calls.py +33 -4
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl_python.egg-info/PKG-INFO +56 -3
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl_python.egg-info/SOURCES.txt +7 -1
- jaxl_python-0.0.53/tests/test_streaming_watchdog.py +74 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/.github/workflows/sdk.yml +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/.isort.cfg +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/.pylintrc +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/.vscode/settings.json +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/LICENSE.md +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/SPECIFICATION.md +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/docs.sh +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/README.md +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/prompts/example.txt +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/py.typed +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/request_and_confirm_code_then_send_to_phone.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/request_code_and_send_to_phone.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/send_to_phone.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/streaming_aiagent.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/streaming_audio_chunks.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/streaming_speech_segments.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/streaming_transcriptions.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/examples/streaming_wav_file.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/index.md +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/_client.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/_sdk.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/base.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/cli.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_app_organizations_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_app_organizations_providers_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_appusers_me_retrieve.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_add_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_audio_retrieve.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_hangup_retrieve.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_messages_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_metadata_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_report_retrieve.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_reschedule_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_retrieve.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_schedule_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_schedule_destroy.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_tags_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_token_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_transfer_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_tts_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_calls_usage_retrieve.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_campaign_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_campaign_upload_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_customer_consumables_retrieve.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_devices_attest_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_devices_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_integrations_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_ivr_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_ivr_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_ivr_options_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_ivr_options_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_ivr_options_partial_update.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_kyc_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_messages_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_org_kb_create.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_phonenumbers_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_phonenumbers_partial_update.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v1/v1_phonenumbers_search_retrieve.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v2/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v2/v2_app_organizations_employees_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v2/v2_app_organizations_groups_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v3/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/api/v3/v3_orders_subscriptions_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/client.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/errors.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/address_provider.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/address_provider_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/analytic.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/app_price.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/app_user.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/available_phone_number.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/available_phone_number_capabilities.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/available_phone_number_provider_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_add_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_audio_reason.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_cost.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_location_epoch.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_message_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_message_request_type_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_metadata.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_report.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_report_reason.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_report_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_reschedule_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_schedule_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_tag_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_tag_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_token_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_token_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_transfer_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_tts_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_type_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_usage_by_currency_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_usage_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/call_usage_stats_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_metadata.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_metadata_metadata.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_response_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_stats.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_tag.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_upload_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_upload_request_options.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_upload_type_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/campaign_window_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/can_user_resubscribe_plan.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/canceled_by_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/capabilities.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/connection.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/content_type_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/country.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/cta.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/cta_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/cta_type_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/currency_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/customer_consumable_total.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/customer_order_subscriptions_serializer_v2.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/customer_order_subscriptions_serializer_v2_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/customer_provider_serializer_v2.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/device.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/device_attestation_error.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/device_attestation_error_reason_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/device_attestation_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/dh_message.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/dh_message_attachment.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/dh_message_reaction.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/dh_message_type_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/direction_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/emoji.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/emoji_reaction.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/exotel_auth_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/failure_reason_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/id_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/integrations_error_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/integrations_properties_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/integrations_request_provider_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/integrations_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/integrations_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/intent_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/invalid_provider_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/iso_country_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_collection.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_collection_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_menu_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_menu_request_settings.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_menu_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_menu_response_settings.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_menu_response_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_options_invalid_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_options_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ivr_options_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/kb_search_mode_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/kb_search_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/kb_sse_event.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/kind_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/kwik_engage_auth_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/kyc.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/kyc_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/kyc_upload_metadata.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/location.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/next_or_cta_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/nimbus_post_auth_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/order_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/organization.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/organization_employee.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/organization_employee_preferences.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/organization_employee_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/organization_group_inline.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/organization_group_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/organization_preferences.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/organization_provider.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_call_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_campaign_response_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_customer_order_subscriptions_serializer_v2_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_device_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_dh_message_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_ivr_menu_response_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_ivr_options_response_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_kyc_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_organization_employee_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_organization_group_response_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_organization_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_organization_provider_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/paginated_phone_number_list.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/patched_ivr_options_update_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/patched_phone_number_update_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/patched_phone_number_update_request_frontdesk.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/payment_gateway_fees_info.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/period_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/phone_number.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/phone_number_attributes.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/phone_number_capabilities.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/phone_number_frontdesk.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/phone_number_provider_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/phone_number_search_response.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/phone_number_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/plan.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/plan_cancel_info.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/plan_expiry_timestamp.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/plan_expiry_timestamp_type_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/plan_extra_details.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/plan_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/plan_type.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/plan_type_cycle.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/platform_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/product_group.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/proof.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/proof_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/provider_status_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/reaction_by.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/rental_currency_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/resource_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/ringing_strategy_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/sales_max_auth_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/shopify_auth_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/stripe_auth_request_request.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/upload_metadata.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/user_agent.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/user_agent_browser.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/user_agent_device.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/user_agent_operating_system.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/user_agent_platform.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/user_identity.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_app_organizations_list_status_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_calls_list_direction.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_calls_metadata_create_json_body.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_calls_metadata_create_response_200.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_calls_report_retrieve_date_range.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_calls_report_retrieve_fields_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_campaign_list_status_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_customer_consumables_retrieve_currency.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_ivr_list_duration.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_kyc_list_iso_country.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_kyc_list_provider_status_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_kyc_list_resource.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_kyc_list_status.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_messages_list_types_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_phonenumbers_list_additional_status_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_phonenumbers_list_provider.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_phonenumbers_list_status.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_phonenumbers_search_retrieve_intent.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_phonenumbers_search_retrieve_iso_country_code.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v1_phonenumbers_search_retrieve_resource.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v2_app_organizations_employees_list_status_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v3_orders_subscriptions_list_currency.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/v3_orders_subscriptions_list_status_item.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/models/why_enum.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/client/types.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/py.typed +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/__init__.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/_constants.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/accounts.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/campaigns.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/devices.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/ivrs.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/kycs.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/members.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/messages.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/notifications.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/orgs.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/payments.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/phones.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/silence.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl/api/resources/teams.py +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl_python.egg-info/dependency_links.txt +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl_python.egg-info/entry_points.txt +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl_python.egg-info/not-zip-safe +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl_python.egg-info/requires.txt +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/jaxl_python.egg-info/top_level.txt +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/mkdocs.yml +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/pyproject.toml +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/setup.cfg +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/setup.gif +0 -0
- {jaxl_python-0.0.51 → jaxl_python-0.0.53}/tests/test_streaming_vad.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jaxl-python
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.53
|
|
4
4
|
Summary: Official Python SDK and CLI for interfacing with the Jaxl API. Manage calls, messages, IVRs, devices, teams, payments, campaigns, streaming transcriptions and AI Agents. Built on OpenAPI, it offers both generated API clients and Pythonic wrappers for ease of use.
|
|
5
5
|
Home-page: https://github.com/jaxl-innovations-private-limited/jaxl-python
|
|
6
6
|
Download-URL: https://github.com/jaxl-innovations-private-limited/jaxl-python/archive/main.zip
|
|
@@ -331,12 +331,16 @@ jaxl calls add --call-id 1234 --email <someone@mycompany.com>
|
|
|
331
331
|
|
|
332
332
|
### Remove External Phone Number from an Active Call
|
|
333
333
|
|
|
334
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
335
|
+
|
|
334
336
|
```bash
|
|
335
337
|
jaxl calls remove --call-id 1234 --e164 +CC<Mobile Number>
|
|
336
338
|
```
|
|
337
339
|
|
|
338
340
|
### Remove Agent from an Active Call
|
|
339
341
|
|
|
342
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
343
|
+
|
|
340
344
|
```bash
|
|
341
345
|
jaxl calls remove --call-id 1234 --email <someone@mycompany.com>
|
|
342
346
|
```
|
|
@@ -348,8 +352,25 @@ jaxl calls tts --call-id 1234 \
|
|
|
348
352
|
--prompt "Hello, this text was injected in the middle of an active call"
|
|
349
353
|
```
|
|
350
354
|
|
|
355
|
+
> Works on Jaxl-carried (SIP) calls of your own organization. The prompt is split on
|
|
356
|
+
> `.` into sentences and spoken to the call by Jaxl's TTS. Not available on calls
|
|
357
|
+
> carried by a BYO Twilio/Exotel account (the API returns 400).
|
|
358
|
+
|
|
359
|
+
### Send DTMF Digits into an Active Call
|
|
360
|
+
|
|
361
|
+
Drive the far side's IVR from your app (e.g. "press 1 for sales"):
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
jaxl calls dtmf --call-id 1234 --digits "1"
|
|
365
|
+
jaxl calls dtmf --call-id 1234 --digits "4521#"
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
> Alphabet `0-9 * # A-D`, at most 32 digits. Jaxl-carried (SIP) calls only.
|
|
369
|
+
|
|
351
370
|
### Play Audio File in an Active Call
|
|
352
371
|
|
|
372
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
373
|
+
|
|
353
374
|
```bash
|
|
354
375
|
jaxl calls play --call-id 1234 --audio /path/to/a/file/on/local/disk/or/public/url
|
|
355
376
|
```
|
|
@@ -358,6 +379,8 @@ jaxl calls play --call-id 1234 --audio /path/to/a/file/on/local/disk/or/public/u
|
|
|
358
379
|
|
|
359
380
|
### Mute a Participant in an Active Call
|
|
360
381
|
|
|
382
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
383
|
+
|
|
361
384
|
Mute a specific cellular user in a call.
|
|
362
385
|
|
|
363
386
|
```bash
|
|
@@ -372,6 +395,8 @@ jaxl calls mute --call-id 1235 --email <someone@mycompany.com>
|
|
|
372
395
|
|
|
373
396
|
### Unmute a Participant in an Active Call
|
|
374
397
|
|
|
398
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
399
|
+
|
|
375
400
|
Unmute a specific cellular user in a call.
|
|
376
401
|
|
|
377
402
|
```bash
|
|
@@ -386,6 +411,8 @@ jaxl calls unmute --call-id 1235 --email <someone@mycompany.com>
|
|
|
386
411
|
|
|
387
412
|
### Hold a Participant in an Active Call
|
|
388
413
|
|
|
414
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
415
|
+
|
|
389
416
|
Put a cellular user on-hold in a call
|
|
390
417
|
|
|
391
418
|
```bash
|
|
@@ -400,6 +427,8 @@ jaxl calls hold --call-id 1235 --email <someone@mycompany.com>
|
|
|
400
427
|
|
|
401
428
|
### Unhold a Participant in an Active Call
|
|
402
429
|
|
|
430
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
431
|
+
|
|
403
432
|
Unhold a cellular user in a call
|
|
404
433
|
|
|
405
434
|
```bash
|
|
@@ -424,12 +453,28 @@ Webhook IVRs can be used to programatically control the lifecycle of incoming an
|
|
|
424
453
|
Jaxl will invoke configured webhook URL for subscribed call events. Handle the webhook request and
|
|
425
454
|
use Jaxl SDK to continue and customise the call flows.
|
|
426
455
|
|
|
427
|
-
To create a webhook IVR, use a `https://` URL as `--message` flag
|
|
456
|
+
To create a webhook IVR, use a `https://` URL as `--message` flag. Jaxl SDK apps
|
|
457
|
+
(`jaxl apps run`) serve the webhook at **`/webhook/`** and the realtime stream at
|
|
458
|
+
**`/stream/`** on the same host, so register the `/webhook/` URL of your app:
|
|
428
459
|
|
|
429
460
|
```bash
|
|
430
|
-
|
|
461
|
+
# Plain webhook IVR (call lifecycle events only)
|
|
462
|
+
jaxl ivrs create --message "https://<your-public-host>/webhook/"
|
|
463
|
+
|
|
464
|
+
# Streaming webhook IVR — REQUIRED for the realtime audio / speech /
|
|
465
|
+
# transcription examples below: `?stream` makes Jaxl also open the
|
|
466
|
+
# `/stream/` websocket (derived from your webhook URL) for every call
|
|
467
|
+
jaxl ivrs create --message "https://<your-public-host>/webhook/?stream"
|
|
468
|
+
|
|
469
|
+
# Conversational streaming IVR — your app also SPEAKS back on that
|
|
470
|
+
# websocket (AI agents): add `&conv`
|
|
471
|
+
jaxl ivrs create --message "https://<your-public-host>/webhook/?stream&conv"
|
|
431
472
|
```
|
|
432
473
|
|
|
474
|
+
> Without `?stream` no websocket is opened and streaming handlers never fire —
|
|
475
|
+
> silently. Since `jaxl-python` 1.x the SDK app logs a warning when a streaming
|
|
476
|
+
> handler is implemented but no stream arrives for a call.
|
|
477
|
+
|
|
433
478
|
Next, assign a number to webhook IVR as shown previously under [Assign a Phone Number to IVR by ID](#assign-a-phone-number-to-ivr-by-id). Now, all incoming calls on the number will start with
|
|
434
479
|
webhook before proceeding further.
|
|
435
480
|
|
|
@@ -439,18 +484,26 @@ See [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/t
|
|
|
439
484
|
|
|
440
485
|
### Realtime Streaming Audio
|
|
441
486
|
|
|
487
|
+
> Requires a **streaming** webhook IVR (`?stream`` in the IVR URL — see above).
|
|
488
|
+
|
|
442
489
|
Refer to [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/tree/main/examples) directory for working streaming audio examples.
|
|
443
490
|
|
|
444
491
|
### Realtime Streaming Speech Segments
|
|
445
492
|
|
|
493
|
+
> Requires a **streaming** webhook IVR (`?stream`` in the IVR URL — see above).
|
|
494
|
+
|
|
446
495
|
Refer to [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/tree/main/examples) directory for working streaming speech segments examples.
|
|
447
496
|
|
|
448
497
|
### Realtime Streaming Transcriptions per Speech Segment
|
|
449
498
|
|
|
499
|
+
> Requires a **streaming** webhook IVR (`?stream`` in the IVR URL — see above).
|
|
500
|
+
|
|
450
501
|
Refer to [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/tree/main/examples) directory for working streaming transcription per speech segment examples.
|
|
451
502
|
|
|
452
503
|
### AI Agent: Realtime Transcriptions STT ➡️ LLM/MCP ➡️ TTS
|
|
453
504
|
|
|
505
|
+
> Requires a **streaming** webhook IVR (`?stream`&conv` in the IVR URL — see above).
|
|
506
|
+
|
|
454
507
|
Refer to [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/tree/main/examples) directory for working AI Agent examples.
|
|
455
508
|
|
|
456
509
|
### List Subscriptions Payments
|
|
@@ -241,12 +241,16 @@ jaxl calls add --call-id 1234 --email <someone@mycompany.com>
|
|
|
241
241
|
|
|
242
242
|
### Remove External Phone Number from an Active Call
|
|
243
243
|
|
|
244
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
245
|
+
|
|
244
246
|
```bash
|
|
245
247
|
jaxl calls remove --call-id 1234 --e164 +CC<Mobile Number>
|
|
246
248
|
```
|
|
247
249
|
|
|
248
250
|
### Remove Agent from an Active Call
|
|
249
251
|
|
|
252
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
253
|
+
|
|
250
254
|
```bash
|
|
251
255
|
jaxl calls remove --call-id 1234 --email <someone@mycompany.com>
|
|
252
256
|
```
|
|
@@ -258,8 +262,25 @@ jaxl calls tts --call-id 1234 \
|
|
|
258
262
|
--prompt "Hello, this text was injected in the middle of an active call"
|
|
259
263
|
```
|
|
260
264
|
|
|
265
|
+
> Works on Jaxl-carried (SIP) calls of your own organization. The prompt is split on
|
|
266
|
+
> `.` into sentences and spoken to the call by Jaxl's TTS. Not available on calls
|
|
267
|
+
> carried by a BYO Twilio/Exotel account (the API returns 400).
|
|
268
|
+
|
|
269
|
+
### Send DTMF Digits into an Active Call
|
|
270
|
+
|
|
271
|
+
Drive the far side's IVR from your app (e.g. "press 1 for sales"):
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
jaxl calls dtmf --call-id 1234 --digits "1"
|
|
275
|
+
jaxl calls dtmf --call-id 1234 --digits "4521#"
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
> Alphabet `0-9 * # A-D`, at most 32 digits. Jaxl-carried (SIP) calls only.
|
|
279
|
+
|
|
261
280
|
### Play Audio File in an Active Call
|
|
262
281
|
|
|
282
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
283
|
+
|
|
263
284
|
```bash
|
|
264
285
|
jaxl calls play --call-id 1234 --audio /path/to/a/file/on/local/disk/or/public/url
|
|
265
286
|
```
|
|
@@ -268,6 +289,8 @@ jaxl calls play --call-id 1234 --audio /path/to/a/file/on/local/disk/or/public/u
|
|
|
268
289
|
|
|
269
290
|
### Mute a Participant in an Active Call
|
|
270
291
|
|
|
292
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
293
|
+
|
|
271
294
|
Mute a specific cellular user in a call.
|
|
272
295
|
|
|
273
296
|
```bash
|
|
@@ -282,6 +305,8 @@ jaxl calls mute --call-id 1235 --email <someone@mycompany.com>
|
|
|
282
305
|
|
|
283
306
|
### Unmute a Participant in an Active Call
|
|
284
307
|
|
|
308
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
309
|
+
|
|
285
310
|
Unmute a specific cellular user in a call.
|
|
286
311
|
|
|
287
312
|
```bash
|
|
@@ -296,6 +321,8 @@ jaxl calls unmute --call-id 1235 --email <someone@mycompany.com>
|
|
|
296
321
|
|
|
297
322
|
### Hold a Participant in an Active Call
|
|
298
323
|
|
|
324
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
325
|
+
|
|
299
326
|
Put a cellular user on-hold in a call
|
|
300
327
|
|
|
301
328
|
```bash
|
|
@@ -310,6 +337,8 @@ jaxl calls hold --call-id 1235 --email <someone@mycompany.com>
|
|
|
310
337
|
|
|
311
338
|
### Unhold a Participant in an Active Call
|
|
312
339
|
|
|
340
|
+
> **Coming soon** — documented ahead of the backend: this command is not in the CLI yet and there is no server-side participant control behind it today (tracked as F-193 in the Jaxl backend). Use `jaxl calls transfer` / `hangup` meanwhile.
|
|
341
|
+
|
|
313
342
|
Unhold a cellular user in a call
|
|
314
343
|
|
|
315
344
|
```bash
|
|
@@ -334,12 +363,28 @@ Webhook IVRs can be used to programatically control the lifecycle of incoming an
|
|
|
334
363
|
Jaxl will invoke configured webhook URL for subscribed call events. Handle the webhook request and
|
|
335
364
|
use Jaxl SDK to continue and customise the call flows.
|
|
336
365
|
|
|
337
|
-
To create a webhook IVR, use a `https://` URL as `--message` flag
|
|
366
|
+
To create a webhook IVR, use a `https://` URL as `--message` flag. Jaxl SDK apps
|
|
367
|
+
(`jaxl apps run`) serve the webhook at **`/webhook/`** and the realtime stream at
|
|
368
|
+
**`/stream/`** on the same host, so register the `/webhook/` URL of your app:
|
|
338
369
|
|
|
339
370
|
```bash
|
|
340
|
-
|
|
371
|
+
# Plain webhook IVR (call lifecycle events only)
|
|
372
|
+
jaxl ivrs create --message "https://<your-public-host>/webhook/"
|
|
373
|
+
|
|
374
|
+
# Streaming webhook IVR — REQUIRED for the realtime audio / speech /
|
|
375
|
+
# transcription examples below: `?stream` makes Jaxl also open the
|
|
376
|
+
# `/stream/` websocket (derived from your webhook URL) for every call
|
|
377
|
+
jaxl ivrs create --message "https://<your-public-host>/webhook/?stream"
|
|
378
|
+
|
|
379
|
+
# Conversational streaming IVR — your app also SPEAKS back on that
|
|
380
|
+
# websocket (AI agents): add `&conv`
|
|
381
|
+
jaxl ivrs create --message "https://<your-public-host>/webhook/?stream&conv"
|
|
341
382
|
```
|
|
342
383
|
|
|
384
|
+
> Without `?stream` no websocket is opened and streaming handlers never fire —
|
|
385
|
+
> silently. Since `jaxl-python` 1.x the SDK app logs a warning when a streaming
|
|
386
|
+
> handler is implemented but no stream arrives for a call.
|
|
387
|
+
|
|
343
388
|
Next, assign a number to webhook IVR as shown previously under [Assign a Phone Number to IVR by ID](#assign-a-phone-number-to-ivr-by-id). Now, all incoming calls on the number will start with
|
|
344
389
|
webhook before proceeding further.
|
|
345
390
|
|
|
@@ -349,18 +394,26 @@ See [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/t
|
|
|
349
394
|
|
|
350
395
|
### Realtime Streaming Audio
|
|
351
396
|
|
|
397
|
+
> Requires a **streaming** webhook IVR (`?stream`` in the IVR URL — see above).
|
|
398
|
+
|
|
352
399
|
Refer to [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/tree/main/examples) directory for working streaming audio examples.
|
|
353
400
|
|
|
354
401
|
### Realtime Streaming Speech Segments
|
|
355
402
|
|
|
403
|
+
> Requires a **streaming** webhook IVR (`?stream`` in the IVR URL — see above).
|
|
404
|
+
|
|
356
405
|
Refer to [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/tree/main/examples) directory for working streaming speech segments examples.
|
|
357
406
|
|
|
358
407
|
### Realtime Streaming Transcriptions per Speech Segment
|
|
359
408
|
|
|
409
|
+
> Requires a **streaming** webhook IVR (`?stream`` in the IVR URL — see above).
|
|
410
|
+
|
|
360
411
|
Refer to [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/tree/main/examples) directory for working streaming transcription per speech segment examples.
|
|
361
412
|
|
|
362
413
|
### AI Agent: Realtime Transcriptions STT ➡️ LLM/MCP ➡️ TTS
|
|
363
414
|
|
|
415
|
+
> Requires a **streaming** webhook IVR (`?stream`&conv` in the IVR URL — see above).
|
|
416
|
+
|
|
364
417
|
Refer to [examples](https://github.com/jaxl-innovations-private-limited/jaxl-python/tree/main/examples) directory for working AI Agent examples.
|
|
365
418
|
|
|
366
419
|
### List Subscriptions Payments
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
diff --git a/jaxl/api/resources/calls.py b/jaxl/api/resources/calls.py
|
|
2
|
+
index 1bce0ab..209dbbb 100644
|
|
3
|
+
--- a/jaxl/api/resources/calls.py
|
|
4
|
+
+++ b/jaxl/api/resources/calls.py
|
|
5
|
+
@@ -69,7 +69,7 @@ from jaxl.api.client.models.v1_calls_metadata_create_response_200 import (
|
|
6
|
+
V1CallsMetadataCreateResponse200,
|
|
7
|
+
)
|
|
8
|
+
from jaxl.api.client.models.why_enum import WhyEnum
|
|
9
|
+
-from jaxl.api.client.types import UNSET, Response, Unset
|
|
10
|
+
+from jaxl.api.client.types import UNSET, Response
|
|
11
|
+
from jaxl.api.resources._constants import DEFAULT_CURRENCY, DEFAULT_LIST_LIMIT
|
|
12
|
+
from jaxl.api.resources.ivrs import (
|
|
13
|
+
IVR_CTA_KEYS,
|
|
14
|
+
@@ -303,9 +303,9 @@ def calls_add(args: Dict[str, Any]) -> Response[Any]:
|
|
15
|
+
auth_token=args.get("auth_token", None),
|
|
16
|
+
),
|
|
17
|
+
json_body=CallAddRequestRequest(
|
|
18
|
+
- e164=args.get("e164", Unset),
|
|
19
|
+
- email=args.get("email", Unset),
|
|
20
|
+
- from_e164=args.get("from_e164", Unset),
|
|
21
|
+
+ e164=args.get("e164", UNSET),
|
|
22
|
+
+ email=args.get("email", UNSET),
|
|
23
|
+
+ from_e164=args.get("from_e164", UNSET),
|
|
24
|
+
),
|
|
25
|
+
)
|
|
26
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
diff --git a/jaxl/api/client/models/campaign_upload_request.py b/jaxl/api/client/models/campaign_upload_request.py
|
|
2
|
+
index 33c6e84..482c4fe 100644
|
|
3
|
+
--- a/jaxl/api/client/models/campaign_upload_request.py
|
|
4
|
+
+++ b/jaxl/api/client/models/campaign_upload_request.py
|
|
5
|
+
@@ -19,8 +19,11 @@ from ..models.campaign_upload_type_enum import CampaignUploadTypeEnum
|
|
6
|
+
from ..models.content_type_enum import ContentTypeEnum
|
|
7
|
+
from ..types import UNSET, File, Unset
|
|
8
|
+
|
|
9
|
+
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
- from ..models.campaign_upload_request_options import CampaignUploadRequestOptions
|
|
12
|
+
+ from ..models.campaign_upload_request_options import (
|
|
13
|
+
+ CampaignUploadRequestOptions,
|
|
14
|
+
+ )
|
|
15
|
+
from ..models.campaign_window_request import CampaignWindowRequest
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@@ -149,7 +152,7 @@ class CampaignUploadRequest:
|
|
19
|
+
window = (
|
|
20
|
+
(None, json.dumps(self.window.to_dict()).encode(), "application/json")
|
|
21
|
+
if self.window
|
|
22
|
+
- else None
|
|
23
|
+
+ else window
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
auto_retry = (
|
|
27
|
+
@@ -167,7 +170,7 @@ class CampaignUploadRequest:
|
|
28
|
+
options = (
|
|
29
|
+
(None, json.dumps(self.options.to_dict()).encode(), "application/json")
|
|
30
|
+
if self.options
|
|
31
|
+
- else None
|
|
32
|
+
+ else options
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
field_dict: Dict[str, Any] = {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
diff --git a/jaxl/api/client/models/ivr_options_response.py b/jaxl/api/client/models/ivr_options_response.py
|
|
2
|
+
index a057f56a0..fc3339ef1 100644
|
|
3
|
+
--- a/jaxl/api/client/models/ivr_options_response.py
|
|
4
|
+
+++ b/jaxl/api/client/models/ivr_options_response.py
|
|
5
|
+
@@ -101,7 +101,7 @@ class IVROptionsResponse:
|
|
6
|
+
|
|
7
|
+
_cta = d.pop("cta", UNSET)
|
|
8
|
+
cta: Union[Unset, CTA]
|
|
9
|
+
- if isinstance(_cta, Unset):
|
|
10
|
+
+ if isinstance(_cta, Unset) or _cta is None:
|
|
11
|
+
cta = UNSET
|
|
12
|
+
else:
|
|
13
|
+
cta = CTA.from_dict(_cta)
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) 2010-present by Jaxl Innovations Private Limited.
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms,
|
|
7
|
+
with or without modification, is strictly prohibited.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from http import HTTPStatus
|
|
11
|
+
from typing import Any, Dict, Optional
|
|
12
|
+
|
|
13
|
+
import httpx
|
|
14
|
+
|
|
15
|
+
from ... import errors
|
|
16
|
+
from ...client import AuthenticatedClient, Client
|
|
17
|
+
from ...models.call_dtmf_request_request import CallDtmfRequestRequest
|
|
18
|
+
from ...types import Response
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def _get_kwargs(
|
|
22
|
+
id: int,
|
|
23
|
+
*,
|
|
24
|
+
client: AuthenticatedClient,
|
|
25
|
+
json_body: CallDtmfRequestRequest,
|
|
26
|
+
) -> Dict[str, Any]:
|
|
27
|
+
url = "{}/v1/calls/{id}/dtmf/".format(client.base_url, id=id)
|
|
28
|
+
|
|
29
|
+
headers: Dict[str, str] = client.get_headers()
|
|
30
|
+
cookies: Dict[str, Any] = client.get_cookies()
|
|
31
|
+
|
|
32
|
+
json_json_body = json_body.to_dict()
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
"method": "post",
|
|
36
|
+
"url": url,
|
|
37
|
+
"headers": headers,
|
|
38
|
+
"cookies": cookies,
|
|
39
|
+
"timeout": client.get_timeout(),
|
|
40
|
+
"json": json_json_body,
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Any]:
|
|
45
|
+
if response.status_code == HTTPStatus.OK:
|
|
46
|
+
return None
|
|
47
|
+
if response.status_code == HTTPStatus.NOT_FOUND:
|
|
48
|
+
return None
|
|
49
|
+
if client.raise_on_unexpected_status:
|
|
50
|
+
raise errors.UnexpectedStatus(f"Unexpected status code: {response.status_code}")
|
|
51
|
+
else:
|
|
52
|
+
return None
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[Any]:
|
|
56
|
+
return Response(
|
|
57
|
+
status_code=HTTPStatus(response.status_code),
|
|
58
|
+
content=response.content,
|
|
59
|
+
headers=response.headers,
|
|
60
|
+
parsed=_parse_response(client=client, response=response),
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def sync_detailed(
|
|
65
|
+
id: int,
|
|
66
|
+
*,
|
|
67
|
+
client: AuthenticatedClient,
|
|
68
|
+
json_body: CallDtmfRequestRequest,
|
|
69
|
+
) -> Response[Any]:
|
|
70
|
+
"""Send DTMF digits into an active call.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
id (int):
|
|
74
|
+
json_body (CallDtmfRequestRequest):
|
|
75
|
+
|
|
76
|
+
Raises:
|
|
77
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
78
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
79
|
+
|
|
80
|
+
Returns:
|
|
81
|
+
Response[Any]
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
kwargs = _get_kwargs(
|
|
85
|
+
id=id,
|
|
86
|
+
client=client,
|
|
87
|
+
json_body=json_body,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
response = httpx.request(
|
|
91
|
+
verify=client.verify_ssl,
|
|
92
|
+
**kwargs,
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
return _build_response(client=client, response=response)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
async def asyncio_detailed(
|
|
99
|
+
id: int,
|
|
100
|
+
*,
|
|
101
|
+
client: AuthenticatedClient,
|
|
102
|
+
json_body: CallDtmfRequestRequest,
|
|
103
|
+
) -> Response[Any]:
|
|
104
|
+
"""Send DTMF digits into an active call.
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
id (int):
|
|
108
|
+
json_body (CallDtmfRequestRequest):
|
|
109
|
+
|
|
110
|
+
Raises:
|
|
111
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
112
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
113
|
+
|
|
114
|
+
Returns:
|
|
115
|
+
Response[Any]
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
kwargs = _get_kwargs(
|
|
119
|
+
id=id,
|
|
120
|
+
client=client,
|
|
121
|
+
json_body=json_body,
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
|
|
125
|
+
response = await _client.request(**kwargs)
|
|
126
|
+
|
|
127
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) 2010-present by Jaxl Innovations Private Limited.
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms,
|
|
7
|
+
with or without modification, is strictly prohibited.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
11
|
+
|
|
12
|
+
import attr
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="CallDtmfRequestRequest")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@attr.s(auto_attribs=True)
|
|
18
|
+
class CallDtmfRequestRequest:
|
|
19
|
+
"""
|
|
20
|
+
Attributes:
|
|
21
|
+
digits (str): DTMF digits to send into the call, e.g. "1", "123#".
|
|
22
|
+
Alphabet: 0-9 * # A-D, at most 32.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
digits: str
|
|
26
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
27
|
+
|
|
28
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
29
|
+
digits = self.digits
|
|
30
|
+
|
|
31
|
+
field_dict: Dict[str, Any] = {}
|
|
32
|
+
field_dict.update(self.additional_properties)
|
|
33
|
+
field_dict.update(
|
|
34
|
+
{
|
|
35
|
+
"digits": digits,
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
return field_dict
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
43
|
+
d = src_dict.copy()
|
|
44
|
+
digits = d.pop("digits")
|
|
45
|
+
|
|
46
|
+
call_dtmf_request_request = cls(
|
|
47
|
+
digits=digits,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
call_dtmf_request_request.additional_properties = d
|
|
51
|
+
return call_dtmf_request_request
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def additional_keys(self) -> List[str]:
|
|
55
|
+
return list(self.additional_properties.keys())
|
|
56
|
+
|
|
57
|
+
def __getitem__(self, key: str) -> Any:
|
|
58
|
+
return self.additional_properties[key]
|
|
59
|
+
|
|
60
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
61
|
+
self.additional_properties[key] = value
|
|
62
|
+
|
|
63
|
+
def __delitem__(self, key: str) -> None:
|
|
64
|
+
del self.additional_properties[key]
|
|
65
|
+
|
|
66
|
+
def __contains__(self, key: str) -> bool:
|
|
67
|
+
return key in self.additional_properties
|
|
@@ -49,6 +49,32 @@ DUMMY_RESPONSE = JaxlWebhookResponse(prompt=[" . "], num_characters=0)
|
|
|
49
49
|
|
|
50
50
|
logger = logging.getLogger(__name__)
|
|
51
51
|
|
|
52
|
+
# BaseJaxlApp hooks that only ever fire over the `/stream/` websocket. An app
|
|
53
|
+
# overriding any of them expects a stream; if none opens, tell the developer
|
|
54
|
+
# (see `_warn_if_stream_never_opens`).
|
|
55
|
+
STREAMING_HANDLERS = (
|
|
56
|
+
"on_stream_connect",
|
|
57
|
+
"handle_speech_detection",
|
|
58
|
+
"handle_audio_chunk",
|
|
59
|
+
"handle_speech_chunks",
|
|
60
|
+
"handle_speech_segment",
|
|
61
|
+
"handle_transcription",
|
|
62
|
+
"handle_stream_mark",
|
|
63
|
+
)
|
|
64
|
+
# How long after the SETUP webhook Jaxl normally takes to open `/stream/`
|
|
65
|
+
# (it opens it right after the setup response; seconds, generous for slow
|
|
66
|
+
# links and grout).
|
|
67
|
+
STREAM_OPEN_GRACE_S = 8.0
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def streaming_handlers_overridden(app: BaseJaxlApp) -> List[str]:
|
|
71
|
+
"""Names of the streaming hooks this app implements (overrides)."""
|
|
72
|
+
return [
|
|
73
|
+
name
|
|
74
|
+
for name in STREAMING_HANDLERS
|
|
75
|
+
if getattr(type(app), name, None) is not getattr(BaseJaxlApp, name, None)
|
|
76
|
+
]
|
|
77
|
+
|
|
52
78
|
warnings.filterwarnings(
|
|
53
79
|
"ignore",
|
|
54
80
|
message="FP16 is not supported on CPU; using FP32 instead",
|
|
@@ -198,6 +224,28 @@ def _start_server(
|
|
|
198
224
|
app.hangup = _hangup # type: ignore[method-assign]
|
|
199
225
|
app.send_mark = _send_mark # type: ignore[method-assign]
|
|
200
226
|
|
|
227
|
+
streaming_handlers = streaming_handlers_overridden(app)
|
|
228
|
+
|
|
229
|
+
async def _warn_if_stream_never_opens(call_id: int) -> None:
|
|
230
|
+
"""F-193 (2026-09-25): the #1 silent failure for new SDK users — the
|
|
231
|
+
app implements streaming handlers, the webhook fires, and then
|
|
232
|
+
nothing: no audio, no error. Cause: the IVR was registered as a
|
|
233
|
+
plain webhook URL, so Jaxl never opens `/stream/` (that needs
|
|
234
|
+
`?stream` in the IVR URL). Say so, loudly, once per call."""
|
|
235
|
+
await asyncio.sleep(STREAM_OPEN_GRACE_S)
|
|
236
|
+
if call_id in wss:
|
|
237
|
+
return
|
|
238
|
+
logger.warning(
|
|
239
|
+
"⚠️ call#%s: your app implements %s but Jaxl never opened the "
|
|
240
|
+
"/stream/ websocket for this call in %.0fs. Streaming needs a "
|
|
241
|
+
"STREAMING webhook IVR — re-create it with `?stream` (or "
|
|
242
|
+
"`?stream&conv` for conversational apps) in the URL, e.g. "
|
|
243
|
+
"`jaxl ivrs create --message \"https://<host>/webhook/?stream\"`.",
|
|
244
|
+
call_id,
|
|
245
|
+
", ".join(streaming_handlers),
|
|
246
|
+
STREAM_OPEN_GRACE_S,
|
|
247
|
+
)
|
|
248
|
+
|
|
201
249
|
@server.api_route(
|
|
202
250
|
"/webhook/",
|
|
203
251
|
methods=["POST", "DELETE"],
|
|
@@ -219,6 +267,10 @@ def _start_server(
|
|
|
219
267
|
elif req.data:
|
|
220
268
|
response = await app.handle_user_data(req)
|
|
221
269
|
else:
|
|
270
|
+
if streaming_handlers and req.state.call_id not in wss:
|
|
271
|
+
asyncio.get_running_loop().create_task(
|
|
272
|
+
_warn_if_stream_never_opens(req.state.call_id)
|
|
273
|
+
)
|
|
222
274
|
response = await app.handle_setup(req)
|
|
223
275
|
elif req.event == JaxlWebhookEvent.OPTION:
|
|
224
276
|
assert request.method == "POST"
|