@verdocs/js-sdk 5.3.2 → 5.3.4
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 -7
- package/dist/index.d.ts +34 -7
- package/dist/index.js +28 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -9
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +3 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1636,7 +1636,7 @@ type TAuthenticateRecipientRequest = IAuthenticateRecipientViaPasscodeRequest |
|
|
|
1636
1636
|
* @group Envelopes
|
|
1637
1637
|
* @api POST /v2/envelopes Create Envelope
|
|
1638
1638
|
* @apiBody string(format:uuid) template_id If using a template, the ID of the template to copy
|
|
1639
|
-
* @apiBody array(items:
|
|
1639
|
+
* @apiBody array(items:ICreateEnvelopeRecipientDirectly) recipients A list of recipients to include in the workflow. Must specify one recipient to match each template Role.
|
|
1640
1640
|
* @apiBody array(items:IEnvelopeDocument) documents? If not using a template, a list of documents to include in the envelope.
|
|
1641
1641
|
* @apiBody array(items:IEnvelopeField) fields? If not using a template, a list of fields to include in the envelope.
|
|
1642
1642
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
@@ -2041,10 +2041,7 @@ 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>;
|
|
2044
|
+
// TODO: Use "oneOf" to describe the unions of these two calls.
|
|
2048
2045
|
/**
|
|
2049
2046
|
* Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
|
|
2050
2047
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -2055,12 +2052,42 @@ declare const sendDelegate: (endpoint: VerdocsEndpoint, envelopeId: string, role
|
|
|
2055
2052
|
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
|
|
2056
2053
|
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2057
2054
|
* @apiParam string role_name The role to operate on.
|
|
2058
|
-
* @apiBody string(enum:'resend') action The operation to perform.
|
|
2055
|
+
* @apiBody string(enum:'resend') action The operation to perform (resend).
|
|
2059
2056
|
* @apiSuccess string . Success message.
|
|
2060
2057
|
*/
|
|
2061
2058
|
declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<{
|
|
2062
2059
|
status: "OK";
|
|
2063
2060
|
}>;
|
|
2061
|
+
/**
|
|
2062
|
+
* Delegate a recipient's signing responsibility. The envelope sender must enable this before the
|
|
2063
|
+
* recipient calls this endpoint, and only the recipient may call it, or the call will be rejected.
|
|
2064
|
+
* The recipient's role will be renamed and configured to indicate to whom the delegation was made,
|
|
2065
|
+
* and a new recipient entry with the updated details (e.g. name and email address) will be added
|
|
2066
|
+
* to the flow with the same role_name, order, and sequence of the original recipient. Unless
|
|
2067
|
+
* no_contact is set on the envelope, the delegation recipient and envelope creator will also be
|
|
2068
|
+
* notified.
|
|
2069
|
+
*
|
|
2070
|
+
* @group Recipients
|
|
2071
|
+
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Delegate Recipient
|
|
2072
|
+
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2073
|
+
* @apiParam string role_name The role to operate on.
|
|
2074
|
+
* @apiBody string(enum:'delegate') action The operation to perform (delegate).
|
|
2075
|
+
* @apiBody string first_name The first name of the new recipient.
|
|
2076
|
+
* @apiBody string last_name The last name of the new recipient.
|
|
2077
|
+
* @apiBody string email The email address of the new recipient.
|
|
2078
|
+
* @apiBody string phone? Optional phone number for the new recipient.
|
|
2079
|
+
* @apiBody string message? Optional phone number for the new recipient's invitation.
|
|
2080
|
+
* @apiSuccess string . Success message.
|
|
2081
|
+
*/
|
|
2082
|
+
declare const delegateRecipient: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, params: {
|
|
2083
|
+
first_name: string;
|
|
2084
|
+
last_name: string;
|
|
2085
|
+
email: string;
|
|
2086
|
+
phone?: string;
|
|
2087
|
+
message?: string;
|
|
2088
|
+
}) => Promise<{
|
|
2089
|
+
status: "OK";
|
|
2090
|
+
}>;
|
|
2064
2091
|
/**
|
|
2065
2092
|
* Update a recipient. NOTE: User interfaces should rate-limit this operation to
|
|
2066
2093
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -3779,4 +3806,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
3779
3806
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
3780
3807
|
*/
|
|
3781
3808
|
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,
|
|
3809
|
+
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
|
@@ -1636,7 +1636,7 @@ type TAuthenticateRecipientRequest = IAuthenticateRecipientViaPasscodeRequest |
|
|
|
1636
1636
|
* @group Envelopes
|
|
1637
1637
|
* @api POST /v2/envelopes Create Envelope
|
|
1638
1638
|
* @apiBody string(format:uuid) template_id If using a template, the ID of the template to copy
|
|
1639
|
-
* @apiBody array(items:
|
|
1639
|
+
* @apiBody array(items:ICreateEnvelopeRecipientDirectly) recipients A list of recipients to include in the workflow. Must specify one recipient to match each template Role.
|
|
1640
1640
|
* @apiBody array(items:IEnvelopeDocument) documents? If not using a template, a list of documents to include in the envelope.
|
|
1641
1641
|
* @apiBody array(items:IEnvelopeField) fields? If not using a template, a list of fields to include in the envelope.
|
|
1642
1642
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
@@ -2041,10 +2041,7 @@ 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>;
|
|
2044
|
+
// TODO: Use "oneOf" to describe the unions of these two calls.
|
|
2048
2045
|
/**
|
|
2049
2046
|
* Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
|
|
2050
2047
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -2055,12 +2052,42 @@ declare const sendDelegate: (endpoint: VerdocsEndpoint, envelopeId: string, role
|
|
|
2055
2052
|
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
|
|
2056
2053
|
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2057
2054
|
* @apiParam string role_name The role to operate on.
|
|
2058
|
-
* @apiBody string(enum:'resend') action The operation to perform.
|
|
2055
|
+
* @apiBody string(enum:'resend') action The operation to perform (resend).
|
|
2059
2056
|
* @apiSuccess string . Success message.
|
|
2060
2057
|
*/
|
|
2061
2058
|
declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<{
|
|
2062
2059
|
status: "OK";
|
|
2063
2060
|
}>;
|
|
2061
|
+
/**
|
|
2062
|
+
* Delegate a recipient's signing responsibility. The envelope sender must enable this before the
|
|
2063
|
+
* recipient calls this endpoint, and only the recipient may call it, or the call will be rejected.
|
|
2064
|
+
* The recipient's role will be renamed and configured to indicate to whom the delegation was made,
|
|
2065
|
+
* and a new recipient entry with the updated details (e.g. name and email address) will be added
|
|
2066
|
+
* to the flow with the same role_name, order, and sequence of the original recipient. Unless
|
|
2067
|
+
* no_contact is set on the envelope, the delegation recipient and envelope creator will also be
|
|
2068
|
+
* notified.
|
|
2069
|
+
*
|
|
2070
|
+
* @group Recipients
|
|
2071
|
+
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Delegate Recipient
|
|
2072
|
+
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
2073
|
+
* @apiParam string role_name The role to operate on.
|
|
2074
|
+
* @apiBody string(enum:'delegate') action The operation to perform (delegate).
|
|
2075
|
+
* @apiBody string first_name The first name of the new recipient.
|
|
2076
|
+
* @apiBody string last_name The last name of the new recipient.
|
|
2077
|
+
* @apiBody string email The email address of the new recipient.
|
|
2078
|
+
* @apiBody string phone? Optional phone number for the new recipient.
|
|
2079
|
+
* @apiBody string message? Optional phone number for the new recipient's invitation.
|
|
2080
|
+
* @apiSuccess string . Success message.
|
|
2081
|
+
*/
|
|
2082
|
+
declare const delegateRecipient: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, params: {
|
|
2083
|
+
first_name: string;
|
|
2084
|
+
last_name: string;
|
|
2085
|
+
email: string;
|
|
2086
|
+
phone?: string;
|
|
2087
|
+
message?: string;
|
|
2088
|
+
}) => Promise<{
|
|
2089
|
+
status: "OK";
|
|
2090
|
+
}>;
|
|
2064
2091
|
/**
|
|
2065
2092
|
* Update a recipient. NOTE: User interfaces should rate-limit this operation to
|
|
2066
2093
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -3779,4 +3806,4 @@ declare const decodeJWTBody: (token: string) => any;
|
|
|
3779
3806
|
* the presence of the `document_id` field, which will only be present for signing sessions.
|
|
3780
3807
|
*/
|
|
3781
3808
|
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,
|
|
3809
|
+
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
|
@@ -1575,7 +1575,7 @@ class VerdocsEndpoint {
|
|
|
1575
1575
|
* @group Envelopes
|
|
1576
1576
|
* @api POST /v2/envelopes Create Envelope
|
|
1577
1577
|
* @apiBody string(format:uuid) template_id If using a template, the ID of the template to copy
|
|
1578
|
-
* @apiBody array(items:
|
|
1578
|
+
* @apiBody array(items:ICreateEnvelopeRecipientDirectly) recipients A list of recipients to include in the workflow. Must specify one recipient to match each template Role.
|
|
1579
1579
|
* @apiBody array(items:IEnvelopeDocument) documents? If not using a template, a list of documents to include in the envelope.
|
|
1580
1580
|
* @apiBody array(items:IEnvelopeField) fields? If not using a template, a list of fields to include in the envelope.
|
|
1581
1581
|
* @apiBody string name? Override the name of the envelope (defaults to the template name).
|
|
@@ -1961,12 +1961,7 @@ 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);
|
|
1964
|
+
// TODO: Use "oneOf" to describe the unions of these two calls.
|
|
1970
1965
|
/**
|
|
1971
1966
|
* Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
|
|
1972
1967
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -1977,12 +1972,36 @@ const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
|
1977
1972
|
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
|
|
1978
1973
|
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
1979
1974
|
* @apiParam string role_name The role to operate on.
|
|
1980
|
-
* @apiBody string(enum:'resend') action The operation to perform.
|
|
1975
|
+
* @apiBody string(enum:'resend') action The operation to perform (resend).
|
|
1981
1976
|
* @apiSuccess string . Success message.
|
|
1982
1977
|
*/
|
|
1983
1978
|
const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
|
|
1984
1979
|
.put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'resend' })
|
|
1985
1980
|
.then((r) => r.data);
|
|
1981
|
+
/**
|
|
1982
|
+
* Delegate a recipient's signing responsibility. The envelope sender must enable this before the
|
|
1983
|
+
* recipient calls this endpoint, and only the recipient may call it, or the call will be rejected.
|
|
1984
|
+
* The recipient's role will be renamed and configured to indicate to whom the delegation was made,
|
|
1985
|
+
* and a new recipient entry with the updated details (e.g. name and email address) will be added
|
|
1986
|
+
* to the flow with the same role_name, order, and sequence of the original recipient. Unless
|
|
1987
|
+
* no_contact is set on the envelope, the delegation recipient and envelope creator will also be
|
|
1988
|
+
* notified.
|
|
1989
|
+
*
|
|
1990
|
+
* @group Recipients
|
|
1991
|
+
* @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Delegate Recipient
|
|
1992
|
+
* @apiParam string(format:uuid) envelope_id The envelope to operate on.
|
|
1993
|
+
* @apiParam string role_name The role to operate on.
|
|
1994
|
+
* @apiBody string(enum:'delegate') action The operation to perform (delegate).
|
|
1995
|
+
* @apiBody string first_name The first name of the new recipient.
|
|
1996
|
+
* @apiBody string last_name The last name of the new recipient.
|
|
1997
|
+
* @apiBody string email The email address of the new recipient.
|
|
1998
|
+
* @apiBody string phone? Optional phone number for the new recipient.
|
|
1999
|
+
* @apiBody string message? Optional phone number for the new recipient's invitation.
|
|
2000
|
+
* @apiSuccess string . Success message.
|
|
2001
|
+
*/
|
|
2002
|
+
const delegateRecipient = (endpoint, envelopeId, roleName, params) => endpoint.api //
|
|
2003
|
+
.put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'delegate', ...params })
|
|
2004
|
+
.then((r) => r.data);
|
|
1986
2005
|
/**
|
|
1987
2006
|
* Update a recipient. NOTE: User interfaces should rate-limit this operation to
|
|
1988
2007
|
* avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
|
|
@@ -3697,6 +3716,7 @@ exports.createTemplateRole = createTemplateRole;
|
|
|
3697
3716
|
exports.declineOrganizationInvitation = declineOrganizationInvitation;
|
|
3698
3717
|
exports.decodeAccessTokenBody = decodeAccessTokenBody;
|
|
3699
3718
|
exports.decodeJWTBody = decodeJWTBody;
|
|
3719
|
+
exports.delegateRecipient = delegateRecipient;
|
|
3700
3720
|
exports.deleteApiKey = deleteApiKey;
|
|
3701
3721
|
exports.deleteEnvelopeFieldAttachment = deleteEnvelopeFieldAttachment;
|
|
3702
3722
|
exports.deleteField = deleteField;
|
|
@@ -3806,7 +3826,6 @@ exports.resendOrganizationInvitation = resendOrganizationInvitation;
|
|
|
3806
3826
|
exports.resendVerification = resendVerification;
|
|
3807
3827
|
exports.resetPassword = resetPassword;
|
|
3808
3828
|
exports.rotateApiKey = rotateApiKey;
|
|
3809
|
-
exports.sendDelegate = sendDelegate;
|
|
3810
3829
|
exports.setWebhooks = setWebhooks;
|
|
3811
3830
|
exports.sortFields = sortFields;
|
|
3812
3831
|
exports.startSigningSession = startSigningSession;
|