@verdocs/js-sdk 5.3.1 → 5.3.3
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 +33 -7
- package/dist/index.d.ts +33 -7
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -8
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1474,7 +1474,7 @@ interface ICreateEnvelopeFieldFromTemplate {
|
|
|
1474
1474
|
/** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
|
|
1475
1475
|
group?: string;
|
|
1476
1476
|
/** Override the "options" setting from the template. */
|
|
1477
|
-
options
|
|
1477
|
+
options?: IDropdownOption[] | null;
|
|
1478
1478
|
}
|
|
1479
1479
|
interface ICreateEnvelopeFieldDirectly {
|
|
1480
1480
|
/** The array index of the document the field is for. */
|
|
@@ -2041,10 +2041,6 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
|
|
|
2041
2041
|
* @apiSuccess ISignerTokenResponse . Updated signing session.
|
|
2042
2042
|
*/
|
|
2043
2043
|
declare const verifySigner: (endpoint: VerdocsEndpoint, params: TAuthenticateRecipientRequest) => Promise<ISignerTokenResponse>;
|
|
2044
|
-
/**
|
|
2045
|
-
* Send a delegation request.
|
|
2046
|
-
*/
|
|
2047
|
-
declare const sendDelegate: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<IEnvelope>;
|
|
2048
2044
|
/**
|
|
2049
2045
|
* Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
|
|
2050
2046
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -2055,12 +2051,42 @@ declare const sendDelegate: (endpoint: VerdocsEndpoint, envelopeId: string, role
|
|
|
2055
2051
|
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
|
|
2056
2052
|
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2057
2053
|
* @apiParam string role_name The role to operate on.
|
|
2058
|
-
* @apiBody string(enum:'resend') action The operation to perform.
|
|
2054
|
+
* @apiBody string(enum:'resend') action The operation to perform (resend).
|
|
2059
2055
|
* @apiSuccess string . Success message.
|
|
2060
2056
|
*/
|
|
2061
2057
|
declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<{
|
|
2062
2058
|
status: "OK";
|
|
2063
2059
|
}>;
|
|
2060
|
+
/**
|
|
2061
|
+
* Delegate a recipient's signing responsibility. The envelope sender must enable this before the
|
|
2062
|
+
* recipient calls this endpoint, and only the recipient may call it, or the call will be rejected.
|
|
2063
|
+
* The recipient's role will be renamed and configured to indicate to whom the delegation was made,
|
|
2064
|
+
* and a new recipient entry with the updated details (e.g. name and email address) will be added
|
|
2065
|
+
* to the flow with the same role_name, order, and sequence of the original recipient. Unless
|
|
2066
|
+
* no_contact is set on the envelope, the delegation recipient and envelope creator will also be
|
|
2067
|
+
* notified.
|
|
2068
|
+
*
|
|
2069
|
+
* @group Recipients
|
|
2070
|
+
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Delegate Recipient
|
|
2071
|
+
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2072
|
+
* @apiParam string role_name The role to operate on.
|
|
2073
|
+
* @apiBody string(enum:'delegate') action The operation to perform (delegate).
|
|
2074
|
+
* @apiBody string first_name The first name of the new recipient.
|
|
2075
|
+
* @apiBody string last_name The last name of the new recipient.
|
|
2076
|
+
* @apiBody string email The email address of the new recipient.
|
|
2077
|
+
* @apiBody string phone? Optional phone number for the new recipient.
|
|
2078
|
+
* @apiBody string message? Optional phone number for the new recipient's invitation.
|
|
2079
|
+
* @apiSuccess string . Success message.
|
|
2080
|
+
*/
|
|
2081
|
+
declare const delegateRecipient: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, params: {
|
|
2082
|
+
first_name: string;
|
|
2083
|
+
last_name: string;
|
|
2084
|
+
email: string;
|
|
2085
|
+
phone?: string;
|
|
2086
|
+
message?: string;
|
|
2087
|
+
}) => Promise<{
|
|
2088
|
+
status: "OK";
|
|
2089
|
+
}>;
|
|
2064
2090
|
/**
|
|
2065
2091
|
* Update a recipient. NOTE: User interfaces should rate-limit this operation to
|
|
2066
2092
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -3779,4 +3805,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
3779
3805
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
3780
3806
|
*/
|
|
3781
3807
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
3782
|
-
export { TRequestStatus, TTemplateSender, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, TDeprecatedHistoryEvent, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, TEntitlement, TRecipientAuthMethod, TRecipientAuthStep, TUsageType, 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, IKBAQuestion, IRecipient, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TOrganizationUsage, 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, updateRecipientStatus, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, startSigningSession, getInPersonLink, verifySigner,
|
|
3808
|
+
export { TRequestStatus, TTemplateSender, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, TDeprecatedHistoryEvent, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, TEntitlement, TRecipientAuthMethod, TRecipientAuthStep, TUsageType, 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, IKBAQuestion, IRecipient, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TOrganizationUsage, 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, updateRecipientStatus, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, startSigningSession, getInPersonLink, verifySigner, resendInvitation, delegateRecipient, updateRecipient, userIsEnvelopeOwner, userIsEnvelopeRecipient, envelopeIsActive, envelopeIsComplete, userCanCancelEnvelope, userCanFinishEnvelope, recipientHasAction, getRecipientsWithActions, recipientCanAct, userCanAct, userCanSignNow, getNextRecipient, createSignature, getSignatures, getSignature, deleteSignature, IEnvelopesSearchResult, IDocumentSearchOptions, ICreateEnvelopeRecipientFromTemplate, ICreateEnvelopeRecipientDirectly, ISignerTokenResponse, IInPersonLinkResponse, IUpdateRecipientSubmitParams, IUpdateRecipientDeclineParams, IUpdateRecipientClaimEnvelope, IUpdateRecipientStatus, IUpdateRecipientAgreedParams, IUpdateRecipientNameParams, IUpdateRecipientPrepareParams, ICreateEnvelopeReminderRequest, IUpdateRecipientParams, ICreateEnvelopeDocumentFromData, ICreateEnvelopeDocumentFromUri, ICreateEnvelopeDocumentFromFile, ICreateEnvelopeFieldFromTemplate, ICreateEnvelopeFieldDirectly, 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, getOrganizationChildren, getOrganizationUsage, 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
|
@@ -1474,7 +1474,7 @@ interface ICreateEnvelopeFieldFromTemplate {
|
|
|
1474
1474
|
/** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
|
|
1475
1475
|
group?: string;
|
|
1476
1476
|
/** Override the "options" setting from the template. */
|
|
1477
|
-
options
|
|
1477
|
+
options?: IDropdownOption[] | null;
|
|
1478
1478
|
}
|
|
1479
1479
|
interface ICreateEnvelopeFieldDirectly {
|
|
1480
1480
|
/** The array index of the document the field is for. */
|
|
@@ -2041,10 +2041,6 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
|
|
|
2041
2041
|
* @apiSuccess ISignerTokenResponse . Updated signing session.
|
|
2042
2042
|
*/
|
|
2043
2043
|
declare const verifySigner: (endpoint: VerdocsEndpoint, params: TAuthenticateRecipientRequest) => Promise<ISignerTokenResponse>;
|
|
2044
|
-
/**
|
|
2045
|
-
* Send a delegation request.
|
|
2046
|
-
*/
|
|
2047
|
-
declare const sendDelegate: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<IEnvelope>;
|
|
2048
2044
|
/**
|
|
2049
2045
|
* Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
|
|
2050
2046
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -2055,12 +2051,42 @@ declare const sendDelegate: (endpoint: VerdocsEndpoint, envelopeId: string, role
|
|
|
2055
2051
|
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
|
|
2056
2052
|
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2057
2053
|
* @apiParam string role_name The role to operate on.
|
|
2058
|
-
* @apiBody string(enum:'resend') action The operation to perform.
|
|
2054
|
+
* @apiBody string(enum:'resend') action The operation to perform (resend).
|
|
2059
2055
|
* @apiSuccess string . Success message.
|
|
2060
2056
|
*/
|
|
2061
2057
|
declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<{
|
|
2062
2058
|
status: "OK";
|
|
2063
2059
|
}>;
|
|
2060
|
+
/**
|
|
2061
|
+
* Delegate a recipient's signing responsibility. The envelope sender must enable this before the
|
|
2062
|
+
* recipient calls this endpoint, and only the recipient may call it, or the call will be rejected.
|
|
2063
|
+
* The recipient's role will be renamed and configured to indicate to whom the delegation was made,
|
|
2064
|
+
* and a new recipient entry with the updated details (e.g. name and email address) will be added
|
|
2065
|
+
* to the flow with the same role_name, order, and sequence of the original recipient. Unless
|
|
2066
|
+
* no_contact is set on the envelope, the delegation recipient and envelope creator will also be
|
|
2067
|
+
* notified.
|
|
2068
|
+
*
|
|
2069
|
+
* @group Recipients
|
|
2070
|
+
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Delegate Recipient
|
|
2071
|
+
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2072
|
+
* @apiParam string role_name The role to operate on.
|
|
2073
|
+
* @apiBody string(enum:'delegate') action The operation to perform (delegate).
|
|
2074
|
+
* @apiBody string first_name The first name of the new recipient.
|
|
2075
|
+
* @apiBody string last_name The last name of the new recipient.
|
|
2076
|
+
* @apiBody string email The email address of the new recipient.
|
|
2077
|
+
* @apiBody string phone? Optional phone number for the new recipient.
|
|
2078
|
+
* @apiBody string message? Optional phone number for the new recipient's invitation.
|
|
2079
|
+
* @apiSuccess string . Success message.
|
|
2080
|
+
*/
|
|
2081
|
+
declare const delegateRecipient: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, params: {
|
|
2082
|
+
first_name: string;
|
|
2083
|
+
last_name: string;
|
|
2084
|
+
email: string;
|
|
2085
|
+
phone?: string;
|
|
2086
|
+
message?: string;
|
|
2087
|
+
}) => Promise<{
|
|
2088
|
+
status: "OK";
|
|
2089
|
+
}>;
|
|
2064
2090
|
/**
|
|
2065
2091
|
* Update a recipient. NOTE: User interfaces should rate-limit this operation to
|
|
2066
2092
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -3779,4 +3805,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
3779
3805
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
3780
3806
|
*/
|
|
3781
3807
|
declare const decodeAccessTokenBody: (token: string) => TSession;
|
|
3782
|
-
export { TRequestStatus, TTemplateSender, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, TDeprecatedHistoryEvent, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, TEntitlement, TRecipientAuthMethod, TRecipientAuthStep, TUsageType, 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, IKBAQuestion, IRecipient, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TOrganizationUsage, 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, updateRecipientStatus, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, startSigningSession, getInPersonLink, verifySigner,
|
|
3808
|
+
export { TRequestStatus, TTemplateSender, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, TDeprecatedHistoryEvent, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, TEntitlement, TRecipientAuthMethod, TRecipientAuthStep, TUsageType, 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, IKBAQuestion, IRecipient, IRole, ISignature, ITemplate, ITemplateDocument, ITemplateField, ITextFieldSetting, ITemplateFieldSetting, TOrganizationUsage, 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, updateRecipientStatus, envelopeRecipientSubmit, envelopeRecipientDecline, envelopeRecipientChangeOwner, envelopeRecipientAgree, envelopeRecipientUpdateName, envelopeRecipientPrepare, startSigningSession, getInPersonLink, verifySigner, resendInvitation, delegateRecipient, updateRecipient, userIsEnvelopeOwner, userIsEnvelopeRecipient, envelopeIsActive, envelopeIsComplete, userCanCancelEnvelope, userCanFinishEnvelope, recipientHasAction, getRecipientsWithActions, recipientCanAct, userCanAct, userCanSignNow, getNextRecipient, createSignature, getSignatures, getSignature, deleteSignature, IEnvelopesSearchResult, IDocumentSearchOptions, ICreateEnvelopeRecipientFromTemplate, ICreateEnvelopeRecipientDirectly, ISignerTokenResponse, IInPersonLinkResponse, IUpdateRecipientSubmitParams, IUpdateRecipientDeclineParams, IUpdateRecipientClaimEnvelope, IUpdateRecipientStatus, IUpdateRecipientAgreedParams, IUpdateRecipientNameParams, IUpdateRecipientPrepareParams, ICreateEnvelopeReminderRequest, IUpdateRecipientParams, ICreateEnvelopeDocumentFromData, ICreateEnvelopeDocumentFromUri, ICreateEnvelopeDocumentFromFile, ICreateEnvelopeFieldFromTemplate, ICreateEnvelopeFieldDirectly, 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, getOrganizationChildren, getOrganizationUsage, 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
|
@@ -1961,12 +1961,6 @@ const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
|
|
|
1961
1961
|
const verifySigner = (endpoint, params) => endpoint.api //
|
|
1962
1962
|
.post(`/v2/sign/verify`, params)
|
|
1963
1963
|
.then((r) => r.data);
|
|
1964
|
-
/**
|
|
1965
|
-
* Send a delegation request.
|
|
1966
|
-
*/
|
|
1967
|
-
const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
1968
|
-
.post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`)
|
|
1969
|
-
.then((r) => r.data);
|
|
1970
1964
|
/**
|
|
1971
1965
|
* Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
|
|
1972
1966
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -1977,12 +1971,36 @@ const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
|
1977
1971
|
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
|
|
1978
1972
|
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
1979
1973
|
* @apiParam string role_name The role to operate on.
|
|
1980
|
-
* @apiBody string(enum:'resend') action The operation to perform.
|
|
1974
|
+
* @apiBody string(enum:'resend') action The operation to perform (resend).
|
|
1981
1975
|
* @apiSuccess string . Success message.
|
|
1982
1976
|
*/
|
|
1983
1977
|
const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
1984
1978
|
.put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'resend' })
|
|
1985
1979
|
.then((r) => r.data);
|
|
1980
|
+
/**
|
|
1981
|
+
* Delegate a recipient's signing responsibility. The envelope sender must enable this before the
|
|
1982
|
+
* recipient calls this endpoint, and only the recipient may call it, or the call will be rejected.
|
|
1983
|
+
* The recipient's role will be renamed and configured to indicate to whom the delegation was made,
|
|
1984
|
+
* and a new recipient entry with the updated details (e.g. name and email address) will be added
|
|
1985
|
+
* to the flow with the same role_name, order, and sequence of the original recipient. Unless
|
|
1986
|
+
* no_contact is set on the envelope, the delegation recipient and envelope creator will also be
|
|
1987
|
+
* notified.
|
|
1988
|
+
*
|
|
1989
|
+
* @group Recipients
|
|
1990
|
+
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Delegate Recipient
|
|
1991
|
+
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
1992
|
+
* @apiParam string role_name The role to operate on.
|
|
1993
|
+
* @apiBody string(enum:'delegate') action The operation to perform (delegate).
|
|
1994
|
+
* @apiBody string first_name The first name of the new recipient.
|
|
1995
|
+
* @apiBody string last_name The last name of the new recipient.
|
|
1996
|
+
* @apiBody string email The email address of the new recipient.
|
|
1997
|
+
* @apiBody string phone? Optional phone number for the new recipient.
|
|
1998
|
+
* @apiBody string message? Optional phone number for the new recipient's invitation.
|
|
1999
|
+
* @apiSuccess string . Success message.
|
|
2000
|
+
*/
|
|
2001
|
+
const delegateRecipient = (endpoint, envelopeId, roleName, params) => endpoint.api //
|
|
2002
|
+
.put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'delegate', ...params })
|
|
2003
|
+
.then((r) => r.data);
|
|
1986
2004
|
/**
|
|
1987
2005
|
* Update a recipient. NOTE: User interfaces should rate-limit this operation to
|
|
1988
2006
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -3697,6 +3715,7 @@ exports.createTemplateRole = createTemplateRole;
|
|
|
3697
3715
|
exports.declineOrganizationInvitation = declineOrganizationInvitation;
|
|
3698
3716
|
exports.decodeAccessTokenBody = decodeAccessTokenBody;
|
|
3699
3717
|
exports.decodeJWTBody = decodeJWTBody;
|
|
3718
|
+
exports.delegateRecipient = delegateRecipient;
|
|
3700
3719
|
exports.deleteApiKey = deleteApiKey;
|
|
3701
3720
|
exports.deleteEnvelopeFieldAttachment = deleteEnvelopeFieldAttachment;
|
|
3702
3721
|
exports.deleteField = deleteField;
|
|
@@ -3806,7 +3825,6 @@ exports.resendOrganizationInvitation = resendOrganizationInvitation;
|
|
|
3806
3825
|
exports.resendVerification = resendVerification;
|
|
3807
3826
|
exports.resetPassword = resetPassword;
|
|
3808
3827
|
exports.rotateApiKey = rotateApiKey;
|
|
3809
|
-
exports.sendDelegate = sendDelegate;
|
|
3810
3828
|
exports.setWebhooks = setWebhooks;
|
|
3811
3829
|
exports.sortFields = sortFields;
|
|
3812
3830
|
exports.startSigningSession = startSigningSession;
|