dial-sdk 0.45.0__tar.gz → 0.45.2__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.
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/PKG-INFO +1 -1
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/dial_sdk/types.py +7 -2
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/pyproject.toml +1 -1
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/.gitignore +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/README.md +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/dial_sdk/__init__.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/dial_sdk/client.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/dial_sdk/events.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/dial_sdk/self_hosted.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/dial_sdk/self_hosted_audio.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/dial_sdk/user_agent.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/examples/audio_echo_server.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/test.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_billing.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_contacts.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_default_base_url.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_events.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_groups.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_lookup.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_policies.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_replaced_numbers.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_reply_to_message.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_self_hosted.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_self_hosted_audio.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_send_message.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_set_number_properties.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_stop_call.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_typing.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/tests/test_user_agent.py +0 -0
- {dial_sdk-0.45.0 → dial_sdk-0.45.2}/uv.lock +0 -0
|
@@ -184,9 +184,14 @@ class PhoneNumber:
|
|
|
184
184
|
whatsapp_avatar_url: Optional[str] = None # Dial-hosted URL of the WhatsApp avatar; None when unset
|
|
185
185
|
# The WhatsApp channel's own setup state, or None when the number has no
|
|
186
186
|
# WhatsApp registration at all. Keys: "status" ("provisioning" | "warming_up" |
|
|
187
|
-
# "ready" | "failed" | "banned" | "paused"), "error", "retryAvailableAt"
|
|
187
|
+
# "ready" | "failed" | "banned" | "paused" | "offline"), "error", "retryAvailableAt", "mode"
|
|
188
|
+
# ("inbound_first": it can message only people who messaged it first, anything else is refused
|
|
189
|
+
# with 403 "whatsapp_inbound_first"; "outbound_first": it can start conversations). "warming_up": a
|
|
188
190
|
# number you connected is registered and warming up (about 6 hours) before first use.
|
|
189
191
|
# "paused": Dial temporarily paused WhatsApp sending on the line; it returns to "ready".
|
|
192
|
+
# "offline": WhatsApp is temporarily offline on the line and Dial is reconnecting it; sends
|
|
193
|
+
# fail with "whatsapp_offline" (retry after Retry-After); it returns to "ready", or to
|
|
194
|
+
# "failed" if it cannot be reconnected.
|
|
190
195
|
#
|
|
191
196
|
# Independent of setup_status: separate tracks on one line, so voice
|
|
192
197
|
# caller-ID can be ready while WhatsApp has failed, and the other way round.
|
|
@@ -850,7 +855,7 @@ class CapabilityState(TypedDict, total=False):
|
|
|
850
855
|
a synchronous one has no transition to report and cannot fail.
|
|
851
856
|
"""
|
|
852
857
|
|
|
853
|
-
status: str # "provisioning" | "warming_up" | "ready" | "failed" | "banned" | "paused"
|
|
858
|
+
status: str # "provisioning" | "warming_up" | "ready" | "failed" | "banned" | "paused" | "offline"
|
|
854
859
|
previousStatus: Optional[str] # the status this capability left, when it moved
|
|
855
860
|
error: Optional[str] # vendor-neutral reason; set only when status == "failed"
|
|
856
861
|
# When this capability accepts another attempt, ISO-8601 — the cooldown. Set only
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|