@zyphe-sdk/core 0.7.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;
@@ -524,6 +550,29 @@ interface paths {
524
550
  patch?: never;
525
551
  trace?: never;
526
552
  };
553
+ "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/report": {
554
+ parameters: {
555
+ query?: never;
556
+ header?: never;
557
+ path?: never;
558
+ cookie?: never;
559
+ };
560
+ /**
561
+ * Download a KYB case's report
562
+ * @description The case's KYB report as a PDF: company, activity, directors, ownership and beneficial owners,
563
+ * screening, adverse media, documents and sources, as the case stands at the time of the request.
564
+ * The report is identified by a hash of its content, returned as `ETag`: send it back as
565
+ * `If-None-Match` to get `304` when nothing in the report has changed.
566
+ */
567
+ get: operations["getKybCaseReport"];
568
+ put?: never;
569
+ post?: never;
570
+ delete?: never;
571
+ options?: never;
572
+ head?: never;
573
+ patch?: never;
574
+ trace?: never;
575
+ };
527
576
  "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/decision": {
528
577
  parameters: {
529
578
  query?: never;
@@ -563,6 +612,10 @@ interface paths {
563
612
  * @description Returns one flow result: who it belongs to, its status, and the result of every step the user
564
613
  * completed (document verification, liveness, proof of address, screening, forms, KYB and the
565
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.
566
619
  */
567
620
  get: operations["getFlowResultDetails"];
568
621
  put?: never;
@@ -594,6 +647,30 @@ interface paths {
594
647
  patch?: never;
595
648
  trace?: never;
596
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
+ };
597
674
  "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/poa/{poa_result_id}/details": {
598
675
  parameters: {
599
676
  query?: never;
@@ -686,6 +763,7 @@ interface paths {
686
763
  };
687
764
  /**
688
765
  * Get flow result details (deprecated)
766
+ * @deprecated
689
767
  * @description **Deprecated.** Use "Get flow result details", which also takes the flow slug.
690
768
  */
691
769
  get: operations["getFlowResultDetailsDeprecated"];
@@ -706,6 +784,7 @@ interface paths {
706
784
  };
707
785
  /**
708
786
  * Get document verification result details (deprecated)
787
+ * @deprecated
709
788
  * @description **Deprecated.** Use "Get document verification result details", which also takes the flow slug.
710
789
  */
711
790
  get: operations["getDocumentVerificationResultDetailsDeprecated"];
@@ -726,6 +805,7 @@ interface paths {
726
805
  };
727
806
  /**
728
807
  * Get proof of address result details (deprecated)
808
+ * @deprecated
729
809
  * @description **Deprecated.** Use "Get proof of address result details", which also takes the flow slug.
730
810
  */
731
811
  get: operations["getProofOfAddressResultDetailsDeprecated"];
@@ -759,50 +839,6 @@ interface paths {
759
839
  patch?: never;
760
840
  trace?: never;
761
841
  };
762
- "/organizations/{organization_id}/billing/topup-packs": {
763
- parameters: {
764
- query?: never;
765
- header?: never;
766
- path?: never;
767
- cookie?: never;
768
- };
769
- /**
770
- * List the top-up credit packs
771
- * @description Lists the one-time credit packs the organization can purchase, with their price, the
772
- * number of credits granted and any products they unlock. The catalog may be cached for up
773
- * to 30 minutes.
774
- */
775
- get: operations["get_topup_packs"];
776
- put?: never;
777
- post?: never;
778
- delete?: never;
779
- options?: never;
780
- head?: never;
781
- patch?: never;
782
- trace?: never;
783
- };
784
- "/organizations/{organization_id}/billing/topup/checkout": {
785
- parameters: {
786
- query?: never;
787
- header?: never;
788
- path?: never;
789
- cookie?: never;
790
- };
791
- get?: never;
792
- put?: never;
793
- /**
794
- * Create a checkout session for a credit top-up
795
- * @description The `priceId` must be one of the packs returned by `GET .../billing/topup-packs`. Redirect
796
- * the user to the returned checkout URL; the credits are added to the organization once the
797
- * payment completes.
798
- */
799
- post: operations["create_topup_checkout"];
800
- delete?: never;
801
- options?: never;
802
- head?: never;
803
- patch?: never;
804
- trace?: never;
805
- };
806
842
  "/sdk/organizations/{organization_id}/transactions": {
807
843
  parameters: {
808
844
  query?: never;
@@ -1208,6 +1244,9 @@ interface components {
1208
1244
  occupancies?: components["schemas"]["AmlOccupancy"][];
1209
1245
  phone?: components["schemas"]["FieldWithControl"];
1210
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"][];
1211
1250
  sanctions?: components["schemas"]["AmlSanction"][];
1212
1251
  /** Format: double */
1213
1252
  score?: number;
@@ -1218,6 +1257,8 @@ interface components {
1218
1257
  AmlEntityResult: {
1219
1258
  entity: components["schemas"]["AmlEntityResponse"];
1220
1259
  hasSanctions: boolean;
1260
+ /** @description A PEP match: the record is a politically exposed person, or a relative or close associate
1261
+ * of one. */
1221
1262
  isPep: boolean;
1222
1263
  match: boolean;
1223
1264
  /** Format: double */
@@ -1243,6 +1284,11 @@ interface components {
1243
1284
  name?: components["schemas"]["FieldWithControl"];
1244
1285
  summary?: components["schemas"]["FieldWithControl"];
1245
1286
  };
1287
+ /**
1288
+ * @description How a record reaches a PEP it is related to.
1289
+ * @enum {string}
1290
+ */
1291
+ AmlPepRelationKind: "family" | "associate";
1246
1292
  AmlPosition: {
1247
1293
  country?: components["schemas"]["FieldWithControl"];
1248
1294
  description?: components["schemas"]["FieldWithControl"];
@@ -1265,13 +1311,35 @@ interface components {
1265
1311
  gender?: string | null;
1266
1312
  lastName: string;
1267
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
+ };
1268
1325
  AmlResult: {
1269
1326
  /** @description Whether adverse-media screening for this subject returned a hit. `false` when there was no
1270
1327
  * hit or adverse media was not screened. */
1271
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;
1272
1334
  /** Format: date-time */
1273
1335
  createdAt: string;
1274
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;
1275
1343
  /** Format: uuid */
1276
1344
  id: string;
1277
1345
  /**
@@ -1402,7 +1470,7 @@ interface components {
1402
1470
  * @description The action recorded by an audit log entry (e.g. `FLOW_CREATED`).
1403
1471
  * @enum {string}
1404
1472
  */
1405
- 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_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_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";
1406
1474
  /** @description A single entry in the audit log, returned by the query API. */
1407
1475
  AuditLogEntry: {
1408
1476
  action: components["schemas"]["AuditAction"];
@@ -1414,6 +1482,16 @@ interface components {
1414
1482
  /** Format: date-time */
1415
1483
  createdAt: string;
1416
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;
1489
+ /**
1490
+ * Format: int64
1491
+ * @description The entry's position on the audit log's hash chain. One entry is read back with the filter
1492
+ * `entry_seq:equals:<n>`.
1493
+ */
1494
+ entrySeq: number;
1417
1495
  /** Format: uuid */
1418
1496
  id: string;
1419
1497
  /** @description Whether this entry originated from a sandbox operation.
@@ -1473,7 +1551,7 @@ interface components {
1473
1551
  * not be determined (e.g. for some system operations).
1474
1552
  * @enum {string}
1475
1553
  */
1476
- AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "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";
1477
1555
  /** @description What triggered an audit event, identified by `type`:
1478
1556
  * - `HTTP` — an API request (`method` and `path`).
1479
1557
  * - `WORKER` — a background process (`workerType` and `scenario`).
@@ -1563,6 +1641,15 @@ interface components {
1563
1641
  * @enum {string}
1564
1642
  */
1565
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";
1566
1653
  /** @description Per-field verification result comparing submitted business info against document-extracted values. */
1567
1654
  BusinessInfoFieldVerification: {
1568
1655
  /** @description The AI agent's one-sentence explanation of why this match classification was chosen.
@@ -1660,6 +1747,24 @@ interface components {
1660
1747
  */
1661
1748
  uncovered: number;
1662
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
+ };
1663
1768
  /** @description One case as its own read answers.
1664
1769
  *
1665
1770
  * The list row, flattened so every key a client already binds against stays exactly where it was,
@@ -1709,18 +1814,27 @@ interface components {
1709
1814
  * risky its company is are what a reviewer sorts their day by. */
1710
1815
  CaseSummaryResponse: {
1711
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"];
1712
1820
  /** @description The key the company's assignment and rating are kept under. Absent for a company with no
1713
1821
  * registration number: it cannot be told from another in its country, so nothing is kept
1714
1822
  * about it and it can be neither assigned nor rated. */
1715
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;
1716
1826
  country: string;
1717
1827
  /** @description How far the case has been checked, counted over its own steps. Present on every row: a case
1718
1828
  * with nothing planned yet reads three zeros and `complete: false`, which is an answer. */
1719
1829
  coverage: components["schemas"]["CaseCoverageSummary"];
1720
1830
  /** Format: date-time */
1721
1831
  createdAt: string;
1832
+ decision?: null | components["schemas"]["CaseDecisionSummary"];
1722
1833
  dueDiligenceLevel: components["schemas"]["KybCaseDueDiligenceLevel"];
1723
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"][];
1724
1838
  /** Format: uuid */
1725
1839
  flowResultId?: string | null;
1726
1840
  /** Format: uuid */
@@ -1728,6 +1842,12 @@ interface components {
1728
1842
  legalName?: string | null;
1729
1843
  /** @description `CLIENT` | `RM` | `COMPLIANCE` | `SUPPORT` | `FUNDED` | `DENIED`, where set. */
1730
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;
1731
1851
  /** @description Who opened the case: `END_USER` (the business applicant, through a flow), `OPERATOR` (a member of your
1732
1852
  * organization) or `MIGRATION` (created from a KYB result that predates KYB cases). */
1733
1853
  origin: components["schemas"]["KybCaseOrigin"];
@@ -1753,10 +1873,6 @@ interface components {
1753
1873
  * @enum {string}
1754
1874
  */
1755
1875
  CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
1756
- /** @description Response from creating a checkout session */
1757
- CheckoutSessionResponse: {
1758
- checkoutUrl: string;
1759
- };
1760
1876
  CloudflareTracePayload: {
1761
1877
  colo?: string | null;
1762
1878
  ip?: string | null;
@@ -1971,14 +2087,6 @@ interface components {
1971
2087
  sessionToken: string;
1972
2088
  url: string;
1973
2089
  };
1974
- /** @description Request to create a checkout session for a one-time credit top-up purchase. */
1975
- CreateTopupCheckoutRequest: {
1976
- /** @description The price ID of the top-up pack to purchase, as returned in `priceId` by
1977
- * `GET .../billing/topup-packs`. */
1978
- priceId: string;
1979
- /** @description Optional redirect URI after checkout. If not provided, redirects to the webapp root. */
1980
- redirectUri?: string | null;
1981
- };
1982
2090
  CreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
1983
2091
  continueUrl?: string | null;
1984
2092
  cookiesPolicyAccepted: boolean;
@@ -2005,27 +2113,7 @@ interface components {
2005
2113
  */
2006
2114
  CreationSource: "SELF_SERVE" | "ADMIN" | "PARTNER";
2007
2115
  /** @enum {string} */
2008
- CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID";
2009
- /** @description When the credits granted by a subscription plan at each renewal expire. */
2010
- CreditExpiryPolicy: {
2011
- /** @enum {string} */
2012
- type: "periodEnd";
2013
- } | {
2014
- /** @enum {string} */
2015
- type: "never";
2016
- } | {
2017
- /** Format: int32 */
2018
- months: number;
2019
- /** @enum {string} */
2020
- type: "monthsFromGrant";
2021
- } | {
2022
- /** Format: int32 */
2023
- months: number;
2024
- /** @enum {string} */
2025
- type: "monthsFromSubscription";
2026
- };
2027
- /** @example usd */
2028
- Currency: string;
2116
+ CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID" | "TOTP";
2029
2117
  /** @description A reviewer's decision on a case: the one immutable decision it gets. */
2030
2118
  DecideCasePayload: {
2031
2119
  /**
@@ -2072,6 +2160,18 @@ interface components {
2072
2160
  statusAfter?: null | components["schemas"]["KybCaseStatus"];
2073
2161
  statusBefore?: null | components["schemas"]["KybCaseStatus"];
2074
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";
2075
2175
  /** @description The decision the organization's approval matrix turned into a *proposal*.
2076
2176
  *
2077
2177
  * The first signature is recorded and the case is NOT decided: someone holding one of
@@ -2430,8 +2530,17 @@ interface components {
2430
2530
  * `providesLiveness` and `providesAuthenticity` are `true` when the session itself performs the
2431
2531
  * liveness check and the document-authenticity check. When `false`, the session does not: a check
2432
2532
  * runs only if the flow has one of its own, a liveness step or the step's `docauthChecks`, which
2433
- * 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. */
2434
2542
  DvCapture: {
2543
+ acceptedCaptures?: components["schemas"]["DvCaptureMode"][];
2435
2544
  capture: components["schemas"]["DvCaptureMode"];
2436
2545
  providesAuthenticity: boolean;
2437
2546
  providesLiveness: boolean;
@@ -2536,6 +2645,7 @@ interface components {
2536
2645
  processAdditionalData: components["schemas"]["ProcessAdditionalData"];
2537
2646
  provinceCode?: string | null;
2538
2647
  reasons: components["schemas"]["DvReason"][];
2648
+ reviewReason?: null | components["schemas"]["DvReviewReason"];
2539
2649
  status: components["schemas"]["ResultStatus"];
2540
2650
  /** Format: date-time */
2541
2651
  updatedAt?: string | null;
@@ -2548,6 +2658,27 @@ interface components {
2548
2658
  /** Format: uuid */
2549
2659
  verificationRequestId?: string | null;
2550
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
+ };
2551
2682
  DvStepOutput: {
2552
2683
  /** @description Whether the subject's screening found adverse media — a routing signal beside `amlPep` and
2553
2684
  * `amlSanctions`, so a flow can branch on it as it can on the other two. `None` until a
@@ -2600,7 +2731,7 @@ interface components {
2600
2731
  number: number;
2601
2732
  };
2602
2733
  /** @enum {string} */
2603
- ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "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";
2604
2735
  /**
2605
2736
  * @description What an estimated cost represents. `fixedPrice` is a real quoted price; `variableCap` is only
2606
2737
  * the maximum that may be charged, because the actual cost varies; `unknown` means pricing could
@@ -2618,6 +2749,10 @@ interface components {
2618
2749
  * @description The unique identifier of the action node.
2619
2750
  */
2620
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;
2621
2756
  };
2622
2757
  /** @description Whether one node of the ownership graph can be expanded, and at what estimated cost, as shown
2623
2758
  * in the expansion preview. `countryCode` and pricing are always those of this node's own
@@ -2741,9 +2876,10 @@ interface components {
2741
2876
  expansions: components["schemas"]["ExpansionDecision"][];
2742
2877
  /**
2743
2878
  * Format: uuid
2744
- * @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.
2745
2881
  */
2746
- verificationRequestId: string;
2882
+ verificationRequestId?: string | null;
2747
2883
  };
2748
2884
  /** @enum {string} */
2749
2885
  ExtractionPromptScope: "PLATFORM" | "ORGANIZATION";
@@ -2837,11 +2973,17 @@ interface components {
2837
2973
  /** @enum {string} */
2838
2974
  FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains" | "gte" | "lte";
2839
2975
  Flow: {
2976
+ /** @description Whether the verification failure screen offers the AI support chatbot. */
2977
+ aiChatbotEnabled: boolean;
2840
2978
  /** Format: date-time */
2841
2979
  createdAt?: string | null;
2842
2980
  failureUrl?: string | null;
2843
2981
  /** Format: uuid */
2844
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;
2845
2987
  jdm: components["schemas"]["WorkflowGraph"];
2846
2988
  name: string;
2847
2989
  slug: string;
@@ -2855,6 +2997,16 @@ interface components {
2855
2997
  /** Format: date-time */
2856
2998
  updatedAt?: string | null;
2857
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
+ };
2858
3010
  FlowResult: {
2859
3011
  amlResults: components["schemas"]["AmlResult"][];
2860
3012
  /** @description Custom risk tags conditionally assigned by the flow builder's AssignRiskTags action. */
@@ -2893,6 +3045,23 @@ interface components {
2893
3045
  updatedAt?: string | null;
2894
3046
  walletResults: components["schemas"]["WalletResult"][];
2895
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
+ };
2896
3065
  FlowStep: {
2897
3066
  config: components["schemas"]["DvConfig"];
2898
3067
  /** Format: date-time */
@@ -3609,7 +3778,13 @@ interface components {
3609
3778
  zid: string;
3610
3779
  };
3611
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;
3612
3785
  lastEnvironmentIsSandbox?: boolean;
3786
+ /** @description The person's last name, as typed at registration. Same scope as the first name. */
3787
+ lastName?: string | null;
3613
3788
  locale: components["schemas"]["Locale"];
3614
3789
  /** @description `true` when this identity is demo/synthetic data (for example generated sample data in a
3615
3790
  * sandbox) rather than a real end user. Never set for a real verified identity. */
@@ -3670,6 +3845,7 @@ interface components {
3670
3845
  startedAt: string;
3671
3846
  };
3672
3847
  InputField: {
3848
+ binding?: null | components["schemas"]["BusinessInfoField"];
3673
3849
  label: {
3674
3850
  [key: string]: string;
3675
3851
  };
@@ -3682,6 +3858,7 @@ interface components {
3682
3858
  value?: unknown;
3683
3859
  visibleWhen?: null | components["schemas"]["Condition"];
3684
3860
  } | {
3861
+ binding?: null | components["schemas"]["BusinessInfoField"];
3685
3862
  label: {
3686
3863
  [key: string]: string;
3687
3864
  };
@@ -3698,6 +3875,7 @@ interface components {
3698
3875
  value?: unknown;
3699
3876
  visibleWhen?: null | components["schemas"]["Condition"];
3700
3877
  } | {
3878
+ binding?: null | components["schemas"]["BusinessInfoField"];
3701
3879
  label: {
3702
3880
  [key: string]: string;
3703
3881
  };
@@ -3712,6 +3890,7 @@ interface components {
3712
3890
  value?: unknown;
3713
3891
  visibleWhen?: null | components["schemas"]["Condition"];
3714
3892
  } | {
3893
+ binding?: null | components["schemas"]["BusinessInfoField"];
3715
3894
  label: {
3716
3895
  [key: string]: string;
3717
3896
  };
@@ -3726,6 +3905,7 @@ interface components {
3726
3905
  value?: unknown;
3727
3906
  visibleWhen?: null | components["schemas"]["Condition"];
3728
3907
  } | {
3908
+ binding?: null | components["schemas"]["BusinessInfoField"];
3729
3909
  label: {
3730
3910
  [key: string]: string;
3731
3911
  };
@@ -3738,6 +3918,7 @@ interface components {
3738
3918
  value?: unknown;
3739
3919
  visibleWhen?: null | components["schemas"]["Condition"];
3740
3920
  } | {
3921
+ binding?: null | components["schemas"]["BusinessInfoField"];
3741
3922
  label: {
3742
3923
  [key: string]: string;
3743
3924
  };
@@ -3750,6 +3931,7 @@ interface components {
3750
3931
  value?: unknown;
3751
3932
  visibleWhen?: null | components["schemas"]["Condition"];
3752
3933
  } | {
3934
+ binding?: null | components["schemas"]["BusinessInfoField"];
3753
3935
  label: {
3754
3936
  [key: string]: string;
3755
3937
  };
@@ -3768,6 +3950,7 @@ interface components {
3768
3950
  value?: unknown;
3769
3951
  visibleWhen?: null | components["schemas"]["Condition"];
3770
3952
  } | {
3953
+ binding?: null | components["schemas"]["BusinessInfoField"];
3771
3954
  label: {
3772
3955
  [key: string]: string;
3773
3956
  };
@@ -3834,6 +4017,12 @@ interface components {
3834
4017
  * @enum {string}
3835
4018
  */
3836
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";
3837
4026
  /** @description A KYB case's officers: the ultimate beneficial owners and the directors the case screens and
3838
4027
  * invites into KYC. What the case's officer routes answer — the roster as it stands after the act. */
3839
4028
  KybCaseOfficersResponse: {
@@ -3863,6 +4052,12 @@ interface components {
3863
4052
  * @enum {string}
3864
4053
  */
3865
4054
  KybCasePlannerMode: "DISABLED" | "SUGGEST" | "AUTO_PILOT";
4055
+ /**
4056
+ * Format: binary
4057
+ * @description The case's KYB report: the PDF file itself, sent as the response body. Described as binary so
4058
+ * generated clients read it as a file rather than as JSON.
4059
+ */
4060
+ KybCaseReportPdf: Blob;
3866
4061
  /**
3867
4062
  * @description The lifecycle status of a KYB case. `APPROVED`, `REJECTED` and `CANCELLED` close the case; a
3868
4063
  * closed case can later be reopened (for example when the applicant resubmits or a periodic
@@ -3870,6 +4065,15 @@ interface components {
3870
4065
  * @enum {string}
3871
4066
  */
3872
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";
3873
4077
  KybCommunication: {
3874
4078
  body: string;
3875
4079
  /** Format: uuid */
@@ -3937,6 +4141,14 @@ interface components {
3937
4141
  * @example true
3938
4142
  */
3939
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;
3940
4152
  /**
3941
4153
  * @default false
3942
4154
  * @example false
@@ -4077,9 +4289,9 @@ interface components {
4077
4289
  KybDirectorsConfig: {
4078
4290
  /**
4079
4291
  * Format: uuid
4080
- * @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`.
4081
4293
  */
4082
- kybStepId: string;
4294
+ kybStepId?: string;
4083
4295
  /**
4084
4296
  * Format: uuid
4085
4297
  * @description The KYC flow directors are invited into to verify their identity. Only used when
@@ -4208,8 +4420,9 @@ interface components {
4208
4420
  * regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced
4209
4421
  * nothing usable.
4210
4422
  * - `DirectorDeclaration` — same as `UboDeclaration`, for the `KYB_DIRECTORS` satellite.
4211
- * - `OwnershipConfirmation` — opened by a reopening (a quality review's disagreement or the
4212
- * periodic review), never by hand: the company is asked to confirm, through the existing request
4423
+ * - `OwnershipConfirmation` — opened by the platform, never by hand: by a reopening (a quality
4424
+ * review's disagreement or the periodic review), or by owners the company register reports that
4425
+ * the declaration left out. The company is asked to confirm, through the existing request
4213
4426
  * link, that the owners and officers on file are still the ones there are. The answer lands as
4214
4427
  * the applicant's own assertions; while it is open the case waits on the applicant, and
4215
4428
  * deciding without it takes an exception like any other open request.
@@ -4248,9 +4461,10 @@ interface components {
4248
4461
  } | null;
4249
4462
  /**
4250
4463
  * Format: uuid
4251
- * @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.
4252
4466
  */
4253
- kybStepId: string;
4467
+ kybStepId?: string;
4254
4468
  /** @example { "default": "Next step" } */
4255
4469
  labels?: {
4256
4470
  [key: string]: string;
@@ -4271,9 +4485,26 @@ interface components {
4271
4485
  /** Format: int32 */
4272
4486
  uploadedCount: number;
4273
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
+ };
4274
4501
  /** @description The KYB result metadata bag. Empty by default. */
4275
4502
  KybMetadata: {
4276
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;
4277
4508
  ownershipStructure?: null | components["schemas"]["OwnershipStructure"];
4278
4509
  registryStatus?: null | components["schemas"]["CompanyStatus"];
4279
4510
  screeningStrategy?: null | components["schemas"]["ScreeningStrategy"];
@@ -4304,6 +4535,10 @@ interface components {
4304
4535
  assignedAt?: string | null;
4305
4536
  /** Format: uuid */
4306
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;
4307
4542
  businessInformation?: null | components["schemas"]["BusinessInformation"];
4308
4543
  businessInformationVerification?: {
4309
4544
  [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
@@ -4326,13 +4561,18 @@ interface components {
4326
4561
  flowStep?: null | components["schemas"]["FlowStep"];
4327
4562
  /** Format: uuid */
4328
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;
4329
4569
  /** Format: date-time */
4330
4570
  fundedAt?: string | null;
4331
4571
  /** Format: uuid */
4332
4572
  id: string;
4333
4573
  /** @description Admin-curated metadata. Organizations read it; only admins write it.
4334
4574
  * Empty (`{}`) when nothing has been recorded. */
4335
- metadata?: Record<string, never>;
4575
+ metadata?: Record<string, unknown>;
4336
4576
  nextAction?: null | components["schemas"]["NextAction"];
4337
4577
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
4338
4578
  reason?: string | null;
@@ -4391,9 +4631,9 @@ interface components {
4391
4631
  autoSendUboKycEmail: boolean;
4392
4632
  /**
4393
4633
  * Format: uuid
4394
- * @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`.
4395
4635
  */
4396
- kybStepId: string;
4636
+ kybStepId?: string;
4397
4637
  /**
4398
4638
  * Format: uuid
4399
4639
  * @description The KYC flow UBOs are invited into to verify their identity. Only used when `requireKyc`
@@ -4441,6 +4681,12 @@ interface components {
4441
4681
  /** Format: int32 */
4442
4682
  uboCount: number;
4443
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;
4444
4690
  ListOrganizationFlowResultsResponse: {
4445
4691
  page: components["schemas"]["FlowResult"][];
4446
4692
  /** Format: int64 */
@@ -4864,6 +5110,20 @@ interface components {
4864
5110
  * provider and will be completed later; `false` when the prefill is already complete. */
4865
5111
  pending: boolean;
4866
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";
4867
5127
  /** @description Typed representation of process_additional_data stored in DV results.
4868
5128
  *
4869
5129
  * This struct captures all the additional data associated with document
@@ -5026,9 +5286,10 @@ interface components {
5026
5286
  quotedCreditsTotal: number;
5027
5287
  /**
5028
5288
  * Format: uuid
5029
- * @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.
5030
5291
  */
5031
- verificationRequestId: string;
5292
+ verificationRequestId?: string | null;
5032
5293
  };
5033
5294
  /** @description One purchased document, as reported by `GET .../kyb-cases/{case_id}/documents`. */
5034
5295
  PurchasedDocument: {
@@ -5136,7 +5397,7 @@ interface components {
5136
5397
  subject?: string | null;
5137
5398
  };
5138
5399
  /** @enum {string} */
5139
- 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";
5140
5401
  ResultControlOperation: {
5141
5402
  /** Format: uuid */
5142
5403
  identityId: string;
@@ -5347,6 +5608,36 @@ interface components {
5347
5608
  /** @description Last characters of the supplied secret, so the caller can confirm which one is in force. */
5348
5609
  secretHint: string;
5349
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
+ };
5350
5641
  /**
5351
5642
  * @description Canonical security/authenticity check types.
5352
5643
  * @enum {string}
@@ -5367,6 +5658,7 @@ interface components {
5367
5658
  */
5368
5659
  ServiceCredentialEnvironment: "LIVE" | "TEST";
5369
5660
  Settings: {
5661
+ amlScreening?: null | components["schemas"]["FlowAmlScreening"];
5370
5662
  /** @description When true (default), prompt users to create a passkey during the verification flow.
5371
5663
  * When false, skip the passkey creation step.
5372
5664
  * Optional so that patch requests only write this field when explicitly provided. */
@@ -5380,6 +5672,11 @@ interface components {
5380
5672
  * When false, skip vault unlock if an active KYC grant already exists for the organization.
5381
5673
  * Optional so that patch requests only write this field when explicitly provided. */
5382
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;
5383
5680
  published?: boolean;
5384
5681
  skipSignedAccess?: boolean;
5385
5682
  slackNotifications?: string[] | null;
@@ -5443,7 +5740,7 @@ interface components {
5443
5740
  SpidStepOutput: {
5444
5741
  status: components["schemas"]["ResultStatus"];
5445
5742
  };
5446
- StartGeolocationVerificationRequest: Record<string, never>;
5743
+ StartGeolocationVerificationRequest: Record<string, unknown>;
5447
5744
  StartGeolocationVerificationResponse: {
5448
5745
  nonce: string;
5449
5746
  /** Format: uuid */
@@ -5665,11 +5962,11 @@ interface components {
5665
5962
  * responses or webhooks. */
5666
5963
  TmAgentReviewEvidence: {
5667
5964
  /** @description The re-read case at actuation time, present only when it differed from the analytic one. */
5668
- actuationCaseFile?: Record<string, never> | null;
5669
- caseFile: Record<string, never>;
5670
- findings: Record<string, never>;
5671
- mitigations: Record<string, never>;
5672
- 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>;
5673
5970
  };
5674
5971
  /** @description The API-facing projection of a stored `agentReview`.
5675
5972
  *
@@ -5685,12 +5982,12 @@ interface components {
5685
5982
  evidence?: null | components["schemas"]["TmAgentReviewEvidence"];
5686
5983
  /** @description The deterministic guard outcome that produced the enacted decision; `null` when the guard
5687
5984
  * never ran (the model did not recommend approval). */
5688
- guard?: Record<string, never> | null;
5985
+ guard?: Record<string, unknown> | null;
5689
5986
  /** Format: uuid */
5690
5987
  id: string;
5691
5988
  mode: components["schemas"]["KybAgenticMode"];
5692
5989
  model: string;
5693
- promptVersions: Record<string, never>;
5990
+ promptVersions: Record<string, unknown>;
5694
5991
  rationale: string;
5695
5992
  recommendedStatus: components["schemas"]["TmAlertStatus"];
5696
5993
  /** Format: date-time */
@@ -5886,50 +6183,6 @@ interface components {
5886
6183
  TmUpdateTransactionStatusRequest: {
5887
6184
  status: components["schemas"]["TmTransactionStatus"];
5888
6185
  };
5889
- /** @description A top-up pack: a one-time purchase that adds credits to the organization's balance and
5890
- * can optionally unlock products. */
5891
- TopupPack: {
5892
- /**
5893
- * Format: int64
5894
- * @description Price amount in the smallest currency unit (e.g. cents)
5895
- */
5896
- amountCents: number;
5897
- /**
5898
- * Format: int64
5899
- * @description Number of credits granted by this pack, from metadata `credits`
5900
- */
5901
- credits: number;
5902
- currency: components["schemas"]["Currency"];
5903
- /** @description Products this pack enables in the production environment when it is purchased. Empty
5904
- * when the pack grants credits only. */
5905
- enabledProducts?: components["schemas"]["ProductType"][];
5906
- /** @description `true` when the price carries `zyphe_visibility=private` metadata: a bespoke pack that
5907
- * must never appear in the public catalog and is usable only by the organization named in
5908
- * `organization_id`. Defaults to `false` so an untagged price stays public, and so cached
5909
- * catalog entries serialized before this field existed still deserialize. */
5910
- isPrivate?: boolean;
5911
- /** @description Display name: nickname > product name > price ID */
5912
- name: string;
5913
- /** @description The organization a private pack belongs to, from price metadata `organization_id`.
5914
- * Meaningless (and normally absent) on a public pack. A private pack WITHOUT this is
5915
- * usable by nobody — failing closed beats leaking a bespoke price to every customer. */
5916
- organizationId?: string | null;
5917
- /** @description The pack's price ID. Pass it as `priceId` when creating a top-up checkout session. */
5918
- priceId: string;
5919
- /** @description Products this pack enables in the sandbox environment when it is purchased. Separate
5920
- * from `enabledProducts` because an organization may be allowed to try a product in
5921
- * sandbox without being able to use it in production. Empty when none. */
5922
- sandboxEnabledProducts?: components["schemas"]["ProductType"][];
5923
- /**
5924
- * Format: int32
5925
- * @description Optional validity window (in months) for the granted credits, from metadata `validity_months`
5926
- */
5927
- validityMonths?: number | null;
5928
- };
5929
- /** @description Response for the top-up pack catalog endpoint (`GET .../billing/topup-packs`). */
5930
- TopupPacksResponse: {
5931
- packs: components["schemas"]["TopupPack"][];
5932
- };
5933
6186
  /** @description Summary of the automatic ownership discovery: the relevance threshold it uses, its credit
5934
6187
  * budget, what it has spent so far and, once finished, how it ended. Returned to your
5935
6188
  * organization only, never to the applicant. */
@@ -6029,7 +6282,7 @@ interface components {
6029
6282
  totalOwnershipPercentage?: number | null;
6030
6283
  };
6031
6284
  /** @enum {string} */
6032
- 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";
6033
6286
  VaultUnlockPasskeyData: {
6034
6287
  /** @description Passkey challenge for vault unlock (base64url) */
6035
6288
  challenge: string;
@@ -6038,7 +6291,7 @@ interface components {
6038
6291
  /** @description Full WebAuthn `PublicKeyCredentialRequestOptions` for vault unlock.
6039
6292
  * Frontends should pass `options.publicKey` directly to
6040
6293
  * `navigator.credentials.get({ publicKey })`. */
6041
- options: Record<string, never>;
6294
+ options: Record<string, unknown>;
6042
6295
  /** @description PRF salt for vault unlock (base64url) */
6043
6296
  prfSalt: string;
6044
6297
  };
@@ -6891,7 +7144,7 @@ interface operations {
6891
7144
  };
6892
7145
  };
6893
7146
  };
6894
- sendUboKycReminder: {
7147
+ searchFlowResults: {
6895
7148
  parameters: {
6896
7149
  query: {
6897
7150
  sandbox: boolean;
@@ -6901,21 +7154,21 @@ interface operations {
6901
7154
  path: {
6902
7155
  /** @description Organization ID */
6903
7156
  organization_id: string;
6904
- /** @description The ID of the KYB case */
6905
- case_id: string;
6906
- /** @description Index of the UBO to send the KYC email to, matching the order in uboDefinitions */
6907
- recipient_index: number;
6908
7157
  };
6909
7158
  cookie?: never;
6910
7159
  };
6911
- requestBody?: never;
7160
+ requestBody: {
7161
+ content: {
7162
+ "application/json": components["schemas"]["SearchFlowResultsRequest"];
7163
+ };
7164
+ };
6912
7165
  responses: {
6913
- 202: {
7166
+ 200: {
6914
7167
  headers: {
6915
7168
  [name: string]: unknown;
6916
7169
  };
6917
7170
  content: {
6918
- "application/json": components["schemas"]["TriggerReminderResponse"];
7171
+ "application/json": components["schemas"]["SearchFlowResultsResponse"];
6919
7172
  };
6920
7173
  };
6921
7174
  400: {
@@ -6934,22 +7187,6 @@ interface operations {
6934
7187
  "application/json": components["schemas"]["BaxeError"];
6935
7188
  };
6936
7189
  };
6937
- 403: {
6938
- headers: {
6939
- [name: string]: unknown;
6940
- };
6941
- content: {
6942
- "application/json": components["schemas"]["BaxeError"];
6943
- };
6944
- };
6945
- 404: {
6946
- headers: {
6947
- [name: string]: unknown;
6948
- };
6949
- content: {
6950
- "application/json": components["schemas"]["BaxeError"];
6951
- };
6952
- };
6953
7190
  500: {
6954
7191
  headers: {
6955
7192
  [name: string]: unknown;
@@ -6960,7 +7197,7 @@ interface operations {
6960
7197
  };
6961
7198
  };
6962
7199
  };
6963
- addKybUbosDeprecated: {
7200
+ sendUboKycReminder: {
6964
7201
  parameters: {
6965
7202
  query: {
6966
7203
  sandbox: boolean;
@@ -6970,16 +7207,85 @@ interface operations {
6970
7207
  path: {
6971
7208
  /** @description Organization ID */
6972
7209
  organization_id: string;
6973
- /** @description The ID of the KYB result — the id of its case */
6974
- kyb_result_id: string;
7210
+ /** @description The ID of the KYB case */
7211
+ case_id: string;
7212
+ /** @description Index of the UBO to send the KYC email to, matching the order in uboDefinitions */
7213
+ recipient_index: number;
6975
7214
  };
6976
7215
  cookie?: never;
6977
7216
  };
6978
- requestBody: {
6979
- content: {
6980
- "application/json": components["schemas"]["AddKybPersonsPayload"];
6981
- };
6982
- };
7217
+ requestBody?: never;
7218
+ responses: {
7219
+ 202: {
7220
+ headers: {
7221
+ [name: string]: unknown;
7222
+ };
7223
+ content: {
7224
+ "application/json": components["schemas"]["TriggerReminderResponse"];
7225
+ };
7226
+ };
7227
+ 400: {
7228
+ headers: {
7229
+ [name: string]: unknown;
7230
+ };
7231
+ content: {
7232
+ "application/json": components["schemas"]["BaxeError"];
7233
+ };
7234
+ };
7235
+ 401: {
7236
+ headers: {
7237
+ [name: string]: unknown;
7238
+ };
7239
+ content: {
7240
+ "application/json": components["schemas"]["BaxeError"];
7241
+ };
7242
+ };
7243
+ 403: {
7244
+ headers: {
7245
+ [name: string]: unknown;
7246
+ };
7247
+ content: {
7248
+ "application/json": components["schemas"]["BaxeError"];
7249
+ };
7250
+ };
7251
+ 404: {
7252
+ headers: {
7253
+ [name: string]: unknown;
7254
+ };
7255
+ content: {
7256
+ "application/json": components["schemas"]["BaxeError"];
7257
+ };
7258
+ };
7259
+ 500: {
7260
+ headers: {
7261
+ [name: string]: unknown;
7262
+ };
7263
+ content: {
7264
+ "application/json": components["schemas"]["BaxeError"];
7265
+ };
7266
+ };
7267
+ };
7268
+ };
7269
+ addKybUbosDeprecated: {
7270
+ parameters: {
7271
+ query: {
7272
+ sandbox: boolean;
7273
+ locale?: components["schemas"]["Locale"];
7274
+ };
7275
+ header?: never;
7276
+ path: {
7277
+ /** @description Organization ID */
7278
+ organization_id: string;
7279
+ /** @description The ID of the KYB result — the id of its case */
7280
+ kyb_result_id: string;
7281
+ };
7282
+ cookie?: never;
7283
+ };
7284
+ requestBody: {
7285
+ content: {
7286
+ "application/json": components["schemas"]["AddKybPersonsPayload"];
7287
+ };
7288
+ };
6983
7289
  responses: {
6984
7290
  200: {
6985
7291
  headers: {
@@ -7885,6 +8191,76 @@ interface operations {
7885
8191
  };
7886
8192
  };
7887
8193
  };
8194
+ getKybCaseReport: {
8195
+ parameters: {
8196
+ query: {
8197
+ sandbox: boolean;
8198
+ locale?: components["schemas"]["Locale"];
8199
+ };
8200
+ header?: {
8201
+ /** @description The `ETag` of a report already held */
8202
+ "If-None-Match"?: string | null;
8203
+ };
8204
+ path: {
8205
+ /** @description Organization ID */
8206
+ organization_id: string;
8207
+ /** @description The ID of the KYB case */
8208
+ case_id: string;
8209
+ };
8210
+ cookie?: never;
8211
+ };
8212
+ requestBody?: never;
8213
+ responses: {
8214
+ /** @description The report PDF */
8215
+ 200: {
8216
+ headers: {
8217
+ [name: string]: unknown;
8218
+ };
8219
+ content: {
8220
+ "application/pdf": components["schemas"]["KybCaseReportPdf"];
8221
+ };
8222
+ };
8223
+ /** @description The report named by `If-None-Match` is current */
8224
+ 304: {
8225
+ headers: {
8226
+ [name: string]: unknown;
8227
+ };
8228
+ content?: never;
8229
+ };
8230
+ 401: {
8231
+ headers: {
8232
+ [name: string]: unknown;
8233
+ };
8234
+ content: {
8235
+ "application/json": components["schemas"]["BaxeError"];
8236
+ };
8237
+ };
8238
+ 403: {
8239
+ headers: {
8240
+ [name: string]: unknown;
8241
+ };
8242
+ content: {
8243
+ "application/json": components["schemas"]["BaxeError"];
8244
+ };
8245
+ };
8246
+ 404: {
8247
+ headers: {
8248
+ [name: string]: unknown;
8249
+ };
8250
+ content: {
8251
+ "application/json": components["schemas"]["BaxeError"];
8252
+ };
8253
+ };
8254
+ 500: {
8255
+ headers: {
8256
+ [name: string]: unknown;
8257
+ };
8258
+ content: {
8259
+ "application/json": components["schemas"]["BaxeError"];
8260
+ };
8261
+ };
8262
+ };
8263
+ };
7888
8264
  decideKybCase: {
7889
8265
  parameters: {
7890
8266
  query: {
@@ -8111,6 +8487,74 @@ interface operations {
8111
8487
  };
8112
8488
  };
8113
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
+ };
8114
8558
  getProofOfAddressResultDetails: {
8115
8559
  parameters: {
8116
8560
  query: {
@@ -8637,118 +9081,6 @@ interface operations {
8637
9081
  };
8638
9082
  };
8639
9083
  };
8640
- get_topup_packs: {
8641
- parameters: {
8642
- query?: never;
8643
- header?: never;
8644
- path: {
8645
- /** @description Organization ID */
8646
- organization_id: string;
8647
- };
8648
- cookie?: never;
8649
- };
8650
- requestBody?: never;
8651
- responses: {
8652
- 200: {
8653
- headers: {
8654
- [name: string]: unknown;
8655
- };
8656
- content: {
8657
- "application/json": components["schemas"]["TopupPacksResponse"];
8658
- };
8659
- };
8660
- 401: {
8661
- headers: {
8662
- [name: string]: unknown;
8663
- };
8664
- content: {
8665
- "application/json": components["schemas"]["BaxeError"];
8666
- };
8667
- };
8668
- 403: {
8669
- headers: {
8670
- [name: string]: unknown;
8671
- };
8672
- content: {
8673
- "application/json": components["schemas"]["BaxeError"];
8674
- };
8675
- };
8676
- 500: {
8677
- headers: {
8678
- [name: string]: unknown;
8679
- };
8680
- content: {
8681
- "application/json": components["schemas"]["BaxeError"];
8682
- };
8683
- };
8684
- };
8685
- };
8686
- create_topup_checkout: {
8687
- parameters: {
8688
- query?: never;
8689
- header?: never;
8690
- path: {
8691
- /** @description Organization ID */
8692
- organization_id: string;
8693
- };
8694
- cookie?: never;
8695
- };
8696
- requestBody: {
8697
- content: {
8698
- "application/json": components["schemas"]["CreateTopupCheckoutRequest"];
8699
- };
8700
- };
8701
- responses: {
8702
- 200: {
8703
- headers: {
8704
- [name: string]: unknown;
8705
- };
8706
- content: {
8707
- "application/json": components["schemas"]["CheckoutSessionResponse"];
8708
- };
8709
- };
8710
- 400: {
8711
- headers: {
8712
- [name: string]: unknown;
8713
- };
8714
- content: {
8715
- "application/json": components["schemas"]["BaxeError"];
8716
- };
8717
- };
8718
- 401: {
8719
- headers: {
8720
- [name: string]: unknown;
8721
- };
8722
- content: {
8723
- "application/json": components["schemas"]["BaxeError"];
8724
- };
8725
- };
8726
- 403: {
8727
- headers: {
8728
- [name: string]: unknown;
8729
- };
8730
- content: {
8731
- "application/json": components["schemas"]["BaxeError"];
8732
- };
8733
- };
8734
- 404: {
8735
- headers: {
8736
- [name: string]: unknown;
8737
- };
8738
- content: {
8739
- "application/json": components["schemas"]["BaxeError"];
8740
- };
8741
- };
8742
- 500: {
8743
- headers: {
8744
- [name: string]: unknown;
8745
- };
8746
- content: {
8747
- "application/json": components["schemas"]["BaxeError"];
8748
- };
8749
- };
8750
- };
8751
- };
8752
9084
  sdkIngestTransaction: {
8753
9085
  parameters: {
8754
9086
  query: {
@@ -9894,6 +10226,94 @@ declare function listFlowResults({ organizationId, flowSlug, isSandbox, paginati
9894
10226
  "x-api-key": string;
9895
10227
  };
9896
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}`>>;
9897
10317
  declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetFlowResultParams, opts: SDKOptions): Promise<{
9898
10318
  data: {
9899
10319
  dvResults: {
@@ -9922,6 +10342,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
9922
10342
  processAdditionalData: components["schemas"]["ProcessAdditionalData"];
9923
10343
  provinceCode?: string | null;
9924
10344
  reasons: components["schemas"]["DvReason"][];
10345
+ reviewReason?: null | components["schemas"]["DvReviewReason"];
9925
10346
  status: components["schemas"]["ResultStatus"];
9926
10347
  updatedAt?: string | null;
9927
10348
  validUntil?: string | null;
@@ -9929,8 +10350,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
9929
10350
  }[] | undefined;
9930
10351
  amlResults: {
9931
10352
  adverseMedia?: boolean;
10353
+ caseId?: string | null;
9932
10354
  createdAt: string;
9933
10355
  data?: null | components["schemas"]["AmlRiskResult"];
10356
+ flowResultId?: string | null;
9934
10357
  id: string;
9935
10358
  namedPersonRef?: string | null;
9936
10359
  pep: boolean;
@@ -10029,6 +10452,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10029
10452
  kybResults?: {
10030
10453
  assignedAt?: string | null;
10031
10454
  assignedToIdentityId?: string | null;
10455
+ businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
10032
10456
  businessInformation?: null | components["schemas"]["BusinessInformation"];
10033
10457
  businessInformationVerification?: {
10034
10458
  [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
@@ -10040,9 +10464,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10040
10464
  effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
10041
10465
  flowStep?: null | components["schemas"]["FlowStep"];
10042
10466
  flowStepId?: string | null;
10467
+ formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
10043
10468
  fundedAt?: string | null;
10044
10469
  id: string;
10045
- metadata?: Record<string, never>;
10470
+ metadata?: Record<string, unknown>;
10046
10471
  nextAction?: null | components["schemas"]["NextAction"];
10047
10472
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
10048
10473
  reason?: string | null;
@@ -10128,6 +10553,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10128
10553
  processAdditionalData: components["schemas"]["ProcessAdditionalData"];
10129
10554
  provinceCode?: string | null;
10130
10555
  reasons: components["schemas"]["DvReason"][];
10556
+ reviewReason?: null | components["schemas"]["DvReviewReason"];
10131
10557
  status: components["schemas"]["ResultStatus"];
10132
10558
  updatedAt?: string | null;
10133
10559
  validUntil?: string | null;
@@ -10135,8 +10561,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10135
10561
  }[] | undefined;
10136
10562
  amlResults: {
10137
10563
  adverseMedia?: boolean;
10564
+ caseId?: string | null;
10138
10565
  createdAt: string;
10139
10566
  data?: null | components["schemas"]["AmlRiskResult"];
10567
+ flowResultId?: string | null;
10140
10568
  id: string;
10141
10569
  namedPersonRef?: string | null;
10142
10570
  pep: boolean;
@@ -10235,6 +10663,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10235
10663
  kybResults?: {
10236
10664
  assignedAt?: string | null;
10237
10665
  assignedToIdentityId?: string | null;
10666
+ businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
10238
10667
  businessInformation?: null | components["schemas"]["BusinessInformation"];
10239
10668
  businessInformationVerification?: {
10240
10669
  [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
@@ -10246,9 +10675,10 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10246
10675
  effectiveRequiredDocuments?: components["schemas"]["KybCountryDocument"][] | null;
10247
10676
  flowStep?: null | components["schemas"]["FlowStep"];
10248
10677
  flowStepId?: string | null;
10678
+ formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
10249
10679
  fundedAt?: string | null;
10250
10680
  id: string;
10251
- metadata?: Record<string, never>;
10681
+ metadata?: Record<string, unknown>;
10252
10682
  nextAction?: null | components["schemas"]["NextAction"];
10253
10683
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
10254
10684
  reason?: string | null;
@@ -10327,6 +10757,32 @@ declare function getDvResult({ organizationId, flowResultId, dvResultId, isSandb
10327
10757
  };
10328
10758
  response: Response;
10329
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
+ }>;
10330
10786
 
10331
10787
  interface KybResultParams {
10332
10788
  organizationId: string;
@@ -10962,6 +11418,36 @@ declare function getKybCase({ organizationId, caseId, isSandbox, locale }: KybCa
10962
11418
  "x-api-key": string;
10963
11419
  };
10964
11420
  }, `${string}/${string}`>>;
11421
+ interface GetKybCaseReportParams extends KybCaseParams {
11422
+ /**
11423
+ * The `etag` of a report you already hold. When nothing in the report has changed, the call answers with
11424
+ * `notModified: true` and no body.
11425
+ * @example '"19ad76209a1f705468dc687ebd94ac63ca3d843b62b2f8bb8b713d1e6abb1a46-v1"'
11426
+ */
11427
+ ifNoneMatch?: string;
11428
+ }
11429
+ /**
11430
+ * Downloads the KYB case report as a PDF: the company, its people and ownership, screening, adverse media, documents
11431
+ * and sources, as the case stands at the time of the call.
11432
+ *
11433
+ * The report is identified by a hash of its content, returned as `etag`. Pass it back as `ifNoneMatch` to download the
11434
+ * report again only when it has changed.
11435
+ *
11436
+ * The body is a PDF, not JSON: a direct `openapi-fetch` call to this endpoint must set `parseAs: 'arrayBuffer'` (or
11437
+ * `'blob'`), as this helper does, instead of relying on the default JSON parser.
11438
+ */
11439
+ declare function getKybCaseReport({ organizationId, caseId, isSandbox, locale, ifNoneMatch }: GetKybCaseReportParams, opts: SDKOptions): Promise<{
11440
+ data: Uint8Array<ArrayBuffer> | undefined;
11441
+ error: {
11442
+ code: number;
11443
+ errorTag: components["schemas"]["ErrorTags"];
11444
+ message?: string | null;
11445
+ } | undefined;
11446
+ response: Response;
11447
+ notModified: boolean;
11448
+ etag: string | undefined;
11449
+ fileName: string | undefined;
11450
+ }>;
10965
11451
  type DecideKybCaseParams = KybCaseParams & components['schemas']['DecideCasePayload'];
10966
11452
  declare function decideKybCase({ organizationId, caseId, isSandbox, locale, outcome, reason, reasonCode, dueDiligenceLevel, confirmingProposalId }: DecideKybCaseParams, opts: SDKOptions): Promise<openapi_fetch.FetchResponse<{
10967
11453
  parameters: {
@@ -12549,4 +13035,4 @@ interface WebhookVerifierOptions<T extends WebhookUnauthorizedHandler> {
12549
13035
  exposeRawBody?: boolean;
12550
13036
  }
12551
13037
 
12552
- 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, 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 };