@nexeraid/identity-schemas 1.12.9-dev → 1.12.11-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/declarations/src/customer.schema.d.ts +93 -0
- package/dist/declarations/src/customer.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/app-requests.schema.d.ts +10 -10
- package/dist/declarations/src/identity/execute-scenario.schema.d.ts +1 -0
- package/dist/declarations/src/identity/execute-scenario.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/host-requests.schema.d.ts +36 -56
- package/dist/declarations/src/identity/host-requests.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/identity-v2.schema.d.ts +76 -56
- package/dist/declarations/src/identity/identity-v2.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/kyc.schema.d.ts +22 -32
- package/dist/declarations/src/identity/kyc.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/txAuthData.schema.d.ts +30 -48
- package/dist/declarations/src/identity/txAuthData.schema.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +2 -0
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/frontend-utilities.schema-205058ee.cjs.dev.js +2129 -0
- package/dist/frontend-utilities.schema-43c7bf6d.esm.js +2124 -0
- package/dist/frontend-utilities.schema-9cf8924c.cjs.prod.js +2129 -0
- package/dist/{identity-api.schema-38f27d6b.esm.js → identity-api.schema-0bb85c0c.esm.js} +106 -13
- package/dist/{identity-api.schema-46a66e5e.cjs.dev.js → identity-api.schema-1f84a316.cjs.prod.js} +125 -12
- package/dist/{identity-api.schema-b63a1396.cjs.prod.js → identity-api.schema-986819d9.cjs.dev.js} +125 -12
- package/dist/nexeraid-identity-schemas.cjs.dev.js +48 -1
- package/dist/nexeraid-identity-schemas.cjs.prod.js +48 -1
- package/dist/nexeraid-identity-schemas.esm.js +3 -2
- package/dist/package.json +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +3 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +3 -1
- package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
- package/package.json +1 -1
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +6 -2124
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +6 -2124
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2125
|
@@ -2715,16 +2715,15 @@ var TxSignatureResponse = z.object({
|
|
|
2715
2715
|
signature: EIP155Signature,
|
|
2716
2716
|
blockExpiration: z.number()
|
|
2717
2717
|
});
|
|
2718
|
-
var GetTxAuthDataSignatureResponse = z.object({
|
|
2719
|
-
blockExpiration: z.number().optional()
|
|
2720
|
-
}).and(z.union([z.object({
|
|
2718
|
+
var GetTxAuthDataSignatureResponse = z.union([z.object({
|
|
2721
2719
|
isAuthorized: z.literal(true),
|
|
2722
2720
|
signature: EIP155Signature,
|
|
2723
|
-
payload: z.string()
|
|
2721
|
+
payload: z.string(),
|
|
2722
|
+
blockExpiration: z.number()
|
|
2724
2723
|
}), z.object({
|
|
2725
2724
|
isAuthorized: z.literal(false),
|
|
2726
2725
|
errorMessage: z.any()
|
|
2727
|
-
})])
|
|
2726
|
+
})]);
|
|
2728
2727
|
/////////////
|
|
2729
2728
|
// Tezos //
|
|
2730
2729
|
/////////////
|
|
@@ -2742,15 +2741,14 @@ var TezosTxSignatureResponse = z.object({
|
|
|
2742
2741
|
signature: EdSignature,
|
|
2743
2742
|
blockExpiration: z.number()
|
|
2744
2743
|
});
|
|
2745
|
-
var GetTezosTxAuthDataSignatureResponse = z.object({
|
|
2746
|
-
blockExpiration: z.number().optional()
|
|
2747
|
-
}).and(z.union([z.object({
|
|
2744
|
+
var GetTezosTxAuthDataSignatureResponse = z.union([z.object({
|
|
2748
2745
|
isAuthorized: z.literal(true),
|
|
2749
|
-
signature: EdSignature
|
|
2746
|
+
signature: EdSignature,
|
|
2747
|
+
blockExpiration: z.number()
|
|
2750
2748
|
}), z.object({
|
|
2751
2749
|
isAuthorized: z.literal(false),
|
|
2752
2750
|
errorMessage: z.any()
|
|
2753
|
-
})])
|
|
2751
|
+
})]);
|
|
2754
2752
|
/////////////
|
|
2755
2753
|
// General //
|
|
2756
2754
|
/////////////
|
|
@@ -2904,6 +2902,94 @@ var GetTxAuthSigResponseTezos = z.object({
|
|
|
2904
2902
|
var HostRequestMessage = z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
|
|
2905
2903
|
var IdentityResponseMessage = z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
|
|
2906
2904
|
|
|
2905
|
+
// Risk Score
|
|
2906
|
+
var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
|
|
2907
|
+
var RiskScoreType = z["enum"](RiskScoreTypes);
|
|
2908
|
+
// Customer Type
|
|
2909
|
+
var CustomerTypes = ["Individual", "Company"];
|
|
2910
|
+
var CustomerType = z["enum"](CustomerTypes);
|
|
2911
|
+
// KYC Onboarding Level
|
|
2912
|
+
var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
|
|
2913
|
+
var KycOnboardingLevel = z["enum"](KycOnboardingLevels);
|
|
2914
|
+
// KYB Onboarding Level
|
|
2915
|
+
var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
|
|
2916
|
+
var KybOnboardingLevel = z["enum"](KybOnboardingLevels);
|
|
2917
|
+
var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
|
|
2918
|
+
var CustomerOnboardingLevel = z["enum"](CustomerOnboardingLevels);
|
|
2919
|
+
// Customer Status
|
|
2920
|
+
var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
|
|
2921
|
+
|
|
2922
|
+
/** We changed the status names to be more user-friendly, that's why we need to preprocess the data
|
|
2923
|
+
* “Closed” -> “Terminated”
|
|
2924
|
+
* “Blocked” -> “Rejected”
|
|
2925
|
+
* “Under Investigation” -> “To be reviewed”
|
|
2926
|
+
*/
|
|
2927
|
+
var CustomerStatus = z.preprocess(function (status) {
|
|
2928
|
+
switch (status) {
|
|
2929
|
+
case "Closed":
|
|
2930
|
+
return "Terminated";
|
|
2931
|
+
case "Blocked":
|
|
2932
|
+
return "Rejected";
|
|
2933
|
+
case "Under Investigation":
|
|
2934
|
+
return "To be reviewed";
|
|
2935
|
+
default:
|
|
2936
|
+
return status;
|
|
2937
|
+
}
|
|
2938
|
+
}, z["enum"](CustomerStatuses));
|
|
2939
|
+
var BasicCustomerContactInformation = z.object({
|
|
2940
|
+
email: z.string().email(),
|
|
2941
|
+
phone: z.string().min(4),
|
|
2942
|
+
twitter: z.string(),
|
|
2943
|
+
discord: z.string(),
|
|
2944
|
+
telegram: z.string()
|
|
2945
|
+
}).partial();
|
|
2946
|
+
var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "blocked", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
|
|
2947
|
+
var CustomersChartType = z["enum"](CUSTOMERS_CHARTS);
|
|
2948
|
+
var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
|
|
2949
|
+
var CustomerTableColumn = z["enum"](CUSTOMER_TABLE_COLUMNS);
|
|
2950
|
+
var CUSTOMER_AUTOMATION_REASONS = {
|
|
2951
|
+
"rule-engine": {
|
|
2952
|
+
fail: "Rules engine verification failed",
|
|
2953
|
+
pass: "Rules engine verification passed"
|
|
2954
|
+
},
|
|
2955
|
+
kyc: {
|
|
2956
|
+
green: {
|
|
2957
|
+
"final": "Passed KYC"
|
|
2958
|
+
},
|
|
2959
|
+
yellow: {
|
|
2960
|
+
retry: "User rejected by the KYC provider with possibility to retry",
|
|
2961
|
+
fail: "User rejected by the KYC provider"
|
|
2962
|
+
},
|
|
2963
|
+
red: {
|
|
2964
|
+
retry: "User rejected by the KYC provider with possibility to retry",
|
|
2965
|
+
fail: "User rejected by the KYC provider"
|
|
2966
|
+
}
|
|
2967
|
+
},
|
|
2968
|
+
kyb: {
|
|
2969
|
+
green: {
|
|
2970
|
+
"final": "Passed KYB"
|
|
2971
|
+
},
|
|
2972
|
+
yellow: {
|
|
2973
|
+
retry: "User rejected by the KYB provider with possibility to retry",
|
|
2974
|
+
fail: "User rejected by the KYB provider"
|
|
2975
|
+
},
|
|
2976
|
+
red: {
|
|
2977
|
+
retry: "User rejected by the KYB provider with possibility to retry",
|
|
2978
|
+
fail: "User rejected by the KYB provider"
|
|
2979
|
+
},
|
|
2980
|
+
beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
|
|
2981
|
+
},
|
|
2982
|
+
"aml-screening": {
|
|
2983
|
+
fail: "AML screening hits received during onboarding",
|
|
2984
|
+
ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
|
|
2985
|
+
pass: "Passed AML screening"
|
|
2986
|
+
},
|
|
2987
|
+
offchain_zkp: {
|
|
2988
|
+
fail: "Offchain ZKP verification failed",
|
|
2989
|
+
pass: "Offchain ZKP verification passed"
|
|
2990
|
+
}
|
|
2991
|
+
};
|
|
2992
|
+
|
|
2907
2993
|
var AuthSession = z.object({
|
|
2908
2994
|
// JWT token containing user authentication data
|
|
2909
2995
|
// Generated by the Identity-api using the IdentityWidgetAccessToken_NEW schema
|
|
@@ -2943,7 +3029,10 @@ var TrxSignatureGatingRequest = z.object({
|
|
|
2943
3029
|
input: AnyTxAuthInput
|
|
2944
3030
|
})
|
|
2945
3031
|
});
|
|
2946
|
-
var
|
|
3032
|
+
var GetCustomerStatusRequest = z.object({
|
|
3033
|
+
type: z.literal("getCustomerStatusRequest")
|
|
3034
|
+
});
|
|
3035
|
+
var IdentitySdkMessage = z.union([AppConfigRequest, WalletUpdated, WalletSignResponse, TransactionResponse, TrxSignatureGatingRequest, GetCustomerStatusRequest]);
|
|
2947
3036
|
var IdentitySdkMessageWithIdentifier = z.intersection(IdentitySdkMessage, z.object({
|
|
2948
3037
|
identifier: z.string()
|
|
2949
3038
|
}));
|
|
@@ -2970,7 +3059,11 @@ var TrxSignatureGatingResponse = z.object({
|
|
|
2970
3059
|
type: z.literal("trxSignatureGatingResponse"),
|
|
2971
3060
|
data: AnyTxSignatureResponse
|
|
2972
3061
|
});
|
|
2973
|
-
var
|
|
3062
|
+
var GetCustomerStatusResponse = z.object({
|
|
3063
|
+
type: z.literal("getCustomerStatusResponse"),
|
|
3064
|
+
data: z.union([CustomerStatus, z["null"]()])
|
|
3065
|
+
});
|
|
3066
|
+
var IdentityAppMessage = z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, WalletSignRequest, TrxSignatureGatingResponse, GetCustomerStatusResponse,
|
|
2974
3067
|
// `identifier` is a technical detail that should not be exposed to the app
|
|
2975
3068
|
KycCompletionNotification.omit({
|
|
2976
3069
|
identifier: true
|
|
@@ -3098,4 +3191,4 @@ var WalletSignatureData = WalletSignatureResponse.and(z.object({
|
|
|
3098
3191
|
blockchainId: BlockchainId.optional()
|
|
3099
3192
|
}));
|
|
3100
3193
|
|
|
3101
|
-
export { TezosSignature as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, CredentialTypes as C, TxHash as D, EVM_BLOCK_TIME as E, EIP155Signature as F, FunctionCallData as G, shortAddress as H, AptosAddress as I, AptosSignature as J, StarknetAddress as K, StarknetSignature as L, PolkadotAddress as M, NEXERA_EVM_CHAINS as N, PolkadotSignature as O, POLYGON_NETWORK_NAMES as P, CosmosAddress as Q, CosmosSignature as R, StarknetChainId as S, TezosChainId as T, TezosImplicitAddress as U, TezosContractAddress as V, TezosAddress as W, TezosEntrypointName as X, EdSignature as Y, SpSignature as Z, P2Signature as _, NEXERA_TEZOS_CHAINS as a, ScenarioExecutionData as a$, CardanoAddress as a0, CardanoSignature as a1, BlockchainAddress as a2, BlockchainSignature as a3, BLOCKCHAIN_NAMESPACES as a4, BlockchainNamespace as a5, BLOCKCHAIN_NAMESPACES_NAMES as a6, DISPLAYED_LOCKCHAIN_NAMESPACES as a7, DisplayedBlockchainNamespace as a8, BLOCKCHAIN_NAME_TO_NAMESPACE as a9, VerificationModes as aA, VerificationMode as aB, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as aC, IdentityDocumentCountryListOption as aD, IDENTITY_DOCUMENT_OPTIONS as aE, IdentityDocumentOptionsType as aF, PERSONAL_INFORMATION_FIELDS as aG, PersonalInformationFieldsIdentityDocuments as aH, Identifier as aI, AdditionalUserInformationParams as aJ, IdentityWidgetAccessToken as aK, OrganizationId as aL, WorkspaceId as aM, WorkflowId as aN, ExternalClientId as aO, IdentityAppV2Web3JWT as aP, IdentityAppV2Web2JWT as aQ, IdentityWidgetAccessToken_NEW as aR, IdentityWidgetSessionToken as aS, ScenarioAuthorizationData as aT, SdkVerificationResponseSchema as aU, CloseScreenNotification as aV, KycCompletionData as aW, KycCompletionNotification as aX, RuleEngineScenarioExecutionData as aY, OffChainScenarioExecutionData as aZ, OnChainScenarioExecutionData as a_, BLOCKCHAIN_NAMESPACE_TO_NAME as aa, coerceBoolean as ab, ENVS as ac, EnvironmentSchema as ad, UuidString as ae, ZodParse as af, shortBlockchainAddress as ag, PUBLIC_SERVICES_SCHEMA_MAP as ah, ISO3CountryCode as ai, ALPHA_2_COUNTRIES as aj, Alpha2Country as ak, countryISO3toISO2Mapping as al, countryISO2toISO3Mapping as am, isoCountriesNameFromISO2 as an, parseISO3CountryCode as ao, createBrandedSchemaId as ap, StorageId as aq, IdentityId as ar, EmailId as as, WalletId as at, AppId as au, ChallengeId as av, TestId as aw, generateId as ax, FLOW_TYPES as ay, FlowType as az, NEXERA_COSMOS_CHAINS as b,
|
|
3194
|
+
export { TezosSignature as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, CredentialTypes as C, TxHash as D, EVM_BLOCK_TIME as E, EIP155Signature as F, FunctionCallData as G, shortAddress as H, AptosAddress as I, AptosSignature as J, StarknetAddress as K, StarknetSignature as L, PolkadotAddress as M, NEXERA_EVM_CHAINS as N, PolkadotSignature as O, POLYGON_NETWORK_NAMES as P, CosmosAddress as Q, CosmosSignature as R, StarknetChainId as S, TezosChainId as T, TezosImplicitAddress as U, TezosContractAddress as V, TezosAddress as W, TezosEntrypointName as X, EdSignature as Y, SpSignature as Z, P2Signature as _, NEXERA_TEZOS_CHAINS as a, ScenarioExecutionData as a$, CardanoAddress as a0, CardanoSignature as a1, BlockchainAddress as a2, BlockchainSignature as a3, BLOCKCHAIN_NAMESPACES as a4, BlockchainNamespace as a5, BLOCKCHAIN_NAMESPACES_NAMES as a6, DISPLAYED_LOCKCHAIN_NAMESPACES as a7, DisplayedBlockchainNamespace as a8, BLOCKCHAIN_NAME_TO_NAMESPACE as a9, VerificationModes as aA, VerificationMode as aB, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as aC, IdentityDocumentCountryListOption as aD, IDENTITY_DOCUMENT_OPTIONS as aE, IdentityDocumentOptionsType as aF, PERSONAL_INFORMATION_FIELDS as aG, PersonalInformationFieldsIdentityDocuments as aH, Identifier as aI, AdditionalUserInformationParams as aJ, IdentityWidgetAccessToken as aK, OrganizationId as aL, WorkspaceId as aM, WorkflowId as aN, ExternalClientId as aO, IdentityAppV2Web3JWT as aP, IdentityAppV2Web2JWT as aQ, IdentityWidgetAccessToken_NEW as aR, IdentityWidgetSessionToken as aS, ScenarioAuthorizationData as aT, SdkVerificationResponseSchema as aU, CloseScreenNotification as aV, KycCompletionData as aW, KycCompletionNotification as aX, RuleEngineScenarioExecutionData as aY, OffChainScenarioExecutionData as aZ, OnChainScenarioExecutionData as a_, BLOCKCHAIN_NAMESPACE_TO_NAME as aa, coerceBoolean as ab, ENVS as ac, EnvironmentSchema as ad, UuidString as ae, ZodParse as af, shortBlockchainAddress as ag, PUBLIC_SERVICES_SCHEMA_MAP as ah, ISO3CountryCode as ai, ALPHA_2_COUNTRIES as aj, Alpha2Country as ak, countryISO3toISO2Mapping as al, countryISO2toISO3Mapping as am, isoCountriesNameFromISO2 as an, parseISO3CountryCode as ao, createBrandedSchemaId as ap, StorageId as aq, IdentityId as ar, EmailId as as, WalletId as at, AppId as au, ChallengeId as av, TestId as aw, generateId as ax, FLOW_TYPES as ay, FlowType as az, NEXERA_COSMOS_CHAINS as b, IdentitySdkMessageWithIdentifier as b$, ScenarioExecutionNotification as b0, IsVerifiedNotification as b1, PolygonIdInitialized as b2, OcvSdkInitialized as b3, StartCompletedNotification as b4, IdentityNotificationMessage as b5, InitialDataRequest as b6, SignatureRequest as b7, TransactionData as b8, SendTransactionRequest as b9, ScenarioExecutionResponse as bA, RuleResultStatuses as bB, RuleResultStatus as bC, RuleResultStatusLabels as bD, ComplianceImplementationStepsInput as bE, SimplifiedCredential as bF, GetCredentialsRequest as bG, GetCredentialsResponse as bH, PolygonIdRequestData as bI, PolygonIdRequest as bJ, PolygonIdResponseData as bK, PolygonIdResponse as bL, StartFlowRequest as bM, IsVerifiedRequest as bN, IsVerifiedResponse as bO, GetTxAuthSigRequest as bP, GetTxAuthSigResponse as bQ, GetTxAuthSigRequestTezos as bR, GetTxAuthSigResponseTezos as bS, HostRequestMessage as bT, IdentityResponseMessage as bU, AuthSession as bV, ChallengeResponse as bW, WalletSignResponse as bX, TrxSignatureGatingRequest as bY, GetCustomerStatusRequest as bZ, IdentitySdkMessage as b_, IdentityRequestMessage as ba, AVAILABLE_FLOWS as bb, AvailableFlow as bc, DataAvailableOnStart as bd, InitialDataResponse as be, SignatureResponse as bf, TransactionResponse as bg, HostResponseMessage as bh, ChallengeQueryOperators as bi, ChallengeQueryOperator as bj, OperatorToChallengeQueryOperator as bk, ChallengeQueryOperatorToOperator as bl, ChallengeQuerySchema as bm, ExecuteChallengeQueryInput as bn, ExecuteChallengeQueryConfig as bo, OpaChallengeQueryResponse as bp, ExecuteChallengeQueryResponse as bq, OPAChallengeQuery as br, OnChainRuleResult as bs, OffChainZKPRuleResult as bt, SdkVerificationOutput as bu, ScenarioTypes as bv, ScenarioType as bw, ScenarioStatuses as bx, ScenarioStatus as by, RuleEngineResponse as bz, NEXERA_STARKNET_CHAINS as c, ExtendedTezosTxSignatureResponse as c$, TrxSignatureGatingResponse as c0, GetCustomerStatusResponse as c1, IdentityAppMessage as c2, HostMessage as c3, IdentityMessage as c4, RequiredDataRowSchema as c5, RequiredVerificationData as c6, MediaType as c7, MediaTypePID as c8, ZeroKnowledgeProofRequest as c9, SupportedTypes as cA, IDInformation as cB, QueryConfig as cC, QueryType as cD, QueryConfigSimplified as cE, PartialQueryConfigSimplified as cF, QueryConfigSimplifiedParsed as cG, QueryConfiguration as cH, NonParsedQueryConfiguration as cI, CreateQueryConfigurationInput as cJ, CreateQueryConfigurationResponse as cK, UpdateQueryConfigurationInput as cL, UpdateQueryConfigurationResponse as cM, DeleteQueryConfigurationInput as cN, DeleteQueryConfigurationResponse as cO, QueryCredentialTypes as cP, QueryCredentialType as cQ, TxAuthInput as cR, TxSignatureResponse as cS, GetTxAuthDataSignatureResponse as cT, TezosTxAuthInput as cU, TezosTxSignatureResponse as cV, GetTezosTxAuthDataSignatureResponse as cW, ExtendedTxAuthInput as cX, ExtendedTezosTxAuthInput as cY, AnyTxAuthInput as cZ, ExtendedTxSignatureResponse as c_, AuthorizationRequestMessage as ca, ProofData as cb, ZeroKnowledgeProofResponse as cc, AuthorizationResponseMessage as cd, CredentialQrCodeData as ce, AuthQrCodeData as cf, QrCodeLinkWithSchemaType as cg, parseIden3Message as ch, parseSessionIdFromUrl as ci, AllCredentialAttributes as cj, AllCredentialValues as ck, Operator as cl, ZKPOperator as cm, operatorDisplayMap as cn, ARRAY_OPERATORS as co, ArrayOperator as cp, STRING_OPERATORS as cq, StringOperator as cr, NUMERIC_OPERATORS as cs, NumericOperator as ct, BOOLEAN_OPERATORS as cu, BooleanOperator as cv, DATE_OPERATORS as cw, DateOperator as cx, SUPPORTED_TYPES as cy, SupportedType as cz, NEXERA_EVM_CHAIN_NAMES as d, AnyTxSignatureResponse as d0, ZKPRequest as d1, ZKPRequestFromZKVerifier as d2, OffChainZKP as d3, CreateAuthRequestProps as d4, CreateZKProofRequestProps as d5, AllScenarioExecutionAuthorizationData as d6, ProjectAuthorizationData as d7, OnChainZKP as d8, OnChainZKPFromNexeraID as d9, IDScanCredentialSubjectSchema as dA, IDScanPassportCredentialSubjectSchema as dB, IDScanSelfieCredentialSubjectSchema as dC, OLD_IDImageCredentialSubjectSchema as dD, OLD_IDInformationCredentialSubjectSchema as dE, OLD_ProofOfResidenceCredentialSubjectSchema as dF, OLD_SelfieImageCredentialSubjectSchema as dG, OLD_AMLScreeningsResultsCredentialSubjectSchema as dH, IDInformationCredentialSubjectSchema as dI, IDImageCredentialSubjectSchema as dJ, SelfieImageCredentialSubjectSchema as dK, ProofOfResidenceCredentialSubjectSchema as dL, GenericVerifiableCredentialSchema as dM, CredentialSchemas as dN, CredentialNames as dO, NexeraCredentialType as dP, getCredentialName as dQ, CredentialType as dR, VerifiableCredential as dS, CredentialMediaType as dT, _toConsumableArray as dU, OnChainZKPScenarioFromCms as da, OnChainZKPPayload as db, SCENARIO_AUTHORIZATION_STATUSES as dc, ScenarioAuthorizationStatus as dd, WalletSignatureResponse as de, WalletSignatureData as df, RiskScoreTypes as dg, RiskScoreType as dh, CustomerTypes as di, CustomerType as dj, KycOnboardingLevels as dk, KycOnboardingLevel as dl, KybOnboardingLevels as dm, KybOnboardingLevel as dn, CustomerOnboardingLevels as dp, CustomerOnboardingLevel as dq, CustomerStatuses as dr, CustomerStatus as ds, BasicCustomerContactInformation as dt, CUSTOMERS_CHARTS as du, CustomersChartType as dv, CUSTOMER_TABLE_COLUMNS as dw, CustomerTableColumn as dx, CUSTOMER_AUTOMATION_REASONS as dy, ID3CredentialSubjectSchema as dz, NEXERA_EVM_CHAIN_NAMES_LIST as e, NEXERA_CHAIN_VALUES as f, EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC as g, EvmChainId as h, PolygonNetworkNames as i, NEXERA_TEZOS_CHAIN_NAMES as j, NEXERA_TEZOS_CHAIN_NAMES_LIST as k, NEXERA_TEZOS_CHAIN_VALUES as l, ACTIVE_TEZOS_CHAIN_VALUES as m, COSMOS_CHAIN_NAMES as n, COSMOS_CHAIN_NAMES_LIST as o, COSMOS_CHAIN_VALUES as p, ACTIVE_COSMOS_CHAIN_VALUES as q, CosmosChainId as r, NEXERA_STARKNET_CHAIN_NAMES as s, NEXERA_STARKNET_CHAIN_VALUES as t, NEXERA_ACTIVE_STARKNET_CHAIN_VALUES as u, isValidAddress as v, String0x as w, PrivateKey as x, PublicKey as y, AddressSchema as z };
|
package/dist/{identity-api.schema-46a66e5e.cjs.dev.js → identity-api.schema-1f84a316.cjs.prod.js}
RENAMED
|
@@ -2717,16 +2717,15 @@ var TxSignatureResponse = zod.z.object({
|
|
|
2717
2717
|
signature: EIP155Signature,
|
|
2718
2718
|
blockExpiration: zod.z.number()
|
|
2719
2719
|
});
|
|
2720
|
-
var GetTxAuthDataSignatureResponse = zod.z.object({
|
|
2721
|
-
blockExpiration: zod.z.number().optional()
|
|
2722
|
-
}).and(zod.z.union([zod.z.object({
|
|
2720
|
+
var GetTxAuthDataSignatureResponse = zod.z.union([zod.z.object({
|
|
2723
2721
|
isAuthorized: zod.z.literal(true),
|
|
2724
2722
|
signature: EIP155Signature,
|
|
2725
|
-
payload: zod.z.string()
|
|
2723
|
+
payload: zod.z.string(),
|
|
2724
|
+
blockExpiration: zod.z.number()
|
|
2726
2725
|
}), zod.z.object({
|
|
2727
2726
|
isAuthorized: zod.z.literal(false),
|
|
2728
2727
|
errorMessage: zod.z.any()
|
|
2729
|
-
})])
|
|
2728
|
+
})]);
|
|
2730
2729
|
/////////////
|
|
2731
2730
|
// Tezos //
|
|
2732
2731
|
/////////////
|
|
@@ -2744,15 +2743,14 @@ var TezosTxSignatureResponse = zod.z.object({
|
|
|
2744
2743
|
signature: EdSignature,
|
|
2745
2744
|
blockExpiration: zod.z.number()
|
|
2746
2745
|
});
|
|
2747
|
-
var GetTezosTxAuthDataSignatureResponse = zod.z.object({
|
|
2748
|
-
blockExpiration: zod.z.number().optional()
|
|
2749
|
-
}).and(zod.z.union([zod.z.object({
|
|
2746
|
+
var GetTezosTxAuthDataSignatureResponse = zod.z.union([zod.z.object({
|
|
2750
2747
|
isAuthorized: zod.z.literal(true),
|
|
2751
|
-
signature: EdSignature
|
|
2748
|
+
signature: EdSignature,
|
|
2749
|
+
blockExpiration: zod.z.number()
|
|
2752
2750
|
}), zod.z.object({
|
|
2753
2751
|
isAuthorized: zod.z.literal(false),
|
|
2754
2752
|
errorMessage: zod.z.any()
|
|
2755
|
-
})])
|
|
2753
|
+
})]);
|
|
2756
2754
|
/////////////
|
|
2757
2755
|
// General //
|
|
2758
2756
|
/////////////
|
|
@@ -2906,6 +2904,94 @@ var GetTxAuthSigResponseTezos = zod.z.object({
|
|
|
2906
2904
|
var HostRequestMessage = zod.z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
|
|
2907
2905
|
var IdentityResponseMessage = zod.z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
|
|
2908
2906
|
|
|
2907
|
+
// Risk Score
|
|
2908
|
+
var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
|
|
2909
|
+
var RiskScoreType = zod.z["enum"](RiskScoreTypes);
|
|
2910
|
+
// Customer Type
|
|
2911
|
+
var CustomerTypes = ["Individual", "Company"];
|
|
2912
|
+
var CustomerType = zod.z["enum"](CustomerTypes);
|
|
2913
|
+
// KYC Onboarding Level
|
|
2914
|
+
var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
|
|
2915
|
+
var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
|
|
2916
|
+
// KYB Onboarding Level
|
|
2917
|
+
var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
|
|
2918
|
+
var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
|
|
2919
|
+
var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
|
|
2920
|
+
var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
|
|
2921
|
+
// Customer Status
|
|
2922
|
+
var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
|
|
2923
|
+
|
|
2924
|
+
/** We changed the status names to be more user-friendly, that's why we need to preprocess the data
|
|
2925
|
+
* “Closed” -> “Terminated”
|
|
2926
|
+
* “Blocked” -> “Rejected”
|
|
2927
|
+
* “Under Investigation” -> “To be reviewed”
|
|
2928
|
+
*/
|
|
2929
|
+
var CustomerStatus = zod.z.preprocess(function (status) {
|
|
2930
|
+
switch (status) {
|
|
2931
|
+
case "Closed":
|
|
2932
|
+
return "Terminated";
|
|
2933
|
+
case "Blocked":
|
|
2934
|
+
return "Rejected";
|
|
2935
|
+
case "Under Investigation":
|
|
2936
|
+
return "To be reviewed";
|
|
2937
|
+
default:
|
|
2938
|
+
return status;
|
|
2939
|
+
}
|
|
2940
|
+
}, zod.z["enum"](CustomerStatuses));
|
|
2941
|
+
var BasicCustomerContactInformation = zod.z.object({
|
|
2942
|
+
email: zod.z.string().email(),
|
|
2943
|
+
phone: zod.z.string().min(4),
|
|
2944
|
+
twitter: zod.z.string(),
|
|
2945
|
+
discord: zod.z.string(),
|
|
2946
|
+
telegram: zod.z.string()
|
|
2947
|
+
}).partial();
|
|
2948
|
+
var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "blocked", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
|
|
2949
|
+
var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
|
|
2950
|
+
var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
|
|
2951
|
+
var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
|
|
2952
|
+
var CUSTOMER_AUTOMATION_REASONS = {
|
|
2953
|
+
"rule-engine": {
|
|
2954
|
+
fail: "Rules engine verification failed",
|
|
2955
|
+
pass: "Rules engine verification passed"
|
|
2956
|
+
},
|
|
2957
|
+
kyc: {
|
|
2958
|
+
green: {
|
|
2959
|
+
"final": "Passed KYC"
|
|
2960
|
+
},
|
|
2961
|
+
yellow: {
|
|
2962
|
+
retry: "User rejected by the KYC provider with possibility to retry",
|
|
2963
|
+
fail: "User rejected by the KYC provider"
|
|
2964
|
+
},
|
|
2965
|
+
red: {
|
|
2966
|
+
retry: "User rejected by the KYC provider with possibility to retry",
|
|
2967
|
+
fail: "User rejected by the KYC provider"
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
kyb: {
|
|
2971
|
+
green: {
|
|
2972
|
+
"final": "Passed KYB"
|
|
2973
|
+
},
|
|
2974
|
+
yellow: {
|
|
2975
|
+
retry: "User rejected by the KYB provider with possibility to retry",
|
|
2976
|
+
fail: "User rejected by the KYB provider"
|
|
2977
|
+
},
|
|
2978
|
+
red: {
|
|
2979
|
+
retry: "User rejected by the KYB provider with possibility to retry",
|
|
2980
|
+
fail: "User rejected by the KYB provider"
|
|
2981
|
+
},
|
|
2982
|
+
beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
|
|
2983
|
+
},
|
|
2984
|
+
"aml-screening": {
|
|
2985
|
+
fail: "AML screening hits received during onboarding",
|
|
2986
|
+
ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
|
|
2987
|
+
pass: "Passed AML screening"
|
|
2988
|
+
},
|
|
2989
|
+
offchain_zkp: {
|
|
2990
|
+
fail: "Offchain ZKP verification failed",
|
|
2991
|
+
pass: "Offchain ZKP verification passed"
|
|
2992
|
+
}
|
|
2993
|
+
};
|
|
2994
|
+
|
|
2909
2995
|
var AuthSession = zod.z.object({
|
|
2910
2996
|
// JWT token containing user authentication data
|
|
2911
2997
|
// Generated by the Identity-api using the IdentityWidgetAccessToken_NEW schema
|
|
@@ -2945,7 +3031,10 @@ var TrxSignatureGatingRequest = zod.z.object({
|
|
|
2945
3031
|
input: AnyTxAuthInput
|
|
2946
3032
|
})
|
|
2947
3033
|
});
|
|
2948
|
-
var
|
|
3034
|
+
var GetCustomerStatusRequest = zod.z.object({
|
|
3035
|
+
type: zod.z.literal("getCustomerStatusRequest")
|
|
3036
|
+
});
|
|
3037
|
+
var IdentitySdkMessage = zod.z.union([AppConfigRequest, WalletUpdated, WalletSignResponse, TransactionResponse, TrxSignatureGatingRequest, GetCustomerStatusRequest]);
|
|
2949
3038
|
var IdentitySdkMessageWithIdentifier = zod.z.intersection(IdentitySdkMessage, zod.z.object({
|
|
2950
3039
|
identifier: zod.z.string()
|
|
2951
3040
|
}));
|
|
@@ -2972,7 +3061,11 @@ var TrxSignatureGatingResponse = zod.z.object({
|
|
|
2972
3061
|
type: zod.z.literal("trxSignatureGatingResponse"),
|
|
2973
3062
|
data: AnyTxSignatureResponse
|
|
2974
3063
|
});
|
|
2975
|
-
var
|
|
3064
|
+
var GetCustomerStatusResponse = zod.z.object({
|
|
3065
|
+
type: zod.z.literal("getCustomerStatusResponse"),
|
|
3066
|
+
data: zod.z.union([CustomerStatus, zod.z["null"]()])
|
|
3067
|
+
});
|
|
3068
|
+
var IdentityAppMessage = zod.z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, WalletSignRequest, TrxSignatureGatingResponse, GetCustomerStatusResponse,
|
|
2976
3069
|
// `identifier` is a technical detail that should not be exposed to the app
|
|
2977
3070
|
KycCompletionNotification.omit({
|
|
2978
3071
|
identifier: true
|
|
@@ -3128,6 +3221,7 @@ exports.BLOCKCHAIN_NAMESPACES_NAMES = BLOCKCHAIN_NAMESPACES_NAMES;
|
|
|
3128
3221
|
exports.BLOCKCHAIN_NAMESPACE_TO_NAME = BLOCKCHAIN_NAMESPACE_TO_NAME;
|
|
3129
3222
|
exports.BLOCKCHAIN_NAME_TO_NAMESPACE = BLOCKCHAIN_NAME_TO_NAMESPACE;
|
|
3130
3223
|
exports.BOOLEAN_OPERATORS = BOOLEAN_OPERATORS;
|
|
3224
|
+
exports.BasicCustomerContactInformation = BasicCustomerContactInformation;
|
|
3131
3225
|
exports.BlockchainAddress = BlockchainAddress;
|
|
3132
3226
|
exports.BlockchainId = BlockchainId;
|
|
3133
3227
|
exports.BlockchainNamespace = BlockchainNamespace;
|
|
@@ -3136,6 +3230,9 @@ exports.BooleanOperator = BooleanOperator;
|
|
|
3136
3230
|
exports.COSMOS_CHAIN_NAMES = COSMOS_CHAIN_NAMES;
|
|
3137
3231
|
exports.COSMOS_CHAIN_NAMES_LIST = COSMOS_CHAIN_NAMES_LIST;
|
|
3138
3232
|
exports.COSMOS_CHAIN_VALUES = COSMOS_CHAIN_VALUES;
|
|
3233
|
+
exports.CUSTOMERS_CHARTS = CUSTOMERS_CHARTS;
|
|
3234
|
+
exports.CUSTOMER_AUTOMATION_REASONS = CUSTOMER_AUTOMATION_REASONS;
|
|
3235
|
+
exports.CUSTOMER_TABLE_COLUMNS = CUSTOMER_TABLE_COLUMNS;
|
|
3139
3236
|
exports.CardanoAddress = CardanoAddress;
|
|
3140
3237
|
exports.CardanoSignature = CardanoSignature;
|
|
3141
3238
|
exports.ChallengeId = ChallengeId;
|
|
@@ -3159,6 +3256,14 @@ exports.CredentialQrCodeData = CredentialQrCodeData;
|
|
|
3159
3256
|
exports.CredentialSchemas = CredentialSchemas;
|
|
3160
3257
|
exports.CredentialType = CredentialType;
|
|
3161
3258
|
exports.CredentialTypes = CredentialTypes;
|
|
3259
|
+
exports.CustomerOnboardingLevel = CustomerOnboardingLevel;
|
|
3260
|
+
exports.CustomerOnboardingLevels = CustomerOnboardingLevels;
|
|
3261
|
+
exports.CustomerStatus = CustomerStatus;
|
|
3262
|
+
exports.CustomerStatuses = CustomerStatuses;
|
|
3263
|
+
exports.CustomerTableColumn = CustomerTableColumn;
|
|
3264
|
+
exports.CustomerType = CustomerType;
|
|
3265
|
+
exports.CustomerTypes = CustomerTypes;
|
|
3266
|
+
exports.CustomersChartType = CustomersChartType;
|
|
3162
3267
|
exports.DATE_OPERATORS = DATE_OPERATORS;
|
|
3163
3268
|
exports.DISPLAYED_LOCKCHAIN_NAMESPACES = DISPLAYED_LOCKCHAIN_NAMESPACES;
|
|
3164
3269
|
exports.DataAvailableOnStart = DataAvailableOnStart;
|
|
@@ -3188,6 +3293,8 @@ exports.FunctionCallData = FunctionCallData;
|
|
|
3188
3293
|
exports.GenericVerifiableCredentialSchema = GenericVerifiableCredentialSchema;
|
|
3189
3294
|
exports.GetCredentialsRequest = GetCredentialsRequest;
|
|
3190
3295
|
exports.GetCredentialsResponse = GetCredentialsResponse;
|
|
3296
|
+
exports.GetCustomerStatusRequest = GetCustomerStatusRequest;
|
|
3297
|
+
exports.GetCustomerStatusResponse = GetCustomerStatusResponse;
|
|
3191
3298
|
exports.GetTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse;
|
|
3192
3299
|
exports.GetTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse;
|
|
3193
3300
|
exports.GetTxAuthSigRequest = GetTxAuthSigRequest;
|
|
@@ -3228,8 +3335,12 @@ exports.InitialDataResponse = InitialDataResponse;
|
|
|
3228
3335
|
exports.IsVerifiedNotification = IsVerifiedNotification;
|
|
3229
3336
|
exports.IsVerifiedRequest = IsVerifiedRequest;
|
|
3230
3337
|
exports.IsVerifiedResponse = IsVerifiedResponse;
|
|
3338
|
+
exports.KybOnboardingLevel = KybOnboardingLevel;
|
|
3339
|
+
exports.KybOnboardingLevels = KybOnboardingLevels;
|
|
3231
3340
|
exports.KycCompletionData = KycCompletionData;
|
|
3232
3341
|
exports.KycCompletionNotification = KycCompletionNotification;
|
|
3342
|
+
exports.KycOnboardingLevel = KycOnboardingLevel;
|
|
3343
|
+
exports.KycOnboardingLevels = KycOnboardingLevels;
|
|
3233
3344
|
exports.MediaType = MediaType;
|
|
3234
3345
|
exports.MediaTypePID = MediaTypePID;
|
|
3235
3346
|
exports.NEXERA_ACTIVE_STARKNET_CHAIN_VALUES = NEXERA_ACTIVE_STARKNET_CHAIN_VALUES;
|
|
@@ -3298,6 +3409,8 @@ exports.QueryCredentialTypes = QueryCredentialTypes;
|
|
|
3298
3409
|
exports.QueryType = QueryType;
|
|
3299
3410
|
exports.RequiredDataRowSchema = RequiredDataRowSchema;
|
|
3300
3411
|
exports.RequiredVerificationData = RequiredVerificationData;
|
|
3412
|
+
exports.RiskScoreType = RiskScoreType;
|
|
3413
|
+
exports.RiskScoreTypes = RiskScoreTypes;
|
|
3301
3414
|
exports.RuleEngineResponse = RuleEngineResponse;
|
|
3302
3415
|
exports.RuleEngineScenarioExecutionData = RuleEngineScenarioExecutionData;
|
|
3303
3416
|
exports.RuleResultStatus = RuleResultStatus;
|
package/dist/{identity-api.schema-b63a1396.cjs.prod.js → identity-api.schema-986819d9.cjs.dev.js}
RENAMED
|
@@ -2717,16 +2717,15 @@ var TxSignatureResponse = zod.z.object({
|
|
|
2717
2717
|
signature: EIP155Signature,
|
|
2718
2718
|
blockExpiration: zod.z.number()
|
|
2719
2719
|
});
|
|
2720
|
-
var GetTxAuthDataSignatureResponse = zod.z.object({
|
|
2721
|
-
blockExpiration: zod.z.number().optional()
|
|
2722
|
-
}).and(zod.z.union([zod.z.object({
|
|
2720
|
+
var GetTxAuthDataSignatureResponse = zod.z.union([zod.z.object({
|
|
2723
2721
|
isAuthorized: zod.z.literal(true),
|
|
2724
2722
|
signature: EIP155Signature,
|
|
2725
|
-
payload: zod.z.string()
|
|
2723
|
+
payload: zod.z.string(),
|
|
2724
|
+
blockExpiration: zod.z.number()
|
|
2726
2725
|
}), zod.z.object({
|
|
2727
2726
|
isAuthorized: zod.z.literal(false),
|
|
2728
2727
|
errorMessage: zod.z.any()
|
|
2729
|
-
})])
|
|
2728
|
+
})]);
|
|
2730
2729
|
/////////////
|
|
2731
2730
|
// Tezos //
|
|
2732
2731
|
/////////////
|
|
@@ -2744,15 +2743,14 @@ var TezosTxSignatureResponse = zod.z.object({
|
|
|
2744
2743
|
signature: EdSignature,
|
|
2745
2744
|
blockExpiration: zod.z.number()
|
|
2746
2745
|
});
|
|
2747
|
-
var GetTezosTxAuthDataSignatureResponse = zod.z.object({
|
|
2748
|
-
blockExpiration: zod.z.number().optional()
|
|
2749
|
-
}).and(zod.z.union([zod.z.object({
|
|
2746
|
+
var GetTezosTxAuthDataSignatureResponse = zod.z.union([zod.z.object({
|
|
2750
2747
|
isAuthorized: zod.z.literal(true),
|
|
2751
|
-
signature: EdSignature
|
|
2748
|
+
signature: EdSignature,
|
|
2749
|
+
blockExpiration: zod.z.number()
|
|
2752
2750
|
}), zod.z.object({
|
|
2753
2751
|
isAuthorized: zod.z.literal(false),
|
|
2754
2752
|
errorMessage: zod.z.any()
|
|
2755
|
-
})])
|
|
2753
|
+
})]);
|
|
2756
2754
|
/////////////
|
|
2757
2755
|
// General //
|
|
2758
2756
|
/////////////
|
|
@@ -2906,6 +2904,94 @@ var GetTxAuthSigResponseTezos = zod.z.object({
|
|
|
2906
2904
|
var HostRequestMessage = zod.z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
|
|
2907
2905
|
var IdentityResponseMessage = zod.z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
|
|
2908
2906
|
|
|
2907
|
+
// Risk Score
|
|
2908
|
+
var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
|
|
2909
|
+
var RiskScoreType = zod.z["enum"](RiskScoreTypes);
|
|
2910
|
+
// Customer Type
|
|
2911
|
+
var CustomerTypes = ["Individual", "Company"];
|
|
2912
|
+
var CustomerType = zod.z["enum"](CustomerTypes);
|
|
2913
|
+
// KYC Onboarding Level
|
|
2914
|
+
var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
|
|
2915
|
+
var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
|
|
2916
|
+
// KYB Onboarding Level
|
|
2917
|
+
var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
|
|
2918
|
+
var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
|
|
2919
|
+
var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
|
|
2920
|
+
var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
|
|
2921
|
+
// Customer Status
|
|
2922
|
+
var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
|
|
2923
|
+
|
|
2924
|
+
/** We changed the status names to be more user-friendly, that's why we need to preprocess the data
|
|
2925
|
+
* “Closed” -> “Terminated”
|
|
2926
|
+
* “Blocked” -> “Rejected”
|
|
2927
|
+
* “Under Investigation” -> “To be reviewed”
|
|
2928
|
+
*/
|
|
2929
|
+
var CustomerStatus = zod.z.preprocess(function (status) {
|
|
2930
|
+
switch (status) {
|
|
2931
|
+
case "Closed":
|
|
2932
|
+
return "Terminated";
|
|
2933
|
+
case "Blocked":
|
|
2934
|
+
return "Rejected";
|
|
2935
|
+
case "Under Investigation":
|
|
2936
|
+
return "To be reviewed";
|
|
2937
|
+
default:
|
|
2938
|
+
return status;
|
|
2939
|
+
}
|
|
2940
|
+
}, zod.z["enum"](CustomerStatuses));
|
|
2941
|
+
var BasicCustomerContactInformation = zod.z.object({
|
|
2942
|
+
email: zod.z.string().email(),
|
|
2943
|
+
phone: zod.z.string().min(4),
|
|
2944
|
+
twitter: zod.z.string(),
|
|
2945
|
+
discord: zod.z.string(),
|
|
2946
|
+
telegram: zod.z.string()
|
|
2947
|
+
}).partial();
|
|
2948
|
+
var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "blocked", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
|
|
2949
|
+
var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
|
|
2950
|
+
var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
|
|
2951
|
+
var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
|
|
2952
|
+
var CUSTOMER_AUTOMATION_REASONS = {
|
|
2953
|
+
"rule-engine": {
|
|
2954
|
+
fail: "Rules engine verification failed",
|
|
2955
|
+
pass: "Rules engine verification passed"
|
|
2956
|
+
},
|
|
2957
|
+
kyc: {
|
|
2958
|
+
green: {
|
|
2959
|
+
"final": "Passed KYC"
|
|
2960
|
+
},
|
|
2961
|
+
yellow: {
|
|
2962
|
+
retry: "User rejected by the KYC provider with possibility to retry",
|
|
2963
|
+
fail: "User rejected by the KYC provider"
|
|
2964
|
+
},
|
|
2965
|
+
red: {
|
|
2966
|
+
retry: "User rejected by the KYC provider with possibility to retry",
|
|
2967
|
+
fail: "User rejected by the KYC provider"
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
kyb: {
|
|
2971
|
+
green: {
|
|
2972
|
+
"final": "Passed KYB"
|
|
2973
|
+
},
|
|
2974
|
+
yellow: {
|
|
2975
|
+
retry: "User rejected by the KYB provider with possibility to retry",
|
|
2976
|
+
fail: "User rejected by the KYB provider"
|
|
2977
|
+
},
|
|
2978
|
+
red: {
|
|
2979
|
+
retry: "User rejected by the KYB provider with possibility to retry",
|
|
2980
|
+
fail: "User rejected by the KYB provider"
|
|
2981
|
+
},
|
|
2982
|
+
beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
|
|
2983
|
+
},
|
|
2984
|
+
"aml-screening": {
|
|
2985
|
+
fail: "AML screening hits received during onboarding",
|
|
2986
|
+
ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
|
|
2987
|
+
pass: "Passed AML screening"
|
|
2988
|
+
},
|
|
2989
|
+
offchain_zkp: {
|
|
2990
|
+
fail: "Offchain ZKP verification failed",
|
|
2991
|
+
pass: "Offchain ZKP verification passed"
|
|
2992
|
+
}
|
|
2993
|
+
};
|
|
2994
|
+
|
|
2909
2995
|
var AuthSession = zod.z.object({
|
|
2910
2996
|
// JWT token containing user authentication data
|
|
2911
2997
|
// Generated by the Identity-api using the IdentityWidgetAccessToken_NEW schema
|
|
@@ -2945,7 +3031,10 @@ var TrxSignatureGatingRequest = zod.z.object({
|
|
|
2945
3031
|
input: AnyTxAuthInput
|
|
2946
3032
|
})
|
|
2947
3033
|
});
|
|
2948
|
-
var
|
|
3034
|
+
var GetCustomerStatusRequest = zod.z.object({
|
|
3035
|
+
type: zod.z.literal("getCustomerStatusRequest")
|
|
3036
|
+
});
|
|
3037
|
+
var IdentitySdkMessage = zod.z.union([AppConfigRequest, WalletUpdated, WalletSignResponse, TransactionResponse, TrxSignatureGatingRequest, GetCustomerStatusRequest]);
|
|
2949
3038
|
var IdentitySdkMessageWithIdentifier = zod.z.intersection(IdentitySdkMessage, zod.z.object({
|
|
2950
3039
|
identifier: zod.z.string()
|
|
2951
3040
|
}));
|
|
@@ -2972,7 +3061,11 @@ var TrxSignatureGatingResponse = zod.z.object({
|
|
|
2972
3061
|
type: zod.z.literal("trxSignatureGatingResponse"),
|
|
2973
3062
|
data: AnyTxSignatureResponse
|
|
2974
3063
|
});
|
|
2975
|
-
var
|
|
3064
|
+
var GetCustomerStatusResponse = zod.z.object({
|
|
3065
|
+
type: zod.z.literal("getCustomerStatusResponse"),
|
|
3066
|
+
data: zod.z.union([CustomerStatus, zod.z["null"]()])
|
|
3067
|
+
});
|
|
3068
|
+
var IdentityAppMessage = zod.z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, WalletSignRequest, TrxSignatureGatingResponse, GetCustomerStatusResponse,
|
|
2976
3069
|
// `identifier` is a technical detail that should not be exposed to the app
|
|
2977
3070
|
KycCompletionNotification.omit({
|
|
2978
3071
|
identifier: true
|
|
@@ -3128,6 +3221,7 @@ exports.BLOCKCHAIN_NAMESPACES_NAMES = BLOCKCHAIN_NAMESPACES_NAMES;
|
|
|
3128
3221
|
exports.BLOCKCHAIN_NAMESPACE_TO_NAME = BLOCKCHAIN_NAMESPACE_TO_NAME;
|
|
3129
3222
|
exports.BLOCKCHAIN_NAME_TO_NAMESPACE = BLOCKCHAIN_NAME_TO_NAMESPACE;
|
|
3130
3223
|
exports.BOOLEAN_OPERATORS = BOOLEAN_OPERATORS;
|
|
3224
|
+
exports.BasicCustomerContactInformation = BasicCustomerContactInformation;
|
|
3131
3225
|
exports.BlockchainAddress = BlockchainAddress;
|
|
3132
3226
|
exports.BlockchainId = BlockchainId;
|
|
3133
3227
|
exports.BlockchainNamespace = BlockchainNamespace;
|
|
@@ -3136,6 +3230,9 @@ exports.BooleanOperator = BooleanOperator;
|
|
|
3136
3230
|
exports.COSMOS_CHAIN_NAMES = COSMOS_CHAIN_NAMES;
|
|
3137
3231
|
exports.COSMOS_CHAIN_NAMES_LIST = COSMOS_CHAIN_NAMES_LIST;
|
|
3138
3232
|
exports.COSMOS_CHAIN_VALUES = COSMOS_CHAIN_VALUES;
|
|
3233
|
+
exports.CUSTOMERS_CHARTS = CUSTOMERS_CHARTS;
|
|
3234
|
+
exports.CUSTOMER_AUTOMATION_REASONS = CUSTOMER_AUTOMATION_REASONS;
|
|
3235
|
+
exports.CUSTOMER_TABLE_COLUMNS = CUSTOMER_TABLE_COLUMNS;
|
|
3139
3236
|
exports.CardanoAddress = CardanoAddress;
|
|
3140
3237
|
exports.CardanoSignature = CardanoSignature;
|
|
3141
3238
|
exports.ChallengeId = ChallengeId;
|
|
@@ -3159,6 +3256,14 @@ exports.CredentialQrCodeData = CredentialQrCodeData;
|
|
|
3159
3256
|
exports.CredentialSchemas = CredentialSchemas;
|
|
3160
3257
|
exports.CredentialType = CredentialType;
|
|
3161
3258
|
exports.CredentialTypes = CredentialTypes;
|
|
3259
|
+
exports.CustomerOnboardingLevel = CustomerOnboardingLevel;
|
|
3260
|
+
exports.CustomerOnboardingLevels = CustomerOnboardingLevels;
|
|
3261
|
+
exports.CustomerStatus = CustomerStatus;
|
|
3262
|
+
exports.CustomerStatuses = CustomerStatuses;
|
|
3263
|
+
exports.CustomerTableColumn = CustomerTableColumn;
|
|
3264
|
+
exports.CustomerType = CustomerType;
|
|
3265
|
+
exports.CustomerTypes = CustomerTypes;
|
|
3266
|
+
exports.CustomersChartType = CustomersChartType;
|
|
3162
3267
|
exports.DATE_OPERATORS = DATE_OPERATORS;
|
|
3163
3268
|
exports.DISPLAYED_LOCKCHAIN_NAMESPACES = DISPLAYED_LOCKCHAIN_NAMESPACES;
|
|
3164
3269
|
exports.DataAvailableOnStart = DataAvailableOnStart;
|
|
@@ -3188,6 +3293,8 @@ exports.FunctionCallData = FunctionCallData;
|
|
|
3188
3293
|
exports.GenericVerifiableCredentialSchema = GenericVerifiableCredentialSchema;
|
|
3189
3294
|
exports.GetCredentialsRequest = GetCredentialsRequest;
|
|
3190
3295
|
exports.GetCredentialsResponse = GetCredentialsResponse;
|
|
3296
|
+
exports.GetCustomerStatusRequest = GetCustomerStatusRequest;
|
|
3297
|
+
exports.GetCustomerStatusResponse = GetCustomerStatusResponse;
|
|
3191
3298
|
exports.GetTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse;
|
|
3192
3299
|
exports.GetTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse;
|
|
3193
3300
|
exports.GetTxAuthSigRequest = GetTxAuthSigRequest;
|
|
@@ -3228,8 +3335,12 @@ exports.InitialDataResponse = InitialDataResponse;
|
|
|
3228
3335
|
exports.IsVerifiedNotification = IsVerifiedNotification;
|
|
3229
3336
|
exports.IsVerifiedRequest = IsVerifiedRequest;
|
|
3230
3337
|
exports.IsVerifiedResponse = IsVerifiedResponse;
|
|
3338
|
+
exports.KybOnboardingLevel = KybOnboardingLevel;
|
|
3339
|
+
exports.KybOnboardingLevels = KybOnboardingLevels;
|
|
3231
3340
|
exports.KycCompletionData = KycCompletionData;
|
|
3232
3341
|
exports.KycCompletionNotification = KycCompletionNotification;
|
|
3342
|
+
exports.KycOnboardingLevel = KycOnboardingLevel;
|
|
3343
|
+
exports.KycOnboardingLevels = KycOnboardingLevels;
|
|
3233
3344
|
exports.MediaType = MediaType;
|
|
3234
3345
|
exports.MediaTypePID = MediaTypePID;
|
|
3235
3346
|
exports.NEXERA_ACTIVE_STARKNET_CHAIN_VALUES = NEXERA_ACTIVE_STARKNET_CHAIN_VALUES;
|
|
@@ -3298,6 +3409,8 @@ exports.QueryCredentialTypes = QueryCredentialTypes;
|
|
|
3298
3409
|
exports.QueryType = QueryType;
|
|
3299
3410
|
exports.RequiredDataRowSchema = RequiredDataRowSchema;
|
|
3300
3411
|
exports.RequiredVerificationData = RequiredVerificationData;
|
|
3412
|
+
exports.RiskScoreType = RiskScoreType;
|
|
3413
|
+
exports.RiskScoreTypes = RiskScoreTypes;
|
|
3301
3414
|
exports.RuleEngineResponse = RuleEngineResponse;
|
|
3302
3415
|
exports.RuleEngineScenarioExecutionData = RuleEngineScenarioExecutionData;
|
|
3303
3416
|
exports.RuleResultStatus = RuleResultStatus;
|