docspring 4.0.0 → 4.2.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.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +99 -0
- data/.travis.yml +1 -1
- data/AGENTS.md +3 -2
- data/CHANGELOG.md +64 -0
- data/Gemfile.lock +9 -9
- data/README.md +14 -1
- data/docs/AddTemplateFieldsRequest.md +18 -0
- data/docs/Client.md +917 -80
- data/docs/CombinedPdf.md +1 -1
- data/docs/CreateCombinedPdfRequest.md +1 -1
- data/docs/CreateSubmissionBatchRequest.md +2 -0
- data/docs/CreateSubmissionRequest.md +4 -2
- data/docs/CreateTemplatePreviewRequest.md +18 -0
- data/docs/CreateTemplateRequest.md +13 -3
- data/docs/ErrorDetail.md +1 -1
- data/docs/ErrorInfo.md +4 -4
- data/docs/Field.md +198 -0
- data/docs/FieldDependency.md +22 -0
- data/docs/FieldDependencyInput.md +22 -0
- data/docs/FieldGroup.md +32 -0
- data/docs/FieldGroupInput.md +30 -0
- data/docs/FieldGroupType.md +15 -0
- data/docs/FieldInput.md +196 -0
- data/docs/FieldType.md +15 -0
- data/docs/GenerateFilesFormat.md +15 -0
- data/docs/GenerateSubmissionFilesRequest.md +18 -0
- data/docs/OutputFormat.md +15 -0
- data/docs/PageImage.md +34 -0
- data/docs/PageImages.md +24 -0
- data/docs/PredefinedField.md +30 -0
- data/docs/PredefinedFieldInput.md +30 -0
- data/docs/RemoveTemplateFieldsRequest.md +18 -0
- data/docs/ReorderTemplateFieldsRequest.md +18 -0
- data/docs/Submission.md +16 -14
- data/docs/SubmissionFiles.md +3 -1
- data/docs/SubmissionInput.md +4 -2
- data/docs/SubmissionList.md +1 -1
- data/docs/SubmissionSummary.md +54 -0
- data/docs/SubmissionValidation.md +24 -0
- data/docs/Template.md +18 -10
- data/docs/TemplateActor.md +1 -1
- data/docs/TemplateDiff.md +30 -0
- data/docs/TemplateDiffSummary.md +28 -0
- data/docs/TemplateDocument.md +6 -6
- data/docs/TemplateDocumentSummary.md +24 -0
- data/docs/TemplateFieldChange.md +24 -0
- data/docs/TemplateFieldChanges.md +24 -0
- data/docs/TemplateFieldDependency.md +1 -1
- data/docs/TemplateFieldDependencyInput.md +1 -1
- data/docs/TemplateFieldMove.md +22 -0
- data/docs/TemplateFields.md +22 -0
- data/docs/TemplatePageImages.md +24 -0
- data/docs/TemplatePreview.md +32 -0
- data/docs/TemplatePreviewState.md +15 -0
- data/docs/TemplateSummary.md +2 -48
- data/docs/UpdateTemplateDocumentRequest.md +6 -2
- data/docs/UpdateTemplateFieldsRequest.md +18 -0
- data/docs/UpdateTemplateRequest.md +10 -2
- data/docs/ValidateSubmissionRequest.md +38 -0
- data/lib/docspring/api/client.rb +869 -51
- data/lib/docspring/api_client.rb +4 -2
- data/lib/docspring/date_time_values.rb +33 -0
- data/lib/docspring/models/add_template_fields_request.rb +187 -0
- data/lib/docspring/models/combined_pdf.rb +1 -1
- data/lib/docspring/models/create_combined_pdf_request.rb +1 -1
- data/lib/docspring/models/create_submission_batch_request.rb +23 -1
- data/lib/docspring/models/create_submission_request.rb +25 -3
- data/lib/docspring/models/create_template_preview_request.rb +187 -0
- data/lib/docspring/models/create_template_request.rb +59 -4
- data/lib/docspring/models/error_code.rb +3 -1
- data/lib/docspring/models/error_detail.rb +1 -1
- data/lib/docspring/models/error_info.rb +4 -4
- data/lib/docspring/models/field.rb +2217 -0
- data/lib/docspring/models/field_dependency.rb +246 -0
- data/lib/docspring/models/field_dependency_input.rb +246 -0
- data/lib/docspring/models/field_group.rb +368 -0
- data/lib/docspring/models/field_group_input.rb +247 -0
- data/lib/docspring/models/field_group_type.rb +41 -0
- data/lib/docspring/models/field_input.rb +1109 -0
- data/lib/docspring/models/field_type.rb +54 -0
- data/lib/docspring/models/generate_files_format.rb +40 -0
- data/lib/docspring/models/generate_submission_files_request.rb +187 -0
- data/lib/docspring/models/output_format.rb +41 -0
- data/lib/docspring/models/page_image.rb +359 -0
- data/lib/docspring/models/page_images.rb +248 -0
- data/lib/docspring/models/predefined_field.rb +287 -0
- data/lib/docspring/models/predefined_field_input.rb +287 -0
- data/lib/docspring/models/remove_template_fields_request.rb +187 -0
- data/lib/docspring/models/reorder_template_fields_request.rb +187 -0
- data/lib/docspring/models/submission.rb +146 -117
- data/lib/docspring/models/submission_files.rb +13 -4
- data/lib/docspring/models/submission_input.rb +25 -3
- data/lib/docspring/models/submission_list.rb +1 -1
- data/lib/docspring/models/submission_summary.rb +601 -0
- data/lib/docspring/models/submission_validation.rb +234 -0
- data/lib/docspring/models/template.rb +169 -83
- data/lib/docspring/models/template_actor.rb +1 -1
- data/lib/docspring/models/template_diff.rb +321 -0
- data/lib/docspring/models/template_diff_summary.rb +320 -0
- data/lib/docspring/models/template_document.rb +44 -44
- data/lib/docspring/models/template_document_state.rb +3 -1
- data/lib/docspring/models/template_document_summary.rb +260 -0
- data/lib/docspring/models/template_field_change.rb +266 -0
- data/lib/docspring/models/template_field_changes.rb +274 -0
- data/lib/docspring/models/template_field_dependency.rb +1 -1
- data/lib/docspring/models/template_field_dependency_input.rb +1 -1
- data/lib/docspring/models/template_field_move.rb +239 -0
- data/lib/docspring/models/template_fields.rb +227 -0
- data/lib/docspring/models/template_page_images.rb +254 -0
- data/lib/docspring/models/template_preview.rb +356 -0
- data/lib/docspring/models/template_preview_state.rb +42 -0
- data/lib/docspring/models/template_summary.rb +5 -572
- data/lib/docspring/models/update_template_document_request.rb +23 -20
- data/lib/docspring/models/update_template_fields_request.rb +187 -0
- data/lib/docspring/models/update_template_request.rb +53 -6
- data/lib/docspring/models/validate_submission_request.rb +288 -0
- data/lib/docspring/request_schemas.json +3465 -1588
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring/webhook_signature.rb +45 -0
- data/lib/docspring.rb +34 -0
- data/spec/api/client_spec.rb +167 -13
- data/spec/models/add_template_fields_request_spec.rb +36 -0
- data/spec/models/create_submission_batch_request_spec.rb +6 -0
- data/spec/models/create_submission_request_spec.rb +6 -0
- data/spec/models/create_template_preview_request_spec.rb +36 -0
- data/spec/models/create_template_request_spec.rb +30 -0
- data/spec/models/field_dependency_input_spec.rb +48 -0
- data/spec/models/field_dependency_spec.rb +48 -0
- data/spec/models/field_group_input_spec.rb +72 -0
- data/spec/models/field_group_spec.rb +78 -0
- data/spec/models/field_group_type_spec.rb +30 -0
- data/spec/models/field_input_spec.rb +570 -0
- data/spec/models/field_spec.rb +576 -0
- data/spec/models/field_type_spec.rb +30 -0
- data/spec/models/generate_files_format_spec.rb +30 -0
- data/spec/models/generate_submission_files_request_spec.rb +36 -0
- data/spec/models/output_format_spec.rb +30 -0
- data/spec/models/page_image_spec.rb +84 -0
- data/spec/models/page_images_spec.rb +54 -0
- data/spec/models/predefined_field_input_spec.rb +72 -0
- data/spec/models/predefined_field_spec.rb +72 -0
- data/spec/models/remove_template_fields_request_spec.rb +36 -0
- data/spec/models/reorder_template_fields_request_spec.rb +36 -0
- data/spec/models/submission_files_spec.rb +6 -0
- data/spec/models/submission_input_spec.rb +6 -0
- data/spec/models/submission_spec.rb +17 -11
- data/spec/models/submission_summary_spec.rb +144 -0
- data/spec/models/submission_validation_spec.rb +54 -0
- data/spec/models/template_diff_spec.rb +72 -0
- data/spec/models/template_diff_summary_spec.rb +66 -0
- data/spec/models/template_document_spec.rb +5 -5
- data/spec/models/template_document_summary_spec.rb +54 -0
- data/spec/models/template_field_change_spec.rb +54 -0
- data/spec/models/template_field_changes_spec.rb +54 -0
- data/spec/models/template_field_move_spec.rb +48 -0
- data/spec/models/template_fields_spec.rb +48 -0
- data/spec/models/template_page_images_spec.rb +54 -0
- data/spec/models/template_preview_spec.rb +78 -0
- data/spec/models/template_preview_state_spec.rb +30 -0
- data/spec/models/template_spec.rb +34 -10
- data/spec/models/template_summary_spec.rb +0 -138
- data/spec/models/update_template_document_request_spec.rb +12 -0
- data/spec/models/update_template_fields_request_spec.rb +36 -0
- data/spec/models/update_template_request_spec.rb +24 -0
- data/spec/models/validate_submission_request_spec.rb +96 -0
- metadata +135 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f14e5a7b2bfc1d3afccaa2fe06b9a452849c1e68159d2bb3b5cd28317251105d
|
|
4
|
+
data.tar.gz: b34c23551a9e275212671e5bac87568bec392ee68f379589cb9de514b6871152
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9c41809479101fc003e24371dc49de667b566329208c656f653977cc7548a174f482c90978d3bcc62800771c173dc374406cbcfc973365f72ecdf6f5d6f2457
|
|
7
|
+
data.tar.gz: 51775f90a82bb42c0a6ce063b3a834c665f8adfa2e8acfd14dca4925adf65cd835e0fb8a79b108cb567daeccf6f477fe02be3b20848fbf42ea5854ad63e7a7e9
|
data/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Gemfile
|
|
7
7
|
README.md
|
|
8
8
|
Rakefile
|
|
9
|
+
docs/AddTemplateFieldsRequest.md
|
|
9
10
|
docs/AiFieldNamingLanguage.md
|
|
10
11
|
docs/AuthenticationCheck.md
|
|
11
12
|
docs/BarcodeSymbology.md
|
|
@@ -28,6 +29,7 @@ docs/CreateSignatureRequestEventRequest.md
|
|
|
28
29
|
docs/CreateSignatureRequestTokenRequest.md
|
|
29
30
|
docs/CreateSubmissionBatchRequest.md
|
|
30
31
|
docs/CreateSubmissionRequest.md
|
|
32
|
+
docs/CreateTemplatePreviewRequest.md
|
|
31
33
|
docs/CreateTemplateRequest.md
|
|
32
34
|
docs/CreateWebhookRequest.md
|
|
33
35
|
docs/CustomFile.md
|
|
@@ -38,12 +40,19 @@ docs/ErrorDetail.md
|
|
|
38
40
|
docs/ErrorInfo.md
|
|
39
41
|
docs/ErrorResponse.md
|
|
40
42
|
docs/ExpirationInterval.md
|
|
43
|
+
docs/Field.md
|
|
41
44
|
docs/FieldComparisonCondition.md
|
|
42
45
|
docs/FieldComparisonOperator.md
|
|
46
|
+
docs/FieldDependency.md
|
|
47
|
+
docs/FieldDependencyInput.md
|
|
43
48
|
docs/FieldDisplayType.md
|
|
44
49
|
docs/FieldEqualsCondition.md
|
|
45
50
|
docs/FieldEqualsOperator.md
|
|
51
|
+
docs/FieldGroup.md
|
|
52
|
+
docs/FieldGroupInput.md
|
|
53
|
+
docs/FieldGroupType.md
|
|
46
54
|
docs/FieldInCondition.md
|
|
55
|
+
docs/FieldInput.md
|
|
47
56
|
docs/FieldOverride.md
|
|
48
57
|
docs/FieldPresenceCondition.md
|
|
49
58
|
docs/FieldPresenceOperator.md
|
|
@@ -52,8 +61,11 @@ docs/FieldReimportState.md
|
|
|
52
61
|
docs/FieldSetupLogic.md
|
|
53
62
|
docs/FieldSetupNaming.md
|
|
54
63
|
docs/FieldSetupSource.md
|
|
64
|
+
docs/FieldType.md
|
|
55
65
|
docs/Folder.md
|
|
56
66
|
docs/FolderList.md
|
|
67
|
+
docs/GenerateFilesFormat.md
|
|
68
|
+
docs/GenerateSubmissionFilesRequest.md
|
|
57
69
|
docs/GeneratedFile.md
|
|
58
70
|
docs/GeneratedFileState.md
|
|
59
71
|
docs/HtmlEngineOptions.md
|
|
@@ -64,9 +76,16 @@ docs/ModelCodeLanguage.md
|
|
|
64
76
|
docs/MoveFolderRequest.md
|
|
65
77
|
docs/MoveTemplateRequest.md
|
|
66
78
|
docs/NumberConditionType.md
|
|
79
|
+
docs/OutputFormat.md
|
|
67
80
|
docs/PageFormat.md
|
|
81
|
+
docs/PageImage.md
|
|
82
|
+
docs/PageImages.md
|
|
83
|
+
docs/PredefinedField.md
|
|
84
|
+
docs/PredefinedFieldInput.md
|
|
68
85
|
docs/PublishTemplateVersionRequest.md
|
|
86
|
+
docs/RemoveTemplateFieldsRequest.md
|
|
69
87
|
docs/RenameFolderRequest.md
|
|
88
|
+
docs/ReorderTemplateFieldsRequest.md
|
|
70
89
|
docs/RestoreTemplateVersionRequest.md
|
|
71
90
|
docs/ShapeType.md
|
|
72
91
|
docs/SignatureRequest.md
|
|
@@ -92,13 +111,20 @@ docs/SubmissionList.md
|
|
|
92
111
|
docs/SubmissionSource.md
|
|
93
112
|
docs/SubmissionSourcePdf.md
|
|
94
113
|
docs/SubmissionState.md
|
|
114
|
+
docs/SubmissionSummary.md
|
|
115
|
+
docs/SubmissionValidation.md
|
|
95
116
|
docs/Template.md
|
|
96
117
|
docs/TemplateActor.md
|
|
97
118
|
docs/TemplateActorType.md
|
|
98
119
|
docs/TemplateDefaults.md
|
|
99
120
|
docs/TemplateDefaultsInput.md
|
|
121
|
+
docs/TemplateDiff.md
|
|
122
|
+
docs/TemplateDiffSummary.md
|
|
100
123
|
docs/TemplateDocument.md
|
|
101
124
|
docs/TemplateDocumentState.md
|
|
125
|
+
docs/TemplateDocumentSummary.md
|
|
126
|
+
docs/TemplateFieldChange.md
|
|
127
|
+
docs/TemplateFieldChanges.md
|
|
102
128
|
docs/TemplateFieldDependency.md
|
|
103
129
|
docs/TemplateFieldDependencyAction.md
|
|
104
130
|
docs/TemplateFieldDependencyCondition.md
|
|
@@ -107,13 +133,18 @@ docs/TemplateFieldDependencyInput.md
|
|
|
107
133
|
docs/TemplateFieldDependencyMatch.md
|
|
108
134
|
docs/TemplateFieldDependencyOperator.md
|
|
109
135
|
docs/TemplateFieldLogicStatus.md
|
|
136
|
+
docs/TemplateFieldMove.md
|
|
137
|
+
docs/TemplateFields.md
|
|
110
138
|
docs/TemplateFormMode.md
|
|
111
139
|
docs/TemplateModelCode.md
|
|
112
140
|
docs/TemplatePageAiError.md
|
|
113
141
|
docs/TemplatePageAiNamingStatus.md
|
|
114
142
|
docs/TemplatePageFieldsStatus.md
|
|
115
143
|
docs/TemplatePageImageStatus.md
|
|
144
|
+
docs/TemplatePageImages.md
|
|
116
145
|
docs/TemplatePageProcessingStatus.md
|
|
146
|
+
docs/TemplatePreview.md
|
|
147
|
+
docs/TemplatePreviewState.md
|
|
117
148
|
docs/TemplateSourcePdf.md
|
|
118
149
|
docs/TemplateSummary.md
|
|
119
150
|
docs/TemplateSummaryList.md
|
|
@@ -126,11 +157,13 @@ docs/TextVerticalAlignment.md
|
|
|
126
157
|
docs/Typeface.md
|
|
127
158
|
docs/UpdateSignatureRequestRequest.md
|
|
128
159
|
docs/UpdateTemplateDocumentRequest.md
|
|
160
|
+
docs/UpdateTemplateFieldsRequest.md
|
|
129
161
|
docs/UpdateTemplateRequest.md
|
|
130
162
|
docs/UpdateWebhookRequest.md
|
|
131
163
|
docs/UploadMethod.md
|
|
132
164
|
docs/UploadPresign.md
|
|
133
165
|
docs/UrlSourcePdf.md
|
|
166
|
+
docs/ValidateSubmissionRequest.md
|
|
134
167
|
docs/Webhook.md
|
|
135
168
|
docs/WebhookEventType.md
|
|
136
169
|
docs/WebhookList.md
|
|
@@ -143,6 +176,7 @@ lib/docspring/api_client.rb
|
|
|
143
176
|
lib/docspring/api_error.rb
|
|
144
177
|
lib/docspring/api_model_base.rb
|
|
145
178
|
lib/docspring/configuration.rb
|
|
179
|
+
lib/docspring/models/add_template_fields_request.rb
|
|
146
180
|
lib/docspring/models/ai_field_naming_language.rb
|
|
147
181
|
lib/docspring/models/authentication_check.rb
|
|
148
182
|
lib/docspring/models/barcode_symbology.rb
|
|
@@ -164,6 +198,7 @@ lib/docspring/models/create_signature_request_event_request.rb
|
|
|
164
198
|
lib/docspring/models/create_signature_request_token_request.rb
|
|
165
199
|
lib/docspring/models/create_submission_batch_request.rb
|
|
166
200
|
lib/docspring/models/create_submission_request.rb
|
|
201
|
+
lib/docspring/models/create_template_preview_request.rb
|
|
167
202
|
lib/docspring/models/create_template_request.rb
|
|
168
203
|
lib/docspring/models/create_webhook_request.rb
|
|
169
204
|
lib/docspring/models/custom_file.rb
|
|
@@ -174,12 +209,19 @@ lib/docspring/models/error_detail.rb
|
|
|
174
209
|
lib/docspring/models/error_info.rb
|
|
175
210
|
lib/docspring/models/error_response.rb
|
|
176
211
|
lib/docspring/models/expiration_interval.rb
|
|
212
|
+
lib/docspring/models/field.rb
|
|
177
213
|
lib/docspring/models/field_comparison_condition.rb
|
|
178
214
|
lib/docspring/models/field_comparison_operator.rb
|
|
215
|
+
lib/docspring/models/field_dependency.rb
|
|
216
|
+
lib/docspring/models/field_dependency_input.rb
|
|
179
217
|
lib/docspring/models/field_display_type.rb
|
|
180
218
|
lib/docspring/models/field_equals_condition.rb
|
|
181
219
|
lib/docspring/models/field_equals_operator.rb
|
|
220
|
+
lib/docspring/models/field_group.rb
|
|
221
|
+
lib/docspring/models/field_group_input.rb
|
|
222
|
+
lib/docspring/models/field_group_type.rb
|
|
182
223
|
lib/docspring/models/field_in_condition.rb
|
|
224
|
+
lib/docspring/models/field_input.rb
|
|
183
225
|
lib/docspring/models/field_override.rb
|
|
184
226
|
lib/docspring/models/field_presence_condition.rb
|
|
185
227
|
lib/docspring/models/field_presence_operator.rb
|
|
@@ -188,8 +230,11 @@ lib/docspring/models/field_reimport_state.rb
|
|
|
188
230
|
lib/docspring/models/field_setup_logic.rb
|
|
189
231
|
lib/docspring/models/field_setup_naming.rb
|
|
190
232
|
lib/docspring/models/field_setup_source.rb
|
|
233
|
+
lib/docspring/models/field_type.rb
|
|
191
234
|
lib/docspring/models/folder.rb
|
|
192
235
|
lib/docspring/models/folder_list.rb
|
|
236
|
+
lib/docspring/models/generate_files_format.rb
|
|
237
|
+
lib/docspring/models/generate_submission_files_request.rb
|
|
193
238
|
lib/docspring/models/generated_file.rb
|
|
194
239
|
lib/docspring/models/generated_file_state.rb
|
|
195
240
|
lib/docspring/models/html_engine_options.rb
|
|
@@ -200,9 +245,16 @@ lib/docspring/models/model_code_language.rb
|
|
|
200
245
|
lib/docspring/models/move_folder_request.rb
|
|
201
246
|
lib/docspring/models/move_template_request.rb
|
|
202
247
|
lib/docspring/models/number_condition_type.rb
|
|
248
|
+
lib/docspring/models/output_format.rb
|
|
203
249
|
lib/docspring/models/page_format.rb
|
|
250
|
+
lib/docspring/models/page_image.rb
|
|
251
|
+
lib/docspring/models/page_images.rb
|
|
252
|
+
lib/docspring/models/predefined_field.rb
|
|
253
|
+
lib/docspring/models/predefined_field_input.rb
|
|
204
254
|
lib/docspring/models/publish_template_version_request.rb
|
|
255
|
+
lib/docspring/models/remove_template_fields_request.rb
|
|
205
256
|
lib/docspring/models/rename_folder_request.rb
|
|
257
|
+
lib/docspring/models/reorder_template_fields_request.rb
|
|
206
258
|
lib/docspring/models/restore_template_version_request.rb
|
|
207
259
|
lib/docspring/models/shape_type.rb
|
|
208
260
|
lib/docspring/models/signature_request.rb
|
|
@@ -228,13 +280,20 @@ lib/docspring/models/submission_list.rb
|
|
|
228
280
|
lib/docspring/models/submission_source.rb
|
|
229
281
|
lib/docspring/models/submission_source_pdf.rb
|
|
230
282
|
lib/docspring/models/submission_state.rb
|
|
283
|
+
lib/docspring/models/submission_summary.rb
|
|
284
|
+
lib/docspring/models/submission_validation.rb
|
|
231
285
|
lib/docspring/models/template.rb
|
|
232
286
|
lib/docspring/models/template_actor.rb
|
|
233
287
|
lib/docspring/models/template_actor_type.rb
|
|
234
288
|
lib/docspring/models/template_defaults.rb
|
|
235
289
|
lib/docspring/models/template_defaults_input.rb
|
|
290
|
+
lib/docspring/models/template_diff.rb
|
|
291
|
+
lib/docspring/models/template_diff_summary.rb
|
|
236
292
|
lib/docspring/models/template_document.rb
|
|
237
293
|
lib/docspring/models/template_document_state.rb
|
|
294
|
+
lib/docspring/models/template_document_summary.rb
|
|
295
|
+
lib/docspring/models/template_field_change.rb
|
|
296
|
+
lib/docspring/models/template_field_changes.rb
|
|
238
297
|
lib/docspring/models/template_field_dependency.rb
|
|
239
298
|
lib/docspring/models/template_field_dependency_action.rb
|
|
240
299
|
lib/docspring/models/template_field_dependency_condition.rb
|
|
@@ -243,13 +302,18 @@ lib/docspring/models/template_field_dependency_input.rb
|
|
|
243
302
|
lib/docspring/models/template_field_dependency_match.rb
|
|
244
303
|
lib/docspring/models/template_field_dependency_operator.rb
|
|
245
304
|
lib/docspring/models/template_field_logic_status.rb
|
|
305
|
+
lib/docspring/models/template_field_move.rb
|
|
306
|
+
lib/docspring/models/template_fields.rb
|
|
246
307
|
lib/docspring/models/template_form_mode.rb
|
|
247
308
|
lib/docspring/models/template_model_code.rb
|
|
248
309
|
lib/docspring/models/template_page_ai_error.rb
|
|
249
310
|
lib/docspring/models/template_page_ai_naming_status.rb
|
|
250
311
|
lib/docspring/models/template_page_fields_status.rb
|
|
251
312
|
lib/docspring/models/template_page_image_status.rb
|
|
313
|
+
lib/docspring/models/template_page_images.rb
|
|
252
314
|
lib/docspring/models/template_page_processing_status.rb
|
|
315
|
+
lib/docspring/models/template_preview.rb
|
|
316
|
+
lib/docspring/models/template_preview_state.rb
|
|
253
317
|
lib/docspring/models/template_source_pdf.rb
|
|
254
318
|
lib/docspring/models/template_summary.rb
|
|
255
319
|
lib/docspring/models/template_summary_list.rb
|
|
@@ -262,17 +326,20 @@ lib/docspring/models/text_vertical_alignment.rb
|
|
|
262
326
|
lib/docspring/models/typeface.rb
|
|
263
327
|
lib/docspring/models/update_signature_request_request.rb
|
|
264
328
|
lib/docspring/models/update_template_document_request.rb
|
|
329
|
+
lib/docspring/models/update_template_fields_request.rb
|
|
265
330
|
lib/docspring/models/update_template_request.rb
|
|
266
331
|
lib/docspring/models/update_webhook_request.rb
|
|
267
332
|
lib/docspring/models/upload_method.rb
|
|
268
333
|
lib/docspring/models/upload_presign.rb
|
|
269
334
|
lib/docspring/models/url_source_pdf.rb
|
|
335
|
+
lib/docspring/models/validate_submission_request.rb
|
|
270
336
|
lib/docspring/models/webhook.rb
|
|
271
337
|
lib/docspring/models/webhook_event_type.rb
|
|
272
338
|
lib/docspring/models/webhook_list.rb
|
|
273
339
|
lib/docspring/models/webhook_mode.rb
|
|
274
340
|
lib/docspring/version.rb
|
|
275
341
|
spec/api/client_spec.rb
|
|
342
|
+
spec/models/add_template_fields_request_spec.rb
|
|
276
343
|
spec/models/ai_field_naming_language_spec.rb
|
|
277
344
|
spec/models/authentication_check_spec.rb
|
|
278
345
|
spec/models/barcode_symbology_spec.rb
|
|
@@ -294,6 +361,7 @@ spec/models/create_signature_request_event_request_spec.rb
|
|
|
294
361
|
spec/models/create_signature_request_token_request_spec.rb
|
|
295
362
|
spec/models/create_submission_batch_request_spec.rb
|
|
296
363
|
spec/models/create_submission_request_spec.rb
|
|
364
|
+
spec/models/create_template_preview_request_spec.rb
|
|
297
365
|
spec/models/create_template_request_spec.rb
|
|
298
366
|
spec/models/create_webhook_request_spec.rb
|
|
299
367
|
spec/models/custom_file_list_spec.rb
|
|
@@ -306,10 +374,16 @@ spec/models/error_response_spec.rb
|
|
|
306
374
|
spec/models/expiration_interval_spec.rb
|
|
307
375
|
spec/models/field_comparison_condition_spec.rb
|
|
308
376
|
spec/models/field_comparison_operator_spec.rb
|
|
377
|
+
spec/models/field_dependency_input_spec.rb
|
|
378
|
+
spec/models/field_dependency_spec.rb
|
|
309
379
|
spec/models/field_display_type_spec.rb
|
|
310
380
|
spec/models/field_equals_condition_spec.rb
|
|
311
381
|
spec/models/field_equals_operator_spec.rb
|
|
382
|
+
spec/models/field_group_input_spec.rb
|
|
383
|
+
spec/models/field_group_spec.rb
|
|
384
|
+
spec/models/field_group_type_spec.rb
|
|
312
385
|
spec/models/field_in_condition_spec.rb
|
|
386
|
+
spec/models/field_input_spec.rb
|
|
313
387
|
spec/models/field_override_spec.rb
|
|
314
388
|
spec/models/field_presence_condition_spec.rb
|
|
315
389
|
spec/models/field_presence_operator_spec.rb
|
|
@@ -318,8 +392,12 @@ spec/models/field_reimport_state_spec.rb
|
|
|
318
392
|
spec/models/field_setup_logic_spec.rb
|
|
319
393
|
spec/models/field_setup_naming_spec.rb
|
|
320
394
|
spec/models/field_setup_source_spec.rb
|
|
395
|
+
spec/models/field_spec.rb
|
|
396
|
+
spec/models/field_type_spec.rb
|
|
321
397
|
spec/models/folder_list_spec.rb
|
|
322
398
|
spec/models/folder_spec.rb
|
|
399
|
+
spec/models/generate_files_format_spec.rb
|
|
400
|
+
spec/models/generate_submission_files_request_spec.rb
|
|
323
401
|
spec/models/generated_file_spec.rb
|
|
324
402
|
spec/models/generated_file_state_spec.rb
|
|
325
403
|
spec/models/html_engine_options_input_spec.rb
|
|
@@ -330,9 +408,16 @@ spec/models/model_code_language_spec.rb
|
|
|
330
408
|
spec/models/move_folder_request_spec.rb
|
|
331
409
|
spec/models/move_template_request_spec.rb
|
|
332
410
|
spec/models/number_condition_type_spec.rb
|
|
411
|
+
spec/models/output_format_spec.rb
|
|
333
412
|
spec/models/page_format_spec.rb
|
|
413
|
+
spec/models/page_image_spec.rb
|
|
414
|
+
spec/models/page_images_spec.rb
|
|
415
|
+
spec/models/predefined_field_input_spec.rb
|
|
416
|
+
spec/models/predefined_field_spec.rb
|
|
334
417
|
spec/models/publish_template_version_request_spec.rb
|
|
418
|
+
spec/models/remove_template_fields_request_spec.rb
|
|
335
419
|
spec/models/rename_folder_request_spec.rb
|
|
420
|
+
spec/models/reorder_template_fields_request_spec.rb
|
|
336
421
|
spec/models/restore_template_version_request_spec.rb
|
|
337
422
|
spec/models/shape_type_spec.rb
|
|
338
423
|
spec/models/signature_request_auth_second_factor_type_spec.rb
|
|
@@ -358,12 +443,19 @@ spec/models/submission_source_pdf_spec.rb
|
|
|
358
443
|
spec/models/submission_source_spec.rb
|
|
359
444
|
spec/models/submission_spec.rb
|
|
360
445
|
spec/models/submission_state_spec.rb
|
|
446
|
+
spec/models/submission_summary_spec.rb
|
|
447
|
+
spec/models/submission_validation_spec.rb
|
|
361
448
|
spec/models/template_actor_spec.rb
|
|
362
449
|
spec/models/template_actor_type_spec.rb
|
|
363
450
|
spec/models/template_defaults_input_spec.rb
|
|
364
451
|
spec/models/template_defaults_spec.rb
|
|
452
|
+
spec/models/template_diff_spec.rb
|
|
453
|
+
spec/models/template_diff_summary_spec.rb
|
|
365
454
|
spec/models/template_document_spec.rb
|
|
366
455
|
spec/models/template_document_state_spec.rb
|
|
456
|
+
spec/models/template_document_summary_spec.rb
|
|
457
|
+
spec/models/template_field_change_spec.rb
|
|
458
|
+
spec/models/template_field_changes_spec.rb
|
|
367
459
|
spec/models/template_field_dependency_action_spec.rb
|
|
368
460
|
spec/models/template_field_dependency_condition_input_spec.rb
|
|
369
461
|
spec/models/template_field_dependency_condition_spec.rb
|
|
@@ -372,13 +464,18 @@ spec/models/template_field_dependency_match_spec.rb
|
|
|
372
464
|
spec/models/template_field_dependency_operator_spec.rb
|
|
373
465
|
spec/models/template_field_dependency_spec.rb
|
|
374
466
|
spec/models/template_field_logic_status_spec.rb
|
|
467
|
+
spec/models/template_field_move_spec.rb
|
|
468
|
+
spec/models/template_fields_spec.rb
|
|
375
469
|
spec/models/template_form_mode_spec.rb
|
|
376
470
|
spec/models/template_model_code_spec.rb
|
|
377
471
|
spec/models/template_page_ai_error_spec.rb
|
|
378
472
|
spec/models/template_page_ai_naming_status_spec.rb
|
|
379
473
|
spec/models/template_page_fields_status_spec.rb
|
|
380
474
|
spec/models/template_page_image_status_spec.rb
|
|
475
|
+
spec/models/template_page_images_spec.rb
|
|
381
476
|
spec/models/template_page_processing_status_spec.rb
|
|
477
|
+
spec/models/template_preview_spec.rb
|
|
478
|
+
spec/models/template_preview_state_spec.rb
|
|
382
479
|
spec/models/template_source_pdf_spec.rb
|
|
383
480
|
spec/models/template_spec.rb
|
|
384
481
|
spec/models/template_summary_list_spec.rb
|
|
@@ -392,11 +489,13 @@ spec/models/text_vertical_alignment_spec.rb
|
|
|
392
489
|
spec/models/typeface_spec.rb
|
|
393
490
|
spec/models/update_signature_request_request_spec.rb
|
|
394
491
|
spec/models/update_template_document_request_spec.rb
|
|
492
|
+
spec/models/update_template_fields_request_spec.rb
|
|
395
493
|
spec/models/update_template_request_spec.rb
|
|
396
494
|
spec/models/update_webhook_request_spec.rb
|
|
397
495
|
spec/models/upload_method_spec.rb
|
|
398
496
|
spec/models/upload_presign_spec.rb
|
|
399
497
|
spec/models/url_source_pdf_spec.rb
|
|
498
|
+
spec/models/validate_submission_request_spec.rb
|
|
400
499
|
spec/models/webhook_event_type_spec.rb
|
|
401
500
|
spec/models/webhook_list_spec.rb
|
|
402
501
|
spec/models/webhook_mode_spec.rb
|
data/.travis.yml
CHANGED
data/AGENTS.md
CHANGED
|
@@ -69,8 +69,9 @@ keeps it.
|
|
|
69
69
|
(https://docspring.com/docs/webhooks/overview/). A webhook created with API v2 sends events in API v2's format
|
|
70
70
|
(version 4).
|
|
71
71
|
- Verify each request's `X-DocSpring-Signature` header before acting on it: an HMAC-SHA256 of `{t}.{raw body}` with the
|
|
72
|
-
webhook's signing secret,
|
|
73
|
-
(https://docspring.com/docs/webhooks/verifying-signatures/).
|
|
72
|
+
webhook's signing secret, where `t` must be within 5 minutes
|
|
73
|
+
(https://docspring.com/docs/webhooks/verifying-signatures/). Pass the raw body exactly as received, not parsed JSON,
|
|
74
|
+
to `DocSpring.verify_webhook_signature(payload, signature_header, secret)`, which returns true or false.
|
|
74
75
|
- No webhook is sent when a submission starts waiting for credits.
|
|
75
76
|
|
|
76
77
|
## Signature requests
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,67 @@
|
|
|
1
|
+
### 4.2.0 [October 29, 2026]
|
|
2
|
+
|
|
3
|
+
- **BREAKING CHANGE**: list_templates returns a shorter `TemplateSummary`: a template's name, description, type, folder
|
|
4
|
+
(`parent_folder_id`, `path`), latest published version, whether it's `ready`, and its PDF's file name, state, error
|
|
5
|
+
and page count (`document`, a `TemplateDocumentSummary`). get_template returns its settings and the rest.
|
|
6
|
+
- **BREAKING CHANGE**: list_submissions and list_template_submissions return `SubmissionSummary` instead of
|
|
7
|
+
`Submission`: without signature requests and uploads, with `data` only when you pass `include_data` (as before), and
|
|
8
|
+
with `files` only when you pass the new `include_files` (without the links to page images). get_submission returns the
|
|
9
|
+
whole submission.
|
|
10
|
+
- New: the template webhook events (version 4) send the whole template, as get_template returns it, without its
|
|
11
|
+
`embed_edit_token`. They sent the settings without the rest.
|
|
12
|
+
- New: list_submissions and list_template_submissions take a `state` filter: one state, such as `invalid_data` or
|
|
13
|
+
`error`.
|
|
14
|
+
- New: get_template_model_code takes `just_types`, for the types alone, without the code that converts and checks JSON
|
|
15
|
+
(TypeScript, Ruby, Python, Java, C#, Elixir and Go: JavaScript and PHP code is the same either way).
|
|
16
|
+
- New: create_submission, create_submission_batch and create_combined_pdf take an `Idempotency-Key` header. A request
|
|
17
|
+
repeated with the same key within 24 hours returns the first response and creates nothing. The same key with a
|
|
18
|
+
different request is a 422, and a repeat while the first request is still running is a 409.
|
|
19
|
+
- New: create_template_preview and get_template_preview fill an HTML or PDF template's draft (or a published version)
|
|
20
|
+
with your data and return PNG images of its pages, not a PDF, so you can check how it prints before you publish it or
|
|
21
|
+
send live data. A preview creates no submission and uses no credits. Get the preview until its `state` is
|
|
22
|
+
`processed`. Previews are watermarked like test PDFs.
|
|
23
|
+
- New: HTML templates' `html_escape_data` setting HTML-escapes the values they print (`{{ value }}`). It's on for new
|
|
24
|
+
templates and off for existing ones; `{{ value | raw }}` prints a value as it is.
|
|
25
|
+
- New: `DocSpring.verify_webhook_signature(payload, signature_header, secret)` checks a webhook request's
|
|
26
|
+
`X-DocSpring-Signature` header. Pass it the request body exactly as it was received. It returns true or false, accepts
|
|
27
|
+
any `v1` that matches and rejects a timestamp more than 5 minutes old (`tolerance:` for another tolerance).
|
|
28
|
+
- publish_template_version answers 409 when the draft hasn't changed since the latest published version, instead of
|
|
29
|
+
publishing a copy of it (code `conflict`). A template's first publish always works.
|
|
30
|
+
- Every operation documents the 429 rate limit response (with `Retry-After`), and the creates that the sync hosts wait
|
|
31
|
+
for document their 504 (the record was saved: get it by the ID in the error).
|
|
32
|
+
- Every optional field takes `null` in a submission's `data`, whatever its type, so model code that writes missing
|
|
33
|
+
values as null works. A null checkbox or group of fields (an object or a list) gets its defaults, as a missing key
|
|
34
|
+
does, and a null text, number, date, image or signature field prints blank, as before. Null in a required field is
|
|
35
|
+
still an error.
|
|
36
|
+
- Query parameters and request body values that take a date and time (`created_after`, `created_before`) take a `Time`,
|
|
37
|
+
`DateTime` or `Date` as well as a string, sent as RFC 3339 (a `Date` as midnight UTC). They failed the request's
|
|
38
|
+
validation before.
|
|
39
|
+
- Template and webhook names can be up to 512 characters, up from 255.
|
|
40
|
+
|
|
41
|
+
### 4.1.0 [October 27, 2026]
|
|
42
|
+
|
|
43
|
+
- New: list_template_fields, add_template_fields, update_template_fields, remove_template_fields and
|
|
44
|
+
reorder_template_fields read and edit a template's fields (`Field`), with all their settings and their own conditional
|
|
45
|
+
logic (`dependencies`). A field's `y` is measured from the top of its page.
|
|
46
|
+
- New: a template's `predefined_fields` (`PredefinedField`) and `predefined_fields_sample_data`, the field names that
|
|
47
|
+
people using the embedded template editor choose from. get_template returns them, and create_template and
|
|
48
|
+
update_template set them.
|
|
49
|
+
- New: a template's `field_groups` (`FieldGroup`), the groups that its fields' names make, with their titles and the
|
|
50
|
+
settings of lists (`min_items`, `max_items`, `allow_additional_items`). get_template returns them, and update_template
|
|
51
|
+
changes them.
|
|
52
|
+
- New: get_template_page_images returns an image of each page of a PDF template (`TemplatePageImages`), to see where
|
|
53
|
+
fields go.
|
|
54
|
+
- New: get_template_diff says what changed in a template's draft since its latest published version, or in a published
|
|
55
|
+
version since the one before it (`TemplateDiff`).
|
|
56
|
+
- New: validate_submission checks a submission's data and settings as create_submission does, without creating the
|
|
57
|
+
submission or using credits (`SubmissionValidation`). It doesn't check your account's credits.
|
|
58
|
+
- New: the `png` output format, an image of each page of a submission's PDF (`files.png.pages`). Add it to
|
|
59
|
+
`output_formats` in create_submission or create_submission_batch (it adds `pdf`), or to a processed submission with
|
|
60
|
+
generate_submission_files.
|
|
61
|
+
- create_template and update_template_document take a `document_url` (DocSpring downloads it) or a `document_base64`
|
|
62
|
+
instead of a `cache_id`. While the URL downloads, the template's `document.state` is `downloading`; if it can't be
|
|
63
|
+
downloaded, it's `download_failed` and `document.error_message` says why.
|
|
64
|
+
|
|
1
65
|
### 4.0.0 [October 26, 2026]
|
|
2
66
|
|
|
3
67
|
- **BREAKING CHANGE**: This version calls DocSpring API v2 (`/api/v2`). The 3.x versions call API v1, which keeps
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
docspring (4.
|
|
4
|
+
docspring (4.2.0)
|
|
5
5
|
logger
|
|
6
6
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ GEM
|
|
|
14
14
|
coderay (1.1.3)
|
|
15
15
|
date (3.6.0)
|
|
16
16
|
diff-lcs (1.6.2)
|
|
17
|
-
ethon (0.
|
|
17
|
+
ethon (0.19.1)
|
|
18
18
|
ffi (>= 1.15.0)
|
|
19
19
|
logger
|
|
20
20
|
ffi (1.17.4)
|
|
@@ -28,7 +28,7 @@ GEM
|
|
|
28
28
|
ffi (1.17.4-x86_64-darwin)
|
|
29
29
|
ffi (1.17.4-x86_64-linux-gnu)
|
|
30
30
|
ffi (1.17.4-x86_64-linux-musl)
|
|
31
|
-
io-console (0.9.
|
|
31
|
+
io-console (0.9.5)
|
|
32
32
|
jaro_winkler (1.5.6)
|
|
33
33
|
logger (1.7.0)
|
|
34
34
|
method_source (1.1.0)
|
|
@@ -74,8 +74,8 @@ GEM
|
|
|
74
74
|
unicode-display_width (>= 1.4.0, < 1.6)
|
|
75
75
|
ruby-progressbar (1.13.0)
|
|
76
76
|
stringio (3.2.0)
|
|
77
|
-
typhoeus (1.
|
|
78
|
-
ethon (>= 0.
|
|
77
|
+
typhoeus (1.7.1)
|
|
78
|
+
ethon (>= 0.19.1, < 0.20.0)
|
|
79
79
|
unicode-display_width (1.5.0)
|
|
80
80
|
|
|
81
81
|
PLATFORMS
|
|
@@ -104,8 +104,8 @@ CHECKSUMS
|
|
|
104
104
|
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
105
105
|
date (3.6.0) sha256=18ac945c4e24ebd93534f8eab8c2fd8c5604b3e977105b3798d62a1e8d27b580
|
|
106
106
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
107
|
-
docspring (4.
|
|
108
|
-
ethon (0.
|
|
107
|
+
docspring (4.2.0)
|
|
108
|
+
ethon (0.19.1) sha256=f309dec67cfdefaf96b3d1ee0ed4f186eac518f131340f607bb3df3b4e13ddc4
|
|
109
109
|
ffi (1.17.4) sha256=bcd1642e06f0d16fc9e09ac6d49c3a7298b9789bcb58127302f934e437d60acf
|
|
110
110
|
ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
|
|
111
111
|
ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
|
|
@@ -117,7 +117,7 @@ CHECKSUMS
|
|
|
117
117
|
ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496
|
|
118
118
|
ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d
|
|
119
119
|
ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e
|
|
120
|
-
io-console (0.9.
|
|
120
|
+
io-console (0.9.5) sha256=83dd9bbf4c4680416629245b39cd4212eb5f4d9a4ea91804870c1f6b846414d5
|
|
121
121
|
jaro_winkler (1.5.6) sha256=007db7805527ada1cc12f2547676181d63b0a504ec4dd7a9a2eb2424521ccd81
|
|
122
122
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
123
123
|
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
@@ -138,7 +138,7 @@ CHECKSUMS
|
|
|
138
138
|
rubocop (0.66.0) sha256=f05a6896f367765b3f0fba663d0add120444f8de604dada405662b10a0860f5a
|
|
139
139
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
140
140
|
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
141
|
-
typhoeus (1.
|
|
141
|
+
typhoeus (1.7.1) sha256=86dcb6d787ee08e34947c9436b24af3c4b02880dc83c466b6ca4dbfc53c2ee7f
|
|
142
142
|
unicode-display_width (1.5.0) sha256=9890eebd24feb4cb0e0542c9b8c6beecb40cda27be8c7afe49312625b36156eb
|
|
143
143
|
|
|
144
144
|
BUNDLED WITH
|
data/README.md
CHANGED
|
@@ -9,7 +9,7 @@ templates with your data, generates PDFs from HTML templates, combines PDFs and
|
|
|
9
9
|
The code in this repository is generated from DocSpring's OpenAPI spec ([About this SDK](#about-this-sdk)). Issues and
|
|
10
10
|
pull requests are welcome.
|
|
11
11
|
|
|
12
|
-
Version 4.
|
|
12
|
+
Version 4.2.0. Requires Ruby >= 2.7.
|
|
13
13
|
|
|
14
14
|
## Install and configure
|
|
15
15
|
|
|
@@ -86,6 +86,7 @@ Ruby code for every method.
|
|
|
86
86
|
|
|
87
87
|
| Method | Description |
|
|
88
88
|
| ------ | ----------- |
|
|
89
|
+
| [`add_template_fields`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#add_template_fields) | Add fields to a template |
|
|
89
90
|
| [`copy_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#copy_template) | Copy a template |
|
|
90
91
|
| [`create_combined_pdf`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_combined_pdf) | Combine PDFs |
|
|
91
92
|
| [`create_custom_file_from_upload`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_custom_file_from_upload) | Create a custom file from an upload |
|
|
@@ -95,6 +96,7 @@ Ruby code for every method.
|
|
|
95
96
|
| [`create_submission`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_submission) | Generate a PDF |
|
|
96
97
|
| [`create_submission_batch`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_submission_batch) | Generate PDFs in a batch |
|
|
97
98
|
| [`create_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_template) | Create a template |
|
|
99
|
+
| [`create_template_preview`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_template_preview) | Preview a template with data |
|
|
98
100
|
| [`create_webhook`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_webhook) | Create a webhook |
|
|
99
101
|
| [`delete_custom_file`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_custom_file) | Delete a custom file |
|
|
100
102
|
| [`delete_folder`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_folder) | Delete a folder |
|
|
@@ -102,6 +104,7 @@ Ruby code for every method.
|
|
|
102
104
|
| [`delete_webhook`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_webhook) | Delete a webhook |
|
|
103
105
|
| [`expire_combined_pdf`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#expire_combined_pdf) | Expire a combined PDF |
|
|
104
106
|
| [`expire_submission`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#expire_submission) | Expire a submission |
|
|
107
|
+
| [`generate_submission_files`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#generate_submission_files) | Generate more files |
|
|
105
108
|
| [`generate_submission_preview`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#generate_submission_preview) | Generate a preview PDF |
|
|
106
109
|
| [`get_combined_pdf`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_combined_pdf) | Get a combined PDF |
|
|
107
110
|
| [`get_custom_file`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_custom_file) | Get a custom file |
|
|
@@ -111,28 +114,36 @@ Ruby code for every method.
|
|
|
111
114
|
| [`get_submission`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_submission) | Get a submission |
|
|
112
115
|
| [`get_submission_batch`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_submission_batch) | Get a batch |
|
|
113
116
|
| [`get_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_template) | Get a template |
|
|
117
|
+
| [`get_template_diff`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_template_diff) | Compare a version of a template with the one before it |
|
|
114
118
|
| [`get_template_model_code`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_template_model_code) | Generate typed code for a template's submission data |
|
|
119
|
+
| [`get_template_page_images`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_template_page_images) | Get images of a template's pages |
|
|
120
|
+
| [`get_template_preview`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_template_preview) | Get a template preview |
|
|
115
121
|
| [`get_template_schema`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_template_schema) | Get the JSON Schema of a template's submission data |
|
|
116
122
|
| [`get_webhook`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_webhook) | Get a webhook |
|
|
117
123
|
| [`list_combined_pdfs`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_combined_pdfs) | List combined PDFs |
|
|
118
124
|
| [`list_custom_files`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_custom_files) | List custom files |
|
|
119
125
|
| [`list_folders`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_folders) | List folders |
|
|
120
126
|
| [`list_submissions`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_submissions) | List submissions |
|
|
127
|
+
| [`list_template_fields`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_template_fields) | List a template's fields |
|
|
121
128
|
| [`list_template_submissions`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_template_submissions) | List a template's submissions |
|
|
122
129
|
| [`list_templates`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_templates) | List templates |
|
|
123
130
|
| [`list_webhooks`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_webhooks) | List webhooks |
|
|
124
131
|
| [`move_folder`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#move_folder) | Move a folder |
|
|
125
132
|
| [`move_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#move_template) | Move a template to a folder |
|
|
126
133
|
| [`publish_template_version`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#publish_template_version) | Publish a template version |
|
|
134
|
+
| [`remove_template_fields`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#remove_template_fields) | Remove fields from a template |
|
|
127
135
|
| [`rename_folder`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#rename_folder) | Rename a folder |
|
|
136
|
+
| [`reorder_template_fields`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#reorder_template_fields) | Reorder a template's fields |
|
|
128
137
|
| [`restore_template_version`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#restore_template_version) | Restore a template version |
|
|
129
138
|
| [`test_authentication`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#test_authentication) | Test authentication |
|
|
130
139
|
| [`update_signature_request`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_signature_request) | Update a signature request |
|
|
131
140
|
| [`update_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_template) | Update a template |
|
|
132
141
|
| [`update_template_document`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_template_document) | Replace a template's PDF |
|
|
142
|
+
| [`update_template_fields`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_template_fields) | Update a template's fields |
|
|
133
143
|
| [`update_webhook`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_webhook) | Update a webhook |
|
|
134
144
|
| [`upload_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#upload_template) | Create a PDF template from an uploaded PDF |
|
|
135
145
|
| [`upload_template_document`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#upload_template_document) | Replace a template's PDF with an uploaded PDF |
|
|
146
|
+
| [`validate_submission`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#validate_submission) | Check a submission without creating it |
|
|
136
147
|
|
|
137
148
|
## Errors
|
|
138
149
|
|
|
@@ -166,6 +177,8 @@ On top of the generated code, we add:
|
|
|
166
177
|
|
|
167
178
|
- A client constructor that reads your credentials, region and host from the environment.
|
|
168
179
|
- A fix for multipart PUT requests in Ethon (file uploads to `upload_template_document`).
|
|
180
|
+
- Dates and times in a request (`created_after`, a model's date-time attribute) can be a `Time`, `DateTime` or `Date`, sent as RFC 3339 strings. A `Date` is midnight UTC.
|
|
181
|
+
- `DocSpring.verify_webhook_signature(payload, signature_header, secret)` checks a webhook request's `X-DocSpring-Signature` header, with `tolerance:` and `now:` keywords.
|
|
169
182
|
|
|
170
183
|
Each release regenerates every file, so a change made only here would be lost in the next one. Issues and pull
|
|
171
184
|
requests are welcome all the same: [open an issue](https://github.com/DocSpring/docspring-ruby/issues) or a pull request, or email
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# DocSpring::AddTemplateFieldsRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **fields** | [**Array<FieldInput>**](FieldInput.md) | The fields to add. Settings left out have their defaults, except that a field with the name of other fields takes their shared settings. Shared settings it sets change them for every field with the name. | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'docspring'
|
|
13
|
+
|
|
14
|
+
instance = DocSpring::AddTemplateFieldsRequest.new(
|
|
15
|
+
fields: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|