@delopay/sdk 0.27.0 → 0.28.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.
@@ -352,8 +352,8 @@ var Connectors = class {
352
352
  * `POST /account/{merchantId}/connectors/webhooks/{connectorId}`
353
353
  *
354
354
  * @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`
355
- * on the backend when omitted; pass `{ event_type: { specific_event: '…' } }`
356
- * to scope to a single event.
355
+ * when omitted; pass `{ event_type: { specific_event: '…' } }` to scope
356
+ * to a single event.
357
357
  */
358
358
  async registerWebhook(merchantId, connectorId, params) {
359
359
  const path = `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`;
@@ -949,13 +949,12 @@ var Payments = class {
949
949
  * Retrieve a payment by its ID.
950
950
  *
951
951
  * @param paymentId - The unique payment intent ID.
952
- * @param options - Optional query flags. `force_sync` asks the backend to
953
- * reconcile state with the connector before returning (used to recover a
954
- * stuck intent when a webhook was lost). `all_keys_required` lifts the
955
- * backend's `should_call_connector` gate so a `requires_payment_method`
956
- * intent can still trigger a sync — without it the backend short-circuits
957
- * and returns the local snapshot. Both flags are JWT-authenticated dashboard
958
- * helpers; API-key callers can use them too where the backend allows.
952
+ * @param options - Optional query flags. `force_sync` reconciles the
953
+ * intent's state with the connector before returning (useful to recover
954
+ * a stuck intent when a webhook was lost). `all_keys_required` forces a
955
+ * connector sync even for intents in early states like
956
+ * `requires_payment_method` that would otherwise return the local
957
+ * snapshot. Both flags work with JWT and API-key authentication.
959
958
  * @returns The payment intent.
960
959
  *
961
960
  * @example
@@ -1897,16 +1896,15 @@ var Users = class {
1897
1896
  return this.request("POST", "/user/signout");
1898
1897
  }
1899
1898
  /**
1900
- * Paginated login history for the authenticated user IP, User-Agent,
1901
- * country / city / lat-lon (when GeoIP is enabled in backend), success
1902
- * and failure events with their reasons. Strictly scoped to the JWT
1903
- * subject; a user can only see their own activity.
1899
+ * Paginated login history for the authenticated user -- IP, User-Agent,
1900
+ * country / city / lat-lon (when GeoIP is enabled), success and failure
1901
+ * events with their reasons. Strictly scoped to the JWT subject; a user
1902
+ * can only see their own activity.
1904
1903
  *
1905
1904
  * `GET /user/me/login-activity`. Requires a logged-in JWT.
1906
1905
  *
1907
- * The backend returns an empty page when a Delopay admin is impersonating
1908
- * a non-admin merchant, so the admin's metadata never renders inside the
1909
- * merchant dashboard.
1906
+ * Returns an empty page when a Delopay admin is impersonating a merchant,
1907
+ * so the admin's metadata is not exposed inside the merchant dashboard.
1910
1908
  */
1911
1909
  async listLoginActivity(params) {
1912
1910
  if (params === void 0) {
@@ -1953,15 +1951,14 @@ var Users = class {
1953
1951
  }
1954
1952
  /**
1955
1953
  * Permanently delete the caller's account. Requires a fresh password
1956
- * (and a current 6-digit TOTP code if the user has TOTP enrolled). The
1957
- * backend hard-deletes every `user_roles` row for the caller and soft-
1958
- * deletes the user record itself (`is_active = false`, password / TOTP
1959
- * wiped). On success all in-flight sessions are blacklisted, so the
1960
- * caller should clear local credentials and route to the login page.
1954
+ * (and a current 6-digit TOTP code if the user has TOTP enrolled). On
1955
+ * success all role assignments are removed, the user record is
1956
+ * deactivated, and all in-flight sessions are invalidated. The caller
1957
+ * should clear local credentials and route to the login page.
1961
1958
  *
1962
- * Refuses (`InvalidDeleteOperation`) when the caller is the sole
1963
- * owner-level admin of an org / merchant / profile they must transfer
1964
- * ownership first.
1959
+ * Returns `InvalidDeleteOperation` when the caller is the sole
1960
+ * owner-level admin of an org / merchant / profile -- they must
1961
+ * transfer ownership first.
1965
1962
  */
1966
1963
  async deleteAccount(params) {
1967
1964
  return this.request("DELETE", "/user/account", { body: params });
@@ -3625,4 +3622,4 @@ export {
3625
3622
  applyBrandingVariables,
3626
3623
  shadowFor
3627
3624
  };
3628
- //# sourceMappingURL=chunk-TE4LLC2R.js.map
3625
+ //# sourceMappingURL=chunk-U6GMDSVQ.js.map