@nexeraid/identity-schemas 2.1.10-dev → 2.1.11-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.
- package/dist/{customers.schema-562d985f.cjs.dev.js → customers.schema-38b45856.cjs.dev.js} +80 -2
- package/dist/{customers.schema-afe02ef4.esm.js → customers.schema-83e7daba.esm.js} +80 -2
- package/dist/{customers.schema-73bf15a0.cjs.prod.js → customers.schema-8aaef61f.cjs.prod.js} +80 -2
- package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +3204 -186
- package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts +190 -7
- package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts.map +1 -1
- package/dist/{frontend-utilities.schema-9e3e2436.cjs.prod.js → frontend-utilities.schema-4eb9b074.cjs.prod.js} +1 -1
- package/dist/{frontend-utilities.schema-0302c705.cjs.dev.js → frontend-utilities.schema-5b943041.cjs.dev.js} +1 -1
- package/dist/{frontend-utilities.schema-5b4c13b6.esm.js → frontend-utilities.schema-ff07ff28.esm.js} +1 -1
- package/dist/{identity-api.schema-a284be45.esm.js → identity-api.schema-397ec4fd.esm.js} +1 -1
- package/dist/{identity-api.schema-c82d8859.cjs.dev.js → identity-api.schema-40be3abf.cjs.dev.js} +3 -0
- package/dist/{identity-api.schema-9c535c61.cjs.prod.js → identity-api.schema-b1cc4229.cjs.prod.js} +3 -0
- package/dist/nexeraid-identity-schemas.cjs.dev.js +2 -2
- package/dist/nexeraid-identity-schemas.cjs.prod.js +2 -2
- package/dist/nexeraid-identity-schemas.esm.js +3 -3
- package/dist/package.json +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
- package/package.json +1 -1
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.esm.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
4
|
+
var identityApi_schema = require('./identity-api.schema-40be3abf.cjs.dev.js');
|
|
5
5
|
|
|
6
6
|
// based on https://tech-doc.api.scorechain.com/
|
|
7
7
|
var ANALYSIS_TYPES = ["ASSIGNED", "INCOMING", "OUTGOING", "FULL"];
|
|
@@ -1786,6 +1786,38 @@ var SUMSUB_REVIEW_REJECT_LABELS_DESCRIPTION = {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
};
|
|
1788
1788
|
|
|
1789
|
+
function _iterableToArrayLimit(r, l) {
|
|
1790
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1791
|
+
if (null != t) {
|
|
1792
|
+
var e,
|
|
1793
|
+
n,
|
|
1794
|
+
i,
|
|
1795
|
+
u,
|
|
1796
|
+
a = [],
|
|
1797
|
+
f = !0,
|
|
1798
|
+
o = !1;
|
|
1799
|
+
try {
|
|
1800
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
1801
|
+
if (Object(t) !== t) return;
|
|
1802
|
+
f = !1;
|
|
1803
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
1804
|
+
} catch (r) {
|
|
1805
|
+
o = !0, n = r;
|
|
1806
|
+
} finally {
|
|
1807
|
+
try {
|
|
1808
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
1809
|
+
} finally {
|
|
1810
|
+
if (o) throw n;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
return a;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
function _slicedToArray(r, e) {
|
|
1818
|
+
return identityApi_schema._arrayWithHoles(r) || _iterableToArrayLimit(r, e) || identityApi_schema._unsupportedIterableToArray(r, e) || identityApi_schema._nonIterableRest();
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1789
1821
|
/**
|
|
1790
1822
|
* In Docs this is called "idDocSetType"
|
|
1791
1823
|
* PHONE_VERIFICATION Phone verification step.
|
|
@@ -1832,6 +1864,52 @@ var SumSubAddress = zod.z.object({
|
|
|
1832
1864
|
subStreet: zod.z.string().optional(),
|
|
1833
1865
|
state: zod.z.string().optional()
|
|
1834
1866
|
});
|
|
1867
|
+
var nullable = function nullable(schema) {
|
|
1868
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1869
|
+
var entries = Object.entries(schema.shape);
|
|
1870
|
+
var newProps = entries.reduce(function (acc, _ref) {
|
|
1871
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
1872
|
+
key = _ref2[0],
|
|
1873
|
+
value = _ref2[1];
|
|
1874
|
+
acc[key] = value.nullable();
|
|
1875
|
+
return acc;
|
|
1876
|
+
}, {});
|
|
1877
|
+
return zod.z.object(newProps);
|
|
1878
|
+
};
|
|
1879
|
+
var SumSubIdDocs = nullable(zod.z.object({
|
|
1880
|
+
idDocType: zod.z.string(),
|
|
1881
|
+
age: zod.z.string(),
|
|
1882
|
+
placeOfBirth: zod.z.string(),
|
|
1883
|
+
stateOfBirth: zod.z.string(),
|
|
1884
|
+
country: zod.z.string(),
|
|
1885
|
+
firstName: zod.z.string(),
|
|
1886
|
+
firstNameEn: zod.z.string(),
|
|
1887
|
+
middleName: zod.z.string(),
|
|
1888
|
+
middleNameEn: zod.z.string(),
|
|
1889
|
+
lastName: zod.z.string(),
|
|
1890
|
+
lastNameEn: zod.z.string(),
|
|
1891
|
+
issuedDate: zod.z.string(),
|
|
1892
|
+
issueAuthority: zod.z.string(),
|
|
1893
|
+
validUntil: zod.z.string(),
|
|
1894
|
+
number: zod.z.string(),
|
|
1895
|
+
additionalNumber: zod.z.string(),
|
|
1896
|
+
dob: zod.z.string(),
|
|
1897
|
+
gender: zod.z.string(),
|
|
1898
|
+
nationality: zod.z.string(),
|
|
1899
|
+
address: nullable(zod.z.object({
|
|
1900
|
+
street: zod.z.string(),
|
|
1901
|
+
streetEn: zod.z.string(),
|
|
1902
|
+
stateCode: zod.z.string(),
|
|
1903
|
+
town: zod.z.string(),
|
|
1904
|
+
townEn: zod.z.string(),
|
|
1905
|
+
country: zod.z.string(),
|
|
1906
|
+
formattedAddress: zod.z.string(),
|
|
1907
|
+
locationPosition: zod.z.string()
|
|
1908
|
+
})).partial().nullish(),
|
|
1909
|
+
mrzLine1: zod.z.string(),
|
|
1910
|
+
mrzLine2: zod.z.string(),
|
|
1911
|
+
mrzLine3: zod.z.string()
|
|
1912
|
+
})).partial();
|
|
1835
1913
|
var SumSubApplicantInfo = zod.z.object({
|
|
1836
1914
|
firstName: zod.z.string().optional().describe("First name."),
|
|
1837
1915
|
lastName: zod.z.string().optional().describe("Last name."),
|
|
@@ -1846,7 +1924,7 @@ var SumSubApplicantInfo = zod.z.object({
|
|
|
1846
1924
|
country: identityApi_schema.ISO3CountryCode.optional(),
|
|
1847
1925
|
nationality: identityApi_schema.ISO3CountryCode.optional(),
|
|
1848
1926
|
addresses: zod.z.array(SumSubAddress).optional().describe("List of addresses."),
|
|
1849
|
-
idDocs: zod.z.array(
|
|
1927
|
+
idDocs: zod.z.array(SumSubIdDocs).optional().describe("Represents the set of data recognized from uploaded documents."),
|
|
1850
1928
|
tin: zod.z.string().optional().describe("Tax Identification Number.")
|
|
1851
1929
|
});
|
|
1852
1930
|
var INDIVIDUAL_BENEFICIARY_RELATIONS = ["director", "shareholder", "other"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a2 as BlockchainAddress, z as AddressSchema, ak as Alpha2Country, ae as UuidString, e0 as _toConsumableArray, ai as ISO3CountryCode, a5 as BlockchainNamespace, br as SdkVerificationOutput, aA as CustomerStatus,
|
|
2
|
+
import { a2 as BlockchainAddress, z as AddressSchema, ak as Alpha2Country, ae as UuidString, e0 as _toConsumableArray, e2 as _arrayWithHoles, e3 as _unsupportedIterableToArray, e4 as _nonIterableRest, ai as ISO3CountryCode, a5 as BlockchainNamespace, br as SdkVerificationOutput, aA as CustomerStatus, e5 as _defineProperty, dT as ProofOfResidenceCredentialSubjectSchema, ck as QrCodeLinkWithSchemaType, aB as BasicCustomerContactInformation, dZ as CredentialType } from './identity-api.schema-397ec4fd.esm.js';
|
|
3
3
|
|
|
4
4
|
// based on https://tech-doc.api.scorechain.com/
|
|
5
5
|
var ANALYSIS_TYPES = ["ASSIGNED", "INCOMING", "OUTGOING", "FULL"];
|
|
@@ -1784,6 +1784,38 @@ var SUMSUB_REVIEW_REJECT_LABELS_DESCRIPTION = {
|
|
|
1784
1784
|
}
|
|
1785
1785
|
};
|
|
1786
1786
|
|
|
1787
|
+
function _iterableToArrayLimit(r, l) {
|
|
1788
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1789
|
+
if (null != t) {
|
|
1790
|
+
var e,
|
|
1791
|
+
n,
|
|
1792
|
+
i,
|
|
1793
|
+
u,
|
|
1794
|
+
a = [],
|
|
1795
|
+
f = !0,
|
|
1796
|
+
o = !1;
|
|
1797
|
+
try {
|
|
1798
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
1799
|
+
if (Object(t) !== t) return;
|
|
1800
|
+
f = !1;
|
|
1801
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
1802
|
+
} catch (r) {
|
|
1803
|
+
o = !0, n = r;
|
|
1804
|
+
} finally {
|
|
1805
|
+
try {
|
|
1806
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
1807
|
+
} finally {
|
|
1808
|
+
if (o) throw n;
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
return a;
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
function _slicedToArray(r, e) {
|
|
1816
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1787
1819
|
/**
|
|
1788
1820
|
* In Docs this is called "idDocSetType"
|
|
1789
1821
|
* PHONE_VERIFICATION Phone verification step.
|
|
@@ -1830,6 +1862,52 @@ var SumSubAddress = z.object({
|
|
|
1830
1862
|
subStreet: z.string().optional(),
|
|
1831
1863
|
state: z.string().optional()
|
|
1832
1864
|
});
|
|
1865
|
+
var nullable = function nullable(schema) {
|
|
1866
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1867
|
+
var entries = Object.entries(schema.shape);
|
|
1868
|
+
var newProps = entries.reduce(function (acc, _ref) {
|
|
1869
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
1870
|
+
key = _ref2[0],
|
|
1871
|
+
value = _ref2[1];
|
|
1872
|
+
acc[key] = value.nullable();
|
|
1873
|
+
return acc;
|
|
1874
|
+
}, {});
|
|
1875
|
+
return z.object(newProps);
|
|
1876
|
+
};
|
|
1877
|
+
var SumSubIdDocs = nullable(z.object({
|
|
1878
|
+
idDocType: z.string(),
|
|
1879
|
+
age: z.string(),
|
|
1880
|
+
placeOfBirth: z.string(),
|
|
1881
|
+
stateOfBirth: z.string(),
|
|
1882
|
+
country: z.string(),
|
|
1883
|
+
firstName: z.string(),
|
|
1884
|
+
firstNameEn: z.string(),
|
|
1885
|
+
middleName: z.string(),
|
|
1886
|
+
middleNameEn: z.string(),
|
|
1887
|
+
lastName: z.string(),
|
|
1888
|
+
lastNameEn: z.string(),
|
|
1889
|
+
issuedDate: z.string(),
|
|
1890
|
+
issueAuthority: z.string(),
|
|
1891
|
+
validUntil: z.string(),
|
|
1892
|
+
number: z.string(),
|
|
1893
|
+
additionalNumber: z.string(),
|
|
1894
|
+
dob: z.string(),
|
|
1895
|
+
gender: z.string(),
|
|
1896
|
+
nationality: z.string(),
|
|
1897
|
+
address: nullable(z.object({
|
|
1898
|
+
street: z.string(),
|
|
1899
|
+
streetEn: z.string(),
|
|
1900
|
+
stateCode: z.string(),
|
|
1901
|
+
town: z.string(),
|
|
1902
|
+
townEn: z.string(),
|
|
1903
|
+
country: z.string(),
|
|
1904
|
+
formattedAddress: z.string(),
|
|
1905
|
+
locationPosition: z.string()
|
|
1906
|
+
})).partial().nullish(),
|
|
1907
|
+
mrzLine1: z.string(),
|
|
1908
|
+
mrzLine2: z.string(),
|
|
1909
|
+
mrzLine3: z.string()
|
|
1910
|
+
})).partial();
|
|
1833
1911
|
var SumSubApplicantInfo = z.object({
|
|
1834
1912
|
firstName: z.string().optional().describe("First name."),
|
|
1835
1913
|
lastName: z.string().optional().describe("Last name."),
|
|
@@ -1844,7 +1922,7 @@ var SumSubApplicantInfo = z.object({
|
|
|
1844
1922
|
country: ISO3CountryCode.optional(),
|
|
1845
1923
|
nationality: ISO3CountryCode.optional(),
|
|
1846
1924
|
addresses: z.array(SumSubAddress).optional().describe("List of addresses."),
|
|
1847
|
-
idDocs: z.array(
|
|
1925
|
+
idDocs: z.array(SumSubIdDocs).optional().describe("Represents the set of data recognized from uploaded documents."),
|
|
1848
1926
|
tin: z.string().optional().describe("Tax Identification Number.")
|
|
1849
1927
|
});
|
|
1850
1928
|
var INDIVIDUAL_BENEFICIARY_RELATIONS = ["director", "shareholder", "other"];
|
package/dist/{customers.schema-73bf15a0.cjs.prod.js → customers.schema-8aaef61f.cjs.prod.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
4
|
+
var identityApi_schema = require('./identity-api.schema-b1cc4229.cjs.prod.js');
|
|
5
5
|
|
|
6
6
|
// based on https://tech-doc.api.scorechain.com/
|
|
7
7
|
var ANALYSIS_TYPES = ["ASSIGNED", "INCOMING", "OUTGOING", "FULL"];
|
|
@@ -1786,6 +1786,38 @@ var SUMSUB_REVIEW_REJECT_LABELS_DESCRIPTION = {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
};
|
|
1788
1788
|
|
|
1789
|
+
function _iterableToArrayLimit(r, l) {
|
|
1790
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1791
|
+
if (null != t) {
|
|
1792
|
+
var e,
|
|
1793
|
+
n,
|
|
1794
|
+
i,
|
|
1795
|
+
u,
|
|
1796
|
+
a = [],
|
|
1797
|
+
f = !0,
|
|
1798
|
+
o = !1;
|
|
1799
|
+
try {
|
|
1800
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
1801
|
+
if (Object(t) !== t) return;
|
|
1802
|
+
f = !1;
|
|
1803
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
1804
|
+
} catch (r) {
|
|
1805
|
+
o = !0, n = r;
|
|
1806
|
+
} finally {
|
|
1807
|
+
try {
|
|
1808
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
1809
|
+
} finally {
|
|
1810
|
+
if (o) throw n;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
return a;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
function _slicedToArray(r, e) {
|
|
1818
|
+
return identityApi_schema._arrayWithHoles(r) || _iterableToArrayLimit(r, e) || identityApi_schema._unsupportedIterableToArray(r, e) || identityApi_schema._nonIterableRest();
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1789
1821
|
/**
|
|
1790
1822
|
* In Docs this is called "idDocSetType"
|
|
1791
1823
|
* PHONE_VERIFICATION Phone verification step.
|
|
@@ -1832,6 +1864,52 @@ var SumSubAddress = zod.z.object({
|
|
|
1832
1864
|
subStreet: zod.z.string().optional(),
|
|
1833
1865
|
state: zod.z.string().optional()
|
|
1834
1866
|
});
|
|
1867
|
+
var nullable = function nullable(schema) {
|
|
1868
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1869
|
+
var entries = Object.entries(schema.shape);
|
|
1870
|
+
var newProps = entries.reduce(function (acc, _ref) {
|
|
1871
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
1872
|
+
key = _ref2[0],
|
|
1873
|
+
value = _ref2[1];
|
|
1874
|
+
acc[key] = value.nullable();
|
|
1875
|
+
return acc;
|
|
1876
|
+
}, {});
|
|
1877
|
+
return zod.z.object(newProps);
|
|
1878
|
+
};
|
|
1879
|
+
var SumSubIdDocs = nullable(zod.z.object({
|
|
1880
|
+
idDocType: zod.z.string(),
|
|
1881
|
+
age: zod.z.string(),
|
|
1882
|
+
placeOfBirth: zod.z.string(),
|
|
1883
|
+
stateOfBirth: zod.z.string(),
|
|
1884
|
+
country: zod.z.string(),
|
|
1885
|
+
firstName: zod.z.string(),
|
|
1886
|
+
firstNameEn: zod.z.string(),
|
|
1887
|
+
middleName: zod.z.string(),
|
|
1888
|
+
middleNameEn: zod.z.string(),
|
|
1889
|
+
lastName: zod.z.string(),
|
|
1890
|
+
lastNameEn: zod.z.string(),
|
|
1891
|
+
issuedDate: zod.z.string(),
|
|
1892
|
+
issueAuthority: zod.z.string(),
|
|
1893
|
+
validUntil: zod.z.string(),
|
|
1894
|
+
number: zod.z.string(),
|
|
1895
|
+
additionalNumber: zod.z.string(),
|
|
1896
|
+
dob: zod.z.string(),
|
|
1897
|
+
gender: zod.z.string(),
|
|
1898
|
+
nationality: zod.z.string(),
|
|
1899
|
+
address: nullable(zod.z.object({
|
|
1900
|
+
street: zod.z.string(),
|
|
1901
|
+
streetEn: zod.z.string(),
|
|
1902
|
+
stateCode: zod.z.string(),
|
|
1903
|
+
town: zod.z.string(),
|
|
1904
|
+
townEn: zod.z.string(),
|
|
1905
|
+
country: zod.z.string(),
|
|
1906
|
+
formattedAddress: zod.z.string(),
|
|
1907
|
+
locationPosition: zod.z.string()
|
|
1908
|
+
})).partial().nullish(),
|
|
1909
|
+
mrzLine1: zod.z.string(),
|
|
1910
|
+
mrzLine2: zod.z.string(),
|
|
1911
|
+
mrzLine3: zod.z.string()
|
|
1912
|
+
})).partial();
|
|
1835
1913
|
var SumSubApplicantInfo = zod.z.object({
|
|
1836
1914
|
firstName: zod.z.string().optional().describe("First name."),
|
|
1837
1915
|
lastName: zod.z.string().optional().describe("Last name."),
|
|
@@ -1846,7 +1924,7 @@ var SumSubApplicantInfo = zod.z.object({
|
|
|
1846
1924
|
country: identityApi_schema.ISO3CountryCode.optional(),
|
|
1847
1925
|
nationality: identityApi_schema.ISO3CountryCode.optional(),
|
|
1848
1926
|
addresses: zod.z.array(SumSubAddress).optional().describe("List of addresses."),
|
|
1849
|
-
idDocs: zod.z.array(
|
|
1927
|
+
idDocs: zod.z.array(SumSubIdDocs).optional().describe("Represents the set of data recognized from uploaded documents."),
|
|
1850
1928
|
tin: zod.z.string().optional().describe("Tax Identification Number.")
|
|
1851
1929
|
});
|
|
1852
1930
|
var INDIVIDUAL_BENEFICIARY_RELATIONS = ["director", "shareholder", "other"];
|