connect-client-py 4.6.2__tar.gz → 4.7.0__tar.gz
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.
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/PKG-INFO +1 -1
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/pyproject.toml +1 -1
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/async_client.py +22 -52
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/client.py +22 -52
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/types.py +1 -1
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/README.md +0 -0
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/__init__.py +0 -0
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/errors.py +0 -0
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/httpx_transport.py +0 -0
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/py.typed +0 -0
- {connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/transport.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: connect-client-py
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.7.0
|
|
4
4
|
Summary: The official Python HTTP client to interact with the Connect REST API. Developed and maintained by Trinity IoT.
|
|
5
5
|
Author: Andries Niemandt
|
|
6
6
|
Author-email: Andries Niemandt <andries.niemandt@trintel.co.za>
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "connect-client-py"
|
|
7
|
-
version = "4.
|
|
7
|
+
version = "4.7.0"
|
|
8
8
|
description = "The official Python HTTP client to interact with the Connect REST API. Developed and maintained by Trinity IoT."
|
|
9
9
|
requires-python = ">=3.12"
|
|
10
10
|
license = "MIT"
|
|
@@ -3496,6 +3496,11 @@ class AsyncConnectClient:
|
|
|
3496
3496
|
|
|
3497
3497
|
The report result is emailed to all addresses in ``receivers``.
|
|
3498
3498
|
|
|
3499
|
+
A report over a period needs both ``date_from`` and ``date_to``.
|
|
3500
|
+
``date_to`` is exclusive, so it must be after ``date_from``: for a
|
|
3501
|
+
single day, set it to the day after. A request that breaks either rule
|
|
3502
|
+
is refused with a 400 naming the field.
|
|
3503
|
+
|
|
3499
3504
|
Use ``GET /api/v4/reports/domains/`` to discover available domains
|
|
3500
3505
|
and report keys.
|
|
3501
3506
|
|
|
@@ -3669,6 +3674,9 @@ class AsyncConnectClient:
|
|
|
3669
3674
|
date_from, date_to, frequency, run_at, tz_name, config.
|
|
3670
3675
|
|
|
3671
3676
|
The report domain, report key, member, and company are immutable.
|
|
3677
|
+
|
|
3678
|
+
The period follows the same rules as on create, checked against
|
|
3679
|
+
the stored date when only one is sent.
|
|
3672
3680
|
Update specific fields of the resource. Omitted fields remain unchanged.
|
|
3673
3681
|
|
|
3674
3682
|
**Required Roles:**
|
|
@@ -6726,8 +6734,6 @@ class AsyncConnectClient:
|
|
|
6726
6734
|
offset: int | None = None,
|
|
6727
6735
|
ordering: str | None = None,
|
|
6728
6736
|
search: str | None = None,
|
|
6729
|
-
sim: list[float] | None = None,
|
|
6730
|
-
sim_: list[float] | None = None,
|
|
6731
6737
|
success: list[int] | None = None,
|
|
6732
6738
|
success_: list[int] | None = None,
|
|
6733
6739
|
) -> PaginatedSmsSentList | dict[str, Any]:
|
|
@@ -6744,7 +6750,7 @@ class AsyncConnectClient:
|
|
|
6744
6750
|
against the company and folder associated with the resource.
|
|
6745
6751
|
- SIM must be in a folder the member has access to.
|
|
6746
6752
|
"""
|
|
6747
|
-
return (await self.sms_sent_sim_list_with_response(sim_id, company=company, company_=company_, dlr_id=dlr_id, dlr_id_=dlr_id_, fields=fields, limit=limit, message_status=message_status, message_status_=message_status_, msisdn=msisdn, msisdn_=msisdn_, offset=offset, ordering=ordering, search=search,
|
|
6753
|
+
return (await self.sms_sent_sim_list_with_response(sim_id, company=company, company_=company_, dlr_id=dlr_id, dlr_id_=dlr_id_, fields=fields, limit=limit, message_status=message_status, message_status_=message_status_, msisdn=msisdn, msisdn_=msisdn_, offset=offset, ordering=ordering, search=search, success=success, success_=success_)).parsed
|
|
6748
6754
|
|
|
6749
6755
|
async def sms_sent_sim_list_with_response(
|
|
6750
6756
|
self,
|
|
@@ -6763,8 +6769,6 @@ class AsyncConnectClient:
|
|
|
6763
6769
|
offset: int | None = None,
|
|
6764
6770
|
ordering: str | None = None,
|
|
6765
6771
|
search: str | None = None,
|
|
6766
|
-
sim: list[float] | None = None,
|
|
6767
|
-
sim_: list[float] | None = None,
|
|
6768
6772
|
success: list[int] | None = None,
|
|
6769
6773
|
success_: list[int] | None = None,
|
|
6770
6774
|
) -> Response[PaginatedSmsSentList | dict[str, Any]]:
|
|
@@ -6796,10 +6800,6 @@ class AsyncConnectClient:
|
|
|
6796
6800
|
__query.append(("ordering", str(ordering)))
|
|
6797
6801
|
if search is not None:
|
|
6798
6802
|
__query.append(("search", str(search)))
|
|
6799
|
-
if sim is not None:
|
|
6800
|
-
__query.append(("sim", ",".join(str(v) for v in sim)))
|
|
6801
|
-
if sim_ is not None:
|
|
6802
|
-
__query.append(("sim!", ",".join(str(v) for v in sim_)))
|
|
6803
6803
|
if success is not None:
|
|
6804
6804
|
__query.append(("success", ",".join(str(v) for v in success)))
|
|
6805
6805
|
if success_ is not None:
|
|
@@ -7151,13 +7151,9 @@ class AsyncConnectClient:
|
|
|
7151
7151
|
*,
|
|
7152
7152
|
fields: str | None = None,
|
|
7153
7153
|
limit: int | None = None,
|
|
7154
|
-
msisdn_2: list[str] | None = None,
|
|
7155
|
-
msisdn_: list[str] | None = None,
|
|
7156
7154
|
offset: int | None = None,
|
|
7157
7155
|
ordering: str | None = None,
|
|
7158
7156
|
search: str | None = None,
|
|
7159
|
-
sim: list[float] | None = None,
|
|
7160
|
-
sim_: list[float] | None = None,
|
|
7161
7157
|
via: list[str] | None = None,
|
|
7162
7158
|
via_: list[str] | None = None,
|
|
7163
7159
|
) -> PaginatedSmsFromSimList | dict[str, Any]:
|
|
@@ -7165,6 +7161,11 @@ class AsyncConnectClient:
|
|
|
7165
7161
|
Retrieves the SMSs received from the SIM identified by `msisdn`,
|
|
7166
7162
|
newest first.
|
|
7167
7163
|
|
|
7164
|
+
A message keeps the number it came from. If the SIM's number has
|
|
7165
|
+
changed, the messages from its earlier number are listed too. To list
|
|
7166
|
+
one number's messages only, filter `sms/received/sim/{sim_id}/` by
|
|
7167
|
+
`msisdn`.
|
|
7168
|
+
|
|
7168
7169
|
**Required Roles:**
|
|
7169
7170
|
- ***Can read SMS History*** -- With this role, a member can read the history of SMSs sent and received to and from a SIM
|
|
7170
7171
|
|
|
@@ -7174,7 +7175,7 @@ class AsyncConnectClient:
|
|
|
7174
7175
|
against the company and folder associated with the resource.
|
|
7175
7176
|
- SIM must be in a folder the member has access to.
|
|
7176
7177
|
"""
|
|
7177
|
-
return (await self.sms_received_sim_msisdn_list_with_response(msisdn, fields=fields, limit=limit,
|
|
7178
|
+
return (await self.sms_received_sim_msisdn_list_with_response(msisdn, fields=fields, limit=limit, offset=offset, ordering=ordering, search=search, via=via, via_=via_)).parsed
|
|
7178
7179
|
|
|
7179
7180
|
async def sms_received_sim_msisdn_list_with_response(
|
|
7180
7181
|
self,
|
|
@@ -7182,13 +7183,9 @@ class AsyncConnectClient:
|
|
|
7182
7183
|
*,
|
|
7183
7184
|
fields: str | None = None,
|
|
7184
7185
|
limit: int | None = None,
|
|
7185
|
-
msisdn_2: list[str] | None = None,
|
|
7186
|
-
msisdn_: list[str] | None = None,
|
|
7187
7186
|
offset: int | None = None,
|
|
7188
7187
|
ordering: str | None = None,
|
|
7189
7188
|
search: str | None = None,
|
|
7190
|
-
sim: list[float] | None = None,
|
|
7191
|
-
sim_: list[float] | None = None,
|
|
7192
7189
|
via: list[str] | None = None,
|
|
7193
7190
|
via_: list[str] | None = None,
|
|
7194
7191
|
) -> Response[PaginatedSmsFromSimList | dict[str, Any]]:
|
|
@@ -7199,20 +7196,12 @@ class AsyncConnectClient:
|
|
|
7199
7196
|
__query.append(("fields", str(fields)))
|
|
7200
7197
|
if limit is not None:
|
|
7201
7198
|
__query.append(("limit", str(limit)))
|
|
7202
|
-
if msisdn_2 is not None:
|
|
7203
|
-
__query.append(("msisdn", ",".join(str(v) for v in msisdn_2)))
|
|
7204
|
-
if msisdn_ is not None:
|
|
7205
|
-
__query.append(("msisdn!", ",".join(str(v) for v in msisdn_)))
|
|
7206
7199
|
if offset is not None:
|
|
7207
7200
|
__query.append(("offset", str(offset)))
|
|
7208
7201
|
if ordering is not None:
|
|
7209
7202
|
__query.append(("ordering", str(ordering)))
|
|
7210
7203
|
if search is not None:
|
|
7211
7204
|
__query.append(("search", str(search)))
|
|
7212
|
-
if sim is not None:
|
|
7213
|
-
__query.append(("sim", ",".join(str(v) for v in sim)))
|
|
7214
|
-
if sim_ is not None:
|
|
7215
|
-
__query.append(("sim!", ",".join(str(v) for v in sim_)))
|
|
7216
7205
|
if via is not None:
|
|
7217
7206
|
__query.append(("via", ",".join(str(v) for v in via)))
|
|
7218
7207
|
if via_ is not None:
|
|
@@ -7243,8 +7232,6 @@ class AsyncConnectClient:
|
|
|
7243
7232
|
offset: int | None = None,
|
|
7244
7233
|
ordering: str | None = None,
|
|
7245
7234
|
search: str | None = None,
|
|
7246
|
-
sim: list[float] | None = None,
|
|
7247
|
-
sim_: list[float] | None = None,
|
|
7248
7235
|
via: list[str] | None = None,
|
|
7249
7236
|
via_: list[str] | None = None,
|
|
7250
7237
|
) -> PaginatedSmsFromSimList | dict[str, Any]:
|
|
@@ -7261,7 +7248,7 @@ class AsyncConnectClient:
|
|
|
7261
7248
|
against the company and folder associated with the resource.
|
|
7262
7249
|
- SIM must be in a folder the member has access to.
|
|
7263
7250
|
"""
|
|
7264
|
-
return (await self.sms_received_sim_list_with_response(sim_id, fields=fields, limit=limit, msisdn=msisdn, msisdn_=msisdn_, offset=offset, ordering=ordering, search=search,
|
|
7251
|
+
return (await self.sms_received_sim_list_with_response(sim_id, fields=fields, limit=limit, msisdn=msisdn, msisdn_=msisdn_, offset=offset, ordering=ordering, search=search, via=via, via_=via_)).parsed
|
|
7265
7252
|
|
|
7266
7253
|
async def sms_received_sim_list_with_response(
|
|
7267
7254
|
self,
|
|
@@ -7274,8 +7261,6 @@ class AsyncConnectClient:
|
|
|
7274
7261
|
offset: int | None = None,
|
|
7275
7262
|
ordering: str | None = None,
|
|
7276
7263
|
search: str | None = None,
|
|
7277
|
-
sim: list[float] | None = None,
|
|
7278
|
-
sim_: list[float] | None = None,
|
|
7279
7264
|
via: list[str] | None = None,
|
|
7280
7265
|
via_: list[str] | None = None,
|
|
7281
7266
|
) -> Response[PaginatedSmsFromSimList | dict[str, Any]]:
|
|
@@ -7295,10 +7280,6 @@ class AsyncConnectClient:
|
|
|
7295
7280
|
__query.append(("ordering", str(ordering)))
|
|
7296
7281
|
if search is not None:
|
|
7297
7282
|
__query.append(("search", str(search)))
|
|
7298
|
-
if sim is not None:
|
|
7299
|
-
__query.append(("sim", ",".join(str(v) for v in sim)))
|
|
7300
|
-
if sim_ is not None:
|
|
7301
|
-
__query.append(("sim!", ",".join(str(v) for v in sim_)))
|
|
7302
7283
|
if via is not None:
|
|
7303
7284
|
__query.append(("via", ",".join(str(v) for v in via)))
|
|
7304
7285
|
if via_ is not None:
|
|
@@ -7858,13 +7839,9 @@ class AsyncConnectClient:
|
|
|
7858
7839
|
limit: int | None = None,
|
|
7859
7840
|
message_status: list[str] | None = None,
|
|
7860
7841
|
message_status_: list[str] | None = None,
|
|
7861
|
-
msisdn_2: list[str] | None = None,
|
|
7862
|
-
msisdn_: list[str] | None = None,
|
|
7863
7842
|
offset: int | None = None,
|
|
7864
7843
|
ordering: str | None = None,
|
|
7865
7844
|
search: str | None = None,
|
|
7866
|
-
sim: list[float] | None = None,
|
|
7867
|
-
sim_: list[float] | None = None,
|
|
7868
7845
|
success: list[int] | None = None,
|
|
7869
7846
|
success_: list[int] | None = None,
|
|
7870
7847
|
) -> PaginatedSmsSentList | dict[str, Any]:
|
|
@@ -7872,6 +7849,11 @@ class AsyncConnectClient:
|
|
|
7872
7849
|
Retrieves the SMSs sent to the SIM identified by `msisdn`, newest
|
|
7873
7850
|
first.
|
|
7874
7851
|
|
|
7852
|
+
A message keeps the number it was sent to. If the SIM's number has
|
|
7853
|
+
changed, the messages sent to its earlier number are listed too. To
|
|
7854
|
+
list one number's messages only, filter `sms/sent/sim/{sim_id}/` by
|
|
7855
|
+
`msisdn`.
|
|
7856
|
+
|
|
7875
7857
|
**Required Roles:**
|
|
7876
7858
|
- ***Can read SMS History*** -- With this role, a member can read the history of SMSs sent and received to and from a SIM
|
|
7877
7859
|
|
|
@@ -7881,7 +7863,7 @@ class AsyncConnectClient:
|
|
|
7881
7863
|
against the company and folder associated with the resource.
|
|
7882
7864
|
- SIM must be in a folder the member has access to.
|
|
7883
7865
|
"""
|
|
7884
|
-
return (await self.sms_sent_sim_msisdn_list_with_response(msisdn, company=company, company_=company_, dlr_id=dlr_id, dlr_id_=dlr_id_, fields=fields, limit=limit, message_status=message_status, message_status_=message_status_,
|
|
7866
|
+
return (await self.sms_sent_sim_msisdn_list_with_response(msisdn, company=company, company_=company_, dlr_id=dlr_id, dlr_id_=dlr_id_, fields=fields, limit=limit, message_status=message_status, message_status_=message_status_, offset=offset, ordering=ordering, search=search, success=success, success_=success_)).parsed
|
|
7885
7867
|
|
|
7886
7868
|
async def sms_sent_sim_msisdn_list_with_response(
|
|
7887
7869
|
self,
|
|
@@ -7895,13 +7877,9 @@ class AsyncConnectClient:
|
|
|
7895
7877
|
limit: int | None = None,
|
|
7896
7878
|
message_status: list[str] | None = None,
|
|
7897
7879
|
message_status_: list[str] | None = None,
|
|
7898
|
-
msisdn_2: list[str] | None = None,
|
|
7899
|
-
msisdn_: list[str] | None = None,
|
|
7900
7880
|
offset: int | None = None,
|
|
7901
7881
|
ordering: str | None = None,
|
|
7902
7882
|
search: str | None = None,
|
|
7903
|
-
sim: list[float] | None = None,
|
|
7904
|
-
sim_: list[float] | None = None,
|
|
7905
7883
|
success: list[int] | None = None,
|
|
7906
7884
|
success_: list[int] | None = None,
|
|
7907
7885
|
) -> Response[PaginatedSmsSentList | dict[str, Any]]:
|
|
@@ -7924,20 +7902,12 @@ class AsyncConnectClient:
|
|
|
7924
7902
|
__query.append(("message_status", ",".join(str(v) for v in message_status)))
|
|
7925
7903
|
if message_status_ is not None:
|
|
7926
7904
|
__query.append(("message_status!", ",".join(str(v) for v in message_status_)))
|
|
7927
|
-
if msisdn_2 is not None:
|
|
7928
|
-
__query.append(("msisdn", ",".join(str(v) for v in msisdn_2)))
|
|
7929
|
-
if msisdn_ is not None:
|
|
7930
|
-
__query.append(("msisdn!", ",".join(str(v) for v in msisdn_)))
|
|
7931
7905
|
if offset is not None:
|
|
7932
7906
|
__query.append(("offset", str(offset)))
|
|
7933
7907
|
if ordering is not None:
|
|
7934
7908
|
__query.append(("ordering", str(ordering)))
|
|
7935
7909
|
if search is not None:
|
|
7936
7910
|
__query.append(("search", str(search)))
|
|
7937
|
-
if sim is not None:
|
|
7938
|
-
__query.append(("sim", ",".join(str(v) for v in sim)))
|
|
7939
|
-
if sim_ is not None:
|
|
7940
|
-
__query.append(("sim!", ",".join(str(v) for v in sim_)))
|
|
7941
7911
|
if success is not None:
|
|
7942
7912
|
__query.append(("success", ",".join(str(v) for v in success)))
|
|
7943
7913
|
if success_ is not None:
|
|
@@ -3477,6 +3477,11 @@ class ConnectClient:
|
|
|
3477
3477
|
|
|
3478
3478
|
The report result is emailed to all addresses in ``receivers``.
|
|
3479
3479
|
|
|
3480
|
+
A report over a period needs both ``date_from`` and ``date_to``.
|
|
3481
|
+
``date_to`` is exclusive, so it must be after ``date_from``: for a
|
|
3482
|
+
single day, set it to the day after. A request that breaks either rule
|
|
3483
|
+
is refused with a 400 naming the field.
|
|
3484
|
+
|
|
3480
3485
|
Use ``GET /api/v4/reports/domains/`` to discover available domains
|
|
3481
3486
|
and report keys.
|
|
3482
3487
|
|
|
@@ -3650,6 +3655,9 @@ class ConnectClient:
|
|
|
3650
3655
|
date_from, date_to, frequency, run_at, tz_name, config.
|
|
3651
3656
|
|
|
3652
3657
|
The report domain, report key, member, and company are immutable.
|
|
3658
|
+
|
|
3659
|
+
The period follows the same rules as on create, checked against
|
|
3660
|
+
the stored date when only one is sent.
|
|
3653
3661
|
Update specific fields of the resource. Omitted fields remain unchanged.
|
|
3654
3662
|
|
|
3655
3663
|
**Required Roles:**
|
|
@@ -6701,8 +6709,6 @@ class ConnectClient:
|
|
|
6701
6709
|
offset: int | None = None,
|
|
6702
6710
|
ordering: str | None = None,
|
|
6703
6711
|
search: str | None = None,
|
|
6704
|
-
sim: list[float] | None = None,
|
|
6705
|
-
sim_: list[float] | None = None,
|
|
6706
6712
|
success: list[int] | None = None,
|
|
6707
6713
|
success_: list[int] | None = None,
|
|
6708
6714
|
) -> PaginatedSmsSentList | dict[str, Any]:
|
|
@@ -6719,7 +6725,7 @@ class ConnectClient:
|
|
|
6719
6725
|
against the company and folder associated with the resource.
|
|
6720
6726
|
- SIM must be in a folder the member has access to.
|
|
6721
6727
|
"""
|
|
6722
|
-
return self.sms_sent_sim_list_with_response(sim_id, company=company, company_=company_, dlr_id=dlr_id, dlr_id_=dlr_id_, fields=fields, limit=limit, message_status=message_status, message_status_=message_status_, msisdn=msisdn, msisdn_=msisdn_, offset=offset, ordering=ordering, search=search,
|
|
6728
|
+
return self.sms_sent_sim_list_with_response(sim_id, company=company, company_=company_, dlr_id=dlr_id, dlr_id_=dlr_id_, fields=fields, limit=limit, message_status=message_status, message_status_=message_status_, msisdn=msisdn, msisdn_=msisdn_, offset=offset, ordering=ordering, search=search, success=success, success_=success_).parsed
|
|
6723
6729
|
|
|
6724
6730
|
def sms_sent_sim_list_with_response(
|
|
6725
6731
|
self,
|
|
@@ -6738,8 +6744,6 @@ class ConnectClient:
|
|
|
6738
6744
|
offset: int | None = None,
|
|
6739
6745
|
ordering: str | None = None,
|
|
6740
6746
|
search: str | None = None,
|
|
6741
|
-
sim: list[float] | None = None,
|
|
6742
|
-
sim_: list[float] | None = None,
|
|
6743
6747
|
success: list[int] | None = None,
|
|
6744
6748
|
success_: list[int] | None = None,
|
|
6745
6749
|
) -> Response[PaginatedSmsSentList | dict[str, Any]]:
|
|
@@ -6771,10 +6775,6 @@ class ConnectClient:
|
|
|
6771
6775
|
__query.append(("ordering", str(ordering)))
|
|
6772
6776
|
if search is not None:
|
|
6773
6777
|
__query.append(("search", str(search)))
|
|
6774
|
-
if sim is not None:
|
|
6775
|
-
__query.append(("sim", ",".join(str(v) for v in sim)))
|
|
6776
|
-
if sim_ is not None:
|
|
6777
|
-
__query.append(("sim!", ",".join(str(v) for v in sim_)))
|
|
6778
6778
|
if success is not None:
|
|
6779
6779
|
__query.append(("success", ",".join(str(v) for v in success)))
|
|
6780
6780
|
if success_ is not None:
|
|
@@ -7126,13 +7126,9 @@ class ConnectClient:
|
|
|
7126
7126
|
*,
|
|
7127
7127
|
fields: str | None = None,
|
|
7128
7128
|
limit: int | None = None,
|
|
7129
|
-
msisdn_2: list[str] | None = None,
|
|
7130
|
-
msisdn_: list[str] | None = None,
|
|
7131
7129
|
offset: int | None = None,
|
|
7132
7130
|
ordering: str | None = None,
|
|
7133
7131
|
search: str | None = None,
|
|
7134
|
-
sim: list[float] | None = None,
|
|
7135
|
-
sim_: list[float] | None = None,
|
|
7136
7132
|
via: list[str] | None = None,
|
|
7137
7133
|
via_: list[str] | None = None,
|
|
7138
7134
|
) -> PaginatedSmsFromSimList | dict[str, Any]:
|
|
@@ -7140,6 +7136,11 @@ class ConnectClient:
|
|
|
7140
7136
|
Retrieves the SMSs received from the SIM identified by `msisdn`,
|
|
7141
7137
|
newest first.
|
|
7142
7138
|
|
|
7139
|
+
A message keeps the number it came from. If the SIM's number has
|
|
7140
|
+
changed, the messages from its earlier number are listed too. To list
|
|
7141
|
+
one number's messages only, filter `sms/received/sim/{sim_id}/` by
|
|
7142
|
+
`msisdn`.
|
|
7143
|
+
|
|
7143
7144
|
**Required Roles:**
|
|
7144
7145
|
- ***Can read SMS History*** -- With this role, a member can read the history of SMSs sent and received to and from a SIM
|
|
7145
7146
|
|
|
@@ -7149,7 +7150,7 @@ class ConnectClient:
|
|
|
7149
7150
|
against the company and folder associated with the resource.
|
|
7150
7151
|
- SIM must be in a folder the member has access to.
|
|
7151
7152
|
"""
|
|
7152
|
-
return self.sms_received_sim_msisdn_list_with_response(msisdn, fields=fields, limit=limit,
|
|
7153
|
+
return self.sms_received_sim_msisdn_list_with_response(msisdn, fields=fields, limit=limit, offset=offset, ordering=ordering, search=search, via=via, via_=via_).parsed
|
|
7153
7154
|
|
|
7154
7155
|
def sms_received_sim_msisdn_list_with_response(
|
|
7155
7156
|
self,
|
|
@@ -7157,13 +7158,9 @@ class ConnectClient:
|
|
|
7157
7158
|
*,
|
|
7158
7159
|
fields: str | None = None,
|
|
7159
7160
|
limit: int | None = None,
|
|
7160
|
-
msisdn_2: list[str] | None = None,
|
|
7161
|
-
msisdn_: list[str] | None = None,
|
|
7162
7161
|
offset: int | None = None,
|
|
7163
7162
|
ordering: str | None = None,
|
|
7164
7163
|
search: str | None = None,
|
|
7165
|
-
sim: list[float] | None = None,
|
|
7166
|
-
sim_: list[float] | None = None,
|
|
7167
7164
|
via: list[str] | None = None,
|
|
7168
7165
|
via_: list[str] | None = None,
|
|
7169
7166
|
) -> Response[PaginatedSmsFromSimList | dict[str, Any]]:
|
|
@@ -7174,20 +7171,12 @@ class ConnectClient:
|
|
|
7174
7171
|
__query.append(("fields", str(fields)))
|
|
7175
7172
|
if limit is not None:
|
|
7176
7173
|
__query.append(("limit", str(limit)))
|
|
7177
|
-
if msisdn_2 is not None:
|
|
7178
|
-
__query.append(("msisdn", ",".join(str(v) for v in msisdn_2)))
|
|
7179
|
-
if msisdn_ is not None:
|
|
7180
|
-
__query.append(("msisdn!", ",".join(str(v) for v in msisdn_)))
|
|
7181
7174
|
if offset is not None:
|
|
7182
7175
|
__query.append(("offset", str(offset)))
|
|
7183
7176
|
if ordering is not None:
|
|
7184
7177
|
__query.append(("ordering", str(ordering)))
|
|
7185
7178
|
if search is not None:
|
|
7186
7179
|
__query.append(("search", str(search)))
|
|
7187
|
-
if sim is not None:
|
|
7188
|
-
__query.append(("sim", ",".join(str(v) for v in sim)))
|
|
7189
|
-
if sim_ is not None:
|
|
7190
|
-
__query.append(("sim!", ",".join(str(v) for v in sim_)))
|
|
7191
7180
|
if via is not None:
|
|
7192
7181
|
__query.append(("via", ",".join(str(v) for v in via)))
|
|
7193
7182
|
if via_ is not None:
|
|
@@ -7218,8 +7207,6 @@ class ConnectClient:
|
|
|
7218
7207
|
offset: int | None = None,
|
|
7219
7208
|
ordering: str | None = None,
|
|
7220
7209
|
search: str | None = None,
|
|
7221
|
-
sim: list[float] | None = None,
|
|
7222
|
-
sim_: list[float] | None = None,
|
|
7223
7210
|
via: list[str] | None = None,
|
|
7224
7211
|
via_: list[str] | None = None,
|
|
7225
7212
|
) -> PaginatedSmsFromSimList | dict[str, Any]:
|
|
@@ -7236,7 +7223,7 @@ class ConnectClient:
|
|
|
7236
7223
|
against the company and folder associated with the resource.
|
|
7237
7224
|
- SIM must be in a folder the member has access to.
|
|
7238
7225
|
"""
|
|
7239
|
-
return self.sms_received_sim_list_with_response(sim_id, fields=fields, limit=limit, msisdn=msisdn, msisdn_=msisdn_, offset=offset, ordering=ordering, search=search,
|
|
7226
|
+
return self.sms_received_sim_list_with_response(sim_id, fields=fields, limit=limit, msisdn=msisdn, msisdn_=msisdn_, offset=offset, ordering=ordering, search=search, via=via, via_=via_).parsed
|
|
7240
7227
|
|
|
7241
7228
|
def sms_received_sim_list_with_response(
|
|
7242
7229
|
self,
|
|
@@ -7249,8 +7236,6 @@ class ConnectClient:
|
|
|
7249
7236
|
offset: int | None = None,
|
|
7250
7237
|
ordering: str | None = None,
|
|
7251
7238
|
search: str | None = None,
|
|
7252
|
-
sim: list[float] | None = None,
|
|
7253
|
-
sim_: list[float] | None = None,
|
|
7254
7239
|
via: list[str] | None = None,
|
|
7255
7240
|
via_: list[str] | None = None,
|
|
7256
7241
|
) -> Response[PaginatedSmsFromSimList | dict[str, Any]]:
|
|
@@ -7270,10 +7255,6 @@ class ConnectClient:
|
|
|
7270
7255
|
__query.append(("ordering", str(ordering)))
|
|
7271
7256
|
if search is not None:
|
|
7272
7257
|
__query.append(("search", str(search)))
|
|
7273
|
-
if sim is not None:
|
|
7274
|
-
__query.append(("sim", ",".join(str(v) for v in sim)))
|
|
7275
|
-
if sim_ is not None:
|
|
7276
|
-
__query.append(("sim!", ",".join(str(v) for v in sim_)))
|
|
7277
7258
|
if via is not None:
|
|
7278
7259
|
__query.append(("via", ",".join(str(v) for v in via)))
|
|
7279
7260
|
if via_ is not None:
|
|
@@ -7833,13 +7814,9 @@ class ConnectClient:
|
|
|
7833
7814
|
limit: int | None = None,
|
|
7834
7815
|
message_status: list[str] | None = None,
|
|
7835
7816
|
message_status_: list[str] | None = None,
|
|
7836
|
-
msisdn_2: list[str] | None = None,
|
|
7837
|
-
msisdn_: list[str] | None = None,
|
|
7838
7817
|
offset: int | None = None,
|
|
7839
7818
|
ordering: str | None = None,
|
|
7840
7819
|
search: str | None = None,
|
|
7841
|
-
sim: list[float] | None = None,
|
|
7842
|
-
sim_: list[float] | None = None,
|
|
7843
7820
|
success: list[int] | None = None,
|
|
7844
7821
|
success_: list[int] | None = None,
|
|
7845
7822
|
) -> PaginatedSmsSentList | dict[str, Any]:
|
|
@@ -7847,6 +7824,11 @@ class ConnectClient:
|
|
|
7847
7824
|
Retrieves the SMSs sent to the SIM identified by `msisdn`, newest
|
|
7848
7825
|
first.
|
|
7849
7826
|
|
|
7827
|
+
A message keeps the number it was sent to. If the SIM's number has
|
|
7828
|
+
changed, the messages sent to its earlier number are listed too. To
|
|
7829
|
+
list one number's messages only, filter `sms/sent/sim/{sim_id}/` by
|
|
7830
|
+
`msisdn`.
|
|
7831
|
+
|
|
7850
7832
|
**Required Roles:**
|
|
7851
7833
|
- ***Can read SMS History*** -- With this role, a member can read the history of SMSs sent and received to and from a SIM
|
|
7852
7834
|
|
|
@@ -7856,7 +7838,7 @@ class ConnectClient:
|
|
|
7856
7838
|
against the company and folder associated with the resource.
|
|
7857
7839
|
- SIM must be in a folder the member has access to.
|
|
7858
7840
|
"""
|
|
7859
|
-
return self.sms_sent_sim_msisdn_list_with_response(msisdn, company=company, company_=company_, dlr_id=dlr_id, dlr_id_=dlr_id_, fields=fields, limit=limit, message_status=message_status, message_status_=message_status_,
|
|
7841
|
+
return self.sms_sent_sim_msisdn_list_with_response(msisdn, company=company, company_=company_, dlr_id=dlr_id, dlr_id_=dlr_id_, fields=fields, limit=limit, message_status=message_status, message_status_=message_status_, offset=offset, ordering=ordering, search=search, success=success, success_=success_).parsed
|
|
7860
7842
|
|
|
7861
7843
|
def sms_sent_sim_msisdn_list_with_response(
|
|
7862
7844
|
self,
|
|
@@ -7870,13 +7852,9 @@ class ConnectClient:
|
|
|
7870
7852
|
limit: int | None = None,
|
|
7871
7853
|
message_status: list[str] | None = None,
|
|
7872
7854
|
message_status_: list[str] | None = None,
|
|
7873
|
-
msisdn_2: list[str] | None = None,
|
|
7874
|
-
msisdn_: list[str] | None = None,
|
|
7875
7855
|
offset: int | None = None,
|
|
7876
7856
|
ordering: str | None = None,
|
|
7877
7857
|
search: str | None = None,
|
|
7878
|
-
sim: list[float] | None = None,
|
|
7879
|
-
sim_: list[float] | None = None,
|
|
7880
7858
|
success: list[int] | None = None,
|
|
7881
7859
|
success_: list[int] | None = None,
|
|
7882
7860
|
) -> Response[PaginatedSmsSentList | dict[str, Any]]:
|
|
@@ -7899,20 +7877,12 @@ class ConnectClient:
|
|
|
7899
7877
|
__query.append(("message_status", ",".join(str(v) for v in message_status)))
|
|
7900
7878
|
if message_status_ is not None:
|
|
7901
7879
|
__query.append(("message_status!", ",".join(str(v) for v in message_status_)))
|
|
7902
|
-
if msisdn_2 is not None:
|
|
7903
|
-
__query.append(("msisdn", ",".join(str(v) for v in msisdn_2)))
|
|
7904
|
-
if msisdn_ is not None:
|
|
7905
|
-
__query.append(("msisdn!", ",".join(str(v) for v in msisdn_)))
|
|
7906
7880
|
if offset is not None:
|
|
7907
7881
|
__query.append(("offset", str(offset)))
|
|
7908
7882
|
if ordering is not None:
|
|
7909
7883
|
__query.append(("ordering", str(ordering)))
|
|
7910
7884
|
if search is not None:
|
|
7911
7885
|
__query.append(("search", str(search)))
|
|
7912
|
-
if sim is not None:
|
|
7913
|
-
__query.append(("sim", ",".join(str(v) for v in sim)))
|
|
7914
|
-
if sim_ is not None:
|
|
7915
|
-
__query.append(("sim!", ",".join(str(v) for v in sim_)))
|
|
7916
7886
|
if success is not None:
|
|
7917
7887
|
__query.append(("success", ",".join(str(v) for v in success)))
|
|
7918
7888
|
if success_ is not None:
|
|
@@ -26,7 +26,7 @@ from .errors import DecodeFailure, MissingRequiredKey, PartialDecode, Undocument
|
|
|
26
26
|
#: The spec version this client was generated from. Named in every drift
|
|
27
27
|
#: warning so the reader knows which snapshot is behind the API — they are
|
|
28
28
|
#: usually not the person who can fix it.
|
|
29
|
-
VERSION = "4.
|
|
29
|
+
VERSION = "4.7.0"
|
|
30
30
|
|
|
31
31
|
#: `(class, field)` pairs already warned about by `_absent`, so a 10,000-row
|
|
32
32
|
#: page missing one key emits one warning rather than 10,000. Enum drift
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{connect_client_py-4.6.2 → connect_client_py-4.7.0}/src/connect_client_py/httpx_transport.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|