Repository navigation
Commit fc818d9
committed
Update to version 4.2.0 on 2026-10-29
- **BREAKING CHANGE**: list_templates returns a shorter `TemplateSummary`: a template's name, description, type, folder
(`parent_folder_id`, `path`), latest published version, whether it's `ready`, and its PDF's file name, state, error
and page count (`document`, a `TemplateDocumentSummary`). get_template returns its settings and the rest.
- **BREAKING CHANGE**: list_submissions and list_template_submissions return `SubmissionSummary` instead of
`Submission`: without signature requests and uploads, with `data` only when you pass `include_data` (as before), and
with `files` only when you pass the new `include_files` (without the links to page images). get_submission returns the
whole submission.
- New: the template webhook events (version 4) send the whole template, as get_template returns it, without its
`embed_edit_token`. They sent the settings without the rest.
- New: list_submissions and list_template_submissions take a `state` filter: one state, such as `invalid_data` or
`error`.
- New: get_template_model_code takes `just_types`, for the types alone, without the code that converts and checks JSON
(TypeScript, Ruby, Python, Java, C#, Elixir and Go: JavaScript and PHP code is the same either way).
- New: create_submission, create_submission_batch and create_combined_pdf take an `Idempotency-Key` header. A request
repeated with the same key within 24 hours returns the first response and creates nothing. The same key with a
different request is a 422, and a repeat while the first request is still running is a 409.
- New: create_template_preview and get_template_preview fill an HTML or PDF template's draft (or a published version)
with your data and return PNG images of its pages, not a PDF, so you can check how it prints before you publish it or
send live data. A preview creates no submission and uses no credits. Get the preview until its `state` is
`processed`. Previews are watermarked like test PDFs.
- New: HTML templates' `html_escape_data` setting HTML-escapes the values they print (`{{ value }}`). It's on for new
templates and off for existing ones; `{{ value | raw }}` prints a value as it is.
- New: `com.docspring.Webhooks.verifyWebhookSignature(payload, signatureHeader, secret)` checks a webhook request's
`X-DocSpring-Signature` header. Pass it the request body exactly as it was received. It returns true or false, accepts
any `v1` that matches and rejects a timestamp more than 5 minutes old (an overload with `toleranceSeconds` for another
tolerance).
- publish_template_version answers 409 when the draft hasn't changed since the latest published version, instead of
publishing a copy of it (code `conflict`). A template's first publish always works.
- Every operation documents the 429 rate limit response (with `Retry-After`), and the creates that the sync hosts wait
for document their 504 (the record was saved: get it by the ID in the error).
- Every optional field takes `null` in a submission's `data`, whatever its type, so model code that writes missing
values as null works. A null checkbox or group of fields (an object or a list) gets its defaults, as a missing key
does, and a null text, number, date, image or signature field prints blank, as before. Null in a required field is
still an error.
- Template and webhook names can be up to 512 characters, up from 255.1 parent ecb7e2f commit fc818d9
69 files changed
Lines changed: 6641 additions & 2594 deletions
File tree
- .openapi-generator
- api
- docs
- src
- main
- java/com/docspring
- resources/com/docspring
- test/java/com/docspring
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| |||
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
| 298 | + | |
292 | 299 | | |
293 | 300 | | |
294 | 301 | | |
| |||
299 | 306 | | |
300 | 307 | | |
301 | 308 | | |
| 309 | + | |
302 | 310 | | |
303 | 311 | | |
304 | 312 | | |
| |||
319 | 327 | | |
320 | 328 | | |
321 | 329 | | |
| 330 | + | |
| 331 | + | |
322 | 332 | | |
323 | 333 | | |
324 | 334 | | |
| |||
369 | 379 | | |
370 | 380 | | |
371 | 381 | | |
| 382 | + | |
372 | 383 | | |
373 | 384 | | |
374 | 385 | | |
| |||
449 | 460 | | |
450 | 461 | | |
451 | 462 | | |
| 463 | + | |
452 | 464 | | |
453 | 465 | | |
454 | 466 | | |
| |||
458 | 470 | | |
459 | 471 | | |
460 | 472 | | |
| 473 | + | |
461 | 474 | | |
462 | 475 | | |
463 | 476 | | |
| |||
479 | 492 | | |
480 | 493 | | |
481 | 494 | | |
| 495 | + | |
| 496 | + | |
482 | 497 | | |
483 | 498 | | |
484 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
1 | 39 | | |
2 | 40 | | |
3 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| |||
0 commit comments