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 (461) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +80 -0
  3. data/.openapi-generator/FILES +84 -0
  4. data/AGENTS.md +2 -2
  5. data/CHANGELOG.md +82 -0
  6. data/Gemfile.lock +4 -3
  7. data/README.md +26 -6
  8. data/docs/AddTemplateFieldsRequest.md +1 -1
  9. data/docs/Client.md +2400 -853
  10. data/docs/CombinedPdfSource.md +1 -1
  11. data/docs/CreateAccountEmailActionRequest.md +54 -0
  12. data/docs/CreateEmailActionRequest.md +50 -0
  13. data/docs/CreateEmailDomainRequest.md +18 -0
  14. data/docs/CreateSubmissionBatchRequest.md +2 -2
  15. data/docs/CreateSubmissionRequest.md +24 -6
  16. data/docs/CreateTemplateRequest.md +29 -11
  17. data/docs/DnsRecordType.md +15 -0
  18. data/docs/EmailAction.md +76 -0
  19. data/docs/EmailActionConditions.md +20 -0
  20. data/docs/EmailActionConditionsInput.md +20 -0
  21. data/docs/EmailActionCustomization.md +36 -0
  22. data/docs/EmailActionDelivery.md +15 -0
  23. data/docs/EmailActionFileFormats.md +15 -0
  24. data/docs/EmailActionList.md +20 -0
  25. data/docs/EmailActionSetting.md +15 -0
  26. data/docs/EmailActionSubmissionType.md +15 -0
  27. data/docs/EmailActionTestEmail.md +18 -0
  28. data/docs/EmailDomain.md +38 -0
  29. data/docs/EmailDomainDnsRecord.md +24 -0
  30. data/docs/EmailDomainDnsRecordPurpose.md +15 -0
  31. data/docs/EmailDomainList.md +20 -0
  32. data/docs/EmailDomainRecordState.md +15 -0
  33. data/docs/EmailDomainState.md +15 -0
  34. data/docs/ErrorInfo.md +12 -6
  35. data/docs/Field.md +1 -1
  36. data/docs/FieldGroup.md +2 -2
  37. data/docs/FieldGroupInput.md +1 -1
  38. data/docs/FieldInput.md +1 -1
  39. data/docs/GenerateSubmissionFilesRequest.md +1 -1
  40. data/docs/GeneratedFile.md +2 -2
  41. data/docs/HtmlEngineOptions.md +1 -1
  42. data/docs/HtmlEngineOptionsInput.md +1 -1
  43. data/docs/SendAccountEmailActionTestEmailRequest.md +18 -0
  44. data/docs/SignatureRequest.md +9 -1
  45. data/docs/SignatureRequestEmailAttachments.md +15 -0
  46. data/docs/SignatureRequestEmailStatus.md +15 -0
  47. data/docs/SignatureRequestInput.md +7 -3
  48. data/docs/SignatureRequestReminders.md +20 -0
  49. data/docs/SigningOrder.md +15 -0
  50. data/docs/Submission.md +8 -6
  51. data/docs/SubmissionAction.md +5 -3
  52. data/docs/SubmissionBatch.md +3 -3
  53. data/docs/SubmissionFiles.md +4 -0
  54. data/docs/SubmissionInput.md +5 -5
  55. data/docs/SubmissionSummary.md +3 -3
  56. data/docs/Template.md +28 -10
  57. data/docs/TemplateDiff.md +2 -2
  58. data/docs/TemplateDocument.md +10 -10
  59. data/docs/TemplateDocumentSummary.md +4 -4
  60. data/docs/TemplatePreview.md +1 -1
  61. data/docs/TemplateSourcePdf.md +1 -1
  62. data/docs/TemplateSummary.md +5 -3
  63. data/docs/UpdateAccountEmailActionRequest.md +54 -0
  64. data/docs/UpdateEmailActionCustomizationRequest.md +46 -0
  65. data/docs/UpdateEmailActionRequest.md +50 -0
  66. data/docs/UpdateTemplateDocumentRequest.md +5 -5
  67. data/docs/UpdateTemplateRequest.md +25 -7
  68. data/docs/ValidateSubmissionRequest.md +24 -6
  69. data/docspring.gemspec +2 -2
  70. data/lib/docspring/api/client.rb +1791 -353
  71. data/lib/docspring/api_client.rb +2 -2
  72. data/lib/docspring/api_error.rb +1 -1
  73. data/lib/docspring/api_model_base.rb +1 -1
  74. data/lib/docspring/configuration.rb +1 -1
  75. data/lib/docspring/models/add_template_fields_request.rb +2 -2
  76. data/lib/docspring/models/ai_field_naming_language.rb +1 -1
  77. data/lib/docspring/models/authentication_check.rb +1 -1
  78. data/lib/docspring/models/barcode_symbology.rb +1 -1
  79. data/lib/docspring/models/check_character.rb +1 -1
  80. data/lib/docspring/models/combined_field_type.rb +1 -1
  81. data/lib/docspring/models/combined_pdf.rb +1 -1
  82. data/lib/docspring/models/combined_pdf_files.rb +1 -1
  83. data/lib/docspring/models/combined_pdf_list.rb +1 -1
  84. data/lib/docspring/models/combined_pdf_source.rb +2 -2
  85. data/lib/docspring/models/combined_pdf_source_input.rb +1 -1
  86. data/lib/docspring/models/combined_pdf_source_pdf.rb +1 -1
  87. data/lib/docspring/models/combined_pdf_source_type.rb +1 -1
  88. data/lib/docspring/models/combined_pdf_state.rb +1 -1
  89. data/lib/docspring/models/copy_template_request.rb +1 -1
  90. data/lib/docspring/models/create_account_email_action_request.rb +388 -0
  91. data/lib/docspring/models/create_combined_pdf_request.rb +1 -1
  92. data/lib/docspring/models/create_custom_file_from_upload_request.rb +1 -1
  93. data/lib/docspring/models/create_email_action_request.rb +364 -0
  94. data/lib/docspring/models/create_email_domain_request.rb +185 -0
  95. data/lib/docspring/models/create_folder_request.rb +1 -1
  96. data/lib/docspring/models/create_signature_request_event_request.rb +1 -1
  97. data/lib/docspring/models/create_signature_request_token_request.rb +1 -1
  98. data/lib/docspring/models/create_submission_batch_request.rb +3 -3
  99. data/lib/docspring/models/create_submission_request.rb +146 -10
  100. data/lib/docspring/models/create_template_preview_request.rb +1 -1
  101. data/lib/docspring/models/create_template_request.rb +123 -13
  102. data/lib/docspring/models/create_webhook_request.rb +1 -1
  103. data/lib/docspring/models/custom_file.rb +1 -1
  104. data/lib/docspring/models/custom_file_list.rb +1 -1
  105. data/lib/docspring/models/custom_file_source_pdf.rb +1 -1
  106. data/lib/docspring/models/dns_record_type.rb +42 -0
  107. data/lib/docspring/models/email_action.rb +790 -0
  108. data/lib/docspring/models/email_action_conditions.rb +219 -0
  109. data/lib/docspring/models/email_action_conditions_input.rb +219 -0
  110. data/lib/docspring/models/email_action_customization.rb +360 -0
  111. data/lib/docspring/models/email_action_delivery.rb +41 -0
  112. data/lib/docspring/models/email_action_file_formats.rb +43 -0
  113. data/lib/docspring/models/email_action_list.rb +200 -0
  114. data/lib/docspring/models/email_action_setting.rb +53 -0
  115. data/lib/docspring/models/email_action_submission_type.rb +42 -0
  116. data/lib/docspring/models/email_action_test_email.rb +185 -0
  117. data/lib/docspring/models/email_domain.rb +423 -0
  118. data/lib/docspring/models/email_domain_dns_record.rb +288 -0
  119. data/lib/docspring/models/email_domain_dns_record_purpose.rb +42 -0
  120. data/lib/docspring/models/email_domain_list.rb +200 -0
  121. data/lib/docspring/models/email_domain_record_state.rb +42 -0
  122. data/lib/docspring/models/email_domain_state.rb +42 -0
  123. data/lib/docspring/models/error_code.rb +4 -2
  124. data/lib/docspring/models/error_detail.rb +1 -1
  125. data/lib/docspring/models/error_info.rb +40 -10
  126. data/lib/docspring/models/error_response.rb +1 -1
  127. data/lib/docspring/models/expiration_interval.rb +1 -1
  128. data/lib/docspring/models/field.rb +3 -3
  129. data/lib/docspring/models/field_comparison_condition.rb +1 -1
  130. data/lib/docspring/models/field_comparison_operator.rb +1 -1
  131. data/lib/docspring/models/field_dependency.rb +1 -1
  132. data/lib/docspring/models/field_dependency_input.rb +1 -1
  133. data/lib/docspring/models/field_display_type.rb +1 -1
  134. data/lib/docspring/models/field_equals_condition.rb +1 -1
  135. data/lib/docspring/models/field_equals_operator.rb +1 -1
  136. data/lib/docspring/models/field_group.rb +3 -3
  137. data/lib/docspring/models/field_group_input.rb +2 -2
  138. data/lib/docspring/models/field_group_type.rb +1 -1
  139. data/lib/docspring/models/field_in_condition.rb +1 -1
  140. data/lib/docspring/models/field_input.rb +3 -3
  141. data/lib/docspring/models/field_override.rb +1 -1
  142. data/lib/docspring/models/field_presence_condition.rb +1 -1
  143. data/lib/docspring/models/field_presence_operator.rb +1 -1
  144. data/lib/docspring/models/field_range_condition.rb +1 -1
  145. data/lib/docspring/models/field_reimport_state.rb +1 -1
  146. data/lib/docspring/models/field_setup_logic.rb +1 -1
  147. data/lib/docspring/models/field_setup_naming.rb +1 -1
  148. data/lib/docspring/models/field_setup_source.rb +1 -1
  149. data/lib/docspring/models/field_type.rb +1 -1
  150. data/lib/docspring/models/folder.rb +1 -1
  151. data/lib/docspring/models/folder_list.rb +1 -1
  152. data/lib/docspring/models/generate_files_format.rb +5 -2
  153. data/lib/docspring/models/generate_submission_files_request.rb +2 -2
  154. data/lib/docspring/models/generated_file.rb +4 -4
  155. data/lib/docspring/models/generated_file_state.rb +1 -1
  156. data/lib/docspring/models/html_engine_options.rb +2 -2
  157. data/lib/docspring/models/html_engine_options_input.rb +2 -2
  158. data/lib/docspring/models/image_gravity.rb +1 -1
  159. data/lib/docspring/models/image_scale_type.rb +1 -1
  160. data/lib/docspring/models/model_code_language.rb +3 -2
  161. data/lib/docspring/models/move_folder_request.rb +1 -1
  162. data/lib/docspring/models/move_template_request.rb +1 -1
  163. data/lib/docspring/models/number_condition_type.rb +1 -1
  164. data/lib/docspring/models/output_format.rb +4 -2
  165. data/lib/docspring/models/page_format.rb +1 -1
  166. data/lib/docspring/models/page_image.rb +1 -1
  167. data/lib/docspring/models/page_images.rb +1 -1
  168. data/lib/docspring/models/predefined_field.rb +1 -1
  169. data/lib/docspring/models/predefined_field_input.rb +1 -1
  170. data/lib/docspring/models/publish_template_version_request.rb +1 -1
  171. data/lib/docspring/models/remove_template_fields_request.rb +1 -1
  172. data/lib/docspring/models/rename_folder_request.rb +1 -1
  173. data/lib/docspring/models/reorder_template_fields_request.rb +1 -1
  174. data/lib/docspring/models/restore_template_version_request.rb +1 -1
  175. data/lib/docspring/models/send_account_email_action_test_email_request.rb +168 -0
  176. data/lib/docspring/models/shape_type.rb +1 -1
  177. data/lib/docspring/models/signature_request.rb +69 -3
  178. data/lib/docspring/models/signature_request_auth_second_factor_type.rb +1 -1
  179. data/lib/docspring/models/signature_request_auth_type.rb +1 -1
  180. data/lib/docspring/models/signature_request_email_attachments.rb +41 -0
  181. data/lib/docspring/models/signature_request_email_status.rb +47 -0
  182. data/lib/docspring/models/signature_request_event.rb +1 -1
  183. data/lib/docspring/models/signature_request_event_type.rb +4 -2
  184. data/lib/docspring/models/signature_request_input.rb +26 -23
  185. data/lib/docspring/models/signature_request_message_type.rb +1 -1
  186. data/lib/docspring/models/signature_request_reminders.rb +212 -0
  187. data/lib/docspring/models/signature_request_state.rb +1 -1
  188. data/lib/docspring/models/signature_request_token.rb +1 -1
  189. data/lib/docspring/models/signature_request_token_type.rb +1 -1
  190. data/lib/docspring/models/signing_order.rb +41 -0
  191. data/lib/docspring/models/string_condition_type.rb +9 -2
  192. data/lib/docspring/models/submission.rb +36 -9
  193. data/lib/docspring/models/submission_action.rb +19 -6
  194. data/lib/docspring/models/submission_action_state.rb +1 -1
  195. data/lib/docspring/models/submission_action_type.rb +1 -1
  196. data/lib/docspring/models/submission_batch.rb +5 -5
  197. data/lib/docspring/models/submission_batch_state.rb +1 -1
  198. data/lib/docspring/models/submission_files.rb +22 -2
  199. data/lib/docspring/models/submission_input.rb +6 -6
  200. data/lib/docspring/models/submission_list.rb +1 -1
  201. data/lib/docspring/models/submission_source.rb +1 -1
  202. data/lib/docspring/models/submission_source_pdf.rb +1 -1
  203. data/lib/docspring/models/submission_state.rb +1 -1
  204. data/lib/docspring/models/submission_summary.rb +4 -4
  205. data/lib/docspring/models/submission_validation.rb +1 -1
  206. data/lib/docspring/models/template.rb +175 -12
  207. data/lib/docspring/models/template_actor.rb +1 -1
  208. data/lib/docspring/models/template_actor_type.rb +1 -1
  209. data/lib/docspring/models/template_defaults.rb +1 -1
  210. data/lib/docspring/models/template_defaults_input.rb +1 -1
  211. data/lib/docspring/models/template_diff.rb +3 -3
  212. data/lib/docspring/models/template_diff_summary.rb +1 -1
  213. data/lib/docspring/models/template_document.rb +12 -12
  214. data/lib/docspring/models/template_document_state.rb +4 -2
  215. data/lib/docspring/models/template_document_summary.rb +6 -6
  216. data/lib/docspring/models/template_field_change.rb +1 -1
  217. data/lib/docspring/models/template_field_changes.rb +1 -1
  218. data/lib/docspring/models/template_field_dependency.rb +1 -1
  219. data/lib/docspring/models/template_field_dependency_action.rb +1 -1
  220. data/lib/docspring/models/template_field_dependency_condition.rb +1 -1
  221. data/lib/docspring/models/template_field_dependency_condition_input.rb +1 -1
  222. data/lib/docspring/models/template_field_dependency_input.rb +1 -1
  223. data/lib/docspring/models/template_field_dependency_match.rb +1 -1
  224. data/lib/docspring/models/template_field_dependency_operator.rb +1 -1
  225. data/lib/docspring/models/template_field_logic_status.rb +1 -1
  226. data/lib/docspring/models/template_field_move.rb +1 -1
  227. data/lib/docspring/models/template_fields.rb +1 -1
  228. data/lib/docspring/models/template_form_mode.rb +1 -1
  229. data/lib/docspring/models/template_model_code.rb +1 -1
  230. data/lib/docspring/models/template_page_ai_error.rb +1 -1
  231. data/lib/docspring/models/template_page_ai_naming_status.rb +1 -1
  232. data/lib/docspring/models/template_page_fields_status.rb +1 -1
  233. data/lib/docspring/models/template_page_image_status.rb +1 -1
  234. data/lib/docspring/models/template_page_images.rb +1 -1
  235. data/lib/docspring/models/template_page_processing_status.rb +1 -1
  236. data/lib/docspring/models/template_preview.rb +3 -3
  237. data/lib/docspring/models/template_preview_state.rb +1 -1
  238. data/lib/docspring/models/template_source_pdf.rb +2 -2
  239. data/lib/docspring/models/template_summary.rb +32 -5
  240. data/lib/docspring/models/template_summary_list.rb +1 -1
  241. data/lib/docspring/models/template_type.rb +4 -2
  242. data/lib/docspring/models/template_version.rb +1 -1
  243. data/lib/docspring/models/template_version_type.rb +1 -1
  244. data/lib/docspring/models/text_alignment.rb +1 -1
  245. data/lib/docspring/models/text_overflow.rb +1 -1
  246. data/lib/docspring/models/text_vertical_alignment.rb +1 -1
  247. data/lib/docspring/models/typeface.rb +1 -1
  248. data/lib/docspring/models/update_account_email_action_request.rb +388 -0
  249. data/lib/docspring/models/update_email_action_customization_request.rb +343 -0
  250. data/lib/docspring/models/update_email_action_request.rb +364 -0
  251. data/lib/docspring/models/update_signature_request_request.rb +1 -1
  252. data/lib/docspring/models/update_template_document_request.rb +7 -7
  253. data/lib/docspring/models/update_template_fields_request.rb +1 -1
  254. data/lib/docspring/models/update_template_request.rb +121 -11
  255. data/lib/docspring/models/update_webhook_request.rb +1 -1
  256. data/lib/docspring/models/upload_method.rb +1 -1
  257. data/lib/docspring/models/upload_presign.rb +1 -1
  258. data/lib/docspring/models/url_source_pdf.rb +1 -1
  259. data/lib/docspring/models/validate_submission_request.rb +146 -10
  260. data/lib/docspring/models/webhook.rb +1 -1
  261. data/lib/docspring/models/webhook_event_type.rb +4 -2
  262. data/lib/docspring/models/webhook_list.rb +1 -1
  263. data/lib/docspring/models/webhook_mode.rb +1 -1
  264. data/lib/docspring/request_schemas.json +1692 -109
  265. data/lib/docspring/request_validator.rb +4 -0
  266. data/lib/docspring/version.rb +2 -2
  267. data/lib/docspring.rb +29 -1
  268. data/spec/api/client_spec.rb +328 -39
  269. data/spec/models/add_template_fields_request_spec.rb +1 -1
  270. data/spec/models/ai_field_naming_language_spec.rb +1 -1
  271. data/spec/models/authentication_check_spec.rb +1 -1
  272. data/spec/models/barcode_symbology_spec.rb +1 -1
  273. data/spec/models/check_character_spec.rb +1 -1
  274. data/spec/models/combined_field_type_spec.rb +1 -1
  275. data/spec/models/combined_pdf_files_spec.rb +1 -1
  276. data/spec/models/combined_pdf_list_spec.rb +1 -1
  277. data/spec/models/combined_pdf_source_input_spec.rb +1 -1
  278. data/spec/models/combined_pdf_source_pdf_spec.rb +1 -1
  279. data/spec/models/combined_pdf_source_spec.rb +1 -1
  280. data/spec/models/combined_pdf_source_type_spec.rb +1 -1
  281. data/spec/models/combined_pdf_spec.rb +1 -1
  282. data/spec/models/combined_pdf_state_spec.rb +1 -1
  283. data/spec/models/copy_template_request_spec.rb +1 -1
  284. data/spec/models/create_account_email_action_request_spec.rb +144 -0
  285. data/spec/models/create_combined_pdf_request_spec.rb +1 -1
  286. data/spec/models/create_custom_file_from_upload_request_spec.rb +1 -1
  287. data/spec/models/create_email_action_request_spec.rb +132 -0
  288. data/spec/models/create_email_domain_request_spec.rb +36 -0
  289. data/spec/models/create_folder_request_spec.rb +1 -1
  290. data/spec/models/create_signature_request_event_request_spec.rb +1 -1
  291. data/spec/models/create_signature_request_token_request_spec.rb +1 -1
  292. data/spec/models/create_submission_batch_request_spec.rb +1 -1
  293. data/spec/models/create_submission_request_spec.rb +55 -1
  294. data/spec/models/create_template_preview_request_spec.rb +1 -1
  295. data/spec/models/create_template_request_spec.rb +55 -1
  296. data/spec/models/create_webhook_request_spec.rb +1 -1
  297. data/spec/models/custom_file_list_spec.rb +1 -1
  298. data/spec/models/custom_file_source_pdf_spec.rb +1 -1
  299. data/spec/models/custom_file_spec.rb +1 -1
  300. data/spec/models/dns_record_type_spec.rb +30 -0
  301. data/spec/models/email_action_conditions_input_spec.rb +42 -0
  302. data/spec/models/email_action_conditions_spec.rb +42 -0
  303. data/spec/models/email_action_customization_spec.rb +90 -0
  304. data/spec/models/email_action_delivery_spec.rb +30 -0
  305. data/spec/models/email_action_file_formats_spec.rb +30 -0
  306. data/spec/models/email_action_list_spec.rb +42 -0
  307. data/spec/models/email_action_setting_spec.rb +30 -0
  308. data/spec/models/email_action_spec.rb +210 -0
  309. data/spec/models/email_action_submission_type_spec.rb +30 -0
  310. data/spec/models/email_action_test_email_spec.rb +36 -0
  311. data/spec/models/email_domain_dns_record_purpose_spec.rb +30 -0
  312. data/spec/models/email_domain_dns_record_spec.rb +54 -0
  313. data/spec/models/email_domain_list_spec.rb +42 -0
  314. data/spec/models/email_domain_record_state_spec.rb +30 -0
  315. data/spec/models/email_domain_spec.rb +96 -0
  316. data/spec/models/email_domain_state_spec.rb +30 -0
  317. data/spec/models/error_code_spec.rb +1 -1
  318. data/spec/models/error_detail_spec.rb +1 -1
  319. data/spec/models/error_info_spec.rb +19 -1
  320. data/spec/models/error_response_spec.rb +1 -1
  321. data/spec/models/expiration_interval_spec.rb +1 -1
  322. data/spec/models/field_comparison_condition_spec.rb +1 -1
  323. data/spec/models/field_comparison_operator_spec.rb +1 -1
  324. data/spec/models/field_dependency_input_spec.rb +1 -1
  325. data/spec/models/field_dependency_spec.rb +1 -1
  326. data/spec/models/field_display_type_spec.rb +1 -1
  327. data/spec/models/field_equals_condition_spec.rb +1 -1
  328. data/spec/models/field_equals_operator_spec.rb +1 -1
  329. data/spec/models/field_group_input_spec.rb +1 -1
  330. data/spec/models/field_group_spec.rb +1 -1
  331. data/spec/models/field_group_type_spec.rb +1 -1
  332. data/spec/models/field_in_condition_spec.rb +1 -1
  333. data/spec/models/field_input_spec.rb +1 -1
  334. data/spec/models/field_override_spec.rb +1 -1
  335. data/spec/models/field_presence_condition_spec.rb +1 -1
  336. data/spec/models/field_presence_operator_spec.rb +1 -1
  337. data/spec/models/field_range_condition_spec.rb +1 -1
  338. data/spec/models/field_reimport_state_spec.rb +1 -1
  339. data/spec/models/field_setup_logic_spec.rb +1 -1
  340. data/spec/models/field_setup_naming_spec.rb +1 -1
  341. data/spec/models/field_setup_source_spec.rb +1 -1
  342. data/spec/models/field_spec.rb +1 -1
  343. data/spec/models/field_type_spec.rb +1 -1
  344. data/spec/models/folder_list_spec.rb +1 -1
  345. data/spec/models/folder_spec.rb +1 -1
  346. data/spec/models/generate_files_format_spec.rb +1 -1
  347. data/spec/models/generate_submission_files_request_spec.rb +1 -1
  348. data/spec/models/generated_file_spec.rb +1 -1
  349. data/spec/models/generated_file_state_spec.rb +1 -1
  350. data/spec/models/html_engine_options_input_spec.rb +1 -1
  351. data/spec/models/html_engine_options_spec.rb +1 -1
  352. data/spec/models/image_gravity_spec.rb +1 -1
  353. data/spec/models/image_scale_type_spec.rb +1 -1
  354. data/spec/models/model_code_language_spec.rb +1 -1
  355. data/spec/models/move_folder_request_spec.rb +1 -1
  356. data/spec/models/move_template_request_spec.rb +1 -1
  357. data/spec/models/number_condition_type_spec.rb +1 -1
  358. data/spec/models/output_format_spec.rb +1 -1
  359. data/spec/models/page_format_spec.rb +1 -1
  360. data/spec/models/page_image_spec.rb +1 -1
  361. data/spec/models/page_images_spec.rb +1 -1
  362. data/spec/models/predefined_field_input_spec.rb +1 -1
  363. data/spec/models/predefined_field_spec.rb +1 -1
  364. data/spec/models/publish_template_version_request_spec.rb +1 -1
  365. data/spec/models/remove_template_fields_request_spec.rb +1 -1
  366. data/spec/models/rename_folder_request_spec.rb +1 -1
  367. data/spec/models/reorder_template_fields_request_spec.rb +1 -1
  368. data/spec/models/restore_template_version_request_spec.rb +1 -1
  369. data/spec/models/send_account_email_action_test_email_request_spec.rb +36 -0
  370. data/spec/models/shape_type_spec.rb +1 -1
  371. data/spec/models/signature_request_auth_second_factor_type_spec.rb +1 -1
  372. data/spec/models/signature_request_auth_type_spec.rb +1 -1
  373. data/spec/models/signature_request_email_attachments_spec.rb +30 -0
  374. data/spec/models/signature_request_email_status_spec.rb +30 -0
  375. data/spec/models/signature_request_event_spec.rb +1 -1
  376. data/spec/models/signature_request_event_type_spec.rb +1 -1
  377. data/spec/models/signature_request_input_spec.rb +13 -1
  378. data/spec/models/signature_request_message_type_spec.rb +1 -1
  379. data/spec/models/signature_request_reminders_spec.rb +42 -0
  380. data/spec/models/signature_request_spec.rb +25 -1
  381. data/spec/models/signature_request_state_spec.rb +1 -1
  382. data/spec/models/signature_request_token_spec.rb +1 -1
  383. data/spec/models/signature_request_token_type_spec.rb +1 -1
  384. data/spec/models/signing_order_spec.rb +30 -0
  385. data/spec/models/string_condition_type_spec.rb +1 -1
  386. data/spec/models/submission_action_spec.rb +7 -1
  387. data/spec/models/submission_action_state_spec.rb +1 -1
  388. data/spec/models/submission_action_type_spec.rb +1 -1
  389. data/spec/models/submission_batch_spec.rb +1 -1
  390. data/spec/models/submission_batch_state_spec.rb +1 -1
  391. data/spec/models/submission_files_spec.rb +13 -1
  392. data/spec/models/submission_input_spec.rb +1 -1
  393. data/spec/models/submission_list_spec.rb +1 -1
  394. data/spec/models/submission_source_pdf_spec.rb +1 -1
  395. data/spec/models/submission_source_spec.rb +1 -1
  396. data/spec/models/submission_spec.rb +7 -1
  397. data/spec/models/submission_state_spec.rb +1 -1
  398. data/spec/models/submission_summary_spec.rb +1 -1
  399. data/spec/models/submission_validation_spec.rb +1 -1
  400. data/spec/models/template_actor_spec.rb +1 -1
  401. data/spec/models/template_actor_type_spec.rb +1 -1
  402. data/spec/models/template_defaults_input_spec.rb +1 -1
  403. data/spec/models/template_defaults_spec.rb +1 -1
  404. data/spec/models/template_diff_spec.rb +1 -1
  405. data/spec/models/template_diff_summary_spec.rb +1 -1
  406. data/spec/models/template_document_spec.rb +1 -1
  407. data/spec/models/template_document_state_spec.rb +1 -1
  408. data/spec/models/template_document_summary_spec.rb +1 -1
  409. data/spec/models/template_field_change_spec.rb +1 -1
  410. data/spec/models/template_field_changes_spec.rb +1 -1
  411. data/spec/models/template_field_dependency_action_spec.rb +1 -1
  412. data/spec/models/template_field_dependency_condition_input_spec.rb +1 -1
  413. data/spec/models/template_field_dependency_condition_spec.rb +1 -1
  414. data/spec/models/template_field_dependency_input_spec.rb +1 -1
  415. data/spec/models/template_field_dependency_match_spec.rb +1 -1
  416. data/spec/models/template_field_dependency_operator_spec.rb +1 -1
  417. data/spec/models/template_field_dependency_spec.rb +1 -1
  418. data/spec/models/template_field_logic_status_spec.rb +1 -1
  419. data/spec/models/template_field_move_spec.rb +1 -1
  420. data/spec/models/template_fields_spec.rb +1 -1
  421. data/spec/models/template_form_mode_spec.rb +1 -1
  422. data/spec/models/template_model_code_spec.rb +1 -1
  423. data/spec/models/template_page_ai_error_spec.rb +1 -1
  424. data/spec/models/template_page_ai_naming_status_spec.rb +1 -1
  425. data/spec/models/template_page_fields_status_spec.rb +1 -1
  426. data/spec/models/template_page_image_status_spec.rb +1 -1
  427. data/spec/models/template_page_images_spec.rb +1 -1
  428. data/spec/models/template_page_processing_status_spec.rb +1 -1
  429. data/spec/models/template_preview_spec.rb +1 -1
  430. data/spec/models/template_preview_state_spec.rb +1 -1
  431. data/spec/models/template_source_pdf_spec.rb +1 -1
  432. data/spec/models/template_spec.rb +55 -1
  433. data/spec/models/template_summary_list_spec.rb +1 -1
  434. data/spec/models/template_summary_spec.rb +7 -1
  435. data/spec/models/template_type_spec.rb +1 -1
  436. data/spec/models/template_version_spec.rb +1 -1
  437. data/spec/models/template_version_type_spec.rb +1 -1
  438. data/spec/models/text_alignment_spec.rb +1 -1
  439. data/spec/models/text_overflow_spec.rb +1 -1
  440. data/spec/models/text_vertical_alignment_spec.rb +1 -1
  441. data/spec/models/typeface_spec.rb +1 -1
  442. data/spec/models/update_account_email_action_request_spec.rb +144 -0
  443. data/spec/models/update_email_action_customization_request_spec.rb +120 -0
  444. data/spec/models/update_email_action_request_spec.rb +132 -0
  445. data/spec/models/update_signature_request_request_spec.rb +1 -1
  446. data/spec/models/update_template_document_request_spec.rb +1 -1
  447. data/spec/models/update_template_fields_request_spec.rb +1 -1
  448. data/spec/models/update_template_request_spec.rb +55 -1
  449. data/spec/models/update_webhook_request_spec.rb +1 -1
  450. data/spec/models/upload_method_spec.rb +1 -1
  451. data/spec/models/upload_presign_spec.rb +1 -1
  452. data/spec/models/url_source_pdf_spec.rb +1 -1
  453. data/spec/models/validate_submission_request_spec.rb +55 -1
  454. data/spec/models/webhook_event_type_spec.rb +1 -1
  455. data/spec/models/webhook_list_spec.rb +1 -1
  456. data/spec/models/webhook_mode_spec.rb +1 -1
  457. data/spec/models/webhook_spec.rb +1 -1
  458. data/spec/spec_helper.rb +1 -1
  459. metadata +117 -5
  460. data/.gitlab-ci.yml +0 -26
  461. data/.travis.yml +0 -11
