docspring 4.5.0 → 4.7.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 (464) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +47 -0
  3. data/README.md +8 -1
  4. data/lib/docspring/api/client.rb +504 -4
  5. data/lib/docspring/api_client.rb +1 -1
  6. data/lib/docspring/models/ask_support_help_request.rb +217 -0
  7. data/lib/docspring/models/combined_pdf.rb +1 -1
  8. data/lib/docspring/models/create_account_email_action_request.rb +1 -1
  9. data/lib/docspring/models/create_combined_pdf_request.rb +1 -1
  10. data/lib/docspring/models/create_email_action_request.rb +1 -1
  11. data/lib/docspring/models/create_submission_request.rb +5 -5
  12. data/lib/docspring/models/create_template_request.rb +76 -12
  13. data/lib/docspring/models/email_action.rb +1 -1
  14. data/lib/docspring/models/error_code.rb +4 -1
  15. data/lib/docspring/models/error_info.rb +12 -2
  16. data/lib/docspring/models/field.rb +166 -3
  17. data/lib/docspring/models/field_input.rb +77 -3
  18. data/lib/docspring/models/field_override.rb +55 -2
  19. data/lib/docspring/models/generated_file.rb +2 -2
  20. data/lib/docspring/models/number_part.rb +42 -0
  21. data/lib/docspring/models/open_support_ticket_request.rb +363 -0
  22. data/lib/docspring/models/predefined_field.rb +14 -1
  23. data/lib/docspring/models/predefined_field_input.rb +14 -1
  24. data/lib/docspring/models/reply_to_support_ticket_request.rb +217 -0
  25. data/lib/docspring/models/send_support_feedback_request.rb +363 -0
  26. data/lib/docspring/models/signature_request.rb +3 -3
  27. data/lib/docspring/models/signature_request_input.rb +3 -10
  28. data/lib/docspring/models/submission.rb +3 -3
  29. data/lib/docspring/models/submission_files.rb +11 -1
  30. data/lib/docspring/models/submission_input.rb +2 -2
  31. data/lib/docspring/models/submission_summary.rb +1 -1
  32. data/lib/docspring/models/support_feedback.rb +239 -0
  33. data/lib/docspring/models/support_help.rb +316 -0
  34. data/lib/docspring/models/support_help_source.rb +212 -0
  35. data/lib/docspring/models/support_help_state.rb +42 -0
  36. data/lib/docspring/models/support_help_turn.rb +234 -0
  37. data/lib/docspring/models/support_help_turn_role.rb +41 -0
  38. data/lib/docspring/models/support_message.rb +301 -0
  39. data/lib/docspring/models/support_message_author.rb +42 -0
  40. data/lib/docspring/models/support_report_agent.rb +188 -0
  41. data/lib/docspring/models/support_report_category.rb +57 -0
  42. data/lib/docspring/models/support_report_impact.rb +42 -0
  43. data/lib/docspring/models/support_report_kind.rb +47 -0
  44. data/lib/docspring/models/support_report_source.rb +41 -0
  45. data/lib/docspring/models/support_ticket.rb +637 -0
  46. data/lib/docspring/models/support_ticket_list.rb +200 -0
  47. data/lib/docspring/models/support_ticket_list_status.rb +42 -0
  48. data/lib/docspring/models/support_ticket_notifications.rb +197 -0
  49. data/lib/docspring/models/support_ticket_reply.rb +210 -0
  50. data/lib/docspring/models/support_ticket_reply_outcome.rb +41 -0
  51. data/lib/docspring/models/support_ticket_resolution.rb +45 -0
  52. data/lib/docspring/models/support_ticket_status.rb +43 -0
  53. data/lib/docspring/models/support_ticket_watch.rb +239 -0
  54. data/lib/docspring/models/template.rb +154 -15
  55. data/lib/docspring/models/template_defaults.rb +1 -1
  56. data/lib/docspring/models/template_defaults_input.rb +1 -1
  57. data/lib/docspring/models/template_signer_role.rb +265 -0
  58. data/lib/docspring/models/template_signer_role_input.rb +227 -0
  59. data/lib/docspring/models/update_account_email_action_request.rb +1 -1
  60. data/lib/docspring/models/update_email_action_customization_request.rb +1 -1
  61. data/lib/docspring/models/update_email_action_request.rb +1 -1
  62. data/lib/docspring/models/update_template_document_request.rb +14 -4
  63. data/lib/docspring/models/update_template_request.rb +80 -16
  64. data/lib/docspring/models/validate_submission_request.rb +5 -5
  65. data/lib/docspring/request_schemas.json +704 -12
  66. data/lib/docspring/version.rb +1 -1
  67. data/lib/docspring.rb +29 -0
  68. metadata +31 -591
  69. data/.github/workflows/release.yml +0 -80
  70. data/.gitignore +0 -39
  71. data/.openapi-generator/FILES +0 -593
  72. data/.openapi-generator/VERSION +0 -1
  73. data/.openapi-generator-ignore +0 -23
  74. data/.rspec +0 -2
  75. data/.rubocop.yml +0 -148
  76. data/Gemfile +0 -9
  77. data/Gemfile.lock +0 -146
  78. data/Rakefile +0 -10
  79. data/docs/AddTemplateFieldsRequest.md +0 -18
  80. data/docs/AiFieldNamingLanguage.md +0 -15
  81. data/docs/AuthenticationCheck.md +0 -18
  82. data/docs/BarcodeSymbology.md +0 -15
  83. data/docs/CheckCharacter.md +0 -15
  84. data/docs/Client.md +0 -5890
  85. data/docs/CombinedFieldType.md +0 -15
  86. data/docs/CombinedPdf.md +0 -44
  87. data/docs/CombinedPdfFiles.md +0 -18
  88. data/docs/CombinedPdfList.md +0 -20
  89. data/docs/CombinedPdfSource.md +0 -26
  90. data/docs/CombinedPdfSourceInput.md +0 -88
  91. data/docs/CombinedPdfSourcePdf.md +0 -20
  92. data/docs/CombinedPdfSourceType.md +0 -15
  93. data/docs/CombinedPdfState.md +0 -15
  94. data/docs/CopyTemplateRequest.md +0 -22
  95. data/docs/CreateAccountEmailActionRequest.md +0 -54
  96. data/docs/CreateCombinedPdfRequest.md +0 -26
  97. data/docs/CreateCustomFileFromUploadRequest.md +0 -18
  98. data/docs/CreateEmailActionRequest.md +0 -50
  99. data/docs/CreateEmailDomainRequest.md +0 -18
  100. data/docs/CreateFolderRequest.md +0 -20
  101. data/docs/CreateSignatureRequestEventRequest.md +0 -24
  102. data/docs/CreateSignatureRequestTokenRequest.md +0 -18
  103. data/docs/CreateSubmissionBatchRequest.md +0 -28
  104. data/docs/CreateSubmissionRequest.md +0 -56
  105. data/docs/CreateTemplatePreviewRequest.md +0 -18
  106. data/docs/CreateTemplateRequest.md +0 -130
  107. data/docs/CreateWebhookRequest.md +0 -38
  108. data/docs/CustomFile.md +0 -28
  109. data/docs/CustomFileList.md +0 -20
  110. data/docs/CustomFileSourcePdf.md +0 -20
  111. data/docs/DnsRecordType.md +0 -15
  112. data/docs/EmailAction.md +0 -76
  113. data/docs/EmailActionConditions.md +0 -20
  114. data/docs/EmailActionConditionsInput.md +0 -20
  115. data/docs/EmailActionCustomization.md +0 -36
  116. data/docs/EmailActionDelivery.md +0 -15
  117. data/docs/EmailActionFileFormats.md +0 -15
  118. data/docs/EmailActionList.md +0 -20
  119. data/docs/EmailActionSetting.md +0 -15
  120. data/docs/EmailActionSubmissionType.md +0 -15
  121. data/docs/EmailActionTestEmail.md +0 -18
  122. data/docs/EmailDomain.md +0 -38
  123. data/docs/EmailDomainDnsRecord.md +0 -24
  124. data/docs/EmailDomainDnsRecordPurpose.md +0 -15
  125. data/docs/EmailDomainList.md +0 -20
  126. data/docs/EmailDomainRecordState.md +0 -15
  127. data/docs/EmailDomainState.md +0 -15
  128. data/docs/ErrorCode.md +0 -15
  129. data/docs/ErrorDetail.md +0 -26
  130. data/docs/ErrorInfo.md +0 -42
  131. data/docs/ErrorResponse.md +0 -18
  132. data/docs/ExpirationInterval.md +0 -15
  133. data/docs/Field.md +0 -198
  134. data/docs/FieldComparisonCondition.md +0 -22
  135. data/docs/FieldComparisonOperator.md +0 -15
  136. data/docs/FieldDependency.md +0 -22
  137. data/docs/FieldDependencyInput.md +0 -22
  138. data/docs/FieldDisplayType.md +0 -15
  139. data/docs/FieldEqualsCondition.md +0 -22
  140. data/docs/FieldEqualsOperator.md +0 -15
  141. data/docs/FieldGroup.md +0 -32
  142. data/docs/FieldGroupInput.md +0 -30
  143. data/docs/FieldGroupType.md +0 -15
  144. data/docs/FieldInCondition.md +0 -22
  145. data/docs/FieldInput.md +0 -196
  146. data/docs/FieldOverride.md +0 -142
  147. data/docs/FieldPresenceCondition.md +0 -20
  148. data/docs/FieldPresenceOperator.md +0 -15
  149. data/docs/FieldRangeCondition.md +0 -24
  150. data/docs/FieldReimportState.md +0 -15
  151. data/docs/FieldSetupLogic.md +0 -15
  152. data/docs/FieldSetupNaming.md +0 -15
  153. data/docs/FieldSetupSource.md +0 -15
  154. data/docs/FieldType.md +0 -15
  155. data/docs/Folder.md +0 -28
  156. data/docs/FolderList.md +0 -20
  157. data/docs/GenerateFilesFormat.md +0 -15
  158. data/docs/GenerateSubmissionFilesRequest.md +0 -18
  159. data/docs/GeneratedFile.md +0 -32
  160. data/docs/GeneratedFileState.md +0 -15
  161. data/docs/HtmlEngineOptions.md +0 -36
  162. data/docs/HtmlEngineOptionsInput.md +0 -36
  163. data/docs/ImageGravity.md +0 -15
  164. data/docs/ImageScaleType.md +0 -15
  165. data/docs/ModelCodeLanguage.md +0 -15
  166. data/docs/MoveFolderRequest.md +0 -18
  167. data/docs/MoveTemplateRequest.md +0 -18
  168. data/docs/NumberConditionType.md +0 -15
  169. data/docs/OutputFormat.md +0 -15
  170. data/docs/PageFormat.md +0 -15
  171. data/docs/PageImage.md +0 -34
  172. data/docs/PageImages.md +0 -24
  173. data/docs/PredefinedField.md +0 -30
  174. data/docs/PredefinedFieldInput.md +0 -30
  175. data/docs/PublishTemplateVersionRequest.md +0 -20
  176. data/docs/RemoveTemplateFieldsRequest.md +0 -18
  177. data/docs/RenameFolderRequest.md +0 -18
  178. data/docs/ReorderTemplateFieldsRequest.md +0 -18
  179. data/docs/RestoreTemplateVersionRequest.md +0 -18
  180. data/docs/SendAccountEmailActionTestEmailRequest.md +0 -18
  181. data/docs/ShapeType.md +0 -15
  182. data/docs/SignatureRequest.md +0 -74
  183. data/docs/SignatureRequestAuthSecondFactorType.md +0 -15
  184. data/docs/SignatureRequestAuthType.md +0 -15
  185. data/docs/SignatureRequestEmailAttachments.md +0 -15
  186. data/docs/SignatureRequestEmailStatus.md +0 -15
  187. data/docs/SignatureRequestEvent.md +0 -32
  188. data/docs/SignatureRequestEventType.md +0 -15
  189. data/docs/SignatureRequestInput.md +0 -50
  190. data/docs/SignatureRequestMessageType.md +0 -15
  191. data/docs/SignatureRequestReminders.md +0 -20
  192. data/docs/SignatureRequestState.md +0 -15
  193. data/docs/SignatureRequestToken.md +0 -30
  194. data/docs/SignatureRequestTokenType.md +0 -15
  195. data/docs/SigningOrder.md +0 -15
  196. data/docs/StringConditionType.md +0 -15
  197. data/docs/Submission.md +0 -68
  198. data/docs/SubmissionAction.md +0 -30
  199. data/docs/SubmissionActionState.md +0 -15
  200. data/docs/SubmissionActionType.md +0 -15
  201. data/docs/SubmissionBatch.md +0 -38
  202. data/docs/SubmissionBatchState.md +0 -15
  203. data/docs/SubmissionFiles.md +0 -28
  204. data/docs/SubmissionInput.md +0 -40
  205. data/docs/SubmissionList.md +0 -20
  206. data/docs/SubmissionSource.md +0 -15
  207. data/docs/SubmissionSourcePdf.md +0 -20
  208. data/docs/SubmissionState.md +0 -15
  209. data/docs/SubmissionSummary.md +0 -54
  210. data/docs/SubmissionValidation.md +0 -24
  211. data/docs/Template.md +0 -142
  212. data/docs/TemplateActor.md +0 -26
  213. data/docs/TemplateActorType.md +0 -15
  214. data/docs/TemplateDefaults.md +0 -56
  215. data/docs/TemplateDefaultsInput.md +0 -56
  216. data/docs/TemplateDiff.md +0 -30
  217. data/docs/TemplateDiffSummary.md +0 -28
  218. data/docs/TemplateDocument.md +0 -40
  219. data/docs/TemplateDocumentState.md +0 -15
  220. data/docs/TemplateDocumentSummary.md +0 -24
  221. data/docs/TemplateFieldChange.md +0 -24
  222. data/docs/TemplateFieldChanges.md +0 -24
  223. data/docs/TemplateFieldDependency.md +0 -26
  224. data/docs/TemplateFieldDependencyAction.md +0 -15
  225. data/docs/TemplateFieldDependencyCondition.md +0 -24
  226. data/docs/TemplateFieldDependencyConditionInput.md +0 -93
  227. data/docs/TemplateFieldDependencyInput.md +0 -26
  228. data/docs/TemplateFieldDependencyMatch.md +0 -15
  229. data/docs/TemplateFieldDependencyOperator.md +0 -15
  230. data/docs/TemplateFieldLogicStatus.md +0 -15
  231. data/docs/TemplateFieldMove.md +0 -22
  232. data/docs/TemplateFields.md +0 -22
  233. data/docs/TemplateFormMode.md +0 -15
  234. data/docs/TemplateFormSection.md +0 -24
  235. data/docs/TemplateFormSectionInput.md +0 -24
  236. data/docs/TemplateModelCode.md +0 -22
  237. data/docs/TemplatePageAiError.md +0 -15
  238. data/docs/TemplatePageAiNamingStatus.md +0 -15
  239. data/docs/TemplatePageFieldsStatus.md +0 -15
  240. data/docs/TemplatePageImageStatus.md +0 -15
  241. data/docs/TemplatePageImages.md +0 -24
  242. data/docs/TemplatePageProcessingStatus.md +0 -26
  243. data/docs/TemplatePreview.md +0 -32
  244. data/docs/TemplatePreviewState.md +0 -15
  245. data/docs/TemplateSourcePdf.md +0 -24
  246. data/docs/TemplateSummary.md +0 -46
  247. data/docs/TemplateSummaryList.md +0 -20
  248. data/docs/TemplateType.md +0 -15
  249. data/docs/TemplateVersion.md +0 -24
  250. data/docs/TemplateVersionType.md +0 -15
  251. data/docs/TextAlignment.md +0 -15
  252. data/docs/TextOverflow.md +0 -15
  253. data/docs/TextVerticalAlignment.md +0 -15
  254. data/docs/Typeface.md +0 -15
  255. data/docs/UpdateAccountEmailActionRequest.md +0 -54
  256. data/docs/UpdateEmailActionCustomizationRequest.md +0 -46
  257. data/docs/UpdateEmailActionRequest.md +0 -50
  258. data/docs/UpdateSignatureRequestRequest.md +0 -34
  259. data/docs/UpdateTemplateDocumentRequest.md +0 -26
  260. data/docs/UpdateTemplateFieldsRequest.md +0 -18
  261. data/docs/UpdateTemplateRequest.md +0 -114
  262. data/docs/UpdateWebhookRequest.md +0 -38
  263. data/docs/UploadMethod.md +0 -15
  264. data/docs/UploadPresign.md +0 -24
  265. data/docs/UrlSourcePdf.md +0 -20
  266. data/docs/ValidateSubmissionRequest.md +0 -56
  267. data/docs/Webhook.md +0 -56
  268. data/docs/WebhookEventType.md +0 -15
  269. data/docs/WebhookList.md +0 -20
  270. data/docs/WebhookMode.md +0 -15
  271. data/docspring.gemspec +0 -40
  272. data/spec/api/client_spec.rb +0 -1103
  273. data/spec/models/add_template_fields_request_spec.rb +0 -36
  274. data/spec/models/ai_field_naming_language_spec.rb +0 -30
  275. data/spec/models/authentication_check_spec.rb +0 -36
  276. data/spec/models/barcode_symbology_spec.rb +0 -30
  277. data/spec/models/check_character_spec.rb +0 -30
  278. data/spec/models/combined_field_type_spec.rb +0 -30
  279. data/spec/models/combined_pdf_files_spec.rb +0 -36
  280. data/spec/models/combined_pdf_list_spec.rb +0 -42
  281. data/spec/models/combined_pdf_source_input_spec.rb +0 -44
  282. data/spec/models/combined_pdf_source_pdf_spec.rb +0 -42
  283. data/spec/models/combined_pdf_source_spec.rb +0 -60
  284. data/spec/models/combined_pdf_source_type_spec.rb +0 -30
  285. data/spec/models/combined_pdf_spec.rb +0 -114
  286. data/spec/models/combined_pdf_state_spec.rb +0 -30
  287. data/spec/models/copy_template_request_spec.rb +0 -48
  288. data/spec/models/create_account_email_action_request_spec.rb +0 -144
  289. data/spec/models/create_combined_pdf_request_spec.rb +0 -60
  290. data/spec/models/create_custom_file_from_upload_request_spec.rb +0 -36
  291. data/spec/models/create_email_action_request_spec.rb +0 -132
  292. data/spec/models/create_email_domain_request_spec.rb +0 -36
  293. data/spec/models/create_folder_request_spec.rb +0 -42
  294. data/spec/models/create_signature_request_event_request_spec.rb +0 -54
  295. data/spec/models/create_signature_request_token_request_spec.rb +0 -36
  296. data/spec/models/create_submission_batch_request_spec.rb +0 -66
  297. data/spec/models/create_submission_request_spec.rb +0 -150
  298. data/spec/models/create_template_preview_request_spec.rb +0 -36
  299. data/spec/models/create_template_request_spec.rb +0 -372
  300. data/spec/models/create_webhook_request_spec.rb +0 -96
  301. data/spec/models/custom_file_list_spec.rb +0 -42
  302. data/spec/models/custom_file_source_pdf_spec.rb +0 -42
  303. data/spec/models/custom_file_spec.rb +0 -66
  304. data/spec/models/dns_record_type_spec.rb +0 -30
  305. data/spec/models/email_action_conditions_input_spec.rb +0 -42
  306. data/spec/models/email_action_conditions_spec.rb +0 -42
  307. data/spec/models/email_action_customization_spec.rb +0 -90
  308. data/spec/models/email_action_delivery_spec.rb +0 -30
  309. data/spec/models/email_action_file_formats_spec.rb +0 -30
  310. data/spec/models/email_action_list_spec.rb +0 -42
  311. data/spec/models/email_action_setting_spec.rb +0 -30
  312. data/spec/models/email_action_spec.rb +0 -210
  313. data/spec/models/email_action_submission_type_spec.rb +0 -30
  314. data/spec/models/email_action_test_email_spec.rb +0 -36
  315. data/spec/models/email_domain_dns_record_purpose_spec.rb +0 -30
  316. data/spec/models/email_domain_dns_record_spec.rb +0 -54
  317. data/spec/models/email_domain_list_spec.rb +0 -42
  318. data/spec/models/email_domain_record_state_spec.rb +0 -30
  319. data/spec/models/email_domain_spec.rb +0 -96
  320. data/spec/models/email_domain_state_spec.rb +0 -30
  321. data/spec/models/error_code_spec.rb +0 -30
  322. data/spec/models/error_detail_spec.rb +0 -60
  323. data/spec/models/error_info_spec.rb +0 -108
  324. data/spec/models/error_response_spec.rb +0 -36
  325. data/spec/models/expiration_interval_spec.rb +0 -30
  326. data/spec/models/field_comparison_condition_spec.rb +0 -48
  327. data/spec/models/field_comparison_operator_spec.rb +0 -30
  328. data/spec/models/field_dependency_input_spec.rb +0 -48
  329. data/spec/models/field_dependency_spec.rb +0 -48
  330. data/spec/models/field_display_type_spec.rb +0 -30
  331. data/spec/models/field_equals_condition_spec.rb +0 -48
  332. data/spec/models/field_equals_operator_spec.rb +0 -30
  333. data/spec/models/field_group_input_spec.rb +0 -72
  334. data/spec/models/field_group_spec.rb +0 -78
  335. data/spec/models/field_group_type_spec.rb +0 -30
  336. data/spec/models/field_in_condition_spec.rb +0 -48
  337. data/spec/models/field_input_spec.rb +0 -570
  338. data/spec/models/field_override_spec.rb +0 -408
  339. data/spec/models/field_presence_condition_spec.rb +0 -42
  340. data/spec/models/field_presence_operator_spec.rb +0 -30
  341. data/spec/models/field_range_condition_spec.rb +0 -54
  342. data/spec/models/field_reimport_state_spec.rb +0 -30
  343. data/spec/models/field_setup_logic_spec.rb +0 -30
  344. data/spec/models/field_setup_naming_spec.rb +0 -30
  345. data/spec/models/field_setup_source_spec.rb +0 -30
  346. data/spec/models/field_spec.rb +0 -576
  347. data/spec/models/field_type_spec.rb +0 -30
  348. data/spec/models/folder_list_spec.rb +0 -42
  349. data/spec/models/folder_spec.rb +0 -66
  350. data/spec/models/generate_files_format_spec.rb +0 -30
  351. data/spec/models/generate_submission_files_request_spec.rb +0 -36
  352. data/spec/models/generated_file_spec.rb +0 -78
  353. data/spec/models/generated_file_state_spec.rb +0 -30
  354. data/spec/models/html_engine_options_input_spec.rb +0 -90
  355. data/spec/models/html_engine_options_spec.rb +0 -90
  356. data/spec/models/image_gravity_spec.rb +0 -30
  357. data/spec/models/image_scale_type_spec.rb +0 -30
  358. data/spec/models/model_code_language_spec.rb +0 -30
  359. data/spec/models/move_folder_request_spec.rb +0 -36
  360. data/spec/models/move_template_request_spec.rb +0 -36
  361. data/spec/models/number_condition_type_spec.rb +0 -30
  362. data/spec/models/output_format_spec.rb +0 -30
  363. data/spec/models/page_format_spec.rb +0 -30
  364. data/spec/models/page_image_spec.rb +0 -84
  365. data/spec/models/page_images_spec.rb +0 -54
  366. data/spec/models/predefined_field_input_spec.rb +0 -72
  367. data/spec/models/predefined_field_spec.rb +0 -72
  368. data/spec/models/publish_template_version_request_spec.rb +0 -42
  369. data/spec/models/remove_template_fields_request_spec.rb +0 -36
  370. data/spec/models/rename_folder_request_spec.rb +0 -36
  371. data/spec/models/reorder_template_fields_request_spec.rb +0 -36
  372. data/spec/models/restore_template_version_request_spec.rb +0 -36
  373. data/spec/models/send_account_email_action_test_email_request_spec.rb +0 -36
  374. data/spec/models/shape_type_spec.rb +0 -30
  375. data/spec/models/signature_request_auth_second_factor_type_spec.rb +0 -30
  376. data/spec/models/signature_request_auth_type_spec.rb +0 -30
  377. data/spec/models/signature_request_email_attachments_spec.rb +0 -30
  378. data/spec/models/signature_request_email_status_spec.rb +0 -30
  379. data/spec/models/signature_request_event_spec.rb +0 -78
  380. data/spec/models/signature_request_event_type_spec.rb +0 -30
  381. data/spec/models/signature_request_input_spec.rb +0 -132
  382. data/spec/models/signature_request_message_type_spec.rb +0 -30
  383. data/spec/models/signature_request_reminders_spec.rb +0 -42
  384. data/spec/models/signature_request_spec.rb +0 -204
  385. data/spec/models/signature_request_state_spec.rb +0 -30
  386. data/spec/models/signature_request_token_spec.rb +0 -72
  387. data/spec/models/signature_request_token_type_spec.rb +0 -30
  388. data/spec/models/signing_order_spec.rb +0 -30
  389. data/spec/models/string_condition_type_spec.rb +0 -30
  390. data/spec/models/submission_action_spec.rb +0 -72
  391. data/spec/models/submission_action_state_spec.rb +0 -30
  392. data/spec/models/submission_action_type_spec.rb +0 -30
  393. data/spec/models/submission_batch_spec.rb +0 -96
  394. data/spec/models/submission_batch_state_spec.rb +0 -30
  395. data/spec/models/submission_files_spec.rb +0 -66
  396. data/spec/models/submission_input_spec.rb +0 -102
  397. data/spec/models/submission_list_spec.rb +0 -42
  398. data/spec/models/submission_source_pdf_spec.rb +0 -42
  399. data/spec/models/submission_source_spec.rb +0 -30
  400. data/spec/models/submission_spec.rb +0 -186
  401. data/spec/models/submission_state_spec.rb +0 -30
  402. data/spec/models/submission_summary_spec.rb +0 -144
  403. data/spec/models/submission_validation_spec.rb +0 -54
  404. data/spec/models/template_actor_spec.rb +0 -60
  405. data/spec/models/template_actor_type_spec.rb +0 -30
  406. data/spec/models/template_defaults_input_spec.rb +0 -150
  407. data/spec/models/template_defaults_spec.rb +0 -150
  408. data/spec/models/template_diff_spec.rb +0 -72
  409. data/spec/models/template_diff_summary_spec.rb +0 -66
  410. data/spec/models/template_document_spec.rb +0 -102
  411. data/spec/models/template_document_state_spec.rb +0 -30
  412. data/spec/models/template_document_summary_spec.rb +0 -54
  413. data/spec/models/template_field_change_spec.rb +0 -54
  414. data/spec/models/template_field_changes_spec.rb +0 -54
  415. data/spec/models/template_field_dependency_action_spec.rb +0 -30
  416. data/spec/models/template_field_dependency_condition_input_spec.rb +0 -44
  417. data/spec/models/template_field_dependency_condition_spec.rb +0 -54
  418. data/spec/models/template_field_dependency_input_spec.rb +0 -60
  419. data/spec/models/template_field_dependency_match_spec.rb +0 -30
  420. data/spec/models/template_field_dependency_operator_spec.rb +0 -30
  421. data/spec/models/template_field_dependency_spec.rb +0 -60
  422. data/spec/models/template_field_logic_status_spec.rb +0 -30
  423. data/spec/models/template_field_move_spec.rb +0 -48
  424. data/spec/models/template_fields_spec.rb +0 -48
  425. data/spec/models/template_form_mode_spec.rb +0 -30
  426. data/spec/models/template_form_section_input_spec.rb +0 -54
  427. data/spec/models/template_form_section_spec.rb +0 -54
  428. data/spec/models/template_model_code_spec.rb +0 -48
  429. data/spec/models/template_page_ai_error_spec.rb +0 -30
  430. data/spec/models/template_page_ai_naming_status_spec.rb +0 -30
  431. data/spec/models/template_page_fields_status_spec.rb +0 -30
  432. data/spec/models/template_page_image_status_spec.rb +0 -30
  433. data/spec/models/template_page_images_spec.rb +0 -54
  434. data/spec/models/template_page_processing_status_spec.rb +0 -60
  435. data/spec/models/template_preview_spec.rb +0 -78
  436. data/spec/models/template_preview_state_spec.rb +0 -30
  437. data/spec/models/template_source_pdf_spec.rb +0 -54
  438. data/spec/models/template_spec.rb +0 -408
  439. data/spec/models/template_summary_list_spec.rb +0 -42
  440. data/spec/models/template_summary_spec.rb +0 -120
  441. data/spec/models/template_type_spec.rb +0 -30
  442. data/spec/models/template_version_spec.rb +0 -54
  443. data/spec/models/template_version_type_spec.rb +0 -30
  444. data/spec/models/text_alignment_spec.rb +0 -30
  445. data/spec/models/text_overflow_spec.rb +0 -30
  446. data/spec/models/text_vertical_alignment_spec.rb +0 -30
  447. data/spec/models/typeface_spec.rb +0 -30
  448. data/spec/models/update_account_email_action_request_spec.rb +0 -144
  449. data/spec/models/update_email_action_customization_request_spec.rb +0 -120
  450. data/spec/models/update_email_action_request_spec.rb +0 -132
  451. data/spec/models/update_signature_request_request_spec.rb +0 -84
  452. data/spec/models/update_template_document_request_spec.rb +0 -60
  453. data/spec/models/update_template_fields_request_spec.rb +0 -36
  454. data/spec/models/update_template_request_spec.rb +0 -324
  455. data/spec/models/update_webhook_request_spec.rb +0 -96
  456. data/spec/models/upload_method_spec.rb +0 -30
  457. data/spec/models/upload_presign_spec.rb +0 -54
  458. data/spec/models/url_source_pdf_spec.rb +0 -42
  459. data/spec/models/validate_submission_request_spec.rb +0 -150
  460. data/spec/models/webhook_event_type_spec.rb +0 -30
  461. data/spec/models/webhook_list_spec.rb +0 -42
  462. data/spec/models/webhook_mode_spec.rb +0 -30
  463. data/spec/models/webhook_spec.rb +0 -150
  464. data/spec/spec_helper.rb +0 -111
