Release v1.0.0-beta.22
Pre-release
Pre-release
[v1.0.0-beta.22] - 2025-01-16
Changed
- Refactored
WebhookSubscriber
interface:AdminSubscribeWebhook
now accepts a*commands.CreateWebhookSubscription
instead of individual parameters (webhookURL
,tokenHeader
,tokenValue
).AdminUnsubscribeWebhook
now accepts a*commands.CancelWebhookSubscription
instead of a singlewebhookURL
.
Updated
Webhook
methods:Subscribe
: Now constructs acommands.CreateWebhookSubscription
command and passes it to theAdminSubscribeWebhook
method.Unsubscribe
: Now constructs acommands.CancelWebhookSubscription
command and passes it to theAdminUnsubscribeWebhook
method.
Notes
- These changes improve the maintainability of webhook subscription logic by centralizing command data structures in the
commands
package.