@verdocs/js-sdk 5.0.16 → 5.0.17
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 +32 -15
- package/dist/index.d.ts +32 -15
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -696,6 +696,14 @@ interface IRecipient {
|
|
|
696
696
|
* field will only be visible to the creator of the envelope.
|
|
697
697
|
*/
|
|
698
698
|
passcode?: string | null;
|
|
699
|
+
/**
|
|
700
|
+
* If SMS-based authentication is used, the phone number to which one-time codes should be sent.
|
|
701
|
+
* NOTE: This may be different from the phone number used for notifications, but leaving it blank
|
|
702
|
+
* will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
|
|
703
|
+
* assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
|
|
704
|
+
* is).
|
|
705
|
+
*/
|
|
706
|
+
phone_auth?: string;
|
|
699
707
|
/**
|
|
700
708
|
* If authentication has been completed successfully, this will be set to 'complete'. This is a union type
|
|
701
709
|
* to allow for future expansion with authentication modules that may require multiple steps.
|
|
@@ -703,6 +711,12 @@ interface IRecipient {
|
|
|
703
711
|
auth_step?: TRecipientAuthStep | null;
|
|
704
712
|
envelope?: IEnvelope;
|
|
705
713
|
profile?: IProfile;
|
|
714
|
+
/**
|
|
715
|
+
* Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
|
|
716
|
+
* signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
|
|
717
|
+
* e.g. email, the signer must follow a link send via the appropriate channel (email).
|
|
718
|
+
*/
|
|
719
|
+
in_app_key?: string;
|
|
706
720
|
}
|
|
707
721
|
/**
|
|
708
722
|
* A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
|
|
@@ -944,7 +958,7 @@ type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "
|
|
|
944
958
|
type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used";
|
|
945
959
|
type TTemplateVisibility = "private" | "shared" | "public";
|
|
946
960
|
type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth";
|
|
947
|
-
type TRecipientAuthMethod = "
|
|
961
|
+
type TRecipientAuthMethod = "kba" | "passcode" | "sms" | "id" | "kba_id" | null;
|
|
948
962
|
type TRecipientAuthStep = "complete" | null;
|
|
949
963
|
declare const FIELD_TYPES: TFieldType[];
|
|
950
964
|
declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
|
|
@@ -1212,26 +1226,29 @@ interface ICreateEnvelopeRecipient {
|
|
|
1212
1226
|
delegator?: boolean;
|
|
1213
1227
|
/** A custom message to include in the email or SMS invitation. May be left blank for a default message. */
|
|
1214
1228
|
message?: string;
|
|
1215
|
-
/** To enable
|
|
1216
|
-
|
|
1217
|
-
/** If
|
|
1218
|
-
|
|
1229
|
+
/** To enable authentication for the recipient, set to 'pin' or 'identity'. */
|
|
1230
|
+
auth_method?: TRecipientAuthMethod;
|
|
1231
|
+
/** If Passcode-based authentication is used, the passcode to challenge the user to enter. */
|
|
1232
|
+
passcode?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* If SMS-based authentication is used, the phone number to which one-time codes should be sent.
|
|
1235
|
+
* NOTE: This may be different from the phone number used for notifications, but leaving it blank
|
|
1236
|
+
* will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
|
|
1237
|
+
* assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
|
|
1238
|
+
* is).
|
|
1239
|
+
*/
|
|
1240
|
+
phone_auth?: string;
|
|
1219
1241
|
/*
|
|
1220
|
-
* Pre-fill data for the recipient, if known. NOTE:
|
|
1221
|
-
*
|
|
1222
|
-
*
|
|
1242
|
+
* Pre-fill data for the recipient, if known. NOTE: Even when pre-filling these fields for a recipient, if
|
|
1243
|
+
* KBA is enabled, the recipient must be provided with the option to confirm those details before proceeding,
|
|
1244
|
+
* provide at least one data point themselves (typically date of birth). Providing every value here will
|
|
1245
|
+
trigger an error.
|
|
1223
1246
|
*/
|
|
1224
1247
|
address?: string;
|
|
1225
1248
|
city?: string;
|
|
1226
1249
|
state?: string;
|
|
1227
1250
|
zip?: string;
|
|
1228
|
-
|
|
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;
|
|
1251
|
+
dob?: string;
|
|
1235
1252
|
}
|
|
1236
1253
|
interface ISignerTokenResponse {
|
|
1237
1254
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -696,6 +696,14 @@ interface IRecipient {
|
|
|
696
696
|
* field will only be visible to the creator of the envelope.
|
|
697
697
|
*/
|
|
698
698
|
passcode?: string | null;
|
|
699
|
+
/**
|
|
700
|
+
* If SMS-based authentication is used, the phone number to which one-time codes should be sent.
|
|
701
|
+
* NOTE: This may be different from the phone number used for notifications, but leaving it blank
|
|
702
|
+
* will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
|
|
703
|
+
* assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
|
|
704
|
+
* is).
|
|
705
|
+
*/
|
|
706
|
+
phone_auth?: string;
|
|
699
707
|
/**
|
|
700
708
|
* If authentication has been completed successfully, this will be set to 'complete'. This is a union type
|
|
701
709
|
* to allow for future expansion with authentication modules that may require multiple steps.
|
|
@@ -703,6 +711,12 @@ interface IRecipient {
|
|
|
703
711
|
auth_step?: TRecipientAuthStep | null;
|
|
704
712
|
envelope?: IEnvelope;
|
|
705
713
|
profile?: IProfile;
|
|
714
|
+
/**
|
|
715
|
+
* Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
|
|
716
|
+
* signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
|
|
717
|
+
* e.g. email, the signer must follow a link send via the appropriate channel (email).
|
|
718
|
+
*/
|
|
719
|
+
in_app_key?: string;
|
|
706
720
|
}
|
|
707
721
|
/**
|
|
708
722
|
* A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
|
|
@@ -944,7 +958,7 @@ type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "
|
|
|
944
958
|
type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used";
|
|
945
959
|
type TTemplateVisibility = "private" | "shared" | "public";
|
|
946
960
|
type TEntitlement = "envelope" | "kba_auth" | "passcode_auth" | "sms_auth" | "kba_id_auth" | "id_auth";
|
|
947
|
-
type TRecipientAuthMethod = "
|
|
961
|
+
type TRecipientAuthMethod = "kba" | "passcode" | "sms" | "id" | "kba_id" | null;
|
|
948
962
|
type TRecipientAuthStep = "complete" | null;
|
|
949
963
|
declare const FIELD_TYPES: TFieldType[];
|
|
950
964
|
declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
|
|
@@ -1212,26 +1226,29 @@ interface ICreateEnvelopeRecipient {
|
|
|
1212
1226
|
delegator?: boolean;
|
|
1213
1227
|
/** A custom message to include in the email or SMS invitation. May be left blank for a default message. */
|
|
1214
1228
|
message?: string;
|
|
1215
|
-
/** To enable
|
|
1216
|
-
|
|
1217
|
-
/** If
|
|
1218
|
-
|
|
1229
|
+
/** To enable authentication for the recipient, set to 'pin' or 'identity'. */
|
|
1230
|
+
auth_method?: TRecipientAuthMethod;
|
|
1231
|
+
/** If Passcode-based authentication is used, the passcode to challenge the user to enter. */
|
|
1232
|
+
passcode?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* If SMS-based authentication is used, the phone number to which one-time codes should be sent.
|
|
1235
|
+
* NOTE: This may be different from the phone number used for notifications, but leaving it blank
|
|
1236
|
+
* will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
|
|
1237
|
+
* assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
|
|
1238
|
+
* is).
|
|
1239
|
+
*/
|
|
1240
|
+
phone_auth?: string;
|
|
1219
1241
|
/*
|
|
1220
|
-
* Pre-fill data for the recipient, if known. NOTE:
|
|
1221
|
-
*
|
|
1222
|
-
*
|
|
1242
|
+
* Pre-fill data for the recipient, if known. NOTE: Even when pre-filling these fields for a recipient, if
|
|
1243
|
+
* KBA is enabled, the recipient must be provided with the option to confirm those details before proceeding,
|
|
1244
|
+
* provide at least one data point themselves (typically date of birth). Providing every value here will
|
|
1245
|
+
trigger an error.
|
|
1223
1246
|
*/
|
|
1224
1247
|
address?: string;
|
|
1225
1248
|
city?: string;
|
|
1226
1249
|
state?: string;
|
|
1227
1250
|
zip?: string;
|
|
1228
|
-
|
|
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;
|
|
1251
|
+
dob?: string;
|
|
1235
1252
|
}
|
|
1236
1253
|
interface ISignerTokenResponse {
|
|
1237
1254
|
/**
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdocs/js-sdk",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.17",
|
|
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.
|
|
3
|
+
"version": "5.0.17",
|
|
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",
|