@zyphe-sdk/core 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1470,7 +1470,7 @@ interface components {
1470
1470
  * @description The action recorded by an audit log entry (e.g. `FLOW_CREATED`).
1471
1471
  * @enum {string}
1472
1472
  */
1473
- AuditAction: "VIEWED" | "CREATED" | "UPDATED" | "DELETED" | "AUTH_LOGIN" | "AUTH_LOGIN_FAILED" | "AUTH_LOGOUT" | "AUTH_PASSWORD_CHANGED" | "AUTH_PASSKEY_REGISTERED" | "AUTH_MAGIC_LINK_REQUESTED" | "AUTH_PASSWORD_RESET_REQUESTED" | "AUTH_EMAIL_VERIFIED" | "AUTH_TWO_FACTOR_CHALLENGED" | "AUTH_TWO_FACTOR_FAILED" | "AUTH_TWO_FACTOR_ENROLMENT_STARTED" | "AUTH_TWO_FACTOR_ENABLED" | "AUTH_TWO_FACTOR_DISABLED" | "AUTH_TWO_FACTOR_BACKUP_CODE_USED" | "AUTH_TWO_FACTOR_BACKUP_CODES_REGENERATED" | "AUTH_TWO_FACTOR_RESET" | "ORG_TWO_FACTOR_POLICY_UPDATED" | "IDENTITY_ROLE_CHANGED" | "IDENTITY_DEACTIVATED" | "IDENTITY_DELETED" | "ORG_CREATED" | "ORG_SETTINGS_UPDATED" | "SLA_TARGETS_UPDATED" | "ORG_MEMBER_INVITED" | "ORG_MEMBER_REMOVED" | "ORG_MEMBER_ROLE_CHANGED" | "ORG_INVITE_REVOKED" | "API_KEY_CREATED" | "API_KEY_UPDATED" | "API_KEY_DELETED" | "BOT_CREATED" | "BOT_DELETED" | "BOT_TOKEN_REGENERATED" | "FLOW_CREATED" | "FLOW_UPDATED" | "FLOW_LINK_CREATED" | "FLOW_DELETED" | "FLOW_STEP_ADDED" | "FLOW_STEP_UPDATED" | "FLOW_STEP_DELETED" | "FLOW_SHARED" | "FLOW_SHARE_REVOKED" | "FLOW_TEMPLATE_CREATED" | "FLOW_TEMPLATE_UPDATED" | "FLOW_TEMPLATE_STATUS_CHANGED" | "FLOW_TEMPLATES_SEEDED" | "FLOW_TEMPLATE_COPIED_TO_PRODUCTION" | "FLOW_DRAFT_CREATED" | "FLOW_DRAFT_DELETED" | "PARTNER_INVITED" | "PARTNER_INVITE_ACCEPTED" | "PARTNER_INVITE_REVOKED" | "PARTNER_INVITE_REJECTED" | "VR_CREATED" | "VR_STATUS_CHANGED" | "VR_MANUALLY_REVIEWED" | "DV_RESULT_REVIEW_REQUESTED" | "VR_CANCELLED" | "DV_RESULT_STATUS_CHANGED" | "DV_RESULT_MANUAL_REVIEW" | "DV_RESULT_REPLAYED" | "AML_RESULT_STATUS_CHANGED" | "AML_RESULT_MODERATED" | "AML_FIELD_REVIEWED" | "AML_AGENT_REVIEWED" | "AML_SCREENED" | "TIN_CHECK_RUN" | "POA_RESULT_STATUS_CHANGED" | "SPID_RESULT_STATUS_CHANGED" | "FORM_RESULT_STATUS_CHANGED" | "FORM_RESULT_SUBMITTED" | "KYB_APPLICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_CREATED" | "KYB_DOCUMENT_UPLOADED" | "KYB_CLARIFICATION_SUBMITTED" | "KYB_DOCUMENT_REQUEST_REVIEWED" | "KYB_ASSIGNED" | "KYB_STAGE_CHANGED" | "KYB_COMMUNICATION_SENT" | "KYB_MODERATION_STATUS_UPDATED" | "KYB_PEP_SANCTIONS_STATUS_UPDATED" | "KYB_REPORT_UPLOADED" | "KYB_AUTO_COMPLETED" | "KYB_APPROVED" | "KYB_MANUAL_REVIEW_DECISION" | "KYB_VERIFICATION_FIELD_OVERRIDDEN" | "KYB_DOCUMENT_CHECK_OVERRIDDEN" | "KYB_METADATA_PATCHED" | "KYB_SCREENING_STRATEGY_CHANGED" | "KYB_BUSINESS_INFORMATION_EDITED" | "KYB_UBOS_ADDED" | "KYB_UBO_REMOVED" | "KYB_DIRECTORS_ADDED" | "KYB_DIRECTOR_REMOVED" | "KYB_AGENT_REVIEWED" | "KYB_AGENT_RUN_ENDED" | "KYB_CASE_DOSSIER_EXPORTED" | "KYB_CASE_REPORT_DOWNLOADED" | "KYC_REPORT_DOWNLOADED" | "KYB_DOCUMENT_CATALOG_REFRESHED" | "KYB_DOCUMENTS_PURCHASED" | "KYB_CASE_MANIFEST_REVISED" | "KYB_CASE_RUN_COMPLETED" | "KYB_CASE_RUN_FAILED" | "KYB_CASE_RUN_REAPED" | "KYB_CASE_RUN_REQUEUED" | "KYB_CASE_RUN_SUPERSEDED" | "KYB_CASE_EFFECTS_ABANDONED" | "KYB_CASE_RETRY_FORCED" | "KYB_CASE_DECISION_REPORT_HELD" | "KYB_CASE_WAIVER_DECIDED" | "KYB_CASE_DECIDED" | "KYB_CASE_ANCHORED" | "KYB_CASE_OPENED_BY_OPERATOR" | "KYB_CASE_CONTACT_SET" | "KYB_CASE_UPLOAD_ADDED" | "KYB_CASE_UPLOAD_REMOVED" | "KYB_CASE_SUBMITTED_BY_OPERATOR" | "KYB_CASE_CANCELLED_BY_OPERATOR" | "KYB_CASE_EXCEPTION_RECORDED" | "KYB_CASE_EXCEPTION_WITHDRAWN" | "KYB_CASE_DECISION_PROPOSAL_WITHDRAWN" | "KYB_SCREENING_HIT_RESOLVED" | "KYB_SCREENING_HIT_PROPOSED" | "KYB_CASE_CHECK_CONFIRMED" | "KYB_CASE_REOPENED" | "KYB_CASE_QUALITY_REVIEW_RECORDED" | "KYB_OWNERSHIP_CONFIRMATION_SUBMITTED" | "KYB_SUBJECT_ASSIGNED" | "KYB_SUBJECT_RELEASED" | "KYB_REMINDERS_SENT" | "KYB_COMPANY_RATING_OVERRIDDEN" | "KYB_COMPANY_RATING_OVERRIDE_ENDED" | "COMPLIANCE_POLICY_UPDATED" | "COMPLIANCE_POLICY_DRAFT_SAVED" | "COMPLIANCE_POLICY_PUBLISHED" | "COMPLIANCE_POLICY_PUT_IN_FORCE" | "COMPLIANCE_POLICY_SOP_UPLOADED" | "COMPLIANCE_POLICY_SOP_REVIEWED" | "COMPLIANCE_POLICY_SOP_AUTO_ACCEPTED" | "KYB_CASE_AML_DISPOSITIONED" | "KYB_CASE_STEP_PROPOSAL_DECIDED" | "KYB_CASE_CLARIFICATION_PROPOSAL_DECIDED" | "KYB_CASE_FACT_RECORDED" | "KYB_CASE_INVITATION_SENT" | "KYB_CASE_INVITATION_FAILED" | "KYC_GRANT_CREATED" | "CONSENT_GRANTED" | "BLOCKLIST_ENTRY_CREATED" | "BLOCKLIST_ENTRY_DELETED" | "RISK_WEIGHT_UPDATED" | "RISK_FACTOR_UPDATED" | "DOCUMENT_DOWNLOADED" | "FLOW_RESULT_EXPORTED" | "FLOW_RISK_SCORE_CHANGED" | "FLOW_RISK_STATUS_CHANGED" | "RISK_TAG_ADDED" | "RISK_TAG_RETRACTED" | "TM_RULE_TRIGGERED" | "TM_ALERT_RAISED" | "TM_AGENT_REVIEWED" | "TM_AGENT_REVIEW_STARTED" | "TM_AGENT_RESOLVED" | "TM_ALERT_DISPOSITIONED" | "TM_ALERT_ASSIGNED" | "TM_ALERT_ESCALATED" | "TM_RULE_DISABLED" | "UNKNOWN";
1473
+ AuditAction: "VIEWED" | "CREATED" | "UPDATED" | "DELETED" | "AUTH_LOGIN" | "AUTH_LOGIN_FAILED" | "AUTH_LOGOUT" | "AUTH_PASSWORD_CHANGED" | "AUTH_PASSKEY_REGISTERED" | "AUTH_MAGIC_LINK_REQUESTED" | "AUTH_PASSWORD_RESET_REQUESTED" | "AUTH_EMAIL_VERIFIED" | "AUTH_TWO_FACTOR_CHALLENGED" | "AUTH_TWO_FACTOR_FAILED" | "AUTH_TWO_FACTOR_ENROLMENT_STARTED" | "AUTH_TWO_FACTOR_ENABLED" | "AUTH_TWO_FACTOR_DISABLED" | "AUTH_TWO_FACTOR_BACKUP_CODE_USED" | "AUTH_TWO_FACTOR_BACKUP_CODES_REGENERATED" | "AUTH_TWO_FACTOR_RESET" | "ORG_TWO_FACTOR_POLICY_UPDATED" | "IDENTITY_ROLE_CHANGED" | "IDENTITY_DEACTIVATED" | "IDENTITY_DELETED" | "ORG_CREATED" | "ORG_SETTINGS_UPDATED" | "SLA_TARGETS_UPDATED" | "ORG_MEMBER_INVITED" | "ORG_MEMBER_REMOVED" | "ORG_MEMBER_ROLE_CHANGED" | "ORG_INVITE_REVOKED" | "API_KEY_CREATED" | "API_KEY_UPDATED" | "API_KEY_DELETED" | "BOT_CREATED" | "BOT_DELETED" | "BOT_TOKEN_REGENERATED" | "FLOW_CREATED" | "FLOW_UPDATED" | "FLOW_LINK_CREATED" | "FLOW_DELETED" | "FLOW_STEP_ADDED" | "FLOW_STEP_UPDATED" | "FLOW_STEP_DELETED" | "FLOW_SHARED" | "FLOW_SHARE_REVOKED" | "FLOW_TEMPLATE_CREATED" | "FLOW_TEMPLATE_UPDATED" | "FLOW_TEMPLATE_STATUS_CHANGED" | "FLOW_TEMPLATES_SEEDED" | "FLOW_TEMPLATE_COPIED_TO_PRODUCTION" | "FLOW_DRAFT_CREATED" | "FLOW_DRAFT_DELETED" | "PARTNER_INVITED" | "PARTNER_INVITE_ACCEPTED" | "PARTNER_INVITE_REVOKED" | "PARTNER_INVITE_REJECTED" | "VR_CREATED" | "VR_STATUS_CHANGED" | "VR_MANUALLY_REVIEWED" | "DV_RESULT_REVIEW_REQUESTED" | "VR_CANCELLED" | "DV_RESULT_STATUS_CHANGED" | "DV_RESULT_MANUAL_REVIEW" | "DV_RESULT_REPLAYED" | "AML_RESULT_STATUS_CHANGED" | "AML_RESULT_MODERATED" | "AML_FIELD_REVIEWED" | "AML_AGENT_REVIEWED" | "AML_SCREENED" | "TIN_CHECK_RUN" | "POA_RESULT_STATUS_CHANGED" | "EID_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";
1474
1474
  /** @description A single entry in the audit log, returned by the query API. */
1475
1475
  AuditLogEntry: {
1476
1476
  action: components["schemas"]["AuditAction"];
@@ -1551,7 +1551,7 @@ interface components {
1551
1551
  * not be determined (e.g. for some system operations).
1552
1552
  * @enum {string}
1553
1553
  */
1554
- AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "McpClient" | "Flow" | "FlowStep" | "FlowResult" | "FlowPartnerInvite" | "VerificationRequest" | "DvResult" | "AmlResult" | "TinCheck" | "PoaResult" | "KybResult" | "KybCase" | "KybCaseRule" | "KybCompanyRating" | "KybSubjectAssignment" | "FormResult" | "Form" | "RiskWeight" | "ContextualFactor" | "ScoreDefinition" | "ScoreTag" | "ScoreRule" | "AuditLog" | "ChatMessage" | "DocumentSelection" | "GeolocationResult" | "PhoneVerification" | "SpidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "AgentReviewPolicy" | "ShortUrl" | "Cache" | "Transaction" | "TmRule" | "TmList" | "TmSettings" | "TmAlert" | "TmRuleTemplate" | "FlowTemplate" | "FlowDraft" | "BlockedEmailDomain" | "AllowedEmailAddress" | "RegistrationOffer" | "RegistrationOfferLink" | "WebhookEndpoint" | "WebhookOrganizationSecret" | "Unknown";
1554
+ AuditResourceType: "Search" | "Identity" | "Organization" | "OrganizationSettings" | "OrganizationTheme" | "OrganizationInvite" | "OrganizationBilling" | "SubscriptionPlan" | "KybJurisdictionPricing" | "TopupPack" | "ApiKey" | "Bot" | "McpClient" | "Flow" | "FlowStep" | "FlowResult" | "FlowPartnerInvite" | "VerificationRequest" | "DvResult" | "AmlResult" | "TinCheck" | "PoaResult" | "KybResult" | "KybCase" | "KybCaseRule" | "KybCompanyRating" | "KybSubjectAssignment" | "FormResult" | "Form" | "RiskWeight" | "ContextualFactor" | "ScoreDefinition" | "ScoreTag" | "ScoreRule" | "AuditLog" | "ChatMessage" | "DocumentSelection" | "GeolocationResult" | "PhoneVerification" | "EidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "AgentReviewPolicy" | "ShortUrl" | "Cache" | "Transaction" | "TmRule" | "TmList" | "TmSettings" | "TmAlert" | "TmRuleTemplate" | "FlowTemplate" | "FlowDraft" | "BlockedEmailDomain" | "AllowedEmailAddress" | "RegistrationOffer" | "RegistrationOfferLink" | "WebhookEndpoint" | "WebhookOrganizationSecret" | "Unknown";
1555
1555
  /** @description What triggered an audit event, identified by `type`:
1556
1556
  * - `HTTP` — an API request (`method` and `path`).
1557
1557
  * - `WORKER` — a background process (`workerType` and `scenario`).
@@ -2373,12 +2373,23 @@ interface components {
2373
2373
  */
2374
2374
  verificationRequestId?: string | null;
2375
2375
  };
2376
+ /**
2377
+ * @description The classes the API names a document with: the `documentClass` of a DV result, of the V2 webhook
2378
+ * and of the `DOCUMENT_EXPIRED` notification, and the `<step>.documentClass` of a flow rule.
2379
+ *
2380
+ * Served in the OpenAPI schema even though no response field carries one: the fields stay
2381
+ * strings, so a new class is not a breaking change for a client, but a client that lets an
2382
+ * operator author conditions on the class needs the exact value set, and generating it beats
2383
+ * transcribing it. The variants are in the order such a client offers them.
2384
+ * @enum {string}
2385
+ */
2386
+ DocumentClassName: "IdentificationCard" | "DriversLicense" | "Passport" | "ResidenceDocument" | "Visa" | "TravelDocument" | "TaxIdentification" | "MedicalCard" | "AlienId" | "Unknown";
2376
2387
  /**
2377
2388
  * @description Named categories of identity documents.
2378
2389
  *
2379
2390
  * Served in the OpenAPI schema even though no response field carries one: the cluster is
2380
2391
  * derived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM
2381
- * conditions as `<step>.documentClass`. Clients that let an operator author those conditions
2392
+ * conditions as `<step>.documentCluster`. Clients that let an operator author those conditions
2382
2393
  * need the exact value set, and generating it beats transcribing it.
2383
2394
  * @enum {string}
2384
2395
  */
@@ -2495,7 +2506,7 @@ interface components {
2495
2506
  [key: string]: components["schemas"]["DocumentTypeFilter"];
2496
2507
  } | null;
2497
2508
  enabledGovernmentProviders: {
2498
- [key: string]: components["schemas"]["SpidDocumentType"][];
2509
+ [key: string]: components["schemas"]["EidDocumentType"][];
2499
2510
  };
2500
2511
  /** @example { "en_button_label": "Next step" } */
2501
2512
  labels?: {
@@ -2620,6 +2631,13 @@ interface components {
2620
2631
  data: {
2621
2632
  [key: string]: unknown;
2622
2633
  };
2634
+ /** @description The class of the document, the same whichever provider read it: `Passport`, `DriversLicense`,
2635
+ * `IdentificationCard`, `ResidenceDocument`, `Visa`, `TravelDocument`, `TaxIdentification`,
2636
+ * `MedicalCard`, `AlienId` (a foreign-national registration id) or `Unknown`. Derived from
2637
+ * `documentType`, the type the result stores: for a failed result it can be the document the
2638
+ * holder picked rather than the one read. A `documentType` the types above do not cover, or of
2639
+ * 0 (none read), reads `Unknown`. `null` when the result has no `documentType`. */
2640
+ documentClass?: string | null;
2623
2641
  /** Format: uuid */
2624
2642
  documentId?: string | null;
2625
2643
  /** Format: int32 */
@@ -3039,7 +3057,7 @@ interface components {
3039
3057
  * @description Composed global risk score for the flow (0–100). `None` if not yet scored.
3040
3058
  */
3041
3059
  riskScorePercent?: number | null;
3042
- spidResults: components["schemas"]["SpidResult"][];
3060
+ eidResults: components["schemas"]["EidResult"][];
3043
3061
  status: components["schemas"]["VerificationRequestStatus"];
3044
3062
  /** Format: date-time */
3045
3063
  updatedAt?: string | null;
@@ -3143,7 +3161,7 @@ interface components {
3143
3161
  /** Format: date-time */
3144
3162
  updatedAt?: string | null;
3145
3163
  } | {
3146
- config: components["schemas"]["SpidConfig"];
3164
+ config: components["schemas"]["EidConfig"];
3147
3165
  /** Format: date-time */
3148
3166
  createdAt?: string | null;
3149
3167
  failureUrl?: string | null;
@@ -3159,7 +3177,7 @@ interface components {
3159
3177
  slug: string;
3160
3178
  successUrl?: string | null;
3161
3179
  /** @enum {string} */
3162
- type: "SPID";
3180
+ type: "EID";
3163
3181
  /** Format: date-time */
3164
3182
  updatedAt?: string | null;
3165
3183
  } | {
@@ -3390,9 +3408,9 @@ interface components {
3390
3408
  stepType: "GEOLOCATION";
3391
3409
  })) | ({
3392
3410
  stepType: "FlowStepConfig";
3393
- } & (components["schemas"]["SpidConfig"] & {
3411
+ } & (components["schemas"]["EidConfig"] & {
3394
3412
  /** @enum {string} */
3395
- stepType: "SPID";
3413
+ stepType: "EID";
3396
3414
  })) | ({
3397
3415
  stepType: "FlowStepConfig";
3398
3416
  } & (components["schemas"]["PhoneConfig"] & {
@@ -3443,9 +3461,9 @@ interface components {
3443
3461
  /** @enum {string} */
3444
3462
  type: "POA";
3445
3463
  } | {
3446
- data: components["schemas"]["SpidStepOutput"];
3464
+ data: components["schemas"]["EidStepOutput"];
3447
3465
  /** @enum {string} */
3448
- type: "SPID";
3466
+ type: "EID";
3449
3467
  } | {
3450
3468
  data: components["schemas"]["WalletStepOutput"];
3451
3469
  /** @enum {string} */
@@ -3496,7 +3514,7 @@ interface components {
3496
3514
  type: "KYB_DIRECTORS";
3497
3515
  };
3498
3516
  /** @enum {string} */
3499
- FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION" | "KYB_DOCUMENTS" | "KYB_UBOS" | "KYB_DIRECTORS";
3517
+ FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "EID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION" | "KYB_DOCUMENTS" | "KYB_UBOS" | "KYB_DIRECTORS";
3500
3518
  Form: {
3501
3519
  /** Format: date-time */
3502
3520
  createdAt?: string | null;
@@ -5269,7 +5287,7 @@ interface components {
5269
5287
  verificationRequestId: string;
5270
5288
  };
5271
5289
  /** @enum {string} */
5272
- ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM" | "AML" | "TRANSACTION_MONITORING" | "TIN_CHECK";
5290
+ ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "EID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM" | "AML" | "TRANSACTION_MONITORING" | "TIN_CHECK";
5273
5291
  /** @description Payload for `POST .../kyb-cases/{case_id}/documents/purchase`. */
5274
5292
  PurchaseDocumentsPayload: {
5275
5293
  /** @description Document ids from a freshly-refreshed catalogue. Between 1 and 25. */
@@ -5688,10 +5706,10 @@ interface components {
5688
5706
  };
5689
5707
  /** @enum {string} */
5690
5708
  SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
5691
- SpidConfig: {
5709
+ EidConfig: {
5692
5710
  /**
5693
5711
  * Format: uuid
5694
- * @description The ID of the document-selection step that precedes this SPID step in the flow.
5712
+ * @description The ID of the document-selection step that precedes this eID step in the flow.
5695
5713
  */
5696
5714
  documentSelectionStepId?: string;
5697
5715
  /** @example { "default": "Next step" } */
@@ -5700,8 +5718,8 @@ interface components {
5700
5718
  };
5701
5719
  };
5702
5720
  /** @enum {string} */
5703
- SpidDocumentType: "ITALIAN_SPID" | "AADHAAR";
5704
- SpidResult: {
5721
+ EidDocumentType: "ITALIAN_SPID" | "AADHAAR";
5722
+ EidResult: {
5705
5723
  /** Format: date-time */
5706
5724
  createdAt?: string | null;
5707
5725
  flowStep?: null | components["schemas"]["FlowStep"];
@@ -5717,7 +5735,7 @@ interface components {
5717
5735
  /** Format: uuid */
5718
5736
  verificationRequestId?: string | null;
5719
5737
  };
5720
- SpidResultDetails: {
5738
+ EidResultDetails: {
5721
5739
  address?: string | null;
5722
5740
  companyName?: string | null;
5723
5741
  companyVatNumber?: string | null;
@@ -5737,7 +5755,7 @@ interface components {
5737
5755
  spidCode?: string | null;
5738
5756
  username?: string | null;
5739
5757
  };
5740
- SpidStepOutput: {
5758
+ EidStepOutput: {
5741
5759
  status: components["schemas"]["ResultStatus"];
5742
5760
  };
5743
5761
  StartGeolocationVerificationRequest: Record<string, unknown>;
@@ -6350,7 +6368,7 @@ interface components {
6350
6368
  poaResult?: null | components["schemas"]["PoaResult"];
6351
6369
  reason?: string | null;
6352
6370
  replayerZid?: string | null;
6353
- spidResult?: null | components["schemas"]["SpidResult"];
6371
+ eidResult?: null | components["schemas"]["EidResult"];
6354
6372
  status: components["schemas"]["VerificationRequestStatus"];
6355
6373
  /** Format: date-time */
6356
6374
  updatedAt?: string | null;
@@ -6432,7 +6450,7 @@ interface components {
6432
6450
  * you do not recognise.
6433
6451
  * @enum {string}
6434
6452
  */
6435
- WebhookEventType: "verification.dv.completed" | "verification.dv.failed" | "verification.dv.review" | "verification.poa.completed" | "verification.poa.failed" | "verification.poa.review" | "verification.form.completed" | "verification.form.failed" | "verification.form.review" | "verification.spid.completed" | "verification.spid.failed" | "verification.spid.review" | "verification.phone.completed" | "verification.phone.failed" | "verification.phone.review" | "verification.wallet.completed" | "verification.wallet.failed" | "verification.wallet.review" | "verification.kyb.completed" | "verification.kyb.failed" | "verification.kyb.review" | "verification.kyb.submitted" | "verification.geolocation.completed" | "verification.geolocation.failed" | "verification.geolocation.review" | "verification.aml.produced" | "verification.aml.refreshed" | "verification.aml.moderated" | "verification.document.expired" | "verification.kyc.expired" | "flow.risk.reevaluated" | "flow.completed" | "transaction.alert.created" | "transaction.alert.resolved" | "kyc_passport.verification.updated";
6453
+ WebhookEventType: "verification.dv.completed" | "verification.dv.failed" | "verification.dv.review" | "verification.poa.completed" | "verification.poa.failed" | "verification.poa.review" | "verification.form.completed" | "verification.form.failed" | "verification.form.review" | "verification.eid.completed" | "verification.eid.failed" | "verification.eid.review" | "verification.phone.completed" | "verification.phone.failed" | "verification.phone.review" | "verification.wallet.completed" | "verification.wallet.failed" | "verification.wallet.review" | "verification.kyb.completed" | "verification.kyb.failed" | "verification.kyb.review" | "verification.kyb.submitted" | "verification.geolocation.completed" | "verification.geolocation.failed" | "verification.geolocation.review" | "verification.aml.produced" | "verification.aml.refreshed" | "verification.aml.moderated" | "verification.document.expired" | "verification.kyc.expired" | "flow.risk.reevaluated" | "flow.completed" | "transaction.alert.created" | "transaction.alert.resolved" | "kyc_passport.verification.updated";
6436
6454
  /**
6437
6455
  * @description Which payload shape an endpoint receives.
6438
6456
  * @enum {string}
@@ -6452,7 +6470,7 @@ interface components {
6452
6470
  * AML screening).
6453
6471
  * @enum {string}
6454
6472
  */
6455
- WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "SPID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW" | "TM" | "KYB_CASE";
6473
+ WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "EID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW" | "TM" | "KYB_CASE";
6456
6474
  /** @description Context data available to JDM rules during flow evaluation.
6457
6475
  *
6458
6476
  * This structure is serialized to JSON and passed to the Zen Engine for evaluation.
@@ -6490,8 +6508,8 @@ interface components {
6490
6508
  phoneResults: components["schemas"]["PhoneResult"][];
6491
6509
  /** @description Proof of address results */
6492
6510
  poaResults: components["schemas"]["PoaResult"][];
6493
- /** @description SPID verification results */
6494
- spidResults: components["schemas"]["SpidResult"][];
6511
+ /** @description eID verification results */
6512
+ eidResults: components["schemas"]["EidResult"][];
6495
6513
  /** @description Wallet verification results */
6496
6514
  walletResults: components["schemas"]["WalletResult"][];
6497
6515
  };
@@ -10326,6 +10344,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10326
10344
  data: {
10327
10345
  [key: string]: unknown;
10328
10346
  };
10347
+ documentClass?: string | null;
10329
10348
  documentId?: string | null;
10330
10349
  documentScorePercent?: number | null;
10331
10350
  documentType?: number | null;
@@ -10409,8 +10428,8 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10409
10428
  data: components["schemas"]["PoaStepOutput"];
10410
10429
  type: "POA";
10411
10430
  } | {
10412
- data: components["schemas"]["SpidStepOutput"];
10413
- type: "SPID";
10431
+ data: components["schemas"]["EidStepOutput"];
10432
+ type: "EID";
10414
10433
  } | {
10415
10434
  data: components["schemas"]["WalletStepOutput"];
10416
10435
  type: "WALLET";
@@ -10494,7 +10513,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10494
10513
  }[] | undefined;
10495
10514
  reviewSuggestion?: null | components["schemas"]["ReviewSuggestion"];
10496
10515
  riskScorePercent?: number | null;
10497
- spidResults?: {
10516
+ eidResults?: {
10498
10517
  createdAt?: string | null;
10499
10518
  flowStep?: null | components["schemas"]["FlowStep"];
10500
10519
  flowStepId?: string | null;
@@ -10537,6 +10556,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10537
10556
  data: {
10538
10557
  [key: string]: unknown;
10539
10558
  };
10559
+ documentClass?: string | null;
10540
10560
  documentId?: string | null;
10541
10561
  documentScorePercent?: number | null;
10542
10562
  documentType?: number | null;
@@ -10620,8 +10640,8 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10620
10640
  data: components["schemas"]["PoaStepOutput"];
10621
10641
  type: "POA";
10622
10642
  } | {
10623
- data: components["schemas"]["SpidStepOutput"];
10624
- type: "SPID";
10643
+ data: components["schemas"]["EidStepOutput"];
10644
+ type: "EID";
10625
10645
  } | {
10626
10646
  data: components["schemas"]["WalletStepOutput"];
10627
10647
  type: "WALLET";
@@ -10705,7 +10725,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10705
10725
  }[] | undefined;
10706
10726
  reviewSuggestion?: null | components["schemas"]["ReviewSuggestion"];
10707
10727
  riskScorePercent?: number | null;
10708
- spidResults?: {
10728
+ eidResults?: {
10709
10729
  createdAt?: string | null;
10710
10730
  flowStep?: null | components["schemas"]["FlowStep"];
10711
10731
  flowStepId?: string | null;
package/dist/openapi.d.ts CHANGED
@@ -1468,7 +1468,7 @@ export interface components {
1468
1468
  * @description The action recorded by an audit log entry (e.g. `FLOW_CREATED`).
1469
1469
  * @enum {string}
1470
1470
  */
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";
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" | "EID_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";
1472
1472
  /** @description A single entry in the audit log, returned by the query API. */
1473
1473
  AuditLogEntry: {
1474
1474
  action: components["schemas"]["AuditAction"];
@@ -1549,7 +1549,7 @@ export interface components {
1549
1549
  * not be determined (e.g. for some system operations).
1550
1550
  * @enum {string}
1551
1551
  */
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";
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" | "EidResult" | "WalletVerification" | "Vault" | "KybUboData" | "DocumentDefinition" | "ConfigOverride" | "AgentReviewPolicy" | "ShortUrl" | "Cache" | "Transaction" | "TmRule" | "TmList" | "TmSettings" | "TmAlert" | "TmRuleTemplate" | "FlowTemplate" | "FlowDraft" | "BlockedEmailDomain" | "AllowedEmailAddress" | "RegistrationOffer" | "RegistrationOfferLink" | "WebhookEndpoint" | "WebhookOrganizationSecret" | "Unknown";
1553
1553
  /** @description What triggered an audit event, identified by `type`:
1554
1554
  * - `HTTP` — an API request (`method` and `path`).
1555
1555
  * - `WORKER` — a background process (`workerType` and `scenario`).
@@ -2371,12 +2371,23 @@ export interface components {
2371
2371
  */
2372
2372
  verificationRequestId?: string | null;
2373
2373
  };
2374
+ /**
2375
+ * @description The classes the API names a document with: the `documentClass` of a DV result, of the V2 webhook
2376
+ * and of the `DOCUMENT_EXPIRED` notification, and the `<step>.documentClass` of a flow rule.
2377
+ *
2378
+ * Served in the OpenAPI schema even though no response field carries one: the fields stay
2379
+ * strings, so a new class is not a breaking change for a client, but a client that lets an
2380
+ * operator author conditions on the class needs the exact value set, and generating it beats
2381
+ * transcribing it. The variants are in the order such a client offers them.
2382
+ * @enum {string}
2383
+ */
2384
+ DocumentClassName: "IdentificationCard" | "DriversLicense" | "Passport" | "ResidenceDocument" | "Visa" | "TravelDocument" | "TaxIdentification" | "MedicalCard" | "AlienId" | "Unknown";
2374
2385
  /**
2375
2386
  * @description Named categories of identity documents.
2376
2387
  *
2377
2388
  * Served in the OpenAPI schema even though no response field carries one: the cluster is
2378
2389
  * derived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM
2379
- * conditions as `<step>.documentClass`. Clients that let an operator author those conditions
2390
+ * conditions as `<step>.documentCluster`. Clients that let an operator author those conditions
2380
2391
  * need the exact value set, and generating it beats transcribing it.
2381
2392
  * @enum {string}
2382
2393
  */
@@ -2493,7 +2504,7 @@ export interface components {
2493
2504
  [key: string]: components["schemas"]["DocumentTypeFilter"];
2494
2505
  } | null;
2495
2506
  enabledGovernmentProviders: {
2496
- [key: string]: components["schemas"]["SpidDocumentType"][];
2507
+ [key: string]: components["schemas"]["EidDocumentType"][];
2497
2508
  };
2498
2509
  /** @example { "en_button_label": "Next step" } */
2499
2510
  labels?: {
@@ -2618,6 +2629,13 @@ export interface components {
2618
2629
  data: {
2619
2630
  [key: string]: unknown;
2620
2631
  };
2632
+ /** @description The class of the document, the same whichever provider read it: `Passport`, `DriversLicense`,
2633
+ * `IdentificationCard`, `ResidenceDocument`, `Visa`, `TravelDocument`, `TaxIdentification`,
2634
+ * `MedicalCard`, `AlienId` (a foreign-national registration id) or `Unknown`. Derived from
2635
+ * `documentType`, the type the result stores: for a failed result it can be the document the
2636
+ * holder picked rather than the one read. A `documentType` the types above do not cover, or of
2637
+ * 0 (none read), reads `Unknown`. `null` when the result has no `documentType`. */
2638
+ documentClass?: string | null;
2621
2639
  /** Format: uuid */
2622
2640
  documentId?: string | null;
2623
2641
  /** Format: int32 */
@@ -3037,7 +3055,7 @@ export interface components {
3037
3055
  * @description Composed global risk score for the flow (0–100). `None` if not yet scored.
3038
3056
  */
3039
3057
  riskScorePercent?: number | null;
3040
- spidResults: components["schemas"]["SpidResult"][];
3058
+ eidResults: components["schemas"]["EidResult"][];
3041
3059
  status: components["schemas"]["VerificationRequestStatus"];
3042
3060
  /** Format: date-time */
3043
3061
  updatedAt?: string | null;
@@ -3141,7 +3159,7 @@ export interface components {
3141
3159
  /** Format: date-time */
3142
3160
  updatedAt?: string | null;
3143
3161
  } | {
3144
- config: components["schemas"]["SpidConfig"];
3162
+ config: components["schemas"]["EidConfig"];
3145
3163
  /** Format: date-time */
3146
3164
  createdAt?: string | null;
3147
3165
  failureUrl?: string | null;
@@ -3157,7 +3175,7 @@ export interface components {
3157
3175
  slug: string;
3158
3176
  successUrl?: string | null;
3159
3177
  /** @enum {string} */
3160
- type: "SPID";
3178
+ type: "EID";
3161
3179
  /** Format: date-time */
3162
3180
  updatedAt?: string | null;
3163
3181
  } | {
@@ -3388,9 +3406,9 @@ export interface components {
3388
3406
  stepType: "GEOLOCATION";
3389
3407
  })) | ({
3390
3408
  stepType: "FlowStepConfig";
3391
- } & (components["schemas"]["SpidConfig"] & {
3409
+ } & (components["schemas"]["EidConfig"] & {
3392
3410
  /** @enum {string} */
3393
- stepType: "SPID";
3411
+ stepType: "EID";
3394
3412
  })) | ({
3395
3413
  stepType: "FlowStepConfig";
3396
3414
  } & (components["schemas"]["PhoneConfig"] & {
@@ -3441,9 +3459,9 @@ export interface components {
3441
3459
  /** @enum {string} */
3442
3460
  type: "POA";
3443
3461
  } | {
3444
- data: components["schemas"]["SpidStepOutput"];
3462
+ data: components["schemas"]["EidStepOutput"];
3445
3463
  /** @enum {string} */
3446
- type: "SPID";
3464
+ type: "EID";
3447
3465
  } | {
3448
3466
  data: components["schemas"]["WalletStepOutput"];
3449
3467
  /** @enum {string} */
@@ -3494,7 +3512,7 @@ export interface components {
3494
3512
  type: "KYB_DIRECTORS";
3495
3513
  };
3496
3514
  /** @enum {string} */
3497
- FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION" | "KYB_DOCUMENTS" | "KYB_UBOS" | "KYB_DIRECTORS";
3515
+ FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "EID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION" | "KYB_DOCUMENTS" | "KYB_UBOS" | "KYB_DIRECTORS";
3498
3516
  Form: {
3499
3517
  /** Format: date-time */
3500
3518
  createdAt?: string | null;
@@ -5267,7 +5285,7 @@ export interface components {
5267
5285
  verificationRequestId: string;
5268
5286
  };
5269
5287
  /** @enum {string} */
5270
- ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM" | "AML" | "TRANSACTION_MONITORING" | "TIN_CHECK";
5288
+ ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "EID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM" | "AML" | "TRANSACTION_MONITORING" | "TIN_CHECK";
5271
5289
  /** @description Payload for `POST .../kyb-cases/{case_id}/documents/purchase`. */
5272
5290
  PurchaseDocumentsPayload: {
5273
5291
  /** @description Document ids from a freshly-refreshed catalogue. Between 1 and 25. */
@@ -5686,10 +5704,10 @@ export interface components {
5686
5704
  };
5687
5705
  /** @enum {string} */
5688
5706
  SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
5689
- SpidConfig: {
5707
+ EidConfig: {
5690
5708
  /**
5691
5709
  * Format: uuid
5692
- * @description The ID of the document-selection step that precedes this SPID step in the flow.
5710
+ * @description The ID of the document-selection step that precedes this eID step in the flow.
5693
5711
  */
5694
5712
  documentSelectionStepId?: string;
5695
5713
  /** @example { "default": "Next step" } */
@@ -5698,8 +5716,8 @@ export interface components {
5698
5716
  };
5699
5717
  };
5700
5718
  /** @enum {string} */
5701
- SpidDocumentType: "ITALIAN_SPID" | "AADHAAR";
5702
- SpidResult: {
5719
+ EidDocumentType: "ITALIAN_SPID" | "AADHAAR";
5720
+ EidResult: {
5703
5721
  /** Format: date-time */
5704
5722
  createdAt?: string | null;
5705
5723
  flowStep?: null | components["schemas"]["FlowStep"];
@@ -5715,7 +5733,7 @@ export interface components {
5715
5733
  /** Format: uuid */
5716
5734
  verificationRequestId?: string | null;
5717
5735
  };
5718
- SpidResultDetails: {
5736
+ EidResultDetails: {
5719
5737
  address?: string | null;
5720
5738
  companyName?: string | null;
5721
5739
  companyVatNumber?: string | null;
@@ -5735,7 +5753,7 @@ export interface components {
5735
5753
  spidCode?: string | null;
5736
5754
  username?: string | null;
5737
5755
  };
5738
- SpidStepOutput: {
5756
+ EidStepOutput: {
5739
5757
  status: components["schemas"]["ResultStatus"];
5740
5758
  };
5741
5759
  StartGeolocationVerificationRequest: Record<string, unknown>;
@@ -6348,7 +6366,7 @@ export interface components {
6348
6366
  poaResult?: null | components["schemas"]["PoaResult"];
6349
6367
  reason?: string | null;
6350
6368
  replayerZid?: string | null;
6351
- spidResult?: null | components["schemas"]["SpidResult"];
6369
+ eidResult?: null | components["schemas"]["EidResult"];
6352
6370
  status: components["schemas"]["VerificationRequestStatus"];
6353
6371
  /** Format: date-time */
6354
6372
  updatedAt?: string | null;
@@ -6430,7 +6448,7 @@ export interface components {
6430
6448
  * you do not recognise.
6431
6449
  * @enum {string}
6432
6450
  */
6433
- WebhookEventType: "verification.dv.completed" | "verification.dv.failed" | "verification.dv.review" | "verification.poa.completed" | "verification.poa.failed" | "verification.poa.review" | "verification.form.completed" | "verification.form.failed" | "verification.form.review" | "verification.spid.completed" | "verification.spid.failed" | "verification.spid.review" | "verification.phone.completed" | "verification.phone.failed" | "verification.phone.review" | "verification.wallet.completed" | "verification.wallet.failed" | "verification.wallet.review" | "verification.kyb.completed" | "verification.kyb.failed" | "verification.kyb.review" | "verification.kyb.submitted" | "verification.geolocation.completed" | "verification.geolocation.failed" | "verification.geolocation.review" | "verification.aml.produced" | "verification.aml.refreshed" | "verification.aml.moderated" | "verification.document.expired" | "verification.kyc.expired" | "flow.risk.reevaluated" | "flow.completed" | "transaction.alert.created" | "transaction.alert.resolved" | "kyc_passport.verification.updated";
6451
+ WebhookEventType: "verification.dv.completed" | "verification.dv.failed" | "verification.dv.review" | "verification.poa.completed" | "verification.poa.failed" | "verification.poa.review" | "verification.form.completed" | "verification.form.failed" | "verification.form.review" | "verification.eid.completed" | "verification.eid.failed" | "verification.eid.review" | "verification.phone.completed" | "verification.phone.failed" | "verification.phone.review" | "verification.wallet.completed" | "verification.wallet.failed" | "verification.wallet.review" | "verification.kyb.completed" | "verification.kyb.failed" | "verification.kyb.review" | "verification.kyb.submitted" | "verification.geolocation.completed" | "verification.geolocation.failed" | "verification.geolocation.review" | "verification.aml.produced" | "verification.aml.refreshed" | "verification.aml.moderated" | "verification.document.expired" | "verification.kyc.expired" | "flow.risk.reevaluated" | "flow.completed" | "transaction.alert.created" | "transaction.alert.resolved" | "kyc_passport.verification.updated";
6434
6452
  /**
6435
6453
  * @description Which payload shape an endpoint receives.
6436
6454
  * @enum {string}
@@ -6450,7 +6468,7 @@ export interface components {
6450
6468
  * AML screening).
6451
6469
  * @enum {string}
6452
6470
  */
6453
- WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "SPID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW" | "TM" | "KYB_CASE";
6471
+ WorkerType: "DV" | "LIVENESS" | "AML" | "POA" | "EID" | "FORM" | "ONE_CLICK_DV" | "ONE_CLICK_FORM" | "MANUAL_REVIEW" | "TM" | "KYB_CASE";
6454
6472
  /** @description Context data available to JDM rules during flow evaluation.
6455
6473
  *
6456
6474
  * This structure is serialized to JSON and passed to the Zen Engine for evaluation.
@@ -6488,8 +6506,8 @@ export interface components {
6488
6506
  phoneResults: components["schemas"]["PhoneResult"][];
6489
6507
  /** @description Proof of address results */
6490
6508
  poaResults: components["schemas"]["PoaResult"][];
6491
- /** @description SPID verification results */
6492
- spidResults: components["schemas"]["SpidResult"][];
6509
+ /** @description eID verification results */
6510
+ eidResults: components["schemas"]["EidResult"][];
6493
6511
  /** @description Wallet verification results */
6494
6512
  walletResults: components["schemas"]["WalletResult"][];
6495
6513
  };
package/dist/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "zyphe-sdk",
5
5
  "description": "",
6
- "version": "3.9.0"
6
+ "version": "3.9.2"
7
7
  },
8
8
  "paths": {
9
9
  "/flows/{slug}/fullflow": {
@@ -6752,7 +6752,7 @@
6752
6752
  "AML_SCREENED",
6753
6753
  "TIN_CHECK_RUN",
6754
6754
  "POA_RESULT_STATUS_CHANGED",
6755
- "SPID_RESULT_STATUS_CHANGED",
6755
+ "EID_RESULT_STATUS_CHANGED",
6756
6756
  "FORM_RESULT_STATUS_CHANGED",
6757
6757
  "FORM_RESULT_SUBMITTED",
6758
6758
  "KYB_APPLICATION_SUBMITTED",
@@ -7114,7 +7114,7 @@
7114
7114
  "DocumentSelection",
7115
7115
  "GeolocationResult",
7116
7116
  "PhoneVerification",
7117
- "SpidResult",
7117
+ "EidResult",
7118
7118
  "WalletVerification",
7119
7119
  "Vault",
7120
7120
  "KybUboData",
@@ -9080,9 +9080,25 @@
9080
9080
  }
9081
9081
  }
9082
9082
  },
9083
+ "DocumentClassName": {
9084
+ "type": "string",
9085
+ "description": "The classes the API names a document with: the `documentClass` of a DV result, of the V2 webhook\nand of the `DOCUMENT_EXPIRED` notification, and the `<step>.documentClass` of a flow rule.\n\nServed in the OpenAPI schema even though no response field carries one: the fields stay\nstrings, so a new class is not a breaking change for a client, but a client that lets an\noperator author conditions on the class needs the exact value set, and generating it beats\ntranscribing it. The variants are in the order such a client offers them.",
9086
+ "enum": [
9087
+ "IdentificationCard",
9088
+ "DriversLicense",
9089
+ "Passport",
9090
+ "ResidenceDocument",
9091
+ "Visa",
9092
+ "TravelDocument",
9093
+ "TaxIdentification",
9094
+ "MedicalCard",
9095
+ "AlienId",
9096
+ "Unknown"
9097
+ ]
9098
+ },
9083
9099
  "DocumentClusterName": {
9084
9100
  "type": "string",
9085
- "description": "Named categories of identity documents.\n\nServed in the OpenAPI schema even though no response field carries one: the cluster is\nderived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM\nconditions as `<step>.documentClass`. Clients that let an operator author those conditions\nneed the exact value set, and generating it beats transcribing it.",
9101
+ "description": "Named categories of identity documents.\n\nServed in the OpenAPI schema even though no response field carries one: the cluster is\nderived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM\nconditions as `<step>.documentCluster`. Clients that let an operator author those conditions\nneed the exact value set, and generating it beats transcribing it.",
9086
9102
  "enum": [
9087
9103
  "ID_CARDS",
9088
9104
  "PASSPORTS",
@@ -9335,7 +9351,7 @@
9335
9351
  "additionalProperties": {
9336
9352
  "type": "array",
9337
9353
  "items": {
9338
- "$ref": "#/components/schemas/SpidDocumentType"
9354
+ "$ref": "#/components/schemas/EidDocumentType"
9339
9355
  }
9340
9356
  },
9341
9357
  "propertyNames": {
@@ -9705,6 +9721,13 @@
9705
9721
  "type": "string"
9706
9722
  }
9707
9723
  },
9724
+ "documentClass": {
9725
+ "type": [
9726
+ "string",
9727
+ "null"
9728
+ ],
9729
+ "description": "The class of the document, the same whichever provider read it: `Passport`, `DriversLicense`,\n`IdentificationCard`, `ResidenceDocument`, `Visa`, `TravelDocument`, `TaxIdentification`,\n`MedicalCard`, `AlienId` (a foreign-national registration id) or `Unknown`. Derived from\n`documentType`, the type the result stores: for a failed result it can be the document the\nholder picked rather than the one read. A `documentType` the types above do not cover, or of\n0 (none read), reads `Unknown`. `null` when the result has no `documentType`."
9730
+ },
9708
9731
  "documentId": {
9709
9732
  "type": [
9710
9733
  "string",
@@ -10945,7 +10968,7 @@
10945
10968
  "amlResults",
10946
10969
  "formResults",
10947
10970
  "kybResults",
10948
- "spidResults",
10971
+ "eidResults",
10949
10972
  "phoneResults",
10950
10973
  "walletResults",
10951
10974
  "jdmData",
@@ -11083,10 +11106,10 @@
11083
11106
  "format": "int32",
11084
11107
  "description": "Composed global risk score for the flow (0–100). `None` if not yet scored."
11085
11108
  },
11086
- "spidResults": {
11109
+ "eidResults": {
11087
11110
  "type": "array",
11088
11111
  "items": {
11089
- "$ref": "#/components/schemas/SpidResult"
11112
+ "$ref": "#/components/schemas/EidResult"
11090
11113
  }
11091
11114
  },
11092
11115
  "status": {
@@ -11471,7 +11494,7 @@
11471
11494
  ],
11472
11495
  "properties": {
11473
11496
  "config": {
11474
- "$ref": "#/components/schemas/SpidConfig"
11497
+ "$ref": "#/components/schemas/EidConfig"
11475
11498
  },
11476
11499
  "createdAt": {
11477
11500
  "type": [
@@ -11520,7 +11543,7 @@
11520
11543
  "type": {
11521
11544
  "type": "string",
11522
11545
  "enum": [
11523
- "SPID"
11546
+ "EID"
11524
11547
  ]
11525
11548
  },
11526
11549
  "updatedAt": {
@@ -12397,7 +12420,7 @@
12397
12420
  {
12398
12421
  "allOf": [
12399
12422
  {
12400
- "$ref": "#/components/schemas/SpidConfig"
12423
+ "$ref": "#/components/schemas/EidConfig"
12401
12424
  },
12402
12425
  {
12403
12426
  "type": "object",
@@ -12408,7 +12431,7 @@
12408
12431
  "stepType": {
12409
12432
  "type": "string",
12410
12433
  "enum": [
12411
- "SPID"
12434
+ "EID"
12412
12435
  ]
12413
12436
  }
12414
12437
  }
@@ -12621,12 +12644,12 @@
12621
12644
  ],
12622
12645
  "properties": {
12623
12646
  "data": {
12624
- "$ref": "#/components/schemas/SpidStepOutput"
12647
+ "$ref": "#/components/schemas/EidStepOutput"
12625
12648
  },
12626
12649
  "type": {
12627
12650
  "type": "string",
12628
12651
  "enum": [
12629
- "SPID"
12652
+ "EID"
12630
12653
  ]
12631
12654
  }
12632
12655
  }
@@ -12859,7 +12882,7 @@
12859
12882
  "FORM",
12860
12883
  "POA",
12861
12884
  "KYB",
12862
- "SPID",
12885
+ "EID",
12863
12886
  "PHONE",
12864
12887
  "WALLET",
12865
12888
  "LIVENESS",
@@ -17611,7 +17634,7 @@
17611
17634
  "POA",
17612
17635
  "KYB",
17613
17636
  "KYC_PASSPORT",
17614
- "SPID",
17637
+ "EID",
17615
17638
  "PHONE",
17616
17639
  "WALLET",
17617
17640
  "EXPORT_API",
@@ -18853,13 +18876,13 @@
18853
18876
  "SOLANA_TESTNET"
18854
18877
  ]
18855
18878
  },
18856
- "SpidConfig": {
18879
+ "EidConfig": {
18857
18880
  "type": "object",
18858
18881
  "properties": {
18859
18882
  "documentSelectionStepId": {
18860
18883
  "type": "string",
18861
18884
  "format": "uuid",
18862
- "description": "The ID of the document-selection step that precedes this SPID step in the flow."
18885
+ "description": "The ID of the document-selection step that precedes this eID step in the flow."
18863
18886
  },
18864
18887
  "labels": {
18865
18888
  "type": "object",
@@ -18873,14 +18896,14 @@
18873
18896
  }
18874
18897
  }
18875
18898
  },
18876
- "SpidDocumentType": {
18899
+ "EidDocumentType": {
18877
18900
  "type": "string",
18878
18901
  "enum": [
18879
18902
  "ITALIAN_SPID",
18880
18903
  "AADHAAR"
18881
18904
  ]
18882
18905
  },
18883
- "SpidResult": {
18906
+ "EidResult": {
18884
18907
  "type": "object",
18885
18908
  "required": [
18886
18909
  "id",
@@ -18944,7 +18967,7 @@
18944
18967
  }
18945
18968
  }
18946
18969
  },
18947
- "SpidResultDetails": {
18970
+ "EidResultDetails": {
18948
18971
  "type": "object",
18949
18972
  "properties": {
18950
18973
  "address": {
@@ -19057,7 +19080,7 @@
19057
19080
  }
19058
19081
  }
19059
19082
  },
19060
- "SpidStepOutput": {
19083
+ "EidStepOutput": {
19061
19084
  "type": "object",
19062
19085
  "required": [
19063
19086
  "status"
@@ -20764,13 +20787,13 @@
20764
20787
  "null"
20765
20788
  ]
20766
20789
  },
20767
- "spidResult": {
20790
+ "eidResult": {
20768
20791
  "oneOf": [
20769
20792
  {
20770
20793
  "type": "null"
20771
20794
  },
20772
20795
  {
20773
- "$ref": "#/components/schemas/SpidResult"
20796
+ "$ref": "#/components/schemas/EidResult"
20774
20797
  }
20775
20798
  ]
20776
20799
  },
@@ -21074,9 +21097,9 @@
21074
21097
  "verification.form.completed",
21075
21098
  "verification.form.failed",
21076
21099
  "verification.form.review",
21077
- "verification.spid.completed",
21078
- "verification.spid.failed",
21079
- "verification.spid.review",
21100
+ "verification.eid.completed",
21101
+ "verification.eid.failed",
21102
+ "verification.eid.review",
21080
21103
  "verification.phone.completed",
21081
21104
  "verification.phone.failed",
21082
21105
  "verification.phone.review",
@@ -21157,7 +21180,7 @@
21157
21180
  "LIVENESS",
21158
21181
  "AML",
21159
21182
  "POA",
21160
- "SPID",
21183
+ "EID",
21161
21184
  "FORM",
21162
21185
  "ONE_CLICK_DV",
21163
21186
  "ONE_CLICK_FORM",
@@ -21175,7 +21198,7 @@
21175
21198
  "amlResults",
21176
21199
  "formResults",
21177
21200
  "kybResults",
21178
- "spidResults",
21201
+ "eidResults",
21179
21202
  "phoneResults",
21180
21203
  "walletResults",
21181
21204
  "customData"
@@ -21252,12 +21275,12 @@
21252
21275
  },
21253
21276
  "description": "Proof of address results"
21254
21277
  },
21255
- "spidResults": {
21278
+ "eidResults": {
21256
21279
  "type": "array",
21257
21280
  "items": {
21258
- "$ref": "#/components/schemas/SpidResult"
21281
+ "$ref": "#/components/schemas/EidResult"
21259
21282
  },
21260
- "description": "SPID verification results"
21283
+ "description": "eID verification results"
21261
21284
  },
21262
21285
  "walletResults": {
21263
21286
  "type": "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyphe-sdk/core",
3
- "version": "0.9.0",
3
+ "version": "0.11.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",