diff --git a/rt-rfid-binary-data.yml b/rt-rfid-binary-data.yml index 05943dc..6fa8dbf 100644 --- a/rt-rfid-binary-data.yml +++ b/rt-rfid-binary-data.yml @@ -596,8 +596,6 @@ components: description: "Structure is used to store information about the numeric field (4 bytes) that is a part of one of the informational data groups." type: object - required: - - Data properties: Type: type: integer diff --git a/rt-vds-data.yml b/rt-vds-data.yml new file mode 100644 index 0000000..e8b882c --- /dev/null +++ b/rt-vds-data.yml @@ -0,0 +1,60 @@ +openapi: 3.0.4 +components: + schemas: + VDSDataItem: + title: "VDSDataItem" + type: object + required: + - dftVDS + properties: + dftVDS: + $ref: "#/components/schemas/VDSData" + + VDSData: + title: "VDSData" + type: object + properties: + Certificate: + type: string + CertificateChain: + type: array + items: + $ref: "./rt-rfid-binary-data.yml#/components/schemas/RfidCertificateEx" + DocFeatures: + type: array + items: + $ref: "#/components/schemas/DocFeature" + DocIssueDate: + type: string + DocType: + type: integer + FeatureRef: + type: integer + IssuingCountry: + type: string + Notifications: + type: array + items: + type: integer + Signature: + $ref: "./rt-rfid-binary-data.yml#/components/schemas/TrfFtBytes" + SignatureDate: + type: string + Signer: + type: string + Type: + type: integer + Version: + type: integer + + DocFeature: + title: "DocFeature" + type: object + required: + - Type + - Data + properties: + Type: + type: number + Data: + $ref: "./rt-rfid-binary-data.yml#/components/schemas/TrfFtBytes" diff --git a/rt-vds-nc-data.yml b/rt-vds-nc-data.yml new file mode 100644 index 0000000..3f849ea --- /dev/null +++ b/rt-vds-nc-data.yml @@ -0,0 +1,94 @@ +openapi: 3.0.4 +components: + schemas: + VDSNCDataItem: + title: "VDSNCDataItem" + type: object + required: + - dftVDS_NC + properties: + dftVDS_NC: + $ref: "#/components/schemas/VDSNCData" + + VDSNCData: + title: "VDSNCData" + type: object + properties: + Certificate: + $ref: "./rt-rfid-binary-data.yml#/components/schemas/TrfFtBytes" + CertificateChain: + type: array + items: + $ref: "./rt-rfid-binary-data.yml#/components/schemas/RfidCertificateEx" + IssuingCountry: + type: string + Message: + $ref: "#/components/schemas/Message" + Notifications: + type: array + items: + type: integer + Signature: + $ref: "./rt-rfid-binary-data.yml#/components/schemas/TrfFtBytes" + SignatureAlg: + type: string + Type: + type: string + Version: + type: integer + + Message: + title: "Message" + type: object + properties: + pid: + $ref: "#/components/schemas/PID" + uvci: + type: string + ve: + type: array + items: + $ref: "#/components/schemas/VEItem" + + PID: + title: "PID" + type: object + properties: + dob: + type: string + i: + type: string + n: + type: string + sex: + type: string + + VEItem: + title: "VEItem" + type: object + properties: + des: + type: string + dis: + type: string + nam: + type: string + vd: + type: array + items: + $ref: "#/components/schemas/VDItem" + + VDItem: + title: "VDItem" + type: object + properties: + adm: + type: string + ctr: + type: string + dvc: + type: string + lot: + type: string + seq: + type: integer diff --git a/rt.yml b/rt.yml index 3752c53..5b1a636 100644 --- a/rt.yml +++ b/rt.yml @@ -47,6 +47,8 @@ components: - 104 - 105 - 109 + - 124 + - 125 x-enum-descriptions: - "Contains cropped and rotated with perspective compensation image of document. Single input image can contain multiple document side/pages, which will be returned as separated results. Most of coordinates in other types defined on that image" - "Contains MRZ OCR results" @@ -84,6 +86,8 @@ components: - "Contains RFID binary data" - "Contains RFID original graphics data" - "Digital Travel Credential data" + - "Contains result of VDS NC" + - "Contains result of VDS" x-enum-varnames: - "DOCUMENT_IMAGE" - "MRZ_TEXT" @@ -121,6 +125,8 @@ components: - "RFID_BINARY_DATA" - "RFID_ORIGINAL_GRAPHICS" - "DTC_VC" + - "VDS_NC" + - "VDS" ResultItem: title: "ResultItem" @@ -178,6 +184,8 @@ components: 104: "DocumentBinaryInfoResult" 105: "RFIDGraphicsInfoResult" 109: "ByteArrayResult" + 124: "VDSNCDataResult" + 125: "VDSDataResult" ContainerList: title: "ContainerList" @@ -217,6 +225,8 @@ components: - $ref: "#/components/schemas/MRZTestQualityResult" - $ref: "#/components/schemas/RFIDGraphicsInfoResult" - $ref: "#/components/schemas/RFIDTextDataResult" + - $ref: "#/components/schemas/VDSNCDataResult" + - $ref: "#/components/schemas/VDSDataResult" StatusResult: title: "StatusResult" @@ -380,3 +390,15 @@ components: allOf: - $ref: "#/components/schemas/ResultItem" - $ref: "./rt-rfid-text-data.yml#/components/schemas/RFIDDocVisualExtendedInfoItem" + + VDSNCDataResult: + title: "VDSNCDataResult" + allOf: + - $ref: "#/components/schemas/ResultItem" + - $ref: "./rt-vds-nc-data.yml#/components/schemas/VDSNCDataItem" + + VDSDataResult: + title: "VDSDataResult" + allOf: + - $ref: "#/components/schemas/ResultItem" + - $ref: "./rt-vds-data.yml#/components/schemas/VDSDataItem"