@nexeraid/identity-schemas 2.93.0-dev → 2.95.0-dev
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/dist/{CoinMarketCap.schema-8c155e0d.cjs.dev.cjs → CoinMarketCap.schema-8f51f99c.cjs.dev.cjs} +4 -4
- package/dist/{CoinMarketCap.schema-218d0159.cjs.prod.cjs → CoinMarketCap.schema-b65544c9.cjs.prod.cjs} +4 -4
- package/dist/{CoinMarketCap.schema-f941f584.esm.mjs → CoinMarketCap.schema-fb3f081d.esm.mjs} +2 -2
- package/dist/declarations/src/blockchain/chains/all.schema.d.ts +1 -1
- package/dist/declarations/src/blockchain/chains/all.schema.d.ts.map +1 -1
- package/dist/declarations/src/blockchain/chains/evm.schema.d.ts +7 -5
- package/dist/declarations/src/blockchain/chains/evm.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/app-requests.schema.d.ts +37 -37
- package/dist/declarations/src/identity/host-requests.schema.d.ts +10 -10
- package/dist/declarations/src/identity/identity-v2.schema.d.ts +33 -33
- package/dist/declarations/src/identity/kyc.schema.d.ts +14 -14
- package/dist/declarations/src/identity/scenario.schema.d.ts +59 -59
- package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/txAuthData.schema.d.ts +15 -15
- package/dist/declarations/src/identity-ids.schema.d.ts +6 -2
- package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/index.d.ts +1 -0
- package/dist/declarations/src/providers/index.d.ts.map +1 -1
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +37 -37
- package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +1 -3
- package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/scorechain/scorechainRiskLevel.schema.d.ts +5 -0
- package/dist/declarations/src/providers/scorechain/scorechainRiskLevel.schema.d.ts.map +1 -0
- package/dist/declarations/src/vault/schemas/Customer.zod.d.ts +28 -0
- package/dist/declarations/src/vault/schemas/Customer.zod.d.ts.map +1 -1
- package/dist/declarations/src/vault/schemas/generated/Customer.schema.json.d.ts +38 -0
- package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts +6 -0
- package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts.map +1 -1
- package/dist/declarations/src/vault/vault.schema.d.ts +48 -0
- package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
- package/dist/{identity-api.schema-a5793eed.esm.mjs → identity-api.schema-5b7341cb.esm.mjs} +9 -87
- package/dist/{identity-api.schema-49bb28b1.cjs.prod.cjs → identity-api.schema-7a09a22a.cjs.prod.cjs} +9 -106
- package/dist/{identity-api.schema-631884b4.cjs.dev.cjs → identity-api.schema-bf0857fd.cjs.dev.cjs} +9 -106
- package/dist/nexeraid-identity-schemas.cjs.dev.cjs +24 -22
- package/dist/nexeraid-identity-schemas.cjs.prod.cjs +24 -22
- package/dist/nexeraid-identity-schemas.esm.mjs +4 -4
- package/dist/package.json +1 -1
- package/dist/{tfhe-utilities-9a012c74.cjs.dev.cjs → tfhe-utilities-939bea5e.cjs.dev.cjs} +2 -2
- package/dist/{tfhe-utilities-8f915faa.cjs.prod.cjs → tfhe-utilities-ae6d666e.cjs.prod.cjs} +2 -2
- package/dist/{tfhe-utilities-35852daa.esm.mjs → tfhe-utilities-f0db74d9.esm.mjs} +2 -2
- package/dist/{vault.schema-4f041ed1.cjs.dev.cjs → vault.schema-715502cc.cjs.dev.cjs} +170 -7
- package/dist/{vault.schema-a0de2905.esm.mjs → vault.schema-78e863d5.esm.mjs} +150 -8
- package/dist/{vault.schema-7f773af4.cjs.prod.cjs → vault.schema-bd02bf67.cjs.prod.cjs} +170 -7
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +2 -2
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +2 -2
- package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
- package/package.json +1 -1
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +3 -3
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +3 -3
- package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +1 -1
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +1 -1
- package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +1 -1
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +11 -11
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +11 -11
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +3 -3
|
@@ -160,7 +160,29 @@ export declare const VaultZodSchema: z.ZodObject<{
|
|
|
160
160
|
emailScore?: number | undefined;
|
|
161
161
|
phoneScore?: number | undefined;
|
|
162
162
|
}>>;
|
|
163
|
+
attributes: z.ZodObject<{
|
|
164
|
+
status: z.ZodOptional<z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>>;
|
|
165
|
+
riskLevel: z.ZodOptional<z.ZodEnum<["Low", "Medium", "High", "No risk"]>>;
|
|
166
|
+
onboarding: z.ZodOptional<z.ZodEnum<["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded", "Onboarding", "KYB", "Onboarded"]>>;
|
|
167
|
+
customerType: z.ZodOptional<z.ZodEnum<["Individual", "Company"]>>;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
status?: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | undefined;
|
|
170
|
+
riskLevel?: "Low" | "Medium" | "High" | "No risk" | undefined;
|
|
171
|
+
onboarding?: "Sign-up" | "AML screening" | "KYC" | "Questionaire" | "Onboarded" | "Onboarding" | "KYB" | undefined;
|
|
172
|
+
customerType?: "Individual" | "Company" | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
status?: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | undefined;
|
|
175
|
+
riskLevel?: "Low" | "Medium" | "High" | "No risk" | undefined;
|
|
176
|
+
onboarding?: "Sign-up" | "AML screening" | "KYC" | "Questionaire" | "Onboarded" | "Onboarding" | "KYB" | undefined;
|
|
177
|
+
customerType?: "Individual" | "Company" | undefined;
|
|
178
|
+
}>;
|
|
163
179
|
}, "strict", z.ZodTypeAny, {
|
|
180
|
+
attributes: {
|
|
181
|
+
status?: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | undefined;
|
|
182
|
+
riskLevel?: "Low" | "Medium" | "High" | "No risk" | undefined;
|
|
183
|
+
onboarding?: "Sign-up" | "AML screening" | "KYC" | "Questionaire" | "Onboarded" | "Onboarding" | "KYB" | undefined;
|
|
184
|
+
customerType?: "Individual" | "Company" | undefined;
|
|
185
|
+
};
|
|
164
186
|
identityData?: {
|
|
165
187
|
age?: number | undefined;
|
|
166
188
|
email?: string | undefined;
|
|
@@ -209,6 +231,12 @@ export declare const VaultZodSchema: z.ZodObject<{
|
|
|
209
231
|
phoneScore?: number | undefined;
|
|
210
232
|
} | undefined;
|
|
211
233
|
}, {
|
|
234
|
+
attributes: {
|
|
235
|
+
status?: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | undefined;
|
|
236
|
+
riskLevel?: "Low" | "Medium" | "High" | "No risk" | undefined;
|
|
237
|
+
onboarding?: "Sign-up" | "AML screening" | "KYC" | "Questionaire" | "Onboarded" | "Onboarding" | "KYB" | undefined;
|
|
238
|
+
customerType?: "Individual" | "Company" | undefined;
|
|
239
|
+
};
|
|
212
240
|
identityData?: {
|
|
213
241
|
age?: number | undefined;
|
|
214
242
|
email?: string | undefined;
|
|
@@ -2899,6 +2927,12 @@ export declare const VaultZodSchema: z.ZodObject<{
|
|
|
2899
2927
|
}>;
|
|
2900
2928
|
}, "strip", z.ZodTypeAny, {
|
|
2901
2929
|
Customer: {
|
|
2930
|
+
attributes: {
|
|
2931
|
+
status?: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | undefined;
|
|
2932
|
+
riskLevel?: "Low" | "Medium" | "High" | "No risk" | undefined;
|
|
2933
|
+
onboarding?: "Sign-up" | "AML screening" | "KYC" | "Questionaire" | "Onboarded" | "Onboarding" | "KYB" | undefined;
|
|
2934
|
+
customerType?: "Individual" | "Company" | undefined;
|
|
2935
|
+
};
|
|
2902
2936
|
identityData?: {
|
|
2903
2937
|
age?: number | undefined;
|
|
2904
2938
|
email?: string | undefined;
|
|
@@ -3261,6 +3295,12 @@ export declare const VaultZodSchema: z.ZodObject<{
|
|
|
3261
3295
|
};
|
|
3262
3296
|
}, {
|
|
3263
3297
|
Customer: {
|
|
3298
|
+
attributes: {
|
|
3299
|
+
status?: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | undefined;
|
|
3300
|
+
riskLevel?: "Low" | "Medium" | "High" | "No risk" | undefined;
|
|
3301
|
+
onboarding?: "Sign-up" | "AML screening" | "KYC" | "Questionaire" | "Onboarded" | "Onboarding" | "KYB" | undefined;
|
|
3302
|
+
customerType?: "Individual" | "Company" | undefined;
|
|
3303
|
+
};
|
|
3264
3304
|
identityData?: {
|
|
3265
3305
|
age?: number | undefined;
|
|
3266
3306
|
email?: string | undefined;
|
|
@@ -3921,4 +3961,12 @@ export type VaultSearchLinkDataType<TLink extends VaultSearchLink> = SearchLinkD
|
|
|
3921
3961
|
export type VaultEmbeddedDataLink = EmbeddedLink<VaultSchema, VaultSchemaIds, VaultSchemaPaths>;
|
|
3922
3962
|
export type VaultEmbeddedDataLinkDataType<TLink extends VaultEmbeddedDataLink> = EmbeddedLinkDataType<VaultSchema, TLink["path"]>;
|
|
3923
3963
|
export type VaultEmbeddedDataLinkWithPath<TPath extends VaultSchemaPaths> = EmbeddedLink<VaultSchema, VaultSchemaIds, TPath>;
|
|
3964
|
+
export type SelectableLink = {
|
|
3965
|
+
title: string;
|
|
3966
|
+
icon?: string;
|
|
3967
|
+
operatorArity?: "mono" | "multi";
|
|
3968
|
+
link: VaultMetadataLink;
|
|
3969
|
+
options?: SelectableLink[];
|
|
3970
|
+
secondaryLinks?: SelectableLink[];
|
|
3971
|
+
};
|
|
3924
3972
|
//# sourceMappingURL=vault.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault.schema.d.ts","sourceRoot":"../../../../src/vault","sources":["vault.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,KAAK,EACL,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EACnB,8BAAqB;AAEtB,OAAO,kBAAkB,oDAAiD;AAC1E,OAAO,KAAK,YAAY,6CAA0C;AAClE,OAAO,oBAAoB,sDAAmD;AAC9E,OAAO,KAAK,cAAc,+CAA4C;AACtE,OAAO,cAAc,gDAA6C;AAClE,OAAO,KAAK,QAAQ,yCAAsC;AAC1D,OAAO,wBAAwB,0DAAuD;AACtF,OAAO,KAAK,kBAAkB,mDAAgD;AAC9E,OAAO,qBAAqB,uDAAoD;AAChF,OAAO,KAAK,eAAe,gDAA6C;AAMxE,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AACF,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"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AgB,EAChB,mBAAmB,CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,KAAK,SAAS,gBAAgB,IAChE,UAAU,CACR,WAAW,EACX,cAAc,EACd,KAAK,EAEL,mBAAmB,SAAS,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,GACnD,mBAAmB,GACnB,KAAK,CACV,CAAC;AAEJ,MAAM,MAAM,uBAAuB,CAAC,KAAK,SAAS,eAAe,IAC/D,kBAAkB,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAEjD,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAC9C,WAAW,EACX,cAAc,EACd,gBAAgB,CACjB,CAAC;AACF,MAAM,MAAM,6BAA6B,CAAC,KAAK,SAAS,qBAAqB,IAC3E,oBAAoB,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAEnD,MAAM,MAAM,6BAA6B,CAAC,KAAK,SAAS,gBAAgB,IACtE,YAAY,CAAC,WAAW,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;CACnC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { dm as IDImageCredentialSubjectSchema, dp as ProofOfResidenceCredentialSubjectSchema, dn as SelfieImageCredentialSubjectSchema, dl as IDInformationCredentialSubjectSchema, dk as IDInformationTfheCredentialSubjectSchema, dj as OLD_AMLScreeningsResultsCredentialSubjectSchema, db as ID3CredentialSubjectSchema, dc as IDScanCredentialSubjectSchema, de as IDScanSelfieCredentialSubjectSchema, dd as IDScanPassportCredentialSubjectSchema, ey as _defineProperty, ep as VaultMetadataLinkZodSchema, cB as QueryId, cC as QueryGroupId, aS as UuidString, ar as BlockchainAddress, cz as ScenarioId, d2 as WorkspaceId, as as String0x, aN as BlockchainSignature, aa as TxHash, d3 as WorkflowId, g as EvmChainId, a9 as AddressSchema, aD as EIP155Signature, T as TezosChainId, ah as TezosContractAddress, aP as TezosEntrypointName, ag as TezosImplicitAddress, aI as EdSignature, av as BlockchainNamespace, dq as GenericVerifiableCredentialSchema, ax as SupportedBlockchainNamespaceForSignatureAuth, B as BlockchainId, d5 as ExternalCustomerId, d0 as AdditionalCustomerInformationParams, bk as CustomerStatus, a8 as PublicKey } from './vault.schema-78e863d5.esm.mjs';
|
|
3
3
|
|
|
4
4
|
var CredentialSchemas = {
|
|
5
5
|
ProofOfResidence: ProofOfResidenceCredentialSubjectSchema,
|
|
@@ -389,15 +389,16 @@ function oldCredentialPathToDataLink(path, credentialType) {
|
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
var SCENARIO_ACTION_TYPES = ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT", "ASSIGN_TAG"];
|
|
392
|
+
var SCENARIO_ACTION_TYPES = ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT", "ASSIGN_TAG", "BLOCK_ON_CHAIN_TRANSACTION"];
|
|
393
393
|
var ActionType = z["enum"](SCENARIO_ACTION_TYPES);
|
|
394
394
|
var ACTION_TRIGGERS = ["ON_TRUE", "ON_FALSE", "ALWAYS"];
|
|
395
395
|
var ActionTrigger = z["enum"](ACTION_TRIGGERS);
|
|
396
396
|
var ACTION_STATUSES = ["ENABLED", "DISABLED"];
|
|
397
397
|
var ActionStatus = z["enum"](ACTION_STATUSES);
|
|
398
398
|
var ActionValue = z.string();
|
|
399
|
-
var ScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE"
|
|
400
|
-
|
|
399
|
+
var ScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE",
|
|
400
|
+
// TODO integrate TFHE verification
|
|
401
|
+
"BlockchainPolicies"];
|
|
401
402
|
var ScenarioType = z["enum"](ScenarioTypes);
|
|
402
403
|
var ScenarioModes = ["INTERNAL", "EXTERNAL"];
|
|
403
404
|
var ScenarioMode = z["enum"](ScenarioModes);
|
|
@@ -414,8 +415,9 @@ var ScenarioSchema = z.object({
|
|
|
414
415
|
});
|
|
415
416
|
var BackwardsCompatibleScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE", "OffChainZKP",
|
|
416
417
|
// Backwards compatible
|
|
417
|
-
"ChallengeQuery"
|
|
418
|
-
|
|
418
|
+
"ChallengeQuery",
|
|
419
|
+
// Backwards compatible
|
|
420
|
+
"BlockchainPolicies"];
|
|
419
421
|
var BackwardsCompatibleScenarioType = z["enum"](BackwardsCompatibleScenarioTypes);
|
|
420
422
|
var BaseQueryResponse = z.object({
|
|
421
423
|
result: z.object({
|
|
@@ -841,86 +843,6 @@ var GetTxAuthSigResponseTezos = z.object({
|
|
|
841
843
|
var HostRequestMessage = z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
|
|
842
844
|
var IdentityResponseMessage = z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
|
|
843
845
|
|
|
844
|
-
// Risk Score
|
|
845
|
-
var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
|
|
846
|
-
var RiskScoreType = z["enum"](RiskScoreTypes);
|
|
847
|
-
// Customer Type
|
|
848
|
-
var CustomerTypes = ["Individual", "Company"];
|
|
849
|
-
var CustomerType = z["enum"](CustomerTypes);
|
|
850
|
-
// KYC Onboarding Level
|
|
851
|
-
var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
|
|
852
|
-
var KycOnboardingLevel = z["enum"](KycOnboardingLevels);
|
|
853
|
-
// KYB Onboarding Level
|
|
854
|
-
var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
|
|
855
|
-
var KybOnboardingLevel = z["enum"](KybOnboardingLevels);
|
|
856
|
-
var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
|
|
857
|
-
var CustomerOnboardingLevel = z["enum"](CustomerOnboardingLevels);
|
|
858
|
-
// Customer Status
|
|
859
|
-
var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
|
|
860
|
-
var CustomerStatus = z["enum"](CustomerStatuses);
|
|
861
|
-
var BasicCustomerContactInformation = z.object({
|
|
862
|
-
email: z.string().email(),
|
|
863
|
-
phone: z.string().min(4),
|
|
864
|
-
twitter: z.string(),
|
|
865
|
-
discord: z.string(),
|
|
866
|
-
telegram: z.string()
|
|
867
|
-
}).partial();
|
|
868
|
-
var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
|
|
869
|
-
var CustomersChartType = z["enum"](CUSTOMERS_CHARTS);
|
|
870
|
-
var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
|
|
871
|
-
var CustomerTableColumn = z["enum"](CUSTOMER_TABLE_COLUMNS);
|
|
872
|
-
var CUSTOMER_AUTOMATION_REASONS = {
|
|
873
|
-
"rule-engine": {
|
|
874
|
-
fail: "Rules engine verification failed",
|
|
875
|
-
pass: "Rules engine verification passed"
|
|
876
|
-
},
|
|
877
|
-
kyc: {
|
|
878
|
-
green: {
|
|
879
|
-
"final": "Passed KYC"
|
|
880
|
-
},
|
|
881
|
-
yellow: {
|
|
882
|
-
retry: "User rejected by the KYC provider with possibility to retry",
|
|
883
|
-
fail: "User rejected by the KYC provider"
|
|
884
|
-
},
|
|
885
|
-
red: {
|
|
886
|
-
retry: "User rejected by the KYC provider with possibility to retry",
|
|
887
|
-
fail: "User rejected by the KYC provider"
|
|
888
|
-
}
|
|
889
|
-
},
|
|
890
|
-
kyb: {
|
|
891
|
-
green: {
|
|
892
|
-
"final": "Passed KYB"
|
|
893
|
-
},
|
|
894
|
-
yellow: {
|
|
895
|
-
retry: "Company rejected by the KYB provider with possibility to retry",
|
|
896
|
-
fail: "Company rejected by the KYB provider"
|
|
897
|
-
},
|
|
898
|
-
red: {
|
|
899
|
-
retry: "Company rejected by the KYB provider with possibility to retry",
|
|
900
|
-
fail: "Company rejected by the KYB provider"
|
|
901
|
-
},
|
|
902
|
-
beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
|
|
903
|
-
},
|
|
904
|
-
"aml-screening": {
|
|
905
|
-
fail: "AML screening hits received during onboarding",
|
|
906
|
-
ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
|
|
907
|
-
pass: "Passed AML screening"
|
|
908
|
-
},
|
|
909
|
-
offchain_zkp: {
|
|
910
|
-
fail: "Offchain ZKP verification failed",
|
|
911
|
-
pass: "Offchain ZKP verification passed"
|
|
912
|
-
},
|
|
913
|
-
tfhe: {
|
|
914
|
-
fail: "TFHE verification failed",
|
|
915
|
-
pass: "TFHE verification passed"
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
var CustomerPersonalInformation = z.object({
|
|
919
|
-
age: z.number().optional(),
|
|
920
|
-
nationality: ISO3CountryCode.optional(),
|
|
921
|
-
residence: ISO3CountryCode.optional()
|
|
922
|
-
});
|
|
923
|
-
|
|
924
846
|
/**
|
|
925
847
|
* Wallet challenge parameters
|
|
926
848
|
*/
|
|
@@ -1145,4 +1067,4 @@ var VerifyWalletChallengeRequest = WalletSignatureResponse.and(z.object({
|
|
|
1145
1067
|
blockchainId: BlockchainId.optional()
|
|
1146
1068
|
}));
|
|
1147
1069
|
|
|
1148
|
-
export {
|
|
1070
|
+
export { VerificationSessionStatuses as $, AVAILABLE_FLOWS as A, ScenarioModes as B, CredentialTypes as C, DataAvailableOnStart as D, ScenarioMode as E, ScenarioStatuses as F, ScenarioStatus as G, HostResponseMessage as H, IsVerifiedNotification as I, ScenarioSchema as J, KycCompletionData as K, BackwardsCompatibleScenarioTypes as L, BackwardsCompatibleScenarioType as M, BaseQueryResponse as N, OffChainScenarioExecutionData as O, PolygonIdInitialized as P, OffChainZKPRuleResult as Q, RuleEngineScenarioExecutionData as R, ScenarioAuthorizationData as S, TransactionData as T, ExecuteQueryResponse as U, RuleEngineResponse as V, ScenarioExecutionResponse as W, RuleResultStatuses as X, RuleResultStatus as Y, RuleResultStatusLabels as Z, SdkVerificationOutput as _, SdkVerificationResponseSchema as a, ZKPOperator as a$, VerificationSessionStatus as a0, VerificationOutput as a1, Action as a2, Scenario as a3, AbbreviatedWorkflowScenario as a4, TemplateScenario as a5, CreateTemplateScenario as a6, ComplianceImplementationStepsInput as a7, SimplifiedCredential as a8, GetCredentialsRequest as a9, IdentityAppMessage as aA, IdentityWallet as aB, HostMessage as aC, IdentityMessage as aD, RequiredDataRowSchema as aE, RequiredVerificationData as aF, MediaType as aG, MediaTypePID as aH, CIRCUIT_IDS as aI, CircuitId as aJ, ZeroKnowledgeProofRequest as aK, AUTHORIZATION_REQUEST_MESSAGE_TYPES as aL, AuthorizationRequestMessageTypes as aM, AuthorizationRequestMessageType as aN, AuthorizationRequestMessage as aO, ProofData as aP, ZeroKnowledgeProofResponse as aQ, AuthorizationResponseMessage as aR, CredentialQrCodeData as aS, AuthQrCodeData as aT, QrCodeLinkWithSchemaType as aU, parseIden3Message as aV, parseSessionIdFromUrl as aW, QUERY_LOGIC_OPERATOR as aX, QueryLogicOperator as aY, OPERATORS as aZ, Operator as a_, GetCredentialsResponse as aa, PolygonIdRequestData as ab, PolygonIdRequest as ac, PolygonIdResponseData as ad, PolygonIdResponse as ae, StartFlowRequest as af, IsVerifiedRequest as ag, IsVerifiedResponse as ah, GetTxAuthSigRequest as ai, GetTxAuthSigResponse as aj, GetTxAuthSigRequestTezos as ak, GetTxAuthSigResponseTezos as al, HostRequestMessage as am, IdentityResponseMessage as an, GenerateWalletChallengeRequest as ao, AuthSession as ap, AuthSessionData as aq, ChallengeResponse as ar, WalletSignResponse as as, TxAuthDataSignatureGatingRequest as at, GetCustomerStatusRequest as au, IdentitySdkMessage as av, IdentitySdkMessageWithIdentifier as aw, TxAuthDataSignatureResponse as ax, TxAuthDataSignatureGatingError as ay, GetCustomerStatusResponse as az, CloseScreenNotification as b, CredentialNames as b$, operatorDisplayMap as b0, ARRAY_OPERATORS as b1, ArrayOperator as b2, STRING_OPERATORS as b3, StringOperator as b4, NUMERIC_OPERATORS as b5, NumericOperator as b6, BOOLEAN_OPERATORS as b7, BooleanOperator as b8, DATE_OPERATORS as b9, oldCredentialPathToDataLink as bA, TxAuthInput as bB, ApiTxAuthInput as bC, TxSignatureResponse as bD, GetTxAuthDataSignatureResponse as bE, TezosTxAuthInput as bF, ApiTezosTxAuthInput as bG, TezosTxSignatureResponse as bH, GetTezosTxAuthDataSignatureResponse as bI, ExtendedTxAuthInput as bJ, ExtendedTezosTxAuthInput as bK, ExtendedTxAuthDataSignatureResponse as bL, ExtendedTezosTxAuthDataSignatureResponse as bM, AnyTxAuthDataSignatureResponse as bN, Eip155TxAuthInputJsSdk as bO, TezosTxAuthInputJsSdk as bP, AnyTxAuthInputJsSdk as bQ, ZKPRequest as bR, ZKPRequestFromZKVerifier as bS, PrivacyPreservingMonitoring as bT, CreateAuthRequestProps as bU, AllScenarioExecutionAuthorizationData as bV, SCENARIO_AUTHORIZATION_STATUSES as bW, ScenarioAuthorizationStatus as bX, WalletSignatureResponse as bY, VerifyWalletChallengeRequest as bZ, CredentialSchemas as b_, DateOperator as ba, SUPPORTED_TYPES as bb, SupportedType as bc, SupportedTypes as bd, IDInformationTfhe as be, AllCredentialValues as bf, QueriesOptions as bg, QueryType as bh, QueryConfigTfhe as bi, QueryConfigSimplified as bj, QueryGroupConfigSimplified as bk, RuleResultQueryConfig as bl, PartialQueryConfigSimplified as bm, OLD_ChallengeQuerySchema as bn, QueryCredentialTypes as bo, QueryCredentialType as bp, ChallengeQuerySchema as bq, OLD_CHALLENGE_QUERY_OPERATORS as br, OLD_ChallengeQueryOperator as bs, OperatorMappings as bt, OperatorToOLD_ChallengeQueryOperator as bu, OLD_ChallengeQueryOperatorToOperator as bv, OLD_QueryCredentialTypes as bw, OLD_QueryCredentialType as bx, getOldCredentialType as by, getOldCredentialPath as bz, KycCompletionNotification as c, NexeraCredentialType as c0, getCredentialName as c1, CredentialType as c2, VerifiableCredential as c3, CredentialMediaType as c4, OnChainScenarioExecutionData as d, ScenarioExecutionData as e, ScenarioExecutionNotification as f, OcvSdkInitialized as g, StartCompletedNotification as h, IdentityNotificationMessage as i, InitialDataRequest as j, SignatureRequest as k, SendTransactionRequest as l, IdentityRequestMessage as m, AvailableFlow as n, InitialDataResponse as o, SignatureResponse as p, TransactionResponse as q, SCENARIO_ACTION_TYPES as r, ActionType as s, ACTION_TRIGGERS as t, ActionTrigger as u, ACTION_STATUSES as v, ActionStatus as w, ActionValue as x, ScenarioTypes as y, ScenarioType as z };
|
package/dist/{identity-api.schema-49bb28b1.cjs.prod.cjs → identity-api.schema-7a09a22a.cjs.prod.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
|
-
var vault_schema = require('./vault.schema-
|
|
4
|
+
var vault_schema = require('./vault.schema-bd02bf67.cjs.prod.cjs');
|
|
5
5
|
|
|
6
6
|
var CredentialSchemas = {
|
|
7
7
|
ProofOfResidence: vault_schema.ProofOfResidenceCredentialSubjectSchema,
|
|
@@ -391,15 +391,16 @@ function oldCredentialPathToDataLink(path, credentialType) {
|
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
var SCENARIO_ACTION_TYPES = ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT", "ASSIGN_TAG"];
|
|
394
|
+
var SCENARIO_ACTION_TYPES = ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT", "ASSIGN_TAG", "BLOCK_ON_CHAIN_TRANSACTION"];
|
|
395
395
|
var ActionType = zod.z["enum"](SCENARIO_ACTION_TYPES);
|
|
396
396
|
var ACTION_TRIGGERS = ["ON_TRUE", "ON_FALSE", "ALWAYS"];
|
|
397
397
|
var ActionTrigger = zod.z["enum"](ACTION_TRIGGERS);
|
|
398
398
|
var ACTION_STATUSES = ["ENABLED", "DISABLED"];
|
|
399
399
|
var ActionStatus = zod.z["enum"](ACTION_STATUSES);
|
|
400
400
|
var ActionValue = zod.z.string();
|
|
401
|
-
var ScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE"
|
|
402
|
-
|
|
401
|
+
var ScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE",
|
|
402
|
+
// TODO integrate TFHE verification
|
|
403
|
+
"BlockchainPolicies"];
|
|
403
404
|
var ScenarioType = zod.z["enum"](ScenarioTypes);
|
|
404
405
|
var ScenarioModes = ["INTERNAL", "EXTERNAL"];
|
|
405
406
|
var ScenarioMode = zod.z["enum"](ScenarioModes);
|
|
@@ -416,8 +417,9 @@ var ScenarioSchema = zod.z.object({
|
|
|
416
417
|
});
|
|
417
418
|
var BackwardsCompatibleScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE", "OffChainZKP",
|
|
418
419
|
// Backwards compatible
|
|
419
|
-
"ChallengeQuery"
|
|
420
|
-
|
|
420
|
+
"ChallengeQuery",
|
|
421
|
+
// Backwards compatible
|
|
422
|
+
"BlockchainPolicies"];
|
|
421
423
|
var BackwardsCompatibleScenarioType = zod.z["enum"](BackwardsCompatibleScenarioTypes);
|
|
422
424
|
var BaseQueryResponse = zod.z.object({
|
|
423
425
|
result: zod.z.object({
|
|
@@ -843,86 +845,6 @@ var GetTxAuthSigResponseTezos = zod.z.object({
|
|
|
843
845
|
var HostRequestMessage = zod.z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
|
|
844
846
|
var IdentityResponseMessage = zod.z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
|
|
845
847
|
|
|
846
|
-
// Risk Score
|
|
847
|
-
var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
|
|
848
|
-
var RiskScoreType = zod.z["enum"](RiskScoreTypes);
|
|
849
|
-
// Customer Type
|
|
850
|
-
var CustomerTypes = ["Individual", "Company"];
|
|
851
|
-
var CustomerType = zod.z["enum"](CustomerTypes);
|
|
852
|
-
// KYC Onboarding Level
|
|
853
|
-
var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
|
|
854
|
-
var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
|
|
855
|
-
// KYB Onboarding Level
|
|
856
|
-
var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
|
|
857
|
-
var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
|
|
858
|
-
var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
|
|
859
|
-
var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
|
|
860
|
-
// Customer Status
|
|
861
|
-
var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
|
|
862
|
-
var CustomerStatus = zod.z["enum"](CustomerStatuses);
|
|
863
|
-
var BasicCustomerContactInformation = zod.z.object({
|
|
864
|
-
email: zod.z.string().email(),
|
|
865
|
-
phone: zod.z.string().min(4),
|
|
866
|
-
twitter: zod.z.string(),
|
|
867
|
-
discord: zod.z.string(),
|
|
868
|
-
telegram: zod.z.string()
|
|
869
|
-
}).partial();
|
|
870
|
-
var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
|
|
871
|
-
var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
|
|
872
|
-
var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
|
|
873
|
-
var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
|
|
874
|
-
var CUSTOMER_AUTOMATION_REASONS = {
|
|
875
|
-
"rule-engine": {
|
|
876
|
-
fail: "Rules engine verification failed",
|
|
877
|
-
pass: "Rules engine verification passed"
|
|
878
|
-
},
|
|
879
|
-
kyc: {
|
|
880
|
-
green: {
|
|
881
|
-
"final": "Passed KYC"
|
|
882
|
-
},
|
|
883
|
-
yellow: {
|
|
884
|
-
retry: "User rejected by the KYC provider with possibility to retry",
|
|
885
|
-
fail: "User rejected by the KYC provider"
|
|
886
|
-
},
|
|
887
|
-
red: {
|
|
888
|
-
retry: "User rejected by the KYC provider with possibility to retry",
|
|
889
|
-
fail: "User rejected by the KYC provider"
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
kyb: {
|
|
893
|
-
green: {
|
|
894
|
-
"final": "Passed KYB"
|
|
895
|
-
},
|
|
896
|
-
yellow: {
|
|
897
|
-
retry: "Company rejected by the KYB provider with possibility to retry",
|
|
898
|
-
fail: "Company rejected by the KYB provider"
|
|
899
|
-
},
|
|
900
|
-
red: {
|
|
901
|
-
retry: "Company rejected by the KYB provider with possibility to retry",
|
|
902
|
-
fail: "Company rejected by the KYB provider"
|
|
903
|
-
},
|
|
904
|
-
beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
|
|
905
|
-
},
|
|
906
|
-
"aml-screening": {
|
|
907
|
-
fail: "AML screening hits received during onboarding",
|
|
908
|
-
ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
|
|
909
|
-
pass: "Passed AML screening"
|
|
910
|
-
},
|
|
911
|
-
offchain_zkp: {
|
|
912
|
-
fail: "Offchain ZKP verification failed",
|
|
913
|
-
pass: "Offchain ZKP verification passed"
|
|
914
|
-
},
|
|
915
|
-
tfhe: {
|
|
916
|
-
fail: "TFHE verification failed",
|
|
917
|
-
pass: "TFHE verification passed"
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
|
-
var CustomerPersonalInformation = zod.z.object({
|
|
921
|
-
age: zod.z.number().optional(),
|
|
922
|
-
nationality: vault_schema.ISO3CountryCode.optional(),
|
|
923
|
-
residence: vault_schema.ISO3CountryCode.optional()
|
|
924
|
-
});
|
|
925
|
-
|
|
926
848
|
/**
|
|
927
849
|
* Wallet challenge parameters
|
|
928
850
|
*/
|
|
@@ -1043,7 +965,7 @@ var TxAuthDataSignatureGatingError = zod.z.object({
|
|
|
1043
965
|
});
|
|
1044
966
|
var GetCustomerStatusResponse = zod.z.object({
|
|
1045
967
|
type: zod.z.literal("getCustomerStatusResponse"),
|
|
1046
|
-
data: zod.z.union([CustomerStatus, zod.z["null"]()])
|
|
968
|
+
data: zod.z.union([vault_schema.CustomerStatus, zod.z["null"]()])
|
|
1047
969
|
});
|
|
1048
970
|
var IdentityAppMessage = zod.z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, AuthenticationExpiredNotification, WalletSignRequest, TxAuthDataSignatureResponse, TxAuthDataSignatureGatingError, GetCustomerStatusResponse,
|
|
1049
971
|
// `identifier` is a technical detail that should not be exposed to the app
|
|
@@ -1177,12 +1099,8 @@ exports.BOOLEAN_OPERATORS = BOOLEAN_OPERATORS;
|
|
|
1177
1099
|
exports.BackwardsCompatibleScenarioType = BackwardsCompatibleScenarioType;
|
|
1178
1100
|
exports.BackwardsCompatibleScenarioTypes = BackwardsCompatibleScenarioTypes;
|
|
1179
1101
|
exports.BaseQueryResponse = BaseQueryResponse;
|
|
1180
|
-
exports.BasicCustomerContactInformation = BasicCustomerContactInformation;
|
|
1181
1102
|
exports.BooleanOperator = BooleanOperator;
|
|
1182
1103
|
exports.CIRCUIT_IDS = CIRCUIT_IDS;
|
|
1183
|
-
exports.CUSTOMERS_CHARTS = CUSTOMERS_CHARTS;
|
|
1184
|
-
exports.CUSTOMER_AUTOMATION_REASONS = CUSTOMER_AUTOMATION_REASONS;
|
|
1185
|
-
exports.CUSTOMER_TABLE_COLUMNS = CUSTOMER_TABLE_COLUMNS;
|
|
1186
1104
|
exports.ChallengeQuerySchema = ChallengeQuerySchema;
|
|
1187
1105
|
exports.ChallengeResponse = ChallengeResponse;
|
|
1188
1106
|
exports.CircuitId = CircuitId;
|
|
@@ -1196,15 +1114,6 @@ exports.CredentialQrCodeData = CredentialQrCodeData;
|
|
|
1196
1114
|
exports.CredentialSchemas = CredentialSchemas;
|
|
1197
1115
|
exports.CredentialType = CredentialType;
|
|
1198
1116
|
exports.CredentialTypes = CredentialTypes;
|
|
1199
|
-
exports.CustomerOnboardingLevel = CustomerOnboardingLevel;
|
|
1200
|
-
exports.CustomerOnboardingLevels = CustomerOnboardingLevels;
|
|
1201
|
-
exports.CustomerPersonalInformation = CustomerPersonalInformation;
|
|
1202
|
-
exports.CustomerStatus = CustomerStatus;
|
|
1203
|
-
exports.CustomerStatuses = CustomerStatuses;
|
|
1204
|
-
exports.CustomerTableColumn = CustomerTableColumn;
|
|
1205
|
-
exports.CustomerType = CustomerType;
|
|
1206
|
-
exports.CustomerTypes = CustomerTypes;
|
|
1207
|
-
exports.CustomersChartType = CustomersChartType;
|
|
1208
1117
|
exports.DATE_OPERATORS = DATE_OPERATORS;
|
|
1209
1118
|
exports.DataAvailableOnStart = DataAvailableOnStart;
|
|
1210
1119
|
exports.DateOperator = DateOperator;
|
|
@@ -1242,12 +1151,8 @@ exports.InitialDataResponse = InitialDataResponse;
|
|
|
1242
1151
|
exports.IsVerifiedNotification = IsVerifiedNotification;
|
|
1243
1152
|
exports.IsVerifiedRequest = IsVerifiedRequest;
|
|
1244
1153
|
exports.IsVerifiedResponse = IsVerifiedResponse;
|
|
1245
|
-
exports.KybOnboardingLevel = KybOnboardingLevel;
|
|
1246
|
-
exports.KybOnboardingLevels = KybOnboardingLevels;
|
|
1247
1154
|
exports.KycCompletionData = KycCompletionData;
|
|
1248
1155
|
exports.KycCompletionNotification = KycCompletionNotification;
|
|
1249
|
-
exports.KycOnboardingLevel = KycOnboardingLevel;
|
|
1250
|
-
exports.KycOnboardingLevels = KycOnboardingLevels;
|
|
1251
1156
|
exports.MediaType = MediaType;
|
|
1252
1157
|
exports.MediaTypePID = MediaTypePID;
|
|
1253
1158
|
exports.NUMERIC_OPERATORS = NUMERIC_OPERATORS;
|
|
@@ -1287,8 +1192,6 @@ exports.QueryLogicOperator = QueryLogicOperator;
|
|
|
1287
1192
|
exports.QueryType = QueryType;
|
|
1288
1193
|
exports.RequiredDataRowSchema = RequiredDataRowSchema;
|
|
1289
1194
|
exports.RequiredVerificationData = RequiredVerificationData;
|
|
1290
|
-
exports.RiskScoreType = RiskScoreType;
|
|
1291
|
-
exports.RiskScoreTypes = RiskScoreTypes;
|
|
1292
1195
|
exports.RuleEngineResponse = RuleEngineResponse;
|
|
1293
1196
|
exports.RuleEngineScenarioExecutionData = RuleEngineScenarioExecutionData;
|
|
1294
1197
|
exports.RuleResultQueryConfig = RuleResultQueryConfig;
|