@nexeraid/identity-schemas 2.136.0-dev → 2.138.0-dev

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.
Files changed (46) hide show
  1. package/dist/{CoinMarketCap.schema-9a98b8e0.cjs.prod.cjs → CoinMarketCap.schema-0b9a1a1f.cjs.prod.cjs} +77 -29
  2. package/dist/{CoinMarketCap.schema-dbdf1818.esm.mjs → CoinMarketCap.schema-1f7c752b.esm.mjs} +70 -29
  3. package/dist/{CoinMarketCap.schema-8c548a7a.cjs.dev.cjs → CoinMarketCap.schema-241ef125.cjs.dev.cjs} +77 -29
  4. package/dist/declarations/src/providers/kyb-sessions.schema.d.ts +16 -16
  5. package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +879 -719
  6. package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts.map +1 -1
  7. package/dist/declarations/src/providers/sumsub/sumsub-webhooks.schema.d.ts +3 -3
  8. package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts +113 -44
  9. package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts.map +1 -1
  10. package/dist/declarations/src/transaction.schema.d.ts +31 -7
  11. package/dist/declarations/src/transaction.schema.d.ts.map +1 -1
  12. package/dist/{identity-api.schema-99868677.cjs.prod.cjs → identity-api.schema-68f0860b.cjs.prod.cjs} +1 -1
  13. package/dist/{identity-api.schema-b75987f3.esm.mjs → identity-api.schema-808c5bcf.esm.mjs} +1 -1
  14. package/dist/{identity-api.schema-78bf8d90.cjs.dev.cjs → identity-api.schema-f4262095.cjs.dev.cjs} +1 -1
  15. package/dist/nexeraid-identity-schemas.cjs.dev.cjs +6 -5
  16. package/dist/nexeraid-identity-schemas.cjs.prod.cjs +6 -5
  17. package/dist/nexeraid-identity-schemas.esm.mjs +6 -6
  18. package/dist/package.json +1 -1
  19. package/dist/{tfhe-utilities-1cfcaf82.esm.mjs → tfhe-utilities-3656f2ca.esm.mjs} +2 -2
  20. package/dist/{tfhe-utilities-ace3df7b.cjs.prod.cjs → tfhe-utilities-9bd9c981.cjs.prod.cjs} +2 -2
  21. package/dist/{tfhe-utilities-e7994d08.cjs.dev.cjs → tfhe-utilities-fedaef1f.cjs.dev.cjs} +2 -2
  22. package/dist/{toArray-a1e551de.esm.mjs → toArray-07d8f1c2.esm.mjs} +1 -1
  23. package/dist/{toArray-360ed8fc.cjs.prod.cjs → toArray-1c8dc217.cjs.prod.cjs} +1 -1
  24. package/dist/{toArray-2f35114e.cjs.dev.cjs → toArray-f9f50575.cjs.dev.cjs} +1 -1
  25. package/dist/{vault.schema-674269b9.cjs.dev.cjs → vault.schema-6bdf1394.cjs.prod.cjs} +10 -5
  26. package/dist/{vault.schema-fae426cb.cjs.prod.cjs → vault.schema-ca8b1f74.cjs.dev.cjs} +10 -5
  27. package/dist/{vault.schema-c5f3a10b.esm.mjs → vault.schema-fb877b1d.esm.mjs} +10 -6
  28. package/dist/{zod-utils-60c2507e.cjs.dev.cjs → zod-utils-608804f0.cjs.dev.cjs} +2 -2
  29. package/dist/{zod-utils-e10925b6.cjs.prod.cjs → zod-utils-60dd379f.cjs.prod.cjs} +2 -2
  30. package/dist/{zod-utils-eaa787ae.esm.mjs → zod-utils-dc456892.esm.mjs} +2 -2
  31. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +2 -2
  32. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +2 -2
  33. package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
  34. package/package.json +1 -1
  35. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +10 -3
  36. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +10 -3
  37. package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
  38. package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +3 -3
  39. package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +3 -3
  40. package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +3 -3
  41. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
  42. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
  43. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
  44. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +4 -4
  45. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +4 -4
  46. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +4 -4
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var zod = require('zod');
4
- var vault_schema = require('./vault.schema-674269b9.cjs.dev.cjs');
5
- var identityApi_schema = require('./identity-api.schema-78bf8d90.cjs.dev.cjs');
4
+ var vault_schema = require('./vault.schema-ca8b1f74.cjs.dev.cjs');
5
+ var identityApi_schema = require('./identity-api.schema-f4262095.cjs.dev.cjs');
6
6
 
