Skip to content

Commit b0ea6fc

Browse files
committed
docs: Remove confidence_score and include_confidence_score from AI extract (box/box-openapi#567)
1 parent 2a226a3 commit b0ea6fc

File tree

7 files changed

+18
-53
lines changed

7 files changed

+18
-53
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "3d9d391", "specHash": "5183b65", "version": "10.2.0" }
1+
{ "engineHash": "3d9d391", "specHash": "31c41d5", "version": "10.2.0" }

docs/transfer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Transfer owned folders
77

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

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

src/main/java/com/box/sdkgen/managers/transfer/TransferManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected TransferManager(Builder builder) {
3232

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

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

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

162162
/**
163163
* Move all of the items (files, folders and workflows) owned by a user into another user's
164-
* account
164+
* account.
165165
*
166166
* <p>Only the root folder (`0`) can be transferred.
167167
*

src/main/java/com/box/sdkgen/managers/usercollaborations/CreateCollaborationRequestBody.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ public class CreateCollaborationRequestBody extends SerializableObject {
5353
* an owner can update `can_view_path` on existing collaborations.
5454
*
5555
* <p>`can_view_path` can only be used for folder collaborations.
56+
*
57+
* <p>When you delete a folder with `can_view_path=true`, collaborators may still see the parent
58+
* path. For instructions on how to remove this, see [Even though a folder invited via
59+
* can_view_path is deleted, the path remains
60+
* 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).
5661
*/
5762
@JsonProperty("can_view_path")
5863
protected Boolean canViewPath;

src/main/java/com/box/sdkgen/managers/usercollaborations/UpdateCollaborationByIdRequestBody.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ public class UpdateCollaborationByIdRequestBody extends SerializableObject {
6969
* an owner can update `can_view_path` on existing collaborations.
7070
*
7171
* <p>`can_view_path` can only be used for folder collaborations.
72+
*
73+
* <p>When you delete a folder with `can_view_path=true`, collaborators may still see the parent
74+
* path. For instructions on how to remove this, see [Even though a folder invited via
75+
* can_view_path is deleted, the path remains
76+
* 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).
7277
*/
7378
@JsonProperty("can_view_path")
7479
protected Boolean canViewPath;

src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructured.java

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ public class AiExtractStructured extends SerializableObject {
3131
*/
3232
protected List<AiExtractStructuredFieldsField> fields;
3333

34-
/** A flag to indicate whether confidence scores for every extracted field should be returned. */
35-
@JsonProperty("include_confidence_score")
36-
protected Boolean includeConfidenceScore;
37-
3834
@JsonProperty("ai_agent")
3935
protected AiExtractStructuredAgent aiAgent;
4036

@@ -48,7 +44,6 @@ protected AiExtractStructured(Builder builder) {
4844
this.items = builder.items;
4945
this.metadataTemplate = builder.metadataTemplate;
5046
this.fields = builder.fields;
51-
this.includeConfidenceScore = builder.includeConfidenceScore;
5247
this.aiAgent = builder.aiAgent;
5348
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
5449
}
@@ -65,10 +60,6 @@ public List<AiExtractStructuredFieldsField> getFields() {
6560
return fields;
6661
}
6762

68-
public Boolean getIncludeConfidenceScore() {
69-
return includeConfidenceScore;
70-
}
71-
7263
public AiExtractStructuredAgent getAiAgent() {
7364
return aiAgent;
7465
}
@@ -85,13 +76,12 @@ public boolean equals(Object o) {
8576
return Objects.equals(items, casted.items)
8677
&& Objects.equals(metadataTemplate, casted.metadataTemplate)
8778
&& Objects.equals(fields, casted.fields)
88-
&& Objects.equals(includeConfidenceScore, casted.includeConfidenceScore)
8979
&& Objects.equals(aiAgent, casted.aiAgent);
9080
}
9181

9282
@Override
9383
public int hashCode() {
94-
return Objects.hash(items, metadataTemplate, fields, includeConfidenceScore, aiAgent);
84+
return Objects.hash(items, metadataTemplate, fields, aiAgent);
9585
}
9686

9787
@Override
@@ -109,10 +99,6 @@ public String toString() {
10999
+ fields
110100
+ '\''
111101
+ ", "
112-
+ "includeConfidenceScore='"
113-
+ includeConfidenceScore
114-
+ '\''
115-
+ ", "
116102
+ "aiAgent='"
117103
+ aiAgent
118104
+ '\''
@@ -127,8 +113,6 @@ public static class Builder extends NullableFieldTracker {
127113

128114
protected List<AiExtractStructuredFieldsField> fields;
129115

130-
protected Boolean includeConfidenceScore;
131-
132116
protected AiExtractStructuredAgent aiAgent;
133117

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

149-
public Builder includeConfidenceScore(Boolean includeConfidenceScore) {
150-
this.includeConfidenceScore = includeConfidenceScore;
151-
return this;
152-
}
153-
154133
public Builder aiAgent(AiAgentReference aiAgent) {
155134
this.aiAgent = new AiExtractStructuredAgent(aiAgent);
156135
return this;

src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ public class AiExtractStructuredResponse extends SerializableObject {
2828
@JsonProperty("completion_reason")
2929
protected String completionReason;
3030

31-
/**
32-
* The confidence score numeric values for each extracted field as a JSON dictionary. This can be
33-
* empty if no field could be extracted.
34-
*/
35-
@JsonProperty("confidence_score")
36-
protected Map<String, Object> confidenceScore;
37-
3831
@JsonProperty("ai_agent_info")
3932
protected AiAgentInfo aiAgentInfo;
4033

@@ -51,7 +44,6 @@ protected AiExtractStructuredResponse(Builder builder) {
5144
this.answer = builder.answer;
5245
this.createdAt = builder.createdAt;
5346
this.completionReason = builder.completionReason;
54-
this.confidenceScore = builder.confidenceScore;
5547
this.aiAgentInfo = builder.aiAgentInfo;
5648
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
5749
}
@@ -68,10 +60,6 @@ public String getCompletionReason() {
6860
return completionReason;
6961
}
7062

71-
public Map<String, Object> getConfidenceScore() {
72-
return confidenceScore;
73-
}
74-
7563
public AiAgentInfo getAiAgentInfo() {
7664
return aiAgentInfo;
7765
}
@@ -88,13 +76,12 @@ public boolean equals(Object o) {
8876
return Objects.equals(answer, casted.answer)
8977
&& Objects.equals(createdAt, casted.createdAt)
9078
&& Objects.equals(completionReason, casted.completionReason)
91-
&& Objects.equals(confidenceScore, casted.confidenceScore)
9279
&& Objects.equals(aiAgentInfo, casted.aiAgentInfo);
9380
}
9481

9582
@Override
9683
public int hashCode() {
97-
return Objects.hash(answer, createdAt, completionReason, confidenceScore, aiAgentInfo);
84+
return Objects.hash(answer, createdAt, completionReason, aiAgentInfo);
9885
}
9986

10087
@Override
@@ -112,10 +99,6 @@ public String toString() {
11299
+ completionReason
113100
+ '\''
114101
+ ", "
115-
+ "confidenceScore='"
116-
+ confidenceScore
117-
+ '\''
118-
+ ", "
119102
+ "aiAgentInfo='"
120103
+ aiAgentInfo
121104
+ '\''
@@ -130,8 +113,6 @@ public static class Builder extends NullableFieldTracker {
130113

131114
protected String completionReason;
132115

133-
protected Map<String, Object> confidenceScore;
134-
135116
protected AiAgentInfo aiAgentInfo;
136117

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

148-
public Builder confidenceScore(Map<String, Object> confidenceScore) {
149-
this.confidenceScore = confidenceScore;
150-
return this;
151-
}
152-
153129
public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) {
154130
this.aiAgentInfo = aiAgentInfo;
155131
return this;

0 commit comments

Comments
 (0)