docspring 4.2.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +26 -6
  3. package/dist/ApiClient.js +3 -3
  4. package/dist/RequestSchemas.js +1171 -134
  5. package/dist/RequestValidator.js +4 -0
  6. package/dist/api/Client.js +1406 -248
  7. package/dist/index.js +196 -0
  8. package/dist/model/AddTemplateFieldsRequest.js +4 -4
  9. package/dist/model/AiFieldNamingLanguage.js +1 -1
  10. package/dist/model/AuthenticationCheck.js +2 -2
  11. package/dist/model/BarcodeSymbology.js +1 -1
  12. package/dist/model/CheckCharacter.js +1 -1
  13. package/dist/model/CombinedFieldType.js +1 -1
  14. package/dist/model/CombinedPdf.js +2 -2
  15. package/dist/model/CombinedPdfFiles.js +2 -2
  16. package/dist/model/CombinedPdfList.js +2 -2
  17. package/dist/model/CombinedPdfSource.js +3 -3
  18. package/dist/model/CombinedPdfSourceInput.js +3 -3
  19. package/dist/model/CombinedPdfSourcePdf.js +2 -2
  20. package/dist/model/CombinedPdfSourceType.js +1 -1
  21. package/dist/model/CombinedPdfState.js +1 -1
  22. package/dist/model/CopyTemplateRequest.js +2 -2
  23. package/dist/model/CreateAccountEmailActionRequest.js +306 -0
  24. package/dist/model/CreateCombinedPdfRequest.js +2 -2
  25. package/dist/model/CreateCustomFileFromUploadRequest.js +2 -2
  26. package/dist/model/CreateEmailActionRequest.js +280 -0
  27. package/dist/model/CreateEmailDomainRequest.js +114 -0
  28. package/dist/model/CreateFolderRequest.js +2 -2
  29. package/dist/model/CreateSignatureRequestEventRequest.js +2 -2
  30. package/dist/model/CreateSignatureRequestTokenRequest.js +2 -2
  31. package/dist/model/CreateSubmissionBatchRequest.js +5 -5
  32. package/dist/model/CreateSubmissionRequest.js +115 -7
  33. package/dist/model/CreateTemplatePreviewRequest.js +2 -2
  34. package/dist/model/CreateTemplateRequest.js +119 -14
  35. package/dist/model/CreateWebhookRequest.js +2 -2
  36. package/dist/model/CustomFile.js +2 -2
  37. package/dist/model/CustomFileList.js +2 -2
  38. package/dist/model/CustomFileSourcePdf.js +2 -2
  39. package/dist/model/DnsRecordType.js +64 -0
  40. package/dist/model/EmailAction.js +510 -0
  41. package/dist/model/EmailActionConditions.js +142 -0
  42. package/dist/model/EmailActionConditionsInput.js +142 -0
  43. package/dist/model/EmailActionCustomization.js +222 -0
  44. package/dist/model/EmailActionDelivery.js +59 -0
  45. package/dist/model/EmailActionFileFormats.js +69 -0
  46. package/dist/model/EmailActionList.js +132 -0
  47. package/dist/model/EmailActionSetting.js +119 -0
  48. package/dist/model/EmailActionSubmissionType.js +64 -0
  49. package/dist/model/EmailActionTestEmail.js +116 -0
  50. package/dist/model/EmailDomain.js +245 -0
  51. package/dist/model/EmailDomainDnsRecord.js +155 -0
  52. package/dist/model/EmailDomainDnsRecordPurpose.js +64 -0
  53. package/dist/model/EmailDomainList.js +132 -0
  54. package/dist/model/EmailDomainRecordState.js +64 -0
  55. package/dist/model/EmailDomainState.js +64 -0
  56. package/dist/model/ErrorCode.js +11 -1
  57. package/dist/model/ErrorDetail.js +2 -2
  58. package/dist/model/ErrorInfo.js +47 -8
  59. package/dist/model/ErrorResponse.js +2 -2
  60. package/dist/model/ExpirationInterval.js +1 -1
  61. package/dist/model/Field.js +5 -5
  62. package/dist/model/FieldComparisonCondition.js +2 -2
  63. package/dist/model/FieldComparisonOperator.js +1 -1
  64. package/dist/model/FieldDependency.js +2 -2
  65. package/dist/model/FieldDependencyInput.js +2 -2
  66. package/dist/model/FieldDisplayType.js +1 -1
  67. package/dist/model/FieldEqualsCondition.js +2 -2
  68. package/dist/model/FieldEqualsOperator.js +1 -1
  69. package/dist/model/FieldGroup.js +6 -6
  70. package/dist/model/FieldGroupInput.js +3 -3
  71. package/dist/model/FieldGroupType.js +1 -1
  72. package/dist/model/FieldInCondition.js +2 -2
  73. package/dist/model/FieldInput.js +4 -4
  74. package/dist/model/FieldOverride.js +2 -2
  75. package/dist/model/FieldPresenceCondition.js +2 -2
  76. package/dist/model/FieldPresenceOperator.js +1 -1
  77. package/dist/model/FieldRangeCondition.js +2 -2
  78. package/dist/model/FieldReimportState.js +1 -1
  79. package/dist/model/FieldSetupLogic.js +1 -1
  80. package/dist/model/FieldSetupNaming.js +1 -1
  81. package/dist/model/FieldSetupSource.js +1 -1
  82. package/dist/model/FieldType.js +1 -1
  83. package/dist/model/Folder.js +2 -2
  84. package/dist/model/FolderList.js +2 -2
  85. package/dist/model/GenerateFilesFormat.js +16 -1
  86. package/dist/model/GenerateSubmissionFilesRequest.js +4 -4
  87. package/dist/model/GeneratedFile.js +7 -7
  88. package/dist/model/GeneratedFileState.js +1 -1
  89. package/dist/model/HtmlEngineOptions.js +4 -4
  90. package/dist/model/HtmlEngineOptionsInput.js +3 -3
  91. package/dist/model/ImageGravity.js +1 -1
  92. package/dist/model/ImageScaleType.js +1 -1
  93. package/dist/model/ModelCodeLanguage.js +7 -2
  94. package/dist/model/MoveFolderRequest.js +2 -2
  95. package/dist/model/MoveTemplateRequest.js +2 -2
  96. package/dist/model/NumberConditionType.js +1 -1
  97. package/dist/model/OutputFormat.js +11 -1
  98. package/dist/model/PageFormat.js +1 -1
  99. package/dist/model/PageImage.js +2 -2
  100. package/dist/model/PageImages.js +2 -2
  101. package/dist/model/PredefinedField.js +2 -2
  102. package/dist/model/PredefinedFieldInput.js +2 -2
  103. package/dist/model/PublishTemplateVersionRequest.js +2 -2
  104. package/dist/model/RemoveTemplateFieldsRequest.js +2 -2
  105. package/dist/model/RenameFolderRequest.js +2 -2
  106. package/dist/model/ReorderTemplateFieldsRequest.js +2 -2
  107. package/dist/model/RestoreTemplateVersionRequest.js +2 -2
  108. package/dist/model/SendAccountEmailActionTestEmailRequest.js +91 -0
  109. package/dist/model/ShapeType.js +1 -1
  110. package/dist/model/SignatureRequest.js +53 -8
  111. package/dist/model/SignatureRequestAuthSecondFactorType.js +1 -1
  112. package/dist/model/SignatureRequestAuthType.js +1 -1
  113. package/dist/model/SignatureRequestEmailAttachments.js +59 -0
  114. package/dist/model/SignatureRequestEmailStatus.js +89 -0
  115. package/dist/model/SignatureRequestEvent.js +2 -2
  116. package/dist/model/SignatureRequestEventType.js +12 -2
  117. package/dist/model/SignatureRequestInput.js +25 -9
  118. package/dist/model/SignatureRequestMessageType.js +1 -1
  119. package/dist/model/SignatureRequestReminders.js +121 -0
  120. package/dist/model/SignatureRequestState.js +1 -1
  121. package/dist/model/SignatureRequestToken.js +2 -2
  122. package/dist/model/SignatureRequestTokenType.js +1 -1
  123. package/dist/model/SigningOrder.js +59 -0
  124. package/dist/model/StringConditionType.js +37 -2
  125. package/dist/model/Submission.js +31 -19
  126. package/dist/model/SubmissionAction.js +28 -13
  127. package/dist/model/SubmissionActionState.js +1 -1
  128. package/dist/model/SubmissionActionType.js +1 -1
  129. package/dist/model/SubmissionBatch.js +9 -9
  130. package/dist/model/SubmissionBatchState.js +1 -1
  131. package/dist/model/SubmissionFiles.js +20 -2
  132. package/dist/model/SubmissionInput.js +7 -7
  133. package/dist/model/SubmissionList.js +2 -2
  134. package/dist/model/SubmissionSource.js +1 -1
  135. package/dist/model/SubmissionSourcePdf.js +2 -2
  136. package/dist/model/SubmissionState.js +1 -1
  137. package/dist/model/SubmissionSummary.js +8 -8
  138. package/dist/model/SubmissionValidation.js +2 -2
  139. package/dist/model/Template.js +149 -26
  140. package/dist/model/TemplateActor.js +2 -2
  141. package/dist/model/TemplateActorType.js +1 -1
  142. package/dist/model/TemplateDefaults.js +2 -2
  143. package/dist/model/TemplateDefaultsInput.js +2 -2
  144. package/dist/model/TemplateDiff.js +6 -6
  145. package/dist/model/TemplateDiffSummary.js +2 -2
  146. package/dist/model/TemplateDocument.js +23 -23
  147. package/dist/model/TemplateDocumentState.js +12 -2
  148. package/dist/model/TemplateDocumentSummary.js +11 -11
  149. package/dist/model/TemplateFieldChange.js +2 -2
  150. package/dist/model/TemplateFieldChanges.js +2 -2
  151. package/dist/model/TemplateFieldDependency.js +2 -2
  152. package/dist/model/TemplateFieldDependencyAction.js +1 -1
  153. package/dist/model/TemplateFieldDependencyCondition.js +2 -2
  154. package/dist/model/TemplateFieldDependencyConditionInput.js +2 -2
  155. package/dist/model/TemplateFieldDependencyInput.js +2 -2
  156. package/dist/model/TemplateFieldDependencyMatch.js +1 -1
  157. package/dist/model/TemplateFieldDependencyOperator.js +1 -1
  158. package/dist/model/TemplateFieldLogicStatus.js +1 -1
  159. package/dist/model/TemplateFieldMove.js +2 -2
  160. package/dist/model/TemplateFields.js +2 -2
  161. package/dist/model/TemplateFormMode.js +1 -1
  162. package/dist/model/TemplateModelCode.js +2 -2
  163. package/dist/model/TemplatePageAiError.js +1 -1
  164. package/dist/model/TemplatePageAiNamingStatus.js +1 -1
  165. package/dist/model/TemplatePageFieldsStatus.js +1 -1
  166. package/dist/model/TemplatePageImageStatus.js +1 -1
  167. package/dist/model/TemplatePageImages.js +2 -2
  168. package/dist/model/TemplatePageProcessingStatus.js +2 -2
  169. package/dist/model/TemplatePreview.js +5 -5
  170. package/dist/model/TemplatePreviewState.js +1 -1
  171. package/dist/model/TemplateSourcePdf.js +3 -3
  172. package/dist/model/TemplateSummary.js +24 -12
  173. package/dist/model/TemplateSummaryList.js +2 -2
  174. package/dist/model/TemplateType.js +12 -2
  175. package/dist/model/TemplateVersion.js +2 -2
  176. package/dist/model/TemplateVersionType.js +1 -1
  177. package/dist/model/TextAlignment.js +1 -1
  178. package/dist/model/TextOverflow.js +1 -1
  179. package/dist/model/TextVerticalAlignment.js +1 -1
  180. package/dist/model/Typeface.js +1 -1
  181. package/dist/model/UpdateAccountEmailActionRequest.js +306 -0
  182. package/dist/model/UpdateEmailActionCustomizationRequest.js +258 -0
  183. package/dist/model/UpdateEmailActionRequest.js +280 -0
  184. package/dist/model/UpdateSignatureRequestRequest.js +2 -2
  185. package/dist/model/UpdateTemplateDocumentRequest.js +8 -8
  186. package/dist/model/UpdateTemplateFieldsRequest.js +2 -2
  187. package/dist/model/UpdateTemplateRequest.js +113 -8
  188. package/dist/model/UpdateWebhookRequest.js +2 -2
  189. package/dist/model/UploadMethod.js +1 -1
  190. package/dist/model/UploadPresign.js +2 -2
  191. package/dist/model/UrlSourcePdf.js +2 -2
  192. package/dist/model/ValidateSubmissionRequest.js +115 -7
  193. package/dist/model/Webhook.js +2 -2
  194. package/dist/model/WebhookEventType.js +11 -1
  195. package/dist/model/WebhookList.js +2 -2
  196. package/dist/model/WebhookMode.js +1 -1
  197. package/package.json +2 -2
