docspring 4.2.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +26 -6
  3. package/dist/ApiClient.js +3 -3
  4. package/dist/RequestSchemas.js +1171 -134
  5. package/dist/RequestValidator.js +4 -0
  6. package/dist/api/Client.js +1406 -248
  7. package/dist/index.js +196 -0
  8. package/dist/model/AddTemplateFieldsRequest.js +4 -4
  9. package/dist/model/AiFieldNamingLanguage.js +1 -1
  10. package/dist/model/AuthenticationCheck.js +2 -2
  11. package/dist/model/BarcodeSymbology.js +1 -1
  12. package/dist/model/CheckCharacter.js +1 -1
  13. package/dist/model/CombinedFieldType.js +1 -1
  14. package/dist/model/CombinedPdf.js +2 -2
  15. package/dist/model/CombinedPdfFiles.js +2 -2
  16. package/dist/model/CombinedPdfList.js +2 -2
  17. package/dist/model/CombinedPdfSource.js +3 -3
  18. package/dist/model/CombinedPdfSourceInput.js +3 -3
  19. package/dist/model/CombinedPdfSourcePdf.js +2 -2
  20. package/dist/model/CombinedPdfSourceType.js +1 -1
  21. package/dist/model/CombinedPdfState.js +1 -1
  22. package/dist/model/CopyTemplateRequest.js +2 -2
  23. package/dist/model/CreateAccountEmailActionRequest.js +306 -0
  24. package/dist/model/CreateCombinedPdfRequest.js +2 -2
  25. package/dist/model/CreateCustomFileFromUploadRequest.js +2 -2
  26. package/dist/model/CreateEmailActionRequest.js +280 -0
  27. package/dist/model/CreateEmailDomainRequest.js +114 -0
  28. package/dist/model/CreateFolderRequest.js +2 -2
  29. package/dist/model/CreateSignatureRequestEventRequest.js +2 -2
  30. package/dist/model/CreateSignatureRequestTokenRequest.js +2 -2
  31. package/dist/model/CreateSubmissionBatchRequest.js +5 -5
  32. package/dist/model/CreateSubmissionRequest.js +115 -7
  33. package/dist/model/CreateTemplatePreviewRequest.js +2 -2
  34. package/dist/model/CreateTemplateRequest.js +119 -14
  35. package/dist/model/CreateWebhookRequest.js +2 -2
  36. package/dist/model/CustomFile.js +2 -2
  37. package/dist/model/CustomFileList.js +2 -2
  38. package/dist/model/CustomFileSourcePdf.js +2 -2
  39. package/dist/model/DnsRecordType.js +64 -0
  40. package/dist/model/EmailAction.js +510 -0
  41. package/dist/model/EmailActionConditions.js +142 -0
  42. package/dist/model/EmailActionConditionsInput.js +142 -0
  43. package/dist/model/EmailActionCustomization.js +222 -0
  44. package/dist/model/EmailActionDelivery.js +59 -0
  45. package/dist/model/EmailActionFileFormats.js +69 -0
  46. package/dist/model/EmailActionList.js +132 -0
  47. package/dist/model/EmailActionSetting.js +119 -0
  48. package/dist/model/EmailActionSubmissionType.js +64 -0
  49. package/dist/model/EmailActionTestEmail.js +116 -0
  50. package/dist/model/EmailDomain.js +245 -0
  51. package/dist/model/EmailDomainDnsRecord.js +155 -0
  52. package/dist/model/EmailDomainDnsRecordPurpose.js +64 -0
  53. package/dist/model/EmailDomainList.js +132 -0
  54. package/dist/model/EmailDomainRecordState.js +64 -0
  55. package/dist/model/EmailDomainState.js +64 -0
  56. package/dist/model/ErrorCode.js +11 -1
  57. package/dist/model/ErrorDetail.js +2 -2
  58. package/dist/model/ErrorInfo.js +47 -8
  59. package/dist/model/ErrorResponse.js +2 -2
  60. package/dist/model/ExpirationInterval.js +1 -1
  61. package/dist/model/Field.js +5 -5
  62. package/dist/model/FieldComparisonCondition.js +2 -2
  63. package/dist/model/FieldComparisonOperator.js +1 -1
  64. package/dist/model/FieldDependency.js +2 -2
  65. package/dist/model/FieldDependencyInput.js +2 -2
  66. package/dist/model/FieldDisplayType.js +1 -1
  67. package/dist/model/FieldEqualsCondition.js +2 -2
  68. package/dist/model/FieldEqualsOperator.js +1 -1
  69. package/dist/model/FieldGroup.js +6 -6
  70. package/dist/model/FieldGroupInput.js +3 -3
  71. package/dist/model/FieldGroupType.js +1 -1
  72. package/dist/model/FieldInCondition.js +2 -2
  73. package/dist/model/FieldInput.js +4 -4
  74. package/dist/model/FieldOverride.js +2 -2
  75. package/dist/model/FieldPresenceCondition.js +2 -2
  76. package/dist/model/FieldPresenceOperator.js +1 -1
  77. package/dist/model/FieldRangeCondition.js +2 -2
  78. package/dist/model/FieldReimportState.js +1 -1
  79. package/dist/model/FieldSetupLogic.js +1 -1
  80. package/dist/model/FieldSetupNaming.js +1 -1
  81. package/dist/model/FieldSetupSource.js +1 -1
  82. package/dist/model/FieldType.js +1 -1
  83. package/dist/model/Folder.js +2 -2
  84. package/dist/model/FolderList.js +2 -2
  85. package/dist/model/GenerateFilesFormat.js +16 -1
  86. package/dist/model/GenerateSubmissionFilesRequest.js +4 -4
  87. package/dist/model/GeneratedFile.js +7 -7
  88. package/dist/model/GeneratedFileState.js +1 -1
  89. package/dist/model/HtmlEngineOptions.js +4 -4
  90. package/dist/model/HtmlEngineOptionsInput.js +3 -3
  91. package/dist/model/ImageGravity.js +1 -1
  92. package/dist/model/ImageScaleType.js +1 -1
  93. package/dist/model/ModelCodeLanguage.js +7 -2
  94. package/dist/model/MoveFolderRequest.js +2 -2
  95. package/dist/model/MoveTemplateRequest.js +2 -2
  96. package/dist/model/NumberConditionType.js +1 -1
  97. package/dist/model/OutputFormat.js +11 -1
  98. package/dist/model/PageFormat.js +1 -1
  99. package/dist/model/PageImage.js +2 -2
  100. package/dist/model/PageImages.js +2 -2
  101. package/dist/model/PredefinedField.js +2 -2
  102. package/dist/model/PredefinedFieldInput.js +2 -2
  103. package/dist/model/PublishTemplateVersionRequest.js +2 -2
  104. package/dist/model/RemoveTemplateFieldsRequest.js +2 -2
  105. package/dist/model/RenameFolderRequest.js +2 -2
  106. package/dist/model/ReorderTemplateFieldsRequest.js +2 -2
  107. package/dist/model/RestoreTemplateVersionRequest.js +2 -2
  108. package/dist/model/SendAccountEmailActionTestEmailRequest.js +91 -0
  109. package/dist/model/ShapeType.js +1 -1
  110. package/dist/model/SignatureRequest.js +53 -8
  111. package/dist/model/SignatureRequestAuthSecondFactorType.js +1 -1
  112. package/dist/model/SignatureRequestAuthType.js +1 -1
  113. package/dist/model/SignatureRequestEmailAttachments.js +59 -0
  114. package/dist/model/SignatureRequestEmailStatus.js +89 -0
  115. package/dist/model/SignatureRequestEvent.js +2 -2
  116. package/dist/model/SignatureRequestEventType.js +12 -2
  117. package/dist/model/SignatureRequestInput.js +25 -9
  118. package/dist/model/SignatureRequestMessageType.js +1 -1
  119. package/dist/model/SignatureRequestReminders.js +121 -0
  120. package/dist/model/SignatureRequestState.js +1 -1
  121. package/dist/model/SignatureRequestToken.js +2 -2
  122. package/dist/model/SignatureRequestTokenType.js +1 -1
  123. package/dist/model/SigningOrder.js +59 -0
  124. package/dist/model/StringConditionType.js +37 -2
  125. package/dist/model/Submission.js +31 -19
  126. package/dist/model/SubmissionAction.js +28 -13
  127. package/dist/model/SubmissionActionState.js +1 -1
  128. package/dist/model/SubmissionActionType.js +1 -1
  129. package/dist/model/SubmissionBatch.js +9 -9
  130. package/dist/model/SubmissionBatchState.js +1 -1
  131. package/dist/model/SubmissionFiles.js +20 -2
  132. package/dist/model/SubmissionInput.js +7 -7
  133. package/dist/model/SubmissionList.js +2 -2
  134. package/dist/model/SubmissionSource.js +1 -1
  135. package/dist/model/SubmissionSourcePdf.js +2 -2
  136. package/dist/model/SubmissionState.js +1 -1
  137. package/dist/model/SubmissionSummary.js +8 -8
  138. package/dist/model/SubmissionValidation.js +2 -2
  139. package/dist/model/Template.js +149 -26
  140. package/dist/model/TemplateActor.js +2 -2
  141. package/dist/model/TemplateActorType.js +1 -1
  142. package/dist/model/TemplateDefaults.js +2 -2
  143. package/dist/model/TemplateDefaultsInput.js +2 -2
  144. package/dist/model/TemplateDiff.js +6 -6
  145. package/dist/model/TemplateDiffSummary.js +2 -2
  146. package/dist/model/TemplateDocument.js +23 -23
  147. package/dist/model/TemplateDocumentState.js +12 -2
  148. package/dist/model/TemplateDocumentSummary.js +11 -11
  149. package/dist/model/TemplateFieldChange.js +2 -2
  150. package/dist/model/TemplateFieldChanges.js +2 -2
  151. package/dist/model/TemplateFieldDependency.js +2 -2
  152. package/dist/model/TemplateFieldDependencyAction.js +1 -1
  153. package/dist/model/TemplateFieldDependencyCondition.js +2 -2
  154. package/dist/model/TemplateFieldDependencyConditionInput.js +2 -2
  155. package/dist/model/TemplateFieldDependencyInput.js +2 -2
  156. package/dist/model/TemplateFieldDependencyMatch.js +1 -1
  157. package/dist/model/TemplateFieldDependencyOperator.js +1 -1
  158. package/dist/model/TemplateFieldLogicStatus.js +1 -1
  159. package/dist/model/TemplateFieldMove.js +2 -2
  160. package/dist/model/TemplateFields.js +2 -2
  161. package/dist/model/TemplateFormMode.js +1 -1
  162. package/dist/model/TemplateModelCode.js +2 -2
  163. package/dist/model/TemplatePageAiError.js +1 -1
  164. package/dist/model/TemplatePageAiNamingStatus.js +1 -1
  165. package/dist/model/TemplatePageFieldsStatus.js +1 -1
  166. package/dist/model/TemplatePageImageStatus.js +1 -1
  167. package/dist/model/TemplatePageImages.js +2 -2
  168. package/dist/model/TemplatePageProcessingStatus.js +2 -2
  169. package/dist/model/TemplatePreview.js +5 -5
  170. package/dist/model/TemplatePreviewState.js +1 -1
  171. package/dist/model/TemplateSourcePdf.js +3 -3
  172. package/dist/model/TemplateSummary.js +24 -12
  173. package/dist/model/TemplateSummaryList.js +2 -2
  174. package/dist/model/TemplateType.js +12 -2
  175. package/dist/model/TemplateVersion.js +2 -2
  176. package/dist/model/TemplateVersionType.js +1 -1
  177. package/dist/model/TextAlignment.js +1 -1
  178. package/dist/model/TextOverflow.js +1 -1
  179. package/dist/model/TextVerticalAlignment.js +1 -1
  180. package/dist/model/Typeface.js +1 -1
  181. package/dist/model/UpdateAccountEmailActionRequest.js +306 -0
  182. package/dist/model/UpdateEmailActionCustomizationRequest.js +258 -0
  183. package/dist/model/UpdateEmailActionRequest.js +280 -0
  184. package/dist/model/UpdateSignatureRequestRequest.js +2 -2
  185. package/dist/model/UpdateTemplateDocumentRequest.js +8 -8
  186. package/dist/model/UpdateTemplateFieldsRequest.js +2 -2
  187. package/dist/model/UpdateTemplateRequest.js +113 -8
  188. package/dist/model/UpdateWebhookRequest.js +2 -2
  189. package/dist/model/UploadMethod.js +1 -1
  190. package/dist/model/UploadPresign.js +2 -2
  191. package/dist/model/UrlSourcePdf.js +2 -2
  192. package/dist/model/ValidateSubmissionRequest.js +115 -7
  193. package/dist/model/Webhook.js +2 -2
  194. package/dist/model/WebhookEventType.js +11 -1
  195. package/dist/model/WebhookList.js +2 -2
  196. package/dist/model/WebhookMode.js +1 -1
  197. package/package.json +2 -2
