talkif 0.1.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.
Files changed (270) hide show
  1. talkif/__init__.py +684 -0
  2. talkif/_default_clients.py +30 -0
  3. talkif/ai_models/__init__.py +4 -0
  4. talkif/ai_models/client.py +301 -0
  5. talkif/ai_models/raw_client.py +415 -0
  6. talkif/analytics/__init__.py +4 -0
  7. talkif/analytics/client.py +224 -0
  8. talkif/analytics/raw_client.py +464 -0
  9. talkif/billing/__init__.py +4 -0
  10. talkif/billing/client.py +830 -0
  11. talkif/billing/raw_client.py +1744 -0
  12. talkif/calls/__init__.py +4 -0
  13. talkif/calls/client.py +779 -0
  14. talkif/calls/raw_client.py +1933 -0
  15. talkif/campaigns/__init__.py +4 -0
  16. talkif/campaigns/client.py +1630 -0
  17. talkif/campaigns/raw_client.py +3921 -0
  18. talkif/client.py +499 -0
  19. talkif/contacts/__init__.py +4 -0
  20. talkif/contacts/client.py +1375 -0
  21. talkif/contacts/raw_client.py +3041 -0
  22. talkif/core/__init__.py +132 -0
  23. talkif/core/api_error.py +23 -0
  24. talkif/core/client_wrapper.py +148 -0
  25. talkif/core/datetime_utils.py +70 -0
  26. talkif/core/file.py +67 -0
  27. talkif/core/force_multipart.py +18 -0
  28. talkif/core/http_client.py +940 -0
  29. talkif/core/http_response.py +63 -0
  30. talkif/core/http_sse/__init__.py +42 -0
  31. talkif/core/http_sse/_api.py +455 -0
  32. talkif/core/http_sse/_decoders.py +74 -0
  33. talkif/core/http_sse/_exceptions.py +7 -0
  34. talkif/core/http_sse/_models.py +17 -0
  35. talkif/core/jsonable_encoder.py +133 -0
  36. talkif/core/logging.py +107 -0
  37. talkif/core/pagination.py +82 -0
  38. talkif/core/parse_error.py +36 -0
  39. talkif/core/pydantic_utilities.py +486 -0
  40. talkif/core/query_encoder.py +58 -0
  41. talkif/core/remove_none_from_dict.py +11 -0
  42. talkif/core/request_options.py +40 -0
  43. talkif/core/serialization.py +347 -0
  44. talkif/do_not_call/__init__.py +4 -0
  45. talkif/do_not_call/client.py +505 -0
  46. talkif/do_not_call/raw_client.py +1126 -0
  47. talkif/environment.py +7 -0
  48. talkif/errors/__init__.py +65 -0
  49. talkif/errors/bad_request_error.py +11 -0
  50. talkif/errors/client.py +100 -0
  51. talkif/errors/conflict_error.py +11 -0
  52. talkif/errors/forbidden_error.py +11 -0
  53. talkif/errors/internal_server_error.py +11 -0
  54. talkif/errors/not_found_error.py +11 -0
  55. talkif/errors/payment_required_error.py +11 -0
  56. talkif/errors/raw_client.py +103 -0
  57. talkif/errors/service_unavailable_error.py +11 -0
  58. talkif/errors/too_many_requests_error.py +11 -0
  59. talkif/errors/unauthorized_error.py +11 -0
  60. talkif/errors/unprocessable_entity_error.py +11 -0
  61. talkif/flow_functions/__init__.py +4 -0
  62. talkif/flow_functions/client.py +583 -0
  63. talkif/flow_functions/raw_client.py +1220 -0
  64. talkif/flow_templates/__init__.py +4 -0
  65. talkif/flow_templates/client.py +326 -0
  66. talkif/flow_templates/raw_client.py +533 -0
  67. talkif/flows/__init__.py +4 -0
  68. talkif/flows/client.py +1039 -0
  69. talkif/flows/raw_client.py +2352 -0
  70. talkif/phone_numbers/__init__.py +4 -0
  71. talkif/phone_numbers/client.py +1003 -0
  72. talkif/phone_numbers/raw_client.py +2212 -0
  73. talkif/phone_providers/__init__.py +4 -0
  74. talkif/phone_providers/client.py +200 -0
  75. talkif/phone_providers/raw_client.py +422 -0
  76. talkif/public_calls/__init__.py +4 -0
  77. talkif/public_calls/client.py +444 -0
  78. talkif/public_calls/raw_client.py +1158 -0
  79. talkif/py.typed +0 -0
  80. talkif/schedules/__init__.py +4 -0
  81. talkif/schedules/client.py +841 -0
  82. talkif/schedules/raw_client.py +1721 -0
  83. talkif/types/__init__.py +585 -0
  84. talkif/types/action_definition.py +41 -0
  85. talkif/types/action_item.py +31 -0
  86. talkif/types/added_response.py +26 -0
  87. talkif/types/agent_change_summary.py +36 -0
  88. talkif/types/agent_definition.py +111 -0
  89. talkif/types/agent_status.py +7 -0
  90. talkif/types/agent_type.py +5 -0
  91. talkif/types/analytics_cost_breakdown_response.py +97 -0
  92. talkif/types/analytics_cost_line_item_response.py +113 -0
  93. talkif/types/attempt_bucket.py +42 -0
  94. talkif/types/available_phone_number.py +119 -0
  95. talkif/types/balance_summary_response.py +58 -0
  96. talkif/types/billable_type.py +5 -0
  97. talkif/types/bulk_add_contacts_response.py +36 -0
  98. talkif/types/bulk_contact_filter.py +52 -0
  99. talkif/types/bulk_dnc_import_response.py +31 -0
  100. talkif/types/bulk_remove_contacts_response.py +36 -0
  101. talkif/types/bulk_tag_filter_mode.py +5 -0
  102. talkif/types/call_cost_breakdown_response.py +56 -0
  103. talkif/types/call_cost_detail.py +107 -0
  104. talkif/types/call_counts.py +56 -0
  105. talkif/types/call_direction.py +5 -0
  106. talkif/types/call_end_reason.py +21 -0
  107. talkif/types/call_failure_code.py +34 -0
  108. talkif/types/call_insights.py +57 -0
  109. talkif/types/call_list_meta.py +36 -0
  110. talkif/types/call_list_response.py +33 -0
  111. talkif/types/call_outcome.py +49 -0
  112. talkif/types/call_provider_type.py +5 -0
  113. talkif/types/call_rates.py +41 -0
  114. talkif/types/call_response.py +432 -0
  115. talkif/types/call_source.py +5 -0
  116. talkif/types/call_status.py +10 -0
  117. talkif/types/call_transcript_response.py +65 -0
  118. talkif/types/call_window_request.py +52 -0
  119. talkif/types/call_window_response.py +57 -0
  120. talkif/types/campaign_analytics_response.py +106 -0
  121. talkif/types/campaign_contact_list_response.py +33 -0
  122. talkif/types/campaign_contact_response.py +137 -0
  123. talkif/types/campaign_contact_status.py +7 -0
  124. talkif/types/campaign_duration_bucket.py +25 -0
  125. talkif/types/campaign_failure_cause.py +42 -0
  126. talkif/types/campaign_list_response.py +33 -0
  127. talkif/types/campaign_metrics.py +95 -0
  128. talkif/types/campaign_outcome.py +36 -0
  129. talkif/types/campaign_overview.py +88 -0
  130. talkif/types/campaign_pause_reason.py +7 -0
  131. talkif/types/campaign_performance.py +56 -0
  132. talkif/types/campaign_progress.py +82 -0
  133. talkif/types/campaign_response.py +227 -0
  134. talkif/types/campaign_status.py +7 -0
  135. talkif/types/campaign_voicemail.py +39 -0
  136. talkif/types/category_breakdown.py +58 -0
  137. talkif/types/change_summary.py +56 -0
  138. talkif/types/channel_type.py +5 -0
  139. talkif/types/charge_detail_response.py +200 -0
  140. talkif/types/charge_status.py +7 -0
  141. talkif/types/charge_type_db.py +18 -0
  142. talkif/types/check_dnc_response.py +26 -0
  143. talkif/types/connected_flow.py +48 -0
  144. talkif/types/connected_phone_summary.py +46 -0
  145. talkif/types/contact.py +142 -0
  146. talkif/types/contact_address.py +46 -0
  147. talkif/types/contact_brief.py +44 -0
  148. talkif/types/contact_list_response.py +33 -0
  149. talkif/types/contact_pagination_meta.py +36 -0
  150. talkif/types/contact_search_response.py +34 -0
  151. talkif/types/conversation_metrics.py +68 -0
  152. talkif/types/cost_category.py +21 -0
  153. talkif/types/cost_line_item_response.py +126 -0
  154. talkif/types/cost_metrics.py +31 -0
  155. talkif/types/create_contact_request.py +88 -0
  156. talkif/types/create_public_session_response.py +44 -0
  157. talkif/types/create_web_rtc_call_response.py +54 -0
  158. talkif/types/detected_intent.py +31 -0
  159. talkif/types/direction_counts.py +31 -0
  160. talkif/types/dnc_entry_response.py +66 -0
  161. talkif/types/dnc_list_meta.py +36 -0
  162. talkif/types/dnc_list_response.py +33 -0
  163. talkif/types/dnc_source.py +5 -0
  164. talkif/types/duplicate_strategy.py +5 -0
  165. talkif/types/duration_metrics.py +41 -0
  166. talkif/types/emotion_option.py +31 -0
  167. talkif/types/error_catalog_response.py +43 -0
  168. talkif/types/error_code.py +143 -0
  169. talkif/types/error_code_entry.py +59 -0
  170. talkif/types/error_reason.py +15 -0
  171. talkif/types/error_response.py +107 -0
  172. talkif/types/extracted_caller_info.py +41 -0
  173. talkif/types/field_error.py +48 -0
  174. talkif/types/field_error_code_entry.py +31 -0
  175. talkif/types/flow_change.py +52 -0
  176. talkif/types/flow_change_type.py +8 -0
  177. talkif/types/flow_cost_breakdown.py +55 -0
  178. talkif/types/flow_definition.py +53 -0
  179. talkif/types/flow_detail_response.py +210 -0
  180. talkif/types/flow_function_response.py +118 -0
  181. talkif/types/flow_providers_response.py +39 -0
  182. talkif/types/flow_setting_changes.py +32 -0
  183. talkif/types/flow_stats_response.py +91 -0
  184. talkif/types/flow_status.py +5 -0
  185. talkif/types/flow_template.py +148 -0
  186. talkif/types/flow_version_detail_response.py +83 -0
  187. talkif/types/flow_version_summary.py +46 -0
  188. talkif/types/function_call_metrics.py +70 -0
  189. talkif/types/function_definition.py +100 -0
  190. talkif/types/generation_config_schema.py +32 -0
  191. talkif/types/hourly_volume.py +48 -0
  192. talkif/types/ice_server_entry.py +36 -0
  193. talkif/types/ice_servers_response.py +38 -0
  194. talkif/types/import_error.py +53 -0
  195. talkif/types/import_format.py +5 -0
  196. talkif/types/import_result.py +72 -0
  197. talkif/types/invoice_response.py +139 -0
  198. talkif/types/invoice_status.py +5 -0
  199. talkif/types/language_info.py +42 -0
  200. talkif/types/latency_metrics.py +53 -0
  201. talkif/types/list_meta.py +36 -0
  202. talkif/types/llm_capabilities.py +84 -0
  203. talkif/types/llm_model.py +60 -0
  204. talkif/types/llm_pricing.py +59 -0
  205. talkif/types/llm_provider.py +43 -0
  206. talkif/types/llm_service_definition.py +82 -0
  207. talkif/types/make_call_response.py +81 -0
  208. talkif/types/make_call_response_initiated.py +85 -0
  209. talkif/types/make_call_response_queued.py +67 -0
  210. talkif/types/max_call_duration_settings.py +45 -0
  211. talkif/types/paginated_response.py +29 -0
  212. talkif/types/pagination_meta.py +36 -0
  213. talkif/types/phone_number_capability.py +5 -0
  214. talkif/types/phone_number_pricing.py +55 -0
  215. talkif/types/phone_number_response.py +240 -0
  216. talkif/types/phone_number_status.py +5 -0
  217. talkif/types/phone_provider_response.py +98 -0
  218. talkif/types/pricing_entry.py +37 -0
  219. talkif/types/prompt_reference.py +42 -0
  220. talkif/types/provider_type.py +5 -0
  221. talkif/types/public_call_status_response.py +42 -0
  222. talkif/types/public_phone_number_pricing.py +38 -0
  223. talkif/types/public_pricing_response.py +52 -0
  224. talkif/types/publish_flow_response.py +52 -0
  225. talkif/types/queue_info.py +72 -0
  226. talkif/types/range_schema.py +41 -0
  227. talkif/types/rate_info.py +31 -0
  228. talkif/types/recording_storage_pricing.py +38 -0
  229. talkif/types/recording_url_response.py +67 -0
  230. talkif/types/removed_response.py +26 -0
  231. talkif/types/request_schema.py +66 -0
  232. talkif/types/rollback_response.py +47 -0
  233. talkif/types/schedule_frequency.py +5 -0
  234. talkif/types/schedule_list_response.py +33 -0
  235. talkif/types/schedule_response.py +213 -0
  236. talkif/types/schedule_status.py +5 -0
  237. talkif/types/sentiment_analysis.py +31 -0
  238. talkif/types/service_change_summary.py +50 -0
  239. talkif/types/service_definition.py +32 -0
  240. talkif/types/skipped_contact.py +41 -0
  241. talkif/types/stt_capabilities.py +52 -0
  242. talkif/types/stt_model.py +57 -0
  243. talkif/types/stt_pricing.py +41 -0
  244. talkif/types/stt_provider.py +43 -0
  245. talkif/types/stt_service_definition.py +54 -0
  246. talkif/types/tag_with_count.py +31 -0
  247. talkif/types/tags_list_response.py +27 -0
  248. talkif/types/telephony_status.py +19 -0
  249. talkif/types/time_period.py +5 -0
  250. talkif/types/transcript_message.py +90 -0
  251. talkif/types/transcript_message_metrics.py +154 -0
  252. talkif/types/transcript_speaker.py +5 -0
  253. talkif/types/transformation_summary.py +63 -0
  254. talkif/types/transition_definition.py +40 -0
  255. talkif/types/tts_capabilities.py +92 -0
  256. talkif/types/tts_model.py +57 -0
  257. talkif/types/tts_pricing.py +44 -0
  258. talkif/types/tts_provider.py +43 -0
  259. talkif/types/tts_service_definition.py +101 -0
  260. talkif/types/usage_metrics.py +77 -0
  261. talkif/types/user_idle_settings.py +79 -0
  262. talkif/types/validation_response.py +37 -0
  263. talkif/types/voice_dto.py +90 -0
  264. talkif/types/voices_dto.py +56 -0
  265. talkif/types/web_rtc_offer_response.py +44 -0
  266. talkif/version.py +3 -0
  267. talkif-0.1.0.dist-info/METADATA +59 -0
  268. talkif-0.1.0.dist-info/RECORD +270 -0
  269. talkif-0.1.0.dist-info/WHEEL +4 -0
  270. talkif-0.1.0.dist-info/licenses/LICENSE +21 -0