@@ -446,10 +446,17 @@
446
446
  "type": "string",
447
447
  "enum": [
448
448
  "equals",
449
+ "not_equals",
449
450
  "contains",
451
+ "not_contains",
450
452
  "starts_with",
453
+ "not_starts_with",
451
454
  "ends_with",
452
- "regex"
455
+ "not_ends_with",
456
+ "regex",
457
+ "not_regex",
458
+ "blank",
459
+ "not_blank"
453
460
  ]
454
461
  },
455
462
  "number_condition_type": {
@@ -634,19 +641,21 @@
634
641
  "properties": {
635
642
  "name": {
636
643
  "type": "string",
637
- "minLength": 1,
638
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

   ]",
644
+ "maxLength": 512,
645
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
646
+ "x-pattern-message": "can't be blank"
639
647
  },
640
648
  "parent_folder_id": {
641
649
  "type": [
642
650
  "string",
643
651
  "null"
644
652
  ],
645
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
653
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
654
+ "x-pattern-message": "can't be blank"
646
655
  },
647
656
  "version": {
648
657
  "type": "string",
649
- "pattern": "^\\d+(\\.\\d+(\\.\\d+)?)?$",
658
+ "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}$",
650
659
  "x-pattern-message": "must be a published version like 1.2.3 or 1"
651
660
  }
652
661
  },
