Skip to content

Commit c1bb407

Browse files
committed
Travis update: Sep 2024 (Build 801)
[skip ci]
1 parent 96c30c4 commit c1bb407

File tree

13 files changed

+160
-8
lines changed

13 files changed

+160
-8
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ docs/SyncNumberLookupSuccess.md
6262
docs/Telegram.md
6363
docs/TextStore.md
6464
docs/Viber.md
65+
docs/ViberVideo.md
6566
docs/WhatsApp.md
6667
docs/WhatsAppComponent.md
6768
docs/WhatsAppCurrency.md
@@ -136,6 +137,7 @@ messente_api/models/sync_number_lookup_success.py
136137
messente_api/models/telegram.py
137138
messente_api/models/text_store.py
138139
messente_api/models/viber.py
140+
messente_api/models/viber_video.py
139141
messente_api/models/whats_app.py
140142
messente_api/models/whats_app_component.py
141143
messente_api/models/whats_app_currency.py

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- Python package version: 2.1.0
4+
- Python package version: 2.2.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

docs/OmnimessageMessagesInner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
1414
**button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
1515
**channel** | **str** | The channel used to deliver the message | [optional] [default to 'telegram']
16+
**video** | [**ViberVideo**](ViberVideo.md) | | [optional]
1617
**autoconvert** | **str** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional]
1718
**udh** | **str** | hex-encoded string containing SMS UDH | [optional]
1819
**template** | [**WhatsAppTemplate**](WhatsAppTemplate.md) | | [optional]

docs/Viber.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
1515
**button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
1616
**channel** | **str** | The channel used to deliver the message | [optional] [default to 'viber']
17+
**video** | [**ViberVideo**](ViberVideo.md) | | [optional]
1718

1819
## Example
1920

docs/ViberVideo.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ViberVideo
2+
3+
Viber video object
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**url** | **str** | URL pointing to the video resource. |
10+
**thumbnail** | **str** | URL pointing to the video thumbnail resource. |
11+
**file_size** | **int** | Size of the video file in bytes. Cannot be larger than 200MB. |
12+
**duration** | **int** | Duration of the video in seconds. Cannot be longer than 600 seconds. |
13+
14+
## Example
15+
16+
```python
17+
from messente_api.models.viber_video import ViberVideo
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of ViberVideo from a JSON string
22+
viber_video_instance = ViberVideo.from_json(json)
23+
# print the JSON string representation of the object
24+
print(ViberVideo.to_json())
25+
26+
# convert the object into a dict
27+
viber_video_dict = viber_video_instance.to_dict()
28+
# create an instance of ViberVideo from a dict
29+
viber_video_from_dict = ViberVideo.from_dict(viber_video_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

messente_api/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "2.1.0"
18+
__version__ = "2.2.0"
1919

2020
# import apis into sdk package
2121
from messente_api.api.blacklist_api import BlacklistApi
@@ -89,6 +89,7 @@
8989
from messente_api.models.telegram import Telegram
9090
from messente_api.models.text_store import TextStore
9191
from messente_api.models.viber import Viber
92+
from messente_api.models.viber_video import ViberVideo
9293
from messente_api.models.whats_app import WhatsApp
9394
from messente_api.models.whats_app_component import WhatsAppComponent
9495
from messente_api.models.whats_app_currency import WhatsAppCurrency

messente_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
self.default_headers[header_name] = header_value
9090
self.cookie = cookie
9191
# Set default User-Agent.
92-
self.user_agent = 'OpenAPI-Generator/2.1.0/python'
92+
self.user_agent = 'OpenAPI-Generator/2.2.0/python'
9393
self.client_side_validation = configuration.client_side_validation
9494

9595
def __enter__(self):

messente_api/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def to_debug_report(self):
395395
"OS: {env}\n"\
396396
"Python Version: {pyversion}\n"\
397397
"Version of the API: 2.0.0\n"\
398-
"SDK Package Version: 2.1.0".\
398+
"SDK Package Version: 2.2.0".\
399399
format(env=sys.platform, pyversion=sys.version)
400400

401401
def get_host_settings(self):

messente_api/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
from messente_api.models.telegram import Telegram
6666
from messente_api.models.text_store import TextStore
6767
from messente_api.models.viber import Viber
68+
from messente_api.models.viber_video import ViberVideo
6869
from messente_api.models.whats_app import WhatsApp
6970
from messente_api.models.whats_app_component import WhatsAppComponent
7071
from messente_api.models.whats_app_currency import WhatsAppCurrency

messente_api/models/viber.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
2222
from typing import Any, ClassVar, Dict, List, Optional
23+
from messente_api.models.viber_video import ViberVideo
2324
from typing import Optional, Set
2425
from typing_extensions import Self
2526

@@ -35,8 +36,9 @@ class Viber(BaseModel):
3536
button_url: Optional[StrictStr] = Field(default=None, description="URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional)")
3637
button_text: Optional[StrictStr] = Field(default=None, description="Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional)")
3738
channel: Optional[StrictStr] = Field(default='viber', description="The channel used to deliver the message")
39+
video: Optional[ViberVideo] = None
3840
additional_properties: Dict[str, Any] = {}
39-
__properties: ClassVar[List[str]] = ["sender", "validity", "ttl", "text", "image_url", "button_url", "button_text", "channel"]
41+
__properties: ClassVar[List[str]] = ["sender", "validity", "ttl", "text", "image_url", "button_url", "button_text", "channel", "video"]
4042

4143
@field_validator('channel')
4244
def channel_validate_enum(cls, value):
@@ -89,6 +91,9 @@ def to_dict(self) -> Dict[str, Any]:
8991
exclude=excluded_fields,
9092
exclude_none=True,
9193
)
94+
# override the default output from pydantic by calling `to_dict()` of video
95+
if self.video:
96+
_dict['video'] = self.video.to_dict()
9297
# puts key-value pairs in additional_properties in the top level
9398
if self.additional_properties is not None:
9499
for _key, _value in self.additional_properties.items():
@@ -113,7 +118,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
113118
"image_url": obj.get("image_url"),
114119
"button_url": obj.get("button_url"),
115120
"button_text": obj.get("button_text"),
116-
"channel": obj.get("channel") if obj.get("channel") is not None else 'viber'
121+
"channel": obj.get("channel") if obj.get("channel") is not None else 'viber',
122+
"video": ViberVideo.from_dict(obj["video"]) if obj.get("video") is not None else None
117123
})
118124
# store additional fields in additional_properties
119125
for _key in obj.keys():

0 commit comments

Comments
 (0)