Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=messente_api

pytest-3.7:
extends: .pytest
image: python:3.7-alpine
pytest-3.8:
extends: .pytest
image: python:3.8-alpine
Expand All @@ -29,3 +26,6 @@ pytest-3.10:
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
pytest-3.12:
extends: .pytest
image: python:3.12-alpine
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.6.0
7.11.0
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
language: python
dist: jammy
python:
- 3.10
- "3.9"

script:
- echo "skipping tests"

deploy:
provider: pypi
user: messente
password:
secure: T6b+hfVKTyJUUprT/7c6+nuEpqjENHWbZ5OrFLq/fo0N++aUgB7/VgsY7L2U9vmuog2xf34Di0C66fe/Tmy5czc+iXbwSnS6uP0aJk6dnERrdhiarUHgsDq4/txx59qYXZfelCO38M54GBPAlDzVp5/ONocbOrrJUPnt++0t/ocwbq2x5m6RSycJCEBWjxkBuLclrIkUvI+0IgJl/CXUro2OeVUg4J7rrwI68XAKAZF2SOQm/V3Ak30ax7CE2XFScVSvfz2g5kJbvtamFwdPRAwA5ThU4q6TDlL49DEblZCSKzAwOTkKkIkjFY5m6PPkNnxFAEsBjRyU5tl+T1pPvM0Gd/AY3lBXruRbU8SmGJgZbz59q1SQ1NRm5gHKpFEQ0kwWJvEJMOwRDLH16nFY4XX15ffVWFqw8Pkaso6NV6RTRVFTV3rVY2YPa1ili2QvkHYjejMZRDG+13MR+gJGWbjU2Uql3kj/QbIBFMyzXcfbLSpdn65KkzI5Svvzl/CsBZ0NsXIhH8rRsK464bZUuDY7qLbNca4IxARZRb2jH9C3Zas4kjJzl9J5TjkZTc8HTl+5PB8k+XsBaPSa1BvGvS3YEpQF6mVOr/SkQGX/yMV/WcmZJekSaWVrgdt5twPlfah0bwfKx60FKJqQYP2+2HeoA56UPrwSGT5ocz0wQC8=
on:
tags: true
11 changes: 8 additions & 3 deletions docs/Channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

Defines the delivery channel

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `SMS` (value: `'sms'`)

* `VIBER` (value: `'viber'`)

* `WHATSAPP` (value: `'whatsapp'`)