@@ -0,0 +1,363 @@
1
+ =begin
2
+ #DocSpring API
3
+
4
+ #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.
5
+
6
+ The version of the OpenAPI document: v2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0-DOCSPRING
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DocSpring
17
+ # Something about DocSpring that got in the way while the work still got done. Never include secrets, credentials or your users' data.
18
+ class SendSupportFeedbackRequest < ApiModelBase
19
+ # One line, written like an issue title.
20
+ attr_accessor :title
21
+
22
+ # What kind of problem this is.
23
+ attr_accessor :kind
24
+
25
+ # The part of DocSpring this is about.
26
+ attr_accessor :category
27
+
28
+ # What was tried, what was expected and what happened.
29
+ attr_accessor :description
30
+
31
+ # `blocked`: the task could not be done. `worked_around`: it was done another way. `friction`: it was only slower.
32
+ attr_accessor :impact
33
+
34
+ # What the user asked for, in a short phrase.
35
+ attr_accessor :task
36
+
37
+ # The request IDs of the requests that went wrong: `error.request_id` in an error response, or any response's `X-Request-Id` header.
38
+ attr_accessor :request_ids
39
+
40
+ # The API operation, MCP tool or CLI command involved.
41
+ attr_accessor :tool
42
+
43
+ # The exact error text.
44
+ attr_accessor :error
45
+
46
+ # What would have helped.
47
+ attr_accessor :suggestion
48
+
49
+ # `user`: the user asked for this to be sent. `agent` (the default): an AI agent noticed the problem itself.
50
+ attr_accessor :source
51
+
52
+ # A label the sender chooses for its work, such as a session ID, a branch or a task name. When an account runs several agents at once, each can list only the tickets opened with its own label.
53
+ attr_accessor :session
54
+
55
+ # The AI agent sending this, as it describes itself. Stored as unverified.
56
+ attr_accessor :agent
57
+
58
+ class EnumAttributeValidator
59
+ attr_reader :datatype
60
+ attr_reader :allowable_values
61
+
62
+ def initialize(datatype, allowable_values)
63
+ @allowable_values = allowable_values.map do |value|
64
+ case datatype.to_s
65
+ when /Integer/i
66
+ value.to_i
67
+ when /Float/i
68
+ value.to_f
69
+ else
70
+ value
71
+ end
72
+ end
73
+ end
74
+
75
+ def valid?(value)
76
+ !value || allowable_values.include?(value)
77
+ end
78
+ end
79
+
80
+ # Attribute mapping from ruby-style variable name to JSON key.
81
+ def self.attribute_map
82
+ {
83
+ :'title' => :'title',
84
+ :'kind' => :'kind',
85
+ :'category' => :'category',
86
+ :'description' => :'description',
87
+ :'impact' => :'impact',
88
+ :'task' => :'task',
89
+ :'request_ids' => :'request_ids',
90
+ :'tool' => :'tool',
91
+ :'error' => :'error',
92
+ :'suggestion' => :'suggestion',
93
+ :'source' => :'source',
94
+ :'session' => :'session',
95
+ :'agent' => :'agent'
96
+ }
97
+ end
98
+
99
+ # Returns attribute mapping this model knows about
100
+ def self.acceptable_attribute_map
101
+ attribute_map
102
+ end
103
+
104
+ # Returns all the JSON keys this model knows about
105
+ def self.acceptable_attributes
106
+ acceptable_attribute_map.values
107
+ end
108
+
109
+ # Attribute type mapping.
110
+ def self.openapi_types
111
+ {
112
+ :'title' => :'String',
113
+ :'kind' => :'SupportReportKind',
114
+ :'category' => :'SupportReportCategory',
115
+ :'description' => :'String',
116
+ :'impact' => :'SupportReportImpact',
117
+ :'task' => :'String',
118
+ :'request_ids' => :'Array<String>',
119
+ :'tool' => :'String',
120
+ :'error' => :'String',
121
+ :'suggestion' => :'String',
122
+ :'source' => :'SupportReportSource',
123
+ :'session' => :'String',
124
+ :'agent' => :'SupportReportAgent'
125
+ }
126
+ end
127
+
128
+ # List of attributes with nullable: true
129
+ def self.openapi_nullable
130
+ Set.new([
131
+ ])
132
+ end
133
+
134
+ # Returns attribute type mapping
135
+ def self.acceptable_openapi_types
136
+ openapi_types
137
+ end
138
+
139
+ # Returns the nullable attributes
140
+ def self.acceptable_openapi_nullable
141
+ openapi_nullable
142
+ end
143
+
144
+ # Initializes the object
145
+ # @param [Hash] attributes Model attributes in the form of hash
146
+ def initialize(attributes = {})
147
+ if (!attributes.is_a?(Hash))
148
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::SendSupportFeedbackRequest` initialize method"
149
+ end
150
+
151
+ # check to see if the attribute exists and convert string to symbol for hash key
152
+ acceptable_attribute_map = self.class.acceptable_attribute_map
153
+ attributes = attributes.each_with_object({}) { |(k, v), h|
154
+ if (!acceptable_attribute_map.key?(k.to_sym))
155
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::SendSupportFeedbackRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
156
+ end
157
+ h[k.to_sym] = v
158
+ }
159
+
160
+ if attributes.key?(:'title')
161
+ self.title = attributes[:'title']
162
+ else
163
+ self.title = nil
164
+ end
165
+
166
+ if attributes.key?(:'kind')
167
+ self.kind = attributes[:'kind']
168
+ else
169
+ self.kind = nil
170
+ end
171
+
172
+ if attributes.key?(:'category')
173
+ self.category = attributes[:'category']
174
+ end
175
+
176
+ if attributes.key?(:'description')
177
+ self.description = attributes[:'description']
178
+ else
179
+ self.description = nil
180
+ end
181
+
182
+ if attributes.key?(:'impact')
183
+ self.impact = attributes[:'impact']
184
+ end
185
+
186
+ if attributes.key?(:'task')
187
+ self.task = attributes[:'task']
188
+ end
189
+
190
+ if attributes.key?(:'request_ids')
191
+ if (value = attributes[:'request_ids']).is_a?(Array)
192
+ self.request_ids = value
193
+ end
194
+ end
195
+
196
+ if attributes.key?(:'tool')
197
+ self.tool = attributes[:'tool']
198
+ end
199
+
200
+ if attributes.key?(:'error')
201
+ self.error = attributes[:'error']
202
+ end
203
+
204
+ if attributes.key?(:'suggestion')
205
+ self.suggestion = attributes[:'suggestion']
206
+ end
207
+
208
+ if attributes.key?(:'source')
209
+ self.source = attributes[:'source']
210
+ end
211
+
212
+ if attributes.key?(:'session')
213
+ self.session = attributes[:'session']
214
+ end
215
+
216
+ if attributes.key?(:'agent')
217
+ self.agent = attributes[:'agent']
218
+ end
219
+ end
220
+
221
+ # Show invalid properties with the reasons. Usually used together with valid?
222
+ # @return Array for valid properties with the reasons
223
+ def list_invalid_properties
224
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
225
+ invalid_properties = Array.new
226
+ if @title.nil?
227
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
228
+ end
229
+
230
+ if @kind.nil?
231
+ invalid_properties.push('invalid value for "kind", kind cannot be nil.')
232
+ end
233
+
234
+ if @description.nil?
235
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
236
+ end
237
+
238
+ invalid_properties
239
+ end
240
+
241
+ # Check to see if the all the properties in the model are valid
242
+ # @return true if the model is valid
243
+ def valid?
244
+ warn '[DEPRECATED] the `valid?` method is obsolete'
245
+ return false if @title.nil?
246
+ return false if @kind.nil?
247
+ return false if @description.nil?
248
+ true
249
+ end
250
+
251
+ # Custom attribute writer method with validation
252
+ # @param [Object] title Value to be assigned
253
+ def title=(title)
254
+ if title.nil?
255
+ fail ArgumentError, 'title cannot be nil'
256
+ end
257
+
258
+ @title = title
259
+ end
260
+
261
+ # Custom attribute writer method with validation
262
+ # @param [Object] kind Value to be assigned
263
+ def kind=(kind)
264
+ if kind.nil?
265
+ fail ArgumentError, 'kind cannot be nil'
266
+ end
267
+
268
+ @kind = kind
269
+ end
270
+
271
+ # Custom attribute writer method with validation
272
+ # @param [Object] description Value to be assigned
273
+ def description=(description)
274
+ if description.nil?
275
+ fail ArgumentError, 'description cannot be nil'
276
+ end
277
+
278
+ @description = description
279
+ end
280
+
281
+ # Checks equality by comparing each attribute.
282
+ # @param [Object] Object to be compared
283
+ def ==(o)
284
+ return true if self.equal?(o)
285
+ self.class == o.class &&
286
+ title == o.title &&
287
+ kind == o.kind &&
288
+ category == o.category &&
289
+ description == o.description &&
290
+ impact == o.impact &&
291
+ task == o.task &&
292
+ request_ids == o.request_ids &&
293
+ tool == o.tool &&
294
+ error == o.error &&
295
+ suggestion == o.suggestion &&
296
+ source == o.source &&
297
+ session == o.session &&
298
+ agent == o.agent
299
+ end
300
+
301
+ # @see the `==` method
302
+ # @param [Object] Object to be compared
303
+ def eql?(o)
304
+ self == o
305
+ end
306
+
307
+ # Calculates hash code according to all attributes.
308
+ # @return [Integer] Hash code
309
+ def hash
310
+ [title, kind, category, description, impact, task, request_ids, tool, error, suggestion, source, session, agent].hash
311
+ end
312
+
313
+ # Builds the object from hash
314
+ # @param [Hash] attributes Model attributes in the form of hash
315
+ # @return [Object] Returns the model itself
316
+ def self.build_from_hash(attributes)
317
+ return nil unless attributes.is_a?(Hash)
318
+ attributes = attributes.transform_keys(&:to_sym)
319
+ # include attributes inherited from allOf parents (the nearest declaration wins)
320
+ map = acceptable_attribute_map
321
+ transformed_hash = {}
322
+ acceptable_openapi_types.each_pair do |key, type|
323
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
324
+ transformed_hash["#{key}"] = nil
325
+ elsif type =~ /\AArray<(.*)>/i
326
+ # check to ensure the input is an array given that the attribute
327
+ # is documented as an array but the input is not
328
+ if attributes[map[key]].is_a?(Array)
329
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
330
+ end
331
+ elsif !attributes[map[key]].nil?
332
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
333
+ end
334
+ end
335
+ # Responses can include enum values added after this client was released, so the enum setters
336
+ # accept any value while the model is built from a response
337
+ allocate.tap do |model|
338
+ model.instance_variable_set(:@_skip_enum_validation, true)
339
+ model.send(:initialize, transformed_hash)
340
+ model.remove_instance_variable(:@_skip_enum_validation)
341
+ end
342
+ end
343
+
344
+ # Returns the object in the form of hash
345
+ # @return [Hash] Returns the object in the form of hash
346
+ def to_hash
347
+ hash = {}
348
+ # include attributes inherited from allOf parents (the nearest declaration wins)
349
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
350
+ value = self.send(attr)
351
+ if value.nil?
352
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
353
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
354
+ end
355
+
356
+ hash[param] = _to_hash(value)
357
+ end
358
+ hash
359
+ end
360
+
361
+ end
362
+
363
+ end
@@ -28,16 +28,16 @@ module DocSpring
28
28
  # Their email address. Null when they have none.
29
29
  attr_accessor :email
30
30
 
31
- # The fields this person fills in. Null for a signature request created with API v1 without a field list: it asks for every field the submission's data doesn't have.
31
+ # The fields this person fills in or signs: the ones the template gives their role that data didn't fill in, and the ones their signature request listed. A submission's only signature request without a list also has every field without a role that data didn't fill in. Null for a signature request created with API v1 without a field list, on a PDF template without roles: it asks for every field the submission's data doesn't have.
32
32
  attr_accessor :fields
33
33
 
34
34
  # Your own data about the signature request, such as an ID from your app.
35
35
  attr_accessor :metadata
36
36
 
37
- # Which of the template's signers the person is. Until templates have roles of their own, a template's signers are `Signer 1`, `Signer 2` and so on, up to `Signer 100`: `Signer 1` is the one whose details the template's `@@signature_requests/0` fields print.
37
+ # Which of the template's signers the person is: their role's key (`tenant`) when the template has roles, otherwise `Signer 1`, `Signer 2` and so on, up to `Signer 100`. `Signer 1`, or the template's first role, is the one whose details the template's `@@signature_requests/0` fields print, and a role's details are in its `@@signature_requests/<key>` fields too (`@@signature_requests/tenant/completed_at`).
38
38
  attr_accessor :role
39
39
 
40
- # The signer's position, from 0: `Signer 1` is 0. The template's `@@signature_requests/<sort_order>` fields print this signature request's details.
40
+ # The signer's position, from 0: `Signer 1` is 0, as is the template's first role. The template's `@@signature_requests/<sort_order>` fields, and its role's `@@signature_requests/<key>` fields, print this signature request's details.
41
41
  attr_accessor :sort_order
42
42
 
43
43
  # Whether DocSpring emails this person their signing link.
@@ -22,13 +22,13 @@ module DocSpring
22
22
  # Their email address. Null when they have none.
23
23
  attr_accessor :email
24
24
 
25
- # The fields this person fills in. Each field can only be in one signature request, and a field that `data` fills in needs `prefilled_values_editable`.
25
+ # The fields this person fills in or signs, besides the ones the template gives their role. A submission's only signature request can leave it out: the person gets every field without a role that `data` doesn't fill in. With two or more signature requests, every required field that `data` doesn't fill in needs a signer, from its role in the template or from a signature request's `fields` (an optional one that nobody is given stays empty). Each field can only be in one signature request, can't be another role's or the sender's, and needs `prefilled_values_editable` when `data` fills it in. A field that the Liquid of an HTML template, a Word template or a page design uses outside its form fields (`{{ name }}`) can only be filled in by the signer who signs first (the only signer, or the only one in the first `signing_step`): their signing page asks them for it before the document is made.
26
26
  attr_accessor :fields
27
27
 
28
28
  # Your own data about the signature request, such as an ID from your app.
29
29
  attr_accessor :metadata
30
30
 
31
- # Which of the template's signers the person is: `Signer 1`, `Signer 2` and so on, up to `Signer 100`, until templates have roles of their own. Either every signature request has a `role` or none does, and each role can only have one.
31
+ # Which of the template's signers the person is: one of its roles, by key (`tenant`), or by place (`Signer 1` is the first role). A template without roles has `Signer 1`, `Signer 2` and so on, up to `Signer 100`. Either every signature request has a `role` or none does, and each role can only have one. Without any `role`, the first signature request is the template's first signer, the second its second, and so on. When the template gives its roles names of their own (`Tenant`, not `Signer 1`), two or more signature requests each need a `role`.
32
32
  attr_accessor :role
33
33
 
34
34
  # How your app authenticated the person before it showed them the signature request.
@@ -58,7 +58,7 @@ module DocSpring
58
58
  # Leave out names in `fields` that the template doesn't have, for one field list that you send with several templates. Without it, an unknown name makes the submission `invalid_data`.
59
59
  attr_accessor :ignore_unknown_fields
60
60
 
61
- # Let the person change the values that `data` already has for fields in `fields`. Without it, those fields are a 422.
61
+ # Let the person change the values that `data` already has for their fields. Without it, a field in `fields` that `data` fills in is a 422, and a field of their role that `data` fills in is the sender's.
62
62
  attr_accessor :prefilled_values_editable
63
63
 
64
64
  # Whether DocSpring emails this person their signing link. Default: the submission's `send_email`. Set it to false for someone who signs in your app (embedded signing) or whose link you send yourself. When DocSpring emails them, `email` is required and `auth_type` is `email_link` (the default). Otherwise `auth_type` is required.
@@ -197,8 +197,6 @@ module DocSpring
197
197
  if (value = attributes[:'fields']).is_a?(Array)
198
198
  self.fields = value
199
199
  end
200
- else
201
- self.fields = nil
202
200
  end
203
201
 
204
202
  if attributes.key?(:'metadata')
@@ -265,10 +263,6 @@ module DocSpring
265
263
  def list_invalid_properties
266
264
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
267
265
  invalid_properties = Array.new
268
- if @fields.nil?
269
- invalid_properties.push('invalid value for "fields", fields cannot be nil.')
270
- end
271
-
272
266
  invalid_properties
273
267
  end
274
268
 
@@ -276,7 +270,6 @@ module DocSpring
276
270
  # @return true if the model is valid
277
271
  def valid?
278
272
  warn '[DEPRECATED] the `valid?` method is obsolete'
279
- return false if @fields.nil?
280
273
  true
281
274
  end
282
275
 
@@ -55,10 +55,10 @@ module DocSpring
55
55
  # Your own data about the submission, such as an ID from your app. It isn't printed on the PDF. Two keys also change the PDF: `pdf_filename` names its file (`files.pdf.filename`, and its download), and `pdf_title` is its title in the PDF's document properties (and an HTML template's `<title>`, unless its HTML has one). Without `pdf_title`, the title is the template's name. In `pdf_filename`, a `.pdf` ending is removed, each run of characters other than letters, digits, `-`, `_` and `.` becomes one `_`, and the first 128 characters are kept, then `.pdf` is added. Without it, the file is named after the submission's ID (`sub_1234567890abcdef01.pdf`).
56
56
  attr_accessor :metadata
57
57
 
58
- # The generated files: `pdf`, `docx` and `odt` (by `output_formats`) once the submission has been processed, `png` (the images of the PDF's pages, when `output_formats` has it: `files.png.pages[0]` is page 1), `audit_trail` once its signature requests are completed, and `preview` once a preview PDF has been generated. Empty once the submission has expired.
58
+ # The generated files: `pdf`, `docx` and `odt` (by `output_formats`) once the submission has been processed, `png` (the images of the PDF's pages, when `output_formats` has it: `files.png.pages[0]` is page 1), `audit_trail` and `signing_manifest` once its signature requests are completed, and `preview` once a preview PDF has been generated. Empty once the submission has expired.
59
59
  attr_accessor :files
60
60
 
61
- # An expired submission's data, metadata, password and PDF have been deleted.
61
+ # An expired submission's data, metadata, password and files have been deleted, along with its signature requests and audit trail.
62
62
  attr_accessor :expired
63
63
 
64
64
  # When the submission expires. Null if it's kept until you delete it.
@@ -88,7 +88,7 @@ module DocSpring
88
88
  # The text of each field that didn't fit in it, by field name. Left out (null) with `data`, and empty once the submission has expired.
89
89
  attr_accessor :truncated_text
90
90
 
91
- # What the submission makes: `pdf`, `docx` (a Word document, from a Word template), `odt` (an OpenDocument file, the format LibreOffice uses, converted from a Word template's Word document), and `png` (an image of each page of the PDF, up to 100 pages, which adds `pdf`) when you ask for it. Default `["pdf"]`, or a Word template's `output_format`. POST /submissions/{submission_id}/generate_files adds `png`, and a Word template's submission's `pdf`, `docx` or `odt`, to a processed submission.
91
+ # What the submission makes: `pdf`, `docx` (a Word document, from a Word template), `odt` (an OpenDocument file, the format LibreOffice uses, converted from a Word template's Word document), and `png` (an image of each page of the PDF, up to 100 pages, which adds `pdf`) when you ask for it. Default `["pdf"]`, or a Word template's `output_format`. A Word template's submission with signature requests makes only `pdf`, which its signers sign. POST /submissions/{submission_id}/generate_files adds `png`, and a Word template's submission's `pdf`, `docx` or `odt`, to a processed submission.
92
92
  attr_accessor :output_formats
93
93
 
94
94
  # When the preview PDF was generated. Null if there is no preview.
@@ -22,6 +22,9 @@ module DocSpring
22
22
  # The audit trail of a submission with signature requests: who signed, when and how. It's also added to the end of the PDF when the template's `merge_audit_trail_pdf` is on.
23
23
  attr_accessor :audit_trail
24
24
 
25
+ # The audit data behind the audit trail of a submission with signature requests, as JSON: the hashes of the document and the audit trail, and each signing event with the salt and hash that DocSpring's signing record holds for it. It has who signed, like the audit trail, and goes when the submission expires, so keep it with the PDF and the audit trail.
26
+ attr_accessor :signing_manifest
27
+
25
28
  # The preview PDF from POST /submissions/{submission_id}/generate_preview, such as for a submission still waiting for its signature requests.
26
29
  attr_accessor :preview
27
30
 
@@ -38,6 +41,7 @@ module DocSpring
38
41
  {
39
42
  :'pdf' => :'pdf',
40
43
  :'audit_trail' => :'audit_trail',
44
+ :'signing_manifest' => :'signing_manifest',
41
45
  :'preview' => :'preview',
42
46
  :'docx' => :'docx',
43
47
  :'odt' => :'odt',
@@ -60,6 +64,7 @@ module DocSpring
60
64
  {
61
65
  :'pdf' => :'GeneratedFile',
62
66
  :'audit_trail' => :'GeneratedFile',
67
+ :'signing_manifest' => :'GeneratedFile',
63
68
  :'preview' => :'GeneratedFile',
64
69
  :'docx' => :'GeneratedFile',
65
70
  :'odt' => :'GeneratedFile',
@@ -107,6 +112,10 @@ module DocSpring
107
112
  self.audit_trail = attributes[:'audit_trail']
108
113
  end
109
114
 
115
+ if attributes.key?(:'signing_manifest')
116
+ self.signing_manifest = attributes[:'signing_manifest']
117
+ end
118
+
110
119
  if attributes.key?(:'preview')
111
120
  self.preview = attributes[:'preview']
112
121
  end
@@ -146,6 +155,7 @@ module DocSpring
146
155
  self.class == o.class &&
147
156
  pdf == o.pdf &&
148
157
  audit_trail == o.audit_trail &&
158
+ signing_manifest == o.signing_manifest &&
149
159
  preview == o.preview &&
150
160
  docx == o.docx &&
151
161
  odt == o.odt &&
@@ -161,7 +171,7 @@ module DocSpring
161
171
  # Calculates hash code according to all attributes.
162
172
  # @return [Integer] Hash code
163
173
  def hash
164
- [pdf, audit_trail, preview, docx, odt, png].hash
174
+ [pdf, audit_trail, signing_manifest, preview, docx, odt, png].hash
165
175
  end
166
176
 
167
177
  # Builds the object from hash
@@ -31,10 +31,10 @@ module DocSpring
31
31
  # A password that the PDF needs to be opened with. It's never returned; `has_password` says if it's set. Word documents and OpenDocument files can't be password-protected, so a submission with a password can't make them.
32
32
  attr_accessor :password
33
33
 
34
- # What the submission makes: `pdf`, `docx` (a Word document, from a Word template), `odt` (an OpenDocument file, the format LibreOffice uses, converted from a Word template's Word document), and `png` (an image of each page of the PDF, up to 100 pages, which adds `pdf`) when you ask for it. Default `["pdf"]`, or a Word template's `output_format`. POST /submissions/{submission_id}/generate_files adds `png`, and a Word template's submission's `pdf`, `docx` or `odt`, to a processed submission.
34
+ # What the submission makes: `pdf`, `docx` (a Word document, from a Word template), `odt` (an OpenDocument file, the format LibreOffice uses, converted from a Word template's Word document), and `png` (an image of each page of the PDF, up to 100 pages, which adds `pdf`) when you ask for it. Default `["pdf"]`, or a Word template's `output_format`. A Word template's submission with signature requests makes only `pdf`, which its signers sign. POST /submissions/{submission_id}/generate_files adds `png`, and a Word template's submission's `pdf`, `docx` or `odt`, to a processed submission.
35
35
  attr_accessor :output_formats
36
36
 
37
- # Seconds after the PDF is generated until the submission expires, up to 10 years (315360000). Default the template's expiration setting. A submission that isn't processed, such as one with invalid data, is kept for at least 48 hours. The demo API token's submissions expire within an hour: up to 3600, and that's their default.
37
+ # Seconds after the submission is processed until it expires, up to 10 years (315360000), sooner or later than the template's or the account's expiry setting. Defaults to the template's expiry when it overrides the account's (`override_account_expiry`), and otherwise to the account's expiry setting. A submission that isn't processed, such as one with invalid data, is kept for at least 48 hours. The demo API token's submissions expire within an hour: up to 3600, and that's their default.
38
38
  attr_accessor :expires_in
39
39
 
40
40
  # Changes to field settings for this submission only, by field name, such as `{"name": {"required": false, "font_size": 9}}`. A setting that identifies the field (`id`, `name`, `type`), that only the template sets (such as `description`), or that doesn't apply to the field's type and display type (such as `check_character` on a field displayed as text) is a 422. A `default` for a signature or initials field makes the submission `invalid_data`. With `signature_requests`, `editable: true` is a 422.
@@ -58,7 +58,7 @@ module DocSpring
58
58
  # Empty unless you pass `include_files=true`: then the generated files, as when you get the submission, without the `png` pages' links (`files.png.pages` is null). Get the submission for its page images.
59
59
  attr_accessor :files
60
60
 
61
- # An expired submission's data, metadata, password and PDF have been deleted.
61
+ # An expired submission's data, metadata, password and files have been deleted, along with its signature requests and audit trail.
62
62
  attr_accessor :expired
63
63
 
64
64
  # When the submission expires. Null if it's kept until you delete it.