@verdocs/js-sdk 5.0.21 → 5.0.23

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.mjs CHANGED
@@ -817,12 +817,6 @@ const decodeAccessTokenBody = (token) => {
817
817
  catch (e) {
818
818
  return null;
819
819
  }
820
- Object.keys(decoded).forEach((key) => {
821
- if (typeof key === 'string' && key.startsWith('https://verdocs.com/')) {
822
- decoded[key.replace('https://verdocs.com/', '')] = decoded[key];
823
- delete decoded[key];
824
- }
825
- });
826
820
  return decoded;
827
821
  };
828
822
 
@@ -1829,7 +1823,7 @@ const createInitials = (endpoint, name, initials) => {
1829
1823
  * Get the current KBA status. Note that this may only be called by the recipient and requires a
1830
1824
  * valid signing session to proceed. Although the Recipient object itself contains indications of
1831
1825
  * whether KBA is required, it will not contain the current status of the process. If
1832
- * `recipient.kba_method` is set (not null), and `recipient.kba_completed` is false, this endpoint
1826
+ * `recipient.auth_methods` is set (not empty), and `recipient.kba_completed` is false, this endpoint
1833
1827
  * should be called to determine the next KBA step required.
1834
1828
  */
1835
1829
  const getKbaStep = (endpoint, envelope_id, role_name) => endpoint.api //
@@ -3125,7 +3119,6 @@ const userCanPreviewTemplate = (profile, template) => {
3125
3119
  * @apiBody integer(min: 1, default: 1) sequence? Optional 1-based sequence number for the role. Roles that share the same sequence number act in parallel, and will receive invitations at the same time.
3126
3120
  * @apiBody integer(min: 1, default: 1) order? Optional 1-based order number for the role. Controls the left-to-right display order of roles at the same sequence number in the UI components e.g. `<verdocs-template-roles />`.
3127
3121
  * @apiBody boolean delegator? If true, the role may delegate their signing responsibility to another party.
3128
- * @apiBody string(enum:'pin'|'identity'|'') kba_method? Active PIN- or Identity-based KBA for the role. NOTE: Some KBA operations may incur additional fees.
3129
3122
  * @apiSuccess IRole . The newly-created role
3130
3123
  */
3131
3124
  const createTemplateRole = (endpoint, template_id, params) => endpoint.api //