From d689cfffee5fcf0865b30a83ef87baf24ddc30b6 Mon Sep 17 00:00:00 2001 From: "convoy-sdk-bot[bot]" <307218117+convoy-sdk-bot[bot]@users.noreply.github.com> Date: Thu, 3 Dec 2026 18:23:16 +0000 Subject: [PATCH] feat: regenerate API client from OpenAPI spec --- .../com/getconvoy/api/SubscriptionsApi.java | 8 ++-- .../models/ModelsSubscriptionResponse.java | 38 ++++++++++++++++++- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/getconvoy/api/SubscriptionsApi.java b/src/main/java/com/getconvoy/api/SubscriptionsApi.java index dfb94b7..5f6dfa6 100644 --- a/src/main/java/com/getconvoy/api/SubscriptionsApi.java +++ b/src/main/java/com/getconvoy/api/SubscriptionsApi.java @@ -558,7 +558,7 @@ private HttpRequest.Builder getSubscriptionRequestBuilder(@jakarta.annotation.No /** * 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. * @param projectID Project ID (required) * @param direction (optional) * @param endpointId A list of endpointIDs to filter by (optional) @@ -576,7 +576,7 @@ public GetSubscriptions200Response getSubscriptions(@jakarta.annotation.Nonnull /** * 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. * @param projectID Project ID (required) * @param direction (optional) * @param endpointId A list of endpointIDs to filter by (optional) @@ -596,7 +596,7 @@ public GetSubscriptions200Response getSubscriptions(@jakarta.annotation.Nonnull /** * 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. * @param projectID Project ID (required) * @param direction (optional) * @param endpointId A list of endpointIDs to filter by (optional) @@ -614,7 +614,7 @@ public ApiResponse getSubscriptionsWithHttpInfo(@ja /** * 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. * @param projectID Project ID (required) * @param direction (optional) * @param endpointId A list of endpointIDs to filter by (optional) diff --git a/src/main/java/com/getconvoy/models/ModelsSubscriptionResponse.java b/src/main/java/com/getconvoy/models/ModelsSubscriptionResponse.java index 21ef2b3..0fc5043 100644 --- a/src/main/java/com/getconvoy/models/ModelsSubscriptionResponse.java +++ b/src/main/java/com/getconvoy/models/ModelsSubscriptionResponse.java @@ -54,6 +54,7 @@ ModelsSubscriptionResponse.JSON_PROPERTY_ENDPOINT_METADATA, ModelsSubscriptionResponse.JSON_PROPERTY_FILTER_CONFIG, ModelsSubscriptionResponse.JSON_PROPERTY_FUNCTION, + ModelsSubscriptionResponse.JSON_PROPERTY_HAS_EVENT_TYPE_FILTERS, ModelsSubscriptionResponse.JSON_PROPERTY_NAME, ModelsSubscriptionResponse.JSON_PROPERTY_PROJECT_ID, ModelsSubscriptionResponse.JSON_PROPERTY_RATE_LIMIT_CONFIG, @@ -91,6 +92,10 @@ public class ModelsSubscriptionResponse { public static final String JSON_PROPERTY_FUNCTION = "function"; private JsonNullable function = JsonNullable.undefined(); + public static final String JSON_PROPERTY_HAS_EVENT_TYPE_FILTERS = "has_event_type_filters"; + @jakarta.annotation.Nullable + private Boolean hasEventTypeFilters; + public static final String JSON_PROPERTY_NAME = "name"; @jakarta.annotation.Nullable private String name; @@ -363,6 +368,30 @@ public void setFunction(@jakarta.annotation.Nullable String function) { } + public ModelsSubscriptionResponse hasEventTypeFilters(@jakarta.annotation.Nullable Boolean hasEventTypeFilters) { + this.hasEventTypeFilters = hasEventTypeFilters; + return this; + } + + /** + * HasEventTypeFilters indicates whether the subscription list found a configured per-event-type rule. + * @return hasEventTypeFilters + */ + @jakarta.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_HAS_EVENT_TYPE_FILTERS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getHasEventTypeFilters() { + return hasEventTypeFilters; + } + + + @JsonProperty(value = JSON_PROPERTY_HAS_EVENT_TYPE_FILTERS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHasEventTypeFilters(@jakarta.annotation.Nullable Boolean hasEventTypeFilters) { + this.hasEventTypeFilters = hasEventTypeFilters; + } + + public ModelsSubscriptionResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -599,6 +628,7 @@ public boolean equals(Object o) { equalsNullable(this.endpointMetadata, modelsSubscriptionResponse.endpointMetadata) && equalsNullable(this.filterConfig, modelsSubscriptionResponse.filterConfig) && equalsNullable(this.function, modelsSubscriptionResponse.function) && + Objects.equals(this.hasEventTypeFilters, modelsSubscriptionResponse.hasEventTypeFilters) && Objects.equals(this.name, modelsSubscriptionResponse.name) && Objects.equals(this.projectId, modelsSubscriptionResponse.projectId) && equalsNullable(this.rateLimitConfig, modelsSubscriptionResponse.rateLimitConfig) && @@ -615,7 +645,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(hashCodeNullable(alertConfig), createdAt, hashCodeNullable(deletedAt), deliveryMode, hashCodeNullable(deviceMetadata), hashCodeNullable(endpointMetadata), hashCodeNullable(filterConfig), hashCodeNullable(function), name, projectId, hashCodeNullable(rateLimitConfig), hashCodeNullable(retryConfig), hashCodeNullable(sourceMetadata), type, uid, updatedAt); + return Objects.hash(hashCodeNullable(alertConfig), createdAt, hashCodeNullable(deletedAt), deliveryMode, hashCodeNullable(deviceMetadata), hashCodeNullable(endpointMetadata), hashCodeNullable(filterConfig), hashCodeNullable(function), hasEventTypeFilters, name, projectId, hashCodeNullable(rateLimitConfig), hashCodeNullable(retryConfig), hashCodeNullable(sourceMetadata), type, uid, updatedAt); } private static int hashCodeNullable(JsonNullable a) { @@ -637,6 +667,7 @@ public String toString() { sb.append(" endpointMetadata: ").append(toIndentedString(endpointMetadata)).append("\n"); sb.append(" filterConfig: ").append(toIndentedString(filterConfig)).append("\n"); sb.append(" function: ").append(toIndentedString(function)).append("\n"); + sb.append(" hasEventTypeFilters: ").append(toIndentedString(hasEventTypeFilters)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" rateLimitConfig: ").append(toIndentedString(rateLimitConfig)).append("\n"); @@ -729,6 +760,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sfunction%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getFunction())))); } + // add `has_event_type_filters` to the URL query string + if (getHasEventTypeFilters() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%shas_event_type_filters%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getHasEventTypeFilters())))); + } + // add `name` to the URL query string if (getName() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName()))));