7
7
  var IpQualityAnalysisRequest = zod.z.object({
8
8
  apiKey: zod.z.string().nullish(),
@@ -399,7 +399,7 @@ var StepTypes = ["ID_DOCUMENT", "LIVENESS", "PROOF_OF_ADDRESS", "PHONE", "EMAIL"
399
399
  var StepType = zod.z["enum"](StepTypes);
400
400
  var ReasonCodes = ["FORGED_REJECTION", "DOCUMENT_HIDDEN", "BAD_ENVIRONMENT", "BLACK_WHITE_PICTURE", "BAD_QUALITY", "DOCUMENT_COMPLIANCE", "IDENTITY_DOCUMENT_EXPIRED", "DOCUMENT_INVALID_FRONT_SIDE", "DOCUMENT_INVALID_BACK_SIDE", "IDENTITY_DOCUMENT_DOB_DATE_MINOR", "RESTRICTED_NATIONALITY_TYPE", "DUPLICATE_USER", ""];
401
401
  var ReasonCode = zod.z["enum"](ReasonCodes);
402
- var File = zod.z.object({
402
+ var File$1 = zod.z.object({
403
403
  url: zod.z.string(),
404
404
  type: zod.z.string(),
405
405
  size: zod.z.number(),
@@ -419,13 +419,13 @@ var DocumentIdMetadata = zod.z.object({
419
419
  nationality: zod.z.string()
420
420
  }),
421
421
  files: zod.z.object({
422
- front: File.nullish(),
423
- back: File.nullish(),
424
- face: File.nullish()
422
+ front: File$1.nullish(),
423
+ back: File$1.nullish(),
424
+ face: File$1.nullish()
425
425
  }),
426
426
  original_files: zod.z.object({
427
- front: File.nullish(),
428
- back: File.nullish()
427
+ front: File$1.nullish(),
428
+ back: File$1.nullish()
429
429
  })
430
430
  });
431
431
  var ProofOfAddressDocumentTypes = ["ELECTRICITY_BILL", "INTERNET_BILL", "LANDLINE_BILL", "WATER_BILL", "GAS_BILL", "BANK_STATEMENT"];
@@ -435,12 +435,12 @@ var ProofOfAddressMetadata = zod.z.object({
435
435
  type: ProofOfAddressDocumentType,
436
436
  host_id_document: zod.z.object({}),
437
437
  files: zod.z.object({
438
- proof: File.nullish(),
439
- accomodation: File.nullish()
438
+ proof: File$1.nullish(),
439
+ accomodation: File$1.nullish()
440
440
  }),
441
441
  original_files: zod.z.object({
442
- proof: File.nullish(),
443
- accomodation: File.nullish()
442
+ proof: File$1.nullish(),
443
+ accomodation: File$1.nullish()
444
444
  }),
445
445
  fields: zod.z.object({
446
446
  address: zod.z.string(),
@@ -451,7 +451,7 @@ var ProofOfAddressMetadata = zod.z.object({
451
451
  });
452
452
  var LivenessMetadata = zod.z.object({
453
453
  liveness: zod.z.object({
454
- file: File
454
+ file: File$1
455
455
  })
456
456
  });
457
457
  var PhoneMetadata = zod.z.object({
@@ -1657,7 +1657,7 @@ var SUMSUB_REVIEW_REJECT_LABELS_DESCRIPTION = {
1657
1657
  * SELFIE Selfie step.
1658
1658
  * SELFIE2 2nd selfie step.
1659
1659
  */
1660
- var SUMSUB_STEPS = ["PHONE_VERIFICATION", "EMAIL_VERIFICATION", "QUESTIONNAIRE", "APPLICANT_DATA", "IDENTITY", "IDENTITY2", "IDENTITY3", "IDENTITY4", "PROOF_OF_RESIDENCE", "PROOF_OF_RESIDENCE2", "SELFIE", "SELFIE2", "COMPANY"];
1660
+ var SUMSUB_STEPS = ["PHONE_VERIFICATION", "EMAIL_VERIFICATION", "QUESTIONNAIRE", "APPLICANT_DATA", "IDENTITY", "IDENTITY2", "IDENTITY3", "IDENTITY4", "PROOF_OF_RESIDENCE", "PROOF_OF_RESIDENCE2", "SELFIE", "SELFIE2", "COMPANY", "COMPANY_DATA", "COMPANY_DOCUMENTS", "COMPANY_BENEFICIARIES"];
1661
1661
  var SumSubStep = zod.z["enum"](SUMSUB_STEPS);
1662
1662
  var SUMSUB_APPLICANT_TYPES = ["individual", "company"];
1663
1663
  var SumSubApplicantType = zod.z["enum"](SUMSUB_APPLICANT_TYPES);
@@ -1670,6 +1670,12 @@ var SUMSUB_REVIEW_ANSWERS = ["GREEN", "RED", "YELLOW"];
1670
1670
  var SumSubReviewAnswer = zod.z["enum"](SUMSUB_REVIEW_ANSWERS);
1671
1671
  var SUMSUB_REVIEW_REJECT_TYPES = ["FINAL", "RETRY"];
1672
1672
  var SumSubReviewRejectType = zod.z["enum"](SUMSUB_REVIEW_REJECT_TYPES);
1673
+ var SumsubCountryCode = zod.z.union([vault_schema.ISO3CountryCode, zod.z.literal("RKS")]); // SumSub uses RKS for Kosovo instead of XKX
1674
+
1675
+ var PreprocessedSumSubISO3CountryCode = zod.z.preprocess(function (country) {
1676
+ return country === "RKS" ? "XKX" : country;
1677
+ }, vault_schema.ISO3CountryCode);
1678
+
1673
1679
  /**
1674
1680
  * Type Optional Description
1675
1681
  * country String Yes Alpha-3 country code.
@@ -1681,7 +1687,7 @@ var SumSubReviewRejectType = zod.z["enum"](SUMSUB_REVIEW_REJECT_TYPES);
1681
1687
  * #
1682
1688
  */
1683
1689
  var SumSubAddress = zod.z.object({
1684
- country: vault_schema.ISO3CountryCode.optional(),
1690
+ country: PreprocessedSumSubISO3CountryCode.optional(),
1685
1691
  postCode: zod.z.string().optional(),
1686
1692
  town: zod.z.string().optional(),
1687
1693
  street: zod.z.string().optional(),
@@ -1745,21 +1751,32 @@ var SumSubApplicantInfo = zod.z.object({
1745
1751
  gender: zod.z.string().optional().describe("Male or Female"),
1746
1752
  dob: zod.z.string().optional().describe("Date of birth (format YYYY-mm-dd, e.g. 2001-09-25)."),
1747
1753
  placeOfBirth: zod.z.string().optional().describe("Place of birth."),
1748
- country: vault_schema.ISO3CountryCode.optional(),
1749
- nationality: vault_schema.ISO3CountryCode.optional(),
1754
+ country: PreprocessedSumSubISO3CountryCode.optional(),
1755
+ nationality: PreprocessedSumSubISO3CountryCode.optional(),
1750
1756
  addresses: zod.z.array(SumSubAddress).optional().describe("List of addresses."),
1751
1757
  idDocs: zod.z.array(SumSubIdDocs).optional().describe("Represents the set of data recognized from uploaded documents."),
1752
1758
  tin: zod.z.string().optional().describe("Tax Identification Number.")
1753
1759
  });
1754
1760
  var INDIVIDUAL_BENEFICIARY_RELATIONS = ["director", "shareholder", "other"];
1755
1761
  var IndividualBeneficiaryRelation = zod.z.union([zod.z["enum"](INDIVIDUAL_BENEFICIARY_RELATIONS), zod.z.string()]);
1756
- var BENEFICIARY_TYPES = ["ubo", "shareholder", "representative"];
1762
+ var BENEFICIARY_TYPES = ["ubo", "shareholder", "representative", "director"];
1757
1763
  var BeneficiaryType = zod.z["enum"](BENEFICIARY_TYPES);
1758
1764
  var BeneficiaryCompanyCustomerClaims = zod.z.object({
1759
1765
  applicantId: zod.z.string(),
1760
- type: BeneficiaryType,
1761
- positions: zod.z.array(zod.z.string()).nullish(),
1766
+ /**
1767
+ * @deprecated Types should be used instead in V2 SDK. Type is not populated in v2 sumsub sdk
1768
+ */
1769
+ type: BeneficiaryType.nullish(),
1770
+ // TODO: migrate to types
1771
+ /**
1772
+ * @deprecated Only available for Companies onboarded via Sumsub V1 SDK
1773
+ */
1762
1774
  inRegistry: zod.z["boolean"]().nullish(),
1775
+ types: BeneficiaryType.array().nullish(),
1776
+ /**
1777
+ * @deprecated Only available for Companies onboarded via Sumsub V1 SDK
1778
+ */
1779
+ positions: zod.z.array(zod.z.string()).nullish(),
1763
1780
  imageIds: zod.z.array(zod.z.string()).nullish(),
1764
1781
  shareSize: zod.z.coerce.number().nullish()
1765
1782
  });
@@ -1767,7 +1784,7 @@ var BeneficiaryCompanyCustomerClaimsArray = zod.z.array(BeneficiaryCompanyCustom
1767
1784
  var SumSubCompanyApplicantInfo = zod.z.object({
1768
1785
  companyName: zod.z.string(),
1769
1786
  registrationNumber: zod.z.string(),
1770
- country: vault_schema.ISO3CountryCode,
1787
+ country: PreprocessedSumSubISO3CountryCode,
1771
1788
  legalAddress: zod.z.string().nullish(),
1772
1789
  incorporatedOn: zod.z.coerce.date().nullish(),
1773
1790
  type: zod.z.string().nullish(),
@@ -1812,7 +1829,18 @@ var SumSubReviewStatus = zod.z["enum"](SUMSUB_REVIEW_STATUSES);
1812
1829
 
1813
1830
  var SUMSUB_DOC_TYPES = ["ID_CARD", "PASSPORT", "DRIVERS", "RESIDENCE_PERMIT", "UTILITY_BILL", "SELFIE", "VIDEO_SELFIE", "PROFILE_IMAGE", "ID_DOC_PHOTO", "AGREEMENT", "CONTRACT", "DRIVERS_TRANSLATION", "INVESTOR_DOC", "VEHICLE_REGISTRATION_CERTIFICATE", "INCOME_SOURCE", "PAYMENT_METHOD", "BANK_CARD", "COVID_VACCINATION_FORM", "OTHER"];
1814
1831
  var SumSubDocType = zod.z["enum"](SUMSUB_DOC_TYPES);
1815
- var SUMSUB_FLOW_LEVEL = ["basic-kyc-level", "basic-kyc-level+aml", "liveness-level", "id+liveness", "kyc", "phone-level", "kyc_video", "nid-idscan-selfie-por", "NID - ID Scan + Selfie + POR", "nid-idscan-selfie", "NIDKYB", "selfie", "ID Scan", "kyc-video-id+selfie", "kyc-video-id+selfie+por"];
1832
+ var SUMSUB_KYC_DOC_TYPES = ["ID_CARD", "PASSPORT", "DRIVERS"];
1833
+ var SumSubKycDocType = zod.z["enum"](SUMSUB_KYC_DOC_TYPES);
1834
+ var KYC_DOC_SIDES = ["FRONT_SIDE", "BACK_SIDE"];
1835
+ var KycDocSide = zod.z["enum"](KYC_DOC_SIDES);
1836
+ var SUMSUB_FLOW_LEVEL = [
1837
+ // SumSub v1 flow levels - kept for backward compatibility - Delete after SumSub v2 is fully deployed
1838
+ "basic-kyc-level", "basic-kyc-level-aml", "liveness-level", "id+liveness", "kyc", "phone-level", "kyc_video", "nid-idscan-selfie-por", "NID - ID Scan + Selfie + POR", "nid-idscan-selfie", "NIDKYB", "selfie", "ID Scan", "basic-kyc-level-v2-aml", "liveness-level-v2", "id-liveness-v2", "kyc-v2", "phone-level-v2", "kyc-video-v2", "nid-idscan-selfie-por-v2", "nid-idscan-selfie-por-v2", "nid-idscan-selfie-v2", "nid-kyb-v2", "kyc-video-id-selfie-v2", "kyc-video-id-selfie-por-v2",
1839
+ // END delete
1840
+
1841
+ // SumSub v2 flow levels - use these for new integrations
1842
+ "NIDKYB-SDKV2", "basic-kyc-level-v2", "selfie-v2", "id-scan-v2", "kyc-video-id+selfie" // v2 is still not supported
1843
+ ];
1816
1844
  var SumSubFlowLevel = zod.z["enum"](SUMSUB_FLOW_LEVEL);
1817
1845
  var SumSubRequiredIdDoc = zod.z.object({
1818
1846
  docSets: zod.z.array(zod.z.object({
@@ -1820,6 +1848,14 @@ var SumSubRequiredIdDoc = zod.z.object({
1820
1848
  types: zod.z.array(SumSubDocType).nullish()
1821
1849
  })).nullish()
1822
1850
  });
1851
+ var UploadDocumentRequest = zod.z.object({
1852
+ applicantId: zod.z.string(),
1853
+ country: vault_schema.ISO3CountryCode,
1854
+ customerId: zod.z.string().uuid(),
1855
+ cmsProjectId: zod.z.string(),
1856
+ sessionId: zod.z.string(),
1857
+ file: zod.z["instanceof"](File)
1858
+ });
1823
1859
 
1824
1860
  var SumSubReviewResultSchema = zod.z.object({
1825
1861
  reviewAnswer: SumSubReviewAnswer.optional(),
@@ -1885,18 +1921,18 @@ var SumSubIndividualApplicantSchema = zod.z.object({
1885
1921
  var SumSubCompanyApplicantSchema = zod.z.object({
1886
1922
  id: zod.z.string(),
1887
1923
  createdAt: zod.z.string(),
1888
- // key: z.string(),
1889
- // clientId: z.string(),
1890
1924
  inspectionId: zod.z.string(),
1891
1925
  externalUserId: zod.z.string(),
1892
1926
  info: zod.z.object({
1893
1927
  idDocs: zod.z.array(zod.z.object({
1894
1928
  idDocType: zod.z.string(),
1895
1929
  country: zod.z.string()
1896
- // documentId: z.string(), //Id from document table
1897
- })).nullish(),
1898
- companyInfo: SumSubCompanyApplicantInfo.nullish()
1930
+ })).nullish()
1899
1931
  }).nullish(),
1932
+ fixedInfo: zod.z.object({
1933
+ companyInfo: SumSubCompanyApplicantInfo.nullish()
1934
+ // More available fields in fixedInfo https://docs.sumsub.com/reference/get-applicant-data#fixedinfo-attributes
1935
+ }),
1900
1936
  applicantPlatform: zod.z.string(),
1901
1937
  ipCountry: zod.z.string().nullish(),
1902
1938
  agreement: zod.z.object({
@@ -1959,7 +1995,12 @@ var DocumentMetadataSchema = zod.z.object({
1959
1995
  placeOfBirth: zod.z.string().nullish(),
1960
1996
  issuedDate: zod.z.string().nullish(),
1961
1997
  validUntil: zod.z.string().nullish(),
1962
- number: zod.z.string().nullish()
1998
+ number: zod.z.string().nullish(),
1999
+ errors: zod.z.string().array().nullish(),
2000
+ warnings: zod.z.string().array().nullish()
2001
+ });
2002
+ var DocumentSubmitResponse = DocumentMetadataSchema.extend({
2003
+ imageId: SumSubImageId
1963
2004
  });
1964
2005
  var SumSubApplicantReviewStatusSchema = zod.z.object({
1965
2006
  createDate: zod.z.string().optional(),
@@ -2507,10 +2548,11 @@ exports.DocumentIdMetadata = DocumentIdMetadata;
2507
2548
  exports.DocumentIdType = DocumentIdType;
2508
2549
  exports.DocumentIdTypes = DocumentIdTypes;
2509
2550
  exports.DocumentMetadataSchema = DocumentMetadataSchema;
2551
+ exports.DocumentSubmitResponse = DocumentSubmitResponse;
2510
2552
  exports.EmailMetadata = EmailMetadata;
2511
2553
  exports.EmailVerificationAnalysisResponse = EmailVerificationAnalysisResponse;
2512
2554
  exports.EmailVerificationResponse = EmailVerificationResponse;
2513
- exports.File = File;
2555
+ exports.File = File$1;
2514
2556
  exports.GetCredentialsOutput = GetCredentialsOutput;
2515
2557
  exports.GetKybSessionInput = GetKybSessionInput;
2516
2558
  exports.GetKybSessionResponse = GetKybSessionResponse;
@@ -2536,12 +2578,14 @@ exports.IpqualityscoreProvider = IpqualityscoreProvider;
2536
2578
  exports.KYB_RESULTS = KYB_RESULTS;
2537
2579
  exports.KYB_SESSION_STATUSES = KYB_SESSION_STATUSES;
2538
2580
  exports.KYB_STEP_TYPES = KYB_STEP_TYPES;
2581
+ exports.KYC_DOC_SIDES = KYC_DOC_SIDES;
2539
2582
  exports.KYC_RESULTS = KYC_RESULTS;
2540
2583
  exports.KYC_SESSION_STATUSES = KYC_SESSION_STATUSES;
2541
2584
  exports.KYC_STEP_TYPES = KYC_STEP_TYPES;
2542
2585
  exports.KybResult = KybResult;
2543
2586
  exports.KybSessionStatus = KybSessionStatus;
2544
2587
  exports.KybStep = KybStep;
2588
+ exports.KycDocSide = KycDocSide;
2545
2589
  exports.KycResult = KycResult;
2546
2590
  exports.KycSessionStatus = KycSessionStatus;
2547
2591
  exports.KycStep = KycStep;
@@ -2594,6 +2638,7 @@ exports.SUMSUB_COMPANY_BENEFICIARY_GROUP = SUMSUB_COMPANY_BENEFICIARY_GROUP;
2594
2638
  exports.SUMSUB_DOC_TYPES = SUMSUB_DOC_TYPES;
2595
2639
  exports.SUMSUB_FLOW_LEVEL = SUMSUB_FLOW_LEVEL;
2596
2640
  exports.SUMSUB_KYB_SESSION_FLOW_SECTION_STATUS = SUMSUB_KYB_SESSION_FLOW_SECTION_STATUS;
2641
+ exports.SUMSUB_KYC_DOC_TYPES = SUMSUB_KYC_DOC_TYPES;
2597
2642
  exports.SUMSUB_MEDIA_CONTENT_TYPES = SUMSUB_MEDIA_CONTENT_TYPES;
2598
2643
  exports.SUMSUB_REVIEW_ANSWERS = SUMSUB_REVIEW_ANSWERS;
2599
2644
  exports.SUMSUB_REVIEW_REJECT_LABELS = SUMSUB_REVIEW_REJECT_LABELS;
@@ -2638,6 +2683,7 @@ exports.SumSubGenerateExternalWebSdkLinkSchema = SumSubGenerateExternalWebSdkLin
2638
2683
  exports.SumSubImageId = SumSubImageId;
2639
2684
  exports.SumSubImageReviewResultSchema = SumSubImageReviewResultSchema;
2640
2685
  exports.SumSubIndividualApplicantSchema = SumSubIndividualApplicantSchema;
2686
+ exports.SumSubKycDocType = SumSubKycDocType;
2641
2687
  exports.SumSubMediaContentType = SumSubMediaContentType;
2642
2688
  exports.SumSubRequiredIdDoc = SumSubRequiredIdDoc;
2643
2689
  exports.SumSubReviewAnswer = SumSubReviewAnswer;
@@ -2652,6 +2698,7 @@ exports.SumSubWebhookSchema = SumSubWebhookSchema;
2652
2698
  exports.SumsubApplicantType = SumsubApplicantType;
2653
2699
  exports.SumsubApplicantTypes = SumsubApplicantTypes;
2654
2700
  exports.SumsubCompanyBeneficiaryGroup = SumsubCompanyBeneficiaryGroup;
2701
+ exports.SumsubCountryCode = SumsubCountryCode;
2655
2702
  exports.SumsubKybDataSchema = SumsubKybDataSchema;
2656
2703
  exports.SumsubKybSessionFlowSection = SumsubKybSessionFlowSection;
2657
2704
  exports.SumsubKybSessionFlowSectionItem = SumsubKybSessionFlowSectionItem;
@@ -2677,6 +2724,7 @@ exports.UpdateProviderInput = UpdateProviderInput;
2677
2724
  exports.UpdateProviderResponse = UpdateProviderResponse;
2678
2725
  exports.UpdateSearchEntitiesInput = UpdateSearchEntitiesInput;
2679
2726
  exports.UpdateSearchInput = UpdateSearchInput;
2727
+ exports.UploadDocumentRequest = UploadDocumentRequest;
2680
2728
  exports.VideoKycMetaData = VideoKycMetaData;
2681
2729
  exports.WEBHOOK_TYPES = WEBHOOK_TYPES;
2682
2730
  exports.WebhookPayload = WebhookPayload;
@@ -44,7 +44,7 @@ export declare const BeneficiaryVerificationStatus: z.ZodObject<{
44
44
  calculatedResult: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Passed", "ToBeManuallyChecked", "Rejected", "Retry"]>>>;
45
45
  reviewAnswer: z.ZodOptional<z.ZodNullable<z.ZodEnum<["GREEN", "RED", "YELLOW"]>>>;
46
46
  reviewRejectType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["FINAL", "RETRY"]>>>;
47
- type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ubo", "shareholder", "representative"]>>>;
47
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ubo", "shareholder", "representative", "director"]>>>;
48
48
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
49
  levelName: z.ZodString;
50
50
  }, "strip", z.ZodTypeAny, {
@@ -52,7 +52,7 @@ export declare const BeneficiaryVerificationStatus: z.ZodObject<{
52
52
  applicantId: string;
53
53
  levelName: string;
54
54
  externalUserId: string;
55
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
55
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
56
56
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
57
57
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
58
58
  name?: string | null | undefined;
@@ -62,7 +62,7 @@ export declare const BeneficiaryVerificationStatus: z.ZodObject<{
62
62
  applicantId: string;
63
63
  levelName: string;
64
64
  externalUserId: string;
65
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
65
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
66
66
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
67
67
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
68
68
  name?: string | null | undefined;
@@ -76,7 +76,7 @@ export declare const BeneficiaryVerificationStatusArray: z.ZodArray<z.ZodObject<
76
76
  calculatedResult: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Passed", "ToBeManuallyChecked", "Rejected", "Retry"]>>>;
77
77
  reviewAnswer: z.ZodOptional<z.ZodNullable<z.ZodEnum<["GREEN", "RED", "YELLOW"]>>>;
78
78
  reviewRejectType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["FINAL", "RETRY"]>>>;
79
- type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ubo", "shareholder", "representative"]>>>;
79
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ubo", "shareholder", "representative", "director"]>>>;
80
80
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
81
  levelName: z.ZodString;
82
82
  }, "strip", z.ZodTypeAny, {
@@ -84,7 +84,7 @@ export declare const BeneficiaryVerificationStatusArray: z.ZodArray<z.ZodObject<
84
84
  applicantId: string;
85
85
  levelName: string;
86
86
  externalUserId: string;
87
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
87
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
88
88
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
89
89
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
90
90
  name?: string | null | undefined;
@@ -94,7 +94,7 @@ export declare const BeneficiaryVerificationStatusArray: z.ZodArray<z.ZodObject<
94
94
  applicantId: string;
95
95
  levelName: string;
96
96
  externalUserId: string;
97
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
97
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
98
98
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
99
99
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
100
100
  name?: string | null | undefined;
@@ -121,7 +121,7 @@ export declare const SelectKybSession: z.ZodObject<{
121
121
  calculatedResult: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Passed", "ToBeManuallyChecked", "Rejected", "Retry"]>>>;
122
122
  reviewAnswer: z.ZodOptional<z.ZodNullable<z.ZodEnum<["GREEN", "RED", "YELLOW"]>>>;
123
123
  reviewRejectType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["FINAL", "RETRY"]>>>;
124
- type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ubo", "shareholder", "representative"]>>>;
124
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ubo", "shareholder", "representative", "director"]>>>;
125
125
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
126
  levelName: z.ZodString;
127
127
  }, "strip", z.ZodTypeAny, {
@@ -129,7 +129,7 @@ export declare const SelectKybSession: z.ZodObject<{
129
129
  applicantId: string;
130
130
  levelName: string;
131
131
  externalUserId: string;
132
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
132
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
133
133
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
134
134
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
135
135
  name?: string | null | undefined;
@@ -139,7 +139,7 @@ export declare const SelectKybSession: z.ZodObject<{
139
139
  applicantId: string;
140
140
  levelName: string;
141
141
  externalUserId: string;
142
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
142
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
143
143
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
144
144
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
145
145
  name?: string | null | undefined;
@@ -167,7 +167,7 @@ export declare const SelectKybSession: z.ZodObject<{
167
167
  applicantId: string;
168
168
  levelName: string;
169
169
  externalUserId: string;
170
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
170
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
171
171
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
172
172
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
173
173
  name?: string | null | undefined;
@@ -194,7 +194,7 @@ export declare const SelectKybSession: z.ZodObject<{
194
194
  applicantId: string;
195
195
  levelName: string;
196
196
  externalUserId: string;
197
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
197
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
198
198
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
199
199
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
200
200
  name?: string | null | undefined;
@@ -231,7 +231,7 @@ export declare const GetKybSessionResponse: z.ZodObject<{
231
231
  calculatedResult: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Passed", "ToBeManuallyChecked", "Rejected", "Retry"]>>>;
232
232
  reviewAnswer: z.ZodOptional<z.ZodNullable<z.ZodEnum<["GREEN", "RED", "YELLOW"]>>>;
233
233
  reviewRejectType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["FINAL", "RETRY"]>>>;
234
- type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ubo", "shareholder", "representative"]>>>;
234
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ubo", "shareholder", "representative", "director"]>>>;
235
235
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
236
  levelName: z.ZodString;
237
237
  }, "strip", z.ZodTypeAny, {
@@ -239,7 +239,7 @@ export declare const GetKybSessionResponse: z.ZodObject<{
239
239
  applicantId: string;
240
240
  levelName: string;
241
241
  externalUserId: string;
242
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
242
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
243
243
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
244
244
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
245
245
  name?: string | null | undefined;
@@ -249,7 +249,7 @@ export declare const GetKybSessionResponse: z.ZodObject<{
249
249
  applicantId: string;
250
250
  levelName: string;
251
251
  externalUserId: string;
252
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
252
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
253
253
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
254
254
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
255
255
  name?: string | null | undefined;
@@ -277,7 +277,7 @@ export declare const GetKybSessionResponse: z.ZodObject<{
277
277
  applicantId: string;
278
278
  levelName: string;
279
279
  externalUserId: string;
280
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
280
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
281
281
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
282
282
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
283
283
  name?: string | null | undefined;
@@ -304,7 +304,7 @@ export declare const GetKybSessionResponse: z.ZodObject<{
304
304
  applicantId: string;
305
305
  levelName: string;
306
306
  externalUserId: string;
307
- type?: "shareholder" | "ubo" | "representative" | null | undefined;
307
+ type?: "director" | "shareholder" | "ubo" | "representative" | null | undefined;
308
308
  reviewAnswer?: "RED" | "YELLOW" | "GREEN" | null | undefined;
309
309
  reviewRejectType?: "FINAL" | "RETRY" | null | undefined;
310
310
  name?: string | null | undefined;