@verdocs/js-sdk 5.0.28 → 5.0.30
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 +25 -38
- package/dist/index.d.ts +25 -38
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -644,7 +644,7 @@ interface IRecipient {
|
|
|
644
644
|
id?: string | null;
|
|
645
645
|
envelope_id: string;
|
|
646
646
|
role_name: string;
|
|
647
|
-
profile_id
|
|
647
|
+
profile_id?: string | null;
|
|
648
648
|
status: TRecipientStatus;
|
|
649
649
|
first_name: string;
|
|
650
650
|
last_name: string;
|
|
@@ -688,20 +688,6 @@ interface IRecipient {
|
|
|
688
688
|
created_at: string;
|
|
689
689
|
updated_at: string;
|
|
690
690
|
last_attempt_at?: string;
|
|
691
|
-
/** The type of authentication required for this recipient. */
|
|
692
|
-
auth_methods?: TRecipientAuthMethod[] | null;
|
|
693
|
-
/** The status of each auth method enabled. */
|
|
694
|
-
auth_method_states?: Record<TRecipientAuthMethod, string> | null;
|
|
695
|
-
/**
|
|
696
|
-
* If auth_method is set to "passcode" this is the passcode required. For security reasons, this
|
|
697
|
-
* field will only be visible to the creator of the envelope.
|
|
698
|
-
*/
|
|
699
|
-
passcode?: string | null;
|
|
700
|
-
/**
|
|
701
|
-
* If authentication has been completed successfully, this will be set to 'complete'. This is a union type
|
|
702
|
-
* to allow for future expansion with authentication modules that may require multiple steps.
|
|
703
|
-
*/
|
|
704
|
-
auth_step?: TRecipientAuthStep | null;
|
|
705
691
|
/**
|
|
706
692
|
* Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
|
|
707
693
|
* signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
|
|
@@ -709,13 +695,27 @@ interface IRecipient {
|
|
|
709
695
|
*/
|
|
710
696
|
in_app_key?: string;
|
|
711
697
|
/**
|
|
712
|
-
*
|
|
698
|
+
* The next verification step that must be performed.
|
|
699
|
+
*/
|
|
700
|
+
auth_step?: TRecipientAuthStep | null;
|
|
701
|
+
/** The types of authentication/verification required for this recipient. */
|
|
702
|
+
auth_methods?: TRecipientAuthMethod[] | null;
|
|
703
|
+
/** The status of each auth method enabled. */
|
|
704
|
+
auth_method_states?: Record<TRecipientAuthMethod, "complete" | "failed" | "challenge" | "questions" | "differentiator" | null> | null;
|
|
705
|
+
/**
|
|
706
|
+
* If auth_method is set to "passcode" this is the passcode required. For security reasons, this
|
|
707
|
+
* field will only be visible to the creator of the envelope.
|
|
713
708
|
*/
|
|
714
|
-
|
|
709
|
+
passcode?: string | null;
|
|
715
710
|
/**
|
|
716
|
-
*
|
|
711
|
+
* If a KBA step requires the user to answer a challenge/differentiator question, the
|
|
712
|
+
* question(s) to ask.
|
|
717
713
|
*/
|
|
718
|
-
|
|
714
|
+
kba_questions?: {
|
|
715
|
+
type: string;
|
|
716
|
+
answer: string[];
|
|
717
|
+
prompt: string;
|
|
718
|
+
} | null;
|
|
719
719
|
envelope?: IEnvelope;
|
|
720
720
|
profile?: IProfile;
|
|
721
721
|
}
|
|
@@ -1274,15 +1274,6 @@ interface ISignerTokenResponse {
|
|
|
1274
1274
|
* a signing session is being started, so it is included here for convenience.
|
|
1275
1275
|
*/
|
|
1276
1276
|
recipient: IRecipient;
|
|
1277
|
-
/**
|
|
1278
|
-
* The next authentication step the recipient must perform, or null if no auth steps are needed.
|
|
1279
|
-
*/
|
|
1280
|
-
auth_step: TRecipientAuthMethod | null;
|
|
1281
|
-
/**
|
|
1282
|
-
* If an authentication step must be performed, details related to it. Open-ended type to support
|
|
1283
|
-
* the modularity of the authentication system.
|
|
1284
|
-
*/
|
|
1285
|
-
auth_details: Record<string, any> | null;
|
|
1286
1277
|
}
|
|
1287
1278
|
interface IInPersonLinkResponse {
|
|
1288
1279
|
/** A valid Verdocs Web URL that hosts a signing experience. */
|
|
@@ -1811,8 +1802,8 @@ declare const startSigningSession: (endpoint: VerdocsEndpoint, envelope_id: stri
|
|
|
1811
1802
|
*/
|
|
1812
1803
|
declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string) => Promise<IInPersonLinkResponse>;
|
|
1813
1804
|
/**
|
|
1814
|
-
*
|
|
1815
|
-
* many scenarios require more robust verification of recipients so one or more verification
|
|
1805
|
+
* Verify a recipient within a signing session. All signing sessions use an invite code at a minimum,
|
|
1806
|
+
* but many scenarios require more robust verification of recipients, so one or more verification
|
|
1816
1807
|
* methods may be attached to each recipient. If an authentication method is enabled, the
|
|
1817
1808
|
* signer must first accept the e-signature disclosures, then complete each verification step
|
|
1818
1809
|
* before attempting to view/display documents, complete any fields, or submit the envelope.
|
|
@@ -1820,7 +1811,7 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
|
|
|
1820
1811
|
* thrown.
|
|
1821
1812
|
*
|
|
1822
1813
|
* @group Recipients
|
|
1823
|
-
* @api POST /v2/sign/
|
|
1814
|
+
* @api POST /v2/sign/verify Verify recipient/signer
|
|
1824
1815
|
* @apiParam string(enum:'passcode'|'email'|'sms'|'kba'|'id') auth_method The authentication method being completed
|
|
1825
1816
|
* @apiParam string code? The passcode or OTP entered. Required for passcode, email, and SMS methods.
|
|
1826
1817
|
* @apiParam boolean resend? For SMS or email methods, set to send a new code.
|
|
@@ -1833,13 +1824,9 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
|
|
|
1833
1824
|
* @apiParam boolean ssn_last_4? For KBA, the last 4 digits of the recipient's SSN
|
|
1834
1825
|
* @apiParam boolean dob? For KBA, the recipient's date of birth
|
|
1835
1826
|
* @apiParam array(items:IKBAResponse) responses? For KBA, responses to any challenge questions presented
|
|
1836
|
-
* @apiSuccess
|
|
1827
|
+
* @apiSuccess ISignerTokenResponse . Updated signing session.
|
|
1837
1828
|
*/
|
|
1838
|
-
declare const
|
|
1839
|
-
status: "OK";
|
|
1840
|
-
auth_step: TRecipientAuthStep | null;
|
|
1841
|
-
auth_details: any;
|
|
1842
|
-
}>;
|
|
1829
|
+
declare const verifySigner: (endpoint: VerdocsEndpoint, params: TAuthenticateRecipientRequest) => Promise<ISignerTokenResponse>;
|
|
1843
1830
|
/**
|
|
1844
1831
|
* Send a delegation request.
|
|
1845
1832
|
*/
|
|
@@ -3513,4 +3500,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
3513
3500
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
3514
3501
|
*/
|
|
3515
3502
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
3516
|
-
export { TRequestStatus, TTemplateSender, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, TDeprecatedHistoryEvent, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, TEntitlement, TRecipientAuthMethod, TRecipientAuthStep, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, ALL_PERMISSIONS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IEntitlement, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, updateEnvelope, updateEnvelopeField, updateEnvelopeFieldSignature, updateEnvelopeFieldInitials, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, getFieldAttachment, getEnvelopeDocumentPageDisplayUri, ITimeRange, IListEnvelopesParams, getEnvelopes, createInitials, IRecipientKbaStepNone, IRecipientKbaStepComplete, IRecipientKbaStepPin, IRecipientKbaStepIdentity, IRecipientKbaStepChallenge, IRecipientKbaStepFailed, TRecipientKbaStep, getKbaStep, submitKbaPin, IKbaIdentity, submitKbaIdentity, IKbaChallengeResponse, submitKbaChallengeResponse, updateRecipient, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, startSigningSession, getInPersonLink,
|
|
3503
|
+
export { TRequestStatus, TTemplateSender, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, TDeprecatedHistoryEvent, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, TEntitlement, TRecipientAuthMethod, TRecipientAuthStep, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, ALL_PERMISSIONS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IEntitlement, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, updateEnvelope, updateEnvelopeField, updateEnvelopeFieldSignature, updateEnvelopeFieldInitials, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, getFieldAttachment, getEnvelopeDocumentPageDisplayUri, ITimeRange, IListEnvelopesParams, getEnvelopes, createInitials, IRecipientKbaStepNone, IRecipientKbaStepComplete, IRecipientKbaStepPin, IRecipientKbaStepIdentity, IRecipientKbaStepChallenge, IRecipientKbaStepFailed, TRecipientKbaStep, getKbaStep, submitKbaPin, IKbaIdentity, submitKbaIdentity, IKbaChallengeResponse, submitKbaChallengeResponse, updateRecipient, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, startSigningSession, getInPersonLink, verifySigner, sendDelegate, resendInvitation, userIsEnvelopeOwner, userIsEnvelopeRecipient, envelopeIsActive, envelopeIsComplete, userCanCancelEnvelope, userCanFinishEnvelope, recipientHasAction, getRecipientsWithActions, recipientCanAct, userCanAct, userCanSignNow, getNextRecipient, createSignature, getSignatures, getSignature, deleteSignature, IEnvelopesSearchResult, IDocumentSearchOptions, ICreateEnvelopeRecipient, ISignerTokenResponse, IInPersonLinkResponse, IUpdateRecipientSubmitParams, IUpdateRecipientDeclineParams, IUpdateRecipientClaimEnvelope, IUpdateRecipientStatus, IUpdateRecipientAgreedParams, IUpdateRecipientNameParams, IUpdateRecipientPrepareParams, ICreateEnvelopeReminderRequest, ICreateEnvelopeFromTemplateRequest, ICreateEnvelopeDirectlyRequest, TCreateEnvelopeRequest, IAuthenticateRecipientViaPasscodeRequest, IAuthenticateRecipientViaEmailRequest, IAuthenticateRecipientViaSMSRequest, IKBAResponse, IAuthenticateRecipientViaKBARequest, TAuthenticateRecipientRequest, getApiKeys, createApiKey, rotateApiKey, updateApiKey, deleteApiKey, getOrganizationContacts, deleteOrganizationContact, createOrganizationContact, updateOrganizationContact, getGroups, getGroup, createGroup, updateGroup, deleteGroup, addGroupMember, deleteGroupMember, getOrganizationInvitations, createOrganizationInvitation, deleteOrganizationInvitation, updateOrganizationInvitation, resendOrganizationInvitation, getOrganizationInvitation, acceptOrganizationInvitation, declineOrganizationInvitation, getOrganizationMembers, deleteOrganizationMember, updateOrganizationMember, getOrganization, createOrganization, updateOrganization, deleteOrganization, updateOrganizationLogo, updateOrganizationThumbnail, getEntitlements, getActiveEntitlements, ICreateApiKeyRequest, IUpdateApiKeyRequest, ICreateInvitationRequest, IAcceptOrganizationInvitationRequest, ISetWebhookRequest, getWebhooks, setWebhooks, TTemplatePermissionCreatePublic, TTemplatePermissionCreateOrg, TTemplatePermissionCreatePersonal, TTemplatePermissionDelete, TTemplatePermissionVisibility, TTemplateMemberRead, TTemplateMemberWrite, TTemplateMemberDelete, TTemplateMemberVisibility, TTemplatePermission, TAccountPermissionOwnerAdd, TAccountPermissionOwnerRemove, TAccountPermissionAdminAdd, TAccountPermissionAdminRemove, TAccountPermissionMemberView, TAccountPermissionMemberAdd, TAccountPermissionMemberRemove, TAccountPermission, TOrgPermissionCreate, TOrgPermissionView, TOrgPermissionUpdate, TOrgPermissionDelete, TOrgPermissionTransfer, TOrgPermissionList, TOrgPermission, TEnvelopePermissionCreate, TEnvelopePermissionCancel, TEnvelopePermissionView, TEnvelopePermissionOrg, TEnvelopePermission, TPermission, TRole, RolePermissions, userHasPermissions, ISigningSession, IUserSession, IIdToken, TSessionType, TSession, TActiveSession, canPerformTemplateAction, hasRequiredPermissions, createField, updateField, deleteField, userIsTemplateCreator, userHasSharedTemplate, userCanCreatePersonalTemplate, userCanCreateOrgTemplate, userCanCreatePublicTemplate, userCanReadTemplate, userCanUpdateTemplate, userCanMakeTemplatePrivate, userCanMakeTemplateShared, userCanMakeTemplatePublic, userCanChangeOrgVisibility, userCanDeleteTemplate, userCanSendTemplate, userCanCreateTemplate, userCanBuildTemplate, getFieldsForRole, userCanPreviewTemplate, createTemplateRole, updateTemplateRole, deleteTemplateRole, getStars, toggleStar, addTemplateTag, getTemplateTags, deleteTemplateTag, createTag, getTag, getAllTags, ITemplateSortBy, TTemplateVisibilityFilter, IGetTemplatesParams, getTemplates, getTemplate, IDocumentFromUri, IDocumentFromData, ITemplateCreateParams, createTemplate, duplicateTemplate, ITemplateCreateFromSharepointParams, createTemplateFromSharepoint, updateTemplate, deleteTemplate, getTemplateDocuments, getTemplateDocument, createTemplateDocument, deleteTemplateDocument, getTemplateDocumentFile, getTemplateDocumentThumbnail, getTemplateDocumentPageDisplayUri, ITemplateTag, ITag, IStar, ITemplateSearchResult, IValidator, getValidators, getValidator, isValidEmail, isValidPhone, isValidRoleName, isValidTag, IROPCRequest, IClientCredentialsRequest, IRefreshTokenRequest, TAuthenticationRequest, authenticate, refreshToken, changePassword, resetPassword, resendVerification, verifyEmail, getMyUser, getNotifications, getProfiles, getCurrentProfile, switchProfile, updateProfile, deleteProfile, createProfile, updateProfilePhoto, ICreateProfileRequest, IUpdateProfileRequest, IAuthenticateResponse, IChangePasswordRequest, IChangePasswordResponse, IResetPasswordRequest, IResetPasswordResponse, IVerifyEmailRequest, getRGB, getRGBA, nameToRGBA, getRoleColor, formatShortTimeAgo, collapseEntitlements, getRTop, getRLeft, getRValue, blobToBase64, rescale, sortFields, fileToDataUrl, downloadBlob, Countries, getCountryByCode, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, getPlusOneCountry, isCanada, isAmericanSamoa, isDominicanRepublic, isPuertoRico, getMatchingCountry, integerSequence, formatFullName, formatInitials, fullNameToInitials, capitalize, convertToE164, randomString, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
|
package/dist/index.d.ts
CHANGED
|
@@ -644,7 +644,7 @@ interface IRecipient {
|
|
|
644
644
|
id?: string | null;
|
|
645
645
|
envelope_id: string;
|
|
646
646
|
role_name: string;
|
|
647
|
-
profile_id
|
|
647
|
+
profile_id?: string | null;
|
|
648
648
|
status: TRecipientStatus;
|
|
649
649
|
first_name: string;
|
|
650
650
|
last_name: string;
|
|
@@ -688,20 +688,6 @@ interface IRecipient {
|
|
|
688
688
|
created_at: string;
|
|
689
689
|
updated_at: string;
|
|
690
690
|
last_attempt_at?: string;
|
|
691
|
-
/** The type of authentication required for this recipient. */
|
|
692
|
-
auth_methods?: TRecipientAuthMethod[] | null;
|
|
693
|
-
/** The status of each auth method enabled. */
|
|
694
|
-
auth_method_states?: Record<TRecipientAuthMethod, string> | null;
|
|
695
|
-
/**
|
|
696
|
-
* If auth_method is set to "passcode" this is the passcode required. For security reasons, this
|
|
697
|
-
* field will only be visible to the creator of the envelope.
|
|
698
|
-
*/
|
|
699
|
-
passcode?: string | null;
|
|
700
|
-
/**
|
|
701
|
-
* If authentication has been completed successfully, this will be set to 'complete'. This is a union type
|
|
702
|
-
* to allow for future expansion with authentication modules that may require multiple steps.
|
|
703
|
-
*/
|
|
704
|
-
auth_step?: TRecipientAuthStep | null;
|
|
705
691
|
/**
|
|
706
692
|
* Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
|
|
707
693
|
* signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
|
|
@@ -709,13 +695,27 @@ interface IRecipient {
|
|
|
709
695
|
*/
|
|
710
696
|
in_app_key?: string;
|
|
711
697
|
/**
|
|
712
|
-
*
|
|
698
|
+
* The next verification step that must be performed.
|
|
699
|
+
*/
|
|
700
|
+
auth_step?: TRecipientAuthStep | null;
|
|
701
|
+
/** The types of authentication/verification required for this recipient. */
|
|
702
|
+
auth_methods?: TRecipientAuthMethod[] | null;
|
|
703
|
+
/** The status of each auth method enabled. */
|
|
704
|
+
auth_method_states?: Record<TRecipientAuthMethod, "complete" | "failed" | "challenge" | "questions" | "differentiator" | null> | null;
|
|
705
|
+
/**
|
|
706
|
+
* If auth_method is set to "passcode" this is the passcode required. For security reasons, this
|
|
707
|
+
* field will only be visible to the creator of the envelope.
|
|
713
708
|
*/
|
|
714
|
-
|
|
709
|
+
passcode?: string | null;
|
|
715
710
|
/**
|
|
716
|
-
*
|
|
711
|
+
* If a KBA step requires the user to answer a challenge/differentiator question, the
|
|
712
|
+
* question(s) to ask.
|
|
717
713
|
*/
|
|
718
|
-
|
|
714
|
+
kba_questions?: {
|
|
715
|
+
type: string;
|
|
716
|
+
answer: string[];
|
|
717
|
+
prompt: string;
|
|
718
|
+
} | null;
|
|
719
719
|
envelope?: IEnvelope;
|
|
720
720
|
profile?: IProfile;
|
|
721
721
|
}
|
|
@@ -1274,15 +1274,6 @@ interface ISignerTokenResponse {
|
|
|
1274
1274
|
* a signing session is being started, so it is included here for convenience.
|
|
1275
1275
|
*/
|
|
1276
1276
|
recipient: IRecipient;
|
|
1277
|
-
/**
|
|
1278
|
-
* The next authentication step the recipient must perform, or null if no auth steps are needed.
|
|
1279
|
-
*/
|
|
1280
|
-
auth_step: TRecipientAuthMethod | null;
|
|
1281
|
-
/**
|
|
1282
|
-
* If an authentication step must be performed, details related to it. Open-ended type to support
|
|
1283
|
-
* the modularity of the authentication system.
|
|
1284
|
-
*/
|
|
1285
|
-
auth_details: Record<string, any> | null;
|
|
1286
1277
|
}
|
|
1287
1278
|
interface IInPersonLinkResponse {
|
|
1288
1279
|
/** A valid Verdocs Web URL that hosts a signing experience. */
|
|
@@ -1811,8 +1802,8 @@ declare const startSigningSession: (endpoint: VerdocsEndpoint, envelope_id: stri
|
|
|
1811
1802
|
*/
|
|
1812
1803
|
declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string) => Promise<IInPersonLinkResponse>;
|
|
1813
1804
|
/**
|
|
1814
|
-
*
|
|
1815
|
-
* many scenarios require more robust verification of recipients so one or more verification
|
|
1805
|
+
* Verify a recipient within a signing session. All signing sessions use an invite code at a minimum,
|
|
1806
|
+
* but many scenarios require more robust verification of recipients, so one or more verification
|
|
1816
1807
|
* methods may be attached to each recipient. If an authentication method is enabled, the
|
|
1817
1808
|
* signer must first accept the e-signature disclosures, then complete each verification step
|
|
1818
1809
|
* before attempting to view/display documents, complete any fields, or submit the envelope.
|
|
@@ -1820,7 +1811,7 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
|
|
|
1820
1811
|
* thrown.
|
|
1821
1812
|
*
|
|
1822
1813
|
* @group Recipients
|
|
1823
|
-
* @api POST /v2/sign/
|
|
1814
|
+
* @api POST /v2/sign/verify Verify recipient/signer
|
|
1824
1815
|
* @apiParam string(enum:'passcode'|'email'|'sms'|'kba'|'id') auth_method The authentication method being completed
|
|
1825
1816
|
* @apiParam string code? The passcode or OTP entered. Required for passcode, email, and SMS methods.
|
|
1826
1817
|
* @apiParam boolean resend? For SMS or email methods, set to send a new code.
|
|
@@ -1833,13 +1824,9 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
|
|
|
1833
1824
|
* @apiParam boolean ssn_last_4? For KBA, the last 4 digits of the recipient's SSN
|
|
1834
1825
|
* @apiParam boolean dob? For KBA, the recipient's date of birth
|
|
1835
1826
|
* @apiParam array(items:IKBAResponse) responses? For KBA, responses to any challenge questions presented
|
|
1836
|
-
* @apiSuccess
|
|
1827
|
+
* @apiSuccess ISignerTokenResponse . Updated signing session.
|
|
1837
1828
|
*/
|
|
1838
|
-
declare const
|
|
1839
|
-
status: "OK";
|
|
1840
|
-
auth_step: TRecipientAuthStep | null;
|
|
1841
|
-
auth_details: any;
|
|
1842
|
-
}>;
|
|
1829
|
+
declare const verifySigner: (endpoint: VerdocsEndpoint, params: TAuthenticateRecipientRequest) => Promise<ISignerTokenResponse>;
|
|
1843
1830
|
/**
|
|
1844
1831
|
* Send a delegation request.
|
|
1845
1832
|
*/
|
|
@@ -3513,4 +3500,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
3513
3500
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
3514
3501
|
*/
|
|
3515
3502
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
3516
|
-
export { TRequestStatus, TTemplateSender, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, TDeprecatedHistoryEvent, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, TEntitlement, TRecipientAuthMethod, TRecipientAuthStep, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, ALL_PERMISSIONS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IEntitlement, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, updateEnvelope, updateEnvelopeField, updateEnvelopeFieldSignature, updateEnvelopeFieldInitials, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, getFieldAttachment, getEnvelopeDocumentPageDisplayUri, ITimeRange, IListEnvelopesParams, getEnvelopes, createInitials, IRecipientKbaStepNone, IRecipientKbaStepComplete, IRecipientKbaStepPin, IRecipientKbaStepIdentity, IRecipientKbaStepChallenge, IRecipientKbaStepFailed, TRecipientKbaStep, getKbaStep, submitKbaPin, IKbaIdentity, submitKbaIdentity, IKbaChallengeResponse, submitKbaChallengeResponse, updateRecipient, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, startSigningSession, getInPersonLink,
|
|
3503
|
+
export { TRequestStatus, TTemplateSender, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, TDeprecatedHistoryEvent, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, TEntitlement, TRecipientAuthMethod, TRecipientAuthStep, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, ALL_PERMISSIONS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IEntitlement, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, updateEnvelope, updateEnvelopeField, updateEnvelopeFieldSignature, updateEnvelopeFieldInitials, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, getFieldAttachment, getEnvelopeDocumentPageDisplayUri, ITimeRange, IListEnvelopesParams, getEnvelopes, createInitials, IRecipientKbaStepNone, IRecipientKbaStepComplete, IRecipientKbaStepPin, IRecipientKbaStepIdentity, IRecipientKbaStepChallenge, IRecipientKbaStepFailed, TRecipientKbaStep, getKbaStep, submitKbaPin, IKbaIdentity, submitKbaIdentity, IKbaChallengeResponse, submitKbaChallengeResponse, updateRecipient, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, startSigningSession, getInPersonLink, verifySigner, sendDelegate, resendInvitation, userIsEnvelopeOwner, userIsEnvelopeRecipient, envelopeIsActive, envelopeIsComplete, userCanCancelEnvelope, userCanFinishEnvelope, recipientHasAction, getRecipientsWithActions, recipientCanAct, userCanAct, userCanSignNow, getNextRecipient, createSignature, getSignatures, getSignature, deleteSignature, IEnvelopesSearchResult, IDocumentSearchOptions, ICreateEnvelopeRecipient, ISignerTokenResponse, IInPersonLinkResponse, IUpdateRecipientSubmitParams, IUpdateRecipientDeclineParams, IUpdateRecipientClaimEnvelope, IUpdateRecipientStatus, IUpdateRecipientAgreedParams, IUpdateRecipientNameParams, IUpdateRecipientPrepareParams, ICreateEnvelopeReminderRequest, ICreateEnvelopeFromTemplateRequest, ICreateEnvelopeDirectlyRequest, TCreateEnvelopeRequest, IAuthenticateRecipientViaPasscodeRequest, IAuthenticateRecipientViaEmailRequest, IAuthenticateRecipientViaSMSRequest, IKBAResponse, IAuthenticateRecipientViaKBARequest, TAuthenticateRecipientRequest, getApiKeys, createApiKey, rotateApiKey, updateApiKey, deleteApiKey, getOrganizationContacts, deleteOrganizationContact, createOrganizationContact, updateOrganizationContact, getGroups, getGroup, createGroup, updateGroup, deleteGroup, addGroupMember, deleteGroupMember, getOrganizationInvitations, createOrganizationInvitation, deleteOrganizationInvitation, updateOrganizationInvitation, resendOrganizationInvitation, getOrganizationInvitation, acceptOrganizationInvitation, declineOrganizationInvitation, getOrganizationMembers, deleteOrganizationMember, updateOrganizationMember, getOrganization, createOrganization, updateOrganization, deleteOrganization, updateOrganizationLogo, updateOrganizationThumbnail, getEntitlements, getActiveEntitlements, ICreateApiKeyRequest, IUpdateApiKeyRequest, ICreateInvitationRequest, IAcceptOrganizationInvitationRequest, ISetWebhookRequest, getWebhooks, setWebhooks, TTemplatePermissionCreatePublic, TTemplatePermissionCreateOrg, TTemplatePermissionCreatePersonal, TTemplatePermissionDelete, TTemplatePermissionVisibility, TTemplateMemberRead, TTemplateMemberWrite, TTemplateMemberDelete, TTemplateMemberVisibility, TTemplatePermission, TAccountPermissionOwnerAdd, TAccountPermissionOwnerRemove, TAccountPermissionAdminAdd, TAccountPermissionAdminRemove, TAccountPermissionMemberView, TAccountPermissionMemberAdd, TAccountPermissionMemberRemove, TAccountPermission, TOrgPermissionCreate, TOrgPermissionView, TOrgPermissionUpdate, TOrgPermissionDelete, TOrgPermissionTransfer, TOrgPermissionList, TOrgPermission, TEnvelopePermissionCreate, TEnvelopePermissionCancel, TEnvelopePermissionView, TEnvelopePermissionOrg, TEnvelopePermission, TPermission, TRole, RolePermissions, userHasPermissions, ISigningSession, IUserSession, IIdToken, TSessionType, TSession, TActiveSession, canPerformTemplateAction, hasRequiredPermissions, createField, updateField, deleteField, userIsTemplateCreator, userHasSharedTemplate, userCanCreatePersonalTemplate, userCanCreateOrgTemplate, userCanCreatePublicTemplate, userCanReadTemplate, userCanUpdateTemplate, userCanMakeTemplatePrivate, userCanMakeTemplateShared, userCanMakeTemplatePublic, userCanChangeOrgVisibility, userCanDeleteTemplate, userCanSendTemplate, userCanCreateTemplate, userCanBuildTemplate, getFieldsForRole, userCanPreviewTemplate, createTemplateRole, updateTemplateRole, deleteTemplateRole, getStars, toggleStar, addTemplateTag, getTemplateTags, deleteTemplateTag, createTag, getTag, getAllTags, ITemplateSortBy, TTemplateVisibilityFilter, IGetTemplatesParams, getTemplates, getTemplate, IDocumentFromUri, IDocumentFromData, ITemplateCreateParams, createTemplate, duplicateTemplate, ITemplateCreateFromSharepointParams, createTemplateFromSharepoint, updateTemplate, deleteTemplate, getTemplateDocuments, getTemplateDocument, createTemplateDocument, deleteTemplateDocument, getTemplateDocumentFile, getTemplateDocumentThumbnail, getTemplateDocumentPageDisplayUri, ITemplateTag, ITag, IStar, ITemplateSearchResult, IValidator, getValidators, getValidator, isValidEmail, isValidPhone, isValidRoleName, isValidTag, IROPCRequest, IClientCredentialsRequest, IRefreshTokenRequest, TAuthenticationRequest, authenticate, refreshToken, changePassword, resetPassword, resendVerification, verifyEmail, getMyUser, getNotifications, getProfiles, getCurrentProfile, switchProfile, updateProfile, deleteProfile, createProfile, updateProfilePhoto, ICreateProfileRequest, IUpdateProfileRequest, IAuthenticateResponse, IChangePasswordRequest, IChangePasswordResponse, IResetPasswordRequest, IResetPasswordResponse, IVerifyEmailRequest, getRGB, getRGBA, nameToRGBA, getRoleColor, formatShortTimeAgo, collapseEntitlements, getRTop, getRLeft, getRValue, blobToBase64, rescale, sortFields, fileToDataUrl, downloadBlob, Countries, getCountryByCode, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, getPlusOneCountry, isCanada, isAmericanSamoa, isDominicanRepublic, isPuertoRico, getMatchingCountry, integerSequence, formatFullName, formatInitials, fullNameToInitials, capitalize, convertToE164, randomString, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
|
package/dist/index.js
CHANGED
|
@@ -1933,8 +1933,8 @@ const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
|
1933
1933
|
.post(`/v2/sign/in-person/${envelope_id}/${encodeURIComponent(role_name)}`)
|
|
1934
1934
|
.then((r) => r.data);
|
|
1935
1935
|
/**
|
|
1936
|
-
*
|
|
1937
|
-
* many scenarios require more robust verification of recipients so one or more verification
|
|
1936
|
+
* Verify a recipient within a signing session. All signing sessions use an invite code at a minimum,
|
|
1937
|
+
* but many scenarios require more robust verification of recipients, so one or more verification
|
|
1938
1938
|
* methods may be attached to each recipient. If an authentication method is enabled, the
|
|
1939
1939
|
* signer must first accept the e-signature disclosures, then complete each verification step
|
|
1940
1940
|
* before attempting to view/display documents, complete any fields, or submit the envelope.
|
|
@@ -1942,7 +1942,7 @@ const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
|
1942
1942
|
* thrown.
|
|
1943
1943
|
*
|
|
1944
1944
|
* @group Recipients
|
|
1945
|
-
* @api POST /v2/sign/
|
|
1945
|
+
* @api POST /v2/sign/verify Verify recipient/signer
|
|
1946
1946
|
* @apiParam string(enum:'passcode'|'email'|'sms'|'kba'|'id') auth_method The authentication method being completed
|
|
1947
1947
|
* @apiParam string code? The passcode or OTP entered. Required for passcode, email, and SMS methods.
|
|
1948
1948
|
* @apiParam boolean resend? For SMS or email methods, set to send a new code.
|
|
@@ -1955,10 +1955,10 @@ const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
|
1955
1955
|
* @apiParam boolean ssn_last_4? For KBA, the last 4 digits of the recipient's SSN
|
|
1956
1956
|
* @apiParam boolean dob? For KBA, the recipient's date of birth
|
|
1957
1957
|
* @apiParam array(items:IKBAResponse) responses? For KBA, responses to any challenge questions presented
|
|
1958
|
-
* @apiSuccess
|
|
1958
|
+
* @apiSuccess ISignerTokenResponse . Updated signing session.
|
|
1959
1959
|
*/
|
|
1960
|
-
const
|
|
1961
|
-
.post(`/v2/sign/
|
|
1960
|
+
const verifySigner = (endpoint, params) => endpoint.api //
|
|
1961
|
+
.post(`/v2/sign/verify`, params)
|
|
1962
1962
|
.then((r) => r.data);
|
|
1963
1963
|
/**
|
|
1964
1964
|
* Send a delegation request.
|
|
@@ -3614,7 +3614,6 @@ exports.acceptOrganizationInvitation = acceptOrganizationInvitation;
|
|
|
3614
3614
|
exports.addGroupMember = addGroupMember;
|
|
3615
3615
|
exports.addTemplateTag = addTemplateTag;
|
|
3616
3616
|
exports.authenticate = authenticate;
|
|
3617
|
-
exports.authenticateSigner = authenticateSigner;
|
|
3618
3617
|
exports.blobToBase64 = blobToBase64;
|
|
3619
3618
|
exports.canPerformTemplateAction = canPerformTemplateAction;
|
|
3620
3619
|
exports.cancelEnvelope = cancelEnvelope;
|
|
@@ -3799,4 +3798,5 @@ exports.userIsEnvelopeOwner = userIsEnvelopeOwner;
|
|
|
3799
3798
|
exports.userIsEnvelopeRecipient = userIsEnvelopeRecipient;
|
|
3800
3799
|
exports.userIsTemplateCreator = userIsTemplateCreator;
|
|
3801
3800
|
exports.verifyEmail = verifyEmail;
|
|
3801
|
+
exports.verifySigner = verifySigner;
|
|
3802
3802
|
//# sourceMappingURL=index.js.map
|