Simplified.ID API: v2

<back to all web services

GetClientGpg45

Clients
The following routes are available for this service:
GET/clients/{Id}/gpg45/Get the GPG 45 (DVS data schema v1.0) projection for a client
"use strict";
export class Authentication {
    /** @param {{apiUserId?:string,apiUserKey?:string,userId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User) */
    apiUserId;
    /**
     * @type {string}
     * @description The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key) */
    apiUserKey;
    /**
     * @type {string}
     * @description The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id). */
    userId;
}
export class BaseRequest {
    /** @param {{authentication?:Authentication}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {Authentication}
     * @description The authentication credentials */
    authentication;
}
export class ResponseError {
    /** @param {{errorCode?:string,fieldName?:string,message?:string,meta?:{ [index:string]: string; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    errorCode;
    /** @type {string} */
    fieldName;
    /** @type {string} */
    message;
    /** @type {{ [index:string]: string; }} */
    meta;
}
export class ArrayOfResponseError extends Array {
    constructor(init) { super(init); Object.assign(this, init) }
}
export class ResponseStatus {
    /** @param {{errorCode?:string,message?:string,stackTrace?:string,errors?:ArrayOfResponseError,meta?:{ [index:string]: string; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    errorCode;
    /** @type {string} */
    message;
    /** @type {string} */
    stackTrace;
    /** @type {ArrayOfResponseError} */
    errors;
    /** @type {{ [index:string]: string; }} */
    meta;
}
export class BaseResponse {
    /** @param {{responseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {ResponseStatus}
     * @description The status of the response */
    responseStatus;
}
export class Links {
    /** @param {{self?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    self;
}
export class gpg45_address {
    /** @param {{street?:string[],locality?:string,postal_code?:string,country_code?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string[]}
     * @description Street address lines, most specific first */
    street;
    /**
     * @type {string}
     * @description City / town / district */
    locality;
    /**
     * @type {string}
     * @description Postcode */
    postal_code;
    /**
     * @type {string}
     * @description Country code (ISO 3166-1 alpha-3) */
    country_code;
}
export class gpg45_attachment {
    /** @param {{desc?:string,content_type?:string,content_format?:string,content?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description A description of the attachment */
    desc;
    /**
     * @type {string}
     * @description The IANA media type of the data (e.g. image/jpeg) */
    content_type;
    /**
     * @type {string}
     * @description The encoding format: base64 or byte_data */
    content_format;
    /**
     * @type {string}
     * @description The base64-encoded data */
    content;
}
export class gpg45_biometric_information {
    /** @param {{biometric_modality?:string,attachments?:gpg45_attachment[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The biometric modality: face, fingerprint, voice or iris */
    biometric_modality;
    /**
     * @type {gpg45_attachment[]}
     * @description The captured biometric data */
    attachments;
}
export class gpg45_claims {
    /** @param {{given_name?:string,family_name?:string,birthdate?:string,nationalities?:string[],address?:gpg45_address,biometric_information?:gpg45_biometric_information[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The individual's given name(s) */
    given_name;
    /**
     * @type {string}
     * @description The individual's family / surname */
    family_name;
    /**
     * @type {string}
     * @description The individual's date of birth (ISO 8601, yyyy-MM-dd) */
    birthdate;
    /**
     * @type {string[]}
     * @description Countries of citizenship (ISO 3166-1 alpha-3) */
    nationalities;
    /**
     * @type {gpg45_address}
     * @description The individual's address */
    address;
    /**
     * @type {gpg45_biometric_information[]}
     * @description Biometric characteristics of the person making the claim */
    biometric_information;
}
export class gpg45_dvs_registration {
    /** @param {{registration_id?:string,name?:string,contact_email?:string,website?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The service's DVS register reference */
    registration_id;
    /**
     * @type {string}
     * @description The registered name of the certified service */
    name;
    /**
     * @type {string}
     * @description Contact email for the certified service */
    contact_email;
    /**
     * @type {string}
     * @description Website of the certified service */
    website;
}
export class gpg45_authority {
    /** @param {{name?:string,country_code?:string,jurisdiction?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The name of the authority */
    name;
    /**
     * @type {string}
     * @description The country code where the authority is based (ISO 3166-1 alpha-2) */
    country_code;
    /**
     * @type {string}
     * @description The authority's jurisdiction */
    jurisdiction;
}
export class gpg45_document_details {
    /** @param {{type?:string,document_number?:string,date_of_issuance?:string,date_of_expiry?:string,issuer?:gpg45_authority}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The GPG 45 document_type enumeration value */
    type;
    /**
     * @type {string}
     * @description The document's reference / identification number */
    document_number;
    /**
     * @type {string}
     * @description The date the document was issued (ISO 8601) */
    date_of_issuance;
    /**
     * @type {string}
     * @description The date the document expires (ISO 8601) */
    date_of_expiry;
    /**
     * @type {gpg45_authority}
     * @description The authority that issued the document */
    issuer;
}
export class gpg45_check_details {
    /** @param {{check_method?:string,check_id?:string,time?:string,organisation?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data */
    check_method;
    /**
     * @type {string}
     * @description A unique reference for this check, matched by assurance_details evidence_ref entries */
    check_id;
    /**
     * @type {string}
     * @description When the check was performed (ISO 8601 timestamp) */
    time;
    /**
     * @type {string}
     * @description The organisation that performed the check */
    organisation;
}
export class gpg45_document {
    /** @param {{type?:string,document_details?:gpg45_document_details,attachments?:gpg45_attachment[],check_details?:gpg45_check_details[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Always 'document' */
    type;
    /**
     * @type {gpg45_document_details}
     * @description Details about the document itself */
    document_details;
    /**
     * @type {gpg45_attachment[]}
     * @description Copies of the document */
    attachments;
    /**
     * @type {gpg45_check_details[]}
     * @description The checks performed on the document */
    check_details;
}
export class gpg45_evidence {
    /** @param {{document?:gpg45_document}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {gpg45_document}
     * @description The document used to prove the claim */
    document;
}
export class gpg45_evidence_metadata {
    /** @param {{evidence_classification?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The evidence classification, where applicable */
    evidence_classification;
}
export class gpg45_evidence_ref {
    /** @param {{check_id?:string,evidence_ref?:gpg45_evidence_metadata}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The check_id of the check that produced this assurance */
    check_id;
    /**
     * @type {gpg45_evidence_metadata}
     * @description Additional metadata about how the evidence supports the assurance */
    evidence_ref;
}
export class gpg45_assurance_details {
    /** @param {{assurance_type?:string,assurance_classification?:string,evidence_ref?:gpg45_evidence_ref[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The type of check: validation, verification, counter_fraud or activity_history */
    assurance_type;
    /**
     * @type {string}
     * @description The GPG 45 score achieved for this check: score_1 to score_4 */
    assurance_classification;
    /**
     * @type {gpg45_evidence_ref[]}
     * @description The checks that produced this assurance, matched by check_id */
    evidence_ref;
}
export class gpg45_assurance_process {
    /** @param {{policy?:string,procedure?:string,assurance_details?:gpg45_assurance_details[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Always 'gpg45' for the DVS trust framework */
    policy;
    /**
     * @type {string}
     * @description The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met */
    procedure;
    /**
     * @type {gpg45_assurance_details[]}
     * @description How each assurance process was satisfied */
    assurance_details;
}
export class gpg45_verification {
    /** @param {{trust_framework?:string,dvs_registration?:gpg45_dvs_registration,evidence?:gpg45_evidence[],assurance_level?:string,assurance_process?:gpg45_assurance_process}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Always 'uk_dvstf' for the UK DVS trust framework */
    trust_framework;
    /**
     * @type {gpg45_dvs_registration}
     * @description The certified service's entry in the DVS register */
    dvs_registration;
    /**
     * @type {gpg45_evidence[]}
     * @description The evidence used to prove the claim */
    evidence;
    /**
     * @type {string}
     * @description The GPG 45 confidence level achieved: low, medium, high or very_high */
    assurance_level;
    /**
     * @type {gpg45_assurance_process}
     * @description The assurance policy and procedure followed */
    assurance_process;
}
export class Gpg45Projection {
    /** @param {{claims?:gpg45_claims,verification?:gpg45_verification}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {gpg45_claims}
     * @description The claimed identity information (GPG 45 'claims') */
    claims;
    /**
     * @type {gpg45_verification}
     * @description How the claims were proven (GPG 45 'verification'). Null until the client is Verified */
    verification;
}
export class GetClientGpg45Data extends BaseResponse {
    /** @param {{links?:Links,gpg45?:Gpg45Projection,responseStatus?:ResponseStatus}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /**
     * @type {Links}
     * @description Links related to this client's GPG 45 projection */
    links;
    /**
     * @type {Gpg45Projection}
     * @description The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification' */
    gpg45;
}
export class GetClientGpg45Response {
    /** @param {{data?:GetClientGpg45Data}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {GetClientGpg45Data} */
    data;
}
export class GetClientGpg45 extends BaseRequest {
    /** @param {{id?:number,authentication?:Authentication}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {number} */
    id;
}

JavaScript GetClientGpg45 DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /clients/{Id}/gpg45/ HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":{"links":{"self":"String"},"gpg45":{"claims":{"given_name":"String","family_name":"String","birthdate":"String","nationalities":["String"],"address":{"street":["String"],"locality":"String","postal_code":"String","country_code":"String"},"biometric_information":[{"biometric_modality":"String","attachments":[{"desc":"String","content_type":"String","content_format":"String","content":"String"}]}]},"verification":{"trust_framework":"String","dvs_registration":{"registration_id":"String","name":"String","contact_email":"String","website":"String"},"evidence":[{"document":{"type":"String","document_details":{"type":"String","document_number":"String","date_of_issuance":"String","date_of_expiry":"String","issuer":{"name":"String","country_code":"String","jurisdiction":"String"}},"attachments":[{"desc":"String","content_type":"String","content_format":"String","content":"String"}],"check_details":[{"check_method":"String","check_id":"String","time":"String","organisation":"String"}]}}],"assurance_level":"String","assurance_process":{"policy":"String","procedure":"String","assurance_details":[{"assurance_type":"String","assurance_classification":"String","evidence_ref":[{"check_id":"String","evidence_ref":{"evidence_classification":"String"}}]}]}}},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}