@verdocs/js-sdk 5.0.16 → 5.0.18

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
@@ -648,12 +648,11 @@ interface IRecipient {
648
648
  status: TRecipientStatus;
649
649
  first_name: string;
650
650
  last_name: string;
651
+ /** @deprecated. Use first_name/last_name instead. */
652
+ full_name?: string | null;
651
653
  email: string;
652
654
  /** Phone number for SMS invites */
653
655
  phone?: string | null;
654
- full_name?: string | null;
655
- /** Phone number for SMS verification */
656
- phone_otp?: string | null;
657
656
  /** Street address. Only used in KBA workflows. Combine two-line addresses into a single string. */
658
657
  address?: string | null;
659
658
  /** Zip code. Only used in KBA workflows. */
@@ -696,6 +695,14 @@ interface IRecipient {
696
695
  * field will only be visible to the creator of the envelope.
697
696
  */
698
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;
699
706
  /**
700
707
  * If authentication has been completed successfully, this will be set to 'complete'. This is a union type
701
708
  * to allow for future expansion with authentication modules that may require multiple steps.
@@ -703,6 +710,12 @@ interface IRecipient {
703
710
  auth_step?: TRecipientAuthStep | null;
704
711
  envelope?: IEnvelope;
705
712
  profile?: IProfile;
713
+ /**
714
+ * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
715
+ * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
716
+ * e.g. email, the signer must follow a link send via the appropriate channel (email).
717
+ */
718
+ in_app_key?: string;
706
719
  }
707
720
  /**
708
721
  * A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
@@ -944,7 +957,7 @@ type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "
944
957
  type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used";
945
958
  type TTemplateVisibility = "private" | "shared" | "public";
946
959
  type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth";
947
- type TRecipientAuthMethod = "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth" | null;
960
+ type TRecipientAuthMethod = "kba" | "passcode" | "sms" | "id" | "kba_id" | null;
948
961
  type TRecipientAuthStep = "complete" | null;
949
962
  declare const FIELD_TYPES: TFieldType[];
950
963
  declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
@@ -1212,26 +1225,29 @@ interface ICreateEnvelopeRecipient {
1212
1225
  delegator?: boolean;
1213
1226
  /** A custom message to include in the email or SMS invitation. May be left blank for a default message. */
1214
1227
  message?: string;
1215
- /** To enable KBA for the recipient, set to 'pin' or 'identity'. */
1216
- kba_method?: "pin" | "identity" | null;
1217
- /** If PIN-based KBA is used, the PIN to challenge the user to enter. */
1218
- kba_pin?: string;
1228
+ /** To enable authentication for the recipient, set to 'pin' or 'identity'. */
1229
+ auth_method?: TRecipientAuthMethod;
1230
+ /** If Passcode-based authentication is used, the passcode to challenge the user to enter. */
1231
+ passcode?: string;
1232
+ /**
1233
+ * If SMS-based authentication is used, the phone number to which one-time codes should be sent.
1234
+ * NOTE: This may be different from the phone number used for notifications, but leaving it blank
1235
+ * will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
1236
+ * assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
1237
+ * is).
1238
+ */
1239
+ phone_auth?: string;
1219
1240
  /*
1220
- * Pre-fill data for the recipient, if known. NOTE: If address and zip are both provided, an initial ID query
1221
- * will be made for the recipient. If questions are returned immediately, the first challenge will be skipped and
1222
- * the recipient will be immediately shown those questions, instead.
1241
+ * Pre-fill data for the recipient, if known. NOTE: Even when pre-filling these fields for a recipient, if
1242
+ * KBA is enabled, the recipient must be provided with the option to confirm those details before proceeding,
1243
+ * provide at least one data point themselves (typically date of birth). Providing every value here will
1244
+ trigger an error.
1223
1245
  */
1224
1246
  address?: string;
1225
1247
  city?: string;
1226
1248
  state?: string;
1227
1249
  zip?: string;
1228
- ssn_last_4?: string;
1229
- /**
1230
- * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
1231
- * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
1232
- * e.g. email, the signer must follow a link send via the appropriate channel (email).
1233
- */
1234
- in_app_key?: string;
1250
+ dob?: string;
1235
1251
  }
