telnyx 3.5.0a0__py3-none-any.whl → 3.6.0__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/_client.py +56 -756
- telnyx/_version.py +1 -1
- telnyx/resources/__init__.py +70 -0
- telnyx/resources/advanced_orders.py +63 -63
- telnyx/resources/ai/assistants/assistants.py +15 -17
- telnyx/resources/ai/assistants/versions.py +13 -15
- telnyx/resources/ai/conversations/conversations.py +137 -3
- telnyx/resources/ai/conversations/messages.py +1 -134
- telnyx/resources/brand/brand.py +8 -4
- telnyx/resources/calls/actions.py +154 -150
- telnyx/resources/calls/calls.py +18 -10
- telnyx/resources/conferences/actions.py +8 -24
- telnyx/resources/conferences/conferences.py +2 -6
- telnyx/resources/documents.py +242 -37
- telnyx/resources/legacy/__init__.py +33 -0
- telnyx/resources/legacy/legacy.py +102 -0
- telnyx/resources/legacy/reporting/__init__.py +47 -0
- telnyx/resources/legacy/reporting/batch_detail_records/__init__.py +61 -0
- telnyx/resources/legacy/reporting/batch_detail_records/batch_detail_records.py +166 -0
- telnyx/resources/legacy/reporting/batch_detail_records/messaging.py +482 -0
- telnyx/resources/legacy/reporting/batch_detail_records/speech_to_text.py +399 -0
- telnyx/resources/legacy/reporting/batch_detail_records/voice.py +539 -0
- telnyx/resources/legacy/reporting/reporting.py +134 -0
- telnyx/resources/legacy/reporting/usage_reports/__init__.py +61 -0
- telnyx/resources/legacy/reporting/usage_reports/messaging.py +471 -0
- telnyx/resources/legacy/reporting/usage_reports/number_lookup.py +464 -0
- telnyx/resources/legacy/reporting/usage_reports/usage_reports.py +288 -0
- telnyx/resources/legacy/reporting/usage_reports/voice.py +493 -0
- telnyx/resources/messaging_profiles/messaging_profiles.py +16 -0
- telnyx/resources/messaging_tollfree/verification/requests.py +203 -1
- telnyx/resources/oauth.py +855 -0
- telnyx/resources/oauth_clients.py +711 -0
- telnyx/resources/oauth_grants.py +349 -0
- telnyx/resources/outbound_voice_profiles.py +24 -4
- telnyx/resources/phone_numbers/jobs.py +12 -0
- telnyx/resources/porting_orders/porting_orders.py +20 -8
- telnyx/resources/sim_cards/actions.py +12 -12
- telnyx/resources/sim_cards/sim_cards.py +3 -2
- telnyx/resources/texml/accounts/calls/calls.py +11 -0
- telnyx/resources/texml/accounts/conferences/participants.py +11 -0
- telnyx/resources/verifications/verifications.py +10 -0
- telnyx/resources/verified_numbers/verified_numbers.py +25 -4
- telnyx/resources/verify_profiles.py +182 -1
- telnyx/resources/well_known.py +198 -0
- telnyx/types/__init__.py +51 -9
- telnyx/types/access_ip_address_list_response.py +3 -12
- telnyx/types/access_ip_range_list_response.py +3 -12
- telnyx/types/addresses/action_validate_response.py +8 -3
- telnyx/types/{advanced_order_update_params.py → advanced_order_update_requirement_group_params.py} +2 -2
- telnyx/types/ai/__init__.py +2 -3
- telnyx/types/ai/assistant_import_params.py +1 -1
- telnyx/types/ai/assistants/__init__.py +0 -3
- telnyx/types/ai/assistants_list.py +4 -88
- telnyx/types/ai/{conversations/message_create_params.py → conversation_add_message_params.py} +4 -4
- telnyx/types/ai/conversations/__init__.py +0 -1
- telnyx/types/ai/import_metadata.py +1 -1
- telnyx/types/ai/{assistant_clone_response.py → inference_embedding.py} +2 -2
- telnyx/types/ai/inference_embedding_transfer_tool_params.py +6 -0
- telnyx/types/ai/inference_embedding_transfer_tool_params_param.py +6 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params.py +2 -0
- telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +2 -0
- telnyx/types/ai/voice_settings.py +49 -2
- telnyx/types/ai/voice_settings_param.py +49 -2
- telnyx/types/brand_create_params.py +2 -1
- telnyx/types/brand_update_params.py +2 -1
- telnyx/types/call_dial_params.py +11 -3
- telnyx/types/calls/__init__.py +1 -0
- telnyx/types/calls/action_answer_params.py +1 -2
- telnyx/types/calls/action_gather_using_ai_params.py +5 -8
- telnyx/types/calls/action_start_streaming_params.py +5 -2
- telnyx/types/calls/action_start_transcription_params.py +160 -6
- telnyx/types/calls/action_transfer_params.py +50 -0
- telnyx/types/calls/telnyx_transcription_language.py +108 -0
- telnyx/types/calls/transcription_engine_b_config_param.py +3 -102
- telnyx/types/calls/transcription_start_request_param.py +161 -6
- telnyx/types/campaign_submit_appeal_response.py +0 -3
- telnyx/types/country_coverage_retrieve_country_response.py +7 -0
- telnyx/types/country_coverage_retrieve_response.py +7 -0
- telnyx/types/document_upload_json_params.py +39 -0
- telnyx/types/document_upload_json_response.py +12 -0
- telnyx/types/legacy/__init__.py +3 -0
- telnyx/types/legacy/reporting/__init__.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/__init__.py +24 -0
- telnyx/types/legacy/reporting/batch_detail_records/batch_csv_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/batch_detail_records/cdr_detailed_req_response.py +63 -0
- telnyx/types/legacy/reporting/batch_detail_records/mdr_detail_report_response.py +42 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_params.py +55 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_create_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_delete_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +15 -0
- telnyx/types/legacy/reporting/batch_detail_records/messaging_retrieve_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_params.py +19 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_delete_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_list_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.py +12 -0
- telnyx/types/legacy/reporting/batch_detail_records/stt_detail_report_response.py +27 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_params.py +57 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_create_response.py +13 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_delete_response.py +13 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +15 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_fields_response.py +23 -0
- telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/filter.py +31 -0
- telnyx/types/legacy/reporting/filter_param.py +30 -0
- telnyx/types/legacy/reporting/usage_report_retrieve_speech_to_text_params.py +17 -0
- telnyx/types/legacy/reporting/usage_report_retrieve_speech_to_text_response.py +11 -0
- telnyx/types/legacy/reporting/usage_reports/__init__.py +21 -0
- telnyx/types/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.py +43 -0
- telnyx/types/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.py +38 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_params.py +29 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_delete_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_list_params.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/messaging_retrieve_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_create_params.py +26 -0
- telnyx/types/legacy/reporting/usage_reports/number_lookup_list_params.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/standard_pagination_meta.py +17 -0
- telnyx/types/legacy/reporting/usage_reports/voice_create_params.py +40 -0
- telnyx/types/legacy/reporting/usage_reports/voice_create_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/voice_delete_response.py +13 -0
- telnyx/types/legacy/reporting/usage_reports/voice_list_params.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +15 -0
- telnyx/types/legacy/reporting/usage_reports/voice_retrieve_response.py +13 -0
- telnyx/types/message_template.py +12 -0
- telnyx/types/messaging_profile.py +3 -0
- telnyx/types/messaging_profile_create_params.py +3 -0
- telnyx/types/messaging_profile_update_params.py +3 -0
- telnyx/types/messaging_tollfree/verification/__init__.py +1 -0
- telnyx/types/messaging_tollfree/verification/request_create_params.py +51 -1
- telnyx/types/messaging_tollfree/verification/request_update_params.py +51 -1
- telnyx/types/messaging_tollfree/verification/toll_free_verification_entity_type.py +9 -0
- telnyx/types/messaging_tollfree/verification/verification_request_egress.py +24 -0
- telnyx/types/messaging_tollfree/verification/verification_request_status.py +24 -0
- telnyx/types/number_order_status_update_webhook_event.py +30 -4
- telnyx/types/oauth_client.py +59 -0
- telnyx/types/oauth_client_create_params.py +39 -0
- telnyx/types/oauth_client_create_response.py +12 -0
- telnyx/types/oauth_client_list_params.py +38 -0
- telnyx/types/oauth_client_list_response.py +15 -0
- telnyx/types/oauth_client_retrieve_response.py +12 -0
- telnyx/types/oauth_client_update_params.py +36 -0
- telnyx/types/oauth_client_update_response.py +12 -0
- telnyx/types/oauth_grant.py +29 -0
- telnyx/types/oauth_grant_delete_response.py +12 -0
- telnyx/types/oauth_grant_list_params.py +17 -0
- telnyx/types/oauth_grant_list_response.py +15 -0
- telnyx/types/oauth_grant_retrieve_response.py +12 -0
- telnyx/types/oauth_grants_params.py +15 -0
- telnyx/types/oauth_grants_response.py +10 -0
- telnyx/types/oauth_introspect_params.py +12 -0
- telnyx/types/oauth_introspect_response.py +30 -0
- telnyx/types/oauth_register_params.py +39 -0
- telnyx/types/oauth_register_response.py +45 -0
- telnyx/types/oauth_retrieve_authorize_params.py +30 -0
- telnyx/types/oauth_retrieve_jwks_response.py +25 -0
- telnyx/types/oauth_retrieve_response.py +47 -0
- telnyx/types/oauth_token_params.py +33 -0
- telnyx/types/oauth_token_response.py +25 -0
- telnyx/types/outbound_voice_profile.py +27 -1
- telnyx/types/outbound_voice_profile_create_params.py +27 -1
- telnyx/types/outbound_voice_profile_list_params.py +1 -1
- telnyx/types/outbound_voice_profile_update_params.py +27 -1
- telnyx/types/pagination_meta_cloudflare_ip_list_sync.py +15 -0
- telnyx/types/pagination_meta_oauth.py +21 -0
- telnyx/types/phone_number_blocks/__init__.py +1 -0
- telnyx/types/phone_number_blocks/job.py +3 -34
- telnyx/types/phone_number_blocks/job_error.py +32 -0
- telnyx/types/phone_number_delete_response.py +7 -0
- telnyx/types/phone_number_detailed.py +7 -0
- telnyx/types/phone_number_list_params.py +6 -0
- telnyx/types/phone_numbers/job_update_batch_params.py +7 -0
- telnyx/types/phone_numbers/phone_numbers_job.py +3 -36
- telnyx/types/porting_order.py +3 -0
- telnyx/types/porting_order_create_params.py +3 -0
- telnyx/types/porting_order_list_params.py +52 -31
- telnyx/types/porting_order_update_params.py +2 -0
- telnyx/types/porting_orders/phone_number_configuration_list_params.py +19 -19
- telnyx/types/report_list_mdrs_response.py +3 -12
- telnyx/types/reports/__init__.py +1 -0
- telnyx/types/reports/mdr_usage_report_list_response.py +3 -12
- telnyx/types/reports/pagination_meta_reporting.py +17 -0
- telnyx/types/requirement_group.py +2 -2
- telnyx/types/requirement_group_list_params.py +1 -1
- telnyx/types/shared/__init__.py +1 -0
- telnyx/types/{error.py → shared/api_error.py} +3 -3
- telnyx/types/shared/simple_sim_card.py +15 -0
- telnyx/types/sim_card.py +12 -0
- telnyx/types/sim_card_update_params.py +2 -1
- telnyx/types/stream_bidirectional_codec.py +1 -1
- telnyx/types/stream_bidirectional_sampling_rate.py +7 -0
- telnyx/types/stream_codec.py +1 -1
- telnyx/types/texml/accounts/call_calls_params.py +16 -1
- telnyx/types/texml/accounts/conferences/participant_participants_params.py +16 -1
- telnyx/types/verification_trigger_call_params.py +7 -0
- telnyx/types/verifications/__init__.py +1 -0
- telnyx/types/verifications/by_phone_number_list_response.py +4 -13
- telnyx/types/verifications/verify_meta.py +17 -0
- telnyx/types/verified_number_create_params.py +10 -0
- telnyx/types/verify_profile.py +18 -3
- telnyx/types/verify_profile_create_template_params.py +12 -0
- telnyx/types/verify_profile_list_response.py +4 -13
- telnyx/types/verify_profile_message_template_response.py +13 -0
- telnyx/types/verify_profile_retrieve_templates_response.py +4 -9
- telnyx/types/verify_profile_update_template_params.py +12 -0
- telnyx/types/well_known_retrieve_authorization_server_metadata_response.py +42 -0
- telnyx/types/well_known_retrieve_protected_resource_metadata_response.py +15 -0
- {telnyx-3.5.0a0.dist-info → telnyx-3.6.0.dist-info}/METADATA +4 -4
- {telnyx-3.5.0a0.dist-info → telnyx-3.6.0.dist-info}/RECORD +212 -121
- telnyx/types/ai/assistant_create_response.py +0 -92
- telnyx/types/ai/assistant_retrieve_response.py +0 -92
- telnyx/types/ai/assistants/version_promote_response.py +0 -92
- telnyx/types/ai/assistants/version_retrieve_response.py +0 -92
- telnyx/types/ai/assistants/version_update_response.py +0 -92
- telnyx/types/client_create_bucket_params.py +0 -13
- telnyx/types/client_delete_objects_params.py +0 -20
- telnyx/types/client_get_object_params.py +0 -15
- telnyx/types/client_list_objects_params.py +0 -13
- telnyx/types/client_put_object_params.py +0 -20
- telnyx/types/list_buckets_response.py +0 -20
- telnyx/types/list_objects_response.py +0 -24
- {telnyx-3.5.0a0.dist-info → telnyx-3.6.0.dist-info}/WHEEL +0 -0
- {telnyx-3.5.0a0.dist-info → telnyx-3.6.0.dist-info}/licenses/LICENSE +0 -0
telnyx/_version.py
CHANGED
telnyx/resources/__init__.py
CHANGED
|
@@ -80,6 +80,14 @@ from .media import (
|
|
|
80
80
|
MediaResourceWithStreamingResponse,
|
|
81
81
|
AsyncMediaResourceWithStreamingResponse,
|
|
82
82
|
)
|
|
83
|
+
from .oauth import (
|
|
84
|
+
OAuthResource,
|
|
85
|
+
AsyncOAuthResource,
|
|
86
|
+
OAuthResourceWithRawResponse,
|
|
87
|
+
AsyncOAuthResourceWithRawResponse,
|
|
88
|
+
OAuthResourceWithStreamingResponse,
|
|
89
|
+
AsyncOAuthResourceWithStreamingResponse,
|
|
90
|
+
)
|
|
83
91
|
from .rooms import (
|
|
84
92
|
RoomsResource,
|
|
85
93
|
AsyncRoomsResource,
|
|
@@ -96,6 +104,14 @@ from .texml import (
|
|
|
96
104
|
TexmlResourceWithStreamingResponse,
|
|
97
105
|
AsyncTexmlResourceWithStreamingResponse,
|
|
98
106
|
)
|
|
107
|
+
from .legacy import (
|
|
108
|
+
LegacyResource,
|
|
109
|
+
AsyncLegacyResource,
|
|
110
|
+
LegacyResourceWithRawResponse,
|
|
111
|
+
AsyncLegacyResourceWithRawResponse,
|
|
112
|
+
LegacyResourceWithStreamingResponse,
|
|
113
|
+
AsyncLegacyResourceWithStreamingResponse,
|
|
114
|
+
)
|
|
99
115
|
from .queues import (
|
|
100
116
|
QueuesResource,
|
|
101
117
|
AsyncQueuesResource,
|
|
@@ -281,6 +297,14 @@ from .recordings import (
|
|
|
281
297
|
RecordingsResourceWithStreamingResponse,
|
|
282
298
|
AsyncRecordingsResourceWithStreamingResponse,
|
|
283
299
|
)
|
|
300
|
+
from .well_known import (
|
|
301
|
+
WellKnownResource,
|
|
302
|
+
AsyncWellKnownResource,
|
|
303
|
+
WellKnownResourceWithRawResponse,
|
|
304
|
+
AsyncWellKnownResourceWithRawResponse,
|
|
305
|
+
WellKnownResourceWithStreamingResponse,
|
|
306
|
+
AsyncWellKnownResourceWithStreamingResponse,
|
|
307
|
+
)
|
|
284
308
|
from .call_events import (
|
|
285
309
|
CallEventsResource,
|
|
286
310
|
AsyncCallEventsResource,
|
|
@@ -329,6 +353,14 @@ from .audit_events import (
|
|
|
329
353
|
AuditEventsResourceWithStreamingResponse,
|
|
330
354
|
AsyncAuditEventsResourceWithStreamingResponse,
|
|
331
355
|
)
|
|
356
|
+
from .oauth_grants import (
|
|
357
|
+
OAuthGrantsResource,
|
|
358
|
+
AsyncOAuthGrantsResource,
|
|
359
|
+
OAuthGrantsResourceWithRawResponse,
|
|
360
|
+
AsyncOAuthGrantsResourceWithRawResponse,
|
|
361
|
+
OAuthGrantsResourceWithStreamingResponse,
|
|
362
|
+
AsyncOAuthGrantsResourceWithStreamingResponse,
|
|
363
|
+
)
|
|
332
364
|
from .requirements import (
|
|
333
365
|
RequirementsResource,
|
|
334
366
|
AsyncRequirementsResource,
|
|
@@ -361,6 +393,14 @@ from .number_orders import (
|
|
|
361
393
|
NumberOrdersResourceWithStreamingResponse,
|
|
362
394
|
AsyncNumberOrdersResourceWithStreamingResponse,
|
|
363
395
|
)
|
|
396
|
+
from .oauth_clients import (
|
|
397
|
+
OAuthClientsResource,
|
|
398
|
+
AsyncOAuthClientsResource,
|
|
399
|
+
OAuthClientsResourceWithRawResponse,
|
|
400
|
+
AsyncOAuthClientsResourceWithRawResponse,
|
|
401
|
+
OAuthClientsResourceWithStreamingResponse,
|
|
402
|
+
AsyncOAuthClientsResourceWithStreamingResponse,
|
|
403
|
+
)
|
|
364
404
|
from .phone_numbers import (
|
|
365
405
|
PhoneNumbersResource,
|
|
366
406
|
AsyncPhoneNumbersResource,
|
|
@@ -1171,6 +1211,30 @@ from .phone_numbers_regulatory_requirements import (
|
|
|
1171
1211
|
)
|
|
1172
1212
|
|
|
1173
1213
|
__all__ = [
|
|
1214
|
+
"LegacyResource",
|
|
1215
|
+
"AsyncLegacyResource",
|
|
1216
|
+
"LegacyResourceWithRawResponse",
|
|
1217
|
+
"AsyncLegacyResourceWithRawResponse",
|
|
1218
|
+
"LegacyResourceWithStreamingResponse",
|
|
1219
|
+
"AsyncLegacyResourceWithStreamingResponse",
|
|
1220
|
+
"OAuthResource",
|
|
1221
|
+
"AsyncOAuthResource",
|
|
1222
|
+
"OAuthResourceWithRawResponse",
|
|
1223
|
+
"AsyncOAuthResourceWithRawResponse",
|
|
1224
|
+
"OAuthResourceWithStreamingResponse",
|
|
1225
|
+
"AsyncOAuthResourceWithStreamingResponse",
|
|
1226
|
+
"OAuthClientsResource",
|
|
1227
|
+
"AsyncOAuthClientsResource",
|
|
1228
|
+
"OAuthClientsResourceWithRawResponse",
|
|
1229
|
+
"AsyncOAuthClientsResourceWithRawResponse",
|
|
1230
|
+
"OAuthClientsResourceWithStreamingResponse",
|
|
1231
|
+
"AsyncOAuthClientsResourceWithStreamingResponse",
|
|
1232
|
+
"OAuthGrantsResource",
|
|
1233
|
+
"AsyncOAuthGrantsResource",
|
|
1234
|
+
"OAuthGrantsResourceWithRawResponse",
|
|
1235
|
+
"AsyncOAuthGrantsResourceWithRawResponse",
|
|
1236
|
+
"OAuthGrantsResourceWithStreamingResponse",
|
|
1237
|
+
"AsyncOAuthGrantsResourceWithStreamingResponse",
|
|
1174
1238
|
"WebhooksResource",
|
|
1175
1239
|
"AsyncWebhooksResource",
|
|
1176
1240
|
"AccessIPAddressResource",
|
|
@@ -2049,4 +2113,10 @@ __all__ = [
|
|
|
2049
2113
|
"AsyncPartnerCampaignsResourceWithRawResponse",
|
|
2050
2114
|
"PartnerCampaignsResourceWithStreamingResponse",
|
|
2051
2115
|
"AsyncPartnerCampaignsResourceWithStreamingResponse",
|
|
2116
|
+
"WellKnownResource",
|
|
2117
|
+
"AsyncWellKnownResource",
|
|
2118
|
+
"WellKnownResourceWithRawResponse",
|
|
2119
|
+
"AsyncWellKnownResourceWithRawResponse",
|
|
2120
|
+
"WellKnownResourceWithStreamingResponse",
|
|
2121
|
+
"AsyncWellKnownResourceWithStreamingResponse",
|
|
2052
2122
|
]
|
|
@@ -7,7 +7,7 @@ from typing_extensions import Literal
|
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
|
-
from ..types import advanced_order_create_params,
|
|
10
|
+
from ..types import advanced_order_create_params, advanced_order_update_requirement_group_params
|
|
11
11
|
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
12
12
|
from .._utils import maybe_transform, async_maybe_transform
|
|
13
13
|
from .._compat import cached_property
|
|
@@ -129,9 +129,28 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
129
129
|
cast_to=object,
|
|
130
130
|
)
|
|
131
131
|
|
|
132
|
-
def
|
|
132
|
+
def list(
|
|
133
133
|
self,
|
|
134
|
-
|
|
134
|
+
*,
|
|
135
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
136
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
137
|
+
extra_headers: Headers | None = None,
|
|
138
|
+
extra_query: Query | None = None,
|
|
139
|
+
extra_body: Body | None = None,
|
|
140
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
141
|
+
) -> object:
|
|
142
|
+
"""List Advanced Orders"""
|
|
143
|
+
return self._get(
|
|
144
|
+
"/advanced_orders",
|
|
145
|
+
options=make_request_options(
|
|
146
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
147
|
+
),
|
|
148
|
+
cast_to=object,
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
def update_requirement_group(
|
|
152
|
+
self,
|
|
153
|
+
advanced_order_id: str,
|
|
135
154
|
*,
|
|
136
155
|
area_code: str | Omit = omit,
|
|
137
156
|
comments: str | Omit = omit,
|
|
@@ -162,10 +181,10 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
162
181
|
|
|
163
182
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
164
183
|
"""
|
|
165
|
-
if not
|
|
166
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
184
|
+
if not advanced_order_id:
|
|
185
|
+
raise ValueError(f"Expected a non-empty value for `advanced_order_id` but received {advanced_order_id!r}")
|
|
167
186
|
return self._patch(
|
|
168
|
-
f"/advanced_orders/{
|
|
187
|
+
f"/advanced_orders/{advanced_order_id}/requirement_group",
|
|
169
188
|
body=maybe_transform(
|
|
170
189
|
{
|
|
171
190
|
"area_code": area_code,
|
|
@@ -177,7 +196,7 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
177
196
|
"quantity": quantity,
|
|
178
197
|
"requirement_group_id": requirement_group_id,
|
|
179
198
|
},
|
|
180
|
-
|
|
199
|
+
advanced_order_update_requirement_group_params.AdvancedOrderUpdateRequirementGroupParams,
|
|
181
200
|
),
|
|
182
201
|
options=make_request_options(
|
|
183
202
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -185,25 +204,6 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
185
204
|
cast_to=object,
|
|
186
205
|
)
|
|
187
206
|
|
|
188
|
-
def list(
|
|
189
|
-
self,
|
|
190
|
-
*,
|
|
191
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
192
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
193
|
-
extra_headers: Headers | None = None,
|
|
194
|
-
extra_query: Query | None = None,
|
|
195
|
-
extra_body: Body | None = None,
|
|
196
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
197
|
-
) -> object:
|
|
198
|
-
"""List Advanced Orders"""
|
|
199
|
-
return self._get(
|
|
200
|
-
"/advanced_orders",
|
|
201
|
-
options=make_request_options(
|
|
202
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
203
|
-
),
|
|
204
|
-
cast_to=object,
|
|
205
|
-
)
|
|
206
|
-
|
|
207
207
|
|
|
208
208
|
class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
209
209
|
@cached_property
|
|
@@ -311,9 +311,28 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
311
311
|
cast_to=object,
|
|
312
312
|
)
|
|
313
313
|
|
|
314
|
-
async def
|
|
314
|
+
async def list(
|
|
315
315
|
self,
|
|
316
|
-
|
|
316
|
+
*,
|
|
317
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
318
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
319
|
+
extra_headers: Headers | None = None,
|
|
320
|
+
extra_query: Query | None = None,
|
|
321
|
+
extra_body: Body | None = None,
|
|
322
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
323
|
+
) -> object:
|
|
324
|
+
"""List Advanced Orders"""
|
|
325
|
+
return await self._get(
|
|
326
|
+
"/advanced_orders",
|
|
327
|
+
options=make_request_options(
|
|
328
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
329
|
+
),
|
|
330
|
+
cast_to=object,
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
async def update_requirement_group(
|
|
334
|
+
self,
|
|
335
|
+
advanced_order_id: str,
|
|
317
336
|
*,
|
|
318
337
|
area_code: str | Omit = omit,
|
|
319
338
|
comments: str | Omit = omit,
|
|
@@ -344,10 +363,10 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
344
363
|
|
|
345
364
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
346
365
|
"""
|
|
347
|
-
if not
|
|
348
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
366
|
+
if not advanced_order_id:
|
|
367
|
+
raise ValueError(f"Expected a non-empty value for `advanced_order_id` but received {advanced_order_id!r}")
|
|
349
368
|
return await self._patch(
|
|
350
|
-
f"/advanced_orders/{
|
|
369
|
+
f"/advanced_orders/{advanced_order_id}/requirement_group",
|
|
351
370
|
body=await async_maybe_transform(
|
|
352
371
|
{
|
|
353
372
|
"area_code": area_code,
|
|
@@ -359,7 +378,7 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
359
378
|
"quantity": quantity,
|
|
360
379
|
"requirement_group_id": requirement_group_id,
|
|
361
380
|
},
|
|
362
|
-
|
|
381
|
+
advanced_order_update_requirement_group_params.AdvancedOrderUpdateRequirementGroupParams,
|
|
363
382
|
),
|
|
364
383
|
options=make_request_options(
|
|
365
384
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -367,25 +386,6 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
367
386
|
cast_to=object,
|
|
368
387
|
)
|
|
369
388
|
|
|
370
|
-
async def list(
|
|
371
|
-
self,
|
|
372
|
-
*,
|
|
373
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
374
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
375
|
-
extra_headers: Headers | None = None,
|
|
376
|
-
extra_query: Query | None = None,
|
|
377
|
-
extra_body: Body | None = None,
|
|
378
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
379
|
-
) -> object:
|
|
380
|
-
"""List Advanced Orders"""
|
|
381
|
-
return await self._get(
|
|
382
|
-
"/advanced_orders",
|
|
383
|
-
options=make_request_options(
|
|
384
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
385
|
-
),
|
|
386
|
-
cast_to=object,
|
|
387
|
-
)
|
|
388
|
-
|
|
389
389
|
|
|
390
390
|
class AdvancedOrdersResourceWithRawResponse:
|
|
391
391
|
def __init__(self, advanced_orders: AdvancedOrdersResource) -> None:
|
|
@@ -397,12 +397,12 @@ class AdvancedOrdersResourceWithRawResponse:
|
|
|
397
397
|
self.retrieve = to_raw_response_wrapper(
|
|
398
398
|
advanced_orders.retrieve,
|
|
399
399
|
)
|
|
400
|
-
self.update = to_raw_response_wrapper(
|
|
401
|
-
advanced_orders.update,
|
|
402
|
-
)
|
|
403
400
|
self.list = to_raw_response_wrapper(
|
|
404
401
|
advanced_orders.list,
|
|
405
402
|
)
|
|
403
|
+
self.update_requirement_group = to_raw_response_wrapper(
|
|
404
|
+
advanced_orders.update_requirement_group,
|
|
405
|
+
)
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
class AsyncAdvancedOrdersResourceWithRawResponse:
|
|
@@ -415,12 +415,12 @@ class AsyncAdvancedOrdersResourceWithRawResponse:
|
|
|
415
415
|
self.retrieve = async_to_raw_response_wrapper(
|
|
416
416
|
advanced_orders.retrieve,
|
|
417
417
|
)
|
|
418
|
-
self.update = async_to_raw_response_wrapper(
|
|
419
|
-
advanced_orders.update,
|
|
420
|
-
)
|
|
421
418
|
self.list = async_to_raw_response_wrapper(
|
|
422
419
|
advanced_orders.list,
|
|
423
420
|
)
|
|
421
|
+
self.update_requirement_group = async_to_raw_response_wrapper(
|
|
422
|
+
advanced_orders.update_requirement_group,
|
|
423
|
+
)
|
|
424
424
|
|
|
425
425
|
|
|
426
426
|
class AdvancedOrdersResourceWithStreamingResponse:
|
|
@@ -433,12 +433,12 @@ class AdvancedOrdersResourceWithStreamingResponse:
|
|
|
433
433
|
self.retrieve = to_streamed_response_wrapper(
|
|
434
434
|
advanced_orders.retrieve,
|
|
435
435
|
)
|
|
436
|
-
self.update = to_streamed_response_wrapper(
|
|
437
|
-
advanced_orders.update,
|
|
438
|
-
)
|
|
439
436
|
self.list = to_streamed_response_wrapper(
|
|
440
437
|
advanced_orders.list,
|
|
441
438
|
)
|
|
439
|
+
self.update_requirement_group = to_streamed_response_wrapper(
|
|
440
|
+
advanced_orders.update_requirement_group,
|
|
441
|
+
)
|
|
442
442
|
|
|
443
443
|
|
|
444
444
|
class AsyncAdvancedOrdersResourceWithStreamingResponse:
|
|
@@ -451,9 +451,9 @@ class AsyncAdvancedOrdersResourceWithStreamingResponse:
|
|
|
451
451
|
self.retrieve = async_to_streamed_response_wrapper(
|
|
452
452
|
advanced_orders.retrieve,
|
|
453
453
|
)
|
|
454
|
-
self.update = async_to_streamed_response_wrapper(
|
|
455
|
-
advanced_orders.update,
|
|
456
|
-
)
|
|
457
454
|
self.list = async_to_streamed_response_wrapper(
|
|
458
455
|
advanced_orders.list,
|
|
459
456
|
)
|
|
457
|
+
self.update_requirement_group = async_to_streamed_response_wrapper(
|
|
458
|
+
advanced_orders.update_requirement_group,
|
|
459
|
+
)
|
|
@@ -67,17 +67,15 @@ from .scheduled_events import (
|
|
|
67
67
|
)
|
|
68
68
|
from ....types.ai.assistants_list import AssistantsList
|
|
69
69
|
from ....types.ai.enabled_features import EnabledFeatures
|
|
70
|
+
from ....types.ai.inference_embedding import InferenceEmbedding
|
|
70
71
|
from ....types.ai.assistant_tool_param import AssistantToolParam
|
|
71
72
|
from ....types.ai.voice_settings_param import VoiceSettingsParam
|
|
72
73
|
from ....types.ai.insight_settings_param import InsightSettingsParam
|
|
73
74
|
from ....types.ai.privacy_settings_param import PrivacySettingsParam
|
|
74
75
|
from ....types.ai.assistant_chat_response import AssistantChatResponse
|
|
75
|
-
from ....types.ai.assistant_clone_response import AssistantCloneResponse
|
|
76
76
|
from ....types.ai.messaging_settings_param import MessagingSettingsParam
|
|
77
77
|
from ....types.ai.telephony_settings_param import TelephonySettingsParam
|
|
78
|
-
from ....types.ai.assistant_create_response import AssistantCreateResponse
|
|
79
78
|
from ....types.ai.assistant_delete_response import AssistantDeleteResponse
|
|
80
|
-
from ....types.ai.assistant_retrieve_response import AssistantRetrieveResponse
|
|
81
79
|
from ....types.ai.transcription_settings_param import TranscriptionSettingsParam
|
|
82
80
|
|
|
83
81
|
__all__ = ["AssistantsResource", "AsyncAssistantsResource"]
|
|
@@ -148,7 +146,7 @@ class AssistantsResource(SyncAPIResource):
|
|
|
148
146
|
extra_query: Query | None = None,
|
|
149
147
|
extra_body: Body | None = None,
|
|
150
148
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
151
|
-
) ->
|
|
149
|
+
) -> InferenceEmbedding:
|
|
152
150
|
"""
|
|
153
151
|
Create a new AI Assistant.
|
|
154
152
|
|
|
@@ -214,7 +212,7 @@ class AssistantsResource(SyncAPIResource):
|
|
|
214
212
|
options=make_request_options(
|
|
215
213
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
216
214
|
),
|
|
217
|
-
cast_to=
|
|
215
|
+
cast_to=InferenceEmbedding,
|
|
218
216
|
)
|
|
219
217
|
|
|
220
218
|
def retrieve(
|
|
@@ -231,7 +229,7 @@ class AssistantsResource(SyncAPIResource):
|
|
|
231
229
|
extra_query: Query | None = None,
|
|
232
230
|
extra_body: Body | None = None,
|
|
233
231
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
234
|
-
) ->
|
|
232
|
+
) -> InferenceEmbedding:
|
|
235
233
|
"""
|
|
236
234
|
Retrieve an AI Assistant configuration by `assistant_id`.
|
|
237
235
|
|
|
@@ -263,7 +261,7 @@ class AssistantsResource(SyncAPIResource):
|
|
|
263
261
|
assistant_retrieve_params.AssistantRetrieveParams,
|
|
264
262
|
),
|
|
265
263
|
),
|
|
266
|
-
cast_to=
|
|
264
|
+
cast_to=InferenceEmbedding,
|
|
267
265
|
)
|
|
268
266
|
|
|
269
267
|
def update(
|
|
@@ -487,7 +485,7 @@ class AssistantsResource(SyncAPIResource):
|
|
|
487
485
|
extra_query: Query | None = None,
|
|
488
486
|
extra_body: Body | None = None,
|
|
489
487
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
490
|
-
) ->
|
|
488
|
+
) -> InferenceEmbedding:
|
|
491
489
|
"""
|
|
492
490
|
Clone an existing assistant, excluding telephony and messaging settings.
|
|
493
491
|
|
|
@@ -507,7 +505,7 @@ class AssistantsResource(SyncAPIResource):
|
|
|
507
505
|
options=make_request_options(
|
|
508
506
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
509
507
|
),
|
|
510
|
-
cast_to=
|
|
508
|
+
cast_to=InferenceEmbedding,
|
|
511
509
|
)
|
|
512
510
|
|
|
513
511
|
def get_texml(
|
|
@@ -547,7 +545,7 @@ class AssistantsResource(SyncAPIResource):
|
|
|
547
545
|
self,
|
|
548
546
|
*,
|
|
549
547
|
api_key_ref: str,
|
|
550
|
-
provider: Literal["elevenlabs", "vapi"],
|
|
548
|
+
provider: Literal["elevenlabs", "vapi", "retell"],
|
|
551
549
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
552
550
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
553
551
|
extra_headers: Headers | None = None,
|
|
@@ -657,7 +655,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
|
|
|
657
655
|
extra_query: Query | None = None,
|
|
658
656
|
extra_body: Body | None = None,
|
|
659
657
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
660
|
-
) ->
|
|
658
|
+
) -> InferenceEmbedding:
|
|
661
659
|
"""
|
|
662
660
|
Create a new AI Assistant.
|
|
663
661
|
|
|
@@ -723,7 +721,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
|
|
|
723
721
|
options=make_request_options(
|
|
724
722
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
725
723
|
),
|
|
726
|
-
cast_to=
|
|
724
|
+
cast_to=InferenceEmbedding,
|
|
727
725
|
)
|
|
728
726
|
|
|
729
727
|
async def retrieve(
|
|
@@ -740,7 +738,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
|
|
|
740
738
|
extra_query: Query | None = None,
|
|
741
739
|
extra_body: Body | None = None,
|
|
742
740
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
743
|
-
) ->
|
|
741
|
+
) -> InferenceEmbedding:
|
|
744
742
|
"""
|
|
745
743
|
Retrieve an AI Assistant configuration by `assistant_id`.
|
|
746
744
|
|
|
@@ -772,7 +770,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
|
|
|
772
770
|
assistant_retrieve_params.AssistantRetrieveParams,
|
|
773
771
|
),
|
|
774
772
|
),
|
|
775
|
-
cast_to=
|
|
773
|
+
cast_to=InferenceEmbedding,
|
|
776
774
|
)
|
|
777
775
|
|
|
778
776
|
async def update(
|
|
@@ -996,7 +994,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
|
|
|
996
994
|
extra_query: Query | None = None,
|
|
997
995
|
extra_body: Body | None = None,
|
|
998
996
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
999
|
-
) ->
|
|
997
|
+
) -> InferenceEmbedding:
|
|
1000
998
|
"""
|
|
1001
999
|
Clone an existing assistant, excluding telephony and messaging settings.
|
|
1002
1000
|
|
|
@@ -1016,7 +1014,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
|
|
|
1016
1014
|
options=make_request_options(
|
|
1017
1015
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1018
1016
|
),
|
|
1019
|
-
cast_to=
|
|
1017
|
+
cast_to=InferenceEmbedding,
|
|
1020
1018
|
)
|
|
1021
1019
|
|
|
1022
1020
|
async def get_texml(
|
|
@@ -1056,7 +1054,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
|
|
|
1056
1054
|
self,
|
|
1057
1055
|
*,
|
|
1058
1056
|
api_key_ref: str,
|
|
1059
|
-
provider: Literal["elevenlabs", "vapi"],
|
|
1057
|
+
provider: Literal["elevenlabs", "vapi", "retell"],
|
|
1060
1058
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1061
1059
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1062
1060
|
extra_headers: Headers | None = None,
|
|
@@ -20,6 +20,7 @@ from ...._base_client import make_request_options
|
|
|
20
20
|
from ....types.ai.assistants import version_update_params, version_retrieve_params
|
|
21
21
|
from ....types.ai.assistants_list import AssistantsList
|
|
22
22
|
from ....types.ai.enabled_features import EnabledFeatures
|
|
23
|
+
from ....types.ai.inference_embedding import InferenceEmbedding
|
|
23
24
|
from ....types.ai.assistant_tool_param import AssistantToolParam
|
|
24
25
|
from ....types.ai.voice_settings_param import VoiceSettingsParam
|
|
25
26
|
from ....types.ai.insight_settings_param import InsightSettingsParam
|
|
@@ -27,9 +28,6 @@ from ....types.ai.privacy_settings_param import PrivacySettingsParam
|
|
|
27
28
|
from ....types.ai.messaging_settings_param import MessagingSettingsParam
|
|
28
29
|
from ....types.ai.telephony_settings_param import TelephonySettingsParam
|
|
29
30
|
from ....types.ai.transcription_settings_param import TranscriptionSettingsParam
|
|
30
|
-
from ....types.ai.assistants.version_update_response import VersionUpdateResponse
|
|
31
|
-
from ....types.ai.assistants.version_promote_response import VersionPromoteResponse
|
|
32
|
-
from ....types.ai.assistants.version_retrieve_response import VersionRetrieveResponse
|
|
33
31
|
|
|
34
32
|
__all__ = ["VersionsResource", "AsyncVersionsResource"]
|
|
35
33
|
|
|
@@ -66,7 +64,7 @@ class VersionsResource(SyncAPIResource):
|
|
|
66
64
|
extra_query: Query | None = None,
|
|
67
65
|
extra_body: Body | None = None,
|
|
68
66
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
69
|
-
) ->
|
|
67
|
+
) -> InferenceEmbedding:
|
|
70
68
|
"""
|
|
71
69
|
Retrieves a specific version of an assistant by assistant_id and version_id
|
|
72
70
|
|
|
@@ -94,7 +92,7 @@ class VersionsResource(SyncAPIResource):
|
|
|
94
92
|
{"include_mcp_servers": include_mcp_servers}, version_retrieve_params.VersionRetrieveParams
|
|
95
93
|
),
|
|
96
94
|
),
|
|
97
|
-
cast_to=
|
|
95
|
+
cast_to=InferenceEmbedding,
|
|
98
96
|
)
|
|
99
97
|
|
|
100
98
|
def update(
|
|
@@ -124,7 +122,7 @@ class VersionsResource(SyncAPIResource):
|
|
|
124
122
|
extra_query: Query | None = None,
|
|
125
123
|
extra_body: Body | None = None,
|
|
126
124
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
127
|
-
) ->
|
|
125
|
+
) -> InferenceEmbedding:
|
|
128
126
|
"""Updates the configuration of a specific assistant version.
|
|
129
127
|
|
|
130
128
|
Can not update main
|
|
@@ -196,7 +194,7 @@ class VersionsResource(SyncAPIResource):
|
|
|
196
194
|
options=make_request_options(
|
|
197
195
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
198
196
|
),
|
|
199
|
-
cast_to=
|
|
197
|
+
cast_to=InferenceEmbedding,
|
|
200
198
|
)
|
|
201
199
|
|
|
202
200
|
def list(
|
|
@@ -283,7 +281,7 @@ class VersionsResource(SyncAPIResource):
|
|
|
283
281
|
extra_query: Query | None = None,
|
|
284
282
|
extra_body: Body | None = None,
|
|
285
283
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
286
|
-
) ->
|
|
284
|
+
) -> InferenceEmbedding:
|
|
287
285
|
"""
|
|
288
286
|
Promotes a specific version to be the main/current version of the assistant.
|
|
289
287
|
This will delete any existing canary deploy configuration and send all live
|
|
@@ -307,7 +305,7 @@ class VersionsResource(SyncAPIResource):
|
|
|
307
305
|
options=make_request_options(
|
|
308
306
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
309
307
|
),
|
|
310
|
-
cast_to=
|
|
308
|
+
cast_to=InferenceEmbedding,
|
|
311
309
|
)
|
|
312
310
|
|
|
313
311
|
|
|
@@ -343,7 +341,7 @@ class AsyncVersionsResource(AsyncAPIResource):
|
|
|
343
341
|
extra_query: Query | None = None,
|
|
344
342
|
extra_body: Body | None = None,
|
|
345
343
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
346
|
-
) ->
|
|
344
|
+
) -> InferenceEmbedding:
|
|
347
345
|
"""
|
|
348
346
|
Retrieves a specific version of an assistant by assistant_id and version_id
|
|
349
347
|
|
|
@@ -371,7 +369,7 @@ class AsyncVersionsResource(AsyncAPIResource):
|
|
|
371
369
|
{"include_mcp_servers": include_mcp_servers}, version_retrieve_params.VersionRetrieveParams
|
|
372
370
|
),
|
|
373
371
|
),
|
|
374
|
-
cast_to=
|
|
372
|
+
cast_to=InferenceEmbedding,
|
|
375
373
|
)
|
|
376
374
|
|
|
377
375
|
async def update(
|
|
@@ -401,7 +399,7 @@ class AsyncVersionsResource(AsyncAPIResource):
|
|
|
401
399
|
extra_query: Query | None = None,
|
|
402
400
|
extra_body: Body | None = None,
|
|
403
401
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
404
|
-
) ->
|
|
402
|
+
) -> InferenceEmbedding:
|
|
405
403
|
"""Updates the configuration of a specific assistant version.
|
|
406
404
|
|
|
407
405
|
Can not update main
|
|
@@ -473,7 +471,7 @@ class AsyncVersionsResource(AsyncAPIResource):
|
|
|
473
471
|
options=make_request_options(
|
|
474
472
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
475
473
|
),
|
|
476
|
-
cast_to=
|
|
474
|
+
cast_to=InferenceEmbedding,
|
|
477
475
|
)
|
|
478
476
|
|
|
479
477
|
async def list(
|
|
@@ -560,7 +558,7 @@ class AsyncVersionsResource(AsyncAPIResource):
|
|
|
560
558
|
extra_query: Query | None = None,
|
|
561
559
|
extra_body: Body | None = None,
|
|
562
560
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
563
|
-
) ->
|
|
561
|
+
) -> InferenceEmbedding:
|
|
564
562
|
"""
|
|
565
563
|
Promotes a specific version to be the main/current version of the assistant.
|
|
566
564
|
This will delete any existing canary deploy configuration and send all live
|
|
@@ -584,7 +582,7 @@ class AsyncVersionsResource(AsyncAPIResource):
|
|
|
584
582
|
options=make_request_options(
|
|
585
583
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
586
584
|
),
|
|
587
|
-
cast_to=
|
|
585
|
+
cast_to=InferenceEmbedding,
|
|
588
586
|
)
|
|
589
587
|
|
|
590
588
|
|