Skip to content

Commit f23ee3d

Browse files
chore: sync from ark-apis 6149322043
Auto-generated SDK sync from ark-apis at 61493220431bb7746d47316e0fc43adb8fe07717. Generated files are overwritten by the sync pipeline and should not be edited by hand. Sync-Source-Commit: ed311cda158403f9784905b725f895c832f19c39 Ark-APIs-Commit: 61493220431bb7746d47316e0fc43adb8fe07717 Release-Version: 0.19.0
1 parent 1954f77 commit f23ee3d

19 files changed

Lines changed: 1272 additions & 65 deletions

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ The official Java library for accessing ModelArk on Volcengine and BytePlus. It
1010
<dependency>
1111
<groupId>com.volcengine</groupId>
1212
<artifactId>ark-runtime</artifactId>
13-
<version>0.18.0</version>
13+
<version>0.19.0</version>
1414
</dependency>
1515
```
1616

1717
### Gradle
1818

1919
```groovy
20-
implementation 'com.volcengine:ark-runtime:0.18.0'
20+
implementation 'com.volcengine:ark-runtime:0.19.0'
2121
```
2222

2323
## Choose Volcengine or BytePlus

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.18.0
1+
0.19.0

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.volcengine</groupId>
88
<artifactId>ark-runtime</artifactId>
9-
<version>0.18.0</version>
9+
<version>0.19.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>ark-runtime</name>

‎src/main/java/com/volcengine/ark/runtime/models/content_generation/ContentGenerationTask.java‎

Lines changed: 150 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
ContentGenerationTask.JSON_PROPERTY_REVISED_PROMPT,
4545
ContentGenerationTask.JSON_PROPERTY_SUBDIVISIONLEVEL,
4646
ContentGenerationTask.JSON_PROPERTY_FILEFORMAT,
47+
ContentGenerationTask.JSON_PROPERTY_FILE_FORMAT,
48+
ContentGenerationTask.JSON_PROPERTY_OUTPUT_FORMAT,
49+
ContentGenerationTask.JSON_PROPERTY_TEXTURE_RESOLUTION,
50+
ContentGenerationTask.JSON_PROPERTY_PRIORITY,
4751
ContentGenerationTask.JSON_PROPERTY_SERVICE_TIER,
4852
ContentGenerationTask.JSON_PROPERTY_EXECUTION_EXPIRES_AFTER,
4953
ContentGenerationTask.JSON_PROPERTY_GENERATE_AUDIO,
@@ -123,6 +127,22 @@ public class ContentGenerationTask {
123127
@javax.annotation.Nullable
124128
private String fileformat;
125129

130+
public static final String JSON_PROPERTY_FILE_FORMAT = "file_format";
131+
@javax.annotation.Nullable
132+
private String fileFormat;
133+
134+
public static final String JSON_PROPERTY_OUTPUT_FORMAT = "output_format";
135+
@javax.annotation.Nullable
136+
private String outputFormat;
137+
138+
public static final String JSON_PROPERTY_TEXTURE_RESOLUTION = "texture_resolution";
139+
@javax.annotation.Nullable
140+
private String textureResolution;
141+
142+
public static final String JSON_PROPERTY_PRIORITY = "priority";
143+
@javax.annotation.Nullable
144+
private Integer priority;
145+
126146
public static final String JSON_PROPERTY_SERVICE_TIER = "service_tier";
127147
@javax.annotation.Nullable
128148
private String serviceTier;
@@ -240,7 +260,7 @@ public ContentGenerationTask error(@javax.annotation.Nullable TaskError error) {
240260
}
241261

242262
/**
243-
* Populated when the task ended in &#x60;failed&#x60;.
263+
* Get error
244264
* @return error
245265
*/
246266
@javax.annotation.Nullable
@@ -583,6 +603,106 @@ public void setFileformat(@javax.annotation.Nullable String fileformat) {
583603
this.fileformat = fileformat;
584604
}
585605

606+
public ContentGenerationTask fileFormat(@javax.annotation.Nullable String fileFormat) {
607+
608+
this.fileFormat = fileFormat;
609+
return this;
610+
}
611+
612+
/**
613+
* Output file format of a 3D generation task.
614+
* @return fileFormat
615+
*/
616+
@javax.annotation.Nullable
617+
@JsonProperty(value = JSON_PROPERTY_FILE_FORMAT, required = false)
618+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
619+
620+
public String getFileFormat() {
621+
return fileFormat;
622+
}
623+
624+
625+
@JsonProperty(value = JSON_PROPERTY_FILE_FORMAT, required = false)
626+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
627+
public void setFileFormat(@javax.annotation.Nullable String fileFormat) {
628+
this.fileFormat = fileFormat;
629+
}
630+
631+
public ContentGenerationTask outputFormat(@javax.annotation.Nullable String outputFormat) {
632+
633+
this.outputFormat = outputFormat;
634+
return this;
635+
}
636+
637+
/**
638+
* Get outputFormat
639+
* @return outputFormat
640+
*/
641+
@javax.annotation.Nullable
642+
@JsonProperty(value = JSON_PROPERTY_OUTPUT_FORMAT, required = false)
643+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
644+
645+
public String getOutputFormat() {
646+
return outputFormat;
647+
}
648+
649+
650+
@JsonProperty(value = JSON_PROPERTY_OUTPUT_FORMAT, required = false)
651+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
652+
public void setOutputFormat(@javax.annotation.Nullable String outputFormat) {
653+
this.outputFormat = outputFormat;
654+
}
655+
656+
public ContentGenerationTask textureResolution(@javax.annotation.Nullable String textureResolution) {
657+
658+
this.textureResolution = textureResolution;
659+
return this;
660+
}
661+
662+
/**
663+
* Texture resolution actually used by a 3D generation task.
664+
* @return textureResolution
665+
*/
666+
@javax.annotation.Nullable
667+
@JsonProperty(value = JSON_PROPERTY_TEXTURE_RESOLUTION, required = false)
668+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
669+
670+
public String getTextureResolution() {
671+
return textureResolution;
672+
}
673+
674+
675+
@JsonProperty(value = JSON_PROPERTY_TEXTURE_RESOLUTION, required = false)
676+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
677+
public void setTextureResolution(@javax.annotation.Nullable String textureResolution) {
678+
this.textureResolution = textureResolution;
679+
}
680+
681+
public ContentGenerationTask priority(@javax.annotation.Nullable Integer priority) {
682+
683+
this.priority = priority;
684+
return this;
685+
}
686+
687+
/**
688+
* Execution priority echoed back.
689+
* @return priority
690+
*/
691+
@javax.annotation.Nullable
692+
@JsonProperty(value = JSON_PROPERTY_PRIORITY, required = false)
693+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
694+
695+
public Integer getPriority() {
696+
return priority;
697+
}
698+
699+
700+
@JsonProperty(value = JSON_PROPERTY_PRIORITY, required = false)
701+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
702+
public void setPriority(@javax.annotation.Nullable Integer priority) {
703+
this.priority = priority;
704+
}
705+
586706
public ContentGenerationTask serviceTier(@javax.annotation.Nullable String serviceTier) {
587707

588708
this.serviceTier = serviceTier;
@@ -818,6 +938,10 @@ public boolean equals(Object o) {
818938
Objects.equals(this.revisedPrompt, contentGenerationTask.revisedPrompt) &&
819939
Objects.equals(this.subdivisionlevel, contentGenerationTask.subdivisionlevel) &&
820940
Objects.equals(this.fileformat, contentGenerationTask.fileformat) &&
941+
Objects.equals(this.fileFormat, contentGenerationTask.fileFormat) &&
942+
Objects.equals(this.outputFormat, contentGenerationTask.outputFormat) &&
943+
Objects.equals(this.textureResolution, contentGenerationTask.textureResolution) &&
944+
Objects.equals(this.priority, contentGenerationTask.priority) &&
821945
Objects.equals(this.serviceTier, contentGenerationTask.serviceTier) &&
822946
Objects.equals(this.executionExpiresAfter, contentGenerationTask.executionExpiresAfter) &&
823947
Objects.equals(this.generateAudio, contentGenerationTask.generateAudio) &&
@@ -830,7 +954,7 @@ public boolean equals(Object o) {
830954

831955
@Override
832956
public int hashCode() {
833-
return Objects.hash(id, model, status, error, content, usage, createdAt, updatedAt, seed, resolution, ratio, duration, frames, framespersecond, revisedPrompt, subdivisionlevel, fileformat, serviceTier, executionExpiresAfter, generateAudio, draft, draftTaskId, tools, reasoningEffort, safetyIdentifier);
957+
return Objects.hash(id, model, status, error, content, usage, createdAt, updatedAt, seed, resolution, ratio, duration, frames, framespersecond, revisedPrompt, subdivisionlevel, fileformat, fileFormat, outputFormat, textureResolution, priority, serviceTier, executionExpiresAfter, generateAudio, draft, draftTaskId, tools, reasoningEffort, safetyIdentifier);
834958
}
835959

836960
@Override
@@ -854,6 +978,10 @@ public String toString() {
854978
sb.append(" revisedPrompt: ").append(toIndentedString(revisedPrompt)).append("\n");
855979
sb.append(" subdivisionlevel: ").append(toIndentedString(subdivisionlevel)).append("\n");
856980
sb.append(" fileformat: ").append(toIndentedString(fileformat)).append("\n");
981+
sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n");
982+
sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n");
983+
sb.append(" textureResolution: ").append(toIndentedString(textureResolution)).append("\n");
984+
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
857985
sb.append(" serviceTier: ").append(toIndentedString(serviceTier)).append("\n");
858986
sb.append(" executionExpiresAfter: ").append(toIndentedString(executionExpiresAfter)).append("\n");
859987
sb.append(" generateAudio: ").append(toIndentedString(generateAudio)).append("\n");
@@ -954,6 +1082,22 @@ public ContentGenerationTask.Builder fileformat(String fileformat) {
9541082
this.instance.fileformat = fileformat;
9551083
return this;
9561084
}
1085+
public ContentGenerationTask.Builder fileFormat(String fileFormat) {
1086+
this.instance.fileFormat = fileFormat;
1087+
return this;
1088+
}
1089+
public ContentGenerationTask.Builder outputFormat(String outputFormat) {
1090+
this.instance.outputFormat = outputFormat;
1091+
return this;
1092+
}
1093+
public ContentGenerationTask.Builder textureResolution(String textureResolution) {
1094+
this.instance.textureResolution = textureResolution;
1095+
return this;
1096+
}
1097+
public ContentGenerationTask.Builder priority(Integer priority) {
1098+
this.instance.priority = priority;
1099+
return this;
1100+
}
9571101
public ContentGenerationTask.Builder serviceTier(String serviceTier) {
9581102
this.instance.serviceTier = serviceTier;
9591103
return this;
@@ -1037,6 +1181,10 @@ public ContentGenerationTask.Builder toBuilder() {
10371181
.revisedPrompt(getRevisedPrompt())
10381182
.subdivisionlevel(getSubdivisionlevel())
10391183
.fileformat(getFileformat())
1184+
.fileFormat(getFileFormat())
1185+
.outputFormat(getOutputFormat())
1186+
.textureResolution(getTextureResolution())
1187+
.priority(getPriority())
10401188
.serviceTier(getServiceTier())
10411189
.executionExpiresAfter(getExecutionExpiresAfter())
10421190
.generateAudio(getGenerateAudio())

‎src/main/java/com/volcengine/ark/runtime/models/content_generation/ContentItem.java‎

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import java.util.Objects;
2323

2424
/**
25-
* One element of a generation request &#x60;content&#x60; list. Exactly one of &#x60;text&#x60; / &#x60;image_url&#x60; / &#x60;video_url&#x60; / &#x60;audio_url&#x60; / &#x60;draft_task&#x60; must be set, matching the value of &#x60;type&#x60;.
25+
* One element of a generation request &#x60;content&#x60; list. Exactly one of &#x60;text&#x60; / &#x60;image_url&#x60; / &#x60;video_url&#x60; / &#x60;audio_url&#x60; / &#x60;draft_task&#x60; / &#x60;file_url&#x60; must be set, matching the value of &#x60;type&#x60;.
2626
*/
2727
@JsonPropertyOrder({
2828
ContentItem.JSON_PROPERTY_TYPE,
@@ -31,6 +31,7 @@
3131
ContentItem.JSON_PROPERTY_VIDEO_URL,
3232
ContentItem.JSON_PROPERTY_AUDIO_URL,
3333
ContentItem.JSON_PROPERTY_DRAFT_TASK,
34+
ContentItem.JSON_PROPERTY_FILE_URL,
3435
ContentItem.JSON_PROPERTY_ROLE
3536
})
3637
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0")
@@ -59,6 +60,10 @@ public class ContentItem {
5960
@javax.annotation.Nullable
6061
private DraftTask draftTask;
6162

63+
public static final String JSON_PROPERTY_FILE_URL = "file_url";
64+
@javax.annotation.Nullable
65+
private FileURL fileUrl;
66+
6267
public static final String JSON_PROPERTY_ROLE = "role";
6368
@javax.annotation.Nullable
6469
private String role;
@@ -216,14 +221,39 @@ public void setDraftTask(@javax.annotation.Nullable DraftTask draftTask) {
216221
this.draftTask = draftTask;
217222
}
218223

224+
public ContentItem fileUrl(@javax.annotation.Nullable FileURL fileUrl) {
225+
226+
this.fileUrl = fileUrl;
227+
return this;
228+
}
229+
230+
/**
231+
* File content. Required when &#x60;type&#x60; is &#x60;file_url&#x60;.
232+
* @return fileUrl
233+
*/
234+
@javax.annotation.Nullable
235+
@JsonProperty(value = JSON_PROPERTY_FILE_URL, required = false)
236+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
237+
238+
public FileURL getFileUrl() {
239+
return fileUrl;
240+
}
241+
242+
243+
@JsonProperty(value = JSON_PROPERTY_FILE_URL, required = false)
244+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
245+
public void setFileUrl(@javax.annotation.Nullable FileURL fileUrl) {
246+
this.fileUrl = fileUrl;
247+
}
248+
219249
public ContentItem role(@javax.annotation.Nullable String role) {
220250

221251
this.role = role;
222252
return this;
223253
}
224254

225255
/**
226-
* Optional role tag (e.g. &#x60;first_frame&#x60;, &#x60;reference_image&#x60;).
256+
* Optional role tag (e.g. &#x60;first_frame&#x60;, &#x60;reference_image&#x60;). 3D generation uses &#x60;front_view&#x60; / &#x60;back_view&#x60; / &#x60;left_view&#x60; / &#x60;right_view&#x60; / &#x60;top_view&#x60; / &#x60;bottom_view&#x60; for images and &#x60;mesh_to_texture&#x60; for the mesh file.
227257
* @return role
228258
*/
229259
@javax.annotation.Nullable
@@ -257,12 +287,13 @@ public boolean equals(Object o) {
257287
Objects.equals(this.videoUrl, contentItem.videoUrl) &&
258288
Objects.equals(this.audioUrl, contentItem.audioUrl) &&
259289
Objects.equals(this.draftTask, contentItem.draftTask) &&
290+
Objects.equals(this.fileUrl, contentItem.fileUrl) &&
260291
Objects.equals(this.role, contentItem.role);
261292
}
262293

263294
@Override
264295
public int hashCode() {
265-
return Objects.hash(type, text, imageUrl, videoUrl, audioUrl, draftTask, role);
296+
return Objects.hash(type, text, imageUrl, videoUrl, audioUrl, draftTask, fileUrl, role);
266297
}
267298

268299
@Override
@@ -275,6 +306,7 @@ public String toString() {
275306
sb.append(" videoUrl: ").append(toIndentedString(videoUrl)).append("\n");
276307
sb.append(" audioUrl: ").append(toIndentedString(audioUrl)).append("\n");
277308
sb.append(" draftTask: ").append(toIndentedString(draftTask)).append("\n");
309+
sb.append(" fileUrl: ").append(toIndentedString(fileUrl)).append("\n");
278310
sb.append(" role: ").append(toIndentedString(role)).append("\n");
279311
sb.append("}");
280312
return sb.toString();
@@ -324,6 +356,10 @@ public ContentItem.Builder draftTask(DraftTask draftTask) {
324356
this.instance.draftTask = draftTask;
325357
return this;
326358
}
359+
public ContentItem.Builder fileUrl(FileURL fileUrl) {
360+
this.instance.fileUrl = fileUrl;
361+
return this;
362+
}
327363
public ContentItem.Builder role(String role) {
328364
this.instance.role = role;
329365
return this;
@@ -368,6 +404,7 @@ public ContentItem.Builder toBuilder() {
368404
.videoUrl(getVideoUrl())
369405
.audioUrl(getAudioUrl())
370406
.draftTask(getDraftTask())
407+
.fileUrl(getFileUrl())
371408
.role(getRole());
372409
}
373410

‎src/main/java/com/volcengine/ark/runtime/models/content_generation/ContentType.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public enum ContentType {
3333

3434
AUDIO_URL("audio_url"),
3535

36-
DRAFT_TASK("draft_task");
36+
DRAFT_TASK("draft_task"),
37+
38+
FILE_URL("file_url");
3739

3840
private String value;
3941

0 commit comments

Comments
 (0)