@epilot/sdk 2.4.4-alpha.0 → 2.4.4

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 (222) hide show
  1. package/dist/access-token.d-CnmUTOlq.d.cts +552 -0
  2. package/dist/access-token.d-CnmUTOlq.d.ts +552 -0
  3. package/dist/address-suggestions.d-_YwTOR-9.d.cts +339 -0
  4. package/dist/address-suggestions.d-_YwTOR-9.d.ts +339 -0
  5. package/dist/address.d-CwAPOVxa.d.cts +437 -0
  6. package/dist/address.d-CwAPOVxa.d.ts +437 -0
  7. package/dist/ai-agents.d-OkXfr2bz.d.cts +1339 -0
  8. package/dist/ai-agents.d-OkXfr2bz.d.ts +1339 -0
  9. package/dist/apis/access-token.d.cts +18 -0
  10. package/dist/apis/access-token.d.ts +12 -9
  11. package/dist/apis/address-suggestions.d.cts +18 -0
  12. package/dist/apis/address-suggestions.d.ts +12 -9
  13. package/dist/apis/address.d.cts +18 -0
  14. package/dist/apis/address.d.ts +12 -9
  15. package/dist/apis/ai-agents.d.cts +18 -0
  16. package/dist/apis/ai-agents.d.ts +12 -9
  17. package/dist/apis/app.d.cts +18 -0
  18. package/dist/apis/app.d.ts +12 -9
  19. package/dist/apis/audit-logs.d.cts +18 -0
  20. package/dist/apis/audit-logs.d.ts +12 -9
  21. package/dist/apis/automation.d.cts +18 -0
  22. package/dist/apis/automation.d.ts +12 -9
  23. package/dist/apis/billing.d.cts +18 -0
  24. package/dist/apis/billing.d.ts +12 -9
  25. package/dist/apis/blueprint-manifest.d.cts +18 -0
  26. package/dist/apis/blueprint-manifest.d.ts +12 -9
  27. package/dist/apis/calendar.d.cts +18 -0
  28. package/dist/apis/calendar.d.ts +12 -9
  29. package/dist/apis/configuration-hub.d.cts +18 -0
  30. package/dist/apis/configuration-hub.d.ts +12 -9
  31. package/dist/apis/consent.d.cts +18 -0
  32. package/dist/apis/consent.d.ts +12 -9
  33. package/dist/apis/customer-portal.d.cts +18 -0
  34. package/dist/apis/customer-portal.d.ts +12 -9
  35. package/dist/apis/dashboard.d.cts +18 -0
  36. package/dist/apis/dashboard.d.ts +12 -9
  37. package/dist/apis/data-governance.d.cts +18 -0
  38. package/dist/apis/data-governance.d.ts +12 -9
  39. package/dist/apis/deduplication.d.cts +18 -0
  40. package/dist/apis/deduplication.d.ts +12 -9
  41. package/dist/apis/design.d.cts +18 -0
  42. package/dist/apis/design.d.ts +12 -9
  43. package/dist/apis/document.d.cts +18 -0
  44. package/dist/apis/document.d.ts +12 -9
  45. package/dist/apis/email-settings.d.cts +18 -0
  46. package/dist/apis/email-settings.d.ts +12 -9
  47. package/dist/apis/email-template.d.cts +18 -0
  48. package/dist/apis/email-template.d.ts +12 -9
  49. package/dist/apis/entity-mapping.d.cts +18 -0
  50. package/dist/apis/entity-mapping.d.ts +12 -9
  51. package/dist/apis/entity.d.cts +18 -0
  52. package/dist/apis/entity.d.ts +12 -9
  53. package/dist/apis/environments.d.cts +18 -0
  54. package/dist/apis/environments.d.ts +12 -9
  55. package/dist/apis/event-catalog.d.cts +18 -0
  56. package/dist/apis/event-catalog.d.ts +12 -9
  57. package/dist/apis/file.d.cts +18 -0
  58. package/dist/apis/file.d.ts +12 -9
  59. package/dist/apis/iban.d.cts +18 -0
  60. package/dist/apis/iban.d.ts +12 -9
  61. package/dist/apis/integration-toolkit.d.cts +18 -0
  62. package/dist/apis/integration-toolkit.d.ts +12 -9
  63. package/dist/apis/journey.d.cts +18 -0
  64. package/dist/apis/journey.d.ts +12 -9
  65. package/dist/apis/kanban.d.cts +18 -0
  66. package/dist/apis/kanban.d.ts +12 -9
  67. package/dist/apis/message.d.cts +18 -0
  68. package/dist/apis/message.d.ts +12 -9
  69. package/dist/apis/metering.d.cts +18 -0
  70. package/dist/apis/metering.d.ts +12 -9
  71. package/dist/apis/notes.d.cts +18 -0
  72. package/dist/apis/notes.d.ts +12 -9
  73. package/dist/apis/notification.d.cts +18 -0
  74. package/dist/apis/notification.d.ts +12 -9
  75. package/dist/apis/organization.d.cts +18 -0
  76. package/dist/apis/organization.d.ts +12 -9
  77. package/dist/apis/partner-directory.d.cts +18 -0
  78. package/dist/apis/partner-directory.d.ts +12 -9
  79. package/dist/apis/permissions.d.cts +18 -0
  80. package/dist/apis/permissions.d.ts +12 -9
  81. package/dist/apis/pricing-tier.d.cts +18 -0
  82. package/dist/apis/pricing-tier.d.ts +12 -9
  83. package/dist/apis/pricing.d.cts +18 -0
  84. package/dist/apis/pricing.d.ts +12 -9
  85. package/dist/apis/purpose.d.cts +18 -0
  86. package/dist/apis/purpose.d.ts +12 -9
  87. package/dist/apis/query.d.cts +18 -0
  88. package/dist/apis/query.d.ts +12 -9
  89. package/dist/apis/sandbox.d.cts +18 -0
  90. package/dist/apis/sandbox.d.ts +12 -9
  91. package/dist/apis/sharing.d.cts +18 -0
  92. package/dist/apis/sharing.d.ts +12 -9
  93. package/dist/apis/submission.d.cts +18 -0
  94. package/dist/apis/submission.d.ts +12 -9
  95. package/dist/apis/target.d.cts +597 -0
  96. package/dist/apis/target.d.ts +591 -9
  97. package/dist/apis/targeting.d.cts +18 -0
  98. package/dist/apis/targeting.d.ts +12 -9
  99. package/dist/apis/template-variables.d.cts +18 -0
  100. package/dist/apis/template-variables.d.ts +12 -9
  101. package/dist/apis/user.d.cts +18 -0
  102. package/dist/apis/user.d.ts +12 -9
  103. package/dist/apis/validation-rules.d.cts +18 -0
  104. package/dist/apis/validation-rules.d.ts +12 -9
  105. package/dist/apis/webhooks.d.cts +18 -0
  106. package/dist/apis/webhooks.d.ts +12 -9
  107. package/dist/apis/workflow-definition.d.cts +18 -0
  108. package/dist/apis/workflow-definition.d.ts +12 -9
  109. package/dist/apis/workflow.d.cts +18 -0
  110. package/dist/apis/workflow.d.ts +12 -9
  111. package/dist/app.d-u7Dq42kU.d.cts +3391 -0
  112. package/dist/app.d-u7Dq42kU.d.ts +3391 -0
  113. package/dist/audit-logs.d-BRToFqeX.d.cts +287 -0
  114. package/dist/audit-logs.d-BRToFqeX.d.ts +287 -0
  115. package/dist/automation.d-Du6-uiz5.d.cts +5283 -0
  116. package/dist/automation.d-Du6-uiz5.d.ts +5283 -0
  117. package/dist/billing.d-Bs8Ku9qE.d.cts +993 -0
  118. package/dist/billing.d-Bs8Ku9qE.d.ts +993 -0
  119. package/dist/blueprint-manifest.d-BPyzoR0X.d.cts +4343 -0
  120. package/dist/blueprint-manifest.d-BPyzoR0X.d.ts +4343 -0
  121. package/dist/calendar.d-BEjLDagH.d.cts +353 -0
  122. package/dist/calendar.d-BEjLDagH.d.ts +353 -0
  123. package/dist/configuration-hub.d-Cqaq2F-W.d.cts +478 -0
  124. package/dist/configuration-hub.d-Cqaq2F-W.d.ts +478 -0
  125. package/dist/consent.d-C2PROHhX.d.cts +265 -0
  126. package/dist/consent.d-C2PROHhX.d.ts +265 -0
  127. package/dist/customer-portal.d-DyZ2n2dW.d.cts +16728 -0
  128. package/dist/customer-portal.d-DyZ2n2dW.d.ts +16728 -0
  129. package/dist/dashboard.d-CsGcA74I.d.cts +440 -0
  130. package/dist/dashboard.d-CsGcA74I.d.ts +440 -0
  131. package/dist/data-governance.d-BbZ466j5.d.cts +1178 -0
  132. package/dist/data-governance.d-BbZ466j5.d.ts +1178 -0
  133. package/dist/deduplication.d-D5GYddVu.d.cts +218 -0
  134. package/dist/deduplication.d-D5GYddVu.d.ts +218 -0
  135. package/dist/design.d-BRre8iLg.d.cts +2346 -0
  136. package/dist/design.d-BRre8iLg.d.ts +2346 -0
  137. package/dist/document.d-DN37pjdx.d.cts +648 -0
  138. package/dist/document.d-DN37pjdx.d.ts +648 -0
  139. package/dist/email-settings.d-B7Q_xT25.d.cts +2417 -0
  140. package/dist/email-settings.d-B7Q_xT25.d.ts +2417 -0
  141. package/dist/email-template.d-gtQkdaXM.d.cts +1188 -0
  142. package/dist/email-template.d-gtQkdaXM.d.ts +1188 -0
  143. package/dist/entity-mapping.d-DKSW3sfy.d.cts +1092 -0
  144. package/dist/entity-mapping.d-DKSW3sfy.d.ts +1092 -0
  145. package/dist/entity.d-BHR9dEon.d.cts +18479 -0
  146. package/dist/entity.d-BHR9dEon.d.ts +18479 -0
  147. package/dist/environments.d-BvqvN-PD.d.cts +382 -0
  148. package/dist/environments.d-BvqvN-PD.d.ts +382 -0
  149. package/dist/event-catalog.d-ENw6HO-w.d.cts +1511 -0
  150. package/dist/event-catalog.d-ENw6HO-w.d.ts +1511 -0
  151. package/dist/file.d-DcTJxjp7.d.cts +2992 -0
  152. package/dist/file.d-DcTJxjp7.d.ts +2992 -0
  153. package/dist/iban.d-BwdiGbxi.d.cts +70 -0
  154. package/dist/iban.d-BwdiGbxi.d.ts +70 -0
  155. package/dist/index.d.cts +182 -0
  156. package/dist/index.d.ts +182 -12
  157. package/dist/integration-toolkit.d-Ry-KC9ow.d.cts +5796 -0
  158. package/dist/integration-toolkit.d-Ry-KC9ow.d.ts +5796 -0
  159. package/dist/journey.d-ClXO0xK8.d.cts +1931 -0
  160. package/dist/journey.d-ClXO0xK8.d.ts +1931 -0
  161. package/dist/kanban.d-BHnSRCYW.d.cts +760 -0
  162. package/dist/kanban.d-BHnSRCYW.d.ts +760 -0
  163. package/dist/message.d-B5UuSqgw.d.cts +3811 -0
  164. package/dist/message.d-B5UuSqgw.d.ts +3811 -0
  165. package/dist/metering.d-DvtPv7wk.d.cts +1841 -0
  166. package/dist/metering.d-DvtPv7wk.d.ts +1841 -0
  167. package/dist/notes.d-BC-scR42.d.cts +1046 -0
  168. package/dist/notes.d-BC-scR42.d.ts +1046 -0
  169. package/dist/notification.d-BfBL3lga.d.cts +1147 -0
  170. package/dist/notification.d-BfBL3lga.d.ts +1147 -0
  171. package/dist/organization.d-DqwnNxMg.d.cts +1271 -0
  172. package/dist/organization.d-DqwnNxMg.d.ts +1271 -0
  173. package/dist/partner-directory.d-BCIjHoGs.d.cts +2337 -0
  174. package/dist/partner-directory.d-BCIjHoGs.d.ts +2337 -0
  175. package/dist/permissions.d-l6AT8SYP.d.cts +1279 -0
  176. package/dist/permissions.d-l6AT8SYP.d.ts +1279 -0
  177. package/dist/pricing-tier.d-Cg0jl6n_.d.cts +81 -0
  178. package/dist/pricing-tier.d-Cg0jl6n_.d.ts +81 -0
  179. package/dist/pricing.d-BHpMU4KU.d.cts +12255 -0
  180. package/dist/pricing.d-BHpMU4KU.d.ts +12255 -0
  181. package/dist/purpose.d-CbIYfTua.d.cts +372 -0
  182. package/dist/purpose.d-CbIYfTua.d.ts +372 -0
  183. package/dist/query.d-Cmp78IhZ.d.cts +2375 -0
  184. package/dist/query.d-Cmp78IhZ.d.ts +2375 -0
  185. package/dist/sandbox.d-BdbOFzDu.d.cts +465 -0
  186. package/dist/sandbox.d-BdbOFzDu.d.ts +465 -0
  187. package/dist/sharing.d-sOXq-gtz.d.cts +571 -0
  188. package/dist/sharing.d-sOXq-gtz.d.ts +571 -0
  189. package/dist/submission.d-BamwfhXw.d.cts +469 -0
  190. package/dist/submission.d-BamwfhXw.d.ts +469 -0
  191. package/dist/targeting.d-BNmcVsNS.d.cts +2057 -0
  192. package/dist/targeting.d-BNmcVsNS.d.ts +2057 -0
  193. package/dist/template-variables.d-Ble9TSBa.d.cts +1320 -0
  194. package/dist/template-variables.d-Ble9TSBa.d.ts +1320 -0
  195. package/dist/types-ChU9Acbv.d.cts +37 -0
  196. package/dist/types-ChU9Acbv.d.ts +37 -0
  197. package/dist/user.d-D18fe97W.d.cts +2270 -0
  198. package/dist/user.d-D18fe97W.d.ts +2270 -0
  199. package/dist/validation-rules.d-Db5c5zTf.d.cts +807 -0
  200. package/dist/validation-rules.d-Db5c5zTf.d.ts +807 -0
  201. package/dist/webhooks.d-pLHIL_io.d.cts +1256 -0
  202. package/dist/webhooks.d-pLHIL_io.d.ts +1256 -0
  203. package/dist/workflow-definition.d-DOeb0KVV.d.cts +1922 -0
  204. package/dist/workflow-definition.d-DOeb0KVV.d.ts +1922 -0
  205. package/dist/workflow.d-CMSKt8oN.d.cts +3151 -0
  206. package/dist/workflow.d-CMSKt8oN.d.ts +3151 -0
  207. package/package.json +1 -1
  208. package/dist/apis/_registry.d.ts +0 -8
  209. package/dist/authorize.d.ts +0 -3
  210. package/dist/bin/cli.d.ts +0 -1
  211. package/dist/client-factory.d.ts +0 -9
  212. package/dist/client-map.d.ts +0 -102
  213. package/dist/compact.d.ts +0 -22
  214. package/dist/help.d.ts +0 -12
  215. package/dist/large-response.d.ts +0 -9
  216. package/dist/openapi.d.ts +0 -12
  217. package/dist/overrides.d.ts +0 -9
  218. package/dist/proxy.d.ts +0 -14
  219. package/dist/registry.d.ts +0 -19
  220. package/dist/retry.d.ts +0 -11
  221. package/dist/sdk.d.ts +0 -29
  222. package/dist/types.d.ts +0 -53
