Skip to content

Commit 5f6667d

Browse files
committed
update dependency versions, prep for NI release
1 parent 61718d6 commit 5f6667d

File tree

26 files changed

+142
-54
lines changed

26 files changed

+142
-54
lines changed

http_client/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.3.1
2+
- Update minimum dependency version
3+
14
# 1.3.0
25
- Add new PUT method
36

http_client/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[project]
22
name = "vonage-http-client"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
description = "An HTTP client for making requests to Vonage APIs."
55
readme = "README.md"
66
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
77
requires-python = ">=3.8"
88
dependencies = [
9-
"vonage-utils>=1.1.0",
9+
"vonage-utils>=1.1.1",
1010
"vonage-jwt>=1.1.0",
1111
"requests>=2.27.0",
1212
"typing-extensions>=4.9.0",
13-
"pydantic>=2.6.1",
13+
"pydantic>=2.7.1",
1414
]
1515
classifiers = [
1616
"Programming Language :: Python",

messages/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.1.1
2+
- Update minimum dependency version
3+
14
# 1.1.0
25
- Add `http_client` property
36

messages/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[project]
22
name = 'vonage-messages'
3-
version = '1.1.0'
3+
version = '1.1.1'
44
description = 'Vonage messages package'
55
readme = "README.md"
66
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
77
requires-python = ">=3.8"
88
dependencies = [
9-
"vonage-http-client>=1.3.0",
10-
"vonage-utils>=1.1.0",
11-
"pydantic>=2.6.1",
9+
"vonage-http-client>=1.3.1",
10+
"vonage-utils>=1.1.1",
11+
"pydantic>=2.7.1",
1212
]
1313
classifiers = [
1414
"Programming Language :: Python",

number_insight/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,55 @@ The advanced insight can be obtained synchronously or asynchronously. An async a
99
It is recommended to use this as part of the main `vonage` package. The examples below assume you've created an instance of the `vonage.Vonage` class called `vonage_client`.
1010

1111
### Make a Basic Number Insight Request
12+
13+
```python
14+
from vonage_number_insight import BasicInsightRequest
15+
16+
response = vonage_client.number_insight.basic_number_insight(
17+
BasicInsightRequest(number='12345678900')
18+
)
19+
20+
print(response.model_dump(exclude_none=True))
21+
```
22+
23+
### Make a Standard Number Insight Request
24+
25+
```python
26+
from vonage_number_insight import StandardInsightRequest
27+
28+
vonage_client.number_insight.standard_number_insight(
29+
StandardInsightRequest(number='12345678900')
30+
)
31+
32+
# Optionally, you can get caller name information (additional charge) by setting the `cnam` parameter = True
33+
vonage_client.number_insight.standard_number_insight(
34+
StandardInsightRequest(number='12345678900', cnam=True)
35+
)
36+
```
37+
38+
### Make an Asynchronous Advanced Number Insight Request
39+
40+
When making an asynchronous advanced number insight request, the API will return basic information about the request to you immediately and send the full data to the webhook callback URL you specify.
41+
42+
```python
43+
from vonage_number_insight import AdvancedAsyncInsightRequest
44+
45+
vonage_client.number_insight.advanced_async_number_insight(
46+
AdvancedAsyncInsightRequest(callback='https://example.com', number='12345678900')
47+
)
48+
```
49+
50+
### Make a Synchronous Advanced Number Insight Request
51+
52+
```python
53+
from vonage_number_insight import AdvancedSyncInsightRequest
54+
55+
vonage_client.number_insight.advanced_sync_number_insight(
56+
AdvancedSyncInsightRequest(number='12345678900')
57+
)
58+
59+
# Optionally, you can get real time information by setting the `real_time_data` parameter = True
60+
vonage_client.number_insight.advanced_async_number_insight(
61+
AdvancedSyncInsightRequest(number='12345678900', real_time_data=True, cnam=True)
62+
)
63+
```

number_insight/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ readme = "README.md"
66
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
77
requires-python = ">=3.8"
88
dependencies = [
9-
"vonage-http-client>=1.3.0",
10-
"vonage-utils>=1.1.0",
11-
"pydantic>=2.6.1",
9+
"vonage-http-client>=1.3.1",
10+
"vonage-utils>=1.1.1",
11+
"pydantic>=2.7.1",
1212
]
1313
classifiers = [
1414
"Programming Language :: Python",

number_insight/src/vonage_number_insight/enums.py

Whitespace-only changes.

number_insight/src/vonage_number_insight/responses.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ class StandardInsightResponse(BasicInsightResponse):
3838
original_carrier: Optional[Carrier] = None
3939
ported: Optional[str] = None
4040
caller_identity: Optional[CallerIdentity] = None
41-
caller_type: Optional[str] = None
42-
caller_name: Optional[str] = None
43-
first_name: Optional[str] = None
44-
last_name: Optional[str] = None
4541

4642

4743
class RoamingStatus(BaseModel):
@@ -63,7 +59,6 @@ class AdvancedSyncInsightResponse(StandardInsightResponse):
6359
valid_number: Optional[str] = None
6460
reachable: Optional[str] = None
6561
real_time_data: Optional[RealTimeData] = None
66-
ip_warnings: Optional[str] = None
6762

6863

6964
class AdvancedAsyncInsightResponse(BaseModel):

number_insight/tests/test_number_insight.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ def test_advanced_sync_insight(caplog):
149149
assert response.status == 44
150150
assert response.request_id == '97e973e7-2e27-4fd3-9e1a-972ea14dd992'
151151
assert response.current_carrier.network_code == '310090'
152-
assert response.first_name == 'John'
153-
assert response.last_name == 'Smith'
152+
assert response.caller_identity.first_name == 'John'
153+
assert response.caller_identity.last_name == 'Smith'
154+
assert response.caller_identity.subscription_type == 'postpaid'
154155
assert response.lookup_outcome == 1
155156
assert response.lookup_outcome_message == 'Partial success - some fields populated'
156157
assert response.roaming == 'unknown'

number_insight_v2/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# 0.1.1b0
2+
- Update minimum dependency version
3+
14
# 0.1.0b0
25
- Beta release

0 commit comments

Comments
 (0)