@epilot/sdk 2.20.8 → 2.20.10

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 (162) hide show
  1. package/definitions/file-runtime.json +1 -1
  2. package/definitions/file.json +392 -0
  3. package/definitions/journey-runtime.json +1 -1
  4. package/definitions/journey.json +526 -5
  5. package/definitions/pricing-runtime.json +1 -1
  6. package/definitions/pricing.json +3489 -757
  7. package/dist/apis/access-token.cjs +6 -6
  8. package/dist/apis/access-token.js +1 -1
  9. package/dist/apis/address-suggestions.cjs +6 -6
  10. package/dist/apis/address-suggestions.js +1 -1
  11. package/dist/apis/address.cjs +6 -6
  12. package/dist/apis/address.js +1 -1
  13. package/dist/apis/ai-agents.cjs +6 -6
  14. package/dist/apis/ai-agents.js +1 -1
  15. package/dist/apis/app.cjs +6 -6
  16. package/dist/apis/app.js +1 -1
  17. package/dist/apis/audit-logs.cjs +6 -6
  18. package/dist/apis/audit-logs.js +1 -1
  19. package/dist/apis/automation.cjs +6 -6
  20. package/dist/apis/automation.js +1 -1
  21. package/dist/apis/billing.cjs +6 -6
  22. package/dist/apis/billing.js +1 -1
  23. package/dist/apis/blueprint-manifest.cjs +6 -6
  24. package/dist/apis/blueprint-manifest.js +1 -1
  25. package/dist/apis/calendar.cjs +6 -6
  26. package/dist/apis/calendar.js +1 -1
  27. package/dist/apis/configuration-hub.cjs +6 -6
  28. package/dist/apis/configuration-hub.js +1 -1
  29. package/dist/apis/consent.cjs +6 -6
  30. package/dist/apis/consent.js +1 -1
  31. package/dist/apis/customer-portal.cjs +6 -6
  32. package/dist/apis/customer-portal.js +1 -1
  33. package/dist/apis/dashboard.cjs +6 -6
  34. package/dist/apis/dashboard.js +1 -1
  35. package/dist/apis/data-governance.cjs +6 -6
  36. package/dist/apis/data-governance.js +1 -1
  37. package/dist/apis/deduplication.cjs +6 -6
  38. package/dist/apis/deduplication.js +1 -1
  39. package/dist/apis/design.cjs +6 -6
  40. package/dist/apis/design.js +1 -1
  41. package/dist/apis/document.cjs +6 -6
  42. package/dist/apis/document.js +1 -1
  43. package/dist/apis/email-settings.cjs +6 -6
  44. package/dist/apis/email-settings.js +1 -1
  45. package/dist/apis/email-template.cjs +6 -6
  46. package/dist/apis/email-template.js +1 -1
  47. package/dist/apis/entity-mapping.cjs +6 -6
  48. package/dist/apis/entity-mapping.js +1 -1
  49. package/dist/apis/entity.cjs +24 -6
  50. package/dist/apis/entity.d.cts +15 -1
  51. package/dist/apis/entity.d.ts +15 -1
  52. package/dist/apis/entity.js +19 -1
  53. package/dist/apis/environments.cjs +6 -6
  54. package/dist/apis/environments.js +1 -1
  55. package/dist/apis/event-catalog.cjs +6 -6
  56. package/dist/apis/event-catalog.js +1 -1
  57. package/dist/apis/file.cjs +8 -8
  58. package/dist/apis/file.d.cts +2 -2
  59. package/dist/apis/file.d.ts +2 -2
  60. package/dist/apis/file.js +2 -2
  61. package/dist/apis/iban.cjs +6 -6
  62. package/dist/apis/iban.js +1 -1
  63. package/dist/apis/integration-toolkit.cjs +6 -6
  64. package/dist/apis/integration-toolkit.js +1 -1
  65. package/dist/apis/journey.cjs +8 -8
  66. package/dist/apis/journey.d.cts +2 -2
  67. package/dist/apis/journey.d.ts +2 -2
  68. package/dist/apis/journey.js +2 -2
  69. package/dist/apis/kanban.cjs +6 -6
  70. package/dist/apis/kanban.js +1 -1
  71. package/dist/apis/message.cjs +6 -6
  72. package/dist/apis/message.js +1 -1
  73. package/dist/apis/metering.cjs +6 -6
  74. package/dist/apis/metering.js +1 -1
  75. package/dist/apis/notes.cjs +6 -6
  76. package/dist/apis/notes.js +1 -1
  77. package/dist/apis/notification.cjs +6 -6
  78. package/dist/apis/notification.js +1 -1
  79. package/dist/apis/organization.cjs +6 -6
  80. package/dist/apis/organization.js +1 -1
  81. package/dist/apis/partner-directory.cjs +6 -6
  82. package/dist/apis/partner-directory.js +1 -1
  83. package/dist/apis/permissions.cjs +6 -6
  84. package/dist/apis/permissions.js +1 -1
  85. package/dist/apis/pricing-tier.cjs +6 -6
  86. package/dist/apis/pricing-tier.js +1 -1
  87. package/dist/apis/pricing.cjs +8 -29
  88. package/dist/apis/pricing.d.cts +3 -15
  89. package/dist/apis/pricing.d.ts +3 -15
  90. package/dist/apis/pricing.js +2 -23
  91. package/dist/apis/purpose.cjs +6 -6
  92. package/dist/apis/purpose.js +1 -1
  93. package/dist/apis/query.cjs +6 -6
  94. package/dist/apis/query.js +1 -1
  95. package/dist/apis/sandbox.cjs +6 -6
  96. package/dist/apis/sandbox.js +1 -1
  97. package/dist/apis/sharing.cjs +6 -6
  98. package/dist/apis/sharing.js +1 -1
  99. package/dist/apis/snapshot.cjs +6 -6
  100. package/dist/apis/snapshot.js +1 -1
  101. package/dist/apis/submission.cjs +6 -6
  102. package/dist/apis/submission.js +1 -1
  103. package/dist/apis/target.cjs +6 -6
  104. package/dist/apis/target.js +1 -1
  105. package/dist/apis/targeting.cjs +6 -6
  106. package/dist/apis/targeting.js +1 -1
  107. package/dist/apis/template-variables.cjs +6 -6
  108. package/dist/apis/template-variables.js +1 -1
  109. package/dist/apis/user.cjs +6 -6
  110. package/dist/apis/user.js +1 -1
  111. package/dist/apis/validation-rules.cjs +6 -6
  112. package/dist/apis/validation-rules.js +1 -1
  113. package/dist/apis/webhooks.cjs +6 -6
  114. package/dist/apis/webhooks.js +1 -1
  115. package/dist/apis/workflow-definition.cjs +6 -6
  116. package/dist/apis/workflow-definition.js +1 -1
  117. package/dist/apis/workflow.cjs +6 -6
  118. package/dist/apis/workflow.js +1 -1
  119. package/dist/{chunk-5S2PEECD.cjs → chunk-424JLS5G.cjs} +1 -1
  120. package/dist/{chunk-OHYTCUUB.js → chunk-7Q3JW72Y.js} +1 -1
  121. package/dist/{chunk-OOMP6BYJ.js → chunk-A7UIYIBZ.js} +6 -6
  122. package/dist/chunk-FGQBS7TA.js +14 -0
  123. package/dist/chunk-HL4MZXEK.js +14 -0
  124. package/dist/{chunk-UKHR33EL.cjs → chunk-QLWDOKGE.cjs} +1 -1
  125. package/dist/{chunk-VAM7ZIAF.cjs → chunk-VAGYR2R6.cjs} +6 -6
  126. package/dist/chunk-W6R2J6KQ.cjs +14 -0
  127. package/dist/file-LFOTXMRJ.cjs +7 -0
  128. package/dist/file-ND2JH5EM.js +7 -0
  129. package/dist/file-runtime-JL2IZ2CE.cjs +5 -0
  130. package/dist/{file-runtime-423SISQ2.js → file-runtime-RS4DX5LB.js} +1 -1
  131. package/dist/{file.d-CBsXF4W8.d.cts → file.d-DELNV63w.d.cts} +340 -9
  132. package/dist/{file.d-CBsXF4W8.d.ts → file.d-DELNV63w.d.ts} +340 -9
  133. package/dist/index.cjs +14 -14
  134. package/dist/index.d.cts +3 -3
  135. package/dist/index.d.ts +3 -3
  136. package/dist/index.js +4 -4
  137. package/dist/journey-FNWHSZW3.js +7 -0
  138. package/dist/journey-FUJDOH5O.cjs +7 -0
  139. package/dist/{journey-runtime-PAJVCFMZ.cjs → journey-runtime-EFWGEDUE.cjs} +2 -2
  140. package/dist/{journey-runtime-33QDS2WK.js → journey-runtime-VCADGDRV.js} +1 -1
  141. package/dist/{journey.d-bxl2l7qg.d.cts → journey.d-6Bs1uNLT.d.cts} +1062 -14
  142. package/dist/{journey.d-bxl2l7qg.d.ts → journey.d-6Bs1uNLT.d.ts} +1062 -14
  143. package/dist/pricing-PFTFDGZ3.cjs +7 -0
  144. package/dist/pricing-YZHONV3M.js +7 -0
  145. package/dist/{pricing-runtime-AT27C3BP.js → pricing-runtime-MJAIO4AY.js} +1 -1
  146. package/dist/{pricing-runtime-PFVTRERK.cjs → pricing-runtime-NMRZO6J4.cjs} +2 -2
  147. package/dist/{pricing.d-CSVO1WCD.d.cts → pricing.d-CvcYBm8A.d.cts} +9979 -1422
  148. package/dist/{pricing.d-CSVO1WCD.d.ts → pricing.d-CvcYBm8A.d.ts} +9979 -1422
  149. package/docs/file.md +272 -0
  150. package/docs/journey.md +676 -0
  151. package/docs/pricing.md +1372 -204
  152. package/package.json +1 -1
  153. package/dist/chunk-CIKDOXDL.cjs +0 -14
  154. package/dist/chunk-IBMGFLXF.js +0 -14
  155. package/dist/chunk-XJUB5BYM.js +0 -14
  156. package/dist/file-M5HNKOPG.cjs +0 -7
  157. package/dist/file-ZUNCUDBY.js +0 -7
  158. package/dist/file-runtime-IHVDQNIX.cjs +0 -5
  159. package/dist/journey-2HHH7MLM.js +0 -7
  160. package/dist/journey-4CXKZMKV.cjs +0 -7
  161. package/dist/pricing-5EKKEZSL.js +0 -7
  162. package/dist/pricing-N4Z2CHGZ.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
