@nexeraid/identity-schemas 2.66.0-dev → 2.68.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-9db73f74.cjs.dev.cjs → CoinMarketCap.schema-062256d5.cjs.dev.cjs} +26 -201
- package/dist/{CoinMarketCap.schema-2c92523f.cjs.prod.cjs → CoinMarketCap.schema-4d32b137.cjs.prod.cjs} +26 -201
- package/dist/{CoinMarketCap.schema-9200bd52.esm.mjs → CoinMarketCap.schema-7d555c6e.esm.mjs} +5 -166
- package/dist/declarations/src/blockchain/namespaces.schema.d.ts +5 -15
- package/dist/declarations/src/blockchain/namespaces.schema.d.ts.map +1 -1
- package/dist/declarations/src/countries.schema.d.ts +6 -1
- package/dist/declarations/src/countries.schema.d.ts.map +1 -1
- package/dist/declarations/src/customer.schema.d.ts +0 -7
- package/dist/declarations/src/customer.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity-ids.schema.d.ts +6 -18
- package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +1 -0
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/nexeraSSID.schema.d.ts +9 -9
- package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts +24 -24
- package/dist/declarations/src/providers/chainalysis/chainalysis.schema.d.ts +12 -12
- package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts +122 -122
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +12 -12
- package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts +26 -26
- package/dist/declarations/src/providers/provider.schema.d.ts +319 -1243
- package/dist/declarations/src/providers/provider.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/scorechain/allScorechainBlockchains.schema.d.ts +1153 -0
- package/dist/declarations/src/providers/scorechain/allScorechainBlockchains.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +3472 -351
- package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +281 -281
- package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts +10 -10
- package/dist/declarations/src/vault/schemas/generated/Customer.schema.json.d.ts +785 -1
- package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts +16 -1
- package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts.map +1 -1
- package/dist/declarations/src/vault/schemas/generated/Tfhe.schema.json.d.ts +3 -1021
- package/dist/declarations/src/vault/schemas/generated/Tfhe.type.d.ts +2 -68
- package/dist/declarations/src/vault/schemas/generated/Tfhe.type.d.ts.map +1 -1
- package/dist/declarations/src/vault/schemas/generated/TfheKycSession.schema.json.d.ts +1037 -0
- package/dist/declarations/src/vault/schemas/generated/TfheKycSession.type.d.ts +72 -0
- package/dist/declarations/src/vault/schemas/generated/TfheKycSession.type.d.ts.map +1 -0
- package/dist/declarations/src/vault/vault.schema.d.ts +204 -22
- package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
- package/dist/declarations/src/wallet-screening.schema.d.ts +81 -0
- package/dist/declarations/src/wallet-screening.schema.d.ts.map +1 -0
- package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts +3189 -14681
- package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts.map +1 -1
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +4201 -71554
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -1
- package/dist/identity-api.schema-67a3b076.cjs.dev.cjs +1308 -0
- package/dist/identity-api.schema-7286cb84.esm.mjs +1113 -0
- package/dist/identity-api.schema-bcfb353b.cjs.prod.cjs +1308 -0
- package/dist/nexeraid-identity-schemas.cjs.dev.cjs +323 -327
- package/dist/nexeraid-identity-schemas.cjs.prod.cjs +323 -327
- package/dist/nexeraid-identity-schemas.esm.mjs +4 -4
- package/dist/package.json +1 -1
- package/dist/{tfhe-utilities-151f4537.esm.mjs → tfhe-utilities-2056c352.esm.mjs} +2 -2
- package/dist/{tfhe-utilities-8b80d9aa.cjs.dev.cjs → tfhe-utilities-50d48dc2.cjs.dev.cjs} +2 -2
- package/dist/{tfhe-utilities-24730089.cjs.prod.cjs → tfhe-utilities-c1dc8d80.cjs.prod.cjs} +2 -2
- package/dist/{vault.schema-91f2c199.cjs.prod.cjs → vault.schema-33893002.cjs.prod.cjs} +2791 -105
- package/dist/{vault.schema-958064b8.cjs.dev.cjs → vault.schema-3acedc2a.cjs.dev.cjs} +2791 -105
- package/dist/{vault.schema-cc3c5ffc.esm.mjs → vault.schema-7d38c7f1.esm.mjs} +2548 -83
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +3 -3
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +3 -3
- package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +3 -3
- package/package.json +1 -1
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +1190 -18
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +1190 -18
- package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +1158 -5
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +2 -1
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +2 -1
- package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +2 -1
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +4 -4
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +4 -4
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +4 -4
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +34 -58
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +34 -58
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +10 -31
- package/dist/identity-api.schema-60af6079.esm.mjs +0 -1751
- package/dist/identity-api.schema-63ee6cfc.cjs.dev.cjs +0 -2139
- package/dist/identity-api.schema-9119d895.cjs.prod.cjs +0 -2139
|
@@ -1,170 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
|
-
var vault_schema = require('./vault.schema-
|
|
5
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
6
|
-
|
|
7
|
-
// based on https://tech-doc.api.scorechain.com/
|
|
8
|
-
var ANALYSIS_TYPES = ["ASSIGNED", "INCOMING", "OUTGOING", "FULL"];
|
|
9
|
-
var AnalysisType = zod.z["enum"](ANALYSIS_TYPES);
|
|
10
|
-
var OBJECT_TYPES = ["TRANSACTION", "ADDRESS", "WALLET"];
|
|
11
|
-
var ObjectType = zod.z["enum"](OBJECT_TYPES);
|
|
12
|
-
var BLOCKCHAIN_TYPES = ["BITCOIN", "BITCOINCASH", "LITECOIN", "DASH", "ETHEREUM", "RIPPLE", "TEZOS", "TRON", "BSC", "POLYGON", "AVALANCHE", "BASE", "SOLANA"];
|
|
13
|
-
var Blockchain = zod.z["enum"](BLOCKCHAIN_TYPES);
|
|
14
|
-
var Coin = zod.z.union([zod.z.string(), zod.z.literal("MAIN"), zod.z.literal("ALL")]).describe("Coin (Use MAIN according to the docs)");
|
|
15
|
-
var RiskSeverity = zod.z["enum"](["CRITICAL_RISK", "HIGH_RISK", "MEDIUM_RISK", "LOW_RISK", "NO_RISK", "UNDEFINED_RISK"]);
|
|
16
|
-
var EntityType = zod.z["enum"](["ATM", "Airdrop", "Auctioned assets", "Bank", "Block reward", "Bot", "Child abuse", "Cloud mining", "Community reported scam", "Cross-chain Bridge Protocol", "Darkweb", "Decentralized service", "Dex", "Donations", "Exchange", "Gambling", "Hack", "ICO", "Ignored small amounts", "Investment management firm", "Large transaction", "Large unnamed entity", "Mining pool", "Mixing pattern", "Mixing service", "NFT Marketplace", "No entities found", "Ongoing legal action", "Payment Service Provider", "Payment channel", "Peeling chain of unknown origin", "Phishing", "Ransomware", "Real World Asset", "Sanction list", "Scam", "Seized assets", "Service", "Staking pool", "Suspicious", "Terrorism", "Token", "Token burning", "Token minting", "Unspent output", "Wallet",
|
|
17
|
-
// Backward support types
|
|
18
|
-
"OFAC sanction list", "Closed exchange", "Custom group"]);
|
|
19
|
-
var AiItemResult = zod.z.object({
|
|
20
|
-
type: EntityType.optional(),
|
|
21
|
-
percent: zod.z.number()
|
|
22
|
-
});
|
|
23
|
-
var nullishAiDetails = zod.z.object({
|
|
24
|
-
entityTypeClassifier: zod.z.array(AiItemResult)
|
|
25
|
-
}).nullish();
|
|
26
|
-
var EntityMinimal = zod.z.object({
|
|
27
|
-
id: zod.z.number()["int"]().nullish(),
|
|
28
|
-
name: zod.z.string(),
|
|
29
|
-
type: EntityType.optional(),
|
|
30
|
-
referenceAddress: identityApi_schema.BlockchainAddress,
|
|
31
|
-
aiDetails: nullishAiDetails.nullish()
|
|
32
|
-
});
|
|
33
|
-
var LinkedEntity = EntityMinimal;
|
|
34
|
-
var RiskAssessment = zod.z.object({
|
|
35
|
-
score: zod.z.number()["int"]().gte(1).lte(100),
|
|
36
|
-
severity: RiskSeverity
|
|
37
|
-
});
|
|
38
|
-
var CustomRiskAssessment = RiskAssessment;
|
|
39
|
-
var RiskIndicatorType = zod.z["enum"](["ENTITY_TYPE", "ENTITY_COUNTRY", "BEHAVIOR"]);
|
|
40
|
-
var BehavioralType = zod.z["enum"](["Unspent output", "Block reward", "Peeling chain of unknown origin", "Payment channel", "Large unnamed entity", "Ignored small amounts", "Large transaction", "Mixing pattern", "No entities found", "Token minting", "Token burning",
|
|
41
|
-
// Backward support types
|
|
42
|
-
"Maximum exploration depth", "Secondary coin creation", "Secondary coin removal"]);
|
|
43
|
-
var Countries = zod.z.string();
|
|
44
|
-
var RiskIndicatorReference = zod.z.union([EntityType.optional(), BehavioralType.optional(), Countries]);
|
|
45
|
-
var RiskIndicatorThresholdParameters = zod.z.object({
|
|
46
|
-
referenceId: zod.z.number()["int"](),
|
|
47
|
-
referenceName: RiskIndicatorReference.optional(),
|
|
48
|
-
threshold: zod.z.number()["int"]()
|
|
49
|
-
});
|
|
50
|
-
var RiskIndicatorSetting = zod.z.object({
|
|
51
|
-
id: zod.z.number()["int"](),
|
|
52
|
-
type: RiskIndicatorType,
|
|
53
|
-
parameters: RiskIndicatorThresholdParameters
|
|
54
|
-
});
|
|
55
|
-
var AssignedScore = zod.z.object({
|
|
56
|
-
hasResult: zod.z["boolean"](),
|
|
57
|
-
result: zod.z.object({
|
|
58
|
-
score: zod.z.number()["int"]().min(0).max(100),
|
|
59
|
-
severity: RiskSeverity,
|
|
60
|
-
// enum
|
|
61
|
-
details: zod.z.object({
|
|
62
|
-
entity: LinkedEntity.nullish(),
|
|
63
|
-
transaction: zod.z.object({
|
|
64
|
-
type: zod.z["enum"](["MINING", "MIXING", "LIGHTNING", "CROSS_CHAIN"]),
|
|
65
|
-
riskAssessment: RiskAssessment
|
|
66
|
-
}).nullish(),
|
|
67
|
-
customRiskAssessment: CustomRiskAssessment.nullish()
|
|
68
|
-
})
|
|
69
|
-
}).nullish(),
|
|
70
|
-
risks: zod.z.array(RiskIndicatorSetting).nullish()
|
|
71
|
-
});
|
|
72
|
-
var ScoringResultType = zod.z.union([EntityType, BehavioralType]);
|
|
73
|
-
var ScoringItem = zod.z.object({
|
|
74
|
-
referenceAddress: identityApi_schema.BlockchainAddress.nullish(),
|
|
75
|
-
amount: zod.z.number(),
|
|
76
|
-
amountUsd: zod.z.number().nullish(),
|
|
77
|
-
percentage: zod.z.number(),
|
|
78
|
-
name: zod.z.string(),
|
|
79
|
-
type: ScoringResultType.optional(),
|
|
80
|
-
countries: zod.z.array(Countries),
|
|
81
|
-
score: zod.z.number()["int"]().min(0).max(100),
|
|
82
|
-
severity: RiskSeverity,
|
|
83
|
-
aiDetails: nullishAiDetails.nullish()
|
|
84
|
-
});
|
|
85
|
-
var ScoringRiskItem = zod.z.object({
|
|
86
|
-
setting: RiskIndicatorSetting,
|
|
87
|
-
causes: zod.z.array(ScoringItem).nullish()
|
|
88
|
-
});
|
|
89
|
-
var DynamicScore = zod.z.object({
|
|
90
|
-
hasResult: zod.z["boolean"](),
|
|
91
|
-
result: zod.z.object({
|
|
92
|
-
score: zod.z.number()["int"]().min(0).max(100),
|
|
93
|
-
severity: RiskSeverity,
|
|
94
|
-
details: zod.z.array(ScoringItem).nullish(),
|
|
95
|
-
risks: zod.z.array(ScoringRiskItem).nullish()
|
|
96
|
-
}).nullish()
|
|
97
|
-
});
|
|
98
|
-
var WALLET_NOT_FOUND = zod.z.object({
|
|
99
|
-
error: zod.z.literal("NOT_FOUND_WALLET"),
|
|
100
|
-
message: zod.z.string()
|
|
101
|
-
});
|
|
102
|
-
var INVALID_PARAMETER_BLOCKCHAIN = zod.z.object({
|
|
103
|
-
error: zod.z.literal("INVALID_PARAMETER_BLOCKCHAIN"),
|
|
104
|
-
message: zod.z.string()
|
|
105
|
-
});
|
|
106
|
-
var UNAUTHORIZED = zod.z.object({
|
|
107
|
-
error: zod.z.literal("UNAUTHORIZED"),
|
|
108
|
-
message: zod.z.string()
|
|
109
|
-
});
|
|
110
|
-
var FORBIDDEN_LICENSE_LIMIT_REACHED = zod.z.object({
|
|
111
|
-
error: zod.z.literal("FORBIDDEN_LICENSE_LIMIT_REACHED"),
|
|
112
|
-
message: zod.z.string()
|
|
113
|
-
});
|
|
114
|
-
var NOT_FOUND_TRANSACTION = zod.z.object({
|
|
115
|
-
error: zod.z.literal("NOT_FOUND_TRANSACTION"),
|
|
116
|
-
message: zod.z.string()
|
|
117
|
-
});
|
|
118
|
-
var UNPROCESSABLE_GLOBAL_SCORE = zod.z.object({
|
|
119
|
-
error: zod.z.literal("UNPROCESSABLE_GLOBAL_SCORE"),
|
|
120
|
-
message: zod.z.string()
|
|
121
|
-
});
|
|
122
|
-
var SERVER_ERROR = zod.z.object({
|
|
123
|
-
error: zod.z.literal("SERVER_ERROR"),
|
|
124
|
-
message: zod.z.string()
|
|
125
|
-
});
|
|
126
|
-
var UNKNOWN_ERROR$3 = zod.z.object({
|
|
127
|
-
error: zod.z.literal("UNKNOWN_ERROR"),
|
|
128
|
-
message: zod.z.string()
|
|
129
|
-
}).describe("This is a fallback error, if scorechain parser fails");
|
|
130
|
-
var RESULT_PARSER_ERROR$3 = zod.z.object({
|
|
131
|
-
error: zod.z.literal("RESULT_PARSER_ERROR"),
|
|
132
|
-
message: zod.z.string(),
|
|
133
|
-
data: zod.z.string()
|
|
134
|
-
}).describe("This is a fallback error, if zod parse fails on result");
|
|
135
|
-
var ScorechainErrorResponse = zod.z.union([zod.z.discriminatedUnion("error", [WALLET_NOT_FOUND, INVALID_PARAMETER_BLOCKCHAIN, UNAUTHORIZED, FORBIDDEN_LICENSE_LIMIT_REACHED, NOT_FOUND_TRANSACTION, UNPROCESSABLE_GLOBAL_SCORE, SERVER_ERROR, UNKNOWN_ERROR$3, RESULT_PARSER_ERROR$3]), zod.z.object({
|
|
136
|
-
error: zod.z.string(),
|
|
137
|
-
message: zod.z.string()
|
|
138
|
-
})]);
|
|
139
|
-
var ScorechainError = zod.z.object({
|
|
140
|
-
error: ScorechainErrorResponse
|
|
141
|
-
});
|
|
142
|
-
var ScorechainAnalysis = zod.z.object({
|
|
143
|
-
id: zod.z.string().uuid(),
|
|
144
|
-
analysis: zod.z.object({
|
|
145
|
-
assigned: AssignedScore,
|
|
146
|
-
incoming: DynamicScore.nullish(),
|
|
147
|
-
outgoing: DynamicScore.nullish()
|
|
148
|
-
}),
|
|
149
|
-
lowestScore: zod.z.number()["int"]().min(0).max(100)
|
|
150
|
-
});
|
|
151
|
-
var ScoringAnalysisResponse = zod.z.union([ScorechainAnalysis, ScorechainError]);
|
|
152
|
-
var ScoringAnalysisRequest = zod.z.object({
|
|
153
|
-
analysisType: AnalysisType.nullish(),
|
|
154
|
-
objectType: ObjectType.nullish(),
|
|
155
|
-
objectId: zod.z.string().nullish().describe("Address or transaction hash, depending on objectType"),
|
|
156
|
-
blockchain: Blockchain.nullish(),
|
|
157
|
-
coin: Coin.nullish(),
|
|
158
|
-
depth: zod.z.coerce.number()["int"]().gte(1).lte(100).nullish()
|
|
159
|
-
});
|
|
160
|
-
var WorkflowsScoringAnalysisRequest = zod.z.object({
|
|
161
|
-
analysisType: AnalysisType.nullish(),
|
|
162
|
-
objectType: ObjectType.nullish(),
|
|
163
|
-
objectId: zod.z.string().nullish().describe("Address or transaction hash, depending on objectType"),
|
|
164
|
-
blockchain: Blockchain.nullish(),
|
|
165
|
-
coin: Coin["default"]("MAIN"),
|
|
166
|
-
depth: zod.z.coerce.number()["int"]().gte(1).lte(100)["default"](1)
|
|
167
|
-
});
|
|
4
|
+
var vault_schema = require('./vault.schema-33893002.cjs.prod.cjs');
|
|
5
|
+
var identityApi_schema = require('./identity-api.schema-bcfb353b.cjs.prod.cjs');
|
|
168
6
|
|
|
169
7
|
var IpQualityAnalysisRequest = zod.z.object({
|
|
170
8
|
apiKey: zod.z.string().nullish(),
|
|
@@ -1298,7 +1136,7 @@ var TransactionType = zod.z.nativeEnum(transactionType);
|
|
|
1298
1136
|
var MerkleAddressRequest = zod.z.object({
|
|
1299
1137
|
identifier: zod.z.string(),
|
|
1300
1138
|
blockchain: MerkleBlockChainCodes,
|
|
1301
|
-
customer_id:
|
|
1139
|
+
customer_id: vault_schema.UuidString,
|
|
1302
1140
|
type: TransactionType,
|
|
1303
1141
|
show_alerts: zod.z["boolean"]().nullish(),
|
|
1304
1142
|
custom_tags: zod.z.array(zod.z.string()).nullish()
|
|
@@ -1325,7 +1163,7 @@ var MerkleAddressApiResponse = zod.z.object({
|
|
|
1325
1163
|
identifier: zod.z.string().nullish(),
|
|
1326
1164
|
blockchain: BlockChainNumericalCodes.nullish(),
|
|
1327
1165
|
blockchain_verbose: MerkleBlockChainNamesExtended.nullish(),
|
|
1328
|
-
customer_id:
|
|
1166
|
+
customer_id: vault_schema.UuidString.nullish(),
|
|
1329
1167
|
type: zod.z.number().nullish(),
|
|
1330
1168
|
type_verbose: zod.z.string().nullish(),
|
|
1331
1169
|
total_incoming_value: zod.z.string().nullish(),
|
|
@@ -1360,7 +1198,8 @@ var MerkleAddressApiError = zod.z.object({
|
|
|
1360
1198
|
});
|
|
1361
1199
|
var MerkleAddressResponse = zod.z.union([MerkleAddressApiResponse, MerkleAddressApiError]);
|
|
1362
1200
|
|
|
1363
|
-
|
|
1201
|
+
// scorechain and integratedScorechain do have a config but coin and depth field are hidden
|
|
1202
|
+
var ProviderWithoutConfig = ["chainalysis", "scorechain", "integratedScorechain"];
|
|
1364
1203
|
var IdentityProviderOptions = ["nexeraIdSSID", "nexeraIdKYB", "synaps"];
|
|
1365
1204
|
var IdentityProvider = zod.z["enum"](IdentityProviderOptions);
|
|
1366
1205
|
var DataProviderOptions = ["complyAdvantage", "big", "scorechain", "merkleScience", "chainalysis", "ipQualityScore", "integratedComplyAdvantage", "integratedScorechain", "integratedIpqualityscore"];
|
|
@@ -1372,10 +1211,10 @@ var MerkleScienceConfig = zod.z.object({
|
|
|
1372
1211
|
var ChainalysisConfig = ChainalysisRequest.omit({
|
|
1373
1212
|
address: true
|
|
1374
1213
|
});
|
|
1375
|
-
var ScorechainConfig = ScoringAnalysisRequest.omit({
|
|
1214
|
+
var ScorechainConfig = vault_schema.ScoringAnalysisRequest.omit({
|
|
1376
1215
|
objectId: true // objectId is removed, because it is not stored in CMS but rather provided on the fly by the client
|
|
1377
1216
|
});
|
|
1378
|
-
var WorkflowsScorechainConfig = WorkflowsScoringAnalysisRequest.omit({
|
|
1217
|
+
var WorkflowsScorechainConfig = vault_schema.WorkflowsScoringAnalysisRequest.omit({
|
|
1379
1218
|
objectId: true // objectId is removed, because it is not stored in CMS but rather provided on the fly by the client
|
|
1380
1219
|
});
|
|
1381
1220
|
var IpQualityConfig = zod.z.object({
|
|
@@ -2265,18 +2104,18 @@ var EmailVerificationResponse = zod.z.object({
|
|
|
2265
2104
|
verified: zod.z["boolean"]()
|
|
2266
2105
|
});
|
|
2267
2106
|
var SelectKycSessionStep = zod.z.object({
|
|
2268
|
-
id:
|
|
2107
|
+
id: vault_schema.UuidString,
|
|
2269
2108
|
type: KycStep,
|
|
2270
|
-
customerId:
|
|
2271
|
-
kycSessionId:
|
|
2109
|
+
customerId: vault_schema.UuidString,
|
|
2110
|
+
kycSessionId: vault_schema.UuidString,
|
|
2272
2111
|
createdAt: zod.z.coerce.date()
|
|
2273
2112
|
});
|
|
2274
2113
|
var SelectKycSession = zod.z.object({
|
|
2275
|
-
id:
|
|
2276
|
-
customerId:
|
|
2277
|
-
identityId:
|
|
2278
|
-
address:
|
|
2279
|
-
blockchainNamespace:
|
|
2114
|
+
id: vault_schema.UuidString,
|
|
2115
|
+
customerId: vault_schema.UuidString,
|
|
2116
|
+
identityId: vault_schema.IdentityId.nullish(),
|
|
2117
|
+
address: vault_schema.BlockchainAddress.nullish(),
|
|
2118
|
+
blockchainNamespace: vault_schema.BlockchainNamespace.nullish(),
|
|
2280
2119
|
sandboxSimulated: zod.z.coerce["boolean"]().nullish(),
|
|
2281
2120
|
cmsProjectId: zod.z.string(),
|
|
2282
2121
|
result: KycResult.nullish(),
|
|
@@ -2291,9 +2130,9 @@ var SelectKycSession = zod.z.object({
|
|
|
2291
2130
|
updatedAt: zod.z.coerce.date(),
|
|
2292
2131
|
scenarioExecutions: identityApi_schema.SdkVerificationOutput.nullish(),
|
|
2293
2132
|
workflowId: zod.z.string().uuid().nullable(),
|
|
2294
|
-
workflowSessionId:
|
|
2295
|
-
workspaceId:
|
|
2296
|
-
organizationId:
|
|
2133
|
+
workflowSessionId: vault_schema.WorkflowSessionId.nullable(),
|
|
2134
|
+
workspaceId: vault_schema.WorkspaceId.nullish(),
|
|
2135
|
+
organizationId: vault_schema.OrganizationId.nullish()
|
|
2297
2136
|
});
|
|
2298
2137
|
var SelectKycSessionWithCompletedSteps = SelectKycSession.extend({
|
|
2299
2138
|
stepsCompleted: zod.z.array(SelectKycSessionStep)
|
|
@@ -2303,8 +2142,8 @@ var GetKycSessionInput = zod.z.object({
|
|
|
2303
2142
|
});
|
|
2304
2143
|
var GetKycSessionResponse = SelectKycSession.extend({
|
|
2305
2144
|
stepsCompleted: zod.z.array(SelectKycSessionStep),
|
|
2306
|
-
customerStatus:
|
|
2307
|
-
sumSubReviewResult: zod.z.object(
|
|
2145
|
+
customerStatus: identityApi_schema.CustomerStatus.nullish(),
|
|
2146
|
+
sumSubReviewResult: zod.z.object(vault_schema._defineProperty(vault_schema._defineProperty({}, SumSubStep["enum"].IDENTITY, zod.z.array(SumSubReviewRejectLabel)), SumSubStep["enum"].SELFIE, zod.z.array(SumSubReviewRejectLabel))).nullish()
|
|
2308
2147
|
});
|
|
2309
2148
|
var UpdateKycSessionOutput = zod.z.string();
|
|
2310
2149
|
var VideoKycMetaData = zod.z.object({
|
|
@@ -2328,7 +2167,7 @@ var GetCredentialsOutput = zod.z.object({
|
|
|
2328
2167
|
var CustomerContactInformationOutput = zod.z.object({
|
|
2329
2168
|
id: zod.z.string(),
|
|
2330
2169
|
customerId: zod.z.string(),
|
|
2331
|
-
information:
|
|
2170
|
+
information: identityApi_schema.BasicCustomerContactInformation,
|
|
2332
2171
|
createdAt: zod.z.date(),
|
|
2333
2172
|
updatedAt: zod.z.date()
|
|
2334
2173
|
});
|
|
@@ -2377,9 +2216,9 @@ var BeneficiaryVerificationStatus = zod.z.object({
|
|
|
2377
2216
|
});
|
|
2378
2217
|
var BeneficiaryVerificationStatusArray = zod.z.array(BeneficiaryVerificationStatus);
|
|
2379
2218
|
var SelectKybSession = zod.z.object({
|
|
2380
|
-
id:
|
|
2381
|
-
customerId:
|
|
2382
|
-
address:
|
|
2219
|
+
id: vault_schema.UuidString,
|
|
2220
|
+
customerId: vault_schema.UuidString,
|
|
2221
|
+
address: vault_schema.BlockchainAddress.nullish(),
|
|
2383
2222
|
cmsProjectId: zod.z.string(),
|
|
2384
2223
|
result: KybResult.nullish(),
|
|
2385
2224
|
reviewAnswer: SumSubReviewAnswer.nullish(),
|
|
@@ -2519,7 +2358,7 @@ var CoinMarketCapQuote = zod.z.object({
|
|
|
2519
2358
|
price: zod.z.number(),
|
|
2520
2359
|
last_updated: zod.z.coerce.date()
|
|
2521
2360
|
});
|
|
2522
|
-
var CoinMarketCapQuotes = zod.z.object(
|
|
2361
|
+
var CoinMarketCapQuotes = zod.z.object(vault_schema._defineProperty(vault_schema._defineProperty(vault_schema._defineProperty({}, CoinMarketCapFiatId.USD, CoinMarketCapQuote.optional()), CoinMarketCapFiatId.EUR, CoinMarketCapQuote.optional()), CoinMarketCapFiatId.GBP, CoinMarketCapQuote.optional()));
|
|
2523
2362
|
var Result = zod.z.object({
|
|
2524
2363
|
id: zod.z.number(),
|
|
2525
2364
|
name: zod.z.string(),
|
|
@@ -2542,11 +2381,8 @@ var CoinMarketCapApiResponse = zod.z.object({
|
|
|
2542
2381
|
});
|
|
2543
2382
|
|
|
2544
2383
|
exports.AMLMetadata = AMLMetadata;
|
|
2545
|
-
exports.ANALYSIS_TYPES = ANALYSIS_TYPES;
|
|
2546
|
-
exports.AnalysisType = AnalysisType;
|
|
2547
2384
|
exports.ApplicantMemberOfSchema = ApplicantMemberOfSchema;
|
|
2548
2385
|
exports.BENEFICIARY_TYPES = BENEFICIARY_TYPES;
|
|
2549
|
-
exports.BLOCKCHAIN_TYPES = BLOCKCHAIN_TYPES;
|
|
2550
2386
|
exports.BaseApplicantActionSchema = BaseApplicantActionSchema;
|
|
2551
2387
|
exports.BaseProvider = BaseProvider;
|
|
2552
2388
|
exports.BeneficiaryCompanyCustomerClaims = BeneficiaryCompanyCustomerClaims;
|
|
@@ -2566,7 +2402,6 @@ exports.BitRankVerified = BitRankVerified;
|
|
|
2566
2402
|
exports.BitRankVerifiedError = BitRankVerifiedError;
|
|
2567
2403
|
exports.BitRankVerifiedErrorResponse = BitRankVerifiedErrorResponse;
|
|
2568
2404
|
exports.BitRankVerifiedResponse = BitRankVerifiedResponse;
|
|
2569
|
-
exports.Blockchain = Blockchain;
|
|
2570
2405
|
exports.COMPLY_ADVANTAGE_COUNTRY_FIELD_SOURCES = COMPLY_ADVANTAGE_COUNTRY_FIELD_SOURCES;
|
|
2571
2406
|
exports.COMPLY_ADVANTAGE_DATE_OF_BIRTH_FIELD_SOURCES = COMPLY_ADVANTAGE_DATE_OF_BIRTH_FIELD_SOURCES;
|
|
2572
2407
|
exports.COMPLY_ADVANTAGE_NATIONALITY_FIELD_SOURCES = COMPLY_ADVANTAGE_NATIONALITY_FIELD_SOURCES;
|
|
@@ -2583,7 +2418,6 @@ exports.ChainalysisRiskAssessmentApiResponse = ChainalysisRiskAssessmentApiRespo
|
|
|
2583
2418
|
exports.ChainalysisRiskAssessmentResponse = ChainalysisRiskAssessmentResponse;
|
|
2584
2419
|
exports.ChainalysisRiskLevel = ChainalysisRiskLevel;
|
|
2585
2420
|
exports.CoerceDateUTC = CoerceDateUTC;
|
|
2586
|
-
exports.Coin = Coin;
|
|
2587
2421
|
exports.CoinMarketCapApiResponse = CoinMarketCapApiResponse;
|
|
2588
2422
|
exports.CoinMarketCapFiatId = CoinMarketCapFiatId;
|
|
2589
2423
|
exports.CoinMarketCapQuote = CoinMarketCapQuote;
|
|
@@ -2693,8 +2527,6 @@ exports.MerkleScienceProvider = MerkleScienceProvider;
|
|
|
2693
2527
|
exports.NestedSession = NestedSession;
|
|
2694
2528
|
exports.NexeraIdKYBProvider = NexeraIdKYBProvider;
|
|
2695
2529
|
exports.NexeraIdSSIDProvider = NexeraIdSSIDProvider;
|
|
2696
|
-
exports.OBJECT_TYPES = OBJECT_TYPES;
|
|
2697
|
-
exports.ObjectType = ObjectType;
|
|
2698
2530
|
exports.PhoneMetadata = PhoneMetadata;
|
|
2699
2531
|
exports.PhoneVerificationAnalysisResponse = PhoneVerificationAnalysisResponse;
|
|
2700
2532
|
exports.ProofOfAddressDocumentType = ProofOfAddressDocumentType;
|
|
@@ -2713,7 +2545,6 @@ exports.ReasonCodes = ReasonCodes;
|
|
|
2713
2545
|
exports.RequestProperty = RequestProperty;
|
|
2714
2546
|
exports.RiskLevel = RiskLevel;
|
|
2715
2547
|
exports.RiskLevels = RiskLevels;
|
|
2716
|
-
exports.RiskSeverity = RiskSeverity;
|
|
2717
2548
|
exports.SEARCH_FILTER_ADVERSE_MEDIA_TYPE = SEARCH_FILTER_ADVERSE_MEDIA_TYPE;
|
|
2718
2549
|
exports.SEARCH_FILTER_PEP_TYPE = SEARCH_FILTER_PEP_TYPE;
|
|
2719
2550
|
exports.SEARCH_FILTER_SANCTION_TYPE = SEARCH_FILTER_SANCTION_TYPE;
|
|
@@ -2733,13 +2564,8 @@ exports.SUMSUB_REVIEW_REJECT_TYPES = SUMSUB_REVIEW_REJECT_TYPES;
|
|
|
2733
2564
|
exports.SUMSUB_REVIEW_STATUSES = SUMSUB_REVIEW_STATUSES;
|
|
2734
2565
|
exports.SUMSUB_STEPS = SUMSUB_STEPS;
|
|
2735
2566
|
exports.SUMSUB_WEBHOOK_INTERNAL_STATUS = SUMSUB_WEBHOOK_INTERNAL_STATUS;
|
|
2736
|
-
exports.ScorechainAnalysis = ScorechainAnalysis;
|
|
2737
2567
|
exports.ScorechainConfig = ScorechainConfig;
|
|
2738
|
-
exports.ScorechainError = ScorechainError;
|
|
2739
|
-
exports.ScorechainErrorResponse = ScorechainErrorResponse;
|
|
2740
2568
|
exports.ScorechainProvider = ScorechainProvider;
|
|
2741
|
-
exports.ScoringAnalysisRequest = ScoringAnalysisRequest;
|
|
2742
|
-
exports.ScoringAnalysisResponse = ScoringAnalysisResponse;
|
|
2743
2569
|
exports.SearchEntityType = SearchEntityType;
|
|
2744
2570
|
exports.SearchEntityTypes = SearchEntityTypes;
|
|
2745
2571
|
exports.SearchFilterAdverseMediaType = SearchFilterAdverseMediaType;
|
|
@@ -2817,7 +2643,6 @@ exports.WEBHOOK_TYPES = WEBHOOK_TYPES;
|
|
|
2817
2643
|
exports.WebhookPayload = WebhookPayload;
|
|
2818
2644
|
exports.WebhookType = WebhookType;
|
|
2819
2645
|
exports.WorkflowsScorechainConfig = WorkflowsScorechainConfig;
|
|
2820
|
-
exports.WorkflowsScoringAnalysisRequest = WorkflowsScoringAnalysisRequest;
|
|
2821
2646
|
exports.WrappedIpQualityServiceErrorResponse = WrappedIpQualityServiceErrorResponse;
|
|
2822
2647
|
exports.mappingMatchTypeToLabel = mappingMatchTypeToLabel;
|
|
2823
2648
|
exports.typeToHumanReadable = typeToHumanReadable;
|
package/dist/{CoinMarketCap.schema-9200bd52.esm.mjs → CoinMarketCap.schema-7d555c6e.esm.mjs}
RENAMED
|
@@ -1,168 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
// based on https://tech-doc.api.scorechain.com/
|
|
6
|
-
var ANALYSIS_TYPES = ["ASSIGNED", "INCOMING", "OUTGOING", "FULL"];
|
|
7
|
-
var AnalysisType = z["enum"](ANALYSIS_TYPES);
|
|
8
|
-
var OBJECT_TYPES = ["TRANSACTION", "ADDRESS", "WALLET"];
|
|
9
|
-
var ObjectType = z["enum"](OBJECT_TYPES);
|
|
10
|
-
var BLOCKCHAIN_TYPES = ["BITCOIN", "BITCOINCASH", "LITECOIN", "DASH", "ETHEREUM", "RIPPLE", "TEZOS", "TRON", "BSC", "POLYGON", "AVALANCHE", "BASE", "SOLANA"];
|
|
11
|
-
var Blockchain = z["enum"](BLOCKCHAIN_TYPES);
|
|
12
|
-
var Coin = z.union([z.string(), z.literal("MAIN"), z.literal("ALL")]).describe("Coin (Use MAIN according to the docs)");
|
|
13
|
-
var RiskSeverity = z["enum"](["CRITICAL_RISK", "HIGH_RISK", "MEDIUM_RISK", "LOW_RISK", "NO_RISK", "UNDEFINED_RISK"]);
|
|
14
|
-
var EntityType = z["enum"](["ATM", "Airdrop", "Auctioned assets", "Bank", "Block reward", "Bot", "Child abuse", "Cloud mining", "Community reported scam", "Cross-chain Bridge Protocol", "Darkweb", "Decentralized service", "Dex", "Donations", "Exchange", "Gambling", "Hack", "ICO", "Ignored small amounts", "Investment management firm", "Large transaction", "Large unnamed entity", "Mining pool", "Mixing pattern", "Mixing service", "NFT Marketplace", "No entities found", "Ongoing legal action", "Payment Service Provider", "Payment channel", "Peeling chain of unknown origin", "Phishing", "Ransomware", "Real World Asset", "Sanction list", "Scam", "Seized assets", "Service", "Staking pool", "Suspicious", "Terrorism", "Token", "Token burning", "Token minting", "Unspent output", "Wallet",
|
|
15
|
-
// Backward support types
|
|
16
|
-
"OFAC sanction list", "Closed exchange", "Custom group"]);
|
|
17
|
-
var AiItemResult = z.object({
|
|
18
|
-
type: EntityType.optional(),
|
|
19
|
-
percent: z.number()
|
|
20
|
-
});
|
|
21
|
-
var nullishAiDetails = z.object({
|
|
22
|
-
entityTypeClassifier: z.array(AiItemResult)
|
|
23
|
-
}).nullish();
|
|
24
|
-
var EntityMinimal = z.object({
|
|
25
|
-
id: z.number()["int"]().nullish(),
|
|
26
|
-
name: z.string(),
|
|
27
|
-
type: EntityType.optional(),
|
|
28
|
-
referenceAddress: BlockchainAddress,
|
|
29
|
-
aiDetails: nullishAiDetails.nullish()
|
|
30
|
-
});
|
|
31
|
-
var LinkedEntity = EntityMinimal;
|
|
32
|
-
var RiskAssessment = z.object({
|
|
33
|
-
score: z.number()["int"]().gte(1).lte(100),
|
|
34
|
-
severity: RiskSeverity
|
|
35
|
-
});
|
|
36
|
-
var CustomRiskAssessment = RiskAssessment;
|
|
37
|
-
var RiskIndicatorType = z["enum"](["ENTITY_TYPE", "ENTITY_COUNTRY", "BEHAVIOR"]);
|
|
38
|
-
var BehavioralType = z["enum"](["Unspent output", "Block reward", "Peeling chain of unknown origin", "Payment channel", "Large unnamed entity", "Ignored small amounts", "Large transaction", "Mixing pattern", "No entities found", "Token minting", "Token burning",
|
|
39
|
-
// Backward support types
|
|
40
|
-
"Maximum exploration depth", "Secondary coin creation", "Secondary coin removal"]);
|
|
41
|
-
var Countries = z.string();
|
|
42
|
-
var RiskIndicatorReference = z.union([EntityType.optional(), BehavioralType.optional(), Countries]);
|
|
43
|
-
var RiskIndicatorThresholdParameters = z.object({
|
|
44
|
-
referenceId: z.number()["int"](),
|
|
45
|
-
referenceName: RiskIndicatorReference.optional(),
|
|
46
|
-
threshold: z.number()["int"]()
|
|
47
|
-
});
|
|
48
|
-
var RiskIndicatorSetting = z.object({
|
|
49
|
-
id: z.number()["int"](),
|
|
50
|
-
type: RiskIndicatorType,
|
|
51
|
-
parameters: RiskIndicatorThresholdParameters
|
|
52
|
-
});
|
|
53
|
-
var AssignedScore = z.object({
|
|
54
|
-
hasResult: z["boolean"](),
|
|
55
|
-
result: z.object({
|
|
56
|
-
score: z.number()["int"]().min(0).max(100),
|
|
57
|
-
severity: RiskSeverity,
|
|
58
|
-
// enum
|
|
59
|
-
details: z.object({
|
|
60
|
-
entity: LinkedEntity.nullish(),
|
|
61
|
-
transaction: z.object({
|
|
62
|
-
type: z["enum"](["MINING", "MIXING", "LIGHTNING", "CROSS_CHAIN"]),
|
|
63
|
-
riskAssessment: RiskAssessment
|
|
64
|
-
}).nullish(),
|
|
65
|
-
customRiskAssessment: CustomRiskAssessment.nullish()
|
|
66
|
-
})
|
|
67
|
-
}).nullish(),
|
|
68
|
-
risks: z.array(RiskIndicatorSetting).nullish()
|
|
69
|
-
});
|
|
70
|
-
var ScoringResultType = z.union([EntityType, BehavioralType]);
|
|
71
|
-
var ScoringItem = z.object({
|
|
72
|
-
referenceAddress: BlockchainAddress.nullish(),
|
|
73
|
-
amount: z.number(),
|
|
74
|
-
amountUsd: z.number().nullish(),
|
|
75
|
-
percentage: z.number(),
|
|
76
|
-
name: z.string(),
|
|
77
|
-
type: ScoringResultType.optional(),
|
|
78
|
-
countries: z.array(Countries),
|
|
79
|
-
score: z.number()["int"]().min(0).max(100),
|
|
80
|
-
severity: RiskSeverity,
|
|
81
|
-
aiDetails: nullishAiDetails.nullish()
|
|
82
|
-
});
|
|
83
|
-
var ScoringRiskItem = z.object({
|
|
84
|
-
setting: RiskIndicatorSetting,
|
|
85
|
-
causes: z.array(ScoringItem).nullish()
|
|
86
|
-
});
|
|
87
|
-
var DynamicScore = z.object({
|
|
88
|
-
hasResult: z["boolean"](),
|
|
89
|
-
result: z.object({
|
|
90
|
-
score: z.number()["int"]().min(0).max(100),
|
|
91
|
-
severity: RiskSeverity,
|
|
92
|
-
details: z.array(ScoringItem).nullish(),
|
|
93
|
-
risks: z.array(ScoringRiskItem).nullish()
|
|
94
|
-
}).nullish()
|
|
95
|
-
});
|
|
96
|
-
var WALLET_NOT_FOUND = z.object({
|
|
97
|
-
error: z.literal("NOT_FOUND_WALLET"),
|
|
98
|
-
message: z.string()
|
|
99
|
-
});
|
|
100
|
-
var INVALID_PARAMETER_BLOCKCHAIN = z.object({
|
|
101
|
-
error: z.literal("INVALID_PARAMETER_BLOCKCHAIN"),
|
|
102
|
-
message: z.string()
|
|
103
|
-
});
|
|
104
|
-
var UNAUTHORIZED = z.object({
|
|
105
|
-
error: z.literal("UNAUTHORIZED"),
|
|
106
|
-
message: z.string()
|
|
107
|
-
});
|
|
108
|
-
var FORBIDDEN_LICENSE_LIMIT_REACHED = z.object({
|
|
109
|
-
error: z.literal("FORBIDDEN_LICENSE_LIMIT_REACHED"),
|
|
110
|
-
message: z.string()
|
|
111
|
-
});
|
|
112
|
-
var NOT_FOUND_TRANSACTION = z.object({
|
|
113
|
-
error: z.literal("NOT_FOUND_TRANSACTION"),
|
|
114
|
-
message: z.string()
|
|
115
|
-
});
|
|
116
|
-
var UNPROCESSABLE_GLOBAL_SCORE = z.object({
|
|
117
|
-
error: z.literal("UNPROCESSABLE_GLOBAL_SCORE"),
|
|
118
|
-
message: z.string()
|
|
119
|
-
});
|
|
120
|
-
var SERVER_ERROR = z.object({
|
|
121
|
-
error: z.literal("SERVER_ERROR"),
|
|
122
|
-
message: z.string()
|
|
123
|
-
});
|
|
124
|
-
var UNKNOWN_ERROR$3 = z.object({
|
|
125
|
-
error: z.literal("UNKNOWN_ERROR"),
|
|
126
|
-
message: z.string()
|
|
127
|
-
}).describe("This is a fallback error, if scorechain parser fails");
|
|
128
|
-
var RESULT_PARSER_ERROR$3 = z.object({
|
|
129
|
-
error: z.literal("RESULT_PARSER_ERROR"),
|
|
130
|
-
message: z.string(),
|
|
131
|
-
data: z.string()
|
|
132
|
-
}).describe("This is a fallback error, if zod parse fails on result");
|
|
133
|
-
var ScorechainErrorResponse = z.union([z.discriminatedUnion("error", [WALLET_NOT_FOUND, INVALID_PARAMETER_BLOCKCHAIN, UNAUTHORIZED, FORBIDDEN_LICENSE_LIMIT_REACHED, NOT_FOUND_TRANSACTION, UNPROCESSABLE_GLOBAL_SCORE, SERVER_ERROR, UNKNOWN_ERROR$3, RESULT_PARSER_ERROR$3]), z.object({
|
|
134
|
-
error: z.string(),
|
|
135
|
-
message: z.string()
|
|
136
|
-
})]);
|
|
137
|
-
var ScorechainError = z.object({
|
|
138
|
-
error: ScorechainErrorResponse
|
|
139
|
-
});
|
|
140
|
-
var ScorechainAnalysis = z.object({
|
|
141
|
-
id: z.string().uuid(),
|
|
142
|
-
analysis: z.object({
|
|
143
|
-
assigned: AssignedScore,
|
|
144
|
-
incoming: DynamicScore.nullish(),
|
|
145
|
-
outgoing: DynamicScore.nullish()
|
|
146
|
-
}),
|
|
147
|
-
lowestScore: z.number()["int"]().min(0).max(100)
|
|
148
|
-
});
|
|
149
|
-
var ScoringAnalysisResponse = z.union([ScorechainAnalysis, ScorechainError]);
|
|
150
|
-
var ScoringAnalysisRequest = z.object({
|
|
151
|
-
analysisType: AnalysisType.nullish(),
|
|
152
|
-
objectType: ObjectType.nullish(),
|
|
153
|
-
objectId: z.string().nullish().describe("Address or transaction hash, depending on objectType"),
|
|
154
|
-
blockchain: Blockchain.nullish(),
|
|
155
|
-
coin: Coin.nullish(),
|
|
156
|
-
depth: z.coerce.number()["int"]().gte(1).lte(100).nullish()
|
|
157
|
-
});
|
|
158
|
-
var WorkflowsScoringAnalysisRequest = z.object({
|
|
159
|
-
analysisType: AnalysisType.nullish(),
|
|
160
|
-
objectType: ObjectType.nullish(),
|
|
161
|
-
objectId: z.string().nullish().describe("Address or transaction hash, depending on objectType"),
|
|
162
|
-
blockchain: Blockchain.nullish(),
|
|
163
|
-
coin: Coin["default"]("MAIN"),
|
|
164
|
-
depth: z.coerce.number()["int"]().gte(1).lte(100)["default"](1)
|
|
165
|
-
});
|
|
2
|
+
import { b0 as Alpha2Country, aS as UuidString, dW as _toConsumableArray, dY as ScoringAnalysisRequest, dZ as WorkflowsScoringAnalysisRequest, a_ as ISO3CountryCode, d_ as _slicedToArray, bJ as IdentityId, ar as BlockchainAddress, av as BlockchainNamespace, bG as WorkflowSessionId, cs as WorkspaceId, cr as OrganizationId, dV as _defineProperty, cO as ProofOfResidenceCredentialSubjectSchema } from './vault.schema-7d38c7f1.esm.mjs';
|
|
3
|
+
import { a7 as SdkVerificationOutput, j as CustomerStatus, b0 as QrCodeLinkWithSchemaType, B as BasicCustomerContactInformation, c9 as CredentialType } from './identity-api.schema-7286cb84.esm.mjs';
|
|
166
4
|
|
|
167
5
|
var IpQualityAnalysisRequest = z.object({
|
|
168
6
|
apiKey: z.string().nullish(),
|
|
@@ -1358,7 +1196,8 @@ var MerkleAddressApiError = z.object({
|
|
|
1358
1196
|
});
|
|
1359
1197
|
var MerkleAddressResponse = z.union([MerkleAddressApiResponse, MerkleAddressApiError]);
|
|
1360
1198
|
|
|
1361
|
-
|
|
1199
|
+
// scorechain and integratedScorechain do have a config but coin and depth field are hidden
|
|
1200
|
+
var ProviderWithoutConfig = ["chainalysis", "scorechain", "integratedScorechain"];
|
|
1362
1201
|
var IdentityProviderOptions = ["nexeraIdSSID", "nexeraIdKYB", "synaps"];
|
|
1363
1202
|
var IdentityProvider = z["enum"](IdentityProviderOptions);
|
|
1364
1203
|
var DataProviderOptions = ["complyAdvantage", "big", "scorechain", "merkleScience", "chainalysis", "ipQualityScore", "integratedComplyAdvantage", "integratedScorechain", "integratedIpqualityscore"];
|
|
@@ -2539,4 +2378,4 @@ var CoinMarketCapApiResponse = z.object({
|
|
|
2539
2378
|
status: Status
|
|
2540
2379
|
});
|
|
2541
2380
|
|
|
2542
|
-
export {
|
|
2381
|
+
export { SynapsSessionResponse as $, ProofOfAddressDocumentType as A, BigCryptoChain as B, ComplyAdvantageSearchResponse as C, DocumentIdTypes as D, EmailVerificationAnalysisResponse as E, File as F, ProofOfAddressMetadata as G, PhoneMetadata as H, IpQualityServiceAnalysisResponse as I, EmailMetadata as J, AMLMetadata as K, LivenessMetadata as L, MergedProviders as M, NestedSession as N, Step as O, PhoneVerificationAnalysisResponse as P, SynapsSessionEvent as Q, RequestProperty as R, Statuses as S, SynapsStepEvent as T, typeToHumanReadable as U, SynapsSessionRequest as V, WrappedIpQualityServiceErrorResponse as W, SESSION_NOT_FOUND as X, UNKNOWN_ERROR as Y, RESULT_PARSER_ERROR as Z, SynapsSessionErrorResponse as _, ComplyAdvantageSearchErrorResponse as a, ChainalysisConfig as a$, SynapsStepRequest as a0, STEP_NOT_FOUND as a1, SynapsStepErrorResponse as a2, SynapsStepResponse as a3, CoerceDateUTC as a4, SEARCH_FILTER_SANCTION_TYPE as a5, SearchFilterSanctionType as a6, SEARCH_FILTER_PEP_TYPE as a7, SearchFilterPepType as a8, SEARCH_FILTER_ADVERSE_MEDIA_TYPE as a9, ComplyAdvantageUser as aA, MatchTypeDetail as aB, ComplyAdvantageMedia as aC, ComplyAdvantageSearchDataResponseHit as aD, ComplyAdvantageSearchDataResponse as aE, ComplyAdvantageKeyInformation as aF, ComplyAdvantageAmlItemSource as aG, ComplyAdvantageAmlFullListing as aH, ComplyAdvantageSearchEntitiesDataResponse as aI, ComplyAdvantageSearchEntitiesSuccessResponse as aJ, ComplyAdvantageSearchEntitiesResponse as aK, ComplyAdvantageSearchRequest as aL, ComplyAdvantageSearchRequests as aM, ComplyAdvantageUpdateSearchRequest as aN, ComplyAdvantageUpdateSearchEntitiesRequest as aO, ComplyAdvantageUpdateSearchEntitiesSuccessResponse as aP, ComplyAdvantageUpdateSearchEntitiesResponse as aQ, ComplyAdvantageMonitorSearchDataResponse as aR, ComplyAdvantageMonitorSearchSuccessResponse as aS, ComplyAdvantageMonitorSearchResponse as aT, ComplyAdvantageMonitoredSearchUpdate as aU, ProviderWithoutConfig as aV, IdentityProviderOptions as aW, IdentityProvider as aX, DataProviderOptions as aY, DataProvider as aZ, MerkleScienceConfig as a_, SearchFilterAdverseMediaType as aa, HIGH_RISK_TYPES as ab, MEDIUM_RISK_TYPES as ac, COMPLY_ADVANTAGE_RESPONSE_MATCH_TYPE as ad, ComplyAdvantageResponseMatchType as ae, mappingMatchTypeToLabel as af, COMPLY_ADVANTAGE_RESPONSE_MATCH_STATUS as ag, ComplyAdvantageReponseMatchStatus as ah, SEARCH_FILTER_TYPES as ai, SearchFilterType as aj, SearchEntityTypes as ak, SearchEntityType as al, SearchFilters as am, COMPLY_ADVANTAGE_NATIONALITY_FIELD_SOURCES as an, ComplyAdvantageNationalityFieldSources as ao, COMPLY_ADVANTAGE_COUNTRY_FIELD_SOURCES as ap, ComplyAdvantageCountryFieldSources as aq, COMPLY_ADVANTAGE_DATE_OF_BIRTH_FIELD_SOURCES as ar, ComplyAdvantageDateOfBirthFieldSources as as, CreateSearchInput as at, MatchStatuses as au, MatchStatus as av, RiskLevels as aw, RiskLevel as ax, UpdateSearchInput as ay, UpdateSearchEntitiesInput as az, ComplyAdvantageSearchSuccessResponse as b, SumsubApplicantTypes as b$, ScorechainConfig as b0, WorkflowsScorechainConfig as b1, IpQualityConfig as b2, BigConfig as b3, ProviderIntegrationTypeOptions as b4, ProviderIntegrationType as b5, BaseProvider as b6, NexeraIdSSIDProvider as b7, NexeraIdKYBProvider as b8, BigProvider as b9, SumSubStep as bA, SUMSUB_APPLICANT_TYPES as bB, SumSubApplicantType as bC, SUMSUB_REVIEW_ANSWERS as bD, SumSubReviewAnswer as bE, SUMSUB_REVIEW_REJECT_TYPES as bF, SumSubReviewRejectType as bG, SumSubAddress as bH, SumSubApplicantInfo as bI, INDIVIDUAL_BENEFICIARY_RELATIONS as bJ, IndividualBeneficiaryRelation as bK, BENEFICIARY_TYPES as bL, BeneficiaryType as bM, BeneficiaryCompanyCustomerClaims as bN, BeneficiaryCompanyCustomerClaimsArray as bO, SumSubCompanyApplicantInfo as bP, SUMSUB_WEBHOOK_INTERNAL_STATUS as bQ, SumsubWebhookInternalStatus as bR, SUMSUB_REVIEW_STATUSES as bS, SumSubReviewStatus as bT, SUMSUB_DOC_TYPES as bU, SumSubDocType as bV, SUMSUB_FLOW_LEVEL as bW, SumSubFlowLevel as bX, SumSubRequiredIdDoc as bY, SumSubReviewResultSchema as bZ, SumSubImageReviewResultSchema as b_, ScorechainProvider as ba, MerkleScienceProvider as bb, ChainalysisProvider as bc, IpqualityscoreProvider as bd, ComplyAdvantageProviderConfigTypes as be, ComplyAdvantageProviderConfigFilters as bf, ComplyAdvantageProviderConfigElement as bg, ComplyAdvantageProvider as bh, SynapsProvider as bi, ProviderData as bj, ProviderDataProject as bk, GetProvidersResponse as bl, GetProviderResponse as bm, CreateProviderInput as bn, CreateProviderResponse as bo, UpdateProviderInput as bp, UpdateProviderResponse as bq, ToggleProviderInput as br, DeleteProviderInput as bs, DeleteProviderResponse as bt, WEBHOOK_TYPES as bu, WebhookType as bv, ApplicantMemberOfSchema as bw, SumSubWebhookSchema as bx, BaseApplicantActionSchema as by, SUMSUB_STEPS as bz, IpQualityAnalysisRequest as c, CustomerStatusResults as c$, SumsubApplicantType as c0, SumSubIndividualApplicantSchema as c1, SumSubCompanyApplicantSchema as c2, SumSubImageId as c3, SUMSUB_COMPANY_BENEFICIARY_GROUP as c4, SumsubCompanyBeneficiaryGroup as c5, SumsubStepStatus as c6, SumSubVerificationStepSchema as c7, SumSubApplicantVerificationStepSchema as c8, SUMSUB_MEDIA_CONTENT_TYPES as c9, SelectKycSessionStep as cA, SelectKycSession as cB, SelectKycSessionWithCompletedSteps as cC, GetKycSessionInput as cD, GetKycSessionResponse as cE, UpdateKycSessionOutput as cF, VideoKycMetaData as cG, ProofOfResidenceMetaData as cH, ProofOfResidenceDocumentType as cI, GetCredentialsOutput as cJ, CustomerContactInformationOutput as cK, CredentialMetadata as cL, GetKycSessionResponseWithCredentialsMetadata as cM, KYB_STEP_TYPES as cN, KybStep as cO, KYB_RESULTS as cP, KybResult as cQ, KYB_SESSION_STATUSES as cR, KybSessionStatus as cS, CompanyDocumentMetaData as cT, BeneficiaryVerificationStatus as cU, BeneficiaryVerificationStatusArray as cV, SelectKybSession as cW, GetKybSessionInput as cX, GetKybSessionResponse as cY, UpdateKybSessionOutput as cZ, CustomerDocumentMetaData as c_, SumSubMediaContentType as ca, DocumentMetadataSchema as cb, SumSubApplicantReviewStatusSchema as cc, SumSubApplicantResetSchema as cd, SumSubGenerateExternalWebSdkLinkSchema as ce, SumsubVideoCallData as cf, SumsubKycDataSchema as cg, SumsubKybDataSchema as ch, SumSubApplicantSchema as ci, SUMSUB_KYB_SESSION_FLOW_SECTION_STATUS as cj, SumsubKybSessionFlowSectionStatus as ck, SumsubKybSessionFlowSectionItem as cl, SumsubKybSessionFlowSection as cm, SumSubSimilarApplicantsSchema as cn, SUMSUB_REVIEW_REJECT_LABELS as co, SumSubReviewRejectLabel as cp, SUMSUB_REVIEW_REJECT_LABELS_DESCRIPTION as cq, KYC_STEP_TYPES as cr, KycStep as cs, KycStepStatuses as ct, KycStepStatus as cu, KYC_RESULTS as cv, KycResult as cw, KYC_SESSION_STATUSES as cx, KycSessionStatus as cy, EmailVerificationResponse as cz, IpQualityAnalysisResponse as d, MerkleBlockChainTypes as d0, MerkleBlockChainName as d1, MerkleBlockChainCodes as d2, MerkleAddressRequest as d3, MerkleAddressApiResponse as d4, MerkleAddressApiError as d5, MerkleAddressResponse as d6, ChainalysisRequest as d7, ChainalysisRegisterApiResponse as d8, ChainalysisRiskLevel as d9, ChainalysisErrorCodes as da, ChainalysisRiskAssessmentApiResponse as db, ChainalysisApiError as dc, ChainalysisRegisterResponse as dd, ChainalysisRiskAssessmentResponse as de, CoinMarketCapRequest as df, CoinMarketCapQuote as dg, CoinMarketCapQuotes as dh, CoinMarketCapApiResponse as di, CoinMarketCapFiatId as dj, IpQualityServiceAnalysis as e, IpQualityServiceErrorResponse as f, BigPropertiesLiteral as g, BigProperties as h, BigProperty as i, BigCSErrorCodes as j, BitRankRequest as k, BitRankVerified as l, BitRankVerifiedErrorResponse as m, BitRankVerifiedError as n, BitRankVerifiedResponse as o, Status$2 as p, WebhookPayload as q, Session as r, SessionWithoutSteps as s, StepTypes as t, StepType as u, ReasonCodes as v, ReasonCode as w, DocumentIdType as x, DocumentIdMetadata as y, ProofOfAddressDocumentTypes as z };
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const BLOCKCHAIN_NAMESPACES: readonly ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano", "
|
|
3
|
-
export declare const BlockchainNamespace: z.ZodEnum<["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano", "
|
|
2
|
+
export declare const BLOCKCHAIN_NAMESPACES: readonly ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano", "bip122", "xrpl", "dash", "tron", "avax"];
|
|
3
|
+
export declare const BlockchainNamespace: z.ZodEnum<["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano", "bip122", "xrpl", "dash", "tron", "avax"]>;
|
|
4
4
|
export type BlockchainNamespace = z.infer<typeof BlockchainNamespace>;
|
|
5
5
|
export declare const SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH: readonly ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
|
|
6
6
|
export declare const SupportedBlockchainNamespaceForSignatureAuth: z.ZodEnum<["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"]>;
|
|
7
7
|
export type SupportedBlockchainNamespaceForSignatureAuth = z.infer<typeof SupportedBlockchainNamespaceForSignatureAuth>;
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
readonly eip155: "EVM";
|
|
11
|
-
readonly aptos: "Aptos";
|
|
12
|
-
readonly polkadot: "Polkadot";
|
|
13
|
-
readonly starknet: "Starknet";
|
|
14
|
-
readonly cosmos: "Cosmos";
|
|
15
|
-
readonly solana: "Solana";
|
|
16
|
-
readonly cardano: "Cardano";
|
|
17
|
-
readonly bitcoin: "Bitcoin";
|
|
18
|
-
};
|
|
19
|
-
export declare const DISPLAYED_BLOCKCHAIN_NAMESPACES: readonly ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano", "Bitcoin"];
|
|
20
|
-
export declare const DisplayedBlockchainNamespace: z.ZodEnum<["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano", "Bitcoin"]>;
|
|
8
|
+
export declare const DISPLAYED_BLOCKCHAIN_NAMESPACES: readonly ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano", "Bitcoin", "XRP Ledger", "Dash", "Tron", "Avalanche"];
|
|
9
|
+
export declare const DisplayedBlockchainNamespace: z.ZodEnum<["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano", "Bitcoin", "XRP Ledger", "Dash", "Tron", "Avalanche"]>;
|
|
21
10
|
export type DisplayedBlockchainNamespace = z.infer<typeof DisplayedBlockchainNamespace>;
|
|
22
11
|
export declare const BLOCKCHAIN_NAME_TO_NAMESPACE: Record<DisplayedBlockchainNamespace, BlockchainNamespace>;
|
|
23
12
|
export declare const BLOCKCHAIN_NAMESPACE_TO_NAME: Record<BlockchainNamespace, DisplayedBlockchainNamespace>;
|
|
13
|
+
export declare const BLOCKCHAIN_NAMESPACE_TO_ADDRESS_URL: Record<BlockchainNamespace, string>;
|
|
24
14
|
//# sourceMappingURL=namespaces.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.schema.d.ts","sourceRoot":"../../../../src/blockchain","sources":["namespaces.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"namespaces.schema.d.ts","sourceRoot":"../../../../src/blockchain","sources":["namespaces.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,wIAcxB,CAAC;AACX,eAAO,MAAM,mBAAmB,0IAAgC,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,eAAO,MAAM,kDAAkD,8FASrD,CAAC;AACX,eAAO,MAAM,4CAA4C,gGAExD,CAAC;AACF,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAChE,OAAO,4CAA4C,CACpD,CAAC;AAEF,eAAO,MAAM,+BAA+B,iJAclC,CAAC;AACX,eAAO,MAAM,4BAA4B,mJAExC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,4BAA4B,EAC5B,mBAAmB,CAepB,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,mBAAmB,EACnB,4BAA4B,CAe7B,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,MAAM,CACtD,mBAAmB,EACnB,MAAM,CAeP,CAAC"}
|