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.
Files changed (116) hide show
  1. package/AGENTS.md +3 -2
  2. package/README.md +13 -1
  3. package/dist/ApiClient.js +2 -2
  4. package/dist/RequestSchemas.js +1231 -9
  5. package/dist/WebhookSignature.js +86 -0
  6. package/dist/api/Client.js +620 -38
  7. package/dist/index.js +238 -0
  8. package/dist/model/AddTemplateFieldsRequest.js +132 -0
  9. package/dist/model/AuthenticationCheck.js +1 -1
  10. package/dist/model/CombinedPdf.js +3 -3
  11. package/dist/model/CombinedPdfFiles.js +1 -1
  12. package/dist/model/CombinedPdfList.js +1 -1
  13. package/dist/model/CombinedPdfSource.js +1 -1
  14. package/dist/model/CombinedPdfSourceInput.js +1 -1
  15. package/dist/model/CombinedPdfSourcePdf.js +1 -1
  16. package/dist/model/CopyTemplateRequest.js +1 -1
  17. package/dist/model/CreateCombinedPdfRequest.js +2 -2
  18. package/dist/model/CreateCustomFileFromUploadRequest.js +1 -1
  19. package/dist/model/CreateFolderRequest.js +1 -1
  20. package/dist/model/CreateSignatureRequestEventRequest.js +1 -1
  21. package/dist/model/CreateSignatureRequestTokenRequest.js +1 -1
  22. package/dist/model/CreateSubmissionBatchRequest.js +15 -1
  23. package/dist/model/CreateSubmissionRequest.js +17 -3
  24. package/dist/model/CreateTemplatePreviewRequest.js +112 -0
  25. package/dist/model/CreateTemplateRequest.js +81 -4
  26. package/dist/model/CreateWebhookRequest.js +1 -1
  27. package/dist/model/CustomFile.js +1 -1
  28. package/dist/model/CustomFileList.js +1 -1
  29. package/dist/model/CustomFileSourcePdf.js +1 -1
  30. package/dist/model/ErrorCode.js +11 -1
  31. package/dist/model/ErrorDetail.js +2 -2
  32. package/dist/model/ErrorInfo.js +6 -6
  33. package/dist/model/ErrorResponse.js +1 -1
  34. package/dist/model/Field.js +1230 -0
  35. package/dist/model/FieldComparisonCondition.js +1 -1
  36. package/dist/model/FieldDependency.js +154 -0
  37. package/dist/model/FieldDependencyInput.js +154 -0
  38. package/dist/model/FieldEqualsCondition.js +1 -1
  39. package/dist/model/FieldGroup.js +206 -0
  40. package/dist/model/FieldGroupInput.js +180 -0
  41. package/dist/model/FieldGroupType.js +59 -0
  42. package/dist/model/FieldInCondition.js +1 -1
  43. package/dist/model/FieldInput.js +1012 -0
  44. package/dist/model/FieldOverride.js +1 -1
  45. package/dist/model/FieldPresenceCondition.js +1 -1
  46. package/dist/model/FieldRangeCondition.js +1 -1
  47. package/dist/model/FieldType.js +124 -0
  48. package/dist/model/Folder.js +1 -1
  49. package/dist/model/FolderList.js +1 -1
  50. package/dist/model/GenerateFilesFormat.js +54 -0
  51. package/dist/model/GenerateSubmissionFilesRequest.js +115 -0
  52. package/dist/model/GeneratedFile.js +1 -1
  53. package/dist/model/HtmlEngineOptions.js +1 -1
  54. package/dist/model/HtmlEngineOptionsInput.js +1 -1
  55. package/dist/model/MoveFolderRequest.js +1 -1
  56. package/dist/model/MoveTemplateRequest.js +1 -1
  57. package/dist/model/OutputFormat.js +59 -0
  58. package/dist/model/PageImage.js +220 -0
  59. package/dist/model/PageImages.js +155 -0
  60. package/dist/model/PredefinedField.js +183 -0
  61. package/dist/model/PredefinedFieldInput.js +183 -0
  62. package/dist/model/PublishTemplateVersionRequest.js +1 -1
  63. package/dist/model/RemoveTemplateFieldsRequest.js +114 -0
  64. package/dist/model/RenameFolderRequest.js +1 -1
  65. package/dist/model/ReorderTemplateFieldsRequest.js +114 -0
  66. package/dist/model/RestoreTemplateVersionRequest.js +1 -1
  67. package/dist/model/SignatureRequest.js +1 -1
  68. package/dist/model/SignatureRequestEvent.js +1 -1
  69. package/dist/model/SignatureRequestInput.js +1 -1
  70. package/dist/model/SignatureRequestToken.js +1 -1
  71. package/dist/model/Submission.js +84 -68
  72. package/dist/model/SubmissionAction.js +1 -1
  73. package/dist/model/SubmissionBatch.js +1 -1
  74. package/dist/model/SubmissionFiles.js +10 -1
  75. package/dist/model/SubmissionInput.js +17 -3
  76. package/dist/model/SubmissionList.js +5 -5
  77. package/dist/model/SubmissionSourcePdf.js +1 -1
  78. package/dist/model/SubmissionSummary.js +343 -0
  79. package/dist/model/SubmissionValidation.js +151 -0
  80. package/dist/model/Template.js +129 -56
  81. package/dist/model/TemplateActor.js +3 -3
  82. package/dist/model/TemplateDefaults.js +1 -1
  83. package/dist/model/TemplateDefaultsInput.js +1 -1
  84. package/dist/model/TemplateDiff.js +206 -0
  85. package/dist/model/TemplateDiffSummary.js +165 -0
  86. package/dist/model/TemplateDocument.js +36 -36
  87. package/dist/model/TemplateDocumentState.js +11 -1
  88. package/dist/model/TemplateDocumentSummary.js +152 -0
  89. package/dist/model/TemplateFieldChange.js +146 -0
  90. package/dist/model/TemplateFieldChanges.js +196 -0
  91. package/dist/model/TemplateFieldDependency.js +3 -3
  92. package/dist/model/TemplateFieldDependencyCondition.js +1 -1
  93. package/dist/model/TemplateFieldDependencyConditionInput.js +1 -1
  94. package/dist/model/TemplateFieldDependencyInput.js +3 -3
  95. package/dist/model/TemplateFieldMove.js +132 -0
  96. package/dist/model/TemplateFields.js +147 -0
  97. package/dist/model/TemplateModelCode.js +1 -1
  98. package/dist/model/TemplatePageImages.js +158 -0
  99. package/dist/model/TemplatePageProcessingStatus.js +1 -1
  100. package/dist/model/TemplatePreview.js +211 -0
  101. package/dist/model/TemplatePreviewState.js +64 -0
  102. package/dist/model/TemplateSourcePdf.js +1 -1
  103. package/dist/model/TemplateSummary.js +14 -288
  104. package/dist/model/TemplateSummaryList.js +1 -1
  105. package/dist/model/TemplateVersion.js +1 -1
  106. package/dist/model/UpdateSignatureRequestRequest.js +1 -1
  107. package/dist/model/UpdateTemplateDocumentRequest.js +33 -30
  108. package/dist/model/UpdateTemplateFieldsRequest.js +132 -0
  109. package/dist/model/UpdateTemplateRequest.js +84 -2
  110. package/dist/model/UpdateWebhookRequest.js +1 -1
  111. package/dist/model/UploadPresign.js +1 -1
  112. package/dist/model/UrlSourcePdf.js +1 -1
  113. package/dist/model/ValidateSubmissionRequest.js +226 -0
  114. package/dist/model/Webhook.js +1 -1
  115. package/dist/model/WebhookList.js +1 -1
  116. package/package.json +3 -2
