@verdocs/js-sdk 4.2.85 → 4.2.87

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 CHANGED
@@ -461,9 +461,12 @@ interface IEnvelope {
461
461
  profile_id: string;
462
462
  template_id: string | null;
463
463
  organization_id: string;
464
- reminder_id: string | null;
465
464
  name: string;
466
465
  no_contact?: boolean;
466
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
467
+ initial_reminder: number;
468
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
469
+ followup_reminders: number;
467
470
  created_at: string;
468
471
  updated_at: string;
469
472
  canceled_at: string;
@@ -478,7 +481,6 @@ interface IEnvelope {
478
481
  profile?: IProfile;
479
482
  template?: ITemplate | null;
480
483
  organization?: IOrganization;
481
- reminder?: IReminder | null;
482
484
  access_keys?: TAccessKey[];
483
485
  fields?: IEnvelopeField[];
484
486
  history_entries?: IEnvelopeHistory[];
@@ -669,16 +671,6 @@ interface IRecipient {
669
671
  envelope?: IEnvelope;
670
672
  profile?: IProfile;
671
673
  }
672
- interface IReminder {
673
- id?: string;
674
- is_on: boolean;
675
- key: string;
676
- setup_time: number;
677
- interval_time: number;
678
- created_at: string | null;
679
- last_time: number | null;
680
- next_time: number | null;
681
- }
682
674
  /**
683
675
  * A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
684
676
  * "Known" roles will have their email address supplied in the template which will get copied to envelopes created from
@@ -742,10 +734,6 @@ interface ITemplate {
742
734
  * Organization the template lives in.
743
735
  */
744
736
  organization_id: string;
745
- /**
746
- * If set, the template has reminders enabled.
747
- */
748
- reminder_id: string | null;
749
737
  /**
750
738
  * Who may create new documents from the template.
751
739
  */
@@ -766,6 +754,10 @@ interface ITemplate {
766
754
  * Number of times the template has been "starred".
767
755
  */
768
756
  star_counter: number;
757
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
758
+ initial_reminder: number;
759
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
760
+ followup_reminders: number;
769
761
  /**
770
762
  * If true, the template is only visible to the creator. If false, the template will also be visible to the user's
771
763
  * organization, if any.
@@ -808,7 +800,6 @@ interface ITemplate {
808
800
  tags?: string[];
809
801
  profile?: IProfile;
810
802
  organization?: IOrganization;
811
- reminder?: IReminder | null;
812
803
  roles?: IRole[];
813
804
  documents?: ITemplateDocument[];
814
805
  fields?: ITemplateField[];
@@ -1275,6 +1266,10 @@ interface ICreateEnvelopeFromTemplateRequest {
1275
1266
  fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
1276
1267
  environment?: string;
1277
1268
  no_contact?: boolean;
1269
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
1270
+ initial_reminder: number;
1271
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
1272
+ followup_reminders: number;
1278
1273
  }
1279
1274
  interface ICreateEnvelopeDirectlyRequest {
1280
1275
  name: string;
@@ -1285,6 +1280,10 @@ interface ICreateEnvelopeDirectlyRequest {
1285
1280
  fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
1286
1281
  environment?: string;
1287
1282
  no_contact?: boolean;
1283
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
1284
+ initial_reminder: number;
1285
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
1286
+ followup_reminders: number;
1288
1287
  }
1289
1288
  type TCreateEnvelopeRequest = ICreateEnvelopeFromTemplateRequest | ICreateEnvelopeDirectlyRequest;
1290
1289
  /**
@@ -1381,7 +1380,7 @@ declare const getFieldAttachment: (endpoint: VerdocsEndpoint, envelopeId: string
1381
1380
  * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
1382
1381
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
1383
1382
  */
1384
- declare const getEnvelopeDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string, page: number, type?: "original" | "filled" | "certificate") => Promise<string>;
1383
+ declare const getEnvelopeDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, documentId: string, page: number, variant?: "original" | "filled" | "certificate") => Promise<string>;
1385
1384
  interface ITimeRange {
1386
1385
  start: string;
1387
1386
  end: string;
@@ -1563,23 +1562,6 @@ declare const sendDelegate: (endpoint: VerdocsEndpoint, envelopeId: string, role
1563
1562
  * Resend a recipient's invitation.
1564
1563
  */
1565
1564
  declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<any>;
1566
- /**
1567
- * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
1568
- * should be sent. interval_time is the number of days between reminders.
1569
- */
1570
- declare const createEnvelopeReminder: (endpoint: VerdocsEndpoint, envelopeId: string, params: ICreateEnvelopeReminderRequest) => Promise<IReminder>;
1571
- /**
1572
- * Get the reminder configuration for an envelope.
1573
- */
1574
- declare const getEnvelopeReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string) => Promise<IReminder>;
1575
- /**
1576
- * Update the reminder configuration for an envelope.
1577
- */
1578
- declare const updateEnvelopeReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string, params: ICreateEnvelopeReminderRequest) => Promise<IReminder>;
1579
- /**
1580
- * Delete the reminder configuration for an envelope.
1581
- */
1582
- declare const deleteEnvelopeReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string) => Promise<any>;
1583
1565
  /**
1584
1566
  * Check to see if the user owns the envelope.
1585
1567
  */