@@ -654,6 +663,234 @@
654
663
  }
655
664
  }
656
665
  },
666
+ "createAccountEmailAction": {
667
+ "body": {
668
+ "mediaType": "application/json",
669
+ "required": true,
670
+ "schema": {
671
+ "type": "object",
672
+ "properties": {
673
+ "template_ids": {
674
+ "type": "array",
675
+ "maxItems": 500,
676
+ "items": {
677
+ "type": "string",
678
+ "maxLength": 255,
679
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
680
+ "x-pattern-message": "can't be blank"
681
+ }
682
+ },
683
+ "folder_ids": {
684
+ "type": "array",
685
+ "maxItems": 500,
686
+ "items": {
687
+ "type": "string",
688
+ "maxLength": 255,
689
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
690
+ "x-pattern-message": "can't be blank"
691
+ }
692
+ },
693
+ "name": {
694
+ "type": [
695
+ "string",
696
+ "null"
697
+ ],
698
+ "maxLength": 512
699
+ },
700
+ "enabled": {
701
+ "type": "boolean"
702
+ },
703
+ "to": {
704
+ "type": "array",
705
+ "maxItems": 10,
706
+ "items": {
707
+ "type": "string",
708
+ "maxLength": 512
709
+ }
710
+ },
711
+ "cc": {
712
+ "type": "array",
713
+ "maxItems": 10,
714
+ "items": {
715
+ "type": "string",
716
+ "maxLength": 512
717
+ }
718
+ },
719
+ "bcc": {
720
+ "type": "array",
721
+ "maxItems": 10,
722
+ "items": {
723
+ "type": "string",
724
+ "maxLength": 512
725
+ }
726
+ },
727
+ "from_name": {
728
+ "type": [
729
+ "string",
730
+ "null"
731
+ ],
732
+ "maxLength": 64
733
+ },
734
+ "from_address": {
735
+ "type": [
736
+ "string",
737
+ "null"
738
+ ],
739
+ "maxLength": 254
740
+ },
741
+ "reply_to": {
742
+ "type": [
743
+ "string",
744
+ "null"
745
+ ],
746
+ "maxLength": 254
747
+ },
748
+ "subject": {
749
+ "type": [
750
+ "string",
751
+ "null"
752
+ ],
753
+ "maxLength": 200
754
+ },
755
+ "message": {
756
+ "type": [
757
+ "string",
758
+ "null"
759
+ ],
760
+ "maxLength": 2000
761
+ },
762
+ "file_name": {
763
+ "type": [
764
+ "string",
765
+ "null"
766
+ ],
767
+ "maxLength": 200
768
+ },
769
+ "file_formats": {
770
+ "type": "string",
771
+ "enum": [
772
+ "docx",
773
+ "odt",
774
+ "pdf",
775
+ "all"
776
+ ]
777
+ },
778
+ "delivery": {
779
+ "type": "string",
780
+ "enum": [
781
+ "attachment",
782
+ "link"
783
+ ]
784
+ },
785
+ "max_attachment_mb": {
786
+ "type": "integer",
787
+ "minimum": 1,
788
+ "maximum": 25
789
+ },
790
+ "submission_type": {
791
+ "type": "string",
792
+ "enum": [
793
+ "live",
794
+ "test",
795
+ "all"
796
+ ]
797
+ },
798
+ "send_when": {
799
+ "type": [
800
+ "object",
801
+ "null"
802
+ ],
803
+ "required": [
804
+ "conditions"
805
+ ],
806
+ "properties": {
807
+ "match": {
808
+ "type": "string",
809
+ "enum": [
810
+ "all",
811
+ "any"
812
+ ]
813
+ },
814
+ "conditions": {
815
+ "type": "array",
816
+ "items": {
817
+ "oneOf": [
818
+ {
819
+ "$ref": "#/components/schemas/FieldPresenceCondition"
820
+ },
821
+ {
822
+ "$ref": "#/components/schemas/FieldEqualsCondition"
823
+ },
824
+ {
825
+ "$ref": "#/components/schemas/FieldInCondition"
826
+ },
827
+ {
828
+ "$ref": "#/components/schemas/FieldComparisonCondition"
829
+ },
830
+ {
831
+ "$ref": "#/components/schemas/FieldRangeCondition"
832
+ }
833
+ ],
834
+ "discriminator": {
835
+ "propertyName": "operator",
836
+ "mapping": [
837
+ [
838
+ "present",
839
+ "#/components/schemas/FieldPresenceCondition"
840
+ ],
841
+ [
842
+ "blank",
843
+ "#/components/schemas/FieldPresenceCondition"
844
+ ],
845
+ [
846
+ "equals",
847
+ "#/components/schemas/FieldEqualsCondition"
848
+ ],
849
+ [
850
+ "not_equals",
851
+ "#/components/schemas/FieldEqualsCondition"
852
+ ],
853
+ [
854
+ "in",
855
+ "#/components/schemas/FieldInCondition"
856
+ ],
857
+ [
858
+ "gt",
859
+ "#/components/schemas/FieldComparisonCondition"
860
+ ],
861
+ [
862
+ "gte",
863
+ "#/components/schemas/FieldComparisonCondition"
864
+ ],
865
+ [
866
+ "lt",
867
+ "#/components/schemas/FieldComparisonCondition"
868
+ ],
869
+ [
870
+ "lte",
871
+ "#/components/schemas/FieldComparisonCondition"
872
+ ],
873
+ [
874
+ "range",
875
+ "#/components/schemas/FieldRangeCondition"
876
+ ]
877
+ ]
878
+ }
879
+ },
880
+ "minItems": 1,
881
+ "maxItems": 20
882
+ }
883
+ },
884
+ "additionalProperties": false
885
+ },
886
+ "failure_notifications_enabled": {
887
+ "type": "boolean"
888
+ }
889
+ },
890
+ "additionalProperties": false
891
+ }
892
+ }
893
+ },
657
894
  "createCombinedPdf": {
658
895
  "query": {
659
896
  "wait": {
@@ -752,14 +989,242 @@
752
989
  "properties": {
753
990
  "cache_id": {
754
991
  "type": "string",
755
- "minLength": 1,
756
- "maxLength": 255"[^ \t\n\u000b\f\r…   - 

   ]",
992
+ "maxLength": 255,
993
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
994
+ "x-pattern-message": "can't be blank"
757
995
  }
758
996
  },
759
997
  "additionalProperties": false
760
998
  }
761
999
  }
762
1000
  },
