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": "49f3695", "specHash": "5183b65", "version": "5.1.0" }
{ "engineHash": "3d9d391", "specHash": "31c41d5", "version": "5.1.0" }
2 changes: 1 addition & 1 deletion docs/sdkgen/transfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
## Transfer owned folders

Move all of the items (files, folders and workflows) owned by a user into
another user's account
another user's account.

Only the root folder (`0`) can be transferred.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected TransferManager(Builder builder) {

/**
* Move all of the items (files, folders and workflows) owned by a user into another user's
* account
* account.
*
* <p>Only the root folder (`0`) can be transferred.
*
Expand Down Expand Up @@ -75,7 +75,7 @@ public FolderFull transferOwnedFolder(String userId, TransferOwnedFolderRequestB

/**
* Move all of the items (files, folders and workflows) owned by a user into another user's
* account
* account.
*
* <p>Only the root folder (`0`) can be transferred.
*
Expand Down Expand Up @@ -118,7 +118,7 @@ public FolderFull transferOwnedFolder(

/**
* Move all of the items (files, folders and workflows) owned by a user into another user's
* account
* account.
*
* <p>Only the root folder (`0`) can be transferred.
*
Expand Down Expand Up @@ -161,7 +161,7 @@ public FolderFull transferOwnedFolder(

/**
* Move all of the items (files, folders and workflows) owned by a user into another user's
* account
* account.
*
* <p>Only the root folder (`0`) can be transferred.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public class CreateCollaborationRequestBody extends SerializableObject {
* an owner can update `can_view_path` on existing collaborations.
*
* <p>`can_view_path` can only be used for folder collaborations.
*
* <p>When you delete a folder with `can_view_path=true`, collaborators may still see the parent
* path. For instructions on how to remove this, see [Even though a folder invited via
* can_view_path is deleted, the path remains
* displayed](https://support.box.com/hc/en-us/articles/37472814319891-Even-though-a-folder-invited-via-can-view-path-is-deleted-the-path-remains-displayed).
*/
@JsonProperty("can_view_path")
protected Boolean canViewPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public class UpdateCollaborationByIdRequestBody extends SerializableObject {
* an owner can update `can_view_path` on existing collaborations.
*
* <p>`can_view_path` can only be used for folder collaborations.
*
* <p>When you delete a folder with `can_view_path=true`, collaborators may still see the parent
* path. For instructions on how to remove this, see [Even though a folder invited via
* can_view_path is deleted, the path remains
* displayed](https://support.box.com/hc/en-us/articles/37472814319891-Even-though-a-folder-invited-via-can-view-path-is-deleted-the-path-remains-displayed).
*/
@JsonProperty("can_view_path")
protected Boolean canViewPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ public class AiExtractStructured extends SerializableObject {
*/
protected List<AiExtractStructuredFieldsField> fields;

/** A flag to indicate whether confidence scores for every extracted field should be returned. */
@JsonProperty("include_confidence_score")
protected Boolean includeConfidenceScore;

@JsonProperty("ai_agent")
protected AiExtractStructuredAgent aiAgent;

Expand All @@ -48,7 +44,6 @@ protected AiExtractStructured(Builder builder) {
this.items = builder.items;
this.metadataTemplate = builder.metadataTemplate;
this.fields = builder.fields;
this.includeConfidenceScore = builder.includeConfidenceScore;
this.aiAgent = builder.aiAgent;
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
}
Expand All @@ -65,10 +60,6 @@ public List<AiExtractStructuredFieldsField> getFields() {
return fields;
}

public Boolean getIncludeConfidenceScore() {
return includeConfidenceScore;
}

public AiExtractStructuredAgent getAiAgent() {
return aiAgent;
}
Expand All @@ -85,13 +76,12 @@ public boolean equals(Object o) {
return Objects.equals(items, casted.items)
&& Objects.equals(metadataTemplate, casted.metadataTemplate)
&& Objects.equals(fields, casted.fields)
&& Objects.equals(includeConfidenceScore, casted.includeConfidenceScore)
&& Objects.equals(aiAgent, casted.aiAgent);
}

@Override
public int hashCode() {
return Objects.hash(items, metadataTemplate, fields, includeConfidenceScore, aiAgent);
return Objects.hash(items, metadataTemplate, fields, aiAgent);
}

@Override
Expand All @@ -109,10 +99,6 @@ public String toString() {
+ fields
+ '\''
+ ", "
+ "includeConfidenceScore='"
+ includeConfidenceScore
+ '\''
+ ", "
+ "aiAgent='"
+ aiAgent
+ '\''
Expand All @@ -127,8 +113,6 @@ public static class Builder extends NullableFieldTracker {

protected List<AiExtractStructuredFieldsField> fields;

protected Boolean includeConfidenceScore;

protected AiExtractStructuredAgent aiAgent;

public Builder(List<AiItemBase> items) {
Expand All @@ -146,11 +130,6 @@ public Builder fields(List<AiExtractStructuredFieldsField> fields) {
return this;
}

public Builder includeConfidenceScore(Boolean includeConfidenceScore) {
this.includeConfidenceScore = includeConfidenceScore;
return this;
}

public Builder aiAgent(AiAgentReference aiAgent) {
this.aiAgent = new AiExtractStructuredAgent(aiAgent);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ public class AiExtractStructuredResponse extends SerializableObject {
@JsonProperty("completion_reason")
protected String completionReason;

/**
* The confidence score numeric values for each extracted field as a JSON dictionary. This can be
* empty if no field could be extracted.
*/
@JsonProperty("confidence_score")
protected Map<String, Object> confidenceScore;

@JsonProperty("ai_agent_info")
protected AiAgentInfo aiAgentInfo;

Expand All @@ -51,7 +44,6 @@ protected AiExtractStructuredResponse(Builder builder) {
this.answer = builder.answer;
this.createdAt = builder.createdAt;
this.completionReason = builder.completionReason;
this.confidenceScore = builder.confidenceScore;
this.aiAgentInfo = builder.aiAgentInfo;
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
}
Expand All @@ -68,10 +60,6 @@ public String getCompletionReason() {
return completionReason;
}

public Map<String, Object> getConfidenceScore() {
return confidenceScore;
}

public AiAgentInfo getAiAgentInfo() {
return aiAgentInfo;
}
Expand All @@ -88,13 +76,12 @@ public boolean equals(Object o) {
return Objects.equals(answer, casted.answer)
&& Objects.equals(createdAt, casted.createdAt)
&& Objects.equals(completionReason, casted.completionReason)
&& Objects.equals(confidenceScore, casted.confidenceScore)
&& Objects.equals(aiAgentInfo, casted.aiAgentInfo);
}

@Override
public int hashCode() {
return Objects.hash(answer, createdAt, completionReason, confidenceScore, aiAgentInfo);
return Objects.hash(answer, createdAt, completionReason, aiAgentInfo);
}

@Override
Expand All @@ -112,10 +99,6 @@ public String toString() {
+ completionReason
+ '\''
+ ", "
+ "confidenceScore='"
+ confidenceScore
+ '\''
+ ", "
+ "aiAgentInfo='"
+ aiAgentInfo
+ '\''
Expand All @@ -130,8 +113,6 @@ public static class Builder extends NullableFieldTracker {

protected String completionReason;

protected Map<String, Object> confidenceScore;

protected AiAgentInfo aiAgentInfo;

public Builder(Map<String, Object> answer, OffsetDateTime createdAt) {
Expand All @@ -145,11 +126,6 @@ public Builder completionReason(String completionReason) {
return this;
}

public Builder confidenceScore(Map<String, Object> confidenceScore) {
this.confidenceScore = confidenceScore;
return this;
}

public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) {
this.aiAgentInfo = aiAgentInfo;
return this;
Expand Down