* `TELEGRAM` (value: `'telegram'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
17 changes: 14 additions & 3 deletions docs/ErrorCodeOmnichannel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@

Matches the following error title. This field is a constant * 101 - Not found * 102 - Forbidden * 103 - Unauthorized * 104 - Internal Server Error * 105 - Invalid data * 106 - Missing data * 107 - Method not allowed

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `ENUM_101` (value: `'101'`)

* `ENUM_102` (value: `'102'`)

* `ENUM_103` (value: `'103'`)

* `ENUM_104` (value: `'104'`)

* `ENUM_105` (value: `'105'`)

* `ENUM_106` (value: `'106'`)

* `ENUM_107` (value: `'107'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
27 changes: 24 additions & 3 deletions docs/ErrorCodeOmnichannelMachine.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,31 @@

Machine-readable error code, 'null' when the message has not been processed yet Matches the following meanings * 0 - No error * 1 - Delivery failure * 2 - Sending message expired * 3 - Invalid number * 4 - Error crediting account * 5 - Invalid number format * 6 - Too many identical messages * 7 - Sender name not allowed * 8 - Operator blacklisted * 9 - Unroutable * 10 - Seen * 999 - General temporary error

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `NUMBER_0` (value: `0`)

* `NUMBER_1` (value: `1`)

* `NUMBER_2` (value: `2`)

* `NUMBER_3` (value: `3`)

* `NUMBER_4` (value: `4`)

* `NUMBER_5` (value: `5`)

* `NUMBER_6` (value: `6`)

* `NUMBER_7` (value: `7`)

* `NUMBER_8` (value: `8`)

* `NUMBER_9` (value: `9`)

* `NUMBER_10` (value: `10`)

* `NUMBER_999` (value: `999`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
15 changes: 12 additions & 3 deletions docs/ErrorCodePhonebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@

Matches the following error title. This field is a constant * 201 - Invalid data * 202 - Unauthorized * 203 - Missing resource * 204 - Conflict * 244 - Client error * 205 - General error

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `ENUM_201` (value: `'201'`)

* `ENUM_202` (value: `'202'`)

* `ENUM_203` (value: `'203'`)

* `ENUM_204` (value: `'204'`)

* `ENUM_244` (value: `'244'`)

* `ENUM_205` (value: `'205'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
11 changes: 8 additions & 3 deletions docs/ErrorCodeStatistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

Matches the following error title. This field is a constant * 100 - Client Error * 103 - Unauthorized * 104 - Invalid data * 105 - Internal Server Error

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `ENUM_100` (value: `'100'`)

* `ENUM_103` (value: `'103'`)

* `ENUM_104` (value: `'104'`)

* `ENUM_105` (value: `'105'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
17 changes: 14 additions & 3 deletions docs/ErrorTitleOmnichannel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@

Textual value which corresponds to an error code

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `NOT_FOUND` (value: `'Not found'`)

* `FORBIDDEN` (value: `'Forbidden'`)

* `UNAUTHORIZED` (value: `'Unauthorized'`)

* `INVALID_DATA` (value: `'Invalid data'`)

* `INTERNAL_SERVER_ERROR` (value: `'Internal Server Error'`)

* `MISSING_DATA` (value: `'Missing data'`)

* `METHOD_NOT_ALLOWED` (value: `'Method not allowed'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
15 changes: 12 additions & 3 deletions docs/ErrorTitlePhonebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@

Textual value which corresponds to an error code

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `INVALID_DATA` (value: `'Invalid data'`)

* `UNAUTHORIZED` (value: `'Unauthorized'`)

* `MISSING_RESOURCE` (value: `'Missing resource'`)

* `CONFLICT` (value: `'Conflict'`)

* `CLIENT_ERROR` (value: `'Client error'`)

* `GENERAL_ERROR` (value: `'General error'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
9 changes: 6 additions & 3 deletions docs/Priority.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

Set the priority of the message. Messages are processed starting with in highest priority queue first and lowest priority queue last. This for example allows to prioritize OTP messages over marketing traffic.

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `LOW` (value: `'low'`)

* `REGULAR` (value: `'regular'`)

* `HIGH` (value: `'high'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
25 changes: 22 additions & 3 deletions docs/Status.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,29 @@

The human-readable equivalent for this field is contained in \"error\". This value is *null* if the message is still being processed

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `ACK` (value: `'ACK'`)

* `DELIVRD` (value: `'DELIVRD'`)

* `UNDELIV` (value: `'UNDELIV'`)

* `FAILED` (value: `'FAILED'`)

* `UNKNOWN` (value: `'UNKNOWN'`)

* `ACCEPTD` (value: `'ACCEPTD'`)

* `REJECTD` (value: `'REJECTD'`)

* `DELETED` (value: `'DELETED'`)

* `EXPIRED` (value: `'EXPIRED'`)

* `NACK` (value: `'NACK'`)

* `SEEN` (value: `'SEEN'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
9 changes: 6 additions & 3 deletions docs/TextStore.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

Whether to store message content as is (plaintext), as a hashed value (sha256) or not at all (nostore)

## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `NOSTORE` (value: `'nostore'`)

* `PLAINTEXT` (value: `'plaintext'`)

* `SHA256` (value: `'sha256'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
60 changes: 36 additions & 24 deletions messente_api/api/blacklist_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ def _add_to_blacklist_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand All @@ -274,11 +276,12 @@ def _add_to_blacklist_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)

# set the HTTP header `Content-Type`
if _content_type:
Expand Down Expand Up @@ -538,7 +541,9 @@ def _delete_from_blacklist_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand All @@ -551,11 +556,12 @@ def _delete_from_blacklist_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -783,7 +789,9 @@ def _fetch_blacklist_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand All @@ -794,11 +802,12 @@ def _fetch_blacklist_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down Expand Up @@ -1045,7 +1054,9 @@ def _is_blacklisted_serialize(
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_files: Dict[
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
] = {}
_body_params: Optional[bytes] = None

# process the path parameters
Expand All @@ -1058,11 +1069,12 @@ def _is_blacklisted_serialize(


# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
Expand Down
Loading