1001
+ "createEmailAction": {
1002
+ "body": {
1003
+ "mediaType": "application/json",
1004
+ "required": true,
1005
+ "schema": {
1006
+ "type": "object",
1007
+ "properties": {
1008
+ "name": {
1009
+ "type": [
1010
+ "string",
1011
+ "null"
1012
+ ],
1013
+ "maxLength": 512
1014
+ },
1015
+ "enabled": {
1016
+ "type": "boolean"
1017
+ },
1018
+ "to": {
1019
+ "type": "array",
1020
+ "maxItems": 10,
1021
+ "items": {
1022
+ "type": "string",
1023
+ "maxLength": 512
1024
+ }
1025
+ },
1026
+ "cc": {
1027
+ "type": "array",
1028
+ "maxItems": 10,
1029
+ "items": {
1030
+ "type": "string",
1031
+ "maxLength": 512
1032
+ }
1033
+ },
1034
+ "bcc": {
1035
+ "type": "array",
1036
+ "maxItems": 10,
1037
+ "items": {
1038
+ "type": "string",
1039
+ "maxLength": 512
1040
+ }
1041
+ },
1042
+ "from_name": {
1043
+ "type": [
1044
+ "string",
1045
+ "null"
1046
+ ],
1047
+ "maxLength": 64
1048
+ },
1049
+ "from_address": {
1050
+ "type": [
1051
+ "string",
1052
+ "null"
1053
+ ],
1054
+ "maxLength": 254
1055
+ },
1056
+ "reply_to": {
1057
+ "type": [
1058
+ "string",
1059
+ "null"
1060
+ ],
1061
+ "maxLength": 254
1062
+ },
1063
+ "subject": {
1064
+ "type": [
1065
+ "string",
1066
+ "null"
1067
+ ],
1068
+ "maxLength": 200
1069
+ },
1070
+ "message": {
1071
+ "type": [
1072
+ "string",
1073
+ "null"
1074
+ ],
1075
+ "maxLength": 2000
1076
+ },
1077
+ "file_name": {
1078
+ "type": [
1079
+ "string",
1080
+ "null"
1081
+ ],
1082
+ "maxLength": 200
1083
+ },
1084
+ "file_formats": {
1085
+ "type": "string",
1086
+ "enum": [
1087
+ "docx",
1088
+ "odt",
1089
+ "pdf",
1090
+ "all"
1091
+ ]
1092
+ },
1093
+ "delivery": {
1094
+ "type": "string",
1095
+ "enum": [
1096
+ "attachment",
1097
+ "link"
1098
+ ]
1099
+ },
1100
+ "max_attachment_mb": {
1101
+ "type": "integer",
1102
+ "minimum": 1,
1103
+ "maximum": 25
1104
+ },
1105
+ "submission_type": {
1106
+ "type": "string",
1107
+ "enum": [
1108
+ "live",
1109
+ "test",
1110
+ "all"
1111
+ ]
1112
+ },
1113
+ "send_when": {
1114
+ "type": [
1115
+ "object",
1116
+ "null"
1117
+ ],
1118
+ "required": [
1119
+ "conditions"
1120
+ ],
1121
+ "properties": {
1122
+ "match": {
1123
+ "type": "string",
1124
+ "enum": [
1125
+ "all",
1126
+ "any"
1127
+ ]
1128
+ },
1129
+ "conditions": {
1130
+ "type": "array",
1131
+ "items": {
1132
+ "oneOf": [
1133
+ {
1134
+ "$ref": "#/components/schemas/FieldPresenceCondition"
1135
+ },
1136
+ {
1137
+ "$ref": "#/components/schemas/FieldEqualsCondition"
1138
+ },
1139
+ {
1140
+ "$ref": "#/components/schemas/FieldInCondition"
1141
+ },
1142
+ {
1143
+ "$ref": "#/components/schemas/FieldComparisonCondition"
1144
+ },
1145
+ {
1146
+ "$ref": "#/components/schemas/FieldRangeCondition"
1147
+ }
1148
+ ],
1149
+ "discriminator": {
1150
+ "propertyName": "operator",
1151
+ "mapping": [
1152
+ [
1153
+ "present",
1154
+ "#/components/schemas/FieldPresenceCondition"
1155
+ ],
1156
+ [
1157
+ "blank",
1158
+ "#/components/schemas/FieldPresenceCondition"
1159
+ ],
1160
+ [
1161
+ "equals",
1162
+ "#/components/schemas/FieldEqualsCondition"
1163
+ ],
1164
+ [
1165
+ "not_equals",
1166
+ "#/components/schemas/FieldEqualsCondition"
1167
+ ],
1168
+ [
1169
+ "in",
1170
+ "#/components/schemas/FieldInCondition"
1171
+ ],
1172
+ [
1173
+ "gt",
1174
+ "#/components/schemas/FieldComparisonCondition"
1175
+ ],
1176
+ [
1177
+ "gte",
1178
+ "#/components/schemas/FieldComparisonCondition"
1179
+ ],
1180
+ [
1181
+ "lt",
1182
+ "#/components/schemas/FieldComparisonCondition"
1183
+ ],
1184
+ [
1185
+ "lte",
1186
+ "#/components/schemas/FieldComparisonCondition"
1187
+ ],
1188
+ [
1189
+ "range",
1190
+ "#/components/schemas/FieldRangeCondition"
1191
+ ]
1192
+ ]
1193
+ }
1194
+ },
1195
+ "minItems": 1,
1196
+ "maxItems": 20
1197
+ }
1198
+ },
1199
+ "additionalProperties": false
1200
+ },
1201
+ "failure_notifications_enabled": {
1202
+ "type": "boolean"
1203
+ }
1204
+ },
1205
+ "additionalProperties": false
1206
+ }
1207
+ }
1208
+ },
1209
+ "createEmailDomain": {
1210
+ "body": {
1211
+ "mediaType": "application/json",
1212
+ "required": true,
1213
+ "schema": {
1214
+ "type": "object",
1215
+ "properties": {
1216
+ "domain": {
1217
+ "type": "string",
1218
+ "maxLength": 253
1219
+ }
1220
+ },
1221
+ "required": [
1222
+ "domain"
1223
+ ],
1224
+ "additionalProperties": false
1225
+ }
1226
+ }
1227
+ },
763
1228
  "createFolder": {
764
1229
  "body": {
765
1230
  "mediaType": "application/json",
@@ -779,7 +1244,8 @@
779
1244
  "string",
780
1245
  "null"
781
1246
  ],
782
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
1247
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1248
+ "x-pattern-message": "can't be blank"
783
1249
  }
784
1250
  },
785
1251
  "required": [
@@ -864,7 +1330,7 @@
864
1330
  "required": false,
865
1331
  "schema": {
866
1332
  "type": "string",
867
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1333
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
868
1334
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
869
1335
  }
870
1336
  },
@@ -905,6 +1371,8 @@
905
1371
  "type": "string",
906
1372
  "enum": [
907
1373
  "pdf",
1374
+ "docx",
1375
+ "odt",
908
1376
  "png"
909
1377
  ]
910
1378
  }
@@ -944,7 +1412,9 @@
944
1412
  "string",
945
1413
  "null"
946
1414
  ],
947
- "maxLength": 254
1415
+ "maxLength": 254,
1416
+ "pattern": "^[^ \t\n\u000b\f\r@]+@[^ \t\n\u000b\f\r@]+$",
1417
+ "x-pattern-message": "must be an email address, like name@example.com"
948
1418
  },
949
1419
  "fields": {
950
1420
  "type": "array",
@@ -1027,14 +1497,83 @@
1027
1497
  },
1028
1498
  "prefilled_values_editable": {
1029
1499
  "type": "boolean"
1030
- }
1031
- },
1500
+ },
1501
+ "send_email": {
1502
+ "type": "boolean"
1503
+ },
1504
+ "signing_step": {
1505
+ "type": "integer",
1506
+ "minimum": 1,
1507
+ "maximum": 100
1508
+ }
1509
+ },
1032
1510
  "required": [
1033
- "fields",
1034
- "auth_type"
1511
+ "fields"
1035
1512
  ],
1036
1513
  "additionalProperties": false
1037
1514
  }
1515
+ },
1516
+ "send_email": {
1517
+ "type": "boolean"
1518
+ },
1519
+ "signing_order": {
1520
+ "type": "string",
1521
+ "enum": [
1522
+ "parallel",
1523
+ "sequential"
1524
+ ]
1525
+ },
1526
+ "email_subject": {
1527
+ "type": "string",
1528
+ "minLength": 1,
1529
+ "maxLength": 200
1530
+ },
1531
+ "email_message": {
1532
+ "type": "string",
1533
+ "minLength": 1,
1534
+ "maxLength": 2000
1535
+ },
1536
+ "cc": {
1537
+ "type": "array",
1538
+ "maxItems": 10,
1539
+ "uniqueItems": true,
1540
+ "items": {
1541
+ "type": "string"
1542
+ }
1543
+ },
1544
+ "reply_to": {
1545
+ "type": "string"
1546
+ },
1547
+ "notification_emails": {
1548
+ "type": "array",
1549
+ "maxItems": 10,
1550
+ "uniqueItems": true,
1551
+ "items": {
1552
+ "type": "string"
1553
+ }
1554
+ },
1555
+ "notify_when_signed": {
1556
+ "type": "boolean"
1557
+ },
1558
+ "reminders": {
1559
+ "type": "object",
1560
+ "additionalProperties": false,
1561
+ "required": [
1562
+ "interval_days",
1563
+ "max_count"
1564
+ ],
1565
+ "properties": {
1566
+ "interval_days": {
1567
+ "type": "integer",
1568
+ "minimum": 1,
1569
+ "maximum": 30
1570
+ },
1571
+ "max_count": {
1572
+ "type": "integer",
1573
+ "minimum": 1,
1574
+ "maximum": 10
1575
+ }
1576
+ }
1038
1577
  }
1039
1578
  },
1040
1579
  "additionalProperties": false
@@ -1060,11 +1599,13 @@
1060
1599
  "type": "object"
1061
1600
  },
1062
1601
  "template_id": {
1063
- "type": "string"
1602
+ "type": "string",
1603
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1604
+ "x-pattern-message": "can't be blank"
1064
1605
  },
1065
1606
  "template_version": {
1066
1607
  "type": "string",
1067
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1608
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1068
1609
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1069
1610
  },
1070
1611
  "test": {
@@ -1078,6 +1619,8 @@
1078
1619
  "type": "string",
1079
1620
  "enum": [
1080
1621
  "pdf",
1622
+ "docx",
1623
+ "odt",
1081
1624
  "png"
1082
1625
  ]
1083
1626
  }
@@ -1113,6 +1656,8 @@
1113
1656
  "type": "string",
1114
1657
  "enum": [
1115
1658
  "pdf",
1659
+ "docx",
1660
+ "odt",
1116
1661
  "png"
1117
1662
  ]
1118
1663
  }
@@ -1135,11 +1680,13 @@
1135
1680
  "type": "string"
1136
1681
  },
1137
1682
  "template_id": {
1138
- "type": "string"
1683
+ "type": "string",
1684
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1685
+ "x-pattern-message": "can't be blank"
1139
1686
  },
1140
1687
  "template_version": {
1141
1688
  "type": "string",
1142
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1689
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1143
1690
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1144
1691
  }
1145
1692
  },
@@ -1171,8 +1718,9 @@
1171
1718
  "properties": {
1172
1719
  "name": {
1173
1720
  "type": "string",
1174
- "minLength": 1,
1175
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

   ]",
1721
+ "maxLength": 512,
1722
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1723
+ "x-pattern-message": "can't be blank"
1176
1724
  },
1177
1725
  "description": {
1178
1726
  "type": [
@@ -1184,7 +1732,17 @@
1184
1732
  "type": "string",
1185
1733
  "enum": [
1186
1734
  "pdf",
1187
- "html"
1735
+ "html",
1736
+ "docx",
1737
+ "page_designer"
1738
+ ]
1739
+ },
1740
+ "output_format": {
1741
+ "type": "string",
1742
+ "enum": [
1743
+ "pdf",
1744
+ "docx",
1745
+ "odt"
1188
1746
  ]
1189
1747
  },
1190
1748
  "parent_folder_id": {
@@ -1192,7 +1750,8 @@
1192
1750
  "string",
1193
1751
  "null"
1194
1752
  ],
1195
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
1753
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1754
+ "x-pattern-message": "can't be blank"
1196
1755
  },
1197
1756
  "locked": {
1198
1757
  "type": "boolean"
@@ -1287,6 +1846,54 @@
1287
1846
  ],
1288
1847
  "format": "uri"
1289
1848
  },
