@nexeraid/identity-schemas 2.219.0 → 2.220.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 (58) hide show
  1. package/dist/declarations/src/customer.schema.d.ts +5 -0
  2. package/dist/declarations/src/customer.schema.d.ts.map +1 -1
  3. package/dist/declarations/src/identity/app-requests.schema.d.ts +37 -37
  4. package/dist/declarations/src/identity/identity-v2.schema.d.ts +9 -9
  5. package/dist/declarations/src/identity/kyc.schema.d.ts +9 -9
  6. package/dist/declarations/src/identity/scenario.schema.d.ts +34 -34
  7. package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -1
  8. package/dist/declarations/src/providers/customers.schema.d.ts +24 -3
  9. package/dist/declarations/src/providers/customers.schema.d.ts.map +1 -1
  10. package/dist/declarations/src/providers/kyb-sessions.schema.d.ts +79 -3
  11. package/dist/declarations/src/providers/kyb-sessions.schema.d.ts.map +1 -1
  12. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +37 -37
  13. package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +76 -76
  14. package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts +4 -4
  15. package/dist/declarations/src/vault/schemas/Customer.zod.d.ts +75 -0
  16. package/dist/declarations/src/vault/schemas/Customer.zod.d.ts.map +1 -1
  17. package/dist/declarations/src/vault/schemas/generated/Customer.schema.json.d.ts +275 -0
  18. package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts +16 -0
  19. package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts.map +1 -1
  20. package/dist/declarations/src/vault/vault.schema.d.ts +103 -0
  21. package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
  22. package/dist/declarations/src/webhooks/alert.schema.d.ts +2 -2
  23. package/dist/declarations/src/webhooks/alert.schema.d.ts.map +1 -1
  24. package/dist/{identity-api.schema-d38efa2a.cjs.dev.cjs → identity-api.schema-4ec9fdca.cjs.dev.cjs} +5 -16
  25. package/dist/{identity-api.schema-e336805b.cjs.prod.cjs → identity-api.schema-57bbbe51.cjs.prod.cjs} +5 -16
  26. package/dist/{identity-api.schema-f7d96e63.esm.mjs → identity-api.schema-82b97da7.esm.mjs} +5 -16
  27. package/dist/nexeraid-identity-schemas.cjs.dev.cjs +5 -5
  28. package/dist/nexeraid-identity-schemas.cjs.prod.cjs +5 -5
  29. package/dist/nexeraid-identity-schemas.esm.mjs +7 -7
  30. package/dist/{notabene.schema-c5527856.esm.mjs → notabene.schema-2cdf460c.esm.mjs} +35 -21
  31. package/dist/{notabene.schema-377df233.cjs.prod.cjs → notabene.schema-9c2c4151.cjs.prod.cjs} +36 -20
  32. package/dist/{notabene.schema-9d92b8f7.cjs.dev.cjs → notabene.schema-a574596c.cjs.dev.cjs} +36 -20
  33. package/dist/package.json +1 -1
  34. package/dist/{tfhe-utilities-8d11e34d.cjs.dev.cjs → tfhe-utilities-159b8167.cjs.dev.cjs} +2 -2
  35. package/dist/{tfhe-utilities-7737169b.cjs.prod.cjs → tfhe-utilities-79ebf91e.cjs.prod.cjs} +2 -2
  36. package/dist/{tfhe-utilities-071f5348.esm.mjs → tfhe-utilities-8dac8326.esm.mjs} +2 -2
  37. package/dist/{toArray-97f0e0e9.cjs.prod.cjs → toArray-79d56a87.cjs.prod.cjs} +1 -1
  38. package/dist/{toArray-e62b4fb4.esm.mjs → toArray-ce14afcd.esm.mjs} +1 -1
  39. package/dist/{toArray-a0017d51.cjs.dev.cjs → toArray-d3b505b6.cjs.dev.cjs} +1 -1
  40. package/dist/{vault.schema-11c98ace.cjs.prod.cjs → vault.schema-3e16092e.cjs.dev.cjs} +324 -6
  41. package/dist/{vault.schema-54409d8e.cjs.dev.cjs → vault.schema-9e61eba0.cjs.prod.cjs} +324 -6
  42. package/dist/{vault.schema-814e6950.esm.mjs → vault.schema-bfc68f42.esm.mjs} +324 -6
  43. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +2 -2
  44. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +2 -2
  45. package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
  46. package/package.json +2 -2
  47. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +5 -3
  48. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +5 -3
  49. package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
  50. package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +2 -2
  51. package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +2 -2
  52. package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +3 -3
  53. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
  54. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
  55. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
  56. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +6 -9
  57. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +6 -9
  58. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +6 -9
