@zyphe-sdk/core 0.2.0 → 0.2.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/dist/index.d.ts +36 -20
- package/dist/openapi.d.ts +34 -14
- package/dist/openapi.json +141 -33
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -411,8 +411,6 @@ interface components {
|
|
|
411
411
|
riskScore: components["schemas"]["RiskScore"];
|
|
412
412
|
riskTopics: string[];
|
|
413
413
|
};
|
|
414
|
-
/** @enum {string} */
|
|
415
|
-
AmlModerationStatus: "approved" | "rejected" | "escalated";
|
|
416
414
|
AmlOccupancy: {
|
|
417
415
|
endDate?: components["schemas"]["FieldWithControl"];
|
|
418
416
|
post?: components["schemas"]["AmlPosition"][];
|
|
@@ -446,9 +444,7 @@ interface components {
|
|
|
446
444
|
AmlResult: {
|
|
447
445
|
/** Format: date-time */
|
|
448
446
|
createdAt: string;
|
|
449
|
-
data
|
|
450
|
-
[key: string]: unknown;
|
|
451
|
-
};
|
|
447
|
+
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
452
448
|
/** Format: uuid */
|
|
453
449
|
id: string;
|
|
454
450
|
pep: boolean;
|
|
@@ -930,7 +926,7 @@ interface components {
|
|
|
930
926
|
status: components["schemas"]["ResultStatus"];
|
|
931
927
|
};
|
|
932
928
|
/** @enum {string} */
|
|
933
|
-
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing";
|
|
929
|
+
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "send_notification" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing";
|
|
934
930
|
/** @description Represents an executed action with its ID and type. */
|
|
935
931
|
ExecutedAction: {
|
|
936
932
|
actionConfig: components["schemas"]["ActionConfig"];
|
|
@@ -1500,8 +1496,17 @@ interface components {
|
|
|
1500
1496
|
email: string;
|
|
1501
1497
|
};
|
|
1502
1498
|
GetNextStepResponse: {
|
|
1499
|
+
/** @description Custom data associated with the flow result, if one exists. */
|
|
1500
|
+
customData?: {
|
|
1501
|
+
[key: string]: unknown;
|
|
1502
|
+
} | null;
|
|
1503
1503
|
/** @description Actions that were automatically executed as part of flow evaluation (e.g. status transitions). */
|
|
1504
1504
|
executedActions?: components["schemas"]["ExecutedAction"][];
|
|
1505
|
+
/**
|
|
1506
|
+
* Format: uuid
|
|
1507
|
+
* @description The ID of the flow result record, if one exists for this user.
|
|
1508
|
+
*/
|
|
1509
|
+
flowResultId?: string | null;
|
|
1505
1510
|
/** @description Whether the user has completed all required steps in the flow. */
|
|
1506
1511
|
isCompleted: boolean;
|
|
1507
1512
|
nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
@@ -1580,50 +1585,55 @@ interface components {
|
|
|
1580
1585
|
};
|
|
1581
1586
|
name: string;
|
|
1582
1587
|
options: unknown;
|
|
1583
|
-
|
|
1588
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1584
1589
|
/** @enum {string} */
|
|
1585
1590
|
type: "date";
|
|
1586
1591
|
value?: unknown;
|
|
1592
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1587
1593
|
} | {
|
|
1588
1594
|
label: {
|
|
1589
1595
|
[key: string]: string;
|
|
1590
1596
|
};
|
|
1591
1597
|
name: string;
|
|
1592
1598
|
options: unknown;
|
|
1593
|
-
|
|
1599
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1594
1600
|
/** @enum {string} */
|
|
1595
1601
|
type: "text";
|
|
1596
1602
|
value?: unknown;
|
|
1603
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1597
1604
|
} | {
|
|
1598
1605
|
label: {
|
|
1599
1606
|
[key: string]: string;
|
|
1600
1607
|
};
|
|
1601
1608
|
name: string;
|
|
1602
1609
|
options: unknown;
|
|
1603
|
-
|
|
1610
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1604
1611
|
/** @enum {string} */
|
|
1605
1612
|
type: "textarea";
|
|
1606
1613
|
value?: unknown;
|
|
1614
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1607
1615
|
} | {
|
|
1608
1616
|
label: {
|
|
1609
1617
|
[key: string]: string;
|
|
1610
1618
|
};
|
|
1611
1619
|
name: string;
|
|
1612
1620
|
options: unknown;
|
|
1613
|
-
|
|
1621
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1614
1622
|
/** @enum {string} */
|
|
1615
1623
|
type: "checkbox";
|
|
1616
1624
|
value?: unknown;
|
|
1625
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1617
1626
|
} | {
|
|
1618
1627
|
label: {
|
|
1619
1628
|
[key: string]: string;
|
|
1620
1629
|
};
|
|
1621
1630
|
name: string;
|
|
1622
1631
|
options: components["schemas"]["FileOptions"];
|
|
1623
|
-
|
|
1632
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1624
1633
|
/** @enum {string} */
|
|
1625
1634
|
type: "file";
|
|
1626
1635
|
value?: unknown;
|
|
1636
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1627
1637
|
} | {
|
|
1628
1638
|
label: {
|
|
1629
1639
|
[key: string]: string;
|
|
@@ -1636,20 +1646,22 @@ interface components {
|
|
|
1636
1646
|
};
|
|
1637
1647
|
};
|
|
1638
1648
|
options: components["schemas"]["SelectOptions"];
|
|
1639
|
-
|
|
1649
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1640
1650
|
/** @enum {string} */
|
|
1641
1651
|
type: "select";
|
|
1642
1652
|
value?: unknown;
|
|
1653
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1643
1654
|
} | {
|
|
1644
1655
|
label: {
|
|
1645
1656
|
[key: string]: string;
|
|
1646
1657
|
};
|
|
1647
1658
|
name: string;
|
|
1648
1659
|
options: unknown;
|
|
1649
|
-
|
|
1660
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1650
1661
|
/** @enum {string} */
|
|
1651
1662
|
type: "place";
|
|
1652
1663
|
value?: unknown;
|
|
1664
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1653
1665
|
};
|
|
1654
1666
|
InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
|
|
1655
1667
|
/** @enum {string} */
|
|
@@ -2105,6 +2117,7 @@ interface components {
|
|
|
2105
2117
|
text: {
|
|
2106
2118
|
[key: string]: string;
|
|
2107
2119
|
};
|
|
2120
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2108
2121
|
};
|
|
2109
2122
|
PoaConfig: {
|
|
2110
2123
|
documentFilter: components["schemas"]["PoaDocumentType"][];
|
|
@@ -2186,6 +2199,13 @@ interface components {
|
|
|
2186
2199
|
autoOneClickKycData?: components["schemas"]["AutoOneClickKycData"] | null;
|
|
2187
2200
|
/** @description Biometric check data (for face matching results) */
|
|
2188
2201
|
biometricCheckData?: unknown;
|
|
2202
|
+
/**
|
|
2203
|
+
* Format: date
|
|
2204
|
+
* @description Date on which a DocumentExpired webhook was last sent for this DV result.
|
|
2205
|
+
* Used by the AML worker to deduplicate repeated expiry notifications across
|
|
2206
|
+
* refresh ticks — once set, the webhook is not re-enqueued.
|
|
2207
|
+
*/
|
|
2208
|
+
documentExpiredWebhookSentAt?: string | null;
|
|
2189
2209
|
/** @description Image quality check results */
|
|
2190
2210
|
imageQuality?: components["schemas"]["ImageQualityCheckResult"][] | null;
|
|
2191
2211
|
/** @description Raw liveness data from face verification */
|
|
@@ -2472,7 +2492,7 @@ interface components {
|
|
|
2472
2492
|
*/
|
|
2473
2493
|
Uuid: string;
|
|
2474
2494
|
/** @enum {string} */
|
|
2475
|
-
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_workflow_graph_invalid" | "validation_invalid_role_for_invitation";
|
|
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";
|
|
2476
2496
|
VaultUnlockPasskeyData: {
|
|
2477
2497
|
/** @description Passkey challenge for vault unlock (base64url) */
|
|
2478
2498
|
challenge: string;
|
|
@@ -4206,9 +4226,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4206
4226
|
}[] | undefined;
|
|
4207
4227
|
amlResults: {
|
|
4208
4228
|
createdAt: string;
|
|
4209
|
-
data
|
|
4210
|
-
[key: string]: unknown;
|
|
4211
|
-
};
|
|
4229
|
+
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
4212
4230
|
id: string;
|
|
4213
4231
|
pep: boolean;
|
|
4214
4232
|
sanctions: boolean;
|
|
@@ -4392,9 +4410,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
4392
4410
|
}[] | undefined;
|
|
4393
4411
|
amlResults: {
|
|
4394
4412
|
createdAt: string;
|
|
4395
|
-
data
|
|
4396
|
-
[key: string]: unknown;
|
|
4397
|
-
};
|
|
4413
|
+
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
4398
4414
|
id: string;
|
|
4399
4415
|
pep: boolean;
|
|
4400
4416
|
sanctions: boolean;
|
package/dist/openapi.d.ts
CHANGED
|
@@ -409,8 +409,6 @@ export interface components {
|
|
|
409
409
|
riskScore: components["schemas"]["RiskScore"];
|
|
410
410
|
riskTopics: string[];
|
|
411
411
|
};
|
|
412
|
-
/** @enum {string} */
|
|
413
|
-
AmlModerationStatus: "approved" | "rejected" | "escalated";
|
|
414
412
|
AmlOccupancy: {
|
|
415
413
|
endDate?: components["schemas"]["FieldWithControl"];
|
|
416
414
|
post?: components["schemas"]["AmlPosition"][];
|
|
@@ -444,9 +442,7 @@ export interface components {
|
|
|
444
442
|
AmlResult: {
|
|
445
443
|
/** Format: date-time */
|
|
446
444
|
createdAt: string;
|
|
447
|
-
data
|
|
448
|
-
[key: string]: unknown;
|
|
449
|
-
};
|
|
445
|
+
data?: components["schemas"]["AmlRiskResult"] | null;
|
|
450
446
|
/** Format: uuid */
|
|
451
447
|
id: string;
|
|
452
448
|
pep: boolean;
|
|
@@ -928,7 +924,7 @@ export interface components {
|
|
|
928
924
|
status: components["schemas"]["ResultStatus"];
|
|
929
925
|
};
|
|
930
926
|
/** @enum {string} */
|
|
931
|
-
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing";
|
|
927
|
+
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "send_notification" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing";
|
|
932
928
|
/** @description Represents an executed action with its ID and type. */
|
|
933
929
|
ExecutedAction: {
|
|
934
930
|
actionConfig: components["schemas"]["ActionConfig"];
|
|
@@ -1498,8 +1494,17 @@ export interface components {
|
|
|
1498
1494
|
email: string;
|
|
1499
1495
|
};
|
|
1500
1496
|
GetNextStepResponse: {
|
|
1497
|
+
/** @description Custom data associated with the flow result, if one exists. */
|
|
1498
|
+
customData?: {
|
|
1499
|
+
[key: string]: unknown;
|
|
1500
|
+
} | null;
|
|
1501
1501
|
/** @description Actions that were automatically executed as part of flow evaluation (e.g. status transitions). */
|
|
1502
1502
|
executedActions?: components["schemas"]["ExecutedAction"][];
|
|
1503
|
+
/**
|
|
1504
|
+
* Format: uuid
|
|
1505
|
+
* @description The ID of the flow result record, if one exists for this user.
|
|
1506
|
+
*/
|
|
1507
|
+
flowResultId?: string | null;
|
|
1503
1508
|
/** @description Whether the user has completed all required steps in the flow. */
|
|
1504
1509
|
isCompleted: boolean;
|
|
1505
1510
|
nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
|
|
@@ -1578,50 +1583,55 @@ export interface components {
|
|
|
1578
1583
|
};
|
|
1579
1584
|
name: string;
|
|
1580
1585
|
options: unknown;
|
|
1581
|
-
|
|
1586
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1582
1587
|
/** @enum {string} */
|
|
1583
1588
|
type: "date";
|
|
1584
1589
|
value?: unknown;
|
|
1590
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1585
1591
|
} | {
|
|
1586
1592
|
label: {
|
|
1587
1593
|
[key: string]: string;
|
|
1588
1594
|
};
|
|
1589
1595
|
name: string;
|
|
1590
1596
|
options: unknown;
|
|
1591
|
-
|
|
1597
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1592
1598
|
/** @enum {string} */
|
|
1593
1599
|
type: "text";
|
|
1594
1600
|
value?: unknown;
|
|
1601
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1595
1602
|
} | {
|
|
1596
1603
|
label: {
|
|
1597
1604
|
[key: string]: string;
|
|
1598
1605
|
};
|
|
1599
1606
|
name: string;
|
|
1600
1607
|
options: unknown;
|
|
1601
|
-
|
|
1608
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1602
1609
|
/** @enum {string} */
|
|
1603
1610
|
type: "textarea";
|
|
1604
1611
|
value?: unknown;
|
|
1612
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1605
1613
|
} | {
|
|
1606
1614
|
label: {
|
|
1607
1615
|
[key: string]: string;
|
|
1608
1616
|
};
|
|
1609
1617
|
name: string;
|
|
1610
1618
|
options: unknown;
|
|
1611
|
-
|
|
1619
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1612
1620
|
/** @enum {string} */
|
|
1613
1621
|
type: "checkbox";
|
|
1614
1622
|
value?: unknown;
|
|
1623
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1615
1624
|
} | {
|
|
1616
1625
|
label: {
|
|
1617
1626
|
[key: string]: string;
|
|
1618
1627
|
};
|
|
1619
1628
|
name: string;
|
|
1620
1629
|
options: components["schemas"]["FileOptions"];
|
|
1621
|
-
|
|
1630
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1622
1631
|
/** @enum {string} */
|
|
1623
1632
|
type: "file";
|
|
1624
1633
|
value?: unknown;
|
|
1634
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1625
1635
|
} | {
|
|
1626
1636
|
label: {
|
|
1627
1637
|
[key: string]: string;
|
|
@@ -1634,20 +1644,22 @@ export interface components {
|
|
|
1634
1644
|
};
|
|
1635
1645
|
};
|
|
1636
1646
|
options: components["schemas"]["SelectOptions"];
|
|
1637
|
-
|
|
1647
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1638
1648
|
/** @enum {string} */
|
|
1639
1649
|
type: "select";
|
|
1640
1650
|
value?: unknown;
|
|
1651
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1641
1652
|
} | {
|
|
1642
1653
|
label: {
|
|
1643
1654
|
[key: string]: string;
|
|
1644
1655
|
};
|
|
1645
1656
|
name: string;
|
|
1646
1657
|
options: unknown;
|
|
1647
|
-
|
|
1658
|
+
requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1648
1659
|
/** @enum {string} */
|
|
1649
1660
|
type: "place";
|
|
1650
1661
|
value?: unknown;
|
|
1662
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
1651
1663
|
};
|
|
1652
1664
|
InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
|
|
1653
1665
|
/** @enum {string} */
|
|
@@ -2103,6 +2115,7 @@ export interface components {
|
|
|
2103
2115
|
text: {
|
|
2104
2116
|
[key: string]: string;
|
|
2105
2117
|
};
|
|
2118
|
+
visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
|
|
2106
2119
|
};
|
|
2107
2120
|
PoaConfig: {
|
|
2108
2121
|
documentFilter: components["schemas"]["PoaDocumentType"][];
|
|
@@ -2184,6 +2197,13 @@ export interface components {
|
|
|
2184
2197
|
autoOneClickKycData?: components["schemas"]["AutoOneClickKycData"] | null;
|
|
2185
2198
|
/** @description Biometric check data (for face matching results) */
|
|
2186
2199
|
biometricCheckData?: unknown;
|
|
2200
|
+
/**
|
|
2201
|
+
* Format: date
|
|
2202
|
+
* @description Date on which a DocumentExpired webhook was last sent for this DV result.
|
|
2203
|
+
* Used by the AML worker to deduplicate repeated expiry notifications across
|
|
2204
|
+
* refresh ticks — once set, the webhook is not re-enqueued.
|
|
2205
|
+
*/
|
|
2206
|
+
documentExpiredWebhookSentAt?: string | null;
|
|
2187
2207
|
/** @description Image quality check results */
|
|
2188
2208
|
imageQuality?: components["schemas"]["ImageQualityCheckResult"][] | null;
|
|
2189
2209
|
/** @description Raw liveness data from face verification */
|
|
@@ -2470,7 +2490,7 @@ export interface components {
|
|
|
2470
2490
|
*/
|
|
2471
2491
|
Uuid: string;
|
|
2472
2492
|
/** @enum {string} */
|
|
2473
|
-
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_workflow_graph_invalid" | "validation_invalid_role_for_invitation";
|
|
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";
|
|
2474
2494
|
VaultUnlockPasskeyData: {
|
|
2475
2495
|
/** @description Passkey challenge for vault unlock (base64url) */
|
|
2476
2496
|
challenge: string;
|
package/dist/openapi.json
CHANGED
|
@@ -2125,14 +2125,6 @@
|
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
2127
|
},
|
|
2128
|
-
"AmlModerationStatus": {
|
|
2129
|
-
"type": "string",
|
|
2130
|
-
"enum": [
|
|
2131
|
-
"approved",
|
|
2132
|
-
"rejected",
|
|
2133
|
-
"escalated"
|
|
2134
|
-
]
|
|
2135
|
-
},
|
|
2136
2128
|
"AmlOccupancy": {
|
|
2137
2129
|
"type": "object",
|
|
2138
2130
|
"properties": {
|
|
@@ -2241,7 +2233,6 @@
|
|
|
2241
2233
|
"type": "object",
|
|
2242
2234
|
"required": [
|
|
2243
2235
|
"id",
|
|
2244
|
-
"data",
|
|
2245
2236
|
"pep",
|
|
2246
2237
|
"sanctions",
|
|
2247
2238
|
"createdAt",
|
|
@@ -2253,8 +2244,12 @@
|
|
|
2253
2244
|
"format": "date-time"
|
|
2254
2245
|
},
|
|
2255
2246
|
"data": {
|
|
2256
|
-
"
|
|
2257
|
-
|
|
2247
|
+
"allOf": [
|
|
2248
|
+
{
|
|
2249
|
+
"$ref": "#/components/schemas/AmlRiskResult"
|
|
2250
|
+
}
|
|
2251
|
+
],
|
|
2252
|
+
"nullable": true
|
|
2258
2253
|
},
|
|
2259
2254
|
"id": {
|
|
2260
2255
|
"type": "string",
|
|
@@ -3779,6 +3774,7 @@
|
|
|
3779
3774
|
"origin_not_allowed",
|
|
3780
3775
|
"step_already_completed",
|
|
3781
3776
|
"send_sms",
|
|
3777
|
+
"send_notification",
|
|
3782
3778
|
"parse_error",
|
|
3783
3779
|
"inviter_organization_not_found",
|
|
3784
3780
|
"forbidden",
|
|
@@ -5787,6 +5783,12 @@
|
|
|
5787
5783
|
"isCompleted"
|
|
5788
5784
|
],
|
|
5789
5785
|
"properties": {
|
|
5786
|
+
"customData": {
|
|
5787
|
+
"type": "object",
|
|
5788
|
+
"description": "Custom data associated with the flow result, if one exists.",
|
|
5789
|
+
"additionalProperties": {},
|
|
5790
|
+
"nullable": true
|
|
5791
|
+
},
|
|
5790
5792
|
"executedActions": {
|
|
5791
5793
|
"type": "array",
|
|
5792
5794
|
"items": {
|
|
@@ -5794,6 +5796,12 @@
|
|
|
5794
5796
|
},
|
|
5795
5797
|
"description": "Actions that were automatically executed as part of flow evaluation (e.g. status transitions)."
|
|
5796
5798
|
},
|
|
5799
|
+
"flowResultId": {
|
|
5800
|
+
"type": "string",
|
|
5801
|
+
"format": "uuid",
|
|
5802
|
+
"description": "The ID of the flow result record, if one exists for this user.",
|
|
5803
|
+
"nullable": true
|
|
5804
|
+
},
|
|
5797
5805
|
"isCompleted": {
|
|
5798
5806
|
"type": "boolean",
|
|
5799
5807
|
"description": "Whether the user has completed all required steps in the flow."
|
|
@@ -5952,7 +5960,6 @@
|
|
|
5952
5960
|
{
|
|
5953
5961
|
"type": "object",
|
|
5954
5962
|
"required": [
|
|
5955
|
-
"required",
|
|
5956
5963
|
"label",
|
|
5957
5964
|
"name",
|
|
5958
5965
|
"options",
|
|
@@ -5969,8 +5976,13 @@
|
|
|
5969
5976
|
"type": "string"
|
|
5970
5977
|
},
|
|
5971
5978
|
"options": {},
|
|
5972
|
-
"
|
|
5973
|
-
"
|
|
5979
|
+
"requiredWhen": {
|
|
5980
|
+
"allOf": [
|
|
5981
|
+
{
|
|
5982
|
+
"$ref": "#/components/schemas/Condition"
|
|
5983
|
+
}
|
|
5984
|
+
],
|
|
5985
|
+
"nullable": true
|
|
5974
5986
|
},
|
|
5975
5987
|
"type": {
|
|
5976
5988
|
"type": "string",
|
|
@@ -5980,13 +5992,20 @@
|
|
|
5980
5992
|
},
|
|
5981
5993
|
"value": {
|
|
5982
5994
|
"nullable": true
|
|
5995
|
+
},
|
|
5996
|
+
"visibleWhen": {
|
|
5997
|
+
"allOf": [
|
|
5998
|
+
{
|
|
5999
|
+
"$ref": "#/components/schemas/Condition"
|
|
6000
|
+
}
|
|
6001
|
+
],
|
|
6002
|
+
"nullable": true
|
|
5983
6003
|
}
|
|
5984
6004
|
}
|
|
5985
6005
|
},
|
|
5986
6006
|
{
|
|
5987
6007
|
"type": "object",
|
|
5988
6008
|
"required": [
|
|
5989
|
-
"required",
|
|
5990
6009
|
"label",
|
|
5991
6010
|
"name",
|
|
5992
6011
|
"options",
|
|
@@ -6003,8 +6022,13 @@
|
|
|
6003
6022
|
"type": "string"
|
|
6004
6023
|
},
|
|
6005
6024
|
"options": {},
|
|
6006
|
-
"
|
|
6007
|
-
"
|
|
6025
|
+
"requiredWhen": {
|
|
6026
|
+
"allOf": [
|
|
6027
|
+
{
|
|
6028
|
+
"$ref": "#/components/schemas/Condition"
|
|
6029
|
+
}
|
|
6030
|
+
],
|
|
6031
|
+
"nullable": true
|
|
6008
6032
|
},
|
|
6009
6033
|
"type": {
|
|
6010
6034
|
"type": "string",
|
|
@@ -6014,13 +6038,20 @@
|
|
|
6014
6038
|
},
|
|
6015
6039
|
"value": {
|
|
6016
6040
|
"nullable": true
|
|
6041
|
+
},
|
|
6042
|
+
"visibleWhen": {
|
|
6043
|
+
"allOf": [
|
|
6044
|
+
{
|
|
6045
|
+
"$ref": "#/components/schemas/Condition"
|
|
6046
|
+
}
|
|
6047
|
+
],
|
|
6048
|
+
"nullable": true
|
|
6017
6049
|
}
|
|
6018
6050
|
}
|
|
6019
6051
|
},
|
|
6020
6052
|
{
|
|
6021
6053
|
"type": "object",
|
|
6022
6054
|
"required": [
|
|
6023
|
-
"required",
|
|
6024
6055
|
"label",
|
|
6025
6056
|
"name",
|
|
6026
6057
|
"options",
|
|
@@ -6037,8 +6068,13 @@
|
|
|
6037
6068
|
"type": "string"
|
|
6038
6069
|
},
|
|
6039
6070
|
"options": {},
|
|
6040
|
-
"
|
|
6041
|
-
"
|
|
6071
|
+
"requiredWhen": {
|
|
6072
|
+
"allOf": [
|
|
6073
|
+
{
|
|
6074
|
+
"$ref": "#/components/schemas/Condition"
|
|
6075
|
+
}
|
|
6076
|
+
],
|
|
6077
|
+
"nullable": true
|
|
6042
6078
|
},
|
|
6043
6079
|
"type": {
|
|
6044
6080
|
"type": "string",
|
|
@@ -6048,13 +6084,20 @@
|
|
|
6048
6084
|
},
|
|
6049
6085
|
"value": {
|
|
6050
6086
|
"nullable": true
|
|
6087
|
+
},
|
|
6088
|
+
"visibleWhen": {
|
|
6089
|
+
"allOf": [
|
|
6090
|
+
{
|
|
6091
|
+
"$ref": "#/components/schemas/Condition"
|
|
6092
|
+
}
|
|
6093
|
+
],
|
|
6094
|
+
"nullable": true
|
|
6051
6095
|
}
|
|
6052
6096
|
}
|
|
6053
6097
|
},
|
|
6054
6098
|
{
|
|
6055
6099
|
"type": "object",
|
|
6056
6100
|
"required": [
|
|
6057
|
-
"required",
|
|
6058
6101
|
"label",
|
|
6059
6102
|
"name",
|
|
6060
6103
|
"options",
|
|
@@ -6071,8 +6114,13 @@
|
|
|
6071
6114
|
"type": "string"
|
|
6072
6115
|
},
|
|
6073
6116
|
"options": {},
|
|
6074
|
-
"
|
|
6075
|
-
"
|
|
6117
|
+
"requiredWhen": {
|
|
6118
|
+
"allOf": [
|
|
6119
|
+
{
|
|
6120
|
+
"$ref": "#/components/schemas/Condition"
|
|
6121
|
+
}
|
|
6122
|
+
],
|
|
6123
|
+
"nullable": true
|
|
6076
6124
|
},
|
|
6077
6125
|
"type": {
|
|
6078
6126
|
"type": "string",
|
|
@@ -6082,13 +6130,20 @@
|
|
|
6082
6130
|
},
|
|
6083
6131
|
"value": {
|
|
6084
6132
|
"nullable": true
|
|
6133
|
+
},
|
|
6134
|
+
"visibleWhen": {
|
|
6135
|
+
"allOf": [
|
|
6136
|
+
{
|
|
6137
|
+
"$ref": "#/components/schemas/Condition"
|
|
6138
|
+
}
|
|
6139
|
+
],
|
|
6140
|
+
"nullable": true
|
|
6085
6141
|
}
|
|
6086
6142
|
}
|
|
6087
6143
|
},
|
|
6088
6144
|
{
|
|
6089
6145
|
"type": "object",
|
|
6090
6146
|
"required": [
|
|
6091
|
-
"required",
|
|
6092
6147
|
"label",
|
|
6093
6148
|
"name",
|
|
6094
6149
|
"options",
|
|
@@ -6107,8 +6162,13 @@
|
|
|
6107
6162
|
"options": {
|
|
6108
6163
|
"$ref": "#/components/schemas/FileOptions"
|
|
6109
6164
|
},
|
|
6110
|
-
"
|
|
6111
|
-
"
|
|
6165
|
+
"requiredWhen": {
|
|
6166
|
+
"allOf": [
|
|
6167
|
+
{
|
|
6168
|
+
"$ref": "#/components/schemas/Condition"
|
|
6169
|
+
}
|
|
6170
|
+
],
|
|
6171
|
+
"nullable": true
|
|
6112
6172
|
},
|
|
6113
6173
|
"type": {
|
|
6114
6174
|
"type": "string",
|
|
@@ -6118,13 +6178,20 @@
|
|
|
6118
6178
|
},
|
|
6119
6179
|
"value": {
|
|
6120
6180
|
"nullable": true
|
|
6181
|
+
},
|
|
6182
|
+
"visibleWhen": {
|
|
6183
|
+
"allOf": [
|
|
6184
|
+
{
|
|
6185
|
+
"$ref": "#/components/schemas/Condition"
|
|
6186
|
+
}
|
|
6187
|
+
],
|
|
6188
|
+
"nullable": true
|
|
6121
6189
|
}
|
|
6122
6190
|
}
|
|
6123
6191
|
},
|
|
6124
6192
|
{
|
|
6125
6193
|
"type": "object",
|
|
6126
6194
|
"required": [
|
|
6127
|
-
"required",
|
|
6128
6195
|
"label",
|
|
6129
6196
|
"name",
|
|
6130
6197
|
"options",
|
|
@@ -6154,8 +6221,13 @@
|
|
|
6154
6221
|
"options": {
|
|
6155
6222
|
"$ref": "#/components/schemas/SelectOptions"
|
|
6156
6223
|
},
|
|
6157
|
-
"
|
|
6158
|
-
"
|
|
6224
|
+
"requiredWhen": {
|
|
6225
|
+
"allOf": [
|
|
6226
|
+
{
|
|
6227
|
+
"$ref": "#/components/schemas/Condition"
|
|
6228
|
+
}
|
|
6229
|
+
],
|
|
6230
|
+
"nullable": true
|
|
6159
6231
|
},
|
|
6160
6232
|
"type": {
|
|
6161
6233
|
"type": "string",
|
|
@@ -6165,13 +6237,20 @@
|
|
|
6165
6237
|
},
|
|
6166
6238
|
"value": {
|
|
6167
6239
|
"nullable": true
|
|
6240
|
+
},
|
|
6241
|
+
"visibleWhen": {
|
|
6242
|
+
"allOf": [
|
|
6243
|
+
{
|
|
6244
|
+
"$ref": "#/components/schemas/Condition"
|
|
6245
|
+
}
|
|
6246
|
+
],
|
|
6247
|
+
"nullable": true
|
|
6168
6248
|
}
|
|
6169
6249
|
}
|
|
6170
6250
|
},
|
|
6171
6251
|
{
|
|
6172
6252
|
"type": "object",
|
|
6173
6253
|
"required": [
|
|
6174
|
-
"required",
|
|
6175
6254
|
"label",
|
|
6176
6255
|
"name",
|
|
6177
6256
|
"options",
|
|
@@ -6188,8 +6267,13 @@
|
|
|
6188
6267
|
"type": "string"
|
|
6189
6268
|
},
|
|
6190
6269
|
"options": {},
|
|
6191
|
-
"
|
|
6192
|
-
"
|
|
6270
|
+
"requiredWhen": {
|
|
6271
|
+
"allOf": [
|
|
6272
|
+
{
|
|
6273
|
+
"$ref": "#/components/schemas/Condition"
|
|
6274
|
+
}
|
|
6275
|
+
],
|
|
6276
|
+
"nullable": true
|
|
6193
6277
|
},
|
|
6194
6278
|
"type": {
|
|
6195
6279
|
"type": "string",
|
|
@@ -6199,6 +6283,14 @@
|
|
|
6199
6283
|
},
|
|
6200
6284
|
"value": {
|
|
6201
6285
|
"nullable": true
|
|
6286
|
+
},
|
|
6287
|
+
"visibleWhen": {
|
|
6288
|
+
"allOf": [
|
|
6289
|
+
{
|
|
6290
|
+
"$ref": "#/components/schemas/Condition"
|
|
6291
|
+
}
|
|
6292
|
+
],
|
|
6293
|
+
"nullable": true
|
|
6202
6294
|
}
|
|
6203
6295
|
}
|
|
6204
6296
|
}
|
|
@@ -7660,6 +7752,14 @@
|
|
|
7660
7752
|
"additionalProperties": {
|
|
7661
7753
|
"type": "string"
|
|
7662
7754
|
}
|
|
7755
|
+
},
|
|
7756
|
+
"visibleWhen": {
|
|
7757
|
+
"allOf": [
|
|
7758
|
+
{
|
|
7759
|
+
"$ref": "#/components/schemas/Condition"
|
|
7760
|
+
}
|
|
7761
|
+
],
|
|
7762
|
+
"nullable": true
|
|
7663
7763
|
}
|
|
7664
7764
|
}
|
|
7665
7765
|
},
|
|
@@ -7822,6 +7922,12 @@
|
|
|
7822
7922
|
"description": "Biometric check data (for face matching results)",
|
|
7823
7923
|
"nullable": true
|
|
7824
7924
|
},
|
|
7925
|
+
"documentExpiredWebhookSentAt": {
|
|
7926
|
+
"type": "string",
|
|
7927
|
+
"format": "date",
|
|
7928
|
+
"description": "Date on which a DocumentExpired webhook was last sent for this DV result.\nUsed by the AML worker to deduplicate repeated expiry notifications across\nrefresh ticks — once set, the webhook is not re-enqueued.",
|
|
7929
|
+
"nullable": true
|
|
7930
|
+
},
|
|
7825
7931
|
"imageQuality": {
|
|
7826
7932
|
"type": "array",
|
|
7827
7933
|
"items": {
|
|
@@ -8836,8 +8942,10 @@
|
|
|
8836
8942
|
"validation_flow_not_found",
|
|
8837
8943
|
"validation_empty_parameter",
|
|
8838
8944
|
"validation_form_not_found",
|
|
8945
|
+
"validation_organization_not_found",
|
|
8839
8946
|
"validation_workflow_graph_invalid",
|
|
8840
|
-
"validation_invalid_role_for_invitation"
|
|
8947
|
+
"validation_invalid_role_for_invitation",
|
|
8948
|
+
"validation_form_condition_forward_ref"
|
|
8841
8949
|
]
|
|
8842
8950
|
},
|
|
8843
8951
|
"VaultUnlockPasskeyData": {
|
package/package.json
CHANGED