telnyx 3.3.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/_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/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/wireless_blocklists.py +5 -6
- telnyx/types/__init__.py +4 -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_control_application_update_params.py +3 -2
- telnyx/types/call_dial_params.py +4 -3
- telnyx/types/calls/transcription_engine_a_config_param.py +4 -3
- telnyx/types/campaign_builder_create_params.py +4 -3
- 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/customer_service_record_list_params.py +2 -1
- telnyx/types/customer_service_record_verify_phone_number_coverage_params.py +3 -2
- 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/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/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/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/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/texml_application_create_params.py +2 -2
- telnyx/types/texml_application_update_params.py +2 -2
- 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.3.0a0.dist-info → telnyx-3.4.0a0.dist-info}/METADATA +1 -1
- {telnyx-3.3.0a0.dist-info → telnyx-3.4.0a0.dist-info}/RECORD +156 -154
- {telnyx-3.3.0a0.dist-info → telnyx-3.4.0a0.dist-info}/WHEEL +0 -0
- {telnyx-3.3.0a0.dist-info → telnyx-3.4.0a0.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
|
-
|
|
7
5
|
import httpx
|
|
8
6
|
|
|
9
7
|
from ..types import (
|
|
@@ -11,7 +9,7 @@ from ..types import (
|
|
|
11
9
|
customer_service_record_create_params,
|
|
12
10
|
customer_service_record_verify_phone_number_coverage_params,
|
|
13
11
|
)
|
|
14
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
12
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
15
13
|
from .._utils import maybe_transform, async_maybe_transform
|
|
16
14
|
from .._compat import cached_property
|
|
17
15
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -189,7 +187,7 @@ class CustomerServiceRecordsResource(SyncAPIResource):
|
|
|
189
187
|
def verify_phone_number_coverage(
|
|
190
188
|
self,
|
|
191
189
|
*,
|
|
192
|
-
phone_numbers:
|
|
190
|
+
phone_numbers: SequenceNotStr[str],
|
|
193
191
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
194
192
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
195
193
|
extra_headers: Headers | None = None,
|
|
@@ -381,7 +379,7 @@ class AsyncCustomerServiceRecordsResource(AsyncAPIResource):
|
|
|
381
379
|
async def verify_phone_number_coverage(
|
|
382
380
|
self,
|
|
383
381
|
*,
|
|
384
|
-
phone_numbers:
|
|
382
|
+
phone_numbers: SequenceNotStr[str],
|
|
385
383
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
386
384
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
387
385
|
extra_headers: Headers | None = None,
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
|
-
|
|
7
5
|
import httpx
|
|
8
6
|
|
|
9
7
|
from ..types import detail_record_list_params
|
|
10
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
11
9
|
from .._utils import maybe_transform, async_maybe_transform
|
|
12
10
|
from .._compat import cached_property
|
|
13
11
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -48,7 +46,7 @@ class DetailRecordsResource(SyncAPIResource):
|
|
|
48
46
|
*,
|
|
49
47
|
filter: detail_record_list_params.Filter | NotGiven = NOT_GIVEN,
|
|
50
48
|
page: detail_record_list_params.Page | NotGiven = NOT_GIVEN,
|
|
51
|
-
sort:
|
|
49
|
+
sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
52
50
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
53
51
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
54
52
|
extra_headers: Headers | None = None,
|
|
@@ -122,7 +120,7 @@ class AsyncDetailRecordsResource(AsyncAPIResource):
|
|
|
122
120
|
*,
|
|
123
121
|
filter: detail_record_list_params.Filter | NotGiven = NOT_GIVEN,
|
|
124
122
|
page: detail_record_list_params.Page | NotGiven = NOT_GIVEN,
|
|
125
|
-
sort:
|
|
123
|
+
sort: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
126
124
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
127
125
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
128
126
|
extra_headers: Headers | None = None,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -21,7 +21,7 @@ from .uploads import (
|
|
|
21
21
|
UploadsResourceWithStreamingResponse,
|
|
22
22
|
AsyncUploadsResourceWithStreamingResponse,
|
|
23
23
|
)
|
|
24
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
24
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
25
25
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
26
26
|
from .releases import (
|
|
27
27
|
ReleasesResource,
|
|
@@ -121,7 +121,7 @@ class ExternalConnectionsResource(SyncAPIResource):
|
|
|
121
121
|
outbound: external_connection_create_params.Outbound,
|
|
122
122
|
active: bool | NotGiven = NOT_GIVEN,
|
|
123
123
|
inbound: external_connection_create_params.Inbound | NotGiven = NOT_GIVEN,
|
|
124
|
-
tags:
|
|
124
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
125
125
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
126
126
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
127
127
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -223,7 +223,7 @@ class ExternalConnectionsResource(SyncAPIResource):
|
|
|
223
223
|
outbound: external_connection_update_params.Outbound,
|
|
224
224
|
active: bool | NotGiven = NOT_GIVEN,
|
|
225
225
|
inbound: external_connection_update_params.Inbound | NotGiven = NOT_GIVEN,
|
|
226
|
-
tags:
|
|
226
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
227
227
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
228
228
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
229
229
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -460,7 +460,7 @@ class AsyncExternalConnectionsResource(AsyncAPIResource):
|
|
|
460
460
|
outbound: external_connection_create_params.Outbound,
|
|
461
461
|
active: bool | NotGiven = NOT_GIVEN,
|
|
462
462
|
inbound: external_connection_create_params.Inbound | NotGiven = NOT_GIVEN,
|
|
463
|
-
tags:
|
|
463
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
464
464
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
465
465
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
466
466
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -562,7 +562,7 @@ class AsyncExternalConnectionsResource(AsyncAPIResource):
|
|
|
562
562
|
outbound: external_connection_update_params.Outbound,
|
|
563
563
|
active: bool | NotGiven = NOT_GIVEN,
|
|
564
564
|
inbound: external_connection_update_params.Inbound | NotGiven = NOT_GIVEN,
|
|
565
|
-
tags:
|
|
565
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
566
566
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
567
567
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
568
568
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -7,7 +7,7 @@ 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
|
|
@@ -53,7 +53,7 @@ class UploadsResource(SyncAPIResource):
|
|
|
53
53
|
self,
|
|
54
54
|
id: str,
|
|
55
55
|
*,
|
|
56
|
-
number_ids:
|
|
56
|
+
number_ids: SequenceNotStr[str],
|
|
57
57
|
additional_usages: List[Literal["calling_user_assignment", "first_party_app_assignment"]]
|
|
58
58
|
| NotGiven = NOT_GIVEN,
|
|
59
59
|
civic_address_id: str | NotGiven = NOT_GIVEN,
|
|
@@ -326,7 +326,7 @@ class AsyncUploadsResource(AsyncAPIResource):
|
|
|
326
326
|
self,
|
|
327
327
|
id: str,
|
|
328
328
|
*,
|
|
329
|
-
number_ids:
|
|
329
|
+
number_ids: SequenceNotStr[str],
|
|
330
330
|
additional_usages: List[Literal["calling_user_assignment", "first_party_app_assignment"]]
|
|
331
331
|
| NotGiven = NOT_GIVEN,
|
|
332
332
|
civic_address_id: str | NotGiven = NOT_GIVEN,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -13,7 +13,7 @@ from ..types import (
|
|
|
13
13
|
fax_application_create_params,
|
|
14
14
|
fax_application_update_params,
|
|
15
15
|
)
|
|
16
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
16
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
17
17
|
from .._utils import maybe_transform, async_maybe_transform
|
|
18
18
|
from .._compat import cached_property
|
|
19
19
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -63,7 +63,7 @@ class FaxApplicationsResource(SyncAPIResource):
|
|
|
63
63
|
anchorsite_override: AnchorsiteOverride | NotGiven = NOT_GIVEN,
|
|
64
64
|
inbound: fax_application_create_params.Inbound | NotGiven = NOT_GIVEN,
|
|
65
65
|
outbound: fax_application_create_params.Outbound | NotGiven = NOT_GIVEN,
|
|
66
|
-
tags:
|
|
66
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
67
67
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
68
68
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
69
69
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -173,7 +173,7 @@ class FaxApplicationsResource(SyncAPIResource):
|
|
|
173
173
|
fax_email_recipient: Optional[str] | NotGiven = NOT_GIVEN,
|
|
174
174
|
inbound: fax_application_update_params.Inbound | NotGiven = NOT_GIVEN,
|
|
175
175
|
outbound: fax_application_update_params.Outbound | NotGiven = NOT_GIVEN,
|
|
176
|
-
tags:
|
|
176
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
177
177
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
178
178
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
179
179
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -376,7 +376,7 @@ class AsyncFaxApplicationsResource(AsyncAPIResource):
|
|
|
376
376
|
anchorsite_override: AnchorsiteOverride | NotGiven = NOT_GIVEN,
|
|
377
377
|
inbound: fax_application_create_params.Inbound | NotGiven = NOT_GIVEN,
|
|
378
378
|
outbound: fax_application_create_params.Outbound | NotGiven = NOT_GIVEN,
|
|
379
|
-
tags:
|
|
379
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
380
380
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
381
381
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
382
382
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -486,7 +486,7 @@ class AsyncFaxApplicationsResource(AsyncAPIResource):
|
|
|
486
486
|
fax_email_recipient: Optional[str] | NotGiven = NOT_GIVEN,
|
|
487
487
|
inbound: fax_application_update_params.Inbound | NotGiven = NOT_GIVEN,
|
|
488
488
|
outbound: fax_application_update_params.Outbound | NotGiven = NOT_GIVEN,
|
|
489
|
-
tags:
|
|
489
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
490
490
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
491
491
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
492
492
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -17,7 +17,7 @@ from ..types import (
|
|
|
17
17
|
fqdn_connection_create_params,
|
|
18
18
|
fqdn_connection_update_params,
|
|
19
19
|
)
|
|
20
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
20
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
21
21
|
from .._utils import maybe_transform, async_maybe_transform
|
|
22
22
|
from .._compat import cached_property
|
|
23
23
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -82,7 +82,7 @@ class FqdnConnectionsResource(SyncAPIResource):
|
|
|
82
82
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
83
83
|
outbound: OutboundFqdnParam | NotGiven = NOT_GIVEN,
|
|
84
84
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
85
|
-
tags:
|
|
85
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
86
86
|
transport_protocol: TransportProtocol | NotGiven = NOT_GIVEN,
|
|
87
87
|
webhook_api_version: WebhookAPIVersion | NotGiven = NOT_GIVEN,
|
|
88
88
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -237,7 +237,7 @@ class FqdnConnectionsResource(SyncAPIResource):
|
|
|
237
237
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
238
238
|
outbound: OutboundFqdnParam | NotGiven = NOT_GIVEN,
|
|
239
239
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
240
|
-
tags:
|
|
240
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
241
241
|
transport_protocol: TransportProtocol | NotGiven = NOT_GIVEN,
|
|
242
242
|
webhook_api_version: WebhookAPIVersion | NotGiven = NOT_GIVEN,
|
|
243
243
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -478,7 +478,7 @@ class AsyncFqdnConnectionsResource(AsyncAPIResource):
|
|
|
478
478
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
479
479
|
outbound: OutboundFqdnParam | NotGiven = NOT_GIVEN,
|
|
480
480
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
481
|
-
tags:
|
|
481
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
482
482
|
transport_protocol: TransportProtocol | NotGiven = NOT_GIVEN,
|
|
483
483
|
webhook_api_version: WebhookAPIVersion | NotGiven = NOT_GIVEN,
|
|
484
484
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -633,7 +633,7 @@ class AsyncFqdnConnectionsResource(AsyncAPIResource):
|
|
|
633
633
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
634
634
|
outbound: OutboundFqdnParam | NotGiven = NOT_GIVEN,
|
|
635
635
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
636
|
-
tags:
|
|
636
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
637
637
|
transport_protocol: TransportProtocol | NotGiven = NOT_GIVEN,
|
|
638
638
|
webhook_api_version: WebhookAPIVersion | NotGiven = NOT_GIVEN,
|
|
639
639
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -15,7 +15,7 @@ from ..types import (
|
|
|
15
15
|
ip_connection_create_params,
|
|
16
16
|
ip_connection_update_params,
|
|
17
17
|
)
|
|
18
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
18
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
19
19
|
from .._utils import maybe_transform, async_maybe_transform
|
|
20
20
|
from .._compat import cached_property
|
|
21
21
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -77,7 +77,7 @@ class IPConnectionsResource(SyncAPIResource):
|
|
|
77
77
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
78
78
|
outbound: OutboundIPParam | NotGiven = NOT_GIVEN,
|
|
79
79
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
80
|
-
tags:
|
|
80
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
81
81
|
transport_protocol: Literal["UDP", "TCP", "TLS"] | NotGiven = NOT_GIVEN,
|
|
82
82
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
83
83
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -226,7 +226,7 @@ class IPConnectionsResource(SyncAPIResource):
|
|
|
226
226
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
227
227
|
outbound: OutboundIPParam | NotGiven = NOT_GIVEN,
|
|
228
228
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
229
|
-
tags:
|
|
229
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
230
230
|
transport_protocol: Literal["UDP", "TCP", "TLS"] | NotGiven = NOT_GIVEN,
|
|
231
231
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
232
232
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -464,7 +464,7 @@ class AsyncIPConnectionsResource(AsyncAPIResource):
|
|
|
464
464
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
465
465
|
outbound: OutboundIPParam | NotGiven = NOT_GIVEN,
|
|
466
466
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
467
|
-
tags:
|
|
467
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
468
468
|
transport_protocol: Literal["UDP", "TCP", "TLS"] | NotGiven = NOT_GIVEN,
|
|
469
469
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
470
470
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -613,7 +613,7 @@ class AsyncIPConnectionsResource(AsyncAPIResource):
|
|
|
613
613
|
onnet_t38_passthrough_enabled: bool | NotGiven = NOT_GIVEN,
|
|
614
614
|
outbound: OutboundIPParam | NotGiven = NOT_GIVEN,
|
|
615
615
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
616
|
-
tags:
|
|
616
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
617
617
|
transport_protocol: Literal["UDP", "TCP", "TLS"] | NotGiven = NOT_GIVEN,
|
|
618
618
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
619
619
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Union
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
from typing_extensions import Literal
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@ from ...types import (
|
|
|
24
24
|
message_send_short_code_params,
|
|
25
25
|
message_send_number_pool_params,
|
|
26
26
|
)
|
|
27
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
27
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
28
28
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
29
29
|
from ..._compat import cached_property
|
|
30
30
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -148,7 +148,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
148
148
|
to: str,
|
|
149
149
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
150
150
|
from_: str | NotGiven = NOT_GIVEN,
|
|
151
|
-
media_urls:
|
|
151
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
152
152
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
153
153
|
send_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
154
154
|
subject: str | NotGiven = NOT_GIVEN,
|
|
@@ -251,7 +251,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
251
251
|
to: str,
|
|
252
252
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
253
253
|
from_: str | NotGiven = NOT_GIVEN,
|
|
254
|
-
media_urls:
|
|
254
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
255
255
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
256
256
|
send_at: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
257
257
|
subject: str | NotGiven = NOT_GIVEN,
|
|
@@ -352,8 +352,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
352
352
|
self,
|
|
353
353
|
*,
|
|
354
354
|
from_: str,
|
|
355
|
-
to:
|
|
356
|
-
media_urls:
|
|
355
|
+
to: SequenceNotStr[str],
|
|
356
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
357
357
|
subject: str | NotGiven = NOT_GIVEN,
|
|
358
358
|
text: str | NotGiven = NOT_GIVEN,
|
|
359
359
|
use_profile_webhooks: bool | NotGiven = NOT_GIVEN,
|
|
@@ -424,7 +424,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
424
424
|
from_: str,
|
|
425
425
|
to: str,
|
|
426
426
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
427
|
-
media_urls:
|
|
427
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
428
428
|
subject: str | NotGiven = NOT_GIVEN,
|
|
429
429
|
text: str | NotGiven = NOT_GIVEN,
|
|
430
430
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -507,7 +507,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
507
507
|
messaging_profile_id: str,
|
|
508
508
|
to: str,
|
|
509
509
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
510
|
-
media_urls:
|
|
510
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
511
511
|
subject: str | NotGiven = NOT_GIVEN,
|
|
512
512
|
text: str | NotGiven = NOT_GIVEN,
|
|
513
513
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -590,7 +590,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
590
590
|
from_: str,
|
|
591
591
|
to: str,
|
|
592
592
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
593
|
-
media_urls:
|
|
593
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
594
594
|
subject: str | NotGiven = NOT_GIVEN,
|
|
595
595
|
text: str | NotGiven = NOT_GIVEN,
|
|
596
596
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -769,7 +769,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
769
769
|
to: str,
|
|
770
770
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
771
771
|
from_: str | NotGiven = NOT_GIVEN,
|
|
772
|
-
media_urls:
|
|
772
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
773
773
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
774
774
|
send_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
775
775
|
subject: str | NotGiven = NOT_GIVEN,
|
|
@@ -872,7 +872,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
872
872
|
to: str,
|
|
873
873
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
874
874
|
from_: str | NotGiven = NOT_GIVEN,
|
|
875
|
-
media_urls:
|
|
875
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
876
876
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
877
877
|
send_at: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
878
878
|
subject: str | NotGiven = NOT_GIVEN,
|
|
@@ -973,8 +973,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
973
973
|
self,
|
|
974
974
|
*,
|
|
975
975
|
from_: str,
|
|
976
|
-
to:
|
|
977
|
-
media_urls:
|
|
976
|
+
to: SequenceNotStr[str],
|
|
977
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
978
978
|
subject: str | NotGiven = NOT_GIVEN,
|
|
979
979
|
text: str | NotGiven = NOT_GIVEN,
|
|
980
980
|
use_profile_webhooks: bool | NotGiven = NOT_GIVEN,
|
|
@@ -1045,7 +1045,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1045
1045
|
from_: str,
|
|
1046
1046
|
to: str,
|
|
1047
1047
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
1048
|
-
media_urls:
|
|
1048
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1049
1049
|
subject: str | NotGiven = NOT_GIVEN,
|
|
1050
1050
|
text: str | NotGiven = NOT_GIVEN,
|
|
1051
1051
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -1128,7 +1128,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1128
1128
|
messaging_profile_id: str,
|
|
1129
1129
|
to: str,
|
|
1130
1130
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
1131
|
-
media_urls:
|
|
1131
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1132
1132
|
subject: str | NotGiven = NOT_GIVEN,
|
|
1133
1133
|
text: str | NotGiven = NOT_GIVEN,
|
|
1134
1134
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -1211,7 +1211,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1211
1211
|
from_: str,
|
|
1212
1212
|
to: str,
|
|
1213
1213
|
auto_detect: bool | NotGiven = NOT_GIVEN,
|
|
1214
|
-
media_urls:
|
|
1214
|
+
media_urls: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1215
1215
|
subject: str | NotGiven = NOT_GIVEN,
|
|
1216
1216
|
text: str | NotGiven = NOT_GIVEN,
|
|
1217
1217
|
type: Literal["SMS", "MMS"] | NotGiven = NOT_GIVEN,
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
|
-
|
|
7
5
|
import httpx
|
|
8
6
|
|
|
9
7
|
from .agents import (
|
|
@@ -14,7 +12,7 @@ from .agents import (
|
|
|
14
12
|
AgentsResourceWithStreamingResponse,
|
|
15
13
|
AsyncAgentsResourceWithStreamingResponse,
|
|
16
14
|
)
|
|
17
|
-
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
15
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
18
16
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
19
17
|
from ...._compat import cached_property
|
|
20
18
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -97,7 +95,7 @@ class RcsResource(SyncAPIResource):
|
|
|
97
95
|
self,
|
|
98
96
|
*,
|
|
99
97
|
agent_id: str,
|
|
100
|
-
phone_numbers:
|
|
98
|
+
phone_numbers: SequenceNotStr[str],
|
|
101
99
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
102
100
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
103
101
|
extra_headers: Headers | None = None,
|
|
@@ -237,7 +235,7 @@ class AsyncRcsResource(AsyncAPIResource):
|
|
|
237
235
|
self,
|
|
238
236
|
*,
|
|
239
237
|
agent_id: str,
|
|
240
|
-
phone_numbers:
|
|
238
|
+
phone_numbers: SequenceNotStr[str],
|
|
241
239
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
242
240
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
243
241
|
extra_headers: Headers | None = None,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Iterable
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -22,7 +22,7 @@ from .actions import (
|
|
|
22
22
|
ActionsResourceWithStreamingResponse,
|
|
23
23
|
AsyncActionsResourceWithStreamingResponse,
|
|
24
24
|
)
|
|
25
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
25
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
26
26
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
27
27
|
from ..._compat import cached_property
|
|
28
28
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -78,7 +78,7 @@ class MessagingHostedNumberOrdersResource(SyncAPIResource):
|
|
|
78
78
|
self,
|
|
79
79
|
*,
|
|
80
80
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
81
|
-
phone_numbers:
|
|
81
|
+
phone_numbers: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
82
82
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
83
83
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
84
84
|
extra_headers: Headers | None = None,
|
|
@@ -227,7 +227,7 @@ class MessagingHostedNumberOrdersResource(SyncAPIResource):
|
|
|
227
227
|
def check_eligibility(
|
|
228
228
|
self,
|
|
229
229
|
*,
|
|
230
|
-
phone_numbers:
|
|
230
|
+
phone_numbers: SequenceNotStr[str],
|
|
231
231
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
232
232
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
233
233
|
extra_headers: Headers | None = None,
|
|
@@ -265,7 +265,7 @@ class MessagingHostedNumberOrdersResource(SyncAPIResource):
|
|
|
265
265
|
self,
|
|
266
266
|
id: str,
|
|
267
267
|
*,
|
|
268
|
-
phone_numbers:
|
|
268
|
+
phone_numbers: SequenceNotStr[str],
|
|
269
269
|
verification_method: Literal["sms", "call", "flashcall"],
|
|
270
270
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
271
271
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -374,7 +374,7 @@ class AsyncMessagingHostedNumberOrdersResource(AsyncAPIResource):
|
|
|
374
374
|
self,
|
|
375
375
|
*,
|
|
376
376
|
messaging_profile_id: str | NotGiven = NOT_GIVEN,
|
|
377
|
-
phone_numbers:
|
|
377
|
+
phone_numbers: 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,
|
|
@@ -523,7 +523,7 @@ class AsyncMessagingHostedNumberOrdersResource(AsyncAPIResource):
|
|
|
523
523
|
async def check_eligibility(
|
|
524
524
|
self,
|
|
525
525
|
*,
|
|
526
|
-
phone_numbers:
|
|
526
|
+
phone_numbers: SequenceNotStr[str],
|
|
527
527
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
528
528
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
529
529
|
extra_headers: Headers | None = None,
|
|
@@ -561,7 +561,7 @@ class AsyncMessagingHostedNumberOrdersResource(AsyncAPIResource):
|
|
|
561
561
|
self,
|
|
562
562
|
id: str,
|
|
563
563
|
*,
|
|
564
|
-
phone_numbers:
|
|
564
|
+
phone_numbers: SequenceNotStr[str],
|
|
565
565
|
verification_method: Literal["sms", "call", "flashcall"],
|
|
566
566
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
567
567
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
|
-
|
|
7
5
|
import httpx
|
|
8
6
|
|
|
9
7
|
from ..types import messaging_numbers_bulk_update_create_params
|
|
10
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
11
9
|
from .._utils import maybe_transform, async_maybe_transform
|
|
12
10
|
from .._compat import cached_property
|
|
13
11
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -48,7 +46,7 @@ class MessagingNumbersBulkUpdatesResource(SyncAPIResource):
|
|
|
48
46
|
self,
|
|
49
47
|
*,
|
|
50
48
|
messaging_profile_id: str,
|
|
51
|
-
numbers:
|
|
49
|
+
numbers: SequenceNotStr[str],
|
|
52
50
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
53
51
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
54
52
|
extra_headers: Headers | None = None,
|
|
@@ -151,7 +149,7 @@ class AsyncMessagingNumbersBulkUpdatesResource(AsyncAPIResource):
|
|
|
151
149
|
self,
|
|
152
150
|
*,
|
|
153
151
|
messaging_profile_id: str,
|
|
154
|
-
numbers:
|
|
152
|
+
numbers: SequenceNotStr[str],
|
|
155
153
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
156
154
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
157
155
|
extra_headers: Headers | None = None,
|
|
@@ -2,12 +2,11 @@
|
|
|
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
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
9
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
11
10
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
12
11
|
from ..._compat import cached_property
|
|
13
12
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -54,7 +53,7 @@ class AutorespConfigsResource(SyncAPIResource):
|
|
|
54
53
|
profile_id: str,
|
|
55
54
|
*,
|
|
56
55
|
country_code: str,
|
|
57
|
-
keywords:
|
|
56
|
+
keywords: SequenceNotStr[str],
|
|
58
57
|
op: Literal["start", "stop", "info"],
|
|
59
58
|
resp_text: str | NotGiven = NOT_GIVEN,
|
|
60
59
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -137,7 +136,7 @@ class AutorespConfigsResource(SyncAPIResource):
|
|
|
137
136
|
*,
|
|
138
137
|
profile_id: str,
|
|
139
138
|
country_code: str,
|
|
140
|
-
keywords:
|
|
139
|
+
keywords: SequenceNotStr[str],
|
|
141
140
|
op: Literal["start", "stop", "info"],
|
|
142
141
|
resp_text: str | NotGiven = NOT_GIVEN,
|
|
143
142
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -297,7 +296,7 @@ class AsyncAutorespConfigsResource(AsyncAPIResource):
|
|
|
297
296
|
profile_id: str,
|
|
298
297
|
*,
|
|
299
298
|
country_code: str,
|
|
300
|
-
keywords:
|
|
299
|
+
keywords: SequenceNotStr[str],
|
|
301
300
|
op: Literal["start", "stop", "info"],
|
|
302
301
|
resp_text: str | NotGiven = NOT_GIVEN,
|
|
303
302
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -380,7 +379,7 @@ class AsyncAutorespConfigsResource(AsyncAPIResource):
|
|
|
380
379
|
*,
|
|
381
380
|
profile_id: str,
|
|
382
381
|
country_code: str,
|
|
383
|
-
keywords:
|
|
382
|
+
keywords: SequenceNotStr[str],
|
|
384
383
|
op: Literal["start", "stop", "info"],
|
|
385
384
|
resp_text: str | NotGiven = NOT_GIVEN,
|
|
386
385
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|