@nexeraid/identity-schemas 2.72.0 → 2.73.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-8a4e841b.cjs.prod.cjs → CoinMarketCap.schema-39dc07bf.cjs.prod.cjs} +2 -2
- package/dist/{CoinMarketCap.schema-7fddd846.cjs.dev.cjs → CoinMarketCap.schema-49ada60a.cjs.dev.cjs} +2 -2
- package/dist/{CoinMarketCap.schema-be687f87.esm.mjs → CoinMarketCap.schema-89f84f7d.esm.mjs} +2 -2
- package/dist/declarations/src/identity/app-requests.schema.d.ts +37 -37
- package/dist/declarations/src/identity/identity-v2.schema.d.ts +9 -9
- package/dist/declarations/src/identity/kyc.schema.d.ts +27 -27
- package/dist/declarations/src/identity/query.schema.d.ts +33 -44
- package/dist/declarations/src/identity/query.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/scenario.schema.d.ts +30 -30
- package/dist/declarations/src/identity/zkps.schema.d.ts +17 -17
- package/dist/declarations/src/vault/index.d.ts +1 -0
- package/dist/declarations/src/vault/index.d.ts.map +1 -1
- package/dist/declarations/src/vault/schemas/Customer.zod.d.ts +241 -0
- package/dist/declarations/src/vault/schemas/Customer.zod.d.ts.map +1 -0
- package/dist/declarations/src/vault/schemas/generated/Customer.schema.json.d.ts +16 -9
- package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts +2 -9
- package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts.map +1 -1
- package/dist/declarations/src/vault/vault.schema.d.ts +14 -63
- package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
- package/dist/{identity-api.schema-bf80ff6a.cjs.prod.cjs → identity-api.schema-63927f8c.cjs.prod.cjs} +10 -8
- package/dist/{identity-api.schema-f7ff4d23.cjs.dev.cjs → identity-api.schema-71c584a3.cjs.dev.cjs} +10 -8
- package/dist/{identity-api.schema-91d02295.esm.mjs → identity-api.schema-fc405e43.esm.mjs} +10 -8
- package/dist/nexeraid-identity-schemas.cjs.dev.cjs +5 -3
- package/dist/nexeraid-identity-schemas.cjs.prod.cjs +5 -3
- package/dist/nexeraid-identity-schemas.esm.mjs +4 -4
- package/dist/package.json +1 -1
- package/dist/{tfhe-utilities-949889ba.cjs.dev.cjs → tfhe-utilities-74ffc1e1.cjs.dev.cjs} +2 -2
- package/dist/{tfhe-utilities-4eb5dde5.cjs.prod.cjs → tfhe-utilities-d53f6f9d.cjs.prod.cjs} +2 -2
- package/dist/{tfhe-utilities-5443554b.esm.mjs → tfhe-utilities-fc217910.esm.mjs} +2 -2
- package/dist/{vault.schema-715ccfa0.cjs.dev.cjs → vault.schema-05e0f7ea.cjs.prod.cjs} +103 -108
- package/dist/{vault.schema-fbc2d7e0.cjs.prod.cjs → vault.schema-8973f606.cjs.dev.cjs} +103 -108
- package/dist/{vault.schema-dcb18640.esm.mjs → vault.schema-99812078.esm.mjs} +102 -109
- 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 +2 -2
- 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 +3 -1
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +3 -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 +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +3 -3
|
@@ -2712,80 +2712,6 @@ var generateId = function generateId(type) {
|
|
|
2712
2712
|
};
|
|
2713
2713
|
var MemberId = zod.z.string();
|
|
2714
2714
|
|
|
2715
|
-
var FLOW_TYPES = ["web2", "web3"];
|
|
2716
|
-
var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
2717
|
-
var VerificationModes = ["full_verification", "sandbox"];
|
|
2718
|
-
var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2719
|
-
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2720
|
-
var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2721
|
-
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2722
|
-
var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2723
|
-
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2724
|
-
var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2725
|
-
var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
|
|
2726
|
-
|
|
2727
|
-
/**
|
|
2728
|
-
* Represents the additional data that can be attached to a customer
|
|
2729
|
-
*/
|
|
2730
|
-
|
|
2731
|
-
var AdditionalCustomerInformationParams = zod.z.object({
|
|
2732
|
-
email: zod.z.string().email().optional(),
|
|
2733
|
-
phone: zod.z.string().min(4).optional(),
|
|
2734
|
-
wallet: zod.z.object({
|
|
2735
|
-
address: BlockchainAddress,
|
|
2736
|
-
namespace: BlockchainNamespace
|
|
2737
|
-
}).optional()
|
|
2738
|
-
});
|
|
2739
|
-
var OrganizationId = zod.z.string();
|
|
2740
|
-
var WorkspaceId = zod.z.string();
|
|
2741
|
-
var WorkflowId = UuidString;
|
|
2742
|
-
var CustomerId = UuidString;
|
|
2743
|
-
|
|
2744
|
-
// represents an id of a consumer in the external system of our client
|
|
2745
|
-
// as it's an external id, it can be any string
|
|
2746
|
-
var ExternalCustomerId = zod.z.string();
|
|
2747
|
-
var IdentityAppV2BaseJWT = zod.z.object({
|
|
2748
|
-
sub: IdentityId,
|
|
2749
|
-
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
2750
|
-
flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
|
|
2751
|
-
exp: zod.z.number(),
|
|
2752
|
-
customerId: UuidString,
|
|
2753
|
-
verificationMode: VerificationMode,
|
|
2754
|
-
organizationId: OrganizationId,
|
|
2755
|
-
workspaceId: WorkspaceId,
|
|
2756
|
-
workflowId: WorkflowId,
|
|
2757
|
-
ipAddress: zod.z.string().optional(),
|
|
2758
|
-
timestamp: zod.z.number(),
|
|
2759
|
-
iat: zod.z.number(),
|
|
2760
|
-
hosts: zod.z.array(zod.z.string())
|
|
2761
|
-
});
|
|
2762
|
-
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
2763
|
-
flowType: zod.z.literal(FlowType.Values.web3),
|
|
2764
|
-
blockchainAddress: BlockchainAddress,
|
|
2765
|
-
blockchainNamespace: BlockchainNamespace
|
|
2766
|
-
});
|
|
2767
|
-
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
2768
|
-
flowType: zod.z.literal(FlowType.Values.web2),
|
|
2769
|
-
/**
|
|
2770
|
-
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
2771
|
-
* We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
|
|
2772
|
-
*/
|
|
2773
|
-
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
2774
|
-
});
|
|
2775
|
-
var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
2776
|
-
var IdentityWidgetSessionToken = IdentityWidgetAccessToken_NEW;
|
|
2777
|
-
|
|
2778
|
-
/**
|
|
2779
|
-
* The parameters required to create a new configuration in web2 mode.
|
|
2780
|
-
*/
|
|
2781
|
-
|
|
2782
|
-
var Web2CreateSessionParams = zod.z.object({
|
|
2783
|
-
workflowId: WorkflowId,
|
|
2784
|
-
// required in web2 because we don't have the wallet address
|
|
2785
|
-
externalCustomerId: ExternalCustomerId,
|
|
2786
|
-
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
2787
|
-
});
|
|
2788
|
-
|
|
2789
2715
|
zod.z.literal("v1");
|
|
2790
2716
|
|
|
2791
2717
|
// this lib is too generic to follow the linting rules, a lot of types end up resolved to any
|
|
@@ -3039,6 +2965,80 @@ var DataLinkVersionZodSchema = zod.z["enum"](allDataLinkVersions);
|
|
|
3039
2965
|
var allDataLinkTypes = ["pointer", "search", "embedded"];
|
|
3040
2966
|
var DataLinkTypeZodSchema = zod.z["enum"](allDataLinkTypes);
|
|
3041
2967
|
|
|
2968
|
+
var FLOW_TYPES = ["web2", "web3"];
|
|
2969
|
+
var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
2970
|
+
var VerificationModes = ["full_verification", "sandbox"];
|
|
2971
|
+
var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2972
|
+
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2973
|
+
var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2974
|
+
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2975
|
+
var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2976
|
+
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2977
|
+
var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2978
|
+
var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
|
|
2979
|
+
|
|
2980
|
+
/**
|
|
2981
|
+
* Represents the additional data that can be attached to a customer
|
|
2982
|
+
*/
|
|
2983
|
+
|
|
2984
|
+
var AdditionalCustomerInformationParams = zod.z.object({
|
|
2985
|
+
email: zod.z.string().email().optional(),
|
|
2986
|
+
phone: zod.z.string().min(4).optional(),
|
|
2987
|
+
wallet: zod.z.object({
|
|
2988
|
+
address: BlockchainAddress,
|
|
2989
|
+
namespace: BlockchainNamespace
|
|
2990
|
+
}).optional()
|
|
2991
|
+
});
|
|
2992
|
+
var OrganizationId = zod.z.string();
|
|
2993
|
+
var WorkspaceId = zod.z.string();
|
|
2994
|
+
var WorkflowId = UuidString;
|
|
2995
|
+
var CustomerId = UuidString;
|
|
2996
|
+
|
|
2997
|
+
// represents an id of a consumer in the external system of our client
|
|
2998
|
+
// as it's an external id, it can be any string
|
|
2999
|
+
var ExternalCustomerId = zod.z.string();
|
|
3000
|
+
var IdentityAppV2BaseJWT = zod.z.object({
|
|
3001
|
+
sub: IdentityId,
|
|
3002
|
+
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
3003
|
+
flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
|
|
3004
|
+
exp: zod.z.number(),
|
|
3005
|
+
customerId: UuidString,
|
|
3006
|
+
verificationMode: VerificationMode,
|
|
3007
|
+
organizationId: OrganizationId,
|
|
3008
|
+
workspaceId: WorkspaceId,
|
|
3009
|
+
workflowId: WorkflowId,
|
|
3010
|
+
ipAddress: zod.z.string().optional(),
|
|
3011
|
+
timestamp: zod.z.number(),
|
|
3012
|
+
iat: zod.z.number(),
|
|
3013
|
+
hosts: zod.z.array(zod.z.string())
|
|
3014
|
+
});
|
|
3015
|
+
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
3016
|
+
flowType: zod.z.literal(FlowType.Values.web3),
|
|
3017
|
+
blockchainAddress: BlockchainAddress,
|
|
3018
|
+
blockchainNamespace: BlockchainNamespace
|
|
3019
|
+
});
|
|
3020
|
+
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
3021
|
+
flowType: zod.z.literal(FlowType.Values.web2),
|
|
3022
|
+
/**
|
|
3023
|
+
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
3024
|
+
* We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
|
|
3025
|
+
*/
|
|
3026
|
+
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
3027
|
+
});
|
|
3028
|
+
var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
3029
|
+
var IdentityWidgetSessionToken = IdentityWidgetAccessToken_NEW;
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* The parameters required to create a new configuration in web2 mode.
|
|
3033
|
+
*/
|
|
3034
|
+
|
|
3035
|
+
var Web2CreateSessionParams = zod.z.object({
|
|
3036
|
+
workflowId: WorkflowId,
|
|
3037
|
+
// required in web2 because we don't have the wallet address
|
|
3038
|
+
externalCustomerId: ExternalCustomerId,
|
|
3039
|
+
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
3040
|
+
});
|
|
3041
|
+
|
|
3042
3042
|
var SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "STELLAR", "CARDANO", "ZCASH", "MONERO", "SOLANA", "POLKADOT", "ICON", "DOGECOIN", "FILECOIN", "ARBITRUMONE", "COSMOS", "ALGORAND", "CELO", "POLYGON", "EOS", "ETHEREUMCLASSIC", "FLOW", "FANTOM", "MOONBEAM", "GROESTLCOIN", "INTERNETCOMPUTERPROTOCOL", "INJECTIVEPROTOCOL", "KUSAMA", "LISK", "TERRACLASSIC", "MOONRIVER", "NEARPROTOCOL", "BITCOINGOLD", "THORCHAIN", "SIACOIN", "ECREDITS", "BITCOINSV", "RADIX", "STACKS", "THETANETWORK", "VECHAIN", "VITE", "ZILLIQA", "NEM", "NEO", "VERGE", "AVALANCHE", "GNOSIS", "APTOS", "BNBBEACONCHAIN", "OPTIMISM", "VENIDIUM", "MULTIVERSX", "HARMONY", "TON", "WEMIX", "CRONOS", "AVALANCHEP-XCHAIN", "SUI", "METIS", "AETERNITY", "COTI", "CASPER", "CONSTELLATION", "ELECTRONEUM", "EVERSCALE", "DECENTRALIZEDPICTURES", "HEDERA", "CIRRUS", "HATHOR", "KADENA", "STRATIS", "IOST", "DIGIBYTE", "KOMODO", "RAVENCOIN", "TELOS", "DIGITALBITS", "NERVOS", "DIVI", "HIVE", "NANO", "XDCNETWORK", "FUSE", "ZKSYNC", "BOBA", "HECO", "PULSECHAIN", "BASE", "HELIUM", "DOGECHAIN", "KASPA", "MANTLE", "SEI", "COMDEX", "FIRO", "ECASH", "XDAG", "RONIN", "KLEVER", "BAHAMUT", "FLARE", "CELESTIA", "BNBOPTIMISTIC", "OSMOSIS", "MANTANETWORK", "CONFLUX", "IOTA", "STARKNET", "PARTISIA", "LINEA", "NIBIRUCHAIN", "DYDXCHAIN", "DYMENSION", "OKB", "POLYGONZKEVM", "LUMIA"];
|
|
3043
3043
|
var NON_MINIMAL_SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "SOLANA", "POLYGON", "AVALANCHE", "BASE", "TON"];
|
|
3044
3044
|
|
|
@@ -3766,6 +3766,12 @@ var WalletScreeningProvider = zod.z["enum"](WalletScreeningProviders);
|
|
|
3766
3766
|
// FIXME:importing SumSubReviewAnswer causes circular dependency
|
|
3767
3767
|
var SUMSUB_REVIEW_ANSWERS = ["GREEN", "RED", "YELLOW"];
|
|
3768
3768
|
var SumSubReviewAnswer = zod.z["enum"](SUMSUB_REVIEW_ANSWERS);
|
|
3769
|
+
var AML_RESULTS = ["AML Hits", "PEP Hits", "Sanction Hits", "Adverse Media"];
|
|
3770
|
+
var AmlResults = zod.z["enum"](AML_RESULTS);
|
|
3771
|
+
var WALLET_SCREENING_RISK_SCORE = ["No Risk", "Low Risk", "Medium Risk", "High Risk", "Critical Risk"];
|
|
3772
|
+
zod.z["enum"](WALLET_SCREENING_RISK_SCORE);
|
|
3773
|
+
var DETECTED_DUPLICATES = ["Duplicate hit"];
|
|
3774
|
+
var DetectedDuplicates = zod.z["enum"](DETECTED_DUPLICATES);
|
|
3769
3775
|
var CustomerZodSchema = zod.z.object({
|
|
3770
3776
|
identityData: zod.z.object({
|
|
3771
3777
|
age: zod.z.number().optional(),
|
|
@@ -3782,17 +3788,10 @@ var CustomerZodSchema = zod.z.object({
|
|
|
3782
3788
|
proofOfResidenceCheckStatus: SumSubReviewAnswer.optional()
|
|
3783
3789
|
}).optional(),
|
|
3784
3790
|
amlScreening: zod.z.object({
|
|
3785
|
-
|
|
3786
|
-
pepHits: zod.z["boolean"]().optional(),
|
|
3787
|
-
sanctionsHits: zod.z["boolean"]().optional(),
|
|
3788
|
-
adverseMediaHits: zod.z["boolean"]().optional(),
|
|
3789
|
-
pepAttribute: zod.z["boolean"]().optional(),
|
|
3790
|
-
sanctionsStatus: zod.z["boolean"]().optional(),
|
|
3791
|
-
adverseMediaStatus: zod.z["boolean"]().optional()
|
|
3791
|
+
amlResults: AmlResults.array().optional()
|
|
3792
3792
|
}).optional(),
|
|
3793
3793
|
duplicates: zod.z.object({
|
|
3794
|
-
|
|
3795
|
-
hasDuplicates: zod.z["boolean"]().optional()
|
|
3794
|
+
detectedDuplicates: DetectedDuplicates.array().optional()
|
|
3796
3795
|
}).optional(),
|
|
3797
3796
|
walletScreening: WalletScreeningData.optional(),
|
|
3798
3797
|
fraudAnalytics: zod.z.object({
|
|
@@ -4389,26 +4388,17 @@ var CustomerJsonSchema = {
|
|
|
4389
4388
|
amlScreening: {
|
|
4390
4389
|
type: "object",
|
|
4391
4390
|
properties: {
|
|
4392
|
-
|
|
4393
|
-
type: "
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
},
|
|
4404
|
-
pepAttribute: {
|
|
4405
|
-
type: "boolean"
|
|
4406
|
-
},
|
|
4407
|
-
sanctionsStatus: {
|
|
4408
|
-
type: "boolean"
|
|
4409
|
-
},
|
|
4410
|
-
adverseMediaStatus: {
|
|
4411
|
-
type: "boolean"
|
|
4391
|
+
amlResults: {
|
|
4392
|
+
type: "array",
|
|
4393
|
+
items: {
|
|
4394
|
+
type: "string",
|
|
4395
|
+
"enum": [
|
|
4396
|
+
"AML Hits",
|
|
4397
|
+
"PEP Hits",
|
|
4398
|
+
"Sanction Hits",
|
|
4399
|
+
"Adverse Media"
|
|
4400
|
+
]
|
|
4401
|
+
}
|
|
4412
4402
|
}
|
|
4413
4403
|
},
|
|
4414
4404
|
additionalProperties: false
|
|
@@ -4416,11 +4406,14 @@ var CustomerJsonSchema = {
|
|
|
4416
4406
|
duplicates: {
|
|
4417
4407
|
type: "object",
|
|
4418
4408
|
properties: {
|
|
4419
|
-
|
|
4420
|
-
type: "
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4409
|
+
detectedDuplicates: {
|
|
4410
|
+
type: "array",
|
|
4411
|
+
items: {
|
|
4412
|
+
type: "string",
|
|
4413
|
+
"enum": [
|
|
4414
|
+
"Duplicate hit"
|
|
4415
|
+
]
|
|
4416
|
+
}
|
|
4424
4417
|
}
|
|
4425
4418
|
},
|
|
4426
4419
|
additionalProperties: false
|
|
@@ -10131,6 +10124,7 @@ exports.AiExecutionPrefix = AiExecutionPrefix;
|
|
|
10131
10124
|
exports.AiExecutionStepId = AiExecutionStepId;
|
|
10132
10125
|
exports.AiExecutionStepPrefix = AiExecutionStepPrefix;
|
|
10133
10126
|
exports.Alpha2Country = Alpha2Country;
|
|
10127
|
+
exports.AmlResults = AmlResults;
|
|
10134
10128
|
exports.AnalysisType = AnalysisType;
|
|
10135
10129
|
exports.AppId = AppId;
|
|
10136
10130
|
exports.AppPrefix = AppPrefix;
|
|
@@ -10183,6 +10177,7 @@ exports.DEFAULT_FIAT_CURRENCY = DEFAULT_FIAT_CURRENCY;
|
|
|
10183
10177
|
exports.DISPLAYED_BLOCKCHAIN_NAMESPACES = DISPLAYED_BLOCKCHAIN_NAMESPACES;
|
|
10184
10178
|
exports.DataLinkTypeZodSchema = DataLinkTypeZodSchema;
|
|
10185
10179
|
exports.DataLinkVersionZodSchema = DataLinkVersionZodSchema;
|
|
10180
|
+
exports.DetectedDuplicates = DetectedDuplicates;
|
|
10186
10181
|
exports.DisplayedBlockchainNamespace = DisplayedBlockchainNamespace;
|
|
10187
10182
|
exports.EIP155Signature = EIP155Signature;
|
|
10188
10183
|
exports.ENVS = ENVS;
|
|
@@ -2712,80 +2712,6 @@ var generateId = function generateId(type) {
|
|
|
2712
2712
|
};
|
|
2713
2713
|
var MemberId = zod.z.string();
|
|
2714
2714
|
|
|
2715
|
-
var FLOW_TYPES = ["web2", "web3"];
|
|
2716
|
-
var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
2717
|
-
var VerificationModes = ["full_verification", "sandbox"];
|
|
2718
|
-
var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2719
|
-
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2720
|
-
var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2721
|
-
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2722
|
-
var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2723
|
-
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2724
|
-
var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2725
|
-
var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
|
|
2726
|
-
|
|
2727
|
-
/**
|
|
2728
|
-
* Represents the additional data that can be attached to a customer
|
|
2729
|
-
*/
|
|
2730
|
-
|
|
2731
|
-
var AdditionalCustomerInformationParams = zod.z.object({
|
|
2732
|
-
email: zod.z.string().email().optional(),
|
|
2733
|
-
phone: zod.z.string().min(4).optional(),
|
|
2734
|
-
wallet: zod.z.object({
|
|
2735
|
-
address: BlockchainAddress,
|
|
2736
|
-
namespace: BlockchainNamespace
|
|
2737
|
-
}).optional()
|
|
2738
|
-
});
|
|
2739
|
-
var OrganizationId = zod.z.string();
|
|
2740
|
-
var WorkspaceId = zod.z.string();
|
|
2741
|
-
var WorkflowId = UuidString;
|
|
2742
|
-
var CustomerId = UuidString;
|
|
2743
|
-
|
|
2744
|
-
// represents an id of a consumer in the external system of our client
|
|
2745
|
-
// as it's an external id, it can be any string
|
|
2746
|
-
var ExternalCustomerId = zod.z.string();
|
|
2747
|
-
var IdentityAppV2BaseJWT = zod.z.object({
|
|
2748
|
-
sub: IdentityId,
|
|
2749
|
-
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
2750
|
-
flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
|
|
2751
|
-
exp: zod.z.number(),
|
|
2752
|
-
customerId: UuidString,
|
|
2753
|
-
verificationMode: VerificationMode,
|
|
2754
|
-
organizationId: OrganizationId,
|
|
2755
|
-
workspaceId: WorkspaceId,
|
|
2756
|
-
workflowId: WorkflowId,
|
|
2757
|
-
ipAddress: zod.z.string().optional(),
|
|
2758
|
-
timestamp: zod.z.number(),
|
|
2759
|
-
iat: zod.z.number(),
|
|
2760
|
-
hosts: zod.z.array(zod.z.string())
|
|
2761
|
-
});
|
|
2762
|
-
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
2763
|
-
flowType: zod.z.literal(FlowType.Values.web3),
|
|
2764
|
-
blockchainAddress: BlockchainAddress,
|
|
2765
|
-
blockchainNamespace: BlockchainNamespace
|
|
2766
|
-
});
|
|
2767
|
-
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
2768
|
-
flowType: zod.z.literal(FlowType.Values.web2),
|
|
2769
|
-
/**
|
|
2770
|
-
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
2771
|
-
* We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
|
|
2772
|
-
*/
|
|
2773
|
-
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
2774
|
-
});
|
|
2775
|
-
var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
2776
|
-
var IdentityWidgetSessionToken = IdentityWidgetAccessToken_NEW;
|
|
2777
|
-
|
|
2778
|
-
/**
|
|
2779
|
-
* The parameters required to create a new configuration in web2 mode.
|
|
2780
|
-
*/
|
|
2781
|
-
|
|
2782
|
-
var Web2CreateSessionParams = zod.z.object({
|
|
2783
|
-
workflowId: WorkflowId,
|
|
2784
|
-
// required in web2 because we don't have the wallet address
|
|
2785
|
-
externalCustomerId: ExternalCustomerId,
|
|
2786
|
-
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
2787
|
-
});
|
|
2788
|
-
|
|
2789
2715
|
zod.z.literal("v1");
|
|
2790
2716
|
|
|
2791
2717
|
// this lib is too generic to follow the linting rules, a lot of types end up resolved to any
|
|
@@ -3039,6 +2965,80 @@ var DataLinkVersionZodSchema = zod.z["enum"](allDataLinkVersions);
|
|
|
3039
2965
|
var allDataLinkTypes = ["pointer", "search", "embedded"];
|
|
3040
2966
|
var DataLinkTypeZodSchema = zod.z["enum"](allDataLinkTypes);
|
|
3041
2967
|
|
|
2968
|
+
var FLOW_TYPES = ["web2", "web3"];
|
|
2969
|
+
var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
2970
|
+
var VerificationModes = ["full_verification", "sandbox"];
|
|
2971
|
+
var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2972
|
+
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2973
|
+
var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2974
|
+
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2975
|
+
var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2976
|
+
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2977
|
+
var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2978
|
+
var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
|
|
2979
|
+
|
|
2980
|
+
/**
|
|
2981
|
+
* Represents the additional data that can be attached to a customer
|
|
2982
|
+
*/
|
|
2983
|
+
|
|
2984
|
+
var AdditionalCustomerInformationParams = zod.z.object({
|
|
2985
|
+
email: zod.z.string().email().optional(),
|
|
2986
|
+
phone: zod.z.string().min(4).optional(),
|
|
2987
|
+
wallet: zod.z.object({
|
|
2988
|
+
address: BlockchainAddress,
|
|
2989
|
+
namespace: BlockchainNamespace
|
|
2990
|
+
}).optional()
|
|
2991
|
+
});
|
|
2992
|
+
var OrganizationId = zod.z.string();
|
|
2993
|
+
var WorkspaceId = zod.z.string();
|
|
2994
|
+
var WorkflowId = UuidString;
|
|
2995
|
+
var CustomerId = UuidString;
|
|
2996
|
+
|
|
2997
|
+
// represents an id of a consumer in the external system of our client
|
|
2998
|
+
// as it's an external id, it can be any string
|
|
2999
|
+
var ExternalCustomerId = zod.z.string();
|
|
3000
|
+
var IdentityAppV2BaseJWT = zod.z.object({
|
|
3001
|
+
sub: IdentityId,
|
|
3002
|
+
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
3003
|
+
flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
|
|
3004
|
+
exp: zod.z.number(),
|
|
3005
|
+
customerId: UuidString,
|
|
3006
|
+
verificationMode: VerificationMode,
|
|
3007
|
+
organizationId: OrganizationId,
|
|
3008
|
+
workspaceId: WorkspaceId,
|
|
3009
|
+
workflowId: WorkflowId,
|
|
3010
|
+
ipAddress: zod.z.string().optional(),
|
|
3011
|
+
timestamp: zod.z.number(),
|
|
3012
|
+
iat: zod.z.number(),
|
|
3013
|
+
hosts: zod.z.array(zod.z.string())
|
|
3014
|
+
});
|
|
3015
|
+
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
3016
|
+
flowType: zod.z.literal(FlowType.Values.web3),
|
|
3017
|
+
blockchainAddress: BlockchainAddress,
|
|
3018
|
+
blockchainNamespace: BlockchainNamespace
|
|
3019
|
+
});
|
|
3020
|
+
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
3021
|
+
flowType: zod.z.literal(FlowType.Values.web2),
|
|
3022
|
+
/**
|
|
3023
|
+
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
3024
|
+
* We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
|
|
3025
|
+
*/
|
|
3026
|
+
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
3027
|
+
});
|
|
3028
|
+
var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
3029
|
+
var IdentityWidgetSessionToken = IdentityWidgetAccessToken_NEW;
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* The parameters required to create a new configuration in web2 mode.
|
|
3033
|
+
*/
|
|
3034
|
+
|
|
3035
|
+
var Web2CreateSessionParams = zod.z.object({
|
|
3036
|
+
workflowId: WorkflowId,
|
|
3037
|
+
// required in web2 because we don't have the wallet address
|
|
3038
|
+
externalCustomerId: ExternalCustomerId,
|
|
3039
|
+
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
3040
|
+
});
|
|
3041
|
+
|
|
3042
3042
|
var SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "STELLAR", "CARDANO", "ZCASH", "MONERO", "SOLANA", "POLKADOT", "ICON", "DOGECOIN", "FILECOIN", "ARBITRUMONE", "COSMOS", "ALGORAND", "CELO", "POLYGON", "EOS", "ETHEREUMCLASSIC", "FLOW", "FANTOM", "MOONBEAM", "GROESTLCOIN", "INTERNETCOMPUTERPROTOCOL", "INJECTIVEPROTOCOL", "KUSAMA", "LISK", "TERRACLASSIC", "MOONRIVER", "NEARPROTOCOL", "BITCOINGOLD", "THORCHAIN", "SIACOIN", "ECREDITS", "BITCOINSV", "RADIX", "STACKS", "THETANETWORK", "VECHAIN", "VITE", "ZILLIQA", "NEM", "NEO", "VERGE", "AVALANCHE", "GNOSIS", "APTOS", "BNBBEACONCHAIN", "OPTIMISM", "VENIDIUM", "MULTIVERSX", "HARMONY", "TON", "WEMIX", "CRONOS", "AVALANCHEP-XCHAIN", "SUI", "METIS", "AETERNITY", "COTI", "CASPER", "CONSTELLATION", "ELECTRONEUM", "EVERSCALE", "DECENTRALIZEDPICTURES", "HEDERA", "CIRRUS", "HATHOR", "KADENA", "STRATIS", "IOST", "DIGIBYTE", "KOMODO", "RAVENCOIN", "TELOS", "DIGITALBITS", "NERVOS", "DIVI", "HIVE", "NANO", "XDCNETWORK", "FUSE", "ZKSYNC", "BOBA", "HECO", "PULSECHAIN", "BASE", "HELIUM", "DOGECHAIN", "KASPA", "MANTLE", "SEI", "COMDEX", "FIRO", "ECASH", "XDAG", "RONIN", "KLEVER", "BAHAMUT", "FLARE", "CELESTIA", "BNBOPTIMISTIC", "OSMOSIS", "MANTANETWORK", "CONFLUX", "IOTA", "STARKNET", "PARTISIA", "LINEA", "NIBIRUCHAIN", "DYDXCHAIN", "DYMENSION", "OKB", "POLYGONZKEVM", "LUMIA"];
|
|
3043
3043
|
var NON_MINIMAL_SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "SOLANA", "POLYGON", "AVALANCHE", "BASE", "TON"];
|
|
3044
3044
|
|
|
@@ -3766,6 +3766,12 @@ var WalletScreeningProvider = zod.z["enum"](WalletScreeningProviders);
|
|
|
3766
3766
|
// FIXME:importing SumSubReviewAnswer causes circular dependency
|
|
3767
3767
|
var SUMSUB_REVIEW_ANSWERS = ["GREEN", "RED", "YELLOW"];
|
|
3768
3768
|
var SumSubReviewAnswer = zod.z["enum"](SUMSUB_REVIEW_ANSWERS);
|
|
3769
|
+
var AML_RESULTS = ["AML Hits", "PEP Hits", "Sanction Hits", "Adverse Media"];
|
|
3770
|
+
var AmlResults = zod.z["enum"](AML_RESULTS);
|
|
3771
|
+
var WALLET_SCREENING_RISK_SCORE = ["No Risk", "Low Risk", "Medium Risk", "High Risk", "Critical Risk"];
|
|
3772
|
+
zod.z["enum"](WALLET_SCREENING_RISK_SCORE);
|
|
3773
|
+
var DETECTED_DUPLICATES = ["Duplicate hit"];
|
|
3774
|
+
var DetectedDuplicates = zod.z["enum"](DETECTED_DUPLICATES);
|
|
3769
3775
|
var CustomerZodSchema = zod.z.object({
|
|
3770
3776
|
identityData: zod.z.object({
|
|
3771
3777
|
age: zod.z.number().optional(),
|
|
@@ -3782,17 +3788,10 @@ var CustomerZodSchema = zod.z.object({
|
|
|
3782
3788
|
proofOfResidenceCheckStatus: SumSubReviewAnswer.optional()
|
|
3783
3789
|
}).optional(),
|
|
3784
3790
|
amlScreening: zod.z.object({
|
|
3785
|
-
|
|
3786
|
-
pepHits: zod.z["boolean"]().optional(),
|
|
3787
|
-
sanctionsHits: zod.z["boolean"]().optional(),
|
|
3788
|
-
adverseMediaHits: zod.z["boolean"]().optional(),
|
|
3789
|
-
pepAttribute: zod.z["boolean"]().optional(),
|
|
3790
|
-
sanctionsStatus: zod.z["boolean"]().optional(),
|
|
3791
|
-
adverseMediaStatus: zod.z["boolean"]().optional()
|
|
3791
|
+
amlResults: AmlResults.array().optional()
|
|
3792
3792
|
}).optional(),
|
|
3793
3793
|
duplicates: zod.z.object({
|
|
3794
|
-
|
|
3795
|
-
hasDuplicates: zod.z["boolean"]().optional()
|
|
3794
|
+
detectedDuplicates: DetectedDuplicates.array().optional()
|
|
3796
3795
|
}).optional(),
|
|
3797
3796
|
walletScreening: WalletScreeningData.optional(),
|
|
3798
3797
|
fraudAnalytics: zod.z.object({
|
|
@@ -4389,26 +4388,17 @@ var CustomerJsonSchema = {
|
|
|
4389
4388
|
amlScreening: {
|
|
4390
4389
|
type: "object",
|
|
4391
4390
|
properties: {
|
|
4392
|
-
|
|
4393
|
-
type: "
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
},
|
|
4404
|
-
pepAttribute: {
|
|
4405
|
-
type: "boolean"
|
|
4406
|
-
},
|
|
4407
|
-
sanctionsStatus: {
|
|
4408
|
-
type: "boolean"
|
|
4409
|
-
},
|
|
4410
|
-
adverseMediaStatus: {
|
|
4411
|
-
type: "boolean"
|
|
4391
|
+
amlResults: {
|
|
4392
|
+
type: "array",
|
|
4393
|
+
items: {
|
|
4394
|
+
type: "string",
|
|
4395
|
+
"enum": [
|
|
4396
|
+
"AML Hits",
|
|
4397
|
+
"PEP Hits",
|
|
4398
|
+
"Sanction Hits",
|
|
4399
|
+
"Adverse Media"
|
|
4400
|
+
]
|
|
4401
|
+
}
|
|
4412
4402
|
}
|
|
4413
4403
|
},
|
|
4414
4404
|
additionalProperties: false
|
|
@@ -4416,11 +4406,14 @@ var CustomerJsonSchema = {
|
|
|
4416
4406
|
duplicates: {
|
|
4417
4407
|
type: "object",
|
|
4418
4408
|
properties: {
|
|
4419
|
-
|
|
4420
|
-
type: "
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4409
|
+
detectedDuplicates: {
|
|
4410
|
+
type: "array",
|
|
4411
|
+
items: {
|
|
4412
|
+
type: "string",
|
|
4413
|
+
"enum": [
|
|
4414
|
+
"Duplicate hit"
|
|
4415
|
+
]
|
|
4416
|
+
}
|
|
4424
4417
|
}
|
|
4425
4418
|
},
|
|
4426
4419
|
additionalProperties: false
|
|
@@ -10131,6 +10124,7 @@ exports.AiExecutionPrefix = AiExecutionPrefix;
|
|
|
10131
10124
|
exports.AiExecutionStepId = AiExecutionStepId;
|
|
10132
10125
|
exports.AiExecutionStepPrefix = AiExecutionStepPrefix;
|
|
10133
10126
|
exports.Alpha2Country = Alpha2Country;
|
|
10127
|
+
exports.AmlResults = AmlResults;
|
|
10134
10128
|
exports.AnalysisType = AnalysisType;
|
|
10135
10129
|
exports.AppId = AppId;
|
|
10136
10130
|
exports.AppPrefix = AppPrefix;
|
|
@@ -10183,6 +10177,7 @@ exports.DEFAULT_FIAT_CURRENCY = DEFAULT_FIAT_CURRENCY;
|
|
|
10183
10177
|
exports.DISPLAYED_BLOCKCHAIN_NAMESPACES = DISPLAYED_BLOCKCHAIN_NAMESPACES;
|
|
10184
10178
|
exports.DataLinkTypeZodSchema = DataLinkTypeZodSchema;
|
|
10185
10179
|
exports.DataLinkVersionZodSchema = DataLinkVersionZodSchema;
|
|
10180
|
+
exports.DetectedDuplicates = DetectedDuplicates;
|
|
10186
10181
|
exports.DisplayedBlockchainNamespace = DisplayedBlockchainNamespace;
|
|
10187
10182
|
exports.EIP155Signature = EIP155Signature;
|
|
10188
10183
|
exports.ENVS = ENVS;
|