1849
+ "signature_request_email_attachments": {
1850
+ "type": [
1851
+ "string",
1852
+ "null"
1853
+ ],
1854
+ "enum": [
1855
+ "attachment",
1856
+ "link",
1857
+ null
1858
+ ]
1859
+ },
1860
+ "signature_request_from_address": {
1861
+ "type": [
1862
+ "string",
1863
+ "null"
1864
+ ]
1865
+ },
1866
+ "signature_request_include_signing_token": {
1867
+ "type": "boolean"
1868
+ },
1869
+ "signature_request_from_name": {
1870
+ "type": [
1871
+ "string",
1872
+ "null"
1873
+ ],
1874
+ "maxLength": 64
1875
+ },
1876
+ "signature_request_notification_emails": {
1877
+ "type": "array",
1878
+ "maxItems": 10,
1879
+ "uniqueItems": true,
1880
+ "items": {
1881
+ "type": "string"
1882
+ }
1883
+ },
1884
+ "signature_request_reply_to": {
1885
+ "type": [
1886
+ "string",
1887
+ "null"
1888
+ ]
1889
+ },
1890
+ "signature_request_signing_url": {
1891
+ "type": [
1892
+ "string",
1893
+ "null"
1894
+ ],
1895
+ "maxLength": 2048
1896
+ },
1290
1897
  "slack_webhook_url": {
1291
1898
  "type": [
1292
1899
  "string",
@@ -1688,7 +2295,8 @@
1688
2295
  },
1689
2296
  "scale": {
1690
2297
  "type": "number",
1691
- "exclusiveMinimum": 0
2298
+ "minimum": 0.1,
2299
+ "maximum": 2
1692
2300
  },
1693
2301
  "landscape": {
1694
2302
  "type": "boolean"
@@ -1714,10 +2322,17 @@
1714
2322
  "html_escape_data": {
1715
2323
  "type": "boolean"
1716
2324
  },
2325
+ "layout": {
2326
+ "type": [
2327
+ "object",
2328
+ "null"
2329
+ ]
2330
+ },
1717
2331
  "cache_id": {
1718
2332
  "type": "string",
1719
- "minLength": 1,
1720
- "maxLength": 255"[^ \t\n\u000b\f\r…   - 

   ]",
2333
+ "maxLength": 255,
2334
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2335
+ "x-pattern-message": "can't be blank"
1721
2336
  },
1722
2337
  "document_url": {
1723
2338
  "type": "string",
@@ -1733,7 +2348,9 @@
1733
2348
  "filename": {
1734
2349
  "type": "string",
1735
2350
  "minLength": 1,
1736
- "maxLength": 255
2351
+ "maxLength": 255,
2352
+ "pattern": "^[^/\\\\]*$",
2353
+ "x-pattern-message": "can't contain a slash (/ or \\)"
1737
2354
  },
1738
2355
  "detect_fields": {
1739
2356
  "type": "boolean"
@@ -1774,7 +2391,7 @@
1774
2391
  "required": false,
1775
2392
  "schema": {
1776
2393
  "type": "string",
1777
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2394
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1778
2395
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1779
2396
  }
1780
2397
  }
@@ -1827,9 +2444,11 @@
1827
2444
  "submission.processed",
1828
2445
  "submission.failed",
1829
2446
  "submission.declined",
2447
+ "signature_request.sent",
1830
2448
  "signature_request.viewed",
1831
2449
  "signature_request.completed",
1832
2450
  "signature_request.declined",
2451
+ "signature_request.email_bounced",
1833
2452
  "combined_pdf.processed",
1834
2453
  "combined_pdf.failed",
1835
2454
  "submission_batch.processed",
@@ -1867,21 +2486,27 @@
1867
2486
  "type": "array",
1868
2487
  "uniqueItems": true,
1869
2488
  "items": {
1870
- "type": "string"
2489
+ "type": "string",
2490
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2491
+ "x-pattern-message": "can't be blank"
1871
2492
  }
1872
2493
  },
1873
2494
  "template_ids": {
1874
2495
  "type": "array",
1875
2496
  "uniqueItems": true,
1876
2497
  "items": {
1877
- "type": "string"
2498
+ "type": "string",
2499
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2500
+ "x-pattern-message": "can't be blank"
1878
2501
  }
1879
2502
  },
1880
2503
  "folder_ids": {
1881
2504
  "type": "array",
1882
2505
  "uniqueItems": true,
1883
2506
  "items": {
1884
- "type": "string"
2507
+ "type": "string",
2508
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2509
+ "x-pattern-message": "can't be blank"
1885
2510
  }
1886
2511
  },
1887
2512
  "include_submission_data": {
@@ -1908,7 +2533,11 @@
1908
2533
  }
1909
2534
  }
1910
2535
  },
2536
+ "deleteAccountEmailAction": {},
1911
2537
  "deleteCustomFile": {},
2538
+ "deleteEmailAction": {},
2539
+ "deleteEmailActionCustomization": {},
2540
+ "deleteEmailDomain": {},
1912
2541
  "deleteFolder": {},
1913
2542
  "deleteTemplate": {
1914
2543
  "query": {
@@ -1916,7 +2545,7 @@
1916
2545
  "required": false,
1917
2546
  "schema": {
1918
2547
  "type": "string",
1919
- "pattern": "^(\\d+\\.\\d+\\.\\d+|draft)$",
2548
+ "pattern": "^((0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)|draft)$",
1920
2549
  "x-pattern-message": "must be a full version like 1.2.3, or draft"
1921
2550
  }
1922
2551
  }
@@ -1950,6 +2579,9 @@
1950
2579
  "items": {
1951
2580
  "type": "string",
1952
2581
  "enum": [
2582
+ "pdf",
2583
+ "docx",
2584
+ "odt",
1953
2585
  "png"
1954
2586
  ]
1955
2587
  }
@@ -1960,8 +2592,11 @@
1960
2592
  }
1961
2593
  },
1962
2594
  "generateSubmissionPreview": {},
2595
+ "getAccountEmailAction": {},
1963
2596
  "getCombinedPdf": {},
1964
2597
  "getCustomFile": {},
2598
+ "getEmailAction": {},
2599
+ "getEmailDomain": {},
1965
2600
  "getFolder": {},
1966
2601
  "getPresignUrl": {},
1967
2602
  "getSignatureRequest": {},
@@ -1982,7 +2617,7 @@
1982
2617
  "required": false,
1983
2618
  "schema": {
1984
2619
  "type": "string",
1985
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2620
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1986
2621
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1987
2622
  }
1988
2623
  }
@@ -1994,7 +2629,7 @@
1994
2629
  "required": false,
1995
2630
  "schema": {
1996
2631
  "type": "string",
1997
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2632
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1998
2633
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1999
2634
  }
2000
2635
  }
@@ -2006,7 +2641,7 @@
2006
2641
  "required": false,
2007
2642
  "schema": {
2008
2643
  "type": "string",
2009
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2644
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2010
2645
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2011
2646
  }
2012
2647
  },
@@ -2023,7 +2658,8 @@
2023
2658
  "java",
2024
2659
  "csharp",
2025
2660
  "elixir",
2026
- "go"
2661
+ "go",
2662
+ "rust"
2027
2663
  ]
2028
2664
  }
2029
2665
  },
@@ -2041,7 +2677,7 @@
2041
2677
  "required": false,
2042
2678
  "schema": {
2043
2679
  "type": "string",
2044
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2680
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2045
2681
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2046
2682
  }
2047
2683
  }
@@ -2054,13 +2690,33 @@
2054
2690
  "required": false,
2055
2691
  "schema": {
2056
2692
  "type": "string",
2057
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2693
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2058
2694
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2059
2695
  }
2060
2696
  }
2061
2697
  }
2062
2698
  },
2063
2699
  "getWebhook": {},
2700
+ "listAccountEmailActions": {
2701
+ "query": {
2702
+ "limit": {
2703
+ "required": false,
2704
+ "schema": {
2705
+ "type": "integer",
2706
+ "minimum": 1,
2707
+ "maximum": 100
2708
+ }
2709
+ },
2710
+ "cursor": {
2711
+ "required": false,
2712
+ "schema": {
2713
+ "type": "string",
2714
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2715
+ "x-pattern-message": "can't be blank"
2716
+ }
2717
+ }
2718
+ }
2719
+ },
2064
2720
  "listCombinedPdfs": {
2065
2721
  "query": {
2066
2722
  "limit": {
@@ -2074,7 +2730,9 @@
2074
2730
  "cursor": {
2075
2731
  "required": false,
2076
2732
  "schema": {
2077
- "type": "string"
2733
+ "type": "string",
2734
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2735
+ "x-pattern-message": "can't be blank"
2078
2736
  }
2079
2737
  }
2080
2738
  }
@@ -2092,7 +2750,49 @@
2092
2750
  "cursor": {
2093
2751
  "required": false,
2094
2752
  "schema": {
2095
- "type": "string"
2753
+ "type": "string",
2754
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2755
+ "x-pattern-message": "can't be blank"
2756
+ }
2757
+ }
2758
+ }
2759
+ },
2760
+ "listEmailActions": {
2761
+ "query": {
2762
+ "limit": {
2763
+ "required": false,
2764
+ "schema": {
2765
+ "type": "integer",
2766
+ "minimum": 1,
2767
+ "maximum": 100
2768
+ }
2769
+ },
2770
+ "cursor": {
2771
+ "required": false,
2772
+ "schema": {
2773
+ "type": "string",
2774
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2775
+ "x-pattern-message": "can't be blank"
2776
+ }
2777
+ }
2778
+ }
2779
+ },
2780
+ "listEmailDomains": {
2781
+ "query": {
2782
+ "limit": {
2783
+ "required": false,
2784
+ "schema": {
2785
+ "type": "integer",
2786
+ "minimum": 1,
2787
+ "maximum": 100
2788
+ }
2789
+ },
2790
+ "cursor": {
2791
+ "required": false,
2792
+ "schema": {
2793
+ "type": "string",
2794
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2795
+ "x-pattern-message": "can't be blank"
2096
2796
  }
2097
2797
  }
2098
2798
  }
@@ -2102,7 +2802,9 @@
2102
2802
  "parent_folder_id": {
2103
2803
  "required": false,
2104
2804
  "schema": {
2105
- "type": "string"
2805
+ "type": "string",
2806
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2807
+ "x-pattern-message": "can't be blank"
2106
2808
  }
2107
2809
  },
2108
2810
  "limit": {
@@ -2116,7 +2818,9 @@
2116
2818
  "cursor": {
2117
2819
  "required": false,
2118
2820
  "schema": {
2119
- "type": "string"
2821
+ "type": "string",
2822
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2823
+ "x-pattern-message": "can't be blank"
2120
2824
  }
2121
2825
  }
2122
2826
  }
@@ -2126,7 +2830,9 @@
2126
2830
  "template_id": {
2127
2831
  "required": false,
2128
2832
  "schema": {
2129
- "type": "string"
2833
+ "type": "string",
2834
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2835
+ "x-pattern-message": "can't be blank"
2130
2836
  }
2131
2837
  },
2132
2838
  "test": {
@@ -2166,7 +2872,9 @@
2166
2872
  "cursor": {
2167
2873
  "required": false,
2168
2874
  "schema": {
2169
- "type": "string"
2875
+ "type": "string",
2876
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2877
+ "x-pattern-message": "can't be blank"
2170
2878
  }
2171
2879
  },
2172
2880
  "state": {
@@ -2204,7 +2912,7 @@
2204
2912
  "required": false,
2205
2913
  "schema": {
2206
2914
  "type": "string",
2207
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2915
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2208
2916
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2209
2917
  }
2210
2918
  }
@@ -2249,7 +2957,9 @@
2249
2957
  "cursor": {
2250
2958
  "required": false,
2251
2959
  "schema": {
2252
- "type": "string"
2960
+ "type": "string",
2961
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2962
+ "x-pattern-message": "can't be blank"
2253
2963
  }
2254
2964
  },
2255
2965
  "state": {
@@ -2286,13 +2996,17 @@
2286
2996
  "query": {
2287
2997
  "required": false,
2288
2998
  "schema": {
2289
- "type": "string"
2999
+ "type": "string",
3000
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3001
+ "x-pattern-message": "can't be blank"
2290
3002
  }
2291
3003
  },
2292
3004
  "parent_folder_id": {
2293
3005
  "required": false,
2294
3006
  "schema": {
2295
- "type": "string"
3007
+ "type": "string",
3008
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3009
+ "x-pattern-message": "can't be blank"
2296
3010
  }
2297
3011
  },
2298
3012
  "limit": {
@@ -2306,7 +3020,9 @@
2306
3020
  "cursor": {
2307
3021
  "required": false,
2308
3022
  "schema": {
2309
- "type": "string"
3023
+ "type": "string",
3024
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3025
+ "x-pattern-message": "can't be blank"
2310
3026
  }
2311
3027
  }
2312
3028
  }
@@ -2321,9 +3037,11 @@
2321
3037
  "submission.processed",
2322
3038
  "submission.failed",
2323
3039
  "submission.declined",
3040
+ "signature_request.sent",
2324
3041
  "signature_request.viewed",
2325
3042
  "signature_request.completed",
2326
3043
  "signature_request.declined",
3044
+ "signature_request.email_bounced",
2327
3045
  "combined_pdf.processed",
2328
3046
  "combined_pdf.failed",
2329
3047
  "submission_batch.processed",
@@ -2359,19 +3077,25 @@
2359
3077
  "template_id": {
2360
3078
  "required": false,
2361
3079
  "schema": {
2362
- "type": "string"
3080
+ "type": "string",
3081
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3082
+ "x-pattern-message": "can't be blank"
2363
3083
  }
2364
3084
  },
2365
3085
  "folder_id": {
2366
3086
  "required": false,
2367
3087
  "schema": {
2368
- "type": "string"
3088
+ "type": "string",
3089
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3090
+ "x-pattern-message": "can't be blank"
2369
3091
  }
2370
3092
  },
2371
3093
  "api_token_id": {
2372
3094
  "required": false,
2373
3095
  "schema": {
2374
- "type": "string"
3096
+ "type": "string",
3097
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3098
+ "x-pattern-message": "can't be blank"
2375
3099
  }
2376
3100
  },
2377
3101
  "limit": {
@@ -2385,7 +3109,9 @@
2385
3109
  "cursor": {
2386
3110
  "required": false,
2387
3111
  "schema": {
2388
- "type": "string"
3112
+ "type": "string",
3113
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3114
+ "x-pattern-message": "can't be blank"
2389
3115
  }
2390
3116
  }
2391
3117
  }
@@ -2402,7 +3128,8 @@
2402
3128
  "string",
2403
3129
  "null"
2404
3130
  ],
2405
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
3131
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3132
+ "x-pattern-message": "can't be blank"
2406
3133
  }
2407
3134
  },
