@epilot/sdk 2.20.9 → 2.20.11

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 (262) hide show
  1. package/dist/apis/access-token.cjs +6 -6
  2. package/dist/apis/access-token.js +1 -1
  3. package/dist/apis/address-suggestions.cjs +6 -6
  4. package/dist/apis/address-suggestions.js +1 -1
  5. package/dist/apis/address.cjs +6 -6
  6. package/dist/apis/address.js +1 -1
  7. package/dist/apis/ai-agents.cjs +6 -6
  8. package/dist/apis/ai-agents.js +1 -1
  9. package/dist/apis/app.cjs +6 -6
  10. package/dist/apis/app.js +1 -1
  11. package/dist/apis/audit-logs.cjs +6 -6
  12. package/dist/apis/audit-logs.js +1 -1
  13. package/dist/apis/automation.cjs +6 -6
  14. package/dist/apis/automation.js +1 -1
  15. package/dist/apis/billing.cjs +6 -6
  16. package/dist/apis/billing.js +1 -1
  17. package/dist/apis/blueprint-manifest.cjs +6 -6
  18. package/dist/apis/blueprint-manifest.js +1 -1
  19. package/dist/apis/calendar.cjs +6 -6
  20. package/dist/apis/calendar.js +1 -1
  21. package/dist/apis/configuration-hub.cjs +6 -6
  22. package/dist/apis/configuration-hub.js +1 -1
  23. package/dist/apis/consent.cjs +6 -6
  24. package/dist/apis/consent.js +1 -1
  25. package/dist/apis/customer-portal.cjs +6 -6
  26. package/dist/apis/customer-portal.js +1 -1
  27. package/dist/apis/dashboard.cjs +6 -6
  28. package/dist/apis/dashboard.js +1 -1
  29. package/dist/apis/data-governance.cjs +6 -6
  30. package/dist/apis/data-governance.js +1 -1
  31. package/dist/apis/deduplication.cjs +6 -6
  32. package/dist/apis/deduplication.js +1 -1
  33. package/dist/apis/design.cjs +6 -6
  34. package/dist/apis/design.js +1 -1
  35. package/dist/apis/document.cjs +6 -6
  36. package/dist/apis/document.js +1 -1
  37. package/dist/apis/email-settings.cjs +6 -6
  38. package/dist/apis/email-settings.js +1 -1
  39. package/dist/apis/email-template.cjs +6 -6
  40. package/dist/apis/email-template.js +1 -1
  41. package/dist/apis/entity-mapping.cjs +6 -6
  42. package/dist/apis/entity-mapping.js +1 -1
  43. package/dist/apis/entity.cjs +24 -6
  44. package/dist/apis/entity.d.cts +15 -1
  45. package/dist/apis/entity.d.ts +15 -1
  46. package/dist/apis/entity.js +19 -1
  47. package/dist/apis/environments.cjs +6 -6
  48. package/dist/apis/environments.js +1 -1
  49. package/dist/apis/event-catalog.cjs +8 -8
  50. package/dist/apis/event-catalog.d.cts +2 -2
  51. package/dist/apis/event-catalog.d.ts +2 -2
  52. package/dist/apis/event-catalog.js +2 -2
  53. package/dist/apis/file.cjs +8 -8
  54. package/dist/apis/file.d.cts +2 -2
  55. package/dist/apis/file.d.ts +2 -2
  56. package/dist/apis/file.js +2 -2
  57. package/dist/apis/iban.cjs +6 -6
  58. package/dist/apis/iban.js +1 -1
  59. package/dist/apis/integration-toolkit.cjs +6 -6
  60. package/dist/apis/integration-toolkit.js +1 -1
  61. package/dist/apis/journey.cjs +8 -8
  62. package/dist/apis/journey.d.cts +2 -2
  63. package/dist/apis/journey.d.ts +2 -2
  64. package/dist/apis/journey.js +2 -2
  65. package/dist/apis/kanban.cjs +6 -6
  66. package/dist/apis/kanban.js +1 -1
  67. package/dist/apis/message.cjs +6 -6
  68. package/dist/apis/message.js +1 -1
  69. package/dist/apis/metering.cjs +6 -6
  70. package/dist/apis/metering.js +1 -1
  71. package/dist/apis/notes.cjs +6 -6
  72. package/dist/apis/notes.js +1 -1
  73. package/dist/apis/notification.cjs +6 -6
  74. package/dist/apis/notification.js +1 -1
  75. package/dist/apis/organization.cjs +6 -6
  76. package/dist/apis/organization.js +1 -1
  77. package/dist/apis/partner-directory.cjs +6 -6
  78. package/dist/apis/partner-directory.js +1 -1
  79. package/dist/apis/permissions.cjs +6 -6
  80. package/dist/apis/permissions.js +1 -1
  81. package/dist/apis/pricing-tier.cjs +6 -6
  82. package/dist/apis/pricing-tier.js +1 -1
  83. package/dist/apis/pricing.cjs +6 -27
  84. package/dist/apis/pricing.d.cts +1 -13
  85. package/dist/apis/pricing.d.ts +1 -13
  86. package/dist/apis/pricing.js +1 -22
  87. package/dist/apis/purpose.cjs +6 -6
  88. package/dist/apis/purpose.js +1 -1
  89. package/dist/apis/query.cjs +6 -6
  90. package/dist/apis/query.js +1 -1
  91. package/dist/apis/sandbox.cjs +6 -6
  92. package/dist/apis/sandbox.js +1 -1
  93. package/dist/apis/sharing.cjs +6 -6
  94. package/dist/apis/sharing.js +1 -1
  95. package/dist/apis/snapshot.cjs +6 -6
  96. package/dist/apis/snapshot.js +1 -1
  97. package/dist/apis/submission.cjs +6 -6
  98. package/dist/apis/submission.js +1 -1
  99. package/dist/apis/target.cjs +6 -6
  100. package/dist/apis/target.js +1 -1
  101. package/dist/apis/targeting.cjs +6 -6
  102. package/dist/apis/targeting.js +1 -1
  103. package/dist/apis/template-variables.cjs +6 -6
  104. package/dist/apis/template-variables.js +1 -1
  105. package/dist/apis/user.cjs +6 -6
  106. package/dist/apis/user.js +1 -1
  107. package/dist/apis/validation-rules.cjs +6 -6
  108. package/dist/apis/validation-rules.js +1 -1
  109. package/dist/apis/webhooks.cjs +6 -6
  110. package/dist/apis/webhooks.js +1 -1
  111. package/dist/apis/workflow-definition.cjs +6 -6
  112. package/dist/apis/workflow-definition.js +1 -1
  113. package/dist/apis/workflow.cjs +6 -6
  114. package/dist/apis/workflow.js +1 -1
  115. package/dist/chunk-2Q6CNXJ2.cjs +14 -0
  116. package/dist/{chunk-5S2PEECD.cjs → chunk-424JLS5G.cjs} +1 -1
  117. package/dist/chunk-FGQBS7TA.js +14 -0
  118. package/dist/chunk-HL4MZXEK.js +14 -0
  119. package/dist/chunk-LTCN52JS.js +14 -0
  120. package/dist/{chunk-VCD3C4UW.cjs → chunk-QZH7QNNP.cjs} +6 -6
  121. package/dist/{chunk-JBFTKLP2.js → chunk-SMERBU2T.js} +6 -6
  122. package/dist/chunk-W6R2J6KQ.cjs +14 -0
  123. package/dist/event-catalog-S4OYTDIB.js +7 -0
  124. package/dist/event-catalog-Z6BO4L2G.cjs +7 -0
  125. package/dist/{event-catalog-runtime-AME244T7.cjs → event-catalog-runtime-XWSYNUGQ.cjs} +2 -2
  126. package/dist/{event-catalog-runtime-Q3MKEDG4.js → event-catalog-runtime-Z6OMHQBD.js} +1 -1
  127. package/dist/{event-catalog.d-Bd2wmtlZ.d.ts → event-catalog.d-CCE1qmBN.d.cts} +105 -22
  128. package/dist/{event-catalog.d-Bd2wmtlZ.d.cts → event-catalog.d-CCE1qmBN.d.ts} +105 -22
  129. package/dist/file-LFOTXMRJ.cjs +7 -0
  130. package/dist/file-ND2JH5EM.js +7 -0
  131. package/dist/file-runtime-JL2IZ2CE.cjs +5 -0
  132. package/dist/{file-runtime-423SISQ2.js → file-runtime-RS4DX5LB.js} +1 -1
  133. package/dist/{file.d-CBsXF4W8.d.ts → file.d-DELNV63w.d.cts} +340 -9
  134. package/dist/{file.d-CBsXF4W8.d.cts → file.d-DELNV63w.d.ts} +340 -9
  135. package/dist/index.cjs +14 -14
  136. package/dist/index.d.cts +3 -3
  137. package/dist/index.d.ts +3 -3
  138. package/dist/index.js +4 -4
  139. package/dist/journey-FNWHSZW3.js +7 -0
  140. package/dist/journey-FUJDOH5O.cjs +7 -0
  141. package/dist/{journey-runtime-PAJVCFMZ.cjs → journey-runtime-EFWGEDUE.cjs} +2 -2
  142. package/dist/{journey-runtime-33QDS2WK.js → journey-runtime-VCADGDRV.js} +1 -1
  143. package/dist/{journey.d-bxl2l7qg.d.cts → journey.d-6Bs1uNLT.d.cts} +1062 -14
  144. package/dist/{journey.d-bxl2l7qg.d.ts → journey.d-6Bs1uNLT.d.ts} +1062 -14
  145. package/docs/event-catalog.md +155 -5
  146. package/docs/file.md +272 -0
  147. package/docs/journey.md +676 -0
  148. package/package.json +1 -1
  149. package/definitions/access-token-runtime.json +0 -1
  150. package/definitions/access-token.json +0 -835
  151. package/definitions/address-runtime.json +0 -1
  152. package/definitions/address-suggestions-runtime.json +0 -1
  153. package/definitions/address-suggestions.json +0 -582
  154. package/definitions/address.json +0 -578
  155. package/definitions/ai-agents-runtime.json +0 -1
  156. package/definitions/ai-agents.json +0 -2863
  157. package/definitions/app-runtime.json +0 -1
  158. package/definitions/app.json +0 -5993
  159. package/definitions/audit-logs-runtime.json +0 -1
  160. package/definitions/audit-logs.json +0 -305
  161. package/definitions/automation-runtime.json +0 -1
  162. package/definitions/automation.json +0 -5889
  163. package/definitions/billing-runtime.json +0 -1
  164. package/definitions/billing.json +0 -2394
  165. package/definitions/blueprint-manifest-runtime.json +0 -1
  166. package/definitions/blueprint-manifest.json +0 -7817
  167. package/definitions/calendar-runtime.json +0 -1
  168. package/definitions/calendar.json +0 -2904
  169. package/definitions/configuration-hub-runtime.json +0 -1
  170. package/definitions/configuration-hub.json +0 -2250
  171. package/definitions/consent-runtime.json +0 -1
  172. package/definitions/consent.json +0 -344
  173. package/definitions/customer-portal-runtime.json +0 -1
  174. package/definitions/customer-portal.json +0 -19945
  175. package/definitions/dashboard-runtime.json +0 -1
  176. package/definitions/dashboard.json +0 -1355
  177. package/definitions/data-governance-runtime.json +0 -1
  178. package/definitions/data-governance.json +0 -1126
  179. package/definitions/deduplication-runtime.json +0 -1
  180. package/definitions/deduplication.json +0 -782
  181. package/definitions/design-runtime.json +0 -1
  182. package/definitions/design.json +0 -1827
  183. package/definitions/document-runtime.json +0 -1
  184. package/definitions/document.json +0 -758
  185. package/definitions/email-settings-runtime.json +0 -1
  186. package/definitions/email-settings.json +0 -3736
  187. package/definitions/email-template-runtime.json +0 -1
  188. package/definitions/email-template.json +0 -1441
  189. package/definitions/entity-mapping-runtime.json +0 -1
  190. package/definitions/entity-mapping.json +0 -1829
  191. package/definitions/entity-runtime.json +0 -1
  192. package/definitions/entity.json +0 -11546
  193. package/definitions/environments-runtime.json +0 -1
  194. package/definitions/environments.json +0 -703
  195. package/definitions/event-catalog-runtime.json +0 -1
  196. package/definitions/event-catalog.json +0 -1943
  197. package/definitions/file-runtime.json +0 -1
  198. package/definitions/file.json +0 -3905
  199. package/definitions/iban-runtime.json +0 -1
  200. package/definitions/iban.json +0 -132
  201. package/definitions/integration-toolkit-runtime.json +0 -1
  202. package/definitions/integration-toolkit.json +0 -12966
  203. package/definitions/journey-runtime.json +0 -1
  204. package/definitions/journey.json +0 -3040
  205. package/definitions/kanban-runtime.json +0 -1
  206. package/definitions/kanban.json +0 -1506
  207. package/definitions/message-runtime.json +0 -1
  208. package/definitions/message.json +0 -3667
  209. package/definitions/metering-runtime.json +0 -1
  210. package/definitions/metering.json +0 -3132
  211. package/definitions/notes-runtime.json +0 -1
  212. package/definitions/notes.json +0 -1698
  213. package/definitions/notification-runtime.json +0 -1
  214. package/definitions/notification.json +0 -1439
  215. package/definitions/organization-runtime.json +0 -1
  216. package/definitions/organization.json +0 -1192
  217. package/definitions/partner-directory-runtime.json +0 -1
  218. package/definitions/partner-directory.json +0 -2284
  219. package/definitions/permissions-runtime.json +0 -1
  220. package/definitions/permissions.json +0 -1598
  221. package/definitions/pricing-runtime.json +0 -1
  222. package/definitions/pricing-tier-runtime.json +0 -1
  223. package/definitions/pricing-tier.json +0 -105
  224. package/definitions/pricing.json +0 -14301
  225. package/definitions/purpose-runtime.json +0 -1
  226. package/definitions/purpose.json +0 -524
  227. package/definitions/query-runtime.json +0 -1
  228. package/definitions/query.json +0 -3178
  229. package/definitions/sandbox-runtime.json +0 -1
  230. package/definitions/sandbox.json +0 -453
  231. package/definitions/sharing-runtime.json +0 -1
  232. package/definitions/sharing.json +0 -956
  233. package/definitions/snapshot-runtime.json +0 -1
  234. package/definitions/snapshot.json +0 -1103
  235. package/definitions/submission-runtime.json +0 -1
  236. package/definitions/submission.json +0 -313
  237. package/definitions/targeting-runtime.json +0 -1
  238. package/definitions/targeting.json +0 -2285
  239. package/definitions/template-variables-runtime.json +0 -1
  240. package/definitions/template-variables.json +0 -1416
  241. package/definitions/user-runtime.json +0 -1
  242. package/definitions/user.json +0 -3051
  243. package/definitions/validation-rules-runtime.json +0 -1
  244. package/definitions/validation-rules.json +0 -2642
  245. package/definitions/webhooks-runtime.json +0 -1
  246. package/definitions/webhooks.json +0 -1875
  247. package/definitions/workflow-definition-runtime.json +0 -1
  248. package/definitions/workflow-definition.json +0 -3592
  249. package/definitions/workflow-runtime.json +0 -1
  250. package/definitions/workflow.json +0 -4669
  251. package/dist/chunk-CIKDOXDL.cjs +0 -14
  252. package/dist/chunk-EEKJGTAS.js +0 -14
  253. package/dist/chunk-IBMGFLXF.js +0 -14
  254. package/dist/chunk-MPZICOVZ.cjs +0 -14
  255. package/dist/chunk-XJUB5BYM.js +0 -14
  256. package/dist/event-catalog-4FVQZ65M.cjs +0 -7
  257. package/dist/event-catalog-PEOHXUJO.js +0 -7
  258. package/dist/file-M5HNKOPG.cjs +0 -7
  259. package/dist/file-ZUNCUDBY.js +0 -7
  260. package/dist/file-runtime-IHVDQNIX.cjs +0 -5
  261. package/dist/journey-2HHH7MLM.js +0 -7
  262. package/dist/journey-4CXKZMKV.cjs +0 -7
