22
33from __future__ import annotations
44
5+ from typing import Iterable
6+
57import httpx
68
79from ..types import event_list_params , event_watch_params
@@ -139,6 +141,7 @@ def watch(
139141 * ,
140142 environment_id : str | Omit = omit ,
141143 organization : bool | Omit = omit ,
144+ resource_type_filters : Iterable [event_watch_params .ResourceTypeFilter ] | Omit = omit ,
142145 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
143146 # The extra values given here take precedence over values defined on the client or passed to this method.
144147 extra_headers : Headers | None = None ,
@@ -173,6 +176,11 @@ def watch(
173176 the caller can see within their organization. No task, task execution or service
174177 events are produed.
175178
179+ resource_type_filters: Filters to limit which events are delivered on organization-scoped streams. When
180+ empty, all events for the scope are delivered. When populated, only events
181+ matching at least one filter entry are forwarded. Not supported for
182+ environment-scoped streams; setting this field returns an error.
183+
176184 extra_headers: Send extra headers
177185
178186 extra_query: Add additional query parameters to the request
@@ -188,6 +196,7 @@ def watch(
188196 {
189197 "environment_id" : environment_id ,
190198 "organization" : organization ,
199+ "resource_type_filters" : resource_type_filters ,
191200 },
192201 event_watch_params .EventWatchParams ,
193202 ),
@@ -314,6 +323,7 @@ async def watch(
314323 * ,
315324 environment_id : str | Omit = omit ,
316325 organization : bool | Omit = omit ,
326+ resource_type_filters : Iterable [event_watch_params .ResourceTypeFilter ] | Omit = omit ,
317327 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
318328 # The extra values given here take precedence over values defined on the client or passed to this method.
319329 extra_headers : Headers | None = None ,
@@ -348,6 +358,11 @@ async def watch(
348358 the caller can see within their organization. No task, task execution or service
349359 events are produed.
350360
361+ resource_type_filters: Filters to limit which events are delivered on organization-scoped streams. When
362+ empty, all events for the scope are delivered. When populated, only events
363+ matching at least one filter entry are forwarded. Not supported for
364+ environment-scoped streams; setting this field returns an error.
365+
351366 extra_headers: Send extra headers
352367
353368 extra_query: Add additional query parameters to the request
@@ -363,6 +378,7 @@ async def watch(
363378 {
364379 "environment_id" : environment_id ,
365380 "organization" : organization ,
381+ "resource_type_filters" : resource_type_filters ,
366382 },
367383 event_watch_params .EventWatchParams ,
368384 ),
0 commit comments