From 10d0c35aefc030e2b85b1c7f8079686b68306737 Mon Sep 17 00:00:00 2001 From: "convoy-sdk-bot[bot]" <307218117+convoy-sdk-bot[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2026 19:47:17 +0000 Subject: [PATCH] feat: regenerate API client from OpenAPI spec --- .../java/com/getconvoy/api/EventsApi.java | 96 +++++++++++-------- .../models/DatastoreProjectConfig.java | 2 +- 2 files changed, 58 insertions(+), 40 deletions(-) diff --git a/src/main/java/com/getconvoy/api/EventsApi.java b/src/main/java/com/getconvoy/api/EventsApi.java index 7fc187c..afd8395 100644 --- a/src/main/java/com/getconvoy/api/EventsApi.java +++ b/src/main/java/com/getconvoy/api/EventsApi.java @@ -174,6 +174,7 @@ private File prepareDownloadFile(HttpResponse response) throws IOEx * Batch replay events * This endpoint replays multiple events at once. * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -181,21 +182,22 @@ private File prepareDownloadFile(HttpResponse response) throws IOEx * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) * @return BatchReplayEvents200Response * @throws ApiException if fails to make API call */ - public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnull String projectID, @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, 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 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); } /** * Batch replay events * This endpoint replays multiple events at once. * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -203,7 +205,7 @@ public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnul * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) @@ -211,8 +213,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 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, 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 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); return localVarResponse.getData(); } @@ -220,6 +222,7 @@ public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnul * Batch replay events * This endpoint replays multiple events at once. * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -227,21 +230,22 @@ public BatchReplayEvents200Response batchReplayEvents(@jakarta.annotation.Nonnul * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) * @return ApiResponse<BatchReplayEvents200Response> * @throws ApiException if fails to make API call */ - public ApiResponse batchReplayEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @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, 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 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); } /** * Batch replay events * This endpoint replays multiple events at once. * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -249,7 +253,7 @@ public ApiResponse batchReplayEventsWithHttpInfo(@ * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) @@ -257,8 +261,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 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, 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 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); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -305,7 +309,7 @@ public ApiResponse batchReplayEventsWithHttpInfo(@ } } - private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation.Nonnull String projectID, @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 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"); @@ -319,6 +323,8 @@ private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation. List localVarQueryParams = new ArrayList<>(); StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "body"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("body", body)); localVarQueryParameterBaseName = "direction"; localVarQueryParams.addAll(ApiClient.parameterToPairs("direction", direction)); localVarQueryParameterBaseName = "endDate"; @@ -371,6 +377,7 @@ private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation. * Count events matching batch replay filters * This endpoint returns how many events would be affected by a batch replay with the given filters. * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -378,21 +385,22 @@ private HttpRequest.Builder batchReplayEventsRequestBuilder(@jakarta.annotation. * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) * @return CountAffectedEvents200Response * @throws ApiException if fails to make API call */ - public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.Nonnull String projectID, @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, 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 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); } /** * Count events matching batch replay filters * This endpoint returns how many events would be affected by a batch replay with the given filters. * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -400,7 +408,7 @@ public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.No * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) @@ -408,8 +416,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 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, 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 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); return localVarResponse.getData(); } @@ -417,6 +425,7 @@ public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.No * Count events matching batch replay filters * This endpoint returns how many events would be affected by a batch replay with the given filters. * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -424,21 +433,22 @@ public CountAffectedEvents200Response countAffectedEvents(@jakarta.annotation.No * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) * @return ApiResponse<CountAffectedEvents200Response> * @throws ApiException if fails to make API call */ - public ApiResponse countAffectedEventsWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @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, 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 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); } /** * Count events matching batch replay filters * This endpoint returns how many events would be affected by a batch replay with the given filters. * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -446,7 +456,7 @@ public ApiResponse countAffectedEventsWithHttpIn * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) @@ -454,8 +464,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 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, 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 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); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -502,7 +512,7 @@ public ApiResponse countAffectedEventsWithHttpIn } } - private HttpRequest.Builder countAffectedEventsRequestBuilder(@jakarta.annotation.Nonnull String projectID, @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 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"); @@ -516,6 +526,8 @@ private HttpRequest.Builder countAffectedEventsRequestBuilder(@jakarta.annotatio List localVarQueryParams = new ArrayList<>(); StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "body"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("body", body)); localVarQueryParameterBaseName = "direction"; localVarQueryParams.addAll(ApiClient.parameterToPairs("direction", direction)); localVarQueryParameterBaseName = "endDate"; @@ -1223,6 +1235,7 @@ private HttpRequest.Builder getEndpointEventRequestBuilder(@jakarta.annotation.N * List all events * This endpoint fetches app events with pagination * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -1230,21 +1243,22 @@ private HttpRequest.Builder getEndpointEventRequestBuilder(@jakarta.annotation.N * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) * @return GetEventsPaged200Response * @throws ApiException if fails to make API call */ - public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull String projectID, @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, 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 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); } /** * List all events * This endpoint fetches app events with pagination * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -1252,7 +1266,7 @@ public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull Stri * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) @@ -1260,8 +1274,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 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, 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 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); return localVarResponse.getData(); } @@ -1269,6 +1283,7 @@ public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull Stri * List all events * This endpoint fetches app events with pagination * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -1276,21 +1291,22 @@ public GetEventsPaged200Response getEventsPaged(@jakarta.annotation.Nonnull Stri * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) * @return ApiResponse<GetEventsPaged200Response> * @throws ApiException if fails to make API call */ - public ApiResponse getEventsPagedWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @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, 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 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); } /** * List all events * This endpoint fetches app events with pagination * @param projectID Project ID (required) + * @param body URL-encoded JSON object matched against the event payload. Combined with query as AND when both are set. (optional) * @param direction (optional) * @param endDate The end date (optional) * @param endpointId A list of endpoint ids to filter by (optional) @@ -1298,7 +1314,7 @@ public ApiResponse getEventsPagedWithHttpInfo(@jakart * @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 Any arbitrary value to filter the events payload (optional) + * @param query Matches event id prefix, idempotency key, event type, and source name. A JSON object uses payload containment, same as body. Text plus JSON ANDs both. (optional) * @param sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) * @param sourceId A list of Source IDs to filter the events by. (optional) * @param startDate The start date (optional) @@ -1306,8 +1322,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 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, 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 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); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -1354,7 +1370,7 @@ public ApiResponse getEventsPagedWithHttpInfo(@jakart } } - private HttpRequest.Builder getEventsPagedRequestBuilder(@jakarta.annotation.Nonnull String projectID, @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 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"); @@ -1368,6 +1384,8 @@ private HttpRequest.Builder getEventsPagedRequestBuilder(@jakarta.annotation.Non List localVarQueryParams = new ArrayList<>(); StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "body"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("body", body)); localVarQueryParameterBaseName = "direction"; localVarQueryParams.addAll(ApiClient.parameterToPairs("direction", direction)); localVarQueryParameterBaseName = "endDate"; diff --git a/src/main/java/com/getconvoy/models/DatastoreProjectConfig.java b/src/main/java/com/getconvoy/models/DatastoreProjectConfig.java index abaffc6..84e231a 100644 --- a/src/main/java/com/getconvoy/models/DatastoreProjectConfig.java +++ b/src/main/java/com/getconvoy/models/DatastoreProjectConfig.java @@ -389,7 +389,7 @@ public DatastoreProjectConfig searchPolicy(@jakarta.annotation.Nullable String s } /** - * Get searchPolicy + * SearchPolicy is an optional Go duration (e.g. \"24h\") shown in project settings. When set, the dashboard explains that payload/JSON search is additionally clamped to this lookback intersected with the Events log date picker. Empty means opt-out. * @return searchPolicy */ @jakarta.annotation.Nullable