diff --git a/src/convoy/api/subscriptions/get_subscriptions.py b/src/convoy/api/subscriptions/get_subscriptions.py index a54ed6a..0ba14c6 100644 --- a/src/convoy/api/subscriptions/get_subscriptions.py +++ b/src/convoy/api/subscriptions/get_subscriptions.py @@ -133,7 +133,8 @@ def sync_detailed( ]: """List all subscriptions - This endpoint fetches all the subscriptions + List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body, + header, query, or path rules. Args: project_id (str): @@ -191,7 +192,8 @@ def sync( ): """List all subscriptions - This endpoint fetches all the subscriptions + List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body, + header, query, or path rules. Args: project_id (str): @@ -243,7 +245,8 @@ async def asyncio_detailed( ]: """List all subscriptions - This endpoint fetches all the subscriptions + List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body, + header, query, or path rules. Args: project_id (str): @@ -299,7 +302,8 @@ async def asyncio( ): """List all subscriptions - This endpoint fetches all the subscriptions + List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body, + header, query, or path rules. Args: project_id (str): diff --git a/src/convoy/models/models_subscription_response.py b/src/convoy/models/models_subscription_response.py index 994e9af..0557b03 100644 --- a/src/convoy/models/models_subscription_response.py +++ b/src/convoy/models/models_subscription_response.py @@ -37,6 +37,8 @@ class ModelsSubscriptionResponse: endpoint_metadata (DatastoreEndpoint | None | Unset): filter_config (DatastoreFilterConfiguration | None | Unset): function (None | str | Unset): + has_event_type_filters (bool | Unset): HasEventTypeFilters indicates whether the subscription list found a + configured per-event-type rule. name (str | Unset): project_id (str | Unset): rate_limit_config (DatastoreRateLimitConfiguration | None | Unset): @@ -55,6 +57,7 @@ class ModelsSubscriptionResponse: endpoint_metadata: DatastoreEndpoint | None | Unset = UNSET filter_config: DatastoreFilterConfiguration | None | Unset = UNSET function: None | str | Unset = UNSET + has_event_type_filters: bool | Unset = UNSET name: str | Unset = UNSET project_id: str | Unset = UNSET rate_limit_config: DatastoreRateLimitConfiguration | None | Unset = UNSET @@ -126,6 +129,8 @@ def to_dict(self) -> dict[str, Any]: else: function = self.function + has_event_type_filters = self.has_event_type_filters + name = self.name project_id = self.project_id @@ -181,6 +186,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["filter_config"] = filter_config if function is not UNSET: field_dict["function"] = function + if has_event_type_filters is not UNSET: + field_dict["has_event_type_filters"] = has_event_type_filters if name is not UNSET: field_dict["name"] = name if project_id is not UNSET: @@ -313,6 +320,8 @@ def _parse_function(data: object) -> None | str | Unset: function = _parse_function(d.pop("function", UNSET)) + has_event_type_filters = d.pop("has_event_type_filters", UNSET) + name = d.pop("name", UNSET) project_id = d.pop("project_id", UNSET) @@ -394,6 +403,7 @@ def _parse_source_metadata(data: object) -> DatastoreSource | None | Unset: endpoint_metadata=endpoint_metadata, filter_config=filter_config, function=function, + has_event_type_filters=has_event_type_filters, name=name, project_id=project_id, rate_limit_config=rate_limit_config,