@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/openapi.d.ts CHANGED
@@ -212,6 +212,32 @@ export interface paths {
212
212
  patch?: never;
213
213
  trace?: never;
214
214
  };
215
+ "/sdk/organizations/{organization_id}/flow-results/search": {
216
+ parameters: {
217
+ query?: never;
218
+ header?: never;
219
+ path?: never;
220
+ cookie?: never;
221
+ };
222
+ get?: never;
223
+ put?: never;
224
+ /**
225
+ * Search flow results
226
+ * @description Tells whether a user passed a verification. Looks flow results up by the user's email, by the
227
+ * custom data attached when the verification request was created, or by both, and returns the
228
+ * status of each match, most recently updated first. `passed` is `true` once the user completed
229
+ * the flow successfully.
230
+ *
231
+ * At least one of `email` and `customData` is required. A user who never started a verification
232
+ * gives an empty page.
233
+ */
234
+ post: operations["searchFlowResults"];
235
+ delete?: never;
236
+ options?: never;
237
+ head?: never;
238
+ patch?: never;
239
+ trace?: never;
240
+ };
215
241
  "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/reminders/ubo/{recipient_index}": {
216
242
  parameters: {
217
243
  query?: never;
@@ -521,6 +547,29 @@ export interface paths {
521
547
  patch?: never;
522
548
  trace?: never;
523
549
  };
550
+ "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/report": {
551
+ parameters: {
552
+ query?: never;
553
+ header?: never;
554
+ path?: never;
555
+ cookie?: never;
556
+ };
557
+ /**
558
+ * Download a KYB case's report
559
+ * @description The case's KYB report as a PDF: company, activity, directors, ownership and beneficial owners,
560
+ * screening, adverse media, documents and sources, as the case stands at the time of the request.
561
+ * The report is identified by a hash of its content, returned as `ETag`: send it back as
562
+ * `If-None-Match` to get `304` when nothing in the report has changed.
563
+ */
564
+ get: operations["getKybCaseReport"];
565
+ put?: never;
566
+ post?: never;
567
+ delete?: never;
568
+ options?: never;
569
+ head?: never;
570
+ patch?: never;
571
+ trace?: never;
572
+ };
524
573
  "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/decision": {
525
574
  parameters: {
526
575
  query?: never;
@@ -560,6 +609,10 @@ export interface paths {
560
609
  * @description Returns one flow result: who it belongs to, its status, and the result of every step the user
561
610
  * completed (document verification, liveness, proof of address, screening, forms, KYB and the
562
611
  * others). The per-step result endpoints return each step's full detail.
612
+ *
613
+ * The flow result is one of this organization's, or a KYC Passport result another organization
614
+ * shared with it: the result named by a `kyc_passport.verification.updated` notification. The
615
+ * same holds for the per-step result endpoints.
563
616
  */
564
617
  get: operations["getFlowResultDetails"];
565
618
  put?: never;
@@ -591,6 +644,30 @@ export interface paths {
591
644
  patch?: never;
592
645
  trace?: never;
593
646
  };
647
+ "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/dv/{dv_result_id}/report": {
648
+ parameters: {
649
+ query?: never;
650
+ header?: never;
651
+ path?: never;
652
+ cookie?: never;
653
+ };
654
+ /**
655
+ * Download the KYC report of a document verification result
656
+ * @description Returns the report of one document verification as a PDF: its outcome and every check it was
657
+ * held against, the data read from the document, the document images, the device and session,
658
+ * the person's AML screenings and an audit trail, with the verification data attached to the PDF
659
+ * as JSON. `locale` picks the language: `en`, `it`, `de`, `es`, `fr` or `pt`; any other prints in
660
+ * English. The report is generated on each request and states when it was generated.
661
+ */
662
+ get: operations["getDocumentVerificationResultReport"];
663
+ put?: never;
664
+ post?: never;
665
+ delete?: never;
666
+ options?: never;
667
+ head?: never;
668
+ patch?: never;
669
+ trace?: never;
670
+ };
594
671
  "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/poa/{poa_result_id}/details": {
595
672
  parameters: {
596
673
  query?: never;
@@ -683,6 +760,7 @@ export interface paths {
683
760
  };
684
761
  /**
685
762
  * Get flow result details (deprecated)
763
+ * @deprecated
686
764
  * @description **Deprecated.** Use "Get flow result details", which also takes the flow slug.
687
765
  */
688
766
  get: operations["getFlowResultDetailsDeprecated"];
@@ -703,6 +781,7 @@ export interface paths {
703
781
  };
704
782
  /**
705
783
  * Get document verification result details (deprecated)
784
+ * @deprecated
706
785
  * @description **Deprecated.** Use "Get document verification result details", which also takes the flow slug.
707
786
  */
708
787
  get: operations["getDocumentVerificationResultDetailsDeprecated"];
@@ -723,6 +802,7 @@ export interface paths {
723
802
  };
724
803
  /**
725
804
  * Get proof of address result details (deprecated)
805
+ * @deprecated
726
806
  * @description **Deprecated.** Use "Get proof of address result details", which also takes the flow slug.
727
807
  */
728
808
  get: operations["getProofOfAddressResultDetailsDeprecated"];
@@ -756,50 +836,6 @@ export interface paths {
756
836
  patch?: never;
757
837
  trace?: never;
758
838
  };
759
- "/organizations/{organization_id}/billing/topup-packs": {
760
- parameters: {
761
- query?: never;
762
- header?: never;
763
- path?: never;
764
- cookie?: never;
765
- };
766
- /**
767
- * List the top-up credit packs
768
- * @description Lists the one-time credit packs the organization can purchase, with their price, the
769
- * number of credits granted and any products they unlock. The catalog may be cached for up
770
- * to 30 minutes.
771
- */
772
- get: operations["get_topup_packs"];
773
- put?: never;
774
- post?: never;
775
- delete?: never;
776
- options?: never;
777
- head?: never;
778
- patch?: never;
779
- trace?: never;
780
- };
781
- "/organizations/{organization_id}/billing/topup/checkout": {
782
- parameters: {
783
- query?: never;
784
- header?: never;
785
- path?: never;
786
- cookie?: never;
787
- };
788
- get?: never;
789
- put?: never;
790
- /**
791
- * Create a checkout session for a credit top-up
792
- * @description The `priceId` must be one of the packs returned by `GET .../billing/topup-packs`. Redirect
793
- * the user to the returned checkout URL; the credits are added to the organization once the
794
- * payment completes.
795
- */
796
- post: operations["create_topup_checkout"];
797
- delete?: never;
798
- options?: never;
799
- head?: never;
800
- patch?: never;
801
- trace?: never;
802
- };
803
839
  "/sdk/organizations/{organization_id}/transactions": {
804
840
  parameters: {
805
841
  query?: never;
@@ -1206,6 +1242,9 @@ export interface components {
1206
1242
  occupancies?: components["schemas"]["AmlOccupancy"][];
1207
1243
  phone?: components["schemas"]["FieldWithControl"];
1208
1244
  position?: components["schemas"]["FieldWithControl"];
1245
+ /** @description The PEPs this record is tied to as a relative or close associate, as the provider names them.
1246
+ * Absent when the provider named none. */
1247
+ relatedPeps?: components["schemas"]["AmlRelatedPep"][];
1209
1248
  sanctions?: components["schemas"]["AmlSanction"][];
1210
1249
  /** Format: double */
1211
1250
  score?: number;
@@ -1216,6 +1255,8 @@ export interface components {
1216
1255
  AmlEntityResult: {
1217
1256
  entity: components["schemas"]["AmlEntityResponse"];
1218
1257
  hasSanctions: boolean;
1258
+ /** @description A PEP match: the record is a politically exposed person, or a relative or close associate
1259
+ * of one. */
1219
1260
  isPep: boolean;
1220
1261
  match: boolean;
1221
1262
  /** Format: double */
@@ -1241,6 +1282,11 @@ export interface components {
1241
1282
  name?: components["schemas"]["FieldWithControl"];
1242
1283
  summary?: components["schemas"]["FieldWithControl"];
1243
1284
  };
1285
+ /**
1286
+ * @description How a record reaches a PEP it is related to.
1287
+ * @enum {string}
1288
+ */
1289
+ AmlPepRelationKind: "family" | "associate";
1244
1290
  AmlPosition: {
1245
1291
  country?: components["schemas"]["FieldWithControl"];
1246
1292
  description?: components["schemas"]["FieldWithControl"];
@@ -1263,13 +1309,35 @@ export interface components {
1263
1309
  gender?: string | null;
1264
1310
  lastName: string;
1265
1311
  };
1312
+ /** @description A PEP that a relative or close associate is related to. */
1313
+ AmlRelatedPep: {
1314
+ /** @description The provider's id of the PEP's record. */
1315
+ entityId: string;
1316
+ kind: components["schemas"]["AmlPepRelationKind"];
1317
+ /** @description The PEP's names, as the provider lists them. */
1318
+ names: string[];
1319
+ /** @description The nature of the relationship, worded by the provider from the PEP's side ("spouse",
1320
+ * "business partner"): the record is the PEP's spouse. */
1321
+ relationship?: string[];
1322
+ };
1266
1323
  AmlResult: {
1267
1324
  /** @description Whether adverse-media screening for this subject returned a hit. `false` when there was no
1268
1325
  * hit or adverse media was not screened. */
1269
1326
  adverseMedia?: boolean;
1327
+ /**
1328
+ * Format: uuid
1329
+ * @description The KYB case the screening was ordered for, when it names one.
1330
+ */
1331
+ caseId?: string | null;
1270
1332
  /** Format: date-time */
1271
1333
  createdAt: string;
1272
1334
  data?: null | components["schemas"]["AmlRiskResult"];
1335
+ /**
1336
+ * Format: uuid
1337
+ * @description The flow result the screening belongs to. Absent for a screening of an operator-opened case
1338
+ * that has none.
1339
+ */
1340
+ flowResultId?: string | null;
1273
1341
  /** Format: uuid */
1274
1342
  id: string;
1275
1343
  /**
@@ -1400,7 +1468,7 @@ export interface components {
1400
1468
  * @description The action recorded by an audit log entry (e.g. `FLOW_CREATED`).
1401
1469
  * @enum {string}
1402
1470
  */
1403
- 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";
1471
+ 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";
1404
1472
  /** @description A single entry in the audit log, returned by the query API. */
1405
1473
  AuditLogEntry: {
1406
1474
  action: components["schemas"]["AuditAction"];
@@ -1412,6 +1480,16 @@ export interface components {
1412
1480
  /** Format: date-time */
1413
1481
  createdAt: string;
1414
1482
  details: unknown;
1483
+ /** @description The entry's hash on the chain: SHA-256 of the previous entry's hash and this entry's
1484
+ * canonical form. The chain is one for the whole platform, so the entry before this one may
1485
+ * belong to another organization. */
1486
+ entryHash: string;
1487
+ /**
1488
+ * Format: int64
1489
+ * @description The entry's position on the audit log's hash chain. One entry is read back with the filter
1490
+ * `entry_seq:equals:<n>`.
1491
+ */
1492
+ entrySeq: number;
1415
1493
  /** Format: uuid */
1416
1494
  id: string;
1417
1495
  /** @description Whether this entry originated from a sandbox operation.
@@ -1471,7 +1549,7 @@ export interface components {
1471
1549
  * not be determined (e.g. for some system operations).
1472
1550
  * @enum {string}
1473
1551
  */
1474
- 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";
1552
+ 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";
1475
1553
  /** @description What triggered an audit event, identified by `type`:
1476
1554
  * - `HTTP` — an API request (`method` and `path`).
1477
1555
  * - `WORKER` — a background process (`workerType` and `scenario`).
@@ -1561,6 +1639,15 @@ export interface components {
1561
1639
  * @enum {string}
1562
1640
  */
1563
1641
  BusinessInfoDisagreementSource: "submitted" | "document" | "catalog";
1642
+ /**
1643
+ * @description A business-information key a form field answers.
1644
+ *
1645
+ * The country (and the US state) come from the company lookup, and the contact email from the
1646
+ * applicant's own email, so no field is bound to them. The address is one place field, which
1647
+ * yields the street address, the city and the postcode.
1648
+ * @enum {string}
1649
+ */
1650
+ BusinessInfoField: "companyName" | "registrationNumber" | "companyType" | "address" | "incorporationDate" | "businessActivity";
1564
1651
  /** @description Per-field verification result comparing submitted business info against document-extracted values. */
1565
1652
  BusinessInfoFieldVerification: {
1566
1653
  /** @description The AI agent's one-sentence explanation of why this match classification was chosen.
@@ -1658,6 +1745,24 @@ export interface components {
1658
1745
  */
1659
1746
  uncovered: number;
1660
1747
  };
1748
+ /** @description The decision that stands on a case, as its list row shows it. */
1749
+ CaseDecisionSummary: {
1750
+ /** Format: date-time */
1751
+ decidedAt: string;
1752
+ /**
1753
+ * Format: uuid
1754
+ * @description The identity that took it: an analyst, or the agent's own identity.
1755
+ */
1756
+ decidedBy: string;
1757
+ /** @description `PERSON` for an analyst, `BOT` for an agent such as Zyphe Agent, `API_KEY` for an integration and `SYSTEM` for
1758
+ * the platform itself. */
1759
+ decidedByKind: components["schemas"]["PrincipalKind"];
1760
+ /** @description The route it came through: the console, the SDK, an agent's MCP tool, and so on. */
1761
+ door: components["schemas"]["DecisionDoor"];
1762
+ /** Format: uuid */
1763
+ id: string;
1764
+ outcome: components["schemas"]["KybCaseDecisionOutcome"];
1765
+ };
1661
1766
  /** @description One case as its own read answers.
1662
1767
  *
1663
1768
  * The list row, flattened so every key a client already binds against stays exactly where it was,
@@ -1707,18 +1812,27 @@ export interface components {
1707
1812
  * risky its company is are what a reviewer sorts their day by. */
1708
1813
  CaseSummaryResponse: {
1709
1814
  assignment?: null | components["schemas"]["SubjectAssignmentResponse"];
1815
+ /** @description `ONBOARDING` for the first review of the company, `PERIODIC_REVIEW` for a later one: a case opened to verify an
1816
+ * earlier one again, or one its periodic review reopened. Derived from the case's history, never stored. */
1817
+ caseType: components["schemas"]["KybCaseType"];
1710
1818
  /** @description The key the company's assignment and rating are kept under. Absent for a company with no
1711
1819
  * registration number: it cannot be told from another in its country, so nothing is kept
1712
1820
  * about it and it can be neither assigned nor rated. */
1713
1821
  companyKey?: string | null;
1822
+ /** @description The address the case reaches the company at, once one is set: the contact an analyst gave a case they opened. */
1823
+ contactEmail?: string | null;
1714
1824
  country: string;
1715
1825
  /** @description How far the case has been checked, counted over its own steps. Present on every row: a case
1716
1826
  * with nothing planned yet reads three zeros and `complete: false`, which is an answer. */
1717
1827
  coverage: components["schemas"]["CaseCoverageSummary"];
1718
1828
  /** Format: date-time */
1719
1829
  createdAt: string;
1830
+ decision?: null | components["schemas"]["CaseDecisionSummary"];
1720
1831
  dueDiligenceLevel: components["schemas"]["KybCaseDueDiligenceLevel"];
1721
1832
  episode?: null | components["schemas"]["EpisodeRef"];
1833
+ /** @description What the Home page flags on the case, as the work board last read it, within seconds of the case changing. Empty
1834
+ * on a closed case. */
1835
+ flags: components["schemas"]["KybCaseFlag"][];
1722
1836
  /** Format: uuid */
1723
1837
  flowResultId?: string | null;
1724
1838
  /** Format: uuid */
@@ -1726,6 +1840,12 @@ export interface components {
1726
1840
  legalName?: string | null;
1727
1841
  /** @description `CLIENT` | `RM` | `COMPLIANCE` | `SUPPORT` | `FUNDED` | `DENIED`, where set. */
1728
1842
  nextAction?: string | null;
1843
+ /**
1844
+ * Format: uuid
1845
+ * @description The member of the organization who opened the case, for a case opened by hand. Absent for an applicant's case
1846
+ * and for one the migration made.
1847
+ */
1848
+ openedByIdentityId?: string | null;
1729
1849
  /** @description Who opened the case: `END_USER` (the business applicant, through a flow), `OPERATOR` (a member of your
1730
1850
  * organization) or `MIGRATION` (created from a KYB result that predates KYB cases). */
1731
1851
  origin: components["schemas"]["KybCaseOrigin"];
@@ -1751,10 +1871,6 @@ export interface components {
1751
1871
  * @enum {string}
1752
1872
  */
1753
1873
  CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
1754
- /** @description Response from creating a checkout session */
1755
- CheckoutSessionResponse: {
1756
- checkoutUrl: string;
1757
- };
1758
1874
  CloudflareTracePayload: {
1759
1875
  colo?: string | null;
1760
1876
  ip?: string | null;
@@ -1969,14 +2085,6 @@ export interface components {
1969
2085
  sessionToken: string;
1970
2086
  url: string;
1971
2087
  };
1972
- /** @description Request to create a checkout session for a one-time credit top-up purchase. */
1973
- CreateTopupCheckoutRequest: {
1974
- /** @description The price ID of the top-up pack to purchase, as returned in `priceId` by
1975
- * `GET .../billing/topup-packs`. */
1976
- priceId: string;
1977
- /** @description Optional redirect URI after checkout. If not provided, redirects to the webapp root. */
1978
- redirectUri?: string | null;
1979
- };
1980
2088
  CreateVerificationRequestPayload: components["schemas"]["VerificationIdentifier"] & {
1981
2089
  continueUrl?: string | null;
1982
2090
  cookiesPolicyAccepted: boolean;
@@ -2003,27 +2111,7 @@ export interface components {
2003
2111
  */
2004
2112
  CreationSource: "SELF_SERVE" | "ADMIN" | "PARTNER";
2005
2113
  /** @enum {string} */
2006
- CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID";
2007
- /** @description When the credits granted by a subscription plan at each renewal expire. */
2008
- CreditExpiryPolicy: {
2009
- /** @enum {string} */
2010
- type: "periodEnd";
2011
- } | {
2012
- /** @enum {string} */
2013
- type: "never";
2014
- } | {
2015
- /** Format: int32 */
2016
- months: number;
2017
- /** @enum {string} */
2018
- type: "monthsFromGrant";
2019
- } | {
2020
- /** Format: int32 */
2021
- months: number;
2022
- /** @enum {string} */
2023
- type: "monthsFromSubscription";
2024
- };
2025
- /** @example usd */
2026
- Currency: string;
2114
+ CredentialType: "PASSWORD" | "MAGIC_LINK" | "PASSKEY" | "BOT_TOKEN" | "WALLET" | "EXTERNAL_ID" | "TOTP";
2027
2115
  /** @description A reviewer's decision on a case: the one immutable decision it gets. */
2028
2116
  DecideCasePayload: {
2029
2117
  /**
@@ -2070,6 +2158,18 @@ export interface components {
2070
2158
  statusAfter?: null | components["schemas"]["KybCaseStatus"];
2071
2159
  statusBefore?: null | components["schemas"]["KybCaseStatus"];
2072
2160
  };
2161
+ /**
2162
+ * @description The door an act came through. Stored as TEXT, mirrored by the `door` CHECK constraints.
2163
+ *
2164
+ * Tier 1 puts one closing operation behind every door; the door stays on the row because the
2165
+ * operation is the same and the *route* is not — an integrator asking why a case closed wants to
2166
+ * know whether a person used the console or an SDK call did it.
2167
+ *
2168
+ * `Console` is the default: it is the door every decision taken before the column existed came
2169
+ * through, save the migrated ones, which the migration stamps `Migration` explicitly.
2170
+ * @enum {string}
2171
+ */
2172
+ DecisionDoor: "CASE_ROUTE" | "CONSOLE" | "MANUAL_REVIEW" | "ADMIN" | "SDK" | "MCP" | "WORKER" | "MIGRATION";
2073
2173
  /** @description The decision the organization's approval matrix turned into a *proposal*.
2074
2174
  *
2075
2175
  * The first signature is recorded and the case is NOT decided: someone holding one of
@@ -2428,8 +2528,17 @@ export interface components {
2428
2528
  * `providesLiveness` and `providesAuthenticity` are `true` when the session itself performs the
2429
2529
  * liveness check and the document-authenticity check. When `false`, the session does not: a check
2430
2530
  * runs only if the flow has one of its own, a liveness step or the step's `docauthChecks`, which
2431
- * are empty by default. */
2531
+ * are empty by default.
2532
+ *
2533
+ * `acceptedCaptures` lists every submission `process-dv-document` takes for this attempt: the
2534
+ * capture mode above, plus `DIRECT` whenever the provider can process an uploaded image. The
2535
+ * capture mode is what Zyphe's own web app renders; `acceptedCaptures` is what a backend-only
2536
+ * integrator reads to learn it may post `images` against a `SESSION` attempt. The two flags
2537
+ * above describe the capture mode, not an upload: a `DIRECT` submission to a `SESSION` attempt
2538
+ * skips whatever selfie and capture-time checks that session performs (`providesLiveness`), so
2539
+ * the flow's own liveness step is the one that counts. */
2432
2540
  DvCapture: {
2541
+ acceptedCaptures?: components["schemas"]["DvCaptureMode"][];
2433
2542
  capture: components["schemas"]["DvCaptureMode"];
2434
2543
  providesAuthenticity: boolean;
2435
2544
  providesLiveness: boolean;
@@ -2534,6 +2643,7 @@ export interface components {
2534
2643
  processAdditionalData: components["schemas"]["ProcessAdditionalData"];
2535
2644
  provinceCode?: string | null;
2536
2645
  reasons: components["schemas"]["DvReason"][];
2646
+ reviewReason?: null | components["schemas"]["DvReviewReason"];
2537
2647
  status: components["schemas"]["ResultStatus"];
2538
2648
  /** Format: date-time */
2539
2649
  updatedAt?: string | null;
@@ -2546,6 +2656,27 @@ export interface components {
2546
2656
  /** Format: uuid */
2547
2657
  verificationRequestId?: string | null;
2548
2658
  };
2659
+ /** @description Why a DV or liveness verification was taken out of the user's hands and sent for review.
2660
+ *
2661
+ * Written by the attempt that ends the verification; the review that follows leaves it as it is.
2662
+ * It names the most recent escalation: a later escalation replaces it. */
2663
+ DvReviewReason: {
2664
+ /** Format: int32 */
2665
+ attempts: number;
2666
+ /** @enum {string} */
2667
+ kind: "ATTEMPTS_EXHAUSTED";
2668
+ /** Format: int32 */
2669
+ maxAttempts: number;
2670
+ } | {
2671
+ /** @enum {string} */
2672
+ kind: "BLOCKING_REASON";
2673
+ reasons: components["schemas"]["DvReason"][];
2674
+ } | {
2675
+ /** Format: int32 */
2676
+ attempts: number;
2677
+ /** @enum {string} */
2678
+ kind: "UNUSABLE_CAPTURES";
2679
+ };
2549
2680
  DvStepOutput: {
2550
2681
  /** @description Whether the subject's screening found adverse media — a routing signal beside `amlPep` and
2551
2682
  * `amlSanctions`, so a flow can branch on it as it can on the other two. `None` until a
@@ -2598,7 +2729,7 @@ export interface components {
2598
2729
  number: number;
2599
2730
  };
2600
2731
  /** @enum {string} */
2601
- 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";
2732
+ 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";
2602
2733
  /**
2603
2734
  * @description What an estimated cost represents. `fixedPrice` is a real quoted price; `variableCap` is only
2604
2735
  * the maximum that may be charged, because the actual cost varies; `unknown` means pricing could
@@ -2616,6 +2747,10 @@ export interface components {
2616
2747
  * @description The unique identifier of the action node.
2617
2748
  */
2618
2749
  actionId: string;
2750
+ /** @description Where the user continues after a flow router action: a path on the hosted flow app, with
2751
+ * the query parameters that open the verification request created in the target flow. Only
2752
+ * returned to the user's own session. */
2753
+ redirectUrl?: string | null;
2619
2754
  };
2620
2755
  /** @description Whether one node of the ownership graph can be expanded, and at what estimated cost, as shown
2621
2756
  * in the expansion preview. `countryCode` and pricing are always those of this node's own
@@ -2739,9 +2874,10 @@ export interface components {
2739
2874
  expansions: components["schemas"]["ExpansionDecision"][];
2740
2875
  /**
2741
2876
  * Format: uuid
2742
- * @description The KYB's anchor verification request — the websocket room for `discovery-update`.
2877
+ * @description The KYB's anchor verification request — the websocket room for `discovery-update`. Omitted for a case nobody
2878
+ * has been anchored to yet, which has no room to push to.
2743
2879
  */
2744
- verificationRequestId: string;
2880
+ verificationRequestId?: string | null;
2745
2881
  };
2746
2882
  /** @enum {string} */
2747
2883
  ExtractionPromptScope: "PLATFORM" | "ORGANIZATION";
@@ -2835,11 +2971,17 @@ export interface components {
2835
2971
  /** @enum {string} */
2836
2972
  FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains" | "gte" | "lte";
2837
2973
  Flow: {
2974
+ /** @description Whether the verification failure screen offers the AI support chatbot. */
2975
+ aiChatbotEnabled: boolean;
2838
2976
  /** Format: date-time */
2839
2977
  createdAt?: string | null;
2840
2978
  failureUrl?: string | null;
2841
2979
  /** Format: uuid */
2842
2980
  id: string;
2981
+ /** @description The flow backs a flow template: it is edited in the builder but never published, started or
2982
+ * listed, only copied. The dashboard shows it as a template and hides what only applies to a
2983
+ * live flow. */
2984
+ isTemplate: boolean;
2843
2985
  jdm: components["schemas"]["WorkflowGraph"];
2844
2986
  name: string;
2845
2987
  slug: string;
@@ -2853,6 +2995,16 @@ export interface components {
2853
2995
  /** Format: date-time */
2854
2996
  updatedAt?: string | null;
2855
2997
  };
2998
+ /** @description A flow's AML screening of the people it verifies (ENG-1542). Each person's first screening in a
2999
+ * flow result is charged at the organization's AML rate; ongoing monitoring re-screens them
3000
+ * periodically, billed per subject per year where the organization prices it. A company's KYB
3001
+ * keeps its case screening, which this does not govern. */
3002
+ FlowAmlScreening: {
3003
+ /** @description Whether the people the flow verifies are screened. */
3004
+ enabled: boolean;
3005
+ /** @description Whether they stay under ongoing monitoring. */
3006
+ ongoingMonitoring?: boolean;
3007
+ };
2856
3008
  FlowResult: {
2857
3009
  amlResults: components["schemas"]["AmlResult"][];
2858
3010
  /** @description Custom risk tags conditionally assigned by the flow builder's AssignRiskTags action. */
@@ -2891,6 +3043,23 @@ export interface components {
2891
3043
  updatedAt?: string | null;
2892
3044
  walletResults: components["schemas"]["WalletResult"][];
2893
3045
  };
3046
+ /** @description Where a user's verification stands, without any of the data collected from them. */
3047
+ FlowResultStatusSummary: {
3048
+ /** Format: date-time */
3049
+ createdAt: string;
3050
+ customData: Record<string, unknown>;
3051
+ email?: string | null;
3052
+ /** Format: uuid */
3053
+ flowId?: string | null;
3054
+ /** Format: uuid */
3055
+ flowResultId: string;
3056
+ flowSlug: string;
3057
+ /** @description `true` when the user passed the verification, that is when `status` is `COMPLETED`. */
3058
+ passed: boolean;
3059
+ status: components["schemas"]["VerificationRequestStatus"];
3060
+ /** Format: date-time */
3061
+ updatedAt: string;
3062
+ };
2894
3063
  FlowStep: {
2895
3064
  config: components["schemas"]["DvConfig"];
2896
3065
  /** Format: date-time */
@@ -3607,7 +3776,13 @@ export interface components {
3607
3776
  zid: string;
3608
3777
  };
3609
3778
  IdentitySettings: {
3779
+ /** @description The person's first name, as typed at registration. Only an account registered through
3780
+ * `/auth/register` (organization staff) has one: never set for a GUEST, the person being
3781
+ * verified. */
3782
+ firstName?: string | null;
3610
3783
  lastEnvironmentIsSandbox?: boolean;
3784
+ /** @description The person's last name, as typed at registration. Same scope as the first name. */
3785
+ lastName?: string | null;
3611
3786
  locale: components["schemas"]["Locale"];
3612
3787
  /** @description `true` when this identity is demo/synthetic data (for example generated sample data in a
3613
3788
  * sandbox) rather than a real end user. Never set for a real verified identity. */
@@ -3668,6 +3843,7 @@ export interface components {
3668
3843
  startedAt: string;
3669
3844
  };
3670
3845
  InputField: {
3846
+ binding?: null | components["schemas"]["BusinessInfoField"];
3671
3847
  label: {
3672
3848
  [key: string]: string;
3673
3849
  };
@@ -3680,6 +3856,7 @@ export interface components {
3680
3856
  value?: unknown;
3681
3857
  visibleWhen?: null | components["schemas"]["Condition"];
3682
3858
  } | {
3859
+ binding?: null | components["schemas"]["BusinessInfoField"];
3683
3860
  label: {
3684
3861
  [key: string]: string;
3685
3862
  };
@@ -3696,6 +3873,7 @@ export interface components {
3696
3873
  value?: unknown;
3697
3874
  visibleWhen?: null | components["schemas"]["Condition"];
3698
3875
  } | {
3876
+ binding?: null | components["schemas"]["BusinessInfoField"];
3699
3877
  label: {
3700
3878
  [key: string]: string;
3701
3879
  };
@@ -3710,6 +3888,7 @@ export interface components {
3710
3888
  value?: unknown;
3711
3889
  visibleWhen?: null | components["schemas"]["Condition"];
3712
3890
  } | {
3891
+ binding?: null | components["schemas"]["BusinessInfoField"];
3713
3892
  label: {
3714
3893
  [key: string]: string;
3715
3894
  };
@@ -3724,6 +3903,7 @@ export interface components {
3724
3903
  value?: unknown;
3725
3904
  visibleWhen?: null | components["schemas"]["Condition"];
3726
3905
  } | {
3906
+ binding?: null | components["schemas"]["BusinessInfoField"];
3727
3907
  label: {
3728
3908
  [key: string]: string;
3729
3909
  };
@@ -3736,6 +3916,7 @@ export interface components {
3736
3916
  value?: unknown;
3737
3917
  visibleWhen?: null | components["schemas"]["Condition"];
3738
3918
  } | {
3919
+ binding?: null | components["schemas"]["BusinessInfoField"];
3739
3920
  label: {
3740
3921
  [key: string]: string;
3741
3922
  };
@@ -3748,6 +3929,7 @@ export interface components {
3748
3929
  value?: unknown;
3749
3930
  visibleWhen?: null | components["schemas"]["Condition"];
3750
3931
  } | {
3932
+ binding?: null | components["schemas"]["BusinessInfoField"];
3751
3933
  label: {
3752
3934
  [key: string]: string;
3753
3935
  };
@@ -3766,6 +3948,7 @@ export interface components {
3766
3948
  value?: unknown;
3767
3949
  visibleWhen?: null | components["schemas"]["Condition"];
3768
3950
  } | {
3951
+ binding?: null | components["schemas"]["BusinessInfoField"];
3769
3952
  label: {
3770
3953
  [key: string]: string;
3771
3954
  };
@@ -3832,6 +4015,12 @@ export interface components {
3832
4015
  * @enum {string}
3833
4016
  */
3834
4017
  KybCaseDueDiligenceLevel: "SIMPLIFIED" | "STANDARD" | "ENHANCED";
4018
+ /**
4019
+ * @description A flag a KYB case carries on the Home page and in the Inbox: something about the file a reviewer should see
4020
+ * before anything else.
4021
+ * @enum {string}
4022
+ */
4023
+ KybCaseFlag: "SANCTIONS_HIT" | "PEP" | "ADVERSE_MEDIA" | "REGISTER_MISMATCH" | "MISSING_DOCUMENTS" | "OWNER_KYC_PENDING";
3835
4024
  /** @description A KYB case's officers: the ultimate beneficial owners and the directors the case screens and
3836
4025
  * invites into KYC. What the case's officer routes answer — the roster as it stands after the act. */
3837
4026
  KybCaseOfficersResponse: {
@@ -3861,6 +4050,12 @@ export interface components {
3861
4050
  * @enum {string}
3862
4051
  */
3863
4052
  KybCasePlannerMode: "DISABLED" | "SUGGEST" | "AUTO_PILOT";
4053
+ /**
4054
+ * Format: binary
4055
+ * @description The case's KYB report: the PDF file itself, sent as the response body. Described as binary so
4056
+ * generated clients read it as a file rather than as JSON.
4057
+ */
4058
+ KybCaseReportPdf: Blob;
3864
4059
  /**
3865
4060
  * @description The lifecycle status of a KYB case. `APPROVED`, `REJECTED` and `CANCELLED` close the case; a
3866
4061
  * closed case can later be reopened (for example when the applicant resubmits or a periodic
@@ -3868,6 +4063,15 @@ export interface components {
3868
4063
  * @enum {string}
3869
4064
  */
3870
4065
  KybCaseStatus: "OPEN" | "PROCESSING" | "WAITING_INPUT" | "ACTION_REQUIRED" | "READY_FOR_REVIEW" | "APPROVED" | "REJECTED" | "CANCELLED";
4066
+ /**
4067
+ * @description What kind of review a case is: the first look at a company, or a later one.
4068
+ *
4069
+ * Derived at read time, like the rest of this module, from whether the case re-verifies an
4070
+ * earlier one and from its transitions. There is no `EVENT_DRIVEN` yet: nothing opens a case on
4071
+ * an event.
4072
+ * @enum {string}
4073
+ */
4074
+ KybCaseType: "ONBOARDING" | "PERIODIC_REVIEW";
3871
4075
  KybCommunication: {
3872
4076
  body: string;
3873
4077
  /** Format: uuid */
@@ -3935,6 +4139,14 @@ export interface components {
3935
4139
  * @example true
3936
4140
  */
3937
4141
  autoSendUboKycEmail: boolean;
4142
+ businessInfoForm?: null | components["schemas"]["Form"];
4143
+ /**
4144
+ * Format: uuid
4145
+ * @description The form the company answers about itself, from the organization's form library. Its
4146
+ * fields bound to a business-information key are the company's business information; the
4147
+ * others are the organization's own questions. Omitted: the platform's standard form.
4148
+ */
4149
+ businessInfoFormId?: string | null;
3938
4150
  /**
3939
4151
  * @default false
3940
4152
  * @example false
@@ -4075,9 +4287,9 @@ export interface components {
4075
4287
  KybDirectorsConfig: {
4076
4288
  /**
4077
4289
  * Format: uuid
4078
- * @description The anchor KYB step this directors satellite belongs to.
4290
+ * @description The anchor KYB step this directors satellite belongs to. See `KybDocumentsConfig::kyb_step_id`.
4079
4291
  */
4080
- kybStepId: string;
4292
+ kybStepId?: string;
4081
4293
  /**
4082
4294
  * Format: uuid
4083
4295
  * @description The KYC flow directors are invited into to verify their identity. Only used when
@@ -4206,8 +4418,9 @@ export interface components {
4206
4418
  * regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced
4207
4419
  * nothing usable.
4208
4420
  * - `DirectorDeclaration` — same as `UboDeclaration`, for the `KYB_DIRECTORS` satellite.
4209
- * - `OwnershipConfirmation` — opened by a reopening (a quality review's disagreement or the
4210
- * periodic review), never by hand: the company is asked to confirm, through the existing request
4421
+ * - `OwnershipConfirmation` — opened by the platform, never by hand: by a reopening (a quality
4422
+ * review's disagreement or the periodic review), or by owners the company register reports that
4423
+ * the declaration left out. The company is asked to confirm, through the existing request
4211
4424
  * link, that the owners and officers on file are still the ones there are. The answer lands as
4212
4425
  * the applicant's own assertions; while it is open the case waits on the applicant, and
4213
4426
  * deciding without it takes an exception like any other open request.
@@ -4246,9 +4459,10 @@ export interface components {
4246
4459
  } | null;
4247
4460
  /**
4248
4461
  * Format: uuid
4249
- * @description The anchor KYB step this documents satellite belongs to.
4462
+ * @description The anchor KYB step this documents satellite belongs to. May be omitted where the anchor
4463
+ * doesn't exist yet (a flow setup draft); a step can't be saved without one.
4250
4464
  */
4251
- kybStepId: string;
4465
+ kybStepId?: string;
4252
4466
  /** @example { "default": "Next step" } */
4253
4467
  labels?: {
4254
4468
  [key: string]: string;
@@ -4269,9 +4483,26 @@ export interface components {
4269
4483
  /** Format: int32 */
4270
4484
  uploadedCount: number;
4271
4485
  };
4486
+ /** @description The answer the case holds to one of the organization's own business-details questions. */
4487
+ KybFormAnswer: {
4488
+ /** @description The question as the form asks it: its labels, type and choices. Its own value is left
4489
+ * out: the answer is `value`. */
4490
+ field: components["schemas"]["InputField"];
4491
+ /** @description The key the cross-check, the clarifications and the edits name it by: `form.<name>`. */
4492
+ key: string;
4493
+ /** @description The answer as text, as the cross-check compares it: a select's choice by its label, a date
4494
+ * by its day. */
4495
+ text?: string | null;
4496
+ /** @description The answer as the case holds it now, an analyst's correction included; `None` unanswered. */
4497
+ value?: unknown;
4498
+ };
4272
4499
  /** @description The KYB result metadata bag. Empty by default. */
4273
4500
  KybMetadata: {
4274
4501
  dueDiligenceLevel?: null | components["schemas"]["DueDiligenceLevel"];
4502
+ /** @description Whether this is the example case an organization is created with rather than a business
4503
+ * somebody submitted: fictional company, sample documents, no register queried and nothing
4504
+ * billed. Absent on every other result. */
4505
+ example?: boolean;
4275
4506
  ownershipStructure?: null | components["schemas"]["OwnershipStructure"];
4276
4507
  registryStatus?: null | components["schemas"]["CompanyStatus"];
4277
4508
  screeningStrategy?: null | components["schemas"]["ScreeningStrategy"];
@@ -4302,6 +4533,10 @@ export interface components {
4302
4533
  assignedAt?: string | null;
4303
4534
  /** Format: uuid */
4304
4535
  assignedToIdentityId?: string | null;
4536
+ /** @description The business information the case must have: the keys its KYB step's business-details form
4537
+ * required. `None` when not recorded, or not loaded: every field. Set by callers that read
4538
+ * the case, like `document_checks`. */
4539
+ businessInfoRequiredFields?: components["schemas"]["BusinessInfoField"][] | null;
4305
4540
  businessInformation?: null | components["schemas"]["BusinessInformation"];
4306
4541
  businessInformationVerification?: {
4307
4542
  [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
@@ -4324,13 +4559,18 @@ export interface components {
4324
4559
  flowStep?: null | components["schemas"]["FlowStep"];
4325
4560
  /** Format: uuid */
4326
4561
  flowStepId?: string | null;
4562
+ /** @description The answers to the organization's own business-details questions, in the order its form
4563
+ * asks them: fields of the case like the business information, compared and clarified under
4564
+ * their key (`form.<name>`). `None` when not loaded; set by callers that read the case, like
4565
+ * `document_checks`. */
4566
+ formAnswers?: components["schemas"]["KybFormAnswer"][] | null;
4327
4567
  /** Format: date-time */
4328
4568
  fundedAt?: string | null;
4329
4569
  /** Format: uuid */
4330
4570
  id: string;
4331
4571
  /** @description Admin-curated metadata. Organizations read it; only admins write it.
4332
4572
  * Empty (`{}`) when nothing has been recorded. */
4333
- metadata?: Record<string, never>;
4573
+ metadata?: Record<string, unknown>;
4334
4574
  nextAction?: null | components["schemas"]["NextAction"];
4335
4575
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
4336
4576
  reason?: string | null;
@@ -4389,9 +4629,9 @@ export interface components {
4389
4629
  autoSendUboKycEmail: boolean;
4390
4630
  /**
4391
4631
  * Format: uuid
4392
- * @description The anchor KYB step this UBOs satellite belongs to.
4632
+ * @description The anchor KYB step this UBOs satellite belongs to. See `KybDocumentsConfig::kyb_step_id`.
4393
4633
  */
4394
- kybStepId: string;
4634
+ kybStepId?: string;
4395
4635
  /**
4396
4636
  * Format: uuid
4397
4637
  * @description The KYC flow UBOs are invited into to verify their identity. Only used when `requireKyc`
@@ -4439,6 +4679,12 @@ export interface components {
4439
4679
  /** Format: int32 */
4440
4680
  uboCount: number;
4441
4681
  };
4682
+ /**
4683
+ * Format: binary
4684
+ * @description A document verification result's KYC report: the PDF file itself, sent as the response body.
4685
+ * Described as binary so generated clients read it as a file rather than as JSON.
4686
+ */
4687
+ KycReportPdf: Blob;
4442
4688
  ListOrganizationFlowResultsResponse: {
4443
4689
  page: components["schemas"]["FlowResult"][];
4444
4690
  /** Format: int64 */
@@ -4862,6 +5108,20 @@ export interface components {
4862
5108
  * provider and will be completed later; `false` when the prefill is already complete. */
4863
5109
  pending: boolean;
4864
5110
  };
5111
+ /**
5112
+ * @description What kind of principal took an act. Stored as TEXT, mirrored by the `actorKind` CHECK
5113
+ * constraints.
5114
+ *
5115
+ * Recorded, never enforced: Casbin remains the whole authorisation boundary, and an organization
5116
+ * that does not want its bot deciding restricts it by role and by the flow's agentic mode. What
5117
+ * this buys is that a sealed decision can say a bot took it, and whose bot — which no row could
5118
+ * say before, because a decision named one identity id and nothing else.
5119
+ *
5120
+ * `Person` is the default because it is the only kind an unmarked historical row can be: every
5121
+ * writer that is not a person learned to say so in the same change that added the column.
5122
+ * @enum {string}
5123
+ */
5124
+ PrincipalKind: "PERSON" | "BOT" | "API_KEY" | "SYSTEM";
4865
5125
  /** @description Typed representation of process_additional_data stored in DV results.
4866
5126
  *
4867
5127
  * This struct captures all the additional data associated with document
@@ -5024,9 +5284,10 @@ export interface components {
5024
5284
  quotedCreditsTotal: number;
5025
5285
  /**
5026
5286
  * Format: uuid
5027
- * @description The KYB's anchor verification request — the websocket room for `discovery-update`.
5287
+ * @description The KYB's anchor verification request — the websocket room for `discovery-update`. Omitted for a case nobody
5288
+ * has been anchored to yet, which has no room to push to.
5028
5289
  */
5029
- verificationRequestId: string;
5290
+ verificationRequestId?: string | null;
5030
5291
  };
5031
5292
  /** @description One purchased document, as reported by `GET .../kyb-cases/{case_id}/documents`. */
5032
5293
  PurchasedDocument: {
@@ -5134,7 +5395,7 @@ export interface components {
5134
5395
  subject?: string | null;
5135
5396
  };
5136
5397
  /** @enum {string} */
5137
- RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber" | "expirationDate";
5398
+ RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber" | "expirationDate" | "documentNumber";
5138
5399
  ResultControlOperation: {
5139
5400
  /** Format: uuid */
5140
5401
  identityId: string;
@@ -5345,6 +5606,36 @@ export interface components {
5345
5606
  /** @description Last characters of the supplied secret, so the caller can confirm which one is in force. */
5346
5607
  secretHint: string;
5347
5608
  };
5609
+ /** @description What to look flow results up by. At least one of `email` and `customData` is required; when
5610
+ * several criteria are given, a flow result has to match all of them. */
5611
+ SearchFlowResultsRequest: {
5612
+ /** @description Custom data the flow result has to carry: every key given here has to be present with
5613
+ * the same value. Keys you leave out are not compared. */
5614
+ customData?: Record<string, unknown> | null;
5615
+ /**
5616
+ * @description Email address of the user, as given when the verification request was created. Matched
5617
+ * exactly, ignoring letter case.
5618
+ * @example jane.doe@example.com
5619
+ */
5620
+ email?: string | null;
5621
+ /**
5622
+ * @description Limits the search to one flow. Without it, every flow of the organization is searched.
5623
+ * @example kyc-flow
5624
+ */
5625
+ flowSlug?: string | null;
5626
+ /** Format: int32 */
5627
+ skip?: number;
5628
+ /**
5629
+ * Format: int32
5630
+ * @example 20
5631
+ */
5632
+ take?: number;
5633
+ };
5634
+ SearchFlowResultsResponse: {
5635
+ page: components["schemas"]["FlowResultStatusSummary"][];
5636
+ /** Format: int64 */
5637
+ totalCount: number;
5638
+ };
5348
5639
  /**
5349
5640
  * @description Canonical security/authenticity check types.
5350
5641
  * @enum {string}
@@ -5365,6 +5656,7 @@ export interface components {
5365
5656
  */
5366
5657
  ServiceCredentialEnvironment: "LIVE" | "TEST";
5367
5658
  Settings: {
5659
+ amlScreening?: null | components["schemas"]["FlowAmlScreening"];
5368
5660
  /** @description When true (default), prompt users to create a passkey during the verification flow.
5369
5661
  * When false, skip the passkey creation step.
5370
5662
  * Optional so that patch requests only write this field when explicitly provided. */
@@ -5378,6 +5670,11 @@ export interface components {
5378
5670
  * When false, skip vault unlock if an active KYC grant already exists for the organization.
5379
5671
  * Optional so that patch requests only write this field when explicitly provided. */
5380
5672
  oneClickAlwaysRequestUnlockVault?: boolean | null;
5673
+ /** @description When true, a returning holder is not asked which vault document to reuse: a document
5674
+ * they already shared with this organization is reused directly. Documents only ever
5675
+ * shared with other organizations still need the holder to pick them. Defaults to false.
5676
+ * Optional so that patch requests only write this field when explicitly provided. */
5677
+ oneClickSkipDocumentSelection?: boolean | null;
5381
5678
  published?: boolean;
5382
5679
  skipSignedAccess?: boolean;
5383
5680
  slackNotifications?: string[] | null;
@@ -5441,7 +5738,7 @@ export interface components {
5441
5738
  SpidStepOutput: {
5442
5739
  status: components["schemas"]["ResultStatus"];
5443
5740
  };
5444
- StartGeolocationVerificationRequest: Record<string, never>;
5741
+ StartGeolocationVerificationRequest: Record<string, unknown>;
5445
5742
  StartGeolocationVerificationResponse: {
5446
5743
  nonce: string;
5447
5744
  /** Format: uuid */
@@ -5663,11 +5960,11 @@ export interface components {
5663
5960
  * responses or webhooks. */
5664
5961
  TmAgentReviewEvidence: {
5665
5962
  /** @description The re-read case at actuation time, present only when it differed from the analytic one. */
5666
- actuationCaseFile?: Record<string, never> | null;
5667
- caseFile: Record<string, never>;
5668
- findings: Record<string, never>;
5669
- mitigations: Record<string, never>;
5670
- verdict: Record<string, never>;
5963
+ actuationCaseFile?: Record<string, unknown> | null;
5964
+ caseFile: Record<string, unknown>;
5965
+ findings: Record<string, unknown>;
5966
+ mitigations: Record<string, unknown>;
5967
+ verdict: Record<string, unknown>;
5671
5968
  };
5672
5969
  /** @description The API-facing projection of a stored `agentReview`.
5673
5970
  *
@@ -5683,12 +5980,12 @@ export interface components {
5683
5980
  evidence?: null | components["schemas"]["TmAgentReviewEvidence"];
5684
5981
  /** @description The deterministic guard outcome that produced the enacted decision; `null` when the guard
5685
5982
  * never ran (the model did not recommend approval). */
5686
- guard?: Record<string, never> | null;
5983
+ guard?: Record<string, unknown> | null;
5687
5984
  /** Format: uuid */
5688
5985
  id: string;
5689
5986
  mode: components["schemas"]["KybAgenticMode"];
5690
5987
  model: string;
5691
- promptVersions: Record<string, never>;
5988
+ promptVersions: Record<string, unknown>;
5692
5989
  rationale: string;
5693
5990
  recommendedStatus: components["schemas"]["TmAlertStatus"];
5694
5991
  /** Format: date-time */
@@ -5884,50 +6181,6 @@ export interface components {
5884
6181
  TmUpdateTransactionStatusRequest: {
5885
6182
  status: components["schemas"]["TmTransactionStatus"];
5886
6183
  };
5887
- /** @description A top-up pack: a one-time purchase that adds credits to the organization's balance and
5888
- * can optionally unlock products. */
5889
- TopupPack: {
5890
- /**
5891
- * Format: int64
5892
- * @description Price amount in the smallest currency unit (e.g. cents)
5893
- */
5894
- amountCents: number;
5895
- /**
5896
- * Format: int64
5897
- * @description Number of credits granted by this pack, from metadata `credits`
5898
- */
5899
- credits: number;
5900
- currency: components["schemas"]["Currency"];
5901
- /** @description Products this pack enables in the production environment when it is purchased. Empty
5902
- * when the pack grants credits only. */
5903
- enabledProducts?: components["schemas"]["ProductType"][];
5904
- /** @description `true` when the price carries `zyphe_visibility=private` metadata: a bespoke pack that
5905
- * must never appear in the public catalog and is usable only by the organization named in
5906
- * `organization_id`. Defaults to `false` so an untagged price stays public, and so cached
5907
- * catalog entries serialized before this field existed still deserialize. */
5908
- isPrivate?: boolean;
5909
- /** @description Display name: nickname > product name > price ID */
5910
- name: string;
5911
- /** @description The organization a private pack belongs to, from price metadata `organization_id`.
5912
- * Meaningless (and normally absent) on a public pack. A private pack WITHOUT this is
5913
- * usable by nobody — failing closed beats leaking a bespoke price to every customer. */
5914
- organizationId?: string | null;
5915
- /** @description The pack's price ID. Pass it as `priceId` when creating a top-up checkout session. */
5916
- priceId: string;
5917
- /** @description Products this pack enables in the sandbox environment when it is purchased. Separate
5918
- * from `enabledProducts` because an organization may be allowed to try a product in
5919
- * sandbox without being able to use it in production. Empty when none. */
5920
- sandboxEnabledProducts?: components["schemas"]["ProductType"][];
5921
- /**
5922
- * Format: int32
5923
- * @description Optional validity window (in months) for the granted credits, from metadata `validity_months`
5924
- */
5925
- validityMonths?: number | null;
5926
- };
5927
- /** @description Response for the top-up pack catalog endpoint (`GET .../billing/topup-packs`). */
5928
- TopupPacksResponse: {
5929
- packs: components["schemas"]["TopupPack"][];
5930
- };
5931
6184
  /** @description Summary of the automatic ownership discovery: the relevance threshold it uses, its credit
5932
6185
  * budget, what it has spent so far and, once finished, how it ended. Returned to your
5933
6186
  * organization only, never to the applicant. */
@@ -6027,7 +6280,7 @@ export interface components {
6027
6280
  totalOwnershipPercentage?: number | null;
6028
6281
  };
6029
6282
  /** @enum {string} */
6030
- 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";
6283
+ 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";
6031
6284
  VaultUnlockPasskeyData: {
6032
6285
  /** @description Passkey challenge for vault unlock (base64url) */
6033
6286
  challenge: string;
@@ -6036,7 +6289,7 @@ export interface components {
6036
6289
  /** @description Full WebAuthn `PublicKeyCredentialRequestOptions` for vault unlock.
6037
6290
  * Frontends should pass `options.publicKey` directly to
6038
6291
  * `navigator.credentials.get({ publicKey })`. */
6039
- options: Record<string, never>;
6292
+ options: Record<string, unknown>;
6040
6293
  /** @description PRF salt for vault unlock (base64url) */
6041
6294
  prfSalt: string;
6042
6295
  };
@@ -6890,6 +7143,59 @@ export interface operations {
6890
7143
  };
6891
7144
  };
6892
7145
  };
7146
+ searchFlowResults: {
7147
+ parameters: {
7148
+ query: {
7149
+ sandbox: boolean;
7150
+ locale?: components["schemas"]["Locale"];
7151
+ };
7152
+ header?: never;
7153
+ path: {
7154
+ /** @description Organization ID */
7155
+ organization_id: string;
7156
+ };
7157
+ cookie?: never;
7158
+ };
7159
+ requestBody: {
7160
+ content: {
7161
+ "application/json": components["schemas"]["SearchFlowResultsRequest"];
7162
+ };
7163
+ };
7164
+ responses: {
7165
+ 200: {
7166
+ headers: {
7167
+ [name: string]: unknown;
7168
+ };
7169
+ content: {
7170
+ "application/json": components["schemas"]["SearchFlowResultsResponse"];
7171
+ };
7172
+ };
7173
+ 400: {
7174
+ headers: {
7175
+ [name: string]: unknown;
7176
+ };
7177
+ content: {
7178
+ "application/json": components["schemas"]["BaxeError"];
7179
+ };
7180
+ };
7181
+ 401: {
7182
+ headers: {
7183
+ [name: string]: unknown;
7184
+ };
7185
+ content: {
7186
+ "application/json": components["schemas"]["BaxeError"];
7187
+ };
7188
+ };
7189
+ 500: {
7190
+ headers: {
7191
+ [name: string]: unknown;
7192
+ };
7193
+ content: {
7194
+ "application/json": components["schemas"]["BaxeError"];
7195
+ };
7196
+ };
7197
+ };
7198
+ };
6893
7199
  sendUboKycReminder: {
6894
7200
  parameters: {
6895
7201
  query: {
@@ -7884,6 +8190,76 @@ export interface operations {
7884
8190
  };
7885
8191
  };
7886
8192
  };
8193
+ getKybCaseReport: {
8194
+ parameters: {
8195
+ query: {
8196
+ sandbox: boolean;
8197
+ locale?: components["schemas"]["Locale"];
8198
+ };
8199
+ header?: {
8200
+ /** @description The `ETag` of a report already held */
8201
+ "If-None-Match"?: string | null;
8202
+ };
8203
+ path: {
8204
+ /** @description Organization ID */
8205
+ organization_id: string;
8206
+ /** @description The ID of the KYB case */
8207
+ case_id: string;
8208
+ };
8209
+ cookie?: never;
8210
+ };
8211
+ requestBody?: never;
8212
+ responses: {
8213
+ /** @description The report PDF */
8214
+ 200: {
8215
+ headers: {
8216
+ [name: string]: unknown;
8217
+ };
8218
+ content: {
8219
+ "application/pdf": components["schemas"]["KybCaseReportPdf"];
8220
+ };
8221
+ };
8222
+ /** @description The report named by `If-None-Match` is current */
8223
+ 304: {
8224
+ headers: {
8225
+ [name: string]: unknown;
8226
+ };
8227
+ content?: never;
8228
+ };
8229
+ 401: {
8230
+ headers: {
8231
+ [name: string]: unknown;
8232
+ };
8233
+ content: {
8234
+ "application/json": components["schemas"]["BaxeError"];
8235
+ };
8236
+ };
8237
+ 403: {
8238
+ headers: {
8239
+ [name: string]: unknown;
8240
+ };
8241
+ content: {
8242
+ "application/json": components["schemas"]["BaxeError"];
8243
+ };
8244
+ };
8245
+ 404: {
8246
+ headers: {
8247
+ [name: string]: unknown;
8248
+ };
8249
+ content: {
8250
+ "application/json": components["schemas"]["BaxeError"];
8251
+ };
8252
+ };
8253
+ 500: {
8254
+ headers: {
8255
+ [name: string]: unknown;
8256
+ };
8257
+ content: {
8258
+ "application/json": components["schemas"]["BaxeError"];
8259
+ };
8260
+ };
8261
+ };
8262
+ };
7887
8263
  decideKybCase: {
7888
8264
  parameters: {
7889
8265
  query: {
@@ -8110,6 +8486,74 @@ export interface operations {
8110
8486
  };
8111
8487
  };
8112
8488
  };
8489
+ getDocumentVerificationResultReport: {
8490
+ parameters: {
8491
+ query: {
8492
+ sandbox: boolean;
8493
+ locale?: components["schemas"]["Locale"];
8494
+ };
8495
+ header?: never;
8496
+ path: {
8497
+ /**
8498
+ * @description The ID of the organization
8499
+ * @example 123e4567-e89b-12d3-a456-426614174000
8500
+ */
8501
+ organization_id: string;
8502
+ /**
8503
+ * @description The ID of the flow result
8504
+ * @example 123e4567-e89b-12d3-a456-426614174000
8505
+ */
8506
+ flow_result_id: string;
8507
+ /**
8508
+ * @description The slug of the flow
8509
+ * @example flow-slug
8510
+ */
8511
+ flow_slug: string;
8512
+ /**
8513
+ * @description The ID of the DV result
8514
+ * @example 123e4567-e89b-12d3-a456-426614174000
8515
+ */
8516
+ dv_result_id: string;
8517
+ };
8518
+ cookie?: never;
8519
+ };
8520
+ requestBody?: never;
8521
+ responses: {
8522
+ /** @description The report PDF */
8523
+ 200: {
8524
+ headers: {
8525
+ [name: string]: unknown;
8526
+ };
8527
+ content: {
8528
+ "application/pdf": components["schemas"]["KycReportPdf"];
8529
+ };
8530
+ };
8531
+ 403: {
8532
+ headers: {
8533
+ [name: string]: unknown;
8534
+ };
8535
+ content: {
8536
+ "application/json": components["schemas"]["BaxeError"];
8537
+ };
8538
+ };
8539
+ 404: {
8540
+ headers: {
8541
+ [name: string]: unknown;
8542
+ };
8543
+ content: {
8544
+ "application/json": components["schemas"]["BaxeError"];
8545
+ };
8546
+ };
8547
+ 500: {
8548
+ headers: {
8549
+ [name: string]: unknown;
8550
+ };
8551
+ content: {
8552
+ "application/json": components["schemas"]["BaxeError"];
8553
+ };
8554
+ };
8555
+ };
8556
+ };
8113
8557
  getProofOfAddressResultDetails: {
8114
8558
  parameters: {
8115
8559
  query: {
@@ -8636,118 +9080,6 @@ export interface operations {
8636
9080
  };
8637
9081
  };
8638
9082
  };
8639
- get_topup_packs: {
8640
- parameters: {
8641
- query?: never;
8642
- header?: never;
8643
- path: {
8644
- /** @description Organization ID */
8645
- organization_id: string;
8646
- };
8647
- cookie?: never;
8648
- };
8649
- requestBody?: never;
8650
- responses: {
8651
- 200: {
8652
- headers: {
8653
- [name: string]: unknown;
8654
- };
8655
- content: {
8656
- "application/json": components["schemas"]["TopupPacksResponse"];
8657
- };
8658
- };
8659
- 401: {
8660
- headers: {
8661
- [name: string]: unknown;
8662
- };
8663
- content: {
8664
- "application/json": components["schemas"]["BaxeError"];
8665
- };
8666
- };
8667
- 403: {
8668
- headers: {
8669
- [name: string]: unknown;
8670
- };
8671
- content: {
8672
- "application/json": components["schemas"]["BaxeError"];
8673
- };
8674
- };
8675
- 500: {
8676
- headers: {
8677
- [name: string]: unknown;
8678
- };
8679
- content: {
8680
- "application/json": components["schemas"]["BaxeError"];
8681
- };
8682
- };
8683
- };
8684
- };
8685
- create_topup_checkout: {
8686
- parameters: {
8687
- query?: never;
8688
- header?: never;
8689
- path: {
8690
- /** @description Organization ID */
8691
- organization_id: string;
8692
- };
8693
- cookie?: never;
8694
- };
8695
- requestBody: {
8696
- content: {
8697
- "application/json": components["schemas"]["CreateTopupCheckoutRequest"];
8698
- };
8699
- };
8700
- responses: {
8701
- 200: {
8702
- headers: {
8703
- [name: string]: unknown;
8704
- };
8705
- content: {
8706
- "application/json": components["schemas"]["CheckoutSessionResponse"];
8707
- };
8708
- };
8709
- 400: {
8710
- headers: {
8711
- [name: string]: unknown;
8712
- };
8713
- content: {
8714
- "application/json": components["schemas"]["BaxeError"];
8715
- };
8716
- };
8717
- 401: {
8718
- headers: {
8719
- [name: string]: unknown;
8720
- };
8721
- content: {
8722
- "application/json": components["schemas"]["BaxeError"];
8723
- };
8724
- };
8725
- 403: {
8726
- headers: {
8727
- [name: string]: unknown;
8728
- };
8729
- content: {
8730
- "application/json": components["schemas"]["BaxeError"];
8731
- };
8732
- };
8733
- 404: {
8734
- headers: {
8735
- [name: string]: unknown;
8736
- };
8737
- content: {
8738
- "application/json": components["schemas"]["BaxeError"];
8739
- };
8740
- };
8741
- 500: {
8742
- headers: {
8743
- [name: string]: unknown;
8744
- };
8745
- content: {
8746
- "application/json": components["schemas"]["BaxeError"];
8747
- };
8748
- };
8749
- };
8750
- };
8751
9083
  sdkIngestTransaction: {
8752
9084
  parameters: {
8753
9085
  query: {