@@ -2977,21 +2977,16 @@ var Web2CreateSessionParams = z.z.object({
2977
2977
  additionalInformation: AdditionalCustomerInformationParams.optional()
2978
2978
  });
2979
2979
 
2980
- // Risk Score
2981
2980
  var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
2982
2981
  var RiskScoreType = z.z["enum"](RiskScoreTypes);
2983
- // Customer Type
2984
2982
  var CustomerTypes = ["Individual", "Company"];
2985
2983
  var CustomerType = z.z["enum"](CustomerTypes);
2986
- // KYC Onboarding Level
2987
2984
  var KycOnboardingLevels = ["Started", "Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
2988
2985
  var KycOnboardingLevel = z.z["enum"](KycOnboardingLevels);
2989
- // KYB Onboarding Level
2990
2986
  var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
2991
2987
  var KybOnboardingLevel = z.z["enum"](KybOnboardingLevels);
2992
2988
  var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
2993
2989
  var CustomerOnboardingLevel = z.z["enum"](CustomerOnboardingLevels);
2994
- // Customer Status
2995
2990
  var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
2996
2991
  var CustomerStatus = z.z["enum"](CustomerStatuses);
2997
2992
  var BasicCustomerContactInformation = z.z.object({
@@ -3025,7 +3020,12 @@ var CUSTOMER_AUTOMATION_REASONS = {
3025
3020
  },
3026
3021
  kyb: {
3027
3022
  green: {
3028
- "final": "Passed KYB"
3023
+ /** Sumsub single-stage success (KYB pass = terminal onboarding event). */
3024
+ "final": "Passed KYB",
3025
+ /** Topograph stage 1: company green; beneficiaries still verifying. */
3026
+ companyPassedAwaitingBeneficiaries: "Company KYB passed — awaiting beneficiary verification",
3027
+ /** Topograph stage 2: all beneficiaries GREEN; promotes to Active/Low/Onboarded. */
3028
+ fullyOnboarded: "All required parties verified — company onboarding complete"
3029
3029
  },
3030
3030
  yellow: {
3031
3031
  retry: "Company rejected by the KYB provider with possibility to retry",
@@ -3872,6 +3872,23 @@ var CustomerZodSchema = z.z.object({
3872
3872
  emailScore: z.z.number().optional(),
3873
3873
  phoneScore: z.z.number().optional()
3874
3874
  }).optional(),
3875
+ /** KYB / Sumsub company profile (from company_customer_claims). */
3876
+ companyIdentity: z.z.object({
3877
+ companyName: z.z.string().optional(),
3878
+ registrationNumber: z.z.string().optional(),
3879
+ country: ISO3CountryCode.optional(),
3880
+ legalAddress: z.z.string().optional(),
3881
+ /** ISO date (YYYY-MM-DD) */
3882
+ incorporatedOn: z.z.string().date().optional(),
3883
+ type: z.z.string().optional(),
3884
+ email: z.z.string().email().optional(),
3885
+ phone: z.z.string().optional(),
3886
+ controlScheme: z.z.string().optional(),
3887
+ taxId: z.z.string().optional(),
3888
+ registrationLocation: z.z.string().optional(),
3889
+ website: z.z.string().optional(),
3890
+ postalAddress: z.z.string().optional()
3891
+ }).optional(),
3875
3892
  attributes: z.z.object({
3876
3893
  status: CustomerStatus.optional(),
3877
3894
  riskLevel: RiskScoreType.optional(),
@@ -5505,6 +5522,307 @@ var CustomerJsonSchema = {
5505
5522
  },
5506
5523
  additionalProperties: false
5507
5524
  },
5525
+ companyIdentity: {
5526
+ type: "object",
5527
+ properties: {
5528
+ companyName: {
5529
+ type: "string"
5530
+ },
5531
+ registrationNumber: {
5532
+ type: "string"
5533
+ },
5534
+ country: {
5535
+ type: "string",
5536
+ "enum": [
5537
+ "AFG",
5538
+ "ALB",
5539
+ "DZA",
5540
+ "ASM",
5541
+ "AND",
5542
+ "AGO",
5543
+ "AIA",
5544
+ "ATA",
5545
+ "ATG",
5546
+ "ARG",
5547
+ "ARM",
5548
+ "ABW",
5549
+ "AUS",
5550
+ "AUT",
5551
+ "AZE",
5552
+ "BHS",
5553
+ "BHR",
5554
+ "BGD",
5555
+ "BRB",
5556
+ "BLR",
5557
+ "BEL",
5558
+ "BLZ",
5559
+ "BEN",
5560
+ "BMU",
5561
+ "BTN",
5562
+ "BOL",
5563
+ "BES",
5564
+ "BIH",
5565
+ "BWA",
5566
+ "BVT",
5567
+ "BRA",
5568
+ "IOT",
5569
+ "BRN",
5570
+ "BGR",
5571
+ "BFA",
5572
+ "BDI",
5573
+ "CPV",
5574
+ "KHM",
5575
+ "CMR",
5576
+ "CAN",
5577
+ "CYM",
5578
+ "CAF",
5579
+ "TCD",
5580
+ "CHL",
5581
+ "CHN",
5582
+ "CXR",
5583
+ "CCK",
5584
+ "COL",
5585
+ "COM",
5586
+ "COD",
5587
+ "COG",
5588
+ "COK",
5589
+ "CRI",
5590
+ "HRV",
5591
+ "CUB",
5592
+ "CUW",
5593
+ "CYP",
5594
+ "CZE",
5595
+ "CIV",
5596
+ "DNK",
5597
+ "DJI",
5598
+ "DMA",
5599
+ "DOM",
5600
+ "ECU",
5601
+ "EGY",
5602
+ "SLV",
5603
+ "GNQ",
5604
+ "ERI",
5605
+ "EST",
5606
+ "SWZ",
5607
+ "ETH",
5608
+ "FLK",
5609
+ "FRO",
5610
+ "FJI",
5611
+ "FIN",
5612
+ "FRA",
5613
+ "GUF",
5614
+ "PYF",
5615
+ "ATF",
5616
+ "GAB",
5617
+ "GMB",
5618
+ "GEO",
5619
+ "DEU",
5620
+ "GHA",
5621
+ "GIB",
5622
+ "GRC",
5623
+ "GRL",
5624
+ "GRD",
5625
+ "GLP",
5626
+ "GUM",
5627
+ "GTM",
5628
+ "GGY",
5629
+ "GIN",
5630
+ "GNB",
5631
+ "GUY",
5632
+ "HTI",
5633
+ "HMD",
5634
+ "VAT",
5635
+ "HND",
5636
+ "HKG",
5637
+ "HUN",
5638
+ "ISL",
5639
+ "IND",
5640
+ "IDN",
5641
+ "IRN",
5642
+ "IRQ",
5643
+ "IRL",
5644
+ "IMN",
5645
+ "ISR",
5646
+ "ITA",
5647
+ "JAM",
5648
+ "JPN",
5649
+ "JEY",
5650
+ "JOR",
5651
+ "KAZ",
5652
+ "KEN",
5653
+ "KIR",
5654
+ "PRK",
5655
+ "KOR",
5656
+ "KWT",
5657
+ "KGZ",
5658
+ "LAO",
5659
+ "LVA",
5660
+ "LBN",
5661
+ "LSO",
5662
+ "LBR",
5663
+ "LBY",
5664
+ "LIE",
5665
+ "LTU",
5666
+ "LUX",
5667
+ "MAC",
5668
+ "MDG",
5669
+ "MWI",
5670
+ "MYS",
5671
+ "MDV",
5672
+ "MLI",
5673
+ "MLT",
5674
+ "MHL",
5675
+ "MTQ",
5676
+ "MRT",
5677
+ "MUS",
5678
+ "MYT",
5679
+ "MEX",
5680
+ "FSM",
5681
+ "MDA",
5682
+ "MCO",
5683
+ "MNG",
5684
+ "MNE",
5685
+ "MSR",
5686
+ "MAR",
5687
+ "MOZ",
5688
+ "MMR",
5689
+ "NAM",
5690
+ "NRU",
5691
+ "NPL",
5692
+ "NLD",
5693
+ "NCL",
5694
+ "NZL",
5695
+ "NIC",
5696
+ "NER",
5697
+ "NGA",
5698
+ "NIU",
5699
+ "NFK",
5700
+ "MNP",
5701
+ "NOR",
5702
+ "OMN",
5703
+ "PAK",
5704
+ "PLW",
5705
+ "PSE",
5706
+ "PAN",
5707
+ "PNG",
5708
+ "PRY",
5709
+ "PER",
5710
+ "PHL",
5711
+ "PCN",
5712
+ "POL",
5713
+ "PRT",
5714
+ "PRI",
5715
+ "QAT",
5716
+ "MKD",
5717
+ "ROU",
5718
+ "RUS",
5719
+ "RWA",
5720
+ "REU",
5721
+ "BLM",
5722
+ "SHN",
5723
+ "KNA",
5724
+ "LCA",
5725
+ "MAF",
5726
+ "SPM",
5727
+ "VCT",
5728
+ "WSM",
5729
+ "SMR",
5730
+ "STP",
5731
+ "SAU",
5732
+ "SEN",
5733
+ "SRB",
5734
+ "SYC",
5735
+ "SLE",
5736
+ "SGP",
5737
+ "SXM",
5738
+ "SVK",
5739
+ "SVN",
5740
+ "SLB",
5741
+ "SOM",
5742
+ "ZAF",
5743
+ "SGS",
5744
+ "SSD",
5745
+ "ESP",
5746
+ "LKA",
5747
+ "SDN",
5748
+ "SUR",
5749
+ "SJM",
5750
+ "SWE",
5751
+ "CHE",
5752
+ "SYR",
5753
+ "TWN",
5754
+ "TJK",
5755
+ "TZA",
5756
+ "THA",
5757
+ "TLS",
5758
+ "TGO",
5759
+ "TKL",
5760
+ "TON",
5761
+ "TTO",
5762
+ "TUN",
5763
+ "TUR",
5764
+ "TKM",
5765
+ "TCA",
5766
+ "TUV",
5767
+ "UGA",
5768
+ "UKR",
5769
+ "ARE",
5770
+ "GBR",
5771
+ "UMI",
5772
+ "USA",
5773
+ "URY",
5774
+ "UZB",
5775
+ "VUT",
5776
+ "VEN",
5777
+ "VNM",
5778
+ "VGB",
5779
+ "VIR",
5780
+ "WLF",
5781
+ "ESH",
5782
+ "YEM",
5783
+ "ZMB",
5784
+ "ZWE",
5785
+ "ALA",
5786
+ "ANT",
5787
+ "XKX"
5788
+ ],
5789
+ description: "Citizenship status of the credential subject - ISO 3166-1 alpha-3 country code (https://www.iban.com/country-codes)"
5790
+ },
5791
+ legalAddress: {
5792
+ type: "string"
5793
+ },
5794
+ incorporatedOn: {
5795
+ type: "string",
5796
+ format: "date"
5797
+ },
5798
+ type: {
5799
+ type: "string"
5800
+ },
5801
+ email: {
5802
+ type: "string",
5803
+ format: "email"
5804
+ },
5805
+ phone: {
5806
+ type: "string"
5807
+ },
5808
+ controlScheme: {
5809
+ type: "string"
5810
+ },
5811
+ taxId: {
5812
+ type: "string"
5813
+ },
5814
+ registrationLocation: {
5815
+ type: "string"
5816
+ },
5817
+ website: {
5818
+ type: "string"
5819
+ },
5820
+ postalAddress: {
5821
+ type: "string"
5822
+ }
5823
+ },
5824
+ additionalProperties: false
5825
+ },
5508
5826
  attributes: {
5509
5827
  type: "object",
5510
5828
  properties: {