@verdocs/js-sdk 6.0.4 → 6.0.5

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
@@ -2071,21 +2071,7 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
2071
2071
  * @apiSuccess ISignerTokenResponse . Updated signing session.
2072
2072
  */
2073
2073
  declare const verifySigner: (endpoint: VerdocsEndpoint, params: TAuthenticateRecipientRequest) => Promise<ISignerTokenResponse>;
2074
- // TODO: Use "oneOf" to describe the unions of these two calls.
2075
- /**
2076
- * Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
2077
- * avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
2078
- * the calling application to prevent abuse. This endpoint will return a 200 OK even if the
2079
- * no_contact flag is set on the envelope (in which case the call will be ignored).
2080
- *
2081
- * @group Recipients
2082
- * @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
2083
- * @apiParam string(format:uuid) envelope_id The envelope to operate on.
2084
- * @apiParam string role_name The role to operate on.
2085
- * @apiBody string(enum:'resend') action The operation to perform (resend).
2086
- * @apiSuccess string . Success message.
2087
- */
2088
- declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<{
2074
+ declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, message: string) => Promise<{
2089
2075
  status: "OK";
2090
2076
  }>;
2091
2077
  /**
@@ -2119,10 +2105,13 @@ declare const delegateRecipient: (endpoint: VerdocsEndpoint, envelopeId: string,
2119
2105
  status: "OK";
2120
2106
  }>;
2121
2107
  /**
2122
- * Update a recipient. NOTE: User interfaces should rate-limit this operation to
2123
- * avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
2124
- * the calling application to prevent abuse. This endpoint will return a 200 OK even if the
2125
- * no_contact flag is set on the envelope (in which case the call will be ignored).
2108
+ * Update a recipient. NOTE: User interfaces should rate-limit this operation to avoid spamming recipients.
2109
+ * Excessive use of this endpoint may result in Verdocs rate-limiting the calling application to prevent
2110
+ * abuse. This endpoint will return a 200 OK even if the no_contact flag is set on the envelope (in which
2111
+ * case the call will be silently ignored).
2112
+ *
2113
+ * If the recipient's first_name, last_name, email, or message are updated, a new invitation will be sent
2114
+ * to the recipient. This may also be used to trigger a reminder.
2126
2115
  *
2127
2116
  * @group Recipients
2128
2117
  * @api PATCH /envelopes/:envelope_id/recipients/:role_name Update Recipient
package/dist/index.d.ts CHANGED
@@ -2071,21 +2071,7 @@ declare const getInPersonLink: (endpoint: VerdocsEndpoint, envelope_id: string,
2071
2071
  * @apiSuccess ISignerTokenResponse . Updated signing session.
2072
2072
  */
2073
2073
  declare const verifySigner: (endpoint: VerdocsEndpoint, params: TAuthenticateRecipientRequest) => Promise<ISignerTokenResponse>;
2074
- // TODO: Use "oneOf" to describe the unions of these two calls.
2075
- /**
2076
- * Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
2077
- * avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
2078
- * the calling application to prevent abuse. This endpoint will return a 200 OK even if the
2079
- * no_contact flag is set on the envelope (in which case the call will be ignored).
2080
- *
2081
- * @group Recipients
2082
- * @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
2083
- * @apiParam string(format:uuid) envelope_id The envelope to operate on.
2084
- * @apiParam string role_name The role to operate on.
2085
- * @apiBody string(enum:'resend') action The operation to perform (resend).
2086
- * @apiSuccess string . Success message.
2087
- */
2088
- declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string) => Promise<{
2074
+ declare const resendInvitation: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, message: string) => Promise<{
2089
2075
  status: "OK";
2090
2076
  }>;
2091
2077
  /**
@@ -2119,10 +2105,13 @@ declare const delegateRecipient: (endpoint: VerdocsEndpoint, envelopeId: string,
2119
2105
  status: "OK";
2120
2106
  }>;
2121
2107
  /**
2122
- * Update a recipient. NOTE: User interfaces should rate-limit this operation to
2123
- * avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
2124
- * the calling application to prevent abuse. This endpoint will return a 200 OK even if the
2125
- * no_contact flag is set on the envelope (in which case the call will be ignored).
2108
+ * Update a recipient. NOTE: User interfaces should rate-limit this operation to avoid spamming recipients.
2109
+ * Excessive use of this endpoint may result in Verdocs rate-limiting the calling application to prevent
2110
+ * abuse. This endpoint will return a 200 OK even if the no_contact flag is set on the envelope (in which
2111
+ * case the call will be silently ignored).
2112
+ *
2113
+ * If the recipient's first_name, last_name, email, or message are updated, a new invitation will be sent
2114
+ * to the recipient. This may also be used to trigger a reminder.
2126
2115
  *
2127
2116
  * @group Recipients
2128
2117
  * @api PATCH /envelopes/:envelope_id/recipients/:role_name Update Recipient
package/dist/index.js CHANGED
@@ -1975,22 +1975,8 @@ const getInPersonLink = (endpoint, envelope_id, role_name) => endpoint.api //
1975
1975
  const verifySigner = (endpoint, params) => endpoint.api //
1976
1976
  .post(`/v2/sign/verify`, params)
1977
1977
  .then((r) => r.data);
1978
- // TODO: Use "oneOf" to describe the unions of these two calls.
1979
- /**
1980
- * Resend a recipient's invitation. NOTE: User interfaces should rate-limit this operation to
1981
- * avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
1982
- * the calling application to prevent abuse. This endpoint will return a 200 OK even if the
1983
- * no_contact flag is set on the envelope (in which case the call will be ignored).
1984
- *
1985
- * @group Recipients
1986
- * @api PUT /v2/envelopes/:envelope_id/recipients/:role_name Resend Invitation
1987
- * @apiParam string(format:uuid) envelope_id The envelope to operate on.
1988
- * @apiParam string role_name The role to operate on.
1989
- * @apiBody string(enum:'resend') action The operation to perform (resend).
1990
- * @apiSuccess string . Success message.
1991
- */
1992
- const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
1993
- .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'resend' })
1978
+ const resendInvitation = (endpoint, envelopeId, roleName, message) => endpoint.api //
1979
+ .patch(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { message })
1994
1980
  .then((r) => r.data);
1995
1981
  /**
1996
1982
  * Delegate a recipient's signing responsibility. The envelope sender must enable this before the
@@ -2017,10 +2003,13 @@ const delegateRecipient = (endpoint, envelopeId, roleName, params) => endpoint.a
2017
2003
  .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'delegate', ...params })
2018
2004
  .then((r) => r.data);
2019
2005
  /**
2020
- * Update a recipient. NOTE: User interfaces should rate-limit this operation to
2021
- * avoid spamming recipients. Excessive use of this endpoint may result in Verdocs rate-limiting
2022
- * the calling application to prevent abuse. This endpoint will return a 200 OK even if the
2023
- * no_contact flag is set on the envelope (in which case the call will be ignored).
2006
+ * Update a recipient. NOTE: User interfaces should rate-limit this operation to avoid spamming recipients.
2007
+ * Excessive use of this endpoint may result in Verdocs rate-limiting the calling application to prevent
2008
+ * abuse. This endpoint will return a 200 OK even if the no_contact flag is set on the envelope (in which
2009
+ * case the call will be silently ignored).
2010
+ *
2011
+ * If the recipient's first_name, last_name, email, or message are updated, a new invitation will be sent
2012
+ * to the recipient. This may also be used to trigger a reminder.
2024
2013
  *
2025
2014
  * @group Recipients
2026
2015
  * @api PATCH /envelopes/:envelope_id/recipients/:role_name Update Recipient