@keetanetwork/anchor 0.0.15 → 0.0.18
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 +16 -1
- package/lib/certificates.d.ts.map +1 -1
- package/lib/certificates.generated.js +58 -8
- package/lib/certificates.generated.js.map +1 -1
- package/lib/certificates.js +162 -37
- package/lib/certificates.js.map +1 -1
- package/lib/encrypted-container.d.ts +11 -11
- package/lib/encrypted-container.d.ts.map +1 -1
- package/lib/encrypted-container.js +21 -9
- package/lib/encrypted-container.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/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 +7 -1
- package/lib/utils/asn1.d.ts.map +1 -1
- package/lib/utils/asn1.generated.d.ts +41 -0
- package/lib/utils/asn1.generated.d.ts.map +1 -0
- package/lib/utils/asn1.generated.js +221 -0
- package/lib/utils/asn1.generated.js.map +1 -0
- package/lib/utils/asn1.js +73 -13
- package/lib/utils/asn1.js.map +1 -1
- package/lib/utils/crypto.d.ts.map +1 -1
- package/lib/utils/crypto.js.map +1 -1
- package/lib/utils/external.d.ts +5 -3
- package/lib/utils/external.d.ts.map +1 -1
- package/lib/utils/external.js +49 -6
- package/lib/utils/external.js.map +1 -1
- package/npm-shrinkwrap.json +212 -72
- package/package.json +2 -2
- package/services/kyc/iso20022.generated.d.ts +65 -48
- package/services/kyc/iso20022.generated.d.ts.map +1 -1
- package/services/kyc/iso20022.generated.js +57 -36
- package/services/kyc/iso20022.generated.js.map +1 -1
- package/services/kyc/oids.generated.d.ts +18 -24
- package/services/kyc/oids.generated.d.ts.map +1 -1
- package/services/kyc/oids.generated.js +32 -42
- package/services/kyc/oids.generated.js.map +1 -1
- package/services/kyc/utils/generate-kyc-schema.js +61 -3
- package/services/kyc/utils/generate-kyc-schema.js.map +1 -1
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* This file is auto-generated from oids.json.
|
|
4
4
|
*/
|
|
5
5
|
import * as ASN1 from '../../lib/utils/asn1.js';
|
|
6
|
+
import { lib as KeetaNetLib } from '@keetanetwork/keetanet-client';
|
|
7
|
+
type KeetaNetAccount = InstanceType<typeof KeetaNetLib.Account>;
|
|
6
8
|
/** Country code or name */
|
|
7
9
|
/** OID: 1.3.6.1.4.1.62675.1.2.0 */
|
|
8
10
|
export type Country = string;
|
|
@@ -198,36 +200,52 @@ export interface ContactDetails {
|
|
|
198
200
|
/** Nationality */
|
|
199
201
|
/** OID: 1.3.6.1.4.1.62675.1.10 */
|
|
200
202
|
export type Nationality = string;
|
|
201
|
-
/**
|
|
203
|
+
/** Generic document structure with metadata */
|
|
202
204
|
/** OID: 1.3.6.1.4.1.62675.1.11 */
|
|
203
|
-
export
|
|
204
|
-
|
|
205
|
+
export interface Document {
|
|
206
|
+
documentNumber: string;
|
|
207
|
+
front?: Reference;
|
|
208
|
+
back?: Reference;
|
|
209
|
+
selfie?: Reference;
|
|
210
|
+
fullName?: string;
|
|
211
|
+
firstName?: string;
|
|
212
|
+
lastName?: string;
|
|
213
|
+
dob?: Date;
|
|
214
|
+
gender?: string;
|
|
215
|
+
address?: Address;
|
|
216
|
+
expiresAt?: Date;
|
|
217
|
+
issuedAt?: Date;
|
|
218
|
+
issuingState?: string;
|
|
219
|
+
issuingCountry?: string;
|
|
220
|
+
refNumber?: string;
|
|
221
|
+
nationality?: string;
|
|
222
|
+
curp?: string;
|
|
223
|
+
claveDeElector?: string;
|
|
224
|
+
classifiedDocumentType?: string;
|
|
225
|
+
curpValidationResponse?: string;
|
|
226
|
+
sambaActivityHistoryResponse?: string;
|
|
227
|
+
}
|
|
228
|
+
/** Driver's license document */
|
|
205
229
|
/** OID: 1.3.6.1.4.1.62675.1.11.0 */
|
|
206
|
-
export type
|
|
207
|
-
/**
|
|
208
|
-
/** OID: 1.3.6.1.4.1.62675.1.11.0.1 */
|
|
209
|
-
export type DocumentDriversLicenseBack = Document;
|
|
210
|
-
/** Passport document */
|
|
230
|
+
export type DocumentDriversLicense = Document;
|
|
231
|
+
/** ID card document */
|
|
211
232
|
/** OID: 1.3.6.1.4.1.62675.1.11.1 */
|
|
212
|
-
export type
|
|
213
|
-
/**
|
|
233
|
+
export type DocumentIdCard = Document;
|
|
234
|
+
/** Passport document */
|
|
214
235
|
/** OID: 1.3.6.1.4.1.62675.1.11.2 */
|
|
215
|
-
export type
|
|
216
|
-
/**
|
|
217
|
-
/** OID: 1.3.6.1.4.1.62675.1.11.2.0 */
|
|
218
|
-
export type DocumentResidentCardBack = Document;
|
|
219
|
-
/** Visa ID */
|
|
236
|
+
export type DocumentPassport = Document;
|
|
237
|
+
/** Passport card document */
|
|
220
238
|
/** OID: 1.3.6.1.4.1.62675.1.11.3 */
|
|
221
|
-
export type
|
|
222
|
-
/**
|
|
223
|
-
/** OID: 1.3.6.1.4.1.62675.1.11.3.0 */
|
|
224
|
-
export type DocumentVisaBack = Document;
|
|
225
|
-
/** Work permit ID */
|
|
239
|
+
export type DocumentPassportCard = Document;
|
|
240
|
+
/** Permit document */
|
|
226
241
|
/** OID: 1.3.6.1.4.1.62675.1.11.4 */
|
|
227
|
-
export type
|
|
228
|
-
/**
|
|
229
|
-
/** OID: 1.3.6.1.4.1.62675.1.11.
|
|
230
|
-
export type
|
|
242
|
+
export type DocumentPermit = Document;
|
|
243
|
+
/** Visa document */
|
|
244
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.5 */
|
|
245
|
+
export type DocumentVisa = Document;
|
|
246
|
+
/** Residence document */
|
|
247
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.6 */
|
|
248
|
+
export type DocumentResidenceDocument = Document;
|
|
231
249
|
/** DigestInfo from RFC 3447 */
|
|
232
250
|
export interface DigestInfo {
|
|
233
251
|
digestAlgorithm: ASN1.ASN1OID;
|
|
@@ -245,18 +263,18 @@ export interface Reference {
|
|
|
245
263
|
external: ExternalReference;
|
|
246
264
|
digest: DigestInfo;
|
|
247
265
|
encryptionAlgorithm: ASN1.ASN1OID;
|
|
266
|
+
/**
|
|
267
|
+
* TODOC
|
|
268
|
+
*/
|
|
269
|
+
$blob: (principals?: KeetaNetAccount[]) => Promise<Blob>;
|
|
248
270
|
}
|
|
249
271
|
export declare const ReferenceSchema: ASN1.Schema;
|
|
250
272
|
/** Alias for DateOfBirth */
|
|
251
273
|
export type BirthDate = DateOfBirth;
|
|
252
274
|
/** Alias for Email */
|
|
253
275
|
export type EmailAddress = Email;
|
|
254
|
-
/** Alias for DocumentVisaFront */
|
|
255
|
-
export type documentVisaFront = DocumentVisaFront;
|
|
256
|
-
/** Alias for DocumentVisaBack */
|
|
257
|
-
export type documentVisaBack = DocumentVisaBack;
|
|
258
276
|
/** Union type of all sensitive attribute types */
|
|
259
|
-
export type SensitiveAttributeType = FullName | FirstName | LastName | MiddleName | DateOfBirth | Address | Email | PhoneNumber | DateAndPlaceOfBirth | JobTitle | JobResponsibility | Id | Issuer | EntityType | ContactDetails | Nationality | Document |
|
|
277
|
+
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;
|
|
260
278
|
/** Map of attribute name to acceptable input type for CertificateBuilder.setAttribute */
|
|
261
279
|
export interface CertificateAttributeValueMap {
|
|
262
280
|
'fullName': FullName;
|
|
@@ -276,15 +294,13 @@ export interface CertificateAttributeValueMap {
|
|
|
276
294
|
'contactDetails': ContactDetails;
|
|
277
295
|
'nationality': Nationality;
|
|
278
296
|
'document': Document;
|
|
279
|
-
'
|
|
280
|
-
'
|
|
297
|
+
'documentDriversLicense': DocumentDriversLicense;
|
|
298
|
+
'documentIdCard': DocumentIdCard;
|
|
281
299
|
'documentPassport': DocumentPassport;
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'documentWorkPermitFront': DocumentWorkPermitFront;
|
|
287
|
-
'documentWorkPermitBack': DocumentWorkPermitBack;
|
|
300
|
+
'documentPassportCard': DocumentPassportCard;
|
|
301
|
+
'documentPermit': DocumentPermit;
|
|
302
|
+
'documentVisa': DocumentVisa;
|
|
303
|
+
'documentResidenceDocument': DocumentResidenceDocument;
|
|
288
304
|
}
|
|
289
305
|
/** Helper generic to get attribute value type by name */
|
|
290
306
|
export type CertificateAttributeValue<Name extends keyof CertificateAttributeValueMap> = CertificateAttributeValueMap[Name];
|
|
@@ -296,6 +312,8 @@ export declare const EntityTypeFields: readonly ["organization", "person"];
|
|
|
296
312
|
export declare const EntityTypeSchema: ASN1.Schema;
|
|
297
313
|
export declare const ContactDetailsFields: readonly ["department", "emailAddress", "emailPurpose", "faxNumber", "fullName", "jobResponsibility", "jobTitle", "mobileNumber", "namePrefix", "other", "phoneNumber", "preferredMethod"];
|
|
298
314
|
export declare const ContactDetailsSchema: ASN1.Schema;
|
|
315
|
+
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"];
|
|
316
|
+
export declare const DocumentSchema: ASN1.Schema;
|
|
299
317
|
export declare const CertificateAttributeOIDDB: {
|
|
300
318
|
readonly fullName: "1.3.6.1.4.1.62675.1.0";
|
|
301
319
|
readonly firstName: "1.3.6.1.4.1.62675.1.0.1";
|
|
@@ -314,23 +332,22 @@ export declare const CertificateAttributeOIDDB: {
|
|
|
314
332
|
readonly contactDetails: "1.3.6.1.4.1.62675.1.9";
|
|
315
333
|
readonly nationality: "1.3.6.1.4.1.62675.1.10";
|
|
316
334
|
readonly document: "1.3.6.1.4.1.62675.1.11";
|
|
317
|
-
readonly
|
|
318
|
-
readonly
|
|
319
|
-
readonly documentPassport: "1.3.6.1.4.1.62675.1.11.
|
|
320
|
-
readonly
|
|
321
|
-
readonly
|
|
322
|
-
readonly
|
|
323
|
-
readonly
|
|
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";
|
|
335
|
+
readonly documentDriversLicense: "1.3.6.1.4.1.62675.1.11.0";
|
|
336
|
+
readonly documentIdCard: "1.3.6.1.4.1.62675.1.11.1";
|
|
337
|
+
readonly documentPassport: "1.3.6.1.4.1.62675.1.11.2";
|
|
338
|
+
readonly documentPassportCard: "1.3.6.1.4.1.62675.1.11.3";
|
|
339
|
+
readonly documentPermit: "1.3.6.1.4.1.62675.1.11.4";
|
|
340
|
+
readonly documentVisa: "1.3.6.1.4.1.62675.1.11.5";
|
|
341
|
+
readonly documentResidenceDocument: "1.3.6.1.4.1.62675.1.11.6";
|
|
326
342
|
};
|
|
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", "
|
|
343
|
+
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"];
|
|
328
344
|
export type SensitiveCertificateAttributeNames = typeof SENSITIVE_CERTIFICATE_ATTRIBUTES[number];
|
|
329
|
-
export declare const SensitiveCertificateAttributeNames: readonly ["FullName", "FirstName", "LastName", "MiddleName", "DateOfBirth", "Address", "Email", "PhoneNumber", "DateAndPlaceOfBirth", "JobTitle", "JobResponsibility", "Id", "Issuer", "EntityType", "ContactDetails", "Nationality", "Document", "
|
|
345
|
+
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"];
|
|
330
346
|
export declare const CertificateAttributeFieldNames: {
|
|
331
347
|
readonly [K in keyof typeof CertificateAttributeOIDDB]?: readonly string[];
|
|
332
348
|
};
|
|
333
349
|
export declare const CertificateAttributeSchema: {
|
|
334
350
|
readonly [K in keyof typeof CertificateAttributeOIDDB]: ASN1.Schema;
|
|
335
351
|
};
|
|
352
|
+
export {};
|
|
336
353
|
//# sourceMappingURL=iso20022.generated.d.ts.map
|
|
@@ -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;
|
|
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;AAChD,OAAO,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACnE,KAAK,eAAe,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;AAGhE,2BAA2B;AAC3B,mCAAmC;AACnC,MAAM,MAAM,OAAO,GAAG,MAAM,C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od: { optional: { type: 'string', kind: 'utf8' } }
|
|
167
167
|
}
|
|
168
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
|
+
};
|
|
169
197
|
export const CertificateAttributeOIDDB = {
|
|
170
198
|
'fullName': '1.3.6.1.4.1.62675.1.0',
|
|
171
199
|
'firstName': '1.3.6.1.4.1.62675.1.0.1',
|
|
@@ -184,15 +212,13 @@ export const CertificateAttributeOIDDB = {
|
|
|
184
212
|
'contactDetails': '1.3.6.1.4.1.62675.1.9',
|
|
185
213
|
'nationality': '1.3.6.1.4.1.62675.1.10',
|
|
186
214
|
'document': '1.3.6.1.4.1.62675.1.11',
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'documentPassport': '1.3.6.1.4.1.62675.1.11.
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'
|
|
193
|
-
'
|
|
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'
|
|
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'
|
|
196
222
|
};
|
|
197
223
|
export const SENSITIVE_CERTIFICATE_ATTRIBUTES = [
|
|
198
224
|
'fullName',
|
|
@@ -212,15 +238,13 @@ export const SENSITIVE_CERTIFICATE_ATTRIBUTES = [
|
|
|
212
238
|
'contactDetails',
|
|
213
239
|
'nationality',
|
|
214
240
|
'document',
|
|
215
|
-
'
|
|
216
|
-
'
|
|
241
|
+
'documentDriversLicense',
|
|
242
|
+
'documentIdCard',
|
|
217
243
|
'documentPassport',
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'documentWorkPermitFront',
|
|
223
|
-
'documentWorkPermitBack'
|
|
244
|
+
'documentPassportCard',
|
|
245
|
+
'documentPermit',
|
|
246
|
+
'documentVisa',
|
|
247
|
+
'documentResidenceDocument'
|
|
224
248
|
];
|
|
225
249
|
export const SensitiveCertificateAttributeNames = [
|
|
226
250
|
'FullName',
|
|
@@ -240,21 +264,20 @@ export const SensitiveCertificateAttributeNames = [
|
|
|
240
264
|
'ContactDetails',
|
|
241
265
|
'Nationality',
|
|
242
266
|
'Document',
|
|
243
|
-
'
|
|
244
|
-
'
|
|
267
|
+
'DocumentDriversLicense',
|
|
268
|
+
'DocumentIdCard',
|
|
245
269
|
'DocumentPassport',
|
|
246
|
-
'
|
|
247
|
-
'
|
|
248
|
-
'
|
|
249
|
-
'
|
|
250
|
-
'DocumentWorkPermitFront',
|
|
251
|
-
'DocumentWorkPermitBack'
|
|
270
|
+
'DocumentPassportCard',
|
|
271
|
+
'DocumentPermit',
|
|
272
|
+
'DocumentVisa',
|
|
273
|
+
'DocumentResidenceDocument'
|
|
252
274
|
];
|
|
253
275
|
export const CertificateAttributeFieldNames = {
|
|
254
276
|
'address': AddressFields,
|
|
255
277
|
'dateAndPlaceOfBirth': DateAndPlaceOfBirthFields,
|
|
256
278
|
'entityType': EntityTypeFields,
|
|
257
|
-
'contactDetails': ContactDetailsFields
|
|
279
|
+
'contactDetails': ContactDetailsFields,
|
|
280
|
+
'document': DocumentFields
|
|
258
281
|
};
|
|
259
282
|
export const CertificateAttributeSchema = {
|
|
260
283
|
'fullName': { type: 'string', kind: 'utf8' },
|
|
@@ -273,15 +296,13 @@ export const CertificateAttributeSchema = {
|
|
|
273
296
|
'entityType': EntityTypeSchema,
|
|
274
297
|
'contactDetails': ContactDetailsSchema,
|
|
275
298
|
'nationality': { type: 'string', kind: 'utf8' },
|
|
276
|
-
'document':
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'documentPassport':
|
|
280
|
-
'
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'documentWorkPermitFront': ReferenceSchema,
|
|
285
|
-
'documentWorkPermitBack': ReferenceSchema
|
|
299
|
+
'document': DocumentSchema,
|
|
300
|
+
'documentDriversLicense': DocumentSchema,
|
|
301
|
+
'documentIdCard': DocumentSchema,
|
|
302
|
+
'documentPassport': DocumentSchema,
|
|
303
|
+
'documentPassportCard': DocumentSchema,
|
|
304
|
+
'documentPermit': DocumentSchema,
|
|
305
|
+
'documentVisa': DocumentSchema,
|
|
306
|
+
'documentResidenceDocument': DocumentSchema
|
|
286
307
|
};
|
|
287
308
|
//# sourceMappingURL=iso20022.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iso20022.generated.js","sourceRoot":"","sources":["../../../src/services/kyc/iso20022.generated.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAyIhD,qDAAqD;AACrD,mCAAmC;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAgB;IAC7C,MAAM,EAAE;QACP,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAC3F,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,IAA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AE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5C,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC9C,aAAa,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM;IACvC,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IACzC,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC/C,qBAAqB,EAAE,yBAAyB;IAChD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5C,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IACrD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IACtC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1C,YAAY,EAAE,gBAAgB;IAC9B,gBAAgB,EAAE,oBAAoB;IACtC,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC/C,UAAU,EAAE,eAAe;IAC3B,6BAA6B,EAAE,eAAe;IAC9C,4BAA4B,EAAE,eAAe;IAC7C,kBAAkB,EAAE,eAAe;IACnC,2BAA2B,EAAE,eAAe;IAC5C,0BAA0B,EAAE,eAAe;IAC3C,mBAAmB,EAAE,eAAe;IACpC,kBAAkB,EAAE,eAAe;IACnC,yBAAyB,EAAE,eAAe;IAC1C,wBAAwB,EAAE,eAAe;CAChC,CAAC","sourcesContent":["/* eslint-disable */\n/**\n * Generated ISO20022 Type Definitions\n * This file is auto-generated from oids.json.\n */\n\nimport * as ASN1 from '../../lib/utils/asn1.js';\n\n// ISO20022 Primitive Types\n/** Country code or name */\n/** OID: 1.3.6.1.4.1.62675.1.2.0 */\nexport type Country = string;\n\n/** Country subdivision (state/province) */\n/** OID: 1.3.6.1.4.1.62675.1.2.1 */\nexport type CountrySubDivision = string;\n\n/** Postal code */\n/** OID: 1.3.6.1.4.1.62675.1.2.3 */\nexport type PostalCode = string;\n\n/** Town or city name */\n/** OID: 1.3.6.1.4.1.62675.1.2.4 */\nexport type TownName = string;\n\n/** Building number */\n/** OID: 1.3.6.1.4.1.62675.1.2.5 */\nexport type BuildingNumber = string;\n\n/** Street name */\n/** OID: 1.3.6.1.4.1.62675.1.2.6 */\nexport type StreetName = string;\n\n/** Free-form address lines */\n/** OID: 1.3.6.1.4.1.62675.1.2.7 */\nexport type AddressLines = string[];\n\n/** Sub-department */\n/** OID: 1.3.6.1.4.1.62675.1.2.8 */\nexport type SubDepartment = string;\n\n/** Department */\n/** OID: 1.3.6.1.4.1.62675.1.2.9 */\nexport type Department = string;\n\n/** Purpose of email address */\n/** OID: 1.3.6.1.4.1.62675.1.3.0 */\nexport type EmailAddressPurpose = string;\n\n// ISO20022 Enumeration Types\n/** Name prefix code */\n/** OID: 1.3.6.1.4.1.62675.1.0.0 */\nexport type NamePrefixCode = 'DOCT' | 'MIST' | 'MISS' | 'MIKS' | 'MME';\n\n/** Preferred contact method */\n/** OID: 1.3.6.1.4.1.62675.1.9.0 */\nexport type PreferredContactMethodCode = 'LETT' | 'MAIL' | 'PHON' | 'FAXX' | 'CELL';\n\n/** Person identification scheme name proprietary values */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.1.0 */\nexport type PersonIdentificationSchemeNameProprietary = 'DRLC' | 'CPPT' | 'ARNU' | 'SSN' | 'TXID' | 'VISA' | 'WPPT';\n\n// ISO20022 Choice Types\n/** Address type classification */\n/** OID: 1.3.6.1.4.1.62675.1.2.10 */\nexport type AddressType = string;\n\n/** Organization identification scheme name */\n/** OID: 1.3.6.1.4.1.62675.1.8.0.2 */\nexport type OrganizationIdentificationSchemeNameChoice = string;\n\n/** Person identification scheme name */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.1 */\nexport type PersonIdentificationSchemeNameChoice = string | PersonIdentificationSchemeNameProprietary;\n\n// ISO20022 Sequence Types\n/** Generic organization identification */\n/** OID: 1.3.6.1.4.1.62675.1.8.0.1 */\nexport interface GenericOrganizationIdentification {\n\tid: Id;\n\tschemeName?: OrganizationIdentificationSchemeNameChoice;\n\tissuer?: Issuer;\n}\n\nexport interface OrganizationIdentificationBicChoice {\n\ttag: 0;\n\tname: 'bic';\n\tvalue: string;\n}\n\nexport interface OrganizationIdentificationLeiChoice {\n\ttag: 1;\n\tname: 'lei';\n\tvalue: string;\n}\n\nexport interface OrganizationIdentificationOtherChoice {\n\ttag: 2;\n\tname: 'other';\n\tvalue: GenericOrganizationIdentification[];\n}\nexport type OrganizationIdentificationChoice =\n\t| OrganizationIdentificationBicChoice\n\t| OrganizationIdentificationLeiChoice\n\t| OrganizationIdentificationOtherChoice;\n\nexport type OrganizationIdentification = OrganizationIdentificationChoice[];\n\n\n/** Generic person identification */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.0 */\nexport interface GenericPersonIdentification {\n\tid: Id;\n\tschemeName?: PersonIdentificationSchemeNameChoice;\n\tissuer?: Issuer;\n}\n\nexport interface PersonIdentificationDateAndPlaceOfBirthChoice {\n\ttag: 0;\n\tname: 'dateAndPlaceOfBirth';\n\tvalue: DateAndPlaceOfBirth;\n}\n\nexport interface PersonIdentificationOtherChoice {\n\ttag: 1;\n\tname: 'other';\n\tvalue: GenericPersonIdentification[];\n}\nexport type PersonIdentificationChoice =\n\t| PersonIdentificationDateAndPlaceOfBirthChoice\n\t| PersonIdentificationOtherChoice;\n\nexport type PersonIdentification = PersonIdentificationChoice[];\n\n\n/** Other contact method */\n/** OID: 1.3.6.1.4.1.62675.1.9.1 */\nexport interface OtherContact {\n\tid?: Id;\n\tchannelType: string;\n}\n\n\n// Generated ASN.1 schemas for ISO 20022 choice types\n/** ASN.1 schema for AddressType */\nexport const AddressTypeSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n/** ASN.1 schema for OrganizationIdentificationSchemeNameChoice */\nexport const OrganizationIdentificationSchemeNameChoiceSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n/** ASN.1 schema for PersonIdentificationSchemeNameChoice */\nexport const PersonIdentificationSchemeNameChoiceSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n// Generated ASN.1 schemas for ISO 20022 regular sequence types\n/** ASN.1 schema for GenericOrganizationIdentification */\nexport const GenericOrganizationIdentificationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['id', 'issuer', 'schemeName'],\n\tcontains: {\n\t\tid: { type: 'string', kind: 'utf8' },\n\t\tissuer: { optional: { type: 'string', kind: 'utf8' } },\n\t\tschemeName: { optional: OrganizationIdentificationSchemeNameChoiceSchema }\n\t}\n};\n\n/** ASN.1 schema for GenericPersonIdentification */\nexport const GenericPersonIdentificationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['id', 'issuer', 'schemeName'],\n\tcontains: {\n\t\tid: { type: 'string', kind: 'utf8' },\n\t\tissuer: { optional: { type: 'string', kind: 'utf8' } },\n\t\tschemeName: { optional: PersonIdentificationSchemeNameChoiceSchema }\n\t}\n};\n\n/** ASN.1 schema for OtherContact */\nexport const OtherContactSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['channelType', 'id'],\n\tcontains: {\n\t\tchannelType: { type: 'string', kind: 'utf8' },\n\t\tid: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\n\n// Generated ASN.1 schemas for ISO 20022 sequence-of-choice types\n/** ASN.1 schema for OrganizationIdentification */\nexport const OrganizationIdentificationSchema: ASN1.Schema = {\n\tsequenceOf: {\n\t\tchoice: [\n\t\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 2, contains: GenericOrganizationIdentificationSchema }\n\t\t]\n\t}\n};\n\nexport const OrganizationIdentificationFields = [\n\t'bic',\n\t'lei',\n\t'other'\n] as const;\n\n\n/** ASN.1 schema for PersonIdentification */\nexport const PersonIdentificationSchema: ASN1.Schema = {\n\tsequenceOf: {\n\t\tchoice: [\n\t\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 1, contains: GenericPersonIdentificationSchema }\n\t\t]\n\t}\n};\n\nexport const PersonIdentificationFields = [\n\t'dateAndPlaceOfBirth',\n\t'other'\n] as const;\n\n\n// Generated ASN.1 schemas for choice-type sensitive attributes\n/** Person's full name */\n/** OID: 1.3.6.1.4.1.62675.1.0 */\nexport type FullName = string;\n\n/** Person's first name */\n/** OID: 1.3.6.1.4.1.62675.1.0.1 */\nexport type FirstName = string;\n\n/** Person's last name */\n/** OID: 1.3.6.1.4.1.62675.1.0.2 */\nexport type LastName = string;\n\n/** Person's middle name */\n/** OID: 1.3.6.1.4.1.62675.1.0.3 */\nexport type MiddleName = string;\n\n/** Date of birth */\n/** OID: 1.3.6.1.4.1.62675.1.1 */\nexport type DateOfBirth = Date;\n\n/** Physical address */\n/** OID: 1.3.6.1.4.1.62675.1.2 */\nexport interface Address {\n\taddressType?: AddressType;\n\tdepartment?: Department;\n\tsubDepartment?: SubDepartment;\n\tstreetName?: StreetName;\n\tbuildingNumber?: BuildingNumber;\n\tpostalCode?: PostalCode;\n\ttownName?: TownName;\n\tcountrySubDivision?: CountrySubDivision;\n\tcountry?: Country;\n\taddressLines?: AddressLines;\n}\n\n/** Email address */\n/** OID: 1.3.6.1.4.1.62675.1.3 */\nexport type Email = string;\n\n/** Phone number */\n/** OID: 1.3.6.1.4.1.62675.1.4 */\nexport type PhoneNumber = string;\n\n/** Date and place of birth information */\n/** OID: 1.3.6.1.4.1.62675.1.5 */\nexport interface DateAndPlaceOfBirth {\n\tbirthDate: BirthDate;\n\tprovinceOfBirth?: CountrySubDivision;\n\tcityOfBirth: TownName;\n\tcountryOfBirth: Country;\n}\n\n/** Job title */\n/** OID: 1.3.6.1.4.1.62675.1.6 */\nexport type JobTitle = string;\n\n/** Job responsibility */\n/** OID: 1.3.6.1.4.1.62675.1.6.1 */\nexport type JobResponsibility = string;\n\n/** Identifier */\n/** OID: 1.3.6.1.4.1.62675.1.7 */\nexport type Id = string;\n\n/** Issuer identifier */\n/** OID: 1.3.6.1.4.1.62675.1.7.1 */\nexport type Issuer = string;\n\n/** Entity type (organization or person) */\n/** OID: 1.3.6.1.4.1.62675.1.8 */\nexport interface EntityType {\n\torganization?: GenericOrganizationIdentification[];\n\tperson?: GenericPersonIdentification[];\n}\n\n/** Contact details */\n/** OID: 1.3.6.1.4.1.62675.1.9 */\nexport interface ContactDetails {\n\tnamePrefix?: NamePrefixCode;\n\tfullName?: FullName;\n\tphoneNumber?: PhoneNumber;\n\tmobileNumber?: PhoneNumber;\n\tfaxNumber?: PhoneNumber;\n\temailAddress?: EmailAddress;\n\temailPurpose?: EmailAddressPurpose;\n\tjobTitle?: JobTitle;\n\tjobResponsibility?: JobResponsibility;\n\tdepartment?: Department;\n\tother?: OtherContact[];\n\tpreferredMethod?: PreferredContactMethodCode;\n}\n\n/** Nationality */\n/** OID: 1.3.6.1.4.1.62675.1.10 */\nexport type Nationality = string;\n\n/** Document information */\n/** OID: 1.3.6.1.4.1.62675.1.11 */\nexport type Document = Reference;\n\n/** Driver's license front side document */\n/** OID: 1.3.6.1.4.1.62675.1.11.0 */\nexport type DocumentDriversLicenseFront = Document;\n\n/** Driver's license back side document */\n/** OID: 1.3.6.1.4.1.62675.1.11.0.1 */\nexport type DocumentDriversLicenseBack = Document;\n\n/** Passport document */\n/** OID: 1.3.6.1.4.1.62675.1.11.1 */\nexport type DocumentPassport = Document;\n\n/** Resident ID */\n/** OID: 1.3.6.1.4.1.62675.1.11.2 */\nexport type DocumentResidentCardFront = Document;\n\n/** Resident ID */\n/** OID: 1.3.6.1.4.1.62675.1.11.2.0 */\nexport type DocumentResidentCardBack = Document;\n\n/** Visa ID */\n/** OID: 1.3.6.1.4.1.62675.1.11.3 */\nexport type DocumentVisaFront = Document;\n\n/** Visa ID */\n/** OID: 1.3.6.1.4.1.62675.1.11.3.0 */\nexport type DocumentVisaBack = Document;\n\n/** Work permit ID */\n/** OID: 1.3.6.1.4.1.62675.1.11.4 */\nexport type DocumentWorkPermitFront = Document;\n\n/** Work permit ID */\n/** OID: 1.3.6.1.4.1.62675.1.11.4.0 */\nexport type DocumentWorkPermitBack = Document;\n\n/** DigestInfo from RFC 3447 */\nexport interface DigestInfo {\n\tdigestAlgorithm: ASN1.ASN1OID;\n\tdigest: Buffer;\n}\n\nexport const DigestInfoSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['digestAlgorithm', 'digest'],\n\tcontains: {\n\t\tdigestAlgorithm: ASN1.ValidateASN1.IsOID,\n\t\tdigest: ASN1.ValidateASN1.IsOctetString\n\t}\n};\n\n/** External reference pointer */\nexport interface ExternalReference {\n\turl: string;\n\tcontentType: string;\n}\n\nexport const ExternalReferenceSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['url', 'contentType'],\n\tcontains: {\n\t\turl: { type: 'string', kind: 'utf8' },\n\t\tcontentType: { type: 'string', kind: 'utf8' }\n\t}\n};\n\n/** Reference */\nexport interface Reference {\n\texternal: ExternalReference;\n\tdigest: DigestInfo;\n\tencryptionAlgorithm: ASN1.ASN1OID;\n}\n\nexport const ReferenceSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['external', 'digest', 'encryptionAlgorithm'],\n\tcontains: {\n\t\texternal: ExternalReferenceSchema,\n\t\tdigest: DigestInfoSchema,\n\t\tencryptionAlgorithm: ASN1.ValidateASN1.IsOID\n\t}\n};\n\n// Token aliases for sensitive attributes\n/** Alias for DateOfBirth */\nexport type BirthDate = DateOfBirth;\n\n/** Alias for Email */\nexport type EmailAddress = Email;\n\n/** Alias for DocumentVisaFront */\nexport type documentVisaFront = DocumentVisaFront;\n\n/** Alias for DocumentVisaBack */\nexport type documentVisaBack = DocumentVisaBack;\n\n/** Union type of all sensitive attribute types */\nexport type SensitiveAttributeType =\n\t| FullName\n\t| FirstName\n\t| LastName\n\t| MiddleName\n\t| DateOfBirth\n\t| Address\n\t| Email\n\t| PhoneNumber\n\t| DateAndPlaceOfBirth\n\t| JobTitle\n\t| JobResponsibility\n\t| Id\n\t| Issuer\n\t| EntityType\n\t| ContactDetails\n\t| Nationality\n\t| Document\n\t| DocumentDriversLicenseFront\n\t| DocumentDriversLicenseBack\n\t| DocumentPassport\n\t| DocumentResidentCardFront\n\t| DocumentResidentCardBack\n\t| DocumentVisaFront\n\t| DocumentVisaBack\n\t| DocumentWorkPermitFront\n\t| DocumentWorkPermitBack;\n\n/** Map of attribute name to acceptable input type for CertificateBuilder.setAttribute */\nexport interface CertificateAttributeValueMap {\n\t'fullName': FullName;\n\t'firstName': FirstName;\n\t'lastName': LastName;\n\t'middleName': MiddleName;\n\t'dateOfBirth': DateOfBirth;\n\t'address': Address;\n\t'email': Email;\n\t'phoneNumber': PhoneNumber;\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirth;\n\t'jobTitle': JobTitle;\n\t'jobResponsibility': JobResponsibility;\n\t'id': Id;\n\t'issuer': Issuer;\n\t'entityType': EntityType;\n\t'contactDetails': ContactDetails;\n\t'nationality': Nationality;\n\t'document': Document;\n\t'documentDriversLicenseFront': DocumentDriversLicenseFront;\n\t'documentDriversLicenseBack': DocumentDriversLicenseBack;\n\t'documentPassport': DocumentPassport;\n\t'documentResidentCardFront': DocumentResidentCardFront;\n\t'documentResidentCardBack': DocumentResidentCardBack;\n\t'documentVisaFront': DocumentVisaFront;\n\t'documentVisaBack': DocumentVisaBack;\n\t'documentWorkPermitFront': DocumentWorkPermitFront;\n\t'documentWorkPermitBack': DocumentWorkPermitBack;\n}\n\n/** Helper generic to get attribute value type by name */\nexport type CertificateAttributeValue<Name extends keyof CertificateAttributeValueMap> = CertificateAttributeValueMap[Name];\n\nexport const AddressFields = ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'] as const;\nexport const AddressSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'],\n\tcontains: {\n\t\taddressLines: { optional: { sequenceOf: { type: 'string', kind: 'utf8' } } },\n\t\taddressType: { optional: AddressTypeSchema },\n\t\tbuildingNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tcountry: { optional: { type: 'string', kind: 'utf8' } },\n\t\tcountrySubDivision: { optional: { type: 'string', kind: 'utf8' } },\n\t\tdepartment: { optional: { type: 'string', kind: 'utf8' } },\n\t\tpostalCode: { optional: { type: 'string', kind: 'utf8' } },\n\t\tstreetName: { optional: { type: 'string', kind: 'utf8' } },\n\t\tsubDepartment: { optional: { type: 'string', kind: 'utf8' } },\n\t\ttownName: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\nexport const DateAndPlaceOfBirthFields = ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'] as const;\nexport const DateAndPlaceOfBirthSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'],\n\tcontains: {\n\t\tbirthDate: ASN1.ValidateASN1.IsDate,\n\t\tcityOfBirth: { type: 'string', kind: 'utf8' },\n\t\tcountryOfBirth: { type: 'string', kind: 'utf8' },\n\t\tprovinceOfBirth: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\nexport const EntityTypeFields = ['organization', 'person'] as const;\nexport const EntityTypeSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['organization', 'person'],\n\tcontains: {\n\t\torganization: { optional: { sequenceOf: GenericOrganizationIdentificationSchema } },\n\t\tperson: { optional: { sequenceOf: GenericPersonIdentificationSchema } }\n\t}\n};\nexport const ContactDetailsFields = ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'] as const;\nexport const ContactDetailsSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'],\n\tcontains: {\n\t\tdepartment: { optional: { type: 'string', kind: 'utf8' } },\n\t\temailAddress: { optional: { type: 'string', kind: 'utf8' } },\n\t\temailPurpose: { optional: { type: 'string', kind: 'utf8' } },\n\t\tfaxNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tfullName: { optional: { type: 'string', kind: 'utf8' } },\n\t\tjobResponsibility: { optional: { type: 'string', kind: 'utf8' } },\n\t\tjobTitle: { optional: { type: 'string', kind: 'utf8' } },\n\t\tmobileNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tnamePrefix: { optional: { type: 'string', kind: 'utf8' } },\n\t\tother: { optional: { sequenceOf: OtherContactSchema } },\n\t\tphoneNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tpreferredMethod: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\nexport const CertificateAttributeOIDDB = {\n\t'fullName': '1.3.6.1.4.1.62675.1.0',\n\t'firstName': '1.3.6.1.4.1.62675.1.0.1',\n\t'lastName': '1.3.6.1.4.1.62675.1.0.2',\n\t'middleName': '1.3.6.1.4.1.62675.1.0.3',\n\t'dateOfBirth': '1.3.6.1.4.1.62675.1.1',\n\t'address': '1.3.6.1.4.1.62675.1.2',\n\t'email': '1.3.6.1.4.1.62675.1.3',\n\t'phoneNumber': '1.3.6.1.4.1.62675.1.4',\n\t'dateAndPlaceOfBirth': '1.3.6.1.4.1.62675.1.5',\n\t'jobTitle': '1.3.6.1.4.1.62675.1.6',\n\t'jobResponsibility': '1.3.6.1.4.1.62675.1.6.1',\n\t'id': '1.3.6.1.4.1.62675.1.7',\n\t'issuer': '1.3.6.1.4.1.62675.1.7.1',\n\t'entityType': '1.3.6.1.4.1.62675.1.8',\n\t'contactDetails': '1.3.6.1.4.1.62675.1.9',\n\t'nationality': '1.3.6.1.4.1.62675.1.10',\n\t'document': '1.3.6.1.4.1.62675.1.11',\n\t'documentDriversLicenseFront': '1.3.6.1.4.1.62675.1.11.0',\n\t'documentDriversLicenseBack': '1.3.6.1.4.1.62675.1.11.0.1',\n\t'documentPassport': '1.3.6.1.4.1.62675.1.11.1',\n\t'documentResidentCardFront': '1.3.6.1.4.1.62675.1.11.2',\n\t'documentResidentCardBack': '1.3.6.1.4.1.62675.1.11.2.0',\n\t'documentVisaFront': '1.3.6.1.4.1.62675.1.11.3',\n\t'documentVisaBack': '1.3.6.1.4.1.62675.1.11.3.0',\n\t'documentWorkPermitFront': '1.3.6.1.4.1.62675.1.11.4',\n\t'documentWorkPermitBack': '1.3.6.1.4.1.62675.1.11.4.0'\n} as const;\n\nexport const SENSITIVE_CERTIFICATE_ATTRIBUTES = [\n\t'fullName',\n\t'firstName',\n\t'lastName',\n\t'middleName',\n\t'dateOfBirth',\n\t'address',\n\t'email',\n\t'phoneNumber',\n\t'dateAndPlaceOfBirth',\n\t'jobTitle',\n\t'jobResponsibility',\n\t'id',\n\t'issuer',\n\t'entityType',\n\t'contactDetails',\n\t'nationality',\n\t'document',\n\t'documentDriversLicenseFront',\n\t'documentDriversLicenseBack',\n\t'documentPassport',\n\t'documentResidentCardFront',\n\t'documentResidentCardBack',\n\t'documentVisaFront',\n\t'documentVisaBack',\n\t'documentWorkPermitFront',\n\t'documentWorkPermitBack'\n] as const;\n\nexport type SensitiveCertificateAttributeNames = typeof SENSITIVE_CERTIFICATE_ATTRIBUTES[number];\n\nexport const SensitiveCertificateAttributeNames = [\n\t'FullName',\n\t'FirstName',\n\t'LastName',\n\t'MiddleName',\n\t'DateOfBirth',\n\t'Address',\n\t'Email',\n\t'PhoneNumber',\n\t'DateAndPlaceOfBirth',\n\t'JobTitle',\n\t'JobResponsibility',\n\t'Id',\n\t'Issuer',\n\t'EntityType',\n\t'ContactDetails',\n\t'Nationality',\n\t'Document',\n\t'DocumentDriversLicenseFront',\n\t'DocumentDriversLicenseBack',\n\t'DocumentPassport',\n\t'DocumentResidentCardFront',\n\t'DocumentResidentCardBack',\n\t'DocumentVisaFront',\n\t'DocumentVisaBack',\n\t'DocumentWorkPermitFront',\n\t'DocumentWorkPermitBack'\n] as const;\n\nexport const CertificateAttributeFieldNames: { readonly [K in keyof typeof CertificateAttributeOIDDB]?: readonly string[] } = {\n\t'address': AddressFields,\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirthFields,\n\t'entityType': EntityTypeFields,\n\t'contactDetails': ContactDetailsFields\n} as const;\n\nexport const CertificateAttributeSchema: { readonly [K in keyof typeof CertificateAttributeOIDDB]: ASN1.Schema } = {\n\t'fullName': { type: 'string', kind: 'utf8' },\n\t'firstName': { type: 'string', kind: 'utf8' },\n\t'lastName': { type: 'string', kind: 'utf8' },\n\t'middleName': { type: 'string', kind: 'utf8' },\n\t'dateOfBirth': ASN1.ValidateASN1.IsDate,\n\t'address': AddressSchema,\n\t'email': { type: 'string', kind: 'utf8' },\n\t'phoneNumber': { type: 'string', kind: 'utf8' },\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirthSchema,\n\t'jobTitle': { type: 'string', kind: 'utf8' },\n\t'jobResponsibility': { type: 'string', kind: 'utf8' },\n\t'id': { type: 'string', kind: 'utf8' },\n\t'issuer': { type: 'string', kind: 'utf8' },\n\t'entityType': EntityTypeSchema,\n\t'contactDetails': ContactDetailsSchema,\n\t'nationality': { type: 'string', kind: 'utf8' },\n\t'document': ReferenceSchema,\n\t'documentDriversLicenseFront': ReferenceSchema,\n\t'documentDriversLicenseBack': ReferenceSchema,\n\t'documentPassport': ReferenceSchema,\n\t'documentResidentCardFront': ReferenceSchema,\n\t'documentResidentCardBack': ReferenceSchema,\n\t'documentVisaFront': ReferenceSchema,\n\t'documentVisaBack': ReferenceSchema,\n\t'documentWorkPermitFront': ReferenceSchema,\n\t'documentWorkPermitBack': ReferenceSchema\n} as const;\n"]}
|
|
1
|
+
{"version":3,"file":"iso20022.generated.js","sourceRoot":"","sources":["../../../src/services/kyc/iso20022.generated.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AA2IhD,qDAAqD;AACrD,mCAAmC;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAgB;IAC7C,MAAM,EAAE;QACP,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAC3F,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;KAC3F;CACD,CAAC;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,gDAAgD,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C,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IACzC,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC/C,qBAAqB,EAAE,yBAAyB;IAChD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC5C,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IACrD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IACtC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC1C,YAAY,EAAE,gBAAgB;IAC9B,gBAAgB,EAAE,oBAAoB;IACtC,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC/C,UAAU,EAAE,cAAc;IAC1B,wBAAwB,EAAE,cAAc;IACxC,gBAAgB,EAAE,cAAc;IAChC,kBAAkB,EAAE,cAAc;IAClC,sBAAsB,EAAE,cAAc;IACtC,gBAAgB,EAAE,cAAc;IAChC,cAAc,EAAE,cAAc;IAC9B,2BAA2B,EAAE,cAAc;CAClC,CAAC","sourcesContent":["/* eslint-disable */\n/**\n * Generated ISO20022 Type Definitions\n * This file is auto-generated from oids.json.\n */\n\nimport * as ASN1 from '../../lib/utils/asn1.js';\nimport { lib as KeetaNetLib } from '@keetanetwork/keetanet-client';\ntype KeetaNetAccount = InstanceType<typeof KeetaNetLib.Account>;\n\n// ISO20022 Primitive Types\n/** Country code or name */\n/** OID: 1.3.6.1.4.1.62675.1.2.0 */\nexport type Country = string;\n\n/** Country subdivision (state/province) */\n/** OID: 1.3.6.1.4.1.62675.1.2.1 */\nexport type CountrySubDivision = string;\n\n/** Postal code */\n/** OID: 1.3.6.1.4.1.62675.1.2.3 */\nexport type PostalCode = string;\n\n/** Town or city name */\n/** OID: 1.3.6.1.4.1.62675.1.2.4 */\nexport type TownName = string;\n\n/** Building number */\n/** OID: 1.3.6.1.4.1.62675.1.2.5 */\nexport type BuildingNumber = string;\n\n/** Street name */\n/** OID: 1.3.6.1.4.1.62675.1.2.6 */\nexport type StreetName = string;\n\n/** Free-form address lines */\n/** OID: 1.3.6.1.4.1.62675.1.2.7 */\nexport type AddressLines = string[];\n\n/** Sub-department */\n/** OID: 1.3.6.1.4.1.62675.1.2.8 */\nexport type SubDepartment = string;\n\n/** Department */\n/** OID: 1.3.6.1.4.1.62675.1.2.9 */\nexport type Department = string;\n\n/** Purpose of email address */\n/** OID: 1.3.6.1.4.1.62675.1.3.0 */\nexport type EmailAddressPurpose = string;\n\n// ISO20022 Enumeration Types\n/** Name prefix code */\n/** OID: 1.3.6.1.4.1.62675.1.0.0 */\nexport type NamePrefixCode = 'DOCT' | 'MIST' | 'MISS' | 'MIKS' | 'MME';\n\n/** Preferred contact method */\n/** OID: 1.3.6.1.4.1.62675.1.9.0 */\nexport type PreferredContactMethodCode = 'LETT' | 'MAIL' | 'PHON' | 'FAXX' | 'CELL';\n\n/** Person identification scheme name proprietary values */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.1.0 */\nexport type PersonIdentificationSchemeNameProprietary = 'DRLC' | 'CPPT' | 'ARNU' | 'SSN' | 'TXID' | 'VISA' | 'WPPT';\n\n// ISO20022 Choice Types\n/** Address type classification */\n/** OID: 1.3.6.1.4.1.62675.1.2.10 */\nexport type AddressType = string;\n\n/** Organization identification scheme name */\n/** OID: 1.3.6.1.4.1.62675.1.8.0.2 */\nexport type OrganizationIdentificationSchemeNameChoice = string;\n\n/** Person identification scheme name */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.1 */\nexport type PersonIdentificationSchemeNameChoice = string | PersonIdentificationSchemeNameProprietary;\n\n// ISO20022 Sequence Types\n/** Generic organization identification */\n/** OID: 1.3.6.1.4.1.62675.1.8.0.1 */\nexport interface GenericOrganizationIdentification {\n\tid: Id;\n\tschemeName?: OrganizationIdentificationSchemeNameChoice;\n\tissuer?: Issuer;\n}\n\nexport interface OrganizationIdentificationBicChoice {\n\ttag: 0;\n\tname: 'bic';\n\tvalue: string;\n}\n\nexport interface OrganizationIdentificationLeiChoice {\n\ttag: 1;\n\tname: 'lei';\n\tvalue: string;\n}\n\nexport interface OrganizationIdentificationOtherChoice {\n\ttag: 2;\n\tname: 'other';\n\tvalue: GenericOrganizationIdentification[];\n}\nexport type OrganizationIdentificationChoice =\n\t| OrganizationIdentificationBicChoice\n\t| OrganizationIdentificationLeiChoice\n\t| OrganizationIdentificationOtherChoice;\n\nexport type OrganizationIdentification = OrganizationIdentificationChoice[];\n\n\n/** Generic person identification */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.0 */\nexport interface GenericPersonIdentification {\n\tid: Id;\n\tschemeName?: PersonIdentificationSchemeNameChoice;\n\tissuer?: Issuer;\n}\n\nexport interface PersonIdentificationDateAndPlaceOfBirthChoice {\n\ttag: 0;\n\tname: 'dateAndPlaceOfBirth';\n\tvalue: DateAndPlaceOfBirth;\n}\n\nexport interface PersonIdentificationOtherChoice {\n\ttag: 1;\n\tname: 'other';\n\tvalue: GenericPersonIdentification[];\n}\nexport type PersonIdentificationChoice =\n\t| PersonIdentificationDateAndPlaceOfBirthChoice\n\t| PersonIdentificationOtherChoice;\n\nexport type PersonIdentification = PersonIdentificationChoice[];\n\n\n/** Other contact method */\n/** OID: 1.3.6.1.4.1.62675.1.9.1 */\nexport interface OtherContact {\n\tid?: Id;\n\tchannelType: string;\n}\n\n\n// Generated ASN.1 schemas for ISO 20022 choice types\n/** ASN.1 schema for AddressType */\nexport const AddressTypeSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n/** ASN.1 schema for OrganizationIdentificationSchemeNameChoice */\nexport const OrganizationIdentificationSchemeNameChoiceSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n/** ASN.1 schema for PersonIdentificationSchemeNameChoice */\nexport const PersonIdentificationSchemeNameChoiceSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n// Generated ASN.1 schemas for ISO 20022 regular sequence types\n/** ASN.1 schema for GenericOrganizationIdentification */\nexport const GenericOrganizationIdentificationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['id', 'issuer', 'schemeName'],\n\tcontains: {\n\t\tid: { type: 'string', kind: 'utf8' },\n\t\tissuer: { optional: { type: 'string', kind: 'utf8' } },\n\t\tschemeName: { optional: OrganizationIdentificationSchemeNameChoiceSchema }\n\t}\n};\n\n/** ASN.1 schema for GenericPersonIdentification */\nexport const GenericPersonIdentificationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['id', 'issuer', 'schemeName'],\n\tcontains: {\n\t\tid: { type: 'string', kind: 'utf8' },\n\t\tissuer: { optional: { type: 'string', kind: 'utf8' } },\n\t\tschemeName: { optional: PersonIdentificationSchemeNameChoiceSchema }\n\t}\n};\n\n/** ASN.1 schema for OtherContact */\nexport const OtherContactSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['channelType', 'id'],\n\tcontains: {\n\t\tchannelType: { type: 'string', kind: 'utf8' },\n\t\tid: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\n\n// Generated ASN.1 schemas for ISO 20022 sequence-of-choice types\n/** ASN.1 schema for OrganizationIdentification */\nexport const OrganizationIdentificationSchema: ASN1.Schema = {\n\tsequenceOf: {\n\t\tchoice: [\n\t\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 2, contains: GenericOrganizationIdentificationSchema }\n\t\t]\n\t}\n};\n\nexport const OrganizationIdentificationFields = [\n\t'bic',\n\t'lei',\n\t'other'\n] as const;\n\n\n/** ASN.1 schema for PersonIdentification */\nexport const PersonIdentificationSchema: ASN1.Schema = {\n\tsequenceOf: {\n\t\tchoice: [\n\t\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 1, contains: GenericPersonIdentificationSchema }\n\t\t]\n\t}\n};\n\nexport const PersonIdentificationFields = [\n\t'dateAndPlaceOfBirth',\n\t'other'\n] as const;\n\n\n// Generated ASN.1 schemas for choice-type sensitive attributes\n/** Person's full name */\n/** OID: 1.3.6.1.4.1.62675.1.0 */\nexport type FullName = string;\n\n/** Person's first name */\n/** OID: 1.3.6.1.4.1.62675.1.0.1 */\nexport type FirstName = string;\n\n/** Person's last name */\n/** OID: 1.3.6.1.4.1.62675.1.0.2 */\nexport type LastName = string;\n\n/** Person's middle name */\n/** OID: 1.3.6.1.4.1.62675.1.0.3 */\nexport type MiddleName = string;\n\n/** Date of birth */\n/** OID: 1.3.6.1.4.1.62675.1.1 */\nexport type DateOfBirth = Date;\n\n/** Physical address */\n/** OID: 1.3.6.1.4.1.62675.1.2 */\nexport interface Address {\n\taddressType?: AddressType;\n\tdepartment?: Department;\n\tsubDepartment?: SubDepartment;\n\tstreetName?: StreetName;\n\tbuildingNumber?: BuildingNumber;\n\tpostalCode?: PostalCode;\n\ttownName?: TownName;\n\tcountrySubDivision?: CountrySubDivision;\n\tcountry?: Country;\n\taddressLines?: AddressLines;\n}\n\n/** Email address */\n/** OID: 1.3.6.1.4.1.62675.1.3 */\nexport type Email = string;\n\n/** Phone number */\n/** OID: 1.3.6.1.4.1.62675.1.4 */\nexport type PhoneNumber = string;\n\n/** Date and place of birth information */\n/** OID: 1.3.6.1.4.1.62675.1.5 */\nexport interface DateAndPlaceOfBirth {\n\tbirthDate: BirthDate;\n\tprovinceOfBirth?: CountrySubDivision;\n\tcityOfBirth: TownName;\n\tcountryOfBirth: Country;\n}\n\n/** Job title */\n/** OID: 1.3.6.1.4.1.62675.1.6 */\nexport type JobTitle = string;\n\n/** Job responsibility */\n/** OID: 1.3.6.1.4.1.62675.1.6.1 */\nexport type JobResponsibility = string;\n\n/** Identifier */\n/** OID: 1.3.6.1.4.1.62675.1.7 */\nexport type Id = string;\n\n/** Issuer identifier */\n/** OID: 1.3.6.1.4.1.62675.1.7.1 */\nexport type Issuer = string;\n\n/** Entity type (organization or person) */\n/** OID: 1.3.6.1.4.1.62675.1.8 */\nexport interface EntityType {\n\torganization?: GenericOrganizationIdentification[];\n\tperson?: GenericPersonIdentification[];\n}\n\n/** Contact details */\n/** OID: 1.3.6.1.4.1.62675.1.9 */\nexport interface ContactDetails {\n\tnamePrefix?: NamePrefixCode;\n\tfullName?: FullName;\n\tphoneNumber?: PhoneNumber;\n\tmobileNumber?: PhoneNumber;\n\tfaxNumber?: PhoneNumber;\n\temailAddress?: EmailAddress;\n\temailPurpose?: EmailAddressPurpose;\n\tjobTitle?: JobTitle;\n\tjobResponsibility?: JobResponsibility;\n\tdepartment?: Department;\n\tother?: OtherContact[];\n\tpreferredMethod?: PreferredContactMethodCode;\n}\n\n/** Nationality */\n/** OID: 1.3.6.1.4.1.62675.1.10 */\nexport type Nationality = string;\n\n/** Generic document structure with metadata */\n/** OID: 1.3.6.1.4.1.62675.1.11 */\nexport interface Document {\n\tdocumentNumber: string;\n\tfront?: Reference;\n\tback?: Reference;\n\tselfie?: Reference;\n\tfullName?: string;\n\tfirstName?: string;\n\tlastName?: string;\n\tdob?: Date;\n\tgender?: string;\n\taddress?: Address;\n\texpiresAt?: Date;\n\tissuedAt?: Date;\n\tissuingState?: string;\n\tissuingCountry?: string;\n\trefNumber?: string;\n\tnationality?: string;\n\tcurp?: string;\n\tclaveDeElector?: string;\n\tclassifiedDocumentType?: string;\n\tcurpValidationResponse?: string;\n\tsambaActivityHistoryResponse?: string;\n}\n\n/** Driver's license document */\n/** OID: 1.3.6.1.4.1.62675.1.11.0 */\nexport type DocumentDriversLicense = Document;\n\n/** ID card document */\n/** OID: 1.3.6.1.4.1.62675.1.11.1 */\nexport type DocumentIdCard = Document;\n\n/** Passport document */\n/** OID: 1.3.6.1.4.1.62675.1.11.2 */\nexport type DocumentPassport = Document;\n\n/** Passport card document */\n/** OID: 1.3.6.1.4.1.62675.1.11.3 */\nexport type DocumentPassportCard = Document;\n\n/** Permit document */\n/** OID: 1.3.6.1.4.1.62675.1.11.4 */\nexport type DocumentPermit = Document;\n\n/** Visa document */\n/** OID: 1.3.6.1.4.1.62675.1.11.5 */\nexport type DocumentVisa = Document;\n\n/** Residence document */\n/** OID: 1.3.6.1.4.1.62675.1.11.6 */\nexport type DocumentResidenceDocument = Document;\n\n/** DigestInfo from RFC 3447 */\nexport interface DigestInfo {\n\tdigestAlgorithm: ASN1.ASN1OID;\n\tdigest: Buffer;\n}\n\nexport const DigestInfoSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['digestAlgorithm', 'digest'],\n\tcontains: {\n\t\tdigestAlgorithm: ASN1.ValidateASN1.IsOID,\n\t\tdigest: ASN1.ValidateASN1.IsOctetString\n\t}\n};\n\n/** External reference pointer */\nexport interface ExternalReference {\n\turl: string;\n\tcontentType: string;\n}\n\nexport const ExternalReferenceSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['url', 'contentType'],\n\tcontains: {\n\t\turl: { type: 'string', kind: 'utf8' },\n\t\tcontentType: { type: 'string', kind: 'utf8' }\n\t}\n};\n\n/** Reference */\nexport interface Reference {\n\texternal: ExternalReference;\n\tdigest: DigestInfo;\n\tencryptionAlgorithm: ASN1.ASN1OID;\n\t/**\n\t * TODOC\n\t */\n\t$blob: (principals?: KeetaNetAccount[]) => Promise<Blob>;\n}\n\nexport const ReferenceSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['external', 'digest', 'encryptionAlgorithm'],\n\tcontains: {\n\t\texternal: ExternalReferenceSchema,\n\t\tdigest: DigestInfoSchema,\n\t\tencryptionAlgorithm: ASN1.ValidateASN1.IsOID\n\t}\n};\n\n// Token aliases for sensitive attributes\n/** Alias for DateOfBirth */\nexport type BirthDate = DateOfBirth;\n\n/** Alias for Email */\nexport type EmailAddress = Email;\n\n/** Union type of all sensitive attribute types */\nexport type SensitiveAttributeType =\n\t| FullName\n\t| FirstName\n\t| LastName\n\t| MiddleName\n\t| DateOfBirth\n\t| Address\n\t| Email\n\t| PhoneNumber\n\t| DateAndPlaceOfBirth\n\t| JobTitle\n\t| JobResponsibility\n\t| Id\n\t| Issuer\n\t| EntityType\n\t| ContactDetails\n\t| Nationality\n\t| Document\n\t| DocumentDriversLicense\n\t| DocumentIdCard\n\t| DocumentPassport\n\t| DocumentPassportCard\n\t| DocumentPermit\n\t| DocumentVisa\n\t| DocumentResidenceDocument;\n\n/** Map of attribute name to acceptable input type for CertificateBuilder.setAttribute */\nexport interface CertificateAttributeValueMap {\n\t'fullName': FullName;\n\t'firstName': FirstName;\n\t'lastName': LastName;\n\t'middleName': MiddleName;\n\t'dateOfBirth': DateOfBirth;\n\t'address': Address;\n\t'email': Email;\n\t'phoneNumber': PhoneNumber;\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirth;\n\t'jobTitle': JobTitle;\n\t'jobResponsibility': JobResponsibility;\n\t'id': Id;\n\t'issuer': Issuer;\n\t'entityType': EntityType;\n\t'contactDetails': ContactDetails;\n\t'nationality': Nationality;\n\t'document': Document;\n\t'documentDriversLicense': DocumentDriversLicense;\n\t'documentIdCard': DocumentIdCard;\n\t'documentPassport': DocumentPassport;\n\t'documentPassportCard': DocumentPassportCard;\n\t'documentPermit': DocumentPermit;\n\t'documentVisa': DocumentVisa;\n\t'documentResidenceDocument': DocumentResidenceDocument;\n}\n\n/** Helper generic to get attribute value type by name */\nexport type CertificateAttributeValue<Name extends keyof CertificateAttributeValueMap> = CertificateAttributeValueMap[Name];\n\nexport const AddressFields = ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'] as const;\nexport const AddressSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'],\n\tcontains: {\n\t\taddressLines: { optional: { sequenceOf: { type: 'string', kind: 'utf8' } } },\n\t\taddressType: { optional: AddressTypeSchema },\n\t\tbuildingNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tcountry: { optional: { type: 'string', kind: 'utf8' } },\n\t\tcountrySubDivision: { optional: { type: 'string', kind: 'utf8' } },\n\t\tdepartment: { optional: { type: 'string', kind: 'utf8' } },\n\t\tpostalCode: { optional: { type: 'string', kind: 'utf8' } },\n\t\tstreetName: { optional: { type: 'string', kind: 'utf8' } },\n\t\tsubDepartment: { optional: { type: 'string', kind: 'utf8' } },\n\t\ttownName: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\nexport const DateAndPlaceOfBirthFields = ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'] as const;\nexport const DateAndPlaceOfBirthSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'],\n\tcontains: {\n\t\tbirthDate: ASN1.ValidateASN1.IsDate,\n\t\tcityOfBirth: { type: 'string', kind: 'utf8' },\n\t\tcountryOfBirth: { type: 'string', kind: 'utf8' },\n\t\tprovinceOfBirth: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\nexport const EntityTypeFields = ['organization', 'person'] as const;\nexport const EntityTypeSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['organization', 'person'],\n\tcontains: {\n\t\torganization: { optional: { sequenceOf: GenericOrganizationIdentificationSchema } },\n\t\tperson: { optional: { sequenceOf: GenericPersonIdentificationSchema } }\n\t}\n};\nexport const ContactDetailsFields = ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'] as const;\nexport const ContactDetailsSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'],\n\tcontains: {\n\t\tdepartment: { optional: { type: 'string', kind: 'utf8' } },\n\t\temailAddress: { optional: { type: 'string', kind: 'utf8' } },\n\t\temailPurpose: { optional: { type: 'string', kind: 'utf8' } },\n\t\tfaxNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tfullName: { optional: { type: 'string', kind: 'utf8' } },\n\t\tjobResponsibility: { optional: { type: 'string', kind: 'utf8' } },\n\t\tjobTitle: { optional: { type: 'string', kind: 'utf8' } },\n\t\tmobileNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tnamePrefix: { optional: { type: 'string', kind: 'utf8' } },\n\t\tother: { optional: { sequenceOf: OtherContactSchema } },\n\t\tphoneNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tpreferredMethod: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\nexport const DocumentFields = ['documentNumber', 'front', 'back', 'selfie', 'fullName', 'firstName', 'lastName', 'dob', 'gender', 'address', 'expiresAt', 'issuedAt', 'issuingState', 'issuingCountry', 'refNumber', 'nationality', 'curp', 'claveDeElector', 'classifiedDocumentType', 'curpValidationResponse', 'sambaActivityHistoryResponse'] as const;\nexport const DocumentSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['documentNumber', 'front', 'back', 'selfie', 'fullName', 'firstName', 'lastName', 'dob', 'gender', 'address', 'expiresAt', 'issuedAt', 'issuingState', 'issuingCountry', 'refNumber', 'nationality', 'curp', 'claveDeElector', 'classifiedDocumentType', 'curpValidationResponse', 'sambaActivityHistoryResponse'],\n\tcontains: {\n\t\tdocumentNumber: { type: 'string', kind: 'utf8' },\n\t\tfront: { optional: ReferenceSchema },\n\t\tback: { optional: ReferenceSchema },\n\t\tselfie: { optional: ReferenceSchema },\n\t\tfullName: { optional: { type: 'string', kind: 'utf8' } },\n\t\tfirstName: { optional: { type: 'string', kind: 'utf8' } },\n\t\tlastName: { optional: { type: 'string', kind: 'utf8' } },\n\t\tdob: { optional: ASN1.ValidateASN1.IsDate },\n\t\tgender: { optional: { type: 'string', kind: 'utf8' } },\n\t\taddress: { optional: AddressSchema },\n\t\texpiresAt: { optional: ASN1.ValidateASN1.IsDate },\n\t\tissuedAt: { optional: ASN1.ValidateASN1.IsDate },\n\t\tissuingState: { optional: { type: 'string', kind: 'utf8' } },\n\t\tissuingCountry: { optional: { type: 'string', kind: 'utf8' } },\n\t\trefNumber: { optional: { type: 'string', kind: 'utf8' } },\n\t\tnationality: { optional: { type: 'string', kind: 'utf8' } },\n\t\tcurp: { optional: { type: 'string', kind: 'utf8' } },\n\t\tclaveDeElector: { optional: { type: 'string', kind: 'utf8' } },\n\t\tclassifiedDocumentType: { optional: { type: 'string', kind: 'utf8' } },\n\t\tcurpValidationResponse: { optional: { type: 'string', kind: 'utf8' } },\n\t\tsambaActivityHistoryResponse: { optional: { type: 'string', kind: 'utf8' } }\n\t}\n};\nexport const CertificateAttributeOIDDB = {\n\t'fullName': '1.3.6.1.4.1.62675.1.0',\n\t'firstName': '1.3.6.1.4.1.62675.1.0.1',\n\t'lastName': '1.3.6.1.4.1.62675.1.0.2',\n\t'middleName': '1.3.6.1.4.1.62675.1.0.3',\n\t'dateOfBirth': '1.3.6.1.4.1.62675.1.1',\n\t'address': '1.3.6.1.4.1.62675.1.2',\n\t'email': '1.3.6.1.4.1.62675.1.3',\n\t'phoneNumber': '1.3.6.1.4.1.62675.1.4',\n\t'dateAndPlaceOfBirth': '1.3.6.1.4.1.62675.1.5',\n\t'jobTitle': '1.3.6.1.4.1.62675.1.6',\n\t'jobResponsibility': '1.3.6.1.4.1.62675.1.6.1',\n\t'id': '1.3.6.1.4.1.62675.1.7',\n\t'issuer': '1.3.6.1.4.1.62675.1.7.1',\n\t'entityType': '1.3.6.1.4.1.62675.1.8',\n\t'contactDetails': '1.3.6.1.4.1.62675.1.9',\n\t'nationality': '1.3.6.1.4.1.62675.1.10',\n\t'document': '1.3.6.1.4.1.62675.1.11',\n\t'documentDriversLicense': '1.3.6.1.4.1.62675.1.11.0',\n\t'documentIdCard': '1.3.6.1.4.1.62675.1.11.1',\n\t'documentPassport': '1.3.6.1.4.1.62675.1.11.2',\n\t'documentPassportCard': '1.3.6.1.4.1.62675.1.11.3',\n\t'documentPermit': '1.3.6.1.4.1.62675.1.11.4',\n\t'documentVisa': '1.3.6.1.4.1.62675.1.11.5',\n\t'documentResidenceDocument': '1.3.6.1.4.1.62675.1.11.6'\n} as const;\n\nexport const SENSITIVE_CERTIFICATE_ATTRIBUTES = [\n\t'fullName',\n\t'firstName',\n\t'lastName',\n\t'middleName',\n\t'dateOfBirth',\n\t'address',\n\t'email',\n\t'phoneNumber',\n\t'dateAndPlaceOfBirth',\n\t'jobTitle',\n\t'jobResponsibility',\n\t'id',\n\t'issuer',\n\t'entityType',\n\t'contactDetails',\n\t'nationality',\n\t'document',\n\t'documentDriversLicense',\n\t'documentIdCard',\n\t'documentPassport',\n\t'documentPassportCard',\n\t'documentPermit',\n\t'documentVisa',\n\t'documentResidenceDocument'\n] as const;\n\nexport type SensitiveCertificateAttributeNames = typeof SENSITIVE_CERTIFICATE_ATTRIBUTES[number];\n\nexport const SensitiveCertificateAttributeNames = [\n\t'FullName',\n\t'FirstName',\n\t'LastName',\n\t'MiddleName',\n\t'DateOfBirth',\n\t'Address',\n\t'Email',\n\t'PhoneNumber',\n\t'DateAndPlaceOfBirth',\n\t'JobTitle',\n\t'JobResponsibility',\n\t'Id',\n\t'Issuer',\n\t'EntityType',\n\t'ContactDetails',\n\t'Nationality',\n\t'Document',\n\t'DocumentDriversLicense',\n\t'DocumentIdCard',\n\t'DocumentPassport',\n\t'DocumentPassportCard',\n\t'DocumentPermit',\n\t'DocumentVisa',\n\t'DocumentResidenceDocument'\n] as const;\n\nexport const CertificateAttributeFieldNames: { readonly [K in keyof typeof CertificateAttributeOIDDB]?: readonly string[] } = {\n\t'address': AddressFields,\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirthFields,\n\t'entityType': EntityTypeFields,\n\t'contactDetails': ContactDetailsFields,\n\t'document': DocumentFields\n} as const;\n\nexport const CertificateAttributeSchema: { readonly [K in keyof typeof CertificateAttributeOIDDB]: ASN1.Schema } = {\n\t'fullName': { type: 'string', kind: 'utf8' },\n\t'firstName': { type: 'string', kind: 'utf8' },\n\t'lastName': { type: 'string', kind: 'utf8' },\n\t'middleName': { type: 'string', kind: 'utf8' },\n\t'dateOfBirth': ASN1.ValidateASN1.IsDate,\n\t'address': AddressSchema,\n\t'email': { type: 'string', kind: 'utf8' },\n\t'phoneNumber': { type: 'string', kind: 'utf8' },\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirthSchema,\n\t'jobTitle': { type: 'string', kind: 'utf8' },\n\t'jobResponsibility': { type: 'string', kind: 'utf8' },\n\t'id': { type: 'string', kind: 'utf8' },\n\t'issuer': { type: 'string', kind: 'utf8' },\n\t'entityType': EntityTypeSchema,\n\t'contactDetails': ContactDetailsSchema,\n\t'nationality': { type: 'string', kind: 'utf8' },\n\t'document': DocumentSchema,\n\t'documentDriversLicense': DocumentSchema,\n\t'documentIdCard': DocumentSchema,\n\t'documentPassport': DocumentSchema,\n\t'documentPassportCard': DocumentSchema,\n\t'documentPermit': DocumentSchema,\n\t'documentVisa': DocumentSchema,\n\t'documentResidenceDocument': DocumentSchema\n} as const;\n"]}
|
|
@@ -64,36 +64,30 @@ export declare namespace keeta {
|
|
|
64
64
|
/** Nationality */
|
|
65
65
|
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.10 */
|
|
66
66
|
const NATIONALITY = "1.3.6.1.4.1.62675.1.10";
|
|
67
|
-
/**
|
|
68
|
-
/** @see
|
|
67
|
+
/** Generic document structure with metadata */
|
|
68
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11 */
|
|
69
69
|
const DOCUMENT = "1.3.6.1.4.1.62675.1.11";
|
|
70
|
-
/** Driver's license
|
|
70
|
+
/** Driver's license document */
|
|
71
71
|
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.0 */
|
|
72
|
-
const
|
|
73
|
-
/**
|
|
74
|
-
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.0.1 */
|
|
75
|
-
const DOCUMENT_DRIVERS_LICENSE_BACK = "1.3.6.1.4.1.62675.1.11.0.1";
|
|
76
|
-
/** Passport document */
|
|
72
|
+
const DOCUMENT_DRIVERS_LICENSE = "1.3.6.1.4.1.62675.1.11.0";
|
|
73
|
+
/** ID card document */
|
|
77
74
|
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.1 */
|
|
78
|
-
const
|
|
79
|
-
/**
|
|
75
|
+
const DOCUMENT_ID_CARD = "1.3.6.1.4.1.62675.1.11.1";
|
|
76
|
+
/** Passport document */
|
|
80
77
|
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.2 */
|
|
81
|
-
const
|
|
82
|
-
/**
|
|
83
|
-
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.2.0 */
|
|
84
|
-
const DOCUMENT_RESIDENT_CARD_BACK = "1.3.6.1.4.1.62675.1.11.2.0";
|
|
85
|
-
/** Visa ID */
|
|
78
|
+
const DOCUMENT_PASSPORT = "1.3.6.1.4.1.62675.1.11.2";
|
|
79
|
+
/** Passport card document */
|
|
86
80
|
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.3 */
|
|
87
|
-
const
|
|
88
|
-
/**
|
|
89
|
-
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.3.0 */
|
|
90
|
-
const DOCUMENT_VISA_BACK = "1.3.6.1.4.1.62675.1.11.3.0";
|
|
91
|
-
/** Work permit ID */
|
|
81
|
+
const DOCUMENT_PASSPORT_CARD = "1.3.6.1.4.1.62675.1.11.3";
|
|
82
|
+
/** Permit document */
|
|
92
83
|
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.4 */
|
|
93
|
-
const
|
|
94
|
-
/**
|
|
95
|
-
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.
|
|
96
|
-
const
|
|
84
|
+
const DOCUMENT_PERMIT = "1.3.6.1.4.1.62675.1.11.4";
|
|
85
|
+
/** Visa document */
|
|
86
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.5 */
|
|
87
|
+
const DOCUMENT_VISA = "1.3.6.1.4.1.62675.1.11.5";
|
|
88
|
+
/** Residence document */
|
|
89
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.6 */
|
|
90
|
+
const DOCUMENT_RESIDENCE_DOCUMENT = "1.3.6.1.4.1.62675.1.11.6";
|
|
97
91
|
}
|
|
98
92
|
export declare const OID_TO_NAME: {
|
|
99
93
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oids.generated.d.ts","sourceRoot":"","sources":["../../../src/services/kyc/oids.generated.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AACjD,eAAO,MAAM,QAAQ,2BAA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file":"oids.generated.d.ts","sourceRoot":"","sources":["../../../src/services/kyc/oids.generated.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AACjD,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AAGjD,sBAAsB;AACtB,uCAAuC;AACvC,eAAO,MAAM,WAAW,aAAa,CAAC;AAItC,yBAAiB,KAAK,CAAC;IACtB,sDAAsD;IACtD,0DAA0D;IACnD,MAAM,cAAc,0BAA0B,CAAC;IACtD,+BAA+B;IAC/B,iCAAiC;IACjC,gBAAgB;IAChB,yBAAyB;IACzB,0DAA0D;IACnD,MAAM,SAAS,0BAA0B,CAAC;IACjD,0BAA0B;IAC1B,4DAA4D;IACrD,MAAM,UAAU,4BAA4B,CAAC;IACpD,yBAAyB;IACzB,4DAA4D;IACrD,MAAM,SAAS,4BAA4B,CAAC;IACnD,2BAA2B;IAC3B,4DAA4D;IACrD,MAAM,WAAW,4BAA4B,CAAC;IACrD,oBAAoB;IACpB,0DAA0D;IACnD,MAAM,aAAa,0BAA0B,CAAC;IACrD,uBAAuB;IACvB,0DAA0D;IACnD,MAAM,OAAO,0BAA0B,CAAC;IAC/C,oBAAoB;IACpB,0DAA0D;IACnD,MAAM,KAAK,0BAA0B,CAAC;IAC7C,mBAAmB;IACnB,0DAA0D;IACnD,MAAM,YAAY,0BAA0B,CAAC;IACpD,0CAA0C;IAC1C,0DAA0D;IACnD,MAAM,uBAAuB,0BAA0B,CAAC;IAC/D,gBAAgB;IAChB,0DAA0D;IACnD,MAAM,SAAS,0BAA0B,CAAC;IACjD,yBAAyB;IACzB,4DAA4D;IACrD,MAAM,kBAAkB,4BAA4B,CAAC;IAC5D,iBAAiB;IACjB,0DAA0D;IACnD,MAAM,EAAE,0BAA0B,CAAC;IAC1C,wBAAwB;IACxB,4DAA4D;IACrD,MAAM,M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