2408
3135
  "required": [
@@ -2427,7 +3154,8 @@
2427
3154
  "string",
2428
3155
  "null"
2429
3156
  ],
2430
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
3157
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3158
+ "x-pattern-message": "can't be blank"
2431
3159
  }
2432
3160
  },
2433
3161
  "additionalProperties": false
@@ -2499,56 +3227,711 @@
2499
3227
  "x-pattern-message": "can't contain a slash (/)"
2500
3228
  }
2501
3229
  },
2502
- "required": [
2503
- "name"
2504
- ],
3230
+ "required": [
3231
+ "name"
3232
+ ],
3233
+ "additionalProperties": false
3234
+ }
3235
+ }
3236
+ },
3237
+ "reorderTemplateFields": {
3238
+ "body": {
3239
+ "mediaType": "application/json",
3240
+ "required": true,
3241
+ "schema": {
3242
+ "type": "object",
3243
+ "required": [
3244
+ "field_ids"
3245
+ ],
3246
+ "properties": {
3247
+ "field_ids": {
3248
+ "type": "array",
3249
+ "minItems": 1,
3250
+ "items": {
3251
+ "type": "integer"
3252
+ }
3253
+ }
3254
+ },
3255
+ "additionalProperties": false
3256
+ }
3257
+ }
3258
+ },
3259
+ "restoreTemplateVersion": {
3260
+ "body": {
3261
+ "mediaType": "application/json",
3262
+ "required": true,
3263
+ "schema": {
3264
+ "type": "object",
3265
+ "required": [
3266
+ "version"
3267
+ ],
3268
+ "properties": {
3269
+ "version": {
3270
+ "type": "string",
3271
+ "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}$",
3272
+ "x-pattern-message": "must be a published version like 1.2.3 or 1"
3273
+ }
3274
+ },
3275
+ "additionalProperties": false
3276
+ }
3277
+ }
3278
+ },
3279
+ "sendAccountEmailActionTestEmail": {
3280
+ "body": {
3281
+ "mediaType": "application/json",
3282
+ "required": false,
3283
+ "schema": {
3284
+ "type": "object",
3285
+ "properties": {
3286
+ "template_id": {
3287
+ "type": "string",
3288
+ "maxLength": 255,
3289
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3290
+ "x-pattern-message": "can't be blank"
3291
+ }
3292
+ },
3293
+ "additionalProperties": false
3294
+ }
3295
+ }
3296
+ },
3297
+ "sendEmailActionTestEmail": {},
3298
+ "testAuthentication": {},
3299
+ "updateAccountEmailAction": {
3300
+ "body": {
3301
+ "mediaType": "application/json",
3302
+ "required": true,
3303
+ "schema": {
3304
+ "type": "object",
3305
+ "properties": {
3306
+ "template_ids": {
3307
+ "type": "array",
3308
+ "maxItems": 500,
3309
+ "items": {
3310
+ "type": "string",
3311
+ "maxLength": 255,
3312
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3313
+ "x-pattern-message": "can't be blank"
3314
+ }
3315
+ },
3316
+ "folder_ids": {
3317
+ "type": "array",
3318
+ "maxItems": 500,
3319
+ "items": {
3320
+ "type": "string",
3321
+ "maxLength": 255,
3322
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3323
+ "x-pattern-message": "can't be blank"
3324
+ }
3325
+ },
3326
+ "name": {
3327
+ "type": [
3328
+ "string",
3329
+ "null"
3330
+ ],
3331
+ "maxLength": 512
3332
+ },
3333
+ "enabled": {
3334
+ "type": "boolean"
3335
+ },
3336
+ "to": {
3337
+ "type": "array",
3338
+ "maxItems": 10,
3339
+ "items": {
3340
+ "type": "string",
3341
+ "maxLength": 512
3342
+ }
3343
+ },
3344
+ "cc": {
3345
+ "type": "array",
3346
+ "maxItems": 10,
3347
+ "items": {
3348
+ "type": "string",
3349
+ "maxLength": 512
3350
+ }
3351
+ },
3352
+ "bcc": {
3353
+ "type": "array",
3354
+ "maxItems": 10,
3355
+ "items": {
3356
+ "type": "string",
3357
+ "maxLength": 512
3358
+ }
3359
+ },
3360
+ "from_name": {
3361
+ "type": [
3362
+ "string",
3363
+ "null"
3364
+ ],
3365
+ "maxLength": 64
3366
+ },
3367
+ "from_address": {
3368
+ "type": [
3369
+ "string",
3370
+ "null"
3371
+ ],
3372
+ "maxLength": 254
3373
+ },
3374
+ "reply_to": {
3375
+ "type": [
3376
+ "string",
3377
+ "null"
3378
+ ],
3379
+ "maxLength": 254
3380
+ },
3381
+ "subject": {
3382
+ "type": [
3383
+ "string",
3384
+ "null"
3385
+ ],
3386
+ "maxLength": 200
3387
+ },
3388
+ "message": {
3389
+ "type": [
3390
+ "string",
3391
+ "null"
3392
+ ],
3393
+ "maxLength": 2000
3394
+ },
3395
+ "file_name": {
3396
+ "type": [
3397
+ "string",
3398
+ "null"
3399
+ ],
3400
+ "maxLength": 200
3401
+ },
3402
+ "file_formats": {
3403
+ "type": "string",
3404
+ "enum": [
3405
+ "docx",
3406
+ "odt",
3407
+ "pdf",
3408
+ "all"
3409
+ ]
3410
+ },
3411
+ "delivery": {
3412
+ "type": "string",
3413
+ "enum": [
3414
+ "attachment",
3415
+ "link"
3416
+ ]
3417
+ },
3418
+ "max_attachment_mb": {
3419
+ "type": "integer",
3420
+ "minimum": 1,
3421
+ "maximum": 25
3422
+ },
3423
+ "submission_type": {
3424
+ "type": "string",
3425
+ "enum": [
3426
+ "live",
3427
+ "test",
3428
+ "all"
3429
+ ]
3430
+ },
3431
+ "send_when": {
3432
+ "type": [
3433
+ "object",
3434
+ "null"
3435
+ ],
3436
+ "required": [
3437
+ "conditions"
3438
+ ],
3439
+ "properties": {
3440
+ "match": {
3441
+ "type": "string",
3442
+ "enum": [
3443
+ "all",
3444
+ "any"
3445
+ ]
3446
+ },
3447
+ "conditions": {
3448
+ "type": "array",
3449
+ "items": {
3450
+ "oneOf": [
3451
+ {
3452
+ "$ref": "#/components/schemas/FieldPresenceCondition"
3453
+ },
3454
+ {
3455
+ "$ref": "#/components/schemas/FieldEqualsCondition"
3456
+ },
3457
+ {
3458
+ "$ref": "#/components/schemas/FieldInCondition"
3459
+ },
3460
+ {
3461
+ "$ref": "#/components/schemas/FieldComparisonCondition"
3462
+ },
3463
+ {
3464
+ "$ref": "#/components/schemas/FieldRangeCondition"
3465
+ }
3466
+ ],
3467
+ "discriminator": {
3468
+ "propertyName": "operator",
3469
+ "mapping": [
3470
+ [
3471
+ "present",
3472
+ "#/components/schemas/FieldPresenceCondition"
3473
+ ],
3474
+ [
3475
+ "blank",
3476
+ "#/components/schemas/FieldPresenceCondition"
3477
+ ],
3478
+ [
3479
+ "equals",
3480
+ "#/components/schemas/FieldEqualsCondition"
3481
+ ],
3482
+ [
3483
+ "not_equals",
3484
+ "#/components/schemas/FieldEqualsCondition"
3485
+ ],
3486
+ [
3487
+ "in",
3488
+ "#/components/schemas/FieldInCondition"
3489
+ ],
3490
+ [
3491
+ "gt",
3492
+ "#/components/schemas/FieldComparisonCondition"
3493
+ ],
3494
+ [
3495
+ "gte",
3496
+ "#/components/schemas/FieldComparisonCondition"
3497
+ ],
3498
+ [
3499
+ "lt",
3500
+ "#/components/schemas/FieldComparisonCondition"
3501
+ ],
3502
+ [
3503
+ "lte",
3504
+ "#/components/schemas/FieldComparisonCondition"
3505
+ ],
3506
+ [
3507
+ "range",
3508
+ "#/components/schemas/FieldRangeCondition"
3509
+ ]
3510
+ ]
3511
+ }
3512
+ },
3513
+ "minItems": 1,
3514
+ "maxItems": 20
3515
+ }
3516
+ },
3517
+ "additionalProperties": false
3518
+ },
3519
+ "failure_notifications_enabled": {
3520
+ "type": "boolean"
3521
+ }
3522
+ },
3523
+ "minProperties": 1,
3524
+ "additionalProperties": false
3525
+ }
3526
+ }
3527
+ },
3528
+ "updateEmailAction": {
3529
+ "body": {
3530
+ "mediaType": "application/json",
3531
+ "required": true,
3532
+ "schema": {
3533
+ "type": "object",
3534
+ "properties": {
3535
+ "name": {
3536
+ "type": [
3537
+ "string",
3538
+ "null"
3539
+ ],
3540
+ "maxLength": 512
3541
+ },
3542
+ "enabled": {
3543
+ "type": "boolean"
3544
+ },
3545
+ "to": {
3546
+ "type": "array",
3547
+ "maxItems": 10,
3548
+ "items": {
3549
+ "type": "string",
3550
+ "maxLength": 512
3551
+ }
3552
+ },
3553
+ "cc": {
3554
+ "type": "array",
3555
+ "maxItems": 10,
3556
+ "items": {
3557
+ "type": "string",
3558
+ "maxLength": 512
3559
+ }
3560
+ },
3561
+ "bcc": {
3562
+ "type": "array",
3563
+ "maxItems": 10,
3564
+ "items": {
3565
+ "type": "string",
3566
+ "maxLength": 512
3567
+ }
3568
+ },
3569
+ "from_name": {
3570
+ "type": [
3571
+ "string",
3572
+ "null"
3573
+ ],
3574
+ "maxLength": 64
3575
+ },
3576
+ "from_address": {
3577
+ "type": [
3578
+ "string",
3579
+ "null"
3580
+ ],
3581
+ "maxLength": 254
3582
+ },
3583
+ "reply_to": {
3584
+ "type": [
3585
+ "string",
3586
+ "null"
3587
+ ],
3588
+ "maxLength": 254
3589
+ },
3590
+ "subject": {
3591
+ "type": [
3592
+ "string",
3593
+ "null"
3594
+ ],
3595
+ "maxLength": 200
3596
+ },
3597
+ "message": {
3598
+ "type": [
3599
+ "string",
3600
+ "null"
3601
+ ],
3602
+ "maxLength": 2000
3603
+ },
3604
+ "file_name": {
3605
+ "type": [
3606
+ "string",
3607
+ "null"
3608
+ ],
3609
+ "maxLength": 200
3610
+ },
3611
+ "file_formats": {
3612
+ "type": "string",
3613
+ "enum": [
3614
+ "docx",
3615
+ "odt",
3616
+ "pdf",
3617
+ "all"
3618
+ ]
3619
+ },
3620
+ "delivery": {
3621
+ "type": "string",
3622
+ "enum": [
3623
+ "attachment",
3624
+ "link"
3625
+ ]
3626
+ },
3627
+ "max_attachment_mb": {
3628
+ "type": "integer",
3629
+ "minimum": 1,
3630
+ "maximum": 25
3631
+ },
3632
+ "submission_type": {
3633
+ "type": "string",
3634
+ "enum": [
3635
+ "live",
3636
+ "test",
3637
+ "all"
3638
+ ]
3639
+ },
3640
+ "send_when": {
3641
+ "type": [
3642
+ "object",
3643
+ "null"
3644
+ ],
3645
+ "required": [
3646
+ "conditions"
3647
+ ],
3648
+ "properties": {
3649
+ "match": {
3650
+ "type": "string",
3651
+ "enum": [
3652
+ "all",
3653
+ "any"
3654
+ ]
3655
+ },
3656
+ "conditions": {
3657
+ "type": "array",
3658
+ "items": {
3659
+ "oneOf": [
3660
+ {
3661
+ "$ref": "#/components/schemas/FieldPresenceCondition"
3662
+ },
3663
+ {
3664
+ "$ref": "#/components/schemas/FieldEqualsCondition"
3665
+ },
3666
+ {
3667
+ "$ref": "#/components/schemas/FieldInCondition"
3668
+ },
3669
+ {
3670
+ "$ref": "#/components/schemas/FieldComparisonCondition"
3671
+ },
3672
+ {
3673
+ "$ref": "#/components/schemas/FieldRangeCondition"
3674
+ }
3675
+ ],
3676
+ "discriminator": {
3677
+ "propertyName": "operator",
3678
+ "mapping": [
3679
+ [
3680
+ "present",
3681
+ "#/components/schemas/FieldPresenceCondition"
3682
+ ],
3683
+ [
3684
+ "blank",
3685
+ "#/components/schemas/FieldPresenceCondition"
3686
+ ],
3687
+ [
3688
+ "equals",
3689
+ "#/components/schemas/FieldEqualsCondition"
3690
+ ],
3691
+ [
3692
+ "not_equals",
3693
+ "#/components/schemas/FieldEqualsCondition"
3694
+ ],
3695
+ [
3696
+ "in",
3697
+ "#/components/schemas/FieldInCondition"
3698
+ ],
3699
+ [
3700
+ "gt",
3701
+ "#/components/schemas/FieldComparisonCondition"
3702
+ ],
3703
+ [
3704
+ "gte",
3705
+ "#/components/schemas/FieldComparisonCondition"
3706
+ ],
3707
+ [
3708
+ "lt",
3709
+ "#/components/schemas/FieldComparisonCondition"
3710
+ ],
3711
+ [
3712
+ "lte",
3713
+ "#/components/schemas/FieldComparisonCondition"
3714
+ ],
3715
+ [
3716
+ "range",
3717
+ "#/components/schemas/FieldRangeCondition"
3718
+ ]
3719
+ ]
3720
+ }
3721
+ },
3722
+ "minItems": 1,
3723
+ "maxItems": 20
3724
+ }
3725
+ },
3726
+ "additionalProperties": false
3727
+ },
3728
+ "failure_notifications_enabled": {
3729
+ "type": "boolean"
3730
+ }
3731
+ },
3732
+ "minProperties": 1,
2505
3733
  "additionalProperties": false
2506
3734
  }
2507
3735
  }
2508
3736
  },