@@ -7,6 +7,381 @@ exports["default"] = void 0;
7
7
  // API v2's request schemas (api_clients/scripts/extract_request_schemas), for RequestValidator.js
8
8
  var _default = exports["default"] = {
9
9
  "operations": {
10
+ "addTemplateFields": {
11
+ "body": {
12
+ "mediaType": "application/json",
13
+ "required": true,
14
+ "schema": {
15
+ "type": "object",
16
+ "required": ["fields"],
17
+ "properties": {
18
+ "fields": {
19
+ "type": "array",
20
+ "minItems": 1,
21
+ "maxItems": 1000,
22
+ "items": {
23
+ "type": "object",
24
+ "properties": {
25
+ "name": {
26
+ "type": ["string", "null"]
27
+ },
28
+ "page": {
29
+ "type": "integer",
30
+ "minimum": 1
31
+ },
32
+ "type": {
33
+ "type": "string",
34
+ "enum": ["string", "number", "boolean", "date", "address", "country", "email", "url", "image", "signature", "initials", "barcode", "combined"]
35
+ },
36
+ "static": {
37
+ "type": "boolean"
38
+ },
39
+ "editable": {
40
+ "type": "boolean"
41
+ },
42
+ "default": {
43
+ "type": ["string", "null"]
44
+ },
45
+ "title": {
46
+ "type": "string"
47
+ },
48
+ "description": {
49
+ "type": "string"
50
+ },
51
+ "placeholder": {
52
+ "type": "string"
53
+ },
54
+ "metadata": {
55
+ "type": "string"
56
+ },
57
+ "required": {
58
+ "type": "boolean"
59
+ },
60
+ "option_list": {
61
+ "type": ["string", "null"]
62
+ },
63
+ "combined_field_names": {
64
+ "type": "string"
65
+ },
66
+ "combined_field_type": {
67
+ "type": "string",
68
+ "enum": ["separator", "format"]
69
+ },
70
+ "combined_field_separator": {
71
+ "type": "string"
72
+ },
73
+ "combined_field_format": {
74
+ "type": "string"
75
+ },
76
+ "integer": {
77
+ "type": "boolean"
78
+ },
79
+ "minimum": {
80
+ "type": ["number", "null"]
81
+ },
82
+ "maximum": {
83
+ "type": ["number", "null"]
84
+ },
85
+ "exclusive_minimum": {
86
+ "type": "boolean"
87
+ },
88
+ "exclusive_maximum": {
89
+ "type": "boolean"
90
+ },
91
+ "include_time": {
92
+ "type": ["boolean", "null"]
93
+ },
94
+ "signature_allow_draw": {
95
+ "type": "boolean"
96
+ },
97
+ "signature_allow_type": {
98
+ "type": "boolean"
99
+ },
100
+ "barcode_symbology": {
101
+ "type": "string",
102
+ "enum": ["code_25", "code_39", "code_93", "code_128", "ean_13", "ean_8", "upc_a", "pdf417"]
103
+ },
104
+ "hidden": {
105
+ "type": "boolean"
106
+ },
107
+ "x": {
108
+ "type": "number",
109
+ "minimum": 0
110
+ },
111
+ "y": {
112
+ "type": "number",
113
+ "minimum": 0
114
+ },
115
+ "width": {
116
+ "type": "number",
117
+ "exclusiveMinimum": 0
118
+ },
119
+ "height": {
120
+ "type": "number",
121
+ "exclusiveMinimum": 0
122
+ },
123
+ "rotation": {
124
+ "type": "number",
125
+ "minimum": -360,
126
+ "maximum": 360
127
+ },
128
+ "display_type": {
129
+ "type": "string",
130
+ "enum": ["text", "check", "qrcode", "barcode", "image", "shape"]
131
+ },
132
+ "opacity": {
133
+ "type": "number",
134
+ "minimum": 0,
135
+ "maximum": 1
136
+ },
137
+ "date_time_format": {
138
+ "type": ["string", "null"]
139
+ },
140
+ "typeface": {
141
+ "type": ["string", "null"],
142
+ "enum": ["Inconsolata", "Roboto Mono", "Ubuntu Mono", "Menlo", "Courier", "Helvetica", "Arial", "Calibri", "Open Sans", "Roboto", "Lato", "Poppins", "Public Sans", "Questrial", "Times New Roman", "Dancing Script", "Lovtony Script", null]
143
+ },
144
+ "font_size": {
145
+ "type": ["integer", "null"],
146
+ "minimum": 1
147
+ },
148
+ "character_spacing": {
149
+ "type": "number",
150
+ "minimum": 0,
151
+ "maximum": 50
152
+ },
153
+ "bold": {
154
+ "type": "boolean"
155
+ },
156
+ "uppercase": {
157
+ "type": "boolean"
158
+ },
159
+ "strikethrough": {
160
+ "type": "boolean"
161
+ },
162
+ "keep_leading_spaces": {
163
+ "type": "boolean"
164
+ },
165
+ "overflow": {
166
+ "type": "string",
167
+ "enum": ["shrink_to_fit", "truncate"]
168
+ },
169
+ "multiline": {
170
+ "type": "boolean"
171
+ },
172
+ "multiline_lines": {
173
+ "type": ["integer", "null"],
174
+ "minimum": 1,
175
+ "maximum": 300
176
+ },
177
+ "min_length": {
178
+ "type": "number"
179
+ },
180
+ "max_length": {
181
+ "type": ["integer", "null"],
182
+ "minimum": 0
183
+ },
184
+ "auto_calculate_max_length": {
185
+ "type": "boolean"
186
+ },
187
+ "color": {
188
+ "type": ["string", "null"],
189
+ "pattern": "^[A-Fa-f0-9]{6}$",
190
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
191
+ },
192
+ "color_field_name": {
193
+ "type": ["string", "null"]
194
+ },
195
+ "color_field_required": {
196
+ "type": "boolean"
197
+ },
198
+ "background_color": {
199
+ "type": ["string", "null"],
200
+ "pattern": "^[A-Fa-f0-9]{6}$",
201
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
202
+ },
203
+ "background_color_field_name": {
204
+ "type": ["string", "null"]
205
+ },
206
+ "background_color_field_required": {
207
+ "type": "boolean"
208
+ },
209
+ "alignment": {
210
+ "type": "string",
211
+ "enum": ["left", "center", "right", "justify"]
212
+ },
213
+ "v_alignment": {
214
+ "type": "string",
215
+ "enum": ["bottom", "center", "top"]
216
+ },
217
+ "comb": {
218
+ "type": "boolean"
219
+ },
220
+ "comb_number_of_cells": {
221
+ "type": "integer",
222
+ "minimum": 1
223
+ },
224
+ "comb_value_offset": {
225
+ "type": "integer",
226
+ "minimum": 0
227
+ },
228
+ "shape_type": {
229
+ "type": "string",
230
+ "enum": ["square", "rectangle", "circle", "ellipse", "triangle", "polygon"]
231
+ },
232
+ "shape_sides": {
233
+ "type": "integer",
234
+ "minimum": 3,
235
+ "maximum": 12
236
+ },
237
+ "shape_border_width": {
238
+ "type": "integer",
239
+ "minimum": 1
240
+ },
241
+ "shape_border_color": {
242
+ "type": "string",
243
+ "pattern": "^[A-Fa-f0-9]{6}$",
244
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
245
+ },
246
+ "shape_border_color_field_name": {
247
+ "type": ["string", "null"]
248
+ },
249
+ "shape_border_color_field_required": {
250
+ "type": "boolean"
251
+ },
252
+ "shape_fill_color": {
253
+ "type": ["string", "null"],
254
+ "pattern": "^[A-Fa-f0-9]{6}$",
255
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
256
+ },
257
+ "shape_fill_color_field_name": {
258
+ "type": ["string", "null"]
259
+ },
260
+ "shape_fill_color_field_required": {
261
+ "type": "boolean"
262
+ },
263
+ "check_character": {
264
+ "type": "string",
265
+ "enum": ["✓", "✔", "✖", "✗", "✘"]
266
+ },
267
+ "check_color": {
268
+ "type": ["string", "null"],
269
+ "pattern": "^[A-Fa-f0-9]{6}$",
270
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
271
+ },
272
+ "check_color_field_name": {
273
+ "type": ["string", "null"]
274
+ },
275
+ "check_color_field_required": {
276
+ "type": "boolean"
277
+ },
278
+ "qrcode_color": {
279
+ "type": ["string", "null"],
280
+ "pattern": "^[A-Fa-f0-9]{6}$",
281
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
282
+ },
283
+ "qrcode_color_field_name": {
284
+ "type": ["string", "null"]
285
+ },
286
+ "qrcode_color_field_required": {
287
+ "type": "boolean"
288
+ },
289
+ "true_text": {
290
+ "type": ["string", "null"]
291
+ },
292
+ "false_text": {
293
+ "type": ["string", "null"]
294
+ },
295
+ "condition": {
296
+ "type": ["string", "null"]
297
+ },
298
+ "string_condition_type": {
299
+ "type": "string",
300
+ "enum": ["equals", "contains", "starts_with", "ends_with", "regex"]
301
+ },
302
+ "number_condition_type": {
303
+ "type": "string",
304
+ "enum": ["equals", "range", "gte", "gt", "lte", "lt"]
305
+ },
306
+ "number_condition_range_min": {
307
+ "type": ["number", "null"]
308
+ },
309
+ "number_condition_range_max": {
310
+ "type": ["number", "null"]
311
+ },
312
+ "number_condition_range_exclusive_min": {
313
+ "type": "boolean"
314
+ },
315
+ "number_condition_range_exclusive_max": {
316
+ "type": "boolean"
317
+ },
318
+ "invert_boolean_condition": {
319
+ "type": "boolean"
320
+ },
321
+ "currency": {
322
+ "type": "boolean"
323
+ },
324
+ "decimal_places": {
325
+ "type": ["integer", "null"],
326
+ "minimum": 0,
327
+ "maximum": 99
328
+ },
329
+ "image_scale_type": {
330
+ "type": "string",
331
+ "enum": ["fit", "fill", "stretch"]
332
+ },
333
+ "image_gravity": {
334
+ "type": "string",
335
+ "enum": ["NorthWest", "North", "NorthEast", "West", "Center", "East", "SouthWest", "South", "SouthEast"]
336
+ },
337
+ "dependencies": {
338
+ "type": ["object", "null"],
339
+ "required": ["action", "conditions"],
340
+ "properties": {
341
+ "action": {
342
+ "type": "string",
343
+ "enum": ["require_and_show", "show", "require"]
344
+ },
345
+ "match": {
346
+ "type": "string",
347
+ "enum": ["all", "any"]
348
+ },
349
+ "conditions": {
350
+ "type": "array",
351
+ "items": {
352
+ "oneOf": [{
353
+ "$ref": "#/components/schemas/FieldPresenceCondition"
354
+ }, {
355
+ "$ref": "#/components/schemas/FieldEqualsCondition"
356
+ }, {
357
+ "$ref": "#/components/schemas/FieldInCondition"
358
+ }, {
359
+ "$ref": "#/components/schemas/FieldComparisonCondition"
360
+ }, {
361
+ "$ref": "#/components/schemas/FieldRangeCondition"
362
+ }],
363
+ "discriminator": {
364
+ "propertyName": "operator",
365
+ "mapping": [["present", "#/components/schemas/FieldPresenceCondition"], ["blank", "#/components/schemas/FieldPresenceCondition"], ["equals", "#/components/schemas/FieldEqualsCondition"], ["not_equals", "#/components/schemas/FieldEqualsCondition"], ["in", "#/components/schemas/FieldInCondition"], ["gt", "#/components/schemas/FieldComparisonCondition"], ["gte", "#/components/schemas/FieldComparisonCondition"], ["lt", "#/components/schemas/FieldComparisonCondition"], ["lte", "#/components/schemas/FieldComparisonCondition"], ["range", "#/components/schemas/FieldRangeCondition"]]
366
+ }
367
+ }
368
+ }
369
+ },
370
+ "additionalProperties": false
371
+ },
372
+ "id": {
373
+ "type": "integer",
374
+ "minimum": 0
375
+ }
376
+ },
377
+ "additionalProperties": false
378
+ }
379
+ }
380
+ },
381
+ "additionalProperties": false
382
+ }
383
+ }
384
+ },
10
385
  "copyTemplate": {
11
386
  "body": {
12
387
  "mediaType": "application/json",
@@ -17,7 +392,7 @@ var _default = exports["default"] = {
17
392
  "name": {
18
393
  "type": "string",
19
394
  "minLength": 1,
20
- "maxLength": 255
395
+ "maxLength": 512
21
396
  },
22
397
  "parent_folder_id": {
23
398
  "type": ["string", "null"],
@@ -216,6 +591,15 @@ var _default = exports["default"] = {
216
591
  "type": "string",
217
592
  "minLength": 1
218
593
  },
594
+ "output_formats": {
595
+ "type": "array",
596
+ "minItems": 1,
597
+ "uniqueItems": true,
598
+ "items": {
599
+ "type": "string",
600
+ "enum": ["pdf", "png"]
601
+ }
602
+ },
219
603
  "expires_in": {
220
604
  "type": "integer",
221
605
  "minimum": 1,
@@ -245,7 +629,7 @@ var _default = exports["default"] = {
245
629
  },
246
630
  "email": {
247
631
  "type": ["string", "null"],
248
- "maxLength": 255
632
+ "maxLength": 254
249
633
  },
250
634
  "fields": {
251
635
  "type": "array",
@@ -336,6 +720,15 @@ var _default = exports["default"] = {
336
720
  "test": {
337
721
  "type": "boolean"
338
722
  },
723
+ "output_formats": {
724
+ "type": "array",
725
+ "minItems": 1,
726
+ "uniqueItems": true,
727
+ "items": {
728
+ "type": "string",
729
+ "enum": ["pdf", "png"]
730
+ }
731
+ },
339
732
  "submissions": {
340
733
  "type": "array",
341
734
  "minItems": 1,
@@ -359,6 +752,15 @@ var _default = exports["default"] = {
359
752
  "type": "string",
360
753
  "minLength": 1
361
754
  },
755
+ "output_formats": {
756
+ "type": "array",
757
+ "minItems": 1,
758
+ "uniqueItems": true,
759
+ "items": {
760
+ "type": "string",
761
+ "enum": ["pdf", "png"]
762
+ }
763
+ },
362
764
  "expires_in": {
363
765
  "type": "integer",
364
766
  "minimum": 1,
@@ -412,7 +814,7 @@ var _default = exports["default"] = {
412
814
  "name": {
413
815
  "type": "string",
414
816
  "minLength": 1,
415
- "maxLength": 255
817
+ "maxLength": 512
416
818
  },
417
819
  "description": {
418
820
  "type": ["string", "null"]
@@ -642,6 +1044,43 @@ var _default = exports["default"] = {
642
1044
  "additionalProperties": false
643
1045
  }
644
1046
  },
1047
+ "predefined_fields": {
1048
+ "type": "array",
1049
+ "items": {
1050
+ "type": "object",
1051
+ "required": ["name", "type"],
1052
+ "properties": {
1053
+ "name": {
1054
+ "type": "string",
1055
+ "minLength": 1
1056
+ },
1057
+ "display_name": {
1058
+ "type": ["string", "null"],
1059
+ "minLength": 1
1060
+ },
1061
+ "title": {
1062
+ "type": ["string", "null"]
1063
+ },
1064
+ "type": {
1065
+ "type": "string",
1066
+ "enum": ["string", "number", "boolean", "date", "address", "country", "email", "url", "image", "signature", "initials", "barcode", "combined"]
1067
+ },
1068
+ "option_list": {
1069
+ "type": ["string", "null"]
1070
+ },
1071
+ "required_in_template": {
1072
+ "type": "boolean"
1073
+ },
1074
+ "field_required": {
1075
+ "type": "boolean"
1076
+ }
1077
+ },
1078
+ "additionalProperties": false
1079
+ }
1080
+ },
1081
+ "predefined_fields_sample_data": {
1082
+ "type": ["object", "null"]
1083
+ },
645
1084
  "html": {
646
1085
  "type": ["string", "null"]
647
1086
  },
@@ -692,11 +1131,25 @@ var _default = exports["default"] = {
692
1131
  },
693
1132
  "additionalProperties": false
694
1133
  },
1134
+ "html_escape_data": {
1135
+ "type": "boolean"
1136
+ },
695
1137
  "cache_id": {
696
1138
  "type": "string",
697
1139
  "minLength": 1,
698
1140
  "maxLength": 255
699
1141
  },
1142
+ "document_url": {
1143
+ "type": "string",
1144
+ "minLength": 1,
1145
+ "maxLength": 2048,
1146
+ "pattern": "^https://",
1147
+ "x-pattern-message": "must be an https:// link"
1148
+ },
1149
+ "document_base64": {
1150
+ "type": "string",
1151
+ "minLength": 1
1152
+ },
700
1153
  "filename": {
701
1154
  "type": "string",
702
1155
  "minLength": 1,
@@ -723,7 +1176,33 @@ var _default = exports["default"] = {
723
1176
  }
724
1177
  }
725
1178
  },
726
- "createWebhook": {
1179
+ "createTemplatePreview": {
1180
+ "query": {
1181
+ "version": {
1182
+ "required": false,
1183
+ "schema": {
1184
+ "type": "string",
1185
+ "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1186
+ "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1187
+ }
1188
+ }
1189
+ },
1190
+ "body": {
1191
+ "mediaType": "application/json",
1192
+ "required": true,
1193
+ "schema": {
1194
+ "type": "object",
1195
+ "required": ["data"],
1196
+ "properties": {
1197
+ "data": {
1198
+ "type": "object"
1199
+ }
1200
+ },
1201
+ "additionalProperties": false
1202
+ }
1203
+ }
1204
+ },
1205
+ "createWebhook": {
727
1206
  "body": {
728
1207
  "mediaType": "application/json",
729
1208
  "required": true,
@@ -732,7 +1211,7 @@ var _default = exports["default"] = {
732
1211
  "properties": {
733
1212
  "name": {
734
1213
  "type": ["string", "null"],
735
- "maxLength": 255
1214
+ "maxLength": 512
736
1215
  },
737
1216
  "url": {
738
1217
  "type": "string",
@@ -813,6 +1292,36 @@ var _default = exports["default"] = {
813
1292
  "deleteWebhook": {},
814
1293
  "expireCombinedPdf": {},
815
1294
  "expireSubmission": {},
1295
+ "generateSubmissionFiles": {
1296
+ "query": {
1297
+ "wait": {
1298
+ "required": false,
1299
+ "schema": {
1300
+ "type": "boolean"
1301
+ }
1302
+ }
1303
+ },
1304
+ "body": {
1305
+ "mediaType": "application/json",
1306
+ "required": true,
1307
+ "schema": {
1308
+ "type": "object",
1309
+ "required": ["formats"],
1310
+ "properties": {
1311
+ "formats": {
1312
+ "type": "array",
1313
+ "minItems": 1,
1314
+ "uniqueItems": true,
1315
+ "items": {
1316
+ "type": "string",
1317
+ "enum": ["png"]
1318
+ }
1319
+ }
1320
+ },
1321
+ "additionalProperties": false
1322
+ }
1323
+ }
1324
+ },
816
1325
  "generateSubmissionPreview": {},
817
1326
  "getCombinedPdf": {},
818
1327
  "getCustomFile": {},
@@ -842,6 +1351,18 @@ var _default = exports["default"] = {
842
1351
  }
843
1352
  }
844
1353
  },
1354
+ "getTemplateDiff": {
1355
+ "query": {
1356
+ "version": {
1357
+ "required": false,
1358
+ "schema": {
1359
+ "type": "string",
1360
+ "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1361
+ "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1362
+ }
1363
+ }
1364
+ }
1365
+ },
845
1366
  "getTemplateModelCode": {
846
1367
  "query": {
847
1368
  "version": {
@@ -858,9 +1379,28 @@ var _default = exports["default"] = {
858
1379
  "type": "string",
859
1380
  "enum": ["typescript", "javascript", "ruby", "python", "php", "java", "csharp", "elixir", "go"]
860
1381
  }
1382
+ },
1383
+ "just_types": {
1384
+ "required": false,
1385
+ "schema": {
1386
+ "type": "boolean"
1387
+ }
1388
+ }
1389
+ }
1390
+ },
1391
+ "getTemplatePageImages": {
1392
+ "query": {
1393
+ "version": {
1394
+ "required": false,
1395
+ "schema": {
1396
+ "type": "string",
1397
+ "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1398
+ "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1399
+ }
861
1400
  }
862
1401
  }
863
1402
  },
1403
+ "getTemplatePreview": {},
864
1404
  "getTemplateSchema": {
865
1405
  "query": {
866
1406
  "version": {
@@ -981,6 +1521,31 @@ var _default = exports["default"] = {
981
1521
  "schema": {
982
1522
  "type": "string"
983
1523
  }
1524
+ },
1525
+ "state": {
1526
+ "required": false,
1527
+ "schema": {
1528
+ "type": "string",
1529
+ "enum": ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed", "waiting_for_signature_requests", "syntax_error", "insufficient_credits", "account_suspended", "license_revoked", "accidental", "declined"]
1530
+ }
1531
+ },
1532
+ "include_files": {
1533
+ "required": false,
1534
+ "schema": {
1535
+ "type": "boolean"
1536
+ }
1537
+ }
1538
+ }
1539
+ },
1540
+ "listTemplateFields": {
1541
+ "query": {
1542
+ "version": {
1543
+ "required": false,
1544
+ "schema": {
1545
+ "type": "string",
1546
+ "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1547
+ "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1548
+ }
984
1549
  }
985
1550
  }
986
1551
  },
@@ -1025,6 +1590,19 @@ var _default = exports["default"] = {
1025
1590
  "schema": {
1026
1591
  "type": "string"
1027
1592
  }
1593
+ },
1594
+ "state": {
1595
+ "required": false,
1596
+ "schema": {
1597
+ "type": "string",
1598
+ "enum": ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed", "waiting_for_signature_requests", "syntax_error", "insufficient_credits", "account_suspended", "license_revoked", "accidental", "declined"]
1599
+ }
1600
+ },
1601
+ "include_files": {
1602
+ "required": false,
1603
+ "schema": {
1604
+ "type": "boolean"
1605
+ }
1028
1606
  }
1029
1607
  }
1030
1608
  },
@@ -1163,6 +1741,27 @@ var _default = exports["default"] = {
1163
1741
  }
1164
1742
  }
1165
1743
  },
1744
+ "removeTemplateFields": {
1745
+ "body": {
1746
+ "mediaType": "application/json",
1747
+ "required": true,
1748
+ "schema": {
1749
+ "type": "object",
1750
+ "required": ["field_ids"],
1751
+ "properties": {
1752
+ "field_ids": {
1753
+ "type": "array",
1754
+ "minItems": 1,
1755
+ "maxItems": 1000,
1756
+ "items": {
1757
+ "type": "integer"
1758
+ }
1759
+ }
1760
+ },
1761
+ "additionalProperties": false
1762
+ }
1763
+ }
1764
+ },
1166
1765
  "renameFolder": {
1167
1766
  "body": {
1168
1767
  "mediaType": "application/json",
@@ -1183,6 +1782,26 @@ var _default = exports["default"] = {
1183
1782
  }
1184
1783
  }
1185
1784
  },
1785
+ "reorderTemplateFields": {
1786
+ "body": {
1787
+ "mediaType": "application/json",
1788
+ "required": true,
1789
+ "schema": {
1790
+ "type": "object",
1791
+ "required": ["field_ids"],
1792
+ "properties": {
1793
+ "field_ids": {
1794
+ "type": "array",
1795
+ "minItems": 1,
1796
+ "items": {
1797
+ "type": "integer"
1798
+ }
1799
+ }
1800
+ },
1801
+ "additionalProperties": false
1802
+ }
1803
+ }
1804
+ },
1186
1805
  "restoreTemplateVersion": {
1187
1806
  "body": {
1188
1807
  "mediaType": "application/json",
@@ -1255,7 +1874,7 @@ var _default = exports["default"] = {
1255
1874
  "name": {
1256
1875
  "type": "string",
1257
1876
  "minLength": 1,
1258
- "maxLength": 255
1877
+ "maxLength": 512
1259
1878
  },
1260
1879
  "description": {
1261
1880
  "type": ["string", "null"]
@@ -1481,6 +2100,77 @@ var _default = exports["default"] = {
1481
2100
  "additionalProperties": false
1482
2101
  }
1483
2102
  },
2103
+ "field_groups": {
2104
+ "type": "array",
2105
+ "items": {
2106
+ "type": "object",
2107
+ "properties": {
2108
+ "name": {
2109
+ "type": "string",
2110
+ "minLength": 1
2111
+ },
2112
+ "title": {
2113
+ "type": "string"
2114
+ },
2115
+ "description": {
2116
+ "type": "string"
2117
+ },
2118
+ "metadata": {
2119
+ "type": "string"
2120
+ },
2121
+ "min_items": {
2122
+ "type": ["integer", "null"],
2123
+ "minimum": 0
2124
+ },
2125
+ "max_items": {
2126
+ "type": ["integer", "null"],
2127
+ "minimum": 1
2128
+ },
2129
+ "allow_additional_items": {
2130
+ "type": "boolean"
2131
+ }
2132
+ },
2133
+ "required": ["name"],
2134
+ "additionalProperties": false
2135
+ }
2136
+ },
2137
+ "predefined_fields": {
2138
+ "type": "array",
2139
+ "items": {
2140
+ "type": "object",
2141
+ "required": ["name", "type"],
2142
+ "properties": {
2143
+ "name": {
2144
+ "type": "string",
2145
+ "minLength": 1
2146
+ },
2147
+ "display_name": {
2148
+ "type": ["string", "null"],
2149
+ "minLength": 1
2150
+ },
2151
+ "title": {
2152
+ "type": ["string", "null"]
2153
+ },
2154
+ "type": {
2155
+ "type": "string",
2156
+ "enum": ["string", "number", "boolean", "date", "address", "country", "email", "url", "image", "signature", "initials", "barcode", "combined"]
2157
+ },
2158
+ "option_list": {
2159
+ "type": ["string", "null"]
2160
+ },
2161
+ "required_in_template": {
2162
+ "type": "boolean"
2163
+ },
2164
+ "field_required": {
2165
+ "type": "boolean"
2166
+ }
2167
+ },
2168
+ "additionalProperties": false
2169
+ }
2170
+ },
2171
+ "predefined_fields_sample_data": {
2172
+ "type": ["object", "null"]
2173
+ },
1484
2174
  "html": {
1485
2175
  "type": ["string", "null"]
1486
2176
  },
@@ -1530,6 +2220,9 @@ var _default = exports["default"] = {
1530
2220
  }
1531
2221
  },
1532
2222
  "additionalProperties": false
2223
+ },
2224
+ "html_escape_data": {
2225
+ "type": "boolean"
1533
2226
  }
1534
2227
  },
1535
2228
  "additionalProperties": false
@@ -1550,13 +2243,23 @@ var _default = exports["default"] = {
1550
2243
  "required": true,
1551
2244
  "schema": {
1552
2245
  "type": "object",
1553
- "required": ["cache_id"],
1554
2246
  "properties": {
1555
2247
  "cache_id": {
1556
2248
  "type": "string",
1557
2249
  "minLength": 1,
1558
2250
  "maxLength": 255
1559
2251
  },
2252
+ "document_url": {
2253
+ "type": "string",
2254
+ "minLength": 1,
2255
+ "maxLength": 2048,
2256
+ "pattern": "^https://",
2257
+ "x-pattern-message": "must be an https:// link"
2258
+ },
2259
+ "document_base64": {
2260
+ "type": "string",
2261
+ "minLength": 1
2262
+ },
1560
2263
  "filename": {
1561
2264
  "type": "string",
1562
2265
  "minLength": 1,
@@ -1570,6 +2273,381 @@ var _default = exports["default"] = {
1570
2273
  }
1571
2274
  }
1572
2275
  },
2276
+ "updateTemplateFields": {
2277
+ "body": {
2278
+ "mediaType": "application/json",
2279
+ "required": true,
2280
+ "schema": {
2281
+ "type": "object",
2282
+ "required": ["fields"],
2283
+ "properties": {
2284
+ "fields": {
2285
+ "type": "array",
2286
+ "minItems": 1,
2287
+ "maxItems": 1000,
2288
+ "items": {
2289
+ "type": "object",
2290
+ "properties": {
2291
+ "name": {
2292
+ "type": ["string", "null"]
2293
+ },
2294
+ "page": {
2295
+ "type": "integer",
2296
+ "minimum": 1
2297
+ },
2298
+ "type": {
2299
+ "type": "string",
2300
+ "enum": ["string", "number", "boolean", "date", "address", "country", "email", "url", "image", "signature", "initials", "barcode", "combined"]
2301
+ },
2302
+ "static": {
2303
+ "type": "boolean"
2304
+ },
2305
+ "editable": {
2306
+ "type": "boolean"
2307
+ },
2308
+ "default": {
2309
+ "type": ["string", "null"]
2310
+ },
2311
+ "title": {
2312
+ "type": "string"
2313
+ },
2314
+ "description": {
2315
+ "type": "string"
2316
+ },
2317
+ "placeholder": {
2318
+ "type": "string"
2319
+ },
2320
+ "metadata": {
2321
+ "type": "string"
2322
+ },
2323
+ "required": {
2324
+ "type": "boolean"
2325
+ },
2326
+ "option_list": {
2327
+ "type": ["string", "null"]
2328
+ },
2329
+ "combined_field_names": {
2330
+ "type": "string"
2331
+ },
2332
+ "combined_field_type": {
2333
+ "type": "string",
2334
+ "enum": ["separator", "format"]
2335
+ },
2336
+ "combined_field_separator": {
2337
+ "type": "string"
2338
+ },
2339
+ "combined_field_format": {
2340
+ "type": "string"
2341
+ },
2342
+ "integer": {
2343
+ "type": "boolean"
2344
+ },
2345
+ "minimum": {
2346
+ "type": ["number", "null"]
2347
+ },
2348
+ "maximum": {
2349
+ "type": ["number", "null"]
2350
+ },
2351
+ "exclusive_minimum": {
2352
+ "type": "boolean"
2353
+ },
2354
+ "exclusive_maximum": {
2355
+ "type": "boolean"
2356
+ },
2357
+ "include_time": {
2358
+ "type": ["boolean", "null"]
2359
+ },
2360
+ "signature_allow_draw": {
2361
+ "type": "boolean"
2362
+ },
2363
+ "signature_allow_type": {
2364
+ "type": "boolean"
2365
+ },
2366
+ "barcode_symbology": {
2367
+ "type": "string",
2368
+ "enum": ["code_25", "code_39", "code_93", "code_128", "ean_13", "ean_8", "upc_a", "pdf417"]
2369
+ },
2370
+ "hidden": {
2371
+ "type": "boolean"
2372
+ },
2373
+ "x": {
2374
+ "type": "number",
2375
+ "minimum": 0
2376
+ },
2377
+ "y": {
2378
+ "type": "number",
2379
+ "minimum": 0
2380
+ },
2381
+ "width": {
2382
+ "type": "number",
2383
+ "exclusiveMinimum": 0
2384
+ },
2385
+ "height": {
2386
+ "type": "number",
2387
+ "exclusiveMinimum": 0
2388
+ },
2389
+ "rotation": {
2390
+ "type": "number",
2391
+ "minimum": -360,
2392
+ "maximum": 360
2393
+ },
2394
+ "display_type": {
2395
+ "type": "string",
2396
+ "enum": ["text", "check", "qrcode", "barcode", "image", "shape"]
2397
+ },
2398
+ "opacity": {
2399
+ "type": "number",
2400
+ "minimum": 0,
2401
+ "maximum": 1
2402
+ },
2403
+ "date_time_format": {
2404
+ "type": ["string", "null"]
2405
+ },
2406
+ "typeface": {
2407
+ "type": ["string", "null"],
2408
+ "enum": ["Inconsolata", "Roboto Mono", "Ubuntu Mono", "Menlo", "Courier", "Helvetica", "Arial", "Calibri", "Open Sans", "Roboto", "Lato", "Poppins", "Public Sans", "Questrial", "Times New Roman", "Dancing Script", "Lovtony Script", null]
2409
+ },
2410
+ "font_size": {
2411
+ "type": ["integer", "null"],
2412
+ "minimum": 1
2413
+ },
2414
+ "character_spacing": {
2415
+ "type": "number",
2416
+ "minimum": 0,
2417
+ "maximum": 50
2418
+ },
2419
+ "bold": {
2420
+ "type": "boolean"
2421
+ },
2422
+ "uppercase": {
2423
+ "type": "boolean"
2424
+ },
2425
+ "strikethrough": {
2426
+ "type": "boolean"
2427
+ },
2428
+ "keep_leading_spaces": {
2429
+ "type": "boolean"
2430
+ },
2431
+ "overflow": {
2432
+ "type": "string",
2433
+ "enum": ["shrink_to_fit", "truncate"]
2434
+ },
2435
+ "multiline": {
2436
+ "type": "boolean"
2437
+ },
2438
+ "multiline_lines": {
2439
+ "type": ["integer", "null"],
2440
+ "minimum": 1,
2441
+ "maximum": 300
2442
+ },
2443
+ "min_length": {
2444
+ "type": "number"
2445
+ },
2446
+ "max_length": {
2447
+ "type": ["integer", "null"],
2448
+ "minimum": 0
2449
+ },
2450
+ "auto_calculate_max_length": {
2451
+ "type": "boolean"
2452
+ },
2453
+ "color": {
2454
+ "type": ["string", "null"],
2455
+ "pattern": "^[A-Fa-f0-9]{6}$",
2456
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
2457
+ },
2458
+ "color_field_name": {
2459
+ "type": ["string", "null"]
2460
+ },
2461
+ "color_field_required": {
2462
+ "type": "boolean"
2463
+ },
2464
+ "background_color": {
2465
+ "type": ["string", "null"],
2466
+ "pattern": "^[A-Fa-f0-9]{6}$",
2467
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
2468
+ },
2469
+ "background_color_field_name": {
2470
+ "type": ["string", "null"]
2471
+ },
2472
+ "background_color_field_required": {
2473
+ "type": "boolean"
2474
+ },
2475
+ "alignment": {
2476
+ "type": "string",
2477
+ "enum": ["left", "center", "right", "justify"]
2478
+ },
2479
+ "v_alignment": {
2480
+ "type": "string",
2481
+ "enum": ["bottom", "center", "top"]
2482
+ },
2483
+ "comb": {
2484
+ "type": "boolean"
2485
+ },
2486
+ "comb_number_of_cells": {
2487
+ "type": "integer",
2488
+ "minimum": 1
2489
+ },
2490
+ "comb_value_offset": {
2491
+ "type": "integer",
2492
+ "minimum": 0
2493
+ },
2494
+ "shape_type": {
2495
+ "type": "string",
2496
+ "enum": ["square", "rectangle", "circle", "ellipse", "triangle", "polygon"]
2497
+ },
2498
+ "shape_sides": {
2499
+ "type": "integer",
2500
+ "minimum": 3,
2501
+ "maximum": 12
2502
+ },
2503
+ "shape_border_width": {
2504
+ "type": "integer",
2505
+ "minimum": 1
2506
+ },
2507
+ "shape_border_color": {
2508
+ "type": "string",
2509
+ "pattern": "^[A-Fa-f0-9]{6}$",
2510
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
2511
+ },
2512
+ "shape_border_color_field_name": {
2513
+ "type": ["string", "null"]
2514
+ },
2515
+ "shape_border_color_field_required": {
2516
+ "type": "boolean"
2517
+ },
2518
+ "shape_fill_color": {
2519
+ "type": ["string", "null"],
2520
+ "pattern": "^[A-Fa-f0-9]{6}$",
2521
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
2522
+ },
2523
+ "shape_fill_color_field_name": {
2524
+ "type": ["string", "null"]
2525
+ },
2526
+ "shape_fill_color_field_required": {
2527
+ "type": "boolean"
2528
+ },
2529
+ "check_character": {
2530
+ "type": "string",
2531
+ "enum": ["✓", "✔", "✖", "✗", "✘"]
2532
+ },
2533
+ "check_color": {
2534
+ "type": ["string", "null"],
2535
+ "pattern": "^[A-Fa-f0-9]{6}$",
2536
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
2537
+ },
2538
+ "check_color_field_name": {
2539
+ "type": ["string", "null"]
2540
+ },
2541
+ "check_color_field_required": {
2542
+ "type": "boolean"
2543
+ },
2544
+ "qrcode_color": {
2545
+ "type": ["string", "null"],
2546
+ "pattern": "^[A-Fa-f0-9]{6}$",
2547
+ "x-pattern-message": "must be a 6-digit hex color without #, like FF0000"
2548
+ },
2549
+ "qrcode_color_field_name": {
2550
+ "type": ["string", "null"]
2551
+ },
2552
+ "qrcode_color_field_required": {
2553
+ "type": "boolean"
2554
+ },
2555
+ "true_text": {
2556
+ "type": ["string", "null"]
2557
+ },
2558
+ "false_text": {
2559
+ "type": ["string", "null"]
2560
+ },
2561
+ "condition": {
2562
+ "type": ["string", "null"]
2563
+ },
2564
+ "string_condition_type": {
2565
+ "type": "string",
2566
+ "enum": ["equals", "contains", "starts_with", "ends_with", "regex"]
2567
+ },
2568
+ "number_condition_type": {
2569
+ "type": "string",
2570
+ "enum": ["equals", "range", "gte", "gt", "lte", "lt"]
2571
+ },
2572
+ "number_condition_range_min": {
2573
+ "type": ["number", "null"]
2574
+ },
2575
+ "number_condition_range_max": {
2576
+ "type": ["number", "null"]
2577
+ },
2578
+ "number_condition_range_exclusive_min": {
2579
+ "type": "boolean"
2580
+ },
2581
+ "number_condition_range_exclusive_max": {
2582
+ "type": "boolean"
2583
+ },
2584
+ "invert_boolean_condition": {
2585
+ "type": "boolean"
2586
+ },
2587
+ "currency": {
2588
+ "type": "boolean"
2589
+ },
2590
+ "decimal_places": {
2591
+ "type": ["integer", "null"],
2592
+ "minimum": 0,
2593
+ "maximum": 99
2594
+ },
2595
+ "image_scale_type": {
2596
+ "type": "string",
2597
+ "enum": ["fit", "fill", "stretch"]
2598
+ },
2599
+ "image_gravity": {
2600
+ "type": "string",
2601
+ "enum": ["NorthWest", "North", "NorthEast", "West", "Center", "East", "SouthWest", "South", "SouthEast"]
2602
+ },
2603
+ "dependencies": {
2604
+ "type": ["object", "null"],
2605
+ "required": ["action", "conditions"],
2606
+ "properties": {
2607
+ "action": {
2608
+ "type": "string",
2609
+ "enum": ["require_and_show", "show", "require"]
2610
+ },
2611
+ "match": {
2612
+ "type": "string",
2613
+ "enum": ["all", "any"]
2614
+ },
2615
+ "conditions": {
2616
+ "type": "array",
2617
+ "items": {
2618
+ "oneOf": [{
2619
+ "$ref": "#/components/schemas/FieldPresenceCondition"
2620
+ }, {
2621
+ "$ref": "#/components/schemas/FieldEqualsCondition"
2622
+ }, {
2623
+ "$ref": "#/components/schemas/FieldInCondition"
2624
+ }, {
2625
+ "$ref": "#/components/schemas/FieldComparisonCondition"
2626
+ }, {
2627
+ "$ref": "#/components/schemas/FieldRangeCondition"
2628
+ }],
2629
+ "discriminator": {
2630
+ "propertyName": "operator",
2631
+ "mapping": [["present", "#/components/schemas/FieldPresenceCondition"], ["blank", "#/components/schemas/FieldPresenceCondition"], ["equals", "#/components/schemas/FieldEqualsCondition"], ["not_equals", "#/components/schemas/FieldEqualsCondition"], ["in", "#/components/schemas/FieldInCondition"], ["gt", "#/components/schemas/FieldComparisonCondition"], ["gte", "#/components/schemas/FieldComparisonCondition"], ["lt", "#/components/schemas/FieldComparisonCondition"], ["lte", "#/components/schemas/FieldComparisonCondition"], ["range", "#/components/schemas/FieldRangeCondition"]]
2632
+ }
2633
+ }
2634
+ }
2635
+ },
2636
+ "additionalProperties": false
2637
+ },
2638
+ "id": {
2639
+ "type": "integer",
2640
+ "minimum": 0
2641
+ }
2642
+ },
2643
+ "additionalProperties": false
2644
+ }
2645
+ }
2646
+ },
2647
+ "additionalProperties": false
2648
+ }
2649
+ }
2650
+ },
1573
2651
  "updateWebhook": {
1574
2652
  "body": {
1575
2653
  "mediaType": "application/json",
@@ -1579,7 +2657,7 @@ var _default = exports["default"] = {
1579
2657
  "properties": {
1580
2658
  "name": {
1581
2659
  "type": ["string", "null"],
1582
- "maxLength": 255
2660
+ "maxLength": 512
1583
2661
  },
1584
2662
  "url": {
1585
2663
  "type": "string",
@@ -1665,7 +2743,7 @@ var _default = exports["default"] = {
1665
2743
  "name": {
1666
2744
  "type": "string",
1667
2745
  "minLength": 1,
1668
- "maxLength": 255
2746
+ "maxLength": 512
1669
2747
  },
1670
2748
  "description": {
1671
2749
  "type": "string"
@@ -1725,6 +2803,139 @@ var _default = exports["default"] = {
1725
2803
  "additionalProperties": false
1726
2804
  }
1727
2805
  }
2806
+ },
2807
+ "validateSubmission": {
2808
+ "query": {
2809
+ "version": {
2810
+ "required": false,
2811
+ "schema": {
2812
+ "type": "string",
2813
+ "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2814
+ "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2815
+ }
2816
+ }
2817
+ },
2818
+ "body": {
2819
+ "mediaType": "application/json",
2820
+ "required": true,
2821
+ "schema": {
2822
+ "type": "object",
2823
+ "properties": {
2824
+ "test": {
2825
+ "type": "boolean"
2826
+ },
2827
+ "editable": {
2828
+ "type": "boolean"
2829
+ },
2830
+ "data": {
2831
+ "type": "object"
2832
+ },
2833
+ "metadata": {
2834
+ "type": "object"
2835
+ },
2836
+ "password": {
2837
+ "type": "string",
2838
+ "minLength": 1
2839
+ },
2840
+ "output_formats": {
2841
+ "type": "array",
2842
+ "minItems": 1,
2843
+ "uniqueItems": true,
2844
+ "items": {
2845
+ "type": "string",
2846
+ "enum": ["pdf", "png"]
2847
+ }
2848
+ },
2849
+ "expires_in": {
2850
+ "type": "integer",
2851
+ "minimum": 1,
2852
+ "maximum": 315360000
2853
+ },
2854
+ "field_overrides": {
2855
+ "type": "object",
2856
+ "additionalProperties": {
2857
+ "$ref": "#/components/schemas/FieldOverride"
2858
+ }
2859
+ },
2860
+ "html": {
2861
+ "type": "string"
2862
+ },
2863
+ "css": {
2864
+ "type": "string"
2865
+ },
2866
+ "signature_requests": {
2867
+ "type": "array",
2868
+ "maxItems": 100,
2869
+ "items": {
2870
+ "type": "object",
2871
+ "properties": {
2872
+ "name": {
2873
+ "type": ["string", "null"],
2874
+ "maxLength": 255
2875
+ },
2876
+ "email": {
2877
+ "type": ["string", "null"],
2878
+ "maxLength": 254
2879
+ },
2880
+ "fields": {
2881
+ "type": "array",
2882
+ "minItems": 1,
2883
+ "uniqueItems": true,
2884
+ "items": {
2885
+ "type": "string",
2886
+ "minLength": 1
2887
+ }
2888
+ },
2889
+ "metadata": {
2890
+ "type": "object"
2891
+ },
2892
+ "role": {
2893
+ "type": "string",
2894
+ "minLength": 1
2895
+ },
2896
+ "auth_type": {
2897
+ "type": "string",
2898
+ "enum": ["password", "oauth", "email_link", "phone_number", "ldap", "saml"]
2899
+ },
2900
+ "auth_second_factor_type": {
2901
+ "type": "string",
2902
+ "enum": ["none", "phone_number", "totp", "mobile_push", "security_key", "fingerprint"]
2903
+ },
2904
+ "auth_provider": {
2905
+ "type": ["string", "null"],
2906
+ "maxLength": 255
2907
+ },
2908
+ "auth_session_started_at": {
2909
+ "type": ["string", "null"],
2910
+ "format": "date-time"
2911
+ },
2912
+ "auth_session_id_hash": {
2913
+ "type": ["string", "null"]
2914
+ },
2915
+ "auth_user_id_hash": {
2916
+ "type": ["string", "null"]
2917
+ },
2918
+ "auth_username_hash": {
2919
+ "type": ["string", "null"]
2920
+ },
2921
+ "auth_phone_number_hash": {
2922
+ "type": ["string", "null"]
2923
+ },
2924
+ "ignore_unknown_fields": {
2925
+ "type": "boolean"
2926
+ },
2927
+ "prefilled_values_editable": {
2928
+ "type": "boolean"
2929
+ }
2930
+ },
2931
+ "required": ["fields", "auth_type"],
2932
+ "additionalProperties": false
2933
+ }
2934
+ }
2935
+ },
2936
+ "additionalProperties": false
2937
+ }
2938
+ }
1728
2939
  }
1729
2940
  },
1730
2941
  "routes": {
@@ -1747,7 +2958,11 @@ var _default = exports["default"] = {
1747
2958
  "GET /submissions/{submission_id}": "getSubmission",
1748
2959
  "GET /templates": "listTemplates",
1749
2960
  "GET /templates/{template_id}": "getTemplate",
2961
+ "GET /templates/{template_id}/diff": "getTemplateDiff",
2962
+ "GET /templates/{template_id}/fields": "listTemplateFields",
1750
2963
  "GET /templates/{template_id}/model_code": "getTemplateModelCode",
2964
+ "GET /templates/{template_id}/page_images": "getTemplatePageImages",
2965
+ "GET /templates/{template_id}/previews/{preview_id}": "getTemplatePreview",
1751
2966
  "GET /templates/{template_id}/schema": "getTemplateSchema",
1752
2967
  "GET /templates/{template_id}/submissions": "listTemplateSubmissions",
1753
2968
  "GET /uploads/presign": "getPresignUrl",
@@ -1761,19 +2976,26 @@ var _default = exports["default"] = {
1761
2976
  "POST /signature_requests/{signature_request_id}/events": "createSignatureRequestEvent",
1762
2977
  "POST /signature_requests/{signature_request_id}/tokens": "createSignatureRequestToken",
1763
2978
  "POST /submissions/batches": "createSubmissionBatch",
2979
+ "POST /submissions/{submission_id}/generate_files": "generateSubmissionFiles",
1764
2980
  "POST /submissions/{submission_id}/generate_preview": "generateSubmissionPreview",
1765
2981
  "POST /templates": "createTemplate",
1766
2982
  "POST /templates/upload": "uploadTemplate",
1767
2983
  "POST /templates/{template_id}/copy": "copyTemplate",
2984
+ "POST /templates/{template_id}/fields": "addTemplateFields",
2985
+ "POST /templates/{template_id}/fields/remove": "removeTemplateFields",
2986
+ "POST /templates/{template_id}/fields/reorder": "reorderTemplateFields",
1768
2987
  "POST /templates/{template_id}/move": "moveTemplate",
2988
+ "POST /templates/{template_id}/previews": "createTemplatePreview",
1769
2989
  "POST /templates/{template_id}/publish_version": "publishTemplateVersion",
1770
2990
  "POST /templates/{template_id}/restore_version": "restoreTemplateVersion",
1771
2991
  "POST /templates/{template_id}/submissions": "createSubmission",
2992
+ "POST /templates/{template_id}/submissions/validate": "validateSubmission",
1772
2993
  "POST /webhooks": "createWebhook",
1773
2994
  "PUT /signature_requests/{signature_request_id}": "updateSignatureRequest",
1774
2995
  "PUT /templates/{template_id}": "updateTemplate",
1775
2996
  "PUT /templates/{template_id}/document": "updateTemplateDocument",
1776
2997
  "PUT /templates/{template_id}/document/upload": "uploadTemplateDocument",
2998
+ "PUT /templates/{template_id}/fields": "updateTemplateFields",
1777
2999
  "PUT /webhooks/{webhook_id}": "updateWebhook"
1778
3000
  },
1779
3001
  "components": {