@onfido/api 4.5.0 → 5.0.0

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/dist/esm/api.d.ts CHANGED
@@ -1658,12 +1658,6 @@ export interface DeviceIntelligenceReport {
1658
1658
  * @memberof DeviceIntelligenceReport
1659
1659
  */
1660
1660
  'check_id'?: string;
1661
- /**
1662
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
1663
- * @type {Array<ReportDocument>}
1664
- * @memberof DeviceIntelligenceReport
1665
- */
1666
- 'documents'?: Array<ReportDocument>;
1667
1661
  /**
1668
1662
  *
1669
1663
  * @type {ReportName}
@@ -1688,7 +1682,7 @@ export interface Document {
1688
1682
  * @type {string}
1689
1683
  * @memberof Document
1690
1684
  */
1691
- 'file_type'?: DocumentFileTypeEnum;
1685
+ 'file_type'?: string;
1692
1686
  /**
1693
1687
  * The type of document
1694
1688
  * @type {DocumentTypes}
@@ -1750,14 +1744,6 @@ export interface Document {
1750
1744
  */
1751
1745
  'file_size'?: number;
1752
1746
  }
1753
- export declare const DocumentFileTypeEnum: {
1754
- readonly Jpg: "jpg";
1755
- readonly Jpeg: "jpeg";
1756
- readonly Png: "png";
1757
- readonly Pdf: "pdf";
1758
- readonly UnknownDefaultOpenApi: "11184809";
1759
- };
1760
- export type DocumentFileTypeEnum = typeof DocumentFileTypeEnum[keyof typeof DocumentFileTypeEnum];
1761
1747
  export declare const DocumentSideEnum: {
1762
1748
  readonly Front: "front";
1763
1749
  readonly Back: "back";
@@ -3577,18 +3563,18 @@ export interface DocumentReport {
3577
3563
  * @memberof DocumentReport
3578
3564
  */
3579
3565
  'check_id'?: string;
3580
- /**
3581
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
3582
- * @type {Array<ReportDocument>}
3583
- * @memberof DocumentReport
3584
- */
3585
- 'documents'?: Array<ReportDocument>;
3586
3566
  /**
3587
3567
  *
3588
3568
  * @type {ReportName}
3589
3569
  * @memberof DocumentReport
3590
3570
  */
3591
3571
  'name': ReportName;
3572
+ /**
3573
+ * Array of objects with document ids that were used in the Onfido engine.
3574
+ * @type {Array<ReportDocument>}
3575
+ * @memberof DocumentReport
3576
+ */
3577
+ 'documents'?: Array<ReportDocument>;
3592
3578
  /**
3593
3579
  *
3594
3580
  * @type {DocumentBreakdown}
@@ -3602,6 +3588,19 @@ export interface DocumentReport {
3602
3588
  */
3603
3589
  'properties'?: DocumentProperties;
3604
3590
  }
3591
+ /**
3592
+ *
3593
+ * @export
3594
+ * @interface DocumentReportShared
3595
+ */
3596
+ export interface DocumentReportShared {
3597
+ /**
3598
+ * Array of objects with document ids that were used in the Onfido engine.
3599
+ * @type {Array<ReportDocument>}
3600
+ * @memberof DocumentReportShared
3601
+ */
3602
+ 'documents'?: Array<ReportDocument>;
3603
+ }
3605
3604
  /**
3606
3605
  *
3607
3606
  * @export
@@ -3656,7 +3655,7 @@ export interface DocumentShared {
3656
3655
  * @type {string}
3657
3656
  * @memberof DocumentShared
3658
3657
  */
3659
- 'file_type'?: DocumentSharedFileTypeEnum;
3658
+ 'file_type'?: string;
3660
3659
  /**
3661
3660
  * The type of document
3662
3661
  * @type {DocumentTypes}
@@ -3682,14 +3681,6 @@ export interface DocumentShared {
3682
3681
  */
3683
3682
  'applicant_id'?: string;
3684
3683
  }