@@ -2346,27 +2328,6 @@ declare const getFieldsForRole: (template: ITemplate, role_name: string) => ITem
2346
2328
  * have at least one signer, and every signer must have at least one field.
2347
2329
  */
2348
2330
  declare const userCanPreviewTemplate: (profile: IProfile | null | undefined, template: ITemplate) => boolean | null | undefined;
2349
- interface ICreateTemplateReminderRequest {
2350
- setup_time: number;
2351
- interval_time: number;
2352
- }
2353
- /**
2354
- * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
2355
- * should be sent. interval_time is the number of days between reminders.
2356
- */
2357
- declare const createTemplateReminder: (endpoint: VerdocsEndpoint, templateId: string, params: ICreateTemplateReminderRequest) => Promise<ITemplate>;
2358
- /**
2359
- * Get the reminder configuration for a template.
2360
- */
2361
- declare const getTemplateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<IReminder>;
2362
- /**
2363
- * Update the reminder configuration for a template.
2364
- */
2365
- declare const updateTemplateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string, params: ICreateTemplateReminderRequest) => Promise<IReminder>;
2366
- /**
2367
- * Delete the reminder configuration for a template.
2368
- */
2369
- declare const deleteTemplateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<any>;
2370
2331
  /**
2371
2332
  * Create a role.
2372
2333
  *
@@ -2543,15 +2504,10 @@ interface ITemplateCreateParams {
2543
2504
  is_public?: boolean;
2544
2505
  /** Optional (defaults to EVERYONE_AS_CREATOR). Who may create and send envelopes using this template. */
2545
2506
  sender?: TTemplateSenderType;
2546
- /** Optional (defaults to inactive). Enable reminders for the template. */
2547
- reminders?: {
2548
- /** Set to false to deactivate. */
2549
- is_on: boolean;
2550
- /** Delay (in ms) before the first reminder will be sent (min: 4hrs). If on, defaults to 86400000 (1 day). */
2551
- setup_time: number;
2552
- /** Delay (in ms) between subsequent reminders (min: 12hrs). If on, defaults to 86400000 (1 day). */
2553
- interval_time: number;
2554
- };
2507
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
2508
+ initial_reminder?: number;
2509
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
2510
+ followup_reminders?: number;
2555
2511
  /** Optional description for the template to help identify it. */
2556
2512
  description?: string;
2557
2513
  /**
@@ -2682,7 +2638,7 @@ declare const getTemplateDocumentThumbnail: (endpoint: VerdocsEndpoint, template
2682
2638
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants. The
2683
2639
  * original asset may be obtained by calling `getTemplateDocumentFile()` or similar.
2684
2640
  */
