@verdocs/js-sdk 4.2.4 → 4.2.6
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.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1595,14 +1595,14 @@ const createInitials = (endpoint, name, initials) => {
|
|
|
1595
1595
|
* `recipient.kba_method` is set (not null), and `recipient.kba_completed` is false, this endpoint
|
|
1596
1596
|
* should be called to determine the next KBA step required.
|
|
1597
1597
|
*/
|
|
1598
|
-
const getKbaStep = (endpoint,
|
|
1599
|
-
.get(`/v2/kba/${
|
|
1598
|
+
const getKbaStep = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
1599
|
+
.get(`/v2/kba/${envelope_id}/${encodeURIComponent(role_name)}`)
|
|
1600
1600
|
.then((r) => r.data);
|
|
1601
1601
|
/**
|
|
1602
1602
|
* Submit a response to a KBA PIN challenge.
|
|
1603
1603
|
*/
|
|
1604
|
-
const submitKbaPin = (endpoint,
|
|
1605
|
-
.post(`/v2/kba/pin`, {
|
|
1604
|
+
const submitKbaPin = (endpoint, envelope_id, role_name, pin) => endpoint.api //
|
|
1605
|
+
.post(`/v2/kba/pin`, { envelope_id, role_name, pin })
|
|
1606
1606
|
.then((r) => r.data);
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Submit an identity response to a KBA challenge.
|
|
@@ -1614,8 +1614,8 @@ const submitKbaIdentity = (endpoint, envelopeId, roleName, identity) => endpoint
|
|
|
1614
1614
|
* Submit an identity response to a KBA challenge. Answers should be submitted in the same order as
|
|
1615
1615
|
* the challenges were listed in `IRecipientKbaStepChallenge.questions`.
|
|
1616
1616
|
*/
|
|
1617
|
-
const submitKbaChallengeResponse = (endpoint,
|
|
1618
|
-
.post(`/v2/kba/response`, {
|
|
1617
|
+
const submitKbaChallengeResponse = (endpoint, envelope_id, role_name, response) => endpoint.api //
|
|
1618
|
+
.post(`/v2/kba/response`, { envelope_id, role_name, response })
|
|
1619
1619
|
.then((r) => r.data);
|
|
1620
1620
|
|
|
1621
1621
|
/**
|