Skip to content

Commit f8d24c8

Browse files
committed
Updated on 2026-10-15 13:05:03. Version: 3.1.0
1 parent 52054c1 commit f8d24c8

145 files changed

Lines changed: 5561 additions & 1698 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.openapi-generator/FILES‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ docs/CreateSubmissionDataRequestEventResponse.md
2323
docs/CreateSubmissionDataRequestResponse.md
2424
docs/CreateSubmissionDataRequestTokenResponse.md
2525
docs/CreateSubmissionResponse.md
26+
docs/CreateWebhookData.md
2627
docs/CustomFile.md
2728
docs/ErrorOrMultipleErrorsResponse.md
2829
docs/ErrorResponse.md
@@ -51,12 +52,15 @@ docs/SuccessMultipleErrorsResponse.md
5152
docs/Template.md
5253
docs/TemplateAddFieldsResponse.md
5354
docs/TemplateDeleteResponse.md
55+
docs/TemplateModelCodeResponse.md
5456
docs/TemplatePreview.md
5557
docs/TemplatePublishVersionResponse.md
5658
docs/UpdateHtmlTemplate.md
5759
docs/UpdatePdfTemplate.md
5860
docs/UpdateSubmissionDataRequestData.md
61+
docs/UpdateWebhookData.md
5962
docs/UploadPresignResponse.md
63+
docs/Webhook.md
6064
docspring/__init__.py
6165
docspring/api/__init__.py
6266
docspring/api/client.py
@@ -84,6 +88,7 @@ docspring/models/create_submission_data_request_event_response.py
8488
docspring/models/create_submission_data_request_response.py
8589
docspring/models/create_submission_data_request_token_response.py
8690
docspring/models/create_submission_response.py
91+
docspring/models/create_webhook_data.py
8792
docspring/models/custom_file.py
8893
docspring/models/error_or_multiple_errors_response.py
8994
docspring/models/error_response.py
@@ -112,12 +117,15 @@ docspring/models/success_multiple_errors_response.py
112117
docspring/models/template.py
113118
docspring/models/template_add_fields_response.py
114119
docspring/models/template_delete_response.py
120+
docspring/models/template_model_code_response.py
115121
docspring/models/template_preview.py
116122
docspring/models/template_publish_version_response.py
117123
docspring/models/update_html_template.py
118124
docspring/models/update_pdf_template.py
119125
docspring/models/update_submission_data_request_data.py
126+
docspring/models/update_webhook_data.py
120127
docspring/models/upload_presign_response.py
128+
docspring/models/webhook.py
121129
docspring/py.typed
122130
docspring/rest.py
123131
git_push.sh
@@ -147,6 +155,7 @@ test/test_create_submission_data_request_event_response.py
147155
test/test_create_submission_data_request_response.py
148156
test/test_create_submission_data_request_token_response.py
149157
test/test_create_submission_response.py
158+
test/test_create_webhook_data.py
150159
test/test_custom_file.py
151160
test/test_error_or_multiple_errors_response.py
152161
test/test_error_response.py
@@ -175,10 +184,13 @@ test/test_success_multiple_errors_response.py
175184
test/test_template.py
176185
test/test_template_add_fields_response.py
177186
test/test_template_delete_response.py
187+
test/test_template_model_code_response.py
178188
test/test_template_preview.py
179189
test/test_template_publish_version_response.py
180190
test/test_update_html_template.py
181191
test/test_update_pdf_template.py
182192
test/test_update_submission_data_request_data.py
193+
test/test_update_webhook_data.py
183194
test/test_upload_presign_response.py
195+
test/test_webhook.py
184196
tox.ini

