docspring-ts 4.1.0 → 4.3.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.
- package/AGENTS.md +5 -4
- package/README.md +10 -6
- package/dist/RequestSchemas.js +144 -10
- package/dist/RequestSchemas.js.map +1 -1
- package/dist/WebhookSignature.d.ts +6 -0
- package/dist/WebhookSignature.js +54 -0
- package/dist/WebhookSignature.js.map +1 -0
- package/dist/apis/Client.d.ts +15 -7
- package/dist/apis/Client.js +1641 -780
- package/dist/apis/Client.js.map +1 -1
- package/dist/http/isomorphic-fetch.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/models/CreateTemplatePreviewRequest.d.ts +22 -0
- package/dist/models/CreateTemplatePreviewRequest.js +23 -0
- package/dist/models/CreateTemplatePreviewRequest.js.map +1 -0
- package/dist/models/CreateTemplateRequest.d.ts +3 -0
- package/dist/models/CreateTemplateRequest.js +12 -0
- package/dist/models/CreateTemplateRequest.js.map +1 -1
- package/dist/models/ErrorCode.d.ts +2 -0
- package/dist/models/ErrorCode.js +3 -1
- package/dist/models/ErrorCode.js.map +1 -1
- package/dist/models/GenerateFilesFormat.d.ts +3 -0
- package/dist/models/GenerateFilesFormat.js +3 -0
- package/dist/models/GenerateFilesFormat.js.map +1 -1
- package/dist/models/ModelCodeLanguage.d.ts +1 -0
- package/dist/models/ModelCodeLanguage.js +2 -1
- package/dist/models/ModelCodeLanguage.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +5 -0
- package/dist/models/ObjectSerializer.js +14 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/OutputFormat.d.ts +2 -0
- package/dist/models/OutputFormat.js +2 -0
- package/dist/models/OutputFormat.js.map +1 -1
- package/dist/models/Submission.d.ts +6 -6
- package/dist/models/Submission.js +36 -36
- package/dist/models/Submission.js.map +1 -1
- package/dist/models/SubmissionFiles.d.ts +2 -0
- package/dist/models/SubmissionFiles.js +12 -0
- package/dist/models/SubmissionFiles.js.map +1 -1
- package/dist/models/SubmissionList.d.ts +2 -2
- package/dist/models/SubmissionList.js +1 -1
- package/dist/models/SubmissionList.js.map +1 -1
- package/dist/models/SubmissionSummary.d.ts +47 -0
- package/dist/models/SubmissionSummary.js +131 -0
- package/dist/models/SubmissionSummary.js.map +1 -0
- package/dist/models/Template.d.ts +7 -4
- package/dist/models/Template.js +36 -24
- package/dist/models/Template.js.map +1 -1
- package/dist/models/TemplateDocument.d.ts +2 -2
- package/dist/models/TemplateDocument.js +12 -12
- package/dist/models/TemplateDocument.js.map +1 -1
- package/dist/models/TemplateDocumentState.d.ts +2 -0
- package/dist/models/TemplateDocumentState.js +3 -1
- package/dist/models/TemplateDocumentState.js.map +1 -1
- package/dist/models/TemplateDocumentSummary.d.ts +24 -0
- package/dist/models/TemplateDocumentSummary.js +41 -0
- package/dist/models/TemplateDocumentSummary.js.map +1 -0
- package/dist/models/TemplatePreview.d.ts +29 -0
- package/dist/models/TemplatePreview.js +65 -0
- package/dist/models/TemplatePreview.js.map +1 -0
- package/dist/models/TemplatePreviewState.d.ts +6 -0
- package/dist/models/TemplatePreviewState.js +9 -0
- package/dist/models/TemplatePreviewState.js.map +1 -0
- package/dist/models/TemplateSummary.d.ts +4 -29
- package/dist/models/TemplateSummary.js +7 -139
- package/dist/models/TemplateSummary.js.map +1 -1
- package/dist/models/TemplateType.d.ts +1 -0
- package/dist/models/TemplateType.js +2 -1
- package/dist/models/TemplateType.js.map +1 -1
- package/dist/models/UpdateTemplateRequest.d.ts +3 -0
- package/dist/models/UpdateTemplateRequest.js +12 -0
- package/dist/models/UpdateTemplateRequest.js.map +1 -1
- package/dist/models/all.d.ts +5 -0
- package/dist/models/all.js +5 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +26 -0
- package/dist/types/ObjectParamAPI.js +26 -14
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +22 -14
- package/dist/types/ObservableAPI.js +266 -210
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +22 -14
- package/dist/types/PromiseAPI.js +48 -28
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +5 -2
package/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 `verifyWebhookSignature(payload, signatureHeader, secret)` (exported by the package), which returns true or false.
|
|
74
75
|
- No webhook is sent when a submission starts waiting for credits.
|
|
75
76
|
|
|
76
77
|
## Signature requests
|
|
@@ -89,5 +90,5 @@ keeps it.
|
|
|
89
90
|
|
|
90
91
|
- List methods return `data` and `next_cursor`: pass `next_cursor` as `cursor` to get the next page.
|
|
91
92
|
- Responses can be newer than this SDK, because DocSpring adds fields and enum values to API v2 without a new
|
|
92
|
-
version. The model leaves out a response field added to the API after this release.
|
|
93
|
-
|
|
93
|
+
version. The model leaves out a response field added to the API after this release. An enum value added after this release comes
|
|
94
|
+
back as the API sent it: handle values you don't recognize.
|
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# DocSpring TypeScript SDK
|
|
2
2
|
|
|
3
3
|
The official TypeScript client for the [DocSpring API](https://docspring.com/docs/api/). DocSpring fills PDF
|
|
4
|
-
|
|
4
|
+
forms with your data, generates PDFs and Word documents from HTML and Word templates, combines PDFs and collects
|
|
5
|
+
e-signatures.
|
|
5
6
|
|
|
6
7
|
[Documentation](https://docspring.com/docs/) · [API reference](https://docspring.com/docs/api/) ·
|
|
7
8
|
[npm](https://www.npmjs.com/package/docspring-ts) · [Changelog](https://github.com/DocSpring/docspring-typescript/blob/main/CHANGELOG.md)
|
|
@@ -9,7 +10,7 @@ templates with your data, generates PDFs from HTML templates, combines PDFs and
|
|
|
9
10
|
The code in this repository is generated from DocSpring's OpenAPI spec ([About this SDK](#about-this-sdk)). Issues and
|
|
10
11
|
pull requests are welcome.
|
|
11
12
|
|
|
12
|
-
Version 4.
|
|
13
|
+
Version 4.3.0.
|
|
13
14
|
|
|
14
15
|
## Install and configure
|
|
15
16
|
|
|
@@ -102,6 +103,7 @@ TypeScript code for every method.
|
|
|
102
103
|
| [`createSubmission`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#createsubmission) | Generate a PDF |
|
|
103
104
|
| [`createSubmissionBatch`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#createsubmissionbatch) | Generate PDFs in a batch |
|
|
104
105
|
| [`createTemplate`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#createtemplate) | Create a template |
|
|
106
|
+
| [`createTemplatePreview`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#createtemplatepreview) | Preview a template with data |
|
|
105
107
|
| [`createWebhook`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#createwebhook) | Create a webhook |
|
|
106
108
|
| [`deleteCustomFile`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#deletecustomfile) | Delete a custom file |
|
|
107
109
|
| [`deleteFolder`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#deletefolder) | Delete a folder |
|
|
@@ -122,6 +124,7 @@ TypeScript code for every method.
|
|
|
122
124
|
| [`getTemplateDiff`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#gettemplatediff) | Compare a version of a template with the one before it |
|
|
123
125
|
| [`getTemplateModelCode`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#gettemplatemodelcode) | Generate typed code for a template's submission data |
|
|
124
126
|
| [`getTemplatePageImages`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#gettemplatepageimages) | Get images of a template's pages |
|
|
127
|
+
| [`getTemplatePreview`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#gettemplatepreview) | Get a template preview |
|
|
125
128
|
| [`getTemplateSchema`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#gettemplateschema) | Get the JSON Schema of a template's submission data |
|
|
126
129
|
| [`getWebhook`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#getwebhook) | Get a webhook |
|
|
127
130
|
| [`listCombinedPdfs`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#listcombinedpdfs) | List combined PDFs |
|
|
@@ -142,11 +145,11 @@ TypeScript code for every method.
|
|
|
142
145
|
| [`testAuthentication`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#testauthentication) | Test authentication |
|
|
143
146
|
| [`updateSignatureRequest`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#updatesignaturerequest) | Update a signature request |
|
|
144
147
|
| [`updateTemplate`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#updatetemplate) | Update a template |
|
|
145
|
-
| [`updateTemplateDocument`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#updatetemplatedocument) | Replace a template's
|
|
148
|
+
| [`updateTemplateDocument`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#updatetemplatedocument) | Replace a template's document |
|
|
146
149
|
| [`updateTemplateFields`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#updatetemplatefields) | Update a template's fields |
|
|
147
150
|
| [`updateWebhook`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#updatewebhook) | Update a webhook |
|
|
148
|
-
| [`uploadTemplate`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#uploadtemplate) | Create a
|
|
149
|
-
| [`uploadTemplateDocument`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#uploadtemplatedocument) | Replace a template's
|
|
151
|
+
| [`uploadTemplate`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#uploadtemplate) | Create a template from an uploaded PDF or Word document |
|
|
152
|
+
| [`uploadTemplateDocument`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#uploadtemplatedocument) | Replace a template's document with an uploaded file |
|
|
150
153
|
| [`validateSubmission`](https://github.com/DocSpring/docspring-typescript/blob/main/docs/Client.md#validatesubmission) | Check a submission without creating it |
|
|
151
154
|
|
|
152
155
|
## Errors
|
|
@@ -164,7 +167,7 @@ existing code, such as removing or renaming a field, go in a new API version
|
|
|
164
167
|
responses that are newer than it is:
|
|
165
168
|
|
|
166
169
|
- The model leaves out a response field added to the API after this release.
|
|
167
|
-
-
|
|
170
|
+
- An enum value added to the API after this release comes back as the API sent it: handle values you don't recognize.
|
|
168
171
|
|
|
169
172
|
Upgrade the SDK to read new fields and enum values. The [changelog](https://github.com/DocSpring/docspring-typescript/blob/main/CHANGELOG.md) lists
|
|
170
173
|
what each release adds.
|
|
@@ -182,6 +185,7 @@ On top of the generated code, we add:
|
|
|
182
185
|
|
|
183
186
|
- A client constructor that reads your credentials, region and host from the environment.
|
|
184
187
|
- `instanceof ApiException` and `instanceof RequiredError` are true for the errors the client throws. Stock OpenAPI Generator's classes lose their prototype when compiled to ES5, so both were false.
|
|
188
|
+
- `verifyWebhookSignature(payload, signatureHeader, secret)` checks a webhook request's `X-DocSpring-Signature` header, with a `{ tolerance, now }` options object.
|
|
185
189
|
|
|
186
190
|
Each release regenerates every file, so a change made only here would be lost in the next one. Issues and pull
|
|
187
191
|
requests are welcome all the same: [open an issue](https://github.com/DocSpring/docspring-typescript/issues) or a pull request, or email
|
package/dist/RequestSchemas.js
CHANGED
|
@@ -638,7 +638,7 @@ exports.requestSchemas = {
|
|
|
638
638
|
"name": {
|
|
639
639
|
"type": "string",
|
|
640
640
|
"minLength": 1,
|
|
641
|
-
"maxLength":
|
|
641
|
+
"maxLength": 512
|
|
642
642
|
},
|
|
643
643
|
"parent_folder_id": {
|
|
644
644
|
"type": [
|
|
@@ -908,6 +908,8 @@ exports.requestSchemas = {
|
|
|
908
908
|
"type": "string",
|
|
909
909
|
"enum": [
|
|
910
910
|
"pdf",
|
|
911
|
+
"docx",
|
|
912
|
+
"odt",
|
|
911
913
|
"png"
|
|
912
914
|
]
|
|
913
915
|
}
|
|
@@ -947,7 +949,7 @@ exports.requestSchemas = {
|
|
|
947
949
|
"string",
|
|
948
950
|
"null"
|
|
949
951
|
],
|
|
950
|
-
"maxLength":
|
|
952
|
+
"maxLength": 254
|
|
951
953
|
},
|
|
952
954
|
"fields": {
|
|
953
955
|
"type": "array",
|
|
@@ -1081,6 +1083,8 @@ exports.requestSchemas = {
|
|
|
1081
1083
|
"type": "string",
|
|
1082
1084
|
"enum": [
|
|
1083
1085
|
"pdf",
|
|
1086
|
+
"docx",
|
|
1087
|
+
"odt",
|
|
1084
1088
|
"png"
|
|
1085
1089
|
]
|
|
1086
1090
|
}
|
|
@@ -1116,6 +1120,8 @@ exports.requestSchemas = {
|
|
|
1116
1120
|
"type": "string",
|
|
1117
1121
|
"enum": [
|
|
1118
1122
|
"pdf",
|
|
1123
|
+
"docx",
|
|
1124
|
+
"odt",
|
|
1119
1125
|
"png"
|
|
1120
1126
|
]
|
|
1121
1127
|
}
|
|
@@ -1175,7 +1181,7 @@ exports.requestSchemas = {
|
|
|
1175
1181
|
"name": {
|
|
1176
1182
|
"type": "string",
|
|
1177
1183
|
"minLength": 1,
|
|
1178
|
-
"maxLength":
|
|
1184
|
+
"maxLength": 512
|
|
1179
1185
|
},
|
|
1180
1186
|
"description": {
|
|
1181
1187
|
"type": [
|
|
@@ -1187,7 +1193,16 @@ exports.requestSchemas = {
|
|
|
1187
1193
|
"type": "string",
|
|
1188
1194
|
"enum": [
|
|
1189
1195
|
"pdf",
|
|
1190
|
-
"html"
|
|
1196
|
+
"html",
|
|
1197
|
+
"docx"
|
|
1198
|
+
]
|
|
1199
|
+
},
|
|
1200
|
+
"output_format": {
|
|
1201
|
+
"type": "string",
|
|
1202
|
+
"enum": [
|
|
1203
|
+
"pdf",
|
|
1204
|
+
"docx",
|
|
1205
|
+
"odt"
|
|
1191
1206
|
]
|
|
1192
1207
|
},
|
|
1193
1208
|
"parent_folder_id": {
|
|
@@ -1714,6 +1729,9 @@ exports.requestSchemas = {
|
|
|
1714
1729
|
},
|
|
1715
1730
|
"additionalProperties": false
|
|
1716
1731
|
},
|
|
1732
|
+
"html_escape_data": {
|
|
1733
|
+
"type": "boolean"
|
|
1734
|
+
},
|
|
1717
1735
|
"cache_id": {
|
|
1718
1736
|
"type": "string",
|
|
1719
1737
|
"minLength": 1,
|
|
@@ -1768,6 +1786,34 @@ exports.requestSchemas = {
|
|
|
1768
1786
|
}
|
|
1769
1787
|
}
|
|
1770
1788
|
},
|
|
1789
|
+
"createTemplatePreview": {
|
|
1790
|
+
"query": {
|
|
1791
|
+
"version": {
|
|
1792
|
+
"required": false,
|
|
1793
|
+
"schema": {
|
|
1794
|
+
"type": "string",
|
|
1795
|
+
"pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
|
|
1796
|
+
"x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
"body": {
|
|
1801
|
+
"mediaType": "application/json",
|
|
1802
|
+
"required": true,
|
|
1803
|
+
"schema": {
|
|
1804
|
+
"type": "object",
|
|
1805
|
+
"required": [
|
|
1806
|
+
"data"
|
|
1807
|
+
],
|
|
1808
|
+
"properties": {
|
|
1809
|
+
"data": {
|
|
1810
|
+
"type": "object"
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
"additionalProperties": false
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
},
|
|
1771
1817
|
"createWebhook": {
|
|
1772
1818
|
"body": {
|
|
1773
1819
|
"mediaType": "application/json",
|
|
@@ -1780,7 +1826,7 @@ exports.requestSchemas = {
|
|
|
1780
1826
|
"string",
|
|
1781
1827
|
"null"
|
|
1782
1828
|
],
|
|
1783
|
-
"maxLength":
|
|
1829
|
+
"maxLength": 512
|
|
1784
1830
|
},
|
|
1785
1831
|
"url": {
|
|
1786
1832
|
"type": "string",
|
|
@@ -1922,6 +1968,9 @@ exports.requestSchemas = {
|
|
|
1922
1968
|
"items": {
|
|
1923
1969
|
"type": "string",
|
|
1924
1970
|
"enum": [
|
|
1971
|
+
"pdf",
|
|
1972
|
+
"docx",
|
|
1973
|
+
"odt",
|
|
1925
1974
|
"png"
|
|
1926
1975
|
]
|
|
1927
1976
|
}
|
|
@@ -1995,9 +2044,16 @@ exports.requestSchemas = {
|
|
|
1995
2044
|
"java",
|
|
1996
2045
|
"csharp",
|
|
1997
2046
|
"elixir",
|
|
1998
|
-
"go"
|
|
2047
|
+
"go",
|
|
2048
|
+
"rust"
|
|
1999
2049
|
]
|
|
2000
2050
|
}
|
|
2051
|
+
},
|
|
2052
|
+
"just_types": {
|
|
2053
|
+
"required": false,
|
|
2054
|
+
"schema": {
|
|
2055
|
+
"type": "boolean"
|
|
2056
|
+
}
|
|
2001
2057
|
}
|
|
2002
2058
|
}
|
|
2003
2059
|
},
|
|
@@ -2013,6 +2069,7 @@ exports.requestSchemas = {
|
|
|
2013
2069
|
}
|
|
2014
2070
|
}
|
|
2015
2071
|
},
|
|
2072
|
+
"getTemplatePreview": {},
|
|
2016
2073
|
"getTemplateSchema": {
|
|
2017
2074
|
"query": {
|
|
2018
2075
|
"version": {
|
|
@@ -2133,6 +2190,33 @@ exports.requestSchemas = {
|
|
|
2133
2190
|
"schema": {
|
|
2134
2191
|
"type": "string"
|
|
2135
2192
|
}
|
|
2193
|
+
},
|
|
2194
|
+
"state": {
|
|
2195
|
+
"required": false,
|
|
2196
|
+
"schema": {
|
|
2197
|
+
"type": "string",
|
|
2198
|
+
"enum": [
|
|
2199
|
+
"pending",
|
|
2200
|
+
"processed",
|
|
2201
|
+
"invalid_data",
|
|
2202
|
+
"error",
|
|
2203
|
+
"image_download_failed",
|
|
2204
|
+
"image_processing_failed",
|
|
2205
|
+
"waiting_for_signature_requests",
|
|
2206
|
+
"syntax_error",
|
|
2207
|
+
"insufficient_credits",
|
|
2208
|
+
"account_suspended",
|
|
2209
|
+
"license_revoked",
|
|
2210
|
+
"accidental",
|
|
2211
|
+
"declined"
|
|
2212
|
+
]
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"include_files": {
|
|
2216
|
+
"required": false,
|
|
2217
|
+
"schema": {
|
|
2218
|
+
"type": "boolean"
|
|
2219
|
+
}
|
|
2136
2220
|
}
|
|
2137
2221
|
}
|
|
2138
2222
|
},
|
|
@@ -2189,6 +2273,33 @@ exports.requestSchemas = {
|
|
|
2189
2273
|
"schema": {
|
|
2190
2274
|
"type": "string"
|
|
2191
2275
|
}
|
|
2276
|
+
},
|
|
2277
|
+
"state": {
|
|
2278
|
+
"required": false,
|
|
2279
|
+
"schema": {
|
|
2280
|
+
"type": "string",
|
|
2281
|
+
"enum": [
|
|
2282
|
+
"pending",
|
|
2283
|
+
"processed",
|
|
2284
|
+
"invalid_data",
|
|
2285
|
+
"error",
|
|
2286
|
+
"image_download_failed",
|
|
2287
|
+
"image_processing_failed",
|
|
2288
|
+
"waiting_for_signature_requests",
|
|
2289
|
+
"syntax_error",
|
|
2290
|
+
"insufficient_credits",
|
|
2291
|
+
"account_suspended",
|
|
2292
|
+
"license_revoked",
|
|
2293
|
+
"accidental",
|
|
2294
|
+
"declined"
|
|
2295
|
+
]
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
"include_files": {
|
|
2299
|
+
"required": false,
|
|
2300
|
+
"schema": {
|
|
2301
|
+
"type": "boolean"
|
|
2302
|
+
}
|
|
2192
2303
|
}
|
|
2193
2304
|
}
|
|
2194
2305
|
},
|
|
@@ -2545,7 +2656,7 @@ exports.requestSchemas = {
|
|
|
2545
2656
|
"name": {
|
|
2546
2657
|
"type": "string",
|
|
2547
2658
|
"minLength": 1,
|
|
2548
|
-
"maxLength":
|
|
2659
|
+
"maxLength": 512
|
|
2549
2660
|
},
|
|
2550
2661
|
"description": {
|
|
2551
2662
|
"type": [
|
|
@@ -2553,6 +2664,14 @@ exports.requestSchemas = {
|
|
|
2553
2664
|
"null"
|
|
2554
2665
|
]
|
|
2555
2666
|
},
|
|
2667
|
+
"output_format": {
|
|
2668
|
+
"type": "string",
|
|
2669
|
+
"enum": [
|
|
2670
|
+
"pdf",
|
|
2671
|
+
"docx",
|
|
2672
|
+
"odt"
|
|
2673
|
+
]
|
|
2674
|
+
},
|
|
2556
2675
|
"parent_folder_id": {
|
|
2557
2676
|
"type": [
|
|
2558
2677
|
"string",
|
|
@@ -3118,6 +3237,9 @@ exports.requestSchemas = {
|
|
|
3118
3237
|
}
|
|
3119
3238
|
},
|
|
3120
3239
|
"additionalProperties": false
|
|
3240
|
+
},
|
|
3241
|
+
"html_escape_data": {
|
|
3242
|
+
"type": "boolean"
|
|
3121
3243
|
}
|
|
3122
3244
|
},
|
|
3123
3245
|
"additionalProperties": false
|
|
@@ -3805,7 +3927,7 @@ exports.requestSchemas = {
|
|
|
3805
3927
|
"string",
|
|
3806
3928
|
"null"
|
|
3807
3929
|
],
|
|
3808
|
-
"maxLength":
|
|
3930
|
+
"maxLength": 512
|
|
3809
3931
|
},
|
|
3810
3932
|
"url": {
|
|
3811
3933
|
"type": "string",
|
|
@@ -3926,7 +4048,7 @@ exports.requestSchemas = {
|
|
|
3926
4048
|
"name": {
|
|
3927
4049
|
"type": "string",
|
|
3928
4050
|
"minLength": 1,
|
|
3929
|
-
"maxLength":
|
|
4051
|
+
"maxLength": 512
|
|
3930
4052
|
},
|
|
3931
4053
|
"description": {
|
|
3932
4054
|
"type": "string"
|
|
@@ -3967,6 +4089,14 @@ exports.requestSchemas = {
|
|
|
3967
4089
|
"ai",
|
|
3968
4090
|
"none"
|
|
3969
4091
|
]
|
|
4092
|
+
},
|
|
4093
|
+
"output_format": {
|
|
4094
|
+
"type": "string",
|
|
4095
|
+
"enum": [
|
|
4096
|
+
"pdf",
|
|
4097
|
+
"docx",
|
|
4098
|
+
"odt"
|
|
4099
|
+
]
|
|
3970
4100
|
}
|
|
3971
4101
|
},
|
|
3972
4102
|
"additionalProperties": false
|
|
@@ -4044,6 +4174,8 @@ exports.requestSchemas = {
|
|
|
4044
4174
|
"type": "string",
|
|
4045
4175
|
"enum": [
|
|
4046
4176
|
"pdf",
|
|
4177
|
+
"docx",
|
|
4178
|
+
"odt",
|
|
4047
4179
|
"png"
|
|
4048
4180
|
]
|
|
4049
4181
|
}
|
|
@@ -4083,7 +4215,7 @@ exports.requestSchemas = {
|
|
|
4083
4215
|
"string",
|
|
4084
4216
|
"null"
|
|
4085
4217
|
],
|
|
4086
|
-
"maxLength":
|
|
4218
|
+
"maxLength": 254
|
|
4087
4219
|
},
|
|
4088
4220
|
"fields": {
|
|
4089
4221
|
"type": "array",
|
|
@@ -4205,6 +4337,7 @@ exports.requestSchemas = {
|
|
|
4205
4337
|
"GET /templates/{template_id}/fields": "listTemplateFields",
|
|
4206
4338
|
"GET /templates/{template_id}/model_code": "getTemplateModelCode",
|
|
4207
4339
|
"GET /templates/{template_id}/page_images": "getTemplatePageImages",
|
|
4340
|
+
"GET /templates/{template_id}/previews/{preview_id}": "getTemplatePreview",
|
|
4208
4341
|
"GET /templates/{template_id}/schema": "getTemplateSchema",
|
|
4209
4342
|
"GET /templates/{template_id}/submissions": "listTemplateSubmissions",
|
|
4210
4343
|
"GET /uploads/presign": "getPresignUrl",
|
|
@@ -4227,6 +4360,7 @@ exports.requestSchemas = {
|
|
|
4227
4360
|
"POST /templates/{template_id}/fields/remove": "removeTemplateFields",
|
|
4228
4361
|
"POST /templates/{template_id}/fields/reorder": "reorderTemplateFields",
|
|
4229
4362
|
"POST /templates/{template_id}/move": "moveTemplate",
|
|
4363
|
+
"POST /templates/{template_id}/previews": "createTemplatePreview",
|
|
4230
4364
|
"POST /templates/{template_id}/publish_version": "publishTemplateVersion",
|
|
4231
4365
|
"POST /templates/{template_id}/restore_version": "restoreTemplateVersion",
|
|
4232
4366
|
"POST /templates/{template_id}/submissions": "createSubmission",
|