@nexeraid/identity-schemas 1.12.10-dev → 1.12.12-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/identity-v2.schema.d.ts +48 -8
- package/dist/declarations/src/identity/identity-v2.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/kyc.schema.d.ts +4 -4
- package/dist/declarations/src/identity/txAuthData.schema.d.ts +6 -6
- 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-16074d35.esm.js +2124 -0
- package/dist/frontend-utilities.schema-6b27c823.cjs.dev.js +2129 -0
- package/dist/frontend-utilities.schema-ff93910a.cjs.prod.js +2129 -0
- package/dist/{identity-api.schema-b8687390.esm.js → identity-api.schema-2ad5ade4.esm.js} +104 -9
- package/dist/{identity-api.schema-5844b144.cjs.prod.js → identity-api.schema-37b8d83d.cjs.dev.js} +127 -12
- package/dist/{identity-api.schema-f78923c5.cjs.dev.js → identity-api.schema-83828ec9.cjs.prod.js} +127 -12
- package/dist/nexeraid-identity-schemas.cjs.dev.js +52 -5
- package/dist/nexeraid-identity-schemas.cjs.prod.js +52 -5
- 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 +7 -5
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +7 -5
- 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
|
@@ -2762,15 +2762,15 @@ var ExtendedTezosTxAuthInput = TezosTxAuthInput.and(z.object({
|
|
|
2762
2762
|
userAddress: TezosImplicitAddress
|
|
2763
2763
|
}));
|
|
2764
2764
|
var AnyTxAuthInput = z.union([ExtendedTxAuthInput, ExtendedTezosTxAuthInput]);
|
|
2765
|
-
var
|
|
2765
|
+
var ExtendedTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse.and(z.object({
|
|
2766
2766
|
namespace: z.literal(BlockchainNamespace.Enum.eip155),
|
|
2767
2767
|
userAddress: AddressSchema
|
|
2768
2768
|
}));
|
|
2769
|
-
var
|
|
2769
|
+
var ExtendedTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse.and(z.object({
|
|
2770
2770
|
namespace: z.literal(BlockchainNamespace.Enum.tezos),
|
|
2771
2771
|
userAddress: TezosImplicitAddress
|
|
2772
2772
|
}));
|
|
2773
|
-
var
|
|
2773
|
+
var AnyTxAuthDataSignatureResponse = z.union([ExtendedTxAuthDataSignatureResponse, ExtendedTezosTxAuthDataSignatureResponse]);
|
|
2774
2774
|
|
|
2775
2775
|
var SimplifiedCredential = z.object({
|
|
2776
2776
|
id: z.string(),
|
|
@@ -2902,6 +2902,94 @@ var GetTxAuthSigResponseTezos = z.object({
|
|
|
2902
2902
|
var HostRequestMessage = z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
|
|
2903
2903
|
var IdentityResponseMessage = z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
|
|
2904
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
|
+
|
|
2905
2993
|
var AuthSession = z.object({
|
|
2906
2994
|
// JWT token containing user authentication data
|
|
2907
2995
|
// Generated by the Identity-api using the IdentityWidgetAccessToken_NEW schema
|
|
@@ -2941,7 +3029,10 @@ var TrxSignatureGatingRequest = z.object({
|
|
|
2941
3029
|
input: AnyTxAuthInput
|
|
2942
3030
|
})
|
|
2943
3031
|
});
|
|
2944
|
-
var
|
|
3032
|
+
var GetCustomerStatusRequest = z.object({
|
|
3033
|
+
type: z.literal("getCustomerStatusRequest")
|
|
3034
|
+
});
|
|
3035
|
+
var IdentitySdkMessage = z.union([AppConfigRequest, WalletUpdated, WalletSignResponse, TransactionResponse, TrxSignatureGatingRequest, GetCustomerStatusRequest]);
|
|
2945
3036
|
var IdentitySdkMessageWithIdentifier = z.intersection(IdentitySdkMessage, z.object({
|
|
2946
3037
|
identifier: z.string()
|
|
2947
3038
|
}));
|
|
@@ -2964,11 +3055,15 @@ var WalletSignRequest = z.object({
|
|
|
2964
3055
|
message: z.string()
|
|
2965
3056
|
})
|
|
2966
3057
|
});
|
|
2967
|
-
var
|
|
2968
|
-
type: z.literal("
|
|
2969
|
-
data:
|
|
3058
|
+
var TxAuthDataSignatureResponse = z.object({
|
|
3059
|
+
type: z.literal("txAuthDataSignatureResponse"),
|
|
3060
|
+
data: AnyTxAuthDataSignatureResponse
|
|
3061
|
+
});
|
|
3062
|
+
var GetCustomerStatusResponse = z.object({
|
|
3063
|
+
type: z.literal("getCustomerStatusResponse"),
|
|
3064
|
+
data: z.union([CustomerStatus, z["null"]()])
|
|
2970
3065
|
});
|
|
2971
|
-
var IdentityAppMessage = z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, WalletSignRequest,
|
|
3066
|
+
var IdentityAppMessage = z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, WalletSignRequest, TxAuthDataSignatureResponse, GetCustomerStatusResponse,
|
|
2972
3067
|
// `identifier` is a technical detail that should not be exposed to the app
|
|
2973
3068
|
KycCompletionNotification.omit({
|
|
2974
3069
|
identifier: true
|
|
@@ -3096,4 +3191,4 @@ var WalletSignatureData = WalletSignatureResponse.and(z.object({
|
|
|
3096
3191
|
blockchainId: BlockchainId.optional()
|
|
3097
3192
|
}));
|
|
3098
3193
|
|
|
3099
|
-
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, ExtendedTezosTxAuthDataSignatureResponse as c$, TxAuthDataSignatureResponse 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, ExtendedTxAuthDataSignatureResponse 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, AnyTxAuthDataSignatureResponse 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-5844b144.cjs.prod.js → identity-api.schema-37b8d83d.cjs.dev.js}
RENAMED
|
@@ -2764,15 +2764,15 @@ var ExtendedTezosTxAuthInput = TezosTxAuthInput.and(zod.z.object({
|
|
|
2764
2764
|
userAddress: TezosImplicitAddress
|
|
2765
2765
|
}));
|
|
2766
2766
|
var AnyTxAuthInput = zod.z.union([ExtendedTxAuthInput, ExtendedTezosTxAuthInput]);
|
|
2767
|
-
var
|
|
2767
|
+
var ExtendedTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse.and(zod.z.object({
|
|
2768
2768
|
namespace: zod.z.literal(BlockchainNamespace.Enum.eip155),
|
|
2769
2769
|
userAddress: AddressSchema
|
|
2770
2770
|
}));
|
|
2771
|
-
var
|
|
2771
|
+
var ExtendedTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse.and(zod.z.object({
|
|
2772
2772
|
namespace: zod.z.literal(BlockchainNamespace.Enum.tezos),
|
|
2773
2773
|
userAddress: TezosImplicitAddress
|
|
2774
2774
|
}));
|
|
2775
|
-
var
|
|
2775
|
+
var AnyTxAuthDataSignatureResponse = zod.z.union([ExtendedTxAuthDataSignatureResponse, ExtendedTezosTxAuthDataSignatureResponse]);
|
|
2776
2776
|
|
|
2777
2777
|
var SimplifiedCredential = zod.z.object({
|
|
2778
2778
|
id: zod.z.string(),
|
|
@@ -2904,6 +2904,94 @@ var GetTxAuthSigResponseTezos = zod.z.object({
|
|
|
2904
2904
|
var HostRequestMessage = zod.z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
|
|
2905
2905
|
var IdentityResponseMessage = zod.z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
|
|
2906
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
|
+
|
|
2907
2995
|
var AuthSession = zod.z.object({
|
|
2908
2996
|
// JWT token containing user authentication data
|
|
2909
2997
|
// Generated by the Identity-api using the IdentityWidgetAccessToken_NEW schema
|
|
@@ -2943,7 +3031,10 @@ var TrxSignatureGatingRequest = zod.z.object({
|
|
|
2943
3031
|
input: AnyTxAuthInput
|
|
2944
3032
|
})
|
|
2945
3033
|
});
|
|
2946
|
-
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]);
|
|
2947
3038
|
var IdentitySdkMessageWithIdentifier = zod.z.intersection(IdentitySdkMessage, zod.z.object({
|
|
2948
3039
|
identifier: zod.z.string()
|
|
2949
3040
|
}));
|
|
@@ -2966,11 +3057,15 @@ var WalletSignRequest = zod.z.object({
|
|
|
2966
3057
|
message: zod.z.string()
|
|
2967
3058
|
})
|
|
2968
3059
|
});
|
|
2969
|
-
var
|
|
2970
|
-
type: zod.z.literal("
|
|
2971
|
-
data:
|
|
3060
|
+
var TxAuthDataSignatureResponse = zod.z.object({
|
|
3061
|
+
type: zod.z.literal("txAuthDataSignatureResponse"),
|
|
3062
|
+
data: AnyTxAuthDataSignatureResponse
|
|
3063
|
+
});
|
|
3064
|
+
var GetCustomerStatusResponse = zod.z.object({
|
|
3065
|
+
type: zod.z.literal("getCustomerStatusResponse"),
|
|
3066
|
+
data: zod.z.union([CustomerStatus, zod.z["null"]()])
|
|
2972
3067
|
});
|
|
2973
|
-
var IdentityAppMessage = zod.z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, WalletSignRequest,
|
|
3068
|
+
var IdentityAppMessage = zod.z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, WalletSignRequest, TxAuthDataSignatureResponse, GetCustomerStatusResponse,
|
|
2974
3069
|
// `identifier` is a technical detail that should not be exposed to the app
|
|
2975
3070
|
KycCompletionNotification.omit({
|
|
2976
3071
|
identifier: true
|
|
@@ -3110,8 +3205,8 @@ exports.AllCredentialAttributes = AllCredentialAttributes;
|
|
|
3110
3205
|
exports.AllCredentialValues = AllCredentialValues;
|
|
3111
3206
|
exports.AllScenarioExecutionAuthorizationData = AllScenarioExecutionAuthorizationData;
|
|
3112
3207
|
exports.Alpha2Country = Alpha2Country;
|
|
3208
|
+
exports.AnyTxAuthDataSignatureResponse = AnyTxAuthDataSignatureResponse;
|
|
3113
3209
|
exports.AnyTxAuthInput = AnyTxAuthInput;
|
|
3114
|
-
exports.AnyTxSignatureResponse = AnyTxSignatureResponse;
|
|
3115
3210
|
exports.AppId = AppId;
|
|
3116
3211
|
exports.AptosAddress = AptosAddress;
|
|
3117
3212
|
exports.AptosSignature = AptosSignature;
|
|
@@ -3126,6 +3221,7 @@ exports.BLOCKCHAIN_NAMESPACES_NAMES = BLOCKCHAIN_NAMESPACES_NAMES;
|
|
|
3126
3221
|
exports.BLOCKCHAIN_NAMESPACE_TO_NAME = BLOCKCHAIN_NAMESPACE_TO_NAME;
|
|
3127
3222
|
exports.BLOCKCHAIN_NAME_TO_NAMESPACE = BLOCKCHAIN_NAME_TO_NAMESPACE;
|
|
3128
3223
|
exports.BOOLEAN_OPERATORS = BOOLEAN_OPERATORS;
|
|
3224
|
+
exports.BasicCustomerContactInformation = BasicCustomerContactInformation;
|
|
3129
3225
|
exports.BlockchainAddress = BlockchainAddress;
|
|
3130
3226
|
exports.BlockchainId = BlockchainId;
|
|
3131
3227
|
exports.BlockchainNamespace = BlockchainNamespace;
|
|
@@ -3134,6 +3230,9 @@ exports.BooleanOperator = BooleanOperator;
|
|
|
3134
3230
|
exports.COSMOS_CHAIN_NAMES = COSMOS_CHAIN_NAMES;
|
|
3135
3231
|
exports.COSMOS_CHAIN_NAMES_LIST = COSMOS_CHAIN_NAMES_LIST;
|
|
3136
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;
|
|
3137
3236
|
exports.CardanoAddress = CardanoAddress;
|
|
3138
3237
|
exports.CardanoSignature = CardanoSignature;
|
|
3139
3238
|
exports.ChallengeId = ChallengeId;
|
|
@@ -3157,6 +3256,14 @@ exports.CredentialQrCodeData = CredentialQrCodeData;
|
|
|
3157
3256
|
exports.CredentialSchemas = CredentialSchemas;
|
|
3158
3257
|
exports.CredentialType = CredentialType;
|
|
3159
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;
|
|
3160
3267
|
exports.DATE_OPERATORS = DATE_OPERATORS;
|
|
3161
3268
|
exports.DISPLAYED_LOCKCHAIN_NAMESPACES = DISPLAYED_LOCKCHAIN_NAMESPACES;
|
|
3162
3269
|
exports.DataAvailableOnStart = DataAvailableOnStart;
|
|
@@ -3175,10 +3282,10 @@ exports.EvmChainId = EvmChainId;
|
|
|
3175
3282
|
exports.ExecuteChallengeQueryConfig = ExecuteChallengeQueryConfig;
|
|
3176
3283
|
exports.ExecuteChallengeQueryInput = ExecuteChallengeQueryInput;
|
|
3177
3284
|
exports.ExecuteChallengeQueryResponse = ExecuteChallengeQueryResponse;
|
|
3285
|
+
exports.ExtendedTezosTxAuthDataSignatureResponse = ExtendedTezosTxAuthDataSignatureResponse;
|
|
3178
3286
|
exports.ExtendedTezosTxAuthInput = ExtendedTezosTxAuthInput;
|
|
3179
|
-
exports.
|
|
3287
|
+
exports.ExtendedTxAuthDataSignatureResponse = ExtendedTxAuthDataSignatureResponse;
|
|
3180
3288
|
exports.ExtendedTxAuthInput = ExtendedTxAuthInput;
|
|
3181
|
-
exports.ExtendedTxSignatureResponse = ExtendedTxSignatureResponse;
|
|
3182
3289
|
exports.ExternalClientId = ExternalClientId;
|
|
3183
3290
|
exports.FLOW_TYPES = FLOW_TYPES;
|
|
3184
3291
|
exports.FlowType = FlowType;
|
|
@@ -3186,6 +3293,8 @@ exports.FunctionCallData = FunctionCallData;
|
|
|
3186
3293
|
exports.GenericVerifiableCredentialSchema = GenericVerifiableCredentialSchema;
|
|
3187
3294
|
exports.GetCredentialsRequest = GetCredentialsRequest;
|
|
3188
3295
|
exports.GetCredentialsResponse = GetCredentialsResponse;
|
|
3296
|
+
exports.GetCustomerStatusRequest = GetCustomerStatusRequest;
|
|
3297
|
+
exports.GetCustomerStatusResponse = GetCustomerStatusResponse;
|
|
3189
3298
|
exports.GetTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse;
|
|
3190
3299
|
exports.GetTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse;
|
|
3191
3300
|
exports.GetTxAuthSigRequest = GetTxAuthSigRequest;
|
|
@@ -3226,8 +3335,12 @@ exports.InitialDataResponse = InitialDataResponse;
|
|
|
3226
3335
|
exports.IsVerifiedNotification = IsVerifiedNotification;
|
|
3227
3336
|
exports.IsVerifiedRequest = IsVerifiedRequest;
|
|
3228
3337
|
exports.IsVerifiedResponse = IsVerifiedResponse;
|
|
3338
|
+
exports.KybOnboardingLevel = KybOnboardingLevel;
|
|
3339
|
+
exports.KybOnboardingLevels = KybOnboardingLevels;
|
|
3229
3340
|
exports.KycCompletionData = KycCompletionData;
|
|
3230
3341
|
exports.KycCompletionNotification = KycCompletionNotification;
|
|
3342
|
+
exports.KycOnboardingLevel = KycOnboardingLevel;
|
|
3343
|
+
exports.KycOnboardingLevels = KycOnboardingLevels;
|
|
3231
3344
|
exports.MediaType = MediaType;
|
|
3232
3345
|
exports.MediaTypePID = MediaTypePID;
|
|
3233
3346
|
exports.NEXERA_ACTIVE_STARKNET_CHAIN_VALUES = NEXERA_ACTIVE_STARKNET_CHAIN_VALUES;
|
|
@@ -3296,6 +3409,8 @@ exports.QueryCredentialTypes = QueryCredentialTypes;
|
|
|
3296
3409
|
exports.QueryType = QueryType;
|
|
3297
3410
|
exports.RequiredDataRowSchema = RequiredDataRowSchema;
|
|
3298
3411
|
exports.RequiredVerificationData = RequiredVerificationData;
|
|
3412
|
+
exports.RiskScoreType = RiskScoreType;
|
|
3413
|
+
exports.RiskScoreTypes = RiskScoreTypes;
|
|
3299
3414
|
exports.RuleEngineResponse = RuleEngineResponse;
|
|
3300
3415
|
exports.RuleEngineScenarioExecutionData = RuleEngineScenarioExecutionData;
|
|
3301
3416
|
exports.RuleResultStatus = RuleResultStatus;
|
|
@@ -3343,7 +3458,7 @@ exports.TezosTxSignatureResponse = TezosTxSignatureResponse;
|
|
|
3343
3458
|
exports.TransactionData = TransactionData;
|
|
3344
3459
|
exports.TransactionResponse = TransactionResponse;
|
|
3345
3460
|
exports.TrxSignatureGatingRequest = TrxSignatureGatingRequest;
|
|
3346
|
-
exports.
|
|
3461
|
+
exports.TxAuthDataSignatureResponse = TxAuthDataSignatureResponse;
|
|
3347
3462
|
exports.TxAuthInput = TxAuthInput;
|
|
3348
3463
|
exports.TxHash = TxHash;
|
|
3349
3464
|
exports.TxSignatureResponse = TxSignatureResponse;
|