@@ -166,6 +166,28 @@ declare namespace Components {
166
166
  */
167
167
  error?: string;
168
168
  }
169
+ /**
170
+ * A generic error returned by the API
171
+ * example:
172
+ * {
173
+ * "status": 422,
174
+ * "error": "File type not allowed"
175
+ * }
176
+ */
177
+ export interface UnprocessableEntityError {
178
+ /**
179
+ * The HTTP status code of the error
180
+ * example:
181
+ * 400
182
+ */
183
+ status?: number;
184
+ /**
185
+ * The error message
186
+ * example:
187
+ * Bad Request
188
+ */
189
+ error?: string;
190
+ }
169
191
  }
170
192
  namespace Schemas {
171
193
  /**
@@ -2908,6 +2930,160 @@ declare namespace Components {
2908
2930
  */
2909
2931
  public_url?: string; // url
2910
2932
  }
2933
+ export interface FileValidation {
2934
+ /**
2935
+ * Identifier of this validation run.
2936
+ */
2937
+ id: string;
2938
+ /**
2939
+ * `completed` when every rule was evaluated. `pending` is reserved for check levels that
2940
+ * need asynchronous content extraction; `failed` when the observation could not be produced.
2941
+ *
2942
+ */
2943
+ status: "completed" | "pending" | "failed";
2944
+ file: /* The file that was validated, with the identity facts collected from its content. */ FileValidationFile;
2945
+ observation: /* Everything observed about the file, as passed to the validation rules engine. */ FileValidationObservation;
2946
+ results: FileValidationRuleResult[];
2947
+ created_at: string; // date-time
2948
+ }
2949
+ export interface FileValidationConditionResult {
2950
+ id: string;
2951
+ operator: string;
2952
+ outcome: "pass" | "fail" | "uncertain" | "skipped";
2953
+ /**
2954
+ * True when this outcome makes the file invalid.
2955
+ */
2956
+ blocking: boolean;
2957
+ /**
2958
+ * The condition's configured error message.
2959
+ */
2960
+ message: string;
2961
+ evidence?: string;
2962
+ explanation?: string;
2963
+ }
2964
+ /**
2965
+ * Deterministic properties of the file. A property that is absent could not be determined
2966
+ * (for example the resolution of an image the service cannot decode); conditions that need it
2967
+ * are skipped rather than failed.
2968
+ *
2969
+ */
2970
+ export interface FileValidationFacts {
2971
+ mime_type?: string;
2972
+ size_bytes?: number;
2973
+ /**
2974
+ * Pages of a PDF; 1 for images.
2975
+ */
2976
+ page_count?: number;
2977
+ /**
2978
+ * Longer edge of an image in pixels.
2979
+ */
2980
+ longer_edge_px?: number;
2981
+ is_blank?: boolean;
2982
+ is_password_protected?: boolean;
2983
+ }
2984
+ /**
2985
+ * The file that was validated, with the identity facts collected from its content.
2986
+ */
2987
+ export interface FileValidationFile {
2988
+ entity_id?: /**
2989
+ * example:
2990
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
2991
+ */
2992
+ FileEntityId;
2993
+ s3ref?: S3Ref;
2994
+ filename?: string;
2995
+ /**
2996
+ * Mime type detected from the file content, falling back to the declared type.
2997
+ */
2998
+ mime_type?: string;
2999
+ size_bytes?: number;
3000
+ }
3001
+ /**
3002
+ * The file to validate - a saved file entity, or an uploaded object not saved as an entity yet.
3003
+ */
3004
+ export type FileValidationFileReference = /* The file to validate - a saved file entity, or an uploaded object not saved as an entity yet. */ {
3005
+ entity_id: /**
3006
+ * example:
3007
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
3008
+ */
3009
+ FileEntityId;
3010
+ } | {
3011
+ s3ref: S3Ref;
3012
+ };
3013
+ export interface FileValidationJudgement {
3014
+ result: "pass" | "fail" | "uncertain";
3015
+ confidence?: number;
3016
+ evidence?: string;
3017
+ explanation?: string;
3018
+ }
3019
+ /**
3020
+ * Everything observed about the file, as passed to the validation rules engine.
3021
+ */
3022
+ export interface FileValidationObservation {
3023
+ facts: /**
3024
+ * Deterministic properties of the file. A property that is absent could not be determined
3025
+ * (for example the resolution of an image the service cannot decode); conditions that need it
3026
+ * are skipped rather than failed.
3027
+ *
3028
+ */
3029
+ FileValidationFacts;
3030
+ /**
3031
+ * Content judgements keyed by condition id, produced by the document requirements
3032
+ * check for `meetsCriteria` conditions at the `standard` and `advanced` levels.
3033
+ * Absent when no content check ran (basic level, unsupported file, or the check
3034
+ * did not finish within its budget).
3035
+ *
3036
+ */
3037
+ judgements?: {
3038
+ [name: string]: FileValidationJudgement;
3039
+ };
3040
+ /**
3041
+ * Document type detected by the content check, when it ran.
3042
+ */
3043
+ document_type?: {
3044
+ slug?: string;
3045
+ confidence?: number;
3046
+ };
3047
+ }
3048
+ export interface FileValidationRequest {
3049
+ file: /* The file to validate - a saved file entity, or an uploaded object not saved as an entity yet. */ FileValidationFileReference;
3050
+ /**
3051
+ * Document validation rules to evaluate. Rules of another input type are rejected.
3052
+ */
3053
+ rule_ids: [
3054
+ string,
3055
+ string?,
3056
+ string?,
3057
+ string?,
3058
+ string?,
3059
+ string?,
3060
+ string?,
3061
+ string?,
3062
+ string?,
3063
+ string?
3064
+ ];
3065
+ }
3066
+ export interface FileValidationRuleResult {
3067
+ rule_id: string;
3068
+ rule_title?: string;
3069
+ /**
3070
+ * The rule's check level.
3071
+ */
3072
+ level: "basic" | "standard" | "advanced";
3073
+ /**
3074
+ * True when every blocking condition passed or was skipped.
3075
+ */
3076
+ is_valid: boolean;
3077
+ /**
3078
+ * Error messages of blocking conditions that failed.
3079
+ */
3080
+ failed_parts?: string[];
3081
+ /**
3082
+ * Error messages of advisory conditions that failed and of uncertain judgements.
3083
+ */
3084
+ warnings?: string[];
3085
+ conditions: FileValidationConditionResult[];
3086
+ }
2911
3087
  export interface PublicLink {
2912
3088
  /**
2913
3089
  * ID of the public link
@@ -4855,6 +5031,15 @@ declare namespace Paths {
4855
5031
  * }
4856
5032
  */
4857
5033
  Components.Responses.UnauthorizedError;
5034
+ export type $422 = /**
5035
+ * A generic error returned by the API
5036
+ * example:
5037
+ * {
5038
+ * "status": 422,
5039
+ * "error": "File type not allowed"
5040
+ * }
5041
+ */
5042
+ Components.Responses.UnprocessableEntityError;
4858
5043
  export type $500 = /**
4859
5044
  * A generic error returned by the API
4860
5045
  * example:
@@ -4939,6 +5124,15 @@ declare namespace Paths {
4939
5124
  * }
4940
5125
  */
4941
5126
  Components.Responses.NotFoundError;
5127
+ export type $422 = /**
5128
+ * A generic error returned by the API
5129
+ * example:
5130
+ * {
5131
+ * "status": 422,
5132
+ * "error": "File type not allowed"
5133
+ * }
5134
+ */
5135
+ Components.Responses.UnprocessableEntityError;
4942
5136
  export type $500 = /**
4943
5137
  * A generic error returned by the API
4944
5138
  * example:
@@ -5045,6 +5239,15 @@ declare namespace Paths {
5045
5239
  * }
5046
5240
  */
5047
5241
  Components.Responses.UnauthorizedError;
5242
+ export type $422 = /**
5243
+ * A generic error returned by the API
5244
+ * example:
5245
+ * {
5246
+ * "status": 422,
5247
+ * "error": "File type not allowed"
5248
+ * }
5249
+ */
5250
+ Components.Responses.UnprocessableEntityError;
5048
5251
  export type $500 = /**
5049
5252
  * A generic error returned by the API
5050
5253
  * example:
@@ -5083,6 +5286,15 @@ declare namespace Paths {
5083
5286
  * }
5084
5287
  */
5085
5288
  Components.Responses.BadRequestError;
5289
+ export type $422 = /**
5290
+ * A generic error returned by the API
5291
+ * example:
5292
+ * {
5293
+ * "status": 422,
5294
+ * "error": "File type not allowed"
5295
+ * }
5296
+ */
5297
+ Components.Responses.UnprocessableEntityError;
5086
5298
  export type $500 = /**
5087
5299
  * A generic error returned by the API
5088
5300
  * example:
@@ -5126,6 +5338,68 @@ declare namespace Paths {
5126
5338
  * }
5127
5339
  */
5128
5340
  Components.Responses.UnauthorizedError;
5341
+ export type $422 = /**
5342
+ * A generic error returned by the API
5343
+ * example:
5344
+ * {
5345
+ * "status": 422,
5346
+ * "error": "File type not allowed"
5347
+ * }
5348
+ */
5349
+ Components.Responses.UnprocessableEntityError;
5350
+ export type $500 = /**
5351
+ * A generic error returned by the API
5352
+ * example:
5353
+ * {
5354
+ * "status": 500,
5355
+ * "error": "Internal Server Error"
5356
+ * }
5357
+ */
5358
+ Components.Responses.InternalServerError;
5359
+ }
5360
+ }
5361
+ namespace ValidateFile {
5362
+ export type RequestBody = Components.Schemas.FileValidationRequest;
5363
+ namespace Responses {
5364
+ export type $200 = Components.Schemas.FileValidation;
5365
+ export type $400 = /**
5366
+ * A generic error returned by the API
5367
+ * example:
5368
+ * {
5369
+ * "status": 400,
5370
+ * "error": "Bad Request: filename is required"
5371
+ * }
5372
+ */
5373
+ Components.Responses.BadRequestError;
5374
+ export type $401 = /**
5375
+ * A generic error returned by the API
5376
+ * example:
5377
+ * {
5378
+ * "status": 401,
5379
+ * "error": "Unauthorized: Invalid or expired token"
5380
+ * }
5381
+ */
5382
+ Components.Responses.UnauthorizedError;
5383
+ export type $403 = /**
5384
+ * A generic error returned by the API
5385
+ * example:
5386
+ * {
5387
+ * "status": 403,
5388
+ * "error": "Forbidden: You do not have permission to access this file"
5389
+ * }
5390
+ */
5391
+ Components.Responses.ForbiddenError;
5392
+ export type $404 = /**
5393
+ * A generic error returned by the API
5394
+ * example:
5395
+ * {
5396
+ * "status": 404,
5397
+ * "error": "Not Found: File entity not found"
5398
+ * }
5399
+ */
5400
+ Components.Responses.NotFoundError;
5401
+ export type $413 = /* A generic error returned by the API */ Components.Schemas.ErrorObject;
5402
+ export type $422 = /* A generic error returned by the API */ Components.Schemas.ErrorObject;
5129
5403
  export type $500 = /**
5130
5404
  * A generic error returned by the API
5131
5405
  * example:
@@ -5371,23 +5645,23 @@ interface OperationMethods {
5371
5645
  ): OperationResponse<Paths.GetFileSummary.Responses.$200>
5372
5646
  /**
5373
5647
  * getFileSummaryFeedback - Get file summary feedback
5374
- *
5648
+ *
5375
5649
  * Get the authenticated user's feedback for the current generated file summary.
5376
5650
  */
5377
5651
  'getFileSummaryFeedback'(
5378
5652
  parameters?: Parameters<Paths.GetFileSummaryFeedback.PathParameters> | null,
5379
5653
  data?: any,
5380
- config?: AxiosRequestConfig
5654
+ config?: AxiosRequestConfig
5381
5655
  ): OperationResponse<Paths.GetFileSummaryFeedback.Responses.$200>
5382
5656
  /**
5383
5657
  * putFileSummaryFeedback - Submit file summary feedback
5384
- *
5658
+ *
5385
5659
  * Upsert thumbs up/down feedback for the current generated file summary.
5386
5660
  */
5387
5661
  'putFileSummaryFeedback'(
5388
5662
  parameters?: Parameters<Paths.PutFileSummaryFeedback.PathParameters> | null,
5389
5663
  data?: Paths.PutFileSummaryFeedback.RequestBody,
5390
- config?: AxiosRequestConfig
5664
+ config?: AxiosRequestConfig
5391
5665
  ): OperationResponse<Paths.PutFileSummaryFeedback.Responses.$200>
5392
5666
  /**
5393
5667
  * createFileSummaryJob - createFileSummaryJob
@@ -5439,6 +5713,29 @@ interface OperationMethods {
5439
5713
  data?: any,
5440
5714
  config?: AxiosRequestConfig
5441
5715
  ): OperationResponse<Paths.GetFileText.Responses.$200>
5716
+ /**
5717
+ * validateFile - validateFile
5718
+ *
5719
+ * Validate an uploaded file against one or more document validation rules
5720
+ * (validation-rules-api rules with `input_type: document`).
5721
+ *
5722
+ * The file is referenced either by its file entity id or, for an upload that has not been
5723
+ * saved as an entity yet (e.g. a journey upload in the temporary prefix), by its S3 reference.
5724
+ * The service collects an observation of the file - deterministic facts such as the sniffed
5725
+ * mime type, size, page count, image resolution, blank and password-protection detection -
5726
+ * and evaluates every rule against it with the shared validation rules engine.
5727
+ *
5728
+ * The response carries one result per rule with a per-condition outcome (`pass`, `fail`,
5729
+ * `uncertain`, `skipped`), plus the observation the results were derived from. `status` is
5730
+ * `completed` for checks that finish synchronously; `pending` is reserved for check levels
5731
+ * that need asynchronous content extraction.
5732
+ *
5733
+ */
5734
+ 'validateFile'(
5735
+ parameters?: Parameters<UnknownParamsObject> | null,
5736
+ data?: Paths.ValidateFile.RequestBody,
5737
+ config?: AxiosRequestConfig
5738
+ ): OperationResponse<Paths.ValidateFile.Responses.$200>
5442
5739
  /**
5443
5740
  * previewFile - previewFile
5444
5741
  *
@@ -5914,23 +6211,23 @@ interface PathsDictionary {
5914
6211
  ['/v1/files/{id}/summary/feedback']: {
5915
6212
  /**
5916
6213
  * getFileSummaryFeedback - Get file summary feedback
5917
- *
6214
+ *
5918
6215
  * Get the authenticated user's feedback for the current generated file summary.
5919
6216
  */
5920
6217
  'get'(
5921
6218
  parameters?: Parameters<Paths.GetFileSummaryFeedback.PathParameters> | null,
5922
6219
  data?: any,
5923
- config?: AxiosRequestConfig
6220
+ config?: AxiosRequestConfig
5924
6221
  ): OperationResponse<Paths.GetFileSummaryFeedback.Responses.$200>
5925
6222
  /**
5926
6223
  * putFileSummaryFeedback - Submit file summary feedback
5927
- *
6224
+ *
5928
6225
  * Upsert thumbs up/down feedback for the current generated file summary.
5929
6226
  */
5930
6227
  'put'(
5931
6228
  parameters?: Parameters<Paths.PutFileSummaryFeedback.PathParameters> | null,
5932
6229
  data?: Paths.PutFileSummaryFeedback.RequestBody,
5933
- config?: AxiosRequestConfig
6230
+ config?: AxiosRequestConfig
5934
6231
  ): OperationResponse<Paths.PutFileSummaryFeedback.Responses.$200>
5935
6232
  }
5936
6233
  ['/v1/files/{id}/summary-jobs']: {
@@ -5993,6 +6290,31 @@ interface PathsDictionary {
5993
6290
  config?: AxiosRequestConfig
5994
6291
  ): OperationResponse<Paths.GetFileText.Responses.$200>
5995
6292
  }
6293
+ ['/v1/files/validations']: {
6294
+ /**
6295
+ * validateFile - validateFile
6296
+ *
6297
+ * Validate an uploaded file against one or more document validation rules
6298
+ * (validation-rules-api rules with `input_type: document`).
6299
+ *
6300
+ * The file is referenced either by its file entity id or, for an upload that has not been
6301
+ * saved as an entity yet (e.g. a journey upload in the temporary prefix), by its S3 reference.
6302
+ * The service collects an observation of the file - deterministic facts such as the sniffed
6303
+ * mime type, size, page count, image resolution, blank and password-protection detection -
6304
+ * and evaluates every rule against it with the shared validation rules engine.
6305
+ *
6306
+ * The response carries one result per rule with a per-condition outcome (`pass`, `fail`,
6307
+ * `uncertain`, `skipped`), plus the observation the results were derived from. `status` is
6308
+ * `completed` for checks that finish synchronously; `pending` is reserved for check levels
6309
+ * that need asynchronous content extraction.
6310
+ *
6311
+ */
6312
+ 'post'(
6313
+ parameters?: Parameters<UnknownParamsObject> | null,
6314
+ data?: Paths.ValidateFile.RequestBody,
6315
+ config?: AxiosRequestConfig
6316
+ ): OperationResponse<Paths.ValidateFile.Responses.$200>
6317
+ }
5996
6318
  ['/v1/files/{id}/preview']: {
5997
6319
  /**
5998
6320
  * previewFile - previewFile
@@ -6314,6 +6636,15 @@ type FileTextStatus = Components.Schemas.FileTextStatus;
6314
6636
  type FileTextUnsupported = Components.Schemas.FileTextUnsupported;
6315
6637
  type FileType = Components.Schemas.FileType;
6316
6638
  type FileUpload = Components.Schemas.FileUpload;
6639
+ type FileValidation = Components.Schemas.FileValidation;
6640
+ type FileValidationConditionResult = Components.Schemas.FileValidationConditionResult;
6641
+ type FileValidationFacts = Components.Schemas.FileValidationFacts;
6642
+ type FileValidationFile = Components.Schemas.FileValidationFile;
6643
+ type FileValidationFileReference = Components.Schemas.FileValidationFileReference;
6644
+ type FileValidationJudgement = Components.Schemas.FileValidationJudgement;
6645
+ type FileValidationObservation = Components.Schemas.FileValidationObservation;
6646
+ type FileValidationRequest = Components.Schemas.FileValidationRequest;
6647
+ type FileValidationRuleResult = Components.Schemas.FileValidationRuleResult;
6317
6648
  type PublicLink = Components.Schemas.PublicLink;
6318
6649
  type PutFileSummaryFeedbackRequest = Components.Schemas.PutFileSummaryFeedbackRequest;
6319
6650
  type S3Ref = Components.Schemas.S3Ref;
@@ -6327,4 +6658,4 @@ type UploadFilePayload = Components.Schemas.UploadFilePayload;
6327
6658
  type VerifyCustomDownloadUrlPayload = Components.Schemas.VerifyCustomDownloadUrlPayload;
6328
6659
  type ZipJob = Components.Schemas.ZipJob;
6329
6660
 
6330
- export { type ActivityId as A, type BaseEntityAcl as B, type Client as C, type DownloadFilesPayload as D, type EntityId as E, type FileAttributes as F, type FileTextStatus as G, type FileTextUnsupported as H, type FileType as I, type FileUpload as J, type PublicLink as K, type PutFileSummaryFeedbackRequest as L, type S3Reference as M, type SaveCustomFilePayload as N, type OperationMethods as O, Paths as P, type SaveFileFromSourceURLPayload as Q, type SaveFilePayload as R, type S3Ref as S, type SaveFilePayloadV2 as T, type SaveS3FilePayload as U, type UploadFilePayload as V, type VerifyCustomDownloadUrlPayload as W, type ZipJob as Z, Components as a, type PathsDictionary as b, type BaseEntityOwner as c, type BatchSaveFileVersionPayload as d, type CommonSaveFilePayload as e, type CreateZipJobPayload as f, type CustomDownloadUrl as g, type CustomDownloadUrlAuth as h, type EntitySlug as i, type ErrorObject as j, type FileCollectionAttributes as k, type FileCollectionCreateRequest as l, type FileCollectionId as m, type FileCollectionItem as n, type FileEntity as o, type FileEntityId as p, type FileItem as q, type FileRelationItem as r, type FileSummary as s, type FileSummaryFeedback as t, type FileSummaryFeedbackResponse as u, type FileSummaryJob as v, type FileSummaryJobStatus as w, type FileText as x, type FileTextNotReady as y, type FileTextReady as z };
6661
+ export { type SaveFilePayload as $, type ActivityId as A, type BaseEntityAcl as B, type Client as C, type DownloadFilesPayload as D, type EntityId as E, type FileAttributes as F, type FileTextStatus as G, type FileTextUnsupported as H, type FileType as I, type FileUpload as J, type FileValidation as K, type FileValidationConditionResult as L, type FileValidationFacts as M, type FileValidationFile as N, type OperationMethods as O, Paths as P, type FileValidationFileReference as Q, type FileValidationJudgement as R, type FileValidationObservation as S, type FileValidationRequest as T, type FileValidationRuleResult as U, type PublicLink as V, type PutFileSummaryFeedbackRequest as W, type S3Ref as X, type S3Reference as Y, type SaveCustomFilePayload as Z, type SaveFileFromSourceURLPayload as _, Components as a, type SaveFilePayloadV2 as a0, type SaveS3FilePayload as a1, type UploadFilePayload as a2, type VerifyCustomDownloadUrlPayload as a3, type ZipJob as a4, type PathsDictionary as b, type BaseEntityOwner as c, type BatchSaveFileVersionPayload as d, type CommonSaveFilePayload as e, type CreateZipJobPayload as f, type CustomDownloadUrl as g, type CustomDownloadUrlAuth as h, type EntitySlug as i, type ErrorObject as j, type FileCollectionAttributes as k, type FileCollectionCreateRequest as l, type FileCollectionId as m, type FileCollectionItem as n, type FileEntity as o, type FileEntityId as p, type FileItem as q, type FileRelationItem as r, type FileSummary as s, type FileSummaryFeedback as t, type FileSummaryFeedbackResponse as u, type FileSummaryJob as v, type FileSummaryJobStatus as w, type FileText as x, type FileTextNotReady as y, type FileTextReady as z };
package/dist/index.cjs CHANGED
@@ -60,10 +60,10 @@ var _chunkQLWDOKGEcjs = require('./chunk-QLWDOKGE.cjs');
60
60
  var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
61
61
 
62
62
 
63
- var _chunkMPZICOVZcjs = require('./chunk-MPZICOVZ.cjs');
63
+ var _chunk2Q6CNXJ2cjs = require('./chunk-2Q6CNXJ2.cjs');
64
64
 
65
65
 
66
- var _chunk5S2PEECDcjs = require('./chunk-5S2PEECD.cjs');
66
+ var _chunk424JLS5Gcjs = require('./chunk-424JLS5G.cjs');
67
67
 
68
68
 
69
69
  var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
@@ -72,7 +72,7 @@ var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
72
72
  var _chunk4DTTVPUMcjs = require('./chunk-4DTTVPUM.cjs');
73
73
 
74
74
 
75
- var _chunkCIKDOXDLcjs = require('./chunk-CIKDOXDL.cjs');
75
+ var _chunkW6R2J6KQcjs = require('./chunk-W6R2J6KQ.cjs');
76
76
 
77
77
 
78
78
  var _chunkG3VDRMOHcjs = require('./chunk-G3VDRMOH.cjs');
@@ -158,7 +158,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkVCD3C4UWcjs = require('./chunk-VCD3C4UW.cjs');
161
+ var _chunkQZH7QNNPcjs = require('./chunk-QZH7QNNP.cjs');
162
162
 
163
163
 
164
164
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
225
225
  }
226
226
  if (!entry.instance) {
227
227
  const definition = entry.loader();
228
- entry.instance = _chunkVCD3C4UWcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkQZH7QNNPcjs.createApiClient.call(void 0, {
229
229
  definition,
230
230
  token: state.token,
231
231
  headers: state.globalHeaders,
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
258
258
  };
259
259
 
260
260
  // src/apis/_registry.ts
261
- var expandDef = (mod) => _chunkVCD3C4UWcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkQZH7QNNPcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -378,12 +378,12 @@ var registerBuiltinApis = (registry) => {
378
378
  registerApi({
379
379
  registry,
380
380
  name: "eventCatalog",
381
- loader: () => expandDef(_chunkMPZICOVZcjs.require_event_catalog_runtime.call(void 0, ))
381
+ loader: () => expandDef(_chunk2Q6CNXJ2cjs.require_event_catalog_runtime.call(void 0, ))
382
382
  });
383
383
  registerApi({
384
384
  registry,
385
385
  name: "file",
386
- loader: () => expandDef(_chunk5S2PEECDcjs.require_file_runtime.call(void 0, ))
386
+ loader: () => expandDef(_chunk424JLS5Gcjs.require_file_runtime.call(void 0, ))
387
387
  });
388
388
  registerApi({
389
389
  registry,
@@ -398,7 +398,7 @@ var registerBuiltinApis = (registry) => {
398
398
  registerApi({
399
399
  registry,
400
400
  name: "journey",
401
- loader: () => expandDef(_chunkCIKDOXDLcjs.require_journey_runtime.call(void 0, ))
401
+ loader: () => expandDef(_chunkW6R2J6KQcjs.require_journey_runtime.call(void 0, ))
402
402
  });
403
403
  registerApi({
404
404
  registry,
@@ -601,9 +601,9 @@ var createSDK = () => {
601
601
  const available = [...registry.keys()].join(", ");
602
602
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
603
603
  }
604
- return _chunkVCD3C4UWcjs.createApiHandle.call(void 0, {
604
+ return _chunkQZH7QNNPcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkVCD3C4UWcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkQZH7QNNPcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
607
607
  apiName: name
608
608
  });
609
609
  };
@@ -651,9 +651,9 @@ var createSDK = () => {
651
651
  return interceptorUse;
652
652
  }
653
653
  case "help":
654
- return (apiName) => _chunkVCD3C4UWcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkQZH7QNNPcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkVCD3C4UWcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkQZH7QNNPcjs.openapi.call(void 0, apiName);
657
657
  case "then":
658
658
  case "catch":
659
659
  case "finally":
@@ -683,4 +683,4 @@ var epilot = createSDK();
683
683
 
684
684
 
685
685
 
686
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkVCD3C4UWcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkVCD3C4UWcjs.help; exports.openapi = _chunkVCD3C4UWcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkQZH7QNNPcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkQZH7QNNPcjs.help; exports.openapi = _chunkQZH7QNNPcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -26,11 +26,11 @@ import { C as Client$j } from './email-template.d-gtQkdaXM.cjs';
26
26
  import { C as Client$k } from './entity.d-GfKqzFGA.cjs';
27
27
  import { C as Client$l } from './entity-mapping.d-CQv75o8M.cjs';
28
28
  import { C as Client$m } from './environments.d-C_BTxz4W.cjs';
29
- import { C as Client$n } from './event-catalog.d-Bd2wmtlZ.cjs';
30
- import { C as Client$o } from './file.d-CBsXF4W8.cjs';
29
+ import { C as Client$n } from './event-catalog.d-CCE1qmBN.cjs';
30
+ import { C as Client$o } from './file.d-DELNV63w.cjs';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.cjs';
32
32
  import { C as Client$q } from './integration-toolkit.d-rpj1kvB_.cjs';
33
- import { C as Client$r } from './journey.d-bxl2l7qg.cjs';
33
+ import { C as Client$r } from './journey.d-6Bs1uNLT.cjs';
34
34
  import { C as Client$s } from './kanban.d-BHnSRCYW.cjs';
35
35
  import { C as Client$t } from './message.d-DwnqO-Us.cjs';
36
36
  import { C as Client$u } from './metering.d-DomHYl06.cjs';
package/dist/index.d.ts CHANGED
@@ -26,11 +26,11 @@ import { C as Client$j } from './email-template.d-gtQkdaXM.js';
26
26
  import { C as Client$k } from './entity.d-GfKqzFGA.js';
27
27
  import { C as Client$l } from './entity-mapping.d-CQv75o8M.js';
28
28
  import { C as Client$m } from './environments.d-C_BTxz4W.js';
29
- import { C as Client$n } from './event-catalog.d-Bd2wmtlZ.js';
30
- import { C as Client$o } from './file.d-CBsXF4W8.js';
29
+ import { C as Client$n } from './event-catalog.d-CCE1qmBN.js';
30
+ import { C as Client$o } from './file.d-DELNV63w.js';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.js';
32
32
  import { C as Client$q } from './integration-toolkit.d-rpj1kvB_.js';
33
- import { C as Client$r } from './journey.d-bxl2l7qg.js';
33
+ import { C as Client$r } from './journey.d-6Bs1uNLT.js';
34
34
  import { C as Client$s } from './kanban.d-BHnSRCYW.js';
35
35
  import { C as Client$t } from './message.d-DwnqO-Us.js';
36
36
  import { C as Client$u } from './metering.d-DomHYl06.js';
package/dist/index.js CHANGED
@@ -60,10 +60,10 @@ import {
60
60
  } from "./chunk-D7Q4JGN7.js";
61
61
  import {
62
62
  require_event_catalog_runtime
63
- } from "./chunk-EEKJGTAS.js";
63
+ } from "./chunk-LTCN52JS.js";
64
64
  import {
65
65
  require_file_runtime
66
- } from "./chunk-IBMGFLXF.js";
66
+ } from "./chunk-FGQBS7TA.js";
67
67
  import {
68
68
  require_iban_runtime
69
69
  } from "./chunk-5MFHAXBT.js";
@@ -72,7 +72,7 @@ import {
72
72
  } from "./chunk-WE4C7GER.js";
73
73
  import {
74
74
  require_journey_runtime
75
- } from "./chunk-XJUB5BYM.js";
75
+ } from "./chunk-HL4MZXEK.js";
76
76
  import {
77
77
  require_kanban_runtime
78
78
  } from "./chunk-IQOCHPWU.js";
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-JBFTKLP2.js";
161
+ } from "./chunk-SMERBU2T.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";