talkif/__init__.py ADDED
@@ -0,0 +1,684 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ import typing
6
+ from importlib import import_module
7
+
8
+ if typing.TYPE_CHECKING:
9
+ from .types import (
10
+ ActionDefinition,
11
+ ActionItem,
12
+ AddedResponse,
13
+ AgentChangeSummary,
14
+ AgentDefinition,
15
+ AgentStatus,
16
+ AgentType,
17
+ AnalyticsCostBreakdownResponse,
18
+ AnalyticsCostLineItemResponse,
19
+ AttemptBucket,
20
+ AvailablePhoneNumber,
21
+ BalanceSummaryResponse,
22
+ BillableType,
23
+ BulkAddContactsResponse,
24
+ BulkContactFilter,
25
+ BulkDncImportResponse,
26
+ BulkRemoveContactsResponse,
27
+ BulkTagFilterMode,
28
+ CallCostBreakdownResponse,
29
+ CallCostDetail,
30
+ CallCounts,
31
+ CallDirection,
32
+ CallEndReason,
33
+ CallFailureCode,
34
+ CallInsights,
35
+ CallListMeta,
36
+ CallListResponse,
37
+ CallOutcome,
38
+ CallProviderType,
39
+ CallRates,
40
+ CallResponse,
41
+ CallSource,
42
+ CallStatus,
43
+ CallTranscriptResponse,
44
+ CallWindowRequest,
45
+ CallWindowResponse,
46
+ CampaignAnalyticsResponse,
47
+ CampaignContactListResponse,
48
+ CampaignContactResponse,
49
+ CampaignContactStatus,
50
+ CampaignDurationBucket,
51
+ CampaignFailureCause,
52
+ CampaignListResponse,
53
+ CampaignMetrics,
54
+ CampaignOutcome,
55
+ CampaignOverview,
56
+ CampaignPauseReason,
57
+ CampaignPerformance,
58
+ CampaignProgress,
59
+ CampaignResponse,
60
+ CampaignStatus,
61
+ CampaignVoicemail,
62
+ CategoryBreakdown,
63
+ ChangeSummary,
64
+ ChannelType,
65
+ ChargeDetailResponse,
66
+ ChargeStatus,
67
+ ChargeTypeDb,
68
+ CheckDncResponse,
69
+ ConnectedFlow,
70
+ ConnectedPhoneSummary,
71
+ Contact,
72
+ ContactAddress,
73
+ ContactBrief,
74
+ ContactListResponse,
75
+ ContactPaginationMeta,
76
+ ContactSearchResponse,
77
+ ConversationMetrics,
78
+ CostCategory,
79
+ CostLineItemResponse,
80
+ CostMetrics,
81
+ CreateContactRequest,
82
+ CreatePublicSessionResponse,
83
+ CreateWebRtcCallResponse,
84
+ DetectedIntent,
85
+ DirectionCounts,
86
+ DncEntryResponse,
87
+ DncListMeta,
88
+ DncListResponse,
89
+ DncSource,
90
+ DuplicateStrategy,
91
+ DurationMetrics,
92
+ EmotionOption,
93
+ ErrorCatalogResponse,
94
+ ErrorCode,
95
+ ErrorCodeEntry,
96
+ ErrorReason,
97
+ ErrorResponse,
98
+ ExtractedCallerInfo,
99
+ FieldError,
100
+ FieldErrorCodeEntry,
101
+ FlowChange,
102
+ FlowChangeType,
103
+ FlowCostBreakdown,
104
+ FlowDefinition,
105
+ FlowDetailResponse,
106
+ FlowFunctionResponse,
107
+ FlowProvidersResponse,
108
+ FlowSettingChanges,
109
+ FlowStatsResponse,
110
+ FlowStatus,
111
+ FlowTemplate,
112
+ FlowVersionDetailResponse,
113
+ FlowVersionSummary,
114
+ FunctionCallMetrics,
115
+ FunctionDefinition,
116
+ GenerationConfigSchema,
117
+ HourlyVolume,
118
+ IceServerEntry,
119
+ IceServersResponse,
120
+ ImportError,
121
+ ImportFormat,
122
+ ImportResult,
123
+ InvoiceResponse,
124
+ InvoiceStatus,
125
+ LanguageInfo,
126
+ LatencyMetrics,
127
+ ListMeta,
128
+ LlmCapabilities,
129
+ LlmModel,
130
+ LlmPricing,
131
+ LlmProvider,
132
+ LlmServiceDefinition,
133
+ MakeCallResponse,
134
+ MakeCallResponseInitiated,
135
+ MakeCallResponseQueued,
136
+ MakeCallResponse_Initiated,
137
+ MakeCallResponse_Queued,
138
+ MaxCallDurationSettings,
139
+ PaginatedResponse,
140
+ PaginationMeta,
141
+ PhoneNumberCapability,
142
+ PhoneNumberPricing,
143
+ PhoneNumberResponse,
144
+ PhoneNumberStatus,
145
+ PhoneProviderResponse,
146
+ PricingEntry,
147
+ PromptReference,
148
+ ProviderType,
149
+ PublicCallStatusResponse,
150
+ PublicPhoneNumberPricing,
151
+ PublicPricingResponse,
152
+ PublishFlowResponse,
153
+ QueueInfo,
154
+ RangeSchema,
155
+ RateInfo,
156
+ RecordingStoragePricing,
157
+ RecordingUrlResponse,
158
+ RemovedResponse,
159
+ RequestSchema,
160
+ RollbackResponse,
161
+ ScheduleFrequency,
162
+ ScheduleListResponse,
163
+ ScheduleResponse,
164
+ ScheduleStatus,
165
+ SentimentAnalysis,
166
+ ServiceChangeSummary,
167
+ ServiceDefinition,
168
+ SkippedContact,
169
+ SttCapabilities,
170
+ SttModel,
171
+ SttPricing,
172
+ SttProvider,
173
+ SttServiceDefinition,
174
+ TagWithCount,
175
+ TagsListResponse,
176
+ TelephonyStatus,
177
+ TimePeriod,
178
+ TranscriptMessage,
179
+ TranscriptMessageMetrics,
180
+ TranscriptSpeaker,
181
+ TransformationSummary,
182
+ TransitionDefinition,
183
+ TtsCapabilities,
184
+ TtsModel,
185
+ TtsPricing,
186
+ TtsProvider,
187
+ TtsServiceDefinition,
188
+ UsageMetrics,
189
+ UserIdleSettings,
190
+ ValidationResponse,
191
+ VoiceDto,
192
+ VoicesDto,
193
+ WebRtcOfferResponse,
194
+ )
195
+ from .errors import (
196
+ BadRequestError,
197
+ ConflictError,
198
+ ForbiddenError,
199
+ InternalServerError,
200
+ NotFoundError,
201
+ PaymentRequiredError,
202
+ ServiceUnavailableError,
203
+ TooManyRequestsError,
204
+ UnauthorizedError,
205
+ UnprocessableEntityError,
206
+ )
207
+ from . import (
208
+ ai_models,
209
+ analytics,
210
+ billing,
211
+ calls,
212
+ campaigns,
213
+ contacts,
214
+ do_not_call,
215
+ errors,
216
+ flow_functions,
217
+ flow_templates,
218
+ flows,
219
+ phone_numbers,
220
+ phone_providers,
221
+ public_calls,
222
+ schedules,
223
+ )
224
+ from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient
225
+ from .client import AsyncTalkif, Talkif
226
+ from .environment import TalkifEnvironment
227
+ from .version import __version__
228
+ _dynamic_imports: typing.Dict[str, str] = {
229
+ "ActionDefinition": ".types",
230
+ "ActionItem": ".types",
231
+ "AddedResponse": ".types",
232
+ "AgentChangeSummary": ".types",
233
+ "AgentDefinition": ".types",
234
+ "AgentStatus": ".types",
235
+ "AgentType": ".types",
236
+ "AnalyticsCostBreakdownResponse": ".types",
237
+ "AnalyticsCostLineItemResponse": ".types",
238
+ "AsyncTalkif": ".client",
239
+ "AttemptBucket": ".types",
240
+ "AvailablePhoneNumber": ".types",
241
+ "BadRequestError": ".errors",
242
+ "BalanceSummaryResponse": ".types",
243
+ "BillableType": ".types",
244
+ "BulkAddContactsResponse": ".types",
245
+ "BulkContactFilter": ".types",
246
+ "BulkDncImportResponse": ".types",
247
+ "BulkRemoveContactsResponse": ".types",
248
+ "BulkTagFilterMode": ".types",
249
+ "CallCostBreakdownResponse": ".types",
250
+ "CallCostDetail": ".types",
251
+ "CallCounts": ".types",
252
+ "CallDirection": ".types",
253
+ "CallEndReason": ".types",
254
+ "CallFailureCode": ".types",
255
+ "CallInsights": ".types",
256
+ "CallListMeta": ".types",
257
+ "CallListResponse": ".types",
258
+ "CallOutcome": ".types",
259
+ "CallProviderType": ".types",
260
+ "CallRates": ".types",
261
+ "CallResponse": ".types",
262
+ "CallSource": ".types",
263
+ "CallStatus": ".types",
264
+ "CallTranscriptResponse": ".types",
265
+ "CallWindowRequest": ".types",
266
+ "CallWindowResponse": ".types",
267
+ "CampaignAnalyticsResponse": ".types",
268
+ "CampaignContactListResponse": ".types",
269
+ "CampaignContactResponse": ".types",
270
+ "CampaignContactStatus": ".types",
271
+ "CampaignDurationBucket": ".types",
272
+ "CampaignFailureCause": ".types",
273
+ "CampaignListResponse": ".types",
274
+ "CampaignMetrics": ".types",
275
+ "CampaignOutcome": ".types",
276
+ "CampaignOverview": ".types",
277
+ "CampaignPauseReason": ".types",
278
+ "CampaignPerformance": ".types",
279
+ "CampaignProgress": ".types",
280
+ "CampaignResponse": ".types",
281
+ "CampaignStatus": ".types",
282
+ "CampaignVoicemail": ".types",
283
+ "CategoryBreakdown": ".types",
284
+ "ChangeSummary": ".types",
285
+ "ChannelType": ".types",
286
+ "ChargeDetailResponse": ".types",
287
+ "ChargeStatus": ".types",
288
+ "ChargeTypeDb": ".types",
289
+ "CheckDncResponse": ".types",
290
+ "ConflictError": ".errors",
291
+ "ConnectedFlow": ".types",
292
+ "ConnectedPhoneSummary": ".types",
293
+ "Contact": ".types",
294
+ "ContactAddress": ".types",
295
+ "ContactBrief": ".types",
296
+ "ContactListResponse": ".types",
297
+ "ContactPaginationMeta": ".types",
298
+ "ContactSearchResponse": ".types",
299
+ "ConversationMetrics": ".types",
300
+ "CostCategory": ".types",
301
+ "CostLineItemResponse": ".types",
302
+ "CostMetrics": ".types",
303
+ "CreateContactRequest": ".types",
304
+ "CreatePublicSessionResponse": ".types",
305
+ "CreateWebRtcCallResponse": ".types",
306
+ "DefaultAioHttpClient": "._default_clients",
307
+ "DefaultAsyncHttpxClient": "._default_clients",
308
+ "DetectedIntent": ".types",
309
+ "DirectionCounts": ".types",
310
+ "DncEntryResponse": ".types",
311
+ "DncListMeta": ".types",
312
+ "DncListResponse": ".types",
313
+ "DncSource": ".types",
314
+ "DuplicateStrategy": ".types",
315
+ "DurationMetrics": ".types",
316
+ "EmotionOption": ".types",
317
+ "ErrorCatalogResponse": ".types",
318
+ "ErrorCode": ".types",
319
+ "ErrorCodeEntry": ".types",
320
+ "ErrorReason": ".types",
321
+ "ErrorResponse": ".types",
322
+ "ExtractedCallerInfo": ".types",
323
+ "FieldError": ".types",
324
+ "FieldErrorCodeEntry": ".types",
325
+ "FlowChange": ".types",
326
+ "FlowChangeType": ".types",
327
+ "FlowCostBreakdown": ".types",
328
+ "FlowDefinition": ".types",
329
+ "FlowDetailResponse": ".types",
330
+ "FlowFunctionResponse": ".types",
331
+ "FlowProvidersResponse": ".types",
332
+ "FlowSettingChanges": ".types",
333
+ "FlowStatsResponse": ".types",
334
+ "FlowStatus": ".types",
335
+ "FlowTemplate": ".types",
336
+ "FlowVersionDetailResponse": ".types",
337
+ "FlowVersionSummary": ".types",
338
+ "ForbiddenError": ".errors",
339
+ "FunctionCallMetrics": ".types",
340
+ "FunctionDefinition": ".types",
341
+ "GenerationConfigSchema": ".types",
342
+ "HourlyVolume": ".types",
343
+ "IceServerEntry": ".types",
344
+ "IceServersResponse": ".types",
345
+ "ImportError": ".types",
346
+ "ImportFormat": ".types",
347
+ "ImportResult": ".types",
348
+ "InternalServerError": ".errors",
349
+ "InvoiceResponse": ".types",
350
+ "InvoiceStatus": ".types",
351
+ "LanguageInfo": ".types",
352
+ "LatencyMetrics": ".types",
353
+ "ListMeta": ".types",
354
+ "LlmCapabilities": ".types",
355
+ "LlmModel": ".types",
356
+ "LlmPricing": ".types",
357
+ "LlmProvider": ".types",
358
+ "LlmServiceDefinition": ".types",
359
+ "MakeCallResponse": ".types",
360
+ "MakeCallResponseInitiated": ".types",
361
+ "MakeCallResponseQueued": ".types",
362
+ "MakeCallResponse_Initiated": ".types",
363
+ "MakeCallResponse_Queued": ".types",
364
+ "MaxCallDurationSettings": ".types",
365
+ "NotFoundError": ".errors",
366
+ "PaginatedResponse": ".types",
367
+ "PaginationMeta": ".types",
368
+ "PaymentRequiredError": ".errors",
369
+ "PhoneNumberCapability": ".types",
370
+ "PhoneNumberPricing": ".types",
371
+ "PhoneNumberResponse": ".types",
372
+ "PhoneNumberStatus": ".types",
373
+ "PhoneProviderResponse": ".types",
374
+ "PricingEntry": ".types",
375
+ "PromptReference": ".types",
376
+ "ProviderType": ".types",
377
+ "PublicCallStatusResponse": ".types",
378
+ "PublicPhoneNumberPricing": ".types",
379
+ "PublicPricingResponse": ".types",
380
+ "PublishFlowResponse": ".types",
381
+ "QueueInfo": ".types",
382
+ "RangeSchema": ".types",
383
+ "RateInfo": ".types",
384
+ "RecordingStoragePricing": ".types",
385
+ "RecordingUrlResponse": ".types",
386
+ "RemovedResponse": ".types",
387
+ "RequestSchema": ".types",
388
+ "RollbackResponse": ".types",
389
+ "ScheduleFrequency": ".types",
390
+ "ScheduleListResponse": ".types",
391
+ "ScheduleResponse": ".types",
392
+ "ScheduleStatus": ".types",
393
+ "SentimentAnalysis": ".types",
394
+ "ServiceChangeSummary": ".types",
395
+ "ServiceDefinition": ".types",
396
+ "ServiceUnavailableError": ".errors",
397
+ "SkippedContact": ".types",
398
+ "SttCapabilities": ".types",
399
+ "SttModel": ".types",
400
+ "SttPricing": ".types",
401
+ "SttProvider": ".types",
402
+ "SttServiceDefinition": ".types",
403
+ "TagWithCount": ".types",
404
+ "TagsListResponse": ".types",
405
+ "Talkif": ".client",
406
+ "TalkifEnvironment": ".environment",
407
+ "TelephonyStatus": ".types",
408
+ "TimePeriod": ".types",
409
+ "TooManyRequestsError": ".errors",
410
+ "TranscriptMessage": ".types",
411
+ "TranscriptMessageMetrics": ".types",
412
+ "TranscriptSpeaker": ".types",
413
+ "TransformationSummary": ".types",
414
+ "TransitionDefinition": ".types",
415
+ "TtsCapabilities": ".types",
416
+ "TtsModel": ".types",
417
+ "TtsPricing": ".types",
418
+ "TtsProvider": ".types",
419
+ "TtsServiceDefinition": ".types",
420
+ "UnauthorizedError": ".errors",
421
+ "UnprocessableEntityError": ".errors",
422
+ "UsageMetrics": ".types",
423
+ "UserIdleSettings": ".types",
424
+ "ValidationResponse": ".types",
425
+ "VoiceDto": ".types",
426
+ "VoicesDto": ".types",
427
+ "WebRtcOfferResponse": ".types",
428
+ "__version__": ".version",
429
+ "ai_models": ".ai_models",
430
+ "analytics": ".analytics",
431
+ "billing": ".billing",
432
+ "calls": ".calls",
433
+ "campaigns": ".campaigns",
434
+ "contacts": ".contacts",
435
+ "do_not_call": ".do_not_call",
436
+ "errors": ".errors",
437
+ "flow_functions": ".flow_functions",
438
+ "flow_templates": ".flow_templates",
439
+ "flows": ".flows",
440
+ "phone_numbers": ".phone_numbers",
441
+ "phone_providers": ".phone_providers",
442
+ "public_calls": ".public_calls",
443
+ "schedules": ".schedules",
444
+ }
445
+
446
+
447
+ def __getattr__(attr_name: str) -> typing.Any:
448
+ module_name = _dynamic_imports.get(attr_name)
449
+ if module_name is None:
450
+ raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
451
+ try:
452
+ module = import_module(module_name, __package__)
453
+ if module_name == f".{attr_name}":
454
+ return module
455
+ else:
456
+ return getattr(module, attr_name)
457
+ except ImportError as e:
458
+ raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
459
+ except AttributeError as e:
460
+ raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
461
+
462
+
463
+ def __dir__():
464
+ lazy_attrs = list(_dynamic_imports.keys())
465
+ return sorted(lazy_attrs)
466
+
467
+
468
+ __all__ = [
469
+ "ActionDefinition",
470
+ "ActionItem",
471
+ "AddedResponse",
472
+ "AgentChangeSummary",
473
+ "AgentDefinition",
474
+ "AgentStatus",
475
+ "AgentType",
476
+ "AnalyticsCostBreakdownResponse",
477
+ "AnalyticsCostLineItemResponse",
478
+ "AsyncTalkif",
479
+ "AttemptBucket",
480
+ "AvailablePhoneNumber",
481
+ "BadRequestError",
482
+ "BalanceSummaryResponse",
483
+ "BillableType",
484
+ "BulkAddContactsResponse",
485
+ "BulkContactFilter",
486
+ "BulkDncImportResponse",
487
+ "BulkRemoveContactsResponse",
488
+ "BulkTagFilterMode",
489
+ "CallCostBreakdownResponse",
490
+ "CallCostDetail",
491
+ "CallCounts",
492
+ "CallDirection",
493
+ "CallEndReason",
494
+ "CallFailureCode",
495
+ "CallInsights",
496
+ "CallListMeta",
497
+ "CallListResponse",
498
+ "CallOutcome",
499
+ "CallProviderType",
500
+ "CallRates",
501
+ "CallResponse",
502
+ "CallSource",
503
+ "CallStatus",
504
+ "CallTranscriptResponse",
505
+ "CallWindowRequest",
506
+ "CallWindowResponse",
507
+ "CampaignAnalyticsResponse",
508
+ "CampaignContactListResponse",
509
+ "CampaignContactResponse",
510
+ "CampaignContactStatus",
511
+ "CampaignDurationBucket",
512
+ "CampaignFailureCause",
513
+ "CampaignListResponse",
514
+ "CampaignMetrics",
515
+ "CampaignOutcome",
516
+ "CampaignOverview",
517
+ "CampaignPauseReason",
518
+ "CampaignPerformance",
519
+ "CampaignProgress",
520
+ "CampaignResponse",
521
+ "CampaignStatus",
522
+ "CampaignVoicemail",
523
+ "CategoryBreakdown",
524
+ "ChangeSummary",
525
+ "ChannelType",
526
+ "ChargeDetailResponse",
527
+ "ChargeStatus",
528
+ "ChargeTypeDb",
529
+ "CheckDncResponse",
530
+ "ConflictError",
531
+ "ConnectedFlow",
532
+ "ConnectedPhoneSummary",
533
+ "Contact",
534
+ "ContactAddress",
535
+ "ContactBrief",
536
+ "ContactListResponse",
537
+ "ContactPaginationMeta",
538
+ "ContactSearchResponse",
539
+ "ConversationMetrics",
540
+ "CostCategory",
541
+ "CostLineItemResponse",
542
+ "CostMetrics",
543
+ "CreateContactRequest",
544
+ "CreatePublicSessionResponse",
545
+ "CreateWebRtcCallResponse",
546
+ "DefaultAioHttpClient",
547
+ "DefaultAsyncHttpxClient",
548
+ "DetectedIntent",
549
+ "DirectionCounts",
550
+ "DncEntryResponse",
551
+ "DncListMeta",
552
+ "DncListResponse",
553
+ "DncSource",
554
+ "DuplicateStrategy",
555
+ "DurationMetrics",
556
+ "EmotionOption",
557
+ "ErrorCatalogResponse",
558
+ "ErrorCode",
559
+ "ErrorCodeEntry",
560
+ "ErrorReason",
561
+ "ErrorResponse",
562
+ "ExtractedCallerInfo",
563
+ "FieldError",
564
+ "FieldErrorCodeEntry",
565
+ "FlowChange",
566
+ "FlowChangeType",
567
+ "FlowCostBreakdown",
568
+ "FlowDefinition",
569
+ "FlowDetailResponse",
570
+ "FlowFunctionResponse",
571
+ "FlowProvidersResponse",
572
+ "FlowSettingChanges",
573
+ "FlowStatsResponse",
574
+ "FlowStatus",
575
+ "FlowTemplate",
576
+ "FlowVersionDetailResponse",
577
+ "FlowVersionSummary",
578
+ "ForbiddenError",
579
+ "FunctionCallMetrics",
580
+ "FunctionDefinition",
581
+ "GenerationConfigSchema",
582
+ "HourlyVolume",
583
+ "IceServerEntry",
584
+ "IceServersResponse",
585
+ "ImportError",
586
+ "ImportFormat",
587
+ "ImportResult",
588
+ "InternalServerError",
589
+ "InvoiceResponse",
590
+ "InvoiceStatus",
591
+ "LanguageInfo",
592
+ "LatencyMetrics",
593
+ "ListMeta",
594
+ "LlmCapabilities",
595
+ "LlmModel",
596
+ "LlmPricing",
597
+ "LlmProvider",
598
+ "LlmServiceDefinition",
599
+ "MakeCallResponse",
600
+ "MakeCallResponseInitiated",
601
+ "MakeCallResponseQueued",
602
+ "MakeCallResponse_Initiated",
603
+ "MakeCallResponse_Queued",
604
+ "MaxCallDurationSettings",
605
+ "NotFoundError",
606
+ "PaginatedResponse",
607
+ "PaginationMeta",
608
+ "PaymentRequiredError",
609
+ "PhoneNumberCapability",
610
+ "PhoneNumberPricing",
611
+ "PhoneNumberResponse",
612
+ "PhoneNumberStatus",
613
+ "PhoneProviderResponse",
614
+ "PricingEntry",
615
+ "PromptReference",
616
+ "ProviderType",
617
+ "PublicCallStatusResponse",
618
+ "PublicPhoneNumberPricing",
619
+ "PublicPricingResponse",
620
+ "PublishFlowResponse",
621
+ "QueueInfo",
622
+ "RangeSchema",
623
+ "RateInfo",
624
+ "RecordingStoragePricing",
625
+ "RecordingUrlResponse",
626
+ "RemovedResponse",
627
+ "RequestSchema",
628
+ "RollbackResponse",
629
+ "ScheduleFrequency",
630
+ "ScheduleListResponse",
631
+ "ScheduleResponse",
632
+ "ScheduleStatus",
633
+ "SentimentAnalysis",
634
+ "ServiceChangeSummary",
635
+ "ServiceDefinition",
636
+ "ServiceUnavailableError",
637
+ "SkippedContact",
638
+ "SttCapabilities",
639
+ "SttModel",
640
+ "SttPricing",
641
+ "SttProvider",
642
+ "SttServiceDefinition",
643
+ "TagWithCount",
644
+ "TagsListResponse",
645
+ "Talkif",
646
+ "TalkifEnvironment",
647
+ "TelephonyStatus",
648
+ "TimePeriod",
649
+ "TooManyRequestsError",
650
+ "TranscriptMessage",
651
+ "TranscriptMessageMetrics",
652
+ "TranscriptSpeaker",
653
+ "TransformationSummary",
654
+ "TransitionDefinition",
655
+ "TtsCapabilities",
656
+ "TtsModel",
657
+ "TtsPricing",
658
+ "TtsProvider",
659
+ "TtsServiceDefinition",
660
+ "UnauthorizedError",
661
+ "UnprocessableEntityError",
662
+ "UsageMetrics",
663
+ "UserIdleSettings",
664
+ "ValidationResponse",
665
+ "VoiceDto",
666
+ "VoicesDto",
667
+ "WebRtcOfferResponse",
668
+ "__version__",
669
+ "ai_models",
670
+ "analytics",
671
+ "billing",
672
+ "calls",
673
+ "campaigns",
674
+ "contacts",
675
+ "do_not_call",
676
+ "errors",
677
+ "flow_functions",
678
+ "flow_templates",
679
+ "flows",
680
+ "phone_numbers",
681
+ "phone_providers",
682
+ "public_calls",
683
+ "schedules",
684
+ ]