@zyphe-sdk/core 0.7.0 → 0.8.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
@@ -521,6 +521,29 @@ export interface paths {
521
521
  patch?: never;
522
522
  trace?: never;
523
523
  };
524
+ "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/report": {
525
+ parameters: {
526
+ query?: never;
527
+ header?: never;
528
+ path?: never;
529
+ cookie?: never;
530
+ };
531
+ /**
532
+ * Download a KYB case's report
533
+ * @description The case's KYB report as a PDF: company, activity, directors, ownership and beneficial owners,
534
+ * screening, adverse media, documents and sources, as the case stands at the time of the request.
535
+ * The report is identified by a hash of its content, returned as `ETag`: send it back as
536
+ * `If-None-Match` to get `304` when nothing in the report has changed.
537
+ */
538
+ get: operations["getKybCaseReport"];
539
+ put?: never;
540
+ post?: never;
541
+ delete?: never;
542
+ options?: never;
543
+ head?: never;
544
+ patch?: never;
545
+ trace?: never;
546
+ };
524
547
  "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/decision": {
525
548
  parameters: {
526
549
  query?: never;
@@ -1400,7 +1423,7 @@ export interface components {
1400
1423
  * @description The action recorded by an audit log entry (e.g. `FLOW_CREATED`).
1401
1424
  * @enum {string}
1402
1425
  */
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";
1426
+ AuditAction: "VIEWED" | "CREATED" | "UPDATED" | "DELETED" | "AUTH_LOGIN" | "AUTH_LOGIN_FAILED" | "AUTH_LOGOUT" | "AUTH_PASSWORD_CHANGED" | "AUTH_PASSKEY_REGISTERED" | "AUTH_MAGIC_LINK_REQUESTED" | "AUTH_PASSWORD_RESET_REQUESTED" | "AUTH_EMAIL_VERIFIED" | "IDENTITY_ROLE_CHANGED" | "IDENTITY_DEACTIVATED" | "IDENTITY_DELETED" | "ORG_CREATED" | "ORG_SETTINGS_UPDATED" | "ORG_MEMBER_INVITED" | "ORG_MEMBER_REMOVED" | "ORG_MEMBER_ROLE_CHANGED" | "ORG_INVITE_REVOKED" | "API_KEY_CREATED" | "API_KEY_UPDATED" | "API_KEY_DELETED" | "BOT_CREATED" | "BOT_DELETED" | "BOT_TOKEN_REGENERATED" | "FLOW_CREATED" | "FLOW_UPDATED" | "FLOW_LINK_CREATED" | "FLOW_DELETED" | "FLOW_STEP_ADDED" | "FLOW_STEP_UPDATED" | "FLOW_STEP_DELETED" | "FLOW_SHARED" | "FLOW_SHARE_REVOKED" | "PARTNER_INVITED" | "PARTNER_INVITE_ACCEPTED" | "PARTNER_INVITE_REVOKED" | "PARTNER_INVITE_REJECTED" | "VR_CREATED" | "VR_STATUS_CHANGED" | "VR_MANUALLY_REVIEWED" | "DV_RESULT_REVIEW_REQUESTED" | "VR_CANCELLED" | "DV_RESULT_STATUS_CHANGED" | "DV_RESULT_MANUAL_REVIEW" | "DV_RESULT_REPLAYED" | "AML_RESULT_STATUS_CHANGED" | "AML_RESULT_MODERATED" | "AML_FIELD_REVIEWED" | "AML_AGENT_REVIEWED" | "AML_SCREENED" | "TIN_CHECK_RUN" | "POA_RESULT_STATUS_CHANGED" | "SPID_RESULT_STATUS_CHANGED" | "FORM_RESULT_STATUS_CHANGED" | "FORM_RESULT_SUBMITTED" | "KYB_APPLICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_CREATED" | "KYB_DOCUMENT_UPLOADED" | "KYB_CLARIFICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_REVIEWED" | "KYB_ASSIGNED" | "KYB_STAGE_CHANGED" | "KYB_COMMUNICATION_SENT" | "KYB_MODERATION_STATUS_UPDATED" | "KYB_PEP_SANCTIONS_STATUS_UPDATED" | "KYB_REPORT_UPLOADED" | "KYB_AUTO_COMPLETED" | "KYB_APPROVED" | "KYB_MANUAL_REVIEW_DECISION" | "KYB_VERIFICATION_FIELD_OVERRIDDEN" | "KYB_DOCUMENT_CHECK_OVERRIDDEN" | "KYB_METADATA_PATCHED" | "KYB_SCREENING_STRATEGY_CHANGED" | "KYB_BUSINESS_INFORMATION_EDITED" | "KYB_UBOS_ADDED" | "KYB_UBO_REMOVED" | "KYB_DIRECTORS_ADDED" | "KYB_DIRECTOR_REMOVED" | "KYB_AGENT_REVIEWED" | "KYB_AGENT_RUN_ENDED" | "KYB_CASE_DOSSIER_EXPORTED" | "KYB_CASE_REPORT_DOWNLOADED" | "KYB_DOCUMENT_CATALOG_REFRESHED" | "KYB_DOCUMENTS_PURCHASED" | "KYB_CASE_MANIFEST_REVISED" | "KYB_CASE_RUN_COMPLETED" | "KYB_CASE_RUN_FAILED" | "KYB_CASE_RUN_REAPED" | "KYB_CASE_RUN_REQUEUED" | "KYB_CASE_RUN_SUPERSEDED" | "KYB_CASE_EFFECTS_ABANDONED" | "KYB_CASE_RETRY_FORCED" | "KYB_CASE_DECISION_REPORT_HELD" | "KYB_CASE_WAIVER_DECIDED" | "KYB_CASE_DECIDED" | "KYB_CASE_EXCEPTION_RECORDED" | "KYB_CASE_EXCEPTION_WITHDRAWN" | "KYB_CASE_DECISION_PROPOSAL_WITHDRAWN" | "KYB_SCREENING_HIT_RESOLVED" | "KYB_SCREENING_HIT_PROPOSED" | "KYB_CASE_CHECK_CONFIRMED" | "KYB_CASE_REOPENED" | "KYB_CASE_QUALITY_REVIEW_RECORDED" | "KYB_OWNERSHIP_CONFIRMATION_SUBMITTED" | "KYB_SUBJECT_ASSIGNED" | "KYB_SUBJECT_RELEASED" | "KYB_COMPANY_RATING_OVERRIDDEN" | "KYB_COMPANY_RATING_OVERRIDE_ENDED" | "COMPLIANCE_POLICY_UPDATED" | "COMPLIANCE_POLICY_DRAFT_SAVED" | "COMPLIANCE_POLICY_PUBLISHED" | "COMPLIANCE_POLICY_PUT_IN_FORCE" | "COMPLIANCE_POLICY_SOP_UPLOADED" | "COMPLIANCE_POLICY_SOP_REVIEWED" | "KYB_CASE_AML_DISPOSITIONED" | "KYB_CASE_STEP_PROPOSAL_DECIDED" | "KYB_CASE_CLARIFICATION_PROPOSAL_DECIDED" | "KYB_CASE_FACT_RECORDED" | "KYB_CASE_INVITATION_SENT" | "KYB_CASE_INVITATION_FAILED" | "KYC_GRANT_CREATED" | "CONSENT_GRANTED" | "BLOCKLIST_ENTRY_CREATED" | "BLOCKLIST_ENTRY_DELETED" | "RISK_WEIGHT_UPDATED" | "RISK_FACTOR_UPDATED" | "DOCUMENT_DOWNLOADED" | "FLOW_RESULT_EXPORTED" | "FLOW_RISK_SCORE_CHANGED" | "FLOW_RISK_STATUS_CHANGED" | "RISK_TAG_ADDED" | "RISK_TAG_RETRACTED" | "TM_RULE_TRIGGERED" | "TM_ALERT_RAISED" | "TM_AGENT_REVIEWED" | "TM_AGENT_REVIEW_STARTED" | "TM_AGENT_RESOLVED" | "TM_ALERT_DISPOSITIONED" | "TM_ALERT_ESCALATED" | "TM_RULE_DISABLED" | "UNKNOWN";
1404
1427
  /** @description A single entry in the audit log, returned by the query API. */
1405
1428
  AuditLogEntry: {
1406
1429
  action: components["schemas"]["AuditAction"];
@@ -1412,6 +1435,12 @@ export interface components {
1412
1435
  /** Format: date-time */
1413
1436
  createdAt: string;
1414
1437
  details: unknown;
1438
+ /**
1439
+ * Format: int64
1440
+ * @description The entry's position on the audit log's hash chain. One entry is read back with the filter
1441
+ * `entry_seq:equals:<n>`.
1442
+ */
1443
+ entrySeq: number;
1415
1444
  /** Format: uuid */
1416
1445
  id: string;
1417
1446
  /** @description Whether this entry originated from a sandbox operation.
@@ -1471,7 +1500,7 @@ export interface components {
1471
1500
  * not be determined (e.g. for some system operations).
1472
1501
  * @enum {string}
1473
1502
  */
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";
1503
+ AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "McpClient" | "Flow" | "FlowStep" | "FlowResult" | "FlowPartnerInvite" | "VerificationRequest" | "DvResult" | "AmlResult" | "TinCheck" | "PoaResult" | "KybResult" | "KybCase" | "KybCaseRule" | "KybCompanyRating" | "KybSubjectAssignment" | "FormResult" | "Form" | "RiskWeight" | "ContextualFactor" | "ScoreDefinition" | "ScoreTag" | "ScoreRule" | "AuditLog" | "ChatMessage" | "DocumentSelection" | "GeolocationResult" | "PhoneVerification" | "SpidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "AgentReviewPolicy" | "ShortUrl" | "Cache" | "Transaction" | "TmRule" | "TmList" | "TmSettings" | "TmAlert" | "TmRuleTemplate" | "DisposableEmailDomain" | "RegistrationOffer" | "RegistrationOfferLink" | "WebhookEndpoint" | "WebhookOrganizationSecret" | "Unknown";
1475
1504
  /** @description What triggered an audit event, identified by `type`:
1476
1505
  * - `HTTP` — an API request (`method` and `path`).
1477
1506
  * - `WORKER` — a background process (`workerType` and `scenario`).
@@ -2598,7 +2627,7 @@ export interface components {
2598
2627
  number: number;
2599
2628
  };
2600
2629
  /** @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";
2630
+ ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "organization_under_retention" | "storage" | "verification_request_not_found" | "document_reader" | "sse" | "organization_settings_not_found" | "theme_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "send_notification" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "disposable_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing" | "billing_email_required" | "product_not_active" | "registration_offer_not_found" | "registration_offer_unavailable" | "registration_offer_invalid_terms" | "topup_pack_unlocks_unpriced" | "score_rule_not_found" | "score_rule_field_outside_scores" | "score_rule_unknown_score" | "score_rule_score_disabled" | "score_rule_score_not_yet_computed" | "score_rule_set_score_out_of_range" | "score_rule_effect_kind_mismatch" | "kyb_case_not_decidable" | "kyb_case_not_ready" | "kyb_case_exception_required" | "kyb_case_rejecting_hit" | "kyb_case_reason_required" | "kyb_case_decision_not_authorized" | "kyb_case_second_signature_required" | "compliance_policy_open_questions" | "tin_check_invalid_tin" | "tin_check_unavailable" | "tin_check_ein_required" | "tin_check_mismatch" | "tin_check_attempts_exhausted";
2602
2631
  /**
2603
2632
  * @description What an estimated cost represents. `fixedPrice` is a real quoted price; `variableCap` is only
2604
2633
  * the maximum that may be charged, because the actual cost varies; `unknown` means pricing could
@@ -3861,6 +3890,12 @@ export interface components {
3861
3890
  * @enum {string}
3862
3891
  */
3863
3892
  KybCasePlannerMode: "DISABLED" | "SUGGEST" | "AUTO_PILOT";
3893
+ /**
3894
+ * Format: binary
3895
+ * @description The case's KYB report: the PDF file itself, sent as the response body. Described as binary so
3896
+ * generated clients read it as a file rather than as JSON.
3897
+ */
3898
+ KybCaseReportPdf: Blob;
3864
3899
  /**
3865
3900
  * @description The lifecycle status of a KYB case. `APPROVED`, `REJECTED` and `CANCELLED` close the case; a
3866
3901
  * closed case can later be reopened (for example when the applicant resubmits or a periodic
@@ -4206,8 +4241,9 @@ export interface components {
4206
4241
  * regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced
4207
4242
  * nothing usable.
4208
4243
  * - `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
4244
+ * - `OwnershipConfirmation` — opened by the platform, never by hand: by a reopening (a quality
4245
+ * review's disagreement or the periodic review), or by owners the company register reports that
4246
+ * the declaration left out. The company is asked to confirm, through the existing request
4211
4247
  * link, that the owners and officers on file are still the ones there are. The answer lands as
4212
4248
  * the applicant's own assertions; while it is open the case waits on the applicant, and
4213
4249
  * deciding without it takes an exception like any other open request.
@@ -7884,6 +7920,76 @@ export interface operations {
7884
7920
  };
7885
7921
  };
7886
7922
  };
7923
+ getKybCaseReport: {
7924
+ parameters: {
7925
+ query: {
7926
+ sandbox: boolean;
7927
+ locale?: components["schemas"]["Locale"];
7928
+ };
7929
+ header?: {
7930
+ /** @description The `ETag` of a report already held */
7931
+ "If-None-Match"?: string | null;
7932
+ };
7933
+ path: {
7934
+ /** @description Organization ID */
7935
+ organization_id: string;
7936
+ /** @description The ID of the KYB case */
7937
+ case_id: string;
7938
+ };
7939
+ cookie?: never;
7940
+ };
7941
+ requestBody?: never;
7942
+ responses: {
7943
+ /** @description The report PDF */
7944
+ 200: {
7945
+ headers: {
7946
+ [name: string]: unknown;
7947
+ };
7948
+ content: {
7949
+ "application/pdf": components["schemas"]["KybCaseReportPdf"];
7950
+ };
7951
+ };
7952
+ /** @description The report named by `If-None-Match` is current */
7953
+ 304: {
7954
+ headers: {
7955
+ [name: string]: unknown;
7956
+ };
7957
+ content?: never;
7958
+ };
7959
+ 401: {
7960
+ headers: {
7961
+ [name: string]: unknown;
7962
+ };
7963
+ content: {
7964
+ "application/json": components["schemas"]["BaxeError"];
7965
+ };
7966
+ };
7967
+ 403: {
7968
+ headers: {
7969
+ [name: string]: unknown;
7970
+ };
7971
+ content: {
7972
+ "application/json": components["schemas"]["BaxeError"];
7973
+ };
7974
+ };
7975
+ 404: {
7976
+ headers: {
7977
+ [name: string]: unknown;
7978
+ };
7979
+ content: {
7980
+ "application/json": components["schemas"]["BaxeError"];
7981
+ };
7982
+ };
7983
+ 500: {
7984
+ headers: {
7985
+ [name: string]: unknown;
7986
+ };
7987
+ content: {
7988
+ "application/json": components["schemas"]["BaxeError"];
7989
+ };
7990
+ };
7991
+ };
7992
+ };
7887
7993
  decideKybCase: {
7888
7994
  parameters: {
7889
7995
  query: {
package/dist/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "zyphe-sdk",
5
5
  "description": "",
6
- "version": "3.2.0"
6
+ "version": "3.3.0"
7
7
  },
8
8
  "paths": {
9
9
  "/flows/{slug}/fullflow": {
@@ -2712,6 +2712,128 @@
2712
2712
  ]
2713
2713
  }
2714
2714
  },
2715
+ "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/report": {
2716
+ "get": {
2717
+ "tags": [
2718
+ "SDK: KYB"
2719
+ ],
2720
+ "summary": "Download a KYB case's report",
2721
+ "description": "The case's KYB report as a PDF: company, activity, directors, ownership and beneficial owners,\nscreening, adverse media, documents and sources, as the case stands at the time of the request.\nThe report is identified by a hash of its content, returned as `ETag`: send it back as\n`If-None-Match` to get `304` when nothing in the report has changed.",
2722
+ "operationId": "getKybCaseReport",
2723
+ "parameters": [
2724
+ {
2725
+ "name": "organization_id",
2726
+ "in": "path",
2727
+ "description": "Organization ID",
2728
+ "required": true,
2729
+ "schema": {
2730
+ "type": "string",
2731
+ "format": "uuid"
2732
+ }
2733
+ },
2734
+ {
2735
+ "name": "case_id",
2736
+ "in": "path",
2737
+ "description": "The ID of the KYB case",
2738
+ "required": true,
2739
+ "schema": {
2740
+ "type": "string",
2741
+ "format": "uuid"
2742
+ }
2743
+ },
2744
+ {
2745
+ "name": "If-None-Match",
2746
+ "in": "header",
2747
+ "description": "The `ETag` of a report already held",
2748
+ "required": false,
2749
+ "schema": {
2750
+ "type": [
2751
+ "string",
2752
+ "null"
2753
+ ]
2754
+ }
2755
+ },
2756
+ {
2757
+ "name": "sandbox",
2758
+ "in": "query",
2759
+ "required": true,
2760
+ "schema": {
2761
+ "type": "boolean"
2762
+ },
2763
+ "style": "form"
2764
+ },
2765
+ {
2766
+ "name": "locale",
2767
+ "in": "query",
2768
+ "required": false,
2769
+ "schema": {
2770
+ "$ref": "#/components/schemas/Locale"
2771
+ },
2772
+ "style": "form"
2773
+ }
2774
+ ],
2775
+ "responses": {
2776
+ "200": {
2777
+ "description": "The report PDF",
2778
+ "content": {
2779
+ "application/pdf": {
2780
+ "schema": {
2781
+ "$ref": "#/components/schemas/KybCaseReportPdf"
2782
+ }
2783
+ }
2784
+ }
2785
+ },
2786
+ "304": {
2787
+ "description": "The report named by `If-None-Match` is current"
2788
+ },
2789
+ "401": {
2790
+ "description": "",
2791
+ "content": {
2792
+ "application/json": {
2793
+ "schema": {
2794
+ "$ref": "#/components/schemas/BaxeError"
2795
+ }
2796
+ }
2797
+ }
2798
+ },
2799
+ "403": {
2800
+ "description": "",
2801
+ "content": {
2802
+ "application/json": {
2803
+ "schema": {
2804
+ "$ref": "#/components/schemas/BaxeError"
2805
+ }
2806
+ }
2807
+ }
2808
+ },
2809
+ "404": {
2810
+ "description": "",
2811
+ "content": {
2812
+ "application/json": {
2813
+ "schema": {
2814
+ "$ref": "#/components/schemas/BaxeError"
2815
+ }
2816
+ }
2817
+ }
2818
+ },
2819
+ "500": {
2820
+ "description": "",
2821
+ "content": {
2822
+ "application/json": {
2823
+ "schema": {
2824
+ "$ref": "#/components/schemas/BaxeError"
2825
+ }
2826
+ }
2827
+ }
2828
+ }
2829
+ },
2830
+ "security": [
2831
+ {
2832
+ "api-key": []
2833
+ }
2834
+ ]
2835
+ }
2836
+ },
2715
2837
  "/sdk/organizations/{organization_id}/kyb-cases/{case_id}/decision": {
2716
2838
  "post": {
2717
2839
  "tags": [
@@ -6524,6 +6646,9 @@
6524
6646
  "KYB_DIRECTORS_ADDED",
6525
6647
  "KYB_DIRECTOR_REMOVED",
6526
6648
  "KYB_AGENT_REVIEWED",
6649
+ "KYB_AGENT_RUN_ENDED",
6650
+ "KYB_CASE_DOSSIER_EXPORTED",
6651
+ "KYB_CASE_REPORT_DOWNLOADED",
6527
6652
  "KYB_DOCUMENT_CATALOG_REFRESHED",
6528
6653
  "KYB_DOCUMENTS_PURCHASED",
6529
6654
  "KYB_CASE_MANIFEST_REVISED",
@@ -6531,6 +6656,7 @@
6531
6656
  "KYB_CASE_RUN_FAILED",
6532
6657
  "KYB_CASE_RUN_REAPED",
6533
6658
  "KYB_CASE_RUN_REQUEUED",
6659
+ "KYB_CASE_RUN_SUPERSEDED",
6534
6660
  "KYB_CASE_EFFECTS_ABANDONED",
6535
6661
  "KYB_CASE_RETRY_FORCED",
6536
6662
  "KYB_CASE_DECISION_REPORT_HELD",
@@ -6589,6 +6715,7 @@
6589
6715
  "description": "A single entry in the audit log, returned by the query API.",
6590
6716
  "required": [
6591
6717
  "id",
6718
+ "entrySeq",
6592
6719
  "action",
6593
6720
  "resourceType",
6594
6721
  "details",
@@ -6628,6 +6755,11 @@
6628
6755
  "format": "date-time"
6629
6756
  },
6630
6757
  "details": {},
6758
+ "entrySeq": {
6759
+ "type": "integer",
6760
+ "format": "int64",
6761
+ "description": "The entry's position on the audit log's hash chain. One entry is read back with the filter\n`entry_seq:equals:<n>`."
6762
+ },
6631
6763
  "id": {
6632
6764
  "type": "string",
6633
6765
  "format": "uuid"
@@ -6806,6 +6938,7 @@
6806
6938
  "TopupPack",
6807
6939
  "ApiKey",
6808
6940
  "Bot",
6941
+ "McpClient",
6809
6942
  "Flow",
6810
6943
  "FlowStep",
6811
6944
  "FlowResult",
@@ -9718,6 +9851,7 @@
9718
9851
  "flow_not_found",
9719
9852
  "flow_step_not_found",
9720
9853
  "organization_not_found",
9854
+ "organization_under_retention",
9721
9855
  "storage",
9722
9856
  "verification_request_not_found",
9723
9857
  "document_reader",
@@ -14125,6 +14259,11 @@
14125
14259
  "AUTO_PILOT"
14126
14260
  ]
14127
14261
  },
14262
+ "KybCaseReportPdf": {
14263
+ "type": "string",
14264
+ "format": "binary",
14265
+ "description": "The case's KYB report: the PDF file itself, sent as the response body. Described as binary so\ngenerated clients read it as a file rather than as JSON."
14266
+ },
14128
14267
  "KybCaseStatus": {
14129
14268
  "type": "string",
14130
14269
  "description": "The lifecycle status of a KYB case. `APPROVED`, `REJECTED` and `CANCELLED` close the case; a\nclosed case can later be reopened (for example when the applicant resubmits or a periodic\nreview is due), which moves it back to `OPEN` or `PROCESSING`.",
@@ -14749,7 +14888,7 @@
14749
14888
  },
14750
14889
  "KybDocumentRequestType": {
14751
14890
  "type": "string",
14752
- "description": "The type of a KYB document request.\n\n- `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.\n- `Clarification` — operator requests the client to re-confirm or update specific business information fields.\n Supports per-field review via `field_statuses`.\n- `UboDeclaration` — reopens the `KYB_UBOS` satellite for a fresh applicant declaration. Used to\n regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced\n nothing usable.\n- `DirectorDeclaration` — same as `UboDeclaration`, for the `KYB_DIRECTORS` satellite.\n- `OwnershipConfirmation` — opened by a reopening (a quality review's disagreement or the\n periodic review), never by hand: the company is asked to confirm, through the existing request\n link, that the owners and officers on file are still the ones there are. The answer lands as\n the applicant's own assertions; while it is open the case waits on the applicant, and\n deciding without it takes an exception like any other open request.",
14891
+ "description": "The type of a KYB document request.\n\n- `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.\n- `Clarification` — operator requests the client to re-confirm or update specific business information fields.\n Supports per-field review via `field_statuses`.\n- `UboDeclaration` — reopens the `KYB_UBOS` satellite for a fresh applicant declaration. Used to\n regress a discovery-backed flow's UBOs part back to awaiting-client when the graph produced\n nothing usable.\n- `DirectorDeclaration` — same as `UboDeclaration`, for the `KYB_DIRECTORS` satellite.\n- `OwnershipConfirmation` — opened by the platform, never by hand: by a reopening (a quality\n review's disagreement or the periodic review), or by owners the company register reports that\n the declaration left out. The company is asked to confirm, through the existing request\n link, that the owners and officers on file are still the ones there are. The answer lands as\n the applicant's own assertions; while it is open the case waits on the applicant, and\n deciding without it takes an exception like any other open request.",
14753
14892
  "enum": [
14754
14893
  "STANDARD",
14755
14894
  "CLARIFICATION",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyphe-sdk/core",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Simplifies interaction with the Zyphe platform for creating and managing digital identities and digital onboarding flows with ease",
5
5
  "license": "MIT",
6
6
  "author": "Zyphe",