@verdocs/js-sdk 5.0.19 → 5.0.22
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 +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.js +0 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -6
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -689,20 +689,12 @@ interface IRecipient {
|
|
|
689
689
|
updated_at: string;
|
|
690
690
|
last_attempt_at?: string;
|
|
691
691
|
/** The type of authentication required for this recipient. */
|
|
692
|
-
|
|
692
|
+
auth_methods?: TRecipientAuthMethod[] | null;
|
|
693
693
|
/**
|
|
694
694
|
* If auth_method is set to "passcode" this is the passcode required. For security reasons, this
|
|
695
695
|
* field will only be visible to the creator of the envelope.
|
|
696
696
|
*/
|
|
697
697
|
passcode?: string | null;
|
|
698
|
-
/**
|
|
699
|
-
* If SMS-based authentication is used, the phone number to which one-time codes should be sent.
|
|
700
|
-
* NOTE: This may be different from the phone number used for notifications, but leaving it blank
|
|
701
|
-
* will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
|
|
702
|
-
* assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
|
|
703
|
-
* is).
|
|
704
|
-
*/
|
|
705
|
-
phone_auth?: string | null;
|
|
706
698
|
/**
|
|
707
699
|
* If authentication has been completed successfully, this will be set to 'complete'. This is a union type
|
|
708
700
|
* to allow for future expansion with authentication modules that may require multiple steps.
|
|
@@ -957,7 +949,14 @@ type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "
|
|
|
957
949
|
type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used";
|
|
958
950
|
type TTemplateVisibility = "private" | "shared" | "public";
|
|
959
951
|
type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth";
|
|
960
|
-
|
|
952
|
+
/**
|
|
953
|
+
* The authentication method(s) required for a recipient to access an envelope. "Passcode" will require a
|
|
954
|
+
* PIN or passcode to be entered, which is intended to be known to the sender and recipient ahead of time
|
|
955
|
+
* and communicated by means of their choosing. "SMS" and "Email" will send a one-time-code via the respective
|
|
956
|
+
* channel for the recipient to enter. "KBA" will require the recipient to confirm personal information such
|
|
957
|
+
* as prior addresses, phone numbers, etc. "ID" will require the recipient to perform full ID-based verification.
|
|
958
|
+
*/
|
|
959
|
+
type TRecipientAuthMethod = "kba" | "passcode" | "sms" | "email" | "id";
|
|
961
960
|
type TRecipientAuthStep = "complete" | null;
|
|
962
961
|
declare const FIELD_TYPES: TFieldType[];
|
|
963
962
|
declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
|
package/dist/index.d.ts
CHANGED
|
@@ -689,20 +689,12 @@ interface IRecipient {
|
|
|
689
689
|
updated_at: string;
|
|
690
690
|
last_attempt_at?: string;
|
|
691
691
|
/** The type of authentication required for this recipient. */
|
|
692
|
-
|
|
692
|
+
auth_methods?: TRecipientAuthMethod[] | null;
|
|
693
693
|
/**
|
|
694
694
|
* If auth_method is set to "passcode" this is the passcode required. For security reasons, this
|
|
695
695
|
* field will only be visible to the creator of the envelope.
|
|
696
696
|
*/
|
|
697
697
|
passcode?: string | null;
|
|
698
|
-
/**
|
|
699
|
-
* If SMS-based authentication is used, the phone number to which one-time codes should be sent.
|
|
700
|
-
* NOTE: This may be different from the phone number used for notifications, but leaving it blank
|
|
701
|
-
* will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
|
|
702
|
-
* assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
|
|
703
|
-
* is).
|
|
704
|
-
*/
|
|
705
|
-
phone_auth?: string | null;
|
|
706
698
|
/**
|
|
707
699
|
* If authentication has been completed successfully, this will be set to 'complete'. This is a union type
|
|
708
700
|
* to allow for future expansion with authentication modules that may require multiple steps.
|
|
@@ -957,7 +949,14 @@ type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "
|
|
|
957
949
|
type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used";
|
|
958
950
|
type TTemplateVisibility = "private" | "shared" | "public";
|
|
959
951
|
type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth";
|
|
960
|
-
|
|
952
|
+
/**
|
|
953
|
+
* The authentication method(s) required for a recipient to access an envelope. "Passcode" will require a
|
|
954
|
+
* PIN or passcode to be entered, which is intended to be known to the sender and recipient ahead of time
|
|
955
|
+
* and communicated by means of their choosing. "SMS" and "Email" will send a one-time-code via the respective
|
|
956
|
+
* channel for the recipient to enter. "KBA" will require the recipient to confirm personal information such
|
|
957
|
+
* as prior addresses, phone numbers, etc. "ID" will require the recipient to perform full ID-based verification.
|
|
958
|
+
*/
|
|
959
|
+
type TRecipientAuthMethod = "kba" | "passcode" | "sms" | "email" | "id";
|
|
961
960
|
type TRecipientAuthStep = "complete" | null;
|
|
962
961
|
declare const FIELD_TYPES: TFieldType[];
|
|
963
962
|
declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
|
package/dist/index.js
CHANGED
|
@@ -819,12 +819,6 @@ const decodeAccessTokenBody = (token) => {
|
|
|
819
819
|
catch (e) {
|
|
820
820
|
return null;
|
|
821
821
|
}
|
|
822
|
-
Object.keys(decoded).forEach((key) => {
|
|
823
|
-
if (typeof key === 'string' && key.startsWith('https://verdocs.com/')) {
|
|
824
|
-
decoded[key.replace('https://verdocs.com/', '')] = decoded[key];
|
|
825
|
-
delete decoded[key];
|
|
826
|
-
}
|
|
827
|
-
});
|
|
828
822
|
return decoded;
|
|
829
823
|
};
|
|
830
824
|
|