‎CHANGELOG.md‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
### 3.1.0 [October 15, 2026]
2+
3+
- Submissions and data requests can now be in the `declined` state, when a signer declines to sign. Data
4+
requests have a new `declined_at` timestamp. Earlier versions raise an error when they read a declined
5+
submission or data request.
6+
- New API methods for webhooks: create_webhook, list_webhooks, get_webhook, update_webhook and delete_webhook.
7+
- New API method: get_template_model_code, which generates typed model code for a template's submission data, so
8+
your app can catch mistakes before it calls the API.
9+
- Templates:
10+
- Field dependencies: `field_dependencies` when you create or update a template, and `dependencies` on the fields
11+
you add with add_fields_to_template.
12+
- add_fields_to_template accepts the `initials` field type and an `editable` setting for each field.
13+
- Embedded template editor settings: `embed_edit_allow_document_replacement`, `embed_edit_allow_settings`,
14+
`embed_edit_allow_versioning` and `embed_edit_token`.
15+
- New `template_schema_version` attribute.
16+
- A template's `path` is never null.
17+
- Individual template `defaults` can be null (for example `fontSize` after it's cleared in the template editor).
18+
- `last_changed_by_type` can be `external_user` (a change made in the embedded template editor), with
19+
`last_changed_by_external_id`, `last_changed_by_external_name` and `last_changed_by_external_email`.
20+
- Template versions say who published them with `published_by_type`, `published_by_user_id`,
21+
`published_by_name`, `published_by_email` and `published_by_external_id`. These replace `published_by_id`,
22+
which the API no longer returns.
23+
- The JSON schema from get_template_schema includes `$id`, `allOf` and `dependencies`.
24+
- copy_template accepts a template `version`, and `parent_folder_id` is now optional. move_template_to_folder also
25+
accepts a `version`.
26+
- Pass a null `parent_folder_id` to move_template_to_folder or move_folder_to_folder to move it to the root folder.
27+
- Submissions and submission actions include an `error_message` when processing fails.
28+
- combine_pdfs: `delete_custom_files` now deletes the custom files once the merged PDF is processed (it used to be
29+
ignored). `test` has no effect and is deprecated.
30+
- A response with an enum value added to the API after this release (e.g. a new submission state) no longer raises
31+
an error. The attribute keeps the new value.
32+
- get_submission, list_submissions and list_template_submissions no longer fail when `include_data` isn't set.
33+
`source`, `referrer` and `data` are optional on submissions, because the API only returns them with
34+
`include_data`.
35+
- The `host` argument and `DOCSPRING_HOST` can end with `/api/v1/` or have spaces around them (a trailing slash
36+
after `/api/v1` used to repeat it).
37+
- The package metadata names DocSpring as the author, declares the MIT license (like the LICENSE file) and links to
38+
the docspring-python repository.
39+
140
### 3.0.0 [September 24, 2025]
241

342
- All our API clients are now 100% end-to-end tested against our real server.

‎README.md‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v1
7-
- Package version: 3.0.0
7+
- Package version: 3.1.0
88
- Generator version: 7.16.0-DOCSPRING
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -18,9 +18,9 @@ Python 3.9+
1818
If the python package is hosted on a repository, you can install directly using:
1919

2020
```sh
21-
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
21+
pip install git+https://github.com/DocSpring/docspring-python.git
2222
```
23-
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
23+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/DocSpring/docspring-python.git`)
2424

2525
Then import the package:
2626
```python
@@ -107,8 +107,10 @@ Class | Method | HTTP request | Description
107107
*Client* | [**create_html_template**](docs/Client.md#create_html_template) | **POST** /templates?endpoint_variant=create_html_template | Create a new HTML template
108108
*Client* | [**create_pdf_template**](docs/Client.md#create_pdf_template) | **POST** /templates | Create a new PDF template with a form POST file upload
109109
*Client* | [**create_pdf_template_from_upload**](docs/Client.md#create_pdf_template_from_upload) | **POST** /templates?endpoint_variant=create_template_from_cached_upload | Create a new PDF template from a cached S3 file upload
110+
*Client* | [**create_webhook**](docs/Client.md#create_webhook) | **POST** /webhooks | Create a webhook
110111
*Client* | [**delete_folder**](docs/Client.md#delete_folder) | **DELETE** /folders/{folder_id} | Delete a folder
111112
*Client* | [**delete_template**](docs/Client.md#delete_template) | **DELETE** /templates/{template_id} | Delete a template
113+
*Client* | [**delete_webhook**](docs/Client.md#delete_webhook) | **DELETE** /webhooks/{webhook_id} | Delete a webhook
112114
*Client* | [**expire_combined_submission**](docs/Client.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
113115
*Client* | [**expire_submission**](docs/Client.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
114116
*Client* | [**generate_pdf**](docs/Client.md#generate_pdf) | **POST** /templates/{template_id}/submissions | Generate a PDF
@@ -120,12 +122,15 @@ Class | Method | HTTP request | Description
120122
*Client* | [**get_submission**](docs/Client.md#get_submission) | **GET** /submissions/{submission_id} | Check the status of a PDF
121123
*Client* | [**get_submission_batch**](docs/Client.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
122124
*Client* | [**get_template**](docs/Client.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
125+
*Client* | [**get_template_model_code**](docs/Client.md#get_template_model_code) | **GET** /templates/{template_id}/model_code | Generate typed model code for a template
123126
*Client* | [**get_template_schema**](docs/Client.md#get_template_schema) | **GET** /templates/{template_id}/schema | Fetch the JSON schema for a template
127+
*Client* | [**get_webhook**](docs/Client.md#get_webhook) | **GET** /webhooks/{webhook_id} | Get a webhook
124128
*Client* | [**list_combined_submissions**](docs/Client.md#list_combined_submissions) | **GET** /combined_submissions | Get a list of all combined submissions
125129
*Client* | [**list_folders**](docs/Client.md#list_folders) | **GET** /folders/ | Get a list of all folders
126130
*Client* | [**list_submissions**](docs/Client.md#list_submissions) | **GET** /submissions | List all submissions
127131
*Client* | [**list_template_submissions**](docs/Client.md#list_template_submissions) | **GET** /templates/{template_id}/submissions | List all submissions for a given template
128132
*Client* | [**list_templates**](docs/Client.md#list_templates) | **GET** /templates | Get a list of all templates
133+
*Client* | [**list_webhooks**](docs/Client.md#list_webhooks) | **GET** /webhooks | Get a list of all webhooks
129134
*Client* | [**move_folder_to_folder**](docs/Client.md#move_folder_to_folder) | **POST** /folders/{folder_id}/move | Move a folder
130135
*Client* | [**move_template_to_folder**](docs/Client.md#move_template_to_folder) | **POST** /templates/{template_id}/move | Move Template to folder
131136
*Client* | [**publish_template_version**](docs/Client.md#publish_template_version) | **POST** /templates/{template_id}/publish_version | Publish a template version
@@ -136,6 +141,7 @@ Class | Method | HTTP request | Description
136141
*Client* | [**update_template**](docs/Client.md#update_template) | **PUT** /templates/{template_id} | Update a Template
137142
*Client* | [**update_template_document**](docs/Client.md#update_template_document) | **PUT** /templates/{template_id}?endpoint_variant=update_template_pdf_with_form_post | Update a template's document with a form POST file upload
138143
*Client* | [**update_template_document_from_upload**](docs/Client.md#update_template_document_from_upload) | **PUT** /templates/{template_id}?endpoint_variant=update_template_pdf_with_cached_upload | Update a template's document with a cached S3 file upload
144+
*Client* | [**update_webhook**](docs/Client.md#update_webhook) | **PUT** /webhooks/{webhook_id} | Update a webhook
139145

140146

141147
## Documentation For Models
@@ -159,6 +165,7 @@ Class | Method | HTTP request | Description
159165
- [CreateSubmissionDataRequestResponse](docs/CreateSubmissionDataRequestResponse.md)
160166
- [CreateSubmissionDataRequestTokenResponse](docs/CreateSubmissionDataRequestTokenResponse.md)
161167
- [CreateSubmissionResponse](docs/CreateSubmissionResponse.md)
168+
- [CreateWebhookData](docs/CreateWebhookData.md)
162169
- [CustomFile](docs/CustomFile.md)
163170
- [ErrorOrMultipleErrorsResponse](docs/ErrorOrMultipleErrorsResponse.md)
164171
- [ErrorResponse](docs/ErrorResponse.md)
@@ -187,12 +194,15 @@ Class | Method | HTTP request | Description
187194
- [Template](docs/Template.md)
188195
- [TemplateAddFieldsResponse](docs/TemplateAddFieldsResponse.md)
189196
- [TemplateDeleteResponse](docs/TemplateDeleteResponse.md)
197+
- [TemplateModelCodeResponse](docs/TemplateModelCodeResponse.md)
190198
- [TemplatePreview](docs/TemplatePreview.md)
191199
- [TemplatePublishVersionResponse](docs/TemplatePublishVersionResponse.md)
192200
- [UpdateHtmlTemplate](docs/UpdateHtmlTemplate.md)
193201
- [UpdatePdfTemplate](docs/UpdatePdfTemplate.md)
194202
- [UpdateSubmissionDataRequestData](docs/UpdateSubmissionDataRequestData.md)
203+
- [UpdateWebhookData](docs/UpdateWebhookData.md)
195204
- [UploadPresignResponse](docs/UploadPresignResponse.md)
205+
- [Webhook](docs/Webhook.md)
196206

197207

198208
<a id="documentation-for-authorization"></a>
@@ -208,6 +218,6 @@ Authentication schemes defined for the API:
208218

209219
## Author
210220

211-
221+
support@docspring.com
212222

213223

0 commit comments

Comments
 (0)