diff --git a/.sdk-version b/.sdk-version index 4bccaba..c9275d6 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.87.0 +v3.88.0 diff --git a/README.md b/README.md index 05735c4..613a737 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 3.87.0 + 3.88.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:3.87.0" + implementation "ai.reveng:sdk:3.88.0" } ``` diff --git a/build.gradle b/build.gradle index 82581f2..ab90431 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '3.87.0' +version = '3.88.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "3.87.0") + coordinates("ai.reveng", "sdk", "3.88.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 0771715..1ae4ff9 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "3.87.0", + version := "3.88.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/SseEventContextCompactedData.md b/docs/SseEventContextCompactedData.md index 1e8cd48..686bc42 100644 --- a/docs/SseEventContextCompactedData.md +++ b/docs/SseEventContextCompactedData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventRunCancelledData.md b/docs/SseEventRunCancelledData.md index 0519f90..0eb5d21 100644 --- a/docs/SseEventRunCancelledData.md +++ b/docs/SseEventRunCancelledData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventRunErrorData.md b/docs/SseEventRunErrorData.md index a46113d..95f477e 100644 --- a/docs/SseEventRunErrorData.md +++ b/docs/SseEventRunErrorData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventRunFinishedData.md b/docs/SseEventRunFinishedData.md index 5eeec5b..9472e9f 100644 --- a/docs/SseEventRunFinishedData.md +++ b/docs/SseEventRunFinishedData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventRunStartedData.md b/docs/SseEventRunStartedData.md index 1c86cb1..e8f42d3 100644 --- a/docs/SseEventRunStartedData.md +++ b/docs/SseEventRunStartedData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventStepFinishedData.md b/docs/SseEventStepFinishedData.md index d9cdf64..30139e3 100644 --- a/docs/SseEventStepFinishedData.md +++ b/docs/SseEventStepFinishedData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventStepStartedData.md b/docs/SseEventStepStartedData.md index f037ef9..3c7c5c1 100644 --- a/docs/SseEventStepStartedData.md +++ b/docs/SseEventStepStartedData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventTextMessageContentData.md b/docs/SseEventTextMessageContentData.md index 6309b58..800626f 100644 --- a/docs/SseEventTextMessageContentData.md +++ b/docs/SseEventTextMessageContentData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventTextMessageEndData.md b/docs/SseEventTextMessageEndData.md index eeb8e32..88acbe7 100644 --- a/docs/SseEventTextMessageEndData.md +++ b/docs/SseEventTextMessageEndData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventTextMessageStartData.md b/docs/SseEventTextMessageStartData.md index 955ebb6..54d4841 100644 --- a/docs/SseEventTextMessageStartData.md +++ b/docs/SseEventTextMessageStartData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventTitleUpdatedData.md b/docs/SseEventTitleUpdatedData.md index b64797a..43b16cd 100644 --- a/docs/SseEventTitleUpdatedData.md +++ b/docs/SseEventTitleUpdatedData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventToolCallArgsDeltaData.md b/docs/SseEventToolCallArgsDeltaData.md index 5a1fc6b..3682d91 100644 --- a/docs/SseEventToolCallArgsDeltaData.md +++ b/docs/SseEventToolCallArgsDeltaData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventToolCallEndData.md b/docs/SseEventToolCallEndData.md index cdabbde..3ae4e0a 100644 --- a/docs/SseEventToolCallEndData.md +++ b/docs/SseEventToolCallEndData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventToolCallResultData.md b/docs/SseEventToolCallResultData.md index 5541b7b..7e30518 100644 --- a/docs/SseEventToolCallResultData.md +++ b/docs/SseEventToolCallResultData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventToolCallStartData.md b/docs/SseEventToolCallStartData.md index 71e97ff..ae06de4 100644 --- a/docs/SseEventToolCallStartData.md +++ b/docs/SseEventToolCallStartData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/docs/SseEventToolConfirmationRequiredData.md b/docs/SseEventToolConfirmationRequiredData.md index b9e3440..1b7b61d 100644 --- a/docs/SseEventToolConfirmationRequiredData.md +++ b/docs/SseEventToolConfirmationRequiredData.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**data** | **Object** | | | |**eventId** | **Long** | | | +|**sourceRunId** | **String** | | [optional] | |**type** | **String** | | | diff --git a/pom.xml b/pom.xml index ff124d3..f0e709d 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 3.87.0 + 3.88.0 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/api/AnalysesCoreApi.java b/src/main/java/ai/reveng/api/AnalysesCoreApi.java index d024800..a54bc2c 100644 --- a/src/main/java/ai/reveng/api/AnalysesCoreApi.java +++ b/src/main/java/ai/reveng/api/AnalysesCoreApi.java @@ -556,7 +556,9 @@ public okhttp3.Call deleteAnalysisAsync(@javax.annotation.Nonnull Integer analys 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getAnalysisBasicInfoCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -602,6 +604,7 @@ public okhttp3.Call getAnalysisBasicInfoCall(@javax.annotation.Nonnull Integer a return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getAnalysisBasicInfoValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set @@ -626,7 +629,9 @@ private okhttp3.Call getAnalysisBasicInfoValidateBeforeCall(@javax.annotation.No 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseBasic getAnalysisBasicInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { ApiResponse localVarResp = getAnalysisBasicInfoWithHttpInfo(analysisId); return localVarResp.getData(); @@ -645,7 +650,9 @@ public BaseResponseBasic getAnalysisBasicInfo(@javax.annotation.Nonnull Integer 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getAnalysisBasicInfoWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { okhttp3.Call localVarCall = getAnalysisBasicInfoValidateBeforeCall(analysisId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -666,7 +673,9 @@ public ApiResponse getAnalysisBasicInfoWithHttpInfo(@javax.an 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getAnalysisBasicInfoAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAnalysisBasicInfoValidateBeforeCall(analysisId, _callback); diff --git a/src/main/java/ai/reveng/api/BinariesApi.java b/src/main/java/ai/reveng/api/BinariesApi.java index 647cd90..bf2530f 100644 --- a/src/main/java/ai/reveng/api/BinariesApi.java +++ b/src/main/java/ai/reveng/api/BinariesApi.java @@ -227,7 +227,9 @@ public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getBinaryAdditionalDetailsCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -273,6 +275,7 @@ public okhttp3.Call getBinaryAdditionalDetailsCall(@javax.annotation.Nonnull Int return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getBinaryAdditionalDetailsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set @@ -297,7 +300,9 @@ private okhttp3.Call getBinaryAdditionalDetailsValidateBeforeCall(@javax.annotat 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(@javax.annotation.Nonnull Integer binaryId) throws ApiException { ApiResponse localVarResp = getBinaryAdditionalDetailsWithHttpInfo(binaryId); return localVarResp.getData(); @@ -316,7 +321,9 @@ public BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(@javax.an 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getBinaryAdditionalDetailsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -337,7 +344,9 @@ public ApiResponse getBinaryAdditionalDeta 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getBinaryAdditionalDetailsAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, _callback); @@ -358,7 +367,9 @@ public okhttp3.Call getBinaryAdditionalDetailsAsync(@javax.annotation.Nonnull In 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getBinaryAdditionalDetailsStatusCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -404,6 +415,7 @@ public okhttp3.Call getBinaryAdditionalDetailsStatusCall(@javax.annotation.Nonnu return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } + @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getBinaryAdditionalDetailsStatusValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set @@ -428,7 +440,9 @@ private okhttp3.Call getBinaryAdditionalDetailsStatusValidateBeforeCall(@javax.a 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public BaseResponseAdditionalDetailsStatusResponse getBinaryAdditionalDetailsStatus(@javax.annotation.Nonnull Integer binaryId) throws ApiException { ApiResponse localVarResp = getBinaryAdditionalDetailsStatusWithHttpInfo(binaryId); return localVarResp.getData(); @@ -447,7 +461,9 @@ public BaseResponseAdditionalDetailsStatusResponse getBinaryAdditionalDetailsSta 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public ApiResponse getBinaryAdditionalDetailsStatusWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { okhttp3.Call localVarCall = getBinaryAdditionalDetailsStatusValidateBeforeCall(binaryId, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -468,7 +484,9 @@ public ApiResponse getBinaryAdditio 200 Successful Response - 422 Invalid request parameters - + * @deprecated */ + @Deprecated public okhttp3.Call getBinaryAdditionalDetailsStatusAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getBinaryAdditionalDetailsStatusValidateBeforeCall(binaryId, _callback); diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index 5abbf77..5a46ce2 100644 --- a/src/main/java/ai/reveng/invoker/ApiClient.java +++ b/src/main/java/ai/reveng/invoker/ApiClient.java @@ -146,7 +146,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/3.87.0/java"); + setUserAgent("OpenAPI-Generator/3.88.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/ai/reveng/invoker/Configuration.java b/src/main/java/ai/reveng/invoker/Configuration.java index e76271f..b7916f7 100644 --- a/src/main/java/ai/reveng/invoker/Configuration.java +++ b/src/main/java/ai/reveng/invoker/Configuration.java @@ -18,7 +18,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "3.87.0"; + public static final String VERSION = "3.88.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/ai/reveng/model/SseEventContextCompactedData.java b/src/main/java/ai/reveng/model/SseEventContextCompactedData.java index 8810640..910a515 100644 --- a/src/main/java/ai/reveng/model/SseEventContextCompactedData.java +++ b/src/main/java/ai/reveng/model/SseEventContextCompactedData.java @@ -61,6 +61,11 @@ public class SseEventContextCompactedData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventContextCompactedData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventContextCompactedData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventContextCompactedData sseEventContextCompactedData = (SseEventContextCompactedData) o; return Objects.equals(this.data, sseEventContextCompactedData.data) && Objects.equals(this.eventId, sseEventContextCompactedData.eventId) && + Objects.equals(this.sourceRunId, sseEventContextCompactedData.sourceRunId) && Objects.equals(this.type, sseEventContextCompactedData.type)&& Objects.equals(this.additionalProperties, sseEventContextCompactedData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventContextCompactedData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventRunCancelledData.java b/src/main/java/ai/reveng/model/SseEventRunCancelledData.java index 20b6d84..563774c 100644 --- a/src/main/java/ai/reveng/model/SseEventRunCancelledData.java +++ b/src/main/java/ai/reveng/model/SseEventRunCancelledData.java @@ -61,6 +61,11 @@ public class SseEventRunCancelledData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventRunCancelledData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventRunCancelledData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventRunCancelledData sseEventRunCancelledData = (SseEventRunCancelledData) o; return Objects.equals(this.data, sseEventRunCancelledData.data) && Objects.equals(this.eventId, sseEventRunCancelledData.eventId) && + Objects.equals(this.sourceRunId, sseEventRunCancelledData.sourceRunId) && Objects.equals(this.type, sseEventRunCancelledData.type)&& Objects.equals(this.additionalProperties, sseEventRunCancelledData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventRunCancelledData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventRunErrorData.java b/src/main/java/ai/reveng/model/SseEventRunErrorData.java index 004280a..349f5bb 100644 --- a/src/main/java/ai/reveng/model/SseEventRunErrorData.java +++ b/src/main/java/ai/reveng/model/SseEventRunErrorData.java @@ -61,6 +61,11 @@ public class SseEventRunErrorData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventRunErrorData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventRunErrorData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventRunErrorData sseEventRunErrorData = (SseEventRunErrorData) o; return Objects.equals(this.data, sseEventRunErrorData.data) && Objects.equals(this.eventId, sseEventRunErrorData.eventId) && + Objects.equals(this.sourceRunId, sseEventRunErrorData.sourceRunId) && Objects.equals(this.type, sseEventRunErrorData.type)&& Objects.equals(this.additionalProperties, sseEventRunErrorData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventRunErrorData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventRunFinishedData.java b/src/main/java/ai/reveng/model/SseEventRunFinishedData.java index c46224b..33e735d 100644 --- a/src/main/java/ai/reveng/model/SseEventRunFinishedData.java +++ b/src/main/java/ai/reveng/model/SseEventRunFinishedData.java @@ -61,6 +61,11 @@ public class SseEventRunFinishedData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventRunFinishedData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventRunFinishedData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventRunFinishedData sseEventRunFinishedData = (SseEventRunFinishedData) o; return Objects.equals(this.data, sseEventRunFinishedData.data) && Objects.equals(this.eventId, sseEventRunFinishedData.eventId) && + Objects.equals(this.sourceRunId, sseEventRunFinishedData.sourceRunId) && Objects.equals(this.type, sseEventRunFinishedData.type)&& Objects.equals(this.additionalProperties, sseEventRunFinishedData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventRunFinishedData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventRunStartedData.java b/src/main/java/ai/reveng/model/SseEventRunStartedData.java index 87b25f7..8348022 100644 --- a/src/main/java/ai/reveng/model/SseEventRunStartedData.java +++ b/src/main/java/ai/reveng/model/SseEventRunStartedData.java @@ -61,6 +61,11 @@ public class SseEventRunStartedData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventRunStartedData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventRunStartedData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventRunStartedData sseEventRunStartedData = (SseEventRunStartedData) o; return Objects.equals(this.data, sseEventRunStartedData.data) && Objects.equals(this.eventId, sseEventRunStartedData.eventId) && + Objects.equals(this.sourceRunId, sseEventRunStartedData.sourceRunId) && Objects.equals(this.type, sseEventRunStartedData.type)&& Objects.equals(this.additionalProperties, sseEventRunStartedData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventRunStartedData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventStepFinishedData.java b/src/main/java/ai/reveng/model/SseEventStepFinishedData.java index dafdde1..15b139c 100644 --- a/src/main/java/ai/reveng/model/SseEventStepFinishedData.java +++ b/src/main/java/ai/reveng/model/SseEventStepFinishedData.java @@ -61,6 +61,11 @@ public class SseEventStepFinishedData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventStepFinishedData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventStepFinishedData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventStepFinishedData sseEventStepFinishedData = (SseEventStepFinishedData) o; return Objects.equals(this.data, sseEventStepFinishedData.data) && Objects.equals(this.eventId, sseEventStepFinishedData.eventId) && + Objects.equals(this.sourceRunId, sseEventStepFinishedData.sourceRunId) && Objects.equals(this.type, sseEventStepFinishedData.type)&& Objects.equals(this.additionalProperties, sseEventStepFinishedData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventStepFinishedData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventStepStartedData.java b/src/main/java/ai/reveng/model/SseEventStepStartedData.java index 8c4b59d..443840b 100644 --- a/src/main/java/ai/reveng/model/SseEventStepStartedData.java +++ b/src/main/java/ai/reveng/model/SseEventStepStartedData.java @@ -61,6 +61,11 @@ public class SseEventStepStartedData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventStepStartedData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventStepStartedData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventStepStartedData sseEventStepStartedData = (SseEventStepStartedData) o; return Objects.equals(this.data, sseEventStepStartedData.data) && Objects.equals(this.eventId, sseEventStepStartedData.eventId) && + Objects.equals(this.sourceRunId, sseEventStepStartedData.sourceRunId) && Objects.equals(this.type, sseEventStepStartedData.type)&& Objects.equals(this.additionalProperties, sseEventStepStartedData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventStepStartedData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventTextMessageContentData.java b/src/main/java/ai/reveng/model/SseEventTextMessageContentData.java index d70178c..1ae894e 100644 --- a/src/main/java/ai/reveng/model/SseEventTextMessageContentData.java +++ b/src/main/java/ai/reveng/model/SseEventTextMessageContentData.java @@ -61,6 +61,11 @@ public class SseEventTextMessageContentData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventTextMessageContentData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventTextMessageContentData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventTextMessageContentData sseEventTextMessageContentData = (SseEventTextMessageContentData) o; return Objects.equals(this.data, sseEventTextMessageContentData.data) && Objects.equals(this.eventId, sseEventTextMessageContentData.eventId) && + Objects.equals(this.sourceRunId, sseEventTextMessageContentData.sourceRunId) && Objects.equals(this.type, sseEventTextMessageContentData.type)&& Objects.equals(this.additionalProperties, sseEventTextMessageContentData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventTextMessageContentData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventTextMessageEndData.java b/src/main/java/ai/reveng/model/SseEventTextMessageEndData.java index de69a10..a986929 100644 --- a/src/main/java/ai/reveng/model/SseEventTextMessageEndData.java +++ b/src/main/java/ai/reveng/model/SseEventTextMessageEndData.java @@ -61,6 +61,11 @@ public class SseEventTextMessageEndData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventTextMessageEndData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventTextMessageEndData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventTextMessageEndData sseEventTextMessageEndData = (SseEventTextMessageEndData) o; return Objects.equals(this.data, sseEventTextMessageEndData.data) && Objects.equals(this.eventId, sseEventTextMessageEndData.eventId) && + Objects.equals(this.sourceRunId, sseEventTextMessageEndData.sourceRunId) && Objects.equals(this.type, sseEventTextMessageEndData.type)&& Objects.equals(this.additionalProperties, sseEventTextMessageEndData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventTextMessageEndData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventTextMessageStartData.java b/src/main/java/ai/reveng/model/SseEventTextMessageStartData.java index 501d166..63165f6 100644 --- a/src/main/java/ai/reveng/model/SseEventTextMessageStartData.java +++ b/src/main/java/ai/reveng/model/SseEventTextMessageStartData.java @@ -61,6 +61,11 @@ public class SseEventTextMessageStartData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventTextMessageStartData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventTextMessageStartData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventTextMessageStartData sseEventTextMessageStartData = (SseEventTextMessageStartData) o; return Objects.equals(this.data, sseEventTextMessageStartData.data) && Objects.equals(this.eventId, sseEventTextMessageStartData.eventId) && + Objects.equals(this.sourceRunId, sseEventTextMessageStartData.sourceRunId) && Objects.equals(this.type, sseEventTextMessageStartData.type)&& Objects.equals(this.additionalProperties, sseEventTextMessageStartData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventTextMessageStartData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventTitleUpdatedData.java b/src/main/java/ai/reveng/model/SseEventTitleUpdatedData.java index 036c633..1920881 100644 --- a/src/main/java/ai/reveng/model/SseEventTitleUpdatedData.java +++ b/src/main/java/ai/reveng/model/SseEventTitleUpdatedData.java @@ -61,6 +61,11 @@ public class SseEventTitleUpdatedData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventTitleUpdatedData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventTitleUpdatedData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventTitleUpdatedData sseEventTitleUpdatedData = (SseEventTitleUpdatedData) o; return Objects.equals(this.data, sseEventTitleUpdatedData.data) && Objects.equals(this.eventId, sseEventTitleUpdatedData.eventId) && + Objects.equals(this.sourceRunId, sseEventTitleUpdatedData.sourceRunId) && Objects.equals(this.type, sseEventTitleUpdatedData.type)&& Objects.equals(this.additionalProperties, sseEventTitleUpdatedData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventTitleUpdatedData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventToolCallArgsDeltaData.java b/src/main/java/ai/reveng/model/SseEventToolCallArgsDeltaData.java index 9644848..38b4f9f 100644 --- a/src/main/java/ai/reveng/model/SseEventToolCallArgsDeltaData.java +++ b/src/main/java/ai/reveng/model/SseEventToolCallArgsDeltaData.java @@ -61,6 +61,11 @@ public class SseEventToolCallArgsDeltaData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventToolCallArgsDeltaData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventToolCallArgsDeltaData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventToolCallArgsDeltaData sseEventToolCallArgsDeltaData = (SseEventToolCallArgsDeltaData) o; return Objects.equals(this.data, sseEventToolCallArgsDeltaData.data) && Objects.equals(this.eventId, sseEventToolCallArgsDeltaData.eventId) && + Objects.equals(this.sourceRunId, sseEventToolCallArgsDeltaData.sourceRunId) && Objects.equals(this.type, sseEventToolCallArgsDeltaData.type)&& Objects.equals(this.additionalProperties, sseEventToolCallArgsDeltaData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventToolCallArgsDeltaData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventToolCallEndData.java b/src/main/java/ai/reveng/model/SseEventToolCallEndData.java index ce5507a..2e96fa7 100644 --- a/src/main/java/ai/reveng/model/SseEventToolCallEndData.java +++ b/src/main/java/ai/reveng/model/SseEventToolCallEndData.java @@ -61,6 +61,11 @@ public class SseEventToolCallEndData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventToolCallEndData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventToolCallEndData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventToolCallEndData sseEventToolCallEndData = (SseEventToolCallEndData) o; return Objects.equals(this.data, sseEventToolCallEndData.data) && Objects.equals(this.eventId, sseEventToolCallEndData.eventId) && + Objects.equals(this.sourceRunId, sseEventToolCallEndData.sourceRunId) && Objects.equals(this.type, sseEventToolCallEndData.type)&& Objects.equals(this.additionalProperties, sseEventToolCallEndData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventToolCallEndData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventToolCallResultData.java b/src/main/java/ai/reveng/model/SseEventToolCallResultData.java index f31d453..25f5d01 100644 --- a/src/main/java/ai/reveng/model/SseEventToolCallResultData.java +++ b/src/main/java/ai/reveng/model/SseEventToolCallResultData.java @@ -61,6 +61,11 @@ public class SseEventToolCallResultData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventToolCallResultData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventToolCallResultData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventToolCallResultData sseEventToolCallResultData = (SseEventToolCallResultData) o; return Objects.equals(this.data, sseEventToolCallResultData.data) && Objects.equals(this.eventId, sseEventToolCallResultData.eventId) && + Objects.equals(this.sourceRunId, sseEventToolCallResultData.sourceRunId) && Objects.equals(this.type, sseEventToolCallResultData.type)&& Objects.equals(this.additionalProperties, sseEventToolCallResultData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventToolCallResultData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventToolCallStartData.java b/src/main/java/ai/reveng/model/SseEventToolCallStartData.java index 5ded27c..4c04c2d 100644 --- a/src/main/java/ai/reveng/model/SseEventToolCallStartData.java +++ b/src/main/java/ai/reveng/model/SseEventToolCallStartData.java @@ -61,6 +61,11 @@ public class SseEventToolCallStartData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventToolCallStartData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventToolCallStartData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventToolCallStartData sseEventToolCallStartData = (SseEventToolCallStartData) o; return Objects.equals(this.data, sseEventToolCallStartData.data) && Objects.equals(this.eventId, sseEventToolCallStartData.eventId) && + Objects.equals(this.sourceRunId, sseEventToolCallStartData.sourceRunId) && Objects.equals(this.type, sseEventToolCallStartData.type)&& Objects.equals(this.additionalProperties, sseEventToolCallStartData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventToolCallStartData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/src/main/java/ai/reveng/model/SseEventToolConfirmationRequiredData.java b/src/main/java/ai/reveng/model/SseEventToolConfirmationRequiredData.java index 06b2bae..4a6fcd8 100644 --- a/src/main/java/ai/reveng/model/SseEventToolConfirmationRequiredData.java +++ b/src/main/java/ai/reveng/model/SseEventToolConfirmationRequiredData.java @@ -61,6 +61,11 @@ public class SseEventToolConfirmationRequiredData { @javax.annotation.Nonnull private Long eventId; + public static final String SERIALIZED_NAME_SOURCE_RUN_ID = "source_run_id"; + @SerializedName(SERIALIZED_NAME_SOURCE_RUN_ID) + @javax.annotation.Nullable + private String sourceRunId; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @javax.annotation.Nonnull @@ -107,6 +112,25 @@ public void setEventId(@javax.annotation.Nonnull Long eventId) { } + public SseEventToolConfirmationRequiredData sourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + return this; + } + + /** + * Get sourceRunId + * @return sourceRunId + */ + @javax.annotation.Nullable + public String getSourceRunId() { + return sourceRunId; + } + + public void setSourceRunId(@javax.annotation.Nullable String sourceRunId) { + this.sourceRunId = sourceRunId; + } + + public SseEventToolConfirmationRequiredData type(@javax.annotation.Nonnull String type) { this.type = type; return this; @@ -182,13 +206,14 @@ public boolean equals(Object o) { SseEventToolConfirmationRequiredData sseEventToolConfirmationRequiredData = (SseEventToolConfirmationRequiredData) o; return Objects.equals(this.data, sseEventToolConfirmationRequiredData.data) && Objects.equals(this.eventId, sseEventToolConfirmationRequiredData.eventId) && + Objects.equals(this.sourceRunId, sseEventToolConfirmationRequiredData.sourceRunId) && Objects.equals(this.type, sseEventToolConfirmationRequiredData.type)&& Objects.equals(this.additionalProperties, sseEventToolConfirmationRequiredData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data, eventId, type, additionalProperties); + return Objects.hash(data, eventId, sourceRunId, type, additionalProperties); } @Override @@ -197,6 +222,7 @@ public String toString() { sb.append("class SseEventToolConfirmationRequiredData {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n"); + sb.append(" sourceRunId: ").append(toIndentedString(sourceRunId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -220,7 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("data", "event_id", "type")); + openapiFields = new HashSet(Arrays.asList("data", "event_id", "source_run_id", "type")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("data", "event_id", "type")); @@ -246,6 +272,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source_run_id") != null && !jsonObj.get("source_run_id").isJsonNull()) && !jsonObj.get("source_run_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_run_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_run_id").toString())); + } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); }