@delopay/sdk 0.22.0 → 0.23.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.cjs CHANGED
@@ -2086,6 +2086,19 @@ var Users = class {
2086
2086
  async acceptInvitation(params) {
2087
2087
  return this.request("POST", "/user/user/invite/accept", { body: params });
2088
2088
  }
2089
+ /**
2090
+ * Accept an invitation via the email-link flow.
2091
+ *
2092
+ * Caller must already hold a `SinglePurposeToken` with
2093
+ * `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
2094
+ * required TOTP step) and have set it on the client via `setJwtToken`.
2095
+ * `body.token` must still be the original `EmailToken` from the
2096
+ * invite-link URL — the handler decodes it a second time to find the
2097
+ * invitee and the entity lineage.
2098
+ */
2099
+ async acceptInviteFromEmail(params) {
2100
+ return this.request("POST", "/user/accept_invite_from_email", { body: params });
2101
+ }
2089
2102
  /**
2090
2103
  * Start TOTP setup (or no-op if already set).
2091
2104
  *