@@ -54,7 +54,7 @@ var _chunkWTMV77T2cjs = require('./chunk-WTMV77T2.cjs');
54
54
  var _chunkN5NFJW7Ycjs = require('./chunk-N5NFJW7Y.cjs');
55
55
 
56
56
 
57
- var _chunkUKHR33ELcjs = require('./chunk-UKHR33EL.cjs');
57
+ var _chunkQLWDOKGEcjs = require('./chunk-QLWDOKGE.cjs');
58
58
 
59
59
 
60
60
  var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
@@ -63,7 +63,7 @@ var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
63
63
  var _chunkMPZICOVZcjs = require('./chunk-MPZICOVZ.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 _chunkVAM7ZIAFcjs = require('./chunk-VAM7ZIAF.cjs');
161
+ var _chunkVAGYR2R6cjs = require('./chunk-VAGYR2R6.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 = _chunkVAM7ZIAFcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkVAGYR2R6cjs.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) => _chunkVAM7ZIAFcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkVAGYR2R6cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -383,7 +383,7 @@ var registerBuiltinApis = (registry) => {
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,
@@ -443,7 +443,7 @@ var registerBuiltinApis = (registry) => {
443
443
  registerApi({
444
444
  registry,
445
445
  name: "pricing",
446
- loader: () => expandDef(_chunkUKHR33ELcjs.require_pricing_runtime.call(void 0, ))
446
+ loader: () => expandDef(_chunkQLWDOKGEcjs.require_pricing_runtime.call(void 0, ))
447
447
  });
448
448
  registerApi({
449
449
  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 _chunkVAM7ZIAFcjs.createApiHandle.call(void 0, {
604
+ return _chunkVAGYR2R6cjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkVAM7ZIAFcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkVAGYR2R6cjs.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) => _chunkVAM7ZIAFcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkVAGYR2R6cjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkVAM7ZIAFcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkVAGYR2R6cjs.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 = _chunkVAM7ZIAFcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkVAM7ZIAFcjs.help; exports.openapi = _chunkVAM7ZIAFcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkVAGYR2R6cjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkVAGYR2R6cjs.help; exports.openapi = _chunkVAGYR2R6cjs.openapi;
package/dist/index.d.cts CHANGED
@@ -27,10 +27,10 @@ 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
29
  import { C as Client$n } from './event-catalog.d-Bd2wmtlZ.cjs';
30
- import { C as Client$o } from './file.d-CBsXF4W8.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';
@@ -39,7 +39,7 @@ import { C as Client$w } from './notification.d-r89Jec85.cjs';
39
39
  import { C as Client$x } from './organization.d-DqwnNxMg.cjs';
40
40
  import { C as Client$y } from './partner-directory.d-BCIjHoGs.cjs';
41
41
  import { C as Client$z } from './permissions.d-BKoyMhU7.cjs';
42
- import { C as Client$A } from './pricing.d-CSVO1WCD.cjs';
42
+ import { C as Client$A } from './pricing.d-CvcYBm8A.cjs';
43
43
  import { C as Client$B } from './pricing-tier.d-Cg0jl6n_.cjs';
44
44
  import { C as Client$C } from './purpose.d-CbIYfTua.cjs';
45
45
  import { C as Client$D } from './query.d-Cmp78IhZ.cjs';
package/dist/index.d.ts CHANGED
@@ -27,10 +27,10 @@ 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
29
  import { C as Client$n } from './event-catalog.d-Bd2wmtlZ.js';
30
- import { C as Client$o } from './file.d-CBsXF4W8.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';
@@ -39,7 +39,7 @@ import { C as Client$w } from './notification.d-r89Jec85.js';
39
39
  import { C as Client$x } from './organization.d-DqwnNxMg.js';
40
40
  import { C as Client$y } from './partner-directory.d-BCIjHoGs.js';
41
41
  import { C as Client$z } from './permissions.d-BKoyMhU7.js';
42
- import { C as Client$A } from './pricing.d-CSVO1WCD.js';
42
+ import { C as Client$A } from './pricing.d-CvcYBm8A.js';
43
43
  import { C as Client$B } from './pricing-tier.d-Cg0jl6n_.js';
44
44
  import { C as Client$C } from './purpose.d-CbIYfTua.js';
45
45
  import { C as Client$D } from './query.d-Cmp78IhZ.js';
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ import {
54
54
  } from "./chunk-6VWCUZ5M.js";
55
55
  import {
56
56
  require_pricing_runtime
57
- } from "./chunk-OHYTCUUB.js";
57
+ } from "./chunk-7Q3JW72Y.js";
58
58
  import {
59
59
  require_purpose_runtime
60
60
  } from "./chunk-D7Q4JGN7.js";
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-EEKJGTAS.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-OOMP6BYJ.js";
161
+ } from "./chunk-A7UIYIBZ.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";