Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.105.0
v3.107.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>ai.reveng</groupId>
<artifactId>sdk</artifactId>
<version>3.105.0</version>
<version>3.107.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.105.0"
implementation "ai.reveng:sdk:3.107.0"
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'ai.reveng'
version = '3.105.0'
version = '3.107.0'



Expand Down Expand Up @@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()

coordinates("ai.reveng", "sdk", "3.105.0")
coordinates("ai.reveng", "sdk", "3.107.0")

pom {
name = "sdk"
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
version := "3.105.0",
version := "3.107.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
3 changes: 3 additions & 0 deletions docs/SandboxOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
|**commandLineArgs** | **String** | The command line parameters to pass to the dynamic execution sandbox. Requires &#x60;sandbox&#x60; to be True. | [optional] |
|**startMethod** | **SandboxStartMethod** | The method used by the sandbox to launch the sample. | [optional] |
|**timeout** | **SandboxTimeout** | Maximum execution time for the sandbox run, in seconds. Allowed values: 120 (2m), 180 (3m), 300 (5m), 600 (10m). | [optional] |
|**archiveSha256Hash** | **String** | Hash of the uploaded archive to run in the sandbox. Set this when submitting an archive. | [optional] |
|**archiveEntryPath** | **String** | Path of the file inside the archive to execute. | [optional] |
|**archivePassword** | **String** | Password required to extract the archive, if any. | [optional] |



4 changes: 4 additions & 0 deletions docs/UploadResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
|**sha256Hash** | **String** | | |
|**fileType** | **UploadFileType** | | |
|**filename** | **String** | | |
|**mime** | **String** | | |
|**isArchive** | **Boolean** | | |
|**canSandbox** | **Boolean** | | |
|**canExtract** | **Boolean** | | |



2 changes: 1 addition & 1 deletion docs/User.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**createdAt** | **OffsetDateTime** | | [optional] |
|**createdAt** | **OffsetDateTime** | | |
|**email** | **String** | | |
|**profile** | [**UserProfile**](UserProfile.md) | | |
|**role** | [**RoleEnum**](#RoleEnum) | | |
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sdk</artifactId>
<packaging>jar</packaging>
<name>sdk</name>
<version>3.105.0</version>
<version>3.107.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ protected void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/3.105.0/java");
setUserAgent("OpenAPI-Generator/3.107.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "3.105.0";
public static final String VERSION = "3.107.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
93 changes: 90 additions & 3 deletions src/main/java/ai/reveng/model/SandboxOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ public class SandboxOptions {
@javax.annotation.Nullable
private SandboxTimeout timeout = SandboxTimeout.NUMBER_120;

public static final String SERIALIZED_NAME_ARCHIVE_SHA256_HASH = "archive_sha_256_hash";
@SerializedName(SERIALIZED_NAME_ARCHIVE_SHA256_HASH)
@javax.annotation.Nullable
private String archiveSha256Hash;

public static final String SERIALIZED_NAME_ARCHIVE_ENTRY_PATH = "archive_entry_path";
@SerializedName(SERIALIZED_NAME_ARCHIVE_ENTRY_PATH)
@javax.annotation.Nullable
private String archiveEntryPath;

public static final String SERIALIZED_NAME_ARCHIVE_PASSWORD = "archive_password";
@SerializedName(SERIALIZED_NAME_ARCHIVE_PASSWORD)
@javax.annotation.Nullable
private String archivePassword;

public SandboxOptions() {
}

Expand Down Expand Up @@ -150,6 +165,63 @@ public void setTimeout(@javax.annotation.Nullable SandboxTimeout timeout) {
this.timeout = timeout;
}


public SandboxOptions archiveSha256Hash(@javax.annotation.Nullable String archiveSha256Hash) {
this.archiveSha256Hash = archiveSha256Hash;
return this;
}

/**
* Hash of the uploaded archive to run in the sandbox. Set this when submitting an archive.
* @return archiveSha256Hash
*/
@javax.annotation.Nullable
public String getArchiveSha256Hash() {
return archiveSha256Hash;
}

public void setArchiveSha256Hash(@javax.annotation.Nullable String archiveSha256Hash) {
this.archiveSha256Hash = archiveSha256Hash;
}


public SandboxOptions archiveEntryPath(@javax.annotation.Nullable String archiveEntryPath) {
this.archiveEntryPath = archiveEntryPath;
return this;
}

/**
* Path of the file inside the archive to execute.
* @return archiveEntryPath
*/
@javax.annotation.Nullable
public String getArchiveEntryPath() {
return archiveEntryPath;
}

public void setArchiveEntryPath(@javax.annotation.Nullable String archiveEntryPath) {
this.archiveEntryPath = archiveEntryPath;
}


public SandboxOptions archivePassword(@javax.annotation.Nullable String archivePassword) {
this.archivePassword = archivePassword;
return this;
}

/**
* Password required to extract the archive, if any.
* @return archivePassword
*/
@javax.annotation.Nullable
public String getArchivePassword() {
return archivePassword;
}

public void setArchivePassword(@javax.annotation.Nullable String archivePassword) {
this.archivePassword = archivePassword;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -208,7 +280,10 @@ public boolean equals(Object o) {
return Objects.equals(this.enabled, sandboxOptions.enabled) &&
Objects.equals(this.commandLineArgs, sandboxOptions.commandLineArgs) &&
Objects.equals(this.startMethod, sandboxOptions.startMethod) &&
Objects.equals(this.timeout, sandboxOptions.timeout)&&
Objects.equals(this.timeout, sandboxOptions.timeout) &&
Objects.equals(this.archiveSha256Hash, sandboxOptions.archiveSha256Hash) &&
Objects.equals(this.archiveEntryPath, sandboxOptions.archiveEntryPath) &&
Objects.equals(this.archivePassword, sandboxOptions.archivePassword)&&
Objects.equals(this.additionalProperties, sandboxOptions.additionalProperties);
}

Expand All @@ -218,7 +293,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(enabled, commandLineArgs, startMethod, timeout, additionalProperties);
return Objects.hash(enabled, commandLineArgs, startMethod, timeout, archiveSha256Hash, archiveEntryPath, archivePassword, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -236,6 +311,9 @@ public String toString() {
sb.append(" commandLineArgs: ").append(toIndentedString(commandLineArgs)).append("\n");
sb.append(" startMethod: ").append(toIndentedString(startMethod)).append("\n");
sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n");
sb.append(" archiveSha256Hash: ").append(toIndentedString(archiveSha256Hash)).append("\n");
sb.append(" archiveEntryPath: ").append(toIndentedString(archiveEntryPath)).append("\n");
sb.append(" archivePassword: ").append(toIndentedString(archivePassword)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -255,7 +333,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("enabled", "command_line_args", "start_method", "timeout"));
openapiFields = new HashSet<String>(Arrays.asList("enabled", "command_line_args", "start_method", "timeout", "archive_sha_256_hash", "archive_entry_path", "archive_password"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(0);
Expand Down Expand Up @@ -285,6 +363,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonObj.get("timeout") != null && !jsonObj.get("timeout").isJsonNull()) {
SandboxTimeout.validateJsonElement(jsonObj.get("timeout"));
}
if ((jsonObj.get("archive_sha_256_hash") != null && !jsonObj.get("archive_sha_256_hash").isJsonNull()) && !jsonObj.get("archive_sha_256_hash").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `archive_sha_256_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("archive_sha_256_hash").toString()));
}
if ((jsonObj.get("archive_entry_path") != null && !jsonObj.get("archive_entry_path").isJsonNull()) && !jsonObj.get("archive_entry_path").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `archive_entry_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("archive_entry_path").toString()));
}
if ((jsonObj.get("archive_password") != null && !jsonObj.get("archive_password").isJsonNull()) && !jsonObj.get("archive_password").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `archive_password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("archive_password").toString()));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading