@verdocs/js-sdk 4.2.55 → 4.2.66
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 +34 -21
- package/dist/index.d.ts +34 -21
- package/dist/index.js +12 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -16
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -402,7 +402,7 @@ interface IInPersonAccessKey {
|
|
|
402
402
|
id: string;
|
|
403
403
|
type: "in_person_link";
|
|
404
404
|
authentication?: string | null;
|
|
405
|
-
|
|
405
|
+
role_name: string;
|
|
406
406
|
envelope_id: string;
|
|
407
407
|
key: string;
|
|
408
408
|
expiration_date: string | null;
|
|
@@ -1197,14 +1197,33 @@ interface ICreateEnvelopeRecipient {
|
|
|
1197
1197
|
*/
|
|
1198
1198
|
in_app_key?: string;
|
|
1199
1199
|
}
|
|
1200
|
+
interface ISignerTokenResponse {
|
|
1201
|
+
/**
|
|
1202
|
+
* An access token that may be used with a VerdocsEndpoint to perform signing operations.
|
|
1203
|
+
* When signing, the caller's "authentication" status will be recorded as "in-person".
|
|
1204
|
+
*/
|
|
1205
|
+
access_token: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* A copy of the envelope related to the signing session. This is almost always needed when
|
|
1208
|
+
* a signing session is being started, so it is included here for convenience.
|
|
1209
|
+
*/
|
|
1210
|
+
envelope: IEnvelope;
|
|
1211
|
+
}
|
|
1200
1212
|
interface IInPersonLinkResponse {
|
|
1213
|
+
/** A valid Verdocs Web URL that hosts a signing experience. */
|
|
1201
1214
|
link: string;
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1215
|
+
/**
|
|
1216
|
+
* An access token that may be used with a VerdocsEndpoint to perform signing operations.
|
|
1217
|
+
* When signing, the caller's "authentication" status will be recorded as "in-person".
|
|
1218
|
+
*/
|
|
1219
|
+
access_token: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* The access key that matches the signing session. May be used for later initiation requests
|
|
1222
|
+
* if in-person signing was desired, but not necessarily instant (e.g. to hand-off to a
|
|
1223
|
+
* companion application. **NOTE: Access keys are as sensitive as Bearer Tokens and must be
|
|
1224
|
+
* protected from theft and unauthorized sharing!**
|
|
1225
|
+
*/
|
|
1226
|
+
access_key: TAccessKey;
|
|
1208
1227
|
}
|
|
1209
1228
|
interface IUpdateRecipientSubmitParams {
|
|
1210
1229
|
action: "submit";
|
|
@@ -1517,24 +1536,18 @@ declare const envelopeRecipientUpdateName: (endpoint: VerdocsEndpoint, envelopeI
|
|
|
1517
1536
|
* Change a recipient's name.
|
|
1518
1537
|
*/
|
|
1519
1538
|
declare const envelopeRecipientPrepare: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, recipients: IRecipient[]) => Promise<IRecipient>;
|
|
1520
|
-
interface ISignerTokenResponse {
|
|
1521
|
-
envelope: IEnvelope;
|
|
1522
|
-
access_token: string;
|
|
1523
|
-
}
|
|
1524
|
-
/**
|
|
1525
|
-
* Get a signing session for an Envelope. Note that this should generally be called with a NON-default
|
|
1526
|
-
* endpoint.
|
|
1527
|
-
*/
|
|
1528
|
-
declare const getSigningSession: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, key: string) => Promise<ISignerTokenResponse>;
|
|
1529
1539
|
/**
|
|
1530
|
-
*
|
|
1531
|
-
*
|
|
1540
|
+
* Begin a signing session for an Envelope. This path requires an invite code, and should generally
|
|
1541
|
+
* be called with a NON-default endpoint to avoid conflicting with any active user session the user
|
|
1542
|
+
* may have. To initiate in-person signing by an authenticated user (e.g. self-signing), call
|
|
1543
|
+
* getInPersonLink() instead. The response from that call includes both a link for direct signing
|
|
1544
|
+
* via a Web browser as well as an in-person access_key. That access_key.key may be used here as well.
|
|
1532
1545
|
*/
|
|
1533
|
-
declare const
|
|
1546
|
+
declare const startSigningSession: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, key: string) => Promise<ISignerTokenResponse>;
|
|
1534
1547
|
/**
|
|
1535
1548
|
* Get an in-person signing link.
|
|
1536
1549
|
*/
|
|
1537
|
-
declare const getInPersonLink: (endpoint: VerdocsEndpoint,
|
|
1550
|
+
declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string) => Promise<IInPersonLinkResponse>;
|
|
1538
1551
|
/**
|
|
1539
1552
|
* Send a delegation request.
|
|
1540
1553
|
*/
|
|
@@ -2712,4 +2725,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
2712
2725
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
2713
2726
|
*/
|
|
2714
2727
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
2715
|
-
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IReminder, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, 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,
|
|
2728
|
+
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IReminder, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, 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, sendDelegate, resendInvitation, createEnvelopeReminder, getEnvelopeReminder, updateEnvelopeReminder, deleteEnvelopeReminder, 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, getApiKeys, createApiKey, rotateApiKey, updateApiKey, deleteApiKey, getOrganizationContacts, deleteOrganizationContact, createOrganizationContact, updateOrganizationContact, getGroups, getGroup, createGroup, addGroupMember, deleteGroupMember, updateGroup, getOrganizationInvitations, createOrganizationInvitation, deleteOrganizationInvitation, updateOrganizationInvitation, resendOrganizationInvitation, getOrganizationInvitation, acceptOrganizationInvitation, declineOrganizationInvitation, getOrganizationMembers, deleteOrganizationMember, updateOrganizationMember, getOrganization, updateOrganization, updateOrganizationLogo, updateOrganizationThumbnail, 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, ICreateTemplateReminderRequest, createTemplateReminder, getTemplateReminder, updateTemplateReminder, deleteTemplateReminder, createTemplateRole, updateTemplateRole, deleteTemplateRole, getStars, toggleStar, addTemplateTag, getTemplateTags, deleteTemplateTag, createTag, getTag, getAllTags, ITemplateSortBy, IGetTemplatesParams, getTemplates, getTemplate, IDocumentFromUri, IDocumentFromData, ITemplateCreateParams, createTemplate, 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, getRTop, getRLeft, getRValue, blobToBase64, rescale, fileToDataUrl, downloadBlob, Countries, getCountryByCode, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, getPlusOneCountry, isCanada, isAmericanSamoa, isDominicanRepublic, isPuertoRico, getMatchingCountry, integerSequence, formatFullName, formatInitials, fullNameToInitials, capitalize, convertToE164, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
|
package/dist/index.d.ts
CHANGED
|
@@ -402,7 +402,7 @@ interface IInPersonAccessKey {
|
|
|
402
402
|
id: string;
|
|
403
403
|
type: "in_person_link";
|
|
404
404
|
authentication?: string | null;
|
|
405
|
-
|
|
405
|
+
role_name: string;
|
|
406
406
|
envelope_id: string;
|
|
407
407
|
key: string;
|
|
408
408
|
expiration_date: string | null;
|
|
@@ -1197,14 +1197,33 @@ interface ICreateEnvelopeRecipient {
|
|
|
1197
1197
|
*/
|
|
1198
1198
|
in_app_key?: string;
|
|
1199
1199
|
}
|
|
1200
|
+
interface ISignerTokenResponse {
|
|
1201
|
+
/**
|
|
1202
|
+
* An access token that may be used with a VerdocsEndpoint to perform signing operations.
|
|
1203
|
+
* When signing, the caller's "authentication" status will be recorded as "in-person".
|
|
1204
|
+
*/
|
|
1205
|
+
access_token: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* A copy of the envelope related to the signing session. This is almost always needed when
|
|
1208
|
+
* a signing session is being started, so it is included here for convenience.
|
|
1209
|
+
*/
|
|
1210
|
+
envelope: IEnvelope;
|
|
1211
|
+
}
|
|
1200
1212
|
interface IInPersonLinkResponse {
|
|
1213
|
+
/** A valid Verdocs Web URL that hosts a signing experience. */
|
|
1201
1214
|
link: string;
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1215
|
+
/**
|
|
1216
|
+
* An access token that may be used with a VerdocsEndpoint to perform signing operations.
|
|
1217
|
+
* When signing, the caller's "authentication" status will be recorded as "in-person".
|
|
1218
|
+
*/
|
|
1219
|
+
access_token: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* The access key that matches the signing session. May be used for later initiation requests
|
|
1222
|
+
* if in-person signing was desired, but not necessarily instant (e.g. to hand-off to a
|
|
1223
|
+
* companion application. **NOTE: Access keys are as sensitive as Bearer Tokens and must be
|
|
1224
|
+
* protected from theft and unauthorized sharing!**
|
|
1225
|
+
*/
|
|
1226
|
+
access_key: TAccessKey;
|
|
1208
1227
|
}
|
|
1209
1228
|
interface IUpdateRecipientSubmitParams {
|
|
1210
1229
|
action: "submit";
|
|
@@ -1517,24 +1536,18 @@ declare const envelopeRecipientUpdateName: (endpoint: VerdocsEndpoint, envelopeI
|
|
|
1517
1536
|
* Change a recipient's name.
|
|
1518
1537
|
*/
|
|
1519
1538
|
declare const envelopeRecipientPrepare: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, recipients: IRecipient[]) => Promise<IRecipient>;
|
|
1520
|
-
interface ISignerTokenResponse {
|
|
1521
|
-
envelope: IEnvelope;
|
|
1522
|
-
access_token: string;
|
|
1523
|
-
}
|
|
1524
|
-
/**
|
|
1525
|
-
* Get a signing session for an Envelope. Note that this should generally be called with a NON-default
|
|
1526
|
-
* endpoint.
|
|
1527
|
-
*/
|
|
1528
|
-
declare const getSigningSession: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, key: string) => Promise<ISignerTokenResponse>;
|
|
1529
1539
|
/**
|
|
1530
|
-
*
|
|
1531
|
-
*
|
|
1540
|
+
* Begin a signing session for an Envelope. This path requires an invite code, and should generally
|
|
1541
|
+
* be called with a NON-default endpoint to avoid conflicting with any active user session the user
|
|
1542
|
+
* may have. To initiate in-person signing by an authenticated user (e.g. self-signing), call
|
|
1543
|
+
* getInPersonLink() instead. The response from that call includes both a link for direct signing
|
|
1544
|
+
* via a Web browser as well as an in-person access_key. That access_key.key may be used here as well.
|
|
1532
1545
|
*/
|
|
1533
|
-
declare const
|
|
1546
|
+
declare const startSigningSession: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, key: string) => Promise<ISignerTokenResponse>;
|
|
1534
1547
|
/**
|
|
1535
1548
|
* Get an in-person signing link.
|
|
1536
1549
|
*/
|
|
1537
|
-
declare const getInPersonLink: (endpoint: VerdocsEndpoint,
|
|
1550
|
+
declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string) => Promise<IInPersonLinkResponse>;
|
|
1538
1551
|
/**
|
|
1539
1552
|
* Send a delegation request.
|
|
1540
1553
|
*/
|
|
@@ -2712,4 +2725,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
2712
2725
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
2713
2726
|
*/
|
|
2714
2727
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
2715
|
-
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IReminder, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, 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,
|
|
2728
|
+
export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, IChannel, IDisabledChannel, INotification, IApiKey, IGroup, IGroupProfile, IOAuth2App, IOrganization, IOrganizationInvitation, IPendingWebhook, IProfile, IUser, IWebhookEvents, IWebhook, IInPersonAccessKey, IInAppAccessKey, IEmailAccessKey, ISMSAccessKey, TAccessKey, IEnvelope, IEnvelopeDocument, IDropdownOption, IEnvelopeField, IEnvelopeFieldOptions, IEnvelopeFieldSettings, IEnvelopeHistory, IInitial, IKbaPINRequired, IRecipient, IReminder, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TEnvironment, TSessionChangedListener, VerdocsEndpointOptions, VerdocsEndpoint, createEnvelope, getEnvelope, getEnvelopeDocument, getDocumentDownloadLink, getDocumentPreviewLink, cancelEnvelope, getEnvelopeFile, 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, sendDelegate, resendInvitation, createEnvelopeReminder, getEnvelopeReminder, updateEnvelopeReminder, deleteEnvelopeReminder, 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, getApiKeys, createApiKey, rotateApiKey, updateApiKey, deleteApiKey, getOrganizationContacts, deleteOrganizationContact, createOrganizationContact, updateOrganizationContact, getGroups, getGroup, createGroup, addGroupMember, deleteGroupMember, updateGroup, getOrganizationInvitations, createOrganizationInvitation, deleteOrganizationInvitation, updateOrganizationInvitation, resendOrganizationInvitation, getOrganizationInvitation, acceptOrganizationInvitation, declineOrganizationInvitation, getOrganizationMembers, deleteOrganizationMember, updateOrganizationMember, getOrganization, updateOrganization, updateOrganizationLogo, updateOrganizationThumbnail, 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, ICreateTemplateReminderRequest, createTemplateReminder, getTemplateReminder, updateTemplateReminder, deleteTemplateReminder, createTemplateRole, updateTemplateRole, deleteTemplateRole, getStars, toggleStar, addTemplateTag, getTemplateTags, deleteTemplateTag, createTag, getTag, getAllTags, ITemplateSortBy, IGetTemplatesParams, getTemplates, getTemplate, IDocumentFromUri, IDocumentFromData, ITemplateCreateParams, createTemplate, 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, getRTop, getRLeft, getRValue, blobToBase64, rescale, fileToDataUrl, downloadBlob, Countries, getCountryByCode, isFrenchGuiana, isGuadeloupe, isMartinique, isMayotte, getPlusOneCountry, isCanada, isAmericanSamoa, isDominicanRepublic, isPuertoRico, getMatchingCountry, integerSequence, formatFullName, formatInitials, fullNameToInitials, capitalize, convertToE164, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
|
package/dist/index.js
CHANGED
|
@@ -1598,41 +1598,37 @@ const envelopeRecipientUpdateName = (endpoint, envelopeId, roleName, first_name,
|
|
|
1598
1598
|
*/
|
|
1599
1599
|
const envelopeRecipientPrepare = (endpoint, envelopeId, roleName, recipients) => updateRecipient(endpoint, envelopeId, roleName, { action: 'prepare', recipients });
|
|
1600
1600
|
/**
|
|
1601
|
-
*
|
|
1602
|
-
* endpoint
|
|
1601
|
+
* Begin a signing session for an Envelope. This path requires an invite code, and should generally
|
|
1602
|
+
* be called with a NON-default endpoint to avoid conflicting with any active user session the user
|
|
1603
|
+
* may have. To initiate in-person signing by an authenticated user (e.g. self-signing), call
|
|
1604
|
+
* getInPersonLink() instead. The response from that call includes both a link for direct signing
|
|
1605
|
+
* via a Web browser as well as an in-person access_key. That access_key.key may be used here as well.
|
|
1603
1606
|
*/
|
|
1604
|
-
const
|
|
1607
|
+
const startSigningSession = async (endpoint, envelope_id, role_name, key) => {
|
|
1605
1608
|
return endpoint.api //
|
|
1606
|
-
.post(`/v2/sign/
|
|
1609
|
+
.post(`/v2/sign/unauth/${envelope_id}/${encodeURIComponent(role_name)}/${key}`)
|
|
1607
1610
|
.then((r) => {
|
|
1608
1611
|
endpoint.setToken(r.data.access_token);
|
|
1609
1612
|
return r.data;
|
|
1610
1613
|
});
|
|
1611
1614
|
};
|
|
1612
|
-
/**
|
|
1613
|
-
* Get a signing token for in-person signing. Authentication is required. This should be called
|
|
1614
|
-
* by the logged-in user who wants to sign.
|
|
1615
|
-
*/
|
|
1616
|
-
const getSignerToken = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
1617
|
-
.get(`/envelopes/${envelope_id}/recipients/${encodeURIComponent(role_name)}/signer-token`)
|
|
1618
|
-
.then((r) => r.data);
|
|
1619
1615
|
/**
|
|
1620
1616
|
* Get an in-person signing link.
|
|
1621
1617
|
*/
|
|
1622
|
-
const getInPersonLink = (endpoint,
|
|
1623
|
-
.
|
|
1618
|
+
const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
1619
|
+
.post(`/v2/sign/in-person/${envelope_id}/${encodeURIComponent(role_name)}`)
|
|
1624
1620
|
.then((r) => r.data);
|
|
1625
1621
|
/**
|
|
1626
1622
|
* Send a delegation request.
|
|
1627
1623
|
*/
|
|
1628
1624
|
const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
1629
|
-
.post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}
|
|
1625
|
+
.post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`)
|
|
1630
1626
|
.then((r) => r.data);
|
|
1631
1627
|
/**
|
|
1632
1628
|
* Resend a recipient's invitation.
|
|
1633
1629
|
*/
|
|
1634
1630
|
const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
1635
|
-
.
|
|
1631
|
+
.put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'resend' })
|
|
1636
1632
|
.then((r) => r.data);
|
|
1637
1633
|
|
|
1638
1634
|
/**
|
|
@@ -2962,8 +2958,6 @@ exports.getRecipientsWithActions = getRecipientsWithActions;
|
|
|
2962
2958
|
exports.getRoleColor = getRoleColor;
|
|
2963
2959
|
exports.getSignature = getSignature;
|
|
2964
2960
|
exports.getSignatures = getSignatures;
|
|
2965
|
-
exports.getSignerToken = getSignerToken;
|
|
2966
|
-
exports.getSigningSession = getSigningSession;
|
|
2967
2961
|
exports.getStars = getStars;
|
|
2968
2962
|
exports.getTag = getTag;
|
|
2969
2963
|
exports.getTemplate = getTemplate;
|
|
@@ -3004,6 +2998,7 @@ exports.resetPassword = resetPassword;
|
|
|
3004
2998
|
exports.rotateApiKey = rotateApiKey;
|
|
3005
2999
|
exports.sendDelegate = sendDelegate;
|
|
3006
3000
|
exports.setWebhooks = setWebhooks;
|
|
3001
|
+
exports.startSigningSession = startSigningSession;
|
|
3007
3002
|
exports.submitKbaChallengeResponse = submitKbaChallengeResponse;
|
|
3008
3003
|
exports.submitKbaIdentity = submitKbaIdentity;
|
|
3009
3004
|
exports.submitKbaPin = submitKbaPin;
|