@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 CHANGED
@@ -1435,19 +1435,18 @@ type TRecipientKbaStep = IRecipientKbaStepNone | IRecipientKbaStepComplete | IRe
1435
1435
  * `recipient.kba_method` is set (not null), and `recipient.kba_completed` is false, this endpoint
1436
1436
  * should be called to determine the next KBA step required.
1437
1437
  */
1438
- declare const getKbaStep: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1438
+ declare const getKbaStep: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1439
1439
  /**
1440
1440
  * Submit a response to a KBA PIN challenge.
1441
1441
  */
1442
- declare const submitKbaPin: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, pin: string) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1442
+ declare const submitKbaPin: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, pin: string) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1443
1443
  interface IKbaIdentity {
1444
- address1: string;
1445
- address2?: string;
1444
+ firstName: string;
1445
+ lastName: string;
1446
+ address: string;
1446
1447
  city?: string;
1447
1448
  state?: string;
1448
- postalCode?: string;
1449
- country?: string;
1450
- ssn?: string;
1449
+ zip?: string;
1451
1450
  ssnLast4?: string;
1452
1451
  }
1453
1452
  /**
@@ -1464,7 +1463,7 @@ interface IKbaChallengeResponse {
1464
1463
  * Submit an identity response to a KBA challenge. Answers should be submitted in the same order as
1465
1464
  * the challenges were listed in `IRecipientKbaStepChallenge.questions`.
1466
1465
  */
1467
- declare const submitKbaChallengeResponse: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, response: IKbaChallengeResponse) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1466
+ declare const submitKbaChallengeResponse: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, response: IKbaChallengeResponse) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1468
1467
  /**
1469
1468
  * Update a recipient's status block
1470
1469
  */
package/dist/index.d.ts CHANGED
@@ -1435,19 +1435,18 @@ type TRecipientKbaStep = IRecipientKbaStepNone | IRecipientKbaStepComplete | IRe
1435
1435
  * `recipient.kba_method` is set (not null), and `recipient.kba_completed` is false, this endpoint
1436
1436
  * should be called to determine the next KBA step required.
1437
1437
  */
1438
- declare const getKbaStep: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1438
+ declare const getKbaStep: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1439
1439
  /**
1440
1440
  * Submit a response to a KBA PIN challenge.
1441
1441
  */
1442
- declare const submitKbaPin: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, pin: string) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1442
+ declare const submitKbaPin: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, pin: string) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1443
1443
  interface IKbaIdentity {
1444
- address1: string;
1445
- address2?: string;
1444
+ firstName: string;
1445
+ lastName: string;
1446
+ address: string;
1446
1447
  city?: string;
1447
1448
  state?: string;
1448
- postalCode?: string;
1449
- country?: string;
1450
- ssn?: string;
1449
+ zip?: string;
1451
1450
  ssnLast4?: string;
1452
1451
  }
1453
1452
  /**
@@ -1464,7 +1463,7 @@ interface IKbaChallengeResponse {
1464
1463
  * Submit an identity response to a KBA challenge. Answers should be submitted in the same order as
1465
1464
  * the challenges were listed in `IRecipientKbaStepChallenge.questions`.
1466
1465
  */
1467
- declare const submitKbaChallengeResponse: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, response: IKbaChallengeResponse) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1466
+ declare const submitKbaChallengeResponse: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, response: IKbaChallengeResponse) => Promise<IRecipientKbaStepNone | IRecipientKbaStepComplete | IRecipientKbaStepPin | IRecipientKbaStepIdentity | IRecipientKbaStepChallenge | IRecipientKbaStepFailed>;
1468
1467
  /**
1469
1468
  * Update a recipient's status block
1470
1469
  */
package/dist/index.js CHANGED
@@ -1597,14 +1597,14 @@ const createInitials = (endpoint, name, initials) => {
1597
1597
  * `recipient.kba_method` is set (not null), and `recipient.kba_completed` is false, this endpoint
1598
1598
  * should be called to determine the next KBA step required.
1599
1599
  */
1600
- const getKbaStep = (endpoint, envelopeId, roleName) => endpoint.api //
1601
- .get(`/v2/kba/${envelopeId}/${encodeURIComponent(roleName)}`)
1600
+ const getKbaStep = (endpoint, envelope_id, role_name) => endpoint.api //
1601
+ .get(`/v2/kba/${envelope_id}/${encodeURIComponent(role_name)}`)
1602
1602
  .then((r) => r.data);
1603
1603
  /**
1604
1604
  * Submit a response to a KBA PIN challenge.
1605
1605
  */
1606
- const submitKbaPin = (endpoint, envelopeId, roleName, pin) => endpoint.api //
1607
- .post(`/v2/kba/pin`, { envelopeId, roleName, pin })
1606
+ const submitKbaPin = (endpoint, envelope_id, role_name, pin) => endpoint.api //
1607
+ .post(`/v2/kba/pin`, { envelope_id, role_name, pin })
1608
1608
  .then((r) => r.data);
1609
1609
  /**
1610
1610
  * Submit an identity response to a KBA challenge.
@@ -1616,8 +1616,8 @@ const submitKbaIdentity = (endpoint, envelopeId, roleName, identity) => endpoint
1616
1616
  * Submit an identity response to a KBA challenge. Answers should be submitted in the same order as
1617
1617
  * the challenges were listed in `IRecipientKbaStepChallenge.questions`.
1618
1618
  */
1619
- const submitKbaChallengeResponse = (endpoint, envelopeId, roleName, response) => endpoint.api //
1620
- .post(`/v2/kba/response`, { envelopeId, roleName, response })
1619
+ const submitKbaChallengeResponse = (endpoint, envelope_id, role_name, response) => endpoint.api //
1620
+ .post(`/v2/kba/response`, { envelope_id, role_name, response })
1621
1621
  .then((r) => r.data);
1622
1622
 
1623
1623
  /**