@nexeraid/identity-schemas 2.225.0 → 2.226.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/declarations/src/providers/index.d.ts +1 -0
- package/dist/declarations/src/providers/index.d.ts.map +1 -1
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +37 -0
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/provider.schema.d.ts +25 -25
- package/dist/declarations/src/providers/provider.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/veriff/index.d.ts +5 -0
- package/dist/declarations/src/providers/veriff/index.d.ts.map +1 -0
- package/dist/declarations/src/providers/veriff/veriff-decision.schema.d.ts +8 -0
- package/dist/declarations/src/providers/veriff/veriff-decision.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/veriff/veriff-session.schema.d.ts +192 -0
- package/dist/declarations/src/providers/veriff/veriff-session.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/veriff/veriff-watchlist.schema.d.ts +2400 -0
- package/dist/declarations/src/providers/veriff/veriff-watchlist.schema.d.ts.map +1 -0
- package/dist/declarations/src/providers/veriff/veriff-webhook.schema.d.ts +655 -0
- package/dist/declarations/src/providers/veriff/veriff-webhook.schema.d.ts.map +1 -0
- package/dist/nexeraid-identity-schemas.cjs.dev.cjs +2 -2
- package/dist/nexeraid-identity-schemas.cjs.prod.cjs +2 -2
- package/dist/nexeraid-identity-schemas.esm.mjs +1 -1
- package/dist/package.json +1 -1
- package/dist/{notabene.schema-a795a036.esm.mjs → veriff-webhook.schema-126f3aa3.esm.mjs} +162 -3
- package/dist/{notabene.schema-e5c798ca.cjs.dev.cjs → veriff-webhook.schema-23d9f688.cjs.dev.cjs} +180 -2
- package/dist/{notabene.schema-cf723922.cjs.prod.cjs → veriff-webhook.schema-afbdfa40.cjs.prod.cjs} +180 -2
- package/package.json +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +345 -326
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +345 -326
- package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +1 -1
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +13 -13
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +13 -13
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"veriff-webhook.schema.d.ts","sourceRoot":"../../../../../src/providers/veriff","sources":["veriff-webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;gCAUT,CAAC;AACjB,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;gCAQX,CAAC;AACjB,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;gCAUf,CAAC;AACjB,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA2BlB,CAAC;AACjB,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@ var z = require('zod');
|
|
|
7
7
|
var identityApi_schema = require('./identity-api.schema-ece7b90d.cjs.dev.cjs');
|
|
8
8
|
var tfheUtilities = require('./tfhe-utilities-240124a9.cjs.dev.cjs');
|
|
9
9
|
var vault_dist_nexeraidIdentitySchemasVault = require('../vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs');
|
|
10
|
-
var
|
|
10
|
+
var veriffWebhook_schema = require('./veriff-webhook.schema-23d9f688.cjs.dev.cjs');
|
|
11
11
|
require('nanoid');
|
|
12
12
|
require('decimal.js');
|
|
13
13
|
require('crypto');
|
|
@@ -94,7 +94,7 @@ var AwsWebhookInput = z.z.object({
|
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
var TravelRuleData = z.z.object({
|
|
97
|
-
status:
|
|
97
|
+
status: veriffWebhook_schema.NotabeneTxCreateStatus.optional()
|
|
98
98
|
});
|
|
99
99
|
var TRAVEL_RULE_PROVIDERS = ["notabene"];
|
|
100
100
|
var TravelRuleProviders = z.z["enum"](TRAVEL_RULE_PROVIDERS);
|
|
@@ -7,7 +7,7 @@ var z = require('zod');
|
|
|
7
7
|
var identityApi_schema = require('./identity-api.schema-f9009dc7.cjs.prod.cjs');
|
|
8
8
|
var tfheUtilities = require('./tfhe-utilities-d8962a49.cjs.prod.cjs');
|
|
9
9
|
var vault_dist_nexeraidIdentitySchemasVault = require('../vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs');
|
|
10
|
-
var
|
|
10
|
+
var veriffWebhook_schema = require('./veriff-webhook.schema-afbdfa40.cjs.prod.cjs');
|
|
11
11
|
require('nanoid');
|
|
12
12
|
require('decimal.js');
|
|
13
13
|
require('crypto');
|
|
@@ -94,7 +94,7 @@ var AwsWebhookInput = z.z.object({
|
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
var TravelRuleData = z.z.object({
|
|
97
|
-
status:
|
|
97
|
+
status: veriffWebhook_schema.NotabeneTxCreateStatus.optional()
|
|
98
98
|
});
|
|
99
99
|
var TRAVEL_RULE_PROVIDERS = ["notabene"];
|
|
100
100
|
var TravelRuleProviders = z.z["enum"](TRAVEL_RULE_PROVIDERS);
|
|
@@ -5,7 +5,7 @@ import { C as CredentialTypes } from './identity-api.schema-f69c9758.esm.mjs';
|
|
|
5
5
|
export { v as ACTION_STATUSES, t as ACTION_TRIGGERS, b8 as ARRAY_OPERATORS, aM as AUTHORIZATION_REQUEST_MESSAGE_TYPES, A as AVAILABLE_FLOWS, a4 as AbbreviatedWorkflowScenario, a2 as Action, w as ActionStatus, u as ActionTrigger, s as ActionType, x as ActionValue, bo as AllCredentialValues, c4 as AllScenarioExecutionAuthorizationData, bY as AnyTxAuthDataSignatureResponse, b$ as AnyTxAuthInputJsSdk, bR as ApiTezosTxAuthInput, bL as ApiTxAuthInput, b9 as ArrayOperator, aU as AuthQrCodeData, ap as AuthSession, ar as AuthSessionData, aP as AuthorizationRequestMessage, aO as AuthorizationRequestMessageType, aN as AuthorizationRequestMessageTypes, aS as AuthorizationResponseMessage, n as AvailableFlow, be as BOOLEAN_OPERATORS, M as BackwardsCompatibleScenarioType, L as BackwardsCompatibleScenarioTypes, N as BaseQueryResponse, bf as BooleanOperator, aJ as CIRCUIT_IDS, bz as ChallengeQuerySchema, as as ChallengeResponse, aK as CircuitId, b as CloseScreenNotification, a7 as ComplianceImplementationStepsInput, c3 as CreateAuthRequestProps, a6 as CreateTemplateScenario, cf as CredentialMediaType, ca as CredentialNames, aT as CredentialQrCodeData, c9 as CredentialSchemas, cd as CredentialType, C as CredentialTypes, bg as DATE_OPERATORS, bi as DISPLAY_MODE, D as DataAvailableOnStart, bh as DateOperator, bj as DisplayMode, bZ as Eip155TxAuthInputJsSdk, U as ExecuteQueryResponse, bX as ExtendedTezosTxAuthDataSignatureResponse, bV as ExtendedTezosTxAuthInput, bW as ExtendedTxAuthDataSignatureResponse, bU as ExtendedTxAuthInput, ao as GenerateWalletChallengeRequest, a9 as GetCredentialsRequest, aa as GetCredentialsResponse, av as GetCustomerStatusRequest, aA as GetCustomerStatusResponse, bT as GetTezosTxAuthDataSignatureResponse, bO as GetTxAuthDataSignatureFailureResponse, bP as GetTxAuthDataSignatureResponse, bN as GetTxAuthDataSignatureSuccessResponse, ai as GetTxAuthSigRequest, ak as GetTxAuthSigRequestTezos, aj as GetTxAuthSigResponse, al as GetTxAuthSigResponseTezos, aD as HostMessage, am as HostRequestMessage, H as HostResponseMessage, bn as IDInformationTfhe, aB as IdentityAppMessage, aE as IdentityMessage, i as IdentityNotificationMessage, m as IdentityRequestMessage, an as IdentityResponseMessage, aw as IdentitySdkMessage, ax as IdentitySdkMessageWithIdentifier, aC as IdentityWallet, j as InitialDataRequest, o as InitialDataResponse, I as IsVerifiedNotification, ag as IsVerifiedRequest, ah as IsVerifiedResponse, K as KycCompletionData, c as KycCompletionNotification, cg as Language, aH as MediaType, aI as MediaTypePID, aq as MobileExchangeTokenResponse, bc as NUMERIC_OPERATORS, cb as NexeraCredentialType, bd as NumericOperator, bA as OLD_CHALLENGE_QUERY_OPERATORS, bB as OLD_ChallengeQueryOperator, bE as OLD_ChallengeQueryOperatorToOperator, bw as OLD_ChallengeQuerySchema, bG as OLD_QueryCredentialType, bF as OLD_QueryCredentialTypes, b0 as OPERATORS, g as OcvSdkInitialized, O as OffChainScenarioExecutionData, Q as OffChainZKPRuleResult, d as OnChainScenarioExecutionData, b1 as Operator, bC as OperatorMappings, bD as OperatorToOLD_ChallengeQueryOperator, bv as PartialQueryConfigSimplified, P as PolygonIdInitialized, ac as PolygonIdRequest, ab as PolygonIdRequestData, ae as PolygonIdResponse, ad as PolygonIdResponseData, c2 as PrivacyPreservingMonitoring, aQ as ProofData, a_ as QUERY_LOGIC_OPERATOR, aV as QrCodeLinkWithSchemaType, bp as QueriesOptions, bs as QueryConfigSimplified, br as QueryConfigTfhe, by as QueryCredentialType, bx as QueryCredentialTypes, bt as QueryGroupConfigSimplified, a$ as QueryLogicOperator, bq as QueryType, aF as RequiredDataRowSchema, aG as RequiredVerificationData, V as RuleEngineResponse, R as RuleEngineScenarioExecutionData, bu as RuleResultQueryConfig, Y as RuleResultStatus, Z as RuleResultStatusLabels, X as RuleResultStatuses, b3 as RuleTimeframe, r as SCENARIO_ACTION_TYPES, c5 as SCENARIO_AUTHORIZATION_STATUSES, ba as STRING_OPERATORS, bk as SUPPORTED_TYPES, S as ScenarioAuthorizationData, c6 as ScenarioAuthorizationStatus, e as ScenarioExecutionData, f as ScenarioExecutionNotification, W as ScenarioExecutionResponse, E as ScenarioMode, B as ScenarioModes, J as ScenarioSchema, G as ScenarioStatus, F as ScenarioStatuses, z as ScenarioType, y as ScenarioTypes, _ as SdkVerificationOutput, a as SdkVerificationResponseSchema, l as SendTransactionRequest, k as SignatureRequest, p as SignatureResponse, a8 as SimplifiedCredential, a3 as SimplifiedScenario, aZ as SpecialDataSetType, aY as SpecialDataSetTypes, h as StartCompletedNotification, af as StartFlowRequest, bb as StringOperator, bl as SupportedQueryInputType, bm as SupportedQueryInputTypes, b2 as TIMEFRAME, a5 as TemplateScenario, bQ as TezosTxAuthInput, b_ as TezosTxAuthInputJsSdk, bS as TezosTxSignatureResponse, T as TransactionData, q as TransactionResponse, az as TxAuthDataSignatureGatingError, au as TxAuthDataSignatureGatingRequest, ay as TxAuthDataSignatureResponse, bK as TxAuthInput, bM as TxSignatureResponse, ce as VerifiableCredential, a1 as VerificationOutput, a0 as VerificationSessionStatus, $ as VerificationSessionStatuses, c8 as VerifyWalletChallengeRequest, at as WalletSignResponse, c7 as WalletSignatureResponse, b4 as ZKPOperator, c0 as ZKPRequest, c1 as ZKPRequestFromZKVerifier, aL as ZeroKnowledgeProofRequest, aR as ZeroKnowledgeProofResponse, cc as getCredentialName, bI as getOldCredentialPath, bH as getOldCredentialType, bJ as oldCredentialPathToDataLink, b5 as operatorDisplayMap, aW as parseIden3Message, aX as parseSessionIdFromUrl, b7 as timeframeAlertDisplayMap, b6 as timeframeDisplayMap } from './identity-api.schema-f69c9758.esm.mjs';
|
|
6
6
|
export { s as IDInformationTfheCredentialSubjectCONFIG, V as VC_JSON_SCHEMA_MAP, c as cleanObject, a as getAvailableFields, g as getCredentialSchemaLocation, b as getFieldConfig } from './tfhe-utilities-de77fe38.esm.mjs';
|
|
7
7
|
export { Separator, computeVaultKey, generateZodObjectPaths, resolvePathOnDataSchema, resolvePathOnMapSchema } from '../vault/dist/nexeraid-identity-schemas-vault.esm.mjs';
|
|
8
|
-
import { N as NotabeneTxCreateStatus } from './
|
|
8
|
+
import { N as NotabeneTxCreateStatus } from './veriff-webhook.schema-126f3aa3.esm.mjs';
|
|
9
9
|
import 'nanoid';
|
|
10
10
|
import 'decimal.js';
|
|
11
11
|
import 'crypto';
|
package/dist/package.json
CHANGED
|
@@ -1436,7 +1436,7 @@ var TRMLabsAddressesScreeningResponse = z$1.union([TRMLabsAddressesScreening, TR
|
|
|
1436
1436
|
var ProviderWithoutConfig = ["chainalysis", "scorechain", "integratedScorechain", "trmLabs"];
|
|
1437
1437
|
var IdentityProviderOptions = ["nexeraIdSSID", "nexeraIdKYB", "synaps", "ondato"];
|
|
1438
1438
|
var IdentityProvider = z["enum"](IdentityProviderOptions);
|
|
1439
|
-
var DataProviderOptions = ["complyAdvantage", "big", "scorechain", "merkleScience", "chainalysis", "trmLabs", "crystal", "notabene", "ipQualityScore", "integratedComplyAdvantage", "integratedScorechain", "integratedIpqualityscore", "notabene", "integratedWalletMonitoring"];
|
|
1439
|
+
var DataProviderOptions = ["complyAdvantage", "big", "scorechain", "merkleScience", "chainalysis", "trmLabs", "crystal", "notabene", "ipQualityScore", "integratedComplyAdvantage", "integratedScorechain", "integratedIpqualityscore", "notabene", "integratedWalletMonitoring", "veriff"];
|
|
1440
1440
|
var DataProvider = z["enum"](DataProviderOptions);
|
|
1441
1441
|
var MergedProviders = z["enum"]([].concat(_toConsumableArray(IdentityProvider.options), _toConsumableArray(DataProvider.options)));
|
|
1442
1442
|
var MerkleScienceConfig = z.object({
|
|
@@ -2561,7 +2561,9 @@ var SelectKycSession = z.object({
|
|
|
2561
2561
|
workflowSessionId: WorkflowSessionId.nullable(),
|
|
2562
2562
|
workspaceId: WorkspaceId.nullish(),
|
|
2563
2563
|
organizationId: OrganizationId.nullish(),
|
|
2564
|
-
applicantCheckStatus: ApplicantCheckStatus
|
|
2564
|
+
applicantCheckStatus: ApplicantCheckStatus,
|
|
2565
|
+
kycProvider: z.string()["default"]("sumsub"),
|
|
2566
|
+
providerPersonData: z.unknown().nullish()
|
|
2565
2567
|
});
|
|
2566
2568
|
var SelectKycSessionWithCompletedSteps = SelectKycSession.extend({
|
|
2567
2569
|
stepsCompleted: z.array(SelectKycSessionStep)
|
|
@@ -2642,6 +2644,8 @@ var ApiSuccessCommandResponse = function ApiSuccessCommandResponse(dataSchema) {
|
|
|
2642
2644
|
});
|
|
2643
2645
|
};
|
|
2644
2646
|
var GetKycSessionsOutput = z.discriminatedUnion("isOk", [ApiErrorCommandResponse, ApiSuccessCommandResponse(z.array(GetKycSessionResponseWithCredentialsMetadata))]);
|
|
2647
|
+
var KYC_PROVIDER_NAMES = ["sumsub", "veriff"];
|
|
2648
|
+
var KycProviderName = z["enum"](KYC_PROVIDER_NAMES);
|
|
2645
2649
|
|
|
2646
2650
|
var KYB_STEP_TYPES = ["Started"];
|
|
2647
2651
|
var KybStep = z["enum"](KYB_STEP_TYPES);
|
|
@@ -3258,4 +3262,159 @@ var NotabeneWebhookSchema = z.object({
|
|
|
3258
3262
|
status: NotabeneTxCreateStatus
|
|
3259
3263
|
});
|
|
3260
3264
|
|
|
3261
|
-
|
|
3265
|
+
var VERIFF_DECISION_STATUSES = ["approved", "declined", "resubmission_requested", "expired", "abandoned"];
|
|
3266
|
+
var VeriffDecisionStatus = z["enum"](VERIFF_DECISION_STATUSES);
|
|
3267
|
+
var VERIFF_DECISION_CODES = [9001, 9102, 9103, 9104];
|
|
3268
|
+
var VeriffDecisionCode = z.union([z.literal(9001),
|
|
3269
|
+
// approved
|
|
3270
|
+
z.literal(9102),
|
|
3271
|
+
// declined
|
|
3272
|
+
z.literal(9103),
|
|
3273
|
+
// resubmission_requested
|
|
3274
|
+
z.literal(9104),
|
|
3275
|
+
// expired
|
|
3276
|
+
z.number() // fallback for unknown codes — do not reject valid webhooks
|
|
3277
|
+
]);
|
|
3278
|
+
|
|
3279
|
+
// .passthrough() — see veriff-webhook.schema.ts.
|
|
3280
|
+
|
|
3281
|
+
var VeriffCreateSessionRequest = z.object({
|
|
3282
|
+
verification: z.object({
|
|
3283
|
+
person: z.object({
|
|
3284
|
+
firstName: z.string(),
|
|
3285
|
+
lastName: z.string()
|
|
3286
|
+
}).passthrough(),
|
|
3287
|
+
vendorData: z.string(),
|
|
3288
|
+
// our internal customerId
|
|
3289
|
+
callback: z.string().url(),
|
|
3290
|
+
timestamp: z.string() // ISO 8601
|
|
3291
|
+
}).passthrough()
|
|
3292
|
+
}).passthrough();
|
|
3293
|
+
var VeriffCreateSessionResponse = z.object({
|
|
3294
|
+
status: z.string(),
|
|
3295
|
+
verification: z.object({
|
|
3296
|
+
id: z.string().uuid(),
|
|
3297
|
+
url: z.string().url(),
|
|
3298
|
+
sessionToken: z.string(),
|
|
3299
|
+
baseUrl: z.string().optional()
|
|
3300
|
+
}).passthrough()
|
|
3301
|
+
}).passthrough();
|
|
3302
|
+
|
|
3303
|
+
/** Veriff watchlist webhook (initial_result | updated_result).
|
|
3304
|
+
* Strict (no passthrough) so it satisfies MessageBrokerEvent's ZodSchema<T>
|
|
3305
|
+
* — passthrough breaks that via the inferred index signature. */
|
|
3306
|
+
|
|
3307
|
+
var VeriffWatchlistCheckType = z["enum"](["initial_result", "updated_result"]);
|
|
3308
|
+
var VeriffWatchlistMatchStatus = z["enum"](["possible_match", "no_match"]);
|
|
3309
|
+
var VeriffWatchlistSearchTerm = z.object({
|
|
3310
|
+
name: z.string().nullable().optional(),
|
|
3311
|
+
// Veriff sends `year` as a string in practice; coerce handles both.
|
|
3312
|
+
year: z.coerce.number().nullable().optional(),
|
|
3313
|
+
lists: z.array(z.string()).nullable().optional(),
|
|
3314
|
+
countries: z.array(z.string()).nullable().optional(),
|
|
3315
|
+
exactMatch: z["boolean"]().nullable().optional(),
|
|
3316
|
+
matchThreshold: z.number().nullable().optional(),
|
|
3317
|
+
excludeDeceased: z["boolean"]().nullable().optional()
|
|
3318
|
+
});
|
|
3319
|
+
/** Listing entry per category; passthrough preserves undocumented fields. */
|
|
3320
|
+
var VeriffWatchlistListingEntry = z.object({
|
|
3321
|
+
sourceName: z.string().nullable().optional(),
|
|
3322
|
+
sourceUrl: z.string().nullable().optional(),
|
|
3323
|
+
snippet: z.string().nullable().optional(),
|
|
3324
|
+
date: z.string().nullable().optional()
|
|
3325
|
+
}).passthrough();
|
|
3326
|
+
/** Five hit categories; passthrough for future buckets. */
|
|
3327
|
+
var VeriffWatchlistListingsByCategory = z.object({
|
|
3328
|
+
warnings: z.array(VeriffWatchlistListingEntry).nullable().optional(),
|
|
3329
|
+
sanctions: z.array(VeriffWatchlistListingEntry).nullable().optional(),
|
|
3330
|
+
fitnessProbity: z.array(VeriffWatchlistListingEntry).nullable().optional(),
|
|
3331
|
+
pep: z.array(VeriffWatchlistListingEntry).nullable().optional(),
|
|
3332
|
+
adverseMedia: z.array(VeriffWatchlistListingEntry).nullable().optional()
|
|
3333
|
+
}).passthrough();
|
|
3334
|
+
/** Per-hit schema. aka/associates/matchTypes use z.unknown() — Veriff sometimes
|
|
3335
|
+
* returns objects instead of strings; UI handles both shapes at render time. */
|
|
3336
|
+
var VeriffWatchlistHit = z.object({
|
|
3337
|
+
matchedName: z.string().nullable().optional(),
|
|
3338
|
+
countries: z.array(z.string()).nullable().optional(),
|
|
3339
|
+
dateOfBirth: z.string().nullable().optional(),
|
|
3340
|
+
dateOfDeath: z.string().nullable().optional(),
|
|
3341
|
+
matchTypes: z.array(z.unknown()).nullable().optional(),
|
|
3342
|
+
aka: z.array(z.unknown()).nullable().optional(),
|
|
3343
|
+
associates: z.array(z.unknown()).nullable().optional(),
|
|
3344
|
+
listingsRelatedToMatch: VeriffWatchlistListingsByCategory.nullable().optional()
|
|
3345
|
+
}).passthrough();
|
|
3346
|
+
// Top-level strict so it's assignable to MessageBrokerEvent's ZodSchema<T>;
|
|
3347
|
+
// passthrough lives on nested objects.
|
|
3348
|
+
var VeriffWatchlistWebhook = z.object({
|
|
3349
|
+
checkType: VeriffWatchlistCheckType,
|
|
3350
|
+
attemptId: z.string(),
|
|
3351
|
+
sessionId: z.string(),
|
|
3352
|
+
vendorData: z.string().nullable().optional(),
|
|
3353
|
+
endUserId: z.string().nullable().optional(),
|
|
3354
|
+
matchStatus: VeriffWatchlistMatchStatus,
|
|
3355
|
+
// Diverges from matchStatus when operator marks hits on Veriff's side.
|
|
3356
|
+
reviewStatus: z.string().nullable().optional(),
|
|
3357
|
+
// Veriff-side flag for unseen monitoring updates; surfaced in dashboard.
|
|
3358
|
+
hasUnacknowledgedChanges: z["boolean"]().nullable().optional(),
|
|
3359
|
+
createdAt: z.string(),
|
|
3360
|
+
totalHits: z.number(),
|
|
3361
|
+
hits: z.array(VeriffWatchlistHit),
|
|
3362
|
+
searchTerm: VeriffWatchlistSearchTerm.nullable().optional()
|
|
3363
|
+
});
|
|
3364
|
+
|
|
3365
|
+
// .passthrough() everywhere — strict shapes silently drop fields Veriff adds
|
|
3366
|
+
// in some flows (yearOfBirth, pepSanctionMatch, etc.), same trap as Topograph.
|
|
3367
|
+
|
|
3368
|
+
var VeriffPerson = z.object({
|
|
3369
|
+
firstName: z.string().nullable().optional(),
|
|
3370
|
+
lastName: z.string().nullable().optional(),
|
|
3371
|
+
dateOfBirth: z.string().nullable().optional(),
|
|
3372
|
+
// YYYY-MM-DD
|
|
3373
|
+
gender: z.string().nullable().optional(),
|
|
3374
|
+
nationality: z.string().nullable().optional(),
|
|
3375
|
+
placeOfBirth: z.string().nullable().optional(),
|
|
3376
|
+
idNumber: z.string().nullable().optional()
|
|
3377
|
+
}).passthrough();
|
|
3378
|
+
var VeriffDocument = z.object({
|
|
3379
|
+
number: z.string().nullable().optional(),
|
|
3380
|
+
type: z.string().nullable().optional(),
|
|
3381
|
+
country: z.string().nullable().optional(),
|
|
3382
|
+
validFrom: z.string().nullable().optional(),
|
|
3383
|
+
validUntil: z.string().nullable().optional()
|
|
3384
|
+
}).passthrough();
|
|
3385
|
+
var VeriffEventWebhook = z.object({
|
|
3386
|
+
id: z.string().uuid(),
|
|
3387
|
+
attemptId: z.string().uuid().optional(),
|
|
3388
|
+
feature: z.string().optional(),
|
|
3389
|
+
code: z.number(),
|
|
3390
|
+
action: z.string(),
|
|
3391
|
+
vendorData: z.string().nullable().optional(),
|
|
3392
|
+
// our customerId
|
|
3393
|
+
endUserId: z.string().nullable().optional()
|
|
3394
|
+
}).passthrough();
|
|
3395
|
+
var VeriffDecisionWebhook = z.object({
|
|
3396
|
+
status: z.string(),
|
|
3397
|
+
verification: z.object({
|
|
3398
|
+
id: z.string().uuid(),
|
|
3399
|
+
// providerSessionId
|
|
3400
|
+
attemptId: z.string().uuid().optional(),
|
|
3401
|
+
vendorData: z.string().optional(),
|
|
3402
|
+
// our customerId
|
|
3403
|
+
status: VeriffDecisionStatus,
|
|
3404
|
+
code: VeriffDecisionCode,
|
|
3405
|
+
reason: z.string().nullable().optional(),
|
|
3406
|
+
reasonCode: z.number().nullable().optional(),
|
|
3407
|
+
acceptanceTime: z.string().optional(),
|
|
3408
|
+
decisionTime: z.string().nullable().optional(),
|
|
3409
|
+
person: VeriffPerson.optional(),
|
|
3410
|
+
document: VeriffDocument.optional(),
|
|
3411
|
+
riskScore: z.object({
|
|
3412
|
+
score: z.number()
|
|
3413
|
+
}).optional()
|
|
3414
|
+
}).passthrough().nullable(),
|
|
3415
|
+
technicalData: z.object({
|
|
3416
|
+
ip: z.string().nullable().optional()
|
|
3417
|
+
}).passthrough().optional()
|
|
3418
|
+
}).passthrough();
|
|
3419
|
+
|
|
3420
|
+
export { SynapsSessionErrorResponse as $, ProofOfAddressDocumentTypes as A, BigCryptoChain as B, ComplyAdvantageSearchResponse as C, DocumentIdTypes as D, EmailVerificationAnalysisResponse as E, File$1 as F, ProofOfAddressDocumentType as G, ProofOfAddressMetadata as H, IpQualityServiceAnalysisResponse as I, PhoneMetadata as J, EmailMetadata as K, LivenessMetadata as L, MergedProviders as M, NotabeneTxCreateStatus as N, AMLMetadata as O, PhoneVerificationAnalysisResponse as P, Step as Q, RequestProperty as R, Statuses as S, SynapsSessionEvent as T, SynapsStepEvent as U, typeToHumanReadable as V, WrappedIpQualityServiceErrorResponse as W, SynapsSessionRequest as X, SESSION_NOT_FOUND as Y, UNKNOWN_ERROR as Z, RESULT_PARSER_ERROR as _, ComplyAdvantageSearchErrorResponse as a, MerkleScienceConfig as a$, SynapsSessionResponse as a0, SynapsStepRequest as a1, STEP_NOT_FOUND as a2, SynapsStepErrorResponse as a3, SynapsStepResponse as a4, CoerceDateUTC as a5, SEARCH_FILTER_SANCTION_TYPE as a6, SearchFilterSanctionType as a7, SEARCH_FILTER_PEP_TYPE as a8, SearchFilterPepType as a9, UpdateSearchEntitiesInput as aA, ComplyAdvantageUser as aB, MatchTypeDetail as aC, ComplyAdvantageMedia as aD, ComplyAdvantageSearchDataResponseHit as aE, ComplyAdvantageSearchDataResponse as aF, ComplyAdvantageKeyInformation as aG, ComplyAdvantageAmlItemSource as aH, ComplyAdvantageAmlFullListing as aI, ComplyAdvantageSearchEntitiesDataResponse as aJ, ComplyAdvantageSearchEntitiesSuccessResponse as aK, ComplyAdvantageSearchEntitiesResponse as aL, ComplyAdvantageSearchRequest as aM, ComplyAdvantageSearchRequests as aN, ComplyAdvantageUpdateSearchRequest as aO, ComplyAdvantageUpdateSearchEntitiesRequest as aP, ComplyAdvantageUpdateSearchEntitiesSuccessResponse as aQ, ComplyAdvantageUpdateSearchEntitiesResponse as aR, ComplyAdvantageMonitorSearchDataResponse as aS, ComplyAdvantageMonitorSearchSuccessResponse as aT, ComplyAdvantageMonitorSearchResponse as aU, ComplyAdvantageMonitoredSearchUpdate as aV, ProviderWithoutConfig as aW, IdentityProviderOptions as aX, IdentityProvider as aY, DataProviderOptions as aZ, DataProvider as a_, SEARCH_FILTER_ADVERSE_MEDIA_TYPE as aa, SearchFilterAdverseMediaType as ab, HIGH_RISK_TYPES as ac, MEDIUM_RISK_TYPES as ad, COMPLY_ADVANTAGE_RESPONSE_MATCH_TYPE as ae, ComplyAdvantageResponseMatchType as af, mappingMatchTypeToLabel as ag, COMPLY_ADVANTAGE_RESPONSE_MATCH_STATUS as ah, ComplyAdvantageReponseMatchStatus as ai, SEARCH_FILTER_TYPES as aj, SearchFilterType as ak, SearchEntityTypes as al, SearchEntityType as am, SearchFilters as an, COMPLY_ADVANTAGE_NATIONALITY_FIELD_SOURCES as ao, ComplyAdvantageNationalityFieldSources as ap, COMPLY_ADVANTAGE_COUNTRY_FIELD_SOURCES as aq, ComplyAdvantageCountryFieldSources as ar, COMPLY_ADVANTAGE_DATE_OF_BIRTH_FIELD_SOURCES as as, ComplyAdvantageDateOfBirthFieldSources as at, CreateSearchInput as au, MatchStatuses as av, MatchStatus as aw, RiskLevels as ax, RiskLevel as ay, UpdateSearchInput as az, ComplyAdvantageSearchSuccessResponse as b, SUMSUB_REVIEW_STATUSES as b$, ChainalysisConfig as b0, TRMLabsConfig as b1, CrystalIntelligenceConfig as b2, ScorechainConfig as b3, WorkflowsScorechainConfig as b4, BigConfig as b5, IpQualityConfig as b6, NotabeneConfig as b7, ProviderIntegrationTypeOptions as b8, ProviderIntegrationType as b9, DeleteProviderResponse as bA, WEBHOOK_TYPES as bB, WebhookType as bC, ApplicantMemberOfSchema as bD, SumSubWebhookSchema as bE, BaseApplicantActionSchema as bF, SUMSUB_STEPS as bG, SumSubStep as bH, SUMSUB_APPLICANT_TYPES as bI, SumSubApplicantType as bJ, SUMSUB_REVIEW_ANSWERS as bK, SumSubReviewAnswer as bL, SUMSUB_REVIEW_REJECT_TYPES as bM, SumSubReviewRejectType as bN, SumsubReviewDecision as bO, SumsubCountryCode as bP, SumSubAddress as bQ, SumSubApplicantInfo as bR, INDIVIDUAL_BENEFICIARY_RELATIONS as bS, IndividualBeneficiaryRelation as bT, BENEFICIARY_TYPES as bU, BeneficiaryType as bV, BeneficiaryCompanyCustomerClaims as bW, BeneficiaryCompanyCustomerClaimsArray as bX, SumSubCompanyApplicantInfo as bY, SUMSUB_WEBHOOK_INTERNAL_STATUS as bZ, SumsubWebhookInternalStatus as b_, BaseProvider as ba, NexeraIdSSIDProvider as bb, NexeraIdKYBProvider as bc, BigProvider as bd, ScorechainProvider as be, MerkleScienceProvider as bf, ChainalysisProvider as bg, TRMLabsProvider as bh, CrystalIntelligenceProvider as bi, NotabeneProvider as bj, IpqualityscoreProvider as bk, ComplyAdvantageProviderConfigTypes as bl, ComplyAdvantageProviderConfigFilters as bm, ComplyAdvantageProviderConfigElement as bn, ComplyAdvantageProvider as bo, SynapsProvider as bp, ProviderData as bq, ProviderDataProject as br, GetProvidersResponse as bs, GetProviderResponse as bt, CreateProviderInput as bu, CreateProviderResponse as bv, UpdateProviderInput as bw, UpdateProviderResponse as bx, ToggleProviderInput as by, DeleteProviderInput as bz, IpQualityAnalysisRequest as c, ProofOfResidenceMetaData as c$, SumSubReviewStatus as c0, SUMSUB_DOC_TYPES as c1, SUMSUB_DOC_TYPES_ARRAY as c2, SumSubDocType as c3, SUMSUB_KYC_DOC_TYPES as c4, SumSubKycDocType as c5, KYC_DOC_SIDES as c6, KycDocSide as c7, SUMSUB_FLOW_LEVEL as c8, SumSubFlowLevel as c9, SUMSUB_KYB_SESSION_FLOW_SECTION_STATUS as cA, SumsubKybSessionFlowSectionStatus as cB, SumsubKybSessionFlowSectionItem as cC, SumsubKybSessionFlowSection as cD, SumSubSimilarApplicantsSchema as cE, ApplicantImages as cF, SUMSUB_REVIEW_REJECT_LABELS as cG, SumSubReviewRejectLabel as cH, SUMSUB_REVIEW_REJECT_LABELS_DESCRIPTION as cI, KYC_STEP_TYPES as cJ, KycStep as cK, KycStepStatuses as cL, KycStepStatus as cM, KYC_RESULTS as cN, KycResult as cO, KYC_SESSION_STATUSES as cP, KycSessionStatus as cQ, EmailVerificationResponse as cR, SelectKycSessionStep as cS, APPLICANT_CHECK_STATUSES as cT, ApplicantCheckStatus as cU, SelectKycSession as cV, SelectKycSessionWithCompletedSteps as cW, GetKycSessionInput as cX, GetKycSessionResponse as cY, UpdateKycSessionOutput as cZ, VideoKycMetaData as c_, SumSubRequiredIdDoc as ca, UploadDocumentRequest as cb, SumSubReviewResultSchema as cc, SumSubImageReviewResultSchema as cd, SumSubImageStatus as ce, SumsubApplicantTypes as cf, SumsubApplicantType as cg, SumSubIndividualApplicantSchema as ch, SumSubCompanyApplicantSchema as ci, SumSubImageId as cj, SUMSUB_COMPANY_BENEFICIARY_GROUP as ck, SumsubCompanyBeneficiaryGroup as cl, SumsubStepStatus as cm, SumSubVerificationStepSchema as cn, SumSubApplicantVerificationStepSchema as co, SUMSUB_MEDIA_CONTENT_TYPES as cp, SumSubMediaContentType as cq, DocumentMetadataSchema as cr, DocumentSubmitResponse as cs, SumSubApplicantReviewStatusSchema as ct, SumSubApplicantResetSchema as cu, SumSubGenerateExternalWebSdkLinkSchema as cv, SumsubVideoCallData as cw, SumsubKycDataSchema as cx, SumsubKybDataSchema as cy, SumSubApplicantSchema as cz, IpQualityAnalysisResponse as d, AuthToken as d$, ProofOfResidenceDocumentType as d0, GetCredentialsOutput as d1, CustomerContactInformationOutput as d2, CredentialMetadata as d3, GetKycSessionResponseWithCredentialsMetadata as d4, IDImageMetaData as d5, SelfieImageMetaData as d6, ApiErrorResponse as d7, ApiErrorCommandResponse as d8, ApiSuccessCommandResponse as d9, MerkleAddressRequest as dA, MerkleAddressApiResponse as dB, MerkleAddressApiError as dC, MerkleAddressResponse as dD, ChainalysisRequest as dE, ChainalysisRegisterApiResponse as dF, ChainalysisRiskLevel as dG, ChainalysisErrorCodes as dH, ChainalysisRiskAssessmentApiResponse as dI, ChainalysisApiError as dJ, ChainalysisRegisterResponse as dK, ChainalysisRiskAssessmentResponse as dL, CoinMarketCapRequest as dM, CoinMarketCapQuote as dN, CoinMarketCapQuotes as dO, CoinMarketCapApiResponse as dP, CoinMarketCapFiatId as dQ, TRMLabsAddressesScreeningApiRequest as dR, TRM_RISK_SCORE_LEVEL as dS, TRM_RISK_SCORE_LEVEL_LABEL as dT, TRMLabsRiskScoreToScorechainRiskMapping as dU, TRMLabsAddressesScreening as dV, TRMLabsAddressesScreeningResponse as dW, CrystalWalletScreeningApiRequest as dX, CrystalWalletScreeningResponse as dY, NotabeneAudience as dZ, AuthTokenRequest as d_, GetKycSessionsOutput as da, KYC_PROVIDER_NAMES as db, KycProviderName as dc, KYB_STEP_TYPES as dd, KybStep as de, KYB_RESULTS as df, KybResult as dg, KYB_SESSION_STATUSES as dh, KybSessionStatus as di, COMPANY_DOCUMENT_STATUS as dj, CompanyDocumentStatus as dk, CompanyDocumentMetaData as dl, BeneficiaryAttestationDocumentMetaData as dm, TopographRegistryDocumentMetaData as dn, BeneficiaryVerificationStatus as dp, BeneficiaryVerificationStatusArray as dq, SelectKybSession as dr, GetKybSessionInput as ds, GetKybSessionResponse as dt, UpdateKybSessionOutput as du, CustomerDocumentMetaData as dv, CustomerStatusResults as dw, MerkleBlockChainTypes as dx, MerkleBlockChainName as dy, MerkleBlockChainCodes as dz, IpQualityServiceAnalysis as e, AuthTokenError as e0, AuthTokenResponse as e1, NotabeneAssetResponse as e2, NameIdentifierType as e3, NationalIdentifierType as e4, LegalPersonNameIdentifierType as e5, NotabeneTxCreateRequest as e6, NOTABENE_TX_CREATE_STATUS as e7, NotabeneTxCreateResponse as e8, NotabeneErrorCode as e9, NotabeneTxCreateError as ea, NotabeneTxValidateFullResponse as eb, NotabeneJurisdictionsRequest as ec, NotabeneJurisdictionsCondition as ed, NotabeneJurisdictionsUnitaryResponse as ee, NotabeneJurisdictionsResponse as ef, NotabeneWebhookPayload as eg, NotabeneWebhookSchema as eh, VERIFF_DECISION_STATUSES as ei, VeriffDecisionStatus as ej, VERIFF_DECISION_CODES as ek, VeriffDecisionCode as el, VeriffCreateSessionRequest as em, VeriffCreateSessionResponse as en, VeriffWatchlistCheckType as eo, VeriffWatchlistMatchStatus as ep, VeriffWatchlistSearchTerm as eq, VeriffWatchlistListingEntry as er, VeriffWatchlistListingsByCategory as es, VeriffWatchlistHit as et, VeriffWatchlistWebhook as eu, VeriffPerson as ev, VeriffDocument as ew, VeriffEventWebhook as ex, VeriffDecisionWebhook as ey, 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$3 as p, WebhookPayload as q, NestedSession as r, Session as s, SessionWithoutSteps as t, StepTypes as u, StepType as v, ReasonCodes as w, ReasonCode as x, DocumentIdType as y, DocumentIdMetadata as z };
|
package/dist/{notabene.schema-e5c798ca.cjs.dev.cjs → veriff-webhook.schema-23d9f688.cjs.dev.cjs}
RENAMED
|
@@ -1442,7 +1442,7 @@ var TRMLabsAddressesScreeningResponse = z__default["default"].union([TRMLabsAddr
|
|
|
1442
1442
|
var ProviderWithoutConfig = ["chainalysis", "scorechain", "integratedScorechain", "trmLabs"];
|
|
1443
1443
|
var IdentityProviderOptions = ["nexeraIdSSID", "nexeraIdKYB", "synaps", "ondato"];
|
|
1444
1444
|
var IdentityProvider = z.z["enum"](IdentityProviderOptions);
|
|
1445
|
-
var DataProviderOptions = ["complyAdvantage", "big", "scorechain", "merkleScience", "chainalysis", "trmLabs", "crystal", "notabene", "ipQualityScore", "integratedComplyAdvantage", "integratedScorechain", "integratedIpqualityscore", "notabene", "integratedWalletMonitoring"];
|
|
1445
|
+
var DataProviderOptions = ["complyAdvantage", "big", "scorechain", "merkleScience", "chainalysis", "trmLabs", "crystal", "notabene", "ipQualityScore", "integratedComplyAdvantage", "integratedScorechain", "integratedIpqualityscore", "notabene", "integratedWalletMonitoring", "veriff"];
|
|
1446
1446
|
var DataProvider = z.z["enum"](DataProviderOptions);
|
|
1447
1447
|
var MergedProviders = z.z["enum"]([].concat(vault_schema._toConsumableArray(IdentityProvider.options), vault_schema._toConsumableArray(DataProvider.options)));
|
|
1448
1448
|
var MerkleScienceConfig = z.z.object({
|
|
@@ -2567,7 +2567,9 @@ var SelectKycSession = z.z.object({
|
|
|
2567
2567
|
workflowSessionId: vault_schema.WorkflowSessionId.nullable(),
|
|
2568
2568
|
workspaceId: vault_schema.WorkspaceId.nullish(),
|
|
2569
2569
|
organizationId: vault_schema.OrganizationId.nullish(),
|
|
2570
|
-
applicantCheckStatus: ApplicantCheckStatus
|
|
2570
|
+
applicantCheckStatus: ApplicantCheckStatus,
|
|
2571
|
+
kycProvider: z.z.string()["default"]("sumsub"),
|
|
2572
|
+
providerPersonData: z.z.unknown().nullish()
|
|
2571
2573
|
});
|
|
2572
2574
|
var SelectKycSessionWithCompletedSteps = SelectKycSession.extend({
|
|
2573
2575
|
stepsCompleted: z.z.array(SelectKycSessionStep)
|
|
@@ -2648,6 +2650,8 @@ var ApiSuccessCommandResponse = function ApiSuccessCommandResponse(dataSchema) {
|
|
|
2648
2650
|
});
|
|
2649
2651
|
};
|
|
2650
2652
|
var GetKycSessionsOutput = z.z.discriminatedUnion("isOk", [ApiErrorCommandResponse, ApiSuccessCommandResponse(z.z.array(GetKycSessionResponseWithCredentialsMetadata))]);
|
|
2653
|
+
var KYC_PROVIDER_NAMES = ["sumsub", "veriff"];
|
|
2654
|
+
var KycProviderName = z.z["enum"](KYC_PROVIDER_NAMES);
|
|
2651
2655
|
|
|
2652
2656
|
var KYB_STEP_TYPES = ["Started"];
|
|
2653
2657
|
var KybStep = z.z["enum"](KYB_STEP_TYPES);
|
|
@@ -3264,6 +3268,161 @@ var NotabeneWebhookSchema = z.z.object({
|
|
|
3264
3268
|
status: NotabeneTxCreateStatus
|
|
3265
3269
|
});
|
|
3266
3270
|
|
|
3271
|
+
var VERIFF_DECISION_STATUSES = ["approved", "declined", "resubmission_requested", "expired", "abandoned"];
|
|
3272
|
+
var VeriffDecisionStatus = z.z["enum"](VERIFF_DECISION_STATUSES);
|
|
3273
|
+
var VERIFF_DECISION_CODES = [9001, 9102, 9103, 9104];
|
|
3274
|
+
var VeriffDecisionCode = z.z.union([z.z.literal(9001),
|
|
3275
|
+
// approved
|
|
3276
|
+
z.z.literal(9102),
|
|
3277
|
+
// declined
|
|
3278
|
+
z.z.literal(9103),
|
|
3279
|
+
// resubmission_requested
|
|
3280
|
+
z.z.literal(9104),
|
|
3281
|
+
// expired
|
|
3282
|
+
z.z.number() // fallback for unknown codes — do not reject valid webhooks
|
|
3283
|
+
]);
|
|
3284
|
+
|
|
3285
|
+
// .passthrough() — see veriff-webhook.schema.ts.
|
|
3286
|
+
|
|
3287
|
+
var VeriffCreateSessionRequest = z.z.object({
|
|
3288
|
+
verification: z.z.object({
|
|
3289
|
+
person: z.z.object({
|
|
3290
|
+
firstName: z.z.string(),
|
|
3291
|
+
lastName: z.z.string()
|
|
3292
|
+
}).passthrough(),
|
|
3293
|
+
vendorData: z.z.string(),
|
|
3294
|
+
// our internal customerId
|
|
3295
|
+
callback: z.z.string().url(),
|
|
3296
|
+
timestamp: z.z.string() // ISO 8601
|
|
3297
|
+
}).passthrough()
|
|
3298
|
+
}).passthrough();
|
|
3299
|
+
var VeriffCreateSessionResponse = z.z.object({
|
|
3300
|
+
status: z.z.string(),
|
|
3301
|
+
verification: z.z.object({
|
|
3302
|
+
id: z.z.string().uuid(),
|
|
3303
|
+
url: z.z.string().url(),
|
|
3304
|
+
sessionToken: z.z.string(),
|
|
3305
|
+
baseUrl: z.z.string().optional()
|
|
3306
|
+
}).passthrough()
|
|
3307
|
+
}).passthrough();
|
|
3308
|
+
|
|
3309
|
+
/** Veriff watchlist webhook (initial_result | updated_result).
|
|
3310
|
+
* Strict (no passthrough) so it satisfies MessageBrokerEvent's ZodSchema<T>
|
|
3311
|
+
* — passthrough breaks that via the inferred index signature. */
|
|
3312
|
+
|
|
3313
|
+
var VeriffWatchlistCheckType = z.z["enum"](["initial_result", "updated_result"]);
|
|
3314
|
+
var VeriffWatchlistMatchStatus = z.z["enum"](["possible_match", "no_match"]);
|
|
3315
|
+
var VeriffWatchlistSearchTerm = z.z.object({
|
|
3316
|
+
name: z.z.string().nullable().optional(),
|
|
3317
|
+
// Veriff sends `year` as a string in practice; coerce handles both.
|
|
3318
|
+
year: z.z.coerce.number().nullable().optional(),
|
|
3319
|
+
lists: z.z.array(z.z.string()).nullable().optional(),
|
|
3320
|
+
countries: z.z.array(z.z.string()).nullable().optional(),
|
|
3321
|
+
exactMatch: z.z["boolean"]().nullable().optional(),
|
|
3322
|
+
matchThreshold: z.z.number().nullable().optional(),
|
|
3323
|
+
excludeDeceased: z.z["boolean"]().nullable().optional()
|
|
3324
|
+
});
|
|
3325
|
+
/** Listing entry per category; passthrough preserves undocumented fields. */
|
|
3326
|
+
var VeriffWatchlistListingEntry = z.z.object({
|
|
3327
|
+
sourceName: z.z.string().nullable().optional(),
|
|
3328
|
+
sourceUrl: z.z.string().nullable().optional(),
|
|
3329
|
+
snippet: z.z.string().nullable().optional(),
|
|
3330
|
+
date: z.z.string().nullable().optional()
|
|
3331
|
+
}).passthrough();
|
|
3332
|
+
/** Five hit categories; passthrough for future buckets. */
|
|
3333
|
+
var VeriffWatchlistListingsByCategory = z.z.object({
|
|
3334
|
+
warnings: z.z.array(VeriffWatchlistListingEntry).nullable().optional(),
|
|
3335
|
+
sanctions: z.z.array(VeriffWatchlistListingEntry).nullable().optional(),
|
|
3336
|
+
fitnessProbity: z.z.array(VeriffWatchlistListingEntry).nullable().optional(),
|
|
3337
|
+
pep: z.z.array(VeriffWatchlistListingEntry).nullable().optional(),
|
|
3338
|
+
adverseMedia: z.z.array(VeriffWatchlistListingEntry).nullable().optional()
|
|
3339
|
+
}).passthrough();
|
|
3340
|
+
/** Per-hit schema. aka/associates/matchTypes use z.unknown() — Veriff sometimes
|
|
3341
|
+
* returns objects instead of strings; UI handles both shapes at render time. */
|
|
3342
|
+
var VeriffWatchlistHit = z.z.object({
|
|
3343
|
+
matchedName: z.z.string().nullable().optional(),
|
|
3344
|
+
countries: z.z.array(z.z.string()).nullable().optional(),
|
|
3345
|
+
dateOfBirth: z.z.string().nullable().optional(),
|
|
3346
|
+
dateOfDeath: z.z.string().nullable().optional(),
|
|
3347
|
+
matchTypes: z.z.array(z.z.unknown()).nullable().optional(),
|
|
3348
|
+
aka: z.z.array(z.z.unknown()).nullable().optional(),
|
|
3349
|
+
associates: z.z.array(z.z.unknown()).nullable().optional(),
|
|
3350
|
+
listingsRelatedToMatch: VeriffWatchlistListingsByCategory.nullable().optional()
|
|
3351
|
+
}).passthrough();
|
|
3352
|
+
// Top-level strict so it's assignable to MessageBrokerEvent's ZodSchema<T>;
|
|
3353
|
+
// passthrough lives on nested objects.
|
|
3354
|
+
var VeriffWatchlistWebhook = z.z.object({
|
|
3355
|
+
checkType: VeriffWatchlistCheckType,
|
|
3356
|
+
attemptId: z.z.string(),
|
|
3357
|
+
sessionId: z.z.string(),
|
|
3358
|
+
vendorData: z.z.string().nullable().optional(),
|
|
3359
|
+
endUserId: z.z.string().nullable().optional(),
|
|
3360
|
+
matchStatus: VeriffWatchlistMatchStatus,
|
|
3361
|
+
// Diverges from matchStatus when operator marks hits on Veriff's side.
|
|
3362
|
+
reviewStatus: z.z.string().nullable().optional(),
|
|
3363
|
+
// Veriff-side flag for unseen monitoring updates; surfaced in dashboard.
|
|
3364
|
+
hasUnacknowledgedChanges: z.z["boolean"]().nullable().optional(),
|
|
3365
|
+
createdAt: z.z.string(),
|
|
3366
|
+
totalHits: z.z.number(),
|
|
3367
|
+
hits: z.z.array(VeriffWatchlistHit),
|
|
3368
|
+
searchTerm: VeriffWatchlistSearchTerm.nullable().optional()
|
|
3369
|
+
});
|
|
3370
|
+
|
|
3371
|
+
// .passthrough() everywhere — strict shapes silently drop fields Veriff adds
|
|
3372
|
+
// in some flows (yearOfBirth, pepSanctionMatch, etc.), same trap as Topograph.
|
|
3373
|
+
|
|
3374
|
+
var VeriffPerson = z.z.object({
|
|
3375
|
+
firstName: z.z.string().nullable().optional(),
|
|
3376
|
+
lastName: z.z.string().nullable().optional(),
|
|
3377
|
+
dateOfBirth: z.z.string().nullable().optional(),
|
|
3378
|
+
// YYYY-MM-DD
|
|
3379
|
+
gender: z.z.string().nullable().optional(),
|
|
3380
|
+
nationality: z.z.string().nullable().optional(),
|
|
3381
|
+
placeOfBirth: z.z.string().nullable().optional(),
|
|
3382
|
+
idNumber: z.z.string().nullable().optional()
|
|
3383
|
+
}).passthrough();
|
|
3384
|
+
var VeriffDocument = z.z.object({
|
|
3385
|
+
number: z.z.string().nullable().optional(),
|
|
3386
|
+
type: z.z.string().nullable().optional(),
|
|
3387
|
+
country: z.z.string().nullable().optional(),
|
|
3388
|
+
validFrom: z.z.string().nullable().optional(),
|
|
3389
|
+
validUntil: z.z.string().nullable().optional()
|
|
3390
|
+
}).passthrough();
|
|
3391
|
+
var VeriffEventWebhook = z.z.object({
|
|
3392
|
+
id: z.z.string().uuid(),
|
|
3393
|
+
attemptId: z.z.string().uuid().optional(),
|
|
3394
|
+
feature: z.z.string().optional(),
|
|
3395
|
+
code: z.z.number(),
|
|
3396
|
+
action: z.z.string(),
|
|
3397
|
+
vendorData: z.z.string().nullable().optional(),
|
|
3398
|
+
// our customerId
|
|
3399
|
+
endUserId: z.z.string().nullable().optional()
|
|
3400
|
+
}).passthrough();
|
|
3401
|
+
var VeriffDecisionWebhook = z.z.object({
|
|
3402
|
+
status: z.z.string(),
|
|
3403
|
+
verification: z.z.object({
|
|
3404
|
+
id: z.z.string().uuid(),
|
|
3405
|
+
// providerSessionId
|
|
3406
|
+
attemptId: z.z.string().uuid().optional(),
|
|
3407
|
+
vendorData: z.z.string().optional(),
|
|
3408
|
+
// our customerId
|
|
3409
|
+
status: VeriffDecisionStatus,
|
|
3410
|
+
code: VeriffDecisionCode,
|
|
3411
|
+
reason: z.z.string().nullable().optional(),
|
|
3412
|
+
reasonCode: z.z.number().nullable().optional(),
|
|
3413
|
+
acceptanceTime: z.z.string().optional(),
|
|
3414
|
+
decisionTime: z.z.string().nullable().optional(),
|
|
3415
|
+
person: VeriffPerson.optional(),
|
|
3416
|
+
document: VeriffDocument.optional(),
|
|
3417
|
+
riskScore: z.z.object({
|
|
3418
|
+
score: z.z.number()
|
|
3419
|
+
}).optional()
|
|
3420
|
+
}).passthrough().nullable(),
|
|
3421
|
+
technicalData: z.z.object({
|
|
3422
|
+
ip: z.z.string().nullable().optional()
|
|
3423
|
+
}).passthrough().optional()
|
|
3424
|
+
}).passthrough();
|
|
3425
|
+
|
|
3267
3426
|
exports.AMLMetadata = AMLMetadata;
|
|
3268
3427
|
exports.APPLICANT_CHECK_STATUSES = APPLICANT_CHECK_STATUSES;
|
|
3269
3428
|
exports.ApiErrorCommandResponse = ApiErrorCommandResponse;
|
|
@@ -3403,6 +3562,7 @@ exports.KYB_RESULTS = KYB_RESULTS;
|
|
|
3403
3562
|
exports.KYB_SESSION_STATUSES = KYB_SESSION_STATUSES;
|
|
3404
3563
|
exports.KYB_STEP_TYPES = KYB_STEP_TYPES;
|
|
3405
3564
|
exports.KYC_DOC_SIDES = KYC_DOC_SIDES;
|
|
3565
|
+
exports.KYC_PROVIDER_NAMES = KYC_PROVIDER_NAMES;
|
|
3406
3566
|
exports.KYC_RESULTS = KYC_RESULTS;
|
|
3407
3567
|
exports.KYC_SESSION_STATUSES = KYC_SESSION_STATUSES;
|
|
3408
3568
|
exports.KYC_STEP_TYPES = KYC_STEP_TYPES;
|
|
@@ -3410,6 +3570,7 @@ exports.KybResult = KybResult;
|
|
|
3410
3570
|
exports.KybSessionStatus = KybSessionStatus;
|
|
3411
3571
|
exports.KybStep = KybStep;
|
|
3412
3572
|
exports.KycDocSide = KycDocSide;
|
|
3573
|
+
exports.KycProviderName = KycProviderName;
|
|
3413
3574
|
exports.KycResult = KycResult;
|
|
3414
3575
|
exports.KycSessionStatus = KycSessionStatus;
|
|
3415
3576
|
exports.KycStep = KycStep;
|
|
@@ -3581,6 +3742,23 @@ exports.UpdateProviderResponse = UpdateProviderResponse;
|
|
|
3581
3742
|
exports.UpdateSearchEntitiesInput = UpdateSearchEntitiesInput;
|
|
3582
3743
|
exports.UpdateSearchInput = UpdateSearchInput;
|
|
3583
3744
|
exports.UploadDocumentRequest = UploadDocumentRequest;
|
|
3745
|
+
exports.VERIFF_DECISION_CODES = VERIFF_DECISION_CODES;
|
|
3746
|
+
exports.VERIFF_DECISION_STATUSES = VERIFF_DECISION_STATUSES;
|
|
3747
|
+
exports.VeriffCreateSessionRequest = VeriffCreateSessionRequest;
|
|
3748
|
+
exports.VeriffCreateSessionResponse = VeriffCreateSessionResponse;
|
|
3749
|
+
exports.VeriffDecisionCode = VeriffDecisionCode;
|
|
3750
|
+
exports.VeriffDecisionStatus = VeriffDecisionStatus;
|
|
3751
|
+
exports.VeriffDecisionWebhook = VeriffDecisionWebhook;
|
|
3752
|
+
exports.VeriffDocument = VeriffDocument;
|
|
3753
|
+
exports.VeriffEventWebhook = VeriffEventWebhook;
|
|
3754
|
+
exports.VeriffPerson = VeriffPerson;
|
|
3755
|
+
exports.VeriffWatchlistCheckType = VeriffWatchlistCheckType;
|
|
3756
|
+
exports.VeriffWatchlistHit = VeriffWatchlistHit;
|
|
3757
|
+
exports.VeriffWatchlistListingEntry = VeriffWatchlistListingEntry;
|
|
3758
|
+
exports.VeriffWatchlistListingsByCategory = VeriffWatchlistListingsByCategory;
|
|
3759
|
+
exports.VeriffWatchlistMatchStatus = VeriffWatchlistMatchStatus;
|
|
3760
|
+
exports.VeriffWatchlistSearchTerm = VeriffWatchlistSearchTerm;
|
|
3761
|
+
exports.VeriffWatchlistWebhook = VeriffWatchlistWebhook;
|
|
3584
3762
|
exports.VideoKycMetaData = VideoKycMetaData;
|
|
3585
3763
|
exports.WEBHOOK_TYPES = WEBHOOK_TYPES;
|
|
3586
3764
|
exports.WebhookPayload = WebhookPayload;
|