@nexeraprotocol/nexera-id-schemas
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -6,4 +6,4 @@ 'use strict'; | ||
var zod = require('zod'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('../../dist/kyc-eab3881f.cjs.dev.js'); | ||
require('../../dist/vc-schemas-1543f6de.cjs.dev.js'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('../../dist/kyc-580cfebf.cjs.dev.js'); | ||
require('../../dist/vc-schemas-3335a65f.cjs.dev.js'); | ||
var dist_nexeraprotocolNexeraIdSchemas = require('../../dist/nexeraprotocol-nexera-id-schemas.cjs.dev.js'); | ||
@@ -10,0 +10,0 @@ require('i18n-iso-countries'); |
@@ -6,4 +6,4 @@ 'use strict'; | ||
var zod = require('zod'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('../../dist/kyc-d206f6ed.cjs.prod.js'); | ||
require('../../dist/vc-schemas-36bfe3ad.cjs.prod.js'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('../../dist/kyc-5c54cefd.cjs.prod.js'); | ||
require('../../dist/vc-schemas-7cc9e141.cjs.prod.js'); | ||
var dist_nexeraprotocolNexeraIdSchemas = require('../../dist/nexeraprotocol-nexera-id-schemas.cjs.prod.js'); | ||
@@ -10,0 +10,0 @@ require('i18n-iso-countries'); |
import { z } from 'zod'; | ||
import { V as VerificationModeSchema, G as GbgConfigSchema } from '../../dist/kyc-a03e986a.esm.js'; | ||
import '../../dist/vc-schemas-c0d66852.esm.js'; | ||
import { V as VerificationModeSchema, G as GbgConfigSchema } from '../../dist/kyc-7762dbab.esm.js'; | ||
import '../../dist/vc-schemas-68b542f1.esm.js'; | ||
import { AddressSchema } from '../../dist/nexeraprotocol-nexera-id-schemas.esm.js'; | ||
@@ -5,0 +5,0 @@ import 'i18n-iso-countries'; |
@@ -6,4 +6,4 @@ 'use strict'; | ||
require('zod'); | ||
require('../../../dist/vc-schemas-1543f6de.cjs.dev.js'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('../../../dist/kyc-eab3881f.cjs.dev.js'); | ||
require('../../../dist/vc-schemas-3335a65f.cjs.dev.js'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('../../../dist/kyc-580cfebf.cjs.dev.js'); | ||
@@ -10,0 +10,0 @@ |
@@ -6,4 +6,4 @@ 'use strict'; | ||
require('zod'); | ||
require('../../../dist/vc-schemas-36bfe3ad.cjs.prod.js'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('../../../dist/kyc-d206f6ed.cjs.prod.js'); | ||
require('../../../dist/vc-schemas-7cc9e141.cjs.prod.js'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('../../../dist/kyc-5c54cefd.cjs.prod.js'); | ||
@@ -10,0 +10,0 @@ |
import 'zod'; | ||
import '../../../dist/vc-schemas-c0d66852.esm.js'; | ||
export { e as AVAILABLE_FLOWS, A as ApplicationClientDataSchema, D as DownloadableKycSchema, E as EncryptedKycKeySchema, a as EncryptedVerifiableCredentialDataSchema, b as EncryptedVerifiableCredentialSchema, G as GbgConfigSchema, K as KYCDataResponseSchema, f as KYC_SDK_RESPONSES, j as KYC_SDK_RESPONSES_DATA, i as KycCompletionDataSchema, g as KycSdkResponsesSchema, S as SumsubApplicantAddressSchema, c as SumsubApplicantInfoSchema, d as SumsubApplicationDataSchema, V as VerificationModeSchema, h as VerificationModes } from '../../../dist/kyc-a03e986a.esm.js'; | ||
import '../../../dist/vc-schemas-68b542f1.esm.js'; | ||
export { e as AVAILABLE_FLOWS, A as ApplicationClientDataSchema, D as DownloadableKycSchema, E as EncryptedKycKeySchema, a as EncryptedVerifiableCredentialDataSchema, b as EncryptedVerifiableCredentialSchema, G as GbgConfigSchema, K as KYCDataResponseSchema, f as KYC_SDK_RESPONSES, j as KYC_SDK_RESPONSES_DATA, i as KycCompletionDataSchema, g as KycSdkResponsesSchema, S as SumsubApplicantAddressSchema, c as SumsubApplicantInfoSchema, d as SumsubApplicationDataSchema, V as VerificationModeSchema, h as VerificationModes } from '../../../dist/kyc-7762dbab.esm.js'; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas = require('../../../../dist/vc-schemas-1543f6de.cjs.dev.js'); | ||
var compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas = require('../../../../dist/vc-schemas-3335a65f.cjs.dev.js'); | ||
require('zod'); | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas = require('../../../../dist/vc-schemas-36bfe3ad.cjs.prod.js'); | ||
var compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas = require('../../../../dist/vc-schemas-7cc9e141.cjs.prod.js'); | ||
require('zod'); | ||
@@ -8,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
export { f as CredentialSchemas, C as CredentialTypes, d as CredentialTypesSchema, e as CredentialZodSchemas, G as GenericVerifiableCredentialSchema, V as VerifiableCredentialSchema, r as removeEmptyStringAttributes } from '../../../../dist/vc-schemas-c0d66852.esm.js'; | ||
export { f as CredentialSchemas, C as CredentialTypes, d as CredentialTypesSchema, e as CredentialZodSchemas, G as GenericVerifiableCredentialSchema, V as VerifiableCredentialSchema, r as removeEmptyStringAttributes } from '../../../../dist/vc-schemas-68b542f1.esm.js'; | ||
import 'zod'; |
@@ -144,6 +144,6 @@ import { z } from "zod"; | ||
id: z.ZodString; | ||
requiredCredential: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3-v7", "ProofOfResidenceV6", "IDScanSelfieV1", "IDScanPassportV1", "IDScanV2"]>>; | ||
requiredCredential: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3", "ProofOfResidence", "IDScanSelfie", "IDScanPassport", "IDScan"]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
requiredCredential: "ID3-v7" | "ProofOfResidenceV6" | "IDScanSelfieV1" | "IDScanPassportV1" | "IDScanV2"; | ||
requiredCredential: "ID3" | "ProofOfResidence" | "IDScanSelfie" | "IDScanPassport" | "IDScan"; | ||
}, { | ||
@@ -157,3 +157,3 @@ id: string; | ||
id: string; | ||
requiredCredential: "ID3-v7" | "ProofOfResidenceV6" | "IDScanSelfieV1" | "IDScanPassportV1" | "IDScanV2"; | ||
requiredCredential: "ID3" | "ProofOfResidence" | "IDScanSelfie" | "IDScanPassport" | "IDScan"; | ||
}[] | undefined; | ||
@@ -173,3 +173,3 @@ }, { | ||
id: string; | ||
requiredCredential: "ID3-v7" | "ProofOfResidenceV6" | "IDScanSelfieV1" | "IDScanPassportV1" | "IDScanV2"; | ||
requiredCredential: "ID3" | "ProofOfResidence" | "IDScanSelfie" | "IDScanPassport" | "IDScan"; | ||
}[] | undefined; | ||
@@ -234,3 +234,3 @@ } | undefined; | ||
id: string; | ||
requiredCredential: "ID3-v7" | "ProofOfResidenceV6" | "IDScanSelfieV1" | "IDScanPassportV1" | "IDScanV2"; | ||
requiredCredential: "ID3" | "ProofOfResidence" | "IDScanSelfie" | "IDScanPassport" | "IDScan"; | ||
}[] | undefined; | ||
@@ -297,3 +297,3 @@ } | undefined; | ||
issuer: z.ZodString; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3-v7", "ProofOfResidenceV6", "IDScanSelfieV1", "IDScanPassportV1", "IDScanV2"]>>]>, "many">; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3", "ProofOfResidence", "IDScanSelfie", "IDScanPassport", "IDScan"]>>]>, "many">; | ||
credentialSubject: z.ZodObject<{ | ||
@@ -308,3 +308,3 @@ journeyId: z.ZodString; | ||
issuer: z.ZodString; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3-v7", "ProofOfResidenceV6", "IDScanSelfieV1", "IDScanPassportV1", "IDScanV2"]>>]>, "many">; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3", "ProofOfResidence", "IDScanSelfie", "IDScanPassport", "IDScan"]>>]>, "many">; | ||
credentialSubject: z.ZodObject<{ | ||
@@ -319,3 +319,3 @@ journeyId: z.ZodString; | ||
issuer: z.ZodString; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3-v7", "ProofOfResidenceV6", "IDScanSelfieV1", "IDScanPassportV1", "IDScanV2"]>>]>, "many">; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3", "ProofOfResidence", "IDScanSelfie", "IDScanPassport", "IDScan"]>>]>, "many">; | ||
credentialSubject: z.ZodObject<{ | ||
@@ -332,3 +332,3 @@ journeyId: z.ZodString; | ||
issuer: z.ZodString; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3-v7", "ProofOfResidenceV6", "IDScanSelfieV1", "IDScanPassportV1", "IDScanV2"]>>]>, "many">; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3", "ProofOfResidence", "IDScanSelfie", "IDScanPassport", "IDScan"]>>]>, "many">; | ||
credentialSubject: z.ZodObject<{ | ||
@@ -343,3 +343,3 @@ journeyId: z.ZodString; | ||
issuer: z.ZodString; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3-v7", "ProofOfResidenceV6", "IDScanSelfieV1", "IDScanPassportV1", "IDScanV2"]>>]>, "many">; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3", "ProofOfResidence", "IDScanSelfie", "IDScanPassport", "IDScan"]>>]>, "many">; | ||
credentialSubject: z.ZodObject<{ | ||
@@ -354,3 +354,3 @@ journeyId: z.ZodString; | ||
issuer: z.ZodString; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3-v7", "ProofOfResidenceV6", "IDScanSelfieV1", "IDScanPassportV1", "IDScanV2"]>>]>, "many">; | ||
type: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["ID3", "ProofOfResidence", "IDScanSelfie", "IDScanPassport", "IDScan"]>>]>, "many">; | ||
credentialSubject: z.ZodObject<{ | ||
@@ -357,0 +357,0 @@ journeyId: z.ZodString; |
@@ -45,3 +45,3 @@ import { z } from "zod"; | ||
journeyId: z.ZodOptional<z.ZodString>; | ||
type: z.ZodEnum<["ID3-v7", "ProofOfResidenceV6", "IDScanSelfieV1", "IDScanPassportV1", "IDScanV2"]>; | ||
type: z.ZodEnum<["ID3", "ProofOfResidence", "IDScanSelfie", "IDScanPassport", "IDScan"]>; | ||
datetime: z.ZodDate; | ||
@@ -66,3 +66,3 @@ credential: z.ZodObject<{ | ||
}, "strip", z.ZodTypeAny, { | ||
type: "ID3-v7" | "ProofOfResidenceV6" | "IDScanSelfieV1" | "IDScanPassportV1" | "IDScanV2"; | ||
type: "ID3" | "ProofOfResidence" | "IDScanSelfie" | "IDScanPassport" | "IDScan"; | ||
did: string; | ||
@@ -80,3 +80,3 @@ datetime: Date; | ||
}, { | ||
type: "ID3-v7" | "ProofOfResidenceV6" | "IDScanSelfieV1" | "IDScanPassportV1" | "IDScanV2"; | ||
type: "ID3" | "ProofOfResidence" | "IDScanSelfie" | "IDScanPassport" | "IDScan"; | ||
did: string; | ||
@@ -83,0 +83,0 @@ datetime: Date; |
import { z } from "zod"; | ||
export declare const IDScanCredentialSubjectSchema: z.ZodObject<{ | ||
journeyId: z.ZodString; | ||
highLevelResult: z.ZodString; | ||
firstName: z.ZodString; | ||
middleName: z.ZodOptional<z.ZodString>; | ||
lastName: z.ZodString; | ||
gender: z.ZodString; | ||
age: z.ZodString; | ||
citizenship: z.ZodString; | ||
documentCategory: z.ZodString; | ||
documentName: z.ZodString; | ||
documentSide: z.ZodString; | ||
documentType: z.ZodString; | ||
entryDate: z.ZodString; | ||
entryTime: z.ZodString; | ||
fullName: z.ZodString; | ||
journeyId: z.ZodNullable<z.ZodString>; | ||
highLevelResult: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
middleName: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
gender: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
age: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
citizenship: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
documentCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
documentName: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
documentSide: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
documentType: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
entryDate: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
entryTime: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
birthDate: z.ZodString; | ||
birthPlace: z.ZodString; | ||
highLevelResultDetails: z.ZodObject<{ | ||
birthDate: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
birthPlace: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
highLevelResultDetails: z.ZodOptional<z.ZodNullable<z.ZodObject<{ | ||
documentOverallValidation: z.ZodOptional<z.ZodString>; | ||
@@ -46,5 +46,5 @@ documentBlockingPolicy: z.ZodOptional<z.ZodString>; | ||
accumulativeLivenessResult?: string | undefined; | ||
}>; | ||
faceMatchScore: z.ZodString; | ||
qualityCheckDetails: z.ZodArray<z.ZodObject<{ | ||
}>>>; | ||
faceMatchScore: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
qualityCheckDetails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{ | ||
id: z.ZodOptional<z.ZodString>; | ||
@@ -64,4 +64,4 @@ title: z.ZodOptional<z.ZodString>; | ||
state?: number | undefined; | ||
}>, "many">; | ||
validationDetails: z.ZodArray<z.ZodObject<{ | ||
}>, "many">>>; | ||
validationDetails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{ | ||
name: z.ZodOptional<z.ZodString>; | ||
@@ -78,23 +78,26 @@ description: z.ZodOptional<z.ZodString>; | ||
result?: number | undefined; | ||
}>, "many">; | ||
}>, "many">>>; | ||
id: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
journeyId: string; | ||
firstName: string; | ||
lastName: string; | ||
gender: string; | ||
highLevelResult: string; | ||
age: string; | ||
citizenship: string; | ||
documentCategory: string; | ||
documentName: string; | ||
documentSide: string; | ||
documentType: string; | ||
entryDate: string; | ||
entryTime: string; | ||
fullName: string; | ||
birthDate: string; | ||
birthPlace: string; | ||
highLevelResultDetails: { | ||
journeyId: string | null; | ||
highLevelResult?: string | null | undefined; | ||
firstName?: string | null | undefined; | ||
middleName?: string | null | undefined; | ||
lastName?: string | null | undefined; | ||
gender?: string | null | undefined; | ||
age?: string | null | undefined; | ||
citizenship?: string | null | undefined; | ||
documentCategory?: string | null | undefined; | ||
documentName?: string | null | undefined; | ||
documentSide?: string | null | undefined; | ||
documentType?: string | null | undefined; | ||
entryDate?: string | null | undefined; | ||
entryTime?: string | null | undefined; | ||
fullName?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
birthDate?: string | null | undefined; | ||
birthPlace?: string | null | undefined; | ||
highLevelResultDetails?: { | ||
documentOverallValidation?: string | undefined; | ||
@@ -107,5 +110,5 @@ documentBlockingPolicy?: string | undefined; | ||
accumulativeLivenessResult?: string | undefined; | ||
}; | ||
faceMatchScore: string; | ||
qualityCheckDetails: { | ||
} | null | undefined; | ||
faceMatchScore?: string | null | undefined; | ||
qualityCheckDetails?: { | ||
id?: string | undefined; | ||
@@ -115,30 +118,30 @@ title?: string | undefined; | ||
state?: number | undefined; | ||
}[]; | ||
validationDetails: { | ||
}[] | null | undefined; | ||
validationDetails?: { | ||
name?: string | undefined; | ||
description?: string | undefined; | ||
result?: number | undefined; | ||
}[]; | ||
middleName?: string | undefined; | ||
}[] | null | undefined; | ||
}, { | ||
id: string; | ||
journeyId: string | null; | ||
highLevelResult?: string | null | undefined; | ||
firstName?: string | null | undefined; | ||
middleName?: string | null | undefined; | ||
lastName?: string | null | undefined; | ||
gender?: string | null | undefined; | ||
age?: string | null | undefined; | ||
citizenship?: string | null | undefined; | ||
documentCategory?: string | null | undefined; | ||
documentName?: string | null | undefined; | ||
documentSide?: string | null | undefined; | ||
documentType?: string | null | undefined; | ||
entryDate?: string | null | undefined; | ||
entryTime?: string | null | undefined; | ||
fullName?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
}, { | ||
id: string; | ||
journeyId: string; | ||
firstName: string; | ||
lastName: string; | ||
gender: string; | ||
highLevelResult: string; | ||
age: string; | ||
citizenship: string; | ||
documentCategory: string; | ||
documentName: string; | ||
documentSide: string; | ||
documentType: string; | ||
entryDate: string; | ||
entryTime: string; | ||
fullName: string; | ||
birthDate: string; | ||
birthPlace: string; | ||
highLevelResultDetails: { | ||
birthDate?: string | null | undefined; | ||
birthPlace?: string | null | undefined; | ||
highLevelResultDetails?: { | ||
documentOverallValidation?: string | undefined; | ||
@@ -151,5 +154,5 @@ documentBlockingPolicy?: string | undefined; | ||
accumulativeLivenessResult?: string | undefined; | ||
}; | ||
faceMatchScore: string; | ||
qualityCheckDetails: { | ||
} | null | undefined; | ||
faceMatchScore?: string | null | undefined; | ||
qualityCheckDetails?: { | ||
id?: string | undefined; | ||
@@ -159,11 +162,8 @@ title?: string | undefined; | ||
state?: number | undefined; | ||
}[]; | ||
validationDetails: { | ||
}[] | null | undefined; | ||
validationDetails?: { | ||
name?: string | undefined; | ||
description?: string | undefined; | ||
result?: number | undefined; | ||
}[]; | ||
middleName?: string | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
}[] | null | undefined; | ||
}>; |
@@ -1,7 +0,7 @@ | ||
export * from "./ID3_7CredentialSubjectSchema.js"; | ||
export * from "./ID3CredentialSubjectSchema.js"; | ||
export * from "./IDScanCredentialSubjectSchema.js"; | ||
export * from "./IDScanPassportV1CredentialSubjectSchema.js"; | ||
export * from "./IDScanSelfieV1CredentialSubjectSchema.js"; | ||
export * from "./IDScanV2CredentialSubjectSchema.js"; | ||
export * from "./ProofOfResidenceV6CredentialSubjectSchema.js"; | ||
export * from "./IDScanPassportCredentialSubjectSchema.js"; | ||
export * from "./IDScanSelfieCredentialSubjectSchema.js"; | ||
export * from "./IDScanCredentialSubjectSchema.js"; | ||
export * from "./ProofOfResidenceCredentialSubjectSchema.js"; | ||
export * from "./vc-schemas.js"; |
@@ -6,4 +6,4 @@ 'use strict'; | ||
var zod = require('zod'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('./kyc-eab3881f.cjs.dev.js'); | ||
var compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas = require('./vc-schemas-1543f6de.cjs.dev.js'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('./kyc-580cfebf.cjs.dev.js'); | ||
var compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas = require('./vc-schemas-3335a65f.cjs.dev.js'); | ||
var i18nIsoCountries = require('i18n-iso-countries'); | ||
@@ -62,7 +62,7 @@ | ||
// Get AuthenticateSPResultSchema from ID3_7CredentialSubjectSchema | ||
// Would be ideal if we could use ID3_7CredentialSubjectSchema.shape.originalData.shape.authenticateSPResult; | ||
// Get AuthenticateSPResultSchema from ID3CredentialSubjectSchema | ||
// Would be ideal if we could use ID3CredentialSubjectSchema.shape.originalData.shape.authenticateSPResult; | ||
// but then we would use the custom modifications on the array | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var AuthenticateSPResultSchema = zod.z.object({ | ||
@@ -155,3 +155,3 @@ AuthenticationID: zod.z.string().optional(), | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var PepIntelligenceResultSchema = zod.z.object({ | ||
@@ -201,3 +201,3 @@ Fullname: zod.z.string().optional(), | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var SanctionsEnforcementsResultSchema = zod.z.object({ | ||
@@ -397,3 +397,3 @@ Fullname: zod.z.string().optional(), | ||
addressLine2: zod.z.string().optional(), | ||
// birthday: BirthdaySchema.optional(), commented to conform to ID3_7CredentialSubjectSchema | ||
// birthday: BirthdaySchema.optional(), commented to conform to ID3CredentialSubjectSchema | ||
birthday: zod.z.string().optional(), | ||
@@ -547,3 +547,2 @@ age: zod.z.string().optional(), | ||
exports.GbgConfigSchema = compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc.GbgConfigSchema; | ||
exports.IDScanCredentialSubjectSchema = compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc.IDScanCredentialSubjectSchema; | ||
exports.IdentifierSchema = compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc.IdentifierSchema; | ||
@@ -565,7 +564,7 @@ exports.KYCDataResponseSchema = compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc.KYCDataResponseSchema; | ||
exports.GenericVerifiableCredentialSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.GenericVerifiableCredentialSchema; | ||
exports.ID3_7CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.ID3_7CredentialSubjectSchema; | ||
exports.IDScanPassportV1CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanPassportV1CredentialSubjectSchema; | ||
exports.IDScanSelfieV1CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanSelfieV1CredentialSubjectSchema; | ||
exports.IDScanV2CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanV2CredentialSubjectSchema; | ||
exports.ProofOfResidenceV6CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.ProofOfResidenceV6CredentialSubjectSchema; | ||
exports.ID3CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.ID3CredentialSubjectSchema; | ||
exports.IDScanCredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanCredentialSubjectSchema; | ||
exports.IDScanPassportCredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanPassportCredentialSubjectSchema; | ||
exports.IDScanSelfieCredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanSelfieCredentialSubjectSchema; | ||
exports.ProofOfResidenceCredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.ProofOfResidenceCredentialSubjectSchema; | ||
exports.VerifiableCredentialSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.VerifiableCredentialSchema; | ||
@@ -572,0 +571,0 @@ exports.removeEmptyStringAttributes = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.removeEmptyStringAttributes; |
@@ -6,4 +6,4 @@ 'use strict'; | ||
var zod = require('zod'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('./kyc-d206f6ed.cjs.prod.js'); | ||
var compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas = require('./vc-schemas-36bfe3ad.cjs.prod.js'); | ||
var compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc = require('./kyc-5c54cefd.cjs.prod.js'); | ||
var compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas = require('./vc-schemas-7cc9e141.cjs.prod.js'); | ||
var i18nIsoCountries = require('i18n-iso-countries'); | ||
@@ -62,7 +62,7 @@ | ||
// Get AuthenticateSPResultSchema from ID3_7CredentialSubjectSchema | ||
// Would be ideal if we could use ID3_7CredentialSubjectSchema.shape.originalData.shape.authenticateSPResult; | ||
// Get AuthenticateSPResultSchema from ID3CredentialSubjectSchema | ||
// Would be ideal if we could use ID3CredentialSubjectSchema.shape.originalData.shape.authenticateSPResult; | ||
// but then we would use the custom modifications on the array | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var AuthenticateSPResultSchema = zod.z.object({ | ||
@@ -155,3 +155,3 @@ AuthenticationID: zod.z.string().optional(), | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var PepIntelligenceResultSchema = zod.z.object({ | ||
@@ -201,3 +201,3 @@ Fullname: zod.z.string().optional(), | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var SanctionsEnforcementsResultSchema = zod.z.object({ | ||
@@ -397,3 +397,3 @@ Fullname: zod.z.string().optional(), | ||
addressLine2: zod.z.string().optional(), | ||
// birthday: BirthdaySchema.optional(), commented to conform to ID3_7CredentialSubjectSchema | ||
// birthday: BirthdaySchema.optional(), commented to conform to ID3CredentialSubjectSchema | ||
birthday: zod.z.string().optional(), | ||
@@ -547,3 +547,2 @@ age: zod.z.string().optional(), | ||
exports.GbgConfigSchema = compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc.GbgConfigSchema; | ||
exports.IDScanCredentialSubjectSchema = compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc.IDScanCredentialSubjectSchema; | ||
exports.IdentifierSchema = compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc.IdentifierSchema; | ||
@@ -565,7 +564,7 @@ exports.KYCDataResponseSchema = compliance_kyc_dist_nexeraprotocolNexeraIdSchemasComplianceKyc.KYCDataResponseSchema; | ||
exports.GenericVerifiableCredentialSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.GenericVerifiableCredentialSchema; | ||
exports.ID3_7CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.ID3_7CredentialSubjectSchema; | ||
exports.IDScanPassportV1CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanPassportV1CredentialSubjectSchema; | ||
exports.IDScanSelfieV1CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanSelfieV1CredentialSubjectSchema; | ||
exports.IDScanV2CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanV2CredentialSubjectSchema; | ||
exports.ProofOfResidenceV6CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.ProofOfResidenceV6CredentialSubjectSchema; | ||
exports.ID3CredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.ID3CredentialSubjectSchema; | ||
exports.IDScanCredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanCredentialSubjectSchema; | ||
exports.IDScanPassportCredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanPassportCredentialSubjectSchema; | ||
exports.IDScanSelfieCredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.IDScanSelfieCredentialSubjectSchema; | ||
exports.ProofOfResidenceCredentialSubjectSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.ProofOfResidenceCredentialSubjectSchema; | ||
exports.VerifiableCredentialSchema = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.VerifiableCredentialSchema; | ||
@@ -572,0 +571,0 @@ exports.removeEmptyStringAttributes = compliance_vcSchemas_vcSchemas_dist_nexeraprotocolNexeraIdSchemasComplianceVcSchemasVcSchemas.removeEmptyStringAttributes; |
import { z } from 'zod'; | ||
export { e as AVAILABLE_FLOWS, A as ApplicationClientDataSchema, D as DownloadableKycSchema, E as EncryptedKycKeySchema, a as EncryptedVerifiableCredentialDataSchema, b as EncryptedVerifiableCredentialSchema, G as GbgConfigSchema, k as IDScanCredentialSubjectSchema, I as IdentifierSchema, K as KYCDataResponseSchema, f as KYC_SDK_RESPONSES, j as KYC_SDK_RESPONSES_DATA, i as KycCompletionDataSchema, g as KycSdkResponsesSchema, S as SumsubApplicantAddressSchema, c as SumsubApplicantInfoSchema, d as SumsubApplicationDataSchema, V as VerificationModeSchema, h as VerificationModes } from './kyc-a03e986a.esm.js'; | ||
import { _ as _typeof } from './vc-schemas-c0d66852.esm.js'; | ||
export { f as CredentialSchemas, C as CredentialTypes, d as CredentialTypesSchema, e as CredentialZodSchemas, G as GenericVerifiableCredentialSchema, I as ID3_7CredentialSubjectSchema, a as IDScanPassportV1CredentialSubjectSchema, b as IDScanSelfieV1CredentialSubjectSchema, c as IDScanV2CredentialSubjectSchema, P as ProofOfResidenceV6CredentialSubjectSchema, V as VerifiableCredentialSchema, r as removeEmptyStringAttributes } from './vc-schemas-c0d66852.esm.js'; | ||
export { e as AVAILABLE_FLOWS, A as ApplicationClientDataSchema, D as DownloadableKycSchema, E as EncryptedKycKeySchema, a as EncryptedVerifiableCredentialDataSchema, b as EncryptedVerifiableCredentialSchema, G as GbgConfigSchema, I as IdentifierSchema, K as KYCDataResponseSchema, f as KYC_SDK_RESPONSES, j as KYC_SDK_RESPONSES_DATA, i as KycCompletionDataSchema, g as KycSdkResponsesSchema, S as SumsubApplicantAddressSchema, c as SumsubApplicantInfoSchema, d as SumsubApplicationDataSchema, V as VerificationModeSchema, h as VerificationModes } from './kyc-7762dbab.esm.js'; | ||
import { _ as _typeof } from './vc-schemas-68b542f1.esm.js'; | ||
export { f as CredentialSchemas, C as CredentialTypes, d as CredentialTypesSchema, e as CredentialZodSchemas, G as GenericVerifiableCredentialSchema, I as ID3CredentialSubjectSchema, a as IDScanCredentialSubjectSchema, b as IDScanPassportCredentialSubjectSchema, c as IDScanSelfieCredentialSubjectSchema, P as ProofOfResidenceCredentialSubjectSchema, V as VerifiableCredentialSchema, r as removeEmptyStringAttributes } from './vc-schemas-68b542f1.esm.js'; | ||
import { getAlpha3Codes } from 'i18n-iso-countries'; | ||
@@ -58,7 +58,7 @@ | ||
// Get AuthenticateSPResultSchema from ID3_7CredentialSubjectSchema | ||
// Would be ideal if we could use ID3_7CredentialSubjectSchema.shape.originalData.shape.authenticateSPResult; | ||
// Get AuthenticateSPResultSchema from ID3CredentialSubjectSchema | ||
// Would be ideal if we could use ID3CredentialSubjectSchema.shape.originalData.shape.authenticateSPResult; | ||
// but then we would use the custom modifications on the array | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var AuthenticateSPResultSchema = z.object({ | ||
@@ -151,3 +151,3 @@ AuthenticationID: z.string().optional(), | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var PepIntelligenceResultSchema = z.object({ | ||
@@ -197,3 +197,3 @@ Fullname: z.string().optional(), | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts | ||
//copied from /packages/libs/schemas/src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts | ||
var SanctionsEnforcementsResultSchema = z.object({ | ||
@@ -393,3 +393,3 @@ Fullname: z.string().optional(), | ||
addressLine2: z.string().optional(), | ||
// birthday: BirthdaySchema.optional(), commented to conform to ID3_7CredentialSubjectSchema | ||
// birthday: BirthdaySchema.optional(), commented to conform to ID3CredentialSubjectSchema | ||
birthday: z.string().optional(), | ||
@@ -396,0 +396,0 @@ age: z.string().optional(), |
{ | ||
"name": "@nexeraprotocol/nexera-id-schemas", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "", | ||
@@ -16,14 +16,12 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js", | ||
"update-vc-schemas-from-repo": "download-schema:IDScan&&download-schema:IDScan", | ||
"download-schema:IDScan": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/idscan/v1/idscan.json -o ./schemas/IDScan.json", | ||
"download-schema:IDScan": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/idscan/idscan.json -o ./schemas/IDScan.json", | ||
"generate-zod:IDScan": "cat schemas/IDScan.json | jq '.properties.credentialSubject' > schemas/IDScan-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScan-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanCredentialSubjectSchema.ts --name IDScanCredentialSubjectSchema", | ||
"download-schema:IDScanV2": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/idscan/v2/idscan.json -o ./schemas/IDScanV2.json", | ||
"generate-zod:IDScanV2": "cat schemas/IDScanV2.json | jq '.properties.credentialSubject' > schemas/IDScanV2-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanV2-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanV2CredentialSubjectSchema.ts --name IDScanV2CredentialSubjectSchema", | ||
"download-schema:ID3_7": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/id3/v7/id3.json -o ./schemas/ID3_7.json", | ||
"generate-zod:ID3_7": "cat schemas/ID3_7.json | jq '.properties.credentialSubject' > schemas/ID3_7-credentialSubject.json && json-schema-to-zod -s ./schemas/ID3_7-credentialSubject.json -t ./src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts --name ID3_7CredentialSubjectSchema", | ||
"download-schema:ProofOfResidenceV6": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/proofOfResidence/v6/proofOfResidence.json -o ./schemas/ProofOfResidenceV6.json", | ||
"generate-zod:ProofOfResidenceV6": "cat schemas/ProofOfResidenceV6.json | jq '.properties.credentialSubject' > schemas/ProofOfResidenceV6-credentialSubject.json && json-schema-to-zod -s ./schemas/ProofOfResidenceV6-credentialSubject.json -t ./src/compliance/vc-schemas/ProofOfResidenceV6CredentialSubjectSchema.ts --name ProofOfResidenceV6CredentialSubjectSchema", | ||
"download-schema:IDScanSelfieV1": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/idScanSelfie/v1/idScanSelfie.json -o ./schemas/IDScanSelfieV1.json", | ||
"generate-zod:IDScanSelfieV1": "cat schemas/IDScanSelfieV1.json | jq '.properties.credentialSubject' > schemas/IDScanSelfieV1-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanSelfieV1-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanSelfieV1CredentialSubjectSchema.ts --name IDScanSelfieV1CredentialSubjectSchema", | ||
"download-schema:IDScanPassportV1": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/idScanPassport/v1/idScanPassport.json -o ./schemas/IDScanPassportV1.json", | ||
"generate-zod:IDScanPassportV1": "cat schemas/IDScanPassportV1.json | jq '.properties.credentialSubject' > schemas/IDScanPassportV1-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanPassportV1-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanPassportV1CredentialSubjectSchema.ts --name IDScanPassportV1CredentialSubjectSchema", | ||
"download-schema:ID3": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/id3/id3.json -o ./schemas/ID3.json", | ||
"generate-zod:ID3": "cat schemas/ID3.json | jq '.properties.credentialSubject' > schemas/ID3-credentialSubject.json && json-schema-to-zod -s ./schemas/ID3-credentialSubject.json -t ./src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts --name ID3CredentialSubjectSchema", | ||
"download-schema:ProofOfResidence": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/proofOfResidence/proofOfResidence.json -o ./schemas/ProofOfResidence.json", | ||
"generate-zod:ProofOfResidence": "cat schemas/ProofOfResidence.json | jq '.properties.credentialSubject' > schemas/ProofOfResidence-credentialSubject.json && json-schema-to-zod -s ./schemas/ProofOfResidence-credentialSubject.json -t ./src/compliance/vc-schemas/ProofOfResidenceCredentialSubjectSchema.ts --name ProofOfResidenceCredentialSubjectSchema", | ||
"download-schema:IDScanSelfie": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/idScanSelfie/idScanSelfie.json -o ./schemas/IDScanSelfie.json", | ||
"generate-zod:IDScanSelfie": "cat schemas/IDScanSelfie.json | jq '.properties.credentialSubject' > schemas/IDScanSelfie-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanSelfie-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanSelfieCredentialSubjectSchema.ts --name IDScanSelfieCredentialSubjectSchema", | ||
"download-schema:IDScanPassport": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/idScanPassport/idScanPassport.json -o ./schemas/IDScanPassport.json", | ||
"generate-zod:IDScanPassport": "cat schemas/IDScanPassport.json | jq '.properties.credentialSubject' > schemas/IDScanPassport-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanPassport-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanPassportCredentialSubjectSchema.ts --name IDScanPassportCredentialSubjectSchema", | ||
"prepare:release": "sed -i '8d' package.json", | ||
@@ -30,0 +28,0 @@ "prepare:release:mac": "sed -i '' '8d' package.json", |
@@ -7,4 +7,4 @@ 'use strict'; | ||
var dist_nexeraprotocolNexeraIdSchemas = require('../../dist/nexeraprotocol-nexera-id-schemas.cjs.dev.js'); | ||
require('../../dist/kyc-eab3881f.cjs.dev.js'); | ||
require('../../dist/vc-schemas-1543f6de.cjs.dev.js'); | ||
require('../../dist/kyc-580cfebf.cjs.dev.js'); | ||
require('../../dist/vc-schemas-3335a65f.cjs.dev.js'); | ||
require('i18n-iso-countries'); | ||
@@ -11,0 +11,0 @@ |
@@ -7,4 +7,4 @@ 'use strict'; | ||
var dist_nexeraprotocolNexeraIdSchemas = require('../../dist/nexeraprotocol-nexera-id-schemas.cjs.prod.js'); | ||
require('../../dist/kyc-d206f6ed.cjs.prod.js'); | ||
require('../../dist/vc-schemas-36bfe3ad.cjs.prod.js'); | ||
require('../../dist/kyc-5c54cefd.cjs.prod.js'); | ||
require('../../dist/vc-schemas-7cc9e141.cjs.prod.js'); | ||
require('i18n-iso-countries'); | ||
@@ -11,0 +11,0 @@ |
import { z } from 'zod'; | ||
import { ChainIdSchema, AddressSchema } from '../../dist/nexeraprotocol-nexera-id-schemas.esm.js'; | ||
import '../../dist/kyc-a03e986a.esm.js'; | ||
import '../../dist/vc-schemas-c0d66852.esm.js'; | ||
import '../../dist/kyc-7762dbab.esm.js'; | ||
import '../../dist/vc-schemas-68b542f1.esm.js'; | ||
import 'i18n-iso-countries'; | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "@nexeraprotocol/nexera-id-schemas", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "", | ||
@@ -49,14 +49,12 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js", | ||
"update-vc-schemas-from-repo": "download-schema:IDScan&&download-schema:IDScan", | ||
"download-schema:IDScan": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/idscan/v1/idscan.json -o ./schemas/IDScan.json", | ||
"download-schema:IDScan": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/idscan/idscan.json -o ./schemas/IDScan.json", | ||
"generate-zod:IDScan": "cat schemas/IDScan.json | jq '.properties.credentialSubject' > schemas/IDScan-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScan-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanCredentialSubjectSchema.ts --name IDScanCredentialSubjectSchema", | ||
"download-schema:IDScanV2": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/idscan/v2/idscan.json -o ./schemas/IDScanV2.json", | ||
"generate-zod:IDScanV2": "cat schemas/IDScanV2.json | jq '.properties.credentialSubject' > schemas/IDScanV2-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanV2-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanV2CredentialSubjectSchema.ts --name IDScanV2CredentialSubjectSchema", | ||
"download-schema:ID3_7": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/id3/v7/id3.json -o ./schemas/ID3_7.json", | ||
"generate-zod:ID3_7": "cat schemas/ID3_7.json | jq '.properties.credentialSubject' > schemas/ID3_7-credentialSubject.json && json-schema-to-zod -s ./schemas/ID3_7-credentialSubject.json -t ./src/compliance/vc-schemas/ID3_7CredentialSubjectSchema.ts --name ID3_7CredentialSubjectSchema", | ||
"download-schema:ProofOfResidenceV6": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/proofOfResidence/v6/proofOfResidence.json -o ./schemas/ProofOfResidenceV6.json", | ||
"generate-zod:ProofOfResidenceV6": "cat schemas/ProofOfResidenceV6.json | jq '.properties.credentialSubject' > schemas/ProofOfResidenceV6-credentialSubject.json && json-schema-to-zod -s ./schemas/ProofOfResidenceV6-credentialSubject.json -t ./src/compliance/vc-schemas/ProofOfResidenceV6CredentialSubjectSchema.ts --name ProofOfResidenceV6CredentialSubjectSchema", | ||
"download-schema:IDScanSelfieV1": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/idScanSelfie/v1/idScanSelfie.json -o ./schemas/IDScanSelfieV1.json", | ||
"generate-zod:IDScanSelfieV1": "cat schemas/IDScanSelfieV1.json | jq '.properties.credentialSubject' > schemas/IDScanSelfieV1-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanSelfieV1-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanSelfieV1CredentialSubjectSchema.ts --name IDScanSelfieV1CredentialSubjectSchema", | ||
"download-schema:IDScanPassportV1": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/main/examples/idScanPassport/v1/idScanPassport.json -o ./schemas/IDScanPassportV1.json", | ||
"generate-zod:IDScanPassportV1": "cat schemas/IDScanPassportV1.json | jq '.properties.credentialSubject' > schemas/IDScanPassportV1-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanPassportV1-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanPassportV1CredentialSubjectSchema.ts --name IDScanPassportV1CredentialSubjectSchema", | ||
"download-schema:ID3": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/id3/id3.json -o ./schemas/ID3.json", | ||
"generate-zod:ID3": "cat schemas/ID3.json | jq '.properties.credentialSubject' > schemas/ID3-credentialSubject.json && json-schema-to-zod -s ./schemas/ID3-credentialSubject.json -t ./src/compliance/vc-schemas/ID3CredentialSubjectSchema.ts --name ID3CredentialSubjectSchema", | ||
"download-schema:ProofOfResidence": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/proofOfResidence/proofOfResidence.json -o ./schemas/ProofOfResidence.json", | ||
"generate-zod:ProofOfResidence": "cat schemas/ProofOfResidence.json | jq '.properties.credentialSubject' > schemas/ProofOfResidence-credentialSubject.json && json-schema-to-zod -s ./schemas/ProofOfResidence-credentialSubject.json -t ./src/compliance/vc-schemas/ProofOfResidenceCredentialSubjectSchema.ts --name ProofOfResidenceCredentialSubjectSchema", | ||
"download-schema:IDScanSelfie": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/idScanSelfie/idScanSelfie.json -o ./schemas/IDScanSelfie.json", | ||
"generate-zod:IDScanSelfie": "cat schemas/IDScanSelfie.json | jq '.properties.credentialSubject' > schemas/IDScanSelfie-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanSelfie-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanSelfieCredentialSubjectSchema.ts --name IDScanSelfieCredentialSubjectSchema", | ||
"download-schema:IDScanPassport": "curl https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/development/examples/idScanPassport/idScanPassport.json -o ./schemas/IDScanPassport.json", | ||
"generate-zod:IDScanPassport": "cat schemas/IDScanPassport.json | jq '.properties.credentialSubject' > schemas/IDScanPassport-credentialSubject.json && json-schema-to-zod -s ./schemas/IDScanPassport-credentialSubject.json -t ./src/compliance/vc-schemas/IDScanPassportCredentialSubjectSchema.ts --name IDScanPassportCredentialSubjectSchema", | ||
"prepare:release": "sed -i '8d' package.json", | ||
@@ -63,0 +61,0 @@ "prepare:release:mac": "sed -i '' '8d' package.json", |
@@ -14,27 +14,22 @@ # Overview | ||
### IDScanV2 | ||
### ID3 | ||
`npm run download-schema:IDScanV2` | ||
`npm run generate-zod:IDScanV2` | ||
`npm run download-schema:ID3` | ||
`npm run generate-zod:ID3` | ||
### ID3_7 | ||
### ProofOfResidence | ||
`npm run download-schema:ID3_7` | ||
`npm run generate-zod:ID3_7` | ||
`npm run download-schema:ProofOfResidence` | ||
`npm run generate-zod:ProofOfResidence` | ||
### ProofOfResidenceV6 | ||
### IDScanSelfie | ||
`npm run download-schema:ProofOfResidenceV6` | ||
`npm run generate-zod:ProofOfResidenceV6` | ||
`npm run download-schema:IDScanSelfie` | ||
`npm run generate-zod:IDScanSelfie` | ||
### IDScanSelfieV1 | ||
### IDScanPassport | ||
`npm run download-schema:IDScanSelfieV1` | ||
`npm run generate-zod:IDScanSelfieV1` | ||
`npm run download-schema:IDScanPassport` | ||
`npm run generate-zod:IDScanPassport` | ||
### IDScanPassportV1 | ||
`npm run download-schema:IDScanPassportV1` | ||
`npm run generate-zod:IDScanPassportV1` | ||
## OPA Client | ||
@@ -41,0 +36,0 @@ |
@@ -8,4 +8,4 @@ 'use strict'; | ||
var metaTx_dist_nexeraprotocolNexeraIdSchemasMetaTx = require('../../meta-tx/dist/nexeraprotocol-nexera-id-schemas-meta-tx.cjs.dev.js'); | ||
require('../../dist/kyc-eab3881f.cjs.dev.js'); | ||
require('../../dist/vc-schemas-1543f6de.cjs.dev.js'); | ||
require('../../dist/kyc-580cfebf.cjs.dev.js'); | ||
require('../../dist/vc-schemas-3335a65f.cjs.dev.js'); | ||
require('i18n-iso-countries'); | ||
@@ -12,0 +12,0 @@ |
@@ -8,4 +8,4 @@ 'use strict'; | ||
var metaTx_dist_nexeraprotocolNexeraIdSchemasMetaTx = require('../../meta-tx/dist/nexeraprotocol-nexera-id-schemas-meta-tx.cjs.prod.js'); | ||
require('../../dist/kyc-d206f6ed.cjs.prod.js'); | ||
require('../../dist/vc-schemas-36bfe3ad.cjs.prod.js'); | ||
require('../../dist/kyc-5c54cefd.cjs.prod.js'); | ||
require('../../dist/vc-schemas-7cc9e141.cjs.prod.js'); | ||
require('i18n-iso-countries'); | ||
@@ -12,0 +12,0 @@ |
import { z } from 'zod'; | ||
import { ChainIdSchema, Subgraphs } from '../../dist/nexeraprotocol-nexera-id-schemas.esm.js'; | ||
import { TxRelayStateSchema } from '../../meta-tx/dist/nexeraprotocol-nexera-id-schemas-meta-tx.esm.js'; | ||
import '../../dist/kyc-a03e986a.esm.js'; | ||
import '../../dist/vc-schemas-c0d66852.esm.js'; | ||
import '../../dist/kyc-7762dbab.esm.js'; | ||
import '../../dist/vc-schemas-68b542f1.esm.js'; | ||
import 'i18n-iso-countries'; | ||
@@ -7,0 +7,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1325323
27367
71
45