1236
1252
  interface ISignerTokenResponse {
1237
1253
  /**
package/dist/index.d.ts CHANGED
@@ -648,12 +648,11 @@ interface IRecipient {
648
648
  status: TRecipientStatus;
649
649
  first_name: string;
650
650
  last_name: string;
651
+ /** @deprecated. Use first_name/last_name instead. */
652
+ full_name?: string | null;
651
653
  email: string;
652
654
  /** Phone number for SMS invites */
653
655
  phone?: string | null;
654
- full_name?: string | null;
655
- /** Phone number for SMS verification */
656
- phone_otp?: string | null;
657
656
  /** Street address. Only used in KBA workflows. Combine two-line addresses into a single string. */
658
657
  address?: string | null;
659
658
  /** Zip code. Only used in KBA workflows. */
@@ -696,6 +695,14 @@ interface IRecipient {
696
695
  * field will only be visible to the creator of the envelope.
697
696
  */
698
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;
699
706
  /**
700
707
  * If authentication has been completed successfully, this will be set to 'complete'. This is a union type
701
708
  * to allow for future expansion with authentication modules that may require multiple steps.
@@ -703,6 +710,12 @@ interface IRecipient {
703
710
  auth_step?: TRecipientAuthStep | null;
704
711
  envelope?: IEnvelope;
705
712
  profile?: IProfile;
713
+ /**
714
+ * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
715
+ * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
716
+ * e.g. email, the signer must follow a link send via the appropriate channel (email).
717
+ */
718
+ in_app_key?: string;
706
719
  }
707
720
  /**
708
721
  * A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
@@ -944,7 +957,7 @@ type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "
944
957
  type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used";
945
958
  type TTemplateVisibility = "private" | "shared" | "public";
946
959
  type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth";
947
- type TRecipientAuthMethod = "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth" | null;
960
+ type TRecipientAuthMethod = "kba" | "passcode" | "sms" | "id" | "kba_id" | null;
948
961
  type TRecipientAuthStep = "complete" | null;
949
962
  declare const FIELD_TYPES: TFieldType[];
950
963
  declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
@@ -1212,26 +1225,29 @@ interface ICreateEnvelopeRecipient {
1212
1225
  delegator?: boolean;
1213
1226
  /** A custom message to include in the email or SMS invitation. May be left blank for a default message. */
1214
1227
  message?: string;
1215
- /** To enable KBA for the recipient, set to 'pin' or 'identity'. */
1216
- kba_method?: "pin" | "identity" | null;
1217
- /** If PIN-based KBA is used, the PIN to challenge the user to enter. */
1218
- kba_pin?: string;
1228
+ /** To enable authentication for the recipient, set to 'pin' or 'identity'. */
1229
+ auth_method?: TRecipientAuthMethod;
1230
+ /** If Passcode-based authentication is used, the passcode to challenge the user to enter. */
1231
+ passcode?: string;
1232
+ /**
1233
+ * If SMS-based authentication is used, the phone number to which one-time codes should be sent.
1234
+ * NOTE: This may be different from the phone number used for notifications, but leaving it blank
1235
+ * will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
1236
+ * assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
1237
+ * is).
1238
+ */
1239
+ phone_auth?: string;
1219
1240
  /*
1220
- * Pre-fill data for the recipient, if known. NOTE: If address and zip are both provided, an initial ID query
1221
- * will be made for the recipient. If questions are returned immediately, the first challenge will be skipped and
1222
- * the recipient will be immediately shown those questions, instead.
1241
+ * Pre-fill data for the recipient, if known. NOTE: Even when pre-filling these fields for a recipient, if
1242
+ * KBA is enabled, the recipient must be provided with the option to confirm those details before proceeding,
1243
+ * provide at least one data point themselves (typically date of birth). Providing every value here will
1244
+ trigger an error.
1223
1245
  */
1224
1246
  address?: string;
1225
1247
  city?: string;
1226
1248
  state?: string;
1227
1249
  zip?: string;
1228
- ssn_last_4?: string;
1229
- /**
1230
- * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
1231
- * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
1232
- * e.g. email, the signer must follow a link send via the appropriate channel (email).
1233
- */
1234
- in_app_key?: string;
1250
+ dob?: string;
1235
1251
  }
1236
1252
  interface ISignerTokenResponse {
1237
1253
  /**
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "5.0.16",
3
+ "version": "5.0.18",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Isomorphic JS/TS SDK providing types and API wrappers for the Verdocs platform for Node and browser clients",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "5.0.16",
3
+ "version": "5.0.18",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Isomorphic JS/TS SDK providing types and API wrappers for the Verdocs platform for Node and browser clients",