From 9ea3f2f8c25cfaa7de591a690e19dc457ecb6a2c Mon Sep 17 00:00:00 2001 From: "convoy-sdk-bot[bot]" <307218117+convoy-sdk-bot[bot]@users.noreply.github.com> Date: Fri, 16 Oct 2026 22:12:54 +0000 Subject: [PATCH] feat: regenerate API client from OpenAPI spec --- .../com/getconvoy/api/EventDeliveriesApi.java | 80 ++++++++++++++----- .../java/com/getconvoy/api/EventsApi.java | 72 ++++++++++------- .../getconvoy/models/ModelsUpdateSource.java | 39 ++++++++- 3 files changed, 141 insertions(+), 50 deletions(-) diff --git a/src/main/java/com/getconvoy/api/EventDeliveriesApi.java b/src/main/java/com/getconvoy/api/EventDeliveriesApi.java index bc65099..1048252 100644 --- a/src/main/java/com/getconvoy/api/EventDeliveriesApi.java +++ b/src/main/java/com/getconvoy/api/EventDeliveriesApi.java @@ -175,19 +175,22 @@ private File prepareDownloadFile(HttpResponse response) throws IOEx * @param eventId Event ID to filter by (optional) * @param eventType EventType to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param minTrials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) * @param query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param sourceId Limits idempotencyValue matching to these source IDs. (optional) * @param startDate The start date (optional) * @param status A list of event delivery statuses to filter by (optional) * @param subscriptionId SubscriptionID to filter by (optional) * @return GetProjects400Response * @throws ApiException if fails to make API call */ - public GetProjects400Response batchRetryEventDelivery(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId) throws ApiException { - return batchRetryEventDelivery(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, startDate, status, subscriptionId, null); + public GetProjects400Response batchRetryEventDelivery(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId) throws ApiException { + return batchRetryEventDelivery(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, idempotencyValue, minTrials, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, status, subscriptionId, null); } /** @@ -200,11 +203,14 @@ public GetProjects400Response batchRetryEventDelivery(@jakarta.annotation.Nonnul * @param eventId Event ID to filter by (optional) * @param eventType EventType to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param minTrials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) * @param query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param sourceId Limits idempotencyValue matching to these source IDs. (optional) * @param startDate The start date (optional) * @param status A list of event delivery statuses to filter by (optional) * @param subscriptionId SubscriptionID to filter by (optional) @@ -212,8 +218,8 @@ public GetProjects400Response batchRetryEventDelivery(@jakarta.annotation.Nonnul * @return GetProjects400Response * @throws ApiException if fails to make API call */ - public GetProjects400Response batchRetryEventDelivery(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { - ApiResponse localVarResponse = batchRetryEventDeliveryWithHttpInfo(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, startDate, status, subscriptionId, headers); + public GetProjects400Response batchRetryEventDelivery(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { + ApiResponse localVarResponse = batchRetryEventDeliveryWithHttpInfo(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, idempotencyValue, minTrials, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, status, subscriptionId, headers); return localVarResponse.getData(); } @@ -227,19 +233,22 @@ public GetProjects400Response batchRetryEventDelivery(@jakarta.annotation.Nonnul * @param eventId Event ID to filter by (optional) * @param eventType EventType to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param minTrials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) * @param query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param sourceId Limits idempotencyValue matching to these source IDs. (optional) * @param startDate The start date (optional) * @param status A list of event delivery statuses to filter by (optional) * @param subscriptionId SubscriptionID to filter by (optional) * @return ApiResponse<GetProjects400Response> * @throws ApiException if fails to make API call */ - public ApiResponse batchRetryEventDeliveryWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId) throws ApiException { - return batchRetryEventDeliveryWithHttpInfo(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, startDate, status, subscriptionId, null); + public ApiResponse batchRetryEventDeliveryWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId) throws ApiException { + return batchRetryEventDeliveryWithHttpInfo(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, idempotencyValue, minTrials, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, status, subscriptionId, null); } /** @@ -252,11 +261,14 @@ public ApiResponse batchRetryEventDeliveryWithHttpInfo(@ * @param eventId Event ID to filter by (optional) * @param eventType EventType to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param minTrials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) * @param query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param sourceId Limits idempotencyValue matching to these source IDs. (optional) * @param startDate The start date (optional) * @param status A list of event delivery statuses to filter by (optional) * @param subscriptionId SubscriptionID to filter by (optional) @@ -264,8 +276,8 @@ public ApiResponse batchRetryEventDeliveryWithHttpInfo(@ * @return ApiResponse<GetProjects400Response> * @throws ApiException if fails to make API call */ - public ApiResponse batchRetryEventDeliveryWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = batchRetryEventDeliveryRequestBuilder(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, startDate, status, subscriptionId, headers); + public ApiResponse batchRetryEventDeliveryWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = batchRetryEventDeliveryRequestBuilder(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, idempotencyValue, minTrials, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, status, subscriptionId, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -312,7 +324,7 @@ public ApiResponse batchRetryEventDeliveryWithHttpInfo(@ } } - private HttpRequest.Builder batchRetryEventDeliveryRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { + private HttpRequest.Builder batchRetryEventDeliveryRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { // verify the required parameter 'projectID' is set if (projectID == null) { throw new ApiException(400, "Missing the required parameter 'projectID' when calling batchRetryEventDelivery"); @@ -334,10 +346,14 @@ private HttpRequest.Builder batchRetryEventDeliveryRequestBuilder(@jakarta.annot localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "endpointId", endpointId)); localVarQueryParameterBaseName = "eventId"; localVarQueryParams.addAll(ApiClient.parameterToPairs("eventId", eventId)); - localVarQueryParameterBaseName = "event_type"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("event_type", eventType)); + localVarQueryParameterBaseName = "eventType"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("eventType", eventType)); localVarQueryParameterBaseName = "idempotencyKey"; localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyKey", idempotencyKey)); + localVarQueryParameterBaseName = "idempotencyValue"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyValue", idempotencyValue)); + localVarQueryParameterBaseName = "minTrials"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("minTrials", minTrials)); localVarQueryParameterBaseName = "next_page_cursor"; localVarQueryParams.addAll(ApiClient.parameterToPairs("next_page_cursor", nextPageCursor)); localVarQueryParameterBaseName = "perPage"; @@ -348,6 +364,8 @@ private HttpRequest.Builder batchRetryEventDeliveryRequestBuilder(@jakarta.annot localVarQueryParams.addAll(ApiClient.parameterToPairs("query", query)); localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); + localVarQueryParameterBaseName = "sourceId"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "sourceId", sourceId)); localVarQueryParameterBaseName = "startDate"; localVarQueryParams.addAll(ApiClient.parameterToPairs("startDate", startDate)); localVarQueryParameterBaseName = "status"; @@ -522,19 +540,22 @@ private HttpRequest.Builder forceResendEventDeliveriesRequestBuilder(@jakarta.an * @param eventId Event ID to filter by (optional) * @param eventType EventType to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param minTrials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) * @param query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param sourceId Limits idempotencyValue matching to these source IDs. (optional) * @param startDate The start date (optional) * @param status A list of event delivery statuses to filter by (optional) * @param subscriptionId SubscriptionID to filter by (optional) * @return GetEventDeliveriesPaged200Response * @throws ApiException if fails to make API call */ - public GetEventDeliveriesPaged200Response getEventDeliveriesPaged(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId) throws ApiException { - return getEventDeliveriesPaged(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, startDate, status, subscriptionId, null); + public GetEventDeliveriesPaged200Response getEventDeliveriesPaged(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId) throws ApiException { + return getEventDeliveriesPaged(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, idempotencyValue, minTrials, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, status, subscriptionId, null); } /** @@ -547,11 +568,14 @@ public GetEventDeliveriesPaged200Response getEventDeliveriesPaged(@jakarta.annot * @param eventId Event ID to filter by (optional) * @param eventType EventType to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param minTrials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) * @param query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param sourceId Limits idempotencyValue matching to these source IDs. (optional) * @param startDate The start date (optional) * @param status A list of event delivery statuses to filter by (optional) * @param subscriptionId SubscriptionID to filter by (optional) @@ -559,8 +583,8 @@ public GetEventDeliveriesPaged200Response getEventDeliveriesPaged(@jakarta.annot * @return GetEventDeliveriesPaged200Response * @throws ApiException if fails to make API call */ - public GetEventDeliveriesPaged200Response getEventDeliveriesPaged(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { - ApiResponse localVarResponse = getEventDeliveriesPagedWithHttpInfo(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, startDate, status, subscriptionId, headers); + public GetEventDeliveriesPaged200Response getEventDeliveriesPaged(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { + ApiResponse localVarResponse = getEventDeliveriesPagedWithHttpInfo(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, idempotencyValue, minTrials, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, status, subscriptionId, headers); return localVarResponse.getData(); } @@ -574,19 +598,22 @@ public GetEventDeliveriesPaged200Response getEventDeliveriesPaged(@jakarta.annot * @param eventId Event ID to filter by (optional) * @param eventType EventType to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param minTrials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) * @param query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param sourceId Limits idempotencyValue matching to these source IDs. (optional) * @param startDate The start date (optional) * @param status A list of event delivery statuses to filter by (optional) * @param subscriptionId SubscriptionID to filter by (optional) * @return ApiResponse<GetEventDeliveriesPaged200Response> * @throws ApiException if fails to make API call */ - public ApiResponse getEventDeliveriesPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId) throws ApiException { - return getEventDeliveriesPagedWithHttpInfo(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, startDate, status, subscriptionId, null); + public ApiResponse getEventDeliveriesPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId) throws ApiException { + return getEventDeliveriesPagedWithHttpInfo(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, idempotencyValue, minTrials, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, status, subscriptionId, null); } /** @@ -599,11 +626,14 @@ public ApiResponse getEventDeliveriesPagedWi * @param eventId Event ID to filter by (optional) * @param eventType EventType to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param minTrials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) * @param query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param sourceId Limits idempotencyValue matching to these source IDs. (optional) * @param startDate The start date (optional) * @param status A list of event delivery statuses to filter by (optional) * @param subscriptionId SubscriptionID to filter by (optional) @@ -611,8 +641,8 @@ public ApiResponse getEventDeliveriesPagedWi * @return ApiResponse<GetEventDeliveriesPaged200Response> * @throws ApiException if fails to make API call */ - public ApiResponse getEventDeliveriesPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getEventDeliveriesPagedRequestBuilder(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, startDate, status, subscriptionId, headers); + public ApiResponse getEventDeliveriesPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getEventDeliveriesPagedRequestBuilder(projectID, direction, endDate, endpointId, eventId, eventType, idempotencyKey, idempotencyValue, minTrials, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, status, subscriptionId, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -659,7 +689,7 @@ public ApiResponse getEventDeliveriesPagedWi } } - private HttpRequest.Builder getEventDeliveriesPagedRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { + private HttpRequest.Builder getEventDeliveriesPagedRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String eventId, @jakarta.annotation.Nullable String eventType, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable Integer minTrials, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, @jakarta.annotation.Nullable List status, @jakarta.annotation.Nullable String subscriptionId, Map headers) throws ApiException { // verify the required parameter 'projectID' is set if (projectID == null) { throw new ApiException(400, "Missing the required parameter 'projectID' when calling getEventDeliveriesPaged"); @@ -681,10 +711,14 @@ private HttpRequest.Builder getEventDeliveriesPagedRequestBuilder(@jakarta.annot localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "endpointId", endpointId)); localVarQueryParameterBaseName = "eventId"; localVarQueryParams.addAll(ApiClient.parameterToPairs("eventId", eventId)); - localVarQueryParameterBaseName = "event_type"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("event_type", eventType)); + localVarQueryParameterBaseName = "eventType"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("eventType", eventType)); localVarQueryParameterBaseName = "idempotencyKey"; localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyKey", idempotencyKey)); + localVarQueryParameterBaseName = "idempotencyValue"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyValue", idempotencyValue)); + localVarQueryParameterBaseName = "minTrials"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("minTrials", minTrials)); localVarQueryParameterBaseName = "next_page_cursor"; localVarQueryParams.addAll(ApiClient.parameterToPairs("next_page_cursor", nextPageCursor)); localVarQueryParameterBaseName = "perPage"; @@ -695,6 +729,8 @@ private HttpRequest.Builder getEventDeliveriesPagedRequestBuilder(@jakarta.annot localVarQueryParams.addAll(ApiClient.parameterToPairs("query", query)); localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); + localVarQueryParameterBaseName = "sourceId"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "sourceId", sourceId)); localVarQueryParameterBaseName = "startDate"; localVarQueryParams.addAll(ApiClient.parameterToPairs("startDate", startDate)); localVarQueryParameterBaseName = "status"; diff --git a/src/main/java/com/getconvoy/api/EventsApi.java b/src/main/java/com/getconvoy/api/EventsApi.java index 316f26f..931f771 100644 --- a/src/main/java/com/getconvoy/api/EventsApi.java +++ b/src/main/java/com/getconvoy/api/EventsApi.java @@ -180,6 +180,7 @@ private File prepareDownloadFile(HttpResponse response) throws IOEx * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -190,8 +191,8 @@ private File prepareDownloadFile(HttpResponse response) throws IOEx * @return BatchReplayEvents200Response * @throws ApiException if fails to make API call */ - public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { - return batchReplayEvents(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); + public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { + return batchReplayEvents(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); } /** @@ -203,6 +204,7 @@ public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnul * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -214,8 +216,8 @@ public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnul * @return BatchReplayEvents200Response * @throws ApiException if fails to make API call */ - public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { - ApiResponse localVarResponse = batchReplayEventsWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); + public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + ApiResponse localVarResponse = batchReplayEventsWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); return localVarResponse.getData(); } @@ -228,6 +230,7 @@ public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnul * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -238,8 +241,8 @@ public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnul * @return ApiResponse<BatchReplayEvents200Response> * @throws ApiException if fails to make API call */ - public ApiResponse batchReplayEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { - return batchReplayEventsWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); + public ApiResponse batchReplayEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { + return batchReplayEventsWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); } /** @@ -251,6 +254,7 @@ public ApiResponse batchReplayEventsWithHttpInfo(@ * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -262,8 +266,8 @@ public ApiResponse batchReplayEventsWithHttpInfo(@ * @return ApiResponse<BatchReplayEvents200Response> * @throws ApiException if fails to make API call */ - public ApiResponse batchReplayEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = batchReplayEventsRequestBuilder(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); + public ApiResponse batchReplayEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = batchReplayEventsRequestBuilder(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -310,7 +314,7 @@ public ApiResponse batchReplayEventsWithHttpInfo(@ } } - private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { // verify the required parameter 'projectID' is set if (projectID == null) { throw new ApiException(400, "Missing the required parameter 'projectID' when calling batchReplayEvents"); @@ -334,6 +338,8 @@ private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation. localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "endpointId", endpointId)); localVarQueryParameterBaseName = "idempotencyKey"; localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyKey", idempotencyKey)); + localVarQueryParameterBaseName = "idempotencyValue"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyValue", idempotencyValue)); localVarQueryParameterBaseName = "next_page_cursor"; localVarQueryParams.addAll(ApiClient.parameterToPairs("next_page_cursor", nextPageCursor)); localVarQueryParameterBaseName = "perPage"; @@ -383,6 +389,7 @@ private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation. * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -393,8 +400,8 @@ private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation. * @return CountAffectedEvents200Response * @throws ApiException if fails to make API call */ - public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { - return countAffectedEvents(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); + public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { + return countAffectedEvents(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); } /** @@ -406,6 +413,7 @@ public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.No * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -417,8 +425,8 @@ public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.No * @return CountAffectedEvents200Response * @throws ApiException if fails to make API call */ - public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { - ApiResponse localVarResponse = countAffectedEventsWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); + public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + ApiResponse localVarResponse = countAffectedEventsWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); return localVarResponse.getData(); } @@ -431,6 +439,7 @@ public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.No * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -441,8 +450,8 @@ public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.No * @return ApiResponse<CountAffectedEvents200Response> * @throws ApiException if fails to make API call */ - public ApiResponse countAffectedEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { - return countAffectedEventsWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); + public ApiResponse countAffectedEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { + return countAffectedEventsWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); } /** @@ -454,6 +463,7 @@ public ApiResponse countAffectedEventsWithHttpIn * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -465,8 +475,8 @@ public ApiResponse countAffectedEventsWithHttpIn * @return ApiResponse<CountAffectedEvents200Response> * @throws ApiException if fails to make API call */ - public ApiResponse countAffectedEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = countAffectedEventsRequestBuilder(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); + public ApiResponse countAffectedEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = countAffectedEventsRequestBuilder(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -513,7 +523,7 @@ public ApiResponse countAffectedEventsWithHttpIn } } - private HttpRequest.Builder countAffectedEventsRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + private HttpRequest.Builder countAffectedEventsRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { // verify the required parameter 'projectID' is set if (projectID == null) { throw new ApiException(400, "Missing the required parameter 'projectID' when calling countAffectedEvents"); @@ -537,6 +547,8 @@ private HttpRequest.Builder countAffectedEventsRequestBuilder(@jakarta.annotatio localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "endpointId", endpointId)); localVarQueryParameterBaseName = "idempotencyKey"; localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyKey", idempotencyKey)); + localVarQueryParameterBaseName = "idempotencyValue"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyValue", idempotencyValue)); localVarQueryParameterBaseName = "next_page_cursor"; localVarQueryParams.addAll(ApiClient.parameterToPairs("next_page_cursor", nextPageCursor)); localVarQueryParameterBaseName = "perPage"; @@ -1241,6 +1253,7 @@ private HttpRequest.Builder getEndpointEventRequestBuilder(@jakarta.annotation.N * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -1251,8 +1264,8 @@ private HttpRequest.Builder getEndpointEventRequestBuilder(@jakarta.annotation.N * @return GetEventsPaged200Response * @throws ApiException if fails to make API call */ - public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { - return getEventsPaged(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); + public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { + return getEventsPaged(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); } /** @@ -1264,6 +1277,7 @@ public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull Stri * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -1275,8 +1289,8 @@ public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull Stri * @return GetEventsPaged200Response * @throws ApiException if fails to make API call */ - public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { - ApiResponse localVarResponse = getEventsPagedWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); + public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + ApiResponse localVarResponse = getEventsPagedWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); return localVarResponse.getData(); } @@ -1289,6 +1303,7 @@ public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull Stri * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -1299,8 +1314,8 @@ public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull Stri * @return ApiResponse<GetEventsPaged200Response> * @throws ApiException if fails to make API call */ - public ApiResponse getEventsPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { - return getEventsPagedWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); + public ApiResponse getEventsPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate) throws ApiException { + return getEventsPagedWithHttpInfo(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, null); } /** @@ -1312,6 +1327,7 @@ public ApiResponse getEventsPagedWithHttpInfo(@jakart * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) * @param idempotencyKey IdempotencyKey to filter by (optional) + * @param idempotencyValue Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param nextPageCursor A pagination cursor to fetch the next page of a list (optional) * @param perPage The number of items to return per page (optional) * @param prevPageCursor A pagination cursor to fetch the previous page of a list (optional) @@ -1323,8 +1339,8 @@ public ApiResponse getEventsPagedWithHttpInfo(@jakart * @return ApiResponse<GetEventsPaged200Response> * @throws ApiException if fails to make API call */ - public ApiResponse getEventsPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getEventsPagedRequestBuilder(projectID, body, direction, endDate, endpointId, idempotencyKey, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); + public ApiResponse getEventsPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getEventsPagedRequestBuilder(projectID, body, direction, endDate, endpointId, idempotencyKey, idempotencyValue, nextPageCursor, perPage, prevPageCursor, query, sort, sourceId, startDate, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -1371,7 +1387,7 @@ public ApiResponse getEventsPagedWithHttpInfo(@jakart } } - private HttpRequest.Builder getEventsPagedRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { + private HttpRequest.Builder getEventsPagedRequestBuilder(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nullable String body, @jakarta.annotation.Nullable String direction, @jakarta.annotation.Nullable String endDate, @jakarta.annotation.Nullable List endpointId, @jakarta.annotation.Nullable String idempotencyKey, @jakarta.annotation.Nullable String idempotencyValue, @jakarta.annotation.Nullable String nextPageCursor, @jakarta.annotation.Nullable Integer perPage, @jakarta.annotation.Nullable String prevPageCursor, @jakarta.annotation.Nullable String query, @jakarta.annotation.Nullable String sort, @jakarta.annotation.Nullable List sourceId, @jakarta.annotation.Nullable String startDate, Map headers) throws ApiException { // verify the required parameter 'projectID' is set if (projectID == null) { throw new ApiException(400, "Missing the required parameter 'projectID' when calling getEventsPaged"); @@ -1395,6 +1411,8 @@ private HttpRequest.Builder getEventsPagedRequestBuilder(@jakarta.annotation.Non localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "endpointId", endpointId)); localVarQueryParameterBaseName = "idempotencyKey"; localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyKey", idempotencyKey)); + localVarQueryParameterBaseName = "idempotencyValue"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("idempotencyValue", idempotencyValue)); localVarQueryParameterBaseName = "next_page_cursor"; localVarQueryParams.addAll(ApiClient.parameterToPairs("next_page_cursor", nextPageCursor)); localVarQueryParameterBaseName = "perPage"; diff --git a/src/main/java/com/getconvoy/models/ModelsUpdateSource.java b/src/main/java/com/getconvoy/models/ModelsUpdateSource.java index 7297ecb..82bbee1 100644 --- a/src/main/java/com/getconvoy/models/ModelsUpdateSource.java +++ b/src/main/java/com/getconvoy/models/ModelsUpdateSource.java @@ -24,6 +24,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.getconvoy.models.DatastoreSourceProvider; import com.getconvoy.models.DatastoreSourceType; import com.getconvoy.models.ModelsPubSubConfig; import com.getconvoy.models.ModelsUpdateCustomResponse; @@ -47,6 +48,7 @@ ModelsUpdateSource.JSON_PROPERTY_IDEMPOTENCY_KEYS, ModelsUpdateSource.JSON_PROPERTY_IS_DISABLED, ModelsUpdateSource.JSON_PROPERTY_NAME, + ModelsUpdateSource.JSON_PROPERTY_PROVIDER, ModelsUpdateSource.JSON_PROPERTY_PUB_SUB, ModelsUpdateSource.JSON_PROPERTY_TYPE, ModelsUpdateSource.JSON_PROPERTY_VERIFIER @@ -85,6 +87,10 @@ public class ModelsUpdateSource { @jakarta.annotation.Nullable private String name; + public static final String JSON_PROPERTY_PROVIDER = "provider"; + @jakarta.annotation.Nullable + private DatastoreSourceProvider provider; + public static final String JSON_PROPERTY_PUB_SUB = "pub_sub"; @jakarta.annotation.Nullable private ModelsPubSubConfig pubSub; @@ -308,6 +314,30 @@ public void setName(@jakarta.annotation.Nullable String name) { } + public ModelsUpdateSource provider(@jakarta.annotation.Nullable DatastoreSourceProvider provider) { + this.provider = provider; + return this; + } + + /** + * Use this to specify one of our predefined source types. + * @return provider + */ + @jakarta.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_PROVIDER, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DatastoreSourceProvider getProvider() { + return provider; + } + + + @JsonProperty(value = JSON_PROPERTY_PROVIDER, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProvider(@jakarta.annotation.Nullable DatastoreSourceProvider provider) { + this.provider = provider; + } + + public ModelsUpdateSource pubSub(@jakarta.annotation.Nullable ModelsPubSubConfig pubSub) { this.pubSub = pubSub; return this; @@ -400,6 +430,7 @@ public boolean equals(Object o) { Objects.equals(this.idempotencyKeys, modelsUpdateSource.idempotencyKeys) && Objects.equals(this.isDisabled, modelsUpdateSource.isDisabled) && Objects.equals(this.name, modelsUpdateSource.name) && + Objects.equals(this.provider, modelsUpdateSource.provider) && Objects.equals(this.pubSub, modelsUpdateSource.pubSub) && Objects.equals(this.type, modelsUpdateSource.type) && Objects.equals(this.verifier, modelsUpdateSource.verifier); @@ -407,7 +438,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(bodyFunction, customResponse, eventTypeLocation, forwardHeaders, headerFunction, idempotencyKeys, isDisabled, name, pubSub, type, verifier); + return Objects.hash(bodyFunction, customResponse, eventTypeLocation, forwardHeaders, headerFunction, idempotencyKeys, isDisabled, name, provider, pubSub, type, verifier); } @Override @@ -422,6 +453,7 @@ public String toString() { sb.append(" idempotencyKeys: ").append(toIndentedString(idempotencyKeys)).append("\n"); sb.append(" isDisabled: ").append(toIndentedString(isDisabled)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); sb.append(" pubSub: ").append(toIndentedString(pubSub)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" verifier: ").append(toIndentedString(verifier)).append("\n"); @@ -517,6 +549,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); } + // add `provider` to the URL query string + if (getProvider() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sprovider%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getProvider())))); + } + // add `pub_sub` to the URL query string if (getPubSub() != null) { joiner.add(getPubSub().toUrlQueryString(prefix + "pub_sub" + suffix));