@zyphe-sdk/core 0.5.0 → 0.6.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 +3209 -490
- package/dist/index.js +88 -0
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +2686 -369
- package/dist/openapi.json +12396 -7169
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1527,6 +1527,90 @@ async function sendKybUboReminder({ organizationId, kybResultId, recipientIndex,
|
|
|
1527
1527
|
});
|
|
1528
1528
|
}
|
|
1529
1529
|
|
|
1530
|
+
// src/tin-check.ts
|
|
1531
|
+
async function runTinCheck({ organizationId, isSandbox, name, tin, address, giin, mock, locale }, opts) {
|
|
1532
|
+
ensureApiKeyType(opts.apiKey, ["SECRET"]);
|
|
1533
|
+
const client = zypheApiClient(opts);
|
|
1534
|
+
return client.POST("/sdk/organizations/{organization_id}/tin-checks", {
|
|
1535
|
+
params: {
|
|
1536
|
+
path: {
|
|
1537
|
+
organization_id: organizationId
|
|
1538
|
+
},
|
|
1539
|
+
query: {
|
|
1540
|
+
sandbox: isSandbox,
|
|
1541
|
+
locale
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
body: {
|
|
1545
|
+
name,
|
|
1546
|
+
tin,
|
|
1547
|
+
address,
|
|
1548
|
+
giin,
|
|
1549
|
+
mock
|
|
1550
|
+
},
|
|
1551
|
+
headers: {
|
|
1552
|
+
[API_KEY_HEADER]: opts.apiKey
|
|
1553
|
+
}
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
async function listTinChecks({ organizationId, isSandbox, take, skip, locale }, opts) {
|
|
1557
|
+
ensureApiKeyType(opts.apiKey, ["SECRET"]);
|
|
1558
|
+
const client = zypheApiClient(opts);
|
|
1559
|
+
return client.GET("/sdk/organizations/{organization_id}/tin-checks", {
|
|
1560
|
+
params: {
|
|
1561
|
+
path: {
|
|
1562
|
+
organization_id: organizationId
|
|
1563
|
+
},
|
|
1564
|
+
query: {
|
|
1565
|
+
take,
|
|
1566
|
+
skip,
|
|
1567
|
+
sandbox: isSandbox,
|
|
1568
|
+
locale
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
headers: {
|
|
1572
|
+
[API_KEY_HEADER]: opts.apiKey
|
|
1573
|
+
}
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
async function getTinCheck({ organizationId, checkId, isSandbox, locale }, opts) {
|
|
1577
|
+
ensureApiKeyType(opts.apiKey, ["SECRET"]);
|
|
1578
|
+
const client = zypheApiClient(opts);
|
|
1579
|
+
return client.GET("/sdk/organizations/{organization_id}/tin-checks/{check_id}", {
|
|
1580
|
+
params: {
|
|
1581
|
+
path: {
|
|
1582
|
+
organization_id: organizationId,
|
|
1583
|
+
check_id: checkId
|
|
1584
|
+
},
|
|
1585
|
+
query: {
|
|
1586
|
+
sandbox: isSandbox,
|
|
1587
|
+
locale
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
headers: {
|
|
1591
|
+
[API_KEY_HEADER]: opts.apiKey
|
|
1592
|
+
}
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
async function getTinCheckQuote({ organizationId, isSandbox, locale }, opts) {
|
|
1596
|
+
ensureApiKeyType(opts.apiKey, ["SECRET"]);
|
|
1597
|
+
const client = zypheApiClient(opts);
|
|
1598
|
+
return client.GET("/sdk/organizations/{organization_id}/tin-checks/quote", {
|
|
1599
|
+
params: {
|
|
1600
|
+
path: {
|
|
1601
|
+
organization_id: organizationId
|
|
1602
|
+
},
|
|
1603
|
+
query: {
|
|
1604
|
+
sandbox: isSandbox,
|
|
1605
|
+
locale
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
headers: {
|
|
1609
|
+
[API_KEY_HEADER]: opts.apiKey
|
|
1610
|
+
}
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1530
1614
|
// src/types.ts
|
|
1531
1615
|
var DocumentType = {
|
|
1532
1616
|
IDENTITY_CARD: 12,
|
|
@@ -1709,12 +1793,16 @@ export {
|
|
|
1709
1793
|
getDvResult,
|
|
1710
1794
|
getFlowResult,
|
|
1711
1795
|
getNextStepDetails,
|
|
1796
|
+
getTinCheck,
|
|
1797
|
+
getTinCheckQuote,
|
|
1712
1798
|
hexToBytes,
|
|
1713
1799
|
listFlowResults,
|
|
1800
|
+
listTinChecks,
|
|
1714
1801
|
parseSignatureHeader,
|
|
1715
1802
|
removeKybDirector,
|
|
1716
1803
|
removeKybUbo,
|
|
1717
1804
|
requestKybOnDemandDocument,
|
|
1805
|
+
runTinCheck,
|
|
1718
1806
|
screenAml,
|
|
1719
1807
|
sendKybUboReminder,
|
|
1720
1808
|
timingSafeEqual
|