@verdocs/js-sdk 4.2.42 → 4.2.44

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
@@ -153,6 +153,7 @@ interface ISigningSession {
153
153
  email: string;
154
154
  iat: number;
155
155
  exp: number;
156
+ "https://verdocs.com/key_type": TAccessKeyType;
156
157
  "https://verdocs.com/session_type": "signing";
157
158
  "https://verdocs.com/envelope_id": string;
158
159
  "https://verdocs.com/role_name": string;
@@ -462,18 +463,18 @@ interface IEnvelope {
462
463
  organization_id: string;
463
464
  reminder_id: string | null;
464
465
  name: string;
465
- no_contact: boolean;
466
+ no_contact?: boolean;
466
467
  created_at: string;
467
468
  updated_at: string;
468
469
  canceled_at: string;
469
470
  /** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
470
471
  visibility: "private" | "shared";
471
- search_key: string | null;
472
+ search_key?: string | null;
472
473
  /**
473
474
  * Storage for arbitrary data that may be used e.g. to track source database/record IDs to relate Envelopes back to
474
475
  * internal systems/applications.
475
476
  */
476
- data: Record<string, any> | null;
477
+ data?: Record<string, any> | null;
477
478
  profile?: IProfile;
478
479
  template?: ITemplate | null;
479
480
  organization?: IOrganization;
@@ -606,6 +607,8 @@ interface IKbaPINRequired {
606
607
  type: "pin";
607
608
  }
608
609
  interface IRecipient {
610
+ /** Used only by the Web SDK during builder processes. Not stored in the backend. */
611
+ id?: string | null;
609
612
  envelope_id: string;
610
613
  role_name: string;
611
614
  profile_id: string;
@@ -685,6 +688,8 @@ interface IReminder {
685
688
  * "Unknown" roles are dynamic, and will be filled in later when the envelope is created.
686
689
  */
687
690
  interface IRole {
691
+ /** Used only by the Web SDK during builder processes. Not stored in the backend. */
692
+ id?: string | null;
688
693
  template_id: string;
689
694
  // The name of the recipient. Note that recipients do not have a separate ID - they are uniquely identified by name.
690
695
  name: string;
@@ -1140,7 +1145,7 @@ interface ICreateEnvelopeRecipient {
1140
1145
  * The Role name of the recipient. Please note this is not the person's name. It is the ID of the role, e.g.
1141
1146
  * 'Recipient 1', 'Seller', etc. This must match one of the pre-defined roles in the template's Recipients list.
1142
1147
  */
1143
- name: string;
1148
+ role_name: string;
1144
1149
  /** The name of the recipient as it will be displayed in reports and queries, e.g. 'Paige Turner'. */
1145
1150
  first_name: string;
1146
1151
  last_name: string;
@@ -1171,6 +1176,22 @@ interface ICreateEnvelopeRecipient {
1171
1176
  kba_method?: "pin" | "identity" | null;
1172
1177
  /** If PIN-based KBA is used, the PIN to challenge the user to enter. */
1173
1178
  kba_pin?: string;
1179
+ /*
1180
+ * Pre-fill data for the recipient, if known. NOTE: If address and zip are both provided, an initial ID query
1181
+ * will be made for the recipient. If questions are returned immediately, the first challenge will be skipped and
1182
+ * the recipient will be immediately shown those questions, instead.
1183
+ */
1184
+ address?: string;
1185
+ city?: string;
1186
+ state?: string;
1187
+ zip?: string;
1188
+ ssn_last_4?: string;
1189
+ /**
1190
+ * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
1191
+ * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
1192
+ * e.g. email, the signer must follow a link send via the appropriate channel (email).
1193
+ */
1194
+ in_app_key?: string;
1174
1195
  }
1175
1196
  interface IInPersonLinkResponse {
1176
1197
  link: string;
@@ -1492,10 +1513,8 @@ declare const envelopeRecipientUpdateName: (endpoint: VerdocsEndpoint, envelopeI
1492
1513
  */
1493
1514
  declare const envelopeRecipientPrepare: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, recipients: IRecipient[]) => Promise<IRecipient>;
1494
1515
  interface ISignerTokenResponse {
1495
- recipient: IRecipient;
1496
1516
  envelope: IEnvelope;
1497
1517
  access_token: string;
1498
- in_person_key: IInPersonAccessKey;
1499
1518
  }
1500
1519
  /**
1501
1520
  * Get a signing session for an Envelope. Note that this should generally be called with a NON-default
package/dist/index.d.ts CHANGED
@@ -153,6 +153,7 @@ interface ISigningSession {
153
153
  email: string;
154
154
  iat: number;
155
155
  exp: number;
156
+ "https://verdocs.com/key_type": TAccessKeyType;
156
157
  "https://verdocs.com/session_type": "signing";
157
158
  "https://verdocs.com/envelope_id": string;
158
159
  "https://verdocs.com/role_name": string;
@@ -462,18 +463,18 @@ interface IEnvelope {
462
463
  organization_id: string;
463
464
  reminder_id: string | null;
464
465
  name: string;
465
- no_contact: boolean;
466
+ no_contact?: boolean;
466
467
  created_at: string;
467
468
  updated_at: string;
468
469
  canceled_at: string;
469
470
  /** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
470
471
  visibility: "private" | "shared";
471
- search_key: string | null;
472
+ search_key?: string | null;
472
473
  /**
473
474
  * Storage for arbitrary data that may be used e.g. to track source database/record IDs to relate Envelopes back to
474
475
  * internal systems/applications.
475
476
  */
476
- data: Record<string, any> | null;
477
+ data?: Record<string, any> | null;
477
478
  profile?: IProfile;
478
479
  template?: ITemplate | null;
479
480
  organization?: IOrganization;
@@ -606,6 +607,8 @@ interface IKbaPINRequired {
606
607
  type: "pin";
607
608
  }
608
609
  interface IRecipient {
610
+ /** Used only by the Web SDK during builder processes. Not stored in the backend. */
611
+ id?: string | null;
609
612
  envelope_id: string;
610
613
  role_name: string;
611
614
  profile_id: string;
@@ -685,6 +688,8 @@ interface IReminder {
685
688
  * "Unknown" roles are dynamic, and will be filled in later when the envelope is created.
686
689
  */
687
690
  interface IRole {
691
+ /** Used only by the Web SDK during builder processes. Not stored in the backend. */
692
+ id?: string | null;
688
693
  template_id: string;
689
694
  // The name of the recipient. Note that recipients do not have a separate ID - they are uniquely identified by name.
690
695
  name: string;
@@ -1140,7 +1145,7 @@ interface ICreateEnvelopeRecipient {
1140
1145
  * The Role name of the recipient. Please note this is not the person's name. It is the ID of the role, e.g.
1141
1146
  * 'Recipient 1', 'Seller', etc. This must match one of the pre-defined roles in the template's Recipients list.
1142
1147
  */
1143
- name: string;
1148
+ role_name: string;
1144
1149
  /** The name of the recipient as it will be displayed in reports and queries, e.g. 'Paige Turner'. */
1145
1150
  first_name: string;
1146
1151
  last_name: string;
@@ -1171,6 +1176,22 @@ interface ICreateEnvelopeRecipient {
1171
1176
  kba_method?: "pin" | "identity" | null;
1172
1177
  /** If PIN-based KBA is used, the PIN to challenge the user to enter. */
1173
1178
  kba_pin?: string;
1179
+ /*
1180
+ * Pre-fill data for the recipient, if known. NOTE: If address and zip are both provided, an initial ID query
1181
+ * will be made for the recipient. If questions are returned immediately, the first challenge will be skipped and
1182
+ * the recipient will be immediately shown those questions, instead.
1183
+ */
1184
+ address?: string;
1185
+ city?: string;
1186
+ state?: string;
1187
+ zip?: string;
1188
+ ssn_last_4?: string;
1189
+ /**
1190
+ * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
1191
+ * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
1192
+ * e.g. email, the signer must follow a link send via the appropriate channel (email).
1193
+ */
1194
+ in_app_key?: string;
1174
1195
  }
1175
1196
  interface IInPersonLinkResponse {
1176
1197
  link: string;
@@ -1492,10 +1513,8 @@ declare const envelopeRecipientUpdateName: (endpoint: VerdocsEndpoint, envelopeI
1492
1513
  */
1493
1514
  declare const envelopeRecipientPrepare: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, recipients: IRecipient[]) => Promise<IRecipient>;
1494
1515
  interface ISignerTokenResponse {
1495
- recipient: IRecipient;
1496
1516
  envelope: IEnvelope;
1497
1517
  access_token: string;
1498
- in_person_key: IInPersonAccessKey;
1499
1518
  }
1500
1519
  /**
1501
1520
  * Get a signing session for an Envelope. Note that this should generally be called with a NON-default