telnyx 3.1.0__py3-none-any.whl → 3.2.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.

Files changed (72) hide show
  1. telnyx/_client.py +32 -32
  2. telnyx/_version.py +1 -1
  3. telnyx/resources/__init__.py +24 -24
  4. telnyx/resources/advanced_orders.py +63 -63
  5. telnyx/resources/legacy/reporting/batch_detail_records/messaging.py +3 -2
  6. telnyx/resources/legacy/reporting/batch_detail_records/voice.py +3 -2
  7. telnyx/resources/oauth.py +315 -317
  8. telnyx/resources/oauth_grants.py +15 -15
  9. telnyx/types/__init__.py +20 -13
  10. telnyx/types/addresses/action_validate_response.py +2 -2
  11. telnyx/types/{advanced_order_update_params.py → advanced_order_update_requirement_group_params.py} +2 -2
  12. telnyx/types/legacy/reporting/__init__.py +2 -0
  13. telnyx/types/legacy/reporting/batch_detail_records/__init__.py +3 -0
  14. telnyx/types/legacy/reporting/batch_detail_records/cdr_detailed_req_response.py +63 -0
  15. telnyx/types/legacy/reporting/batch_detail_records/mdr_detail_report_response.py +42 -0
  16. telnyx/types/legacy/reporting/batch_detail_records/messaging_create_params.py +4 -26
  17. telnyx/types/legacy/reporting/batch_detail_records/messaging_create_response.py +4 -60
  18. telnyx/types/legacy/reporting/batch_detail_records/messaging_delete_response.py +4 -60
  19. telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +3 -59
  20. telnyx/types/legacy/reporting/batch_detail_records/messaging_retrieve_response.py +4 -60
  21. telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_response.py +3 -22
  22. telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_delete_response.py +3 -22
  23. telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_list_response.py +3 -22
  24. telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.py +3 -22
  25. telnyx/types/legacy/reporting/batch_detail_records/stt_detail_report_response.py +27 -0
  26. telnyx/types/legacy/reporting/batch_detail_records/voice_create_params.py +4 -26
  27. telnyx/types/legacy/reporting/batch_detail_records/voice_create_response.py +4 -82
  28. telnyx/types/legacy/reporting/batch_detail_records/voice_delete_response.py +4 -82
  29. telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +3 -81
  30. telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_response.py +4 -82
  31. telnyx/types/legacy/reporting/filter.py +31 -0
  32. telnyx/types/legacy/reporting/filter_param.py +30 -0
  33. telnyx/types/legacy/reporting/usage_reports/__init__.py +2 -0
  34. telnyx/types/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.py +43 -0
  35. telnyx/types/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.py +38 -0
  36. telnyx/types/legacy/reporting/usage_reports/messaging_create_response.py +4 -34
  37. telnyx/types/legacy/reporting/usage_reports/messaging_delete_response.py +4 -34
  38. telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +3 -33
  39. telnyx/types/legacy/reporting/usage_reports/messaging_retrieve_response.py +4 -34
  40. telnyx/types/legacy/reporting/usage_reports/voice_create_response.py +4 -39
  41. telnyx/types/legacy/reporting/usage_reports/voice_delete_response.py +4 -39
  42. telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +3 -38
  43. telnyx/types/legacy/reporting/usage_reports/voice_retrieve_response.py +4 -39
  44. telnyx/types/oauth_client.py +59 -0
  45. telnyx/types/oauth_client_create_response.py +4 -55
  46. telnyx/types/oauth_client_list_response.py +3 -54
  47. telnyx/types/oauth_client_retrieve_response.py +4 -55
  48. telnyx/types/oauth_client_update_response.py +4 -55
  49. telnyx/types/{oauth_grant_revoke_response.py → oauth_grant.py} +2 -6
  50. telnyx/types/oauth_grant_delete_response.py +12 -0
  51. telnyx/types/oauth_grant_list_response.py +3 -24
  52. telnyx/types/oauth_grant_retrieve_response.py +4 -25
  53. telnyx/types/{oauth_create_grant_params.py → oauth_grants_params.py} +2 -2
  54. telnyx/types/{oauth_create_grant_response.py → oauth_grants_response.py} +2 -2
  55. telnyx/types/{oauth_introspect_token_params.py → oauth_introspect_params.py} +2 -2
  56. telnyx/types/{oauth_introspect_token_response.py → oauth_introspect_response.py} +2 -2
  57. telnyx/types/{oauth_register_client_params.py → oauth_register_params.py} +2 -2
  58. telnyx/types/{oauth_register_client_response.py → oauth_register_response.py} +2 -2
  59. telnyx/types/{oauth_authorize_params.py → oauth_retrieve_authorize_params.py} +2 -2
  60. telnyx/types/{oauth_retrieve_consent_response.py → oauth_retrieve_response.py} +2 -2
  61. telnyx/types/{oauth_exchange_token_params.py → oauth_token_params.py} +2 -2
  62. telnyx/types/{oauth_exchange_token_response.py → oauth_token_response.py} +2 -2
  63. telnyx/types/shared/__init__.py +1 -0
  64. telnyx/types/{error.py → shared/api_error.py} +3 -3
  65. telnyx/types/verify_profile_create_template_response.py +3 -8
  66. telnyx/types/verify_profile_message_template_response.py +13 -0
  67. telnyx/types/verify_profile_retrieve_templates_response.py +4 -9
  68. telnyx/types/verify_profile_update_template_response.py +3 -8
  69. {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/METADATA +1 -1
  70. {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/RECORD +72 -62
  71. {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/WHEEL +0 -0
  72. {telnyx-3.1.0.dist-info → telnyx-3.2.0.dist-info}/licenses/LICENSE +0 -0
@@ -17,7 +17,7 @@ from .._response import (
17
17
  )
18
18
  from .._base_client import make_request_options
19
19
  from ..types.oauth_grant_list_response import OAuthGrantListResponse
20
- from ..types.oauth_grant_revoke_response import OAuthGrantRevokeResponse
20
+ from ..types.oauth_grant_delete_response import OAuthGrantDeleteResponse
21
21
  from ..types.oauth_grant_retrieve_response import OAuthGrantRetrieveResponse
22
22
 
23
23
  __all__ = ["OAuthGrantsResource", "AsyncOAuthGrantsResource"]
@@ -122,7 +122,7 @@ class OAuthGrantsResource(SyncAPIResource):
122
122
  cast_to=OAuthGrantListResponse,
123
123
  )
124
124
 
125
- def revoke(
125
+ def delete(
126
126
  self,
127
127
  id: str,
128
128
  *,
@@ -132,7 +132,7 @@ class OAuthGrantsResource(SyncAPIResource):
132
132
  extra_query: Query | None = None,
133
133
  extra_body: Body | None = None,
134
134
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
135
- ) -> OAuthGrantRevokeResponse:
135
+ ) -> OAuthGrantDeleteResponse:
136
136
  """
137
137
  Revoke an OAuth grant
138
138
 
@@ -152,7 +152,7 @@ class OAuthGrantsResource(SyncAPIResource):
152
152
  options=make_request_options(
153
153
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
154
154
  ),
155
- cast_to=OAuthGrantRevokeResponse,
155
+ cast_to=OAuthGrantDeleteResponse,
156
156
  )
157
157
 
158
158
 
@@ -255,7 +255,7 @@ class AsyncOAuthGrantsResource(AsyncAPIResource):
255
255
  cast_to=OAuthGrantListResponse,
256
256
  )
257
257
 
258
- async def revoke(
258
+ async def delete(
259
259
  self,
260
260
  id: str,
261
261
  *,
@@ -265,7 +265,7 @@ class AsyncOAuthGrantsResource(AsyncAPIResource):
265
265
  extra_query: Query | None = None,
266
266
  extra_body: Body | None = None,
267
267
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
268
- ) -> OAuthGrantRevokeResponse:
268
+ ) -> OAuthGrantDeleteResponse:
269
269
  """
270
270
  Revoke an OAuth grant
271
271
 
@@ -285,7 +285,7 @@ class AsyncOAuthGrantsResource(AsyncAPIResource):
285
285
  options=make_request_options(
286
286
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
287
287
  ),
288
- cast_to=OAuthGrantRevokeResponse,
288
+ cast_to=OAuthGrantDeleteResponse,
289
289
  )
290
290
 
291
291
 
@@ -299,8 +299,8 @@ class OAuthGrantsResourceWithRawResponse:
299
299
  self.list = to_raw_response_wrapper(
300
300
  oauth_grants.list,
301
301
  )
302
- self.revoke = to_raw_response_wrapper(
303
- oauth_grants.revoke,
302
+ self.delete = to_raw_response_wrapper(
303
+ oauth_grants.delete,
304
304
  )
305
305
 
306
306
 
@@ -314,8 +314,8 @@ class AsyncOAuthGrantsResourceWithRawResponse:
314
314
  self.list = async_to_raw_response_wrapper(
315
315
  oauth_grants.list,
316
316
  )
317
- self.revoke = async_to_raw_response_wrapper(
318
- oauth_grants.revoke,
317
+ self.delete = async_to_raw_response_wrapper(
318
+ oauth_grants.delete,
319
319
  )
320
320
 
321
321
 
@@ -329,8 +329,8 @@ class OAuthGrantsResourceWithStreamingResponse:
329
329
  self.list = to_streamed_response_wrapper(
330
330
  oauth_grants.list,
331
331
  )
332
- self.revoke = to_streamed_response_wrapper(
333
- oauth_grants.revoke,
332
+ self.delete = to_streamed_response_wrapper(
333
+ oauth_grants.delete,
334
334
  )
335
335
 
336
336
 
@@ -344,6 +344,6 @@ class AsyncOAuthGrantsResourceWithStreamingResponse:
344
344
  self.list = async_to_streamed_response_wrapper(
345
345
  oauth_grants.list,
346
346
  )
347
- self.revoke = async_to_streamed_response_wrapper(
348
- oauth_grants.revoke,
347
+ self.delete = async_to_streamed_response_wrapper(
348
+ oauth_grants.delete,
349
349
  )
telnyx/types/__init__.py CHANGED
@@ -8,9 +8,9 @@ from .ip import IP as IP
8
8
  from .fax import Fax as Fax
9
9
  from .fqdn import Fqdn as Fqdn
10
10
  from .room import Room as Room
11
- from .error import Error as Error
12
11
  from .record import Record as Record
13
12
  from .shared import (
13
+ APIError as APIError,
14
14
  Metadata as Metadata,
15
15
  ShortCode as ShortCode,
16
16
  HostedNumber as HostedNumber,
@@ -38,10 +38,12 @@ from .conference import Conference as Conference
38
38
  from .inbound_ip import InboundIP as InboundIP
39
39
  from .sip_header import SipHeader as SipHeader
40
40
  from .entity_type import EntityType as EntityType
41
+ from .oauth_grant import OAuthGrant as OAuthGrant
41
42
  from .outbound_ip import OutboundIP as OutboundIP
42
43
  from .task_status import TaskStatus as TaskStatus
43
44
  from .inbound_fqdn import InboundFqdn as InboundFqdn
44
45
  from .month_detail import MonthDetail as MonthDetail
46
+ from .oauth_client import OAuthClient as OAuthClient
45
47
  from .phone_number import PhoneNumber as PhoneNumber
46
48
  from .record_param import RecordParam as RecordParam
47
49
  from .room_session import RoomSession as RoomSession
@@ -112,6 +114,7 @@ from .ip_delete_response import IPDeleteResponse as IPDeleteResponse
112
114
  from .ip_update_response import IPUpdateResponse as IPUpdateResponse
113
115
  from .number_block_order import NumberBlockOrder as NumberBlockOrder
114
116
  from .number_reservation import NumberReservation as NumberReservation
117
+ from .oauth_token_params import OAuthTokenParams as OAuthTokenParams
115
118
  from .porting_order_misc import PortingOrderMisc as PortingOrderMisc
116
119
  from .porting_order_type import PortingOrderType as PortingOrderType
117
120
  from .rcs_agent_response import RcsAgentResponse as RcsAgentResponse
@@ -138,6 +141,7 @@ from .media_upload_params import MediaUploadParams as MediaUploadParams
138
141
  from .message_send_params import MessageSendParams as MessageSendParams
139
142
  from .messsage_rcs_params import MesssageRcsParams as MesssageRcsParams
140
143
  from .network_list_params import NetworkListParams as NetworkListParams
144
+ from .oauth_grants_params import OAuthGrantsParams as OAuthGrantsParams
141
145
  from .outbound_fqdn_param import OutboundFqdnParam as OutboundFqdnParam
142
146
  from .portout_list_params import PortoutListParams as PortoutListParams
143
147
  from .telnyx_campaign_csp import TelnyxCampaignCsp as TelnyxCampaignCsp
@@ -156,6 +160,7 @@ from .notification_channel import NotificationChannel as NotificationChannel
156
160
  from .notification_profile import NotificationProfile as NotificationProfile
157
161
  from .notification_setting import NotificationSetting as NotificationSetting
158
162
  from .number_pool_settings import NumberPoolSettings as NumberPoolSettings
163
+ from .oauth_token_response import OAuthTokenResponse as OAuthTokenResponse
159
164
  from .rcs_suggestion_param import RcsSuggestionParam as RcsSuggestionParam
160
165
  from .region_list_response import RegionListResponse as RegionListResponse
161
166
  from .room_create_response import RoomCreateResponse as RoomCreateResponse
@@ -185,6 +190,8 @@ from .messsage_rcs_response import MesssageRcsResponse as MesssageRcsResponse
185
190
  from .network_create_params import NetworkCreateParams as NetworkCreateParams
186
191
  from .network_list_response import NetworkListResponse as NetworkListResponse
187
192
  from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
193
+ from .oauth_grants_response import OAuthGrantsResponse as OAuthGrantsResponse
194
+ from .oauth_register_params import OAuthRegisterParams as OAuthRegisterParams
188
195
  from .phone_number_campaign import PhoneNumberCampaign as PhoneNumberCampaign
189
196
  from .phone_number_detailed import PhoneNumberDetailed as PhoneNumberDetailed
190
197
  from .portout_list_response import PortoutListResponse as PortoutListResponse
@@ -203,7 +210,6 @@ from .document_upload_params import DocumentUploadParams as DocumentUploadParams
203
210
  from .enum_retrieve_response import EnumRetrieveResponse as EnumRetrieveResponse
204
211
  from .fqdn_retrieve_response import FqdnRetrieveResponse as FqdnRetrieveResponse
205
212
  from .gcs_configuration_data import GcsConfigurationData as GcsConfigurationData
206
- from .oauth_authorize_params import OAuthAuthorizeParams as OAuthAuthorizeParams
207
213
  from .ota_update_list_params import OtaUpdateListParams as OtaUpdateListParams
208
214
  from .outbound_voice_profile import OutboundVoiceProfile as OutboundVoiceProfile
209
215
  from .porting_order_end_user import PortingOrderEndUser as PortingOrderEndUser
@@ -237,6 +243,9 @@ from .network_create_response import NetworkCreateResponse as NetworkCreateRespo
237
243
  from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse
238
244
  from .network_update_response import NetworkUpdateResponse as NetworkUpdateResponse
239
245
  from .oauth_grant_list_params import OAuthGrantListParams as OAuthGrantListParams
246
+ from .oauth_introspect_params import OAuthIntrospectParams as OAuthIntrospectParams
247
+ from .oauth_register_response import OAuthRegisterResponse as OAuthRegisterResponse
248
+ from .oauth_retrieve_response import OAuthRetrieveResponse as OAuthRetrieveResponse
240
249
  from .outbound_call_recording import OutboundCallRecording as OutboundCallRecording
241
250
  from .porting_order_documents import PortingOrderDocuments as PortingOrderDocuments
242
251
  from .porting_order_messaging import PortingOrderMessaging as PortingOrderMessaging
@@ -295,8 +304,8 @@ from .message_retrieve_response import MessageRetrieveResponse as MessageRetriev
295
304
  from .message_schedule_response import MessageScheduleResponse as MessageScheduleResponse
296
305
  from .network_retrieve_response import NetworkRetrieveResponse as NetworkRetrieveResponse
297
306
  from .number_order_phone_number import NumberOrderPhoneNumber as NumberOrderPhoneNumber
298
- from .oauth_create_grant_params import OAuthCreateGrantParams as OAuthCreateGrantParams
299
307
  from .oauth_grant_list_response import OAuthGrantListResponse as OAuthGrantListResponse
308
+ from .oauth_introspect_response import OAuthIntrospectResponse as OAuthIntrospectResponse
300
309
  from .porting_order_list_params import PortingOrderListParams as PortingOrderListParams
301
310
  from .porting_order_requirement import PortingOrderRequirement as PortingOrderRequirement
302
311
  from .portout_retrieve_response import PortoutRetrieveResponse as PortoutRetrieveResponse
@@ -355,9 +364,7 @@ from .ip_connection_list_response import IPConnectionListResponse as IPConnectio
355
364
  from .ip_connection_update_params import IPConnectionUpdateParams as IPConnectionUpdateParams
356
365
  from .ledger_billing_group_report import LedgerBillingGroupReport as LedgerBillingGroupReport
357
366
  from .managed_account_list_params import ManagedAccountListParams as ManagedAccountListParams
358
- from .oauth_create_grant_response import OAuthCreateGrantResponse as OAuthCreateGrantResponse
359
- from .oauth_exchange_token_params import OAuthExchangeTokenParams as OAuthExchangeTokenParams
360
- from .oauth_grant_revoke_response import OAuthGrantRevokeResponse as OAuthGrantRevokeResponse
367
+ from .oauth_grant_delete_response import OAuthGrantDeleteResponse as OAuthGrantDeleteResponse
361
368
  from .porting_order_create_params import PortingOrderCreateParams as PortingOrderCreateParams
362
369
  from .porting_order_list_response import PortingOrderListResponse as PortingOrderListResponse
363
370
  from .porting_order_update_params import PortingOrderUpdateParams as PortingOrderUpdateParams
@@ -368,7 +375,6 @@ from .s3_configuration_data_param import S3ConfigurationDataParam as S3Configura
368
375
  from .transcription_webhook_event import TranscriptionWebhookEvent as TranscriptionWebhookEvent
369
376
  from .verified_number_list_params import VerifiedNumberListParams as VerifiedNumberListParams
370
377
  from .advanced_order_create_params import AdvancedOrderCreateParams as AdvancedOrderCreateParams
371
- from .advanced_order_update_params import AdvancedOrderUpdateParams as AdvancedOrderUpdateParams
372
378
  from .call_initiated_webhook_event import CallInitiatedWebhookEvent as CallInitiatedWebhookEvent
373
379
  from .campaign_deactivate_response import CampaignDeactivateResponse as CampaignDeactivateResponse
374
380
  from .channel_zone_update_response import ChannelZoneUpdateResponse as ChannelZoneUpdateResponse
@@ -383,7 +389,6 @@ from .number_order_create_response import NumberOrderCreateResponse as NumberOrd
383
389
  from .number_order_update_response import NumberOrderUpdateResponse as NumberOrderUpdateResponse
384
390
  from .oauth_client_create_response import OAuthClientCreateResponse as OAuthClientCreateResponse
385
391
  from .oauth_client_update_response import OAuthClientUpdateResponse as OAuthClientUpdateResponse
386
- from .oauth_register_client_params import OAuthRegisterClientParams as OAuthRegisterClientParams
387
392
  from .oauth_retrieve_jwks_response import OAuthRetrieveJwksResponse as OAuthRetrieveJwksResponse
388
393
  from .ota_update_retrieve_response import OtaUpdateRetrieveResponse as OtaUpdateRetrieveResponse
389
394
  from .partner_campaign_list_params import PartnerCampaignListParams as PartnerCampaignListParams
@@ -445,9 +450,7 @@ from .message_send_long_code_params import MessageSendLongCodeParams as MessageS
445
450
  from .messaging_profile_list_params import MessagingProfileListParams as MessagingProfileListParams
446
451
  from .number_lookup_retrieve_params import NumberLookupRetrieveParams as NumberLookupRetrieveParams
447
452
  from .numbers_feature_create_params import NumbersFeatureCreateParams as NumbersFeatureCreateParams
448
- from .oauth_exchange_token_response import OAuthExchangeTokenResponse as OAuthExchangeTokenResponse
449
453
  from .oauth_grant_retrieve_response import OAuthGrantRetrieveResponse as OAuthGrantRetrieveResponse
450
- from .oauth_introspect_token_params import OAuthIntrospectTokenParams as OAuthIntrospectTokenParams
451
454
  from .outbound_call_recording_param import OutboundCallRecordingParam as OutboundCallRecordingParam
452
455
  from .phone_number_slim_list_params import PhoneNumberSlimListParams as PhoneNumberSlimListParams
453
456
  from .porting_order_create_response import PortingOrderCreateResponse as PortingOrderCreateResponse
@@ -477,7 +480,6 @@ from .number_block_order_list_params import NumberBlockOrderListParams as Number
477
480
  from .number_order_retrieve_response import NumberOrderRetrieveResponse as NumberOrderRetrieveResponse
478
481
  from .number_reservation_list_params import NumberReservationListParams as NumberReservationListParams
479
482
  from .oauth_client_retrieve_response import OAuthClientRetrieveResponse as OAuthClientRetrieveResponse
480
- from .oauth_register_client_response import OAuthRegisterClientResponse as OAuthRegisterClientResponse
481
483
  from .partner_campaign_list_response import PartnerCampaignListResponse as PartnerCampaignListResponse
482
484
  from .partner_campaign_update_params import PartnerCampaignUpdateParams as PartnerCampaignUpdateParams
483
485
  from .phone_number_retrieve_response import PhoneNumberRetrieveResponse as PhoneNumberRetrieveResponse
@@ -535,8 +537,7 @@ from .messaging_profile_update_params import MessagingProfileUpdateParams as Mes
535
537
  from .number_lookup_retrieve_response import NumberLookupRetrieveResponse as NumberLookupRetrieveResponse
536
538
  from .number_order_with_phone_numbers import NumberOrderWithPhoneNumbers as NumberOrderWithPhoneNumbers
537
539
  from .numbers_feature_create_response import NumbersFeatureCreateResponse as NumbersFeatureCreateResponse
538
- from .oauth_introspect_token_response import OAuthIntrospectTokenResponse as OAuthIntrospectTokenResponse
539
- from .oauth_retrieve_consent_response import OAuthRetrieveConsentResponse as OAuthRetrieveConsentResponse
540
+ from .oauth_retrieve_authorize_params import OAuthRetrieveAuthorizeParams as OAuthRetrieveAuthorizeParams
540
541
  from .phone_number_slim_list_response import PhoneNumberSlimListResponse as PhoneNumberSlimListResponse
541
542
  from .porting_order_end_user_location import PortingOrderEndUserLocation as PortingOrderEndUserLocation
542
543
  from .porting_order_retrieve_response import PortingOrderRetrieveResponse as PortingOrderRetrieveResponse
@@ -1016,6 +1017,9 @@ from .regulatory_requirement_retrieve_response import (
1016
1017
  from .sub_number_orders_report_create_response import (
1017
1018
  SubNumberOrdersReportCreateResponse as SubNumberOrdersReportCreateResponse,
1018
1019
  )
1020
+ from .verify_profile_message_template_response import (
1021
+ VerifyProfileMessageTemplateResponse as VerifyProfileMessageTemplateResponse,
1022
+ )
1019
1023
  from .authentication_provider_retrieve_response import (
1020
1024
  AuthenticationProviderRetrieveResponse as AuthenticationProviderRetrieveResponse,
1021
1025
  )
@@ -1202,6 +1206,9 @@ from .seti_retrieve_black_box_test_results_response import (
1202
1206
  from .virtual_cross_connects_coverage_list_response import (
1203
1207
  VirtualCrossConnectsCoverageListResponse as VirtualCrossConnectsCoverageListResponse,
1204
1208
  )
1209
+ from .advanced_order_update_requirement_group_params import (
1210
+ AdvancedOrderUpdateRequirementGroupParams as AdvancedOrderUpdateRequirementGroupParams,
1211
+ )
1205
1212
  from .porting_order_phone_number_configuration_param import (
1206
1213
  PortingOrderPhoneNumberConfigurationParam as PortingOrderPhoneNumberConfigurationParam,
1207
1214
  )
@@ -5,8 +5,8 @@ from typing_extensions import Literal
5
5
 
6
6
  from pydantic import Field as FieldInfo
7
7
 
8
- from ..error import Error
9
8
  from ..._models import BaseModel
9
+ from ..shared.api_error import APIError
10
10
 
11
11
  __all__ = ["ActionValidateResponse", "Data", "DataSuggested"]
12
12
 
@@ -59,7 +59,7 @@ class Data(BaseModel):
59
59
  suggested: DataSuggested
60
60
  """Provides normalized address when available."""
61
61
 
62
- errors: Optional[List[Error]] = None
62
+ errors: Optional[List[APIError]] = None
63
63
 
64
64
  record_type: Optional[str] = None
65
65
  """Identifies the type of the resource."""
@@ -5,10 +5,10 @@ from __future__ import annotations
5
5
  from typing import List
6
6
  from typing_extensions import Literal, TypedDict
7
7
 
8
- __all__ = ["AdvancedOrderUpdateParams"]
8
+ __all__ = ["AdvancedOrderUpdateRequirementGroupParams"]
9
9
 
10
10
 
11
- class AdvancedOrderUpdateParams(TypedDict, total=False):
11
+ class AdvancedOrderUpdateRequirementGroupParams(TypedDict, total=False):
12
12
  area_code: str
13
13
 
14
14
  comments: str
@@ -2,6 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from .filter import Filter as Filter
6
+ from .filter_param import FilterParam as FilterParam
5
7
  from .usage_report_retrieve_speech_to_text_params import (
6
8
  UsageReportRetrieveSpeechToTextParams as UsageReportRetrieveSpeechToTextParams,
7
9
  )
@@ -9,8 +9,11 @@ from .voice_delete_response import VoiceDeleteResponse as VoiceDeleteResponse
9
9
  from .messaging_create_params import MessagingCreateParams as MessagingCreateParams
10
10
  from .messaging_list_response import MessagingListResponse as MessagingListResponse
11
11
  from .voice_retrieve_response import VoiceRetrieveResponse as VoiceRetrieveResponse
12
+ from .cdr_detailed_req_response import CdrDetailedReqResponse as CdrDetailedReqResponse
12
13
  from .messaging_create_response import MessagingCreateResponse as MessagingCreateResponse
13
14
  from .messaging_delete_response import MessagingDeleteResponse as MessagingDeleteResponse
15
+ from .mdr_detail_report_response import MdrDetailReportResponse as MdrDetailReportResponse
16
+ from .stt_detail_report_response import SttDetailReportResponse as SttDetailReportResponse
14
17
  from .messaging_retrieve_response import MessagingRetrieveResponse as MessagingRetrieveResponse
15
18
  from .speech_to_text_create_params import SpeechToTextCreateParams as SpeechToTextCreateParams
16
19
  from .speech_to_text_list_response import SpeechToTextListResponse as SpeechToTextListResponse
@@ -0,0 +1,63 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+
5
+ from ..filter import Filter
6
+ from ....._models import BaseModel
7
+
8
+ __all__ = ["CdrDetailedReqResponse"]
9
+
10
+
11
+ class CdrDetailedReqResponse(BaseModel):
12
+ id: Optional[str] = None
13
+ """Unique identifier for the report"""
14
+
15
+ call_types: Optional[List[int]] = None
16
+ """List of call types (Inbound = 1, Outbound = 2)"""
17
+
18
+ connections: Optional[List[int]] = None
19
+ """List of connections"""
20
+
21
+ created_at: Optional[str] = None
22
+ """Creation date of the report"""
23
+
24
+ end_time: Optional[str] = None
25
+ """End time in ISO format"""
26
+
27
+ filters: Optional[List[Filter]] = None
28
+ """List of filters"""
29
+
30
+ managed_accounts: Optional[List[str]] = None
31
+ """List of managed accounts"""
32
+
33
+ record_type: Optional[str] = None
34
+
35
+ record_types: Optional[List[int]] = None
36
+ """List of record types (Complete = 1, Incomplete = 2, Errors = 3)"""
37
+
38
+ report_name: Optional[str] = None
39
+ """Name of the report"""
40
+
41
+ report_url: Optional[str] = None
42
+ """URL to download the report"""
43
+
44
+ retry: Optional[int] = None
45
+ """Number of retries"""
46
+
47
+ source: Optional[str] = None
48
+ """Source of the report.
49
+
50
+ Valid values: calls (default), call-control, fax-api, webrtc
51
+ """
52
+
53
+ start_time: Optional[str] = None
54
+ """Start time in ISO format"""
55
+
56
+ status: Optional[int] = None
57
+ """Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)"""
58
+
59
+ timezone: Optional[str] = None
60
+ """Timezone for the report"""
61
+
62
+ updated_at: Optional[str] = None
63
+ """Last update date of the report"""
@@ -0,0 +1,42 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from ..filter import Filter
8
+ from ....._models import BaseModel
9
+
10
+ __all__ = ["MdrDetailReportResponse"]
11
+
12
+
13
+ class MdrDetailReportResponse(BaseModel):
14
+ id: Optional[str] = None
15
+ """Identifies the resource"""
16
+
17
+ connections: Optional[List[int]] = None
18
+
19
+ created_at: Optional[datetime] = None
20
+
21
+ directions: Optional[List[Literal["INBOUND", "OUTBOUND"]]] = None
22
+
23
+ end_date: Optional[datetime] = None
24
+
25
+ filters: Optional[List[Filter]] = None
26
+
27
+ profiles: Optional[List[str]] = None
28
+ """List of messaging profile IDs"""
29
+
30
+ record_type: Optional[str] = None
31
+
32
+ record_types: Optional[List[Literal["INCOMPLETE", "COMPLETED", "ERRORS"]]] = None
33
+
34
+ report_name: Optional[str] = None
35
+
36
+ report_url: Optional[str] = None
37
+
38
+ start_date: Optional[datetime] = None
39
+
40
+ status: Optional[Literal["PENDING", "COMPLETE", "FAILED", "EXPIRED"]] = None
41
+
42
+ updated_at: Optional[datetime] = None
@@ -4,12 +4,13 @@ from __future__ import annotations
4
4
 
5
5
  from typing import Union, Iterable
6
6
  from datetime import datetime
7
- from typing_extensions import Literal, Required, Annotated, TypedDict
7
+ from typing_extensions import Required, Annotated, TypedDict
8
8
 
9
9
  from ....._types import SequenceNotStr
10
10
  from ....._utils import PropertyInfo
11
+ from ..filter_param import FilterParam
11
12
 
12
- __all__ = ["MessagingCreateParams", "Filter"]
13
+ __all__ = ["MessagingCreateParams"]
13
14
 
14
15
 
15
16
  class MessagingCreateParams(TypedDict, total=False):
@@ -29,7 +30,7 @@ class MessagingCreateParams(TypedDict, total=False):
29
30
  directions: Iterable[int]
30
31
  """List of directions to filter by (Inbound = 1, Outbound = 2)"""
31
32
 
32
- filters: Iterable[Filter]
33
+ filters: Iterable[FilterParam]
33
34
  """List of filters to apply"""
34
35
 
35
36
  include_message_body: bool
@@ -52,26 +53,3 @@ class MessagingCreateParams(TypedDict, total=False):
52
53
 
53
54
  timezone: str
54
55
  """Timezone for the report"""
55
-
56
-
57
- class Filter(TypedDict, total=False):
58
- billing_group: str
59
- """Billing group UUID to filter by"""
60
-
61
- cld: str
62
- """Called line identification (destination number)"""
63
-
64
- cld_filter: Literal["contains", "starts_with", "ends_with"]
65
- """Filter type for CLD matching"""
66
-
67
- cli: str
68
- """Calling line identification (caller ID)"""
69
-
70
- cli_filter: Literal["contains", "starts_with", "ends_with"]
71
- """Filter type for CLI matching"""
72
-
73
- filter_type: Literal["and", "or"]
74
- """Logical operator for combining filters"""
75
-
76
- tags_list: str
77
- """Tag name to filter by"""
@@ -1,68 +1,12 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import List, Optional
4
- from datetime import datetime
5
- from typing_extensions import Literal
3
+ from typing import Optional
6
4
 
7
5
  from ....._models import BaseModel
6
+ from .mdr_detail_report_response import MdrDetailReportResponse
8
7
 
9
- __all__ = ["MessagingCreateResponse", "Data", "DataFilter"]
10
-
11
-
12
- class DataFilter(BaseModel):
13
- billing_group: Optional[str] = None
14
- """Billing group UUID to filter by"""
15
-
16
- cld: Optional[str] = None
17
- """Called line identification (destination number)"""
18
-
19
- cld_filter: Optional[Literal["contains", "starts_with", "ends_with"]] = None
20
- """Filter type for CLD matching"""
21
-
22
- cli: Optional[str] = None
23
- """Calling line identification (caller ID)"""
24
-
25
- cli_filter: Optional[Literal["contains", "starts_with", "ends_with"]] = None
26
- """Filter type for CLI matching"""
27
-
28
- filter_type: Optional[Literal["and", "or"]] = None
29
- """Logical operator for combining filters"""
30
-
31
- tags_list: Optional[str] = None
32
- """Tag name to filter by"""
33
-
34
-
35
- class Data(BaseModel):
36
- id: Optional[str] = None
37
- """Identifies the resource"""
38
-
39
- connections: Optional[List[int]] = None
40
-
41
- created_at: Optional[datetime] = None
42
-
43
- directions: Optional[List[Literal["INBOUND", "OUTBOUND"]]] = None
44
-
45
- end_date: Optional[datetime] = None
46
-
47
- filters: Optional[List[DataFilter]] = None
48
-
49
- profiles: Optional[List[str]] = None
50
- """List of messaging profile IDs"""
51
-
52
- record_type: Optional[str] = None
53
-
54
- record_types: Optional[List[Literal["INCOMPLETE", "COMPLETED", "ERRORS"]]] = None
55
-
56
- report_name: Optional[str] = None
57
-
58
- report_url: Optional[str] = None
59
-
60
- start_date: Optional[datetime] = None
61
-
62
- status: Optional[Literal["PENDING", "COMPLETE", "FAILED", "EXPIRED"]] = None
63
-
64
- updated_at: Optional[datetime] = None
8
+ __all__ = ["MessagingCreateResponse"]
65
9
 
66
10
 
67
11
  class MessagingCreateResponse(BaseModel):
68
- data: Optional[Data] = None
12
+ data: Optional[MdrDetailReportResponse] = None
@@ -1,68 +1,12 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import List, Optional
4
- from datetime import datetime
5
- from typing_extensions import Literal
3
+ from typing import Optional
6
4
 
7
5
  from ....._models import BaseModel
6
+ from .mdr_detail_report_response import MdrDetailReportResponse
8
7
 
9
- __all__ = ["MessagingDeleteResponse", "Data", "DataFilter"]
10
-
11
-
12
- class DataFilter(BaseModel):
13
- billing_group: Optional[str] = None
14
- """Billing group UUID to filter by"""
15
-
16
- cld: Optional[str] = None
17
- """Called line identification (destination number)"""
18
-
19
- cld_filter: Optional[Literal["contains", "starts_with", "ends_with"]] = None
20
- """Filter type for CLD matching"""
21
-
22
- cli: Optional[str] = None
23
- """Calling line identification (caller ID)"""
24
-
25
- cli_filter: Optional[Literal["contains", "starts_with", "ends_with"]] = None
26
- """Filter type for CLI matching"""
27
-
28
- filter_type: Optional[Literal["and", "or"]] = None
29
- """Logical operator for combining filters"""
30
-
31
- tags_list: Optional[str] = None
32
- """Tag name to filter by"""
33
-
34
-
35
- class Data(BaseModel):
36
- id: Optional[str] = None
37
- """Identifies the resource"""
38
-
39
- connections: Optional[List[int]] = None
40
-
41
- created_at: Optional[datetime] = None
42
-
43
- directions: Optional[List[Literal["INBOUND", "OUTBOUND"]]] = None
44
-
45
- end_date: Optional[datetime] = None
46
-
47
- filters: Optional[List[DataFilter]] = None
48
-
49
- profiles: Optional[List[str]] = None
50
- """List of messaging profile IDs"""
51
-
52
- record_type: Optional[str] = None
53
-
54
- record_types: Optional[List[Literal["INCOMPLETE", "COMPLETED", "ERRORS"]]] = None
55
-
56
- report_name: Optional[str] = None
57
-
58
- report_url: Optional[str] = None
59
-
60
- start_date: Optional[datetime] = None
61
-
62
- status: Optional[Literal["PENDING", "COMPLETE", "FAILED", "EXPIRED"]] = None
63
-
64
- updated_at: Optional[datetime] = None
8
+ __all__ = ["MessagingDeleteResponse"]
65
9
 
66
10
 
67
11
  class MessagingDeleteResponse(BaseModel):
68
- data: Optional[Data] = None
12
+ data: Optional[MdrDetailReportResponse] = None