telnyx 3.5.0__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.

Files changed (66) hide show
  1. telnyx/_version.py +1 -1
  2. telnyx/resources/ai/assistants/assistants.py +13 -15
  3. telnyx/resources/ai/assistants/versions.py +13 -15
  4. telnyx/resources/calls/actions.py +4 -2
  5. telnyx/resources/calls/calls.py +4 -2
  6. telnyx/resources/documents.py +242 -37
  7. telnyx/resources/messaging_tollfree/verification/requests.py +6 -9
  8. telnyx/resources/verify_profiles.py +9 -10
  9. telnyx/types/__init__.py +8 -6
  10. telnyx/types/access_ip_address_list_response.py +3 -12
  11. telnyx/types/access_ip_range_list_response.py +3 -12
  12. telnyx/types/ai/__init__.py +1 -3
  13. telnyx/types/ai/assistants/__init__.py +0 -3
  14. telnyx/types/ai/assistants_list.py +4 -88
  15. telnyx/types/ai/{assistant_clone_response.py → inference_embedding.py} +2 -2
  16. telnyx/types/call_dial_params.py +2 -1
  17. telnyx/types/calls/__init__.py +1 -0
  18. telnyx/types/calls/action_start_streaming_params.py +2 -1
  19. telnyx/types/calls/action_start_transcription_params.py +2 -102
  20. telnyx/types/calls/telnyx_transcription_language.py +108 -0
  21. telnyx/types/calls/transcription_engine_b_config_param.py +3 -102
  22. telnyx/types/calls/transcription_start_request_param.py +2 -102
  23. telnyx/types/document_upload_json_params.py +39 -0
  24. telnyx/types/document_upload_json_response.py +12 -0
  25. telnyx/types/legacy/reporting/batch_detail_records/__init__.py +1 -0
  26. telnyx/types/legacy/reporting/batch_detail_records/batch_csv_pagination_meta.py +17 -0
  27. telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +3 -12
  28. telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +3 -12
  29. telnyx/types/legacy/reporting/usage_reports/__init__.py +1 -0
  30. telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +3 -12
  31. telnyx/types/legacy/reporting/usage_reports/standard_pagination_meta.py +17 -0
  32. telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +3 -12
  33. telnyx/types/{verify_profile_create_template_response.py → message_template.py} +2 -2
  34. telnyx/types/messaging_tollfree/verification/__init__.py +1 -0
  35. telnyx/types/messaging_tollfree/verification/request_create_params.py +3 -5
  36. telnyx/types/messaging_tollfree/verification/request_update_params.py +3 -5
  37. telnyx/types/messaging_tollfree/verification/toll_free_verification_entity_type.py +9 -0
  38. telnyx/types/messaging_tollfree/verification/verification_request_egress.py +2 -4
  39. telnyx/types/messaging_tollfree/verification/verification_request_status.py +2 -4
  40. telnyx/types/oauth_client_list_response.py +3 -16
  41. telnyx/types/oauth_grant_list_response.py +3 -16
  42. telnyx/types/pagination_meta_cloudflare_ip_list_sync.py +15 -0
  43. telnyx/types/pagination_meta_oauth.py +21 -0
  44. telnyx/types/phone_number_blocks/__init__.py +1 -0
  45. telnyx/types/phone_number_blocks/job.py +3 -34
  46. telnyx/types/phone_number_blocks/job_error.py +32 -0
  47. telnyx/types/phone_numbers/phone_numbers_job.py +3 -36
  48. telnyx/types/report_list_mdrs_response.py +3 -12
  49. telnyx/types/reports/__init__.py +1 -0
  50. telnyx/types/reports/mdr_usage_report_list_response.py +3 -12
  51. telnyx/types/reports/pagination_meta_reporting.py +17 -0
  52. telnyx/types/stream_bidirectional_sampling_rate.py +7 -0
  53. telnyx/types/verifications/__init__.py +1 -0
  54. telnyx/types/verifications/by_phone_number_list_response.py +4 -13
  55. telnyx/types/verifications/verify_meta.py +17 -0
  56. telnyx/types/verify_profile_list_response.py +4 -13
  57. {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/METADATA +2 -2
  58. {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/RECORD +60 -54
  59. telnyx/types/ai/assistant_create_response.py +0 -92
  60. telnyx/types/ai/assistant_retrieve_response.py +0 -92
  61. telnyx/types/ai/assistants/version_promote_response.py +0 -92
  62. telnyx/types/ai/assistants/version_retrieve_response.py +0 -92
  63. telnyx/types/ai/assistants/version_update_response.py +0 -92
  64. telnyx/types/verify_profile_update_template_response.py +0 -12
  65. {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/WHEEL +0 -0
  66. {telnyx-3.5.0.dist-info → telnyx-3.6.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,108 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing_extensions import Literal, TypeAlias
4
+
5
+ __all__ = ["TelnyxTranscriptionLanguage"]
6
+
7
+ TelnyxTranscriptionLanguage: TypeAlias = Literal[
8
+ "en",
9
+ "zh",
10
+ "de",
11
+ "es",
12
+ "ru",
13
+ "ko",
14
+ "fr",
15
+ "ja",
16
+ "pt",
17
+ "tr",
18
+ "pl",
19
+ "ca",
20
+ "nl",
21
+ "ar",
22
+ "sv",
23
+ "it",
24
+ "id",
25
+ "hi",
26
+ "fi",
27
+ "vi",
28
+ "he",
29
+ "uk",
30
+ "el",
31
+ "ms",
32
+ "cs",
33
+ "ro",
34
+ "da",
35
+ "hu",
36
+ "ta",
37
+ "no",
38
+ "th",
39
+ "ur",
40
+ "hr",
41
+ "bg",
42
+ "lt",
43
+ "la",
44
+ "mi",
45
+ "ml",
46
+ "cy",
47
+ "sk",
48
+ "te",
49
+ "fa",
50
+ "lv",
51
+ "bn",
52
+ "sr",
53
+ "az",
54
+ "sl",
55
+ "kn",
56
+ "et",
57
+ "mk",
58
+ "br",
59
+ "eu",
60
+ "is",
61
+ "hy",
62
+ "ne",
63
+ "mn",
64
+ "bs",
65
+ "kk",
66
+ "sq",
67
+ "sw",
68
+ "gl",
69
+ "mr",
70
+ "pa",
71
+ "si",
72
+ "km",
73
+ "sn",
74
+ "yo",
75
+ "so",
76
+ "af",
77
+ "oc",
78
+ "ka",
79
+ "be",
80
+ "tg",
81
+ "sd",
82
+ "gu",
83
+ "am",
84
+ "yi",
85
+ "lo",
86
+ "uz",
87
+ "fo",
88
+ "ht",
89
+ "ps",
90
+ "tk",
91
+ "nn",
92
+ "mt",
93
+ "sa",
94
+ "lb",
95
+ "my",
96
+ "bo",
97
+ "tl",
98
+ "mg",
99
+ "as",
100
+ "tt",
101
+ "haw",
102
+ "ln",
103
+ "ha",
104
+ "ba",
105
+ "jw",
106
+ "su",
107
+ "auto_detect",
108
+ ]
@@ -4,112 +4,13 @@ from __future__ import annotations
4
4
 
5
5
  from typing_extensions import Literal, TypedDict
6
6
 
7
+ from .telnyx_transcription_language import TelnyxTranscriptionLanguage
8
+
7
9
  __all__ = ["TranscriptionEngineBConfigParam"]
8
10
 
9
11
 
10
12
  class TranscriptionEngineBConfigParam(TypedDict, total=False):
11
- language: Literal[
12
- "en",
13
- "zh",
14
- "de",
15
- "es",
16
- "ru",
17
- "ko",
18
- "fr",
19
- "ja",
20
- "pt",
21
- "tr",
22
- "pl",
23
- "ca",
24
- "nl",
25
- "ar",
26
- "sv",
27
- "it",
28
- "id",
29
- "hi",
30
- "fi",
31
- "vi",
32
- "he",
33
- "uk",
34
- "el",
35
- "ms",
36
- "cs",
37
- "ro",
38
- "da",
39
- "hu",
40
- "ta",
41
- "no",
42
- "th",
43
- "ur",
44
- "hr",
45
- "bg",
46
- "lt",
47
- "la",
48
- "mi",
49
- "ml",
50
- "cy",
51
- "sk",
52
- "te",
53
- "fa",
54
- "lv",
55
- "bn",
56
- "sr",
57
- "az",
58
- "sl",
59
- "kn",
60
- "et",
61
- "mk",
62
- "br",
63
- "eu",
64
- "is",
65
- "hy",
66
- "ne",
67
- "mn",
68
- "bs",
69
- "kk",
70
- "sq",
71
- "sw",
72
- "gl",
73
- "mr",
74
- "pa",
75
- "si",
76
- "km",
77
- "sn",
78
- "yo",
79
- "so",
80
- "af",
81
- "oc",
82
- "ka",
83
- "be",
84
- "tg",
85
- "sd",
86
- "gu",
87
- "am",
88
- "yi",
89
- "lo",
90
- "uz",
91
- "fo",
92
- "ht",
93
- "ps",
94
- "tk",
95
- "nn",
96
- "mt",
97
- "sa",
98
- "lb",
99
- "my",
100
- "bo",
101
- "tl",
102
- "mg",
103
- "as",
104
- "tt",
105
- "haw",
106
- "ln",
107
- "ha",
108
- "ba",
109
- "jw",
110
- "su",
111
- "auto_detect",
112
- ]
13
+ language: TelnyxTranscriptionLanguage
113
14
  """Language to use for speech recognition"""
114
15
 
115
16
  transcription_engine: Literal["B"]
@@ -7,6 +7,7 @@ from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
8
  from ..._types import SequenceNotStr
9
9
  from .google_transcription_language import GoogleTranscriptionLanguage
10
+ from .telnyx_transcription_language import TelnyxTranscriptionLanguage
10
11
  from .transcription_engine_a_config_param import TranscriptionEngineAConfigParam
11
12
  from .transcription_engine_b_config_param import TranscriptionEngineBConfigParam
12
13
 
@@ -75,108 +76,7 @@ class TranscriptionEngineConfigTranscriptionEngineGoogleConfig(TypedDict, total=
75
76
 
76
77
 
77
78
  class TranscriptionEngineConfigTranscriptionEngineTelnyxConfig(TypedDict, total=False):
78
- language: Literal[
79
- "en",
80
- "zh",
81
- "de",
82
- "es",
83
- "ru",
84
- "ko",
85
- "fr",
86
- "ja",
87
- "pt",
88
- "tr",
89
- "pl",
90
- "ca",
91
- "nl",
92
- "ar",
93
- "sv",
94
- "it",
95
- "id",
96
- "hi",
97
- "fi",
98
- "vi",
99
- "he",
100
- "uk",
101
- "el",
102
- "ms",
103
- "cs",
104
- "ro",
105
- "da",
106
- "hu",
107
- "ta",
108
- "no",
109
- "th",
110
- "ur",
111
- "hr",
112
- "bg",
113
- "lt",
114
- "la",
115
- "mi",
116
- "ml",
117
- "cy",
118
- "sk",
119
- "te",
120
- "fa",
121
- "lv",
122
- "bn",
123
- "sr",
124
- "az",
125
- "sl",
126
- "kn",
127
- "et",
128
- "mk",
129
- "br",
130
- "eu",
131
- "is",
132
- "hy",
133
- "ne",
134
- "mn",
135
- "bs",
136
- "kk",
137
- "sq",
138
- "sw",
139
- "gl",
140
- "mr",
141
- "pa",
142
- "si",
143
- "km",
144
- "sn",
145
- "yo",
146
- "so",
147
- "af",
148
- "oc",
149
- "ka",
150
- "be",
151
- "tg",
152
- "sd",
153
- "gu",
154
- "am",
155
- "yi",
156
- "lo",
157
- "uz",
158
- "fo",
159
- "ht",
160
- "ps",
161
- "tk",
162
- "nn",
163
- "mt",
164
- "sa",
165
- "lb",
166
- "my",
167
- "bo",
168
- "tl",
169
- "mg",
170
- "as",
171
- "tt",
172
- "haw",
173
- "ln",
174
- "ha",
175
- "ba",
176
- "jw",
177
- "su",
178
- "auto_detect",
179
- ]
79
+ language: TelnyxTranscriptionLanguage
180
80
  """Language to use for speech recognition"""
181
81
 
182
82
  transcription_engine: Literal["Telnyx"]
@@ -0,0 +1,39 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union
6
+ from typing_extensions import Required, Annotated, TypeAlias, TypedDict
7
+
8
+ from .._types import Base64FileInput
9
+ from .._utils import PropertyInfo
10
+
11
+ __all__ = ["DocumentUploadJsonParams", "DocServiceDocumentUploadURL", "DocServiceDocumentUploadInline"]
12
+
13
+
14
+ class DocServiceDocumentUploadURL(TypedDict, total=False):
15
+ url: Required[str]
16
+ """
17
+ If the file is already hosted publicly, you can provide a URL and have the
18
+ documents service fetch it for you.
19
+ """
20
+
21
+ customer_reference: str
22
+ """Optional reference string for customer tracking."""
23
+
24
+ filename: str
25
+ """The filename of the document."""
26
+
27
+
28
+ class DocServiceDocumentUploadInline(TypedDict, total=False):
29
+ file: Required[Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]]
30
+ """The Base64 encoded contents of the file you are uploading."""
31
+
32
+ customer_reference: str
33
+ """A customer reference string for customer look ups."""
34
+
35
+ filename: str
36
+ """The filename of the document."""
37
+
38
+
39
+ DocumentUploadJsonParams: TypeAlias = Union[DocServiceDocumentUploadURL, DocServiceDocumentUploadInline]
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from .._models import BaseModel
6
+ from .doc_service_document import DocServiceDocument
7
+
8
+ __all__ = ["DocumentUploadJsonResponse"]
9
+
10
+
11
+ class DocumentUploadJsonResponse(BaseModel):
12
+ data: Optional[DocServiceDocument] = None
@@ -9,6 +9,7 @@ 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 .batch_csv_pagination_meta import BatchCsvPaginationMeta as BatchCsvPaginationMeta
12
13
  from .cdr_detailed_req_response import CdrDetailedReqResponse as CdrDetailedReqResponse
13
14
  from .messaging_create_response import MessagingCreateResponse as MessagingCreateResponse
14
15
  from .messaging_delete_response import MessagingDeleteResponse as MessagingDeleteResponse
@@ -0,0 +1,17 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from ....._models import BaseModel
6
+
7
+ __all__ = ["BatchCsvPaginationMeta"]
8
+
9
+
10
+ class BatchCsvPaginationMeta(BaseModel):
11
+ page_number: Optional[int] = None
12
+
13
+ page_size: Optional[int] = None
14
+
15
+ total_pages: Optional[int] = None
16
+
17
+ total_results: Optional[int] = None
@@ -3,22 +3,13 @@
3
3
  from typing import List, Optional
4
4
 
5
5
  from ....._models import BaseModel
6
+ from .batch_csv_pagination_meta import BatchCsvPaginationMeta
6
7
  from .mdr_detail_report_response import MdrDetailReportResponse
7
8
 
8
- __all__ = ["MessagingListResponse", "Meta"]
9
-
10
-
11
- class Meta(BaseModel):
12
- page_number: Optional[int] = None
13
-
14
- page_size: Optional[int] = None
15
-
16
- total_pages: Optional[int] = None
17
-
18
- total_results: Optional[int] = None
9
+ __all__ = ["MessagingListResponse"]
19
10
 
20
11
 
21
12
  class MessagingListResponse(BaseModel):
22
13
  data: Optional[List[MdrDetailReportResponse]] = None
23
14
 
24
- meta: Optional[Meta] = None
15
+ meta: Optional[BatchCsvPaginationMeta] = None
@@ -3,22 +3,13 @@
3
3
  from typing import List, Optional
4
4
 
5
5
  from ....._models import BaseModel
6
+ from .batch_csv_pagination_meta import BatchCsvPaginationMeta
6
7
  from .cdr_detailed_req_response import CdrDetailedReqResponse
7
8
 
8
- __all__ = ["VoiceListResponse", "Meta"]
9
-
10
-
11
- class Meta(BaseModel):
12
- page_number: Optional[int] = None
13
-
14
- page_size: Optional[int] = None
15
-
16
- total_pages: Optional[int] = None
17
-
18
- total_results: Optional[int] = None
9
+ __all__ = ["VoiceListResponse"]
19
10
 
20
11
 
21
12
  class VoiceListResponse(BaseModel):
22
13
  data: Optional[List[CdrDetailedReqResponse]] = None
23
14
 
24
- meta: Optional[Meta] = None
15
+ meta: Optional[BatchCsvPaginationMeta] = None
@@ -11,6 +11,7 @@ from .voice_delete_response import VoiceDeleteResponse as VoiceDeleteResponse
11
11
  from .messaging_create_params import MessagingCreateParams as MessagingCreateParams
12
12
  from .messaging_list_response import MessagingListResponse as MessagingListResponse
13
13
  from .voice_retrieve_response import VoiceRetrieveResponse as VoiceRetrieveResponse
14
+ from .standard_pagination_meta import StandardPaginationMeta as StandardPaginationMeta
14
15
  from .messaging_create_response import MessagingCreateResponse as MessagingCreateResponse
15
16
  from .messaging_delete_response import MessagingDeleteResponse as MessagingDeleteResponse
16
17
  from .number_lookup_list_params import NumberLookupListParams as NumberLookupListParams
@@ -3,22 +3,13 @@
3
3
  from typing import List, Optional
4
4
 
5
5
  from ....._models import BaseModel
6
+ from .standard_pagination_meta import StandardPaginationMeta
6
7
  from .mdr_usage_report_response_legacy import MdrUsageReportResponseLegacy
7
8
 
8
- __all__ = ["MessagingListResponse", "Meta"]
9
-
10
-
11
- class Meta(BaseModel):
12
- page_number: Optional[int] = None
13
-
14
- page_size: Optional[int] = None
15
-
16
- total_pages: Optional[int] = None
17
-
18
- total_results: Optional[int] = None
9
+ __all__ = ["MessagingListResponse"]
19
10
 
20
11
 
21
12
  class MessagingListResponse(BaseModel):
22
13
  data: Optional[List[MdrUsageReportResponseLegacy]] = None
23
14
 
24
- meta: Optional[Meta] = None
15
+ meta: Optional[StandardPaginationMeta] = None
@@ -0,0 +1,17 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from ....._models import BaseModel
6
+
7
+ __all__ = ["StandardPaginationMeta"]
8
+
9
+
10
+ class StandardPaginationMeta(BaseModel):
11
+ page_number: Optional[int] = None
12
+
13
+ page_size: Optional[int] = None
14
+
15
+ total_pages: Optional[int] = None
16
+
17
+ total_results: Optional[int] = None
@@ -3,22 +3,13 @@
3
3
  from typing import List, Optional
4
4
 
5
5
  from ....._models import BaseModel
6
+ from .standard_pagination_meta import StandardPaginationMeta
6
7
  from .cdr_usage_report_response_legacy import CdrUsageReportResponseLegacy
7
8
 
8
- __all__ = ["VoiceListResponse", "Meta"]
9
-
10
-
11
- class Meta(BaseModel):
12
- page_number: Optional[int] = None
13
-
14
- page_size: Optional[int] = None
15
-
16
- total_pages: Optional[int] = None
17
-
18
- total_results: Optional[int] = None
9
+ __all__ = ["VoiceListResponse"]
19
10
 
20
11
 
21
12
  class VoiceListResponse(BaseModel):
22
13
  data: Optional[List[CdrUsageReportResponseLegacy]] = None
23
14
 
24
- meta: Optional[Meta] = None
15
+ meta: Optional[StandardPaginationMeta] = None
@@ -5,8 +5,8 @@ from typing import Optional
5
5
  from .._models import BaseModel
6
6
  from .verify_profile_message_template_response import VerifyProfileMessageTemplateResponse
7
7
 
8
- __all__ = ["VerifyProfileCreateTemplateResponse"]
8
+ __all__ = ["MessageTemplate"]
9
9
 
10
10
 
11
- class VerifyProfileCreateTemplateResponse(BaseModel):
11
+ class MessageTemplate(BaseModel):
12
12
  data: Optional[VerifyProfileMessageTemplateResponse] = None
@@ -15,3 +15,4 @@ from .tf_phone_number_param import TfPhoneNumberParam as TfPhoneNumberParam
15
15
  from .tf_verification_status import TfVerificationStatus as TfVerificationStatus
16
16
  from .verification_request_egress import VerificationRequestEgress as VerificationRequestEgress
17
17
  from .verification_request_status import VerificationRequestStatus as VerificationRequestStatus
18
+ from .toll_free_verification_entity_type import TollFreeVerificationEntityType as TollFreeVerificationEntityType
@@ -3,13 +3,14 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from typing import Iterable, Optional
6
- from typing_extensions import Literal, Required, Annotated, TypedDict
6
+ from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
8
  from .volume import Volume
9
9
  from ...._utils import PropertyInfo
10
10
  from .url_param import URLParam
11
11
  from .use_case_categories import UseCaseCategories
12
12
  from .tf_phone_number_param import TfPhoneNumberParam
13
+ from .toll_free_verification_entity_type import TollFreeVerificationEntityType
13
14
 
14
15
  __all__ = ["RequestCreateParams"]
15
16
 
@@ -112,10 +113,7 @@ class RequestCreateParams(TypedDict, total=False):
112
113
  doing_business_as: Annotated[Optional[str], PropertyInfo(alias="doingBusinessAs")]
113
114
  """Doing Business As (DBA) name if different from legal name"""
114
115
 
115
- entity_type: Annotated[
116
- Optional[Literal["SOLE_PROPRIETOR", "PRIVATE_PROFIT", "PUBLIC_PROFIT", "NON_PROFIT", "GOVERNMENT"]],
117
- PropertyInfo(alias="entityType"),
118
- ]
116
+ entity_type: Annotated[Optional[TollFreeVerificationEntityType], PropertyInfo(alias="entityType")]
119
117
  """Business entity classification"""
120
118
 
121
119
  help_message_response: Annotated[Optional[str], PropertyInfo(alias="helpMessageResponse")]
@@ -3,13 +3,14 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from typing import Iterable, Optional
6
- from typing_extensions import Literal, Required, Annotated, TypedDict
6
+ from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
8
  from .volume import Volume
9
9
  from ...._utils import PropertyInfo
10
10
  from .url_param import URLParam
11
11
  from .use_case_categories import UseCaseCategories
12
12
  from .tf_phone_number_param import TfPhoneNumberParam
13
+ from .toll_free_verification_entity_type import TollFreeVerificationEntityType
13
14
 
14
15
  __all__ = ["RequestUpdateParams"]
15
16
 
@@ -112,10 +113,7 @@ class RequestUpdateParams(TypedDict, total=False):
112
113
  doing_business_as: Annotated[Optional[str], PropertyInfo(alias="doingBusinessAs")]
113
114
  """Doing Business As (DBA) name if different from legal name"""
114
115
 
115
- entity_type: Annotated[
116
- Optional[Literal["SOLE_PROPRIETOR", "PRIVATE_PROFIT", "PUBLIC_PROFIT", "NON_PROFIT", "GOVERNMENT"]],
117
- PropertyInfo(alias="entityType"),
118
- ]
116
+ entity_type: Annotated[Optional[TollFreeVerificationEntityType], PropertyInfo(alias="entityType")]
119
117
  """Business entity classification"""
120
118
 
121
119
  help_message_response: Annotated[Optional[str], PropertyInfo(alias="helpMessageResponse")]
@@ -0,0 +1,9 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing_extensions import Literal, TypeAlias
4
+
5
+ __all__ = ["TollFreeVerificationEntityType"]
6
+
7
+ TollFreeVerificationEntityType: TypeAlias = Literal[
8
+ "SOLE_PROPRIETOR", "PRIVATE_PROFIT", "PUBLIC_PROFIT", "NON_PROFIT", "GOVERNMENT"
9
+ ]
@@ -1,7 +1,6 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  from typing import List, Optional
4
- from typing_extensions import Literal
5
4
 
6
5
  from pydantic import Field as FieldInfo
7
6
 
@@ -11,6 +10,7 @@ from ...._models import BaseModel
11
10
  from .tf_phone_number import TfPhoneNumber
12
11
  from .use_case_categories import UseCaseCategories
13
12
  from .tf_verification_status import TfVerificationStatus
13
+ from .toll_free_verification_entity_type import TollFreeVerificationEntityType
14
14
 
15
15
  __all__ = ["VerificationRequestEgress"]
16
16
 
@@ -72,9 +72,7 @@ class VerificationRequestEgress(BaseModel):
72
72
 
73
73
  doing_business_as: Optional[str] = FieldInfo(alias="doingBusinessAs", default=None)
74
74
 
75
- entity_type: Optional[Literal["SOLE_PROPRIETOR", "PRIVATE_PROFIT", "PUBLIC_PROFIT", "NON_PROFIT", "GOVERNMENT"]] = (
76
- FieldInfo(alias="entityType", default=None)
77
- )
75
+ entity_type: Optional[TollFreeVerificationEntityType] = FieldInfo(alias="entityType", default=None)
78
76
  """Business entity classification"""
79
77
 
80
78
  help_message_response: Optional[str] = FieldInfo(alias="helpMessageResponse", default=None)