"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 .soap12 suffix or ?format=soap12
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /soap12 HTTP/1.1
Host: api.sanctionssearch.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetClientGpg45 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Authentication>
<ApiUserId>String</ApiUserId>
<ApiUserKey>String</ApiUserKey>
<UserId>String</UserId>
</Authentication>
<Id>0</Id>
</GetClientGpg45>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetClientGpg45Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Data>
<ResponseStatus>
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StackTrace>String</StackTrace>
<Errors>
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
<Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value>String</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</Meta>
</ResponseError>
</Errors>
<Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Meta>
</ResponseStatus>
<Gpg45>
<claims>
<address>
<country_code>String</country_code>
<locality>String</locality>
<postal_code>String</postal_code>
<street xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</street>
</address>
<biometric_information>
<gpg45_biometric_information>
<attachments>
<gpg45_attachment>
<content>String</content>
<content_format>String</content_format>
<content_type>String</content_type>
<desc>String</desc>
</gpg45_attachment>
</attachments>
<biometric_modality>String</biometric_modality>
</gpg45_biometric_information>
</biometric_information>
<birthdate>String</birthdate>
<family_name>String</family_name>
<given_name>String</given_name>
<nationalities xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</nationalities>
</claims>
<verification>
<assurance_level>String</assurance_level>
<assurance_process>
<assurance_details>
<gpg45_assurance_details>
<assurance_classification>String</assurance_classification>
<assurance_type>String</assurance_type>
<evidence_ref>
<gpg45_evidence_ref>
<check_id>String</check_id>
<evidence_ref>
<evidence_classification>String</evidence_classification>
</evidence_ref>
</gpg45_evidence_ref>
</evidence_ref>
</gpg45_assurance_details>
</assurance_details>
<policy>String</policy>
<procedure>String</procedure>
</assurance_process>
<dvs_registration>
<contact_email>String</contact_email>
<name>String</name>
<registration_id>String</registration_id>
<website>String</website>
</dvs_registration>
<evidence>
<gpg45_evidence>
<document>
<attachments>
<gpg45_attachment>
<content>String</content>
<content_format>String</content_format>
<content_type>String</content_type>
<desc>String</desc>
</gpg45_attachment>
</attachments>
<check_details>
<gpg45_check_details>
<check_id>String</check_id>
<check_method>String</check_method>
<organisation>String</organisation>
<time>String</time>
</gpg45_check_details>
</check_details>
<document_details>
<date_of_expiry>String</date_of_expiry>
<date_of_issuance>String</date_of_issuance>
<document_number>String</document_number>
<issuer>
<country_code>String</country_code>
<jurisdiction>String</jurisdiction>
<name>String</name>
</issuer>
<type>String</type>
</document_details>
<type>String</type>
</document>
</gpg45_evidence>
</evidence>
<trust_framework>String</trust_framework>
</verification>
</Gpg45>
<Links>
<Self>String</Self>
</Links>
</Data>
</GetClientGpg45Response>
</soap12:Body>
</soap12:Envelope>