3685
- export declare const DocumentSharedFileTypeEnum: {
3686
- readonly Jpg: "jpg";
3687
- readonly Jpeg: "jpeg";
3688
- readonly Png: "png";
3689
- readonly Pdf: "pdf";
3690
- readonly UnknownDefaultOpenApi: "11184809";
3691
- };
3692
- export type DocumentSharedFileTypeEnum = typeof DocumentSharedFileTypeEnum[keyof typeof DocumentSharedFileTypeEnum];
3693
3684
  export declare const DocumentSharedSideEnum: {
3694
3685
  readonly Front: "front";
3695
3686
  readonly Back: "back";
@@ -3829,18 +3820,18 @@ export interface DocumentVideoReport {
3829
3820
  * @memberof DocumentVideoReport
3830
3821
  */
3831
3822
  'check_id'?: string;
3832
- /**
3833
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
3834
- * @type {Array<ReportDocument>}
3835
- * @memberof DocumentVideoReport
3836
- */
3837
- 'documents'?: Array<ReportDocument>;
3838
3823
  /**
3839
3824
  *
3840
3825
  * @type {ReportName}
3841
3826
  * @memberof DocumentVideoReport
3842
3827
  */
3843
3828
  'name': ReportName;
3829
+ /**
3830
+ * Array of objects with document ids that were used in the Onfido engine.
3831
+ * @type {Array<ReportDocument>}
3832
+ * @memberof DocumentVideoReport
3833
+ */
3834
+ 'documents'?: Array<ReportDocument>;
3844
3835
  /**
3845
3836
  *
3846
3837
  * @type {DocumentBreakdown}
@@ -3902,18 +3893,18 @@ export interface DocumentVideoWithAddressInformationReport {
3902
3893
  * @memberof DocumentVideoWithAddressInformationReport
3903
3894
  */
3904
3895
  'check_id'?: string;
3905
- /**
3906
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
3907
- * @type {Array<ReportDocument>}
3908
- * @memberof DocumentVideoWithAddressInformationReport
3909
- */
3910
- 'documents'?: Array<ReportDocument>;
3911
3896
  /**
3912
3897
  *
3913
3898
  * @type {ReportName}
3914
3899
  * @memberof DocumentVideoWithAddressInformationReport
3915
3900
  */
3916
3901
  'name': ReportName;
3902
+ /**
3903
+ * Array of objects with document ids that were used in the Onfido engine.
3904
+ * @type {Array<ReportDocument>}
3905
+ * @memberof DocumentVideoWithAddressInformationReport
3906
+ */
3907
+ 'documents'?: Array<ReportDocument>;
3917
3908
  /**
3918
3909
  *
3919
3910
  * @type {DocumentBreakdown}
@@ -3975,18 +3966,18 @@ export interface DocumentWithAddressInformationReport {
3975
3966
  * @memberof DocumentWithAddressInformationReport
3976
3967
  */
3977
3968
  'check_id'?: string;
3978
- /**
3979
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
3980
- * @type {Array<ReportDocument>}
3981
- * @memberof DocumentWithAddressInformationReport
3982
- */
3983
- 'documents'?: Array<ReportDocument>;
3984
3969
  /**
3985
3970
  *
3986
3971
  * @type {ReportName}
3987
3972
  * @memberof DocumentWithAddressInformationReport
3988
3973
  */
3989
3974
  'name': ReportName;
3975
+ /**
3976
+ * Array of objects with document ids that were used in the Onfido engine.
3977
+ * @type {Array<ReportDocument>}
3978
+ * @memberof DocumentWithAddressInformationReport
3979
+ */
3980
+ 'documents'?: Array<ReportDocument>;
3990
3981
  /**
3991
3982
  *
3992
3983
  * @type {DocumentBreakdown}
@@ -4048,18 +4039,18 @@ export interface DocumentWithDriverVerificationReport {
4048
4039
  * @memberof DocumentWithDriverVerificationReport
4049
4040
  */
4050
4041
  'check_id'?: string;
4051
- /**
4052
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
4053
- * @type {Array<ReportDocument>}
4054
- * @memberof DocumentWithDriverVerificationReport
4055
- */
4056
- 'documents'?: Array<ReportDocument>;
4057
4042
  /**
4058
4043
  *
4059
4044
  * @type {ReportName}
4060
4045
  * @memberof DocumentWithDriverVerificationReport
4061
4046
  */
4062
4047
  'name': ReportName;
4048
+ /**
4049
+ * Array of objects with document ids that were used in the Onfido engine.
4050
+ * @type {Array<ReportDocument>}
4051
+ * @memberof DocumentWithDriverVerificationReport
4052
+ */
4053
+ 'documents'?: Array<ReportDocument>;
4063
4054
  /**
4064
4055
  *
4065
4056
  * @type {DocumentBreakdown}
@@ -4517,18 +4508,18 @@ export interface DocumentWithDrivingLicenceInformationReport {
4517
4508
  * @memberof DocumentWithDrivingLicenceInformationReport
4518
4509
  */
4519
4510
  'check_id'?: string;
4520
- /**
4521
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
4522
- * @type {Array<ReportDocument>}
4523
- * @memberof DocumentWithDrivingLicenceInformationReport
4524
- */
4525
- 'documents'?: Array<ReportDocument>;
4526
4511
  /**
4527
4512
  *
4528
4513
  * @type {ReportName}
4529
4514
  * @memberof DocumentWithDrivingLicenceInformationReport
4530
4515
  */
4531
4516
  'name': ReportName;
4517
+ /**
4518
+ * Array of objects with document ids that were used in the Onfido engine.
4519
+ * @type {Array<ReportDocument>}
4520
+ * @memberof DocumentWithDrivingLicenceInformationReport
4521
+ */
4522
+ 'documents'?: Array<ReportDocument>;
4532
4523
  /**
4533
4524
  *
4534
4525
  * @type {DocumentBreakdown}
@@ -5115,18 +5106,18 @@ export interface FacialSimilarityMotionReport {
5115
5106
  * @memberof FacialSimilarityMotionReport
5116
5107
  */
5117
5108
  'check_id'?: string;
5118
- /**
5119
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
5120
- * @type {Array<ReportDocument>}
5121
- * @memberof FacialSimilarityMotionReport
5122
- */
5123
- 'documents'?: Array<ReportDocument>;
5124
5109
  /**
5125
5110
  *
5126
5111
  * @type {ReportName}
5127
5112
  * @memberof FacialSimilarityMotionReport
5128
5113
  */
5129
5114
  'name': ReportName;
5115
+ /**
5116
+ * Array of objects with document ids that were used in the Onfido engine.
5117
+ * @type {Array<ReportDocument>}
5118
+ * @memberof FacialSimilarityMotionReport
5119
+ */
5120
+ 'documents'?: Array<ReportDocument>;
5130
5121
  /**
5131
5122
  * Array of objects with live photo ids that were used in the Onfido engine.
5132
5123
  * @type {Array<FacialSimilarityReportMedia>}
@@ -5542,18 +5533,18 @@ export interface FacialSimilarityPhotoFullyAutoReport {
5542
5533
  * @memberof FacialSimilarityPhotoFullyAutoReport
5543
5534
  */
5544
5535
  'check_id'?: string;
5545
- /**
5546
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
5547
- * @type {Array<ReportDocument>}
5548
- * @memberof FacialSimilarityPhotoFullyAutoReport
5549
- */
5550
- 'documents'?: Array<ReportDocument>;
5551
5536
  /**
5552
5537
  *
5553
5538
  * @type {ReportName}
5554
5539
  * @memberof FacialSimilarityPhotoFullyAutoReport
5555
5540
  */
5556
5541
  'name': ReportName;
5542
+ /**
5543
+ * Array of objects with document ids that were used in the Onfido engine.
5544
+ * @type {Array<ReportDocument>}
5545
+ * @memberof FacialSimilarityPhotoFullyAutoReport
5546
+ */
5547
+ 'documents'?: Array<ReportDocument>;
5557
5548
  /**
5558
5549
  * Array of objects with live photo ids that were used in the Onfido engine.
5559
5550
  * @type {Array<FacialSimilarityReportMedia>}
@@ -5652,18 +5643,18 @@ export interface FacialSimilarityPhotoReport {
5652
5643
  * @memberof FacialSimilarityPhotoReport
5653
5644
  */
5654
5645
  'check_id'?: string;
5655
- /**
5656
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
5657
- * @type {Array<ReportDocument>}
5658
- * @memberof FacialSimilarityPhotoReport
5659
- */
5660
- 'documents'?: Array<ReportDocument>;
5661
5646
  /**
5662
5647
  *
5663
5648
  * @type {ReportName}
5664
5649
  * @memberof FacialSimilarityPhotoReport
5665
5650
  */
5666
5651
  'name': ReportName;
5652
+ /**
5653
+ * Array of objects with document ids that were used in the Onfido engine.
5654
+ * @type {Array<ReportDocument>}
5655
+ * @memberof FacialSimilarityPhotoReport
5656
+ */
5657
+ 'documents'?: Array<ReportDocument>;
5667
5658
  /**
5668
5659
  * Array of objects with live photo ids that were used in the Onfido engine.
5669
5660
  * @type {Array<FacialSimilarityReportMedia>}
@@ -5720,6 +5711,12 @@ export interface FacialSimilarityReportMedia {
5720
5711
  * @interface FacialSimilarityReportShared
5721
5712
  */
5722
5713
  export interface FacialSimilarityReportShared {
5714
+ /**
5715
+ * Array of objects with document ids that were used in the Onfido engine.
5716
+ * @type {Array<ReportDocument>}
5717
+ * @memberof FacialSimilarityReportShared
5718
+ */
5719
+ 'documents'?: Array<ReportDocument>;
5723
5720
  /**
5724
5721
  * Array of objects with live photo ids that were used in the Onfido engine.
5725
5722
  * @type {Array<FacialSimilarityReportMedia>}
@@ -6002,18 +5999,18 @@ export interface FacialSimilarityVideoReport {
6002
5999
  * @memberof FacialSimilarityVideoReport
6003
6000
  */
6004
6001
  'check_id'?: string;
6005
- /**
6006
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
6007
- * @type {Array<ReportDocument>}
6008
- * @memberof FacialSimilarityVideoReport
6009
- */
6010
- 'documents'?: Array<ReportDocument>;
6011
6002
  /**
6012
6003
  *
6013
6004
  * @type {ReportName}
6014
6005
  * @memberof FacialSimilarityVideoReport
6015
6006
  */
6016
6007
  'name': ReportName;
6008
+ /**
6009
+ * Array of objects with document ids that were used in the Onfido engine.
6010
+ * @type {Array<ReportDocument>}
6011
+ * @memberof FacialSimilarityVideoReport
6012
+ */
6013
+ 'documents'?: Array<ReportDocument>;
6017
6014
  /**
6018
6015
  * Array of objects with live photo ids that were used in the Onfido engine.
6019
6016
  * @type {Array<FacialSimilarityReportMedia>}
@@ -6081,6 +6078,7 @@ export declare const IdNumberTypeEnum: {
6081
6078
  readonly SocialInsurance: "social_insurance";
6082
6079
  readonly TaxId: "tax_id";
6083
6080
  readonly IdentityCard: "identity_card";
6081
+ readonly DrivingLicense: "driving_license";
6084
6082
  readonly DrivingLicence: "driving_licence";
6085
6083
  readonly ShareCode: "share_code";
6086
6084
  readonly VoterId: "voter_id";
@@ -6584,12 +6582,6 @@ export interface IdentityEnhancedReport {
6584
6582
  * @memberof IdentityEnhancedReport
6585
6583
  */
6586
6584
  'check_id'?: string;
6587
- /**
6588
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
6589
- * @type {Array<ReportDocument>}
6590
- * @memberof IdentityEnhancedReport
6591
- */
6592
- 'documents'?: Array<ReportDocument>;
6593
6585
  /**
6594
6586
  *
6595
6587
  * @type {ReportName}
@@ -6657,12 +6649,6 @@ export interface IndiaPanReport {
6657
6649
  * @memberof IndiaPanReport
6658
6650
  */
6659
6651
  'check_id'?: string;
6660
- /**
6661
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
6662
- * @type {Array<ReportDocument>}
6663
- * @memberof IndiaPanReport
6664
- */
6665
- 'documents'?: Array<ReportDocument>;
6666
6652
  /**
6667
6653
  *
6668
6654
  * @type {ReportName}
@@ -6915,12 +6901,6 @@ export interface KnownFacesReport {
6915
6901
  * @memberof KnownFacesReport
6916
6902
  */
6917
6903
  'check_id'?: string;
6918
- /**
6919
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
6920
- * @type {Array<ReportDocument>}
6921
- * @memberof KnownFacesReport
6922
- */
6923
- 'documents'?: Array<ReportDocument>;
6924
6904
  /**
6925
6905
  *
6926
6906
  * @type {ReportName}
@@ -7578,12 +7558,6 @@ export interface ProofOfAddressReport {
7578
7558
  * @memberof ProofOfAddressReport
7579
7559
  */
7580
7560
  'check_id'?: string;
7581
- /**
7582
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
7583
- * @type {Array<ReportDocument>}
7584
- * @memberof ProofOfAddressReport
7585
- */
7586
- 'documents'?: Array<ReportDocument>;
7587
7561
  /**
7588
7562
  *
7589
7563
  * @type {ReportName}
@@ -7857,12 +7831,6 @@ export interface ReportShared {
7857
7831
  * @memberof ReportShared
7858
7832
  */
7859
7833
  'check_id'?: string;
7860
- /**
7861
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
7862
- * @type {Array<ReportDocument>}
7863
- * @memberof ReportShared
7864
- */
7865
- 'documents'?: Array<ReportDocument>;
7866
7834
  /**
7867
7835
  *
7868
7836
  * @type {ReportName}
@@ -8582,12 +8550,6 @@ export interface UsDrivingLicenceReport {
8582
8550
  * @memberof UsDrivingLicenceReport
8583
8551
  */
8584
8552
  'check_id'?: string;
8585
- /**
8586
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
8587
- * @type {Array<ReportDocument>}
8588
- * @memberof UsDrivingLicenceReport
8589
- */
8590
- 'documents'?: Array<ReportDocument>;
8591
8553
  /**
8592
8554
  *
8593
8555
  * @type {ReportName}
@@ -8870,11 +8832,11 @@ export interface WatchlistAmlBreakdownSanction {
8870
8832
  export interface WatchlistAmlProperties {
8871
8833
  /**
8872
8834
  * Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources.
8873
- * @type {Array<string>}
8835
+ * @type {Array<object>}
8874
8836
  * @memberof WatchlistAmlProperties
8875
8837
  * @deprecated
8876
8838
  */
8877
- 'records'?: Array<string>;
8839
+ 'records'?: Array<object>;
8878
8840
  }
8879
8841
  /**
8880
8842
  *
@@ -8924,12 +8886,6 @@ export interface WatchlistAmlReport {
8924
8886
  * @memberof WatchlistAmlReport
8925
8887
  */
8926
8888
  'check_id'?: string;
8927
- /**
8928
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
8929
- * @type {Array<ReportDocument>}
8930
- * @memberof WatchlistAmlReport
8931
- */
8932
- 'documents'?: Array<ReportDocument>;
8933
8889
  /**
8934
8890
  *
8935
8891
  * @type {ReportName}
@@ -9307,12 +9263,6 @@ export interface WatchlistEnhancedReport {
9307
9263
  * @memberof WatchlistEnhancedReport
9308
9264
  */
9309
9265
  'check_id'?: string;
9310
- /**
9311
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
9312
- * @type {Array<ReportDocument>}
9313
- * @memberof WatchlistEnhancedReport
9314
- */
9315
- 'documents'?: Array<ReportDocument>;
9316
9266
  /**
9317
9267
  *
9318
9268
  * @type {ReportName}
@@ -9592,12 +9542,6 @@ export interface WatchlistPepsOnlyReport {
9592
9542
  * @memberof WatchlistPepsOnlyReport
9593
9543
  */
9594
9544
  'check_id'?: string;
9595
- /**
9596
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
9597
- * @type {Array<ReportDocument>}
9598
- * @memberof WatchlistPepsOnlyReport
9599
- */
9600
- 'documents'?: Array<ReportDocument>;
9601
9545
  /**
9602
9546
  *
9603
9547
  * @type {ReportName}
@@ -9665,12 +9609,6 @@ export interface WatchlistSanctionsOnlyReport {
9665
9609
  * @memberof WatchlistSanctionsOnlyReport
9666
9610
  */
9667
9611
  'check_id'?: string;
9668
- /**
9669
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
9670
- * @type {Array<ReportDocument>}
9671
- * @memberof WatchlistSanctionsOnlyReport
9672
- */
9673
- 'documents'?: Array<ReportDocument>;
9674
9612
  /**
9675
9613
  *
9676
9614
  * @type {ReportName}
@@ -9723,11 +9661,11 @@ export interface WatchlistStandardBreakdown {
9723
9661
  export interface WatchlistStandardProperties {
9724
9662
  /**
9725
9663
  * Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources.
9726
- * @type {Array<string>}
9664
+ * @type {Array<object>}
9727
9665
  * @memberof WatchlistStandardProperties
9728
9666
  * @deprecated
9729
9667
  */
9730
- 'records'?: Array<string>;
9668
+ 'records'?: Array<object>;
9731
9669
  }
9732
9670
  /**
9733
9671
  *
@@ -9777,12 +9715,6 @@ export interface WatchlistStandardReport {
9777
9715
  * @memberof WatchlistStandardReport
9778
9716
  */
9779
9717
  'check_id'?: string;
9780
- /**
9781
- * Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
9782
- * @type {Array<ReportDocument>}
9783
- * @memberof WatchlistStandardReport
9784
- */
9785
- 'documents'?: Array<ReportDocument>;
9786
9718
  /**
9787
9719
  *
9788
9720
  * @type {ReportName}
@@ -10014,7 +9946,7 @@ export interface WebhookEventPayloadObject {
10014
9946
  * @type {string}
10015
9947
  * @memberof WebhookEventPayloadObject
10016
9948
  */
10017
- 'href': string;
9949
+ 'href'?: string;
10018
9950
  }
