From 82323df9a24f55063d2a2c49d3db98f7c3e6802e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 26 Feb 2026 07:20:44 +0000 Subject: [PATCH] Update SDK to version v3.22.2 - Generated from OpenAPI spec version v3.22.2 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 4 +- build.gradle | 4 +- build.sbt | 2 +- docs/InverseStringMapItem.md | 2 +- pom.xml | 2 +- .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- src/main/java/ai/reveng/model/Addr.java | 46 +++++++++---------- .../ai/reveng/model/InverseStringMapItem.java | 8 ++-- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.sdk-version b/.sdk-version index 0bf0fe3..3e4750f 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.22.0 +v3.22.2 diff --git a/README.md b/README.md index 0cb7c74..5a640b8 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 3.22.0 + 3.22.2 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:3.22.0" + implementation "ai.reveng:sdk:3.22.2" } ``` diff --git a/build.gradle b/build.gradle index 61efff8..a76e1ed 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '3.22.0' +version = '3.22.2' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "3.22.0") + coordinates("ai.reveng", "sdk", "3.22.2") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 406d0a4..26d8b6f 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.22.0", + version := "3.22.2", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/InverseStringMapItem.md b/docs/InverseStringMapItem.md index 02f6e0d..a7d73fc 100644 --- a/docs/InverseStringMapItem.md +++ b/docs/InverseStringMapItem.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**string** | **String** | | | -|**addr** | **Integer** | | | +|**addr** | **Long** | | | diff --git a/pom.xml b/pom.xml index b84c358..6ae1d85 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 3.22.0 + 3.22.2 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index e55a654..c6ca441 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.22.0/java"); + setUserAgent("OpenAPI-Generator/3.22.2/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 bdaa459..bb4ba8b 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.22.0"; + public static final String VERSION = "3.22.2"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/ai/reveng/model/Addr.java b/src/main/java/ai/reveng/model/Addr.java index f0c47f1..eb87afd 100644 --- a/src/main/java/ai/reveng/model/Addr.java +++ b/src/main/java/ai/reveng/model/Addr.java @@ -63,7 +63,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { return null; // this class only serializes 'Addr' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterInteger = gson.getDelegateAdapter(this, TypeToken.get(Integer.class)); + final TypeAdapter adapterLong = gson.getDelegateAdapter(this, TypeToken.get(Long.class)); final TypeAdapter adapterString = gson.getDelegateAdapter(this, TypeToken.get(String.class)); return (TypeAdapter) new TypeAdapter() { @@ -74,9 +74,9 @@ public void write(JsonWriter out, Addr value) throws IOException { return; } - // check if the actual instance is of the type `Integer` - if (value.getActualInstance() instanceof Integer) { - JsonPrimitive primitive = adapterInteger.toJsonTree((Integer)value.getActualInstance()).getAsJsonPrimitive(); + // check if the actual instance is of the type `Long` + if (value.getActualInstance() instanceof Long) { + JsonPrimitive primitive = adapterLong.toJsonTree((Long)value.getActualInstance()).getAsJsonPrimitive(); elementAdapter.write(out, primitive); return; } @@ -86,7 +86,7 @@ public void write(JsonWriter out, Addr value) throws IOException { elementAdapter.write(out, primitive); return; } - throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: Integer, String"); + throw new IOException("Failed to serialize as the type doesn't match anyOf schemas: Long, String"); } @Override @@ -97,20 +97,20 @@ public Addr read(JsonReader in) throws IOException { ArrayList errorMessages = new ArrayList<>(); TypeAdapter actualAdapter = elementAdapter; - // deserialize Integer + // deserialize Long try { // validate the JSON object to see if any exception is thrown if (!jsonElement.getAsJsonPrimitive().isNumber()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); } - actualAdapter = adapterInteger; + actualAdapter = adapterLong; Addr ret = new Addr(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, "Deserialization for Integer failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'Integer'", e); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for Long failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'Long'", e); } // deserialize String try { @@ -147,7 +147,7 @@ public Addr(Object o) { } static { - schemas.put("Integer", Integer.class); + schemas.put("Long", Long.class); schemas.put("String", String.class); } @@ -159,7 +159,7 @@ public Map> getSchemas() { /** * Set the instance that matches the anyOf child schema, check * the instance parameter is valid against the anyOf child schemas: - * Integer, String + * Long, String * * It could be an instance of the 'anyOf' schemas. */ @@ -170,7 +170,7 @@ public void setActualInstance(Object instance) { return; } - if (instance instanceof Integer) { + if (instance instanceof Long) { super.setActualInstance(instance); return; } @@ -180,14 +180,14 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be Integer, String"); + throw new RuntimeException("Invalid instance type. Must be Long, String"); } /** * Get the actual instance, which can be the following: - * Integer, String + * Long, String * - * @return The actual instance (Integer, String) + * @return The actual instance (Long, String) */ @SuppressWarnings("unchecked") @Override @@ -196,14 +196,14 @@ public Object getActualInstance() { } /** - * Get the actual instance of `Integer`. If the actual instance is not `Integer`, + * Get the actual instance of `Long`. If the actual instance is not `Long`, * the ClassCastException will be thrown. * - * @return The actual instance of `Integer` - * @throws ClassCastException if the instance is not `Integer` + * @return The actual instance of `Long` + * @throws ClassCastException if the instance is not `Long` */ - public Integer getInteger() throws ClassCastException { - return (Integer)super.getActualInstance(); + public Long getLong() throws ClassCastException { + return (Long)super.getActualInstance(); } /** @@ -226,14 +226,14 @@ public String getString() throws ClassCastException { public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one ArrayList errorMessages = new ArrayList<>(); - // validate the json string with Integer + // validate the json string with Long try { if (!jsonElement.getAsJsonPrimitive().isNumber()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); } return; } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, "Deserialization for Integer failed with `%s`.", e.getMessage())); + errorMessages.add(String.format(Locale.ROOT, "Deserialization for Long failed with `%s`.", e.getMessage())); // continue to the next one } // validate the json string with String @@ -246,7 +246,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(Locale.ROOT, "Deserialization for String failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for Addr with anyOf schemas: Integer, String. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for Addr with anyOf schemas: Long, String. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** diff --git a/src/main/java/ai/reveng/model/InverseStringMapItem.java b/src/main/java/ai/reveng/model/InverseStringMapItem.java index 5ebd36f..9c9d14b 100644 --- a/src/main/java/ai/reveng/model/InverseStringMapItem.java +++ b/src/main/java/ai/reveng/model/InverseStringMapItem.java @@ -59,7 +59,7 @@ public class InverseStringMapItem { public static final String SERIALIZED_NAME_ADDR = "addr"; @SerializedName(SERIALIZED_NAME_ADDR) @javax.annotation.Nullable - private Integer addr; + private Long addr; public InverseStringMapItem() { } @@ -83,7 +83,7 @@ public void setString(@javax.annotation.Nonnull String string) { } - public InverseStringMapItem addr(@javax.annotation.Nullable Integer addr) { + public InverseStringMapItem addr(@javax.annotation.Nullable Long addr) { this.addr = addr; return this; } @@ -93,11 +93,11 @@ public InverseStringMapItem addr(@javax.annotation.Nullable Integer addr) { * @return addr */ @javax.annotation.Nullable - public Integer getAddr() { + public Long getAddr() { return addr; } - public void setAddr(@javax.annotation.Nullable Integer addr) { + public void setAddr(@javax.annotation.Nullable Long addr) { this.addr = addr; }