telnyx 3.0.0a0__py3-none-any.whl → 3.2.0a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of telnyx might be problematic. Click here for more details.
- telnyx/_models.py +1 -1
- telnyx/_version.py +1 -1
- telnyx/resources/advanced_orders.py +135 -1
- telnyx/resources/documents.py +81 -0
- telnyx/resources/portouts/portouts.py +8 -6
- telnyx/types/__init__.py +4 -0
- telnyx/types/advanced_order_create_params.py +3 -0
- telnyx/types/advanced_order_update_params.py +27 -0
- telnyx/types/document_generate_download_link_response.py +14 -0
- telnyx/types/portout_list_params.py +10 -3
- {telnyx-3.0.0a0.dist-info → telnyx-3.2.0a0.dist-info}/METADATA +1 -1
- {telnyx-3.0.0a0.dist-info → telnyx-3.2.0a0.dist-info}/RECORD +14 -12
- {telnyx-3.0.0a0.dist-info → telnyx-3.2.0a0.dist-info}/WHEEL +0 -0
- {telnyx-3.0.0a0.dist-info → telnyx-3.2.0a0.dist-info}/licenses/LICENSE +0 -0
telnyx/_models.py
CHANGED
|
@@ -304,7 +304,7 @@ class BaseModel(pydantic.BaseModel):
|
|
|
304
304
|
exclude_none=exclude_none,
|
|
305
305
|
)
|
|
306
306
|
|
|
307
|
-
return cast(dict[str, Any], json_safe(dumped)) if mode == "json" else dumped
|
|
307
|
+
return cast("dict[str, Any]", json_safe(dumped)) if mode == "json" else dumped
|
|
308
308
|
|
|
309
309
|
@override
|
|
310
310
|
def model_dump_json(
|
telnyx/_version.py
CHANGED
|
@@ -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_params
|
|
11
11
|
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
12
12
|
from .._utils import maybe_transform, async_maybe_transform
|
|
13
13
|
from .._compat import cached_property
|
|
@@ -54,6 +54,7 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
54
54
|
phone_number_type: Literal["local", "mobile", "toll_free", "shared_cost", "national", "landline"]
|
|
55
55
|
| NotGiven = NOT_GIVEN,
|
|
56
56
|
quantity: int | NotGiven = NOT_GIVEN,
|
|
57
|
+
requirement_group_id: str | NotGiven = NOT_GIVEN,
|
|
57
58
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
58
59
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
59
60
|
extra_headers: Headers | None = None,
|
|
@@ -65,6 +66,8 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
65
66
|
Create Advanced Order
|
|
66
67
|
|
|
67
68
|
Args:
|
|
69
|
+
requirement_group_id: The ID of the requirement group to associate with this advanced order
|
|
70
|
+
|
|
68
71
|
extra_headers: Send extra headers
|
|
69
72
|
|
|
70
73
|
extra_query: Add additional query parameters to the request
|
|
@@ -84,6 +87,7 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
84
87
|
"features": features,
|
|
85
88
|
"phone_number_type": phone_number_type,
|
|
86
89
|
"quantity": quantity,
|
|
90
|
+
"requirement_group_id": requirement_group_id,
|
|
87
91
|
},
|
|
88
92
|
advanced_order_create_params.AdvancedOrderCreateParams,
|
|
89
93
|
),
|
|
@@ -126,6 +130,63 @@ class AdvancedOrdersResource(SyncAPIResource):
|
|
|
126
130
|
cast_to=object,
|
|
127
131
|
)
|
|
128
132
|
|
|
133
|
+
def update(
|
|
134
|
+
self,
|
|
135
|
+
order_id: str,
|
|
136
|
+
*,
|
|
137
|
+
area_code: str | NotGiven = NOT_GIVEN,
|
|
138
|
+
comments: str | NotGiven = NOT_GIVEN,
|
|
139
|
+
country_code: str | NotGiven = NOT_GIVEN,
|
|
140
|
+
customer_reference: str | NotGiven = NOT_GIVEN,
|
|
141
|
+
features: List[Literal["sms", "mms", "voice", "fax", "emergency"]] | NotGiven = NOT_GIVEN,
|
|
142
|
+
phone_number_type: Literal["local", "mobile", "toll_free", "shared_cost", "national", "landline"]
|
|
143
|
+
| NotGiven = NOT_GIVEN,
|
|
144
|
+
quantity: int | NotGiven = NOT_GIVEN,
|
|
145
|
+
requirement_group_id: str | NotGiven = NOT_GIVEN,
|
|
146
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
147
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
148
|
+
extra_headers: Headers | None = None,
|
|
149
|
+
extra_query: Query | None = None,
|
|
150
|
+
extra_body: Body | None = None,
|
|
151
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
152
|
+
) -> object:
|
|
153
|
+
"""
|
|
154
|
+
Update Advanced Order
|
|
155
|
+
|
|
156
|
+
Args:
|
|
157
|
+
requirement_group_id: The ID of the requirement group to associate with this advanced order
|
|
158
|
+
|
|
159
|
+
extra_headers: Send extra headers
|
|
160
|
+
|
|
161
|
+
extra_query: Add additional query parameters to the request
|
|
162
|
+
|
|
163
|
+
extra_body: Add additional JSON properties to the request
|
|
164
|
+
|
|
165
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
166
|
+
"""
|
|
167
|
+
if not order_id:
|
|
168
|
+
raise ValueError(f"Expected a non-empty value for `order_id` but received {order_id!r}")
|
|
169
|
+
return self._patch(
|
|
170
|
+
f"/advanced_orders/{order_id}",
|
|
171
|
+
body=maybe_transform(
|
|
172
|
+
{
|
|
173
|
+
"area_code": area_code,
|
|
174
|
+
"comments": comments,
|
|
175
|
+
"country_code": country_code,
|
|
176
|
+
"customer_reference": customer_reference,
|
|
177
|
+
"features": features,
|
|
178
|
+
"phone_number_type": phone_number_type,
|
|
179
|
+
"quantity": quantity,
|
|
180
|
+
"requirement_group_id": requirement_group_id,
|
|
181
|
+
},
|
|
182
|
+
advanced_order_update_params.AdvancedOrderUpdateParams,
|
|
183
|
+
),
|
|
184
|
+
options=make_request_options(
|
|
185
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
186
|
+
),
|
|
187
|
+
cast_to=object,
|
|
188
|
+
)
|
|
189
|
+
|
|
129
190
|
def list(
|
|
130
191
|
self,
|
|
131
192
|
*,
|
|
@@ -177,6 +238,7 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
177
238
|
phone_number_type: Literal["local", "mobile", "toll_free", "shared_cost", "national", "landline"]
|
|
178
239
|
| NotGiven = NOT_GIVEN,
|
|
179
240
|
quantity: int | NotGiven = NOT_GIVEN,
|
|
241
|
+
requirement_group_id: str | NotGiven = NOT_GIVEN,
|
|
180
242
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
181
243
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
182
244
|
extra_headers: Headers | None = None,
|
|
@@ -188,6 +250,8 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
188
250
|
Create Advanced Order
|
|
189
251
|
|
|
190
252
|
Args:
|
|
253
|
+
requirement_group_id: The ID of the requirement group to associate with this advanced order
|
|
254
|
+
|
|
191
255
|
extra_headers: Send extra headers
|
|
192
256
|
|
|
193
257
|
extra_query: Add additional query parameters to the request
|
|
@@ -207,6 +271,7 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
207
271
|
"features": features,
|
|
208
272
|
"phone_number_type": phone_number_type,
|
|
209
273
|
"quantity": quantity,
|
|
274
|
+
"requirement_group_id": requirement_group_id,
|
|
210
275
|
},
|
|
211
276
|
advanced_order_create_params.AdvancedOrderCreateParams,
|
|
212
277
|
),
|
|
@@ -249,6 +314,63 @@ class AsyncAdvancedOrdersResource(AsyncAPIResource):
|
|
|
249
314
|
cast_to=object,
|
|
250
315
|
)
|
|
251
316
|
|
|
317
|
+
async def update(
|
|
318
|
+
self,
|
|
319
|
+
order_id: str,
|
|
320
|
+
*,
|
|
321
|
+
area_code: str | NotGiven = NOT_GIVEN,
|
|
322
|
+
comments: str | NotGiven = NOT_GIVEN,
|
|
323
|
+
country_code: str | NotGiven = NOT_GIVEN,
|
|
324
|
+
customer_reference: str | NotGiven = NOT_GIVEN,
|
|
325
|
+
features: List[Literal["sms", "mms", "voice", "fax", "emergency"]] | NotGiven = NOT_GIVEN,
|
|
326
|
+
phone_number_type: Literal["local", "mobile", "toll_free", "shared_cost", "national", "landline"]
|
|
327
|
+
| NotGiven = NOT_GIVEN,
|
|
328
|
+
quantity: int | NotGiven = NOT_GIVEN,
|
|
329
|
+
requirement_group_id: str | NotGiven = NOT_GIVEN,
|
|
330
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
331
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
332
|
+
extra_headers: Headers | None = None,
|
|
333
|
+
extra_query: Query | None = None,
|
|
334
|
+
extra_body: Body | None = None,
|
|
335
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
336
|
+
) -> object:
|
|
337
|
+
"""
|
|
338
|
+
Update Advanced Order
|
|
339
|
+
|
|
340
|
+
Args:
|
|
341
|
+
requirement_group_id: The ID of the requirement group to associate with this advanced order
|
|
342
|
+
|
|
343
|
+
extra_headers: Send extra headers
|
|
344
|
+
|
|
345
|
+
extra_query: Add additional query parameters to the request
|
|
346
|
+
|
|
347
|
+
extra_body: Add additional JSON properties to the request
|
|
348
|
+
|
|
349
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
350
|
+
"""
|
|
351
|
+
if not order_id:
|
|
352
|
+
raise ValueError(f"Expected a non-empty value for `order_id` but received {order_id!r}")
|
|
353
|
+
return await self._patch(
|
|
354
|
+
f"/advanced_orders/{order_id}",
|
|
355
|
+
body=await async_maybe_transform(
|
|
356
|
+
{
|
|
357
|
+
"area_code": area_code,
|
|
358
|
+
"comments": comments,
|
|
359
|
+
"country_code": country_code,
|
|
360
|
+
"customer_reference": customer_reference,
|
|
361
|
+
"features": features,
|
|
362
|
+
"phone_number_type": phone_number_type,
|
|
363
|
+
"quantity": quantity,
|
|
364
|
+
"requirement_group_id": requirement_group_id,
|
|
365
|
+
},
|
|
366
|
+
advanced_order_update_params.AdvancedOrderUpdateParams,
|
|
367
|
+
),
|
|
368
|
+
options=make_request_options(
|
|
369
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
370
|
+
),
|
|
371
|
+
cast_to=object,
|
|
372
|
+
)
|
|
373
|
+
|
|
252
374
|
async def list(
|
|
253
375
|
self,
|
|
254
376
|
*,
|
|
@@ -279,6 +401,9 @@ class AdvancedOrdersResourceWithRawResponse:
|
|
|
279
401
|
self.retrieve = to_raw_response_wrapper(
|
|
280
402
|
advanced_orders.retrieve,
|
|
281
403
|
)
|
|
404
|
+
self.update = to_raw_response_wrapper(
|
|
405
|
+
advanced_orders.update,
|
|
406
|
+
)
|
|
282
407
|
self.list = to_raw_response_wrapper(
|
|
283
408
|
advanced_orders.list,
|
|
284
409
|
)
|
|
@@ -294,6 +419,9 @@ class AsyncAdvancedOrdersResourceWithRawResponse:
|
|
|
294
419
|
self.retrieve = async_to_raw_response_wrapper(
|
|
295
420
|
advanced_orders.retrieve,
|
|
296
421
|
)
|
|
422
|
+
self.update = async_to_raw_response_wrapper(
|
|
423
|
+
advanced_orders.update,
|
|
424
|
+
)
|
|
297
425
|
self.list = async_to_raw_response_wrapper(
|
|
298
426
|
advanced_orders.list,
|
|
299
427
|
)
|
|
@@ -309,6 +437,9 @@ class AdvancedOrdersResourceWithStreamingResponse:
|
|
|
309
437
|
self.retrieve = to_streamed_response_wrapper(
|
|
310
438
|
advanced_orders.retrieve,
|
|
311
439
|
)
|
|
440
|
+
self.update = to_streamed_response_wrapper(
|
|
441
|
+
advanced_orders.update,
|
|
442
|
+
)
|
|
312
443
|
self.list = to_streamed_response_wrapper(
|
|
313
444
|
advanced_orders.list,
|
|
314
445
|
)
|
|
@@ -324,6 +455,9 @@ class AsyncAdvancedOrdersResourceWithStreamingResponse:
|
|
|
324
455
|
self.retrieve = async_to_streamed_response_wrapper(
|
|
325
456
|
advanced_orders.retrieve,
|
|
326
457
|
)
|
|
458
|
+
self.update = async_to_streamed_response_wrapper(
|
|
459
|
+
advanced_orders.update,
|
|
460
|
+
)
|
|
327
461
|
self.list = async_to_streamed_response_wrapper(
|
|
328
462
|
advanced_orders.list,
|
|
329
463
|
)
|
telnyx/resources/documents.py
CHANGED
|
@@ -32,6 +32,7 @@ from ..types.document_delete_response import DocumentDeleteResponse
|
|
|
32
32
|
from ..types.document_update_response import DocumentUpdateResponse
|
|
33
33
|
from ..types.document_upload_response import DocumentUploadResponse
|
|
34
34
|
from ..types.document_retrieve_response import DocumentRetrieveResponse
|
|
35
|
+
from ..types.document_generate_download_link_response import DocumentGenerateDownloadLinkResponse
|
|
35
36
|
|
|
36
37
|
__all__ = ["DocumentsResource", "AsyncDocumentsResource"]
|
|
37
38
|
|
|
@@ -259,6 +260,40 @@ class DocumentsResource(SyncAPIResource):
|
|
|
259
260
|
cast_to=BinaryAPIResponse,
|
|
260
261
|
)
|
|
261
262
|
|
|
263
|
+
def generate_download_link(
|
|
264
|
+
self,
|
|
265
|
+
id: str,
|
|
266
|
+
*,
|
|
267
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
268
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
269
|
+
extra_headers: Headers | None = None,
|
|
270
|
+
extra_query: Query | None = None,
|
|
271
|
+
extra_body: Body | None = None,
|
|
272
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
273
|
+
) -> DocumentGenerateDownloadLinkResponse:
|
|
274
|
+
"""
|
|
275
|
+
Generates a temporary pre-signed URL that can be used to download the document
|
|
276
|
+
directly from the storage backend without authentication.
|
|
277
|
+
|
|
278
|
+
Args:
|
|
279
|
+
extra_headers: Send extra headers
|
|
280
|
+
|
|
281
|
+
extra_query: Add additional query parameters to the request
|
|
282
|
+
|
|
283
|
+
extra_body: Add additional JSON properties to the request
|
|
284
|
+
|
|
285
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
286
|
+
"""
|
|
287
|
+
if not id:
|
|
288
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
289
|
+
return self._get(
|
|
290
|
+
f"/documents/{id}/download_link",
|
|
291
|
+
options=make_request_options(
|
|
292
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
293
|
+
),
|
|
294
|
+
cast_to=DocumentGenerateDownloadLinkResponse,
|
|
295
|
+
)
|
|
296
|
+
|
|
262
297
|
@overload
|
|
263
298
|
def upload(
|
|
264
299
|
self,
|
|
@@ -593,6 +628,40 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
593
628
|
cast_to=AsyncBinaryAPIResponse,
|
|
594
629
|
)
|
|
595
630
|
|
|
631
|
+
async def generate_download_link(
|
|
632
|
+
self,
|
|
633
|
+
id: str,
|
|
634
|
+
*,
|
|
635
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
636
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
637
|
+
extra_headers: Headers | None = None,
|
|
638
|
+
extra_query: Query | None = None,
|
|
639
|
+
extra_body: Body | None = None,
|
|
640
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
641
|
+
) -> DocumentGenerateDownloadLinkResponse:
|
|
642
|
+
"""
|
|
643
|
+
Generates a temporary pre-signed URL that can be used to download the document
|
|
644
|
+
directly from the storage backend without authentication.
|
|
645
|
+
|
|
646
|
+
Args:
|
|
647
|
+
extra_headers: Send extra headers
|
|
648
|
+
|
|
649
|
+
extra_query: Add additional query parameters to the request
|
|
650
|
+
|
|
651
|
+
extra_body: Add additional JSON properties to the request
|
|
652
|
+
|
|
653
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
654
|
+
"""
|
|
655
|
+
if not id:
|
|
656
|
+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
|
|
657
|
+
return await self._get(
|
|
658
|
+
f"/documents/{id}/download_link",
|
|
659
|
+
options=make_request_options(
|
|
660
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
661
|
+
),
|
|
662
|
+
cast_to=DocumentGenerateDownloadLinkResponse,
|
|
663
|
+
)
|
|
664
|
+
|
|
596
665
|
@overload
|
|
597
666
|
async def upload(
|
|
598
667
|
self,
|
|
@@ -724,6 +793,9 @@ class DocumentsResourceWithRawResponse:
|
|
|
724
793
|
documents.download,
|
|
725
794
|
BinaryAPIResponse,
|
|
726
795
|
)
|
|
796
|
+
self.generate_download_link = to_raw_response_wrapper(
|
|
797
|
+
documents.generate_download_link,
|
|
798
|
+
)
|
|
727
799
|
self.upload = to_raw_response_wrapper(
|
|
728
800
|
documents.upload,
|
|
729
801
|
)
|
|
@@ -749,6 +821,9 @@ class AsyncDocumentsResourceWithRawResponse:
|
|
|
749
821
|
documents.download,
|
|
750
822
|
AsyncBinaryAPIResponse,
|
|
751
823
|
)
|
|
824
|
+
self.generate_download_link = async_to_raw_response_wrapper(
|
|
825
|
+
documents.generate_download_link,
|
|
826
|
+
)
|
|
752
827
|
self.upload = async_to_raw_response_wrapper(
|
|
753
828
|
documents.upload,
|
|
754
829
|
)
|
|
@@ -774,6 +849,9 @@ class DocumentsResourceWithStreamingResponse:
|
|
|
774
849
|
documents.download,
|
|
775
850
|
StreamedBinaryAPIResponse,
|
|
776
851
|
)
|
|
852
|
+
self.generate_download_link = to_streamed_response_wrapper(
|
|
853
|
+
documents.generate_download_link,
|
|
854
|
+
)
|
|
777
855
|
self.upload = to_streamed_response_wrapper(
|
|
778
856
|
documents.upload,
|
|
779
857
|
)
|
|
@@ -799,6 +877,9 @@ class AsyncDocumentsResourceWithStreamingResponse:
|
|
|
799
877
|
documents.download,
|
|
800
878
|
AsyncStreamedBinaryAPIResponse,
|
|
801
879
|
)
|
|
880
|
+
self.generate_download_link = async_to_streamed_response_wrapper(
|
|
881
|
+
documents.generate_download_link,
|
|
882
|
+
)
|
|
802
883
|
self.upload = async_to_streamed_response_wrapper(
|
|
803
884
|
documents.upload,
|
|
804
885
|
)
|
|
@@ -145,9 +145,10 @@ class PortoutsResource(SyncAPIResource):
|
|
|
145
145
|
Args:
|
|
146
146
|
filter:
|
|
147
147
|
Consolidated filter parameter (deepObject style). Originally:
|
|
148
|
-
filter[carrier_name], filter[
|
|
149
|
-
filter[
|
|
150
|
-
filter[
|
|
148
|
+
filter[carrier_name], filter[country_code], filter[country_code_in],
|
|
149
|
+
filter[foc_date], filter[inserted_at], filter[phone_number], filter[pon],
|
|
150
|
+
filter[ported_out_at], filter[spid], filter[status], filter[status_in],
|
|
151
|
+
filter[support_key]
|
|
151
152
|
|
|
152
153
|
page: Consolidated page parameter (deepObject style). Originally: page[number],
|
|
153
154
|
page[size]
|
|
@@ -359,9 +360,10 @@ class AsyncPortoutsResource(AsyncAPIResource):
|
|
|
359
360
|
Args:
|
|
360
361
|
filter:
|
|
361
362
|
Consolidated filter parameter (deepObject style). Originally:
|
|
362
|
-
filter[carrier_name], filter[
|
|
363
|
-
filter[
|
|
364
|
-
filter[
|
|
363
|
+
filter[carrier_name], filter[country_code], filter[country_code_in],
|
|
364
|
+
filter[foc_date], filter[inserted_at], filter[phone_number], filter[pon],
|
|
365
|
+
filter[ported_out_at], filter[spid], filter[status], filter[status_in],
|
|
366
|
+
filter[support_key]
|
|
365
367
|
|
|
366
368
|
page: Consolidated page parameter (deepObject style). Originally: page[number],
|
|
367
369
|
page[size]
|
telnyx/types/__init__.py
CHANGED
|
@@ -352,6 +352,7 @@ from .reserved_phone_number_param import ReservedPhoneNumberParam as ReservedPho
|
|
|
352
352
|
from .s3_configuration_data_param import S3ConfigurationDataParam as S3ConfigurationDataParam
|
|
353
353
|
from .verified_number_list_params import VerifiedNumberListParams as VerifiedNumberListParams
|
|
354
354
|
from .advanced_order_create_params import AdvancedOrderCreateParams as AdvancedOrderCreateParams
|
|
355
|
+
from .advanced_order_update_params import AdvancedOrderUpdateParams as AdvancedOrderUpdateParams
|
|
355
356
|
from .campaign_deactivate_response import CampaignDeactivateResponse as CampaignDeactivateResponse
|
|
356
357
|
from .channel_zone_update_response import ChannelZoneUpdateResponse as ChannelZoneUpdateResponse
|
|
357
358
|
from .client_delete_objects_params import ClientDeleteObjectsParams as ClientDeleteObjectsParams
|
|
@@ -892,6 +893,9 @@ from .call_control_application_delete_response import (
|
|
|
892
893
|
from .call_control_application_update_response import (
|
|
893
894
|
CallControlApplicationUpdateResponse as CallControlApplicationUpdateResponse,
|
|
894
895
|
)
|
|
896
|
+
from .document_generate_download_link_response import (
|
|
897
|
+
DocumentGenerateDownloadLinkResponse as DocumentGenerateDownloadLinkResponse,
|
|
898
|
+
)
|
|
895
899
|
from .dynamic_emergency_endpoint_create_params import (
|
|
896
900
|
DynamicEmergencyEndpointCreateParams as DynamicEmergencyEndpointCreateParams,
|
|
897
901
|
)
|
|
@@ -22,3 +22,6 @@ class AdvancedOrderCreateParams(TypedDict, total=False):
|
|
|
22
22
|
phone_number_type: Literal["local", "mobile", "toll_free", "shared_cost", "national", "landline"]
|
|
23
23
|
|
|
24
24
|
quantity: int
|
|
25
|
+
|
|
26
|
+
requirement_group_id: str
|
|
27
|
+
"""The ID of the requirement group to associate with this advanced order"""
|
|
@@ -0,0 +1,27 @@
|
|
|
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 List
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["AdvancedOrderUpdateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AdvancedOrderUpdateParams(TypedDict, total=False):
|
|
12
|
+
area_code: str
|
|
13
|
+
|
|
14
|
+
comments: str
|
|
15
|
+
|
|
16
|
+
country_code: str
|
|
17
|
+
|
|
18
|
+
customer_reference: str
|
|
19
|
+
|
|
20
|
+
features: List[Literal["sms", "mms", "voice", "fax", "emergency"]]
|
|
21
|
+
|
|
22
|
+
phone_number_type: Literal["local", "mobile", "toll_free", "shared_cost", "national", "landline"]
|
|
23
|
+
|
|
24
|
+
quantity: int
|
|
25
|
+
|
|
26
|
+
requirement_group_id: str
|
|
27
|
+
"""The ID of the requirement group to associate with this advanced order"""
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["DocumentGenerateDownloadLinkResponse", "Data"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Data(BaseModel):
|
|
9
|
+
url: str
|
|
10
|
+
"""Pre-signed temporary URL for downloading the document"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DocumentGenerateDownloadLinkResponse(BaseModel):
|
|
14
|
+
data: Data
|
|
@@ -15,9 +15,10 @@ class PortoutListParams(TypedDict, total=False):
|
|
|
15
15
|
filter: Filter
|
|
16
16
|
"""Consolidated filter parameter (deepObject style).
|
|
17
17
|
|
|
18
|
-
Originally: filter[carrier_name], filter[
|
|
19
|
-
filter[
|
|
20
|
-
filter[
|
|
18
|
+
Originally: filter[carrier_name], filter[country_code], filter[country_code_in],
|
|
19
|
+
filter[foc_date], filter[inserted_at], filter[phone_number], filter[pon],
|
|
20
|
+
filter[ported_out_at], filter[spid], filter[status], filter[status_in],
|
|
21
|
+
filter[support_key]
|
|
21
22
|
"""
|
|
22
23
|
|
|
23
24
|
page: Page
|
|
@@ -47,6 +48,12 @@ class Filter(TypedDict, total=False):
|
|
|
47
48
|
carrier_name: str
|
|
48
49
|
"""Filter by new carrier name."""
|
|
49
50
|
|
|
51
|
+
country_code: str
|
|
52
|
+
"""Filter by 2-letter country code"""
|
|
53
|
+
|
|
54
|
+
country_code_in: List[str]
|
|
55
|
+
"""Filter by a list of 2-letter country codes"""
|
|
56
|
+
|
|
50
57
|
foc_date: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
|
51
58
|
"""Filter by foc_date. Matches all portouts with the same date"""
|
|
52
59
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: telnyx
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0a0
|
|
4
4
|
Summary: The official Python library for the telnyx API
|
|
5
5
|
Project-URL: Homepage, https://github.com/team-telnyx/telnyx-python
|
|
6
6
|
Project-URL: Repository, https://github.com/team-telnyx/telnyx-python
|
|
@@ -5,13 +5,13 @@ telnyx/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
|
5
5
|
telnyx/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
telnyx/_exceptions.py,sha256=D9kyl_aKwKQ1618MjC8SZPmL5qLUyfnZzyO9TTKS3mo,3220
|
|
7
7
|
telnyx/_files.py,sha256=sDy00jrSguKZf-dx9WnJzRyQplNz_b-_zMIVL31CjIo,3619
|
|
8
|
-
telnyx/_models.py,sha256=
|
|
8
|
+
telnyx/_models.py,sha256=6rDtUmk6jhjGN1q96CUICYfBunNXNhhEk_AqztTm3uE,30012
|
|
9
9
|
telnyx/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
10
|
telnyx/_resource.py,sha256=B4Qg-uO2a34FQHHZskn89eVURqMuSvv1TdeBJH1z1rU,1100
|
|
11
11
|
telnyx/_response.py,sha256=4X24wr7uQn2hnM_b0xqQ92zSgxRFFfWG2lTg93-KzNo,28788
|
|
12
12
|
telnyx/_streaming.py,sha256=OfSFcMQJ_mnvfkbIdOG7Ajp0SMbXnOJSga4xXHjNAJk,10100
|
|
13
13
|
telnyx/_types.py,sha256=c0fPUnqjxrdVYFjtxNbWwRnbHiW4iCbbfw_xnr-BVZw,6197
|
|
14
|
-
telnyx/_version.py,sha256=
|
|
14
|
+
telnyx/_version.py,sha256=VqlH-efC09RqzXBZP0c_UzMcHKDOHCUJSiRtHZ7_n_Y,164
|
|
15
15
|
telnyx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
telnyx/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
17
17
|
telnyx/_utils/_logs.py,sha256=0TK41m0v92Gj1abmzI7B2Ogm7Mcu_J9hiz8mkrF5cIQ,774
|
|
@@ -27,7 +27,7 @@ telnyx/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
|
27
27
|
telnyx/resources/__init__.py,sha256=6wpwERN8FQSG-U4MLJvHYwOjwfYX2oqrIRXw6bXtRts,83477
|
|
28
28
|
telnyx/resources/access_ip_address.py,sha256=UxbBNXpA4YRIQSTopGhdHS2-b0I8jBeGN1Z3bT_2lwM,17561
|
|
29
29
|
telnyx/resources/access_ip_ranges.py,sha256=GYF-BpmJYfkpMTnjBHVWGu04IPsXaJRXDqHN_ARP6bk,14252
|
|
30
|
-
telnyx/resources/advanced_orders.py,sha256=
|
|
30
|
+
telnyx/resources/advanced_orders.py,sha256=n8gIQve3KwesryG6QYS_u-h-VYXxY7Y7YrvNUCHmAN4,18623
|
|
31
31
|
telnyx/resources/audit_events.py,sha256=XjsrDGMJtTW_vwjcxgL08t_daqxMWlKCDzQDYO8LSqw,7853
|
|
32
32
|
telnyx/resources/authentication_providers.py,sha256=SaQCA-qVza9HiEIAFUhVUMy-lJ0nTCgMH9nHtczkWdw,26915
|
|
33
33
|
telnyx/resources/available_phone_number_blocks.py,sha256=QBVHHqLbBoSC5OhS5nqhdnnw3cIKfeLN0hVPBHCjHEY,7605
|
|
@@ -48,7 +48,7 @@ telnyx/resources/customer_service_records.py,sha256=d4I83zLME3c8Afzw56h22nYLASXd
|
|
|
48
48
|
telnyx/resources/detail_records.py,sha256=udmlGeGoP2G70NwH0GsP62cp8RJwRzg6Suvs8begKkY,7857
|
|
49
49
|
telnyx/resources/dialogflow_connections.py,sha256=NqrxiR17ICouCrNz8ahbenUr7co_-WxJxXnFQmPuJOg,21618
|
|
50
50
|
telnyx/resources/document_links.py,sha256=5X5y-a5t7-exjlwT0y7VIKwSDuIacgrDECiTK2jLVco,7470
|
|
51
|
-
telnyx/resources/documents.py,sha256=
|
|
51
|
+
telnyx/resources/documents.py,sha256=_GhcVL53xyoJB0Nchq05xSz7AGMPCsl3bUOVnLdejpE,34912
|
|
52
52
|
telnyx/resources/dynamic_emergency_addresses.py,sha256=N-RKemA-sdfDGS3abSVr7vRWcG02tZOlC9-cKhg5aSY,20075
|
|
53
53
|
telnyx/resources/dynamic_emergency_endpoints.py,sha256=GJwFVKp06pV4bVbEHTmpDOPJ_w9L6DntTQdrUvu5br0,18716
|
|
54
54
|
telnyx/resources/enum.py,sha256=xGHamZ9ftAUwGxmVveOms-5C2jHFRdChDpN23M2vxnw,7191
|
|
@@ -268,7 +268,7 @@ telnyx/resources/porting_orders/verification_codes.py,sha256=ALE2bm3zvTVgaYJHIN_
|
|
|
268
268
|
telnyx/resources/portouts/__init__.py,sha256=mX6do8iVPgKT6DoJ2fZRgCX1q4ENrqf1L3MFYGzGlW8,2587
|
|
269
269
|
telnyx/resources/portouts/comments.py,sha256=OtXhBhvDSkrGgwHolxmCGHFQETUSWTbr3165GKYNYWE,9435
|
|
270
270
|
telnyx/resources/portouts/events.py,sha256=8N68yZ_U8CgxCj4GED2Ak92eyXAG9MiYGH4aCTSITqI,13121
|
|
271
|
-
telnyx/resources/portouts/portouts.py,sha256=
|
|
271
|
+
telnyx/resources/portouts/portouts.py,sha256=06WkEg6wm_m1MEkko8IRGIK7c-xalQA82hgixdACazw,24312
|
|
272
272
|
telnyx/resources/portouts/reports.py,sha256=XFIu8dcwk_q96tafGmgRJMjvVjHF34r0xM8M_tzFtGg,13951
|
|
273
273
|
telnyx/resources/portouts/supporting_documents.py,sha256=G-buxsUYHw5SlMmydJw9MuVFVlejak4doArc1ihks80,10414
|
|
274
274
|
telnyx/resources/queues/__init__.py,sha256=imHzIAoSCvwhKbR_NdPVytFiu9a8xmjGKTDzvj78c6o,989
|
|
@@ -335,7 +335,7 @@ telnyx/resources/verified_numbers/verified_numbers.py,sha256=evCpg4XTmWzO8mog7GC
|
|
|
335
335
|
telnyx/resources/wireless/__init__.py,sha256=fEZwFm-3jI908Ui2_pT-S-3Titgg1vs7uFjzK4p406M,1212
|
|
336
336
|
telnyx/resources/wireless/detail_records_reports.py,sha256=73b10ZJJYsNwTdqA5bee4Q3_TG3WTskTkg4mPsM1jOc,17982
|
|
337
337
|
telnyx/resources/wireless/wireless.py,sha256=NQKcHQh4AoB4VrJRsgP3KGIH64bJmwAXFLRK7ZR1AX8,8176
|
|
338
|
-
telnyx/types/__init__.py,sha256=
|
|
338
|
+
telnyx/types/__init__.py,sha256=mcKOwP3UJpculiAGKSSkPh9P3BekW0WLQHCCgiuZW8Q,88827
|
|
339
339
|
telnyx/types/access_ip_address_create_params.py,sha256=qd_T7W_K4XiVIdsJLbsS5U9Qlf3_m0DT677n5Tqdvm8,329
|
|
340
340
|
telnyx/types/access_ip_address_list_params.py,sha256=3sWF6U18lHT3y0fGouO8qCznMlvEyW5PRGx_pItEeLo,1870
|
|
341
341
|
telnyx/types/access_ip_address_list_response.py,sha256=WFYBcqjSoC6c4rf9V6zGWkcB0_UG9DnMQwF5ic17MdY,475
|
|
@@ -351,7 +351,8 @@ telnyx/types/address_delete_response.py,sha256=P41ZTsQjt6I5qtukCM4tfJAPr2hPq6t2B
|
|
|
351
351
|
telnyx/types/address_list_params.py,sha256=2otSG0_ZVjD1bPEUAvFG_WJsvTrbxeQenG0A6_p_ODE,3066
|
|
352
352
|
telnyx/types/address_list_response.py,sha256=mI6_cLdNQCltEvs6MuBeSZa28Nt0a8pYHPiZWrNQk9U,386
|
|
353
353
|
telnyx/types/address_retrieve_response.py,sha256=L8QmmvrgJ8uGJ166A6jinLm5E_9wgDqAlxdnS8U1OFc,295
|
|
354
|
-
telnyx/types/advanced_order_create_params.py,sha256
|
|
354
|
+
telnyx/types/advanced_order_create_params.py,sha256=LcVZ5xb_9NPQqmYbvO9njodkBNEDhMG8oonmM401io4,691
|
|
355
|
+
telnyx/types/advanced_order_update_params.py,sha256=WPAIlj_7m5_v3eBMzhEqJ74-PkiyEJnZ7P6ERpB2FKQ,691
|
|
355
356
|
telnyx/types/ai_retrieve_models_response.py,sha256=DWcRuYkI0gXpCXME5KegvYkrFXZLmxHLWkh1MAtLXB4,410
|
|
356
357
|
telnyx/types/ai_summarize_params.py,sha256=rMVpD3Ocy_DmFVUYka9K-Mjspetf150V3CFXgL436hY,518
|
|
357
358
|
telnyx/types/ai_summarize_response.py,sha256=A9umRVyHGNxD1rFdEV0bMRRuJn7dSJFzBxhjYoAJnU4,259
|
|
@@ -501,6 +502,7 @@ telnyx/types/dialogflow_connection_update_params.py,sha256=sYD7qggWOuuEc8ajJJbaO
|
|
|
501
502
|
telnyx/types/dialogflow_connection_update_response.py,sha256=iH8x461sDBP4GTzwdVoOHG2iYqedYLCKD0sVkHqO1iI,834
|
|
502
503
|
telnyx/types/doc_service_document.py,sha256=7SX92batc6UbJ2oUt8xRP7Ru3F2Jfg0MS9AxRFXarF4,1387
|
|
503
504
|
telnyx/types/document_delete_response.py,sha256=kKs1qRGn8G_X5i-i8ktv1zZkWk44BSFm9gOJTO5uAlw,328
|
|
505
|
+
telnyx/types/document_generate_download_link_response.py,sha256=tAX-ZsAO8p5Xgs7Pq3rRYQ_bdTbYCyb0U7MB1w6TjOM,353
|
|
504
506
|
telnyx/types/document_link_list_params.py,sha256=HyoeYzCPaJAOaygTEflL6wJWg1Ux2Icn_QUDAalsHkM,928
|
|
505
507
|
telnyx/types/document_link_list_response.py,sha256=cEV3Bx6g2_uxpU1469ODamMLoYpErA4U5KCj_lt7qoQ,1049
|
|
506
508
|
telnyx/types/document_list_params.py,sha256=4enb4EGHLCcy8Y4VUwYs4Fvq2o9GYmXbQeRHw0KPjkA,2066
|
|
@@ -894,7 +896,7 @@ telnyx/types/porting_orders_activation_job.py,sha256=kjNYw559YdY_eQ6VdybjjzN1miq
|
|
|
894
896
|
telnyx/types/porting_phone_number_list_params.py,sha256=f0bnOfAdDTIc61WftlLgI5grFJxQtVSdKEnLlH1lIuA,930
|
|
895
897
|
telnyx/types/porting_phone_number_list_response.py,sha256=qCp904HWLjtaxPkPiAphMRqIcwryoeqlCpjuWAQYAfY,2261
|
|
896
898
|
telnyx/types/portout_details.py,sha256=evFNmf5RM3tnHHje440-4K1w0aEC2LiaWXaLTjhFZVI,3005
|
|
897
|
-
telnyx/types/portout_list_params.py,sha256=
|
|
899
|
+
telnyx/types/portout_list_params.py,sha256=91L3l8jzw_l1jq3asQjHfcSgCCx6Zh9kJpHZEGr2mwc,2865
|
|
898
900
|
telnyx/types/portout_list_rejection_codes_params.py,sha256=alCdjt42fAR366PqmLfpJoPikvMzevuEQf2hXksGa9k,575
|
|
899
901
|
telnyx/types/portout_list_rejection_codes_response.py,sha256=pnMFoyfbB9b8I4MJV7CnwPdGKQpY0TbEyqFERPVu8a8,442
|
|
900
902
|
telnyx/types/portout_list_response.py,sha256=VnJN0Zo0yyqV0sm-6jdyrzxjE1irEsoZ5xzDZSRze_4,396
|
|
@@ -1868,7 +1870,7 @@ telnyx/types/wireless/detail_records_report_list_params.py,sha256=cfjsh4L_8mpDkg
|
|
|
1868
1870
|
telnyx/types/wireless/detail_records_report_list_response.py,sha256=S_6nD0fm5EseRIZHnML-UN0-g8Q_0J1cXfg_eLNUev8,331
|
|
1869
1871
|
telnyx/types/wireless/detail_records_report_retrieve_response.py,sha256=f0C8z8uo_QeCyi3nSDME4f4F3vqcy7o0MpinwDIqe_s,327
|
|
1870
1872
|
telnyx/types/wireless/wdr_report.py,sha256=bxRr-dc_IW6D0E3i_PUHK-bbu9w114Qql1uoJ_znxEE,1068
|
|
1871
|
-
telnyx-3.
|
|
1872
|
-
telnyx-3.
|
|
1873
|
-
telnyx-3.
|
|
1874
|
-
telnyx-3.
|
|
1873
|
+
telnyx-3.2.0a0.dist-info/METADATA,sha256=UKjv1-_Len5oDlGa_esu4rlB1nha5F8z4JmK1nspYGE,14160
|
|
1874
|
+
telnyx-3.2.0a0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
1875
|
+
telnyx-3.2.0a0.dist-info/licenses/LICENSE,sha256=PprdXvskBJR41_t2uhgs5rHYGME_Ek-lh2PAxKtdZs8,1046
|
|
1876
|
+
telnyx-3.2.0a0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|