docspring 4.3.0 → 4.5.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 (145) hide show
  1. package/AGENTS.md +2 -0
  2. package/LICENSE +1 -1
  3. package/README.md +23 -1
  4. package/dist/ApiClient.js +2 -2
  5. package/dist/RequestSchemas.js +1212 -132
  6. package/dist/RequestValidator.js +4 -0
  7. package/dist/api/Client.js +1364 -207
  8. package/dist/index.js +210 -0
  9. package/dist/model/AddTemplateFieldsRequest.js +3 -3
  10. package/dist/model/AuthenticationCheck.js +1 -1
  11. package/dist/model/CombinedPdf.js +1 -1
  12. package/dist/model/CombinedPdfFiles.js +1 -1
  13. package/dist/model/CombinedPdfList.js +1 -1
  14. package/dist/model/CombinedPdfSource.js +2 -2
  15. package/dist/model/CombinedPdfSourceInput.js +2 -2
  16. package/dist/model/CombinedPdfSourcePdf.js +1 -1
  17. package/dist/model/CopyTemplateRequest.js +1 -1
  18. package/dist/model/CreateAccountEmailActionRequest.js +306 -0
  19. package/dist/model/CreateCombinedPdfRequest.js +1 -1
  20. package/dist/model/CreateCustomFileFromUploadRequest.js +1 -1
  21. package/dist/model/CreateEmailActionRequest.js +280 -0
  22. package/dist/model/CreateEmailDomainRequest.js +114 -0
  23. package/dist/model/CreateFolderRequest.js +1 -1
  24. package/dist/model/CreateSignatureRequestEventRequest.js +1 -1
  25. package/dist/model/CreateSignatureRequestTokenRequest.js +1 -1
  26. package/dist/model/CreateSubmissionBatchRequest.js +4 -4
  27. package/dist/model/CreateSubmissionRequest.js +114 -6
  28. package/dist/model/CreateTemplatePreviewRequest.js +1 -1
  29. package/dist/model/CreateTemplateRequest.js +148 -9
  30. package/dist/model/CreateWebhookRequest.js +1 -1
  31. package/dist/model/CustomFile.js +1 -1
  32. package/dist/model/CustomFileList.js +1 -1
  33. package/dist/model/CustomFileSourcePdf.js +1 -1
  34. package/dist/model/DnsRecordType.js +64 -0
  35. package/dist/model/EmailAction.js +510 -0
  36. package/dist/model/EmailActionConditions.js +142 -0
  37. package/dist/model/EmailActionConditionsInput.js +142 -0
  38. package/dist/model/EmailActionCustomization.js +222 -0
  39. package/dist/model/EmailActionDelivery.js +59 -0
  40. package/dist/model/EmailActionFileFormats.js +69 -0
  41. package/dist/model/EmailActionList.js +132 -0
  42. package/dist/model/EmailActionSetting.js +119 -0
  43. package/dist/model/EmailActionSubmissionType.js +64 -0
  44. package/dist/model/EmailActionTestEmail.js +116 -0
  45. package/dist/model/EmailDomain.js +245 -0
  46. package/dist/model/EmailDomainDnsRecord.js +155 -0
  47. package/dist/model/EmailDomainDnsRecordPurpose.js +64 -0
  48. package/dist/model/EmailDomainList.js +132 -0
  49. package/dist/model/EmailDomainRecordState.js +64 -0
  50. package/dist/model/EmailDomainState.js +64 -0
  51. package/dist/model/ErrorCode.js +10 -0
  52. package/dist/model/ErrorDetail.js +1 -1
  53. package/dist/model/ErrorInfo.js +72 -7
  54. package/dist/model/ErrorResponse.js +1 -1
  55. package/dist/model/Field.js +3 -3
  56. package/dist/model/FieldComparisonCondition.js +1 -1
  57. package/dist/model/FieldDependency.js +1 -1
  58. package/dist/model/FieldDependencyInput.js +1 -1
  59. package/dist/model/FieldEqualsCondition.js +1 -1
  60. package/dist/model/FieldGroup.js +1 -1
  61. package/dist/model/FieldGroupInput.js +1 -1
  62. package/dist/model/FieldInCondition.js +1 -1
  63. package/dist/model/FieldInput.js +2 -2
  64. package/dist/model/FieldOverride.js +1 -1
  65. package/dist/model/FieldPresenceCondition.js +1 -1
  66. package/dist/model/FieldRangeCondition.js +1 -1
  67. package/dist/model/Folder.js +1 -1
  68. package/dist/model/FolderList.js +1 -1
  69. package/dist/model/GenerateSubmissionFilesRequest.js +1 -1
  70. package/dist/model/GeneratedFile.js +1 -1
  71. package/dist/model/HtmlEngineOptions.js +9 -9
  72. package/dist/model/HtmlEngineOptionsInput.js +6 -6
  73. package/dist/model/MoveFolderRequest.js +1 -1
  74. package/dist/model/MoveTemplateRequest.js +1 -1
  75. package/dist/model/PageImage.js +1 -1
  76. package/dist/model/PageImages.js +1 -1
  77. package/dist/model/PredefinedField.js +1 -1
  78. package/dist/model/PredefinedFieldInput.js +1 -1
  79. package/dist/model/PublishTemplateVersionRequest.js +1 -1
  80. package/dist/model/RemoveTemplateFieldsRequest.js +1 -1
  81. package/dist/model/RenameFolderRequest.js +1 -1
  82. package/dist/model/ReorderTemplateFieldsRequest.js +1 -1
  83. package/dist/model/RestoreTemplateVersionRequest.js +1 -1
  84. package/dist/model/SendAccountEmailActionTestEmailRequest.js +91 -0
  85. package/dist/model/SignatureRequest.js +52 -7
  86. package/dist/model/SignatureRequestEmailAttachments.js +59 -0
  87. package/dist/model/SignatureRequestEmailStatus.js +89 -0
  88. package/dist/model/SignatureRequestEvent.js +1 -1
  89. package/dist/model/SignatureRequestEventType.js +11 -1
  90. package/dist/model/SignatureRequestInput.js +24 -8
  91. package/dist/model/SignatureRequestReminders.js +121 -0
  92. package/dist/model/SignatureRequestToken.js +1 -1
  93. package/dist/model/SigningOrder.js +59 -0
  94. package/dist/model/StringConditionType.js +36 -1
  95. package/dist/model/Submission.js +21 -9
  96. package/dist/model/SubmissionAction.js +27 -12
  97. package/dist/model/SubmissionBatch.js +1 -1
  98. package/dist/model/SubmissionFiles.js +1 -1
  99. package/dist/model/SubmissionInput.js +5 -5
  100. package/dist/model/SubmissionList.js +1 -1
  101. package/dist/model/SubmissionSourcePdf.js +1 -1
  102. package/dist/model/SubmissionSummary.js +3 -3
  103. package/dist/model/SubmissionValidation.js +1 -1
  104. package/dist/model/Template.js +189 -21
  105. package/dist/model/TemplateActor.js +1 -1
  106. package/dist/model/TemplateDefaults.js +1 -1
  107. package/dist/model/TemplateDefaultsInput.js +1 -1
  108. package/dist/model/TemplateDiff.js +1 -1
  109. package/dist/model/TemplateDiffSummary.js +1 -1
  110. package/dist/model/TemplateDocument.js +1 -1
  111. package/dist/model/TemplateDocumentSummary.js +1 -1
  112. package/dist/model/TemplateFieldChange.js +1 -1
  113. package/dist/model/TemplateFieldChanges.js +1 -1
  114. package/dist/model/TemplateFieldDependency.js +1 -1
  115. package/dist/model/TemplateFieldDependencyCondition.js +1 -1
  116. package/dist/model/TemplateFieldDependencyConditionInput.js +1 -1
  117. package/dist/model/TemplateFieldDependencyInput.js +1 -1
  118. package/dist/model/TemplateFieldMove.js +1 -1
  119. package/dist/model/TemplateFields.js +1 -1
  120. package/dist/model/TemplateFormSection.js +161 -0
  121. package/dist/model/TemplateFormSectionInput.js +157 -0
  122. package/dist/model/TemplateModelCode.js +1 -1
  123. package/dist/model/TemplatePageImages.js +1 -1
  124. package/dist/model/TemplatePageProcessingStatus.js +1 -1
  125. package/dist/model/TemplatePreview.js +1 -1
  126. package/dist/model/TemplateSourcePdf.js +2 -2
  127. package/dist/model/TemplateSummary.js +9 -9
  128. package/dist/model/TemplateSummaryList.js +1 -1
  129. package/dist/model/TemplateType.js +6 -1
  130. package/dist/model/TemplateVersion.js +1 -1
  131. package/dist/model/UpdateAccountEmailActionRequest.js +306 -0
  132. package/dist/model/UpdateEmailActionCustomizationRequest.js +258 -0
  133. package/dist/model/UpdateEmailActionRequest.js +280 -0
  134. package/dist/model/UpdateSignatureRequestRequest.js +1 -1
  135. package/dist/model/UpdateTemplateDocumentRequest.js +2 -2
  136. package/dist/model/UpdateTemplateFieldsRequest.js +1 -1
  137. package/dist/model/UpdateTemplateRequest.js +173 -12
  138. package/dist/model/UpdateWebhookRequest.js +1 -1
  139. package/dist/model/UploadPresign.js +1 -1
  140. package/dist/model/UrlSourcePdf.js +1 -1
  141. package/dist/model/ValidateSubmissionRequest.js +114 -6
  142. package/dist/model/Webhook.js +1 -1
  143. package/dist/model/WebhookEventType.js +10 -0
  144. package/dist/model/WebhookList.js +1 -1
  145. package/package.json +1 -1
