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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"testImplementation org.mockito:mockito-inline:4.11.0"
]
},
"originGitCommit": "094c36681badc82afeb39a2c91a716461a5a0bd2",
"sdkVersion": "1.17.0"
"originGitCommit": "a5c1143a7b724689db7c5e4cee897834882c9d69",
"sdkVersion": "1.18.0"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ java {

group = 'ai.extend'

version = '1.17.0'
version = '1.18.0'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -81,7 +81,7 @@ publishing {
maven(MavenPublication) {
groupId = 'ai.extend'
artifactId = 'extend-java-sdk'
version = '1.17.0'
version = '1.18.0'
from components.java
pom {
name = 'Extend.ai'
Expand Down
16 changes: 13 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6713,7 +6713,9 @@ Example: `"invoice"`
<dl>
<dd>

Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.

Pass `file` for a single document, or `package` to process 2-50 files together as one package in a single run. Exactly one of `file` or `package` must be provided.

The request returns immediately with a `PROCESSING` status. Use webhooks or poll the Get Workflow Run endpoint for results.
</dd>
Expand Down Expand Up @@ -6771,15 +6773,23 @@ client.workflowRuns().create(
<dl>
<dd>

**file:** `WorkflowRunsCreateRequestFile` — The file to be processed. Supported file types can be found [here](https://docs.extend.ai/2026-02-09/general/supported-file-types). Files can be provided as a URL, an Extend file ID, or raw text. If you wish to process more at a time, consider using the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint.
**file:** `Optional<WorkflowRunsCreateRequestFile>` — The file to be processed. Supported file types can be found [here](https://docs.extend.ai/2026-02-09/general/supported-file-types). Files can be provided as a URL, an Extend file ID, or raw text. Mutually exclusive with `package` — provide one or the other. If you wish to process many files as independent runs, consider using the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint.

</dd>
</dl>

<dl>
<dd>

**package_:** `Optional<WorkflowRunPackage>` — A set of 2–50 files to process together in a single workflow run. Mutually exclusive with `file` — provide one or the other.

</dd>
</dl>

<dl>
<dd>

**outputs:** `Optional<List<WorkflowRunsCreateRequestOutputsItem>>` — Predetermined outputs to be used for the workflow run. Generally not recommended for most use cases, however, can be useful in cases of overriding a classification in a workflow, or a subset of extraction fields when data is known.
**outputs:** `Optional<List<WorkflowRunsCreateRequestOutputsItem>>` — Predetermined outputs to be used for the workflow run. Generally not recommended for most use cases, however, can be useful in cases of overriding a classification in a workflow, or a subset of extraction fields when data is known. Not supported on package runs — a package run produces a single merged result across all files and cannot accept pre-supplied per-processor outputs.

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ai/extend/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "ai.extend:extend-java-sdk/1.17.0");
put("User-Agent", "ai.extend:extend-java-sdk/1.18.0");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.extendconfig.fern:api-sdk");
put("X-Fern-SDK-Version", "1.17.0");
put("X-Fern-SDK-Version", "1.18.0");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,17 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
}

/**
* Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* <p>Pass <code>file</code> for a single document, or <code>package</code> to process 2-50 files together as one package in a single run. Exactly one of <code>file</code> or <code>package</code> must be provided.</p>
* <p>The request returns immediately with a <code>PROCESSING</code> status. Use webhooks or poll the Get Workflow Run endpoint for results.</p>
*/
public CompletableFuture<ExtendClientBaseHttpResponse<WorkflowRun>> create(WorkflowRunsCreateRequest request) {
return create(request, null);
}

/**
* Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* <p>Pass <code>file</code> for a single document, or <code>package</code> to process 2-50 files together as one package in a single run. Exactly one of <code>file</code> or <code>package</code> must be provided.</p>
* <p>The request returns immediately with a <code>PROCESSING</code> status. Use webhooks or poll the Get Workflow Run endpoint for results.</p>
*/
public CompletableFuture<ExtendClientBaseHttpResponse<WorkflowRun>> create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,17 @@ public CompletableFuture<WorkflowRunsListResponse> list(
}

/**
* Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* <p>Pass <code>file</code> for a single document, or <code>package</code> to process 2-50 files together as one package in a single run. Exactly one of <code>file</code> or <code>package</code> must be provided.</p>
* <p>The request returns immediately with a <code>PROCESSING</code> status. Use webhooks or poll the Get Workflow Run endpoint for results.</p>
*/
public CompletableFuture<WorkflowRun> create(WorkflowRunsCreateRequest request) {
return this.rawClient.create(request).thenApply(response -> response.body());
}

/**
* Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* <p>Pass <code>file</code> for a single document, or <code>package</code> to process 2-50 files together as one package in a single run. Exactly one of <code>file</code> or <code>package</code> must be provided.</p>
* <p>The request returns immediately with a <code>PROCESSING</code> status. Use webhooks or poll the Get Workflow Run endpoint for results.</p>
*/
public CompletableFuture<WorkflowRun> create(WorkflowRunsCreateRequest request, RequestOptions requestOptions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,17 @@ public ExtendClientBaseHttpResponse<WorkflowRunsListResponse> list(
}

/**
* Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* <p>Pass <code>file</code> for a single document, or <code>package</code> to process 2-50 files together as one package in a single run. Exactly one of <code>file</code> or <code>package</code> must be provided.</p>
* <p>The request returns immediately with a <code>PROCESSING</code> status. Use webhooks or poll the Get Workflow Run endpoint for results.</p>
*/
public ExtendClientBaseHttpResponse<WorkflowRun> create(WorkflowRunsCreateRequest request) {
return create(request, null);
}

/**
* Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* <p>Pass <code>file</code> for a single document, or <code>package</code> to process 2-50 files together as one package in a single run. Exactly one of <code>file</code> or <code>package</code> must be provided.</p>
* <p>The request returns immediately with a <code>PROCESSING</code> status. Use webhooks or poll the Get Workflow Run endpoint for results.</p>
*/
public ExtendClientBaseHttpResponse<WorkflowRun> create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,17 @@ public WorkflowRunsListResponse list(WorkflowRunsListRequest request, RequestOpt
}

/**
* Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* <p>Pass <code>file</code> for a single document, or <code>package</code> to process 2-50 files together as one package in a single run. Exactly one of <code>file</code> or <code>package</code> must be provided.</p>
* <p>The request returns immediately with a <code>PROCESSING</code> status. Use webhooks or poll the Get Workflow Run endpoint for results.</p>
*/
public WorkflowRun create(WorkflowRunsCreateRequest request) {
return this.rawClient.create(request).body();
}

/**
* Run a workflow with a file. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* Run a workflow. A workflow is a sequence of steps that process files and data in a specific order to achieve a desired outcome.
* <p>Pass <code>file</code> for a single document, or <code>package</code> to process 2-50 files together as one package in a single run. Exactly one of <code>file</code> or <code>package</code> must be provided.</p>
* <p>The request returns immediately with a <code>PROCESSING</code> status. Use webhooks or poll the Get Workflow Run endpoint for results.</p>
*/
public WorkflowRun create(WorkflowRunsCreateRequest request, RequestOptions requestOptions) {
Expand Down
Loading
Loading