@delopay/sdk 0.133.0 → 0.134.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.
@@ -1043,11 +1043,39 @@ var Events = class {
1043
1043
  `/events/${encodeURIComponent(merchantId)}/${encodeURIComponent(eventId)}/retry`
1044
1044
  );
1045
1045
  }
1046
+ /**
1047
+ * Fire an outgoing webhook event by hand for one object.
1048
+ * `POST /events/{merchant_id}/trigger` (be#318)
1049
+ *
1050
+ * Not a replay — see {@link EventManualTriggerRequest}. Needs the
1051
+ * `WebhookEventTrigger` permission, which is separate from the one that
1052
+ * authorizes {@link retryDelivery}, and is JWT-only: a forged payload must
1053
+ * be attributable to a person.
1054
+ */
1055
+ async trigger(merchantId, body) {
1056
+ return this.request("POST", `/events/${encodeURIComponent(merchantId)}/trigger`, { body });
1057
+ }
1046
1058
  // --- Profile-scoped listing (Task 4.12) ---
1047
- /** List events (profile-scoped). `POST /events/profile/list` */
1059
+ /**
1060
+ * List events (profile-scoped). `POST /events/profile/list`
1061
+ *
1062
+ * Takes the same constraints as {@link list} — it is the same endpoint
1063
+ * narrowed to the caller's own shop, so `profile_id` is redundant and
1064
+ * ignored there.
1065
+ */
1048
1066
  async listByProfile(params) {
1049
1067
  return this.request("POST", "/events/profile/list", { body: params });
1050
1068
  }
1069
+ /**
1070
+ * Fire an outgoing webhook event by hand (profile-scoped).
1071
+ * `POST /events/profile/trigger` (be#318)
1072
+ *
1073
+ * The shop-user twin of {@link trigger}; the shop is taken from the auth
1074
+ * context, so `profile_id` on the body is ignored.
1075
+ */
1076
+ async triggerByProfile(body) {
1077
+ return this.request("POST", "/events/profile/trigger", { body });
1078
+ }
1051
1079
  };
1052
1080
 
1053
1081
  // src/resources/fees.ts
@@ -7671,4 +7699,4 @@ export {
7671
7699
  decodeNativePanes,
7672
7700
  encodeNativePanes
7673
7701
  };
7674
- //# sourceMappingURL=chunk-GK3QZSRX.js.map
7702
+ //# sourceMappingURL=chunk-R4MDAZWF.js.map