10019
9951
  /**
10020
9952
  * The resource affected by this event.
@@ -10112,6 +10044,12 @@ export interface WebhookEventPayloadResource {
10112
10044
  * @memberof WebhookEventPayloadResource
10113
10045
  */
10114
10046
  'error'?: WorkflowRunError;
10047
+ /**
10048
+ * Customer-provided user identifier.
10049
+ * @type {string}
10050
+ * @memberof WebhookEventPayloadResource
10051
+ */
10052
+ 'customer_user_id'?: string;
10115
10053
  }
10116
10054
  /**
10117
10055
  *
@@ -10152,7 +10090,6 @@ export declare const WebhookEventType: {
10152
10090
  readonly ReportAwaitingApproval: "report.awaiting_approval";
10153
10091
  readonly ReportCompleted: "report.completed";
10154
10092
  readonly WorkflowTimelineFileCreated: "workflow_timeline_file.created";
10155
- readonly WorkflowSignedEvidenceFileCreated: "workflow_signed_evidence_file.created";
10156
10093
  readonly WorkflowRunEvidenceFolderCreated: "workflow_run_evidence_folder.created";
10157
10094
  readonly UnknownDefaultOpenApi: "11184809";
10158
10095
  };
@@ -10846,6 +10783,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
10846
10783
  * @throws {RequiredError}
10847
10784
  */
