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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Python 3.8+
Install using `pip`:

```shell
python3 -m pip install dropbox-sign==1.9.0
python3 -m pip install dropbox-sign==1.10.0
```

Alternatively:
Expand Down Expand Up @@ -400,6 +400,6 @@ apisupport@hellosign.com
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 3.0.0
- Package version: 1.9.0
- Package version: 1.10.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0
1.10.0
1 change: 0 additions & 1 deletion bin/check-clean-git-status
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ if [[ $(git status --porcelain) != '' ]]; then
printf "\t./run-build\n"

git status
git diff

exit 1
else
Expand Down
2 changes: 2 additions & 0 deletions docs/TemplateResponseDocumentFormFieldText.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Name | Type | Description | Notes
| `original_font_size` | ```int``` | Original font size used in this form field's text. | |
| `font_family` | ```str``` | Font family used in this form field's text. | |
| `validation_type` | ```str``` | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
| `validation_custom_regex` | ```str``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
| `validation_custom_regex_format_label` | ```str``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `group` | ```str``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |

[[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
2 changes: 1 addition & 1 deletion dropbox_sign/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "1.9.0"
__version__ = "1.10.0"

# import apis into sdk package
from dropbox_sign.apis import *
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "OpenAPI-Generator/1.9.0/python"
self.user_agent = "OpenAPI-Generator/1.10.0/python"
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 3 additions & 1 deletion dropbox_sign/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ def to_debug_report(self) -> str:
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 3.0.0\n"
"SDK Package Version: 1.9.0".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 1.10.0".format(
env=sys.platform, pyversion=sys.version
)
)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/models/api_app_create_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ApiAppCreateRequest(BaseModel):
ApiAppCreateRequest
""" # noqa: E501

domains: Annotated[List[StrictStr], Field(min_length=1, max_length=2)] = Field(
domains: Annotated[List[StrictStr], Field(min_length=1, max_length=10)] = Field(
description="The domain names the ApiApp will be associated with."
)
name: StrictStr = Field(description="The name you want to assign to the ApiApp.")
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/models/api_app_update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ApiAppUpdateRequest(BaseModel):
default=None,
description="An image file to use as a custom logo in embedded contexts. (Only applies to some API plans)",
)
domains: Optional[Annotated[List[StrictStr], Field(max_length=2)]] = Field(
domains: Optional[Annotated[List[StrictStr], Field(max_length=10)]] = Field(
default=None, description="The domain names the ApiApp will be associated with."
)
name: Optional[StrictStr] = Field(
Expand Down
4 changes: 2 additions & 2 deletions dropbox_sign/models/report_create_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ class ReportCreateRequest(BaseModel):
def report_type_validate_enum(cls, value):
"""Validates the enum"""
for i in value:
if i not in set(["user_activity", "document_status"]):
if i not in set(["user_activity", "document_status", "sms_activity"]):
raise ValueError(
"each list item must be one of ('user_activity', 'document_status')"
"each list item must be one of ('user_activity', 'document_status', 'sms_activity')"
)
return value

Expand Down
4 changes: 2 additions & 2 deletions dropbox_sign/models/report_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def report_type_validate_enum(cls, value):
return value

for i in value:
if i not in set(["user_activity", "document_status"]):
if i not in set(["user_activity", "document_status", "sms_activity"]):
raise ValueError(
"each list item must be one of ('user_activity', 'document_status')"
"each list item must be one of ('user_activity', 'document_status', 'sms_activity')"
)
return value

Expand Down
16 changes: 16 additions & 0 deletions dropbox_sign/models/template_response_document_form_field_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ class TemplateResponseDocumentFormFieldText(TemplateResponseDocumentFormFieldBas
default=None,
description="Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values.",
)
validation_custom_regex: Optional[StrictStr] = Field(
default=None,
description="When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.",
)
validation_custom_regex_format_label: Optional[StrictStr] = Field(
default=None,
description="When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.",
)
group: Optional[StrictStr] = Field(
default=None,
description="The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.",
Expand All @@ -87,6 +95,8 @@ class TemplateResponseDocumentFormFieldText(TemplateResponseDocumentFormFieldBas
"originalFontSize",
"fontFamily",
"validation_type",
"validation_custom_regex",
"validation_custom_regex_format_label",
"group",
]

Expand Down Expand Up @@ -199,6 +209,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"originalFontSize": obj.get("originalFontSize"),
"fontFamily": obj.get("fontFamily"),
"validation_type": obj.get("validation_type"),
"validation_custom_regex": obj.get("validation_custom_regex"),
"validation_custom_regex_format_label": obj.get(
"validation_custom_regex_format_label"
),
"group": obj.get("group"),
}
)
Expand All @@ -223,6 +237,8 @@ def openapi_types(cls) -> Dict[str, str]:
"original_font_size": "(int,)",
"font_family": "(str,)",
"validation_type": "(str,)",
"validation_custom_regex": "(str,)",
"validation_custom_regex_format_label": "(str,)",
"group": "(str,)",
"api_id": "(str,)",
"name": "(str,)",
Expand Down
2 changes: 1 addition & 1 deletion openapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ additionalProperties:
generatorLanguageVersion: ">=3.8"
packageName: dropbox_sign
projectName: dropbox-sign
packageVersion: 1.9.0
packageVersion: 1.10.0
sortModelPropertiesByRequiredFlag: true
legacyDiscriminatorBehavior: true
packageAuthor: Dropbox Sign API Team
Expand Down
14 changes: 12 additions & 2 deletions openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7797,7 +7797,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
minItems: 1
name:
description: 'The name you want to assign to the ApiApp.'
Expand All @@ -7823,7 +7823,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
name:
description: 'The name you want to assign to the ApiApp.'
type: string
Expand Down Expand Up @@ -8135,6 +8135,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
maxItems: 2
minItems: 1
start_date:
Expand Down Expand Up @@ -11964,6 +11965,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
type: object
x-internal-class: true
SignatureRequestResponse:
Expand Down Expand Up @@ -13130,6 +13132,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
validation_custom_regex:
description: 'When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.'
type: string
nullable: true
validation_custom_regex_format_label:
description: 'When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.'
type: string
nullable: true
group:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dropbox_sign"
version = "1.9.0"
version = "1.10.0"
description = "Dropbox Sign API"
authors = ["Official Python SDK for the Dropbox Sign API <apisupport@hellosign.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "dropbox-sign"
VERSION = "1.9.0"
VERSION = "1.10.0"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
3 changes: 1 addition & 2 deletions test_fixtures/FaxGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
"transmissions": [
{
"recipient": "recipient@dropboxsign.com",
"sender": "me@dropboxsign.com",
"sent_at": 1723231831,
"status_code": "success"
}
],
"files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2",
"files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2"
}
}
}
6 changes: 6 additions & 0 deletions test_fixtures/FaxLineCreateRequest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"default": {
"country": "US",
"area_code": 949
}
}
26 changes: 26 additions & 0 deletions test_fixtures/FaxLineListResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"default": {
"list_info": {
"num_pages": 1,
"num_results": 1,
"page": 1,
"page_size": 1
},
"fax_lines": [
{
"number": "14155557897",
"created_at": 1750196223,
"updated_at": 1750196223,
"accounts": [
{
"account_id": "a3367a4130f3624687ea7de6f09df951a44923dd",
"email_address": "me@dropboxsign.com",
"is_locked": false,
"is_paid_hs": false,
"is_paid_hf": true
}
]
}
]
}
}
18 changes: 18 additions & 0 deletions test_fixtures/FaxLineResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"default": {
"fax_line": {
"number": "14155557897",
"created_at": 1750196223,
"updated_at": 1750196223,
"accounts": [
{
"account_id": "a3367a4130f3624687ea7de6f09df951a44923dd",
"email_address": "me@dropboxsign.com",
"is_locked": false,
"is_paid_hs": false,
"is_paid_hf": true
}
]
}
}
}
3 changes: 1 addition & 2 deletions test_fixtures/FaxListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
"transmissions": [
{
"recipient": "recipient@dropboxsign.com",
"sender": "me@dropboxsign.com",
"sent_at": 1723231831,
"status_code": "success"
}
],
"files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2",
"files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2"
}
]
}
Expand Down
24 changes: 24 additions & 0 deletions test_fixtures/FaxResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"default": {
"fax": {
"fax_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d",
"title": "example title",
"original_title": "example original title",
"metadata": {},
"created_at": 1750105080,
"sender": "14155557068",
"files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2",
"final_copy_uri": "/v3/transmission/final_copy/c2e9691c85d9d6fa6ae773842e3680b2b8650f1d",
"transmissions": [
{
"recipient": "18005550199",
"status_code": "transmitting"
}
],
"transmission_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d",
"from": "14155557068",
"test_mode": false
}
}
}

16 changes: 0 additions & 16 deletions test_fixtures/FaxSendResponse.json

This file was deleted.

Loading
Loading