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
telnyx/_utils/_transform.py
CHANGED
|
@@ -16,18 +16,20 @@ from ._utils import (
|
|
|
16
16
|
lru_cache,
|
|
17
17
|
is_mapping,
|
|
18
18
|
is_iterable,
|
|
19
|
+
is_sequence,
|
|
19
20
|
)
|
|
20
21
|
from .._files import is_base64_file_input
|
|
22
|
+
from ._compat import get_origin, is_typeddict
|
|
21
23
|
from ._typing import (
|
|
22
24
|
is_list_type,
|
|
23
25
|
is_union_type,
|
|
24
26
|
extract_type_arg,
|
|
25
27
|
is_iterable_type,
|
|
26
28
|
is_required_type,
|
|
29
|
+
is_sequence_type,
|
|
27
30
|
is_annotated_type,
|
|
28
31
|
strip_annotated_type,
|
|
29
32
|
)
|
|
30
|
-
from .._compat import get_origin, model_dump, is_typeddict
|
|
31
33
|
|
|
32
34
|
_T = TypeVar("_T")
|
|
33
35
|
|
|
@@ -167,6 +169,8 @@ def _transform_recursive(
|
|
|
167
169
|
|
|
168
170
|
Defaults to the same value as the `annotation` argument.
|
|
169
171
|
"""
|
|
172
|
+
from .._compat import model_dump
|
|
173
|
+
|
|
170
174
|
if inner_type is None:
|
|
171
175
|
inner_type = annotation
|
|
172
176
|
|
|
@@ -184,6 +188,8 @@ def _transform_recursive(
|
|
|
184
188
|
(is_list_type(stripped_type) and is_list(data))
|
|
185
189
|
# Iterable[T]
|
|
186
190
|
or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str))
|
|
191
|
+
# Sequence[T]
|
|
192
|
+
or (is_sequence_type(stripped_type) and is_sequence(data) and not isinstance(data, str))
|
|
187
193
|
):
|
|
188
194
|
# dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
|
|
189
195
|
# intended as an iterable, so we don't transform it.
|
|
@@ -329,6 +335,8 @@ async def _async_transform_recursive(
|
|
|
329
335
|
|
|
330
336
|
Defaults to the same value as the `annotation` argument.
|
|
331
337
|
"""
|
|
338
|
+
from .._compat import model_dump
|
|
339
|
+
|
|
332
340
|
if inner_type is None:
|
|
333
341
|
inner_type = annotation
|
|
334
342
|
|
|
@@ -346,6 +354,8 @@ async def _async_transform_recursive(
|
|
|
346
354
|
(is_list_type(stripped_type) and is_list(data))
|
|
347
355
|
# Iterable[T]
|
|
348
356
|
or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str))
|
|
357
|
+
# Sequence[T]
|
|
358
|
+
or (is_sequence_type(stripped_type) and is_sequence(data) and not isinstance(data, str))
|
|
349
359
|
):
|
|
350
360
|
# dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
|
|
351
361
|
# intended as an iterable, so we don't transform it.
|
telnyx/_utils/_typing.py
CHANGED
|
@@ -15,7 +15,7 @@ from typing_extensions import (
|
|
|
15
15
|
|
|
16
16
|
from ._utils import lru_cache
|
|
17
17
|
from .._types import InheritsGeneric
|
|
18
|
-
from
|
|
18
|
+
from ._compat import is_union as _is_union
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def is_annotated_type(typ: type) -> bool:
|
|
@@ -26,6 +26,11 @@ def is_list_type(typ: type) -> bool:
|
|
|
26
26
|
return (get_origin(typ) or typ) == list
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
def is_sequence_type(typ: type) -> bool:
|
|
30
|
+
origin = get_origin(typ) or typ
|
|
31
|
+
return origin == typing_extensions.Sequence or origin == typing.Sequence or origin == _c_abc.Sequence
|
|
32
|
+
|
|
33
|
+
|
|
29
34
|
def is_iterable_type(typ: type) -> bool:
|
|
30
35
|
"""If the given type is `typing.Iterable[T]`"""
|
|
31
36
|
origin = get_origin(typ) or typ
|
telnyx/_utils/_utils.py
CHANGED
|
@@ -22,7 +22,6 @@ from typing_extensions import TypeGuard
|
|
|
22
22
|
import sniffio
|
|
23
23
|
|
|
24
24
|
from .._types import NotGiven, FileTypes, NotGivenOr, HeadersLike
|
|
25
|
-
from .._compat import parse_date as parse_date, parse_datetime as parse_datetime
|
|
26
25
|
|
|
27
26
|
_T = TypeVar("_T")
|
|
28
27
|
_TupleT = TypeVar("_TupleT", bound=Tuple[object, ...])
|
telnyx/_version.py
CHANGED
|
@@ -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
|
|
@@ -51,7 +50,7 @@ class PurchaseResource(SyncAPIResource):
|
|
|
51
50
|
product: str | NotGiven = NOT_GIVEN,
|
|
52
51
|
sim_card_group_id: str | NotGiven = NOT_GIVEN,
|
|
53
52
|
status: Literal["enabled", "disabled", "standby"] | NotGiven = NOT_GIVEN,
|
|
54
|
-
tags:
|
|
53
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
55
54
|
whitelabel_name: str | NotGiven = NOT_GIVEN,
|
|
56
55
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
57
56
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -137,7 +136,7 @@ class AsyncPurchaseResource(AsyncAPIResource):
|
|
|
137
136
|
product: str | NotGiven = NOT_GIVEN,
|
|
138
137
|
sim_card_group_id: str | NotGiven = NOT_GIVEN,
|
|
139
138
|
status: Literal["enabled", "disabled", "standby"] | NotGiven = NOT_GIVEN,
|
|
140
|
-
tags:
|
|
139
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
141
140
|
whitelabel_name: str | NotGiven = NOT_GIVEN,
|
|
142
141
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
143
142
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -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
|
|
@@ -47,10 +46,10 @@ class RegisterResource(SyncAPIResource):
|
|
|
47
46
|
def create(
|
|
48
47
|
self,
|
|
49
48
|
*,
|
|
50
|
-
registration_codes:
|
|
49
|
+
registration_codes: SequenceNotStr[str],
|
|
51
50
|
sim_card_group_id: str | NotGiven = NOT_GIVEN,
|
|
52
51
|
status: Literal["enabled", "disabled", "standby"] | NotGiven = NOT_GIVEN,
|
|
53
|
-
tags:
|
|
52
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
54
53
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
55
54
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
56
55
|
extra_headers: Headers | None = None,
|
|
@@ -121,10 +120,10 @@ class AsyncRegisterResource(AsyncAPIResource):
|
|
|
121
120
|
async def create(
|
|
122
121
|
self,
|
|
123
122
|
*,
|
|
124
|
-
registration_codes:
|
|
123
|
+
registration_codes: SequenceNotStr[str],
|
|
125
124
|
sim_card_group_id: str | NotGiven = NOT_GIVEN,
|
|
126
125
|
status: Literal["enabled", "disabled", "standby"] | NotGiven = NOT_GIVEN,
|
|
127
|
-
tags:
|
|
126
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
128
127
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
129
128
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
130
129
|
extra_headers: Headers | None = None,
|
telnyx/resources/ai/chat.py
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict,
|
|
5
|
+
from typing import Dict, Iterable
|
|
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 ...types.ai import chat_create_completion_params
|
|
@@ -51,7 +51,7 @@ class ChatResource(SyncAPIResource):
|
|
|
51
51
|
best_of: int | NotGiven = NOT_GIVEN,
|
|
52
52
|
early_stopping: bool | NotGiven = NOT_GIVEN,
|
|
53
53
|
frequency_penalty: float | NotGiven = NOT_GIVEN,
|
|
54
|
-
guided_choice:
|
|
54
|
+
guided_choice: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
55
55
|
guided_json: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
56
56
|
guided_regex: str | NotGiven = NOT_GIVEN,
|
|
57
57
|
length_penalty: float | NotGiven = NOT_GIVEN,
|
|
@@ -226,7 +226,7 @@ class AsyncChatResource(AsyncAPIResource):
|
|
|
226
226
|
best_of: int | NotGiven = NOT_GIVEN,
|
|
227
227
|
early_stopping: bool | NotGiven = NOT_GIVEN,
|
|
228
228
|
frequency_penalty: float | NotGiven = NOT_GIVEN,
|
|
229
|
-
guided_choice:
|
|
229
|
+
guided_choice: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
230
230
|
guided_json: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
231
231
|
guided_regex: str | NotGiven = NOT_GIVEN,
|
|
232
232
|
length_penalty: float | NotGiven = NOT_GIVEN,
|
telnyx/resources/ai/clusters.py
CHANGED
|
@@ -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, NoneType, NotGiven
|
|
7
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, SequenceNotStr
|
|
10
8
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
11
9
|
from ..._compat import cached_property
|
|
12
10
|
from ...types.ai import cluster_list_params, cluster_compute_params, cluster_retrieve_params, cluster_fetch_graph_params
|
|
@@ -172,7 +170,7 @@ class ClustersResource(SyncAPIResource):
|
|
|
172
170
|
self,
|
|
173
171
|
*,
|
|
174
172
|
bucket: str,
|
|
175
|
-
files:
|
|
173
|
+
files: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
176
174
|
min_cluster_size: int | NotGiven = NOT_GIVEN,
|
|
177
175
|
min_subcluster_size: int | NotGiven = NOT_GIVEN,
|
|
178
176
|
prefix: str | NotGiven = NOT_GIVEN,
|
|
@@ -415,7 +413,7 @@ class AsyncClustersResource(AsyncAPIResource):
|
|
|
415
413
|
self,
|
|
416
414
|
*,
|
|
417
415
|
bucket: str,
|
|
418
|
-
files:
|
|
416
|
+
files: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
419
417
|
min_cluster_size: int | NotGiven = NOT_GIVEN,
|
|
420
418
|
min_subcluster_size: int | NotGiven = NOT_GIVEN,
|
|
421
419
|
prefix: str | NotGiven = NOT_GIVEN,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict,
|
|
5
|
+
from typing import Dict, Union, Iterable
|
|
6
6
|
from datetime import datetime
|
|
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
|
|
@@ -50,7 +50,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
50
50
|
*,
|
|
51
51
|
role: str,
|
|
52
52
|
content: str | NotGiven = NOT_GIVEN,
|
|
53
|
-
metadata: Dict[str, Union[str, int, bool,
|
|
53
|
+
metadata: Dict[str, Union[str, int, bool, SequenceNotStr[Union[str, int, bool]]]] | NotGiven = NOT_GIVEN,
|
|
54
54
|
name: str | NotGiven = NOT_GIVEN,
|
|
55
55
|
sent_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
56
56
|
tool_call_id: str | NotGiven = NOT_GIVEN,
|
|
@@ -163,7 +163,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
163
163
|
*,
|
|
164
164
|
role: str,
|
|
165
165
|
content: str | NotGiven = NOT_GIVEN,
|
|
166
|
-
metadata: Dict[str, Union[str, int, bool,
|
|
166
|
+
metadata: Dict[str, Union[str, int, bool, SequenceNotStr[Union[str, int, bool]]]] | NotGiven = NOT_GIVEN,
|
|
167
167
|
name: str | NotGiven = NOT_GIVEN,
|
|
168
168
|
sent_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
169
169
|
tool_call_id: str | NotGiven = NOT_GIVEN,
|
|
@@ -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
|
|
@@ -15,7 +14,7 @@ from .buckets import (
|
|
|
15
14
|
BucketsResourceWithStreamingResponse,
|
|
16
15
|
AsyncBucketsResourceWithStreamingResponse,
|
|
17
16
|
)
|
|
18
|
-
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
17
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
19
18
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
20
19
|
from ...._compat import cached_property
|
|
21
20
|
from ....types.ai import (
|
|
@@ -186,7 +185,7 @@ class EmbeddingsResource(SyncAPIResource):
|
|
|
186
185
|
def list(
|
|
187
186
|
self,
|
|
188
187
|
*,
|
|
189
|
-
status:
|
|
188
|
+
status: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
190
189
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
191
190
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
192
191
|
extra_headers: Headers | None = None,
|
|
@@ -471,7 +470,7 @@ class AsyncEmbeddingsResource(AsyncAPIResource):
|
|
|
471
470
|
async def list(
|
|
472
471
|
self,
|
|
473
472
|
*,
|
|
474
|
-
status:
|
|
473
|
+
status: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
475
474
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
476
475
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
477
476
|
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
|
|
@@ -12,7 +12,7 @@ from ..types import (
|
|
|
12
12
|
call_control_application_create_params,
|
|
13
13
|
call_control_application_update_params,
|
|
14
14
|
)
|
|
15
|
-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
15
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
16
16
|
from .._utils import maybe_transform, async_maybe_transform
|
|
17
17
|
from .._compat import cached_property
|
|
18
18
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -194,7 +194,7 @@ class CallControlApplicationsResource(SyncAPIResource):
|
|
|
194
194
|
inbound: CallControlApplicationInboundParam | NotGiven = NOT_GIVEN,
|
|
195
195
|
outbound: CallControlApplicationOutboundParam | NotGiven = NOT_GIVEN,
|
|
196
196
|
redact_dtmf_debug_logging: bool | NotGiven = NOT_GIVEN,
|
|
197
|
-
tags:
|
|
197
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
198
198
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
199
199
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
200
200
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -541,7 +541,7 @@ class AsyncCallControlApplicationsResource(AsyncAPIResource):
|
|
|
541
541
|
inbound: CallControlApplicationInboundParam | NotGiven = NOT_GIVEN,
|
|
542
542
|
outbound: CallControlApplicationOutboundParam | NotGiven = NOT_GIVEN,
|
|
543
543
|
redact_dtmf_debug_logging: bool | NotGiven = NOT_GIVEN,
|
|
544
|
-
tags:
|
|
544
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
545
545
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
546
546
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
547
547
|
webhook_timeout_secs: Optional[int] | NotGiven = NOT_GIVEN,
|
telnyx/resources/calls/calls.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Union, 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
|
|
@@ -77,7 +77,7 @@ class CallsResource(SyncAPIResource):
|
|
|
77
77
|
*,
|
|
78
78
|
connection_id: str,
|
|
79
79
|
from_: str,
|
|
80
|
-
to: Union[str,
|
|
80
|
+
to: Union[str, SequenceNotStr[str]],
|
|
81
81
|
answering_machine_detection: Literal[
|
|
82
82
|
"premium", "detect", "detect_beep", "detect_words", "greeting_end", "disabled"
|
|
83
83
|
]
|
|
@@ -457,7 +457,7 @@ class AsyncCallsResource(AsyncAPIResource):
|
|
|
457
457
|
*,
|
|
458
458
|
connection_id: str,
|
|
459
459
|
from_: str,
|
|
460
|
-
to: Union[str,
|
|
460
|
+
to: Union[str, SequenceNotStr[str]],
|
|
461
461
|
answering_machine_detection: Literal[
|
|
462
462
|
"premium", "detect", "detect_beep", "detect_words", "greeting_end", "disabled"
|
|
463
463
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Any,
|
|
5
|
+
from typing import Any, Iterable, cast
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ from .brand import (
|
|
|
15
15
|
AsyncBrandResourceWithStreamingResponse,
|
|
16
16
|
)
|
|
17
17
|
from ...types import campaign_builder_create_params
|
|
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
|
|
@@ -87,8 +87,8 @@ class CampaignBuilderResource(SyncAPIResource):
|
|
|
87
87
|
subscriber_help: bool | NotGiven = NOT_GIVEN,
|
|
88
88
|
subscriber_optin: bool | NotGiven = NOT_GIVEN,
|
|
89
89
|
subscriber_optout: bool | NotGiven = NOT_GIVEN,
|
|
90
|
-
sub_usecases:
|
|
91
|
-
tag:
|
|
90
|
+
sub_usecases: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
91
|
+
tag: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
92
92
|
terms_and_conditions: bool | NotGiven = NOT_GIVEN,
|
|
93
93
|
terms_and_conditions_link: str | NotGiven = NOT_GIVEN,
|
|
94
94
|
webhook_failover_url: str | NotGiven = NOT_GIVEN,
|
|
@@ -307,8 +307,8 @@ class AsyncCampaignBuilderResource(AsyncAPIResource):
|
|
|
307
307
|
subscriber_help: bool | NotGiven = NOT_GIVEN,
|
|
308
308
|
subscriber_optin: bool | NotGiven = NOT_GIVEN,
|
|
309
309
|
subscriber_optout: bool | NotGiven = NOT_GIVEN,
|
|
310
|
-
sub_usecases:
|
|
311
|
-
tag:
|
|
310
|
+
sub_usecases: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
311
|
+
tag: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
312
312
|
terms_and_conditions: bool | NotGiven = NOT_GIVEN,
|
|
313
313
|
terms_and_conditions_link: str | NotGiven = NOT_GIVEN,
|
|
314
314
|
webhook_failover_url: str | NotGiven = NOT_GIVEN,
|
|
@@ -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
|
|
@@ -80,7 +79,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
80
79
|
call_control_id: str,
|
|
81
80
|
supervisor_role: Literal["barge", "monitor", "none", "whisper"],
|
|
82
81
|
command_id: str | NotGiven = NOT_GIVEN,
|
|
83
|
-
whisper_call_control_ids:
|
|
82
|
+
whisper_call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
84
83
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
85
84
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
86
85
|
extra_headers: Headers | None = None,
|
|
@@ -140,7 +139,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
140
139
|
id: str,
|
|
141
140
|
*,
|
|
142
141
|
audio_url: str | NotGiven = NOT_GIVEN,
|
|
143
|
-
call_control_ids:
|
|
142
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
144
143
|
media_name: str | NotGiven = NOT_GIVEN,
|
|
145
144
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
146
145
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -206,7 +205,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
206
205
|
soft_end_conference_on_exit: bool | NotGiven = NOT_GIVEN,
|
|
207
206
|
start_conference_on_enter: bool | NotGiven = NOT_GIVEN,
|
|
208
207
|
supervisor_role: Literal["barge", "monitor", "none", "whisper"] | NotGiven = NOT_GIVEN,
|
|
209
|
-
whisper_call_control_ids:
|
|
208
|
+
whisper_call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
210
209
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
211
210
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
212
211
|
extra_headers: Headers | None = None,
|
|
@@ -381,7 +380,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
381
380
|
self,
|
|
382
381
|
id: str,
|
|
383
382
|
*,
|
|
384
|
-
call_control_ids:
|
|
383
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
385
384
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
386
385
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
387
386
|
extra_headers: Headers | None = None,
|
|
@@ -420,7 +419,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
420
419
|
id: str,
|
|
421
420
|
*,
|
|
422
421
|
audio_url: str | NotGiven = NOT_GIVEN,
|
|
423
|
-
call_control_ids:
|
|
422
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
424
423
|
loop: LoopcountParam | NotGiven = NOT_GIVEN,
|
|
425
424
|
media_name: str | NotGiven = NOT_GIVEN,
|
|
426
425
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -703,7 +702,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
703
702
|
*,
|
|
704
703
|
payload: str,
|
|
705
704
|
voice: str,
|
|
706
|
-
call_control_ids:
|
|
705
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
707
706
|
command_id: str | NotGiven = NOT_GIVEN,
|
|
708
707
|
language: Literal[
|
|
709
708
|
"arb",
|
|
@@ -830,7 +829,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
830
829
|
self,
|
|
831
830
|
id: str,
|
|
832
831
|
*,
|
|
833
|
-
call_control_ids:
|
|
832
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
834
833
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
835
834
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
836
835
|
extra_headers: Headers | None = None,
|
|
@@ -868,7 +867,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
868
867
|
self,
|
|
869
868
|
id: str,
|
|
870
869
|
*,
|
|
871
|
-
call_control_ids:
|
|
870
|
+
call_control_ids: SequenceNotStr[str],
|
|
872
871
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
873
872
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
874
873
|
extra_headers: Headers | None = None,
|
|
@@ -906,7 +905,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
906
905
|
self,
|
|
907
906
|
id: str,
|
|
908
907
|
*,
|
|
909
|
-
call_control_ids:
|
|
908
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
910
909
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
911
910
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
912
911
|
extra_headers: Headers | None = None,
|
|
@@ -968,7 +967,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
968
967
|
call_control_id: str,
|
|
969
968
|
supervisor_role: Literal["barge", "monitor", "none", "whisper"],
|
|
970
969
|
command_id: str | NotGiven = NOT_GIVEN,
|
|
971
|
-
whisper_call_control_ids:
|
|
970
|
+
whisper_call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
972
971
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
973
972
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
974
973
|
extra_headers: Headers | None = None,
|
|
@@ -1028,7 +1027,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1028
1027
|
id: str,
|
|
1029
1028
|
*,
|
|
1030
1029
|
audio_url: str | NotGiven = NOT_GIVEN,
|
|
1031
|
-
call_control_ids:
|
|
1030
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1032
1031
|
media_name: str | NotGiven = NOT_GIVEN,
|
|
1033
1032
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1034
1033
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1094,7 +1093,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1094
1093
|
soft_end_conference_on_exit: bool | NotGiven = NOT_GIVEN,
|
|
1095
1094
|
start_conference_on_enter: bool | NotGiven = NOT_GIVEN,
|
|
1096
1095
|
supervisor_role: Literal["barge", "monitor", "none", "whisper"] | NotGiven = NOT_GIVEN,
|
|
1097
|
-
whisper_call_control_ids:
|
|
1096
|
+
whisper_call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1098
1097
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1099
1098
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1100
1099
|
extra_headers: Headers | None = None,
|
|
@@ -1269,7 +1268,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1269
1268
|
self,
|
|
1270
1269
|
id: str,
|
|
1271
1270
|
*,
|
|
1272
|
-
call_control_ids:
|
|
1271
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1273
1272
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1274
1273
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1275
1274
|
extra_headers: Headers | None = None,
|
|
@@ -1310,7 +1309,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1310
1309
|
id: str,
|
|
1311
1310
|
*,
|
|
1312
1311
|
audio_url: str | NotGiven = NOT_GIVEN,
|
|
1313
|
-
call_control_ids:
|
|
1312
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1314
1313
|
loop: LoopcountParam | NotGiven = NOT_GIVEN,
|
|
1315
1314
|
media_name: str | NotGiven = NOT_GIVEN,
|
|
1316
1315
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -1593,7 +1592,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1593
1592
|
*,
|
|
1594
1593
|
payload: str,
|
|
1595
1594
|
voice: str,
|
|
1596
|
-
call_control_ids:
|
|
1595
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1597
1596
|
command_id: str | NotGiven = NOT_GIVEN,
|
|
1598
1597
|
language: Literal[
|
|
1599
1598
|
"arb",
|
|
@@ -1720,7 +1719,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1720
1719
|
self,
|
|
1721
1720
|
id: str,
|
|
1722
1721
|
*,
|
|
1723
|
-
call_control_ids:
|
|
1722
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1724
1723
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1725
1724
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1726
1725
|
extra_headers: Headers | None = None,
|
|
@@ -1760,7 +1759,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1760
1759
|
self,
|
|
1761
1760
|
id: str,
|
|
1762
1761
|
*,
|
|
1763
|
-
call_control_ids:
|
|
1762
|
+
call_control_ids: SequenceNotStr[str],
|
|
1764
1763
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1765
1764
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1766
1765
|
extra_headers: Headers | None = None,
|
|
@@ -1800,7 +1799,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
1800
1799
|
self,
|
|
1801
1800
|
id: str,
|
|
1802
1801
|
*,
|
|
1803
|
-
call_control_ids:
|
|
1802
|
+
call_control_ids: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
1804
1803
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1805
1804
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1806
1805
|
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
|
|
@@ -23,7 +23,7 @@ from .actions import (
|
|
|
23
23
|
ActionsResourceWithStreamingResponse,
|
|
24
24
|
AsyncActionsResourceWithStreamingResponse,
|
|
25
25
|
)
|
|
26
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
26
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
27
27
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
28
28
|
from ..._compat import cached_property
|
|
29
29
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -92,7 +92,7 @@ class CredentialConnectionsResource(SyncAPIResource):
|
|
|
92
92
|
outbound: CredentialOutboundParam | NotGiven = NOT_GIVEN,
|
|
93
93
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
94
94
|
sip_uri_calling_preference: Literal["disabled", "unrestricted", "internal"] | NotGiven = NOT_GIVEN,
|
|
95
|
-
tags:
|
|
95
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
96
96
|
webhook_api_version: Literal["1", "2", "texml"] | NotGiven = NOT_GIVEN,
|
|
97
97
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
98
98
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
@@ -257,7 +257,7 @@ class CredentialConnectionsResource(SyncAPIResource):
|
|
|
257
257
|
password: str | NotGiven = NOT_GIVEN,
|
|
258
258
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
259
259
|
sip_uri_calling_preference: Literal["disabled", "unrestricted", "internal"] | NotGiven = NOT_GIVEN,
|
|
260
|
-
tags:
|
|
260
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
261
261
|
user_name: str | NotGiven = NOT_GIVEN,
|
|
262
262
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
263
263
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -515,7 +515,7 @@ class AsyncCredentialConnectionsResource(AsyncAPIResource):
|
|
|
515
515
|
outbound: CredentialOutboundParam | NotGiven = NOT_GIVEN,
|
|
516
516
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
517
517
|
sip_uri_calling_preference: Literal["disabled", "unrestricted", "internal"] | NotGiven = NOT_GIVEN,
|
|
518
|
-
tags:
|
|
518
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
519
519
|
webhook_api_version: Literal["1", "2", "texml"] | NotGiven = NOT_GIVEN,
|
|
520
520
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|
|
521
521
|
webhook_event_url: str | NotGiven = NOT_GIVEN,
|
|
@@ -680,7 +680,7 @@ class AsyncCredentialConnectionsResource(AsyncAPIResource):
|
|
|
680
680
|
password: str | NotGiven = NOT_GIVEN,
|
|
681
681
|
rtcp_settings: ConnectionRtcpSettingsParam | NotGiven = NOT_GIVEN,
|
|
682
682
|
sip_uri_calling_preference: Literal["disabled", "unrestricted", "internal"] | NotGiven = NOT_GIVEN,
|
|
683
|
-
tags:
|
|
683
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
684
684
|
user_name: str | NotGiven = NOT_GIVEN,
|
|
685
685
|
webhook_api_version: Literal["1", "2"] | NotGiven = NOT_GIVEN,
|
|
686
686
|
webhook_event_failover_url: Optional[str] | NotGiven = NOT_GIVEN,
|