telnyx 3.2.0a0__py3-none-any.whl → 3.4.0a0__py3-none-any.whl
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.
Potentially problematic release.
This version of telnyx might be problematic. Click here for more details.
- telnyx/_base_client.py +3 -3
- telnyx/_client.py +5 -0
- telnyx/_compat.py +48 -48
- telnyx/_models.py +40 -40
- telnyx/_types.py +35 -1
- telnyx/_utils/__init__.py +9 -2
- telnyx/_utils/_compat.py +45 -0
- telnyx/_utils/_datetime_parse.py +136 -0
- telnyx/_utils/_transform.py +11 -1
- telnyx/_utils/_typing.py +6 -1
- telnyx/_utils/_utils.py +0 -1
- telnyx/_version.py +1 -1
- telnyx/resources/__init__.py +3 -0
- telnyx/resources/actions/purchase.py +3 -4
- telnyx/resources/actions/register.py +5 -6
- telnyx/resources/ai/chat.py +4 -4
- telnyx/resources/ai/clusters.py +3 -5
- telnyx/resources/ai/conversations/messages.py +4 -4
- telnyx/resources/ai/embeddings/embeddings.py +3 -4
- telnyx/resources/call_control_applications.py +4 -4
- telnyx/resources/calls/calls.py +4 -4
- telnyx/resources/campaign_builder/campaign_builder.py +6 -6
- telnyx/resources/conferences/actions.py +19 -20
- telnyx/resources/credential_connections/credential_connections.py +6 -6
- telnyx/resources/customer_service_records.py +3 -5
- telnyx/resources/detail_records.py +3 -5
- telnyx/resources/external_connections/external_connections.py +6 -6
- telnyx/resources/external_connections/uploads.py +3 -3
- telnyx/resources/fax_applications.py +6 -6
- telnyx/resources/fqdn_connections.py +6 -6
- telnyx/resources/ip_connections.py +6 -6
- telnyx/resources/messages/messages.py +16 -16
- telnyx/resources/messaging/rcs/rcs.py +3 -5
- telnyx/resources/messaging_hosted_number_orders/messaging_hosted_number_orders.py +8 -8
- telnyx/resources/messaging_numbers_bulk_updates.py +3 -5
- telnyx/resources/messaging_profiles/autoresp_configs.py +5 -6
- telnyx/resources/messaging_profiles/messaging_profiles.py +6 -6
- telnyx/resources/numbers_features.py +3 -5
- telnyx/resources/outbound_voice_profiles.py +10 -10
- telnyx/resources/phone_numbers/actions.py +3 -5
- telnyx/resources/phone_numbers/jobs.py +10 -10
- telnyx/resources/phone_numbers/phone_numbers.py +3 -4
- telnyx/resources/portability_checks.py +3 -5
- telnyx/resources/porting_orders/porting_orders.py +4 -4
- telnyx/resources/porting_orders/verification_codes.py +4 -4
- telnyx/resources/recordings/actions.py +3 -5
- telnyx/resources/reports/mdr_usage_reports.py +4 -4
- telnyx/resources/reports/reports.py +3 -4
- telnyx/resources/rooms/sessions/actions.py +14 -14
- telnyx/resources/sim_cards/actions.py +5 -7
- telnyx/resources/sim_cards/sim_cards.py +5 -6
- telnyx/resources/texml_applications.py +5 -6
- telnyx/resources/usage_reports.py +7 -8
- telnyx/resources/webhooks.py +34 -0
- telnyx/resources/wireless_blocklists.py +5 -6
- telnyx/types/__init__.py +115 -4
- telnyx/types/actions/purchase_create_params.py +3 -2
- telnyx/types/actions/register_create_params.py +4 -3
- telnyx/types/ai/chat_create_completion_params.py +3 -2
- telnyx/types/ai/cluster_compute_params.py +3 -2
- telnyx/types/ai/conversations/message_create_params.py +3 -2
- telnyx/types/ai/embedding_list_params.py +3 -2
- telnyx/types/ai/inference_embedding_bucket_ids_param.py +3 -2
- telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +6 -4
- telnyx/types/bundle_pricing/billing_bundle_list_params.py +4 -3
- telnyx/types/bundle_pricing/user_bundle_list_params.py +4 -3
- telnyx/types/bundle_pricing/user_bundle_list_unused_params.py +4 -3
- telnyx/types/call_ai_gather_ended_webhook_event.py +78 -0
- telnyx/types/call_ai_gather_message_history_updated_webhook_event.py +69 -0
- telnyx/types/call_ai_gather_partial_results_webhook_event.py +75 -0
- telnyx/types/call_answered_webhook_event.py +75 -0
- telnyx/types/call_bridged_webhook_event.py +58 -0
- telnyx/types/call_control_application_update_params.py +3 -2
- telnyx/types/call_conversation_ended_webhook_event.py +84 -0
- telnyx/types/call_conversation_insights_generated_webhook_event.py +67 -0
- telnyx/types/call_dial_params.py +4 -3
- telnyx/types/call_dtmf_received_webhook_event.py +61 -0
- telnyx/types/call_enqueued_webhook_event.py +59 -0
- telnyx/types/call_fork_started_webhook_event.py +53 -0
- telnyx/types/call_fork_stopped_webhook_event.py +53 -0
- telnyx/types/call_gather_ended_webhook_event.py +64 -0
- telnyx/types/call_hangup_webhook_event.py +150 -0
- telnyx/types/call_initiated_webhook_event.py +96 -0
- telnyx/types/call_left_queue_webhook_event.py +62 -0
- telnyx/types/call_machine_detection_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_greeting_ended_webhook_event.py +61 -0
- telnyx/types/call_machine_premium_detection_ended_webhook_event.py +63 -0
- telnyx/types/call_machine_premium_greeting_ended_webhook_event.py +61 -0
- telnyx/types/call_playback_ended_webhook_event.py +70 -0
- telnyx/types/call_playback_started_webhook_event.py +62 -0
- telnyx/types/call_recording_error_webhook_event.py +60 -0
- telnyx/types/call_recording_saved_webhook_event.py +94 -0
- telnyx/types/call_recording_transcription_saved_webhook_event.py +71 -0
- telnyx/types/call_refer_completed_webhook_event.py +61 -0
- telnyx/types/call_refer_failed_webhook_event.py +61 -0
- telnyx/types/call_refer_started_webhook_event.py +61 -0
- telnyx/types/call_siprec_failed_webhook_event.py +53 -0
- telnyx/types/call_siprec_started_webhook_event.py +50 -0
- telnyx/types/call_siprec_stopped_webhook_event.py +53 -0
- telnyx/types/call_speak_ended_webhook_event.py +53 -0
- telnyx/types/call_speak_started_webhook_event.py +50 -0
- telnyx/types/call_streaming_failed_webhook_event.py +70 -0
- telnyx/types/call_streaming_started_webhook_event.py +53 -0
- telnyx/types/call_streaming_stopped_webhook_event.py +53 -0
- telnyx/types/calls/transcription_engine_a_config_param.py +4 -3
- telnyx/types/campaign_builder_create_params.py +4 -3
- telnyx/types/campaign_status_update_webhook_event.py +26 -0
- telnyx/types/conference_created_webhook_event.py +53 -0
- telnyx/types/conference_ended_webhook_event.py +56 -0
- telnyx/types/conference_floor_changed_webhook_event.py +45 -0
- telnyx/types/conference_participant_joined_webhook_event.py +53 -0
- telnyx/types/conference_participant_left_webhook_event.py +53 -0
- telnyx/types/conference_participant_playback_ended_webhook_event.py +65 -0
- telnyx/types/conference_participant_playback_started_webhook_event.py +65 -0
- telnyx/types/conference_participant_speak_ended_webhook_event.py +56 -0
- telnyx/types/conference_participant_speak_started_webhook_event.py +56 -0
- telnyx/types/conference_playback_ended_webhook_event.py +49 -0
- telnyx/types/conference_playback_started_webhook_event.py +49 -0
- telnyx/types/conference_recording_saved_webhook_event.py +103 -0
- telnyx/types/conference_speak_ended_webhook_event.py +40 -0
- telnyx/types/conference_speak_started_webhook_event.py +40 -0
- telnyx/types/conferences/action_hold_params.py +3 -2
- telnyx/types/conferences/action_join_params.py +3 -2
- telnyx/types/conferences/action_mute_params.py +3 -2
- telnyx/types/conferences/action_play_params.py +2 -2
- telnyx/types/conferences/action_speak_params.py +3 -2
- telnyx/types/conferences/action_stop_params.py +3 -2
- telnyx/types/conferences/action_unhold_params.py +3 -2
- telnyx/types/conferences/action_unmute_params.py +3 -2
- telnyx/types/conferences/action_update_params.py +3 -2
- telnyx/types/credential_connection_create_params.py +3 -2
- telnyx/types/credential_connection_update_params.py +3 -2
- telnyx/types/credential_inbound_param.py +3 -2
- telnyx/types/custom_sip_header.py +13 -0
- telnyx/types/customer_service_record_list_params.py +2 -1
- telnyx/types/customer_service_record_status_changed_webhook_event.py +55 -0
- telnyx/types/customer_service_record_verify_phone_number_coverage_params.py +3 -2
- telnyx/types/delivery_update_webhook_event.py +40 -0
- telnyx/types/detail_record_list_params.py +4 -2
- telnyx/types/document_list_params.py +2 -1
- telnyx/types/external_connection_create_params.py +4 -2
- telnyx/types/external_connection_update_params.py +4 -2
- telnyx/types/external_connections/civic_address_list_params.py +3 -2
- telnyx/types/external_connections/upload_create_params.py +3 -1
- telnyx/types/fax_application_create_params.py +3 -2
- telnyx/types/fax_application_update_params.py +3 -2
- telnyx/types/fax_delivered_webhook_event.py +69 -0
- telnyx/types/fax_failed_webhook_event.py +66 -0
- telnyx/types/fax_media_processed_webhook_event.py +63 -0
- telnyx/types/fax_queued_webhook_event.py +63 -0
- telnyx/types/fax_sending_started_webhook_event.py +63 -0
- telnyx/types/fqdn_connection_create_params.py +3 -2
- telnyx/types/fqdn_connection_update_params.py +3 -2
- telnyx/types/inbound_fqdn_param.py +4 -2
- telnyx/types/inbound_ip_param.py +3 -2
- telnyx/types/inbound_message_webhook_event.py +227 -0
- telnyx/types/ip_connection_create_params.py +4 -3
- telnyx/types/ip_connection_update_params.py +3 -2
- telnyx/types/media_list_params.py +3 -2
- telnyx/types/message_schedule_params.py +3 -2
- telnyx/types/message_send_group_mms_params.py +3 -3
- telnyx/types/message_send_long_code_params.py +2 -2
- telnyx/types/message_send_number_pool_params.py +3 -2
- telnyx/types/message_send_params.py +3 -2
- telnyx/types/message_send_short_code_params.py +2 -2
- telnyx/types/messaging/rc_list_bulk_capabilities_params.py +3 -2
- telnyx/types/messaging_hosted_number_order_check_eligibility_params.py +3 -2
- telnyx/types/messaging_hosted_number_order_create_params.py +3 -2
- telnyx/types/messaging_hosted_number_order_create_verification_codes_params.py +3 -2
- telnyx/types/messaging_numbers_bulk_update_create_params.py +3 -2
- telnyx/types/messaging_profile_create_params.py +3 -2
- telnyx/types/messaging_profile_update_params.py +3 -2
- telnyx/types/messaging_profiles/autoresp_config_create_params.py +3 -2
- telnyx/types/messaging_profiles/autoresp_config_update_params.py +3 -2
- telnyx/types/messsage_rcs_params.py +2 -2
- telnyx/types/number_order_status_update_webhook_event.py +12 -0
- telnyx/types/numbers_feature_create_params.py +3 -2
- telnyx/types/outbound_call_recording_param.py +3 -2
- telnyx/types/outbound_voice_profile_create_params.py +4 -3
- telnyx/types/outbound_voice_profile_update_params.py +4 -3
- telnyx/types/phone_number_list_params.py +3 -2
- telnyx/types/phone_number_slim_list_params.py +3 -2
- telnyx/types/phone_number_update_params.py +3 -2
- telnyx/types/phone_numbers/action_verify_ownership_params.py +3 -2
- telnyx/types/phone_numbers/job_delete_batch_params.py +3 -2
- telnyx/types/phone_numbers/job_update_batch_params.py +3 -3
- telnyx/types/phone_numbers/job_update_emergency_settings_batch_params.py +4 -2
- telnyx/types/portability_check_run_params.py +3 -2
- telnyx/types/porting/export_porting_orders_csv_report_param.py +2 -1
- telnyx/types/porting_order_create_params.py +3 -2
- telnyx/types/porting_order_phone_number_configuration_param.py +3 -2
- telnyx/types/porting_orders/action_requirement_list_params.py +3 -2
- telnyx/types/porting_orders/phone_number_block_list_params.py +5 -3
- telnyx/types/porting_orders/phone_number_configuration_list_params.py +3 -2
- telnyx/types/porting_orders/verification_code_send_params.py +3 -2
- telnyx/types/portout_list_params.py +2 -1
- telnyx/types/portouts/export_portouts_csv_report_param.py +3 -2
- telnyx/types/recordings/action_delete_params.py +3 -2
- telnyx/types/replaced_link_click_webhook_event.py +32 -0
- telnyx/types/report_list_wdrs_params.py +3 -2
- telnyx/types/reports/mdr_usage_report_fetch_sync_params.py +3 -2
- telnyx/types/rooms/sessions/action_kick_params.py +5 -3
- telnyx/types/rooms/sessions/action_mute_params.py +5 -3
- telnyx/types/rooms/sessions/action_unmute_params.py +5 -3
- telnyx/types/sim_card_list_params.py +2 -1
- telnyx/types/sim_card_update_params.py +3 -3
- telnyx/types/sim_cards/action_bulk_set_public_ips_params.py +3 -2
- telnyx/types/sim_cards/action_validate_registration_codes_params.py +3 -2
- telnyx/types/sip_header.py +15 -0
- telnyx/types/streaming_failed_webhook_event.py +70 -0
- telnyx/types/streaming_started_webhook_event.py +53 -0
- telnyx/types/streaming_stopped_webhook_event.py +53 -0
- telnyx/types/texml_application_create_params.py +2 -2
- telnyx/types/texml_application_update_params.py +2 -2
- telnyx/types/transcription_webhook_event.py +72 -0
- telnyx/types/unwrap_webhook_event.py +138 -0
- telnyx/types/usage_report_list_params.py +5 -4
- telnyx/types/verify_profile_create_params.py +6 -4
- telnyx/types/verify_profile_update_params.py +6 -4
- telnyx/types/video_region_param.py +4 -2
- telnyx/types/wireless_blocklist_create_params.py +3 -2
- telnyx/types/wireless_blocklist_update_params.py +3 -2
- {telnyx-3.2.0a0.dist-info → telnyx-3.4.0a0.dist-info}/METADATA +1 -1
- {telnyx-3.2.0a0.dist-info → telnyx-3.4.0a0.dist-info}/RECORD +226 -156
- {telnyx-3.2.0a0.dist-info → telnyx-3.4.0a0.dist-info}/WHEEL +0 -0
- {telnyx-3.2.0a0.dist-info → telnyx-3.4.0a0.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
9
8
|
|
|
10
9
|
from ...types import report_list_mdrs_params, report_list_wdrs_params
|
|
11
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
10
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
12
11
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
13
12
|
from ..._compat import cached_property
|
|
14
13
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -157,7 +156,7 @@ class ReportsResource(SyncAPIResource):
|
|
|
157
156
|
sim_card_id: str | NotGiven = NOT_GIVEN,
|
|
158
157
|
sim_group_id: str | NotGiven = NOT_GIVEN,
|
|
159
158
|
sim_group_name: str | NotGiven = NOT_GIVEN,
|
|
160
|
-
sort:
|
|
159
|
+
sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
161
160
|
start_date: str | NotGiven = NOT_GIVEN,
|
|
162
161
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
163
162
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -349,7 +348,7 @@ class AsyncReportsResource(AsyncAPIResource):
|
|
|
349
348
|
sim_card_id: str | NotGiven = NOT_GIVEN,
|
|
350
349
|
sim_group_id: str | NotGiven = NOT_GIVEN,
|
|
351
350
|
sim_group_name: str | NotGiven = NOT_GIVEN,
|
|
352
|
-
sort:
|
|
351
|
+
sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
353
352
|
start_date: str | NotGiven = NOT_GIVEN,
|
|
354
353
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
355
354
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Union
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
|
-
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
10
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
11
11
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
12
12
|
from ...._compat import cached_property
|
|
13
13
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -84,8 +84,8 @@ class ActionsResource(SyncAPIResource):
|
|
|
84
84
|
self,
|
|
85
85
|
room_session_id: str,
|
|
86
86
|
*,
|
|
87
|
-
exclude:
|
|
88
|
-
participants: Union[Literal["all"],
|
|
87
|
+
exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
88
|
+
participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
|
|
89
89
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
90
90
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
91
91
|
extra_headers: Headers | None = None,
|
|
@@ -131,8 +131,8 @@ class ActionsResource(SyncAPIResource):
|
|
|
131
131
|
self,
|
|
132
132
|
room_session_id: str,
|
|
133
133
|
*,
|
|
134
|
-
exclude:
|
|
135
|
-
participants: Union[Literal["all"],
|
|
134
|
+
exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
135
|
+
participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
|
|
136
136
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
137
137
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
138
138
|
extra_headers: Headers | None = None,
|
|
@@ -178,8 +178,8 @@ class ActionsResource(SyncAPIResource):
|
|
|
178
178
|
self,
|
|
179
179
|
room_session_id: str,
|
|
180
180
|
*,
|
|
181
|
-
exclude:
|
|
182
|
-
participants: Union[Literal["all"],
|
|
181
|
+
exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
182
|
+
participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
|
|
183
183
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
184
184
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
185
185
|
extra_headers: Headers | None = None,
|
|
@@ -279,8 +279,8 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
279
279
|
self,
|
|
280
280
|
room_session_id: str,
|
|
281
281
|
*,
|
|
282
|
-
exclude:
|
|
283
|
-
participants: Union[Literal["all"],
|
|
282
|
+
exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
283
|
+
participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
|
|
284
284
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
285
285
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
286
286
|
extra_headers: Headers | None = None,
|
|
@@ -326,8 +326,8 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
326
326
|
self,
|
|
327
327
|
room_session_id: str,
|
|
328
328
|
*,
|
|
329
|
-
exclude:
|
|
330
|
-
participants: Union[Literal["all"],
|
|
329
|
+
exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
330
|
+
participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
|
|
331
331
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
332
332
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
333
333
|
extra_headers: Headers | None = None,
|
|
@@ -373,8 +373,8 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
373
373
|
self,
|
|
374
374
|
room_session_id: str,
|
|
375
375
|
*,
|
|
376
|
-
exclude:
|
|
377
|
-
participants: Union[Literal["all"],
|
|
376
|
+
exclude: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
377
|
+
participants: Union[Literal["all"], SequenceNotStr[str]] | NotGiven = NOT_GIVEN,
|
|
378
378
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
379
379
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
380
380
|
extra_headers: Headers | None = None,
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
|
-
|
|
7
5
|
import httpx
|
|
8
6
|
|
|
9
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
7
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
10
8
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
11
9
|
from ..._compat import cached_property
|
|
12
10
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -144,7 +142,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
144
142
|
def bulk_set_public_ips(
|
|
145
143
|
self,
|
|
146
144
|
*,
|
|
147
|
-
sim_card_ids:
|
|
145
|
+
sim_card_ids: SequenceNotStr[str],
|
|
148
146
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
149
147
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
150
148
|
extra_headers: Headers | None = None,
|
|
@@ -386,7 +384,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
386
384
|
def validate_registration_codes(
|
|
387
385
|
self,
|
|
388
386
|
*,
|
|
389
|
-
registration_codes:
|
|
387
|
+
registration_codes: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
390
388
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
391
389
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
392
390
|
extra_headers: Headers | None = None,
|
|
@@ -527,7 +525,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
527
525
|
async def bulk_set_public_ips(
|
|
528
526
|
self,
|
|
529
527
|
*,
|
|
530
|
-
sim_card_ids:
|
|
528
|
+
sim_card_ids: SequenceNotStr[str],
|
|
531
529
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
532
530
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
533
531
|
extra_headers: Headers | None = None,
|
|
@@ -769,7 +767,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
769
767
|
async def validate_registration_codes(
|
|
770
768
|
self,
|
|
771
769
|
*,
|
|
772
|
-
registration_codes:
|
|
770
|
+
registration_codes: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
773
771
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
774
772
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
775
773
|
extra_headers: Headers | None = None,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
@@ -22,7 +21,7 @@ from .actions import (
|
|
|
22
21
|
ActionsResourceWithStreamingResponse,
|
|
23
22
|
AsyncActionsResourceWithStreamingResponse,
|
|
24
23
|
)
|
|
25
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
24
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
26
25
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
27
26
|
from ..._compat import cached_property
|
|
28
27
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -125,11 +124,11 @@ class SimCardsResource(SyncAPIResource):
|
|
|
125
124
|
self,
|
|
126
125
|
id: str,
|
|
127
126
|
*,
|
|
128
|
-
authorized_imeis:
|
|
127
|
+
authorized_imeis: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
129
128
|
data_limit: sim_card_update_params.DataLimit | NotGiven = NOT_GIVEN,
|
|
130
129
|
sim_card_group_id: str | NotGiven = NOT_GIVEN,
|
|
131
130
|
status: SimCardStatus | NotGiven = NOT_GIVEN,
|
|
132
|
-
tags:
|
|
131
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
133
132
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
134
133
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
135
134
|
extra_headers: Headers | None = None,
|
|
@@ -518,11 +517,11 @@ class AsyncSimCardsResource(AsyncAPIResource):
|
|
|
518
517
|
self,
|
|
519
518
|
id: str,
|
|
520
519
|
*,
|
|
521
|
-
authorized_imeis:
|
|
520
|
+
authorized_imeis: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
522
521
|
data_limit: sim_card_update_params.DataLimit | NotGiven = NOT_GIVEN,
|
|
523
522
|
sim_card_group_id: str | NotGiven = NOT_GIVEN,
|
|
524
523
|
status: SimCardStatus | NotGiven = NOT_GIVEN,
|
|
525
|
-
tags:
|
|
524
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
526
525
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
527
526
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
528
527
|
extra_headers: Headers | None = None,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
@@ -14,7 +13,7 @@ from ..types import (
|
|
|
14
13
|
texml_application_create_params,
|
|
15
14
|
texml_application_update_params,
|
|
16
15
|
)
|
|
17
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
16
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
18
17
|
from .._utils import maybe_transform, async_maybe_transform
|
|
19
18
|
from .._compat import cached_property
|
|
20
19
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -70,7 +69,7 @@ class TexmlApplicationsResource(SyncAPIResource):
|
|
|
70
69
|
outbound: texml_application_create_params.Outbound | NotGiven = NOT_GIVEN,
|
|
71
70
|
status_callback: str | NotGiven = NOT_GIVEN,
|
|
72
71
|
status_callback_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
|
|
73
|
-
tags:
|
|
72
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
74
73
|
voice_fallback_url: str | NotGiven = NOT_GIVEN,
|
|
75
74
|
voice_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
|
|
76
75
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -198,7 +197,7 @@ class TexmlApplicationsResource(SyncAPIResource):
|
|
|
198
197
|
outbound: texml_application_update_params.Outbound | NotGiven = NOT_GIVEN,
|
|
199
198
|
status_callback: str | NotGiven = NOT_GIVEN,
|
|
200
199
|
status_callback_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
|
|
201
|
-
tags:
|
|
200
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
202
201
|
voice_fallback_url: str | NotGiven = NOT_GIVEN,
|
|
203
202
|
voice_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
|
|
204
203
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -414,7 +413,7 @@ class AsyncTexmlApplicationsResource(AsyncAPIResource):
|
|
|
414
413
|
outbound: texml_application_create_params.Outbound | NotGiven = NOT_GIVEN,
|
|
415
414
|
status_callback: str | NotGiven = NOT_GIVEN,
|
|
416
415
|
status_callback_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
|
|
417
|
-
tags:
|
|
416
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
418
417
|
voice_fallback_url: str | NotGiven = NOT_GIVEN,
|
|
419
418
|
voice_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
|
|
420
419
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -542,7 +541,7 @@ class AsyncTexmlApplicationsResource(AsyncAPIResource):
|
|
|
542
541
|
outbound: texml_application_update_params.Outbound | NotGiven = NOT_GIVEN,
|
|
543
542
|
status_callback: str | NotGiven = NOT_GIVEN,
|
|
544
543
|
status_callback_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
|
|
545
|
-
tags:
|
|
544
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
546
545
|
voice_fallback_url: str | NotGiven = NOT_GIVEN,
|
|
547
546
|
voice_method: Literal["get", "post"] | NotGiven = NOT_GIVEN,
|
|
548
547
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
9
8
|
|
|
10
9
|
from ..types import usage_report_list_params, usage_report_get_options_params
|
|
11
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
10
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
12
11
|
from .._utils import maybe_transform, strip_not_given, async_maybe_transform
|
|
13
12
|
from .._compat import cached_property
|
|
14
13
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -48,8 +47,8 @@ class UsageReportsResource(SyncAPIResource):
|
|
|
48
47
|
def list(
|
|
49
48
|
self,
|
|
50
49
|
*,
|
|
51
|
-
dimensions:
|
|
52
|
-
metrics:
|
|
50
|
+
dimensions: SequenceNotStr[str],
|
|
51
|
+
metrics: SequenceNotStr[str],
|
|
53
52
|
product: str,
|
|
54
53
|
date_range: str | NotGiven = NOT_GIVEN,
|
|
55
54
|
end_date: str | NotGiven = NOT_GIVEN,
|
|
@@ -57,7 +56,7 @@ class UsageReportsResource(SyncAPIResource):
|
|
|
57
56
|
format: Literal["csv", "json"] | NotGiven = NOT_GIVEN,
|
|
58
57
|
managed_accounts: bool | NotGiven = NOT_GIVEN,
|
|
59
58
|
page: usage_report_list_params.Page | NotGiven = NOT_GIVEN,
|
|
60
|
-
sort:
|
|
59
|
+
sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
61
60
|
start_date: str | NotGiven = NOT_GIVEN,
|
|
62
61
|
authorization_bearer: str | NotGiven = NOT_GIVEN,
|
|
63
62
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -206,8 +205,8 @@ class AsyncUsageReportsResource(AsyncAPIResource):
|
|
|
206
205
|
async def list(
|
|
207
206
|
self,
|
|
208
207
|
*,
|
|
209
|
-
dimensions:
|
|
210
|
-
metrics:
|
|
208
|
+
dimensions: SequenceNotStr[str],
|
|
209
|
+
metrics: SequenceNotStr[str],
|
|
211
210
|
product: str,
|
|
212
211
|
date_range: str | NotGiven = NOT_GIVEN,
|
|
213
212
|
end_date: str | NotGiven = NOT_GIVEN,
|
|
@@ -215,7 +214,7 @@ class AsyncUsageReportsResource(AsyncAPIResource):
|
|
|
215
214
|
format: Literal["csv", "json"] | NotGiven = NOT_GIVEN,
|
|
216
215
|
managed_accounts: bool | NotGiven = NOT_GIVEN,
|
|
217
216
|
page: usage_report_list_params.Page | NotGiven = NOT_GIVEN,
|
|
218
|
-
sort:
|
|
217
|
+
sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
219
218
|
start_date: str | NotGiven = NOT_GIVEN,
|
|
220
219
|
authorization_bearer: str | NotGiven = NOT_GIVEN,
|
|
221
220
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
from typing import cast
|
|
7
|
+
|
|
8
|
+
from .._models import construct_type
|
|
9
|
+
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
10
|
+
from ..types.unwrap_webhook_event import UnwrapWebhookEvent
|
|
11
|
+
|
|
12
|
+
__all__ = ["WebhooksResource", "AsyncWebhooksResource"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class WebhooksResource(SyncAPIResource):
|
|
16
|
+
def unwrap(self, payload: str) -> UnwrapWebhookEvent:
|
|
17
|
+
return cast(
|
|
18
|
+
UnwrapWebhookEvent,
|
|
19
|
+
construct_type(
|
|
20
|
+
type_=UnwrapWebhookEvent,
|
|
21
|
+
value=json.loads(payload),
|
|
22
|
+
),
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class AsyncWebhooksResource(AsyncAPIResource):
|
|
27
|
+
def unwrap(self, payload: str) -> UnwrapWebhookEvent:
|
|
28
|
+
return cast(
|
|
29
|
+
UnwrapWebhookEvent,
|
|
30
|
+
construct_type(
|
|
31
|
+
type_=UnwrapWebhookEvent,
|
|
32
|
+
value=json.loads(payload),
|
|
33
|
+
),
|
|
34
|
+
)
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
9
8
|
|
|
10
9
|
from ..types import wireless_blocklist_list_params, wireless_blocklist_create_params, wireless_blocklist_update_params
|
|
11
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
10
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
12
11
|
from .._utils import maybe_transform, async_maybe_transform
|
|
13
12
|
from .._compat import cached_property
|
|
14
13
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -53,7 +52,7 @@ class WirelessBlocklistsResource(SyncAPIResource):
|
|
|
53
52
|
*,
|
|
54
53
|
name: str,
|
|
55
54
|
type: Literal["country", "mcc", "plmn"],
|
|
56
|
-
values:
|
|
55
|
+
values: SequenceNotStr[str],
|
|
57
56
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
58
57
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
59
58
|
extra_headers: Headers | None = None,
|
|
@@ -133,7 +132,7 @@ class WirelessBlocklistsResource(SyncAPIResource):
|
|
|
133
132
|
*,
|
|
134
133
|
name: str | NotGiven = NOT_GIVEN,
|
|
135
134
|
type: Literal["country", "mcc", "plmn"] | NotGiven = NOT_GIVEN,
|
|
136
|
-
values:
|
|
135
|
+
values: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
137
136
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
138
137
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
139
138
|
extra_headers: Headers | None = None,
|
|
@@ -292,7 +291,7 @@ class AsyncWirelessBlocklistsResource(AsyncAPIResource):
|
|
|
292
291
|
*,
|
|
293
292
|
name: str,
|
|
294
293
|
type: Literal["country", "mcc", "plmn"],
|
|
295
|
-
values:
|
|
294
|
+
values: SequenceNotStr[str],
|
|
296
295
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
297
296
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
298
297
|
extra_headers: Headers | None = None,
|
|
@@ -372,7 +371,7 @@ class AsyncWirelessBlocklistsResource(AsyncAPIResource):
|
|
|
372
371
|
*,
|
|
373
372
|
name: str | NotGiven = NOT_GIVEN,
|
|
374
373
|
type: Literal["country", "mcc", "plmn"] | NotGiven = NOT_GIVEN,
|
|
375
|
-
values:
|
|
374
|
+
values: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
376
375
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
377
376
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
378
377
|
extra_headers: Headers | None = None,
|