@@ -13,6 +13,7 @@ var _FieldSetupSource = _interopRequireDefault(require("./FieldSetupSource"));
13
13
  var _HtmlEngineOptionsInput = _interopRequireDefault(require("./HtmlEngineOptionsInput"));
14
14
  var _OutputFormat = _interopRequireDefault(require("./OutputFormat"));
15
15
  var _PredefinedFieldInput = _interopRequireDefault(require("./PredefinedFieldInput"));
16
+ var _SignatureRequestEmailAttachments = _interopRequireDefault(require("./SignatureRequestEmailAttachments"));
16
17
  var _TemplateDefaultsInput = _interopRequireDefault(require("./TemplateDefaultsInput"));
17
18
  var _TemplateFieldDependencyInput = _interopRequireDefault(require("./TemplateFieldDependencyInput"));
18
19
  var _TemplateFormMode = _interopRequireDefault(require("./TemplateFormMode"));
@@ -41,14 +42,14 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
41
42
  /**
42
43
  * The CreateTemplateRequest model module.
43
44
  * @module model/CreateTemplateRequest
44
- * @version 4.3.0
45
+ * @version 4.5.0
45
46
  */
46
47
  var CreateTemplateRequest = /*#__PURE__*/function () {
47
48
  /**
48
49
  * Constructs a new <code>CreateTemplateRequest</code>.
49
50
  * The template to create.
50
51
  * @alias module:model/CreateTemplateRequest
51
- * @param template_type {module:model/TemplateType} `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. It can't be changed after the template is created.
52
+ * @param template_type {module:model/TemplateType} `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. `page_designer`: a page design, a PDF laid out in the Page Designer from its `layout`. It can't be changed after the template is created.
52
53
  */
53
54
  function CreateTemplateRequest(template_type) {
54
55
  _classCallCheck(this, CreateTemplateRequest);
@@ -156,6 +157,36 @@ var CreateTemplateRequest = /*#__PURE__*/function () {
156
157
  if (data.hasOwnProperty('redirect_url')) {
157
158
  obj['redirect_url'] = _ApiClient["default"].convertToType(data['redirect_url'], 'String');
158
159
  }
160
+ if (data.hasOwnProperty('signature_request_email_attachments')) {
161
+ obj['signature_request_email_attachments'] = _ApiClient["default"].convertToType(data['signature_request_email_attachments'], _SignatureRequestEmailAttachments["default"]);
162
+ }
163
+ if (data.hasOwnProperty('signature_request_from_address')) {
164
+ obj['signature_request_from_address'] = _ApiClient["default"].convertToType(data['signature_request_from_address'], 'String');
165
+ }
166
+ if (data.hasOwnProperty('signature_request_include_signing_token')) {
167
+ obj['signature_request_include_signing_token'] = _ApiClient["default"].convertToType(data['signature_request_include_signing_token'], 'Boolean');
168
+ }
169
+ if (data.hasOwnProperty('signature_request_from_name')) {
170
+ obj['signature_request_from_name'] = _ApiClient["default"].convertToType(data['signature_request_from_name'], 'String');
171
+ }
172
+ if (data.hasOwnProperty('signature_request_notification_emails')) {
173
+ obj['signature_request_notification_emails'] = _ApiClient["default"].convertToType(data['signature_request_notification_emails'], ['String']);
174
+ }
175
+ if (data.hasOwnProperty('signature_request_reply_to')) {
176
+ obj['signature_request_reply_to'] = _ApiClient["default"].convertToType(data['signature_request_reply_to'], 'String');
177
+ }
178
+ if (data.hasOwnProperty('signature_request_signing_url')) {
179
+ obj['signature_request_signing_url'] = _ApiClient["default"].convertToType(data['signature_request_signing_url'], 'String');
180
+ }
181
+ if (data.hasOwnProperty('success_title')) {
182
+ obj['success_title'] = _ApiClient["default"].convertToType(data['success_title'], 'String');
183
+ }
184
+ if (data.hasOwnProperty('success_message')) {
185
+ obj['success_message'] = _ApiClient["default"].convertToType(data['success_message'], 'String');
186
+ }
187
+ if (data.hasOwnProperty('show_fill_again_button')) {
188
+ obj['show_fill_again_button'] = _ApiClient["default"].convertToType(data['show_fill_again_button'], 'Boolean');
189
+ }
159
190
  if (data.hasOwnProperty('slack_webhook_url')) {
160
191
  obj['slack_webhook_url'] = _ApiClient["default"].convertToType(data['slack_webhook_url'], 'String');
161
192
  }
@@ -191,6 +222,11 @@ var CreateTemplateRequest = /*#__PURE__*/function () {
191
222
  if (data.hasOwnProperty('html_escape_data')) {
192
223
  obj['html_escape_data'] = _ApiClient["default"].convertToType(data['html_escape_data'], 'Boolean');
193
224
  }
225
+ if (data.hasOwnProperty('layout')) {
226
+ obj['layout'] = _ApiClient["default"].convertToType(data['layout'], {
227
+ 'String': Object
228
+ });
229
+ }
194
230
  if (data.hasOwnProperty('cache_id')) {
195
231
  obj['cache_id'] = _ApiClient["default"].convertToType(data['cache_id'], 'String');
196
232
  }
@@ -215,6 +251,9 @@ var CreateTemplateRequest = /*#__PURE__*/function () {
215
251
  if (data.hasOwnProperty('field_logic')) {
216
252
  obj['field_logic'] = _ApiClient["default"].convertToType(data['field_logic'], _FieldSetupLogic["default"]);
217
253
  }
254
+ if (data.hasOwnProperty('include_office_use_fields')) {
255
+ obj['include_office_use_fields'] = _ApiClient["default"].convertToType(data['include_office_use_fields'], 'Boolean');
256
+ }
218
257
  }
219
258
  return obj;
220
259
  }
@@ -267,6 +306,34 @@ var CreateTemplateRequest = /*#__PURE__*/function () {
267
306
  throw new Error("Expected the field `redirect_url` to be a primitive type in the JSON string but got " + data['redirect_url']);
268
307
  }
269
308
  // ensure the json data is a string
309
+ if (data['signature_request_from_address'] && !(typeof data['signature_request_from_address'] === 'string' || data['signature_request_from_address'] instanceof String)) {
310
+ 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']);
311
+ }
312
+ // ensure the json data is a string
313
+ if (data['signature_request_from_name'] && !(typeof data['signature_request_from_name'] === 'string' || data['signature_request_from_name'] instanceof String)) {
314
+ 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']);
315
+ }
316
+ // ensure the json data is an array
317
+ if (!Array.isArray(data['signature_request_notification_emails'])) {
318
+ 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']);
319
+ }
320
+ // ensure the json data is a string
321
+ if (data['signature_request_reply_to'] && !(typeof data['signature_request_reply_to'] === 'string' || data['signature_request_reply_to'] instanceof String)) {
322
+ 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']);
323
+ }
324
+ // ensure the json data is a string
325
+ if (data['signature_request_signing_url'] && !(typeof data['signature_request_signing_url'] === 'string' || data['signature_request_signing_url'] instanceof String)) {
326
+ 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']);
327
+ }
328
+ // ensure the json data is a string
329
+ if (data['success_title'] && !(typeof data['success_title'] === 'string' || data['success_title'] instanceof String)) {
330
+ throw new Error("Expected the field `success_title` to be a primitive type in the JSON string but got " + data['success_title']);
331
+ }
332
+ // ensure the json data is a string
333
+ if (data['success_message'] && !(typeof data['success_message'] === 'string' || data['success_message'] instanceof String)) {
334
+ throw new Error("Expected the field `success_message` to be a primitive type in the JSON string but got " + data['success_message']);
335
+ }
336
+ // ensure the json data is a string
270
337
  if (data['slack_webhook_url'] && !(typeof data['slack_webhook_url'] === 'string' || data['slack_webhook_url'] instanceof String)) {
271
338
  throw new Error("Expected the field `slack_webhook_url` to be a primitive type in the JSON string but got " + data['slack_webhook_url']);
272
339
  }
@@ -373,13 +440,13 @@ CreateTemplateRequest.prototype['name'] = undefined;
373
440
  CreateTemplateRequest.prototype['description'] = undefined;
374
441
 
375
442
  /**
376
- * `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. It can't be changed after the template is created.
443
+ * `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. `page_designer`: a page design, a PDF laid out in the Page Designer from its `layout`. It can't be changed after the template is created.
377
444
  * @member {module:model/TemplateType} template_type
378
445
  */
379
446
  CreateTemplateRequest.prototype['template_type'] = undefined;
380
447
 
381
448
  /**
382
- * 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; PDF and HTML templates always make PDFs. A Word template that encrypts its PDFs makes PDFs, because Word documents and OpenDocument files can't be password-protected.
449
+ * 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.
383
450
  * @member {module:model/OutputFormat} output_format
384
451
  */
385
452
  CreateTemplateRequest.prototype['output_format'] = undefined;
@@ -433,7 +500,7 @@ CreateTemplateRequest.prototype['default_form_mode'] = undefined;
433
500
  CreateTemplateRequest.prototype['editable_submissions'] = undefined;
434
501
 
435
502
  /**
436
- * 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.
503
+ * 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. Each one is stored in lowercase, without a trailing slash. 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 Web Forms JS) aren't restricted.
437
504
  * @member {Array.<String>} embed_domains
438
505
  */
439
506
  CreateTemplateRequest.prototype['embed_domains'] = undefined;
@@ -511,11 +578,71 @@ CreateTemplateRequest.prototype['public_submissions'] = undefined;
511
578
  CreateTemplateRequest.prototype['public_web_form'] = undefined;
512
579
 
513
580
  /**
514
- * Where the web form sends people after they submit it.
581
+ * Where the web form sends people after they submit it, instead of showing its success screen. After its `?` or `#`, it can have variables such as `{{ data.first_name }}`, which the form fills in with what they submitted.
515
582
  * @member {String} redirect_url
516
583
  */
517
584
  CreateTemplateRequest.prototype['redirect_url'] = undefined;
518
585
 
586
+ /**
587
+ * 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.
588
+ * @member {module:model/SignatureRequestEmailAttachments} signature_request_email_attachments
589
+ */
590
+ CreateTemplateRequest.prototype['signature_request_email_attachments'] = undefined;
591
+
592
+ /**
593
+ * 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.
594
+ * @member {String} signature_request_from_address
595
+ */
596
+ CreateTemplateRequest.prototype['signature_request_from_address'] = undefined;
597
+
598
+ /**
599
+ * 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.
600
+ * @member {Boolean} signature_request_include_signing_token
601
+ */
602
+ CreateTemplateRequest.prototype['signature_request_include_signing_token'] = undefined;
603
+
604
+ /**
605
+ * 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.
606
+ * @member {String} signature_request_from_name
607
+ */
608
+ CreateTemplateRequest.prototype['signature_request_from_name'] = undefined;
609
+
610
+ /**
611
+ * 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.
612
+ * @member {Array.<String>} signature_request_notification_emails
613
+ */
614
+ CreateTemplateRequest.prototype['signature_request_notification_emails'] = undefined;
615
+
616
+ /**
617
+ * 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.
618
+ * @member {String} signature_request_reply_to
619
+ */
620
+ CreateTemplateRequest.prototype['signature_request_reply_to'] = undefined;
621
+
622
+ /**
623
+ * 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.
624
+ * @member {String} signature_request_signing_url
625
+ */
626
+ CreateTemplateRequest.prototype['signature_request_signing_url'] = undefined;
627
+
628
+ /**
629
+ * The title of the web form's success screen. When it's null or empty, the screen says "Thanks for filling out" and the template's name. It can have variables such as `{{ data.first_name }}`.
630
+ * @member {String} success_title
631
+ */
632
+ CreateTemplateRequest.prototype['success_title'] = undefined;
633
+
634
+ /**
635
+ * A message under the title of the web form's success screen, as plain text. Line breaks show, and web addresses become links. It can have variables such as `{{ data.first_name }}`.
636
+ * @member {String} success_message
637
+ */
638
+ CreateTemplateRequest.prototype['success_message'] = undefined;
639
+
640
+ /**
641
+ * Whether the web form's success screen has a "Fill out again" button, which clears the form so someone can fill it in again.
642
+ * @member {Boolean} show_fill_again_button
643
+ */
644
+ CreateTemplateRequest.prototype['show_fill_again_button'] = undefined;
645
+
519
646
  /**
520
647
  * 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.
521
648
  * @member {String} slack_webhook_url
@@ -547,7 +674,7 @@ CreateTemplateRequest.prototype['predefined_fields'] = undefined;
547
674
  CreateTemplateRequest.prototype['predefined_fields_sample_data'] = undefined;
548
675
 
549
676
  /**
550
- * The HTML of an HTML template, as a Liquid template. Null for PDF and Word templates.
677
+ * The HTML of an HTML template, as a Liquid template. Null for other templates.
551
678
  * @member {String} html
552
679
  */
553
680
  CreateTemplateRequest.prototype['html'] = undefined;
@@ -577,11 +704,17 @@ CreateTemplateRequest.prototype['footer_html'] = undefined;
577
704
  CreateTemplateRequest.prototype['html_engine_options'] = undefined;
578
705
 
579
706
  /**
580
- * 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.
707
+ * 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.
581
708
  * @member {Boolean} html_escape_data
582
709
  */
583
710
  CreateTemplateRequest.prototype['html_escape_data'] = undefined;
584
711
 
712
+ /**
713
+ * 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.
714
+ * @member {Object.<String, Object>} layout
715
+ */
716
+ CreateTemplateRequest.prototype['layout'] = undefined;
717
+
585
718
  /**
586
719
  * The template's document, a PDF or a Word document (.docx or .odt): the `fields.key` of a file you uploaded with the presigned upload (GET /uploads/presign). PDF and Word templates need one of `cache_id`, `document_url` and `document_base64`. To upload the file with the request, use POST /templates/upload.
587
720
  * @member {String} cache_id
@@ -595,7 +728,7 @@ CreateTemplateRequest.prototype['cache_id'] = undefined;
595
728
  CreateTemplateRequest.prototype['document_url'] = undefined;
596
729
 
597
730
  /**
598
- * The template's document (a PDF, or a Word template's Word document), encoded as base64 (a `data:` URI works too), instead of `cache_id`. Up to 7 MB before it's encoded: send a larger file with `cache_id` or `document_url`.
731
+ * The template's document (a PDF, or a Word template's Word document), encoded as base64 (a `data:` URI works too), instead of `cache_id`. Line breaks and spaces in it are ignored. Up to 7 MB before it's encoded: send a larger file with `cache_id` or `document_url`.
599
732
  * @member {String} document_base64
600
733
  */
601
734
  CreateTemplateRequest.prototype['document_base64'] = undefined;
@@ -629,4 +762,10 @@ CreateTemplateRequest.prototype['field_naming'] = undefined;
629
762
  * @member {module:model/FieldSetupLogic} field_logic
630
763
  */
631
764
  CreateTemplateRequest.prototype['field_logic'] = undefined;
765
+
766
+ /**
767
+ * With `detect_fields`, whether AI field setup keeps the fields that only the office receiving the form fills in, such as a "For office use only" box (`true`), or leaves them out (`false`). Default: your account's template settings.
768
+ * @member {Boolean} include_office_use_fields
769
+ */
770
+ CreateTemplateRequest.prototype['include_office_use_fields'] = undefined;
632
771
  var _default = exports["default"] = CreateTemplateRequest;
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
31
31
  /**
32
32
  * The CreateWebhookRequest model module.
33
33
  * @module model/CreateWebhookRequest
34
- * @version 4.3.0
34
+ * @version 4.5.0
35
35
  */
36
36
  var CreateWebhookRequest = /*#__PURE__*/function () {
37
37
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CustomFile model module.
31
31
  * @module model/CustomFile
32
- * @version 4.3.0
32
+ * @version 4.5.0
33
33
  */
34
34
  var CustomFile = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The CustomFileList model module.
32
32
  * @module model/CustomFileList
33
- * @version 4.3.0
33
+ * @version 4.5.0
34
34
  */
35
35
  var CustomFileList = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CustomFileSourcePdf model module.
31
31
  * @module model/CustomFileSourcePdf
32
- * @version 4.3.0
32
+ * @version 4.5.0
33
33
  */
34
34
  var CustomFileSourcePdf = /*#__PURE__*/function () {
35
35
  /**
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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
+ * DocSpring API
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
+ *
19
+ * The version of the OpenAPI document: v2
20
+ *
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * Enum class DnsRecordType.
29
+ * @enum {}
30
+ * @readonly
31
+ */
32
+ var DnsRecordType = exports["default"] = /*#__PURE__*/function () {
33
+ function DnsRecordType() {
34
+ _classCallCheck(this, DnsRecordType);
35
+ }
36
+ return _createClass(DnsRecordType, null, [{
37
+ key: "constructFromObject",
38
+ value:
39
+ /**
40
+ * Returns a <code>DnsRecordType</code> enum value from a Javascript object name.
41
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
42
+ * @return {module:model/DnsRecordType} The enum <code>DnsRecordType</code> value.
43
+ */
44
+ function constructFromObject(object) {
45
+ // Any value, including one added to the API after this client was released
46
+ return object;
47
+ }
48
+ }]);
49
+ }();
50
+ /**
51
+ * value: "CNAME"
52
+ * @const
53
+ */
54
+ _defineProperty(DnsRecordType, "CNAME", "CNAME");
55
+ /**
56
+ * value: "MX"
57
+ * @const
58
+ */
59
+ _defineProperty(DnsRecordType, "MX", "MX");
60
+ /**
61
+ * value: "TXT"
62
+ * @const
63
+ */
64
+ _defineProperty(DnsRecordType, "TXT", "TXT");