@@ -0,0 +1,648 @@
1
+ import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
2
+
3
+ /* Auto-copied from document-client */
4
+ /* eslint-disable */
5
+
6
+
7
+
8
+ declare namespace Components {
9
+ namespace Schemas {
10
+ export interface ConvertDocumentRequest {
11
+ /**
12
+ * Language
13
+ * example:
14
+ * de
15
+ */
16
+ language?: string;
17
+ /**
18
+ * Input document
19
+ */
20
+ input_document: {
21
+ s3ref: S3Reference;
22
+ };
23
+ /**
24
+ * Output format of the document
25
+ */
26
+ output_format: "pdf";
27
+ /**
28
+ * Filename of the output document (optional)
29
+ * example:
30
+ * converted.pdf
31
+ */
32
+ output_filename?: string;
33
+ }
34
+ export interface ConvertDocumentResponse {
35
+ output_document?: {
36
+ /**
37
+ * Pre-signed URL for the converted document
38
+ * example:
39
+ * https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/converted.pdf
40
+ */
41
+ preview_url?: string;
42
+ s3ref?: S3Reference;
43
+ };
44
+ }
45
+ export interface DocumentGenerationV2Request {
46
+ /**
47
+ * Input template document
48
+ */
49
+ template_document: {
50
+ /**
51
+ * Document original filename
52
+ * example:
53
+ * my-template-{{order.order_number}}.docx
54
+ */
55
+ filename?: string;
56
+ s3ref?: S3Reference;
57
+ };
58
+ /**
59
+ * Entity to use for variable context
60
+ * example:
61
+ * bcd0aab9-b544-42b0-8bfb-6d449d02eacc
62
+ */
63
+ context_entity_id?: string; // uuid
64
+ /**
65
+ * User Id for variable context
66
+ * example:
67
+ * 100321
68
+ */
69
+ user_id?: string;
70
+ /**
71
+ * Language
72
+ * example:
73
+ * de
74
+ */
75
+ language?: string;
76
+ /**
77
+ * Custom values for variables in the template. Takes the higher precedence than others.
78
+ */
79
+ variable_payload?: {
80
+ additionalProperties?: string;
81
+ };
82
+ /**
83
+ * Custom values for variables in the template. Takes the higher precedence than others.
84
+ */
85
+ context_data?: {
86
+ additionalProperties?: string;
87
+ };
88
+ template_settings?: /* Template Settings for document generation */ TemplateSettings;
89
+ }
90
+ export interface DocumentGenerationV2Response {
91
+ job_id?: string; // uuid
92
+ /**
93
+ * Status of the job
94
+ */
95
+ job_status?: "STARTED" | "PROCESSING" | "SUCCESS" | "FAILED";
96
+ /**
97
+ * A message explaining the progress
98
+ */
99
+ message?: string;
100
+ ics_output?: {
101
+ /**
102
+ * example:
103
+ * {
104
+ * "s3ref": {
105
+ * "bucket": "document-api-preview-prod",
106
+ * "key": "preview/my-appointment.ics"
107
+ * }
108
+ * }
109
+ */
110
+ output_document?: {
111
+ /**
112
+ * Generated document filename for ICS
113
+ * example:
114
+ * my-appointment-OR-001.ics
115
+ */
116
+ filename?: string;
117
+ s3ref?: S3Reference;
118
+ };
119
+ };
120
+ pdf_output?: {
121
+ /**
122
+ * Pre-signed S3 GET URL for PDF preview
123
+ * example:
124
+ * https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf
125
+ */
126
+ preview_url?: string;
127
+ /**
128
+ * example:
129
+ * {
130
+ * "s3ref": {
131
+ * "bucket": "document-api-preview-prod",
132
+ * "key": "preview/my-template.pdf"
133
+ * }
134
+ * }
135
+ */
136
+ output_document?: {
137
+ /**
138
+ * Generated document filename for PDF
139
+ * example:
140
+ * my-template-OR-001.pdf
141
+ */
142
+ filename?: string;
143
+ s3ref?: S3Reference;
144
+ };
145
+ };
146
+ docx_output?: {
147
+ /**
148
+ * Pre-signed S3 GET URL for DOCX preview
149
+ * example:
150
+ * https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx
151
+ */
152
+ preview_url?: string;
153
+ /**
154
+ * example:
155
+ * {
156
+ * "s3ref": {
157
+ * "bucket": "document-api-preview-prod",
158
+ * "key": "preview/my-template.docx"
159
+ * }
160
+ * }
161
+ */
162
+ output_document?: {
163
+ /**
164
+ * Generated document filename for DOCX
165
+ * example:
166
+ * my-template-OR-001.docx
167
+ */
168
+ filename?: string;
169
+ s3ref?: S3Reference;
170
+ };
171
+ };
172
+ xlsx_output?: {
173
+ /**
174
+ * Pre-signed S3 GET URL for XLSX preview
175
+ * example:
176
+ * https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.xlsx
177
+ */
178
+ preview_url?: string;
179
+ /**
180
+ * example:
181
+ * {
182
+ * "s3ref": {
183
+ * "bucket": "document-api-preview-prod",
184
+ * "key": "preview/my-template.xlsx"
185
+ * }
186
+ * }
187
+ */
188
+ output_document?: {
189
+ /**
190
+ * Generated document filename for XLSX
191
+ * example:
192
+ * my-template-OR-001.xlsx
193
+ */
194
+ filename?: string;
195
+ s3ref?: S3Reference;
196
+ };
197
+ };
198
+ error_output?: ErrorOutput;
199
+ /**
200
+ * List of variables and its corresponding replaced values from the document template
201
+ */
202
+ variable_payload?: {
203
+ additionalProperties?: string;
204
+ };
205
+ template_settings?: /* Template Settings for document generation */ TemplateSettings;
206
+ }
207
+ export interface DocumentMetaRequest {
208
+ /**
209
+ * Input template document
210
+ */
211
+ template_document?: {
212
+ s3ref?: S3Reference;
213
+ };
214
+ }
215
+ export interface DocumentMetaResponse {
216
+ /**
217
+ * Page margins for the document
218
+ */
219
+ page_margins?: {
220
+ /**
221
+ * Top margin in cm
222
+ * example:
223
+ * 2.54
224
+ */
225
+ top?: number;
226
+ /**
227
+ * Bottom margin in cm
228
+ * example:
229
+ * 2.54
230
+ */
231
+ bottom?: number;
232
+ /**
233
+ * Left margin in cm
234
+ * example:
235
+ * 2.54
236
+ */
237
+ left?: number;
238
+ /**
239
+ * Right margin in cm
240
+ * example:
241
+ * 2.54
242
+ */
243
+ right?: number;
244
+ /**
245
+ * Header margin in cm
246
+ * example:
247
+ * 2.54
248
+ */
249
+ header?: number;
250
+ /**
251
+ * Footer margin in cm
252
+ * example:
253
+ * 2.54
254
+ */
255
+ footer?: number;
256
+ };
257
+ /**
258
+ * List of variables in the document
259
+ * example:
260
+ * [
261
+ * "order.billing_contact.0.salutation",
262
+ * "order.billing_contact.0.title",
263
+ * "order_table",
264
+ * "stayHardStatic",
265
+ * "opportunity[attribute_name]",
266
+ * "opportunity[\"attribute_name\"]",
267
+ * "opportunity.[attribute_name]",
268
+ * "attribute_name",
269
+ * "opportunities.0.attribute_name",
270
+ * "opportunities[0].attribute_name",
271
+ * "contact.opportunities[0].attribute_name",
272
+ * "opportunities[Primary].attribute_name"
273
+ * ]
274
+ */
275
+ variables?: string[];
276
+ }
277
+ /**
278
+ * DocxTemplater error detail
279
+ */
280
+ export interface DocxTemplaterErrorDetail {
281
+ /**
282
+ * Id of the error
283
+ */
284
+ id?: string;
285
+ /**
286
+ * Context of the error
287
+ */
288
+ context?: string;
289
+ /**
290
+ * Explanation of the error
291
+ */
292
+ explanation?: string;
293
+ }
294
+ /**
295
+ * Error details for DocxTemplater error. This error will appear under 'PARSE_ERROR' error code.
296
+ * See https://docxtemplater.com/docs/errors/#error-schema for more details.
297
+ *
298
+ */
299
+ export type DocxTemplaterErrorDetails = /* DocxTemplater error detail */ DocxTemplaterErrorDetail[];
300
+ /**
301
+ * Error codes for document generation:
302
+ * - PARSE_ERROR - Error while parsing the document. Normally related with a bad template using the wrong DocxTemplater syntax.
303
+ * - DOC_TO_PDF_CONVERT_ERROR - Error while converting the document to PDF. Normally related with a ConvertAPI failure.
304
+ * - INTERNAL_ERROR - Internal error. Please contact support.
305
+ * - INVALID_TEMPLATE_FORMAT - Invalid template format (only .docx is supported). This can happen due to a bad word file or an unsupported file extension.
306
+ *
307
+ */
308
+ export type ErrorCode = "PARSE_ERROR" | "DOC_TO_PDF_CONVERT_ERROR" | "INTERNAL_ERROR" | "INVALID_TEMPLATE_FORMAT";
309
+ export interface ErrorOutput {
310
+ /**
311
+ * Error message
312
+ */
313
+ error_message?: string;
314
+ error_code?: /**
315
+ * Error codes for document generation:
316
+ * - PARSE_ERROR - Error while parsing the document. Normally related with a bad template using the wrong DocxTemplater syntax.
317
+ * - DOC_TO_PDF_CONVERT_ERROR - Error while converting the document to PDF. Normally related with a ConvertAPI failure.
318
+ * - INTERNAL_ERROR - Internal error. Please contact support.
319
+ * - INVALID_TEMPLATE_FORMAT - Invalid template format (only .docx is supported). This can happen due to a bad word file or an unsupported file extension.
320
+ *
321
+ */
322
+ ErrorCode;
323
+ error_details?: /* Error details for invalid custom variables. This error will appear under 'PARSE_ERROR' error code. */ InvalidCustomVariableErrorDetails | /* Error details for internal error. This error will appear under 'INTERNAL_ERROR' error code. */ InternalErrorDetails | /**
324
+ * Error details for DocxTemplater error. This error will appear under 'PARSE_ERROR' error code.
325
+ * See https://docxtemplater.com/docs/errors/#error-schema for more details.
326
+ *
327
+ */
328
+ DocxTemplaterErrorDetails;
329
+ }
330
+ /**
331
+ * Internal error detail
332
+ */
333
+ export interface InternalErrorDetail {
334
+ /**
335
+ * Name of the error
336
+ */
337
+ name?: string;
338
+ /**
339
+ * Error message
340
+ */
341
+ message?: string;
342
+ /**
343
+ * Stack trace
344
+ */
345
+ stack?: string;
346
+ /**
347
+ * Cause of the error
348
+ */
349
+ cause?: string;
350
+ }
351
+ /**
352
+ * Error details for internal error. This error will appear under 'INTERNAL_ERROR' error code.
353
+ */
354
+ export type InternalErrorDetails = {
355
+ items?: /* Internal error detail */ InternalErrorDetail;
356
+ }[];
357
+ export interface InvalidCustomVariableErrorDetail {
358
+ [name: string]: any;
359
+ /**
360
+ * Explanation for the error
361
+ */
362
+ explanation?: string;
363
+ /**
364
+ * Context for the error
365
+ */
366
+ context?: {
367
+ /**
368
+ * List of invalid variables
369
+ */
370
+ invalid_variables?: {
371
+ /**
372
+ * Variable name
373
+ */
374
+ variable?: string;
375
+ /**
376
+ * Explanation for the error
377
+ */
378
+ error?: string;
379
+ }[];
380
+ };
381
+ }
382
+ /**
383
+ * Error details for invalid custom variables. This error will appear under 'PARSE_ERROR' error code.
384
+ */
385
+ export type InvalidCustomVariableErrorDetails = InvalidCustomVariableErrorDetail[];
386
+ export interface S3Reference {
387
+ /**
388
+ * example:
389
+ * document-api-prod
390
+ */
391
+ bucket: string;
392
+ /**
393
+ * example:
394
+ * uploads/my-template.pdf
395
+ */
396
+ key: string;
397
+ }
398
+ /**
399
+ * Template Settings for document generation
400
+ */
401
+ export interface TemplateSettings {
402
+ /**
403
+ * Custom margins for the document
404
+ */
405
+ custom_margins?: {
406
+ /**
407
+ * Top margin in cm
408
+ * example:
409
+ * 2.54
410
+ */
411
+ top?: number;
412
+ /**
413
+ * Bottom margin in cm
414
+ * example:
415
+ * 2.54
416
+ */
417
+ bottom?: number;
418
+ };
419
+ /**
420
+ * Suggested margins for the document
421
+ */
422
+ suggested_margins?: {
423
+ /**
424
+ * Top margin in cm
425
+ * example:
426
+ * 2.54
427
+ */
428
+ top?: number;
429
+ /**
430
+ * Bottom margin in cm
431
+ * example:
432
+ * 2.54
433
+ */
434
+ bottom?: number;
435
+ };
436
+ /**
437
+ * Display margin guidelines (applicable to partial generation only)
438
+ * example:
439
+ * true
440
+ */
441
+ display_margin_guidelines?: boolean;
442
+ /**
443
+ * Enable data table margin autofix
444
+ * example:
445
+ * false
446
+ */
447
+ enable_data_table_margin_autofix?: boolean;
448
+ /**
449
+ * A flag that indicates whether the template has 1 or more data tables in it
450
+ * example:
451
+ * false
452
+ */
453
+ template_with_datatable?: boolean;
454
+ /**
455
+ * Enables the persistance of template settings
456
+ * example:
457
+ * false
458
+ */
459
+ enabled_template_settings_persistence?: boolean;
460
+ /**
461
+ * An indication that the page margins are misconfigured
462
+ * example:
463
+ * false
464
+ */
465
+ misconfigured_margins?: boolean;
466
+ /**
467
+ * The file entity id, used when persisting a new template version with updated settings
468
+ * example:
469
+ * 1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p
470
+ */
471
+ file_entity_id?: string; // uuid
472
+ }
473
+ }
474
+ }
475
+ declare namespace Paths {
476
+ namespace ConvertDocument {
477
+ export type RequestBody = Components.Schemas.ConvertDocumentRequest;
478
+ namespace Responses {
479
+ export type $200 = Components.Schemas.ConvertDocumentResponse;
480
+ }
481
+ }
482
+ namespace GenerateDocumentV2 {
483
+ namespace Parameters {
484
+ export type JobId = string;
485
+ export type Mode = "partial_generation" | "full_generation";
486
+ export type PreviewMode = "open" | "download";
487
+ }
488
+ export interface QueryParameters {
489
+ job_id?: Parameters.JobId;
490
+ mode?: Parameters.Mode;
491
+ preview_mode?: Parameters.PreviewMode;
492
+ }
493
+ export type RequestBody = Components.Schemas.DocumentGenerationV2Request;
494
+ namespace Responses {
495
+ export type $200 = Components.Schemas.DocumentGenerationV2Response;
496
+ }
497
+ }
498
+ namespace GetTemplateMeta {
499
+ export type RequestBody = Components.Schemas.DocumentMetaRequest;
500
+ namespace Responses {
501
+ export type $200 = Components.Schemas.DocumentMetaResponse;
502
+ export type $400 = Components.Schemas.ErrorOutput;
503
+ export type $403 = Components.Schemas.ErrorOutput;
504
+ export type $415 = Components.Schemas.ErrorOutput;
505
+ }
506
+ }
507
+ }
508
+
509
+
510
+ interface OperationMethods {
511
+ /**
512
+ * getTemplateMeta - getTemplateMeta
513
+ *
514
+ * Get metadata for a document template
515
+ *
516
+ * Supported input document types:
517
+ * - .docx
518
+ *
519
+ */
520
+ 'getTemplateMeta'(
521
+ parameters?: Parameters<UnknownParamsObject> | null,
522
+ data?: Paths.GetTemplateMeta.RequestBody,
523
+ config?: AxiosRequestConfig
524
+ ): OperationResponse<Paths.GetTemplateMeta.Responses.$200>
525
+ /**
526
+ * generateDocumentV2 - generateDocumentV2
527
+ *
528
+ * Generates documents from templates with variables.
529
+ *
530
+ * Supported document types as input:
531
+ * - .docx
532
+ * - .ics
533
+ *
534
+ * Supported document types as output:
535
+ * - .pdf
536
+ * - .docx but limited to only text based variables
537
+ * - .ics
538
+ *
539
+ * Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the input document.
540
+ *
541
+ */
542
+ 'generateDocumentV2'(
543
+ parameters?: Parameters<Paths.GenerateDocumentV2.QueryParameters> | null,
544
+ data?: Paths.GenerateDocumentV2.RequestBody,
545
+ config?: AxiosRequestConfig
546
+ ): OperationResponse<Paths.GenerateDocumentV2.Responses.$200>
547
+ /**
548
+ * convertDocument - convertDocument
549
+ *
550
+ * Converts a document to a different format.
551
+ *
552
+ * Supported input document types:
553
+ * - .docx
554
+ *
555
+ * Supported output document types:
556
+ * - .pdf
557
+ *
558
+ */
559
+ 'convertDocument'(
560
+ parameters?: Parameters<UnknownParamsObject> | null,
561
+ data?: Paths.ConvertDocument.RequestBody,
562
+ config?: AxiosRequestConfig
563
+ ): OperationResponse<Paths.ConvertDocument.Responses.$200>
564
+ }
565
+
566
+ interface PathsDictionary {
567
+ ['/v2/documents:meta']: {
568
+ /**
569
+ * getTemplateMeta - getTemplateMeta
570
+ *
571
+ * Get metadata for a document template
572
+ *
573
+ * Supported input document types:
574
+ * - .docx
575
+ *
576
+ */
577
+ 'post'(
578
+ parameters?: Parameters<UnknownParamsObject> | null,
579
+ data?: Paths.GetTemplateMeta.RequestBody,
580
+ config?: AxiosRequestConfig
581
+ ): OperationResponse<Paths.GetTemplateMeta.Responses.$200>
582
+ }
583
+ ['/v2/documents:generate']: {
584
+ /**
585
+ * generateDocumentV2 - generateDocumentV2
586
+ *
587
+ * Generates documents from templates with variables.
588
+ *
589
+ * Supported document types as input:
590
+ * - .docx
591
+ * - .ics
592
+ *
593
+ * Supported document types as output:
594
+ * - .pdf
595
+ * - .docx but limited to only text based variables
596
+ * - .ics
597
+ *
598
+ * Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the input document.
599
+ *
600
+ */
601
+ 'post'(
602
+ parameters?: Parameters<Paths.GenerateDocumentV2.QueryParameters> | null,
603
+ data?: Paths.GenerateDocumentV2.RequestBody,
604
+ config?: AxiosRequestConfig
605
+ ): OperationResponse<Paths.GenerateDocumentV2.Responses.$200>
606
+ }
607
+ ['/v2/documents:convert']: {
608
+ /**
609
+ * convertDocument - convertDocument
610
+ *
611
+ * Converts a document to a different format.
612
+ *
613
+ * Supported input document types:
614
+ * - .docx
615
+ *
616
+ * Supported output document types:
617
+ * - .pdf
618
+ *
619
+ */
620
+ 'post'(
621
+ parameters?: Parameters<UnknownParamsObject> | null,
622
+ data?: Paths.ConvertDocument.RequestBody,
623
+ config?: AxiosRequestConfig
624
+ ): OperationResponse<Paths.ConvertDocument.Responses.$200>
625
+ }
626
+ }
627
+
628
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
629
+
630
+
631
+ type ConvertDocumentRequest = Components.Schemas.ConvertDocumentRequest;
632
+ type ConvertDocumentResponse = Components.Schemas.ConvertDocumentResponse;
633
+ type DocumentGenerationV2Request = Components.Schemas.DocumentGenerationV2Request;
634
+ type DocumentGenerationV2Response = Components.Schemas.DocumentGenerationV2Response;
635
+ type DocumentMetaRequest = Components.Schemas.DocumentMetaRequest;
636
+ type DocumentMetaResponse = Components.Schemas.DocumentMetaResponse;
637
+ type DocxTemplaterErrorDetail = Components.Schemas.DocxTemplaterErrorDetail;
638
+ type DocxTemplaterErrorDetails = Components.Schemas.DocxTemplaterErrorDetails;
639
+ type ErrorCode = Components.Schemas.ErrorCode;
640
+ type ErrorOutput = Components.Schemas.ErrorOutput;
641
+ type InternalErrorDetail = Components.Schemas.InternalErrorDetail;
642
+ type InternalErrorDetails = Components.Schemas.InternalErrorDetails;
643
+ type InvalidCustomVariableErrorDetail = Components.Schemas.InvalidCustomVariableErrorDetail;
644
+ type InvalidCustomVariableErrorDetails = Components.Schemas.InvalidCustomVariableErrorDetails;
645
+ type S3Reference = Components.Schemas.S3Reference;
646
+ type TemplateSettings = Components.Schemas.TemplateSettings;
647
+
648
+ export { type Client as C, type DocumentGenerationV2Request as D, type ErrorCode as E, type InternalErrorDetail as I, type OperationMethods as O, Paths as P, type S3Reference as S, type TemplateSettings as T, Components as a, type PathsDictionary as b, type ConvertDocumentRequest as c, type ConvertDocumentResponse as d, type DocumentGenerationV2Response as e, type DocumentMetaRequest as f, type DocumentMetaResponse as g, type DocxTemplaterErrorDetail as h, type DocxTemplaterErrorDetails as i, type ErrorOutput as j, type InternalErrorDetails as k, type InvalidCustomVariableErrorDetail as l, type InvalidCustomVariableErrorDetails as m };