2685
- declare const getTemplateDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, templateId: string, documentId: string, page: number) => Promise<string>;
2641
+ declare const getTemplateDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, documentId: string, page: number, variant?: "original" | "tagged") => Promise<string>;
2686
2642
  interface IValidator {
2687
2643
  name: string;
2688
2644
  regex: string;
@@ -2810,4 +2766,4 @@ declare const decodeJWTBody: (token: string) => any;
2810
2766
  * the presence of the `document_id` field, which will only be present for signing sessions.
2811
2767
  */
2812
2768
  declare const decodeAccessTokenBody: (token: string) => TSession;
2813
- export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, ALL_PERMISSIONS, 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, updateGroup, deleteGroup, addGroupMember, deleteGroupMember, 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, randomString, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
2769
+ export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, ALL_PERMISSIONS, 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, 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, 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, updateGroup, deleteGroup, addGroupMember, deleteGroupMember, 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, 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, randomString, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
package/dist/index.d.ts CHANGED
@@ -461,9 +461,12 @@ interface IEnvelope {
461
461
  profile_id: string;
462
462
  template_id: string | null;
463
463
  organization_id: string;
464
- reminder_id: string | null;
465
464
  name: string;
466
465
  no_contact?: boolean;
466
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
467
+ initial_reminder: number;
468
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
469
+ followup_reminders: number;
467
470
  created_at: string;
468
471
  updated_at: string;
469
472
  canceled_at: string;
@@ -478,7 +481,6 @@ interface IEnvelope {
478
481
  profile?: IProfile;
479
482
  template?: ITemplate | null;
480
483
  organization?: IOrganization;
481
- reminder?: IReminder | null;
482
484
  access_keys?: TAccessKey[];
483
485
  fields?: IEnvelopeField[];
484
486
  history_entries?: IEnvelopeHistory[];
@@ -669,16 +671,6 @@ interface IRecipient {
669
671
  envelope?: IEnvelope;
670
672
  profile?: IProfile;
671
673
  }
672
- interface IReminder {
673
- id?: string;
674
- is_on: boolean;
675
- key: string;
676
- setup_time: number;
677
- interval_time: number;
678
- created_at: string | null;
679
- last_time: number | null;
680
- next_time: number | null;
681
- }
682
674
  /**
683
675
  * A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
684
676
  * "Known" roles will have their email address supplied in the template which will get copied to envelopes created from
@@ -742,10 +734,6 @@ interface ITemplate {
742
734
  * Organization the template lives in.
743
735
  */
744
736
  organization_id: string;
745
- /**
746
- * If set, the template has reminders enabled.
747
- */
748
- reminder_id: string | null;
749
737
  /**
750
738
  * Who may create new documents from the template.
751
739
  */
@@ -766,6 +754,10 @@ interface ITemplate {
766
754
  * Number of times the template has been "starred".
767
755
  */
768
756
  star_counter: number;
757
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
758
+ initial_reminder: number;
759
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
760
+ followup_reminders: number;
769
761
  /**
770
762
  * If true, the template is only visible to the creator. If false, the template will also be visible to the user's
771
763
  * organization, if any.
@@ -808,7 +800,6 @@ interface ITemplate {
808
800
  tags?: string[];
809
801
  profile?: IProfile;
810
802
  organization?: IOrganization;
811
- reminder?: IReminder | null;
812
803
  roles?: IRole[];
813
804
  documents?: ITemplateDocument[];
814
805
  fields?: ITemplateField[];
@@ -1275,6 +1266,10 @@ interface ICreateEnvelopeFromTemplateRequest {
1275
1266
  fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
1276
1267
  environment?: string;
1277
1268
  no_contact?: boolean;
1269
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
1270
+ initial_reminder: number;
1271
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
1272
+ followup_reminders: number;
1278
1273
  }
1279
1274
  interface ICreateEnvelopeDirectlyRequest {
1280
1275
  name: string;
@@ -1285,6 +1280,10 @@ interface ICreateEnvelopeDirectlyRequest {
1285
1280
  fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
1286
1281
  environment?: string;
1287
1282
  no_contact?: boolean;
1283
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
1284
+ initial_reminder: number;
1285
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
1286
+ followup_reminders: number;
1288
1287
  }
1289
1288
  type TCreateEnvelopeRequest = ICreateEnvelopeFromTemplateRequest | ICreateEnvelopeDirectlyRequest;
1290
1289
  /**
@@ -1381,7 +1380,7 @@ declare const getFieldAttachment: (endpoint: VerdocsEndpoint, envelopeId: string
1381
1380
  * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
1382
1381
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
1383
1382
  */
1384
- declare const getEnvelopeDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string, page: number, type?: "original" | "filled" | "certificate") => Promise<string>;
1383
+ declare const getEnvelopeDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, documentId: string, page: number, variant?: "original" | "filled" | "certificate") => Promise<string>;
1385
1384
  interface ITimeRange {
1386
1385
  start: string;
1387
1386
  end: string;
@@ -1563,23 +1562,6 @@ declare const sendDelegate: (endpoint: VerdocsEndpoint, envelopeId: string, role
1563
1562
  * Resend a recipient's invitation.
1564
1563
  */
1565
1564
  declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<any>;
1566
- /**
1567
- * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
1568
- * should be sent. interval_time is the number of days between reminders.
1569
- */
1570
- declare const createEnvelopeReminder: (endpoint: VerdocsEndpoint, envelopeId: string, params: ICreateEnvelopeReminderRequest) => Promise<IReminder>;
1571
- /**
1572
- * Get the reminder configuration for an envelope.
1573
- */
1574
- declare const getEnvelopeReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string) => Promise<IReminder>;
1575
- /**
1576
- * Update the reminder configuration for an envelope.
1577
- */
1578
- declare const updateEnvelopeReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string, params: ICreateEnvelopeReminderRequest) => Promise<IReminder>;
1579
- /**
1580
- * Delete the reminder configuration for an envelope.
1581
- */
1582
- declare const deleteEnvelopeReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string) => Promise<any>;
1583
1565
  /**
1584
1566
  * Check to see if the user owns the envelope.
1585
1567
  */
@@ -2346,27 +2328,6 @@ declare const getFieldsForRole: (template: ITemplate, role_name: string) => ITem
2346
2328
  * have at least one signer, and every signer must have at least one field.
2347
2329
  */
2348
2330
  declare const userCanPreviewTemplate: (profile: IProfile | null | undefined, template: ITemplate) => boolean | null | undefined;
2349
- interface ICreateTemplateReminderRequest {
2350
- setup_time: number;
2351
- interval_time: number;
2352
- }
2353
- /**
2354
- * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
2355
- * should be sent. interval_time is the number of days between reminders.
2356
- */
2357
- declare const createTemplateReminder: (endpoint: VerdocsEndpoint, templateId: string, params: ICreateTemplateReminderRequest) => Promise<ITemplate>;
2358
- /**
2359
- * Get the reminder configuration for a template.
2360
- */
2361
- declare const getTemplateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<IReminder>;
2362
- /**
2363
- * Update the reminder configuration for a template.
2364
- */
2365
- declare const updateTemplateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string, params: ICreateTemplateReminderRequest) => Promise<IReminder>;
2366
- /**
2367
- * Delete the reminder configuration for a template.
2368
- */
2369
- declare const deleteTemplateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<any>;
2370
2331
  /**
2371
2332
  * Create a role.
2372
2333
  *
@@ -2543,15 +2504,10 @@ interface ITemplateCreateParams {
2543
2504
  is_public?: boolean;
2544
2505
  /** Optional (defaults to EVERYONE_AS_CREATOR). Who may create and send envelopes using this template. */
