@verdocs/js-sdk 4.2.42 → 4.2.43

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;
@@ -1140,7 +1141,7 @@ interface ICreateEnvelopeRecipient {
1140
1141
  * 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
1142
  * 'Recipient 1', 'Seller', etc. This must match one of the pre-defined roles in the template's Recipients list.
1142
1143
  */
1143
- name: string;
1144
+ role_name: string;
1144
1145
  /** The name of the recipient as it will be displayed in reports and queries, e.g. 'Paige Turner'. */
1145
1146
  first_name: string;
1146
1147
  last_name: string;
@@ -1171,6 +1172,22 @@ interface ICreateEnvelopeRecipient {
1171
1172
  kba_method?: "pin" | "identity" | null;
1172
1173
  /** If PIN-based KBA is used, the PIN to challenge the user to enter. */
1173
1174
  kba_pin?: string;
1175
+ /*
1176
+ * Pre-fill data for the recipient, if known. NOTE: If address and zip are both provided, an initial ID query
1177
+ * will be made for the recipient. If questions are returned immediately, the first challenge will be skipped and
1178
+ * the recipient will be immediately shown those questions, instead.
1179
+ */
1180
+ address?: string;
1181
+ city?: string;
1182
+ state?: string;
1183
+ zip?: string;
1184
+ ssn_last_4?: string;
1185
+ /**
1186
+ * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
1187
+ * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
1188
+ * e.g. email, the signer must follow a link send via the appropriate channel (email).
1189
+ */
1190
+ in_app_key?: string;
1174
1191
  }
1175
1192
  interface IInPersonLinkResponse {
1176
1193
  link: string;
@@ -1492,10 +1509,8 @@ declare const envelopeRecipientUpdateName: (endpoint: VerdocsEndpoint, envelopeI
1492
1509
  */
1493
1510
  declare const envelopeRecipientPrepare: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, recipients: IRecipient[]) => Promise<IRecipient>;
1494
1511
  interface ISignerTokenResponse {
1495
- recipient: IRecipient;
1496
1512
  envelope: IEnvelope;
1497
1513
  access_token: string;
1498
- in_person_key: IInPersonAccessKey;
1499
1514
  }
1500
1515
  /**
1501
1516
  * 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;
@@ -1140,7 +1141,7 @@ interface ICreateEnvelopeRecipient {
1140
1141
  * 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
1142
  * 'Recipient 1', 'Seller', etc. This must match one of the pre-defined roles in the template's Recipients list.
1142
1143
  */
1143
- name: string;
1144
+ role_name: string;
1144
1145
  /** The name of the recipient as it will be displayed in reports and queries, e.g. 'Paige Turner'. */
1145
1146
  first_name: string;
1146
1147
  last_name: string;
@@ -1171,6 +1172,22 @@ interface ICreateEnvelopeRecipient {
1171
1172
  kba_method?: "pin" | "identity" | null;
1172
1173
  /** If PIN-based KBA is used, the PIN to challenge the user to enter. */
1173
1174
  kba_pin?: string;
1175
+ /*
1176
+ * Pre-fill data for the recipient, if known. NOTE: If address and zip are both provided, an initial ID query
1177
+ * will be made for the recipient. If questions are returned immediately, the first challenge will be skipped and
1178
+ * the recipient will be immediately shown those questions, instead.
1179
+ */
1180
+ address?: string;
1181
+ city?: string;
1182
+ state?: string;
1183
+ zip?: string;
1184
+ ssn_last_4?: string;
1185
+ /**
1186
+ * Only returned in creation/getEnvelopeById requests by the creator. May be used for in-person signing. Note that
1187
+ * signing sessions started with this key will be marked as "In App" authenticated. For higher authentication levels,
1188
+ * e.g. email, the signer must follow a link send via the appropriate channel (email).
1189
+ */
1190
+ in_app_key?: string;
1174
1191
  }
1175
1192
  interface IInPersonLinkResponse {
1176
1193
  link: string;
@@ -1492,10 +1509,8 @@ declare const envelopeRecipientUpdateName: (endpoint: VerdocsEndpoint, envelopeI
1492
1509
  */
1493
1510
  declare const envelopeRecipientPrepare: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, recipients: IRecipient[]) => Promise<IRecipient>;
1494
1511
  interface ISignerTokenResponse {
1495
- recipient: IRecipient;
1496
1512
  envelope: IEnvelope;
1497
1513
  access_token: string;
1498
- in_person_key: IInPersonAccessKey;
1499
1514
  }
1500
1515
  /**
1501
1516
  * Get a signing session for an Envelope. Note that this should generally be called with a NON-default