10848
10785
  downloadMotionCaptureFrame: (motionCaptureId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10786
+ /**
10787
+ * Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
10788
+ * @summary Download NFC face
10789
+ * @param {string} documentId
10790
+ * @param {*} [options] Override http request option.
10791
+ * @throws {RequiredError}
10792
+ */
10793
+ downloadNfcFace: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10849
10794
  /**
10850
10795
  * Retrieves the signed document or application form depending on the file_id provided.
10851
10796
  * @summary Retrieves the signed document or application form
@@ -11115,10 +11060,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
11115
11060
  * @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
11116
11061
  * @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
11117
11062
  * @param {ListWorkflowRunsSortEnum} [sort] A string with the value \&#39;desc\&#39; or \&#39;asc\&#39; that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \&#39;desc\&#39;.
11063
+ * @param {string} [applicantId] the applicant\&#39;s id.
11118
11064
  * @param {*} [options] Override http request option.
11119
11065
  * @throws {RequiredError}
11120
11066
  */
11121
- listWorkflowRuns: (page?: number, status?: string, createdAtGt?: string, createdAtLt?: string, sort?: ListWorkflowRunsSortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11067
+ listWorkflowRuns: (page?: number, status?: string, createdAtGt?: string, createdAtLt?: string, sort?: ListWorkflowRunsSortEnum, applicantId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11122
11068
  /**
11123
11069
  * Run a health check on the Onfido API
11124
11070
  * @summary Ping
@@ -11199,7 +11145,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
11199
11145
  * @param {DocumentTypes} type The type of document
11200
11146
  * @param {string} applicantId The ID of the applicant whose document is being uploaded.
11201
11147
  * @param {FileTransfer} file The file to be uploaded.
11202
- * @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
11148
+ * @param {string} [fileType] The file type of the uploaded file
11203
11149
  * @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
11204
11150
  * @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
11205
11151
  * @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
@@ -11207,7 +11153,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
11207
11153
  * @param {*} [options] Override http request option.
11208
11154
  * @throws {RequiredError}
11209
11155
  */
11210
- uploadDocument: (type: DocumentTypes, applicantId: string, file: FileTransfer, fileType?: UploadDocumentFileTypeEnum, side?: UploadDocumentSideEnum, issuingCountry?: CountryCodes, validateImageQuality?: boolean, location?: LocationBuilder, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11156
+ uploadDocument: (type: DocumentTypes, applicantId: string, file: FileTransfer, fileType?: string, side?: UploadDocumentSideEnum, issuingCountry?: CountryCodes, validateImageQuality?: boolean, location?: LocationBuilder, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11211
11157
  /**
11212
11158
  * You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
11213
11159
  * @summary Upload ID photo
@@ -11403,6 +11349,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11403
11349
  * @throws {RequiredError}
11404
11350
  */
11405
11351
  downloadMotionCaptureFrame(motionCaptureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
11352
+ /**
11353
+ * Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
11354
+ * @summary Download NFC face
11355
+ * @param {string} documentId
11356
+ * @param {*} [options] Override http request option.
11357
+ * @throws {RequiredError}
11358
+ */
11359
+ downloadNfcFace(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
11406
11360
  /**
11407
11361
  * Retrieves the signed document or application form depending on the file_id provided.
11408
11362
  * @summary Retrieves the signed document or application form
@@ -11672,10 +11626,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11672
11626
  * @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
11673
11627
  * @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
11674
11628
  * @param {ListWorkflowRunsSortEnum} [sort] A string with the value \&#39;desc\&#39; or \&#39;asc\&#39; that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \&#39;desc\&#39;.
11629
+ * @param {string} [applicantId] the applicant\&#39;s id.
11675
11630
  * @param {*} [options] Override http request option.
11676
11631
  * @throws {RequiredError}
11677
11632
  */
11678
- listWorkflowRuns(page?: number, status?: string, createdAtGt?: string, createdAtLt?: string, sort?: ListWorkflowRunsSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkflowRun>>>;
11633
+ listWorkflowRuns(page?: number, status?: string, createdAtGt?: string, createdAtLt?: string, sort?: ListWorkflowRunsSortEnum, applicantId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkflowRun>>>;
11679
11634
  /**
11680
11635
  * Run a health check on the Onfido API
11681
11636
  * @summary Ping
@@ -11756,7 +11711,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11756
11711
  * @param {DocumentTypes} type The type of document
11757
11712
  * @param {string} applicantId The ID of the applicant whose document is being uploaded.
11758
11713
  * @param {FileTransfer} file The file to be uploaded.
11759
- * @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
11714
+ * @param {string} [fileType] The file type of the uploaded file
11760
11715
  * @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
11761
11716
  * @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
11762
11717
  * @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
@@ -11764,7 +11719,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11764
11719
  * @param {*} [options] Override http request option.
11765
11720
  * @throws {RequiredError}
11766
11721
  */
11767
- uploadDocument(type: DocumentTypes, applicantId: string, file: FileTransfer, fileType?: UploadDocumentFileTypeEnum, side?: UploadDocumentSideEnum, issuingCountry?: CountryCodes, validateImageQuality?: boolean, location?: LocationBuilder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Document>>;
11722
+ uploadDocument(type: DocumentTypes, applicantId: string, file: FileTransfer, fileType?: string, side?: UploadDocumentSideEnum, issuingCountry?: CountryCodes, validateImageQuality?: boolean, location?: LocationBuilder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Document>>;
11768
11723
  /**
11769
11724
  * You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
11770
11725
  * @summary Upload ID photo
@@ -11960,6 +11915,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
11960
11915
  * @throws {RequiredError}
11961
11916
  */
11962
11917
  downloadMotionCaptureFrame(motionCaptureId: string, options?: RawAxiosRequestConfig): AxiosPromise<FileTransfer>;
11918
+ /**
11919
+ * Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
11920
+ * @summary Download NFC face
11921
+ * @param {string} documentId
11922
+ * @param {*} [options] Override http request option.
11923
+ * @throws {RequiredError}
11924
+ */
11925
+ downloadNfcFace(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<FileTransfer>;
11963
11926
  /**
11964
11927
  * Retrieves the signed document or application form depending on the file_id provided.
11965
11928
  * @summary Retrieves the signed document or application form
@@ -12229,10 +12192,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
12229
12192
  * @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
12230
12193
  * @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
12231
12194
  * @param {ListWorkflowRunsSortEnum} [sort] A string with the value \&#39;desc\&#39; or \&#39;asc\&#39; that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \&#39;desc\&#39;.
12195
+ * @param {string} [applicantId] the applicant\&#39;s id.
12232
12196
  * @param {*} [options] Override http request option.
12233
12197
  * @throws {RequiredError}
12234
12198
  */
12235
- listWorkflowRuns(page?: number, status?: string, createdAtGt?: string, createdAtLt?: string, sort?: ListWorkflowRunsSortEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkflowRun>>;
12199
+ listWorkflowRuns(page?: number, status?: string, createdAtGt?: string, createdAtLt?: string, sort?: ListWorkflowRunsSortEnum, applicantId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkflowRun>>;
12236
12200
  /**
12237
12201
  * Run a health check on the Onfido API
12238
12202
  * @summary Ping
@@ -12313,7 +12277,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
12313
12277
  * @param {DocumentTypes} type The type of document
12314
12278
  * @param {string} applicantId The ID of the applicant whose document is being uploaded.
12315
12279
  * @param {FileTransfer} file The file to be uploaded.
12316
- * @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
12280
+ * @param {string} [fileType] The file type of the uploaded file
12317
12281
  * @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
12318
12282
  * @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
12319
12283
  * @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
@@ -12321,7 +12285,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
12321
12285
  * @param {*} [options] Override http request option.
12322
12286
  * @throws {RequiredError}
12323
12287
  */
12324
- uploadDocument(type: DocumentTypes, applicantId: string, file: FileTransfer, fileType?: UploadDocumentFileTypeEnum, side?: UploadDocumentSideEnum, issuingCountry?: CountryCodes, validateImageQuality?: boolean, location?: LocationBuilder, options?: RawAxiosRequestConfig): AxiosPromise<Document>;
12288
+ uploadDocument(type: DocumentTypes, applicantId: string, file: FileTransfer, fileType?: string, side?: UploadDocumentSideEnum, issuingCountry?: CountryCodes, validateImageQuality?: boolean, location?: LocationBuilder, options?: RawAxiosRequestConfig): AxiosPromise<Document>;
12325
12289
  /**
12326
12290
  * You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
12327
12291
  * @summary Upload ID photo
@@ -12540,6 +12504,15 @@ export declare class DefaultApi extends BaseAPI {
12540
12504
  * @memberof DefaultApi
12541
12505
  */
12542
12506
  downloadMotionCaptureFrame(motionCaptureId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
12507
+ /**
12508
+ * Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
12509
+ * @summary Download NFC face
12510
+ * @param {string} documentId
12511
+ * @param {*} [options] Override http request option.
12512
+ * @throws {RequiredError}
12513
+ * @memberof DefaultApi
12514
+ */
12515
+ downloadNfcFace(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
12543
12516
  /**
12544
12517
  * Retrieves the signed document or application form depending on the file_id provided.
12545
12518
  * @summary Retrieves the signed document or application form
@@ -12841,11 +12814,12 @@ export declare class DefaultApi extends BaseAPI {
12841
12814
  * @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
12842
12815
  * @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
12843
12816
  * @param {ListWorkflowRunsSortEnum} [sort] A string with the value \&#39;desc\&#39; or \&#39;asc\&#39; that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \&#39;desc\&#39;.
12817
+ * @param {string} [applicantId] the applicant\&#39;s id.
12844
12818
  * @param {*} [options] Override http request option.
12845
12819
  * @throws {RequiredError}
12846
12820
  * @memberof DefaultApi
12847
12821
  */
12848
- listWorkflowRuns(page?: number, status?: string, createdAtGt?: string, createdAtLt?: string, sort?: ListWorkflowRunsSortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkflowRun[], any>>;
12822
+ listWorkflowRuns(page?: number, status?: string, createdAtGt?: string, createdAtLt?: string, sort?: ListWorkflowRunsSortEnum, applicantId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkflowRun[], any>>;
12849
12823
  /**
12850
12824
  * Run a health check on the Onfido API
12851
12825
  * @summary Ping
@@ -12935,7 +12909,7 @@ export declare class DefaultApi extends BaseAPI {
12935
12909
  * @param {DocumentTypes} type The type of document
12936
12910
  * @param {string} applicantId The ID of the applicant whose document is being uploaded.
12937
12911
  * @param {FileTransfer} file The file to be uploaded.
12938
- * @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
12912
+ * @param {string} [fileType] The file type of the uploaded file
12939
12913
  * @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
12940
12914
  * @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
12941
12915
  * @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
@@ -12944,7 +12918,7 @@ export declare class DefaultApi extends BaseAPI {
12944
12918
  * @throws {RequiredError}
12945
12919
  * @memberof DefaultApi
12946
12920
  */
12947
- uploadDocument(type: DocumentTypes, applicantId: string, file: FileTransfer, fileType?: UploadDocumentFileTypeEnum, side?: UploadDocumentSideEnum, issuingCountry?: CountryCodes, validateImageQuality?: boolean, location?: LocationBuilder, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Document, any>>;
12921
+ uploadDocument(type: DocumentTypes, applicantId: string, file: FileTransfer, fileType?: string, side?: UploadDocumentSideEnum, issuingCountry?: CountryCodes, validateImageQuality?: boolean, location?: LocationBuilder, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Document, any>>;
12948
12922
  /**
12949
12923
  * You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
12950
12924
  * @summary Upload ID photo
@@ -12976,17 +12950,6 @@ export declare const ListWorkflowRunsSortEnum: {
12976
12950
  readonly UnknownDefaultOpenApi: "11184809";
12977
12951
  };
12978
12952
  export type ListWorkflowRunsSortEnum = typeof ListWorkflowRunsSortEnum[keyof typeof ListWorkflowRunsSortEnum];
12979
- /**
12980
- * @export
12981
- */
12982
- export declare const UploadDocumentFileTypeEnum: {
12983
- readonly Jpg: "jpg";
12984
- readonly Jpeg: "jpeg";
12985
- readonly Png: "png";
12986
- readonly Pdf: "pdf";
12987
- readonly UnknownDefaultOpenApi: "11184809";
12988
- };
12989
- export type UploadDocumentFileTypeEnum = typeof UploadDocumentFileTypeEnum[keyof typeof UploadDocumentFileTypeEnum];
12990
12953
  /**
12991
12954
  * @export
12992
12955
  */