@keetanetwork/anchor 0.0.14 → 0.0.16
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/lib/certificates.d.ts.map +1 -1
- package/lib/certificates.js +20 -100
- package/lib/certificates.js.map +1 -1
- package/lib/http-server.js +1 -1
- package/lib/http-server.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/log/index.d.ts +6 -57
- package/lib/log/index.d.ts.map +1 -1
- package/lib/log/index.js +5 -205
- package/lib/log/index.js.map +1 -1
- package/lib/log/target_console.d.ts +3 -11
- package/lib/log/target_console.d.ts.map +1 -1
- package/lib/log/target_console.js +3 -42
- package/lib/log/target_console.js.map +1 -1
- package/lib/resolver.js +22 -22
- package/lib/uri.d.ts +28 -0
- package/lib/uri.d.ts.map +1 -0
- package/lib/uri.js +100 -0
- package/lib/uri.js.map +1 -0
- package/lib/utils/asn1.d.ts +9 -1
- package/lib/utils/asn1.d.ts.map +1 -1
- package/lib/utils/asn1.js +1413 -0
- package/lib/utils/asn1.js.map +1 -1
- package/lib/utils/buffer.d.ts +1 -1
- package/lib/utils/buffer.d.ts.map +1 -1
- package/lib/utils/buffer.js +8 -2
- package/lib/utils/buffer.js.map +1 -1
- package/lib/utils/external.d.ts +43 -0
- package/lib/utils/external.d.ts.map +1 -0
- package/lib/utils/external.js +115 -0
- package/lib/utils/external.js.map +1 -0
- package/npm-shrinkwrap.json +9 -9
- package/package.json +2 -2
- package/services/asset-movement/common.js +7 -7
- package/services/kyc/iso20022.generated.d.ts +89 -28
- package/services/kyc/iso20022.generated.d.ts.map +1 -1
- package/services/kyc/iso20022.generated.js +191 -88
- package/services/kyc/iso20022.generated.js.map +1 -1
- package/services/kyc/oids.generated.d.ts +24 -9
- package/services/kyc/oids.generated.d.ts.map +1 -1
- package/services/kyc/oids.generated.js +38 -15
- package/services/kyc/oids.generated.js.map +1 -1
- package/services/kyc/utils/generate-kyc-schema.js +305 -75
- package/services/kyc/utils/generate-kyc-schema.js.map +1 -1
- package/lib/log/common.d.ts +0 -35
- package/lib/log/common.d.ts.map +0 -1
- package/lib/log/common.js +0 -19
- package/lib/log/common.js.map +0 -1
|
@@ -39,6 +39,9 @@ export type NamePrefixCode = 'DOCT' | 'MIST' | 'MISS' | 'MIKS' | 'MME';
|
|
|
39
39
|
/** Preferred contact method */
|
|
40
40
|
/** OID: 1.3.6.1.4.1.62675.1.9.0 */
|
|
41
41
|
export type PreferredContactMethodCode = 'LETT' | 'MAIL' | 'PHON' | 'FAXX' | 'CELL';
|
|
42
|
+
/** Person identification scheme name proprietary values */
|
|
43
|
+
/** OID: 1.3.6.1.4.1.62675.1.8.1.1.0 */
|
|
44
|
+
export type PersonIdentificationSchemeNameProprietary = 'DRLC' | 'CPPT' | 'ARNU' | 'SSN' | 'TXID' | 'VISA' | 'WPPT';
|
|
42
45
|
/** Address type classification */
|
|
43
46
|
/** OID: 1.3.6.1.4.1.62675.1.2.10 */
|
|
44
47
|
export type AddressType = string;
|
|
@@ -47,7 +50,7 @@ export type AddressType = string;
|
|
|
47
50
|
export type OrganizationIdentificationSchemeNameChoice = string;
|
|
48
51
|
/** Person identification scheme name */
|
|
49
52
|
/** OID: 1.3.6.1.4.1.62675.1.8.1.1 */
|
|
50
|
-
export type PersonIdentificationSchemeNameChoice = string;
|
|
53
|
+
export type PersonIdentificationSchemeNameChoice = string | PersonIdentificationSchemeNameProprietary;
|
|
51
54
|
/** Generic organization identification */
|
|
52
55
|
/** OID: 1.3.6.1.4.1.62675.1.8.0.1 */
|
|
53
56
|
export interface GenericOrganizationIdentification {
|
|
@@ -72,8 +75,6 @@ export interface OrganizationIdentificationOtherChoice {
|
|
|
72
75
|
}
|
|
73
76
|
export type OrganizationIdentificationChoice = OrganizationIdentificationBicChoice | OrganizationIdentificationLeiChoice | OrganizationIdentificationOtherChoice;
|
|
74
77
|
export type OrganizationIdentification = OrganizationIdentificationChoice[];
|
|
75
|
-
export declare const OrganizationIdentificationSchema: ASN1.Schema;
|
|
76
|
-
export declare const OrganizationIdentificationFields: readonly ["bic", "lei", "other"];
|
|
77
78
|
/** Generic person identification */
|
|
78
79
|
/** OID: 1.3.6.1.4.1.62675.1.8.1.0 */
|
|
79
80
|
export interface GenericPersonIdentification {
|
|
@@ -93,8 +94,6 @@ export interface PersonIdentificationOtherChoice {
|
|
|
93
94
|
}
|
|
94
95
|
export type PersonIdentificationChoice = PersonIdentificationDateAndPlaceOfBirthChoice | PersonIdentificationOtherChoice;
|
|
95
96
|
export type PersonIdentification = PersonIdentificationChoice[];
|
|
96
|
-
export declare const PersonIdentificationSchema: ASN1.Schema;
|
|
97
|
-
export declare const PersonIdentificationFields: readonly ["dateAndPlaceOfBirth", "other"];
|
|
98
97
|
/** Other contact method */
|
|
99
98
|
/** OID: 1.3.6.1.4.1.62675.1.9.1 */
|
|
100
99
|
export interface OtherContact {
|
|
@@ -113,8 +112,12 @@ export declare const GenericOrganizationIdentificationSchema: ASN1.Schema;
|
|
|
113
112
|
export declare const GenericPersonIdentificationSchema: ASN1.Schema;
|
|
114
113
|
/** ASN.1 schema for OtherContact */
|
|
115
114
|
export declare const OtherContactSchema: ASN1.Schema;
|
|
116
|
-
/** ASN.1 schema for
|
|
117
|
-
export declare const
|
|
115
|
+
/** ASN.1 schema for OrganizationIdentification */
|
|
116
|
+
export declare const OrganizationIdentificationSchema: ASN1.Schema;
|
|
117
|
+
export declare const OrganizationIdentificationFields: readonly ["bic", "lei", "other"];
|
|
118
|
+
/** ASN.1 schema for PersonIdentification */
|
|
119
|
+
export declare const PersonIdentificationSchema: ASN1.Schema;
|
|
120
|
+
export declare const PersonIdentificationFields: readonly ["dateAndPlaceOfBirth", "other"];
|
|
118
121
|
/** Person's full name */
|
|
119
122
|
/** OID: 1.3.6.1.4.1.62675.1.0 */
|
|
120
123
|
export type FullName = string;
|
|
@@ -172,7 +175,10 @@ export type Id = string;
|
|
|
172
175
|
export type Issuer = string;
|
|
173
176
|
/** Entity type (organization or person) */
|
|
174
177
|
/** OID: 1.3.6.1.4.1.62675.1.8 */
|
|
175
|
-
export
|
|
178
|
+
export interface EntityType {
|
|
179
|
+
organization?: GenericOrganizationIdentification[];
|
|
180
|
+
person?: GenericPersonIdentification[];
|
|
181
|
+
}
|
|
176
182
|
/** Contact details */
|
|
177
183
|
/** OID: 1.3.6.1.4.1.62675.1.9 */
|
|
178
184
|
export interface ContactDetails {
|
|
@@ -192,32 +198,77 @@ export interface ContactDetails {
|
|
|
192
198
|
/** Nationality */
|
|
193
199
|
/** OID: 1.3.6.1.4.1.62675.1.10 */
|
|
194
200
|
export type Nationality = string;
|
|
195
|
-
/**
|
|
201
|
+
/** Generic document structure with metadata */
|
|
196
202
|
/** OID: 1.3.6.1.4.1.62675.1.11 */
|
|
197
203
|
export interface Document {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
documentNumber: string;
|
|
205
|
+
front?: Reference;
|
|
206
|
+
back?: Reference;
|
|
207
|
+
selfie?: Reference;
|
|
208
|
+
fullName?: string;
|
|
209
|
+
firstName?: string;
|
|
210
|
+
lastName?: string;
|
|
211
|
+
dob?: Date;
|
|
212
|
+
gender?: string;
|
|
213
|
+
address?: Address;
|
|
214
|
+
expiresAt?: Date;
|
|
215
|
+
issuedAt?: Date;
|
|
216
|
+
issuingState?: string;
|
|
217
|
+
issuingCountry?: string;
|
|
218
|
+
refNumber?: string;
|
|
219
|
+
nationality?: string;
|
|
220
|
+
curp?: string;
|
|
221
|
+
claveDeElector?: string;
|
|
222
|
+
classifiedDocumentType?: string;
|
|
223
|
+
curpValidationResponse?: string;
|
|
224
|
+
sambaActivityHistoryResponse?: string;
|
|
205
225
|
}
|
|
206
|
-
/** Driver's license
|
|
226
|
+
/** Driver's license document */
|
|
207
227
|
/** OID: 1.3.6.1.4.1.62675.1.11.0 */
|
|
208
|
-
export type
|
|
209
|
-
/**
|
|
228
|
+
export type DocumentDriversLicense = Document;
|
|
229
|
+
/** ID card document */
|
|
210
230
|
/** OID: 1.3.6.1.4.1.62675.1.11.1 */
|
|
211
|
-
export type
|
|
231
|
+
export type DocumentIdCard = Document;
|
|
212
232
|
/** Passport document */
|
|
213
233
|
/** OID: 1.3.6.1.4.1.62675.1.11.2 */
|
|
214
234
|
export type DocumentPassport = Document;
|
|
235
|
+
/** Passport card document */
|
|
236
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.3 */
|
|
237
|
+
export type DocumentPassportCard = Document;
|
|
238
|
+
/** Permit document */
|
|
239
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.4 */
|
|
240
|
+
export type DocumentPermit = Document;
|
|
241
|
+
/** Visa document */
|
|
242
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.5 */
|
|
243
|
+
export type DocumentVisa = Document;
|
|
244
|
+
/** Residence document */
|
|
245
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.6 */
|
|
246
|
+
export type DocumentResidenceDocument = Document;
|
|
247
|
+
/** DigestInfo from RFC 3447 */
|
|
248
|
+
export interface DigestInfo {
|
|
249
|
+
digestAlgorithm: ASN1.ASN1OID;
|
|
250
|
+
digest: Buffer;
|
|
251
|
+
}
|
|
252
|
+
export declare const DigestInfoSchema: ASN1.Schema;
|
|
253
|
+
/** External reference pointer */
|
|
254
|
+
export interface ExternalReference {
|
|
255
|
+
url: string;
|
|
256
|
+
contentType: string;
|
|
257
|
+
}
|
|
258
|
+
export declare const ExternalReferenceSchema: ASN1.Schema;
|
|
259
|
+
/** Reference */
|
|
260
|
+
export interface Reference {
|
|
261
|
+
external: ExternalReference;
|
|
262
|
+
digest: DigestInfo;
|
|
263
|
+
encryptionAlgorithm: ASN1.ASN1OID;
|
|
264
|
+
}
|
|
265
|
+
export declare const ReferenceSchema: ASN1.Schema;
|
|
215
266
|
/** Alias for DateOfBirth */
|
|
216
267
|
export type BirthDate = DateOfBirth;
|
|
217
268
|
/** Alias for Email */
|
|
218
269
|
export type EmailAddress = Email;
|
|
219
270
|
/** Union type of all sensitive attribute types */
|
|
220
|
-
export type SensitiveAttributeType = FullName | FirstName | LastName | MiddleName | DateOfBirth | Address | Email | PhoneNumber | DateAndPlaceOfBirth | JobTitle | JobResponsibility | Id | Issuer | EntityType | ContactDetails | Nationality | Document |
|
|
271
|
+
export type SensitiveAttributeType = FullName | FirstName | LastName | MiddleName | DateOfBirth | Address | Email | PhoneNumber | DateAndPlaceOfBirth | JobTitle | JobResponsibility | Id | Issuer | EntityType | ContactDetails | Nationality | Document | DocumentDriversLicense | DocumentIdCard | DocumentPassport | DocumentPassportCard | DocumentPermit | DocumentVisa | DocumentResidenceDocument;
|
|
221
272
|
/** Map of attribute name to acceptable input type for CertificateBuilder.setAttribute */
|
|
222
273
|
export interface CertificateAttributeValueMap {
|
|
223
274
|
'fullName': FullName;
|
|
@@ -237,9 +288,13 @@ export interface CertificateAttributeValueMap {
|
|
|
237
288
|
'contactDetails': ContactDetails;
|
|
238
289
|
'nationality': Nationality;
|
|
239
290
|
'document': Document;
|
|
240
|
-
'
|
|
241
|
-
'
|
|
291
|
+
'documentDriversLicense': DocumentDriversLicense;
|
|
292
|
+
'documentIdCard': DocumentIdCard;
|
|
242
293
|
'documentPassport': DocumentPassport;
|
|
294
|
+
'documentPassportCard': DocumentPassportCard;
|
|
295
|
+
'documentPermit': DocumentPermit;
|
|
296
|
+
'documentVisa': DocumentVisa;
|
|
297
|
+
'documentResidenceDocument': DocumentResidenceDocument;
|
|
243
298
|
}
|
|
244
299
|
/** Helper generic to get attribute value type by name */
|
|
245
300
|
export type CertificateAttributeValue<Name extends keyof CertificateAttributeValueMap> = CertificateAttributeValueMap[Name];
|
|
@@ -247,9 +302,11 @@ export declare const AddressFields: readonly ["addressLines", "addressType", "bu
|
|
|
247
302
|
export declare const AddressSchema: ASN1.Schema;
|
|
248
303
|
export declare const DateAndPlaceOfBirthFields: readonly ["birthDate", "cityOfBirth", "countryOfBirth", "provinceOfBirth"];
|
|
249
304
|
export declare const DateAndPlaceOfBirthSchema: ASN1.Schema;
|
|
305
|
+
export declare const EntityTypeFields: readonly ["organization", "person"];
|
|
306
|
+
export declare const EntityTypeSchema: ASN1.Schema;
|
|
250
307
|
export declare const ContactDetailsFields: readonly ["department", "emailAddress", "emailPurpose", "faxNumber", "fullName", "jobResponsibility", "jobTitle", "mobileNumber", "namePrefix", "other", "phoneNumber", "preferredMethod"];
|
|
251
308
|
export declare const ContactDetailsSchema: ASN1.Schema;
|
|
252
|
-
export declare const DocumentFields: readonly ["
|
|
309
|
+
export declare const DocumentFields: readonly ["documentNumber", "front", "back", "selfie", "fullName", "firstName", "lastName", "dob", "gender", "address", "expiresAt", "issuedAt", "issuingState", "issuingCountry", "refNumber", "nationality", "curp", "claveDeElector", "classifiedDocumentType", "curpValidationResponse", "sambaActivityHistoryResponse"];
|
|
253
310
|
export declare const DocumentSchema: ASN1.Schema;
|
|
254
311
|
export declare const CertificateAttributeOIDDB: {
|
|
255
312
|
readonly fullName: "1.3.6.1.4.1.62675.1.0";
|
|
@@ -269,13 +326,17 @@ export declare const CertificateAttributeOIDDB: {
|
|
|
269
326
|
readonly contactDetails: "1.3.6.1.4.1.62675.1.9";
|
|
270
327
|
readonly nationality: "1.3.6.1.4.1.62675.1.10";
|
|
271
328
|
readonly document: "1.3.6.1.4.1.62675.1.11";
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
329
|
+
readonly documentDriversLicense: "1.3.6.1.4.1.62675.1.11.0";
|
|
330
|
+
readonly documentIdCard: "1.3.6.1.4.1.62675.1.11.1";
|
|
274
331
|
readonly documentPassport: "1.3.6.1.4.1.62675.1.11.2";
|
|
332
|
+
readonly documentPassportCard: "1.3.6.1.4.1.62675.1.11.3";
|
|
333
|
+
readonly documentPermit: "1.3.6.1.4.1.62675.1.11.4";
|
|
334
|
+
readonly documentVisa: "1.3.6.1.4.1.62675.1.11.5";
|
|
335
|
+
readonly documentResidenceDocument: "1.3.6.1.4.1.62675.1.11.6";
|
|
275
336
|
};
|
|
276
|
-
export declare const SENSITIVE_CERTIFICATE_ATTRIBUTES: readonly ["fullName", "firstName", "lastName", "middleName", "dateOfBirth", "address", "email", "phoneNumber", "dateAndPlaceOfBirth", "jobTitle", "jobResponsibility", "id", "issuer", "entityType", "contactDetails", "nationality", "document", "
|
|
337
|
+
export declare const SENSITIVE_CERTIFICATE_ATTRIBUTES: readonly ["fullName", "firstName", "lastName", "middleName", "dateOfBirth", "address", "email", "phoneNumber", "dateAndPlaceOfBirth", "jobTitle", "jobResponsibility", "id", "issuer", "entityType", "contactDetails", "nationality", "document", "documentDriversLicense", "documentIdCard", "documentPassport", "documentPassportCard", "documentPermit", "documentVisa", "documentResidenceDocument"];
|
|
277
338
|
export type SensitiveCertificateAttributeNames = typeof SENSITIVE_CERTIFICATE_ATTRIBUTES[number];
|
|
278
|
-
export declare const SensitiveCertificateAttributeNames: readonly ["FullName", "FirstName", "LastName", "MiddleName", "DateOfBirth", "Address", "Email", "PhoneNumber", "DateAndPlaceOfBirth", "JobTitle", "JobResponsibility", "Id", "Issuer", "EntityType", "ContactDetails", "Nationality", "Document", "
|
|
339
|
+
export declare const SensitiveCertificateAttributeNames: readonly ["FullName", "FirstName", "LastName", "MiddleName", "DateOfBirth", "Address", "Email", "PhoneNumber", "DateAndPlaceOfBirth", "JobTitle", "JobResponsibility", "Id", "Issuer", "EntityType", "ContactDetails", "Nationality", "Document", "DocumentDriversLicense", "DocumentIdCard", "DocumentPassport", "DocumentPassportCard", "DocumentPermit", "DocumentVisa", "DocumentResidenceDocument"];
|
|
279
340
|
export declare const CertificateAttributeFieldNames: {
|
|
280
341
|
readonly [K in keyof typeof CertificateAttributeOIDDB]?: readonly string[];
|
|
281
342
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iso20022.generated.d.ts","sourceRoot":"","sources":["../../../src/services/kyc/iso20022.generated.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAGhD,2BAA2B;AAC3B,mCAAmC;AACnC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B,2CAA2C;AAC3C,mCAAmC;AACnC,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC,kBAAkB;AAClB,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,wBAAwB;AACxB,mCAAmC;AACnC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,sBAAsB;AACtB,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,kBAAkB;AAClB,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,8BAA8B;AAC9B,mCAAmC;AACnC,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AAEpC,qBAAqB;AACrB,mCAAmC;AACnC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,iBAAiB;AACjB,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,+BAA+B;AAC/B,mCAAmC;AACnC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAGzC,uBAAuB;AACvB,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAEvE,+BAA+B;AAC/B,mCAAmC;AACnC,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"iso20022.generated.d.ts","sourceRoot":"","sources":["../../../src/services/kyc/iso20022.generated.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAGhD,2BAA2B;AAC3B,mCAAm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+
// Generated ASN.1 schemas for ISO 20022 choice types
|
|
8
|
+
/** ASN.1 schema for AddressType */
|
|
9
|
+
export const AddressTypeSchema = {
|
|
10
|
+
choice: [
|
|
11
|
+
{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },
|
|
12
|
+
{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }
|
|
13
|
+
]
|
|
14
|
+
};
|
|
15
|
+
/** ASN.1 schema for OrganizationIdentificationSchemeNameChoice */
|
|
16
|
+
export const OrganizationIdentificationSchemeNameChoiceSchema = {
|
|
17
|
+
choice: [
|
|
18
|
+
{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },
|
|
19
|
+
{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }
|
|
20
|
+
]
|
|
21
|
+
};
|
|
22
|
+
/** ASN.1 schema for PersonIdentificationSchemeNameChoice */
|
|
23
|
+
export const PersonIdentificationSchemeNameChoiceSchema = {
|
|
24
|
+
choice: [
|
|
25
|
+
{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },
|
|
26
|
+
{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
// Generated ASN.1 schemas for ISO 20022 regular sequence types
|
|
30
|
+
/** ASN.1 schema for GenericOrganizationIdentification */
|
|
31
|
+
export const GenericOrganizationIdentificationSchema = {
|
|
32
|
+
type: 'struct',
|
|
33
|
+
fieldNames: ['id', 'issuer', 'schemeName'],
|
|
34
|
+
contains: {
|
|
35
|
+
id: { type: 'string', kind: 'utf8' },
|
|
36
|
+
issuer: { optional: { type: 'string', kind: 'utf8' } },
|
|
37
|
+
schemeName: { optional: OrganizationIdentificationSchemeNameChoiceSchema }
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
/** ASN.1 schema for GenericPersonIdentification */
|
|
41
|
+
export const GenericPersonIdentificationSchema = {
|
|
42
|
+
type: 'struct',
|
|
43
|
+
fieldNames: ['id', 'issuer', 'schemeName'],
|
|
44
|
+
contains: {
|
|
45
|
+
id: { type: 'string', kind: 'utf8' },
|
|
46
|
+
issuer: { optional: { type: 'string', kind: 'utf8' } },
|
|
47
|
+
schemeName: { optional: PersonIdentificationSchemeNameChoiceSchema }
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/** ASN.1 schema for OtherContact */
|
|
51
|
+
export const OtherContactSchema = {
|
|
52
|
+
type: 'struct',
|
|
53
|
+
fieldNames: ['channelType', 'id'],
|
|
54
|
+
contains: {
|
|
55
|
+
channelType: { type: 'string', kind: 'utf8' },
|
|
56
|
+
id: { optional: { type: 'string', kind: 'utf8' } }
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
// Generated ASN.1 schemas for ISO 20022 sequence-of-choice types
|
|
60
|
+
/** ASN.1 schema for OrganizationIdentification */
|
|
7
61
|
export const OrganizationIdentificationSchema = {
|
|
8
62
|
sequenceOf: {
|
|
9
63
|
choice: [
|
|
10
64
|
{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },
|
|
11
65
|
{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } },
|
|
12
|
-
{ type: 'context', kind: 'explicit', value: 2, contains:
|
|
66
|
+
{ type: 'context', kind: 'explicit', value: 2, contains: GenericOrganizationIdentificationSchema }
|
|
13
67
|
]
|
|
14
68
|
}
|
|
15
69
|
};
|
|
@@ -18,11 +72,12 @@ export const OrganizationIdentificationFields = [
|
|
|
18
72
|
'lei',
|
|
19
73
|
'other'
|
|
20
74
|
];
|
|
75
|
+
/** ASN.1 schema for PersonIdentification */
|
|
21
76
|
export const PersonIdentificationSchema = {
|
|
22
77
|
sequenceOf: {
|
|
23
78
|
choice: [
|
|
24
79
|
{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },
|
|
25
|
-
{ type: 'context', kind: 'explicit', value: 1, contains:
|
|
80
|
+
{ type: 'context', kind: 'explicit', value: 1, contains: GenericPersonIdentificationSchema }
|
|
26
81
|
]
|
|
27
82
|
}
|
|
28
83
|
};
|
|
@@ -30,84 +85,115 @@ export const PersonIdentificationFields = [
|
|
|
30
85
|
'dateAndPlaceOfBirth',
|
|
31
86
|
'other'
|
|
32
87
|
];
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
];
|
|
58
|
-
// Generated ASN.1 schemas for choice-type sensitive attributes
|
|
59
|
-
/** ASN.1 schema for EntityType */
|
|
60
|
-
export const EntityTypeSchema = {
|
|
61
|
-
choice: [
|
|
62
|
-
OrganizationIdentificationSchema,
|
|
63
|
-
PersonIdentificationSchema
|
|
64
|
-
]
|
|
88
|
+
export const DigestInfoSchema = {
|
|
89
|
+
type: 'struct',
|
|
90
|
+
fieldNames: ['digestAlgorithm', 'digest'],
|
|
91
|
+
contains: {
|
|
92
|
+
digestAlgorithm: ASN1.ValidateASN1.IsOID,
|
|
93
|
+
digest: ASN1.ValidateASN1.IsOctetString
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
export const ExternalReferenceSchema = {
|
|
97
|
+
type: 'struct',
|
|
98
|
+
fieldNames: ['url', 'contentType'],
|
|
99
|
+
contains: {
|
|
100
|
+
url: { type: 'string', kind: 'utf8' },
|
|
101
|
+
contentType: { type: 'string', kind: 'utf8' }
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export const ReferenceSchema = {
|
|
105
|
+
type: 'struct',
|
|
106
|
+
fieldNames: ['external', 'digest', 'encryptionAlgorithm'],
|
|
107
|
+
contains: {
|
|
108
|
+
external: ExternalReferenceSchema,
|
|
109
|
+
digest: DigestInfoSchema,
|
|
110
|
+
encryptionAlgorithm: ASN1.ValidateASN1.IsOID
|
|
111
|
+
}
|
|
65
112
|
};
|
|
66
113
|
export const AddressFields = ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'];
|
|
67
|
-
export const AddressSchema =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
114
|
+
export const AddressSchema = {
|
|
115
|
+
type: 'struct',
|
|
116
|
+
fieldNames: ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'],
|
|
117
|
+
contains: {
|
|
118
|
+
addressLines: { optional: { sequenceOf: { type: 'string', kind: 'utf8' } } },
|
|
119
|
+
addressType: { optional: AddressTypeSchema },
|
|
120
|
+
buildingNumber: { optional: { type: 'string', kind: 'utf8' } },
|
|
121
|
+
country: { optional: { type: 'string', kind: 'utf8' } },
|
|
122
|
+
countrySubDivision: { optional: { type: 'string', kind: 'utf8' } },
|
|
123
|
+
department: { optional: { type: 'string', kind: 'utf8' } },
|
|
124
|
+
postalCode: { optional: { type: 'string', kind: 'utf8' } },
|
|
125
|
+
streetName: { optional: { type: 'string', kind: 'utf8' } },
|
|
126
|
+
subDepartment: { optional: { type: 'string', kind: 'utf8' } },
|
|
127
|
+
townName: { optional: { type: 'string', kind: 'utf8' } }
|
|
128
|
+
}
|
|
129
|
+
};
|
|
79
130
|
export const DateAndPlaceOfBirthFields = ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'];
|
|
80
|
-
export const DateAndPlaceOfBirthSchema =
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
131
|
+
export const DateAndPlaceOfBirthSchema = {
|
|
132
|
+
type: 'struct',
|
|
133
|
+
fieldNames: ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'],
|
|
134
|
+
contains: {
|
|
135
|
+
birthDate: ASN1.ValidateASN1.IsDate,
|
|
136
|
+
cityOfBirth: { type: 'string', kind: 'utf8' },
|
|
137
|
+
countryOfBirth: { type: 'string', kind: 'utf8' },
|
|
138
|
+
provinceOfBirth: { optional: { type: 'string', kind: 'utf8' } }
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
export const EntityTypeFields = ['organization', 'person'];
|
|
142
|
+
export const EntityTypeSchema = {
|
|
143
|
+
type: 'struct',
|
|
144
|
+
fieldNames: ['organization', 'person'],
|
|
145
|
+
contains: {
|
|
146
|
+
organization: { optional: { sequenceOf: GenericOrganizationIdentificationSchema } },
|
|
147
|
+
person: { optional: { sequenceOf: GenericPersonIdentificationSchema } }
|
|
148
|
+
}
|
|
149
|
+
};
|
|
86
150
|
export const ContactDetailsFields = ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'];
|
|
87
|
-
export const ContactDetailsSchema =
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
151
|
+
export const ContactDetailsSchema = {
|
|
152
|
+
type: 'struct',
|
|
153
|
+
fieldNames: ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'],
|
|
154
|
+
contains: {
|
|
155
|
+
department: { optional: { type: 'string', kind: 'utf8' } },
|
|
156
|
+
emailAddress: { optional: { type: 'string', kind: 'utf8' } },
|
|
157
|
+
emailPurpose: { optional: { type: 'string', kind: 'utf8' } },
|
|
158
|
+
faxNumber: { optional: { type: 'string', kind: 'utf8' } },
|
|
159
|
+
fullName: { optional: { type: 'string', kind: 'utf8' } },
|
|
160
|
+
jobResponsibility: { optional: { type: 'string', kind: 'utf8' } },
|
|
161
|
+
jobTitle: { optional: { type: 'string', kind: 'utf8' } },
|
|
162
|
+
mobileNumber: { optional: { type: 'string', kind: 'utf8' } },
|
|
163
|
+
namePrefix: { optional: { type: 'string', kind: 'utf8' } },
|
|
164
|
+
other: { optional: { sequenceOf: OtherContactSchema } },
|
|
165
|
+
phoneNumber: { optional: { type: 'string', kind: 'utf8' } },
|
|
166
|
+
preferredMethod: { optional: { type: 'string', kind: 'utf8' } }
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
export const DocumentFields = ['documentNumber', 'front', 'back', 'selfie', 'fullName', 'firstName', 'lastName', 'dob', 'gender', 'address', 'expiresAt', 'issuedAt', 'issuingState', 'issuingCountry', 'refNumber', 'nationality', 'curp', 'claveDeElector', 'classifiedDocumentType', 'curpValidationResponse', 'sambaActivityHistoryResponse'];
|
|
170
|
+
export const DocumentSchema = {
|
|
171
|
+
type: 'struct',
|
|
172
|
+
fieldNames: ['documentNumber', 'front', 'back', 'selfie', 'fullName', 'firstName', 'lastName', 'dob', 'gender', 'address', 'expiresAt', 'issuedAt', 'issuingState', 'issuingCountry', 'refNumber', 'nationality', 'curp', 'claveDeElector', 'classifiedDocumentType', 'curpValidationResponse', 'sambaActivityHistoryResponse'],
|
|
173
|
+
contains: {
|
|
174
|
+
documentNumber: { type: 'string', kind: 'utf8' },
|
|
175
|
+
front: { optional: ReferenceSchema },
|
|
176
|
+
back: { optional: ReferenceSchema },
|
|
177
|
+
selfie: { optional: ReferenceSchema },
|
|
178
|
+
fullName: { optional: { type: 'string', kind: 'utf8' } },
|
|
179
|
+
firstName: { optional: { type: 'string', kind: 'utf8' } },
|
|
180
|
+
lastName: { optional: { type: 'string', kind: 'utf8' } },
|
|
181
|
+
dob: { optional: ASN1.ValidateASN1.IsDate },
|
|
182
|
+
gender: { optional: { type: 'string', kind: 'utf8' } },
|
|
183
|
+
address: { optional: AddressSchema },
|
|
184
|
+
expiresAt: { optional: ASN1.ValidateASN1.IsDate },
|
|
185
|
+
issuedAt: { optional: ASN1.ValidateASN1.IsDate },
|
|
186
|
+
issuingState: { optional: { type: 'string', kind: 'utf8' } },
|
|
187
|
+
issuingCountry: { optional: { type: 'string', kind: 'utf8' } },
|
|
188
|
+
refNumber: { optional: { type: 'string', kind: 'utf8' } },
|
|
189
|
+
nationality: { optional: { type: 'string', kind: 'utf8' } },
|
|
190
|
+
curp: { optional: { type: 'string', kind: 'utf8' } },
|
|
191
|
+
claveDeElector: { optional: { type: 'string', kind: 'utf8' } },
|
|
192
|
+
classifiedDocumentType: { optional: { type: 'string', kind: 'utf8' } },
|
|
193
|
+
curpValidationResponse: { optional: { type: 'string', kind: 'utf8' } },
|
|
194
|
+
sambaActivityHistoryResponse: { optional: { type: 'string', kind: 'utf8' } }
|
|
195
|
+
}
|
|
196
|
+
};
|
|
111
197
|
export const CertificateAttributeOIDDB = {
|
|
112
198
|
'fullName': '1.3.6.1.4.1.62675.1.0',
|
|
113
199
|
'firstName': '1.3.6.1.4.1.62675.1.0.1',
|
|
@@ -126,9 +212,13 @@ export const CertificateAttributeOIDDB = {
|
|
|
126
212
|
'contactDetails': '1.3.6.1.4.1.62675.1.9',
|
|
127
213
|
'nationality': '1.3.6.1.4.1.62675.1.10',
|
|
128
214
|
'document': '1.3.6.1.4.1.62675.1.11',
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'documentPassport': '1.3.6.1.4.1.62675.1.11.2'
|
|
215
|
+
'documentDriversLicense': '1.3.6.1.4.1.62675.1.11.0',
|
|
216
|
+
'documentIdCard': '1.3.6.1.4.1.62675.1.11.1',
|
|
217
|
+
'documentPassport': '1.3.6.1.4.1.62675.1.11.2',
|
|
218
|
+
'documentPassportCard': '1.3.6.1.4.1.62675.1.11.3',
|
|
219
|
+
'documentPermit': '1.3.6.1.4.1.62675.1.11.4',
|
|
220
|
+
'documentVisa': '1.3.6.1.4.1.62675.1.11.5',
|
|
221
|
+
'documentResidenceDocument': '1.3.6.1.4.1.62675.1.11.6'
|
|
132
222
|
};
|
|
133
223
|
export const SENSITIVE_CERTIFICATE_ATTRIBUTES = [
|
|
134
224
|
'fullName',
|
|
@@ -148,9 +238,13 @@ export const SENSITIVE_CERTIFICATE_ATTRIBUTES = [
|
|
|
148
238
|
'contactDetails',
|
|
149
239
|
'nationality',
|
|
150
240
|
'document',
|
|
151
|
-
'
|
|
152
|
-
'
|
|
153
|
-
'documentPassport'
|
|
241
|
+
'documentDriversLicense',
|
|
242
|
+
'documentIdCard',
|
|
243
|
+
'documentPassport',
|
|
244
|
+
'documentPassportCard',
|
|
245
|
+
'documentPermit',
|
|
246
|
+
'documentVisa',
|
|
247
|
+
'documentResidenceDocument'
|
|
154
248
|
];
|
|
155
249
|
export const SensitiveCertificateAttributeNames = [
|
|
156
250
|
'FullName',
|
|
@@ -170,13 +264,18 @@ export const SensitiveCertificateAttributeNames = [
|
|
|
170
264
|
'ContactDetails',
|
|
171
265
|
'Nationality',
|
|
172
266
|
'Document',
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'DocumentPassport'
|
|
267
|
+
'DocumentDriversLicense',
|
|
268
|
+
'DocumentIdCard',
|
|
269
|
+
'DocumentPassport',
|
|
270
|
+
'DocumentPassportCard',
|
|
271
|
+
'DocumentPermit',
|
|
272
|
+
'DocumentVisa',
|
|
273
|
+
'DocumentResidenceDocument'
|
|
176
274
|
];
|
|
177
275
|
export const CertificateAttributeFieldNames = {
|
|
178
276
|
'address': AddressFields,
|
|
179
277
|
'dateAndPlaceOfBirth': DateAndPlaceOfBirthFields,
|
|
278
|
+
'entityType': EntityTypeFields,
|
|
180
279
|
'contactDetails': ContactDetailsFields,
|
|
181
280
|
'document': DocumentFields
|
|
182
281
|
};
|
|
@@ -198,8 +297,12 @@ export const CertificateAttributeSchema = {
|
|
|
198
297
|
'contactDetails': ContactDetailsSchema,
|
|
199
298
|
'nationality': { type: 'string', kind: 'utf8' },
|
|
200
299
|
'document': DocumentSchema,
|
|
201
|
-
'
|
|
202
|
-
'
|
|
203
|
-
'documentPassport':
|
|
300
|
+
'documentDriversLicense': DocumentSchema,
|
|
301
|
+
'documentIdCard': DocumentSchema,
|
|
302
|
+
'documentPassport': DocumentSchema,
|
|
303
|
+
'documentPassportCard': DocumentSchema,
|
|
304
|
+
'documentPermit': DocumentSchema,
|
|
305
|
+
'documentVisa': DocumentSchema,
|
|
306
|
+
'documentResidenceDocument': DocumentSchema
|
|
204
307
|
};
|
|
205
308
|
//# sourceMappingURL=iso20022.generated.js.map
|