@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.
- 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/definitions/pricing-runtime.json +1 -1
- package/definitions/pricing.json +3489 -757
- 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 +8 -29
- package/dist/apis/pricing.d.cts +3 -15
- package/dist/apis/pricing.d.ts +3 -15
- package/dist/apis/pricing.js +2 -23
- 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-OHYTCUUB.js → chunk-7Q3JW72Y.js} +1 -1
- package/dist/{chunk-OOMP6BYJ.js → chunk-A7UIYIBZ.js} +6 -6
- package/dist/chunk-FGQBS7TA.js +14 -0
- package/dist/chunk-HL4MZXEK.js +14 -0
- package/dist/{chunk-UKHR33EL.cjs → chunk-QLWDOKGE.cjs} +1 -1
- package/dist/{chunk-VAM7ZIAF.cjs → chunk-VAGYR2R6.cjs} +6 -6
- 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 +14 -14
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- 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/dist/pricing-PFTFDGZ3.cjs +7 -0
- package/dist/pricing-YZHONV3M.js +7 -0
- package/dist/{pricing-runtime-AT27C3BP.js → pricing-runtime-MJAIO4AY.js} +1 -1
- package/dist/{pricing-runtime-PFVTRERK.cjs → pricing-runtime-NMRZO6J4.cjs} +2 -2
- package/dist/{pricing.d-CSVO1WCD.d.cts → pricing.d-CvcYBm8A.d.cts} +9979 -1422
- package/dist/{pricing.d-CSVO1WCD.d.ts → pricing.d-CvcYBm8A.d.ts} +9979 -1422
- package/docs/file.md +272 -0
- package/docs/journey.md +676 -0
- package/docs/pricing.md +1372 -204
- 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
- package/dist/pricing-5EKKEZSL.js +0 -7
- package/dist/pricing-N4Z2CHGZ.cjs +0 -7
package/docs/file.md
CHANGED
|
@@ -42,6 +42,7 @@ const { data } = await fileClient.uploadFileV2(...)
|
|
|
42
42
|
- [`getFileSummaryJob`](#getfilesummaryjob)
|
|
43
43
|
- [`generateFileSummary`](#generatefilesummary)
|
|
44
44
|
- [`getFileText`](#getfiletext)
|
|
45
|
+
- [`validateFile`](#validatefile)
|
|
45
46
|
- [`verifyCustomDownloadUrl`](#verifycustomdownloadurl)
|
|
46
47
|
- [`uploadFilePublic`](#uploadfilepublic)
|
|
47
48
|
|
|
@@ -83,6 +84,15 @@ const { data } = await fileClient.uploadFileV2(...)
|
|
|
83
84
|
- [`FileSummaryFeedbackResponse`](#filesummaryfeedbackresponse)
|
|
84
85
|
- [`PutFileSummaryFeedbackRequest`](#putfilesummaryfeedbackrequest)
|
|
85
86
|
- [`FileTextStatus`](#filetextstatus)
|
|
87
|
+
- [`FileValidationRequest`](#filevalidationrequest)
|
|
88
|
+
- [`FileValidationFileReference`](#filevalidationfilereference)
|
|
89
|
+
- [`FileValidation`](#filevalidation)
|
|
90
|
+
- [`FileValidationFile`](#filevalidationfile)
|
|
91
|
+
- [`FileValidationObservation`](#filevalidationobservation)
|
|
92
|
+
- [`FileValidationJudgement`](#filevalidationjudgement)
|
|
93
|
+
- [`FileValidationFacts`](#filevalidationfacts)
|
|
94
|
+
- [`FileValidationRuleResult`](#filevalidationruleresult)
|
|
95
|
+
- [`FileValidationConditionResult`](#filevalidationconditionresult)
|
|
86
96
|
- [`FileText`](#filetext)
|
|
87
97
|
- [`FileTextReady`](#filetextready)
|
|
88
98
|
- [`FileTextNotReady`](#filetextnotready)
|
|
@@ -777,6 +787,83 @@ const { data } = await client.getFileText({
|
|
|
777
787
|
|
|
778
788
|
---
|
|
779
789
|
|
|
790
|
+
### `validateFile`
|
|
791
|
+
|
|
792
|
+
Validate an uploaded file against one or more document validation rules
|
|
793
|
+
(validation-rules-api rules with `input_type: document`).
|
|
794
|
+
|
|
795
|
+
`POST /v1/files/validations`
|
|
796
|
+
|
|
797
|
+
```ts
|
|
798
|
+
const { data } = await client.validateFile(
|
|
799
|
+
null,
|
|
800
|
+
{
|
|
801
|
+
file: {
|
|
802
|
+
entity_id: 'ef7d985c-2385-44f4-9c71-ae06a52264f8'
|
|
803
|
+
},
|
|
804
|
+
rule_ids: ['string']
|
|
805
|
+
},
|
|
806
|
+
)
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
<details>
|
|
810
|
+
<summary>Response</summary>
|
|
811
|
+
|
|
812
|
+
```json
|
|
813
|
+
{
|
|
814
|
+
"id": "string",
|
|
815
|
+
"status": "completed",
|
|
816
|
+
"file": {
|
|
817
|
+
"entity_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
|
|
818
|
+
"s3ref": {},
|
|
819
|
+
"filename": "string",
|
|
820
|
+
"mime_type": "string",
|
|
821
|
+
"size_bytes": 0
|
|
822
|
+
},
|
|
823
|
+
"observation": {
|
|
824
|
+
"facts": {
|
|
825
|
+
"mime_type": "string",
|
|
826
|
+
"size_bytes": 0,
|
|
827
|
+
"page_count": 0,
|
|
828
|
+
"longer_edge_px": 0,
|
|
829
|
+
"is_blank": true,
|
|
830
|
+
"is_password_protected": true
|
|
831
|
+
},
|
|
832
|
+
"judgements": {},
|
|
833
|
+
"document_type": {
|
|
834
|
+
"slug": "string",
|
|
835
|
+
"confidence": 0
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"results": [
|
|
839
|
+
{
|
|
840
|
+
"rule_id": "string",
|
|
841
|
+
"rule_title": "string",
|
|
842
|
+
"level": "basic",
|
|
843
|
+
"is_valid": true,
|
|
844
|
+
"failed_parts": ["string"],
|
|
845
|
+
"warnings": ["string"],
|
|
846
|
+
"conditions": [
|
|
847
|
+
{
|
|
848
|
+
"id": "string",
|
|
849
|
+
"operator": "string",
|
|
850
|
+
"outcome": "pass",
|
|
851
|
+
"blocking": true,
|
|
852
|
+
"message": "string",
|
|
853
|
+
"evidence": "string",
|
|
854
|
+
"explanation": "string"
|
|
855
|
+
}
|
|
856
|
+
]
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"created_at": "1970-01-01T00:00:00.000Z"
|
|
860
|
+
}
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
</details>
|
|
864
|
+
|
|
865
|
+
---
|
|
866
|
+
|
|
780
867
|
### `previewFile`
|
|
781
868
|
|
|
782
869
|
Generate a thumbnail preview for a file entity.
|
|
@@ -1408,6 +1495,191 @@ Availability of the plain-text representation for a file entity.
|
|
|
1408
1495
|
type FileTextStatus = "ready" | "not_ready" | "unsupported"
|
|
1409
1496
|
```
|
|
1410
1497
|
|
|
1498
|
+
### `FileValidationRequest`
|
|
1499
|
+
|
|
1500
|
+
```ts
|
|
1501
|
+
type FileValidationRequest = {
|
|
1502
|
+
file: {
|
|
1503
|
+
entity_id: string | string // uuid
|
|
1504
|
+
} | {
|
|
1505
|
+
s3ref: unknown
|
|
1506
|
+
}
|
|
1507
|
+
rule_ids: string[]
|
|
1508
|
+
}
|
|
1509
|
+
```
|
|
1510
|
+
|
|
1511
|
+
### `FileValidationFileReference`
|
|
1512
|
+
|
|
1513
|
+
The file to validate - a saved file entity, or an uploaded object not saved as an entity yet.
|
|
1514
|
+
|
|
1515
|
+
```ts
|
|
1516
|
+
type FileValidationFileReference = {
|
|
1517
|
+
entity_id: string | string // uuid
|
|
1518
|
+
} | {
|
|
1519
|
+
s3ref: unknown
|
|
1520
|
+
}
|
|
1521
|
+
```
|
|
1522
|
+
|
|
1523
|
+
### `FileValidation`
|
|
1524
|
+
|
|
1525
|
+
```ts
|
|
1526
|
+
type FileValidation = {
|
|
1527
|
+
id: string
|
|
1528
|
+
status: "completed" | "pending" | "failed"
|
|
1529
|
+
file: {
|
|
1530
|
+
entity_id?: string | string // uuid
|
|
1531
|
+
s3ref?: unknown
|
|
1532
|
+
filename?: string
|
|
1533
|
+
mime_type?: string
|
|
1534
|
+
size_bytes?: number
|
|
1535
|
+
}
|
|
1536
|
+
observation: {
|
|
1537
|
+
facts: {
|
|
1538
|
+
mime_type?: { ... }
|
|
1539
|
+
size_bytes?: { ... }
|
|
1540
|
+
page_count?: { ... }
|
|
1541
|
+
longer_edge_px?: { ... }
|
|
1542
|
+
is_blank?: { ... }
|
|
1543
|
+
is_password_protected?: { ... }
|
|
1544
|
+
}
|
|
1545
|
+
judgements?: Record<string, {
|
|
1546
|
+
result: { ... }
|
|
1547
|
+
confidence?: { ... }
|
|
1548
|
+
evidence?: { ... }
|
|
1549
|
+
explanation?: { ... }
|
|
1550
|
+
}>
|
|
1551
|
+
document_type?: {
|
|
1552
|
+
slug?: { ... }
|
|
1553
|
+
confidence?: { ... }
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
results: Array<{
|
|
1557
|
+
rule_id: string
|
|
1558
|
+
rule_title?: string
|
|
1559
|
+
level: "basic" | "standard" | "advanced"
|
|
1560
|
+
is_valid: boolean
|
|
1561
|
+
failed_parts?: string[]
|
|
1562
|
+
warnings?: string[]
|
|
1563
|
+
conditions: Array<{
|
|
1564
|
+
id: { ... }
|
|
1565
|
+
operator: { ... }
|
|
1566
|
+
outcome: { ... }
|
|
1567
|
+
blocking: { ... }
|
|
1568
|
+
message: { ... }
|
|
1569
|
+
evidence?: { ... }
|
|
1570
|
+
explanation?: { ... }
|
|
1571
|
+
}>
|
|
1572
|
+
}>
|
|
1573
|
+
created_at: string // date-time
|
|
1574
|
+
}
|
|
1575
|
+
```
|
|
1576
|
+
|
|
1577
|
+
### `FileValidationFile`
|
|
1578
|
+
|
|
1579
|
+
The file that was validated, with the identity facts collected from its content.
|
|
1580
|
+
|
|
1581
|
+
```ts
|
|
1582
|
+
type FileValidationFile = {
|
|
1583
|
+
entity_id?: string | string // uuid
|
|
1584
|
+
s3ref?: unknown
|
|
1585
|
+
filename?: string
|
|
1586
|
+
mime_type?: string
|
|
1587
|
+
size_bytes?: number
|
|
1588
|
+
}
|
|
1589
|
+
```
|
|
1590
|
+
|
|
1591
|
+
### `FileValidationObservation`
|
|
1592
|
+
|
|
1593
|
+
Everything observed about the file, as passed to the validation rules engine.
|
|
1594
|
+
|
|
1595
|
+
```ts
|
|
1596
|
+
type FileValidationObservation = {
|
|
1597
|
+
facts: {
|
|
1598
|
+
mime_type?: string
|
|
1599
|
+
size_bytes?: number
|
|
1600
|
+
page_count?: number
|
|
1601
|
+
longer_edge_px?: number
|
|
1602
|
+
is_blank?: boolean
|
|
1603
|
+
is_password_protected?: boolean
|
|
1604
|
+
}
|
|
1605
|
+
judgements?: Record<string, {
|
|
1606
|
+
result: "pass" | "fail" | "uncertain"
|
|
1607
|
+
confidence?: number
|
|
1608
|
+
evidence?: string
|
|
1609
|
+
explanation?: string
|
|
1610
|
+
}>
|
|
1611
|
+
document_type?: {
|
|
1612
|
+
slug?: string
|
|
1613
|
+
confidence?: number
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
```
|
|
1617
|
+
|
|
1618
|
+
### `FileValidationJudgement`
|
|
1619
|
+
|
|
1620
|
+
```ts
|
|
1621
|
+
type FileValidationJudgement = {
|
|
1622
|
+
result: "pass" | "fail" | "uncertain"
|
|
1623
|
+
confidence?: number
|
|
1624
|
+
evidence?: string
|
|
1625
|
+
explanation?: string
|
|
1626
|
+
}
|
|
1627
|
+
```
|
|
1628
|
+
|
|
1629
|
+
### `FileValidationFacts`
|
|
1630
|
+
|
|
1631
|
+
Deterministic properties of the file. A property that is absent could not be determined
|
|
1632
|
+
(for example the resolution of an image the service cannot decode); conditions that need it
|
|
1633
|
+
are skipped rather than failed.
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
```ts
|
|
1637
|
+
type FileValidationFacts = {
|
|
1638
|
+
mime_type?: string
|
|
1639
|
+
size_bytes?: number
|
|
1640
|
+
page_count?: number
|
|
1641
|
+
longer_edge_px?: number
|
|
1642
|
+
is_blank?: boolean
|
|
1643
|
+
is_password_protected?: boolean
|
|
1644
|
+
}
|
|
1645
|
+
```
|
|
1646
|
+
|
|
1647
|
+
### `FileValidationRuleResult`
|
|
1648
|
+
|
|
1649
|
+
```ts
|
|
1650
|
+
type FileValidationRuleResult = {
|
|
1651
|
+
rule_id: string
|
|
1652
|
+
rule_title?: string
|
|
1653
|
+
level: "basic" | "standard" | "advanced"
|
|
1654
|
+
is_valid: boolean
|
|
1655
|
+
failed_parts?: string[]
|
|
1656
|
+
warnings?: string[]
|
|
1657
|
+
conditions: Array<{
|
|
1658
|
+
id: string
|
|
1659
|
+
operator: string
|
|
1660
|
+
outcome: "pass" | "fail" | "uncertain" | "skipped"
|
|
1661
|
+
blocking: boolean
|
|
1662
|
+
message: string
|
|
1663
|
+
evidence?: string
|
|
1664
|
+
explanation?: string
|
|
1665
|
+
}>
|
|
1666
|
+
}
|
|
1667
|
+
```
|
|
1668
|
+
|
|
1669
|
+
### `FileValidationConditionResult`
|
|
1670
|
+
|
|
1671
|
+
```ts
|
|
1672
|
+
type FileValidationConditionResult = {
|
|
1673
|
+
id: string
|
|
1674
|
+
operator: string
|
|
1675
|
+
outcome: "pass" | "fail" | "uncertain" | "skipped"
|
|
1676
|
+
blocking: boolean
|
|
1677
|
+
message: string
|
|
1678
|
+
evidence?: string
|
|
1679
|
+
explanation?: string
|
|
1680
|
+
}
|
|
1681
|
+
```
|
|
1682
|
+
|
|
1411
1683
|
### `FileText`
|
|
1412
1684
|
|
|
1413
1685
|
```ts
|