Skip to content

Commit

Permalink
Merge pull request #151 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-node after onfido-openapi-spec update (c72181c)
  • Loading branch information
dvacca-onfido authored Nov 19, 2024
2 parents faad510 + d52248d commit 7508232
Show file tree
Hide file tree
Showing 9 changed files with 797 additions and 122 deletions.
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "d180edd",
"long_sha": "d180eddd168dd95bf84bf7c8fe9f8c7e3c0c5494",
"version": "v4.1.0"
"short_sha": "c72181c",
"long_sha": "c72181cc5e450bf727fc5eae2639c58ba45831ac",
"version": "v4.2.0"
},
"release": "v4.1.0"
"release": "v4.2.0"
}
186 changes: 186 additions & 0 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3823,6 +3823,52 @@ export const DocumentTypes = {
VehicleRegistrationCertificate: 'vehicle_registration_certificate',
FormForAffixingTheVisa: 'form_for_affixing_the_visa',
IdentificationNumberDocument: 'identification_number_document',
AdoptionCertificate: 'adoption_certificate',
BankBuildingSocietyStatement: 'bank_building_society_statement',
BankStatement: 'bank_statement',
BenefitLetters: 'benefit_letters',
Cbt: 'cbt',
CertificateOfSponsorship: 'certificate_of_sponsorship',
CharacterReference: 'character_reference',
CivilPartnershipCertificate: 'civil_partnership_certificate',
CouncilTax: 'council_tax',
CreditCardStatement: 'credit_card_statement',
DeedPoll: 'deed_poll',
DivorceAbsoluteDecree: 'divorce_absolute_decree',
EducationalStatement: 'educational_statement',
ElectricityBill: 'electricity_bill',
GasBill: 'gas_bill',
GovernmentLetter: 'government_letter',
InternetBill: 'internet_bill',
MarriageCertificate: 'marriage_certificate',
MotorcycleInsurance: 'motorcycle_insurance',
NationalInsuranceCard: 'national_insurance_card',
NaturalisationCertificate: 'naturalisation_certificate',
NonUkDrivingLicence: 'non_uk_driving_licence',
P45P60: 'p45_p60',
Payslip: 'payslip',
PhoneBill: 'phone_bill',
ProfessionalIdentificationCard: 'professional_identification_card',
RightToWorkShareCodeResult: 'right_to_work_share_code_result',
StatementFact: 'statement_fact',
T4StudentUniversityTermDatesEvidence: 't4_student_university_term_dates_evidence',
UkBiometricResidencePermit: 'uk_biometric_residence_permit',
UkDrivingLicence: 'uk_driving_licence',
Unknown: 'unknown',
UtilityBill: 'utility_bill',
UtilityBillElectric: 'utility_bill_electric',
UtilityBillGas: 'utility_bill_gas',
UtilityBillOther: 'utility_bill_other',
WaterBill: 'water_bill',
AddressCertificate: 'address_certificate',
GeneralLetter: 'general_letter',
InsuranceStatement: 'insurance_statement',
PensionPropertyStatementLetter: 'pension_property_statement_letter',
MortgageStatement: 'mortgage_statement',
MobilePhoneBill: 'mobile_phone_bill',
IdentityDocumentWithAddress: 'identity_document_with_address',
ExchangeHouseStatement: 'exchange_house_statement',
AccommodationTenancyCertificate: 'accommodation_tenancy_certificate',
UnknownDefaultOpenApi: '11184809'
} as const;

Expand Down Expand Up @@ -5194,6 +5240,30 @@ export interface FacialSimilarityMotionReport {
* @memberof FacialSimilarityMotionReport
*/
'name': ReportName;
/**
* Array of objects with live photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityMotionReport
*/
'live_photos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with live video ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityMotionReport
*/
'live_videos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with motion capture ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityMotionReport
*/
'motion_captures'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with id photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityMotionReport
*/
'id_photos'?: Array<FacialSimilarityReportMedia>;
/**
*
* @type {FacialSimilarityMotionBreakdown}
Expand Down Expand Up @@ -5599,6 +5669,30 @@ export interface FacialSimilarityPhotoFullyAutoReport {
* @memberof FacialSimilarityPhotoFullyAutoReport
*/
'name': ReportName;
/**
* Array of objects with live photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityPhotoFullyAutoReport
*/
'live_photos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with live video ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityPhotoFullyAutoReport
*/
'live_videos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with motion capture ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityPhotoFullyAutoReport
*/
'motion_captures'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with id photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityPhotoFullyAutoReport
*/
'id_photos'?: Array<FacialSimilarityReportMedia>;
/**
*
* @type {FacialSimilarityPhotoFullyAutoBreakdown}
Expand Down Expand Up @@ -5687,6 +5781,30 @@ export interface FacialSimilarityPhotoReport {
* @memberof FacialSimilarityPhotoReport
*/
'name': ReportName;
/**
* Array of objects with live photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityPhotoReport
*/
'live_photos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with live video ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityPhotoReport
*/
'live_videos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with motion capture ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityPhotoReport
*/
'motion_captures'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with id photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityPhotoReport
*/
'id_photos'?: Array<FacialSimilarityReportMedia>;
/**
*
* @type {FacialSimilarityPhotoBreakdown}
Expand All @@ -5702,6 +5820,50 @@ export interface FacialSimilarityPhotoReport {
}


/**
*
* @export
* @interface FacialSimilarityReportMedia
*/
export interface FacialSimilarityReportMedia {
/**
* ID of uploaded biometric media to use.
* @type {string}
* @memberof FacialSimilarityReportMedia
*/
'id': string;
}
/**
*
* @export
* @interface FacialSimilarityReportShared
*/
export interface FacialSimilarityReportShared {
/**
* Array of objects with live photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityReportShared
*/
'live_photos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with live video ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityReportShared
*/
'live_videos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with motion capture ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityReportShared
*/
'motion_captures'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with id photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityReportShared
*/
'id_photos'?: Array<FacialSimilarityReportMedia>;
}
/**
*
* @export
Expand Down Expand Up @@ -5971,6 +6133,30 @@ export interface FacialSimilarityVideoReport {
* @memberof FacialSimilarityVideoReport
*/
'name': ReportName;
/**
* Array of objects with live photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityVideoReport
*/
'live_photos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with live video ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityVideoReport
*/
'live_videos'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with motion capture ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityVideoReport
*/
'motion_captures'?: Array<FacialSimilarityReportMedia>;
/**
* Array of objects with id photo ids that were used in the Onfido engine.
* @type {Array<FacialSimilarityReportMedia>}
* @memberof FacialSimilarityVideoReport
*/
'id_photos'?: Array<FacialSimilarityReportMedia>;
/**
*
* @type {FacialSimilarityVideoBreakdown}
Expand Down
2 changes: 1 addition & 1 deletion configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class Configuration {
this.baseOptions = {...{ timeout: 30_000 },
...param.baseOptions,
...{ headers: {...param.baseOptions?.headers,
...{'User-Agent': 'onfido-node/4.1.0'}}}};
...{'User-Agent': 'onfido-node/4.2.0'}}}};
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
}

Expand Down
Loading

0 comments on commit 7508232

Please sign in to comment.