@keetanetwork/anchor 0.0.14 → 0.0.15
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 +29 -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/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/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 +76 -216
- package/package.json +2 -2
- package/services/asset-movement/common.js +7 -7
- package/services/kyc/iso20022.generated.d.ts +77 -26
- package/services/kyc/iso20022.generated.d.ts.map +1 -1
- package/services/kyc/iso20022.generated.js +168 -86
- package/services/kyc/iso20022.generated.js.map +1 -1
- package/services/kyc/oids.generated.d.ts +27 -6
- package/services/kyc/oids.generated.d.ts.map +1 -1
- package/services/kyc/oids.generated.js +43 -10
- package/services/kyc/oids.generated.js.map +1 -1
- package/services/kyc/utils/generate-kyc-schema.js +262 -74
- 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 {
|
|
@@ -194,30 +200,63 @@ export interface ContactDetails {
|
|
|
194
200
|
export type Nationality = string;
|
|
195
201
|
/** Document information */
|
|
196
202
|
/** OID: 1.3.6.1.4.1.62675.1.11 */
|
|
197
|
-
export
|
|
198
|
-
type: string;
|
|
199
|
-
number?: string;
|
|
200
|
-
issuer?: Issuer;
|
|
201
|
-
issueDate?: Date;
|
|
202
|
-
expiryDate?: Date;
|
|
203
|
-
issuingCountry?: Country;
|
|
204
|
-
attachmentUrl?: string;
|
|
205
|
-
}
|
|
203
|
+
export type Document = Reference;
|
|
206
204
|
/** Driver's license front side document */
|
|
207
205
|
/** OID: 1.3.6.1.4.1.62675.1.11.0 */
|
|
208
206
|
export type DocumentDriversLicenseFront = Document;
|
|
209
207
|
/** Driver's license back side document */
|
|
210
|
-
/** OID: 1.3.6.1.4.1.62675.1.11.1 */
|
|
208
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.0.1 */
|
|
211
209
|
export type DocumentDriversLicenseBack = Document;
|
|
212
210
|
/** Passport document */
|
|
213
|
-
/** OID: 1.3.6.1.4.1.62675.1.11.
|
|
211
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.1 */
|
|
214
212
|
export type DocumentPassport = Document;
|
|
213
|
+
/** Resident ID */
|
|
214
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.2 */
|
|
215
|
+
export type DocumentResidentCardFront = Document;
|
|
216
|
+
/** Resident ID */
|
|
217
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.2.0 */
|
|
218
|
+
export type DocumentResidentCardBack = Document;
|
|
219
|
+
/** Visa ID */
|
|
220
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.3 */
|
|
221
|
+
export type DocumentVisaFront = Document;
|
|
222
|
+
/** Visa ID */
|
|
223
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.3.0 */
|
|
224
|
+
export type DocumentVisaBack = Document;
|
|
225
|
+
/** Work permit ID */
|
|
226
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.4 */
|
|
227
|
+
export type DocumentWorkPermitFront = Document;
|
|
228
|
+
/** Work permit ID */
|
|
229
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.4.0 */
|
|
230
|
+
export type DocumentWorkPermitBack = Document;
|
|
231
|
+
/** DigestInfo from RFC 3447 */
|
|
232
|
+
export interface DigestInfo {
|
|
233
|
+
digestAlgorithm: ASN1.ASN1OID;
|
|
234
|
+
digest: Buffer;
|
|
235
|
+
}
|
|
236
|
+
export declare const DigestInfoSchema: ASN1.Schema;
|
|
237
|
+
/** External reference pointer */
|
|
238
|
+
export interface ExternalReference {
|
|
239
|
+
url: string;
|
|
240
|
+
contentType: string;
|
|
241
|
+
}
|
|
242
|
+
export declare const ExternalReferenceSchema: ASN1.Schema;
|
|
243
|
+
/** Reference */
|
|
244
|
+
export interface Reference {
|
|
245
|
+
external: ExternalReference;
|
|
246
|
+
digest: DigestInfo;
|
|
247
|
+
encryptionAlgorithm: ASN1.ASN1OID;
|
|
248
|
+
}
|
|
249
|
+
export declare const ReferenceSchema: ASN1.Schema;
|
|
215
250
|
/** Alias for DateOfBirth */
|
|
216
251
|
export type BirthDate = DateOfBirth;
|
|
217
252
|
/** Alias for Email */
|
|
218
253
|
export type EmailAddress = Email;
|
|
254
|
+
/** Alias for DocumentVisaFront */
|
|
255
|
+
export type documentVisaFront = DocumentVisaFront;
|
|
256
|
+
/** Alias for DocumentVisaBack */
|
|
257
|
+
export type documentVisaBack = DocumentVisaBack;
|
|
219
258
|
/** 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 | DocumentDriversLicenseFront | DocumentDriversLicenseBack | DocumentPassport;
|
|
259
|
+
export type SensitiveAttributeType = FullName | FirstName | LastName | MiddleName | DateOfBirth | Address | Email | PhoneNumber | DateAndPlaceOfBirth | JobTitle | JobResponsibility | Id | Issuer | EntityType | ContactDetails | Nationality | Document | DocumentDriversLicenseFront | DocumentDriversLicenseBack | DocumentPassport | DocumentResidentCardFront | DocumentResidentCardBack | DocumentVisaFront | DocumentVisaBack | DocumentWorkPermitFront | DocumentWorkPermitBack;
|
|
221
260
|
/** Map of attribute name to acceptable input type for CertificateBuilder.setAttribute */
|
|
222
261
|
export interface CertificateAttributeValueMap {
|
|
223
262
|
'fullName': FullName;
|
|
@@ -240,6 +279,12 @@ export interface CertificateAttributeValueMap {
|
|
|
240
279
|
'documentDriversLicenseFront': DocumentDriversLicenseFront;
|
|
241
280
|
'documentDriversLicenseBack': DocumentDriversLicenseBack;
|
|
242
281
|
'documentPassport': DocumentPassport;
|
|
282
|
+
'documentResidentCardFront': DocumentResidentCardFront;
|
|
283
|
+
'documentResidentCardBack': DocumentResidentCardBack;
|
|
284
|
+
'documentVisaFront': DocumentVisaFront;
|
|
285
|
+
'documentVisaBack': DocumentVisaBack;
|
|
286
|
+
'documentWorkPermitFront': DocumentWorkPermitFront;
|
|
287
|
+
'documentWorkPermitBack': DocumentWorkPermitBack;
|
|
243
288
|
}
|
|
244
289
|
/** Helper generic to get attribute value type by name */
|
|
245
290
|
export type CertificateAttributeValue<Name extends keyof CertificateAttributeValueMap> = CertificateAttributeValueMap[Name];
|
|
@@ -247,10 +292,10 @@ export declare const AddressFields: readonly ["addressLines", "addressType", "bu
|
|
|
247
292
|
export declare const AddressSchema: ASN1.Schema;
|
|
248
293
|
export declare const DateAndPlaceOfBirthFields: readonly ["birthDate", "cityOfBirth", "countryOfBirth", "provinceOfBirth"];
|
|
249
294
|
export declare const DateAndPlaceOfBirthSchema: ASN1.Schema;
|
|
295
|
+
export declare const EntityTypeFields: readonly ["organization", "person"];
|
|
296
|
+
export declare const EntityTypeSchema: ASN1.Schema;
|
|
250
297
|
export declare const ContactDetailsFields: readonly ["department", "emailAddress", "emailPurpose", "faxNumber", "fullName", "jobResponsibility", "jobTitle", "mobileNumber", "namePrefix", "other", "phoneNumber", "preferredMethod"];
|
|
251
298
|
export declare const ContactDetailsSchema: ASN1.Schema;
|
|
252
|
-
export declare const DocumentFields: readonly ["type", "number", "issuer", "issueDate", "expiryDate", "issuingCountry", "attachmentUrl"];
|
|
253
|
-
export declare const DocumentSchema: ASN1.Schema;
|
|
254
299
|
export declare const CertificateAttributeOIDDB: {
|
|
255
300
|
readonly fullName: "1.3.6.1.4.1.62675.1.0";
|
|
256
301
|
readonly firstName: "1.3.6.1.4.1.62675.1.0.1";
|
|
@@ -270,12 +315,18 @@ export declare const CertificateAttributeOIDDB: {
|
|
|
270
315
|
readonly nationality: "1.3.6.1.4.1.62675.1.10";
|
|
271
316
|
readonly document: "1.3.6.1.4.1.62675.1.11";
|
|
272
317
|
readonly documentDriversLicenseFront: "1.3.6.1.4.1.62675.1.11.0";
|
|
273
|
-
readonly documentDriversLicenseBack: "1.3.6.1.4.1.62675.1.11.1";
|
|
274
|
-
readonly documentPassport: "1.3.6.1.4.1.62675.1.11.
|
|
318
|
+
readonly documentDriversLicenseBack: "1.3.6.1.4.1.62675.1.11.0.1";
|
|
319
|
+
readonly documentPassport: "1.3.6.1.4.1.62675.1.11.1";
|
|
320
|
+
readonly documentResidentCardFront: "1.3.6.1.4.1.62675.1.11.2";
|
|
321
|
+
readonly documentResidentCardBack: "1.3.6.1.4.1.62675.1.11.2.0";
|
|
322
|
+
readonly documentVisaFront: "1.3.6.1.4.1.62675.1.11.3";
|
|
323
|
+
readonly documentVisaBack: "1.3.6.1.4.1.62675.1.11.3.0";
|
|
324
|
+
readonly documentWorkPermitFront: "1.3.6.1.4.1.62675.1.11.4";
|
|
325
|
+
readonly documentWorkPermitBack: "1.3.6.1.4.1.62675.1.11.4.0";
|
|
275
326
|
};
|
|
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", "documentDriversLicenseFront", "documentDriversLicenseBack", "documentPassport"];
|
|
327
|
+
export declare const SENSITIVE_CERTIFICATE_ATTRIBUTES: readonly ["fullName", "firstName", "lastName", "middleName", "dateOfBirth", "address", "email", "phoneNumber", "dateAndPlaceOfBirth", "jobTitle", "jobResponsibility", "id", "issuer", "entityType", "contactDetails", "nationality", "document", "documentDriversLicenseFront", "documentDriversLicenseBack", "documentPassport", "documentResidentCardFront", "documentResidentCardBack", "documentVisaFront", "documentVisaBack", "documentWorkPermitFront", "documentWorkPermitBack"];
|
|
277
328
|
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", "DocumentDriversLicenseFront", "DocumentDriversLicenseBack", "DocumentPassport"];
|
|
329
|
+
export declare const SensitiveCertificateAttributeNames: readonly ["FullName", "FirstName", "LastName", "MiddleName", "DateOfBirth", "Address", "Email", "PhoneNumber", "DateAndPlaceOfBirth", "JobTitle", "JobResponsibility", "Id", "Issuer", "EntityType", "ContactDetails", "Nationality", "Document", "DocumentDriversLicenseFront", "DocumentDriversLicenseBack", "DocumentPassport", "DocumentResidentCardFront", "DocumentResidentCardBack", "DocumentVisaFront", "DocumentVisaBack", "DocumentWorkPermitFront", "DocumentWorkPermitBack"];
|
|
279
330
|
export declare const CertificateAttributeFieldNames: {
|
|
280
331
|
readonly [K in keyof typeof CertificateAttributeOIDDB]?: readonly string[];
|
|
281
332
|
};
|
|
@@ -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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,MAAM,yBAAyB,4EAA6E,CAAC;AACpH,eAAO,MAAM,yBAAyB,EAAE,IAAI,CAAC,MAS5C,CAAC;AACF,eAAO,MAAM,gBAAgB,qCAAsC,CAAC;AACpE,eAAO,MAAM,gBAAgB,EAAE,IAAI,CAAC,MAOnC,CAAC;AACF,eAAO,MAAM,oBAAoB,4LAA6L,CAAC;AAC/N,eAAO,MAAM,oBAAoB,EAAE,IAAI,CAAC,MAiBvC,CAAC;AACF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B5B,CAAC;AAEX,eAAO,MAAM,gCAAgC,2dA2BnC,CAAC;AAEX,MAAM,MAAM,kCAAkC,GAAG,OAAO,gCAAgC,CAAC,MAAM,CAAC,CAAC;AAEjG,eAAO,MAAM,kCAAkC,2dA2BrC,CAAC;AAEX,eAAO,MAAM,8BAA8B,EAAE;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,OAAO,yBAAyB,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE;CAK/G,CAAC;AAEX,eAAO,MAAM,0BAA0B,EAAE;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,OAAO,yBAAyB,GAAG,IAAI,CAAC,MAAM;CA2BpG,CAAC"}
|
|
@@ -4,12 +4,66 @@
|
|
|
4
4
|
* This file is auto-generated from oids.json.
|
|
5
5
|
*/
|
|
6
6
|
import * as ASN1 from '../../lib/utils/asn1.js';
|
|
7
|
+
// 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,87 @@ 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
|
-
{ optional: { type: 'context', kind: 'explicit', value: 2, contains: { type: 'string', kind: 'utf8' } } },
|
|
106
|
-
{ optional: { type: 'context', kind: 'explicit', value: 3, contains: ASN1.ValidateASN1.IsDate } },
|
|
107
|
-
{ optional: { type: 'context', kind: 'explicit', value: 4, contains: ASN1.ValidateASN1.IsDate } },
|
|
108
|
-
{ optional: { type: 'context', kind: 'explicit', value: 5, contains: { type: 'string', kind: 'utf8' } } },
|
|
109
|
-
{ optional: { type: 'context', kind: 'explicit', value: 6, contains: { type: 'string', kind: 'utf8' } } }
|
|
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
|
+
};
|
|
111
169
|
export const CertificateAttributeOIDDB = {
|
|
112
170
|
'fullName': '1.3.6.1.4.1.62675.1.0',
|
|
113
171
|
'firstName': '1.3.6.1.4.1.62675.1.0.1',
|
|
@@ -127,8 +185,14 @@ export const CertificateAttributeOIDDB = {
|
|
|
127
185
|
'nationality': '1.3.6.1.4.1.62675.1.10',
|
|
128
186
|
'document': '1.3.6.1.4.1.62675.1.11',
|
|
129
187
|
'documentDriversLicenseFront': '1.3.6.1.4.1.62675.1.11.0',
|
|
130
|
-
'documentDriversLicenseBack': '1.3.6.1.4.1.62675.1.11.1',
|
|
131
|
-
'documentPassport': '1.3.6.1.4.1.62675.1.11.
|
|
188
|
+
'documentDriversLicenseBack': '1.3.6.1.4.1.62675.1.11.0.1',
|
|
189
|
+
'documentPassport': '1.3.6.1.4.1.62675.1.11.1',
|
|
190
|
+
'documentResidentCardFront': '1.3.6.1.4.1.62675.1.11.2',
|
|
191
|
+
'documentResidentCardBack': '1.3.6.1.4.1.62675.1.11.2.0',
|
|
192
|
+
'documentVisaFront': '1.3.6.1.4.1.62675.1.11.3',
|
|
193
|
+
'documentVisaBack': '1.3.6.1.4.1.62675.1.11.3.0',
|
|
194
|
+
'documentWorkPermitFront': '1.3.6.1.4.1.62675.1.11.4',
|
|
195
|
+
'documentWorkPermitBack': '1.3.6.1.4.1.62675.1.11.4.0'
|
|
132
196
|
};
|
|
133
197
|
export const SENSITIVE_CERTIFICATE_ATTRIBUTES = [
|
|
134
198
|
'fullName',
|
|
@@ -150,7 +214,13 @@ export const SENSITIVE_CERTIFICATE_ATTRIBUTES = [
|
|
|
150
214
|
'document',
|
|
151
215
|
'documentDriversLicenseFront',
|
|
152
216
|
'documentDriversLicenseBack',
|
|
153
|
-
'documentPassport'
|
|
217
|
+
'documentPassport',
|
|
218
|
+
'documentResidentCardFront',
|
|
219
|
+
'documentResidentCardBack',
|
|
220
|
+
'documentVisaFront',
|
|
221
|
+
'documentVisaBack',
|
|
222
|
+
'documentWorkPermitFront',
|
|
223
|
+
'documentWorkPermitBack'
|
|
154
224
|
];
|
|
155
225
|
export const SensitiveCertificateAttributeNames = [
|
|
156
226
|
'FullName',
|
|
@@ -172,13 +242,19 @@ export const SensitiveCertificateAttributeNames = [
|
|
|
172
242
|
'Document',
|
|
173
243
|
'DocumentDriversLicenseFront',
|
|
174
244
|
'DocumentDriversLicenseBack',
|
|
175
|
-
'DocumentPassport'
|
|
245
|
+
'DocumentPassport',
|
|
246
|
+
'DocumentResidentCardFront',
|
|
247
|
+
'DocumentResidentCardBack',
|
|
248
|
+
'DocumentVisaFront',
|
|
249
|
+
'DocumentVisaBack',
|
|
250
|
+
'DocumentWorkPermitFront',
|
|
251
|
+
'DocumentWorkPermitBack'
|
|
176
252
|
];
|
|
177
253
|
export const CertificateAttributeFieldNames = {
|
|
178
254
|
'address': AddressFields,
|
|
179
255
|
'dateAndPlaceOfBirth': DateAndPlaceOfBirthFields,
|
|
180
|
-
'
|
|
181
|
-
'
|
|
256
|
+
'entityType': EntityTypeFields,
|
|
257
|
+
'contactDetails': ContactDetailsFields
|
|
182
258
|
};
|
|
183
259
|
export const CertificateAttributeSchema = {
|
|
184
260
|
'fullName': { type: 'string', kind: 'utf8' },
|
|
@@ -197,9 +273,15 @@ export const CertificateAttributeSchema = {
|
|
|
197
273
|
'entityType': EntityTypeSchema,
|
|
198
274
|
'contactDetails': ContactDetailsSchema,
|
|
199
275
|
'nationality': { type: 'string', kind: 'utf8' },
|
|
200
|
-
'document':
|
|
201
|
-
'documentDriversLicenseFront':
|
|
202
|
-
'documentDriversLicenseBack':
|
|
203
|
-
'documentPassport':
|
|
276
|
+
'document': ReferenceSchema,
|
|
277
|
+
'documentDriversLicenseFront': ReferenceSchema,
|
|
278
|
+
'documentDriversLicenseBack': ReferenceSchema,
|
|
279
|
+
'documentPassport': ReferenceSchema,
|
|
280
|
+
'documentResidentCardFront': ReferenceSchema,
|
|
281
|
+
'documentResidentCardBack': ReferenceSchema,
|
|
282
|
+
'documentVisaFront': ReferenceSchema,
|
|
283
|
+
'documentVisaBack': ReferenceSchema,
|
|
284
|
+
'documentWorkPermitFront': ReferenceSchema,
|
|
285
|
+
'documentWorkPermitBack': ReferenceSchema
|
|
204
286
|
};
|
|
205
287
|
//# sourceMappingURL=iso20022.generated.js.map
|