From d600645968b62770b2df3f4b3e44e428e89977fe Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 2 Dec 2025 07:20:06 -0800 Subject: [PATCH 1/8] docs: modify can_view_path description and add confidence scores for structured extract (box/box-openapi#566) --- .codegen.json | 2 +- .../CreateCollaborationRequestBody.java | 3 ++- .../UpdateCollaborationByIdRequestBody.java | 3 ++- .../AiExtractStructured.java | 23 +++++++++++++++- .../AiExtractStructuredResponse.java | 26 ++++++++++++++++++- 5 files changed, 52 insertions(+), 5 deletions(-) diff --git a/.codegen.json b/.codegen.json index 9abfa0438..7f4c39213 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "49f3695", "specHash": "7e4908e", "version": "10.2.0" } +{ "engineHash": "49f3695", "specHash": "5183b65", "version": "10.2.0" } diff --git a/src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java b/src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java index 2f245c282..e39079bc4 100644 --- a/src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java +++ b/src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java @@ -49,7 +49,8 @@ public class CreateCollaborationRequestBody extends SerializableObject { * Files** page. We recommend you limit the number of collaborations with `can_view_path` enabled * to 1,000 per user. * - *

Only owner or co-owners can invite collaborators with a `can_view_path` of `true`. + *

Only an owner or co-owners can invite collaborators with a `can_view_path` of `true`. Only + * an owner can update `can_view_path` on existing collaborations. * *

`can_view_path` can only be used for folder collaborations. */ diff --git a/src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java b/src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java index 50e7c6ebb..8397f7b76 100644 --- a/src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java +++ b/src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java @@ -65,7 +65,8 @@ public class UpdateCollaborationByIdRequestBody extends SerializableObject { * Files** page. We recommend you limit the number of collaborations with `can_view_path` enabled * to 1,000 per user. * - *

Only owner or co-owners can invite collaborators with a `can_view_path` of `true`. + *

Only an owner or co-owners can invite collaborators with a `can_view_path` of `true`. Only + * an owner can update `can_view_path` on existing collaborations. * *

`can_view_path` can only be used for folder collaborations. */ diff --git a/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java b/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java index 4e23ae994..582201abe 100644 --- a/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java +++ b/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java @@ -31,6 +31,10 @@ public class AiExtractStructured extends SerializableObject { */ protected List 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; @@ -44,6 +48,7 @@ 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()); } @@ -60,6 +65,10 @@ public List getFields() { return fields; } + public Boolean getIncludeConfidenceScore() { + return includeConfidenceScore; + } + public AiExtractStructuredAgent getAiAgent() { return aiAgent; } @@ -76,12 +85,13 @@ 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, aiAgent); + return Objects.hash(items, metadataTemplate, fields, includeConfidenceScore, aiAgent); } @Override @@ -99,6 +109,10 @@ public String toString() { + fields + '\'' + ", " + + "includeConfidenceScore='" + + includeConfidenceScore + + '\'' + + ", " + "aiAgent='" + aiAgent + '\'' @@ -113,6 +127,8 @@ public static class Builder extends NullableFieldTracker { protected List fields; + protected Boolean includeConfidenceScore; + protected AiExtractStructuredAgent aiAgent; public Builder(List items) { @@ -130,6 +146,11 @@ public Builder fields(List 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; diff --git a/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java b/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java index 42e94c96e..3cdc770f9 100644 --- a/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java +++ b/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java @@ -28,6 +28,13 @@ 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 confidenceScore; + @JsonProperty("ai_agent_info") protected AiAgentInfo aiAgentInfo; @@ -44,6 +51,7 @@ 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()); } @@ -60,6 +68,10 @@ public String getCompletionReason() { return completionReason; } + public Map getConfidenceScore() { + return confidenceScore; + } + public AiAgentInfo getAiAgentInfo() { return aiAgentInfo; } @@ -76,12 +88,13 @@ 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, aiAgentInfo); + return Objects.hash(answer, createdAt, completionReason, confidenceScore, aiAgentInfo); } @Override @@ -99,6 +112,10 @@ public String toString() { + completionReason + '\'' + ", " + + "confidenceScore='" + + confidenceScore + + '\'' + + ", " + "aiAgentInfo='" + aiAgentInfo + '\'' @@ -113,6 +130,8 @@ public static class Builder extends NullableFieldTracker { protected String completionReason; + protected Map confidenceScore; + protected AiAgentInfo aiAgentInfo; public Builder(Map answer, OffsetDateTime createdAt) { @@ -126,6 +145,11 @@ public Builder completionReason(String completionReason) { return this; } + public Builder confidenceScore(Map confidenceScore) { + this.confidenceScore = confidenceScore; + return this; + } + public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) { this.aiAgentInfo = aiAgentInfo; return this; From 97c579f759cdd8e5f815c003ccb0353d249bd811 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 3 Dec 2025 02:20:22 -0800 Subject: [PATCH 2/8] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 7f4c39213..337c2e19d 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "49f3695", "specHash": "5183b65", "version": "10.2.0" } +{ "engineHash": "4c432e3", "specHash": "5183b65", "version": "10.2.0" } From e964f0f01f28372d13f4abd28557c7eb6cc9abe3 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Thu, 4 Dec 2025 04:39:27 -0800 Subject: [PATCH 3/8] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 337c2e19d..56c7ef353 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "4c432e3", "specHash": "5183b65", "version": "10.2.0" } +{ "engineHash": "4669255", "specHash": "5183b65", "version": "10.2.0" } From ad2544dce2253ec2bbb38c00963189c79f1f71d1 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Thu, 4 Dec 2025 07:34:47 -0800 Subject: [PATCH 4/8] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 56c7ef353..f51e3a2a0 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "4669255", "specHash": "5183b65", "version": "10.2.0" } +{ "engineHash": "e60523f", "specHash": "5183b65", "version": "10.2.0" } From 09cad555e50df633f9b31d8373f058fc799f2771 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Fri, 5 Dec 2025 03:20:14 -0800 Subject: [PATCH 5/8] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index f51e3a2a0..dc2f3b815 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "e60523f", "specHash": "5183b65", "version": "10.2.0" } +{ "engineHash": "bb576a3", "specHash": "5183b65", "version": "10.2.0" } From c02fbc67d60ab01d817e09794590fd37fad054b2 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Mon, 8 Dec 2025 07:20:41 -0800 Subject: [PATCH 6/8] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index dc2f3b815..4c88bf837 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "bb576a3", "specHash": "5183b65", "version": "10.2.0" } +{ "engineHash": "bb42f6c", "specHash": "5183b65", "version": "10.2.0" } From 2a226a36d71e51133240c9bd6570b9c768d5fcba Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 9 Dec 2025 00:20:19 -0800 Subject: [PATCH 7/8] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 4c88bf837..88080059e 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "bb42f6c", "specHash": "5183b65", "version": "10.2.0" } +{ "engineHash": "3d9d391", "specHash": "5183b65", "version": "10.2.0" } From b0ea6fc139544095419159481cd75bd319f66e9c Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 10 Dec 2025 02:19:58 -0800 Subject: [PATCH 8/8] docs: Remove confidence_score and include_confidence_score from AI extract (box/box-openapi#567) --- .codegen.json | 2 +- docs/transfer.md | 2 +- .../managers/transfer/TransferManager.java | 8 +++--- .../CreateCollaborationRequestBody.java | 5 ++++ .../UpdateCollaborationByIdRequestBody.java | 5 ++++ .../AiExtractStructured.java | 23 +--------------- .../AiExtractStructuredResponse.java | 26 +------------------ 7 files changed, 18 insertions(+), 53 deletions(-) diff --git a/.codegen.json b/.codegen.json index 88080059e..7b881e098 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "3d9d391", "specHash": "5183b65", "version": "10.2.0" } +{ "engineHash": "3d9d391", "specHash": "31c41d5", "version": "10.2.0" } diff --git a/docs/transfer.md b/docs/transfer.md index 039d67195..38fae1a6a 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -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. diff --git a/src/main/java/com/box/sdkgen/managers/transfer/TransferManager.java b/src/main/java/com/box/sdkgen/managers/transfer/TransferManager.java index a4aa82499..d1f22bf2d 100644 --- a/src/main/java/com/box/sdkgen/managers/transfer/TransferManager.java +++ b/src/main/java/com/box/sdkgen/managers/transfer/TransferManager.java @@ -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. * *

Only the root folder (`0`) can be transferred. * @@ -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. * *

Only the root folder (`0`) can be transferred. * @@ -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. * *

Only the root folder (`0`) can be transferred. * @@ -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. * *

Only the root folder (`0`) can be transferred. * diff --git a/src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java b/src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java index e39079bc4..6d9ea75d3 100644 --- a/src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java +++ b/src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java @@ -53,6 +53,11 @@ public class CreateCollaborationRequestBody extends SerializableObject { * an owner can update `can_view_path` on existing collaborations. * *

`can_view_path` can only be used for folder collaborations. + * + *

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; diff --git a/src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java b/src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java index 8397f7b76..cedd87891 100644 --- a/src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java +++ b/src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java @@ -69,6 +69,11 @@ public class UpdateCollaborationByIdRequestBody extends SerializableObject { * an owner can update `can_view_path` on existing collaborations. * *

`can_view_path` can only be used for folder collaborations. + * + *

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; diff --git a/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java b/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java index 582201abe..4e23ae994 100644 --- a/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java +++ b/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java @@ -31,10 +31,6 @@ public class AiExtractStructured extends SerializableObject { */ protected List 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; @@ -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()); } @@ -65,10 +60,6 @@ public List getFields() { return fields; } - public Boolean getIncludeConfidenceScore() { - return includeConfidenceScore; - } - public AiExtractStructuredAgent getAiAgent() { return aiAgent; } @@ -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 @@ -109,10 +99,6 @@ public String toString() { + fields + '\'' + ", " - + "includeConfidenceScore='" - + includeConfidenceScore - + '\'' - + ", " + "aiAgent='" + aiAgent + '\'' @@ -127,8 +113,6 @@ public static class Builder extends NullableFieldTracker { protected List fields; - protected Boolean includeConfidenceScore; - protected AiExtractStructuredAgent aiAgent; public Builder(List items) { @@ -146,11 +130,6 @@ public Builder fields(List 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; diff --git a/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java b/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java index 3cdc770f9..42e94c96e 100644 --- a/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java +++ b/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java @@ -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 confidenceScore; - @JsonProperty("ai_agent_info") protected AiAgentInfo aiAgentInfo; @@ -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()); } @@ -68,10 +60,6 @@ public String getCompletionReason() { return completionReason; } - public Map getConfidenceScore() { - return confidenceScore; - } - public AiAgentInfo getAiAgentInfo() { return aiAgentInfo; } @@ -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 @@ -112,10 +99,6 @@ public String toString() { + completionReason + '\'' + ", " - + "confidenceScore='" - + confidenceScore - + '\'' - + ", " + "aiAgentInfo='" + aiAgentInfo + '\'' @@ -130,8 +113,6 @@ public static class Builder extends NullableFieldTracker { protected String completionReason; - protected Map confidenceScore; - protected AiAgentInfo aiAgentInfo; public Builder(Map answer, OffsetDateTime createdAt) { @@ -145,11 +126,6 @@ public Builder completionReason(String completionReason) { return this; } - public Builder confidenceScore(Map confidenceScore) { - this.confidenceScore = confidenceScore; - return this; - } - public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) { this.aiAgentInfo = aiAgentInfo; return this;