@zyphe-sdk/core 0.8.0 → 0.9.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 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" | "DisposableEmailDomain" | "RegistrationOffer" | "RegistrationOfferLink" | "WebhookEndpoint" | "WebhookOrganizationSecret" | "Unknown";
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
@@ -2459,8 +2530,17 @@ interface components {
2459
2530
  * `providesLiveness` and `providesAuthenticity` are `true` when the session itself performs the
2460
2531
  * liveness check and the document-authenticity check. When `false`, the session does not: a check
2461
2532
  * runs only if the flow has one of its own, a liveness step or the step's `docauthChecks`, which
2462
- * are empty by default. */
2533
+ * are empty by default.
2534
+ *
2535
+ * `acceptedCaptures` lists every submission `process-dv-document` takes for this attempt: the
2536
+ * capture mode above, plus `DIRECT` whenever the provider can process an uploaded image. The
2537
+ * capture mode is what Zyphe's own web app renders; `acceptedCaptures` is what a backend-only
2538
+ * integrator reads to learn it may post `images` against a `SESSION` attempt. The two flags
2539
+ * above describe the capture mode, not an upload: a `DIRECT` submission to a `SESSION` attempt
2540
+ * skips whatever selfie and capture-time checks that session performs (`providesLiveness`), so
2541
+ * the flow's own liveness step is the one that counts. */
2463
2542
  DvCapture: {
2543
+ acceptedCaptures?: components["schemas"]["DvCaptureMode"][];
2464
2544
  capture: components["schemas"]["DvCaptureMode"];
2465
2545
  providesAuthenticity: boolean;
2466
2546
  providesLiveness: boolean;
@@ -2565,6 +2645,7 @@ interface components {
2565
2645
  processAdditionalData: components["schemas"]["ProcessAdditionalData"];
2566
2646
  provinceCode?: string | null;
2567
2647
  reasons: components["schemas"]["DvReason"][];
2648
+ reviewReason?: null | components["schemas"]["DvReviewReason"];
2568
2649
  status: components["schemas"]["ResultStatus"];
2569
2650
  /** Format: date-time */
2570
2651
  updatedAt?: string | null;
@@ -2577,6 +2658,27 @@ interface components {
2577
2658
  /** Format: uuid */
2578
2659
  verificationRequestId?: string | null;
2579
2660
  };
2661
+ /** @description Why a DV or liveness verification was taken out of the user's hands and sent for review.
2662
+ *
2663
+ * Written by the attempt that ends the verification; the review that follows leaves it as it is.
2664
+ * It names the most recent escalation: a later escalation replaces it. */
2665
+ DvReviewReason: {
2666
+ /** Format: int32 */
2667
+ attempts: number;
2668
+ /** @enum {string} */
2669
+ kind: "ATTEMPTS_EXHAUSTED";
2670
+ /** Format: int32 */
2671
+ maxAttempts: number;
2672
+ } | {
2673
+ /** @enum {string} */
2674
+ kind: "BLOCKING_REASON";
2675
+ reasons: components["schemas"]["DvReason"][];
2676
+ } | {
2677
+ /** Format: int32 */
2678
+ attempts: number;
2679
+ /** @enum {string} */
2680
+ kind: "UNUSABLE_CAPTURES";
2681
+ };
2580
2682
  DvStepOutput: {
2581
2683
  /** @description Whether the subject's screening found adverse media — a routing signal beside `amlPep` and
2582
2684
  * `amlSanctions`, so a flow can branch on it as it can on the other two. `None` until a
@@ -2629,7 +2731,7 @@ interface components {
2629
2731
  number: number;
2630
2732
  };
2631
2733
  /** @enum {string} */
2632
- ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "organization_under_retention" | "storage" | "verification_request_not_found" | "document_reader" | "sse" | "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" | "disposable_email" | "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" | "compliance_policy_open_questions" | "tin_check_invalid_tin" | "tin_check_unavailable" | "tin_check_ein_required" | "tin_check_mismatch" | "tin_check_attempts_exhausted";
2734
+ 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
2735
  /**
2634
2736
  * @description What an estimated cost represents. `fixedPrice` is a real quoted price; `variableCap` is only
2635
2737
  * the maximum that may be charged, because the actual cost varies; `unknown` means pricing could
@@ -2647,6 +2749,10 @@ interface components {
2647
2749
  * @description The unique identifier of the action node.
2648
2750
  */
2649
2751
  actionId: string;
2752
+ /** @description Where the user continues after a flow router action: a path on the hosted flow app, with
2753
+ * the query parameters that open the verification request created in the target flow. Only
2754
+ * returned to the user's own session. */
2755
+ redirectUrl?: string | null;
2650
2756
  };
2651
2757
  /** @description Whether one node of the ownership graph can be expanded, and at what estimated cost, as shown
2652
2758
  * in the expansion preview. `countryCode` and pricing are always those of this node's own
@@ -2770,9 +2876,10 @@ interface components {
2770
2876
  expansions: components["schemas"]["ExpansionDecision"][];
2771
2877
  /**
2772
2878
  * Format: uuid
2773
- * @description The KYB's anchor verification request — the websocket room for `discovery-update`.
2879
+ * @description The KYB's anchor verification request — the websocket room for `discovery-update`. Omitted for a case nobody
2880
+ * has been anchored to yet, which has no room to push to.
2774
2881
  */
2775
- verificationRequestId: string;
2882
+ verificationRequestId?: string | null;
2776
2883
  };
2777
2884
  /** @enum {string} */
2778
2885
  ExtractionPromptScope: "PLATFORM" | "ORGANIZATION";
@@ -2866,11 +2973,17 @@ interface components {
2866
2973
  /** @enum {string} */
2867
2974
  FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains" | "gte" | "lte";
2868
2975
  Flow: {
2976
+ /** @description Whether the verification failure screen offers the AI support chatbot. */
2977
+ aiChatbotEnabled: boolean;
2869
2978
  /** Format: date-time */
2870
2979
  createdAt?: string | null;
2871
2980
  failureUrl?: string | null;
2872
2981
  /** Format: uuid */
2873
2982
  id: string;
2983
+ /** @description The flow backs a flow template: it is edited in the builder but never published, started or
2984
+ * listed, only copied. The dashboard shows it as a template and hides what only applies to a
2985
+ * live flow. */
2986
+ isTemplate: boolean;
2874
2987
  jdm: components["schemas"]["WorkflowGraph"];
2875
2988
  name: string;
2876
2989
  slug: string;
@@ -2884,6 +2997,16 @@ interface components {
2884
2997
  /** Format: date-time */
2885
2998
  updatedAt?: string | null;
2886
2999
  };
3000
+ /** @description A flow's AML screening of the people it verifies (ENG-1542). Each person's first screening in a
3001
+ * flow result is charged at the organization's AML rate; ongoing monitoring re-screens them
3002
+ * periodically, billed per subject per year where the organization prices it. A company's KYB
3003
+ * keeps its case screening, which this does not govern. */
3004
+ FlowAmlScreening: {
3005
+ /** @description Whether the people the flow verifies are screened. */
3006
+ enabled: boolean;
3007
+ /** @description Whether they stay under ongoing monitoring. */
3008
+ ongoingMonitoring?: boolean;
3009
+ };
2887
3010
  FlowResult: {
2888
3011
  amlResults: components["schemas"]["AmlResult"][];
2889
3012
  /** @description Custom risk tags conditionally assigned by the flow builder's AssignRiskTags action. */
@@ -2922,6 +3045,23 @@ interface components {
2922
3045
  updatedAt?: string | null;
2923
3046
  walletResults: components["schemas"]["WalletResult"][];
2924
3047
  };
3048
+ /** @description Where a user's verification stands, without any of the data collected from them. */
3049
+ FlowResultStatusSummary: {
3050
+ /** Format: date-time */
3051
+ createdAt: string;
3052
+ customData: Record<string, unknown>;
3053
+ email?: string | null;
3054
+ /** Format: uuid */
3055
+ flowId?: string | null;
3056
+ /** Format: uuid */
3057
+ flowResultId: string;
3058
+ flowSlug: string;
3059
+ /** @description `true` when the user passed the verification, that is when `status` is `COMPLETED`. */
3060
+ passed: boolean;
3061
+ status: components["schemas"]["VerificationRequestStatus"];
3062
+ /** Format: date-time */
3063
+ updatedAt: string;
3064
+ };
2925
3065
  FlowStep: {
2926
3066
  config: components["schemas"]["DvConfig"];
2927
3067
  /** Format: date-time */
@@ -3638,7 +3778,13 @@ interface components {
3638
3778
  zid: string;
3639
3779
  };
3640
3780
  IdentitySettings: {
3781
+ /** @description The person's first name, as typed at registration. Only an account registered through
3782
+ * `/auth/register` (organization staff) has one: never set for a GUEST, the person being
3783
+ * verified. */
3784
+ firstName?: string | null;
3641
3785
  lastEnvironmentIsSandbox?: boolean;
3786
+ /** @description The person's last name, as typed at registration. Same scope as the first name. */
3787
+ lastName?: string | null;
3642
3788
  locale: components["schemas"]["Locale"];
3643
3789
  /** @description `true` when this identity is demo/synthetic data (for example generated sample data in a
3644
3790
  * sandbox) rather than a real end user. Never set for a real verified identity. */
@@ -3699,6 +3845,7 @@ interface components {
3699
3845
  startedAt: string;
3700
3846
  };
3701
3847
  InputField: {
3848
+ binding?: null | components["schemas"]["BusinessInfoField"];
3702
3849
  label: {
3703
3850
  [key: string]: string;
3704
3851
  };
@@ -3711,6 +3858,7 @@ interface components {
3711
3858
  value?: unknown;
3712
3859
  visibleWhen?: null | components["schemas"]["Condition"];
3713
3860
  } | {
3861
+ binding?: null | components["schemas"]["BusinessInfoField"];
3714
3862
  label: {
3715
3863
  [key: string]: string;
3716
3864
  };
@@ -3727,6 +3875,7 @@ interface components {
3727
3875
  value?: unknown;
3728
3876
  visibleWhen?: null | components["schemas"]["Condition"];
3729
3877
  } | {
3878
+ binding?: null | components["schemas"]["BusinessInfoField"];
3730
3879
  label: {
3731
3880
  [key: string]: string;
3732
3881
  };
@@ -3741,6 +3890,7 @@ interface components {
3741
3890
  value?: unknown;
3742
3891
  visibleWhen?: null | components["schemas"]["Condition"];
3743
3892
  } | {
3893
+ binding?: null | components["schemas"]["BusinessInfoField"];
3744
3894
  label: {
3745
3895
  [key: string]: string;
3746
3896
  };
@@ -3755,6 +3905,7 @@ interface components {
3755
3905
  value?: unknown;
3756
3906
  visibleWhen?: null | components["schemas"]["Condition"];
3757
3907
  } | {
3908
+ binding?: null | components["schemas"]["BusinessInfoField"];
3758
3909
  label: {
3759
3910
  [key: string]: string;
3760
3911
  };
@@ -3767,6 +3918,7 @@ interface components {
3767
3918
  value?: unknown;
3768
3919
  visibleWhen?: null | components["schemas"]["Condition"];
3769
3920
  } | {
3921
+ binding?: null | components["schemas"]["BusinessInfoField"];
3770
3922
  label: {
3771
3923
  [key: string]: string;
3772
3924
  };
@@ -3779,6 +3931,7 @@ interface components {
3779
3931
  value?: unknown;
3780
3932
  visibleWhen?: null | components["schemas"]["Condition"];
3781
3933
  } | {
3934
+ binding?: null | components["schemas"]["BusinessInfoField"];
3782
3935
  label: {
3783
3936
  [key: string]: string;
3784
3937
  };
@@ -3797,6 +3950,7 @@ interface components {
3797
3950
  value?: unknown;
3798
3951
  visibleWhen?: null | components["schemas"]["Condition"];
3799
3952
  } | {
3953
+ binding?: null | components["schemas"]["BusinessInfoField"];
3800
3954
  label: {
3801
3955
  [key: string]: string;
3802
3956
  };
@@ -3863,6 +4017,12 @@ interface components {
3863
4017
  * @enum {string}
3864
4018
  */
3865
4019
  KybCaseDueDiligenceLevel: "SIMPLIFIED" | "STANDARD" | "ENHANCED";
4020
+ /**
4021
+ * @description A flag a KYB case carries on the Home page and in the Inbox: something about the file a reviewer should see
4022
+ * before anything else.
4023
+ * @enum {string}
4024
+ */
4025
+ KybCaseFlag: "SANCTIONS_HIT" | "PEP" | "ADVERSE_MEDIA" | "REGISTER_MISMATCH" | "MISSING_DOCUMENTS" | "OWNER_KYC_PENDING";
3866
4026
  /** @description A KYB case's officers: the ultimate beneficial owners and the directors the case screens and
3867
4027
  * invites into KYC. What the case's officer routes answer — the roster as it stands after the act. */
3868
4028
  KybCaseOfficersResponse: {
@@ -3905,6 +4065,15 @@ interface components {
3905
4065
  * @enum {string}
3906
4066
  */
3907
4067
  KybCaseStatus: "OPEN" | "PROCESSING" | "WAITING_INPUT" | "ACTION_REQUIRED" | "READY_FOR_REVIEW" | "APPROVED" | "REJECTED" | "CANCELLED";
4068
+ /**
4069
+ * @description What kind of review a case is: the first look at a company, or a later one.
4070
+ *
4071
+ * Derived at read time, like the rest of this module, from whether the case re-verifies an
4072
+ * earlier one and from its transitions. There is no `EVENT_DRIVEN` yet: nothing opens a case on
4073
+ * an event.
4074
+ * @enum {string}
4075
+ */
4076
+ KybCaseType: "ONBOARDING" | "PERIODIC_REVIEW";
3908
4077
  KybCommunication: {
3909
4078
  body: string;
3910
4079
  /** Format: uuid */
@@ -3972,6 +4141,14 @@ interface components {
3972
4141
  * @example true
3973
4142
  */
3974
4143
  autoSendUboKycEmail: boolean;
4144
+ businessInfoForm?: null | components["schemas"]["Form"];
4145
+ /**
4146
+ * Format: uuid
4147
+ * @description The form the company answers about itself, from the organization's form library. Its
4148
+ * fields bound to a business-information key are the company's business information; the
4149
+ * others are the organization's own questions. Omitted: the platform's standard form.
4150
+ */
4151
+ businessInfoFormId?: string | null;
3975
4152
  /**
3976
4153
  * @default false
3977
4154
  * @example false
@@ -4112,9 +4289,9 @@ interface components {
4112
4289
  KybDirectorsConfig: {
4113
4290
  /**
4114
4291
  * Format: uuid
4115
- * @description The anchor KYB step this directors satellite belongs to.
4292
+ * @description The anchor KYB step this directors satellite belongs to. See `KybDocumentsConfig::kyb_step_id`.
4116
4293
  */
4117
- kybStepId: string;
4294
+ kybStepId?: string;
4118
4295
  /**
4119
4296
  * Format: uuid
4120
4297
  * @description The KYC flow directors are invited into to verify their identity. Only used when
@@ -4284,9 +4461,10 @@ interface components {
4284
4461
  } | null;
4285
4462
  /**
4286
4463
  * Format: uuid
4287
- * @description The anchor KYB step this documents satellite belongs to.
4464
+ * @description The anchor KYB step this documents satellite belongs to. May be omitted where the anchor
4465
+ * doesn't exist yet (a flow setup draft); a step can't be saved without one.
4288
4466
  */
4289
- kybStepId: string;
4467
+ kybStepId?: string;
4290
4468
  /** @example { "default": "Next step" } */
4291
4469
  labels?: {
4292
4470
  [key: string]: string;
@@ -4307,9 +4485,26 @@ interface components {
4307
4485
  /** Format: int32 */
4308
4486
  uploadedCount: number;
4309
4487
  };
4488
+ /** @description The answer the case holds to one of the organization's own business-details questions. */
4489
+ KybFormAnswer: {
4490
+ /** @description The question as the form asks it: its labels, type and choices. Its own value is left
4491
+ * out: the answer is `value`. */
4492
+ field: components["schemas"]["InputField"];
4493
+ /** @description The key the cross-check, the clarifications and the edits name it by: `form.<name>`. */
4494
+ key: string;
4495
+ /** @description The answer as text, as the cross-check compares it: a select's choice by its label, a date
4496
+ * by its day. */
4497
+ text?: string | null;
4498
+ /** @description The answer as the case holds it now, an analyst's correction included; `None` unanswered. */
4499
+ value?: unknown;
4500
+ };
4310
4501
  /** @description The KYB result metadata bag. Empty by default. */
4311
4502
  KybMetadata: {
4312
4503
  dueDiligenceLevel?: null | components["schemas"]["DueDiligenceLevel"];
4504
+ /** @description Whether this is the example case an organization is created with rather than a business
4505
+ * somebody submitted: fictional company, sample documents, no register queried and nothing
4506
+ * billed. Absent on every other result. */
4507
+ example?: boolean;
4313
4508
  ownershipStructure?: null | components["schemas"]["OwnershipStructure"];
4314
4509
  registryStatus?: null | components["schemas"]["CompanyStatus"];
4315
4510
  screeningStrategy?: null | components["schemas"]["ScreeningStrategy"];
@@ -4340,6 +4535,10 @@ interface components {
4340
4535
  assignedAt?: string | null;
4341
4536
  /** Format: uuid */
4342
4537
  assignedToIdentityId?: string | null;
4538
+ /** @description The business information the case must have: the keys its KYB step's business-details form
4539
+ * required. `None` when not recorded, or not loaded: every field. Set by callers that read
4540
+ * the case, like `document_checks`. */
4541
+ businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
4343
4542
  businessInformation?: null | components["schemas"]["BusinessInformation"];
4344
4543
  businessInformationVerification?: {
4345
4544
  [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
@@ -4362,13 +4561,18 @@ interface components {
4362
4561
  flowStep?: null | components["schemas"]["FlowStep"];
4363
4562
  /** Format: uuid */
4364
4563
  flowStepId?: string | null;
4564
+ /** @description The answers to the organization's own business-details questions, in the order its form
4565
+ * asks them: fields of the case like the business information, compared and clarified under
4566
+ * their key (`form.<name>`). `None` when not loaded; set by callers that read the case, like
4567
+ * `document_checks`. */
4568
+ formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
4365
4569
  /** Format: date-time */
4366
4570
  fundedAt?: string | null;
4367
4571
  /** Format: uuid */
4368
4572
  id: string;
4369
4573
  /** @description Admin-curated metadata. Organizations read it; only admins write it.
4370
4574
  * Empty (`{}`) when nothing has been recorded. */
4371
- metadata?: Record<string, never>;
4575
+ metadata?: Record<string, unknown>;
4372
4576
  nextAction?: null | components["schemas"]["NextAction"];
4373
4577
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
4374
4578
  reason?: string | null;
@@ -4427,9 +4631,9 @@ interface components {
4427
4631
  autoSendUboKycEmail: boolean;
4428
4632
  /**
4429
4633
  * Format: uuid
4430
- * @description The anchor KYB step this UBOs satellite belongs to.
4634
+ * @description The anchor KYB step this UBOs satellite belongs to. See `KybDocumentsConfig::kyb_step_id`.
4431
4635
  */
4432
- kybStepId: string;
4636
+ kybStepId?: string;
4433
4637
  /**
4434
4638
  * Format: uuid
4435
4639
  * @description The KYC flow UBOs are invited into to verify their identity. Only used when `requireKyc`
@@ -4477,6 +4681,12 @@ interface components {
4477
4681
  /** Format: int32 */
4478
4682
  uboCount: number;
4479
4683
  };
4684
+ /**
4685
+ * Format: binary
4686
+ * @description A document verification result's KYC report: the PDF file itself, sent as the response body.
4687
+ * Described as binary so generated clients read it as a file rather than as JSON.
4688
+ */
4689
+ KycReportPdf: Blob;
4480
4690
  ListOrganizationFlowResultsResponse: {
4481
4691
  page: components["schemas"]["FlowResult"][];
4482
4692
  /** Format: int64 */
@@ -4900,6 +5110,20 @@ interface components {
4900
5110
  * provider and will be completed later; `false` when the prefill is already complete. */
4901
5111
  pending: boolean;
4902
5112
  };
5113
+ /**
5114
+ * @description What kind of principal took an act. Stored as TEXT, mirrored by the `actorKind` CHECK
5115
+ * constraints.
5116
+ *
5117
+ * Recorded, never enforced: Casbin remains the whole authorisation boundary, and an organization
5118
+ * that does not want its bot deciding restricts it by role and by the flow's agentic mode. What
5119
+ * this buys is that a sealed decision can say a bot took it, and whose bot — which no row could
5120
+ * say before, because a decision named one identity id and nothing else.
5121
+ *
5122
+ * `Person` is the default because it is the only kind an unmarked historical row can be: every
5123
+ * writer that is not a person learned to say so in the same change that added the column.
5124
+ * @enum {string}
5125
+ */
5126
+ PrincipalKind: "PERSON" | "BOT" | "API_KEY" | "SYSTEM";
4903
5127
  /** @description Typed representation of process_additional_data stored in DV results.
4904
5128
  *
4905
5129
  * This struct captures all the additional data associated with document
@@ -5062,9 +5286,10 @@ interface components {
5062
5286
  quotedCreditsTotal: number;
5063
5287
  /**
5064
5288
  * Format: uuid
5065
- * @description The KYB's anchor verification request — the websocket room for `discovery-update`.
5289
+ * @description The KYB's anchor verification request — the websocket room for `discovery-update`. Omitted for a case nobody
5290
+ * has been anchored to yet, which has no room to push to.
5066
5291
  */
5067
- verificationRequestId: string;
5292
+ verificationRequestId?: string | null;
5068
5293
  };
5069
5294
  /** @description One purchased document, as reported by `GET .../kyb-cases/{case_id}/documents`. */
5070
5295
  PurchasedDocument: {
@@ -5172,7 +5397,7 @@ interface components {
5172
5397
  subject?: string | null;
5173
5398
  };
5174
5399
  /** @enum {string} */
5175
- RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber" | "expirationDate";
5400
+ RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber" | "expirationDate" | "documentNumber";
5176
5401
  ResultControlOperation: {
5177
5402
  /** Format: uuid */
5178
5403
  identityId: string;
@@ -5383,6 +5608,36 @@ interface components {
5383
5608
  /** @description Last characters of the supplied secret, so the caller can confirm which one is in force. */
5384
5609
  secretHint: string;
5385
5610
  };
5611
+ /** @description What to look flow results up by. At least one of `email` and `customData` is required; when
5612
+ * several criteria are given, a flow result has to match all of them. */
5613
+ SearchFlowResultsRequest: {
5614
+ /** @description Custom data the flow result has to carry: every key given here has to be present with
5615
+ * the same value. Keys you leave out are not compared. */
5616
+ customData?: Record<string, unknown> | null;
5617
+ /**
5618
+ * @description Email address of the user, as given when the verification request was created. Matched
5619
+ * exactly, ignoring letter case.
5620
+ * @example jane.doe@example.com
5621
+ */
5622
+ email?: string | null;
5623
+ /**
5624
+ * @description Limits the search to one flow. Without it, every flow of the organization is searched.
5625
+ * @example kyc-flow
5626
+ */
5627
+ flowSlug?: string | null;
5628
+ /** Format: int32 */
5629
+ skip?: number;
5630
+ /**
5631
+ * Format: int32
5632
+ * @example 20
5633
+ */
5634
+ take?: number;
5635
+ };
5636
+ SearchFlowResultsResponse: {
5637
+ page: components["schemas"]["FlowResultStatusSummary"][];
5638
+ /** Format: int64 */
5639
+ totalCount: number;
5640
+ };
5386
5641
  /**
5387
5642
  * @description Canonical security/authenticity check types.
5388
5643
  * @enum {string}
@@ -5403,6 +5658,7 @@ interface components {
5403
5658
  */
5404
5659
  ServiceCredentialEnvironment: "LIVE" | "TEST";
5405
5660
  Settings: {
5661
+ amlScreening?: null | components["schemas"]["FlowAmlScreening"];
5406
5662
  /** @description When true (default), prompt users to create a passkey during the verification flow.
5407
5663
  * When false, skip the passkey creation step.
5408
5664
  * Optional so that patch requests only write this field when explicitly provided. */
@@ -5416,6 +5672,11 @@ interface components {
5416
5672
  * When false, skip vault unlock if an active KYC grant already exists for the organization.
5417
5673
  * Optional so that patch requests only write this field when explicitly provided. */
5418
5674
  oneClickAlwaysRequestUnlockVault?: boolean | null;
5675
+ /** @description When true, a returning holder is not asked which vault document to reuse: a document
5676
+ * they already shared with this organization is reused directly. Documents only ever
5677
+ * shared with other organizations still need the holder to pick them. Defaults to false.
5678
+ * Optional so that patch requests only write this field when explicitly provided. */
5679
+ oneClickSkipDocumentSelection?: boolean | null;
5419
5680
  published?: boolean;
5420
5681
  skipSignedAccess?: boolean;
5421
5682
  slackNotifications?: string[] | null;
@@ -5479,7 +5740,7 @@ interface components {
5479
5740
  SpidStepOutput: {
5480
5741
  status: components["schemas"]["ResultStatus"];
5481
5742
  };
5482
- StartGeolocationVerificationRequest: Record<string, never>;
5743
+ StartGeolocationVerificationRequest: Record<string, unknown>;
5483
5744
  StartGeolocationVerificationResponse: {
5484
5745
  nonce: string;
5485
5746
  /** Format: uuid */
@@ -5701,11 +5962,11 @@ interface components {
5701
5962
  * responses or webhooks. */
5702
5963
  TmAgentReviewEvidence: {
5703
5964
  /** @description The re-read case at actuation time, present only when it differed from the analytic one. */
5704
- actuationCaseFile?: Record<string, never> | null;
5705
- caseFile: Record<string, never>;
5706
- findings: Record<string, never>;
5707
- mitigations: Record<string, never>;
5708
- verdict: Record<string, never>;
5965
+ actuationCaseFile?: Record<string, unknown> | null;
5966
+ caseFile: Record<string, unknown>;
5967
+ findings: Record<string, unknown>;
5968
+ mitigations: Record<string, unknown>;
5969
+ verdict: Record<string, unknown>;
5709
5970
  };
5710
5971
  /** @description The API-facing projection of a stored `agentReview`.
5711
5972
  *
@@ -5721,12 +5982,12 @@ interface components {
5721
5982
  evidence?: null | components["schemas"]["TmAgentReviewEvidence"];
5722
5983
  /** @description The deterministic guard outcome that produced the enacted decision; `null` when the guard
5723
5984
  * never ran (the model did not recommend approval). */
5724
- guard?: Record<string, never> | null;
5985
+ guard?: Record<string, unknown> | null;
5725
5986
  /** Format: uuid */
5726
5987
  id: string;
5727
5988
  mode: components["schemas"]["KybAgenticMode"];
5728
5989
  model: string;
5729
- promptVersions: Record<string, never>;
5990
+ promptVersions: Record<string, unknown>;
5730
5991
  rationale: string;
5731
5992
  recommendedStatus: components["schemas"]["TmAlertStatus"];
5732
5993
  /** Format: date-time */
@@ -5922,50 +6183,6 @@ interface components {
5922
6183
  TmUpdateTransactionStatusRequest: {
5923
6184
  status: components["schemas"]["TmTransactionStatus"];
5924
6185
  };
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
6186
  /** @description Summary of the automatic ownership discovery: the relevance threshold it uses, its credit
5970
6187
  * budget, what it has spent so far and, once finished, how it ended. Returned to your
5971
6188
  * organization only, never to the applicant. */
@@ -6065,7 +6282,7 @@ interface components {
6065
6282
  totalOwnershipPercentage?: number | null;
6066
6283
  };
6067
6284
  /** @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";
6285
+ 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
6286
  VaultUnlockPasskeyData: {
6070
6287
  /** @description Passkey challenge for vault unlock (base64url) */
6071
6288
  challenge: string;
@@ -6074,7 +6291,7 @@ interface components {
6074
6291
  /** @description Full WebAuthn `PublicKeyCredentialRequestOptions` for vault unlock.
6075
6292
  * Frontends should pass `options.publicKey` directly to
6076
6293
  * `navigator.credentials.get({ publicKey })`. */
6077
- options: Record<string, never>;
6294
+ options: Record<string, unknown>;
6078
6295
  /** @description PRF salt for vault unlock (base64url) */
6079
6296
  prfSalt: string;
6080
6297
  };
@@ -6927,6 +7144,59 @@ interface operations {
6927
7144
  };
6928
7145
  };
6929
7146
  };
7147
+ searchFlowResults: {
7148
+ parameters: {
7149
+ query: {
7150
+ sandbox: boolean;
7151
+ locale?: components["schemas"]["Locale"];
7152
+ };
7153
+ header?: never;
7154
+ path: {
7155
+ /** @description Organization ID */
7156
+ organization_id: string;
7157
+ };
7158
+ cookie?: never;
7159
+ };
7160
+ requestBody: {
7161
+ content: {
7162
+ "application/json": components["schemas"]["SearchFlowResultsRequest"];
7163
+ };
7164
+ };
7165
+ responses: {
7166
+ 200: {
7167
+ headers: {
7168
+ [name: string]: unknown;
7169
+ };
7170
+ content: {
7171
+ "application/json": components["schemas"]["SearchFlowResultsResponse"];
7172
+ };
7173
+ };
7174
+ 400: {
7175
+ headers: {
7176
+ [name: string]: unknown;
7177
+ };
7178
+ content: {
7179
+ "application/json": components["schemas"]["BaxeError"];
7180
+ };
7181
+ };
7182
+ 401: {
7183
+ headers: {
7184
+ [name: string]: unknown;
7185
+ };
7186
+ content: {
7187
+ "application/json": components["schemas"]["BaxeError"];
7188
+ };
7189
+ };
7190
+ 500: {
7191
+ headers: {
7192
+ [name: string]: unknown;
7193
+ };
7194
+ content: {
7195
+ "application/json": components["schemas"]["BaxeError"];
7196
+ };
7197
+ };
7198
+ };
7199
+ };
6930
7200
  sendUboKycReminder: {
6931
7201
  parameters: {
6932
7202
  query: {
@@ -8217,6 +8487,74 @@ interface operations {
8217
8487
  };
8218
8488
  };
8219
8489
  };
8490
+ getDocumentVerificationResultReport: {
8491
+ parameters: {
8492
+ query: {
8493
+ sandbox: boolean;
8494
+ locale?: components["schemas"]["Locale"];
8495
+ };
8496
+ header?: never;
8497
+ path: {
8498
+ /**
8499
+ * @description The ID of the organization
8500
+ * @example 123e4567-e89b-12d3-a456-426614174000
8501
+ */
8502
+ organization_id: string;
8503
+ /**
8504
+ * @description The ID of the flow result
8505
+ * @example 123e4567-e89b-12d3-a456-426614174000
8506
+ */
8507
+ flow_result_id: string;
8508
+ /**
8509
+ * @description The slug of the flow
8510
+ * @example flow-slug
8511
+ */
8512
+ flow_slug: string;
8513
+ /**
8514
+ * @description The ID of the DV result
8515
+ * @example 123e4567-e89b-12d3-a456-426614174000
8516
+ */
8517
+ dv_result_id: string;
8518
+ };
8519
+ cookie?: never;
8520
+ };
8521
+ requestBody?: never;
8522
+ responses: {
8523
+ /** @description The report PDF */
8524
+ 200: {
8525
+ headers: {
8526
+ [name: string]: unknown;
8527
+ };
8528
+ content: {
8529
+ "application/pdf": components["schemas"]["KycReportPdf"];
8530
+ };
8531
+ };
8532
+ 403: {
8533
+ headers: {
8534
+ [name: string]: unknown;
8535
+ };
8536
+ content: {
8537
+ "application/json": components["schemas"]["BaxeError"];
8538
+ };
8539
+ };
8540
+ 404: {
8541
+ headers: {
8542
+ [name: string]: unknown;
8543
+ };
8544
+ content: {
8545
+ "application/json": components["schemas"]["BaxeError"];
8546
+ };
8547
+ };
8548
+ 500: {
8549
+ headers: {
8550
+ [name: string]: unknown;
8551
+ };
8552
+ content: {
8553
+ "application/json": components["schemas"]["BaxeError"];
8554
+ };
8555
+ };
8556
+ };
8557
+ };
8220
8558
  getProofOfAddressResultDetails: {
8221
8559
  parameters: {
8222
8560
  query: {
@@ -8743,118 +9081,6 @@ interface operations {
8743
9081
  };
8744
9082
  };
8745
9083
  };
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
9084
  sdkIngestTransaction: {
8859
9085
  parameters: {
8860
9086
  query: {
@@ -10000,6 +10226,94 @@ declare function listFlowResults({ organizationId, flowSlug, isSandbox, paginati
10000
10226
  "x-api-key": string;
10001
10227
  };
10002
10228
  }, `${string}/${string}`>>;
10229
+ interface SearchFlowResultsParams {
10230
+ organizationId: string;
10231
+ isSandbox: boolean;
10232
+ /**
10233
+ * What to look flow results up by: `email`, `customData`, or both. At least one is required; when several are given,
10234
+ * a flow result has to match all of them.
10235
+ * @example { email: 'jane.doe@example.com', flowSlug: 'kyc-flow', skip: 0, take: 20 }
10236
+ */
10237
+ search: components['schemas']['SearchFlowResultsRequest'];
10238
+ locale?: components['schemas']['Locale'];
10239
+ }
10240
+ /**
10241
+ * Tells whether a user passed a verification. Returns the status of every flow result matching the user's email or the
10242
+ * custom data attached when the verification request was created, most recently updated first. `passed` is `true` once
10243
+ * the user completed the flow successfully; a user who never started a verification gives an empty page.
10244
+ */
10245
+ declare function searchFlowResults({ organizationId, isSandbox, search, locale }: SearchFlowResultsParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
10246
+ parameters: {
10247
+ query: {
10248
+ sandbox: boolean;
10249
+ locale?: components["schemas"]["Locale"];
10250
+ };
10251
+ header?: never;
10252
+ path: {
10253
+ organization_id: string;
10254
+ };
10255
+ cookie?: never;
10256
+ };
10257
+ requestBody: {
10258
+ content: {
10259
+ "application/json": components["schemas"]["SearchFlowResultsRequest"];
10260
+ };
10261
+ };
10262
+ responses: {
10263
+ 200: {
10264
+ headers: {
10265
+ [name: string]: unknown;
10266
+ };
10267
+ content: {
10268
+ "application/json": components["schemas"]["SearchFlowResultsResponse"];
10269
+ };
10270
+ };
10271
+ 400: {
10272
+ headers: {
10273
+ [name: string]: unknown;
10274
+ };
10275
+ content: {
10276
+ "application/json": components["schemas"]["BaxeError"];
10277
+ };
10278
+ };
10279
+ 401: {
10280
+ headers: {
10281
+ [name: string]: unknown;
10282
+ };
10283
+ content: {
10284
+ "application/json": components["schemas"]["BaxeError"];
10285
+ };
10286
+ };
10287
+ 500: {
10288
+ headers: {
10289
+ [name: string]: unknown;
10290
+ };
10291
+ content: {
10292
+ "application/json": components["schemas"]["BaxeError"];
10293
+ };
10294
+ };
10295
+ };
10296
+ }, {
10297
+ params: {
10298
+ path: {
10299
+ organization_id: string;
10300
+ };
10301
+ query: {
10302
+ sandbox: boolean;
10303
+ locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt" | undefined;
10304
+ };
10305
+ };
10306
+ body: {
10307
+ customData?: Record<string, unknown> | null;
10308
+ email?: string | null;
10309
+ flowSlug?: string | null;
10310
+ skip?: number;
10311
+ take?: number;
10312
+ };
10313
+ headers: {
10314
+ "x-api-key": string;
10315
+ };
10316
+ }, `${string}/${string}`>>;
10003
10317
  declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
10004
10318
  data: {
10005
10319
  dvResults: {
@@ -10028,6 +10342,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10028
10342
  processAdditionalData: components["schemas"]["ProcessAdditionalData"];
10029
10343
  provinceCode?: string | null;
10030
10344
  reasons: components["schemas"]["DvReason"][];
10345
+ reviewReason?: null | components["schemas"]["DvReviewReason"];
10031
10346
  status: components["schemas"]["ResultStatus"];
10032
10347
  updatedAt?: string | null;
10033
10348
  validUntil?: string | null;
@@ -10035,8 +10350,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10035
10350
  }[] | undefined;
10036
10351
  amlResults: {
10037
10352
  adverseMedia?: boolean;
10353
+ caseId?: string | null;
10038
10354
  createdAt: string;
10039
10355
  data?: null | components["schemas"]["AmlRiskResult"];
10356
+ flowResultId?: string | null;
10040
10357
  id: string;
10041
10358
  namedPersonRef?: string | null;
10042
10359
  pep: boolean;
@@ -10135,6 +10452,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10135
10452
  kybResults?: {
10136
10453
  assignedAt?: string | null;
10137
10454
  assignedToIdentityId?: string | null;
10455
+ businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
10138
10456
  businessInformation?: null | components["schemas"]["BusinessInformation"];
10139
10457
  businessInformationVerification?: {
10140
10458
  [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
@@ -10146,9 +10464,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10146
10464
  effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
10147
10465
  flowStep?: null | components["schemas"]["FlowStep"];
10148
10466
  flowStepId?: string | null;
10467
+ formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
10149
10468
  fundedAt?: string | null;
10150
10469
  id: string;
10151
- metadata?: Record<string, never>;
10470
+ metadata?: Record<string, unknown>;
10152
10471
  nextAction?: null | components["schemas"]["NextAction"];
10153
10472
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
10154
10473
  reason?: string | null;
@@ -10234,6 +10553,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10234
10553
  processAdditionalData: components["schemas"]["ProcessAdditionalData"];
10235
10554
  provinceCode?: string | null;
10236
10555
  reasons: components["schemas"]["DvReason"][];
10556
+ reviewReason?: null | components["schemas"]["DvReviewReason"];
10237
10557
  status: components["schemas"]["ResultStatus"];
10238
10558
  updatedAt?: string | null;
10239
10559
  validUntil?: string | null;
@@ -10241,8 +10561,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10241
10561
  }[] | undefined;
10242
10562
  amlResults: {
10243
10563
  adverseMedia?: boolean;
10564
+ caseId?: string | null;
10244
10565
  createdAt: string;
10245
10566
  data?: null | components["schemas"]["AmlRiskResult"];
10567
+ flowResultId?: string | null;
10246
10568
  id: string;
10247
10569
  namedPersonRef?: string | null;
10248
10570
  pep: boolean;
@@ -10341,6 +10663,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10341
10663
  kybResults?: {
10342
10664
  assignedAt?: string | null;
10343
10665
  assignedToIdentityId?: string | null;
10666
+ businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
10344
10667
  businessInformation?: null | components["schemas"]["BusinessInformation"];
10345
10668
  businessInformationVerification?: {
10346
10669
  [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
@@ -10352,9 +10675,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10352
10675
  effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
10353
10676
  flowStep?: null | components["schemas"]["FlowStep"];
10354
10677
  flowStepId?: string | null;
10678
+ formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
10355
10679
  fundedAt?: string | null;
10356
10680
  id: string;
10357
- metadata?: Record<string, never>;
10681
+ metadata?: Record<string, unknown>;
10358
10682
  nextAction?: null | components["schemas"]["NextAction"];
10359
10683
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
10360
10684
  reason?: string | null;
@@ -10433,6 +10757,32 @@ declare function getDvResult({ organizationId, flowResultId, dvResultId, isSandb
10433
10757
  };
10434
10758
  response: Response;
10435
10759
  }>;
10760
+ interface GetDvResultReportParams extends GetDvResultParams {
10761
+ flowSlug: string;
10762
+ /**
10763
+ * The report's language: `en`, `it`, `de`, `es`, `fr` or `pt`; any other prints in English.
10764
+ * @example 'en'
10765
+ */
10766
+ locale?: components['schemas']['Locale'];
10767
+ }
10768
+ /**
10769
+ * Downloads the KYC report of a document verification result as a PDF: its outcome and every check it was held
10770
+ * against, the data read from the document, the document images, the device and session, the person's AML screenings
10771
+ * and an audit trail, with the verification data attached to the PDF as JSON. The report is generated on each call.
10772
+ *
10773
+ * Requires the Export API product. The body is a PDF, not JSON: a direct `openapi-fetch` call to this endpoint must set
10774
+ * `parseAs: 'arrayBuffer'` (or `'blob'`), as this helper does, instead of relying on the default JSON parser.
10775
+ */
10776
+ declare function getDvResultReport({ organizationId, flowResultId, flowSlug, dvResultId, isSandbox, locale }: GetDvResultReportParams, opts: SDKOptions): Promise<{
10777
+ data: Uint8Array<ArrayBuffer> | undefined;
10778
+ error: {
10779
+ code: number;
10780
+ errorTag: components["schemas"]["ErrorTags"];
10781
+ message?: string | null;
10782
+ } | undefined;
10783
+ response: Response;
10784
+ fileName: string | undefined;
10785
+ }>;
10436
10786
 
10437
10787
  interface KybResultParams {
10438
10788
  organizationId: string;
@@ -12685,4 +13035,4 @@ interface WebhookVerifierOptions<T extends WebhookUnauthorizedHandler> {
12685
13035
  exposeRawBody?: boolean;
12686
13036
  }
12687
13037
 
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 };
13038
+ 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 };