2509
- "reorderTemplateFields": {
3737
+ "updateEmailActionCustomization": {
2510
3738
  "body": {
2511
3739
  "mediaType": "application/json",
2512
3740
  "required": true,
2513
3741
  "schema": {
2514
3742
  "type": "object",
2515
- "required": [
2516
- "field_ids"
2517
- ],
2518
3743
  "properties": {
2519
- "field_ids": {
3744
+ "enabled": {
3745
+ "type": "boolean"
3746
+ },
3747
+ "to": {
2520
3748
  "type": "array",
2521
- "minItems": 1,
3749
+ "maxItems": 10,
2522
3750
  "items": {
2523
- "type": "integer"
3751
+ "type": "string",
3752
+ "maxLength": 512
2524
3753
  }
2525
- }
2526
- },
2527
- "additionalProperties": false
2528
- }
2529
- }
2530
- },
2531
- "restoreTemplateVersion": {
2532
- "body": {
2533
- "mediaType": "application/json",
2534
- "required": true,
2535
- "schema": {
2536
- "type": "object",
2537
- "required": [
2538
- "version"
2539
- ],
2540
- "properties": {
2541
- "version": {
3754
+ },
3755
+ "cc": {
3756
+ "type": "array",
3757
+ "maxItems": 10,
3758
+ "items": {
3759
+ "type": "string",
3760
+ "maxLength": 512
3761
+ }
3762
+ },
3763
+ "bcc": {
3764
+ "type": "array",
3765
+ "maxItems": 10,
3766
+ "items": {
3767
+ "type": "string",
3768
+ "maxLength": 512
3769
+ }
3770
+ },
3771
+ "from_name": {
3772
+ "type": [
3773
+ "string",
3774
+ "null"
3775
+ ],
3776
+ "maxLength": 64
3777
+ },
3778
+ "from_address": {
3779
+ "type": [
3780
+ "string",
3781
+ "null"
3782
+ ],
3783
+ "maxLength": 254
3784
+ },
3785
+ "reply_to": {
3786
+ "type": [
3787
+ "string",
3788
+ "null"
3789
+ ],
3790
+ "maxLength": 254
3791
+ },
3792
+ "subject": {
3793
+ "type": [
3794
+ "string",
3795
+ "null"
3796
+ ],
3797
+ "maxLength": 200
3798
+ },
3799
+ "message": {
3800
+ "type": [
3801
+ "string",
3802
+ "null"
3803
+ ],
3804
+ "maxLength": 2000
3805
+ },
3806
+ "file_name": {
3807
+ "type": [
3808
+ "string",
3809
+ "null"
3810
+ ],
3811
+ "maxLength": 200
3812
+ },
3813
+ "file_formats": {
2542
3814
  "type": "string",
2543
- "pattern": "^\\d+(\\.\\d+(\\.\\d+)?)?$",
2544
- "x-pattern-message": "must be a published version like 1.2.3 or 1"
3815
+ "enum": [
3816
+ "docx",
3817
+ "odt",
3818
+ "pdf",
3819
+ "all"
3820
+ ]
3821
+ },
3822
+ "delivery": {
3823
+ "type": "string",
3824
+ "enum": [
3825
+ "attachment",
3826
+ "link"
3827
+ ]
3828
+ },
3829
+ "max_attachment_mb": {
3830
+ "type": "integer",
3831
+ "minimum": 1,
3832
+ "maximum": 25
3833
+ },
3834
+ "submission_type": {
3835
+ "type": "string",
3836
+ "enum": [
3837
+ "live",
3838
+ "test",
3839
+ "all"
3840
+ ]
3841
+ },
3842
+ "send_when": {
3843
+ "type": [
3844
+ "object",
3845
+ "null"
3846
+ ],
3847
+ "required": [
3848
+ "conditions"
3849
+ ],
3850
+ "properties": {
3851
+ "match": {
3852
+ "type": "string",
3853
+ "enum": [
3854
+ "all",
3855
+ "any"
3856
+ ]
3857
+ },
3858
+ "conditions": {
3859
+ "type": "array",
3860
+ "items": {
3861
+ "oneOf": [
3862
+ {
3863
+ "$ref": "#/components/schemas/FieldPresenceCondition"
3864
+ },
3865
+ {
3866
+ "$ref": "#/components/schemas/FieldEqualsCondition"
3867
+ },
3868
+ {
3869
+ "$ref": "#/components/schemas/FieldInCondition"
3870
+ },
3871
+ {
3872
+ "$ref": "#/components/schemas/FieldComparisonCondition"
3873
+ },
3874
+ {
3875
+ "$ref": "#/components/schemas/FieldRangeCondition"
3876
+ }
3877
+ ],
3878
+ "discriminator": {
3879
+ "propertyName": "operator",
3880
+ "mapping": [
3881
+ [
3882
+ "present",
3883
+ "#/components/schemas/FieldPresenceCondition"
3884
+ ],
3885
+ [
3886
+ "blank",
3887
+ "#/components/schemas/FieldPresenceCondition"
3888
+ ],
3889
+ [
3890
+ "equals",
3891
+ "#/components/schemas/FieldEqualsCondition"
3892
+ ],
3893
+ [
3894
+ "not_equals",
3895
+ "#/components/schemas/FieldEqualsCondition"
3896
+ ],
3897
+ [
3898
+ "in",
3899
+ "#/components/schemas/FieldInCondition"
3900
+ ],
3901
+ [
3902
+ "gt",
3903
+ "#/components/schemas/FieldComparisonCondition"
3904
+ ],
3905
+ [
3906
+ "gte",
3907
+ "#/components/schemas/FieldComparisonCondition"
3908
+ ],
3909
+ [
3910
+ "lt",
3911
+ "#/components/schemas/FieldComparisonCondition"
3912
+ ],
3913
+ [
3914
+ "lte",
3915
+ "#/components/schemas/FieldComparisonCondition"
3916
+ ],
3917
+ [
3918
+ "range",
3919
+ "#/components/schemas/FieldRangeCondition"
3920
+ ]
3921
+ ]
3922
+ }
3923
+ },
3924
+ "minItems": 1,
3925
+ "maxItems": 20
3926
+ }
3927
+ },
3928
+ "additionalProperties": false
2545
3929
  }
2546
3930
  },
2547
3931
  "additionalProperties": false
2548
3932
  }
2549
3933
  }
2550
3934
  },
2551
- "testAuthentication": {},
2552
3935
  "updateSignatureRequest": {
2553
3936
  "body": {
2554
3937
  "mediaType": "application/json",
@@ -2620,6 +4003,7 @@
2620
4003
  ]
2621
4004
  }
2622
4005
  },
4006
+ "minProperties": 1,
2623
4007
  "additionalProperties": false
2624
4008
  }
2625
4009
  }
@@ -2633,8 +4017,9 @@
2633
4017
  "properties": {
2634
4018
  "name": {
2635
4019
  "type": "string",
2636
- "minLength": 1,
2637
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

   ]",
4020
+ "maxLength": 512,
4021
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
4022
+ "x-pattern-message": "can't be blank"
2638
4023
  },
2639
4024
  "description": {
2640
4025
  "type": [
@@ -2642,12 +4027,21 @@
2642
4027
  "null"
2643
4028
  ]
2644
4029
  },
4030
+ "output_format": {
4031
+ "type": "string",
4032
+ "enum": [
4033
+ "pdf",
4034
+ "docx",
4035
+ "odt"
4036
+ ]
4037
+ },
2645
4038
  "parent_folder_id": {
2646
4039
  "type": [
2647
4040
  "string",
2648
4041
  "null"
2649
4042
  ],
2650
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
4043
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
4044
+ "x-pattern-message": "can't be blank"
2651
4045
  },
2652
4046
  "locked": {
2653
4047
  "type": "boolean"
@@ -2742,6 +4136,54 @@
2742
4136
  ],
2743
4137
  "format": "uri"
2744
4138
  },
4139
+ "signature_request_email_attachments": {
4140
+ "type": [
4141
+ "string",
4142
+ "null"
4143
+ ],
4144
+ "enum": [
4145
+ "attachment",
4146
+ "link",
4147
+ null
4148
+ ]
4149
+ },
4150
+ "signature_request_from_address": {
4151
+ "type": [
4152
+ "string",
4153
+ "null"
4154
+ ]
4155
+ },
4156
+ "signature_request_include_signing_token": {
4157
+ "type": "boolean"
4158
+ },
4159
+ "signature_request_from_name": {
4160
+ "type": [
4161
+ "string",
4162
+ "null"
4163
+ ],
4164
+ "maxLength": 64
4165
+ },
4166
+ "signature_request_notification_emails": {
4167
+ "type": "array",
4168
+ "maxItems": 10,
4169
+ "uniqueItems": true,
4170
+ "items": {
4171
+ "type": "string"
4172
+ }
4173
+ },
4174
+ "signature_request_reply_to": {
4175
+ "type": [
4176
+ "string",
4177
+ "null"
4178
+ ]
4179
+ },
4180
+ "signature_request_signing_url": {
4181
+ "type": [
4182
+ "string",
4183
+ "null"
4184
+ ],
4185
+ "maxLength": 2048
4186
+ },
2745
4187
  "slack_webhook_url": {
2746
4188
  "type": [
2747
4189
  "string",
@@ -3185,7 +4627,8 @@
3185
4627
  },
3186
4628
  "scale": {
3187
4629
  "type": "number",
3188
- "exclusiveMinimum": 0
4630
+ "minimum": 0.1,
4631
+ "maximum": 2
3189
4632
  },
3190
4633
  "landscape": {
3191
4634
  "type": "boolean"
@@ -3210,8 +4653,15 @@
3210
4653
  },
3211
4654
  "html_escape_data": {
3212
4655
  "type": "boolean"
4656
+ },
4657
+ "layout": {
4658
+ "type": [
4659
+ "object",
4660
+ "null"
4661
+ ]
3213
4662
  }
3214
4663
  },
4664
+ "minProperties": 1,
3215
4665
  "additionalProperties": false
3216
4666
  }
3217
4667
  }
@@ -3233,8 +4683,9 @@
3233
4683
  "properties": {
3234
4684
  "cache_id": {
3235
4685
  "type": "string",
3236
- "minLength": 1,
3237
- "maxLength": 255"[^ \t\n\u000b\f\r…   - 

   ]",
4686
+ "maxLength": 255,
4687
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
4688
+ "x-pattern-message": "can't be blank"
3238
4689
  },
