@zyphe-sdk/core 0.2.2 → 0.3.1
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/README.md +26 -36
- package/dist/index.d.ts +271 -59
- package/dist/index.js +139 -173
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +195 -17
- package/dist/openapi.json +587 -71
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -331,6 +331,11 @@ interface components {
|
|
|
331
331
|
* @description The target flow ID to route to.
|
|
332
332
|
*/
|
|
333
333
|
target_flow_id: string;
|
|
334
|
+
} | {
|
|
335
|
+
/** @enum {string} */
|
|
336
|
+
actionType: "assignRiskTags";
|
|
337
|
+
/** @description IDs of the RiskTagWeight rows (must belong to this org or be global). */
|
|
338
|
+
tag_ids: string[];
|
|
334
339
|
};
|
|
335
340
|
/**
|
|
336
341
|
* @description Status values that can be set via workflow actions.
|
|
@@ -487,6 +492,14 @@ interface components {
|
|
|
487
492
|
};
|
|
488
493
|
/** @enum {string} */
|
|
489
494
|
ApiKeyType: "PUBLISHABLE" | "SECRET";
|
|
495
|
+
/** @description A single custom risk tag that was assigned to a flow result by the flow builder. */
|
|
496
|
+
AssignedRiskTag: {
|
|
497
|
+
/** Format: uuid */
|
|
498
|
+
id: string;
|
|
499
|
+
tag: string;
|
|
500
|
+
/** Format: double */
|
|
501
|
+
weight: number;
|
|
502
|
+
};
|
|
490
503
|
AutoOneClickKycConfig: {
|
|
491
504
|
/** @example { "en_title": "Verify with Partners" } */
|
|
492
505
|
labels?: {
|
|
@@ -538,6 +551,9 @@ interface components {
|
|
|
538
551
|
BusinessInfoDisagreementSource: "submitted" | "document" | "catalog";
|
|
539
552
|
/** @description Per-field verification result comparing submitted business info against document-extracted values. */
|
|
540
553
|
BusinessInfoFieldVerification: {
|
|
554
|
+
/** @description The AI agent's one-sentence explanation of why this match classification was chosen.
|
|
555
|
+
* Present only when the agent was invoked (i.e. an LLM cross-check was performed). */
|
|
556
|
+
agentReasoning?: string | null;
|
|
541
557
|
/** @description The value extracted from the company catalog API. */
|
|
542
558
|
catalogValue?: string | null;
|
|
543
559
|
/** @description Sources that disagree with one another for this field. */
|
|
@@ -547,6 +563,12 @@ interface components {
|
|
|
547
563
|
matchType: components["schemas"]["BusinessInfoMatchType"];
|
|
548
564
|
/** @description The user-submitted value for this field. */
|
|
549
565
|
submittedValue?: string | null;
|
|
566
|
+
/** @description The canonical corrected value recommended by the AI agent.
|
|
567
|
+
* For `Match` fields, `run_business_info_cross_check` automatically applies this value
|
|
568
|
+
* to the stored business information record (canonical normalization of an agreed value).
|
|
569
|
+
* For `Fuzzy`, `Mismatch`, and `NotFound` fields it is surfaced to compliance officers
|
|
570
|
+
* for manual review without mutating the stored record. */
|
|
571
|
+
suggestedValue?: string | null;
|
|
550
572
|
};
|
|
551
573
|
/**
|
|
552
574
|
* @description Match type for a single business information field against document-extracted values.
|
|
@@ -706,6 +728,14 @@ interface components {
|
|
|
706
728
|
field: string;
|
|
707
729
|
/** @enum {string} */
|
|
708
730
|
op: "IS_NOT_NULL";
|
|
731
|
+
} | {
|
|
732
|
+
/** @description Whether the match is case-sensitive. Defaults to `false`. */
|
|
733
|
+
case_sensitive?: boolean | null;
|
|
734
|
+
/** @description Field path */
|
|
735
|
+
field: string;
|
|
736
|
+
/** @enum {string} */
|
|
737
|
+
op: "CONTAINS";
|
|
738
|
+
value: components["schemas"]["WorkflowValue"];
|
|
709
739
|
} | {
|
|
710
740
|
/** @enum {string} */
|
|
711
741
|
op: "LITERAL";
|
|
@@ -716,18 +746,17 @@ interface components {
|
|
|
716
746
|
* @description Condition operator type representing all valid condition operators.
|
|
717
747
|
* @enum {string}
|
|
718
748
|
*/
|
|
719
|
-
ConditionOperator: "EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "AND" | "OR" | "NOT" | "IN" | "ANY" | "ALL" | "IS_NULL" | "IS_NOT_NULL" | "LITERAL";
|
|
749
|
+
ConditionOperator: "EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "AND" | "OR" | "NOT" | "IN" | "ANY" | "ALL" | "IS_NULL" | "IS_NOT_NULL" | "CONTAINS" | "LITERAL";
|
|
720
750
|
CountriesFilter: {
|
|
721
751
|
accepted: string[];
|
|
722
752
|
blocked: string[];
|
|
723
753
|
};
|
|
724
|
-
CreateVerificationRequestPayload: {
|
|
754
|
+
CreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
|
|
725
755
|
continueUrl?: string | null;
|
|
726
756
|
cookiesPolicyAccepted: boolean;
|
|
727
757
|
customData?: {
|
|
728
758
|
[key: string]: unknown;
|
|
729
759
|
} | null;
|
|
730
|
-
email?: string | null;
|
|
731
760
|
/** Format: uuid */
|
|
732
761
|
flowStepId?: string | null;
|
|
733
762
|
privacyPolicyAccepted: boolean;
|
|
@@ -736,6 +765,8 @@ interface components {
|
|
|
736
765
|
CreateVerificationRequestResponse: {
|
|
737
766
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
738
767
|
};
|
|
768
|
+
/** @enum {string} */
|
|
769
|
+
CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID";
|
|
739
770
|
CustomDocumentConfig: {
|
|
740
771
|
enabled?: boolean;
|
|
741
772
|
/** Format: uuid */
|
|
@@ -821,6 +852,18 @@ interface components {
|
|
|
821
852
|
} | null;
|
|
822
853
|
countriesFilter: components["schemas"]["CountriesFilter"];
|
|
823
854
|
documentTypesFilter: components["schemas"]["DocumentTypeFilter"];
|
|
855
|
+
/** @description Optional per-country overrides for the document-type filter.
|
|
856
|
+
*
|
|
857
|
+
* Keys are ISO 3166-1 alpha-2 country codes. When a country is present here, its
|
|
858
|
+
* `DocumentTypeFilter` fully overrides `document_types_filter` for that country
|
|
859
|
+
* (no union/intersection). An explicit empty entry rejects the country entirely
|
|
860
|
+
* (the country gate fails, not just the document-type gate).
|
|
861
|
+
*
|
|
862
|
+
* The custom deserializer validates each key via `CountryInfo::from_any_country_code`
|
|
863
|
+
* and normalises the stored key to its `iso_alpha_2` upper-case form. */
|
|
864
|
+
documentTypesFilterPerCountry?: {
|
|
865
|
+
[key: string]: components["schemas"]["DocumentTypeFilter"];
|
|
866
|
+
} | null;
|
|
824
867
|
enabledGovernmentProviders: {
|
|
825
868
|
[key: string]: components["schemas"]["SpidDocumentType"][];
|
|
826
869
|
};
|
|
@@ -867,7 +910,7 @@ interface components {
|
|
|
867
910
|
/** @enum {string} */
|
|
868
911
|
DvConfigThreshold: "documentScorePercent";
|
|
869
912
|
/** @enum {string} */
|
|
870
|
-
DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "DOCUMENT_NOT_FOUND" | "DATE_OF_BIRTH_BELOW_MINIMUM_AGE" | "DOCUMENT_TYPE_CHECK" | "ELECTRONIC_DEVICE" | "SECURITY_TEXT" | "IMAGE_PATTERNS" | "PHOTO_EMBEDDINGS" | "BLACK_AND_WHITE_COPY" | "UNIQUENESS_CHECK" | "REQUIRED_FIELDS_MISMATCH" | "LIVENESS_CHECK_FAILED" | "LIVENESS_ANTISPOOF_FAILED" | "LIVENESS_BRIGHTNESS_FAILED" | "LIVENESS_EYES_CLOSED_FAILED" | "LIVENESS_WEARING_SUNGLASSES_FAILED" | "LIVENESS_FACE_OCCLUDED_FAILED" | "LIVENESS_SHARPNESS_FAILED" | "LIVENESS_FACE_CONSISTENCY_FAILED";
|
|
913
|
+
DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_ALTERATION_DETECTED" | "DOCUMENT_TAMPERING_DETECTED" | "FAKE_DOCUMENT_DETECTED" | "SCREEN_REPLAY_ATTACK_DETECTED" | "PAPER_COPY_DETECTED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "DOCUMENT_NOT_FOUND" | "DATE_OF_BIRTH_BELOW_MINIMUM_AGE" | "DOCUMENT_TYPE_CHECK" | "ELECTRONIC_DEVICE" | "SECURITY_TEXT" | "IMAGE_PATTERNS" | "PHOTO_EMBEDDINGS" | "BLACK_AND_WHITE_COPY" | "UNIQUENESS_CHECK" | "REQUIRED_FIELDS_MISMATCH" | "LIVENESS_CHECK_FAILED" | "LIVENESS_ANTISPOOF_FAILED" | "LIVENESS_BRIGHTNESS_FAILED" | "LIVENESS_EYES_CLOSED_FAILED" | "LIVENESS_WEARING_SUNGLASSES_FAILED" | "LIVENESS_FACE_OCCLUDED_FAILED" | "LIVENESS_SHARPNESS_FAILED" | "LIVENESS_FACE_CONSISTENCY_FAILED";
|
|
871
914
|
DvResult: {
|
|
872
915
|
adminComment?: string | null;
|
|
873
916
|
authenticityChecks: number[][];
|
|
@@ -991,6 +1034,8 @@ interface components {
|
|
|
991
1034
|
};
|
|
992
1035
|
FlowResult: {
|
|
993
1036
|
amlResults: components["schemas"]["AmlResult"][];
|
|
1037
|
+
/** @description Custom risk tags conditionally assigned by the flow builder's AssignRiskTags action. */
|
|
1038
|
+
assignedRiskTags?: components["schemas"]["AssignedRiskTag"][];
|
|
994
1039
|
/** Format: date-time */
|
|
995
1040
|
createdAt?: string | null;
|
|
996
1041
|
customData: {
|
|
@@ -1241,7 +1286,62 @@ interface components {
|
|
|
1241
1286
|
/** Format: date-time */
|
|
1242
1287
|
updatedAt?: string | null;
|
|
1243
1288
|
};
|
|
1244
|
-
FlowStepConfig:
|
|
1289
|
+
FlowStepConfig: ({
|
|
1290
|
+
stepType: "FlowStepConfig";
|
|
1291
|
+
} & (components["schemas"]["AutoOneClickKycConfig"] & {
|
|
1292
|
+
/** @enum {string} */
|
|
1293
|
+
stepType: "AUTO_ONE_CLICK_KYC";
|
|
1294
|
+
})) | ({
|
|
1295
|
+
stepType: "FlowStepConfig";
|
|
1296
|
+
} & (components["schemas"]["DvConfig"] & {
|
|
1297
|
+
/** @enum {string} */
|
|
1298
|
+
stepType: "DV";
|
|
1299
|
+
})) | ({
|
|
1300
|
+
stepType: "FlowStepConfig";
|
|
1301
|
+
} & (components["schemas"]["FormConfig"] & {
|
|
1302
|
+
/** @enum {string} */
|
|
1303
|
+
stepType: "FORM";
|
|
1304
|
+
})) | ({
|
|
1305
|
+
stepType: "FlowStepConfig";
|
|
1306
|
+
} & (components["schemas"]["PoaConfig"] & {
|
|
1307
|
+
/** @enum {string} */
|
|
1308
|
+
stepType: "POA";
|
|
1309
|
+
})) | ({
|
|
1310
|
+
stepType: "FlowStepConfig";
|
|
1311
|
+
} & (components["schemas"]["KybConfig"] & {
|
|
1312
|
+
/** @enum {string} */
|
|
1313
|
+
stepType: "KYB";
|
|
1314
|
+
})) | ({
|
|
1315
|
+
stepType: "FlowStepConfig";
|
|
1316
|
+
} & (components["schemas"]["WalletConfig"] & {
|
|
1317
|
+
/** @enum {string} */
|
|
1318
|
+
stepType: "WALLET";
|
|
1319
|
+
})) | ({
|
|
1320
|
+
stepType: "FlowStepConfig";
|
|
1321
|
+
} & (components["schemas"]["LivenessConfig"] & {
|
|
1322
|
+
/** @enum {string} */
|
|
1323
|
+
stepType: "LIVENESS";
|
|
1324
|
+
})) | ({
|
|
1325
|
+
stepType: "FlowStepConfig";
|
|
1326
|
+
} & (components["schemas"]["DocumentSelectionConfig"] & {
|
|
1327
|
+
/** @enum {string} */
|
|
1328
|
+
stepType: "DOCUMENT_SELECTION";
|
|
1329
|
+
})) | ({
|
|
1330
|
+
stepType: "FlowStepConfig";
|
|
1331
|
+
} & (components["schemas"]["GeolocationConfig"] & {
|
|
1332
|
+
/** @enum {string} */
|
|
1333
|
+
stepType: "GEOLOCATION";
|
|
1334
|
+
})) | ({
|
|
1335
|
+
stepType: "FlowStepConfig";
|
|
1336
|
+
} & (components["schemas"]["SpidConfig"] & {
|
|
1337
|
+
/** @enum {string} */
|
|
1338
|
+
stepType: "SPID";
|
|
1339
|
+
})) | ({
|
|
1340
|
+
stepType: "FlowStepConfig";
|
|
1341
|
+
} & (components["schemas"]["PhoneConfig"] & {
|
|
1342
|
+
/** @enum {string} */
|
|
1343
|
+
stepType: "PHONE";
|
|
1344
|
+
}));
|
|
1245
1345
|
FlowStepInfo: {
|
|
1246
1346
|
CONFIG: components["schemas"]["FlowStepConfig"];
|
|
1247
1347
|
/** Format: date-time */
|
|
@@ -1492,8 +1592,14 @@ interface components {
|
|
|
1492
1592
|
mode: "PASSIVE";
|
|
1493
1593
|
};
|
|
1494
1594
|
GetNextStepPayload: {
|
|
1595
|
+
/** @description Wallet address. Required when `credentialType` is `WALLET`. */
|
|
1596
|
+
address?: string | null;
|
|
1597
|
+
chain?: components["schemas"]["SiwxChain"] | null;
|
|
1598
|
+
credentialType?: components["schemas"]["CredentialType"] | null;
|
|
1495
1599
|
/** @description Email address of the user whose verification progress should be queried. */
|
|
1496
|
-
email
|
|
1600
|
+
email?: string | null;
|
|
1601
|
+
/** @description External identifier. Required when `credentialType` is `EXTERNAL_ID`. */
|
|
1602
|
+
externalId?: string | null;
|
|
1497
1603
|
};
|
|
1498
1604
|
GetNextStepResponse: {
|
|
1499
1605
|
/** @description Custom data associated with the flow result, if one exists. */
|
|
@@ -1512,9 +1618,12 @@ interface components {
|
|
|
1512
1618
|
nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1513
1619
|
};
|
|
1514
1620
|
GetVerificationRequestResponse: {
|
|
1621
|
+
/** @description External ID credential configured for this identity, if any. */
|
|
1622
|
+
externalId?: string | null;
|
|
1515
1623
|
identity: components["schemas"]["Identity"];
|
|
1516
1624
|
passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
|
|
1517
1625
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
1626
|
+
wallet?: components["schemas"]["WalletIdentifierPayload"] | null;
|
|
1518
1627
|
};
|
|
1519
1628
|
/**
|
|
1520
1629
|
* @description Represents the different head movements that can be requested in a liveness challenge
|
|
@@ -2097,12 +2206,15 @@ interface components {
|
|
|
2097
2206
|
/** Format: date-time */
|
|
2098
2207
|
createdAt?: string | null;
|
|
2099
2208
|
/** Format: uuid */
|
|
2209
|
+
documentId?: string | null;
|
|
2210
|
+
/** Format: uuid */
|
|
2100
2211
|
flowResultId: string;
|
|
2101
2212
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
2102
2213
|
/** Format: uuid */
|
|
2103
2214
|
flowStepId?: string | null;
|
|
2104
2215
|
/** Format: uuid */
|
|
2105
2216
|
id: string;
|
|
2217
|
+
phoneNumberE164?: string | null;
|
|
2106
2218
|
phoneNumberLast4: string;
|
|
2107
2219
|
status: components["schemas"]["ResultStatus"];
|
|
2108
2220
|
/** Format: date-time */
|
|
@@ -2350,18 +2462,16 @@ interface components {
|
|
|
2350
2462
|
passportNumber?: components["schemas"]["MatchDetail"] | null;
|
|
2351
2463
|
postalCode?: components["schemas"]["MatchDetail"] | null;
|
|
2352
2464
|
};
|
|
2353
|
-
|
|
2465
|
+
/** @description SDK payload for creating or resuming a verification request on behalf of a user.
|
|
2466
|
+
*
|
|
2467
|
+
* At least one of `email` or `wallet` must be provided (enforced by [`VerificationIdentifier`]
|
|
2468
|
+
* validation). Both may be provided simultaneously: wallet takes priority for `zid`, email is
|
|
2469
|
+
* stored as a contact address. */
|
|
2470
|
+
SdkCreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
|
|
2354
2471
|
/** @description Arbitrary key-value metadata to attach to this verification request. */
|
|
2355
2472
|
customData?: {
|
|
2356
2473
|
[key: string]: unknown;
|
|
2357
2474
|
} | null;
|
|
2358
|
-
/** @description Email address of the user being verified. */
|
|
2359
|
-
email: string;
|
|
2360
|
-
/**
|
|
2361
|
-
* Format: uuid
|
|
2362
|
-
* @description The ID of the flow step to start or resume for this user.
|
|
2363
|
-
*/
|
|
2364
|
-
flowStepId: string;
|
|
2365
2475
|
};
|
|
2366
2476
|
SdkCreateVerificationRequestResponse: {
|
|
2367
2477
|
/** @description The email address associated with the verified user's identity, if available. */
|
|
@@ -2384,17 +2494,25 @@ interface components {
|
|
|
2384
2494
|
* @description Canonical security/authenticity check types.
|
|
2385
2495
|
* @enum {string}
|
|
2386
2496
|
*/
|
|
2387
|
-
SecurityCheckType: "uv_luminescence" | "ir_b900" | "image_pattern" | "axial_protection" | "uv_fibers" | "ir_visibility" | "ocr_security_text" | "ipi" | "photo_embedding" | "photo_area" | "portrait_comparison" | "holograms" | "kinegram" | "letter_screen" | "barcode" | "mrz" | "extended_mrz" | "extended_ocr" | "liveness" | "electronic_device" | "black_and_white_copy" | "unknown";
|
|
2497
|
+
SecurityCheckType: "uv_luminescence" | "ir_b900" | "image_pattern" | "axial_protection" | "uv_fibers" | "ir_visibility" | "ocr_security_text" | "ipi" | "photo_embedding" | "photo_area" | "portrait_comparison" | "holograms" | "kinegram" | "letter_screen" | "barcode" | "mrz" | "extended_mrz" | "extended_ocr" | "liveness" | "electronic_device" | "black_and_white_copy" | "document_alteration" | "document_tampering" | "fake_document" | "paper_copy" | "unknown";
|
|
2388
2498
|
SelectOptions: {
|
|
2389
2499
|
isOtherAllowed: boolean;
|
|
2390
2500
|
values: string[];
|
|
2391
2501
|
};
|
|
2392
2502
|
Settings: {
|
|
2503
|
+
/** @description When true (default), prompt users to create a passkey during the verification flow.
|
|
2504
|
+
* When false, skip the passkey creation step.
|
|
2505
|
+
* Optional so that patch requests only write this field when explicitly provided. */
|
|
2506
|
+
askPasskeyCreation?: boolean | null;
|
|
2393
2507
|
/** Format: date-time */
|
|
2394
2508
|
createdAt?: string | null;
|
|
2395
2509
|
delayFlowResults?: boolean | null;
|
|
2396
2510
|
emailNotifications?: string[] | null;
|
|
2397
2511
|
extendedWebhook?: boolean | null;
|
|
2512
|
+
/** @description When true (default), always require vault unlock for one-click KYC even if a grant already exists.
|
|
2513
|
+
* When false, skip vault unlock if an active KYC grant already exists for the organization.
|
|
2514
|
+
* Optional so that patch requests only write this field when explicitly provided. */
|
|
2515
|
+
oneClickAlwaysRequestUnlockVault?: boolean | null;
|
|
2398
2516
|
primaryColor?: string | null;
|
|
2399
2517
|
profileImage?: string | null;
|
|
2400
2518
|
published?: boolean;
|
|
@@ -2410,6 +2528,13 @@ interface components {
|
|
|
2410
2528
|
/** @enum {string} */
|
|
2411
2529
|
SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
|
|
2412
2530
|
SpidConfig: {
|
|
2531
|
+
/**
|
|
2532
|
+
* Format: uuid
|
|
2533
|
+
* @description The ID of the `DocumentSelection` step that precedes this SPID step.
|
|
2534
|
+
* Mirrors the same field on [`DvConfig`] — makes the step link explicit and
|
|
2535
|
+
* independent of step ordering.
|
|
2536
|
+
*/
|
|
2537
|
+
documentSelectionStepId?: string;
|
|
2413
2538
|
/** @example { "default": "Next step" } */
|
|
2414
2539
|
labels?: {
|
|
2415
2540
|
[key: string]: string;
|
|
@@ -2492,7 +2617,7 @@ interface components {
|
|
|
2492
2617
|
*/
|
|
2493
2618
|
Uuid: string;
|
|
2494
2619
|
/** @enum {string} */
|
|
2495
|
-
ValidationMessages: "validation_unexpected" | "validation_invalid_file_format" | "validation_organization_slug_exists" | "validation_flow_slug_exists" | "validation_flow_id_mismatch" | "validation_flow_step_name_exists" | "validation_consents_not_granted" | "validation_kyb_config_match" | "validation_kyb_config_already_uses_this_kyc_flow_id" | "validation_kyb_moderation_status_wrong" | "validation_form_name_exists" | "validation_database_error" | "validation_flow_name_invalid" | "validation_flow_slug_name_invalid" | "validation_flow_step_name_invalid" | "validation_flow_step_order_duplicate" | "validation_flow_step_order_invalid" | "validation_flow_step_id_mismatch" | "validation_password_too_short" | "validation_password_no_uppercase" | "validation_password_no_lowercase" | "validation_password_no_number" | "validation_password_no_special_character" | "validation_password_contains_whitespace_or_control" | "validation_emails_empty" | "validation_email_invalid" | "validation_emails_too_many" | "validation_emails_duplicate" | "validation_invite_to_self" | "validation_e164_format" | "validation_flow_step_already_has_reference" | "validation_flow_not_found" | "validation_empty_parameter" | "validation_form_not_found" | "validation_organization_not_found" | "validation_workflow_graph_invalid" | "validation_invalid_role_for_invitation" | "validation_form_condition_forward_ref";
|
|
2620
|
+
ValidationMessages: "validation_unexpected" | "validation_invalid_file_format" | "validation_organization_slug_exists" | "validation_flow_slug_exists" | "validation_flow_id_mismatch" | "validation_flow_step_name_exists" | "validation_consents_not_granted" | "validation_kyb_config_match" | "validation_kyb_config_already_uses_this_kyc_flow_id" | "validation_kyb_moderation_status_wrong" | "validation_kyb_missing_required_documents" | "validation_form_name_exists" | "validation_database_error" | "validation_flow_name_invalid" | "validation_flow_slug_name_invalid" | "validation_flow_step_name_invalid" | "validation_flow_step_order_duplicate" | "validation_flow_step_order_invalid" | "validation_flow_step_id_mismatch" | "validation_password_too_short" | "validation_password_no_uppercase" | "validation_password_no_lowercase" | "validation_password_no_number" | "validation_password_no_special_character" | "validation_password_contains_whitespace_or_control" | "validation_emails_empty" | "validation_email_invalid" | "validation_emails_too_many" | "validation_emails_duplicate" | "validation_invite_to_self" | "validation_e164_format" | "validation_flow_step_already_has_reference" | "validation_flow_step_config_invalid" | "validation_flow_not_found" | "validation_empty_parameter" | "validation_form_not_found" | "validation_organization_not_found" | "validation_workflow_graph_invalid" | "validation_invalid_role_for_invitation" | "validation_form_condition_forward_ref";
|
|
2496
2621
|
VaultUnlockPasskeyData: {
|
|
2497
2622
|
/** @description Passkey challenge for vault unlock (base64url) */
|
|
2498
2623
|
challenge: string;
|
|
@@ -2503,6 +2628,46 @@ interface components {
|
|
|
2503
2628
|
/** @description PRF salt for vault unlock (base64url) */
|
|
2504
2629
|
prfSalt: string;
|
|
2505
2630
|
};
|
|
2631
|
+
/** @description Identity fields shared by all verification-request creation payloads.
|
|
2632
|
+
*
|
|
2633
|
+
* At least one of `email` or a [`VerificationIdentifierCredential::Wallet`] inside
|
|
2634
|
+
* `credentials` must be provided — a wallet is the only credential that can form a
|
|
2635
|
+
* `zid` without an email address.
|
|
2636
|
+
*
|
|
2637
|
+
* Flatten this into your payload struct with `#[serde(flatten)]` to keep the fields at
|
|
2638
|
+
* the top level of the JSON object — backward-compatible with callers that only send
|
|
2639
|
+
* `email`.
|
|
2640
|
+
*
|
|
2641
|
+
* `MagicLink` is provisioned automatically by [`VerificationIdentifier::resolve`] for
|
|
2642
|
+
* any email-bearing identity and does not need to be listed in `credentials`. */
|
|
2643
|
+
VerificationIdentifier: {
|
|
2644
|
+
/** @description Credentials to enable for this identity (e.g. wallet, magic-link).
|
|
2645
|
+
* The first `Wallet` entry determines the `zid`; all entries are provisioned on
|
|
2646
|
+
* identity creation. */
|
|
2647
|
+
credentials?: components["schemas"]["VerificationIdentifierCredential"][];
|
|
2648
|
+
/** @description Email address of the user. Used for notifications and as the `zid` when no wallet
|
|
2649
|
+
* credential is provided. */
|
|
2650
|
+
email?: string | null;
|
|
2651
|
+
};
|
|
2652
|
+
/** @description A credential that can be provisioned via a verification-request creation payload.
|
|
2653
|
+
*
|
|
2654
|
+
* Tagged with the same `type` discriminant strings as [`CredentialType`] so that
|
|
2655
|
+
* `"WALLET"` / `"EXTERNAL_ID"` are consistent across the whole API surface.
|
|
2656
|
+
*
|
|
2657
|
+
* Only the variants that carry public-API meaning are included here; internal
|
|
2658
|
+
* credentials such as `PASSWORD`, `PASSKEY`, `BOT_TOKEN`, and `MAGIC_LINK` are not
|
|
2659
|
+
* exposed — `MAGIC_LINK` is always provisioned automatically by [`VerificationIdentifier::resolve`]
|
|
2660
|
+
* for any email-bearing identity. */
|
|
2661
|
+
VerificationIdentifierCredential: {
|
|
2662
|
+
address: string;
|
|
2663
|
+
chain: components["schemas"]["SiwxChain"];
|
|
2664
|
+
/** @enum {string} */
|
|
2665
|
+
type: "WALLET";
|
|
2666
|
+
} | {
|
|
2667
|
+
externalId: string;
|
|
2668
|
+
/** @enum {string} */
|
|
2669
|
+
type: "EXTERNAL_ID";
|
|
2670
|
+
};
|
|
2506
2671
|
VerificationRequest: {
|
|
2507
2672
|
amlResult?: components["schemas"]["AmlResult"] | null;
|
|
2508
2673
|
/** Format: int32 */
|
|
@@ -2579,6 +2744,11 @@ interface components {
|
|
|
2579
2744
|
[key: string]: string;
|
|
2580
2745
|
};
|
|
2581
2746
|
};
|
|
2747
|
+
/** @description Blockchain wallet used as (or alongside) an email to identify a user. */
|
|
2748
|
+
WalletIdentifierPayload: {
|
|
2749
|
+
address: string;
|
|
2750
|
+
chain: components["schemas"]["SiwxChain"];
|
|
2751
|
+
};
|
|
2582
2752
|
WalletResult: {
|
|
2583
2753
|
/** Format: date-time */
|
|
2584
2754
|
createdAt?: string | null;
|
|
@@ -2968,7 +3138,15 @@ interface operations {
|
|
|
2968
3138
|
sandbox: boolean;
|
|
2969
3139
|
locale?: components["schemas"]["Locale"];
|
|
2970
3140
|
/** @description Email address of the user whose verification progress should be queried. */
|
|
2971
|
-
email
|
|
3141
|
+
email?: string | null;
|
|
3142
|
+
/** @description Credential type for wallet or external-ID based resolution (`WALLET` or `EXTERNAL_ID`). */
|
|
3143
|
+
credentialType?: components["schemas"]["CredentialType"] | null;
|
|
3144
|
+
/** @description Wallet chain. Required when `credentialType` is `WALLET`. */
|
|
3145
|
+
chain?: components["schemas"]["SiwxChain"] | null;
|
|
3146
|
+
/** @description Wallet address. Required when `credentialType` is `WALLET`. */
|
|
3147
|
+
address?: string | null;
|
|
3148
|
+
/** @description External identifier. Required when `credentialType` is `EXTERNAL_ID`. */
|
|
3149
|
+
externalId?: string | null;
|
|
2972
3150
|
};
|
|
2973
3151
|
header?: never;
|
|
2974
3152
|
path: {
|
|
@@ -3842,23 +4020,24 @@ declare const EnvironmentConfigs: {
|
|
|
3842
4020
|
};
|
|
3843
4021
|
declare const API_KEY_HEADER = "x-api-key";
|
|
3844
4022
|
|
|
3845
|
-
type SdkCreateVerificationRequestResponse = components[
|
|
3846
|
-
type Locale = components[
|
|
3847
|
-
type GetLivenessChallengeResponse = components[
|
|
3848
|
-
type ProcessDocumentSelectionPayload = components[
|
|
3849
|
-
type ProcessDocumentSelectionResponse = components[
|
|
3850
|
-
type ProcessIdentityDocumentPayload = components[
|
|
3851
|
-
type ProcessIdentityDocumentResponse = components[
|
|
3852
|
-
type ProcessLivenessPayload = components[
|
|
3853
|
-
type ProcessDvDocumentPayload = paths[
|
|
3854
|
-
type ProcessDocumentSelectionRequestPayload = paths[
|
|
3855
|
-
type ProcessLivenessResponse = components[
|
|
3856
|
-
type ApiKeyType = components[
|
|
3857
|
-
type FlowStepType = components[
|
|
3858
|
-
type Flow = components[
|
|
3859
|
-
type FlowStep = components[
|
|
3860
|
-
type VerificationRequest = components[
|
|
3861
|
-
type BaxeError = components[
|
|
4023
|
+
type SdkCreateVerificationRequestResponse = components['schemas']['SdkCreateVerificationRequestResponse'];
|
|
4024
|
+
type Locale = components['schemas']['Locale'];
|
|
4025
|
+
type GetLivenessChallengeResponse = components['schemas']['GetLivenessChallengeResponse'];
|
|
4026
|
+
type ProcessDocumentSelectionPayload = components['schemas']['ProcessDocumentSelectionPayload'];
|
|
4027
|
+
type ProcessDocumentSelectionResponse = components['schemas']['ProcessDocumentSelectionResponse'];
|
|
4028
|
+
type ProcessIdentityDocumentPayload = components['schemas']['ProcessIdentityDocumentPayload'];
|
|
4029
|
+
type ProcessIdentityDocumentResponse = components['schemas']['ProcessIdentityDocumentResponse'];
|
|
4030
|
+
type ProcessLivenessPayload = components['schemas']['ProcessLivenessPayload'];
|
|
4031
|
+
type ProcessDvDocumentPayload = paths['/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-document']['post']['requestBody']['content']['application/json'];
|
|
4032
|
+
type ProcessDocumentSelectionRequestPayload = paths['/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-selection']['post']['requestBody']['content']['application/json'];
|
|
4033
|
+
type ProcessLivenessResponse = components['schemas']['ProcessLivenessResponse'];
|
|
4034
|
+
type ApiKeyType = components['schemas']['ApiKeyType'];
|
|
4035
|
+
type FlowStepType = components['schemas']['FlowStepType'];
|
|
4036
|
+
type Flow = components['schemas']['Flow'];
|
|
4037
|
+
type FlowStep = components['schemas']['FlowStep'];
|
|
4038
|
+
type VerificationRequest = components['schemas']['VerificationRequest'];
|
|
4039
|
+
type BaxeError = components['schemas']['BaxeError'];
|
|
4040
|
+
type VerificationIdentifierCredential = components['schemas']['VerificationIdentifierCredential'];
|
|
3862
4041
|
/**
|
|
3863
4042
|
* Parameters for initializing the Zyphe iframe for a Flow.
|
|
3864
4043
|
* These will remain constant for each user that visits the Flow URL.
|
|
@@ -3874,19 +4053,25 @@ interface InitializeZypheFlowParams {
|
|
|
3874
4053
|
* The ID of the FlowStep
|
|
3875
4054
|
* UUID v4 format
|
|
3876
4055
|
* @example "4810bc63-bfdd-4487-ae57-c939046f56b6"
|
|
4056
|
+
* @deprecated The next non completed step will be used automatically
|
|
3877
4057
|
*/
|
|
3878
|
-
flowStepId
|
|
4058
|
+
flowStepId?: string;
|
|
3879
4059
|
/**
|
|
3880
4060
|
* The email of the user.
|
|
3881
4061
|
* @example "user@example.com"
|
|
3882
4062
|
*/
|
|
3883
|
-
email
|
|
4063
|
+
email?: string;
|
|
4064
|
+
/**
|
|
4065
|
+
* A credential that can be provisioned or used for identity resolution.
|
|
4066
|
+
*/
|
|
4067
|
+
credentials?: VerificationIdentifierCredential[];
|
|
3884
4068
|
/**
|
|
3885
4069
|
* The type of Flow URL.
|
|
3886
4070
|
* The third path segment of your Flow URL.
|
|
3887
4071
|
* @example "http://localhost:5173/flow/flowSlug/kyc/stepSlug"
|
|
4072
|
+
* @deprecated Will be removed in a future version
|
|
3888
4073
|
*/
|
|
3889
|
-
product
|
|
4074
|
+
product?: 'kyc';
|
|
3890
4075
|
/**
|
|
3891
4076
|
* Whether the Flow is a "sandbox" Flow.
|
|
3892
4077
|
*
|
|
@@ -3898,9 +4083,11 @@ interface InitializeZypheFlowParams {
|
|
|
3898
4083
|
* Custom data to be passed to the Flow.
|
|
3899
4084
|
* @example { "custom_data": "custom_value" }
|
|
3900
4085
|
*/
|
|
3901
|
-
customData?: Record<string, string>;
|
|
4086
|
+
customData?: Record<string, string | number | boolean>;
|
|
3902
4087
|
}
|
|
3903
|
-
type GetNextStepDetailsParams = Pick<InitializeZypheFlowParams,
|
|
4088
|
+
type GetNextStepDetailsParams = Pick<InitializeZypheFlowParams, 'flowId' | 'isSandbox' | 'email'> & {
|
|
4089
|
+
credential?: VerificationIdentifierCredential;
|
|
4090
|
+
};
|
|
3904
4091
|
interface VerificationRequestParams {
|
|
3905
4092
|
flowId: string;
|
|
3906
4093
|
verificationRequestId: string;
|
|
@@ -3965,14 +4152,17 @@ interface ProcessDocumentSelectionOptions extends VerificationSessionRequestOpti
|
|
|
3965
4152
|
interface ProcessDvLivenessOptions extends VerificationSessionRequestOptions {
|
|
3966
4153
|
payload: ProcessLivenessPayload;
|
|
3967
4154
|
}
|
|
3968
|
-
|
|
3969
|
-
}
|
|
4155
|
+
type GetLivenessChallengeOptions = VerificationSessionRequestOptions;
|
|
3970
4156
|
interface CreateVerificationSessionParams {
|
|
3971
|
-
email
|
|
4157
|
+
email?: string;
|
|
3972
4158
|
flowId: string;
|
|
3973
|
-
|
|
4159
|
+
/**
|
|
4160
|
+
* @deprecated The next non completed step will be used automatically
|
|
4161
|
+
*/
|
|
4162
|
+
flowStepId?: string;
|
|
4163
|
+
credentials?: VerificationIdentifierCredential[];
|
|
3974
4164
|
isSandbox: boolean;
|
|
3975
|
-
customData?: Record<string, string>;
|
|
4165
|
+
customData?: Record<string, string | number | boolean>;
|
|
3976
4166
|
}
|
|
3977
4167
|
declare const DocumentType: {
|
|
3978
4168
|
readonly IDENTITY_CARD: 12;
|
|
@@ -3985,11 +4175,11 @@ interface CompleteDvStepParams {
|
|
|
3985
4175
|
verificationSession: SdkCreateVerificationRequestResponse;
|
|
3986
4176
|
countryCode: string;
|
|
3987
4177
|
images: {
|
|
3988
|
-
type:
|
|
4178
|
+
type: 'DOUBLE_SIDED_DOCUMENT';
|
|
3989
4179
|
frontImage: string;
|
|
3990
4180
|
backImage: string;
|
|
3991
4181
|
} | {
|
|
3992
|
-
type:
|
|
4182
|
+
type: 'SINGLE_SIDED_DOCUMENT';
|
|
3993
4183
|
image: string;
|
|
3994
4184
|
};
|
|
3995
4185
|
}
|
|
@@ -4000,7 +4190,7 @@ interface CompleteLivenessStepParams {
|
|
|
4000
4190
|
movementImages?: Uint8Array[];
|
|
4001
4191
|
video?: Uint8Array;
|
|
4002
4192
|
}
|
|
4003
|
-
declare function completeLivenessStep({ verificationSession, frontImage, movementImages, video
|
|
4193
|
+
declare function completeLivenessStep({ verificationSession, frontImage, movementImages, video }: CompleteLivenessStepParams, options: SDKOptions): Promise<ProcessLivenessResponse>;
|
|
4004
4194
|
interface CompleteDocumentSelectionStepParams {
|
|
4005
4195
|
verificationSession: SdkCreateVerificationRequestResponse;
|
|
4006
4196
|
payload: ProcessDocumentSelectionRequestPayload;
|
|
@@ -4109,7 +4299,7 @@ interface MessageFns<T> {
|
|
|
4109
4299
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
4110
4300
|
}
|
|
4111
4301
|
|
|
4112
|
-
interface ParsedKycMessages extends Pick<Message,
|
|
4302
|
+
interface ParsedKycMessages extends Pick<Message, 'document' | 'frontImage' | 'backImage' | 'details'> {
|
|
4113
4303
|
otherImages?: Image[];
|
|
4114
4304
|
}
|
|
4115
4305
|
|
|
@@ -4122,10 +4312,10 @@ interface ListFlowResultsParams {
|
|
|
4122
4312
|
organizationId: string;
|
|
4123
4313
|
flowSlug: string;
|
|
4124
4314
|
isSandbox: boolean;
|
|
4125
|
-
pagination?: components[
|
|
4126
|
-
locale?: components[
|
|
4315
|
+
pagination?: components['schemas']['Pagination'];
|
|
4316
|
+
locale?: components['schemas']['Locale'];
|
|
4127
4317
|
}
|
|
4128
|
-
declare function listFlowResults({ organizationId, flowSlug, isSandbox, pagination, locale
|
|
4318
|
+
declare function listFlowResults({ organizationId, flowSlug, isSandbox, pagination, locale }: ListFlowResultsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
4129
4319
|
parameters: {
|
|
4130
4320
|
query: {
|
|
4131
4321
|
pagination?: components["schemas"]["Pagination"];
|
|
@@ -4249,6 +4439,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4249
4439
|
updatedAt: string;
|
|
4250
4440
|
verificationRequestId?: string | null;
|
|
4251
4441
|
}[] | undefined;
|
|
4442
|
+
assignedRiskTags?: components["schemas"]["AssignedRiskTag"][];
|
|
4252
4443
|
createdAt?: string | null;
|
|
4253
4444
|
customData?: {
|
|
4254
4445
|
[key: string]: unknown;
|
|
@@ -4338,10 +4529,12 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4338
4529
|
organizationId?: string | undefined;
|
|
4339
4530
|
phoneResults?: {
|
|
4340
4531
|
createdAt?: string | null;
|
|
4532
|
+
documentId?: string | null;
|
|
4341
4533
|
flowResultId: string;
|
|
4342
4534
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
4343
4535
|
flowStepId?: string | null;
|
|
4344
4536
|
id: string;
|
|
4537
|
+
phoneNumberE164?: string | null;
|
|
4345
4538
|
phoneNumberLast4: string;
|
|
4346
4539
|
status: components["schemas"]["ResultStatus"];
|
|
4347
4540
|
updatedAt?: string | null;
|
|
@@ -4433,6 +4626,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4433
4626
|
updatedAt: string;
|
|
4434
4627
|
verificationRequestId?: string | null;
|
|
4435
4628
|
}[] | undefined;
|
|
4629
|
+
assignedRiskTags?: components["schemas"]["AssignedRiskTag"][];
|
|
4436
4630
|
createdAt?: string | null;
|
|
4437
4631
|
customData?: {
|
|
4438
4632
|
[key: string]: unknown;
|
|
@@ -4522,10 +4716,12 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4522
4716
|
organizationId?: string | undefined;
|
|
4523
4717
|
phoneResults?: {
|
|
4524
4718
|
createdAt?: string | null;
|
|
4719
|
+
documentId?: string | null;
|
|
4525
4720
|
flowResultId: string;
|
|
4526
4721
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
4527
4722
|
flowStepId?: string | null;
|
|
4528
4723
|
id: string;
|
|
4724
|
+
phoneNumberE164?: string | null;
|
|
4529
4725
|
phoneNumberLast4: string;
|
|
4530
4726
|
status: components["schemas"]["ResultStatus"];
|
|
4531
4727
|
updatedAt?: string | null;
|
|
@@ -4594,7 +4790,7 @@ declare class ZypheError extends Error {
|
|
|
4594
4790
|
static fromBaxeError(error: BaxeError): ZypheError;
|
|
4595
4791
|
}
|
|
4596
4792
|
|
|
4597
|
-
declare function createVerificationSession({ email, flowId,
|
|
4793
|
+
declare function createVerificationSession({ email, flowId, isSandbox, credentials, customData }: CreateVerificationSessionParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
4598
4794
|
parameters: {
|
|
4599
4795
|
query: {
|
|
4600
4796
|
sandbox: boolean;
|
|
@@ -4647,9 +4843,16 @@ declare function createVerificationSession({ email, flowId, flowStepId, isSandbo
|
|
|
4647
4843
|
};
|
|
4648
4844
|
}, {
|
|
4649
4845
|
body: {
|
|
4650
|
-
email: string;
|
|
4651
|
-
|
|
4652
|
-
|
|
4846
|
+
email: string | undefined;
|
|
4847
|
+
customData: Record<string, string | number | boolean> | undefined;
|
|
4848
|
+
credentials: ({
|
|
4849
|
+
address: string;
|
|
4850
|
+
chain: components["schemas"]["SiwxChain"];
|
|
4851
|
+
type: "WALLET";
|
|
4852
|
+
} | {
|
|
4853
|
+
externalId: string;
|
|
4854
|
+
type: "EXTERNAL_ID";
|
|
4855
|
+
})[] | undefined;
|
|
4653
4856
|
};
|
|
4654
4857
|
headers: {
|
|
4655
4858
|
"x-api-key": string;
|
|
@@ -4673,7 +4876,11 @@ declare function getNextStepDetails(flowParams: GetNextStepDetailsParams, opts:
|
|
|
4673
4876
|
query: {
|
|
4674
4877
|
sandbox: boolean;
|
|
4675
4878
|
locale?: components["schemas"]["Locale"];
|
|
4676
|
-
email
|
|
4879
|
+
email?: string | null;
|
|
4880
|
+
credentialType?: components["schemas"]["CredentialType"] | null;
|
|
4881
|
+
chain?: components["schemas"]["SiwxChain"] | null;
|
|
4882
|
+
address?: string | null;
|
|
4883
|
+
externalId?: string | null;
|
|
4677
4884
|
};
|
|
4678
4885
|
header?: never;
|
|
4679
4886
|
path: {
|
|
@@ -4726,7 +4933,11 @@ declare function getNextStepDetails(flowParams: GetNextStepDetailsParams, opts:
|
|
|
4726
4933
|
};
|
|
4727
4934
|
query: {
|
|
4728
4935
|
sandbox: boolean;
|
|
4729
|
-
email: string;
|
|
4936
|
+
email: string | undefined;
|
|
4937
|
+
address: string | undefined;
|
|
4938
|
+
chain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET" | undefined;
|
|
4939
|
+
externalId: string | undefined;
|
|
4940
|
+
credentialType: "WALLET" | "EXTERNAL_ID" | undefined;
|
|
4730
4941
|
};
|
|
4731
4942
|
};
|
|
4732
4943
|
}, `${string}/${string}`>>;
|
|
@@ -4770,7 +4981,8 @@ declare const WebhookSignatureErrorMessages: {
|
|
|
4770
4981
|
readonly 2: "Invalid signature header";
|
|
4771
4982
|
readonly 3: "Signature mismatch";
|
|
4772
4983
|
};
|
|
4773
|
-
|
|
4984
|
+
type WebhookUnauthorizedHandler = (...args: never[]) => unknown;
|
|
4985
|
+
interface WebhookVerifierOptions<T extends WebhookUnauthorizedHandler> {
|
|
4774
4986
|
/**
|
|
4775
4987
|
* The hex-encoded secret key used to verify the signature
|
|
4776
4988
|
*/
|
|
@@ -4792,4 +5004,4 @@ interface WebhookVerifierOptions<T extends Function> {
|
|
|
4792
5004
|
exposeRawBody?: boolean;
|
|
4793
5005
|
}
|
|
4794
5006
|
|
|
4795
|
-
export { API_KEY_HEADER, type ApiKeyType, type BaxeError, type CompleteLivenessStepParams, type CreateVerificationSessionParams, DocumentType, type Environment, EnvironmentConfigs, Environments, type Flow, type FlowStep, type FlowStepType, type GetLivenessChallengeOptions, type GetLivenessChallengeResponse, type GetNextStepDetailsParams, type InitializeZypheFlowParams, type Locale, type ProcessDocumentSelectionOptions, type ProcessDocumentSelectionPayload, type ProcessDocumentSelectionRequestPayload, type ProcessDocumentSelectionResponse, type ProcessDvDocumentOptions, type ProcessDvDocumentPayload, type ProcessDvLivenessOptions, type ProcessDvLivenessParams, type ProcessIdentityDocumentPayload, type ProcessIdentityDocumentResponse, type ProcessLivenessPayload, type ProcessLivenessResponse, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, type VerificationRequest, type VerificationRequestParams, type VerificationSessionRequestOptions, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, ZypheError, bufferToHex, completeDocumentSelectionStep, completeDvStep, completeLivenessStep, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, getNextStepDetails, hexToBytes, listFlowResults, parseSignatureHeader, timingSafeEqual };
|
|
5007
|
+
export { API_KEY_HEADER, type ApiKeyType, type BaxeError, type CompleteLivenessStepParams, type CreateVerificationSessionParams, DocumentType, type Environment, EnvironmentConfigs, Environments, type Flow, type FlowStep, type FlowStepType, type GetLivenessChallengeOptions, type GetLivenessChallengeResponse, type GetNextStepDetailsParams, type InitializeZypheFlowParams, type Locale, type ProcessDocumentSelectionOptions, type ProcessDocumentSelectionPayload, type ProcessDocumentSelectionRequestPayload, type ProcessDocumentSelectionResponse, type ProcessDvDocumentOptions, type ProcessDvDocumentPayload, type ProcessDvLivenessOptions, type ProcessDvLivenessParams, type ProcessIdentityDocumentPayload, type ProcessIdentityDocumentResponse, type ProcessLivenessPayload, type ProcessLivenessResponse, type SDKOptions, type SdkCreateVerificationRequestResponse, type SignatureComponents, type VerificationIdentifierCredential, type VerificationRequest, type VerificationRequestParams, type VerificationSessionRequestOptions, WebhookSignatureErrorCodes, WebhookSignatureErrorMessages, type WebhookVerifierOptions, ZypheError, bufferToHex, completeDocumentSelectionStep, completeDvStep, completeLivenessStep, constructVerificationSessionUrl, createVerificationSession, getDvResult, getFlowResult, getNextStepDetails, hexToBytes, listFlowResults, parseSignatureHeader, timingSafeEqual };
|