@verdocs/js-sdk 5.2.2 → 5.3.0

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
@@ -1218,12 +1218,55 @@ interface IDocumentSearchOptions {
1218
1218
  envelope_status?: TEnvelopeStatus[];
1219
1219
  recipient_status?: TEnvelopeStatus[];
1220
1220
  }
1221
- interface ICreateEnvelopeRecipient {
1221
+ interface ICreateEnvelopeRecipientFromTemplate {
1222
+ /**
1223
+ * Unique identifier for the recipient. When using a template, must match one of the pre-defined roles in the template's Recipients list.
1224
+ */
1225
+ role_name: string;
1226
+ /** The name of the recipient as it will be displayed in reports and queries, e.g. 'Paige Turner'. */
1227
+ first_name: string;
1228
+ last_name: string;
1229
+ /** The email address of the recipient. One of `email` or `phone` must be provided. */
1230
+ email?: string;
1231
+ /**
1232
+ * The phone number of the recipient. One of `email` or `phone` must be provided. If `phone` is included, the
1233
+ * recipient will receive an SMS notification for the document.
1234
+ */
1235
+ phone?: string;
1236
+ /** Whether the recipient may delegate their tasks to others. Should be false for most standard workflows. */
1237
+ delegator?: boolean;
1238
+ /** A custom message to include in the email or SMS invitation. May be left blank for a default message. */
1239
+ message?: string;
1240
+ /** To enable authentication for the recipient, set to 'pin' or 'identity'. */
1241
+ auth_methods?: TRecipientAuthMethod;
1242
+ /** If Passcode-based authentication is used, the passcode to challenge the user to enter. */
1243
+ passcode?: string;
1244
+ /**
1245
+ * If SMS-based authentication is used, the phone number to which one-time codes should be sent.
1246
+ * NOTE: This may be different from the phone number used for notifications, but leaving it blank
1247
+ * will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
1248
+ * assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
1249
+ * is).
1250
+ */
1251
+ phone_auth?: string;
1252
+ /** Pre-fill KBA address for the recipient, if known. */
1253
+ address?: string;
1254
+ /** Pre-fill KBA city for the recipient, if known. */
1255
+ city?: string;
1256
+ /** Pre-fill KBA state for the recipient, if known. */
1257
+ state?: string;
1258
+ /** Pre-fill KBA zip for the recipient, if known. */
1259
+ zip?: string;
1260
+ /** Pre-fill KBA date-of-birth for the recipient, if known. */
1261
+ dob?: string;
1262
+ /** Pre-fill KBA SSN-Last-4 for the recipient, if known. */
1263
+ ssn_last_4?: string;
1264
+ }
1265
+ interface ICreateEnvelopeRecipientDirectly {
1222
1266
  /** The type of role to create. Most participants in standard flows will be "signer" recipients. */
1223
1267
  type: TRecipientType;
1224
1268
  /**
1225
- * The Role name of the recipient. Please note this is not the person's name. It is the ID of the role, e.g.
1226
- * 'Recipient 1', 'Seller', etc. This must match one of the pre-defined roles in the template's Recipients list.
1269
+ * Unique identifier for the recipient. When using a template, must match one of the pre-defined roles in the template's Recipients list.
1227
1270
  */
1228
1271
  role_name: string;
1229
1272
  /** The name of the recipient as it will be displayed in reports and queries, e.g. 'Paige Turner'. */
@@ -1242,18 +1285,18 @@ interface ICreateEnvelopeRecipient {
1242
1285
  * and in series between sequence numbers (e.g. all recipients at level "1" must complete their tasks before
1243
1286
  * recipients at level "2" may act).
1244
1287
  */
1245
- sequence: number;
1288
+ sequence?: number;
1246
1289
  /**
1247
1290
  * The 1-based order within the sequence for the recipient. Recipients at the same sequence act in parallel, so
1248
1291
  * this is only for display purposes.
1249
1292
  */
1250
- order: number;
1293
+ order?: number;
1251
1294
  /** Whether the recipient may delegate their tasks to others. Should be false for most standard workflows. */
1252
1295
  delegator?: boolean;
1253
1296
  /** A custom message to include in the email or SMS invitation. May be left blank for a default message. */
1254
1297
  message?: string;
1255
1298
  /** To enable authentication for the recipient, set to 'pin' or 'identity'. */
1256
- auth_method?: TRecipientAuthMethod;
1299
+ auth_methods?: TRecipientAuthMethod;
1257
1300
  /** If Passcode-based authentication is used, the passcode to challenge the user to enter. */
1258
1301
  passcode?: string;
1259
1302
  /**
@@ -1264,17 +1307,17 @@ interface ICreateEnvelopeRecipient {
1264
1307
  * is).
1265
1308
  */
1266
1309
  phone_auth?: string;
1267
- /*
1268
- * Pre-fill data for the recipient, if known. NOTE: Even when pre-filling these fields for a recipient, if
1269
- * KBA is enabled, the recipient must be provided with the option to confirm those details before proceeding,
1270
- * provide at least one data point themselves (typically date of birth). Providing every value here will
1271
- trigger an error.
1272
- */
1310
+ /** Pre-fill KBA address for the recipient, if known. */
1273
1311
  address?: string;
1312
+ /** Pre-fill KBA city for the recipient, if known. */
1274
1313
  city?: string;
1314
+ /** Pre-fill KBA state for the recipient, if known. */
1275
1315
  state?: string;
1316
+ /** Pre-fill KBA zip for the recipient, if known. */
1276
1317
  zip?: string;
1318
+ /** Pre-fill KBA date-of-birth for the recipient, if known. */
1277
1319
  dob?: string;
1320
+ /** Pre-fill KBA SSN-Last-4 for the recipient, if known. */
1278
1321
  ssn_last_4?: string;
1279
1322
  }
1280
1323
  interface ISignerTokenResponse {
@@ -1381,40 +1424,148 @@ interface IUpdateRecipientParams {
1381
1424
  /** If KBA-based authentication is used, the recipient's SSN-Last-4 to prefill. May only be changed if the recipient has not already completed KBA-based auth. */
1382
1425
  ssn_last_4?: string;
1383
1426
  }
1427
+ interface ICreateEnvelopeDocumentFromData {
1428
+ /** The order in which the document should be displayed. */
1429
+ order?: number;
1430
+ /** Override the detected MIME type for the document. */
1431
+ mime?: string;
1432
+ /** The name of the document. Will be used to generate the final filename. */
1433
+ name?: string;
1434
+ /** Base-64 encoded content of the document. */
1435
+ data: string;
1436
+ }
1437
+ interface ICreateEnvelopeDocumentFromUri {
1438
+ /** The order in which the document should be displayed. */
1439
+ order?: number;
1440
+ /** Override the detected MIME type for the document. */
1441
+ mime?: string;
1442
+ /** The name of the document. Will be used to generate the final filename. */
1443
+ name?: string;
1444
+ /** URI from which Verdocs should download a copy of the document. Pre-signed URLs with short (<60s) expirations are strongly recommended. */
1445
+ uri: string;
1446
+ }
1447
+ interface ICreateEnvelopeDocumentFromFile {
1448
+ /** The order in which the document should be displayed. */
1449
+ order?: number;
1450
+ /** Override the detected MIME type for the document. */
1451
+ mime?: string;
1452
+ /** The name of the document. Will be used to generate the final filename. */
1453
+ name?: string;
1454
+ /** Directly attach a file via form-url-encoded POST attachment. */
1455
+ file?: any;
1456
+ }
1457
+ interface ICreateEnvelopeFieldFromTemplate {
1458
+ /** The machine name of the field, e.g. `Buyer-textbox-1` */
1459
+ name: string;
1460
+ /** The ID of the role in the recipients list, e.g. `Recipient 2` */
1461
+ role_name: string;
1462
+ /** Override the "required" setting from the template. */
1463
+ required?: boolean;
1464
+ /** Override the "readonly" setting from the template. */
1465
+ readonly?: boolean;
1466
+ /** Override the "label" setting from the template. */
1467
+ label?: string;
1468
+ /** Override the "default" setting from the template. If a default is provided, the field will be marked as "prepared". */
1469
+ default?: string;
1470
+ /** Override the "placeholder" setting from the template. */
1471
+ placeholder?: string;
1472
+ /** Override the "multiline" setting from the template. */
1473
+ multiline?: boolean;
1474
+ /** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
1475
+ group?: string;
1476
+ /** Override the "options" setting from the template. */
1477
+ options: IDropdownOption[] | null;
1478
+ }
1479
+ interface ICreateEnvelopeFieldDirectly {
1480
+ /** The array index of the document the field is for. */
1481
+ document_id: number;
1482
+ /** The machine name of the field, e.g. `Buyer-textbox-1` */
1483
+ name: string;
1484
+ /** The ID of the role in the recipients list, e.g. `Recipient 2` */
1485
+ role_name: string;
1486
+ /** The type of the field */
1487
+ type: TFieldType;
1488
+ /** The 1-based page number the field is displayed on. "Self-placed" fields that the user must apply will be on page 0. */
1489
+ page: number;
1490
+ /** The X position of the field. */
1491
+ x: number;
1492
+ /** The Y position of the field. */
1493
+ y: number;
1494
+ /** The width of the field. */
1495
+ width?: number;
1496
+ /** The height of the field. */
1497
+ height?: number;
1498
+ /** If true, the field will be required */
1499
+ required?: boolean;
1500
+ /** If true, the field will be not be editable by the participant(s). NOTE: Fields may not be both required and readonly. */
1501
+ readonly?: boolean;
1502
+ /** If set, the placeholder/label for the field. */
1503
+ label?: string;
1504
+ /** The default value for the field. */
1505
+ default?: string;
1506
+ /** The placeholder to show in the field. */
1507
+ placeholder?: string;
1508
+ /** For text boxes, allows more than one line of text to be entered. */
1509
+ multiline?: boolean;
1510
+ /** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
1511
+ group?: string;
1512
+ /** For dropdowns, the options that are selectable. */
1513
+ options?: IDropdownOption[] | null;
1514
+ }
1384
1515
  interface ICreateEnvelopeFromTemplateRequest {
1385
1516
  template_id: string;
1386
- recipients: ICreateEnvelopeRecipient[];
1517
+ /** Override the name of the envelope to create. */
1387
1518
  name?: string;
1519
+ /** Override the description of the envelope to create. */
1388
1520
  description?: string;
1389
- fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
1390
- environment?: string;
1391
- /** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
1392
- no_contact?: boolean;
1393
1521
  /** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
1394
1522
  sender_name?: string;
1523
+ /** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
1524
+ no_contact?: boolean;
1525
+ /** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
1526
+ expires_at?: string;
1527
+ /** Environment in which to execute the envelope. Do not set this unless instructed to do so by Verdocs support. */
1528
+ environment?: string;
1529
+ /** Visibility of the envelope. If set to 'shared', the envelope will be visible to all users in the organization. If set to 'private', only the creator and recipients will see it. */
1530
+ visibility?: "private" | "shared";
1395
1531
  /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
1396
1532
  initial_reminder?: number;
1397
1533
  /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
1398
1534
  followup_reminders?: number;
1399
- /** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
1400
- expires_at?: string;
1535
+ /** List of recipients to configure. */
1536
+ recipients: ICreateEnvelopeRecipientFromTemplate[];
1537
+ /** Optional metadata to attach to the envelope. This is not used by Verdocs, but may be used for internal tracking purposes by the caller. This is not shown to recipients, but is not private and should not be used to store sensitive data. */
1538
+ data?: any;
1539
+ /** Fields to create in the envelope. Note that document_id is a number in this call and should match the index of the document in the documents array. */
1540
+ fields?: ICreateEnvelopeFieldFromTemplate;
1401
1541
  }
1402
1542
  interface ICreateEnvelopeDirectlyRequest {
1543
+ /** The name of the envelope to create. */
1403
1544
  name: string;
1545
+ /** The description of the envelope to create. */
1404
1546
  description?: string;
1405
- visiblity?: "private" | "shared";
1406
- recipients: ICreateEnvelopeRecipient[];
1407
- documents: IEnvelopeDocument[];
1408
- fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
1409
- environment?: string;
1547
+ /** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
1548
+ sender_name?: string;
1410
1549
  /** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
1411
1550
  no_contact?: boolean;
1551
+ /** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
1552
+ expires_at?: string;
1553
+ /** Environment in which to execute the envelope. Do not set this unless instructed to do so by Verdocs support. */
1554
+ environment?: string;
1555
+ /** Visibility of the envelope. If set to 'shared', the envelope will be visible to all users in the organization. If set to 'private', only the creator and recipients will see it. */
1556
+ visibility?: "private" | "shared";
1412
1557
  /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
1413
1558
  initial_reminder: number;
1414
1559
  /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
1415
1560
  followup_reminders: number;
1416
- /** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
1417
- expires_at?: string;
1561
+ /** Optional metadata to attach to the envelope. This is not used by Verdocs, but may be used for internal tracking purposes by the caller. This is not shown to recipients, but is not private and should not be used to store sensitive data. */
1562
+ data?: any;
1563
+ /** List of recipients to configure. */
1564
+ recipients: ICreateEnvelopeRecipientDirectly[];
1565
+ /** Documents to attach to the envelope. */
1566
+ documents: (ICreateEnvelopeDocumentFromData | ICreateEnvelopeDocumentFromUri | ICreateEnvelopeDocumentFromFile)[];
1567
+ /** Fields to create in the envelope. Note that document_id is a number in this call and should match the index of the document in the documents array. */
1568
+ fields: ICreateEnvelopeFieldDirectly[];
1418
1569
  }
1419
1570
  type TCreateEnvelopeRequest = ICreateEnvelopeFromTemplateRequest | ICreateEnvelopeDirectlyRequest;
1420
1571
  interface IAuthenticateRecipientViaPasscodeRequest {
@@ -3628,4 +3779,4 @@ declare const decodeJWTBody: (token: string) => any;
3628
3779
  * the presence of the `document_id` field, which will only be present for signing sessions.
3629
3780
  */
3630
3781
  declare const decodeAccessTokenBody: (token: string) => TSession;
3631
- 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, sendDelegate, resendInvitation, updateRecipient, 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, IUpdateRecipientParams, 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 };
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, sendDelegate, resendInvitation, 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
@@ -1218,12 +1218,55 @@ interface IDocumentSearchOptions {
1218
1218
  envelope_status?: TEnvelopeStatus[];
1219
1219
  recipient_status?: TEnvelopeStatus[];
1220
1220
  }
1221
- interface ICreateEnvelopeRecipient {
1221
+ interface ICreateEnvelopeRecipientFromTemplate {
1222
+ /**
1223
+ * Unique identifier for the recipient. When using a template, must match one of the pre-defined roles in the template's Recipients list.
1224
+ */
1225
+ role_name: string;
1226
+ /** The name of the recipient as it will be displayed in reports and queries, e.g. 'Paige Turner'. */
1227
+ first_name: string;
1228
+ last_name: string;
1229
+ /** The email address of the recipient. One of `email` or `phone` must be provided. */
1230
+ email?: string;
1231
+ /**
1232
+ * The phone number of the recipient. One of `email` or `phone` must be provided. If `phone` is included, the
1233
+ * recipient will receive an SMS notification for the document.
1234
+ */
1235
+ phone?: string;
1236
+ /** Whether the recipient may delegate their tasks to others. Should be false for most standard workflows. */
1237
+ delegator?: boolean;
1238
+ /** A custom message to include in the email or SMS invitation. May be left blank for a default message. */
1239
+ message?: string;
1240
+ /** To enable authentication for the recipient, set to 'pin' or 'identity'. */
1241
+ auth_methods?: TRecipientAuthMethod;
1242
+ /** If Passcode-based authentication is used, the passcode to challenge the user to enter. */
1243
+ passcode?: string;
1244
+ /**
1245
+ * If SMS-based authentication is used, the phone number to which one-time codes should be sent.
1246
+ * NOTE: This may be different from the phone number used for notifications, but leaving it blank
1247
+ * will trigger an error rather than defaulting to the notifications phone number to avoid mistaken
1248
+ * assumptions (e.g. if SMS notifications are not enabled for the organization, but SMS authentication
1249
+ * is).
1250
+ */
1251
+ phone_auth?: string;
1252
+ /** Pre-fill KBA address for the recipient, if known. */
1253
+ address?: string;
1254
+ /** Pre-fill KBA city for the recipient, if known. */
1255
+ city?: string;
1256
+ /** Pre-fill KBA state for the recipient, if known. */
1257
+ state?: string;
1258
+ /** Pre-fill KBA zip for the recipient, if known. */
1259
+ zip?: string;
1260
+ /** Pre-fill KBA date-of-birth for the recipient, if known. */
1261
+ dob?: string;
1262
+ /** Pre-fill KBA SSN-Last-4 for the recipient, if known. */
1263
+ ssn_last_4?: string;
1264
+ }
1265
+ interface ICreateEnvelopeRecipientDirectly {
1222
1266
  /** The type of role to create. Most participants in standard flows will be "signer" recipients. */
1223
1267
  type: TRecipientType;
1224
1268
  /**
1225
- * The Role name of the recipient. Please note this is not the person's name. It is the ID of the role, e.g.
1226
- * 'Recipient 1', 'Seller', etc. This must match one of the pre-defined roles in the template's Recipients list.
1269
+ * Unique identifier for the recipient. When using a template, must match one of the pre-defined roles in the template's Recipients list.
1227
1270
  */
1228
1271
  role_name: string;
1229
1272
  /** The name of the recipient as it will be displayed in reports and queries, e.g. 'Paige Turner'. */
@@ -1242,18 +1285,18 @@ interface ICreateEnvelopeRecipient {
1242
1285
  * and in series between sequence numbers (e.g. all recipients at level "1" must complete their tasks before
1243
1286
  * recipients at level "2" may act).
1244
1287
  */
1245
- sequence: number;
1288
+ sequence?: number;
1246
1289
  /**
1247
1290
  * The 1-based order within the sequence for the recipient. Recipients at the same sequence act in parallel, so
1248
1291
  * this is only for display purposes.
1249
1292
  */
1250
- order: number;
1293
+ order?: number;
1251
1294
  /** Whether the recipient may delegate their tasks to others. Should be false for most standard workflows. */
1252
1295
  delegator?: boolean;
1253
1296
  /** A custom message to include in the email or SMS invitation. May be left blank for a default message. */
1254
1297
  message?: string;
1255
1298
  /** To enable authentication for the recipient, set to 'pin' or 'identity'. */
1256
- auth_method?: TRecipientAuthMethod;
1299
+ auth_methods?: TRecipientAuthMethod;
1257
1300
  /** If Passcode-based authentication is used, the passcode to challenge the user to enter. */
1258
1301
  passcode?: string;
1259
1302
  /**
@@ -1264,17 +1307,17 @@ interface ICreateEnvelopeRecipient {
1264
1307
  * is).
1265
1308
  */
1266
1309
  phone_auth?: string;
1267
- /*
1268
- * Pre-fill data for the recipient, if known. NOTE: Even when pre-filling these fields for a recipient, if
1269
- * KBA is enabled, the recipient must be provided with the option to confirm those details before proceeding,
1270
- * provide at least one data point themselves (typically date of birth). Providing every value here will
1271
- trigger an error.
1272
- */
1310
+ /** Pre-fill KBA address for the recipient, if known. */
1273
1311
  address?: string;
1312
+ /** Pre-fill KBA city for the recipient, if known. */
1274
1313
  city?: string;
1314
+ /** Pre-fill KBA state for the recipient, if known. */
1275
1315
  state?: string;
1316
+ /** Pre-fill KBA zip for the recipient, if known. */
1276
1317
  zip?: string;
1318
+ /** Pre-fill KBA date-of-birth for the recipient, if known. */
1277
1319
  dob?: string;
1320
+ /** Pre-fill KBA SSN-Last-4 for the recipient, if known. */
1278
1321
  ssn_last_4?: string;
1279
1322
  }
1280
1323
  interface ISignerTokenResponse {
@@ -1381,40 +1424,148 @@ interface IUpdateRecipientParams {
1381
1424
  /** If KBA-based authentication is used, the recipient's SSN-Last-4 to prefill. May only be changed if the recipient has not already completed KBA-based auth. */
1382
1425
  ssn_last_4?: string;
1383
1426
  }
1427
+ interface ICreateEnvelopeDocumentFromData {
1428
+ /** The order in which the document should be displayed. */
1429
+ order?: number;
1430
+ /** Override the detected MIME type for the document. */
1431
+ mime?: string;
1432
+ /** The name of the document. Will be used to generate the final filename. */
1433
+ name?: string;
1434
+ /** Base-64 encoded content of the document. */
1435
+ data: string;
1436
+ }
1437
+ interface ICreateEnvelopeDocumentFromUri {
1438
+ /** The order in which the document should be displayed. */
1439
+ order?: number;
1440
+ /** Override the detected MIME type for the document. */
1441
+ mime?: string;
1442
+ /** The name of the document. Will be used to generate the final filename. */
1443
+ name?: string;
1444
+ /** URI from which Verdocs should download a copy of the document. Pre-signed URLs with short (<60s) expirations are strongly recommended. */
1445
+ uri: string;
1446
+ }
1447
+ interface ICreateEnvelopeDocumentFromFile {
1448
+ /** The order in which the document should be displayed. */
1449
+ order?: number;
1450
+ /** Override the detected MIME type for the document. */
1451
+ mime?: string;
1452
+ /** The name of the document. Will be used to generate the final filename. */
1453
+ name?: string;
1454
+ /** Directly attach a file via form-url-encoded POST attachment. */
1455
+ file?: any;
1456
+ }
1457
+ interface ICreateEnvelopeFieldFromTemplate {
1458
+ /** The machine name of the field, e.g. `Buyer-textbox-1` */
1459
+ name: string;
1460
+ /** The ID of the role in the recipients list, e.g. `Recipient 2` */
1461
+ role_name: string;
1462
+ /** Override the "required" setting from the template. */
1463
+ required?: boolean;
1464
+ /** Override the "readonly" setting from the template. */
1465
+ readonly?: boolean;
1466
+ /** Override the "label" setting from the template. */
1467
+ label?: string;
1468
+ /** Override the "default" setting from the template. If a default is provided, the field will be marked as "prepared". */
1469
+ default?: string;
1470
+ /** Override the "placeholder" setting from the template. */
1471
+ placeholder?: string;
1472
+ /** Override the "multiline" setting from the template. */
1473
+ multiline?: boolean;
1474
+ /** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
1475
+ group?: string;
1476
+ /** Override the "options" setting from the template. */
1477
+ options: IDropdownOption[] | null;
1478
+ }
1479
+ interface ICreateEnvelopeFieldDirectly {
1480
+ /** The array index of the document the field is for. */
1481
+ document_id: number;
1482
+ /** The machine name of the field, e.g. `Buyer-textbox-1` */
1483
+ name: string;
1484
+ /** The ID of the role in the recipients list, e.g. `Recipient 2` */
1485
+ role_name: string;
1486
+ /** The type of the field */
1487
+ type: TFieldType;
1488
+ /** The 1-based page number the field is displayed on. "Self-placed" fields that the user must apply will be on page 0. */
1489
+ page: number;
1490
+ /** The X position of the field. */
1491
+ x: number;
1492
+ /** The Y position of the field. */
1493
+ y: number;
1494
+ /** The width of the field. */
1495
+ width?: number;
1496
+ /** The height of the field. */
1497
+ height?: number;
1498
+ /** If true, the field will be required */
1499
+ required?: boolean;
1500
+ /** If true, the field will be not be editable by the participant(s). NOTE: Fields may not be both required and readonly. */
1501
+ readonly?: boolean;
1502
+ /** If set, the placeholder/label for the field. */
1503
+ label?: string;
1504
+ /** The default value for the field. */
1505
+ default?: string;
1506
+ /** The placeholder to show in the field. */
1507
+ placeholder?: string;
1508
+ /** For text boxes, allows more than one line of text to be entered. */
1509
+ multiline?: boolean;
1510
+ /** For fields that support grouping (radio buttons and check boxes) the value selected will be stored under this name. */
1511
+ group?: string;
1512
+ /** For dropdowns, the options that are selectable. */
1513
+ options?: IDropdownOption[] | null;
1514
+ }
1384
1515
  interface ICreateEnvelopeFromTemplateRequest {
1385
1516
  template_id: string;
1386
- recipients: ICreateEnvelopeRecipient[];
1517
+ /** Override the name of the envelope to create. */
1387
1518
  name?: string;
1519
+ /** Override the description of the envelope to create. */
1388
1520
  description?: string;
1389
- fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
1390
- environment?: string;
1391
- /** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
1392
- no_contact?: boolean;
1393
1521
  /** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
1394
1522
  sender_name?: string;
1523
+ /** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
1524
+ no_contact?: boolean;
1525
+ /** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
1526
+ expires_at?: string;
1527
+ /** Environment in which to execute the envelope. Do not set this unless instructed to do so by Verdocs support. */
1528
+ environment?: string;
1529
+ /** Visibility of the envelope. If set to 'shared', the envelope will be visible to all users in the organization. If set to 'private', only the creator and recipients will see it. */
1530
+ visibility?: "private" | "shared";
1395
1531
  /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
1396
1532
  initial_reminder?: number;
1397
1533
  /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
1398
1534
  followup_reminders?: number;
1399
- /** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
1400
- expires_at?: string;
1535
+ /** List of recipients to configure. */
1536
+ recipients: ICreateEnvelopeRecipientFromTemplate[];
1537
+ /** Optional metadata to attach to the envelope. This is not used by Verdocs, but may be used for internal tracking purposes by the caller. This is not shown to recipients, but is not private and should not be used to store sensitive data. */
1538
+ data?: any;
1539
+ /** Fields to create in the envelope. Note that document_id is a number in this call and should match the index of the document in the documents array. */
1540
+ fields?: ICreateEnvelopeFieldFromTemplate;
1401
1541
  }
1402
1542
  interface ICreateEnvelopeDirectlyRequest {
1543
+ /** The name of the envelope to create. */
1403
1544
  name: string;
1545
+ /** The description of the envelope to create. */
1404
1546
  description?: string;
1405
- visiblity?: "private" | "shared";
1406
- recipients: ICreateEnvelopeRecipient[];
1407
- documents: IEnvelopeDocument[];
1408
- fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
1409
- environment?: string;
1547
+ /** Override the sender name of the envelope in email and other notifications. NOTE: To prevent spam filters from blocking messages, only the NAME may be overidden. The "from" email address will be notifications@verdocs.com and cannot be changed. */
1548
+ sender_name?: string;
1410
1549
  /** If set, Verdocs will not attempt to contact the recipient via email or SMS. */
1411
1550
  no_contact?: boolean;
1551
+ /** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
1552
+ expires_at?: string;
1553
+ /** Environment in which to execute the envelope. Do not set this unless instructed to do so by Verdocs support. */
1554
+ environment?: string;
1555
+ /** Visibility of the envelope. If set to 'shared', the envelope will be visible to all users in the organization. If set to 'private', only the creator and recipients will see it. */
1556
+ visibility?: "private" | "shared";
1412
1557
  /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
1413
1558
  initial_reminder: number;
1414
1559
  /** Delay (in seconds) before subsequent remidners are sent (min: 12hrs). Set to 0 or null to disable. */
1415
1560
  followup_reminders: number;
1416
- /** If set, the envelope will automatically expire at the specified date/time (ISO8601, UTC) */
1417
- expires_at?: string;
1561
+ /** Optional metadata to attach to the envelope. This is not used by Verdocs, but may be used for internal tracking purposes by the caller. This is not shown to recipients, but is not private and should not be used to store sensitive data. */
1562
+ data?: any;
1563
+ /** List of recipients to configure. */
1564
+ recipients: ICreateEnvelopeRecipientDirectly[];
1565
+ /** Documents to attach to the envelope. */
1566
+ documents: (ICreateEnvelopeDocumentFromData | ICreateEnvelopeDocumentFromUri | ICreateEnvelopeDocumentFromFile)[];
1567
+ /** Fields to create in the envelope. Note that document_id is a number in this call and should match the index of the document in the documents array. */
1568
+ fields: ICreateEnvelopeFieldDirectly[];
1418
1569
  }
1419
1570
  type TCreateEnvelopeRequest = ICreateEnvelopeFromTemplateRequest | ICreateEnvelopeDirectlyRequest;
1420
1571
  interface IAuthenticateRecipientViaPasscodeRequest {
@@ -3628,4 +3779,4 @@ declare const decodeJWTBody: (token: string) => any;
3628
3779
  * the presence of the `document_id` field, which will only be present for signing sessions.
3629
3780
  */
3630
3781
  declare const decodeAccessTokenBody: (token: string) => TSession;
3631
- 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, sendDelegate, resendInvitation, updateRecipient, 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, IUpdateRecipientParams, 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 };
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, sendDelegate, resendInvitation, 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 };