@zyphe-sdk/core 0.8.0 → 0.10.0
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 +633 -263
- package/dist/index.js +58 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +504 -260
- package/dist/openapi.json +1078 -492
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -215,6 +215,32 @@ interface paths {
|
|
|
215
215
|
patch?: never;
|
|
216
216
|
trace?: never;
|
|
217
217
|
};
|
|
218
|
+
"/sdk/organizations/{organization_id}/flow-results/search": {
|
|
219
|
+
parameters: {
|
|
220
|
+
query?: never;
|
|
221
|
+
header?: never;
|
|
222
|
+
path?: never;
|
|
223
|
+
cookie?: never;
|
|
224
|
+
};
|
|
225
|
+
get?: never;
|
|
226
|
+
put?: never;
|
|
227
|
+
/**
|
|
228
|
+
* Search flow results
|
|
229
|
+
* @description Tells whether a user passed a verification. Looks flow results up by the user's email, by the
|
|
230
|
+
* custom data attached when the verification request was created, or by both, and returns the
|
|
231
|
+
* status of each match, most recently updated first. `passed` is `true` once the user completed
|
|
232
|
+
* the flow successfully.
|
|
233
|
+
*
|
|
234
|
+
* At least one of `email` and `customData` is required. A user who never started a verification
|
|
235
|
+
* gives an empty page.
|
|
236
|
+
*/
|
|
237
|
+
post: operations["searchFlowResults"];
|
|
238
|
+
delete?: never;
|
|
239
|
+
options?: never;
|
|
240
|
+
head?: never;
|
|
241
|
+
patch?: never;
|
|
242
|
+
trace?: never;
|
|
243
|
+
};
|
|
218
244
|
"/sdk/organizations/{organization_id}/kyb-cases/{case_id}/reminders/ubo/{recipient_index}": {
|
|
219
245
|
parameters: {
|
|
220
246
|
query?: never;
|
|
@@ -586,6 +612,10 @@ interface paths {
|
|
|
586
612
|
* @description Returns one flow result: who it belongs to, its status, and the result of every step the user
|
|
587
613
|
* completed (document verification, liveness, proof of address, screening, forms, KYB and the
|
|
588
614
|
* others). The per-step result endpoints return each step's full detail.
|
|
615
|
+
*
|
|
616
|
+
* The flow result is one of this organization's, or a KYC Passport result another organization
|
|
617
|
+
* shared with it: the result named by a `kyc_passport.verification.updated` notification. The
|
|
618
|
+
* same holds for the per-step result endpoints.
|
|
589
619
|
*/
|
|
590
620
|
get: operations["getFlowResultDetails"];
|
|
591
621
|
put?: never;
|
|
@@ -617,6 +647,30 @@ interface paths {
|
|
|
617
647
|
patch?: never;
|
|
618
648
|
trace?: never;
|
|
619
649
|
};
|
|
650
|
+
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/dv/{dv_result_id}/report": {
|
|
651
|
+
parameters: {
|
|
652
|
+
query?: never;
|
|
653
|
+
header?: never;
|
|
654
|
+
path?: never;
|
|
655
|
+
cookie?: never;
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* Download the KYC report of a document verification result
|
|
659
|
+
* @description Returns the report of one document verification as a PDF: its outcome and every check it was
|
|
660
|
+
* held against, the data read from the document, the document images, the device and session,
|
|
661
|
+
* the person's AML screenings and an audit trail, with the verification data attached to the PDF
|
|
662
|
+
* as JSON. `locale` picks the language: `en`, `it`, `de`, `es`, `fr` or `pt`; any other prints in
|
|
663
|
+
* English. The report is generated on each request and states when it was generated.
|
|
664
|
+
*/
|
|
665
|
+
get: operations["getDocumentVerificationResultReport"];
|
|
666
|
+
put?: never;
|
|
667
|
+
post?: never;
|
|
668
|
+
delete?: never;
|
|
669
|
+
options?: never;
|
|
670
|
+
head?: never;
|
|
671
|
+
patch?: never;
|
|
672
|
+
trace?: never;
|
|
673
|
+
};
|
|
620
674
|
"/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/poa/{poa_result_id}/details": {
|
|
621
675
|
parameters: {
|
|
622
676
|
query?: never;
|
|
@@ -709,6 +763,7 @@ interface paths {
|
|
|
709
763
|
};
|
|
710
764
|
/**
|
|
711
765
|
* Get flow result details (deprecated)
|
|
766
|
+
* @deprecated
|
|
712
767
|
* @description **Deprecated.** Use "Get flow result details", which also takes the flow slug.
|
|
713
768
|
*/
|
|
714
769
|
get: operations["getFlowResultDetailsDeprecated"];
|
|
@@ -729,6 +784,7 @@ interface paths {
|
|
|
729
784
|
};
|
|
730
785
|
/**
|
|
731
786
|
* Get document verification result details (deprecated)
|
|
787
|
+
* @deprecated
|
|
732
788
|
* @description **Deprecated.** Use "Get document verification result details", which also takes the flow slug.
|
|
733
789
|
*/
|
|
734
790
|
get: operations["getDocumentVerificationResultDetailsDeprecated"];
|
|
@@ -749,6 +805,7 @@ interface paths {
|
|
|
749
805
|
};
|
|
750
806
|
/**
|
|
751
807
|
* Get proof of address result details (deprecated)
|
|
808
|
+
* @deprecated
|
|
752
809
|
* @description **Deprecated.** Use "Get proof of address result details", which also takes the flow slug.
|
|
753
810
|
*/
|
|
754
811
|
get: operations["getProofOfAddressResultDetailsDeprecated"];
|
|
@@ -782,50 +839,6 @@ interface paths {
|
|
|
782
839
|
patch?: never;
|
|
783
840
|
trace?: never;
|
|
784
841
|
};
|
|
785
|
-
"/organizations/{organization_id}/billing/topup-packs": {
|
|
786
|
-
parameters: {
|
|
787
|
-
query?: never;
|
|
788
|
-
header?: never;
|
|
789
|
-
path?: never;
|
|
790
|
-
cookie?: never;
|
|
791
|
-
};
|
|
792
|
-
/**
|
|
793
|
-
* List the top-up credit packs
|
|
794
|
-
* @description Lists the one-time credit packs the organization can purchase, with their price, the
|
|
795
|
-
* number of credits granted and any products they unlock. The catalog may be cached for up
|
|
796
|
-
* to 30 minutes.
|
|
797
|
-
*/
|
|
798
|
-
get: operations["get_topup_packs"];
|
|
799
|
-
put?: never;
|
|
800
|
-
post?: never;
|
|
801
|
-
delete?: never;
|
|
802
|
-
options?: never;
|
|
803
|
-
head?: never;
|
|
804
|
-
patch?: never;
|
|
805
|
-
trace?: never;
|
|
806
|
-
};
|
|
807
|
-
"/organizations/{organization_id}/billing/topup/checkout": {
|
|
808
|
-
parameters: {
|
|
809
|
-
query?: never;
|
|
810
|
-
header?: never;
|
|
811
|
-
path?: never;
|
|
812
|
-
cookie?: never;
|
|
813
|
-
};
|
|
814
|
-
get?: never;
|
|
815
|
-
put?: never;
|
|
816
|
-
/**
|
|
817
|
-
* Create a checkout session for a credit top-up
|
|
818
|
-
* @description The `priceId` must be one of the packs returned by `GET .../billing/topup-packs`. Redirect
|
|
819
|
-
* the user to the returned checkout URL; the credits are added to the organization once the
|
|
820
|
-
* payment completes.
|
|
821
|
-
*/
|
|
822
|
-
post: operations["create_topup_checkout"];
|
|
823
|
-
delete?: never;
|
|
824
|
-
options?: never;
|
|
825
|
-
head?: never;
|
|
826
|
-
patch?: never;
|
|
827
|
-
trace?: never;
|
|
828
|
-
};
|
|
829
842
|
"/sdk/organizations/{organization_id}/transactions": {
|
|
830
843
|
parameters: {
|
|
831
844
|
query?: never;
|
|
@@ -1231,6 +1244,9 @@ interface components {
|
|
|
1231
1244
|
occupancies?: components["schemas"]["AmlOccupancy"][];
|
|
1232
1245
|
phone?: components["schemas"]["FieldWithControl"];
|
|
1233
1246
|
position?: components["schemas"]["FieldWithControl"];
|
|
1247
|
+
/** @description The PEPs this record is tied to as a relative or close associate, as the provider names them.
|
|
1248
|
+
* Absent when the provider named none. */
|
|
1249
|
+
relatedPeps?: components["schemas"]["AmlRelatedPep"][];
|
|
1234
1250
|
sanctions?: components["schemas"]["AmlSanction"][];
|
|
1235
1251
|
/** Format: double */
|
|
1236
1252
|
score?: number;
|
|
@@ -1241,6 +1257,8 @@ interface components {
|
|
|
1241
1257
|
AmlEntityResult: {
|
|
1242
1258
|
entity: components["schemas"]["AmlEntityResponse"];
|
|
1243
1259
|
hasSanctions: boolean;
|
|
1260
|
+
/** @description A PEP match: the record is a politically exposed person, or a relative or close associate
|
|
1261
|
+
* of one. */
|
|
1244
1262
|
isPep: boolean;
|
|
1245
1263
|
match: boolean;
|
|
1246
1264
|
/** Format: double */
|
|
@@ -1266,6 +1284,11 @@ interface components {
|
|
|
1266
1284
|
name?: components["schemas"]["FieldWithControl"];
|
|
1267
1285
|
summary?: components["schemas"]["FieldWithControl"];
|
|
1268
1286
|
};
|
|
1287
|
+
/**
|
|
1288
|
+
* @description How a record reaches a PEP it is related to.
|
|
1289
|
+
* @enum {string}
|
|
1290
|
+
*/
|
|
1291
|
+
AmlPepRelationKind: "family" | "associate";
|
|
1269
1292
|
AmlPosition: {
|
|
1270
1293
|
country?: components["schemas"]["FieldWithControl"];
|
|
1271
1294
|
description?: components["schemas"]["FieldWithControl"];
|
|
@@ -1288,13 +1311,35 @@ interface components {
|
|
|
1288
1311
|
gender?: string | null;
|
|
1289
1312
|
lastName: string;
|
|
1290
1313
|
};
|
|
1314
|
+
/** @description A PEP that a relative or close associate is related to. */
|
|
1315
|
+
AmlRelatedPep: {
|
|
1316
|
+
/** @description The provider's id of the PEP's record. */
|
|
1317
|
+
entityId: string;
|
|
1318
|
+
kind: components["schemas"]["AmlPepRelationKind"];
|
|
1319
|
+
/** @description The PEP's names, as the provider lists them. */
|
|
1320
|
+
names: string[];
|
|
1321
|
+
/** @description The nature of the relationship, worded by the provider from the PEP's side ("spouse",
|
|
1322
|
+
* "business partner"): the record is the PEP's spouse. */
|
|
1323
|
+
relationship?: string[];
|
|
1324
|
+
};
|
|
1291
1325
|
AmlResult: {
|
|
1292
1326
|
/** @description Whether adverse-media screening for this subject returned a hit. `false` when there was no
|
|
1293
1327
|
* hit or adverse media was not screened. */
|
|
1294
1328
|
adverseMedia?: boolean;
|
|
1329
|
+
/**
|
|
1330
|
+
* Format: uuid
|
|
1331
|
+
* @description The KYB case the screening was ordered for, when it names one.
|
|
1332
|
+
*/
|
|
1333
|
+
caseId?: string | null;
|
|
1295
1334
|
/** Format: date-time */
|
|
1296
1335
|
createdAt: string;
|
|
1297
1336
|
data?: null | components["schemas"]["AmlRiskResult"];
|
|
1337
|
+
/**
|
|
1338
|
+
* Format: uuid
|
|
1339
|
+
* @description The flow result the screening belongs to. Absent for a screening of an operator-opened case
|
|
1340
|
+
* that has none.
|
|
1341
|
+
*/
|
|
1342
|
+
flowResultId?: string | null;
|
|
1298
1343
|
/** Format: uuid */
|
|
1299
1344
|
id: string;
|
|
1300
1345
|
/**
|
|
@@ -1425,7 +1470,7 @@ interface components {
|
|
|
1425
1470
|
* @description The action recorded by an audit log entry (e.g. `FLOW_CREATED`).
|
|
1426
1471
|
* @enum {string}
|
|
1427
1472
|
*/
|
|
1428
|
-
AuditAction: "VIEWED" | "CREATED" | "UPDATED" | "DELETED" | "AUTH_LOGIN" | "AUTH_LOGIN_FAILED" | "AUTH_LOGOUT" | "AUTH_PASSWORD_CHANGED" | "AUTH_PASSKEY_REGISTERED" | "AUTH_MAGIC_LINK_REQUESTED" | "AUTH_PASSWORD_RESET_REQUESTED" | "AUTH_EMAIL_VERIFIED" | "IDENTITY_ROLE_CHANGED" | "IDENTITY_DEACTIVATED" | "IDENTITY_DELETED" | "ORG_CREATED" | "ORG_SETTINGS_UPDATED" | "ORG_MEMBER_INVITED" | "ORG_MEMBER_REMOVED" | "ORG_MEMBER_ROLE_CHANGED" | "ORG_INVITE_REVOKED" | "API_KEY_CREATED" | "API_KEY_UPDATED" | "API_KEY_DELETED" | "BOT_CREATED" | "BOT_DELETED" | "BOT_TOKEN_REGENERATED" | "FLOW_CREATED" | "FLOW_UPDATED" | "FLOW_LINK_CREATED" | "FLOW_DELETED" | "FLOW_STEP_ADDED" | "FLOW_STEP_UPDATED" | "FLOW_STEP_DELETED" | "FLOW_SHARED" | "FLOW_SHARE_REVOKED" | "PARTNER_INVITED" | "PARTNER_INVITE_ACCEPTED" | "PARTNER_INVITE_REVOKED" | "PARTNER_INVITE_REJECTED" | "VR_CREATED" | "VR_STATUS_CHANGED" | "VR_MANUALLY_REVIEWED" | "DV_RESULT_REVIEW_REQUESTED" | "VR_CANCELLED" | "DV_RESULT_STATUS_CHANGED" | "DV_RESULT_MANUAL_REVIEW" | "DV_RESULT_REPLAYED" | "AML_RESULT_STATUS_CHANGED" | "AML_RESULT_MODERATED" | "AML_FIELD_REVIEWED" | "AML_AGENT_REVIEWED" | "AML_SCREENED" | "TIN_CHECK_RUN" | "POA_RESULT_STATUS_CHANGED" | "SPID_RESULT_STATUS_CHANGED" | "FORM_RESULT_STATUS_CHANGED" | "FORM_RESULT_SUBMITTED" | "KYB_APPLICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_CREATED" | "KYB_DOCUMENT_UPLOADED" | "KYB_CLARIFICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_REVIEWED" | "KYB_ASSIGNED" | "KYB_STAGE_CHANGED" | "KYB_COMMUNICATION_SENT" | "KYB_MODERATION_STATUS_UPDATED" | "KYB_PEP_SANCTIONS_STATUS_UPDATED" | "KYB_REPORT_UPLOADED" | "KYB_AUTO_COMPLETED" | "KYB_APPROVED" | "KYB_MANUAL_REVIEW_DECISION" | "KYB_VERIFICATION_FIELD_OVERRIDDEN" | "KYB_DOCUMENT_CHECK_OVERRIDDEN" | "KYB_METADATA_PATCHED" | "KYB_SCREENING_STRATEGY_CHANGED" | "KYB_BUSINESS_INFORMATION_EDITED" | "KYB_UBOS_ADDED" | "KYB_UBO_REMOVED" | "KYB_DIRECTORS_ADDED" | "KYB_DIRECTOR_REMOVED" | "KYB_AGENT_REVIEWED" | "KYB_AGENT_RUN_ENDED" | "KYB_CASE_DOSSIER_EXPORTED" | "KYB_CASE_REPORT_DOWNLOADED" | "KYB_DOCUMENT_CATALOG_REFRESHED" | "KYB_DOCUMENTS_PURCHASED" | "KYB_CASE_MANIFEST_REVISED" | "KYB_CASE_RUN_COMPLETED" | "KYB_CASE_RUN_FAILED" | "KYB_CASE_RUN_REAPED" | "KYB_CASE_RUN_REQUEUED" | "KYB_CASE_RUN_SUPERSEDED" | "KYB_CASE_EFFECTS_ABANDONED" | "KYB_CASE_RETRY_FORCED" | "KYB_CASE_DECISION_REPORT_HELD" | "KYB_CASE_WAIVER_DECIDED" | "KYB_CASE_DECIDED" | "KYB_CASE_EXCEPTION_RECORDED" | "KYB_CASE_EXCEPTION_WITHDRAWN" | "KYB_CASE_DECISION_PROPOSAL_WITHDRAWN" | "KYB_SCREENING_HIT_RESOLVED" | "KYB_SCREENING_HIT_PROPOSED" | "KYB_CASE_CHECK_CONFIRMED" | "KYB_CASE_REOPENED" | "KYB_CASE_QUALITY_REVIEW_RECORDED" | "KYB_OWNERSHIP_CONFIRMATION_SUBMITTED" | "KYB_SUBJECT_ASSIGNED" | "KYB_SUBJECT_RELEASED" | "KYB_COMPANY_RATING_OVERRIDDEN" | "KYB_COMPANY_RATING_OVERRIDE_ENDED" | "COMPLIANCE_POLICY_UPDATED" | "COMPLIANCE_POLICY_DRAFT_SAVED" | "COMPLIANCE_POLICY_PUBLISHED" | "COMPLIANCE_POLICY_PUT_IN_FORCE" | "COMPLIANCE_POLICY_SOP_UPLOADED" | "COMPLIANCE_POLICY_SOP_REVIEWED" | "KYB_CASE_AML_DISPOSITIONED" | "KYB_CASE_STEP_PROPOSAL_DECIDED" | "KYB_CASE_CLARIFICATION_PROPOSAL_DECIDED" | "KYB_CASE_FACT_RECORDED" | "KYB_CASE_INVITATION_SENT" | "KYB_CASE_INVITATION_FAILED" | "KYC_GRANT_CREATED" | "CONSENT_GRANTED" | "BLOCKLIST_ENTRY_CREATED" | "BLOCKLIST_ENTRY_DELETED" | "RISK_WEIGHT_UPDATED" | "RISK_FACTOR_UPDATED" | "DOCUMENT_DOWNLOADED" | "FLOW_RESULT_EXPORTED" | "FLOW_RISK_SCORE_CHANGED" | "FLOW_RISK_STATUS_CHANGED" | "RISK_TAG_ADDED" | "RISK_TAG_RETRACTED" | "TM_RULE_TRIGGERED" | "TM_ALERT_RAISED" | "TM_AGENT_REVIEWED" | "TM_AGENT_REVIEW_STARTED" | "TM_AGENT_RESOLVED" | "TM_ALERT_DISPOSITIONED" | "TM_ALERT_ESCALATED" | "TM_RULE_DISABLED" | "UNKNOWN";
|
|
1473
|
+
AuditAction: "VIEWED" | "CREATED" | "UPDATED" | "DELETED" | "AUTH_LOGIN" | "AUTH_LOGIN_FAILED" | "AUTH_LOGOUT" | "AUTH_PASSWORD_CHANGED" | "AUTH_PASSKEY_REGISTERED" | "AUTH_MAGIC_LINK_REQUESTED" | "AUTH_PASSWORD_RESET_REQUESTED" | "AUTH_EMAIL_VERIFIED" | "AUTH_TWO_FACTOR_CHALLENGED" | "AUTH_TWO_FACTOR_FAILED" | "AUTH_TWO_FACTOR_ENROLMENT_STARTED" | "AUTH_TWO_FACTOR_ENABLED" | "AUTH_TWO_FACTOR_DISABLED" | "AUTH_TWO_FACTOR_BACKUP_CODE_USED" | "AUTH_TWO_FACTOR_BACKUP_CODES_REGENERATED" | "AUTH_TWO_FACTOR_RESET" | "ORG_TWO_FACTOR_POLICY_UPDATED" | "IDENTITY_ROLE_CHANGED" | "IDENTITY_DEACTIVATED" | "IDENTITY_DELETED" | "ORG_CREATED" | "ORG_SETTINGS_UPDATED" | "SLA_TARGETS_UPDATED" | "ORG_MEMBER_INVITED" | "ORG_MEMBER_REMOVED" | "ORG_MEMBER_ROLE_CHANGED" | "ORG_INVITE_REVOKED" | "API_KEY_CREATED" | "API_KEY_UPDATED" | "API_KEY_DELETED" | "BOT_CREATED" | "BOT_DELETED" | "BOT_TOKEN_REGENERATED" | "FLOW_CREATED" | "FLOW_UPDATED" | "FLOW_LINK_CREATED" | "FLOW_DELETED" | "FLOW_STEP_ADDED" | "FLOW_STEP_UPDATED" | "FLOW_STEP_DELETED" | "FLOW_SHARED" | "FLOW_SHARE_REVOKED" | "FLOW_TEMPLATE_CREATED" | "FLOW_TEMPLATE_UPDATED" | "FLOW_TEMPLATE_STATUS_CHANGED" | "FLOW_TEMPLATES_SEEDED" | "FLOW_TEMPLATE_COPIED_TO_PRODUCTION" | "FLOW_DRAFT_CREATED" | "FLOW_DRAFT_DELETED" | "PARTNER_INVITED" | "PARTNER_INVITE_ACCEPTED" | "PARTNER_INVITE_REVOKED" | "PARTNER_INVITE_REJECTED" | "VR_CREATED" | "VR_STATUS_CHANGED" | "VR_MANUALLY_REVIEWED" | "DV_RESULT_REVIEW_REQUESTED" | "VR_CANCELLED" | "DV_RESULT_STATUS_CHANGED" | "DV_RESULT_MANUAL_REVIEW" | "DV_RESULT_REPLAYED" | "AML_RESULT_STATUS_CHANGED" | "AML_RESULT_MODERATED" | "AML_FIELD_REVIEWED" | "AML_AGENT_REVIEWED" | "AML_SCREENED" | "TIN_CHECK_RUN" | "POA_RESULT_STATUS_CHANGED" | "SPID_RESULT_STATUS_CHANGED" | "FORM_RESULT_STATUS_CHANGED" | "FORM_RESULT_SUBMITTED" | "KYB_APPLICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_CREATED" | "KYB_DOCUMENT_UPLOADED" | "KYB_CLARIFICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_REVIEWED" | "KYB_ASSIGNED" | "KYB_STAGE_CHANGED" | "KYB_COMMUNICATION_SENT" | "KYB_MODERATION_STATUS_UPDATED" | "KYB_PEP_SANCTIONS_STATUS_UPDATED" | "KYB_REPORT_UPLOADED" | "KYB_AUTO_COMPLETED" | "KYB_APPROVED" | "KYB_MANUAL_REVIEW_DECISION" | "KYB_VERIFICATION_FIELD_OVERRIDDEN" | "KYB_DOCUMENT_CHECK_OVERRIDDEN" | "KYB_METADATA_PATCHED" | "KYB_SCREENING_STRATEGY_CHANGED" | "KYB_BUSINESS_INFORMATION_EDITED" | "KYB_UBOS_ADDED" | "KYB_UBO_REMOVED" | "KYB_DIRECTORS_ADDED" | "KYB_DIRECTOR_REMOVED" | "KYB_AGENT_REVIEWED" | "KYB_AGENT_RUN_ENDED" | "KYB_CASE_DOSSIER_EXPORTED" | "KYB_CASE_REPORT_DOWNLOADED" | "KYC_REPORT_DOWNLOADED" | "KYB_DOCUMENT_CATALOG_REFRESHED" | "KYB_DOCUMENTS_PURCHASED" | "KYB_CASE_MANIFEST_REVISED" | "KYB_CASE_RUN_COMPLETED" | "KYB_CASE_RUN_FAILED" | "KYB_CASE_RUN_REAPED" | "KYB_CASE_RUN_REQUEUED" | "KYB_CASE_RUN_SUPERSEDED" | "KYB_CASE_EFFECTS_ABANDONED" | "KYB_CASE_RETRY_FORCED" | "KYB_CASE_DECISION_REPORT_HELD" | "KYB_CASE_WAIVER_DECIDED" | "KYB_CASE_DECIDED" | "KYB_CASE_ANCHORED" | "KYB_CASE_OPENED_BY_OPERATOR" | "KYB_CASE_CONTACT_SET" | "KYB_CASE_UPLOAD_ADDED" | "KYB_CASE_UPLOAD_REMOVED" | "KYB_CASE_SUBMITTED_BY_OPERATOR" | "KYB_CASE_CANCELLED_BY_OPERATOR" | "KYB_CASE_EXCEPTION_RECORDED" | "KYB_CASE_EXCEPTION_WITHDRAWN" | "KYB_CASE_DECISION_PROPOSAL_WITHDRAWN" | "KYB_SCREENING_HIT_RESOLVED" | "KYB_SCREENING_HIT_PROPOSED" | "KYB_CASE_CHECK_CONFIRMED" | "KYB_CASE_REOPENED" | "KYB_CASE_QUALITY_REVIEW_RECORDED" | "KYB_OWNERSHIP_CONFIRMATION_SUBMITTED" | "KYB_SUBJECT_ASSIGNED" | "KYB_SUBJECT_RELEASED" | "KYB_REMINDERS_SENT" | "KYB_COMPANY_RATING_OVERRIDDEN" | "KYB_COMPANY_RATING_OVERRIDE_ENDED" | "COMPLIANCE_POLICY_UPDATED" | "COMPLIANCE_POLICY_DRAFT_SAVED" | "COMPLIANCE_POLICY_PUBLISHED" | "COMPLIANCE_POLICY_PUT_IN_FORCE" | "COMPLIANCE_POLICY_SOP_UPLOADED" | "COMPLIANCE_POLICY_SOP_REVIEWED" | "COMPLIANCE_POLICY_SOP_AUTO_ACCEPTED" | "KYB_CASE_AML_DISPOSITIONED" | "KYB_CASE_STEP_PROPOSAL_DECIDED" | "KYB_CASE_CLARIFICATION_PROPOSAL_DECIDED" | "KYB_CASE_FACT_RECORDED" | "KYB_CASE_INVITATION_SENT" | "KYB_CASE_INVITATION_FAILED" | "KYC_GRANT_CREATED" | "CONSENT_GRANTED" | "BLOCKLIST_ENTRY_CREATED" | "BLOCKLIST_ENTRY_DELETED" | "RISK_WEIGHT_UPDATED" | "RISK_FACTOR_UPDATED" | "DOCUMENT_DOWNLOADED" | "FLOW_RESULT_EXPORTED" | "FLOW_RISK_SCORE_CHANGED" | "FLOW_RISK_STATUS_CHANGED" | "RISK_TAG_ADDED" | "RISK_TAG_RETRACTED" | "TM_RULE_TRIGGERED" | "TM_ALERT_RAISED" | "TM_AGENT_REVIEWED" | "TM_AGENT_REVIEW_STARTED" | "TM_AGENT_RESOLVED" | "TM_ALERT_DISPOSITIONED" | "TM_ALERT_ASSIGNED" | "TM_ALERT_ESCALATED" | "TM_RULE_DISABLED" | "UNKNOWN";
|
|
1429
1474
|
/** @description A single entry in the audit log, returned by the query API. */
|
|
1430
1475
|
AuditLogEntry: {
|
|
1431
1476
|
action: components["schemas"]["AuditAction"];
|
|
@@ -1437,6 +1482,10 @@ interface components {
|
|
|
1437
1482
|
/** Format: date-time */
|
|
1438
1483
|
createdAt: string;
|
|
1439
1484
|
details: unknown;
|
|
1485
|
+
/** @description The entry's hash on the chain: SHA-256 of the previous entry's hash and this entry's
|
|
1486
|
+
* canonical form. The chain is one for the whole platform, so the entry before this one may
|
|
1487
|
+
* belong to another organization. */
|
|
1488
|
+
entryHash: string;
|
|
1440
1489
|
/**
|
|
1441
1490
|
* Format: int64
|
|
1442
1491
|
* @description The entry's position on the audit log's hash chain. One entry is read back with the filter
|
|
@@ -1502,7 +1551,7 @@ interface components {
|
|
|
1502
1551
|
* not be determined (e.g. for some system operations).
|
|
1503
1552
|
* @enum {string}
|
|
1504
1553
|
*/
|
|
1505
|
-
AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "McpClient" | "Flow" | "FlowStep" | "FlowResult" | "FlowPartnerInvite" | "VerificationRequest" | "DvResult" | "AmlResult" | "TinCheck" | "PoaResult" | "KybResult" | "KybCase" | "KybCaseRule" | "KybCompanyRating" | "KybSubjectAssignment" | "FormResult" | "Form" | "RiskWeight" | "ContextualFactor" | "ScoreDefinition" | "ScoreTag" | "ScoreRule" | "AuditLog" | "ChatMessage" | "DocumentSelection" | "GeolocationResult" | "PhoneVerification" | "SpidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "AgentReviewPolicy" | "ShortUrl" | "Cache" | "Transaction" | "TmRule" | "TmList" | "TmSettings" | "TmAlert" | "TmRuleTemplate" | "
|
|
1554
|
+
AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "McpClient" | "Flow" | "FlowStep" | "FlowResult" | "FlowPartnerInvite" | "VerificationRequest" | "DvResult" | "AmlResult" | "TinCheck" | "PoaResult" | "KybResult" | "KybCase" | "KybCaseRule" | "KybCompanyRating" | "KybSubjectAssignment" | "FormResult" | "Form" | "RiskWeight" | "ContextualFactor" | "ScoreDefinition" | "ScoreTag" | "ScoreRule" | "AuditLog" | "ChatMessage" | "DocumentSelection" | "GeolocationResult" | "PhoneVerification" | "SpidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "AgentReviewPolicy" | "ShortUrl" | "Cache" | "Transaction" | "TmRule" | "TmList" | "TmSettings" | "TmAlert" | "TmRuleTemplate" | "FlowTemplate" | "FlowDraft" | "BlockedEmailDomain" | "AllowedEmailAddress" | "RegistrationOffer" | "RegistrationOfferLink" | "WebhookEndpoint" | "WebhookOrganizationSecret" | "Unknown";
|
|
1506
1555
|
/** @description What triggered an audit event, identified by `type`:
|
|
1507
1556
|
* - `HTTP` — an API request (`method` and `path`).
|
|
1508
1557
|
* - `WORKER` — a background process (`workerType` and `scenario`).
|
|
@@ -1592,6 +1641,15 @@ interface components {
|
|
|
1592
1641
|
* @enum {string}
|
|
1593
1642
|
*/
|
|
1594
1643
|
BusinessInfoDisagreementSource: "submitted" | "document" | "catalog";
|
|
1644
|
+
/**
|
|
1645
|
+
* @description A business-information key a form field answers.
|
|
1646
|
+
*
|
|
1647
|
+
* The country (and the US state) come from the company lookup, and the contact email from the
|
|
1648
|
+
* applicant's own email, so no field is bound to them. The address is one place field, which
|
|
1649
|
+
* yields the street address, the city and the postcode.
|
|
1650
|
+
* @enum {string}
|
|
1651
|
+
*/
|
|
1652
|
+
BusinessInfoField: "companyName" | "registrationNumber" | "companyType" | "address" | "incorporationDate" | "businessActivity";
|
|
1595
1653
|
/** @description Per-field verification result comparing submitted business info against document-extracted values. */
|
|
1596
1654
|
BusinessInfoFieldVerification: {
|
|
1597
1655
|
/** @description The AI agent's one-sentence explanation of why this match classification was chosen.
|
|
@@ -1689,6 +1747,24 @@ interface components {
|
|
|
1689
1747
|
*/
|
|
1690
1748
|
uncovered: number;
|
|
1691
1749
|
};
|
|
1750
|
+
/** @description The decision that stands on a case, as its list row shows it. */
|
|
1751
|
+
CaseDecisionSummary: {
|
|
1752
|
+
/** Format: date-time */
|
|
1753
|
+
decidedAt: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* Format: uuid
|
|
1756
|
+
* @description The identity that took it: an analyst, or the agent's own identity.
|
|
1757
|
+
*/
|
|
1758
|
+
decidedBy: string;
|
|
1759
|
+
/** @description `PERSON` for an analyst, `BOT` for an agent such as Zyphe Agent, `API_KEY` for an integration and `SYSTEM` for
|
|
1760
|
+
* the platform itself. */
|
|
1761
|
+
decidedByKind: components["schemas"]["PrincipalKind"];
|
|
1762
|
+
/** @description The route it came through: the console, the SDK, an agent's MCP tool, and so on. */
|
|
1763
|
+
door: components["schemas"]["DecisionDoor"];
|
|
1764
|
+
/** Format: uuid */
|
|
1765
|
+
id: string;
|
|
1766
|
+
outcome: components["schemas"]["KybCaseDecisionOutcome"];
|
|
1767
|
+
};
|
|
1692
1768
|
/** @description One case as its own read answers.
|
|
1693
1769
|
*
|
|
1694
1770
|
* The list row, flattened so every key a client already binds against stays exactly where it was,
|
|
@@ -1738,18 +1814,27 @@ interface components {
|
|
|
1738
1814
|
* risky its company is are what a reviewer sorts their day by. */
|
|
1739
1815
|
CaseSummaryResponse: {
|
|
1740
1816
|
assignment?: null | components["schemas"]["SubjectAssignmentResponse"];
|
|
1817
|
+
/** @description `ONBOARDING` for the first review of the company, `PERIODIC_REVIEW` for a later one: a case opened to verify an
|
|
1818
|
+
* earlier one again, or one its periodic review reopened. Derived from the case's history, never stored. */
|
|
1819
|
+
caseType: components["schemas"]["KybCaseType"];
|
|
1741
1820
|
/** @description The key the company's assignment and rating are kept under. Absent for a company with no
|
|
1742
1821
|
* registration number: it cannot be told from another in its country, so nothing is kept
|
|
1743
1822
|
* about it and it can be neither assigned nor rated. */
|
|
1744
1823
|
companyKey?: string | null;
|
|
1824
|
+
/** @description The address the case reaches the company at, once one is set: the contact an analyst gave a case they opened. */
|
|
1825
|
+
contactEmail?: string | null;
|
|
1745
1826
|
country: string;
|
|
1746
1827
|
/** @description How far the case has been checked, counted over its own steps. Present on every row: a case
|
|
1747
1828
|
* with nothing planned yet reads three zeros and `complete: false`, which is an answer. */
|
|
1748
1829
|
coverage: components["schemas"]["CaseCoverageSummary"];
|
|
1749
1830
|
/** Format: date-time */
|
|
1750
1831
|
createdAt: string;
|
|
1832
|
+
decision?: null | components["schemas"]["CaseDecisionSummary"];
|
|
1751
1833
|
dueDiligenceLevel: components["schemas"]["KybCaseDueDiligenceLevel"];
|
|
1752
1834
|
episode?: null | components["schemas"]["EpisodeRef"];
|
|
1835
|
+
/** @description What the Home page flags on the case, as the work board last read it, within seconds of the case changing. Empty
|
|
1836
|
+
* on a closed case. */
|
|
1837
|
+
flags: components["schemas"]["KybCaseFlag"][];
|
|
1753
1838
|
/** Format: uuid */
|
|
1754
1839
|
flowResultId?: string | null;
|
|
1755
1840
|
/** Format: uuid */
|
|
@@ -1757,6 +1842,12 @@ interface components {
|
|
|
1757
1842
|
legalName?: string | null;
|
|
1758
1843
|
/** @description `CLIENT` | `RM` | `COMPLIANCE` | `SUPPORT` | `FUNDED` | `DENIED`, where set. */
|
|
1759
1844
|
nextAction?: string | null;
|
|
1845
|
+
/**
|
|
1846
|
+
* Format: uuid
|
|
1847
|
+
* @description The member of the organization who opened the case, for a case opened by hand. Absent for an applicant's case
|
|
1848
|
+
* and for one the migration made.
|
|
1849
|
+
*/
|
|
1850
|
+
openedByIdentityId?: string | null;
|
|
1760
1851
|
/** @description Who opened the case: `END_USER` (the business applicant, through a flow), `OPERATOR` (a member of your
|
|
1761
1852
|
* organization) or `MIGRATION` (created from a KYB result that predates KYB cases). */
|
|
1762
1853
|
origin: components["schemas"]["KybCaseOrigin"];
|
|
@@ -1782,10 +1873,6 @@ interface components {
|
|
|
1782
1873
|
* @enum {string}
|
|
1783
1874
|
*/
|
|
1784
1875
|
CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
|
|
1785
|
-
/** @description Response from creating a checkout session */
|
|
1786
|
-
CheckoutSessionResponse: {
|
|
1787
|
-
checkoutUrl: string;
|
|
1788
|
-
};
|
|
1789
1876
|
CloudflareTracePayload: {
|
|
1790
1877
|
colo?: string | null;
|
|
1791
1878
|
ip?: string | null;
|
|
@@ -2000,14 +2087,6 @@ interface components {
|
|
|
2000
2087
|
sessionToken: string;
|
|
2001
2088
|
url: string;
|
|
2002
2089
|
};
|
|
2003
|
-
/** @description Request to create a checkout session for a one-time credit top-up purchase. */
|
|
2004
|
-
CreateTopupCheckoutRequest: {
|
|
2005
|
-
/** @description The price ID of the top-up pack to purchase, as returned in `priceId` by
|
|
2006
|
-
* `GET .../billing/topup-packs`. */
|
|
2007
|
-
priceId: string;
|
|
2008
|
-
/** @description Optional redirect URI after checkout. If not provided, redirects to the webapp root. */
|
|
2009
|
-
redirectUri?: string | null;
|
|
2010
|
-
};
|
|
2011
2090
|
CreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
|
|
2012
2091
|
continueUrl?: string | null;
|
|
2013
2092
|
cookiesPolicyAccepted: boolean;
|
|
@@ -2034,27 +2113,7 @@ interface components {
|
|
|
2034
2113
|
*/
|
|
2035
2114
|
CreationSource: "SELF_SERVE" | "ADMIN" | "PARTNER";
|
|
2036
2115
|
/** @enum {string} */
|
|
2037
|
-
CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID";
|
|
2038
|
-
/** @description When the credits granted by a subscription plan at each renewal expire. */
|
|
2039
|
-
CreditExpiryPolicy: {
|
|
2040
|
-
/** @enum {string} */
|
|
2041
|
-
type: "periodEnd";
|
|
2042
|
-
} | {
|
|
2043
|
-
/** @enum {string} */
|
|
2044
|
-
type: "never";
|
|
2045
|
-
} | {
|
|
2046
|
-
/** Format: int32 */
|
|
2047
|
-
months: number;
|
|
2048
|
-
/** @enum {string} */
|
|
2049
|
-
type: "monthsFromGrant";
|
|
2050
|
-
} | {
|
|
2051
|
-
/** Format: int32 */
|
|
2052
|
-
months: number;
|
|
2053
|
-
/** @enum {string} */
|
|
2054
|
-
type: "monthsFromSubscription";
|
|
2055
|
-
};
|
|
2056
|
-
/** @example usd */
|
|
2057
|
-
Currency: string;
|
|
2116
|
+
CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID" | "TOTP";
|
|
2058
2117
|
/** @description A reviewer's decision on a case: the one immutable decision it gets. */
|
|
2059
2118
|
DecideCasePayload: {
|
|
2060
2119
|
/**
|
|
@@ -2101,6 +2160,18 @@ interface components {
|
|
|
2101
2160
|
statusAfter?: null | components["schemas"]["KybCaseStatus"];
|
|
2102
2161
|
statusBefore?: null | components["schemas"]["KybCaseStatus"];
|
|
2103
2162
|
};
|
|
2163
|
+
/**
|
|
2164
|
+
* @description The door an act came through. Stored as TEXT, mirrored by the `door` CHECK constraints.
|
|
2165
|
+
*
|
|
2166
|
+
* Tier 1 puts one closing operation behind every door; the door stays on the row because the
|
|
2167
|
+
* operation is the same and the *route* is not — an integrator asking why a case closed wants to
|
|
2168
|
+
* know whether a person used the console or an SDK call did it.
|
|
2169
|
+
*
|
|
2170
|
+
* `Console` is the default: it is the door every decision taken before the column existed came
|
|
2171
|
+
* through, save the migrated ones, which the migration stamps `Migration` explicitly.
|
|
2172
|
+
* @enum {string}
|
|
2173
|
+
*/
|
|
2174
|
+
DecisionDoor: "CASE_ROUTE" | "CONSOLE" | "MANUAL_REVIEW" | "ADMIN" | "SDK" | "MCP" | "WORKER" | "MIGRATION";
|
|
2104
2175
|
/** @description The decision the organization's approval matrix turned into a *proposal*.
|
|
2105
2176
|
*
|
|
2106
2177
|
* The first signature is recorded and the case is NOT decided: someone holding one of
|
|
@@ -2302,12 +2373,23 @@ interface components {
|
|
|
2302
2373
|
*/
|
|
2303
2374
|
verificationRequestId?: string | null;
|
|
2304
2375
|
};
|
|
2376
|
+
/**
|
|
2377
|
+
* @description The classes the API names a document with: the `documentClass` of a DV result, of the V2 webhook
|
|
2378
|
+
* and of the `DOCUMENT_EXPIRED` notification, and the `<step>.documentClass` of a flow rule.
|
|
2379
|
+
*
|
|
2380
|
+
* Served in the OpenAPI schema even though no response field carries one: the fields stay
|
|
2381
|
+
* strings, so a new class is not a breaking change for a client, but a client that lets an
|
|
2382
|
+
* operator author conditions on the class needs the exact value set, and generating it beats
|
|
2383
|
+
* transcribing it. The variants are in the order such a client offers them.
|
|
2384
|
+
* @enum {string}
|
|
2385
|
+
*/
|
|
2386
|
+
DocumentClassName: "IdentificationCard" | "DriversLicense" | "Passport" | "ResidenceDocument" | "Visa" | "TravelDocument" | "TaxIdentification" | "MedicalCard" | "AlienId" | "Unknown";
|
|
2305
2387
|
/**
|
|
2306
2388
|
* @description Named categories of identity documents.
|
|
2307
2389
|
*
|
|
2308
2390
|
* Served in the OpenAPI schema even though no response field carries one: the cluster is
|
|
2309
2391
|
* derived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM
|
|
2310
|
-
* conditions as `<step>.
|
|
2392
|
+
* conditions as `<step>.documentCluster`. Clients that let an operator author those conditions
|
|
2311
2393
|
* need the exact value set, and generating it beats transcribing it.
|
|
2312
2394
|
* @enum {string}
|
|
2313
2395
|
*/
|
|
@@ -2459,8 +2541,17 @@ interface components {
|
|
|
2459
2541
|
* `providesLiveness` and `providesAuthenticity` are `true` when the session itself performs the
|
|
2460
2542
|
* liveness check and the document-authenticity check. When `false`, the session does not: a check
|
|
2461
2543
|
* runs only if the flow has one of its own, a liveness step or the step's `docauthChecks`, which
|
|
2462
|
-
* are empty by default.
|
|
2544
|
+
* are empty by default.
|
|
2545
|
+
*
|
|
2546
|
+
* `acceptedCaptures` lists every submission `process-dv-document` takes for this attempt: the
|
|
2547
|
+
* capture mode above, plus `DIRECT` whenever the provider can process an uploaded image. The
|
|
2548
|
+
* capture mode is what Zyphe's own web app renders; `acceptedCaptures` is what a backend-only
|
|
2549
|
+
* integrator reads to learn it may post `images` against a `SESSION` attempt. The two flags
|
|
2550
|
+
* above describe the capture mode, not an upload: a `DIRECT` submission to a `SESSION` attempt
|
|
2551
|
+
* skips whatever selfie and capture-time checks that session performs (`providesLiveness`), so
|
|
2552
|
+
* the flow's own liveness step is the one that counts. */
|
|
2463
2553
|
DvCapture: {
|
|
2554
|
+
acceptedCaptures?: components["schemas"]["DvCaptureMode"][];
|
|
2464
2555
|
capture: components["schemas"]["DvCaptureMode"];
|
|
2465
2556
|
providesAuthenticity: boolean;
|
|
2466
2557
|
providesLiveness: boolean;
|
|
@@ -2540,6 +2631,13 @@ interface components {
|
|
|
2540
2631
|
data: {
|
|
2541
2632
|
[key: string]: unknown;
|
|
2542
2633
|
};
|
|
2634
|
+
/** @description The class of the document, the same whichever provider read it: `Passport`, `DriversLicense`,
|
|
2635
|
+
* `IdentificationCard`, `ResidenceDocument`, `Visa`, `TravelDocument`, `TaxIdentification`,
|
|
2636
|
+
* `MedicalCard`, `AlienId` (a foreign-national registration id) or `Unknown`. Derived from
|
|
2637
|
+
* `documentType`, the type the result stores: for a failed result it can be the document the
|
|
2638
|
+
* holder picked rather than the one read. A `documentType` the types above do not cover, or of
|
|
2639
|
+
* 0 (none read), reads `Unknown`. `null` when the result has no `documentType`. */
|
|
2640
|
+
documentClass?: string | null;
|
|
2543
2641
|
/** Format: uuid */
|
|
2544
2642
|
documentId?: string | null;
|
|
2545
2643
|
/** Format: int32 */
|
|
@@ -2565,6 +2663,7 @@ interface components {
|
|
|
2565
2663
|
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
2566
2664
|
provinceCode?: string | null;
|
|
2567
2665
|
reasons: components["schemas"]["DvReason"][];
|
|
2666
|
+
reviewReason?: null | components["schemas"]["DvReviewReason"];
|
|
2568
2667
|
status: components["schemas"]["ResultStatus"];
|
|
2569
2668
|
/** Format: date-time */
|
|
2570
2669
|
updatedAt?: string | null;
|
|
@@ -2577,6 +2676,27 @@ interface components {
|
|
|
2577
2676
|
/** Format: uuid */
|
|
2578
2677
|
verificationRequestId?: string | null;
|
|
2579
2678
|
};
|
|
2679
|
+
/** @description Why a DV or liveness verification was taken out of the user's hands and sent for review.
|
|
2680
|
+
*
|
|
2681
|
+
* Written by the attempt that ends the verification; the review that follows leaves it as it is.
|
|
2682
|
+
* It names the most recent escalation: a later escalation replaces it. */
|
|
2683
|
+
DvReviewReason: {
|
|
2684
|
+
/** Format: int32 */
|
|
2685
|
+
attempts: number;
|
|
2686
|
+
/** @enum {string} */
|
|
2687
|
+
kind: "ATTEMPTS_EXHAUSTED";
|
|
2688
|
+
/** Format: int32 */
|
|
2689
|
+
maxAttempts: number;
|
|
2690
|
+
} | {
|
|
2691
|
+
/** @enum {string} */
|
|
2692
|
+
kind: "BLOCKING_REASON";
|
|
2693
|
+
reasons: components["schemas"]["DvReason"][];
|
|
2694
|
+
} | {
|
|
2695
|
+
/** Format: int32 */
|
|
2696
|
+
attempts: number;
|
|
2697
|
+
/** @enum {string} */
|
|
2698
|
+
kind: "UNUSABLE_CAPTURES";
|
|
2699
|
+
};
|
|
2580
2700
|
DvStepOutput: {
|
|
2581
2701
|
/** @description Whether the subject's screening found adverse media — a routing signal beside `amlPep` and
|
|
2582
2702
|
* `amlSanctions`, so a flow can branch on it as it can on the other two. `None` until a
|
|
@@ -2629,7 +2749,7 @@ interface components {
|
|
|
2629
2749
|
number: number;
|
|
2630
2750
|
};
|
|
2631
2751
|
/** @enum {string} */
|
|
2632
|
-
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "
|
|
2752
|
+
ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "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" | "organization_under_retention" | "kyb_declaration_requires_discovery" | "storage" | "verification_request_not_found" | "document_reader" | "organization_settings_not_found" | "theme_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" | "email_domain_not_allowed" | "work_email_required" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing" | "billing_email_required" | "product_not_active" | "registration_offer_not_found" | "registration_offer_unavailable" | "registration_offer_invalid_terms" | "topup_pack_unlocks_unpriced" | "score_rule_not_found" | "score_rule_field_outside_scores" | "score_rule_unknown_score" | "score_rule_score_disabled" | "score_rule_score_not_yet_computed" | "score_rule_set_score_out_of_range" | "score_rule_effect_kind_mismatch" | "kyb_case_not_decidable" | "kyb_case_not_ready" | "kyb_case_exception_required" | "kyb_case_rejecting_hit" | "kyb_case_reason_required" | "kyb_case_decision_not_authorized" | "kyb_case_second_signature_required" | "kyb_case_contact_required" | "kyb_case_contact_locked" | "compliance_policy_open_questions" | "tin_check_invalid_tin" | "tin_check_unavailable" | "tin_check_ein_required" | "tin_check_mismatch" | "tin_check_attempts_exhausted" | "flow_template_not_found" | "flow_template_key_taken" | "flow_template_invalid_key" | "flow_template_source_is_template" | "flow_template_analyst_entry_invalid" | "flow_template_kyc_flow_invalid" | "flow_template_kyc_in_use" | "flow_template_empty" | "flow_template_kind_mismatch" | "flow_template_steps_invalid" | "flow_template_kyc_not_active" | "flow_template_kyc_not_available" | "flow_template_sandbox_only" | "flow_template_kyc_missing_in_production" | "flow_draft_not_found" | "flow_draft_version_conflict" | "flow_draft_name_invalid" | "flow_draft_incomplete" | "flow_draft_kyb_invalid" | "flow_draft_agent_research_invalid" | "flow_draft_business_info_form_invalid" | "flow_draft_documents_invalid" | "flow_draft_ubos_invalid" | "flow_draft_directors_invalid" | "two_factor_invalid_code" | "two_factor_locked" | "two_factor_already_enabled" | "two_factor_not_enabled" | "two_factor_required_by_organization" | "two_factor_required_by_platform" | "two_factor_reauthentication_required" | "two_factor_reauthentication_failed" | "two_factor_reauthentication_locked" | "company_website_analysis_not_found" | "company_website_analysis_invalid_url" | "company_website_analysis_limit_reached" | "company_website_analysis_not_completed" | "company_website_analysis_no_brand" | "company_website_analysis_disabled";
|
|
2633
2753
|
/**
|
|
2634
2754
|
* @description What an estimated cost represents. `fixedPrice` is a real quoted price; `variableCap` is only
|
|
2635
2755
|
* the maximum that may be charged, because the actual cost varies; `unknown` means pricing could
|
|
@@ -2647,6 +2767,10 @@ interface components {
|
|
|
2647
2767
|
* @description The unique identifier of the action node.
|
|
2648
2768
|
*/
|
|
2649
2769
|
actionId: string;
|
|
2770
|
+
/** @description Where the user continues after a flow router action: a path on the hosted flow app, with
|
|
2771
|
+
* the query parameters that open the verification request created in the target flow. Only
|
|
2772
|
+
* returned to the user's own session. */
|
|
2773
|
+
redirectUrl?: string | null;
|
|
2650
2774
|
};
|
|
2651
2775
|
/** @description Whether one node of the ownership graph can be expanded, and at what estimated cost, as shown
|
|
2652
2776
|
* in the expansion preview. `countryCode` and pricing are always those of this node's own
|
|
@@ -2770,9 +2894,10 @@ interface components {
|
|
|
2770
2894
|
expansions: components["schemas"]["ExpansionDecision"][];
|
|
2771
2895
|
/**
|
|
2772
2896
|
* Format: uuid
|
|
2773
|
-
* @description The KYB's anchor verification request — the websocket room for `discovery-update`.
|
|
2897
|
+
* @description The KYB's anchor verification request — the websocket room for `discovery-update`. Omitted for a case nobody
|
|
2898
|
+
* has been anchored to yet, which has no room to push to.
|
|
2774
2899
|
*/
|
|
2775
|
-
verificationRequestId
|
|
2900
|
+
verificationRequestId?: string | null;
|
|
2776
2901
|
};
|
|
2777
2902
|
/** @enum {string} */
|
|
2778
2903
|
ExtractionPromptScope: "PLATFORM" | "ORGANIZATION";
|
|
@@ -2866,11 +2991,17 @@ interface components {
|
|
|
2866
2991
|
/** @enum {string} */
|
|
2867
2992
|
FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains" | "gte" | "lte";
|
|
2868
2993
|
Flow: {
|
|
2994
|
+
/** @description Whether the verification failure screen offers the AI support chatbot. */
|
|
2995
|
+
aiChatbotEnabled: boolean;
|
|
2869
2996
|
/** Format: date-time */
|
|
2870
2997
|
createdAt?: string | null;
|
|
2871
2998
|
failureUrl?: string | null;
|
|
2872
2999
|
/** Format: uuid */
|
|
2873
3000
|
id: string;
|
|
3001
|
+
/** @description The flow backs a flow template: it is edited in the builder but never published, started or
|
|
3002
|
+
* listed, only copied. The dashboard shows it as a template and hides what only applies to a
|
|
3003
|
+
* live flow. */
|
|
3004
|
+
isTemplate: boolean;
|
|
2874
3005
|
jdm: components["schemas"]["WorkflowGraph"];
|
|
2875
3006
|
name: string;
|
|
2876
3007
|
slug: string;
|
|
@@ -2884,6 +3015,16 @@ interface components {
|
|
|
2884
3015
|
/** Format: date-time */
|
|
2885
3016
|
updatedAt?: string | null;
|
|
2886
3017
|
};
|
|
3018
|
+
/** @description A flow's AML screening of the people it verifies (ENG-1542). Each person's first screening in a
|
|
3019
|
+
* flow result is charged at the organization's AML rate; ongoing monitoring re-screens them
|
|
3020
|
+
* periodically, billed per subject per year where the organization prices it. A company's KYB
|
|
3021
|
+
* keeps its case screening, which this does not govern. */
|
|
3022
|
+
FlowAmlScreening: {
|
|
3023
|
+
/** @description Whether the people the flow verifies are screened. */
|
|
3024
|
+
enabled: boolean;
|
|
3025
|
+
/** @description Whether they stay under ongoing monitoring. */
|
|
3026
|
+
ongoingMonitoring?: boolean;
|
|
3027
|
+
};
|
|
2887
3028
|
FlowResult: {
|
|
2888
3029
|
amlResults: components["schemas"]["AmlResult"][];
|
|
2889
3030
|
/** @description Custom risk tags conditionally assigned by the flow builder's AssignRiskTags action. */
|
|
@@ -2922,6 +3063,23 @@ interface components {
|
|
|
2922
3063
|
updatedAt?: string | null;
|
|
2923
3064
|
walletResults: components["schemas"]["WalletResult"][];
|
|
2924
3065
|
};
|
|
3066
|
+
/** @description Where a user's verification stands, without any of the data collected from them. */
|
|
3067
|
+
FlowResultStatusSummary: {
|
|
3068
|
+
/** Format: date-time */
|
|
3069
|
+
createdAt: string;
|
|
3070
|
+
customData: Record<string, unknown>;
|
|
3071
|
+
email?: string | null;
|
|
3072
|
+
/** Format: uuid */
|
|
3073
|
+
flowId?: string | null;
|
|
3074
|
+
/** Format: uuid */
|
|
3075
|
+
flowResultId: string;
|
|
3076
|
+
flowSlug: string;
|
|
3077
|
+
/** @description `true` when the user passed the verification, that is when `status` is `COMPLETED`. */
|
|
3078
|
+
passed: boolean;
|
|
3079
|
+
status: components["schemas"]["VerificationRequestStatus"];
|
|
3080
|
+
/** Format: date-time */
|
|
3081
|
+
updatedAt: string;
|
|
3082
|
+
};
|
|
2925
3083
|
FlowStep: {
|
|
2926
3084
|
config: components["schemas"]["DvConfig"];
|
|
2927
3085
|
/** Format: date-time */
|
|
@@ -3638,7 +3796,13 @@ interface components {
|
|
|
3638
3796
|
zid: string;
|
|
3639
3797
|
};
|
|
3640
3798
|
IdentitySettings: {
|
|
3799
|
+
/** @description The person's first name, as typed at registration. Only an account registered through
|
|
3800
|
+
* `/auth/register` (organization staff) has one: never set for a GUEST, the person being
|
|
3801
|
+
* verified. */
|
|
3802
|
+
firstName?: string | null;
|
|
3641
3803
|
lastEnvironmentIsSandbox?: boolean;
|
|
3804
|
+
/** @description The person's last name, as typed at registration. Same scope as the first name. */
|
|
3805
|
+
lastName?: string | null;
|
|
3642
3806
|
locale: components["schemas"]["Locale"];
|
|
3643
3807
|
/** @description `true` when this identity is demo/synthetic data (for example generated sample data in a
|
|
3644
3808
|
* sandbox) rather than a real end user. Never set for a real verified identity. */
|
|
@@ -3699,6 +3863,7 @@ interface components {
|
|
|
3699
3863
|
startedAt: string;
|
|
3700
3864
|
};
|
|
3701
3865
|
InputField: {
|
|
3866
|
+
binding?: null | components["schemas"]["BusinessInfoField"];
|
|
3702
3867
|
label: {
|
|
3703
3868
|
[key: string]: string;
|
|
3704
3869
|
};
|
|
@@ -3711,6 +3876,7 @@ interface components {
|
|
|
3711
3876
|
value?: unknown;
|
|
3712
3877
|
visibleWhen?: null | components["schemas"]["Condition"];
|
|
3713
3878
|
} | {
|
|
3879
|
+
binding?: null | components["schemas"]["BusinessInfoField"];
|
|
3714
3880
|
label: {
|
|
3715
3881
|
[key: string]: string;
|
|
3716
3882
|
};
|
|
@@ -3727,6 +3893,7 @@ interface components {
|
|
|
3727
3893
|
value?: unknown;
|
|
3728
3894
|
visibleWhen?: null | components["schemas"]["Condition"];
|
|
3729
3895
|
} | {
|
|
3896
|
+
binding?: null | components["schemas"]["BusinessInfoField"];
|
|
3730
3897
|
label: {
|
|
3731
3898
|
[key: string]: string;
|
|
3732
3899
|
};
|
|
@@ -3741,6 +3908,7 @@ interface components {
|
|
|
3741
3908
|
value?: unknown;
|
|
3742
3909
|
visibleWhen?: null | components["schemas"]["Condition"];
|
|
3743
3910
|
} | {
|
|
3911
|
+
binding?: null | components["schemas"]["BusinessInfoField"];
|
|
3744
3912
|
label: {
|
|
3745
3913
|
[key: string]: string;
|
|
3746
3914
|
};
|
|
@@ -3755,6 +3923,7 @@ interface components {
|
|
|
3755
3923
|
value?: unknown;
|
|
3756
3924
|
visibleWhen?: null | components["schemas"]["Condition"];
|
|
3757
3925
|
} | {
|
|
3926
|
+
binding?: null | components["schemas"]["BusinessInfoField"];
|
|
3758
3927
|
label: {
|
|
3759
3928
|
[key: string]: string;
|
|
3760
3929
|
};
|
|
@@ -3767,6 +3936,7 @@ interface components {
|
|
|
3767
3936
|
value?: unknown;
|
|
3768
3937
|
visibleWhen?: null | components["schemas"]["Condition"];
|
|
3769
3938
|
} | {
|
|
3939
|
+
binding?: null | components["schemas"]["BusinessInfoField"];
|
|
3770
3940
|
label: {
|
|
3771
3941
|
[key: string]: string;
|
|
3772
3942
|
};
|
|
@@ -3779,6 +3949,7 @@ interface components {
|
|
|
3779
3949
|
value?: unknown;
|
|
3780
3950
|
visibleWhen?: null | components["schemas"]["Condition"];
|
|
3781
3951
|
} | {
|
|
3952
|
+
binding?: null | components["schemas"]["BusinessInfoField"];
|
|
3782
3953
|
label: {
|
|
3783
3954
|
[key: string]: string;
|
|
3784
3955
|
};
|
|
@@ -3797,6 +3968,7 @@ interface components {
|
|
|
3797
3968
|
value?: unknown;
|
|
3798
3969
|
visibleWhen?: null | components["schemas"]["Condition"];
|
|
3799
3970
|
} | {
|
|
3971
|
+
binding?: null | components["schemas"]["BusinessInfoField"];
|
|
3800
3972
|
label: {
|
|
3801
3973
|
[key: string]: string;
|
|
3802
3974
|
};
|
|
@@ -3863,6 +4035,12 @@ interface components {
|
|
|
3863
4035
|
* @enum {string}
|
|
3864
4036
|
*/
|
|
3865
4037
|
KybCaseDueDiligenceLevel: "SIMPLIFIED" | "STANDARD" | "ENHANCED";
|
|
4038
|
+
/**
|
|
4039
|
+
* @description A flag a KYB case carries on the Home page and in the Inbox: something about the file a reviewer should see
|
|
4040
|
+
* before anything else.
|
|
4041
|
+
* @enum {string}
|
|
4042
|
+
*/
|
|
4043
|
+
KybCaseFlag: "SANCTIONS_HIT" | "PEP" | "ADVERSE_MEDIA" | "REGISTER_MISMATCH" | "MISSING_DOCUMENTS" | "OWNER_KYC_PENDING";
|
|
3866
4044
|
/** @description A KYB case's officers: the ultimate beneficial owners and the directors the case screens and
|
|
3867
4045
|
* invites into KYC. What the case's officer routes answer — the roster as it stands after the act. */
|
|
3868
4046
|
KybCaseOfficersResponse: {
|
|
@@ -3905,6 +4083,15 @@ interface components {
|
|
|
3905
4083
|
* @enum {string}
|
|
3906
4084
|
*/
|
|
3907
4085
|
KybCaseStatus: "OPEN" | "PROCESSING" | "WAITING_INPUT" | "ACTION_REQUIRED" | "READY_FOR_REVIEW" | "APPROVED" | "REJECTED" | "CANCELLED";
|
|
4086
|
+
/**
|
|
4087
|
+
* @description What kind of review a case is: the first look at a company, or a later one.
|
|
4088
|
+
*
|
|
4089
|
+
* Derived at read time, like the rest of this module, from whether the case re-verifies an
|
|
4090
|
+
* earlier one and from its transitions. There is no `EVENT_DRIVEN` yet: nothing opens a case on
|
|
4091
|
+
* an event.
|
|
4092
|
+
* @enum {string}
|
|
4093
|
+
*/
|
|
4094
|
+
KybCaseType: "ONBOARDING" | "PERIODIC_REVIEW";
|
|
3908
4095
|
KybCommunication: {
|
|
3909
4096
|
body: string;
|
|
3910
4097
|
/** Format: uuid */
|
|
@@ -3972,6 +4159,14 @@ interface components {
|
|
|
3972
4159
|
* @example true
|
|
3973
4160
|
*/
|
|
3974
4161
|
autoSendUboKycEmail: boolean;
|
|
4162
|
+
businessInfoForm?: null | components["schemas"]["Form"];
|
|
4163
|
+
/**
|
|
4164
|
+
* Format: uuid
|
|
4165
|
+
* @description The form the company answers about itself, from the organization's form library. Its
|
|
4166
|
+
* fields bound to a business-information key are the company's business information; the
|
|
4167
|
+
* others are the organization's own questions. Omitted: the platform's standard form.
|
|
4168
|
+
*/
|
|
4169
|
+
businessInfoFormId?: string | null;
|
|
3975
4170
|
/**
|
|
3976
4171
|
* @default false
|
|
3977
4172
|
* @example false
|
|
@@ -4112,9 +4307,9 @@ interface components {
|
|
|
4112
4307
|
KybDirectorsConfig: {
|
|
4113
4308
|
/**
|
|
4114
4309
|
* Format: uuid
|
|
4115
|
-
* @description The anchor KYB step this directors satellite belongs to.
|
|
4310
|
+
* @description The anchor KYB step this directors satellite belongs to. See `KybDocumentsConfig::kyb_step_id`.
|
|
4116
4311
|
*/
|
|
4117
|
-
kybStepId
|
|
4312
|
+
kybStepId?: string;
|
|
4118
4313
|
/**
|
|
4119
4314
|
* Format: uuid
|
|
4120
4315
|
* @description The KYC flow directors are invited into to verify their identity. Only used when
|
|
@@ -4284,9 +4479,10 @@ interface components {
|
|
|
4284
4479
|
} | null;
|
|
4285
4480
|
/**
|
|
4286
4481
|
* Format: uuid
|
|
4287
|
-
* @description The anchor KYB step this documents satellite belongs to.
|
|
4482
|
+
* @description The anchor KYB step this documents satellite belongs to. May be omitted where the anchor
|
|
4483
|
+
* doesn't exist yet (a flow setup draft); a step can't be saved without one.
|
|
4288
4484
|
*/
|
|
4289
|
-
kybStepId
|
|
4485
|
+
kybStepId?: string;
|
|
4290
4486
|
/** @example { "default": "Next step" } */
|
|
4291
4487
|
labels?: {
|
|
4292
4488
|
[key: string]: string;
|
|
@@ -4307,9 +4503,26 @@ interface components {
|
|
|
4307
4503
|
/** Format: int32 */
|
|
4308
4504
|
uploadedCount: number;
|
|
4309
4505
|
};
|
|
4506
|
+
/** @description The answer the case holds to one of the organization's own business-details questions. */
|
|
4507
|
+
KybFormAnswer: {
|
|
4508
|
+
/** @description The question as the form asks it: its labels, type and choices. Its own value is left
|
|
4509
|
+
* out: the answer is `value`. */
|
|
4510
|
+
field: components["schemas"]["InputField"];
|
|
4511
|
+
/** @description The key the cross-check, the clarifications and the edits name it by: `form.<name>`. */
|
|
4512
|
+
key: string;
|
|
4513
|
+
/** @description The answer as text, as the cross-check compares it: a select's choice by its label, a date
|
|
4514
|
+
* by its day. */
|
|
4515
|
+
text?: string | null;
|
|
4516
|
+
/** @description The answer as the case holds it now, an analyst's correction included; `None` unanswered. */
|
|
4517
|
+
value?: unknown;
|
|
4518
|
+
};
|
|
4310
4519
|
/** @description The KYB result metadata bag. Empty by default. */
|
|
4311
4520
|
KybMetadata: {
|
|
4312
4521
|
dueDiligenceLevel?: null | components["schemas"]["DueDiligenceLevel"];
|
|
4522
|
+
/** @description Whether this is the example case an organization is created with rather than a business
|
|
4523
|
+
* somebody submitted: fictional company, sample documents, no register queried and nothing
|
|
4524
|
+
* billed. Absent on every other result. */
|
|
4525
|
+
example?: boolean;
|
|
4313
4526
|
ownershipStructure?: null | components["schemas"]["OwnershipStructure"];
|
|
4314
4527
|
registryStatus?: null | components["schemas"]["CompanyStatus"];
|
|
4315
4528
|
screeningStrategy?: null | components["schemas"]["ScreeningStrategy"];
|
|
@@ -4340,6 +4553,10 @@ interface components {
|
|
|
4340
4553
|
assignedAt?: string | null;
|
|
4341
4554
|
/** Format: uuid */
|
|
4342
4555
|
assignedToIdentityId?: string | null;
|
|
4556
|
+
/** @description The business information the case must have: the keys its KYB step's business-details form
|
|
4557
|
+
* required. `None` when not recorded, or not loaded: every field. Set by callers that read
|
|
4558
|
+
* the case, like `document_checks`. */
|
|
4559
|
+
businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
|
|
4343
4560
|
businessInformation?: null | components["schemas"]["BusinessInformation"];
|
|
4344
4561
|
businessInformationVerification?: {
|
|
4345
4562
|
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
@@ -4362,13 +4579,18 @@ interface components {
|
|
|
4362
4579
|
flowStep?: null | components["schemas"]["FlowStep"];
|
|
4363
4580
|
/** Format: uuid */
|
|
4364
4581
|
flowStepId?: string | null;
|
|
4582
|
+
/** @description The answers to the organization's own business-details questions, in the order its form
|
|
4583
|
+
* asks them: fields of the case like the business information, compared and clarified under
|
|
4584
|
+
* their key (`form.<name>`). `None` when not loaded; set by callers that read the case, like
|
|
4585
|
+
* `document_checks`. */
|
|
4586
|
+
formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
|
|
4365
4587
|
/** Format: date-time */
|
|
4366
4588
|
fundedAt?: string | null;
|
|
4367
4589
|
/** Format: uuid */
|
|
4368
4590
|
id: string;
|
|
4369
4591
|
/** @description Admin-curated metadata. Organizations read it; only admins write it.
|
|
4370
4592
|
* Empty (`{}`) when nothing has been recorded. */
|
|
4371
|
-
metadata?: Record<string,
|
|
4593
|
+
metadata?: Record<string, unknown>;
|
|
4372
4594
|
nextAction?: null | components["schemas"]["NextAction"];
|
|
4373
4595
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
4374
4596
|
reason?: string | null;
|
|
@@ -4427,9 +4649,9 @@ interface components {
|
|
|
4427
4649
|
autoSendUboKycEmail: boolean;
|
|
4428
4650
|
/**
|
|
4429
4651
|
* Format: uuid
|
|
4430
|
-
* @description The anchor KYB step this UBOs satellite belongs to.
|
|
4652
|
+
* @description The anchor KYB step this UBOs satellite belongs to. See `KybDocumentsConfig::kyb_step_id`.
|
|
4431
4653
|
*/
|
|
4432
|
-
kybStepId
|
|
4654
|
+
kybStepId?: string;
|
|
4433
4655
|
/**
|
|
4434
4656
|
* Format: uuid
|
|
4435
4657
|
* @description The KYC flow UBOs are invited into to verify their identity. Only used when `requireKyc`
|
|
@@ -4477,6 +4699,12 @@ interface components {
|
|
|
4477
4699
|
/** Format: int32 */
|
|
4478
4700
|
uboCount: number;
|
|
4479
4701
|
};
|
|
4702
|
+
/**
|
|
4703
|
+
* Format: binary
|
|
4704
|
+
* @description A document verification result's KYC report: the PDF file itself, sent as the response body.
|
|
4705
|
+
* Described as binary so generated clients read it as a file rather than as JSON.
|
|
4706
|
+
*/
|
|
4707
|
+
KycReportPdf: Blob;
|
|
4480
4708
|
ListOrganizationFlowResultsResponse: {
|
|
4481
4709
|
page: components["schemas"]["FlowResult"][];
|
|
4482
4710
|
/** Format: int64 */
|
|
@@ -4900,6 +5128,20 @@ interface components {
|
|
|
4900
5128
|
* provider and will be completed later; `false` when the prefill is already complete. */
|
|
4901
5129
|
pending: boolean;
|
|
4902
5130
|
};
|
|
5131
|
+
/**
|
|
5132
|
+
* @description What kind of principal took an act. Stored as TEXT, mirrored by the `actorKind` CHECK
|
|
5133
|
+
* constraints.
|
|
5134
|
+
*
|
|
5135
|
+
* Recorded, never enforced: Casbin remains the whole authorisation boundary, and an organization
|
|
5136
|
+
* that does not want its bot deciding restricts it by role and by the flow's agentic mode. What
|
|
5137
|
+
* this buys is that a sealed decision can say a bot took it, and whose bot — which no row could
|
|
5138
|
+
* say before, because a decision named one identity id and nothing else.
|
|
5139
|
+
*
|
|
5140
|
+
* `Person` is the default because it is the only kind an unmarked historical row can be: every
|
|
5141
|
+
* writer that is not a person learned to say so in the same change that added the column.
|
|
5142
|
+
* @enum {string}
|
|
5143
|
+
*/
|
|
5144
|
+
PrincipalKind: "PERSON" | "BOT" | "API_KEY" | "SYSTEM";
|
|
4903
5145
|
/** @description Typed representation of process_additional_data stored in DV results.
|
|
4904
5146
|
*
|
|
4905
5147
|
* This struct captures all the additional data associated with document
|
|
@@ -5062,9 +5304,10 @@ interface components {
|
|
|
5062
5304
|
quotedCreditsTotal: number;
|
|
5063
5305
|
/**
|
|
5064
5306
|
* Format: uuid
|
|
5065
|
-
* @description The KYB's anchor verification request — the websocket room for `discovery-update`.
|
|
5307
|
+
* @description The KYB's anchor verification request — the websocket room for `discovery-update`. Omitted for a case nobody
|
|
5308
|
+
* has been anchored to yet, which has no room to push to.
|
|
5066
5309
|
*/
|
|
5067
|
-
verificationRequestId
|
|
5310
|
+
verificationRequestId?: string | null;
|
|
5068
5311
|
};
|
|
5069
5312
|
/** @description One purchased document, as reported by `GET .../kyb-cases/{case_id}/documents`. */
|
|
5070
5313
|
PurchasedDocument: {
|
|
@@ -5172,7 +5415,7 @@ interface components {
|
|
|
5172
5415
|
subject?: string | null;
|
|
5173
5416
|
};
|
|
5174
5417
|
/** @enum {string} */
|
|
5175
|
-
RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber" | "expirationDate";
|
|
5418
|
+
RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber" | "expirationDate" | "documentNumber";
|
|
5176
5419
|
ResultControlOperation: {
|
|
5177
5420
|
/** Format: uuid */
|
|
5178
5421
|
identityId: string;
|
|
@@ -5383,6 +5626,36 @@ interface components {
|
|
|
5383
5626
|
/** @description Last characters of the supplied secret, so the caller can confirm which one is in force. */
|
|
5384
5627
|
secretHint: string;
|
|
5385
5628
|
};
|
|
5629
|
+
/** @description What to look flow results up by. At least one of `email` and `customData` is required; when
|
|
5630
|
+
* several criteria are given, a flow result has to match all of them. */
|
|
5631
|
+
SearchFlowResultsRequest: {
|
|
5632
|
+
/** @description Custom data the flow result has to carry: every key given here has to be present with
|
|
5633
|
+
* the same value. Keys you leave out are not compared. */
|
|
5634
|
+
customData?: Record<string, unknown> | null;
|
|
5635
|
+
/**
|
|
5636
|
+
* @description Email address of the user, as given when the verification request was created. Matched
|
|
5637
|
+
* exactly, ignoring letter case.
|
|
5638
|
+
* @example jane.doe@example.com
|
|
5639
|
+
*/
|
|
5640
|
+
email?: string | null;
|
|
5641
|
+
/**
|
|
5642
|
+
* @description Limits the search to one flow. Without it, every flow of the organization is searched.
|
|
5643
|
+
* @example kyc-flow
|
|
5644
|
+
*/
|
|
5645
|
+
flowSlug?: string | null;
|
|
5646
|
+
/** Format: int32 */
|
|
5647
|
+
skip?: number;
|
|
5648
|
+
/**
|
|
5649
|
+
* Format: int32
|
|
5650
|
+
* @example 20
|
|
5651
|
+
*/
|
|
5652
|
+
take?: number;
|
|
5653
|
+
};
|
|
5654
|
+
SearchFlowResultsResponse: {
|
|
5655
|
+
page: components["schemas"]["FlowResultStatusSummary"][];
|
|
5656
|
+
/** Format: int64 */
|
|
5657
|
+
totalCount: number;
|
|
5658
|
+
};
|
|
5386
5659
|
/**
|
|
5387
5660
|
* @description Canonical security/authenticity check types.
|
|
5388
5661
|
* @enum {string}
|
|
@@ -5403,6 +5676,7 @@ interface components {
|
|
|
5403
5676
|
*/
|
|
5404
5677
|
ServiceCredentialEnvironment: "LIVE" | "TEST";
|
|
5405
5678
|
Settings: {
|
|
5679
|
+
amlScreening?: null | components["schemas"]["FlowAmlScreening"];
|
|
5406
5680
|
/** @description When true (default), prompt users to create a passkey during the verification flow.
|
|
5407
5681
|
* When false, skip the passkey creation step.
|
|
5408
5682
|
* Optional so that patch requests only write this field when explicitly provided. */
|
|
@@ -5416,6 +5690,11 @@ interface components {
|
|
|
5416
5690
|
* When false, skip vault unlock if an active KYC grant already exists for the organization.
|
|
5417
5691
|
* Optional so that patch requests only write this field when explicitly provided. */
|
|
5418
5692
|
oneClickAlwaysRequestUnlockVault?: boolean | null;
|
|
5693
|
+
/** @description When true, a returning holder is not asked which vault document to reuse: a document
|
|
5694
|
+
* they already shared with this organization is reused directly. Documents only ever
|
|
5695
|
+
* shared with other organizations still need the holder to pick them. Defaults to false.
|
|
5696
|
+
* Optional so that patch requests only write this field when explicitly provided. */
|
|
5697
|
+
oneClickSkipDocumentSelection?: boolean | null;
|
|
5419
5698
|
published?: boolean;
|
|
5420
5699
|
skipSignedAccess?: boolean;
|
|
5421
5700
|
slackNotifications?: string[] | null;
|
|
@@ -5479,7 +5758,7 @@ interface components {
|
|
|
5479
5758
|
SpidStepOutput: {
|
|
5480
5759
|
status: components["schemas"]["ResultStatus"];
|
|
5481
5760
|
};
|
|
5482
|
-
StartGeolocationVerificationRequest: Record<string,
|
|
5761
|
+
StartGeolocationVerificationRequest: Record<string, unknown>;
|
|
5483
5762
|
StartGeolocationVerificationResponse: {
|
|
5484
5763
|
nonce: string;
|
|
5485
5764
|
/** Format: uuid */
|
|
@@ -5701,11 +5980,11 @@ interface components {
|
|
|
5701
5980
|
* responses or webhooks. */
|
|
5702
5981
|
TmAgentReviewEvidence: {
|
|
5703
5982
|
/** @description The re-read case at actuation time, present only when it differed from the analytic one. */
|
|
5704
|
-
actuationCaseFile?: Record<string,
|
|
5705
|
-
caseFile: Record<string,
|
|
5706
|
-
findings: Record<string,
|
|
5707
|
-
mitigations: Record<string,
|
|
5708
|
-
verdict: Record<string,
|
|
5983
|
+
actuationCaseFile?: Record<string, unknown> | null;
|
|
5984
|
+
caseFile: Record<string, unknown>;
|
|
5985
|
+
findings: Record<string, unknown>;
|
|
5986
|
+
mitigations: Record<string, unknown>;
|
|
5987
|
+
verdict: Record<string, unknown>;
|
|
5709
5988
|
};
|
|
5710
5989
|
/** @description The API-facing projection of a stored `agentReview`.
|
|
5711
5990
|
*
|
|
@@ -5721,12 +6000,12 @@ interface components {
|
|
|
5721
6000
|
evidence?: null | components["schemas"]["TmAgentReviewEvidence"];
|
|
5722
6001
|
/** @description The deterministic guard outcome that produced the enacted decision; `null` when the guard
|
|
5723
6002
|
* never ran (the model did not recommend approval). */
|
|
5724
|
-
guard?: Record<string,
|
|
6003
|
+
guard?: Record<string, unknown> | null;
|
|
5725
6004
|
/** Format: uuid */
|
|
5726
6005
|
id: string;
|
|
5727
6006
|
mode: components["schemas"]["KybAgenticMode"];
|
|
5728
6007
|
model: string;
|
|
5729
|
-
promptVersions: Record<string,
|
|
6008
|
+
promptVersions: Record<string, unknown>;
|
|
5730
6009
|
rationale: string;
|
|
5731
6010
|
recommendedStatus: components["schemas"]["TmAlertStatus"];
|
|
5732
6011
|
/** Format: date-time */
|
|
@@ -5922,50 +6201,6 @@ interface components {
|
|
|
5922
6201
|
TmUpdateTransactionStatusRequest: {
|
|
5923
6202
|
status: components["schemas"]["TmTransactionStatus"];
|
|
5924
6203
|
};
|
|
5925
|
-
/** @description A top-up pack: a one-time purchase that adds credits to the organization's balance and
|
|
5926
|
-
* can optionally unlock products. */
|
|
5927
|
-
TopupPack: {
|
|
5928
|
-
/**
|
|
5929
|
-
* Format: int64
|
|
5930
|
-
* @description Price amount in the smallest currency unit (e.g. cents)
|
|
5931
|
-
*/
|
|
5932
|
-
amountCents: number;
|
|
5933
|
-
/**
|
|
5934
|
-
* Format: int64
|
|
5935
|
-
* @description Number of credits granted by this pack, from metadata `credits`
|
|
5936
|
-
*/
|
|
5937
|
-
credits: number;
|
|
5938
|
-
currency: components["schemas"]["Currency"];
|
|
5939
|
-
/** @description Products this pack enables in the production environment when it is purchased. Empty
|
|
5940
|
-
* when the pack grants credits only. */
|
|
5941
|
-
enabledProducts?: components["schemas"]["ProductType"][];
|
|
5942
|
-
/** @description `true` when the price carries `zyphe_visibility=private` metadata: a bespoke pack that
|
|
5943
|
-
* must never appear in the public catalog and is usable only by the organization named in
|
|
5944
|
-
* `organization_id`. Defaults to `false` so an untagged price stays public, and so cached
|
|
5945
|
-
* catalog entries serialized before this field existed still deserialize. */
|
|
5946
|
-
isPrivate?: boolean;
|
|
5947
|
-
/** @description Display name: nickname > product name > price ID */
|
|
5948
|
-
name: string;
|
|
5949
|
-
/** @description The organization a private pack belongs to, from price metadata `organization_id`.
|
|
5950
|
-
* Meaningless (and normally absent) on a public pack. A private pack WITHOUT this is
|
|
5951
|
-
* usable by nobody — failing closed beats leaking a bespoke price to every customer. */
|
|
5952
|
-
organizationId?: string | null;
|
|
5953
|
-
/** @description The pack's price ID. Pass it as `priceId` when creating a top-up checkout session. */
|
|
5954
|
-
priceId: string;
|
|
5955
|
-
/** @description Products this pack enables in the sandbox environment when it is purchased. Separate
|
|
5956
|
-
* from `enabledProducts` because an organization may be allowed to try a product in
|
|
5957
|
-
* sandbox without being able to use it in production. Empty when none. */
|
|
5958
|
-
sandboxEnabledProducts?: components["schemas"]["ProductType"][];
|
|
5959
|
-
/**
|
|
5960
|
-
* Format: int32
|
|
5961
|
-
* @description Optional validity window (in months) for the granted credits, from metadata `validity_months`
|
|
5962
|
-
*/
|
|
5963
|
-
validityMonths?: number | null;
|
|
5964
|
-
};
|
|
5965
|
-
/** @description Response for the top-up pack catalog endpoint (`GET .../billing/topup-packs`). */
|
|
5966
|
-
TopupPacksResponse: {
|
|
5967
|
-
packs: components["schemas"]["TopupPack"][];
|
|
5968
|
-
};
|
|
5969
6204
|
/** @description Summary of the automatic ownership discovery: the relevance threshold it uses, its credit
|
|
5970
6205
|
* budget, what it has spent so far and, once finished, how it ended. Returned to your
|
|
5971
6206
|
* organization only, never to the applicant. */
|
|
@@ -6065,7 +6300,7 @@ interface components {
|
|
|
6065
6300
|
totalOwnershipPercentage?: number | null;
|
|
6066
6301
|
};
|
|
6067
6302
|
/** @enum {string} */
|
|
6068
|
-
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_require_kyc_needs_kyc_flow" | "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";
|
|
6303
|
+
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_require_kyc_needs_kyc_flow" | "validation_copy_flow_kyc_flow_not_mapped" | "validation_flow_backs_template" | "validation_flow_holds_example_case" | "validation_kyc_flow_is_template" | "validation_kyb_moderation_status_wrong" | "validation_kyb_missing_required_documents" | "validation_form_name_exists" | "validation_kyb_business_info_form_not_found" | "validation_kyb_business_info_form_invalid" | "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";
|
|
6069
6304
|
VaultUnlockPasskeyData: {
|
|
6070
6305
|
/** @description Passkey challenge for vault unlock (base64url) */
|
|
6071
6306
|
challenge: string;
|
|
@@ -6074,7 +6309,7 @@ interface components {
|
|
|
6074
6309
|
/** @description Full WebAuthn `PublicKeyCredentialRequestOptions` for vault unlock.
|
|
6075
6310
|
* Frontends should pass `options.publicKey` directly to
|
|
6076
6311
|
* `navigator.credentials.get({ publicKey })`. */
|
|
6077
|
-
options: Record<string,
|
|
6312
|
+
options: Record<string, unknown>;
|
|
6078
6313
|
/** @description PRF salt for vault unlock (base64url) */
|
|
6079
6314
|
prfSalt: string;
|
|
6080
6315
|
};
|
|
@@ -6927,6 +7162,59 @@ interface operations {
|
|
|
6927
7162
|
};
|
|
6928
7163
|
};
|
|
6929
7164
|
};
|
|
7165
|
+
searchFlowResults: {
|
|
7166
|
+
parameters: {
|
|
7167
|
+
query: {
|
|
7168
|
+
sandbox: boolean;
|
|
7169
|
+
locale?: components["schemas"]["Locale"];
|
|
7170
|
+
};
|
|
7171
|
+
header?: never;
|
|
7172
|
+
path: {
|
|
7173
|
+
/** @description Organization ID */
|
|
7174
|
+
organization_id: string;
|
|
7175
|
+
};
|
|
7176
|
+
cookie?: never;
|
|
7177
|
+
};
|
|
7178
|
+
requestBody: {
|
|
7179
|
+
content: {
|
|
7180
|
+
"application/json": components["schemas"]["SearchFlowResultsRequest"];
|
|
7181
|
+
};
|
|
7182
|
+
};
|
|
7183
|
+
responses: {
|
|
7184
|
+
200: {
|
|
7185
|
+
headers: {
|
|
7186
|
+
[name: string]: unknown;
|
|
7187
|
+
};
|
|
7188
|
+
content: {
|
|
7189
|
+
"application/json": components["schemas"]["SearchFlowResultsResponse"];
|
|
7190
|
+
};
|
|
7191
|
+
};
|
|
7192
|
+
400: {
|
|
7193
|
+
headers: {
|
|
7194
|
+
[name: string]: unknown;
|
|
7195
|
+
};
|
|
7196
|
+
content: {
|
|
7197
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7198
|
+
};
|
|
7199
|
+
};
|
|
7200
|
+
401: {
|
|
7201
|
+
headers: {
|
|
7202
|
+
[name: string]: unknown;
|
|
7203
|
+
};
|
|
7204
|
+
content: {
|
|
7205
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7206
|
+
};
|
|
7207
|
+
};
|
|
7208
|
+
500: {
|
|
7209
|
+
headers: {
|
|
7210
|
+
[name: string]: unknown;
|
|
7211
|
+
};
|
|
7212
|
+
content: {
|
|
7213
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
7214
|
+
};
|
|
7215
|
+
};
|
|
7216
|
+
};
|
|
7217
|
+
};
|
|
6930
7218
|
sendUboKycReminder: {
|
|
6931
7219
|
parameters: {
|
|
6932
7220
|
query: {
|
|
@@ -8217,6 +8505,74 @@ interface operations {
|
|
|
8217
8505
|
};
|
|
8218
8506
|
};
|
|
8219
8507
|
};
|
|
8508
|
+
getDocumentVerificationResultReport: {
|
|
8509
|
+
parameters: {
|
|
8510
|
+
query: {
|
|
8511
|
+
sandbox: boolean;
|
|
8512
|
+
locale?: components["schemas"]["Locale"];
|
|
8513
|
+
};
|
|
8514
|
+
header?: never;
|
|
8515
|
+
path: {
|
|
8516
|
+
/**
|
|
8517
|
+
* @description The ID of the organization
|
|
8518
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
8519
|
+
*/
|
|
8520
|
+
organization_id: string;
|
|
8521
|
+
/**
|
|
8522
|
+
* @description The ID of the flow result
|
|
8523
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
8524
|
+
*/
|
|
8525
|
+
flow_result_id: string;
|
|
8526
|
+
/**
|
|
8527
|
+
* @description The slug of the flow
|
|
8528
|
+
* @example flow-slug
|
|
8529
|
+
*/
|
|
8530
|
+
flow_slug: string;
|
|
8531
|
+
/**
|
|
8532
|
+
* @description The ID of the DV result
|
|
8533
|
+
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
8534
|
+
*/
|
|
8535
|
+
dv_result_id: string;
|
|
8536
|
+
};
|
|
8537
|
+
cookie?: never;
|
|
8538
|
+
};
|
|
8539
|
+
requestBody?: never;
|
|
8540
|
+
responses: {
|
|
8541
|
+
/** @description The report PDF */
|
|
8542
|
+
200: {
|
|
8543
|
+
headers: {
|
|
8544
|
+
[name: string]: unknown;
|
|
8545
|
+
};
|
|
8546
|
+
content: {
|
|
8547
|
+
"application/pdf": components["schemas"]["KycReportPdf"];
|
|
8548
|
+
};
|
|
8549
|
+
};
|
|
8550
|
+
403: {
|
|
8551
|
+
headers: {
|
|
8552
|
+
[name: string]: unknown;
|
|
8553
|
+
};
|
|
8554
|
+
content: {
|
|
8555
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
8556
|
+
};
|
|
8557
|
+
};
|
|
8558
|
+
404: {
|
|
8559
|
+
headers: {
|
|
8560
|
+
[name: string]: unknown;
|
|
8561
|
+
};
|
|
8562
|
+
content: {
|
|
8563
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
8564
|
+
};
|
|
8565
|
+
};
|
|
8566
|
+
500: {
|
|
8567
|
+
headers: {
|
|
8568
|
+
[name: string]: unknown;
|
|
8569
|
+
};
|
|
8570
|
+
content: {
|
|
8571
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
8572
|
+
};
|
|
8573
|
+
};
|
|
8574
|
+
};
|
|
8575
|
+
};
|
|
8220
8576
|
getProofOfAddressResultDetails: {
|
|
8221
8577
|
parameters: {
|
|
8222
8578
|
query: {
|
|
@@ -8743,118 +9099,6 @@ interface operations {
|
|
|
8743
9099
|
};
|
|
8744
9100
|
};
|
|
8745
9101
|
};
|
|
8746
|
-
get_topup_packs: {
|
|
8747
|
-
parameters: {
|
|
8748
|
-
query?: never;
|
|
8749
|
-
header?: never;
|
|
8750
|
-
path: {
|
|
8751
|
-
/** @description Organization ID */
|
|
8752
|
-
organization_id: string;
|
|
8753
|
-
};
|
|
8754
|
-
cookie?: never;
|
|
8755
|
-
};
|
|
8756
|
-
requestBody?: never;
|
|
8757
|
-
responses: {
|
|
8758
|
-
200: {
|
|
8759
|
-
headers: {
|
|
8760
|
-
[name: string]: unknown;
|
|
8761
|
-
};
|
|
8762
|
-
content: {
|
|
8763
|
-
"application/json": components["schemas"]["TopupPacksResponse"];
|
|
8764
|
-
};
|
|
8765
|
-
};
|
|
8766
|
-
401: {
|
|
8767
|
-
headers: {
|
|
8768
|
-
[name: string]: unknown;
|
|
8769
|
-
};
|
|
8770
|
-
content: {
|
|
8771
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
8772
|
-
};
|
|
8773
|
-
};
|
|
8774
|
-
403: {
|
|
8775
|
-
headers: {
|
|
8776
|
-
[name: string]: unknown;
|
|
8777
|
-
};
|
|
8778
|
-
content: {
|
|
8779
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
8780
|
-
};
|
|
8781
|
-
};
|
|
8782
|
-
500: {
|
|
8783
|
-
headers: {
|
|
8784
|
-
[name: string]: unknown;
|
|
8785
|
-
};
|
|
8786
|
-
content: {
|
|
8787
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
8788
|
-
};
|
|
8789
|
-
};
|
|
8790
|
-
};
|
|
8791
|
-
};
|
|
8792
|
-
create_topup_checkout: {
|
|
8793
|
-
parameters: {
|
|
8794
|
-
query?: never;
|
|
8795
|
-
header?: never;
|
|
8796
|
-
path: {
|
|
8797
|
-
/** @description Organization ID */
|
|
8798
|
-
organization_id: string;
|
|
8799
|
-
};
|
|
8800
|
-
cookie?: never;
|
|
8801
|
-
};
|
|
8802
|
-
requestBody: {
|
|
8803
|
-
content: {
|
|
8804
|
-
"application/json": components["schemas"]["CreateTopupCheckoutRequest"];
|
|
8805
|
-
};
|
|
8806
|
-
};
|
|
8807
|
-
responses: {
|
|
8808
|
-
200: {
|
|
8809
|
-
headers: {
|
|
8810
|
-
[name: string]: unknown;
|
|
8811
|
-
};
|
|
8812
|
-
content: {
|
|
8813
|
-
"application/json": components["schemas"]["CheckoutSessionResponse"];
|
|
8814
|
-
};
|
|
8815
|
-
};
|
|
8816
|
-
400: {
|
|
8817
|
-
headers: {
|
|
8818
|
-
[name: string]: unknown;
|
|
8819
|
-
};
|
|
8820
|
-
content: {
|
|
8821
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
8822
|
-
};
|
|
8823
|
-
};
|
|
8824
|
-
401: {
|
|
8825
|
-
headers: {
|
|
8826
|
-
[name: string]: unknown;
|
|
8827
|
-
};
|
|
8828
|
-
content: {
|
|
8829
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
8830
|
-
};
|
|
8831
|
-
};
|
|
8832
|
-
403: {
|
|
8833
|
-
headers: {
|
|
8834
|
-
[name: string]: unknown;
|
|
8835
|
-
};
|
|
8836
|
-
content: {
|
|
8837
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
8838
|
-
};
|
|
8839
|
-
};
|
|
8840
|
-
404: {
|
|
8841
|
-
headers: {
|
|
8842
|
-
[name: string]: unknown;
|
|
8843
|
-
};
|
|
8844
|
-
content: {
|
|
8845
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
8846
|
-
};
|
|
8847
|
-
};
|
|
8848
|
-
500: {
|
|
8849
|
-
headers: {
|
|
8850
|
-
[name: string]: unknown;
|
|
8851
|
-
};
|
|
8852
|
-
content: {
|
|
8853
|
-
"application/json": components["schemas"]["BaxeError"];
|
|
8854
|
-
};
|
|
8855
|
-
};
|
|
8856
|
-
};
|
|
8857
|
-
};
|
|
8858
9102
|
sdkIngestTransaction: {
|
|
8859
9103
|
parameters: {
|
|
8860
9104
|
query: {
|
|
@@ -10000,6 +10244,94 @@ declare function listFlowResults({ organizationId, flowSlug, isSandbox, paginati
|
|
|
10000
10244
|
"x-api-key": string;
|
|
10001
10245
|
};
|
|
10002
10246
|
}, `${string}/${string}`>>;
|
|
10247
|
+
interface SearchFlowResultsParams {
|
|
10248
|
+
organizationId: string;
|
|
10249
|
+
isSandbox: boolean;
|
|
10250
|
+
/**
|
|
10251
|
+
* What to look flow results up by: `email`, `customData`, or both. At least one is required; when several are given,
|
|
10252
|
+
* a flow result has to match all of them.
|
|
10253
|
+
* @example { email: 'jane.doe@example.com', flowSlug: 'kyc-flow', skip: 0, take: 20 }
|
|
10254
|
+
*/
|
|
10255
|
+
search: components['schemas']['SearchFlowResultsRequest'];
|
|
10256
|
+
locale?: components['schemas']['Locale'];
|
|
10257
|
+
}
|
|
10258
|
+
/**
|
|
10259
|
+
* Tells whether a user passed a verification. Returns the status of every flow result matching the user's email or the
|
|
10260
|
+
* custom data attached when the verification request was created, most recently updated first. `passed` is `true` once
|
|
10261
|
+
* the user completed the flow successfully; a user who never started a verification gives an empty page.
|
|
10262
|
+
*/
|
|
10263
|
+
declare function searchFlowResults({ organizationId, isSandbox, search, locale }: SearchFlowResultsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
|
|
10264
|
+
parameters: {
|
|
10265
|
+
query: {
|
|
10266
|
+
sandbox: boolean;
|
|
10267
|
+
locale?: components["schemas"]["Locale"];
|
|
10268
|
+
};
|
|
10269
|
+
header?: never;
|
|
10270
|
+
path: {
|
|
10271
|
+
organization_id: string;
|
|
10272
|
+
};
|
|
10273
|
+
cookie?: never;
|
|
10274
|
+
};
|
|
10275
|
+
requestBody: {
|
|
10276
|
+
content: {
|
|
10277
|
+
"application/json": components["schemas"]["SearchFlowResultsRequest"];
|
|
10278
|
+
};
|
|
10279
|
+
};
|
|
10280
|
+
responses: {
|
|
10281
|
+
200: {
|
|
10282
|
+
headers: {
|
|
10283
|
+
[name: string]: unknown;
|
|
10284
|
+
};
|
|
10285
|
+
content: {
|
|
10286
|
+
"application/json": components["schemas"]["SearchFlowResultsResponse"];
|
|
10287
|
+
};
|
|
10288
|
+
};
|
|
10289
|
+
400: {
|
|
10290
|
+
headers: {
|
|
10291
|
+
[name: string]: unknown;
|
|
10292
|
+
};
|
|
10293
|
+
content: {
|
|
10294
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
10295
|
+
};
|
|
10296
|
+
};
|
|
10297
|
+
401: {
|
|
10298
|
+
headers: {
|
|
10299
|
+
[name: string]: unknown;
|
|
10300
|
+
};
|
|
10301
|
+
content: {
|
|
10302
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
10303
|
+
};
|
|
10304
|
+
};
|
|
10305
|
+
500: {
|
|
10306
|
+
headers: {
|
|
10307
|
+
[name: string]: unknown;
|
|
10308
|
+
};
|
|
10309
|
+
content: {
|
|
10310
|
+
"application/json": components["schemas"]["BaxeError"];
|
|
10311
|
+
};
|
|
10312
|
+
};
|
|
10313
|
+
};
|
|
10314
|
+
}, {
|
|
10315
|
+
params: {
|
|
10316
|
+
path: {
|
|
10317
|
+
organization_id: string;
|
|
10318
|
+
};
|
|
10319
|
+
query: {
|
|
10320
|
+
sandbox: boolean;
|
|
10321
|
+
locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
|
|
10322
|
+
};
|
|
10323
|
+
};
|
|
10324
|
+
body: {
|
|
10325
|
+
customData?: Record<string, unknown> | null;
|
|
10326
|
+
email?: string | null;
|
|
10327
|
+
flowSlug?: string | null;
|
|
10328
|
+
skip?: number;
|
|
10329
|
+
take?: number;
|
|
10330
|
+
};
|
|
10331
|
+
headers: {
|
|
10332
|
+
"x-api-key": string;
|
|
10333
|
+
};
|
|
10334
|
+
}, `${string}/${string}`>>;
|
|
10003
10335
|
declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
|
|
10004
10336
|
data: {
|
|
10005
10337
|
dvResults: {
|
|
@@ -10012,6 +10344,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10012
10344
|
data: {
|
|
10013
10345
|
[key: string]: unknown;
|
|
10014
10346
|
};
|
|
10347
|
+
documentClass?: string | null;
|
|
10015
10348
|
documentId?: string | null;
|
|
10016
10349
|
documentScorePercent?: number | null;
|
|
10017
10350
|
documentType?: number | null;
|
|
@@ -10028,6 +10361,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10028
10361
|
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
10029
10362
|
provinceCode?: string | null;
|
|
10030
10363
|
reasons: components["schemas"]["DvReason"][];
|
|
10364
|
+
reviewReason?: null | components["schemas"]["DvReviewReason"];
|
|
10031
10365
|
status: components["schemas"]["ResultStatus"];
|
|
10032
10366
|
updatedAt?: string | null;
|
|
10033
10367
|
validUntil?: string | null;
|
|
@@ -10035,8 +10369,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10035
10369
|
}[] | undefined;
|
|
10036
10370
|
amlResults: {
|
|
10037
10371
|
adverseMedia?: boolean;
|
|
10372
|
+
caseId?: string | null;
|
|
10038
10373
|
createdAt: string;
|
|
10039
10374
|
data?: null | components["schemas"]["AmlRiskResult"];
|
|
10375
|
+
flowResultId?: string | null;
|
|
10040
10376
|
id: string;
|
|
10041
10377
|
namedPersonRef?: string | null;
|
|
10042
10378
|
pep: boolean;
|
|
@@ -10135,6 +10471,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10135
10471
|
kybResults?: {
|
|
10136
10472
|
assignedAt?: string | null;
|
|
10137
10473
|
assignedToIdentityId?: string | null;
|
|
10474
|
+
businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
|
|
10138
10475
|
businessInformation?: null | components["schemas"]["BusinessInformation"];
|
|
10139
10476
|
businessInformationVerification?: {
|
|
10140
10477
|
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
@@ -10146,9 +10483,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10146
10483
|
effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
|
|
10147
10484
|
flowStep?: null | components["schemas"]["FlowStep"];
|
|
10148
10485
|
flowStepId?: string | null;
|
|
10486
|
+
formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
|
|
10149
10487
|
fundedAt?: string | null;
|
|
10150
10488
|
id: string;
|
|
10151
|
-
metadata?: Record<string,
|
|
10489
|
+
metadata?: Record<string, unknown>;
|
|
10152
10490
|
nextAction?: null | components["schemas"]["NextAction"];
|
|
10153
10491
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
10154
10492
|
reason?: string | null;
|
|
@@ -10218,6 +10556,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10218
10556
|
data: {
|
|
10219
10557
|
[key: string]: unknown;
|
|
10220
10558
|
};
|
|
10559
|
+
documentClass?: string | null;
|
|
10221
10560
|
documentId?: string | null;
|
|
10222
10561
|
documentScorePercent?: number | null;
|
|
10223
10562
|
documentType?: number | null;
|
|
@@ -10234,6 +10573,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10234
10573
|
processAdditionalData: components["schemas"]["ProcessAdditionalData"];
|
|
10235
10574
|
provinceCode?: string | null;
|
|
10236
10575
|
reasons: components["schemas"]["DvReason"][];
|
|
10576
|
+
reviewReason?: null | components["schemas"]["DvReviewReason"];
|
|
10237
10577
|
status: components["schemas"]["ResultStatus"];
|
|
10238
10578
|
updatedAt?: string | null;
|
|
10239
10579
|
validUntil?: string | null;
|
|
@@ -10241,8 +10581,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10241
10581
|
}[] | undefined;
|
|
10242
10582
|
amlResults: {
|
|
10243
10583
|
adverseMedia?: boolean;
|
|
10584
|
+
caseId?: string | null;
|
|
10244
10585
|
createdAt: string;
|
|
10245
10586
|
data?: null | components["schemas"]["AmlRiskResult"];
|
|
10587
|
+
flowResultId?: string | null;
|
|
10246
10588
|
id: string;
|
|
10247
10589
|
namedPersonRef?: string | null;
|
|
10248
10590
|
pep: boolean;
|
|
@@ -10341,6 +10683,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10341
10683
|
kybResults?: {
|
|
10342
10684
|
assignedAt?: string | null;
|
|
10343
10685
|
assignedToIdentityId?: string | null;
|
|
10686
|
+
businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
|
|
10344
10687
|
businessInformation?: null | components["schemas"]["BusinessInformation"];
|
|
10345
10688
|
businessInformationVerification?: {
|
|
10346
10689
|
[key: string]: components["schemas"]["BusinessInfoFieldVerification"];
|
|
@@ -10352,9 +10695,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
|
|
|
10352
10695
|
effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
|
|
10353
10696
|
flowStep?: null | components["schemas"]["FlowStep"];
|
|
10354
10697
|
flowStepId?: string | null;
|
|
10698
|
+
formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
|
|
10355
10699
|
fundedAt?: string | null;
|
|
10356
10700
|
id: string;
|
|
10357
|
-
metadata?: Record<string,
|
|
10701
|
+
metadata?: Record<string, unknown>;
|
|
10358
10702
|
nextAction?: null | components["schemas"]["NextAction"];
|
|
10359
10703
|
pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
|
|
10360
10704
|
reason?: string | null;
|
|
@@ -10433,6 +10777,32 @@ declare function getDvResult({ organizationId, flowResultId, dvResultId, isSandb
|
|
|
10433
10777
|
};
|
|
10434
10778
|
response: Response;
|
|
10435
10779
|
}>;
|
|
10780
|
+
interface GetDvResultReportParams extends GetDvResultParams {
|
|
10781
|
+
flowSlug: string;
|
|
10782
|
+
/**
|
|
10783
|
+
* The report's language: `en`, `it`, `de`, `es`, `fr` or `pt`; any other prints in English.
|
|
10784
|
+
* @example 'en'
|
|
10785
|
+
*/
|
|
10786
|
+
locale?: components['schemas']['Locale'];
|
|
10787
|
+
}
|
|
10788
|
+
/**
|
|
10789
|
+
* Downloads the KYC report of a document verification result as a PDF: its outcome and every check it was held
|
|
10790
|
+
* against, the data read from the document, the document images, the device and session, the person's AML screenings
|
|
10791
|
+
* and an audit trail, with the verification data attached to the PDF as JSON. The report is generated on each call.
|
|
10792
|
+
*
|
|
10793
|
+
* Requires the Export API product. The body is a PDF, not JSON: a direct `openapi-fetch` call to this endpoint must set
|
|
10794
|
+
* `parseAs: 'arrayBuffer'` (or `'blob'`), as this helper does, instead of relying on the default JSON parser.
|
|
10795
|
+
*/
|
|
10796
|
+
declare function getDvResultReport({ organizationId, flowResultId, flowSlug, dvResultId, isSandbox, locale }: GetDvResultReportParams, opts: SDKOptions): Promise<{
|
|
10797
|
+
data: Uint8Array<ArrayBuffer> | undefined;
|
|
10798
|
+
error: {
|
|
10799
|
+
code: number;
|
|
10800
|
+
errorTag: components["schemas"]["ErrorTags"];
|
|
10801
|
+
message?: string | null;
|
|
10802
|
+
} | undefined;
|
|
10803
|
+
response: Response;
|
|
10804
|
+
fileName: string | undefined;
|
|
10805
|
+
}>;
|
|
10436
10806
|
|
|
10437
10807
|
interface KybResultParams {
|
|
10438
10808
|
organizationId: string;
|
|
@@ -12685,4 +13055,4 @@ interface WebhookVerifierOptions<T extends WebhookUnauthorizedHandler> {
|
|
|
12685
13055
|
exposeRawBody?: boolean;
|
|
12686
13056
|
}
|
|
12687
13057
|
|
|
12688
|
-
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, addKybCaseDirectors, addKybCaseUbos, addKybDirectors, addKybUbos, bufferToHex, completeDocumentSelectionStep, completeDvStep, completeLivenessStep, constructVerificationSessionUrl, createVerificationSession, decideKybCase, getDvResult, getFlowResult, getKybCase, getKybCaseOfficers, getKybCaseReport, getNextStepDetails, getTinCheck, getTinCheckQuote, getTransaction, hexToBytes, ingestTransaction, listFlowResults, listTinChecks, parseSignatureHeader, removeKybCaseDirector, removeKybCaseUbo, removeKybDirector, removeKybUbo, requestKybCaseOnDemandDocument, requestKybOnDemandDocument, runTinCheck, screenAml, sendKybCaseUboReminder, sendKybUboReminder, timingSafeEqual, updateTransactionStatus };
|
|
13058
|
+
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, addKybCaseDirectors, addKybCaseUbos, addKybDirectors, addKybUbos, bufferToHex, completeDocumentSelectionStep, completeDvStep, completeLivenessStep, constructVerificationSessionUrl, createVerificationSession, decideKybCase, getDvResult, getDvResultReport, getFlowResult, getKybCase, getKybCaseOfficers, getKybCaseReport, getNextStepDetails, getTinCheck, getTinCheckQuote, getTransaction, hexToBytes, ingestTransaction, listFlowResults, listTinChecks, parseSignatureHeader, removeKybCaseDirector, removeKybCaseUbo, removeKybDirector, removeKybUbo, requestKybCaseOnDemandDocument, requestKybOnDemandDocument, runTinCheck, screenAml, searchFlowResults, sendKybCaseUboReminder, sendKybUboReminder, timingSafeEqual, updateTransactionStatus };
|