@epilot/sdk 2.20.9 → 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.
- package/definitions/file-runtime.json +1 -1
- package/definitions/file.json +392 -0
- package/definitions/journey-runtime.json +1 -1
- package/definitions/journey.json +526 -5
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +24 -6
- package/dist/apis/entity.d.cts +15 -1
- package/dist/apis/entity.d.ts +15 -1
- package/dist/apis/entity.js +19 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +8 -8
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +2 -2
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +8 -8
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +2 -2
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -27
- package/dist/apis/pricing.d.cts +1 -13
- package/dist/apis/pricing.d.ts +1 -13
- package/dist/apis/pricing.js +1 -22
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-5S2PEECD.cjs → chunk-424JLS5G.cjs} +1 -1
- package/dist/{chunk-JBFTKLP2.js → chunk-A7UIYIBZ.js} +4 -4
- package/dist/chunk-FGQBS7TA.js +14 -0
- package/dist/chunk-HL4MZXEK.js +14 -0
- package/dist/{chunk-VCD3C4UW.cjs → chunk-VAGYR2R6.cjs} +4 -4
- package/dist/chunk-W6R2J6KQ.cjs +14 -0
- package/dist/file-LFOTXMRJ.cjs +7 -0
- package/dist/file-ND2JH5EM.js +7 -0
- package/dist/file-runtime-JL2IZ2CE.cjs +5 -0
- package/dist/{file-runtime-423SISQ2.js → file-runtime-RS4DX5LB.js} +1 -1
- package/dist/{file.d-CBsXF4W8.d.cts → file.d-DELNV63w.d.cts} +340 -9
- package/dist/{file.d-CBsXF4W8.d.ts → file.d-DELNV63w.d.ts} +340 -9
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/journey-FNWHSZW3.js +7 -0
- package/dist/journey-FUJDOH5O.cjs +7 -0
- package/dist/{journey-runtime-PAJVCFMZ.cjs → journey-runtime-EFWGEDUE.cjs} +2 -2
- package/dist/{journey-runtime-33QDS2WK.js → journey-runtime-VCADGDRV.js} +1 -1
- package/dist/{journey.d-bxl2l7qg.d.cts → journey.d-6Bs1uNLT.d.cts} +1062 -14
- package/dist/{journey.d-bxl2l7qg.d.ts → journey.d-6Bs1uNLT.d.ts} +1062 -14
- package/docs/file.md +272 -0
- package/docs/journey.md +676 -0
- package/package.json +1 -1
- package/dist/chunk-CIKDOXDL.cjs +0 -14
- package/dist/chunk-IBMGFLXF.js +0 -14
- package/dist/chunk-XJUB5BYM.js +0 -14
- package/dist/file-M5HNKOPG.cjs +0 -7
- package/dist/file-ZUNCUDBY.js +0 -7
- package/dist/file-runtime-IHVDQNIX.cjs +0 -5
- package/dist/journey-2HHH7MLM.js +0 -7
- package/dist/journey-4CXKZMKV.cjs +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"s":"https://file.sls.epilot.io","o":[["uploadFileV2","post","/v2/files/upload",[["file_entity_id","q"]],1],["saveFileV2","post","/v2/files",[["ActivityIdQueryParam"],["FillActivityQueryParam"],["StrictQueryParam"],["AsyncOperationQueryParam"],["DeleteTempFileQueryParam"],["VersionOnlyQueryParam"]],1],["uploadFile","post","/v1/files/upload",[["file_entity_id","q"]],1],["saveFile","post","/v1/files",[["ActivityIdQueryParam"],["AsyncOperationQueryParam"],["VersionOnlyQueryParam"]],1],["getFile","get","/v2/files/{id}",[["id","p",true],["source_url","q"],["StrictQueryParam"],["AsyncOperationQueryParam"]]],["deleteFile","delete","/v2/files/{id}",[["id","p",true],["purge","q"],["ActivityIdQueryParam"],["StrictQueryParam"]]],["downloadFile","get","/v1/files/{id}/download",[["id","p",true],["version","q"],["attachment","q"],["x-track","q",false,"form",true]]],["downloadS3File","post","/v1/files:downloadS3",[["s3_key","q",true],["s3_bucket","q",true],["attachment","q"]]],["downloadFiles","post","/v1/files:downloadFiles",null,1],["createZipJob","post","/v1/files:zipJob",null,1],["getZipJob","get","/v1/files:zipJob/{job_id}",[["job_id","p",true]]],["getFileSummary","get","/v1/files/{id}/summary",[["id","p",true]]],["getFileSummaryFeedback","get","/v1/files/{id}/summary/feedback",[["id","p",true]]],["putFileSummaryFeedback","put","/v1/files/{id}/summary/feedback",[["id","p",true]],1],["createFileSummaryJob","post","/v1/files/{id}/summary-jobs",[["id","p",true]]],["getCurrentFileSummaryJob","get","/v1/files/{id}/summary-jobs/current",[["id","p",true]]],["getFileSummaryJob","get","/v1/files/{id}/summary-jobs/{job_id}",[["id","p",true],["job_id","p",true]]],["generateFileSummary","post","/v1/files/{id}/summary:generate",[["id","p",true]]],["getFileText","get","/v1/files/{id}/text",[["id","p",true]]],["previewFile","get","/v1/files/{id}/preview",[["id","p",true],["version","q"],["w","q"],["h","q"]]],["previewS3File","post","/v1/files:previewS3",[["w","q"],["h","q"]],1],["previewS3FileGet","get","/v1/files:previewS3",[["key","q",true],["bucket","q",true],["w","q"],["h","q"]]],["previewPublicFile","get","/v1/files/public/{id}/preview",[["id","p",true],["version","q"],["w","q"],["h","q"],["org_id","q"]]],["getSession","get","/v1/files/session"],["deleteSession","delete","/v1/files/session"],["generatePublicLink","post","/v1/files/{id}/public/links",[["id","p",true]]],["listPublicLinksForFile","get","/v1/files/{id}/public/links",[["id","p",true]]],["accessPublicLink","get","/v1/files/public/links/{id}/{filename}",[["id","p",true],["filename","p",true],["hash","q"]]],["revokePublicLink","delete","/v1/files/public/links/{id}",[["id","p",true]]],["verifyCustomDownloadUrl","post","/v1/files/download:verify",null,1],["uploadFilePublic","post","/v1/files/public/upload",null,1],["getUserSchemaFileCollections","get","/v1/{slug}/collections",[["slug","p",true]]],["createUserSchemaFileCollection","post","/v1/{slug}/collections",[["slug","p",true]],1],["updateUserSchemaFileCollection","put","/v1/{slug}/collections/{collectionSlug}",[["slug","p",true],["collectionSlug","p",true]],1],["deleteUserSchemaFileCollection","delete","/v1/{slug}/collections/{collectionSlug}",[["slug","p",true],["collectionSlug","p",true]]],["getFilesInCollection","get","/v1/entity/{id}/collections/{collectionSlug}/files",[["EntityIdPathParam"],["collectionSlug","p",true]]],["getGlobalFileCollections","get","/v1/collections/{schemaSlug}",[["schemaSlug","p",true]]]],"v":"3.0.3","cp":{"EntityIdPathParam":["id","p",true],"StrictQueryParam":["strict","q"],"ActivityIdQueryParam":["activity_id","q"],"FillActivityQueryParam":["fill_activity","q"],"AsyncOperationQueryParam":["async","q"],"DeleteTempFileQueryParam":["delete_temp_file","q"],"VersionOnlyQueryParam":["version_only","q"]}}
|
|
1
|
+
{"s":"https://file.sls.epilot.io","o":[["uploadFileV2","post","/v2/files/upload",[["file_entity_id","q"]],1],["saveFileV2","post","/v2/files",[["ActivityIdQueryParam"],["FillActivityQueryParam"],["StrictQueryParam"],["AsyncOperationQueryParam"],["DeleteTempFileQueryParam"],["VersionOnlyQueryParam"]],1],["uploadFile","post","/v1/files/upload",[["file_entity_id","q"]],1],["saveFile","post","/v1/files",[["ActivityIdQueryParam"],["AsyncOperationQueryParam"],["VersionOnlyQueryParam"]],1],["getFile","get","/v2/files/{id}",[["id","p",true],["source_url","q"],["StrictQueryParam"],["AsyncOperationQueryParam"]]],["deleteFile","delete","/v2/files/{id}",[["id","p",true],["purge","q"],["ActivityIdQueryParam"],["StrictQueryParam"]]],["downloadFile","get","/v1/files/{id}/download",[["id","p",true],["version","q"],["attachment","q"],["x-track","q",false,"form",true]]],["downloadS3File","post","/v1/files:downloadS3",[["s3_key","q",true],["s3_bucket","q",true],["attachment","q"]]],["downloadFiles","post","/v1/files:downloadFiles",null,1],["createZipJob","post","/v1/files:zipJob",null,1],["getZipJob","get","/v1/files:zipJob/{job_id}",[["job_id","p",true]]],["getFileSummary","get","/v1/files/{id}/summary",[["id","p",true]]],["getFileSummaryFeedback","get","/v1/files/{id}/summary/feedback",[["id","p",true]]],["putFileSummaryFeedback","put","/v1/files/{id}/summary/feedback",[["id","p",true]],1],["createFileSummaryJob","post","/v1/files/{id}/summary-jobs",[["id","p",true]]],["getCurrentFileSummaryJob","get","/v1/files/{id}/summary-jobs/current",[["id","p",true]]],["getFileSummaryJob","get","/v1/files/{id}/summary-jobs/{job_id}",[["id","p",true],["job_id","p",true]]],["generateFileSummary","post","/v1/files/{id}/summary:generate",[["id","p",true]]],["getFileText","get","/v1/files/{id}/text",[["id","p",true]]],["validateFile","post","/v1/files/validations",null,1],["previewFile","get","/v1/files/{id}/preview",[["id","p",true],["version","q"],["w","q"],["h","q"]]],["previewS3File","post","/v1/files:previewS3",[["w","q"],["h","q"]],1],["previewS3FileGet","get","/v1/files:previewS3",[["key","q",true],["bucket","q",true],["w","q"],["h","q"]]],["previewPublicFile","get","/v1/files/public/{id}/preview",[["id","p",true],["version","q"],["w","q"],["h","q"],["org_id","q"]]],["getSession","get","/v1/files/session"],["deleteSession","delete","/v1/files/session"],["generatePublicLink","post","/v1/files/{id}/public/links",[["id","p",true]]],["listPublicLinksForFile","get","/v1/files/{id}/public/links",[["id","p",true]]],["accessPublicLink","get","/v1/files/public/links/{id}/{filename}",[["id","p",true],["filename","p",true],["hash","q"]]],["revokePublicLink","delete","/v1/files/public/links/{id}",[["id","p",true]]],["verifyCustomDownloadUrl","post","/v1/files/download:verify",null,1],["uploadFilePublic","post","/v1/files/public/upload",null,1],["getUserSchemaFileCollections","get","/v1/{slug}/collections",[["slug","p",true]]],["createUserSchemaFileCollection","post","/v1/{slug}/collections",[["slug","p",true]],1],["updateUserSchemaFileCollection","put","/v1/{slug}/collections/{collectionSlug}",[["slug","p",true],["collectionSlug","p",true]],1],["deleteUserSchemaFileCollection","delete","/v1/{slug}/collections/{collectionSlug}",[["slug","p",true],["collectionSlug","p",true]]],["getFilesInCollection","get","/v1/entity/{id}/collections/{collectionSlug}/files",[["EntityIdPathParam"],["collectionSlug","p",true]]],["getGlobalFileCollections","get","/v1/collections/{schemaSlug}",[["schemaSlug","p",true]]]],"v":"3.0.3","cp":{"EntityIdPathParam":["id","p",true],"StrictQueryParam":["strict","q"],"ActivityIdQueryParam":["activity_id","q"],"FillActivityQueryParam":["fill_activity","q"],"AsyncOperationQueryParam":["async","q"],"DeleteTempFileQueryParam":["delete_temp_file","q"],"VersionOnlyQueryParam":["version_only","q"]}}
|
package/definitions/file.json
CHANGED
|
@@ -124,6 +124,9 @@
|
|
|
124
124
|
"401": {
|
|
125
125
|
"$ref": "#/components/responses/UnauthorizedError"
|
|
126
126
|
},
|
|
127
|
+
"422": {
|
|
128
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
129
|
+
},
|
|
127
130
|
"500": {
|
|
128
131
|
"$ref": "#/components/responses/InternalServerError"
|
|
129
132
|
}
|
|
@@ -281,6 +284,9 @@
|
|
|
281
284
|
"404": {
|
|
282
285
|
"$ref": "#/components/responses/NotFoundError"
|
|
283
286
|
},
|
|
287
|
+
"422": {
|
|
288
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
289
|
+
},
|
|
284
290
|
"500": {
|
|
285
291
|
"$ref": "#/components/responses/InternalServerError"
|
|
286
292
|
}
|
|
@@ -366,6 +372,9 @@
|
|
|
366
372
|
"401": {
|
|
367
373
|
"$ref": "#/components/responses/UnauthorizedError"
|
|
368
374
|
},
|
|
375
|
+
"422": {
|
|
376
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
377
|
+
},
|
|
369
378
|
"500": {
|
|
370
379
|
"$ref": "#/components/responses/InternalServerError"
|
|
371
380
|
}
|
|
@@ -431,6 +440,9 @@
|
|
|
431
440
|
"401": {
|
|
432
441
|
"$ref": "#/components/responses/UnauthorizedError"
|
|
433
442
|
},
|
|
443
|
+
"422": {
|
|
444
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
445
|
+
},
|
|
434
446
|
"500": {
|
|
435
447
|
"$ref": "#/components/responses/InternalServerError"
|
|
436
448
|
}
|
|
@@ -1297,6 +1309,73 @@
|
|
|
1297
1309
|
}
|
|
1298
1310
|
}
|
|
1299
1311
|
},
|
|
1312
|
+
"/v1/files/validations": {
|
|
1313
|
+
"post": {
|
|
1314
|
+
"operationId": "validateFile",
|
|
1315
|
+
"summary": "validateFile",
|
|
1316
|
+
"description": "Validate an uploaded file against one or more document validation rules\n(validation-rules-api rules with `input_type: document`).\n\nThe file is referenced either by its file entity id or, for an upload that has not been\nsaved as an entity yet (e.g. a journey upload in the temporary prefix), by its S3 reference.\nThe service collects an observation of the file - deterministic facts such as the sniffed\nmime type, size, page count, image resolution, blank and password-protection detection -\nand evaluates every rule against it with the shared validation rules engine.\n\nThe response carries one result per rule with a per-condition outcome (`pass`, `fail`,\n`uncertain`, `skipped`), plus the observation the results were derived from. `status` is\n`completed` for checks that finish synchronously; `pending` is reserved for check levels\nthat need asynchronous content extraction.\n",
|
|
1317
|
+
"tags": [
|
|
1318
|
+
"File"
|
|
1319
|
+
],
|
|
1320
|
+
"requestBody": {
|
|
1321
|
+
"required": true,
|
|
1322
|
+
"content": {
|
|
1323
|
+
"application/json": {
|
|
1324
|
+
"schema": {
|
|
1325
|
+
"$ref": "#/components/schemas/FileValidationRequest"
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
"responses": {
|
|
1331
|
+
"200": {
|
|
1332
|
+
"description": "The validation result",
|
|
1333
|
+
"content": {
|
|
1334
|
+
"application/json": {
|
|
1335
|
+
"schema": {
|
|
1336
|
+
"$ref": "#/components/schemas/FileValidation"
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
"400": {
|
|
1342
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
1343
|
+
},
|
|
1344
|
+
"401": {
|
|
1345
|
+
"$ref": "#/components/responses/UnauthorizedError"
|
|
1346
|
+
},
|
|
1347
|
+
"403": {
|
|
1348
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
1349
|
+
},
|
|
1350
|
+
"404": {
|
|
1351
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
1352
|
+
},
|
|
1353
|
+
"413": {
|
|
1354
|
+
"description": "The file is too large to validate",
|
|
1355
|
+
"content": {
|
|
1356
|
+
"application/json": {
|
|
1357
|
+
"schema": {
|
|
1358
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
"422": {
|
|
1364
|
+
"description": "The file could not be read",
|
|
1365
|
+
"content": {
|
|
1366
|
+
"application/json": {
|
|
1367
|
+
"schema": {
|
|
1368
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
"500": {
|
|
1374
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1300
1379
|
"/v1/files/{id}/preview": {
|
|
1301
1380
|
"get": {
|
|
1302
1381
|
"operationId": "previewFile",
|
|
@@ -2090,6 +2169,9 @@
|
|
|
2090
2169
|
"400": {
|
|
2091
2170
|
"$ref": "#/components/responses/BadRequestError"
|
|
2092
2171
|
},
|
|
2172
|
+
"422": {
|
|
2173
|
+
"$ref": "#/components/responses/UnprocessableEntityError"
|
|
2174
|
+
},
|
|
2093
2175
|
"500": {
|
|
2094
2176
|
"$ref": "#/components/responses/InternalServerError"
|
|
2095
2177
|
}
|
|
@@ -2806,6 +2888,296 @@
|
|
|
2806
2888
|
],
|
|
2807
2889
|
"readOnly": true
|
|
2808
2890
|
},
|
|
2891
|
+
"FileValidationRequest": {
|
|
2892
|
+
"type": "object",
|
|
2893
|
+
"required": [
|
|
2894
|
+
"file",
|
|
2895
|
+
"rule_ids"
|
|
2896
|
+
],
|
|
2897
|
+
"additionalProperties": false,
|
|
2898
|
+
"properties": {
|
|
2899
|
+
"file": {
|
|
2900
|
+
"$ref": "#/components/schemas/FileValidationFileReference"
|
|
2901
|
+
},
|
|
2902
|
+
"rule_ids": {
|
|
2903
|
+
"type": "array",
|
|
2904
|
+
"description": "Document validation rules to evaluate. Rules of another input type are rejected.",
|
|
2905
|
+
"minItems": 1,
|
|
2906
|
+
"maxItems": 10,
|
|
2907
|
+
"uniqueItems": true,
|
|
2908
|
+
"items": {
|
|
2909
|
+
"type": "string",
|
|
2910
|
+
"minLength": 1
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
},
|
|
2915
|
+
"FileValidationFileReference": {
|
|
2916
|
+
"description": "The file to validate - a saved file entity, or an uploaded object not saved as an entity yet.",
|
|
2917
|
+
"oneOf": [
|
|
2918
|
+
{
|
|
2919
|
+
"type": "object",
|
|
2920
|
+
"required": [
|
|
2921
|
+
"entity_id"
|
|
2922
|
+
],
|
|
2923
|
+
"additionalProperties": false,
|
|
2924
|
+
"properties": {
|
|
2925
|
+
"entity_id": {
|
|
2926
|
+
"$ref": "#/components/schemas/FileEntityId"
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
"type": "object",
|
|
2932
|
+
"required": [
|
|
2933
|
+
"s3ref"
|
|
2934
|
+
],
|
|
2935
|
+
"additionalProperties": false,
|
|
2936
|
+
"properties": {
|
|
2937
|
+
"s3ref": {
|
|
2938
|
+
"$ref": "#/components/schemas/S3Ref"
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
]
|
|
2943
|
+
},
|
|
2944
|
+
"FileValidation": {
|
|
2945
|
+
"type": "object",
|
|
2946
|
+
"required": [
|
|
2947
|
+
"id",
|
|
2948
|
+
"status",
|
|
2949
|
+
"file",
|
|
2950
|
+
"observation",
|
|
2951
|
+
"results",
|
|
2952
|
+
"created_at"
|
|
2953
|
+
],
|
|
2954
|
+
"properties": {
|
|
2955
|
+
"id": {
|
|
2956
|
+
"type": "string",
|
|
2957
|
+
"description": "Identifier of this validation run."
|
|
2958
|
+
},
|
|
2959
|
+
"status": {
|
|
2960
|
+
"type": "string",
|
|
2961
|
+
"enum": [
|
|
2962
|
+
"completed",
|
|
2963
|
+
"pending",
|
|
2964
|
+
"failed"
|
|
2965
|
+
],
|
|
2966
|
+
"description": "`completed` when every rule was evaluated. `pending` is reserved for check levels that\nneed asynchronous content extraction; `failed` when the observation could not be produced.\n"
|
|
2967
|
+
},
|
|
2968
|
+
"file": {
|
|
2969
|
+
"$ref": "#/components/schemas/FileValidationFile"
|
|
2970
|
+
},
|
|
2971
|
+
"observation": {
|
|
2972
|
+
"$ref": "#/components/schemas/FileValidationObservation"
|
|
2973
|
+
},
|
|
2974
|
+
"results": {
|
|
2975
|
+
"type": "array",
|
|
2976
|
+
"items": {
|
|
2977
|
+
"$ref": "#/components/schemas/FileValidationRuleResult"
|
|
2978
|
+
}
|
|
2979
|
+
},
|
|
2980
|
+
"created_at": {
|
|
2981
|
+
"type": "string",
|
|
2982
|
+
"format": "date-time"
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
},
|
|
2986
|
+
"FileValidationFile": {
|
|
2987
|
+
"type": "object",
|
|
2988
|
+
"description": "The file that was validated, with the identity facts collected from its content.",
|
|
2989
|
+
"properties": {
|
|
2990
|
+
"entity_id": {
|
|
2991
|
+
"$ref": "#/components/schemas/FileEntityId"
|
|
2992
|
+
},
|
|
2993
|
+
"s3ref": {
|
|
2994
|
+
"$ref": "#/components/schemas/S3Ref"
|
|
2995
|
+
},
|
|
2996
|
+
"filename": {
|
|
2997
|
+
"type": "string"
|
|
2998
|
+
},
|
|
2999
|
+
"mime_type": {
|
|
3000
|
+
"type": "string",
|
|
3001
|
+
"description": "Mime type detected from the file content, falling back to the declared type."
|
|
3002
|
+
},
|
|
3003
|
+
"size_bytes": {
|
|
3004
|
+
"type": "integer"
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
},
|
|
3008
|
+
"FileValidationObservation": {
|
|
3009
|
+
"type": "object",
|
|
3010
|
+
"description": "Everything observed about the file, as passed to the validation rules engine.",
|
|
3011
|
+
"required": [
|
|
3012
|
+
"facts"
|
|
3013
|
+
],
|
|
3014
|
+
"properties": {
|
|
3015
|
+
"facts": {
|
|
3016
|
+
"$ref": "#/components/schemas/FileValidationFacts"
|
|
3017
|
+
},
|
|
3018
|
+
"judgements": {
|
|
3019
|
+
"type": "object",
|
|
3020
|
+
"description": "Content judgements keyed by condition id, produced by the document requirements\ncheck for `meetsCriteria` conditions at the `standard` and `advanced` levels.\nAbsent when no content check ran (basic level, unsupported file, or the check\ndid not finish within its budget).\n",
|
|
3021
|
+
"additionalProperties": {
|
|
3022
|
+
"$ref": "#/components/schemas/FileValidationJudgement"
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
"document_type": {
|
|
3026
|
+
"type": "object",
|
|
3027
|
+
"description": "Document type detected by the content check, when it ran.",
|
|
3028
|
+
"properties": {
|
|
3029
|
+
"slug": {
|
|
3030
|
+
"type": "string"
|
|
3031
|
+
},
|
|
3032
|
+
"confidence": {
|
|
3033
|
+
"type": "number"
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
},
|
|
3039
|
+
"FileValidationJudgement": {
|
|
3040
|
+
"type": "object",
|
|
3041
|
+
"required": [
|
|
3042
|
+
"result"
|
|
3043
|
+
],
|
|
3044
|
+
"properties": {
|
|
3045
|
+
"result": {
|
|
3046
|
+
"type": "string",
|
|
3047
|
+
"enum": [
|
|
3048
|
+
"pass",
|
|
3049
|
+
"fail",
|
|
3050
|
+
"uncertain"
|
|
3051
|
+
]
|
|
3052
|
+
},
|
|
3053
|
+
"confidence": {
|
|
3054
|
+
"type": "number"
|
|
3055
|
+
},
|
|
3056
|
+
"evidence": {
|
|
3057
|
+
"type": "string"
|
|
3058
|
+
},
|
|
3059
|
+
"explanation": {
|
|
3060
|
+
"type": "string"
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
},
|
|
3064
|
+
"FileValidationFacts": {
|
|
3065
|
+
"type": "object",
|
|
3066
|
+
"description": "Deterministic properties of the file. A property that is absent could not be determined\n(for example the resolution of an image the service cannot decode); conditions that need it\nare skipped rather than failed.\n",
|
|
3067
|
+
"properties": {
|
|
3068
|
+
"mime_type": {
|
|
3069
|
+
"type": "string"
|
|
3070
|
+
},
|
|
3071
|
+
"size_bytes": {
|
|
3072
|
+
"type": "integer"
|
|
3073
|
+
},
|
|
3074
|
+
"page_count": {
|
|
3075
|
+
"type": "integer",
|
|
3076
|
+
"description": "Pages of a PDF; 1 for images."
|
|
3077
|
+
},
|
|
3078
|
+
"longer_edge_px": {
|
|
3079
|
+
"type": "integer",
|
|
3080
|
+
"description": "Longer edge of an image in pixels."
|
|
3081
|
+
},
|
|
3082
|
+
"is_blank": {
|
|
3083
|
+
"type": "boolean"
|
|
3084
|
+
},
|
|
3085
|
+
"is_password_protected": {
|
|
3086
|
+
"type": "boolean"
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
"FileValidationRuleResult": {
|
|
3091
|
+
"type": "object",
|
|
3092
|
+
"required": [
|
|
3093
|
+
"rule_id",
|
|
3094
|
+
"level",
|
|
3095
|
+
"is_valid",
|
|
3096
|
+
"conditions"
|
|
3097
|
+
],
|
|
3098
|
+
"properties": {
|
|
3099
|
+
"rule_id": {
|
|
3100
|
+
"type": "string"
|
|
3101
|
+
},
|
|
3102
|
+
"rule_title": {
|
|
3103
|
+
"type": "string"
|
|
3104
|
+
},
|
|
3105
|
+
"level": {
|
|
3106
|
+
"type": "string",
|
|
3107
|
+
"enum": [
|
|
3108
|
+
"basic",
|
|
3109
|
+
"standard",
|
|
3110
|
+
"advanced"
|
|
3111
|
+
],
|
|
3112
|
+
"description": "The rule's check level."
|
|
3113
|
+
},
|
|
3114
|
+
"is_valid": {
|
|
3115
|
+
"type": "boolean",
|
|
3116
|
+
"description": "True when every blocking condition passed or was skipped."
|
|
3117
|
+
},
|
|
3118
|
+
"failed_parts": {
|
|
3119
|
+
"type": "array",
|
|
3120
|
+
"description": "Error messages of blocking conditions that failed.",
|
|
3121
|
+
"items": {
|
|
3122
|
+
"type": "string"
|
|
3123
|
+
}
|
|
3124
|
+
},
|
|
3125
|
+
"warnings": {
|
|
3126
|
+
"type": "array",
|
|
3127
|
+
"description": "Error messages of advisory conditions that failed and of uncertain judgements.",
|
|
3128
|
+
"items": {
|
|
3129
|
+
"type": "string"
|
|
3130
|
+
}
|
|
3131
|
+
},
|
|
3132
|
+
"conditions": {
|
|
3133
|
+
"type": "array",
|
|
3134
|
+
"items": {
|
|
3135
|
+
"$ref": "#/components/schemas/FileValidationConditionResult"
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
},
|
|
3140
|
+
"FileValidationConditionResult": {
|
|
3141
|
+
"type": "object",
|
|
3142
|
+
"required": [
|
|
3143
|
+
"id",
|
|
3144
|
+
"operator",
|
|
3145
|
+
"outcome",
|
|
3146
|
+
"blocking",
|
|
3147
|
+
"message"
|
|
3148
|
+
],
|
|
3149
|
+
"properties": {
|
|
3150
|
+
"id": {
|
|
3151
|
+
"type": "string"
|
|
3152
|
+
},
|
|
3153
|
+
"operator": {
|
|
3154
|
+
"type": "string"
|
|
3155
|
+
},
|
|
3156
|
+
"outcome": {
|
|
3157
|
+
"type": "string",
|
|
3158
|
+
"enum": [
|
|
3159
|
+
"pass",
|
|
3160
|
+
"fail",
|
|
3161
|
+
"uncertain",
|
|
3162
|
+
"skipped"
|
|
3163
|
+
]
|
|
3164
|
+
},
|
|
3165
|
+
"blocking": {
|
|
3166
|
+
"type": "boolean",
|
|
3167
|
+
"description": "True when this outcome makes the file invalid."
|
|
3168
|
+
},
|
|
3169
|
+
"message": {
|
|
3170
|
+
"type": "string",
|
|
3171
|
+
"description": "The condition's configured error message."
|
|
3172
|
+
},
|
|
3173
|
+
"evidence": {
|
|
3174
|
+
"type": "string"
|
|
3175
|
+
},
|
|
3176
|
+
"explanation": {
|
|
3177
|
+
"type": "string"
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
2809
3181
|
"FileText": {
|
|
2810
3182
|
"type": "object",
|
|
2811
3183
|
"properties": {
|
|
@@ -3795,6 +4167,26 @@
|
|
|
3795
4167
|
}
|
|
3796
4168
|
}
|
|
3797
4169
|
},
|
|
4170
|
+
"UnprocessableEntityError": {
|
|
4171
|
+
"description": "The request was well-formed but the file's type or content is not acceptable",
|
|
4172
|
+
"content": {
|
|
4173
|
+
"application/json": {
|
|
4174
|
+
"schema": {
|
|
4175
|
+
"allOf": [
|
|
4176
|
+
{
|
|
4177
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
4178
|
+
},
|
|
4179
|
+
{
|
|
4180
|
+
"example": {
|
|
4181
|
+
"status": 422,
|
|
4182
|
+
"error": "File type not allowed"
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
]
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
},
|
|
3798
4190
|
"UnauthorizedError": {
|
|
3799
4191
|
"description": "Authentication required or invalid credentials",
|
|
3800
4192
|
"content": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"s":"https://journey-config.sls.epilot.io","o":[["getJourneysByOrgId","get","/v1/journey/organization/{id}",[["id","p",true],["hydrate","q"]]],["getJourney","get","/v1/journey/configuration/{id}",[["id","p",true],["version","q"],["source","q"],["orgId","q"]]],["removeJourney","delete","/v1/journey/configuration/{id}",[["id","p",true]]],["getJourneyEnvironment","get","/v1/journey/configuration/{id}/environment",[["id","p",true]]],["getJourneyEnvironmentVariables","get","/v1/journey/environment-variables"],["getJourneyProducts","get","/v1/journey/products/{id}",[["id","p",true],["source","q"],["postal_code","q"],["city","q"],["street","q"],["street_number","q"]]],["createJourney","post","/v1/journey/configuration",[["skipAutomation","q"]],1],["updateJourney","put","/v1/journey/configuration",null,1],["patchUpdateJourney","patch","/v1/journey/configuration",null,1],["searchJourneys","post","/v1/journey/configuration/search",null,1],["generateDocument","post","/v1/journey/document:generate",null,1],["createJourneyV2","post","/v2/journey/configuration",[["skipAutomation","q"]],1],["updateJourneyV2","put","/v2/journey/configuration",null,1],["patchUpdateJourneyV2","patch","/v2/journey/configuration",null,1],["getJourneyV2","get","/v2/journey/configuration/{id}",[["id","p",true],["version","q"]]],["removeJourneyV2","delete","/v2/journey/configuration/{id}",[["id","p",true]]],["getSettingsForJourney","get","/v1/journey/{id}/settings",[["id","p",true]]],["getButtonOptions","get","/v1/journey/button-options",[["fileId","q",true]]]],"v":"3.0.0"}
|
|
1
|
+
{"s":"https://journey-config.sls.epilot.io","o":[["getJourneysByOrgId","get","/v1/journey/organization/{id}",[["id","p",true],["hydrate","q"]]],["getJourney","get","/v1/journey/configuration/{id}",[["id","p",true],["version","q"],["source","q"],["orgId","q"]]],["removeJourney","delete","/v1/journey/configuration/{id}",[["id","p",true]]],["createJourneyRevision","post","/v1/journey/configuration/{id}/revisions",[["id","p",true]],1],["listJourneyRevisions","get","/v1/journey/configuration/{id}/revisions",[["id","p",true],["limit","q"],["cursor","q"]]],["getJourneyRevision","get","/v1/journey/configuration/{id}/revisions/{revision_id}",[["id","p",true],["revision_id","p",true]]],["publishJourneyRevision","post","/v1/journey/configuration/{id}/publish",[["id","p",true]],1],["getJourneyPublishState","get","/v1/journey/configuration/{id}/publish-state",[["id","p",true]]],["getJourneyEnvironment","get","/v1/journey/configuration/{id}/environment",[["id","p",true]]],["getJourneyEnvironmentVariables","get","/v1/journey/environment-variables"],["getJourneyProducts","get","/v1/journey/products/{id}",[["id","p",true],["source","q"],["postal_code","q"],["city","q"],["street","q"],["street_number","q"]]],["createJourney","post","/v1/journey/configuration",[["skipAutomation","q"]],1],["updateJourney","put","/v1/journey/configuration",null,1],["patchUpdateJourney","patch","/v1/journey/configuration",null,1],["searchJourneys","post","/v1/journey/configuration/search",null,1],["generateDocument","post","/v1/journey/document:generate",null,1],["createJourneyV2","post","/v2/journey/configuration",[["skipAutomation","q"]],1],["updateJourneyV2","put","/v2/journey/configuration",null,1],["patchUpdateJourneyV2","patch","/v2/journey/configuration",null,1],["getJourneyV2","get","/v2/journey/configuration/{id}",[["id","p",true],["version","q"]]],["removeJourneyV2","delete","/v2/journey/configuration/{id}",[["id","p",true]]],["getSettingsForJourney","get","/v1/journey/{id}/settings",[["id","p",true]]],["getButtonOptions","get","/v1/journey/button-options",[["fileId","q",true]]]],"v":"3.0.0"}
|