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 .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "504b5a7", "specHash": "1ed059a", "version": "10.0.0" }
{ "engineHash": "504b5a7", "specHash": "62fdfd1", "version": "10.0.0" }

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
import com.box.sdkgen.internal.SerializableObject;
import com.box.sdkgen.internal.utils.DateTimeUtils;
import com.box.sdkgen.schemas.aiagentinfo.AiAgentInfo;
import com.box.sdkgen.schemas.aiextractresponse.AiExtractResponse;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.time.OffsetDateTime;
import java.util.Map;
import java.util.Objects;

/** AI extract structured response. */
@JsonFilter("nullablePropertyFilter")
public class AiExtractStructuredResponse extends SerializableObject {

protected final AiExtractResponse answer;
protected final Map<String, Object> answer;

/** The ISO date formatted timestamp of when the answer to the prompt was created. */
@JsonProperty("created_at")
Expand All @@ -32,7 +32,7 @@ public class AiExtractStructuredResponse extends SerializableObject {
protected AiAgentInfo aiAgentInfo;

public AiExtractStructuredResponse(
@JsonProperty("answer") AiExtractResponse answer,
@JsonProperty("answer") Map<String, Object> answer,
@JsonProperty("created_at") OffsetDateTime createdAt) {
super();
this.answer = answer;
Expand All @@ -48,7 +48,7 @@ protected AiExtractStructuredResponse(Builder builder) {
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
}

public AiExtractResponse getAnswer() {
public Map<String, Object> getAnswer() {
return answer;
}

Expand Down Expand Up @@ -107,15 +107,15 @@ public String toString() {

public static class Builder extends NullableFieldTracker {

protected final AiExtractResponse answer;
protected final Map<String, Object> answer;

protected final OffsetDateTime createdAt;

protected String completionReason;

protected AiAgentInfo aiAgentInfo;

public Builder(AiExtractResponse answer, OffsetDateTime createdAt) {
public Builder(Map<String, Object> answer, OffsetDateTime createdAt) {
super();
this.answer = answer;
this.createdAt = createdAt;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/box/sdkgen/schemas/event/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class Event extends SerializableObject {
* object. This object is only available in the Enterprise Events.
*/
@JsonProperty("additional_details")
protected EventAdditionalDetailsField additionalDetails;
protected Map<String, Object> additionalDetails;

public Event() {
super();
Expand Down Expand Up @@ -118,7 +118,7 @@ public EventSourceResource getSource() {
return source;
}

public EventAdditionalDetailsField getAdditionalDetails() {
public Map<String, Object> getAdditionalDetails() {
return additionalDetails;
}

Expand Down Expand Up @@ -215,7 +215,7 @@ public static class Builder extends NullableFieldTracker {

protected EventSourceResource source;

protected EventAdditionalDetailsField additionalDetails;
protected Map<String, Object> additionalDetails;

public Builder type(String type) {
this.type = type;
Expand Down Expand Up @@ -292,7 +292,7 @@ public Builder source(EventSourceResource source) {
return this;
}

public Builder additionalDetails(EventAdditionalDetailsField additionalDetails) {
public Builder additionalDetails(Map<String, Object> additionalDetails) {
this.additionalDetails = additionalDetails;
return this;
}
Expand Down

This file was deleted.