@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/openapi.d.ts
CHANGED
|
@@ -329,6 +329,11 @@ export interface components {
|
|
|
329
329
|
* @description The target flow ID to route to.
|
|
330
330
|
*/
|
|
331
331
|
target_flow_id: string;
|
|
332
|
+
} | {
|
|
333
|
+
/** @enum {string} */
|
|
334
|
+
actionType: "assignRiskTags";
|
|
335
|
+
/** @description IDs of the RiskTagWeight rows (must belong to this org or be global). */
|
|
336
|
+
tag_ids: string[];
|
|
332
337
|
};
|
|
333
338
|
/**
|
|
334
339
|
* @description Status values that can be set via workflow actions.
|
|
@@ -485,6 +490,14 @@ export interface components {
|
|
|
485
490
|
};
|
|
486
491
|
/** @enum {string} */
|
|
487
492
|
ApiKeyType: "PUBLISHABLE" | "SECRET";
|
|
493
|
+
/** @description A single custom risk tag that was assigned to a flow result by the flow builder. */
|
|
494
|
+
AssignedRiskTag: {
|
|
495
|
+
/** Format: uuid */
|
|
496
|
+
id: string;
|
|
497
|
+
tag: string;
|
|
498
|
+
/** Format: double */
|
|
499
|
+
weight: number;
|
|
500
|
+
};
|
|
488
501
|
AutoOneClickKycConfig: {
|
|
489
502
|
/** @example { "en_title": "Verify with Partners" } */
|
|
490
503
|
labels?: {
|
|
@@ -536,6 +549,9 @@ export interface components {
|
|
|
536
549
|
BusinessInfoDisagreementSource: "submitted" | "document" | "catalog";
|
|
537
550
|
/** @description Per-field verification result comparing submitted business info against document-extracted values. */
|
|
538
551
|
BusinessInfoFieldVerification: {
|
|
552
|
+
/** @description The AI agent's one-sentence explanation of why this match classification was chosen.
|
|
553
|
+
* Present only when the agent was invoked (i.e. an LLM cross-check was performed). */
|
|
554
|
+
agentReasoning?: string | null;
|
|
539
555
|
/** @description The value extracted from the company catalog API. */
|
|
540
556
|
catalogValue?: string | null;
|
|
541
557
|
/** @description Sources that disagree with one another for this field. */
|
|
@@ -545,6 +561,12 @@ export interface components {
|
|
|
545
561
|
matchType: components["schemas"]["BusinessInfoMatchType"];
|
|
546
562
|
/** @description The user-submitted value for this field. */
|
|
547
563
|
submittedValue?: string | null;
|
|
564
|
+
/** @description The canonical corrected value recommended by the AI agent.
|
|
565
|
+
* For `Match` fields, `run_business_info_cross_check` automatically applies this value
|
|
566
|
+
* to the stored business information record (canonical normalization of an agreed value).
|
|
567
|
+
* For `Fuzzy`, `Mismatch`, and `NotFound` fields it is surfaced to compliance officers
|
|
568
|
+
* for manual review without mutating the stored record. */
|
|
569
|
+
suggestedValue?: string | null;
|
|
548
570
|
};
|
|
549
571
|
/**
|
|
550
572
|
* @description Match type for a single business information field against document-extracted values.
|
|
@@ -704,6 +726,14 @@ export interface components {
|
|
|
704
726
|
field: string;
|
|
705
727
|
/** @enum {string} */
|
|
706
728
|
op: "IS_NOT_NULL";
|
|
729
|
+
} | {
|
|
730
|
+
/** @description Whether the match is case-sensitive. Defaults to `false`. */
|
|
731
|
+
case_sensitive?: boolean | null;
|
|
732
|
+
/** @description Field path */
|
|
733
|
+
field: string;
|
|
734
|
+
/** @enum {string} */
|
|
735
|
+
op: "CONTAINS";
|
|
736
|
+
value: components["schemas"]["WorkflowValue"];
|
|
707
737
|
} | {
|
|
708
738
|
/** @enum {string} */
|
|
709
739
|
op: "LITERAL";
|
|
@@ -714,18 +744,17 @@ export interface components {
|
|
|
714
744
|
* @description Condition operator type representing all valid condition operators.
|
|
715
745
|
* @enum {string}
|
|
716
746
|
*/
|
|
717
|
-
ConditionOperator: "EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "AND" | "OR" | "NOT" | "IN" | "ANY" | "ALL" | "IS_NULL" | "IS_NOT_NULL" | "LITERAL";
|
|
747
|
+
ConditionOperator: "EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "AND" | "OR" | "NOT" | "IN" | "ANY" | "ALL" | "IS_NULL" | "IS_NOT_NULL" | "CONTAINS" | "LITERAL";
|
|
718
748
|
CountriesFilter: {
|
|
719
749
|
accepted: string[];
|
|
720
750
|
blocked: string[];
|
|
721
751
|
};
|
|
722
|
-
CreateVerificationRequestPayload: {
|
|
752
|
+
CreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
|
|
723
753
|
continueUrl?: string | null;
|
|
724
754
|
cookiesPolicyAccepted: boolean;
|
|
725
755
|
customData?: {
|
|
726
756
|
[key: string]: unknown;
|
|
727
757
|
} | null;
|
|
728
|
-
email?: string | null;
|
|
729
758
|
/** Format: uuid */
|
|
730
759
|
flowStepId?: string | null;
|
|
731
760
|
privacyPolicyAccepted: boolean;
|
|
@@ -734,6 +763,8 @@ export interface components {
|
|
|
734
763
|
CreateVerificationRequestResponse: {
|
|
735
764
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
736
765
|
};
|
|
766
|
+
/** @enum {string} */
|
|
767
|
+
CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID";
|
|
737
768
|
CustomDocumentConfig: {
|
|
738
769
|
enabled?: boolean;
|
|
739
770
|
/** Format: uuid */
|
|
@@ -819,6 +850,18 @@ export interface components {
|
|
|
819
850
|
} | null;
|
|
820
851
|
countriesFilter: components["schemas"]["CountriesFilter"];
|
|
821
852
|
documentTypesFilter: components["schemas"]["DocumentTypeFilter"];
|
|
853
|
+
/** @description Optional per-country overrides for the document-type filter.
|
|
854
|
+
*
|
|
855
|
+
* Keys are ISO 3166-1 alpha-2 country codes. When a country is present here, its
|
|
856
|
+
* `DocumentTypeFilter` fully overrides `document_types_filter` for that country
|
|
857
|
+
* (no union/intersection). An explicit empty entry rejects the country entirely
|
|
858
|
+
* (the country gate fails, not just the document-type gate).
|
|
859
|
+
*
|
|
860
|
+
* The custom deserializer validates each key via `CountryInfo::from_any_country_code`
|
|
861
|
+
* and normalises the stored key to its `iso_alpha_2` upper-case form. */
|
|
862
|
+
documentTypesFilterPerCountry?: {
|
|
863
|
+
[key: string]: components["schemas"]["DocumentTypeFilter"];
|
|
864
|
+
} | null;
|
|
822
865
|
enabledGovernmentProviders: {
|
|
823
866
|
[key: string]: components["schemas"]["SpidDocumentType"][];
|
|
824
867
|
};
|
|
@@ -865,7 +908,7 @@ export interface components {
|
|
|
865
908
|
/** @enum {string} */
|
|
866
909
|
DvConfigThreshold: "documentScorePercent";
|
|
867
910
|
/** @enum {string} */
|
|
868
|
-
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";
|
|
911
|
+
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";
|
|
869
912
|
DvResult: {
|
|
870
913
|
adminComment?: string | null;
|
|
871
914
|
authenticityChecks: number[][];
|
|
@@ -989,6 +1032,8 @@ export interface components {
|
|
|
989
1032
|
};
|
|
990
1033
|
FlowResult: {
|
|
991
1034
|
amlResults: components["schemas"]["AmlResult"][];
|
|
1035
|
+
/** @description Custom risk tags conditionally assigned by the flow builder's AssignRiskTags action. */
|
|
1036
|
+
assignedRiskTags?: components["schemas"]["AssignedRiskTag"][];
|
|
992
1037
|
/** Format: date-time */
|
|
993
1038
|
createdAt?: string | null;
|
|
994
1039
|
customData: {
|
|
@@ -1239,7 +1284,62 @@ export interface components {
|
|
|
1239
1284
|
/** Format: date-time */
|
|
1240
1285
|
updatedAt?: string | null;
|
|
1241
1286
|
};
|
|
1242
|
-
FlowStepConfig:
|
|
1287
|
+
FlowStepConfig: ({
|
|
1288
|
+
stepType: "FlowStepConfig";
|
|
1289
|
+
} & (components["schemas"]["AutoOneClickKycConfig"] & {
|
|
1290
|
+
/** @enum {string} */
|
|
1291
|
+
stepType: "AUTO_ONE_CLICK_KYC";
|
|
1292
|
+
})) | ({
|
|
1293
|
+
stepType: "FlowStepConfig";
|
|
1294
|
+
} & (components["schemas"]["DvConfig"] & {
|
|
1295
|
+
/** @enum {string} */
|
|
1296
|
+
stepType: "DV";
|
|
1297
|
+
})) | ({
|
|
1298
|
+
stepType: "FlowStepConfig";
|
|
1299
|
+
} & (components["schemas"]["FormConfig"] & {
|
|
1300
|
+
/** @enum {string} */
|
|
1301
|
+
stepType: "FORM";
|
|
1302
|
+
})) | ({
|
|
1303
|
+
stepType: "FlowStepConfig";
|
|
1304
|
+
} & (components["schemas"]["PoaConfig"] & {
|
|
1305
|
+
/** @enum {string} */
|
|
1306
|
+
stepType: "POA";
|
|
1307
|
+
})) | ({
|
|
1308
|
+
stepType: "FlowStepConfig";
|
|
1309
|
+
} & (components["schemas"]["KybConfig"] & {
|
|
1310
|
+
/** @enum {string} */
|
|
1311
|
+
stepType: "KYB";
|
|
1312
|
+
})) | ({
|
|
1313
|
+
stepType: "FlowStepConfig";
|
|
1314
|
+
} & (components["schemas"]["WalletConfig"] & {
|
|
1315
|
+
/** @enum {string} */
|
|
1316
|
+
stepType: "WALLET";
|
|
1317
|
+
})) | ({
|
|
1318
|
+
stepType: "FlowStepConfig";
|
|
1319
|
+
} & (components["schemas"]["LivenessConfig"] & {
|
|
1320
|
+
/** @enum {string} */
|
|
1321
|
+
stepType: "LIVENESS";
|
|
1322
|
+
})) | ({
|
|
1323
|
+
stepType: "FlowStepConfig";
|
|
1324
|
+
} & (components["schemas"]["DocumentSelectionConfig"] & {
|
|
1325
|
+
/** @enum {string} */
|
|
1326
|
+
stepType: "DOCUMENT_SELECTION";
|
|
1327
|
+
})) | ({
|
|
1328
|
+
stepType: "FlowStepConfig";
|
|
1329
|
+
} & (components["schemas"]["GeolocationConfig"] & {
|
|
1330
|
+
/** @enum {string} */
|
|
1331
|
+
stepType: "GEOLOCATION";
|
|
1332
|
+
})) | ({
|
|
1333
|
+
stepType: "FlowStepConfig";
|
|
1334
|
+
} & (components["schemas"]["SpidConfig"] & {
|
|
1335
|
+
/** @enum {string} */
|
|
1336
|
+
stepType: "SPID";
|
|
1337
|
+
})) | ({
|
|
1338
|
+
stepType: "FlowStepConfig";
|
|
1339
|
+
} & (components["schemas"]["PhoneConfig"] & {
|
|
1340
|
+
/** @enum {string} */
|
|
1341
|
+
stepType: "PHONE";
|
|
1342
|
+
}));
|
|
1243
1343
|
FlowStepInfo: {
|
|
1244
1344
|
CONFIG: components["schemas"]["FlowStepConfig"];
|
|
1245
1345
|
/** Format: date-time */
|
|
@@ -1490,8 +1590,14 @@ export interface components {
|
|
|
1490
1590
|
mode: "PASSIVE";
|
|
1491
1591
|
};
|
|
1492
1592
|
GetNextStepPayload: {
|
|
1593
|
+
/** @description Wallet address. Required when `credentialType` is `WALLET`. */
|
|
1594
|
+
address?: string | null;
|
|
1595
|
+
chain?: components["schemas"]["SiwxChain"] | null;
|
|
1596
|
+
credentialType?: components["schemas"]["CredentialType"] | null;
|
|
1493
1597
|
/** @description Email address of the user whose verification progress should be queried. */
|
|
1494
|
-
email
|
|
1598
|
+
email?: string | null;
|
|
1599
|
+
/** @description External identifier. Required when `credentialType` is `EXTERNAL_ID`. */
|
|
1600
|
+
externalId?: string | null;
|
|
1495
1601
|
};
|
|
1496
1602
|
GetNextStepResponse: {
|
|
1497
1603
|
/** @description Custom data associated with the flow result, if one exists. */
|
|
@@ -1510,9 +1616,12 @@ export interface components {
|
|
|
1510
1616
|
nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
1511
1617
|
};
|
|
1512
1618
|
GetVerificationRequestResponse: {
|
|
1619
|
+
/** @description External ID credential configured for this identity, if any. */
|
|
1620
|
+
externalId?: string | null;
|
|
1513
1621
|
identity: components["schemas"]["Identity"];
|
|
1514
1622
|
passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
|
|
1515
1623
|
verificationRequest: components["schemas"]["VerificationRequest"];
|
|
1624
|
+
wallet?: components["schemas"]["WalletIdentifierPayload"] | null;
|
|
1516
1625
|
};
|
|
1517
1626
|
/**
|
|
1518
1627
|
* @description Represents the different head movements that can be requested in a liveness challenge
|
|
@@ -2095,12 +2204,15 @@ export interface components {
|
|
|
2095
2204
|
/** Format: date-time */
|
|
2096
2205
|
createdAt?: string | null;
|
|
2097
2206
|
/** Format: uuid */
|
|
2207
|
+
documentId?: string | null;
|
|
2208
|
+
/** Format: uuid */
|
|
2098
2209
|
flowResultId: string;
|
|
2099
2210
|
flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
2100
2211
|
/** Format: uuid */
|
|
2101
2212
|
flowStepId?: string | null;
|
|
2102
2213
|
/** Format: uuid */
|
|
2103
2214
|
id: string;
|
|
2215
|
+
phoneNumberE164?: string | null;
|
|
2104
2216
|
phoneNumberLast4: string;
|
|
2105
2217
|
status: components["schemas"]["ResultStatus"];
|
|
2106
2218
|
/** Format: date-time */
|
|
@@ -2348,18 +2460,16 @@ export interface components {
|
|
|
2348
2460
|
passportNumber?: components["schemas"]["MatchDetail"] | null;
|
|
2349
2461
|
postalCode?: components["schemas"]["MatchDetail"] | null;
|
|
2350
2462
|
};
|
|
2351
|
-
|
|
2463
|
+
/** @description SDK payload for creating or resuming a verification request on behalf of a user.
|
|
2464
|
+
*
|
|
2465
|
+
* At least one of `email` or `wallet` must be provided (enforced by [`VerificationIdentifier`]
|
|
2466
|
+
* validation). Both may be provided simultaneously: wallet takes priority for `zid`, email is
|
|
2467
|
+
* stored as a contact address. */
|
|
2468
|
+
SdkCreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
|
|
2352
2469
|
/** @description Arbitrary key-value metadata to attach to this verification request. */
|
|
2353
2470
|
customData?: {
|
|
2354
2471
|
[key: string]: unknown;
|
|
2355
2472
|
} | null;
|
|
2356
|
-
/** @description Email address of the user being verified. */
|
|
2357
|
-
email: string;
|
|
2358
|
-
/**
|
|
2359
|
-
* Format: uuid
|
|
2360
|
-
* @description The ID of the flow step to start or resume for this user.
|
|
2361
|
-
*/
|
|
2362
|
-
flowStepId: string;
|
|
2363
2473
|
};
|
|
2364
2474
|
SdkCreateVerificationRequestResponse: {
|
|
2365
2475
|
/** @description The email address associated with the verified user's identity, if available. */
|
|
@@ -2382,17 +2492,25 @@ export interface components {
|
|
|
2382
2492
|
* @description Canonical security/authenticity check types.
|
|
2383
2493
|
* @enum {string}
|
|
2384
2494
|
*/
|
|
2385
|
-
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";
|
|
2495
|
+
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";
|
|
2386
2496
|
SelectOptions: {
|
|
2387
2497
|
isOtherAllowed: boolean;
|
|
2388
2498
|
values: string[];
|
|
2389
2499
|
};
|
|
2390
2500
|
Settings: {
|
|
2501
|
+
/** @description When true (default), prompt users to create a passkey during the verification flow.
|
|
2502
|
+
* When false, skip the passkey creation step.
|
|
2503
|
+
* Optional so that patch requests only write this field when explicitly provided. */
|
|
2504
|
+
askPasskeyCreation?: boolean | null;
|
|
2391
2505
|
/** Format: date-time */
|
|
2392
2506
|
createdAt?: string | null;
|
|
2393
2507
|
delayFlowResults?: boolean | null;
|
|
2394
2508
|
emailNotifications?: string[] | null;
|
|
2395
2509
|
extendedWebhook?: boolean | null;
|
|
2510
|
+
/** @description When true (default), always require vault unlock for one-click KYC even if a grant already exists.
|
|
2511
|
+
* When false, skip vault unlock if an active KYC grant already exists for the organization.
|
|
2512
|
+
* Optional so that patch requests only write this field when explicitly provided. */
|
|
2513
|
+
oneClickAlwaysRequestUnlockVault?: boolean | null;
|
|
2396
2514
|
primaryColor?: string | null;
|
|
2397
2515
|
profileImage?: string | null;
|
|
2398
2516
|
published?: boolean;
|
|
@@ -2408,6 +2526,13 @@ export interface components {
|
|
|
2408
2526
|
/** @enum {string} */
|
|
2409
2527
|
SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
|
|
2410
2528
|
SpidConfig: {
|
|
2529
|
+
/**
|
|
2530
|
+
* Format: uuid
|
|
2531
|
+
* @description The ID of the `DocumentSelection` step that precedes this SPID step.
|
|
2532
|
+
* Mirrors the same field on [`DvConfig`] — makes the step link explicit and
|
|
2533
|
+
* independent of step ordering.
|
|
2534
|
+
*/
|
|
2535
|
+
documentSelectionStepId?: string;
|
|
2411
2536
|
/** @example { "default": "Next step" } */
|
|
2412
2537
|
labels?: {
|
|
2413
2538
|
[key: string]: string;
|
|
@@ -2490,7 +2615,7 @@ export interface components {
|
|
|
2490
2615
|
*/
|
|
2491
2616
|
Uuid: string;
|
|
2492
2617
|
/** @enum {string} */
|
|
2493
|
-
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";
|
|
2618
|
+
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";
|
|
2494
2619
|
VaultUnlockPasskeyData: {
|
|
2495
2620
|
/** @description Passkey challenge for vault unlock (base64url) */
|
|
2496
2621
|
challenge: string;
|
|
@@ -2501,6 +2626,46 @@ export interface components {
|
|
|
2501
2626
|
/** @description PRF salt for vault unlock (base64url) */
|
|
2502
2627
|
prfSalt: string;
|
|
2503
2628
|
};
|
|
2629
|
+
/** @description Identity fields shared by all verification-request creation payloads.
|
|
2630
|
+
*
|
|
2631
|
+
* At least one of `email` or a [`VerificationIdentifierCredential::Wallet`] inside
|
|
2632
|
+
* `credentials` must be provided — a wallet is the only credential that can form a
|
|
2633
|
+
* `zid` without an email address.
|
|
2634
|
+
*
|
|
2635
|
+
* Flatten this into your payload struct with `#[serde(flatten)]` to keep the fields at
|
|
2636
|
+
* the top level of the JSON object — backward-compatible with callers that only send
|
|
2637
|
+
* `email`.
|
|
2638
|
+
*
|
|
2639
|
+
* `MagicLink` is provisioned automatically by [`VerificationIdentifier::resolve`] for
|
|
2640
|
+
* any email-bearing identity and does not need to be listed in `credentials`. */
|
|
2641
|
+
VerificationIdentifier: {
|
|
2642
|
+
/** @description Credentials to enable for this identity (e.g. wallet, magic-link).
|
|
2643
|
+
* The first `Wallet` entry determines the `zid`; all entries are provisioned on
|
|
2644
|
+
* identity creation. */
|
|
2645
|
+
credentials?: components["schemas"]["VerificationIdentifierCredential"][];
|
|
2646
|
+
/** @description Email address of the user. Used for notifications and as the `zid` when no wallet
|
|
2647
|
+
* credential is provided. */
|
|
2648
|
+
email?: string | null;
|
|
2649
|
+
};
|
|
2650
|
+
/** @description A credential that can be provisioned via a verification-request creation payload.
|
|
2651
|
+
*
|
|
2652
|
+
* Tagged with the same `type` discriminant strings as [`CredentialType`] so that
|
|
2653
|
+
* `"WALLET"` / `"EXTERNAL_ID"` are consistent across the whole API surface.
|
|
2654
|
+
*
|
|
2655
|
+
* Only the variants that carry public-API meaning are included here; internal
|
|
2656
|
+
* credentials such as `PASSWORD`, `PASSKEY`, `BOT_TOKEN`, and `MAGIC_LINK` are not
|
|
2657
|
+
* exposed — `MAGIC_LINK` is always provisioned automatically by [`VerificationIdentifier::resolve`]
|
|
2658
|
+
* for any email-bearing identity. */
|
|
2659
|
+
VerificationIdentifierCredential: {
|
|
2660
|
+
address: string;
|
|
2661
|
+
chain: components["schemas"]["SiwxChain"];
|
|
2662
|
+
/** @enum {string} */
|
|
2663
|
+
type: "WALLET";
|
|
2664
|
+
} | {
|
|
2665
|
+
externalId: string;
|
|
2666
|
+
/** @enum {string} */
|
|
2667
|
+
type: "EXTERNAL_ID";
|
|
2668
|
+
};
|
|
2504
2669
|
VerificationRequest: {
|
|
2505
2670
|
amlResult?: components["schemas"]["AmlResult"] | null;
|
|
2506
2671
|
/** Format: int32 */
|
|
@@ -2577,6 +2742,11 @@ export interface components {
|
|
|
2577
2742
|
[key: string]: string;
|
|
2578
2743
|
};
|
|
2579
2744
|
};
|
|
2745
|
+
/** @description Blockchain wallet used as (or alongside) an email to identify a user. */
|
|
2746
|
+
WalletIdentifierPayload: {
|
|
2747
|
+
address: string;
|
|
2748
|
+
chain: components["schemas"]["SiwxChain"];
|
|
2749
|
+
};
|
|
2580
2750
|
WalletResult: {
|
|
2581
2751
|
/** Format: date-time */
|
|
2582
2752
|
createdAt?: string | null;
|
|
@@ -2967,7 +3137,15 @@ export interface operations {
|
|
|
2967
3137
|
sandbox: boolean;
|
|
2968
3138
|
locale?: components["schemas"]["Locale"];
|
|
2969
3139
|
/** @description Email address of the user whose verification progress should be queried. */
|
|
2970
|
-
email
|
|
3140
|
+
email?: string | null;
|
|
3141
|
+
/** @description Credential type for wallet or external-ID based resolution (`WALLET` or `EXTERNAL_ID`). */
|
|
3142
|
+
credentialType?: components["schemas"]["CredentialType"] | null;
|
|
3143
|
+
/** @description Wallet chain. Required when `credentialType` is `WALLET`. */
|
|
3144
|
+
chain?: components["schemas"]["SiwxChain"] | null;
|
|
3145
|
+
/** @description Wallet address. Required when `credentialType` is `WALLET`. */
|
|
3146
|
+
address?: string | null;
|
|
3147
|
+
/** @description External identifier. Required when `credentialType` is `EXTERNAL_ID`. */
|
|
3148
|
+
externalId?: string | null;
|
|
2971
3149
|
};
|
|
2972
3150
|
header?: never;
|
|
2973
3151
|
path: {
|