3239
4690
  "document_url": {
3240
4691
  "type": "string",
@@ -3250,7 +4701,9 @@
3250
4701
  "filename": {
3251
4702
  "type": "string",
3252
4703
  "minLength": 1,
3253
- "maxLength": 255
4704
+ "maxLength": 255,
4705
+ "pattern": "^[^/\\\\]*$",
4706
+ "x-pattern-message": "can't contain a slash (/ or \\)"
3254
4707
  },
3255
4708
  "reimport_fields": {
3256
4709
  "type": "boolean"
@@ -3706,10 +5159,17 @@
3706
5159
  "type": "string",
3707
5160
  "enum": [
3708
5161
  "equals",
5162
+ "not_equals",
3709
5163
  "contains",
5164
+ "not_contains",
3710
5165
  "starts_with",
5166
+ "not_starts_with",
3711
5167
  "ends_with",
3712
- "regex"
5168
+ "not_ends_with",
5169
+ "regex",
5170
+ "not_regex",
5171
+ "blank",
5172
+ "not_blank"
3713
5173
  ]
3714
5174
  },
3715
5175
  "number_condition_type": {
@@ -3916,9 +5376,11 @@
3916
5376
  "submission.processed",
3917
5377
  "submission.failed",
3918
5378
  "submission.declined",
5379
+ "signature_request.sent",
3919
5380
  "signature_request.viewed",
3920
5381
  "signature_request.completed",
3921
5382
  "signature_request.declined",
5383
+ "signature_request.email_bounced",
3922
5384
  "combined_pdf.processed",
3923
5385
  "combined_pdf.failed",
3924
5386
  "submission_batch.processed",
@@ -3956,21 +5418,27 @@
3956
5418
  "type": "array",
3957
5419
  "uniqueItems": true,
3958
5420
  "items": {
3959
- "type": "string"
5421
+ "type": "string",
5422
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5423
+ "x-pattern-message": "can't be blank"
3960
5424
  }
3961
5425
  },
3962
5426
  "template_ids": {
3963
5427
  "type": "array",
3964
5428
  "uniqueItems": true,
3965
5429
  "items": {
3966
- "type": "string"
5430
+ "type": "string",
5431
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5432
+ "x-pattern-message": "can't be blank"
3967
5433
  }
3968
5434
  },
3969
5435
  "folder_ids": {
3970
5436
  "type": "array",
3971
5437
  "uniqueItems": true,
3972
5438
  "items": {
3973
- "type": "string"
5439
+ "type": "string",
5440
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5441
+ "x-pattern-message": "can't be blank"
3974
5442
  }
3975
5443
  },
3976
5444
  "include_submission_data": {
@@ -3989,6 +5457,7 @@
3989
5457
  }
3990
5458
  }
3991
5459
  },
5460
+ "minProperties": 1,
3992
5461
  "additionalProperties": false
3993
5462
  }
3994
5463
  }
@@ -4017,15 +5486,17 @@
4017
5486
  },
4018
5487
  "name": {
4019
5488
  "type": "string",
4020
- "minLength": 1,
4021
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

   ]",
5489
+ "maxLength": 512,
5490
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5491
+ "x-pattern-message": "can't be blank"
4022
5492
  },
4023
5493
  "description": {
4024
5494
  "type": "string"
4025
5495
  },
4026
5496
  "parent_folder_id": {
4027
5497
  "type": "string",
4028
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
5498
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5499
+ "x-pattern-message": "can't be blank"
4029
5500
  },
4030
5501
  "ai_field_naming_language": {
4031
5502
  "type": "string",
@@ -4059,6 +5530,14 @@
4059
5530
  "ai",
4060
5531
  "none"
4061
5532
  ]
5533
+ },
5534
+ "output_format": {
5535
+ "type": "string",
5536
+ "enum": [
5537
+ "pdf",
5538
+ "docx",
5539
+ "odt"
5540
+ ]
4062
5541
  }
4063
5542
  },
4064
5543
  "additionalProperties": false
@@ -4101,7 +5580,7 @@
4101
5580
  "required": false,
4102
5581
  "schema": {
4103
5582
  "type": "string",
4104
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
5583
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
4105
5584
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
4106
5585
  }
4107
5586
  }
@@ -4136,6 +5615,8 @@
4136
5615
  "type": "string",
4137
5616
  "enum": [
4138
5617
  "pdf",
5618
+ "docx",
5619
+ "odt",
4139
5620
  "png"
4140
5621
  ]
4141
5622
  }
@@ -4175,7 +5656,9 @@
4175
5656
  "string",
4176
5657
  "null"
4177
5658
  ],
4178
- "maxLength": 254
5659
+ "maxLength": 254,
5660
+ "pattern": "^[^ \t\n\u000b\f\r@]+@[^ \t\n\u000b\f\r@]+$",
5661
+ "x-pattern-message": "must be an email address, like name@example.com"
4179
5662
  },
4180
5663
  "fields": {
4181
5664
  "type": "array",
@@ -4258,33 +5741,111 @@
4258
5741
  },
4259
5742
  "prefilled_values_editable": {
4260
5743
  "type": "boolean"
5744
+ },
5745
+ "send_email": {
5746
+ "type": "boolean"
5747
+ },
5748
+ "signing_step": {
5749
+ "type": "integer",
5750
+ "minimum": 1,
5751
+ "maximum": 100
4261
5752
  }
4262
5753
  },
4263
5754
  "required": [
4264
- "fields",
4265
- "auth_type"
5755
+ "fields"
4266
5756
  ],
4267
5757
  "additionalProperties": false
4268
5758
  }
5759
+ },
5760
+ "send_email": {
5761
+ "type": "boolean"
5762
+ },
5763
+ "signing_order": {
5764
+ "type": "string",
5765
+ "enum": [
5766
+ "parallel",
5767
+ "sequential"
5768
+ ]
5769
+ },
5770
+ "email_subject": {
5771
+ "type": "string",
5772
+ "minLength": 1,
5773
+ "maxLength": 200
5774
+ },
5775
+ "email_message": {
5776
+ "type": "string",
5777
+ "minLength": 1,
5778
+ "maxLength": 2000
5779
+ },
5780
+ "cc": {
5781
+ "type": "array",
5782
+ "maxItems": 10,
5783
+ "uniqueItems": true,
5784
+ "items": {
5785
+ "type": "string"
5786
+ }
5787
+ },
5788
+ "reply_to": {
5789
+ "type": "string"
5790
+ },
5791
+ "notification_emails": {
5792
+ "type": "array",
5793
+ "maxItems": 10,
5794
+ "uniqueItems": true,
5795
+ "items": {
5796
+ "type": "string"
5797
+ }
5798
+ },
5799
+ "notify_when_signed": {
5800
+ "type": "boolean"
5801
+ },
5802
+ "reminders": {
5803
+ "type": "object",
5804
+ "additionalProperties": false,
5805
+ "required": [
5806
+ "interval_days",
5807
+ "max_count"
5808
+ ],
5809
+ "properties": {
5810
+ "interval_days": {
5811
+ "type": "integer",
5812
+ "minimum": 1,
5813
+ "maximum": 30
5814
+ },
5815
+ "max_count": {
5816
+ "type": "integer",
5817
+ "minimum": 1,
5818
+ "maximum": 10
5819
+ }
5820
+ }
4269
5821
  }
4270
5822
  },
4271
5823
  "additionalProperties": false
4272
5824
  }
4273
5825
  }
4274
- }
5826
+ },
5827
+ "verifyEmailDomain": {}
4275
5828
  },
4276
5829
  "routes": {
4277
5830
  "DELETE /combined_pdfs/{combined_pdf_id}": "expireCombinedPdf",
4278
5831
  "DELETE /custom_files/{custom_file_id}": "deleteCustomFile",
5832
+ "DELETE /email_actions/{email_action_id}": "deleteAccountEmailAction",
5833
+ "DELETE /email_domains/{email_domain_id}": "deleteEmailDomain",
4279
5834
  "DELETE /folders/{folder_id}": "deleteFolder",
4280
5835
  "DELETE /submissions/{submission_id}": "expireSubmission",
4281
5836
  "DELETE /templates/{template_id}": "deleteTemplate",
5837
+ "DELETE /templates/{template_id}/email_actions/{email_action_id}": "deleteEmailAction",
5838
+ "DELETE /templates/{template_id}/email_actions/{email_action_id}/customization": "deleteEmailActionCustomization",
4282
5839
  "DELETE /webhooks/{webhook_id}": "deleteWebhook",
4283
5840
  "GET /authentication": "testAuthentication",
4284
5841
  "GET /combined_pdfs": "listCombinedPdfs",
4285
5842
  "GET /combined_pdfs/{combined_pdf_id}": "getCombinedPdf",
4286
5843
  "GET /custom_files": "listCustomFiles",
4287
5844
  "GET /custom_files/{custom_file_id}": "getCustomFile",
5845
+ "GET /email_actions": "listAccountEmailActions",
5846
+ "GET /email_actions/{email_action_id}": "getAccountEmailAction",
5847
+ "GET /email_domains": "listEmailDomains",
5848
+ "GET /email_domains/{email_domain_id}": "getEmailDomain",
4288
5849
  "GET /folders": "listFolders",
4289
5850
  "GET /folders/{folder_id}": "getFolder",
4290
5851
  "GET /signature_requests/{signature_request_id}": "getSignatureRequest",
@@ -4294,6 +5855,8 @@
4294
5855
  "GET /templates": "listTemplates",
4295
5856
  "GET /templates/{template_id}": "getTemplate",
4296
5857
  "GET /templates/{template_id}/diff": "getTemplateDiff",
5858
+ "GET /templates/{template_id}/email_actions": "listEmailActions",
5859
+ "GET /templates/{template_id}/email_actions/{email_action_id}": "getEmailAction",
4297
5860
  "GET /templates/{template_id}/fields": "listTemplateFields",
4298
5861
  "GET /templates/{template_id}/model_code": "getTemplateModelCode",
4299
5862
  "GET /templates/{template_id}/page_images": "getTemplatePageImages",
@@ -4305,6 +5868,10 @@
4305
5868
  "GET /webhooks/{webhook_id}": "getWebhook",
4306
5869
  "POST /combined_pdfs": "createCombinedPdf",
4307
5870
  "POST /custom_files": "createCustomFileFromUpload",
5871
+ "POST /email_actions": "createAccountEmailAction",
5872
+ "POST /email_actions/{email_action_id}/test_email": "sendAccountEmailActionTestEmail",
5873
+ "POST /email_domains": "createEmailDomain",
5874
+ "POST /email_domains/{email_domain_id}/verify": "verifyEmailDomain",
4308
5875
  "POST /folders": "createFolder",
4309
5876
  "POST /folders/{folder_id}/move": "moveFolder",
4310
5877
  "POST /folders/{folder_id}/rename": "renameFolder",
@@ -4316,6 +5883,8 @@
4316
5883
  "POST /templates": "createTemplate",
4317
5884
  "POST /templates/upload": "uploadTemplate",
4318
5885
  "POST /templates/{template_id}/copy": "copyTemplate",
5886
+ "POST /templates/{template_id}/email_actions": "createEmailAction",
5887
+ "POST /templates/{template_id}/email_actions/{email_action_id}/test_email": "sendEmailActionTestEmail",
4319
5888
  "POST /templates/{template_id}/fields": "addTemplateFields",
4320
5889
  "POST /templates/{template_id}/fields/remove": "removeTemplateFields",
4321
5890
  "POST /templates/{template_id}/fields/reorder": "reorderTemplateFields",
@@ -4326,10 +5895,13 @@
4326
5895
  "POST /templates/{template_id}/submissions": "createSubmission",
4327
5896
  "POST /templates/{template_id}/submissions/validate": "validateSubmission",
4328
5897
  "POST /webhooks": "createWebhook",
5898
+ "PUT /email_actions/{email_action_id}": "updateAccountEmailAction",
4329
5899
  "PUT /signature_requests/{signature_request_id}": "updateSignatureRequest",
4330
5900
  "PUT /templates/{template_id}": "updateTemplate",
4331
5901
  "PUT /templates/{template_id}/document": "updateTemplateDocument",
4332
5902
  "PUT /templates/{template_id}/document/upload": "uploadTemplateDocument",
5903
+ "PUT /templates/{template_id}/email_actions/{email_action_id}": "updateEmailAction",
5904
+ "PUT /templates/{template_id}/email_actions/{email_action_id}/customization": "updateEmailActionCustomization",
4333
5905
  "PUT /templates/{template_id}/fields": "updateTemplateFields",
4334
5906
  "PUT /webhooks/{webhook_id}": "updateWebhook"
4335
5907
  },
@@ -4348,7 +5920,8 @@
4348
5920
  },
4349
5921
  "id": {
4350
5922
  "type": "string",
4351
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
5923
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5924
+ "x-pattern-message": "can't be blank"
4352
5925
  }
4353
5926
  },
4354
5927
  "additionalProperties": false,
@@ -4371,7 +5944,8 @@
4371
5944
  },
4372
5945
  "id": {
4373
5946
  "type": "string",
4374
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
5947
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5948
+ "x-pattern-message": "can't be blank"
4375
5949
  }
4376
5950
  },
4377
5951
  "additionalProperties": false,
@@ -4796,10 +6370,17 @@
4796
6370
  "type": "string",
4797
6371
  "enum": [
4798
6372
  "equals",
6373
+ "not_equals",
4799
6374
  "contains",
6375
+ "not_contains",
4800
6376
  "starts_with",
6377
+ "not_starts_with",
4801
6378
  "ends_with",
4802
- "regex"
6379
+ "not_ends_with",
6380
+ "regex",
6381
+ "not_regex",
6382
+ "blank",
6383
+ "not_blank"
4803
6384
  ]
4804
6385
  },
4805
6386
  "number_condition_type": {
@@ -4993,7 +6574,8 @@
4993
6574
  },
4994
6575
  "id": {
4995
6576
  "type": "string",
4996
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
6577
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
6578
+ "x-pattern-message": "can't be blank"
4997
6579
  }
4998
6580
  },
4999
6581
  "additionalProperties": false,
@@ -5016,11 +6598,12 @@
5016
6598
  },
5017
6599
  "id": {
5018
6600
  "type": "string",
5019
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
6601
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
6602
+ "x-pattern-message": "can't be blank"
5020
6603
  },
5021
6604
  "template_version": {
5022
6605
  "type": "string",
5023
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
6606
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
5024
6607
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
5025
6608
  },
5026
6609
  "processed": {