@verdocs/js-sdk 4.2.55 → 4.2.65

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
@@ -402,7 +402,7 @@ interface IInPersonAccessKey {
402
402
  id: string;
403
403
  type: "in_person_link";
404
404
  authentication?: string | null;
405
- recipient_name: string;
405
+ role_name: string;
406
406
  envelope_id: string;
407
407
  key: string;
408
408
  expiration_date: string | null;
@@ -1199,12 +1199,7 @@ interface ICreateEnvelopeRecipient {
1199
1199
  }
1200
1200
  interface IInPersonLinkResponse {
1201
1201
  link: string;
1202
- envelope_id: string;
1203
- profile_id: string;
1204
- role_name: string;
1205
- access_key: string;
1206
- expiration_date: string;
1207
- type: TAccessKey;
1202
+ access_key: TAccessKey;
1208
1203
  }
1209
1204
  interface IUpdateRecipientSubmitParams {
1210
1205
  action: "submit";
package/dist/index.d.ts CHANGED
@@ -402,7 +402,7 @@ interface IInPersonAccessKey {
402
402
  id: string;
403
403
  type: "in_person_link";
404
404
  authentication?: string | null;
405
- recipient_name: string;
405
+ role_name: string;
406
406
  envelope_id: string;
407
407
  key: string;
408
408
  expiration_date: string | null;
@@ -1199,12 +1199,7 @@ interface ICreateEnvelopeRecipient {
1199
1199
  }
1200
1200
  interface IInPersonLinkResponse {
1201
1201
  link: string;
1202
- envelope_id: string;
1203
- profile_id: string;
1204
- role_name: string;
1205
- access_key: string;
1206
- expiration_date: string;
1207
- type: TAccessKey;
1202
+ access_key: TAccessKey;
1208
1203
  }
1209
1204
  interface IUpdateRecipientSubmitParams {
1210
1205
  action: "submit";
package/dist/index.js CHANGED
@@ -1620,19 +1620,19 @@ const getSignerToken = (endpoint, envelope_id, role_name) => endpoint.api //
1620
1620
  * Get an in-person signing link.
1621
1621
  */
1622
1622
  const getInPersonLink = (endpoint, envelopeId, roleName) => endpoint.api //
1623
- .get(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}?in_person_link=true`)
1623
+ .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'get_links' })
1624
1624
  .then((r) => r.data);
1625
1625
  /**
1626
1626
  * Send a delegation request.
1627
1627
  */
1628
1628
  const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
1629
- .post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}/delegate`)
1629
+ .post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`)
1630
1630
  .then((r) => r.data);
1631
1631
  /**
1632
1632
  * Resend a recipient's invitation.
1633
1633
  */
1634
1634
  const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
1635
- .post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}/resend_invitation`)
1635
+ .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'resend' })
1636
1636
  .then((r) => r.data);
1637
1637
 
1638
1638
  /**