@@ -9,7 +9,9 @@ var _AiFieldNamingLanguage = _interopRequireDefault(require("./AiFieldNamingLang
9
9
  var _ExpirationInterval = _interopRequireDefault(require("./ExpirationInterval"));
10
10
  var _FieldGroupInput = _interopRequireDefault(require("./FieldGroupInput"));
11
11
  var _HtmlEngineOptionsInput = _interopRequireDefault(require("./HtmlEngineOptionsInput"));
12
+ var _OutputFormat = _interopRequireDefault(require("./OutputFormat"));
12
13
  var _PredefinedFieldInput = _interopRequireDefault(require("./PredefinedFieldInput"));
14
+ var _SignatureRequestEmailAttachments = _interopRequireDefault(require("./SignatureRequestEmailAttachments"));
13
15
  var _TemplateDefaultsInput = _interopRequireDefault(require("./TemplateDefaultsInput"));
14
16
  var _TemplateFieldDependencyInput = _interopRequireDefault(require("./TemplateFieldDependencyInput"));
15
17
  var _TemplateFormMode = _interopRequireDefault(require("./TemplateFormMode"));
@@ -24,7 +26,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
24
26
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
25
27
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
26
28
  * DocSpring API
27
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
29
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
28
30
  *
29
31
  * The version of the OpenAPI document: v2
30
32
  *
@@ -37,7 +39,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
37
39
  /**
38
40
  * The UpdateTemplateRequest model module.
39
41
  * @module model/UpdateTemplateRequest
40
- * @version 4.2.0
42
+ * @version 4.4.0
41
43
  */
42
44
  var UpdateTemplateRequest = /*#__PURE__*/function () {
43
45
  /**
@@ -77,6 +79,9 @@ var UpdateTemplateRequest = /*#__PURE__*/function () {
77
79
  if (data.hasOwnProperty('description')) {
78
80
  obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
79
81
  }
82
+ if (data.hasOwnProperty('output_format')) {
83
+ obj['output_format'] = _ApiClient["default"].convertToType(data['output_format'], _OutputFormat["default"]);
84
+ }
80
85
  if (data.hasOwnProperty('parent_folder_id')) {
81
86
  obj['parent_folder_id'] = _ApiClient["default"].convertToType(data['parent_folder_id'], 'String');
82
87
  }
@@ -143,6 +148,27 @@ var UpdateTemplateRequest = /*#__PURE__*/function () {
143
148
  if (data.hasOwnProperty('redirect_url')) {
144
149
  obj['redirect_url'] = _ApiClient["default"].convertToType(data['redirect_url'], 'String');
145
150
  }
151
+ if (data.hasOwnProperty('signature_request_email_attachments')) {
152
+ obj['signature_request_email_attachments'] = _ApiClient["default"].convertToType(data['signature_request_email_attachments'], _SignatureRequestEmailAttachments["default"]);
153
+ }
154
+ if (data.hasOwnProperty('signature_request_from_address')) {
155
+ obj['signature_request_from_address'] = _ApiClient["default"].convertToType(data['signature_request_from_address'], 'String');
156
+ }
157
+ if (data.hasOwnProperty('signature_request_include_signing_token')) {
158
+ obj['signature_request_include_signing_token'] = _ApiClient["default"].convertToType(data['signature_request_include_signing_token'], 'Boolean');
159
+ }
160
+ if (data.hasOwnProperty('signature_request_from_name')) {
161
+ obj['signature_request_from_name'] = _ApiClient["default"].convertToType(data['signature_request_from_name'], 'String');
162
+ }
163
+ if (data.hasOwnProperty('signature_request_notification_emails')) {
164
+ obj['signature_request_notification_emails'] = _ApiClient["default"].convertToType(data['signature_request_notification_emails'], ['String']);
165
+ }
166
+ if (data.hasOwnProperty('signature_request_reply_to')) {
167
+ obj['signature_request_reply_to'] = _ApiClient["default"].convertToType(data['signature_request_reply_to'], 'String');
168
+ }
169
+ if (data.hasOwnProperty('signature_request_signing_url')) {
170
+ obj['signature_request_signing_url'] = _ApiClient["default"].convertToType(data['signature_request_signing_url'], 'String');
171
+ }
146
172
  if (data.hasOwnProperty('slack_webhook_url')) {
147
173
  obj['slack_webhook_url'] = _ApiClient["default"].convertToType(data['slack_webhook_url'], 'String');
148
174
  }
@@ -181,6 +207,11 @@ var UpdateTemplateRequest = /*#__PURE__*/function () {
181
207
  if (data.hasOwnProperty('html_escape_data')) {
182
208
  obj['html_escape_data'] = _ApiClient["default"].convertToType(data['html_escape_data'], 'Boolean');
183
209
  }
210
+ if (data.hasOwnProperty('layout')) {
211
+ obj['layout'] = _ApiClient["default"].convertToType(data['layout'], {
212
+ 'String': Object
213
+ });
214
+ }
184
215
  }
185
216
  return obj;
186
217
  }
@@ -218,6 +249,26 @@ var UpdateTemplateRequest = /*#__PURE__*/function () {
218
249
  throw new Error("Expected the field `redirect_url` to be a primitive type in the JSON string but got " + data['redirect_url']);
219
250
  }
220
251
  // ensure the json data is a string
252
+ if (data['signature_request_from_address'] && !(typeof data['signature_request_from_address'] === 'string' || data['signature_request_from_address'] instanceof String)) {
253
+ throw new Error("Expected the field `signature_request_from_address` to be a primitive type in the JSON string but got " + data['signature_request_from_address']);
254
+ }
255
+ // ensure the json data is a string
256
+ if (data['signature_request_from_name'] && !(typeof data['signature_request_from_name'] === 'string' || data['signature_request_from_name'] instanceof String)) {
257
+ throw new Error("Expected the field `signature_request_from_name` to be a primitive type in the JSON string but got " + data['signature_request_from_name']);
258
+ }
259
+ // ensure the json data is an array
260
+ if (!Array.isArray(data['signature_request_notification_emails'])) {
261
+ throw new Error("Expected the field `signature_request_notification_emails` to be an array in the JSON data but got " + data['signature_request_notification_emails']);
262
+ }
263
+ // ensure the json data is a string
264
+ if (data['signature_request_reply_to'] && !(typeof data['signature_request_reply_to'] === 'string' || data['signature_request_reply_to'] instanceof String)) {
265
+ throw new Error("Expected the field `signature_request_reply_to` to be a primitive type in the JSON string but got " + data['signature_request_reply_to']);
266
+ }
267
+ // ensure the json data is a string
268
+ if (data['signature_request_signing_url'] && !(typeof data['signature_request_signing_url'] === 'string' || data['signature_request_signing_url'] instanceof String)) {
269
+ throw new Error("Expected the field `signature_request_signing_url` to be a primitive type in the JSON string but got " + data['signature_request_signing_url']);
270
+ }
271
+ // ensure the json data is a string
221
272
  if (data['slack_webhook_url'] && !(typeof data['slack_webhook_url'] === 'string' || data['slack_webhook_url'] instanceof String)) {
222
273
  throw new Error("Expected the field `slack_webhook_url` to be a primitive type in the JSON string but got " + data['slack_webhook_url']);
223
274
  }
@@ -326,6 +377,12 @@ UpdateTemplateRequest.prototype['name'] = undefined;
326
377
  */
327
378
  UpdateTemplateRequest.prototype['description'] = undefined;
328
379
 
380
+ /**
381
+ * What each submission makes unless its request sets `output_formats`: `docx` (a Word document), `odt` (an OpenDocument file, converted from the Word document) or `pdf`. A Word template's is chosen when it's created; other templates always make PDFs. A Word template that encrypts its PDFs makes PDFs, because Word documents and OpenDocument files can't be password-protected.
382
+ * @member {module:model/OutputFormat} output_format
383
+ */
384
+ UpdateTemplateRequest.prototype['output_format'] = undefined;
385
+
329
386
  /**
330
387
  * The ID of the folder the template is in. Null for a template at the root. Setting it moves the template and all of its published versions.
331
388
  * @member {String} parent_folder_id
@@ -363,7 +420,7 @@ UpdateTemplateRequest.prototype['allow_additional_properties'] = undefined;
363
420
  UpdateTemplateRequest.prototype['allow_skipping_optional_fields'] = undefined;
364
421
 
365
422
  /**
366
- * The hosted form that /templates/{template_id}/form shows when its URL has no `mode` parameter: `web` (the web form), `visual` (the visual form, where fields are filled in on the PDF) or `dual` (both, in tabs). HTML templates have no visual form, so `web` is the only value they accept.
423
+ * The hosted form that /templates/{template_id}/form shows when its URL has no `mode` parameter: `web` (the web form), `visual` (the visual form, where fields are filled in on the PDF) or `dual` (both, in tabs). Only PDF templates have a visual form, so other templates accept only `web`.
367
424
  * @member {module:model/TemplateFormMode} default_form_mode
368
425
  */
369
426
  UpdateTemplateRequest.prototype['default_form_mode'] = undefined;
@@ -375,7 +432,7 @@ UpdateTemplateRequest.prototype['default_form_mode'] = undefined;
375
432
  UpdateTemplateRequest.prototype['editable_submissions'] = undefined;
376
433
 
377
434
  /**
378
- * The sites that can embed the template's live signature requests and its embedded template editor: a host such as `app.example.com`, with an optional leading wildcard (`*.example.com`), port (`localhost:3000`) or scheme (`https://app.example.com`; without one, `http` and `https` both work). Browsers open a live signature request in a frame only on these sites (and DocSpring's), so with an empty list it can't be embedded anywhere; a test signature request can be embedded on any site. The embedded template editor loads only for a page on one of these sites (by its Referer or Origin header), and on any site when the list is empty. Forms embedded on a page (Visual Forms JS and the simple form) aren't restricted.
435
+ * The sites that can embed the template's live signature requests and its embedded template editor: a host such as `app.example.com`, with an optional leading wildcard (`*.example.com`), port (`localhost:3000`) or scheme (`https://app.example.com`; without one, `http` and `https` both work), without a path. Browsers open a live signature request in a frame only on these sites (and DocSpring's), so with an empty list it can't be embedded anywhere; a test signature request can be embedded on any site. The embedded template editor loads only for a page on one of these sites (by its Referer or Origin header), and on any site when the list is empty. Forms embedded on a page (Visual Forms JS and the simple form) aren't restricted.
379
436
  * @member {Array.<String>} embed_domains
380
437
  */
381
438
  UpdateTemplateRequest.prototype['embed_domains'] = undefined;
@@ -399,7 +456,7 @@ UpdateTemplateRequest.prototype['embed_edit_allow_versioning'] = undefined;
399
456
  UpdateTemplateRequest.prototype['embed_edit_allow_document_replacement'] = undefined;
400
457
 
401
458
  /**
402
- * Encrypt generated PDFs with `encrypt_pdfs_password`.
459
+ * Encrypt generated PDFs with `encrypt_pdfs_password`. A Word template can only encrypt its PDFs when its `output_format` is `pdf`, because Word documents and OpenDocument files can't be password-protected.
403
460
  * @member {Boolean} encrypt_pdfs
404
461
  */
405
462
  UpdateTemplateRequest.prototype['encrypt_pdfs'] = undefined;
@@ -435,7 +492,7 @@ UpdateTemplateRequest.prototype['expiration_interval'] = undefined;
435
492
  UpdateTemplateRequest.prototype['merge_audit_trail_pdf'] = undefined;
436
493
 
437
494
  /**
438
- * Date fields also accept NN/NN/YYYY dates (with slashes, dashes or dots), read in the order of the template's default date format: month first for %m/%d/%Y, day first for %d/%m/%Y. When false, date fields only accept YYYY-MM-DD. Applies to PDF templates: an HTML template's date fields only accept YYYY-MM-DD. Date fields that include a time take RFC 3339 date-times either way.
495
+ * Date fields also accept NN/NN/YYYY dates (with slashes, dashes or dots), read in the order of the template's default date format: month first for %m/%d/%Y, day first for %d/%m/%Y. When false, date fields only accept YYYY-MM-DD. Applies to PDF templates: an HTML or Word template's date fields only accept YYYY-MM-DD. Date fields that include a time take RFC 3339 date-times either way.
439
496
  * @member {Boolean} parse_dates_using_template_date_format
440
497
  */
441
498
  UpdateTemplateRequest.prototype['parse_dates_using_template_date_format'] = undefined;
@@ -458,6 +515,48 @@ UpdateTemplateRequest.prototype['public_web_form'] = undefined;
458
515
  */
459
516
  UpdateTemplateRequest.prototype['redirect_url'] = undefined;
460
517
 
518
+ /**
519
+ * How DocSpring's completed emails send the signed PDF to your signers and CCs: `attachment` (attached, or a download link when it's too big to attach) or `link` (a download link). Null uses your account's rule: a link if your account has signed a BAA, otherwise attached. PDF templates only. A signature request uses the value it had when the request was created.
520
+ * @member {module:model/SignatureRequestEmailAttachments} signature_request_email_attachments
521
+ */
522
+ UpdateTemplateRequest.prototype['signature_request_email_attachments'] = undefined;
523
+
524
+ /**
525
+ * The address DocSpring's emails to your signers come from: an address at one of your verified email domains, on the Growth plan or higher. Null sends them from DocSpring's shared address, with "via DocSpring" after the sender name. PDF templates only.
526
+ * @member {String} signature_request_from_address
527
+ */
528
+ UpdateTemplateRequest.prototype['signature_request_from_address'] = undefined;
529
+
530
+ /**
531
+ * Puts a signing token in `signature_request_signing_url`, as `{{ token_id }}` and `{{ token_secret }}`, so your page can open the signing form without creating a token itself. The email then carries a credential: anyone who has it can open the form and sign. PDF templates only.
532
+ * @member {Boolean} signature_request_include_signing_token
533
+ */
534
+ UpdateTemplateRequest.prototype['signature_request_include_signing_token'] = undefined;
535
+
536
+ /**
537
+ * The sender name on the emails DocSpring sends your signers, as in "Acme via DocSpring". It can't contain an email address, a website or quotes. Null uses your account's name. PDF templates only.
538
+ * @member {String} signature_request_from_name
539
+ */
540
+ UpdateTemplateRequest.prototype['signature_request_from_name'] = undefined;
541
+
542
+ /**
543
+ * Who DocSpring tells when a signature request's document is completed or declined, or an email bounces or can't be sent: members of your DocSpring team or addresses at your verified email domains. Empty means your account's owner. A submission's `notification_emails` replaces them. PDF templates only.
544
+ * @member {Array.<String>} signature_request_notification_emails
545
+ */
546
+ UpdateTemplateRequest.prototype['signature_request_notification_emails'] = undefined;
547
+
548
+ /**
549
+ * Where your signers' replies to DocSpring's emails go: a member of your DocSpring team or an address at one of your verified email domains. Null means your account's owner. A submission's `reply_to` replaces it. PDF templates only.
550
+ * @member {String} signature_request_reply_to
551
+ */
552
+ UpdateTemplateRequest.prototype['signature_request_reply_to'] = undefined;
553
+
554
+ /**
555
+ * A page on your own site that the button in DocSpring's email to a signer opens, instead of DocSpring's signing page: an https URL on one of your verified email domains or a subdomain of one, on the Growth plan or higher. It must include `{{ signature_request_id }}`. Your page authenticates the signer, creates a token for the signature request, and opens the signing form with it. Null links to DocSpring's signing page. PDF templates only.
556
+ * @member {String} signature_request_signing_url
557
+ */
558
+ UpdateTemplateRequest.prototype['signature_request_signing_url'] = undefined;
559
+
461
560
  /**
462
561
  * A Slack incoming webhook URL that is notified about the template's submissions. It's never returned; `has_slack_webhook_url` says if it's set.
463
562
  * @member {String} slack_webhook_url
@@ -495,7 +594,7 @@ UpdateTemplateRequest.prototype['predefined_fields'] = undefined;
495
594
  UpdateTemplateRequest.prototype['predefined_fields_sample_data'] = undefined;
496
595
 
497
596
  /**
498
- * The HTML of an HTML template, as a Liquid template. Null for PDF templates.
597
+ * The HTML of an HTML template, as a Liquid template. Null for other templates.
499
598
  * @member {String} html
500
599
  */
501
600
  UpdateTemplateRequest.prototype['html'] = undefined;
@@ -525,8 +624,14 @@ UpdateTemplateRequest.prototype['footer_html'] = undefined;
525
624
  UpdateTemplateRequest.prototype['html_engine_options'] = undefined;
526
625
 
527
626
  /**
528
- * Whether an HTML template HTML-escapes the values it prints. When true, `{{ value }}` prints a value as text, so a `<` or `&` in it is printed as that character, and `{{ value | raw }}` prints a value as HTML. New HTML templates default to true. Templates created before October 2026, or with API v1, default to false, which prints every value as HTML. Null for PDF templates.
627
+ * Whether an HTML template HTML-escapes the values it prints. When true, `{{ value }}` prints a value as text, so a `<` or `&` in it is printed as that character, and `{{ value | raw }}` prints a value as HTML. New HTML templates default to true. Templates created before October 2026, or with API v1, default to false, which prints every value as HTML. Null for other templates.
529
628
  * @member {Boolean} html_escape_data
530
629
  */
531
630
  UpdateTemplateRequest.prototype['html_escape_data'] = undefined;
631
+
632
+ /**
633
+ * A page design's layout: its page setup, its sections and the elements placed in them, in the Page Designer layout format (https://docspring.com/docs/page-designer/layout-format/). Its JSON Schema is at https://docspring.com/schemas/page-designer/layout.v1.json. Null for other templates. Setting it replaces the whole layout, and DocSpring adds a field for each value it reads. Left out when a page design is created, it starts with an empty page.
634
+ * @member {Object.<String, Object>} layout
635
+ */
636
+ UpdateTemplateRequest.prototype['layout'] = undefined;
532
637
  var _default = exports["default"] = UpdateTemplateRequest;
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
17
17
  * DocSpring API
18
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
18
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
19
19
  *
20
20
  * The version of the OpenAPI document: v2
21
21
  *
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
28
28
  /**
29
29
  * The UpdateWebhookRequest model module.
30
30
  * @module model/UpdateWebhookRequest
31
- * @version 4.2.0
31
+ * @version 4.4.0
32
32
  */
33
33
  var UpdateWebhookRequest = /*#__PURE__*/function () {
34
34
  /**
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
16
16
  * DocSpring API
17
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
17
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
18
18
  *
19
19
  * The version of the OpenAPI document: v2
20
20
  *
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
19
19
  * DocSpring API
20
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
21
21
  *
22
22
  * The version of the OpenAPI document: v2
23
23
  *
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The UploadPresign model module.
32
32
  * @module model/UploadPresign
33
- * @version 4.2.0
33
+ * @version 4.4.0
34
34
  */
35
35
  var UploadPresign = /*#__PURE__*/function () {
36
36
  /**
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
18
18
  * DocSpring API
19
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
19
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
20
20
  *
21
21
  * The version of the OpenAPI document: v2
22
22
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The UrlSourcePdf model module.
31
31
  * @module model/UrlSourcePdf
32
- * @version 4.2.0
32
+ * @version 4.4.0
33
33
  */
34
34
  var UrlSourcePdf = /*#__PURE__*/function () {
35
35
  /**
@@ -8,6 +8,8 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _FieldOverride = _interopRequireDefault(require("./FieldOverride"));
9
9
  var _OutputFormat = _interopRequireDefault(require("./OutputFormat"));
10
10
  var _SignatureRequestInput = _interopRequireDefault(require("./SignatureRequestInput"));
11
+ var _SignatureRequestReminders = _interopRequireDefault(require("./SignatureRequestReminders"));
12
+ var _SigningOrder = _interopRequireDefault(require("./SigningOrder"));
11
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
14
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
15
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -19,7 +21,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
19
21
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
22
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
21
23
  * DocSpring API
22
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
24
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
23
25
  *
24
26
  * The version of the OpenAPI document: v2
25
27
  *
@@ -32,7 +34,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
32
34
  /**
33
35
  * The ValidateSubmissionRequest model module.
34
36
  * @module model/ValidateSubmissionRequest
35
- * @version 4.2.0
37
+ * @version 4.4.0
36
38
  */
37
39
  var ValidateSubmissionRequest = /*#__PURE__*/function () {
38
40
  /**
@@ -105,6 +107,33 @@ var ValidateSubmissionRequest = /*#__PURE__*/function () {
105
107
  if (data.hasOwnProperty('signature_requests')) {
106
108
  obj['signature_requests'] = _ApiClient["default"].convertToType(data['signature_requests'], [_SignatureRequestInput["default"]]);
107
109
  }
110
+ if (data.hasOwnProperty('send_email')) {
111
+ obj['send_email'] = _ApiClient["default"].convertToType(data['send_email'], 'Boolean');
112
+ }
113
+ if (data.hasOwnProperty('signing_order')) {
114
+ obj['signing_order'] = _ApiClient["default"].convertToType(data['signing_order'], _SigningOrder["default"]);
115
+ }
116
+ if (data.hasOwnProperty('email_subject')) {
117
+ obj['email_subject'] = _ApiClient["default"].convertToType(data['email_subject'], 'String');
118
+ }
119
+ if (data.hasOwnProperty('email_message')) {
120
+ obj['email_message'] = _ApiClient["default"].convertToType(data['email_message'], 'String');
121
+ }
122
+ if (data.hasOwnProperty('cc')) {
123
+ obj['cc'] = _ApiClient["default"].convertToType(data['cc'], ['String']);
124
+ }
125
+ if (data.hasOwnProperty('reply_to')) {
126
+ obj['reply_to'] = _ApiClient["default"].convertToType(data['reply_to'], 'String');
127
+ }
128
+ if (data.hasOwnProperty('notification_emails')) {
129
+ obj['notification_emails'] = _ApiClient["default"].convertToType(data['notification_emails'], ['String']);
130
+ }
131
+ if (data.hasOwnProperty('notify_when_signed')) {
132
+ obj['notify_when_signed'] = _ApiClient["default"].convertToType(data['notify_when_signed'], 'Boolean');
133
+ }
134
+ if (data.hasOwnProperty('reminders')) {
135
+ obj['reminders'] = _ApiClient["default"].convertToType(data['reminders'], _SignatureRequestReminders["default"]);
136
+ }
108
137
  }
109
138
  return obj;
110
139
  }
@@ -154,12 +183,37 @@ var ValidateSubmissionRequest = /*#__PURE__*/function () {
154
183
  }
155
184
  ;
156
185
  }
186
+ // ensure the json data is a string
187
+ if (data['email_subject'] && !(typeof data['email_subject'] === 'string' || data['email_subject'] instanceof String)) {
188
+ throw new Error("Expected the field `email_subject` to be a primitive type in the JSON string but got " + data['email_subject']);
189
+ }
190
+ // ensure the json data is a string
191
+ if (data['email_message'] && !(typeof data['email_message'] === 'string' || data['email_message'] instanceof String)) {
192
+ throw new Error("Expected the field `email_message` to be a primitive type in the JSON string but got " + data['email_message']);
193
+ }
194
+ // ensure the json data is an array
195
+ if (!Array.isArray(data['cc'])) {
196
+ throw new Error("Expected the field `cc` to be an array in the JSON data but got " + data['cc']);
197
+ }
198
+ // ensure the json data is a string
199
+ if (data['reply_to'] && !(typeof data['reply_to'] === 'string' || data['reply_to'] instanceof String)) {
200
+ throw new Error("Expected the field `reply_to` to be a primitive type in the JSON string but got " + data['reply_to']);
201
+ }
202
+ // ensure the json data is an array
203
+ if (!Array.isArray(data['notification_emails'])) {
204
+ throw new Error("Expected the field `notification_emails` to be an array in the JSON data but got " + data['notification_emails']);
205
+ }
206
+ // validate the optional field `reminders`
207
+ if (data['reminders']) {
208
+ // data not null
209
+ _SignatureRequestReminders["default"].validateJSON(data['reminders']);
210
+ }
157
211
  return true;
158
212
  }
159
213
  }]);
160
214
  }();
161
215
  /**
162
- * Test PDFs have a watermark and are free. Live PDFs use credits. Submissions made with a test API token are always test submissions.
216
+ * Test PDFs have a watermark and are free. Live PDFs use credits. Submissions made with a test API token are always test submissions, and the demo API token's are always live.
163
217
  * @member {Boolean} test
164
218
  */
165
219
  ValidateSubmissionRequest.prototype['test'] = undefined;
@@ -171,7 +225,7 @@ ValidateSubmissionRequest.prototype['test'] = undefined;
171
225
  ValidateSubmissionRequest.prototype['editable'] = undefined;
172
226
 
173
227
  /**
174
- * The values of the template's fields, by field name. Required for a PDF template, unless `signature_requests` collects the values.
228
+ * The values of the template's fields, by field name. Required for PDF templates, Word templates and page designs, unless `signature_requests` collects them (PDF templates only).
175
229
  * @member {Object.<String, Object>} data
176
230
  */
177
231
  ValidateSubmissionRequest.prototype['data'] = undefined;
@@ -183,19 +237,19 @@ ValidateSubmissionRequest.prototype['data'] = undefined;
183
237
  ValidateSubmissionRequest.prototype['metadata'] = undefined;
184
238
 
185
239
  /**
186
- * A password that the PDF needs to be opened with. It's never returned; `has_password` says if it's set.
240
+ * A password that the PDF needs to be opened with. It's never returned; `has_password` says if it's set. Word documents and OpenDocument files can't be password-protected, so a submission with a password can't make them.
187
241
  * @member {String} password
188
242
  */
189
243
  ValidateSubmissionRequest.prototype['password'] = undefined;
190
244
 
191
245
  /**
192
- * What the submission makes: `pdf`, and `png` (an image of each page of the PDF, up to 100 pages) when you ask for it. Default `["pdf"]`. POST /submissions/{submission_id}/generate_files adds `png` to a processed submission.
246
+ * What the submission makes: `pdf`, `docx` (a Word document, from a Word template), `odt` (an OpenDocument file, the format LibreOffice uses, converted from a Word template's Word document), and `png` (an image of each page of the PDF, up to 100 pages, which adds `pdf`) when you ask for it. Default `["pdf"]`, or a Word template's `output_format`. POST /submissions/{submission_id}/generate_files adds `png`, and a Word template's submission's `pdf`, `docx` or `odt`, to a processed submission.
193
247
  * @member {Array.<module:model/OutputFormat>} output_formats
194
248
  */
195
249
  ValidateSubmissionRequest.prototype['output_formats'] = undefined;
196
250
 
197
251
  /**
198
- * Seconds after the PDF is generated until the submission expires, up to 10 years (315360000). Default the template's expiration setting. A submission that isn't processed, such as one with invalid data, is kept for at least 48 hours.
252
+ * Seconds after the PDF is generated until the submission expires, up to 10 years (315360000). Default the template's expiration setting. A submission that isn't processed, such as one with invalid data, is kept for at least 48 hours. The demo API token's submissions expire within an hour: up to 3600, and that's their default.
199
253
  * @member {Number} expires_in
200
254
  */
201
255
  ValidateSubmissionRequest.prototype['expires_in'] = undefined;
@@ -223,4 +277,58 @@ ValidateSubmissionRequest.prototype['css'] = undefined;
223
277
  * @member {Array.<module:model/SignatureRequestInput>} signature_requests
224
278
  */
225
279
  ValidateSubmissionRequest.prototype['signature_requests'] = undefined;
280
+
281
+ /**
282
+ * Whether DocSpring emails the signers their signing links, and sends the reminders and the completed document. Default true. Each signature request's own `send_email` overrides it. A test submission only emails your DocSpring team: every other address is a 422. `true` needs `signature_requests`. DocSpring doesn't email the signers of a form library template: leave `send_email` out, and send them their links yourself.
283
+ * @member {Boolean} send_email
284
+ */
285
+ ValidateSubmissionRequest.prototype['send_email'] = undefined;
286
+
287
+ /**
288
+ * `parallel` (the default): everyone can sign at once. `sequential`: people sign one step at a time (`signing_step`), and DocSpring emails each step when the one before it is done. Needs `signature_requests`.
289
+ * @member {module:model/SigningOrder} signing_order
290
+ */
291
+ ValidateSubmissionRequest.prototype['signing_order'] = undefined;
292
+
293
+ /**
294
+ * The subject of the emails that ask people to sign. You can use `{{ signer.name }}`, `{{ signer.email }}`, `{{ document.name }}`, `{{ sender.name }}` and `{{ account.name }}`. Default "<sender> sent you <document> to sign" when you leave it out (a blank subject is a 422). Links and web addresses are shown as plain text (`example[.]com`).
295
+ * @member {String} email_subject
296
+ */
297
+ ValidateSubmissionRequest.prototype['email_subject'] = undefined;
298
+
299
+ /**
300
+ * A message for the people who sign, shown above the signing button. It takes the same variables as `email_subject`. Links and web addresses are shown as plain text. Leave it out for none: a blank message is a 422.
301
+ * @member {String} email_message
302
+ */
303
+ ValidateSubmissionRequest.prototype['email_message'] = undefined;
304
+
305
+ /**
306
+ * People who get a copy of the completed document. They don't sign.
307
+ * @member {Array.<String>} cc
308
+ */
309
+ ValidateSubmissionRequest.prototype['cc'] = undefined;
310
+
311
+ /**
312
+ * Where replies to the emails go: a member of your DocSpring team, or an address at one of your verified email domains. Leave it out for the template's reply-to address (the account owner when it has none).
313
+ * @member {String} reply_to
314
+ */
315
+ ValidateSubmissionRequest.prototype['reply_to'] = undefined;
316
+
317
+ /**
318
+ * Who DocSpring tells when the document is completed or declined, or an email bounces or can't be sent: members of your DocSpring team or addresses at your verified email domains. Leave it out for the template's notification addresses (the account owner when it has none); an empty list means the account owner.
319
+ * @member {Array.<String>} notification_emails
320
+ */
321
+ ValidateSubmissionRequest.prototype['notification_emails'] = undefined;
322
+
323
+ /**
324
+ * Also email `notification_emails` each time someone signs. Default false.
325
+ * @member {Boolean} notify_when_signed
326
+ */
327
+ ValidateSubmissionRequest.prototype['notify_when_signed'] = undefined;
328
+
329
+ /**
330
+ * Remind people who haven't signed: every `interval_days` days, up to `max_count` times. Each reminder has a new signing link. Without it, DocSpring sends no reminders.
331
+ * @member {module:model/SignatureRequestReminders} reminders
332
+ */
333
+ ValidateSubmissionRequest.prototype['reminders'] = undefined;
226
334
  var _default = exports["default"] = ValidateSubmissionRequest;
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
20
20
  * DocSpring API
21
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
21
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
22
22
  *
23
23
  * The version of the OpenAPI document: v2
24
24
  *
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
31
31
  /**
32
32
  * The Webhook model module.
33
33
  * @module model/Webhook
34
- * @version 4.2.0
34
+ * @version 4.4.0
35
35
  */
36
36
  var Webhook = /*#__PURE__*/function () {
37
37
  /**
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
16
16
  * DocSpring API
17
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
17
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
18
18
  *
19
19
  * The version of the OpenAPI document: v2
20
20
  *
@@ -62,6 +62,11 @@ _defineProperty(WebhookEventType, "submission.failed", "submission.failed");
62
62
  * @const
63
63
  */
64
64
  _defineProperty(WebhookEventType, "submission.declined", "submission.declined");
65
+ /**
66
+ * value: "signature_request.sent"
67
+ * @const
68
+ */
69
+ _defineProperty(WebhookEventType, "signature_request.sent", "signature_request.sent");
65
70
  /**
66
71
  * value: "signature_request.viewed"
67
72
  * @const
@@ -77,6 +82,11 @@ _defineProperty(WebhookEventType, "signature_request.completed", "signature_requ
77
82
  * @const
78
83
  */
79
84
  _defineProperty(WebhookEventType, "signature_request.declined", "signature_request.declined");
85
+ /**
86
+ * value: "signature_request.email_bounced"
87
+ * @const
88
+ */
89
+ _defineProperty(WebhookEventType, "signature_request.email_bounced", "signature_request.email_bounced");
80
90
  /**
81
91
  * value: "combined_pdf.processed"
82
92
  * @const
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
19
19
  * DocSpring API
20
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
21
21
  *
22
22
  * The version of the OpenAPI document: v2
23
23
  *
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The WebhookList model module.
32
32
  * @module model/WebhookList
33
- * @version 4.2.0
33
+ * @version 4.4.0
34
34
  */
35
35
  var WebhookList = /*#__PURE__*/function () {
36
36
  /**
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
16
16
  * DocSpring API
17
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
17
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
18
18
  *
19
19
  * The version of the OpenAPI document: v2
20
20
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docspring",
3
- "version": "4.2.0",
4
- "description": "An API client for the DocSpring PDF generation service",
3
+ "version": "4.4.0",
4
+ "description": "An API client for DocSpring: fill PDF forms, generate PDFs and Word documents, and collect e-signatures",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {