@verdocs/js-sdk 5.0.24 → 5.0.26

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
@@ -690,6 +690,8 @@ interface IRecipient {
690
690
  last_attempt_at?: string;
691
691
  /** The type of authentication required for this recipient. */
692
692
  auth_methods?: TRecipientAuthMethod[] | null;
693
+ /** The status of each auth method enabled. */
694
+ auth_method_states?: Record<TRecipientAuthMethod, string> | null;
693
695
  /**
694
696
  * If auth_method is set to "passcode" this is the passcode required. For security reasons, this
695
697
  * field will only be visible to the creator of the envelope.
@@ -700,14 +702,22 @@ interface IRecipient {
700
702
  * to allow for future expansion with authentication modules that may require multiple steps.
701
703
  */
702
704
  auth_step?: TRecipientAuthStep | null;
703
- envelope?: IEnvelope;
704
- profile?: IProfile;
705
705
  /**
706
706
  * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
707
707
  * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
708
708
  * e.g. email, the signer must follow a link send via the appropriate channel (email).
709
709
  */
710
710
  in_app_key?: string;
711
+ /**
712
+ * If KBA is enabled, any confirmation questions to challenge the recipient with.
713
+ */
714
+ kba_questions?: any;
715
+ /**
716
+ * Details related to the active KBA session, if any.
717
+ */
718
+ kba_details?: any;
719
+ envelope?: IEnvelope;
720
+ profile?: IProfile;
711
721
  }
712
722
  /**
713
723
  * A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
@@ -1827,6 +1837,8 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
1827
1837
  */
1828
1838
  declare const authenticateSigner: (endpoint: VerdocsEndpoint, params: TAuthenticateRecipientRequest) => Promise<{
1829
1839
  status: "OK";
1840
+ auth_step: TRecipientAuthStep | null;
1841
+ auth_details: any;
1830
1842
  }>;
1831
1843
  /**
1832
1844
  * Send a delegation request.
package/dist/index.d.ts CHANGED
@@ -690,6 +690,8 @@ interface IRecipient {
690
690
  last_attempt_at?: string;
691
691
  /** The type of authentication required for this recipient. */
692
692
  auth_methods?: TRecipientAuthMethod[] | null;
693
+ /** The status of each auth method enabled. */
694
+ auth_method_states?: Record<TRecipientAuthMethod, string> | null;
693
695
  /**
694
696
  * If auth_method is set to "passcode" this is the passcode required. For security reasons, this
695
697
  * field will only be visible to the creator of the envelope.
@@ -700,14 +702,22 @@ interface IRecipient {
700
702
  * to allow for future expansion with authentication modules that may require multiple steps.
701
703
  */
702
704
  auth_step?: TRecipientAuthStep | null;
703
- envelope?: IEnvelope;
704
- profile?: IProfile;
705
705
  /**
706
706
  * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
707
707
  * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
708
708
  * e.g. email, the signer must follow a link send via the appropriate channel (email).
709
709
  */
710
710
  in_app_key?: string;
711
+ /**
712
+ * If KBA is enabled, any confirmation questions to challenge the recipient with.
713
+ */
714
+ kba_questions?: any;
715
+ /**
716
+ * Details related to the active KBA session, if any.
717
+ */
718
+ kba_details?: any;
719
+ envelope?: IEnvelope;
720
+ profile?: IProfile;
711
721
  }
712
722
  /**
713
723
  * A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
@@ -1827,6 +1837,8 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
1827
1837
  */
1828
1838
  declare const authenticateSigner: (endpoint: VerdocsEndpoint, params: TAuthenticateRecipientRequest) => Promise<{
1829
1839
  status: "OK";
1840
+ auth_step: TRecipientAuthStep | null;
1841
+ auth_details: any;
1830
1842
  }>;
1831
1843
  /**
1832
1844
  * Send a delegation request.
package/dist/index.js CHANGED
@@ -1958,7 +1958,7 @@ const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
1958
1958
  * @apiSuccess string . Success message
1959
1959
  */
1960
1960
  const authenticateSigner = (endpoint, params) => endpoint.api //
1961
- .post(`/v2/sign/authenticate`)
1961
+ .post(`/v2/sign/authenticate`, params)
1962
1962
  .then((r) => r.data);
1963
1963
  /**
1964
1964
  * Send a delegation request.