package/AGENTS.md CHANGED
@@ -90,5 +90,5 @@ keeps it.
90
90
 
91
91
  - List methods return `data` and `next_cursor`: pass `next_cursor` as `cursor` to get the next page.
92
92
  - Responses can be newer than this SDK, because DocSpring adds fields and enum values to API v2 without a new
93
- version. The model object keeps a response field added to the API after this release as a property. The objects defined inside a model, such as a template's `document`, leave it out. Enum values in responses are strings, so a
94
- value added after this release comes back as it is: handle values you don't recognize.
93
+ version. The model object keeps a response field added to the API after this release as a property. The objects defined inside a model, such as a template's `document`, leave it out. An enum value added after this release comes
94
+ back as the API sent it: handle values you don't recognize.
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # DocSpring JavaScript SDK
2
2
 
3
3
  The official JavaScript client for the [DocSpring API](https://docspring.com/docs/api/). DocSpring fills PDF
4
- templates with your data, generates PDFs from HTML templates, combines PDFs and collects e-signatures.
4
+ forms with your data, generates PDFs and Word documents from HTML and Word templates, combines PDFs and collects
5
+ e-signatures.
5
6
 
6
7
  [Documentation](https://docspring.com/docs/) · [API reference](https://docspring.com/docs/api/) ·
7
8
  [npm](https://www.npmjs.com/package/docspring) · [Changelog](https://github.com/DocSpring/docspring-javascript/blob/main/CHANGELOG.md)
@@ -9,7 +10,7 @@ templates with your data, generates PDFs from HTML templates, combines PDFs and
9
10
  The code in this repository is generated from DocSpring's OpenAPI spec ([About this SDK](#about-this-sdk)). Issues and
10
11
  pull requests are welcome.
11
12
 
12
- Version 4.2.0.
13
+ Version 4.4.0.
13
14
 
14
15
  ## Install and configure
15
16
 
@@ -91,8 +92,11 @@ JavaScript code for every method.
91
92
  | ------ | ----------- |
92
93
  | [`addTemplateFields`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#addtemplatefields) | Add fields to a template |
93
94
  | [`copyTemplate`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#copytemplate) | Copy a template |
95
+ | [`createAccountEmailAction`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createaccountemailaction) | Create an account email action |
94
96
  | [`createCombinedPdf`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createcombinedpdf) | Combine PDFs |
95
97
  | [`createCustomFileFromUpload`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createcustomfilefromupload) | Create a custom file from an upload |
98
+ | [`createEmailAction`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createemailaction) | Create an email action |
99
+ | [`createEmailDomain`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createemaildomain) | Add an email domain |
96
100
  | [`createFolder`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createfolder) | Create a folder |
97
101
  | [`createSignatureRequestEvent`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createsignaturerequestevent) | Record a signature request event |
98
102
  | [`createSignatureRequestToken`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createsignaturerequesttoken) | Create a signature request token |
@@ -101,7 +105,11 @@ JavaScript code for every method.
101
105
  | [`createTemplate`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createtemplate) | Create a template |
102
106
  | [`createTemplatePreview`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createtemplatepreview) | Preview a template with data |
103
107
  | [`createWebhook`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#createwebhook) | Create a webhook |
108
+ | [`deleteAccountEmailAction`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#deleteaccountemailaction) | Delete an account email action |
104
109
  | [`deleteCustomFile`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#deletecustomfile) | Delete a custom file |
110
+ | [`deleteEmailAction`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#deleteemailaction) | Delete an email action |
111
+ | [`deleteEmailActionCustomization`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#deleteemailactioncustomization) | Reset an account email action's customization |
112
+ | [`deleteEmailDomain`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#deleteemaildomain) | Remove an email domain |
105
113
  | [`deleteFolder`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#deletefolder) | Delete a folder |
106
114
  | [`deleteTemplate`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#deletetemplate) | Delete a template |
107
115
  | [`deleteWebhook`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#deletewebhook) | Delete a webhook |
@@ -109,8 +117,11 @@ JavaScript code for every method.
109
117
  | [`expireSubmission`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#expiresubmission) | Expire a submission |
110
118
  | [`generateSubmissionFiles`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#generatesubmissionfiles) | Generate more files |
111
119
  | [`generateSubmissionPreview`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#generatesubmissionpreview) | Generate a preview PDF |
120
+ | [`getAccountEmailAction`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getaccountemailaction) | Get an account email action |
112
121
  | [`getCombinedPdf`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getcombinedpdf) | Get a combined PDF |
113
122
  | [`getCustomFile`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getcustomfile) | Get a custom file |
123
+ | [`getEmailAction`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getemailaction) | Get an email action |
124
+ | [`getEmailDomain`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getemaildomain) | Get an email domain |
114
125
  | [`getFolder`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getfolder) | Get a folder |
115
126
  | [`getPresignUrl`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getpresignurl) | Get a presigned URL to upload a file |
116
127
  | [`getSignatureRequest`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getsignaturerequest) | Get a signature request |
@@ -123,8 +134,11 @@ JavaScript code for every method.
123
134
  | [`getTemplatePreview`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#gettemplatepreview) | Get a template preview |
124
135
  | [`getTemplateSchema`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#gettemplateschema) | Get the JSON Schema of a template's submission data |
125
136
  | [`getWebhook`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#getwebhook) | Get a webhook |
137
+ | [`listAccountEmailActions`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#listaccountemailactions) | List account email actions |
126
138
  | [`listCombinedPdfs`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#listcombinedpdfs) | List combined PDFs |
127
139
  | [`listCustomFiles`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#listcustomfiles) | List custom files |
140
+ | [`listEmailActions`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#listemailactions) | List email actions |
141
+ | [`listEmailDomains`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#listemaildomains) | List email domains |
128
142
  | [`listFolders`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#listfolders) | List folders |
129
143
  | [`listSubmissions`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#listsubmissions) | List submissions |
130
144
  | [`listTemplateFields`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#listtemplatefields) | List a template's fields |
@@ -138,15 +152,21 @@ JavaScript code for every method.
138
152
  | [`renameFolder`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#renamefolder) | Rename a folder |
139
153
  | [`reorderTemplateFields`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#reordertemplatefields) | Reorder a template's fields |
140
154
  | [`restoreTemplateVersion`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#restoretemplateversion) | Restore a template version |
155
+ | [`sendAccountEmailActionTestEmail`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#sendaccountemailactiontestemail) | Send a test email for an account email action |
156
+ | [`sendEmailActionTestEmail`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#sendemailactiontestemail) | Send a test email |
141
157
  | [`testAuthentication`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#testauthentication) | Test authentication |
158
+ | [`updateAccountEmailAction`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updateaccountemailaction) | Update an account email action |
159
+ | [`updateEmailAction`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updateemailaction) | Update an email action |
160
+ | [`updateEmailActionCustomization`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updateemailactioncustomization) | Customize an account email action for a template |
142
161
  | [`updateSignatureRequest`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updatesignaturerequest) | Update a signature request |
143
162
  | [`updateTemplate`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updatetemplate) | Update a template |
144
- | [`updateTemplateDocument`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updatetemplatedocument) | Replace a template's PDF |
163
+ | [`updateTemplateDocument`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updatetemplatedocument) | Replace a template's document |
145
164
  | [`updateTemplateFields`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updatetemplatefields) | Update a template's fields |
146
165
  | [`updateWebhook`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#updatewebhook) | Update a webhook |
147
- | [`uploadTemplate`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#uploadtemplate) | Create a PDF template from an uploaded PDF |
148
- | [`uploadTemplateDocument`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#uploadtemplatedocument) | Replace a template's PDF with an uploaded PDF |
166
+ | [`uploadTemplate`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#uploadtemplate) | Create a template from an uploaded PDF or Word document |
167
+ | [`uploadTemplateDocument`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#uploadtemplatedocument) | Replace a template's document with an uploaded file |
149
168
  | [`validateSubmission`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#validatesubmission) | Check a submission without creating it |
169
+ | [`verifyEmailDomain`](https://github.com/DocSpring/docspring-javascript/blob/main/docs/Client.md#verifyemaildomain) | Verify an email domain |
150
170
 
151
171
  ## Errors
152
172
 
@@ -163,7 +183,7 @@ existing code, such as removing or renaming a field, go in a new API version
163
183
  responses that are newer than it is:
164
184
 
165
185
  - The model object keeps a response field added to the API after this release as a property. The objects defined inside a model, such as a template's `document`, leave it out.
166
- - Enum values in responses are strings, so a value added to the API after this release comes back as it is: handle values you don't recognize.
186
+ - An enum value added to the API after this release comes back as the API sent it: handle values you don't recognize.
167
187
 
168
188
  Upgrade the SDK to read new fields and enum values. The [changelog](https://github.com/DocSpring/docspring-javascript/blob/main/CHANGELOG.md) lists
169
189
  what each release adds.
package/dist/ApiClient.js CHANGED
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
16
16
  * DocSpring API
17
- * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
17
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
18
18
  *
19
19
  * The version of the OpenAPI document: v2
20
20
  *
@@ -38,7 +38,7 @@ function responseInfo(response) {
38
38
 
39
39
  /**
40
40
  * @module ApiClient
41
- * @version 4.2.0
41
+ * @version 4.4.0
42
42
  */
43
43
 
44
44
  /**
@@ -88,7 +88,7 @@ var ApiClient = /*#__PURE__*/function () {
88
88
  * @default {}
89
89
  */
90
90
  this.defaultHeaders = {
91
- 'User-Agent': 'docspring-javascript-4.2.0'
91
+ 'User-Agent': 'docspring-javascript-4.4.0'
92
92
  };
93
93
 
94
94
  /**