2545
2506
  sender?: TTemplateSenderType;
2546
- /** Optional (defaults to inactive). Enable reminders for the template. */
2547
- reminders?: {
2548
- /** Set to false to deactivate. */
2549
- is_on: boolean;
2550
- /** Delay (in ms) before the first reminder will be sent (min: 4hrs). If on, defaults to 86400000 (1 day). */
2551
- setup_time: number;
2552
- /** Delay (in ms) between subsequent reminders (min: 12hrs). If on, defaults to 86400000 (1 day). */
2553
- interval_time: number;
2554
- };
2507
+ /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
2508
+ initial_reminder?: number;
2509
+ /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
2510
+ followup_reminders?: number;
2555
2511
  /** Optional description for the template to help identify it. */
2556
2512
  description?: string;
2557
2513
  /**
@@ -2682,7 +2638,7 @@ declare const getTemplateDocumentThumbnail: (endpoint: VerdocsEndpoint, template
2682
2638
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants. The
2683
2639
  * original asset may be obtained by calling `getTemplateDocumentFile()` or similar.
2684
2640
  */
2685
- declare const getTemplateDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, templateId: string, documentId: string, page: number) => Promise<string>;
2641
+ declare const getTemplateDocumentPageDisplayUri: (endpoint: VerdocsEndpoint, documentId: string, page: number, variant?: "original" | "tagged") => Promise<string>;
2686
2642
  interface IValidator {
2687
2643
  name: string;
2688
2644
  regex: string;
@@ -2810,4 +2766,4 @@ declare const decodeJWTBody: (token: string) => any;
2810
2766
  * the presence of the `document_id` field, which will only be present for signing sessions.
2811
2767
  */
2812
2768
  declare const decodeAccessTokenBody: (token: string) => TSession;
2813
- export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, ALL_PERMISSIONS, 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, updateGroup, deleteGroup, addGroupMember, deleteGroupMember, 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, randomString, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
2769
+ export { TRequestStatus, TTemplateSenderType, TTemplateAction, TRecipientAction, TEnvelopeStatus, TRecipientStatus, TRecipientType, TSortTemplateBy, TAccessKeyType, TApiKeyPermission, THistoryEvent, TEventDetail, TEnvelopeUpdateResult, TFieldType, TWebhookEvent, TTemplateVisibility, FIELD_TYPES, DEFAULT_FIELD_WIDTHS, DEFAULT_FIELD_HEIGHTS, WEBHOOK_EVENTS, ALL_PERMISSIONS, 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, 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, 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, updateGroup, deleteGroup, addGroupMember, deleteGroupMember, 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, 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, randomString, AtoB, decodeJWTBody, decodeAccessTokenBody, IFileWithData, ICountry };
package/dist/index.js CHANGED
@@ -1580,9 +1580,7 @@ const getFieldAttachment = async (endpoint, envelopeId, fieldName) => endpoint.a
1580
1580
  * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
1581
1581
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
1582
1582
  */
1583
- const getEnvelopeDocumentPageDisplayUri = async (endpoint, envelopeId, documentId, page, type = 'original') => endpoint.api
1584
- .get(`/envelopes/${envelopeId}/envelope_documents/${documentId}/pages/${page}/image?type=${type}`, { timeout: 20000 })
1585
- .then((r) => r.data);
1583
+ const getEnvelopeDocumentPageDisplayUri = async (endpoint, documentId, page, variant = 'original') => endpoint.api.get(`/v2/envelope-documents/page-image/${documentId}/${variant}/${page}`, { timeout: 20000 }).then((r) => r.data);
1586
1584
  /**
1587
1585
  * Lists all envelopes accessible by the caller, with optional filters.
1588
1586
  *
@@ -1704,32 +1702,6 @@ const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
1704
1702
  .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'resend' })
1705
1703
  .then((r) => r.data);
1706
1704
 
1707
- /**
1708
- * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
1709
- * should be sent. interval_time is the number of days between reminders.
1710
- */
1711
- const createEnvelopeReminder = (endpoint, envelopeId, params) => endpoint.api //
1712
- .post(`/envelopes/${envelopeId}/reminder/`, params)
1713
- .then((r) => r.data);
1714
- /**
1715
- * Get the reminder configuration for an envelope.
1716
- */
1717
- const getEnvelopeReminder = (endpoint, envelopeId, reminderId) => endpoint.api //
1718
- .get(`/envelopes/${envelopeId}/reminder/${reminderId}`)
1719
- .then((r) => r.data);
1720
- /**
1721
- * Update the reminder configuration for an envelope.
1722
- */
1723
- const updateEnvelopeReminder = (endpoint, envelopeId, reminderId, params) => endpoint.api //
1724
- .put(`/envelopes/${envelopeId}/reminder/${reminderId}`, params)
1725
- .then((r) => r.data);
1726
- /**
1727
- * Delete the reminder configuration for an envelope.
1728
- */
1729
- const deleteEnvelopeReminder = (endpoint, envelopeId, reminderId) => endpoint.api //
1730
- .delete(`/envelopes/${envelopeId}/reminder/${reminderId}`)
1731
- .then((r) => r.data);
1732
-
1733
1705
  /**
1734
1706
  * Various helpers to identify available operations for an envelope by a user.
1735
1707
  *
@@ -2591,32 +2563,6 @@ const userCanPreviewTemplate = (profile, template) => {
2591
2563
  return hasPermission && signers.length > 0 && signers.every((signer) => getFieldsForRole(template, signer.name).length > 0);
2592
2564
  };
2593
2565
 
2594
- /**
2595
- * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
2596
- * should be sent. interval_time is the number of days between reminders.
2597
- */
2598
- const createTemplateReminder = (endpoint, templateId, params) => endpoint.api //
2599
- .post(`/templates/${templateId}/reminder/`, params)
2600
- .then((r) => r.data);
2601
- /**
2602
- * Get the reminder configuration for a template.
2603
- */
2604
- const getTemplateReminder = (endpoint, templateId, reminderId) => endpoint.api //
2605
- .get(`/templates/${templateId}/reminder/${reminderId}`)
2606
- .then((r) => r.data);
2607
- /**
2608
- * Update the reminder configuration for a template.
2609
- */
2610
- const updateTemplateReminder = (endpoint, templateId, reminderId, params) => endpoint.api //
2611
- .put(`/templates/${templateId}/reminder/${reminderId}`, params)
2612
- .then((r) => r.data);
2613
- /**
2614
- * Delete the reminder configuration for a template.
2615
- */
2616
- const deleteTemplateReminder = (endpoint, templateId, reminderId) => endpoint.api //
2617
- .delete(`/templates/${templateId}/reminder/${reminderId}`)
2618
- .then((r) => r.data);
2619
-
2620
2566
  /**
2621
2567
  * A "role" is an individual participant in a signing flow, such as a signer or CC contact.
2622
2568
  * A role is a placeholder that will eventually become a named recipient. For example, "Tenant 1"
@@ -2950,7 +2896,7 @@ const getTemplateDocumentThumbnail = async (endpoint, templateId, documentId) =>
2950
2896
  * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants. The
2951
2897
  * original asset may be obtained by calling `getTemplateDocumentFile()` or similar.
2952
2898
  */
2953
- const getTemplateDocumentPageDisplayUri = async (endpoint, templateId, documentId, page) => endpoint.api.get(`/templates/${templateId}/documents/${documentId}/pages/${page}/image`).then((r) => r.data);
2899
+ const getTemplateDocumentPageDisplayUri = async (endpoint, documentId, page, variant = 'original') => endpoint.api.get(`/v2/template-documents/page-image/${documentId}/${variant}/${page}`, { timeout: 20000 }).then((r) => r.data);
2954
2900
 
2955
2901
  /**
2956
2902
  * Get all defined validators
@@ -2997,7 +2943,6 @@ exports.changePassword = changePassword;
2997
2943
  exports.convertToE164 = convertToE164;
2998
2944
  exports.createApiKey = createApiKey;
2999
2945
  exports.createEnvelope = createEnvelope;
3000
- exports.createEnvelopeReminder = createEnvelopeReminder;
3001
2946
  exports.createField = createField;
3002
2947
  exports.createGroup = createGroup;
3003
2948
  exports.createInitials = createInitials;
@@ -3009,14 +2954,12 @@ exports.createTag = createTag;
3009
2954
  exports.createTemplate = createTemplate;
3010
2955
  exports.createTemplateDocument = createTemplateDocument;
3011
2956
  exports.createTemplateFromSharepoint = createTemplateFromSharepoint;
3012
- exports.createTemplateReminder = createTemplateReminder;
3013
2957
  exports.createTemplateRole = createTemplateRole;
3014
2958
  exports.declineOrganizationInvitation = declineOrganizationInvitation;
3015
2959
  exports.decodeAccessTokenBody = decodeAccessTokenBody;
3016
2960
  exports.decodeJWTBody = decodeJWTBody;
3017
2961
  exports.deleteApiKey = deleteApiKey;
3018
2962
  exports.deleteEnvelopeFieldAttachment = deleteEnvelopeFieldAttachment;
3019
- exports.deleteEnvelopeReminder = deleteEnvelopeReminder;
3020
2963
  exports.deleteField = deleteField;
3021
2964
  exports.deleteGroup = deleteGroup;
3022
2965
  exports.deleteGroupMember = deleteGroupMember;
@@ -3027,7 +2970,6 @@ exports.deleteProfile = deleteProfile;
3027
2970
  exports.deleteSignature = deleteSignature;
3028
2971
  exports.deleteTemplate = deleteTemplate;
3029
2972
  exports.deleteTemplateDocument = deleteTemplateDocument;
3030
- exports.deleteTemplateReminder = deleteTemplateReminder;
3031
2973
  exports.deleteTemplateRole = deleteTemplateRole;
3032
2974
  exports.deleteTemplateTag = deleteTemplateTag;
3033
2975
  exports.downloadBlob = downloadBlob;
@@ -3054,7 +2996,6 @@ exports.getEnvelope = getEnvelope;
3054
2996
  exports.getEnvelopeDocument = getEnvelopeDocument;
3055
2997
  exports.getEnvelopeDocumentPageDisplayUri = getEnvelopeDocumentPageDisplayUri;
3056
2998
  exports.getEnvelopeFile = getEnvelopeFile;
3057
- exports.getEnvelopeReminder = getEnvelopeReminder;
3058
2999
  exports.getEnvelopes = getEnvelopes;
3059
3000
  exports.getFieldAttachment = getFieldAttachment;
3060
3001
  exports.getFieldsForRole = getFieldsForRole;
@@ -3090,7 +3031,6 @@ exports.getTemplateDocumentFile = getTemplateDocumentFile;
3090
3031
  exports.getTemplateDocumentPageDisplayUri = getTemplateDocumentPageDisplayUri;
3091
3032
  exports.getTemplateDocumentThumbnail = getTemplateDocumentThumbnail;
3092
3033
  exports.getTemplateDocuments = getTemplateDocuments;
3093
- exports.getTemplateReminder = getTemplateReminder;
3094
3034
  exports.getTemplateTags = getTemplateTags;
3095
3035
  exports.getTemplates = getTemplates;
3096
3036
  exports.getValidator = getValidator;
@@ -3133,7 +3073,6 @@ exports.updateApiKey = updateApiKey;
3133
3073
  exports.updateEnvelopeField = updateEnvelopeField;
3134
3074
  exports.updateEnvelopeFieldInitials = updateEnvelopeFieldInitials;
3135
3075
  exports.updateEnvelopeFieldSignature = updateEnvelopeFieldSignature;
3136
- exports.updateEnvelopeReminder = updateEnvelopeReminder;
3137
3076
  exports.updateField = updateField;
3138
3077
  exports.updateGroup = updateGroup;
3139
3078
  exports.updateOrganization = updateOrganization;
@@ -3146,7 +3085,6 @@ exports.updateProfile = updateProfile;
3146
3085
  exports.updateProfilePhoto = updateProfilePhoto;
3147
3086
  exports.updateRecipient = updateRecipient;
3148
3087
  exports.updateTemplate = updateTemplate;
3149
- exports.updateTemplateReminder = updateTemplateReminder;
3150
3088
  exports.updateTemplateRole = updateTemplateRole;
3151
3089
  exports.uploadEnvelopeFieldAttachment = uploadEnvelopeFieldAttachment;
3152
3090
  exports.userCanAct = userCanAct;