Skip to content

feat: add get hook event list#1586

Merged
adityaalifn merged 6 commits intomasterfrom
event-list-api
Jul 29, 2025
Merged

feat: add get hook event list#1586
adityaalifn merged 6 commits intomasterfrom
event-list-api

Conversation

@adityaalifn
Copy link
Contributor

@adityaalifn adityaalifn commented Jul 29, 2025

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

Changelog

  /**
   * getHookEvents - Get available events for hooks (webhook, SQS, and SNS)
   *
   * @param {Product[]} [products] Optional array of products to filter events by (e.g., [Product.Chat, Product.Video])
   * @returns {Promise<GetHookEventsResponse>} Response containing available hook events
   */
  async getHookEvents(products?: Product[]) {
    const params = products && products.length > 0 ? { product: products.join(',') } : {};
    return await this.get<GetHookEventsResponse>(this.baseURL + '/hook/events', params);
  }

@github-actions
Copy link
Contributor

Size Change: +805 B (+0.18%)

Total Size: 442 kB

Filename Size Change
dist/cjs/index.browser.cjs 128 kB +267 B (+0.21%)
dist/cjs/index.node.cjs 172 kB +270 B (+0.16%)
dist/esm/index.js 141 kB +268 B (+0.19%)

compressed-size-action

@adityaalifn adityaalifn merged commit 40f1f92 into master Jul 29, 2025
4 checks passed
@adityaalifn adityaalifn deleted the event-list-api branch July 29, 2025 13:15
github-actions bot pushed a commit that referenced this pull request Jul 30, 2025
## [9.13.0](v9.12.0...v9.13.0) (2025-07-30)

### Bug Fixes

* set loading state to [secure] when query channel errors out ([#1585](#1585)) ([11c18f5](11c18f5)), closes [#1584](#1584)

### Features

* add get hook event list ([#1586](#1586)) ([40f1f92](40f1f92))
@stream-ci-bot
Copy link

🎉 This PR is included in version 9.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants