pulse-ts-sdk 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +18 -2
- package/dist/cjs/api/client/requests/ExtractAsyncRequest.d.ts +13 -2
- package/dist/cjs/api/client/requests/ExtractRequest.d.ts +13 -2
- package/dist/cjs/api/errors/GoneError.d.ts +6 -0
- package/dist/cjs/api/errors/GoneError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +1 -0
- package/dist/cjs/api/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/index.js +5 -1
- package/dist/cjs/api/resources/largeResults/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/largeResults/client/Client.js +121 -0
- package/dist/cjs/api/resources/largeResults/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/largeResults/client/index.js +17 -0
- package/dist/cjs/api/resources/largeResults/client/requests/GetLargeResultLargeResultsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/largeResults/client/requests/GetLargeResultLargeResultsRequest.js +3 -0
- package/dist/cjs/api/resources/largeResults/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/largeResults/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/largeResults/index.d.ts +1 -0
- package/dist/cjs/api/resources/largeResults/index.js +17 -0
- package/dist/cjs/api/resources/pipeline/client/Client.d.ts +55 -0
- package/dist/cjs/api/resources/pipeline/client/Client.js +145 -0
- package/dist/cjs/api/resources/pipeline/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/pipeline/client/index.js +17 -0
- package/dist/cjs/api/resources/pipeline/client/requests/PipelineExecuteInput.d.ts +17 -0
- package/dist/cjs/api/resources/pipeline/client/requests/PipelineExecuteInput.js +3 -0
- package/dist/cjs/api/resources/pipeline/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/pipeline/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/pipeline/index.d.ts +1 -0
- package/dist/cjs/api/resources/pipeline/index.js +17 -0
- package/dist/cjs/api/types/AsyncSubmissionResponse.d.ts +2 -0
- package/dist/cjs/api/types/BatchFileUpload.d.ts +6 -0
- package/dist/cjs/api/types/BatchFileUpload.js +3 -0
- package/dist/cjs/api/types/BatchInputSource.d.ts +4 -3
- package/dist/cjs/api/types/ExtractInput.d.ts +13 -2
- package/dist/cjs/api/types/ExtractLargeResultResponse.d.ts +25 -0
- package/dist/cjs/api/types/ExtractLargeResultResponse.js +3 -0
- package/dist/cjs/api/types/ExtractOptions.d.ts +13 -2
- package/dist/cjs/api/types/ExtractResponse.d.ts +3 -3
- package/dist/cjs/api/types/ExtractResultCore.d.ts +112 -0
- package/dist/cjs/api/types/ExtractResultCore.js +3 -0
- package/dist/cjs/api/types/GoneErrorBody.d.ts +9 -0
- package/dist/cjs/api/types/GoneErrorBody.js +3 -0
- package/dist/cjs/api/types/JobStatusResponse.d.ts +1 -1
- package/dist/cjs/api/types/PipelineBatchExtractResult.d.ts +13 -0
- package/dist/cjs/api/types/PipelineBatchExtractResult.js +3 -0
- package/dist/cjs/api/types/PipelineExecuteMultipartInput.d.ts +13 -0
- package/dist/cjs/api/types/PipelineExecuteMultipartInput.js +3 -0
- package/dist/cjs/api/types/PipelineExecuteResponse.d.ts +21 -0
- package/dist/cjs/api/types/PipelineExecuteResponse.js +11 -0
- package/dist/cjs/api/types/PipelineExtractResult.d.ts +118 -0
- package/dist/cjs/api/types/PipelineExtractResult.js +3 -0
- package/dist/cjs/api/types/PipelineResults.d.ts +14 -0
- package/dist/cjs/api/types/PipelineResults.js +3 -0
- package/dist/cjs/api/types/PipelineSchemaResult.d.ts +14 -0
- package/dist/cjs/api/types/PipelineSchemaResult.js +3 -0
- package/dist/cjs/api/types/PipelineSplitResult.d.ts +18 -0
- package/dist/cjs/api/types/PipelineSplitResult.js +3 -0
- package/dist/cjs/api/types/PipelineStepBatchExtractConfig.d.ts +146 -0
- package/dist/cjs/api/types/PipelineStepBatchExtractConfig.js +26 -0
- package/dist/cjs/api/types/PipelineSteps.d.ts +14 -0
- package/dist/cjs/api/types/PipelineSteps.js +3 -0
- package/dist/cjs/api/types/SingleSchemaResponse.d.ts +2 -0
- package/dist/cjs/api/types/SplitResponse.d.ts +1 -6
- package/dist/cjs/api/types/SplitResultCore.d.ts +12 -0
- package/dist/cjs/api/types/SplitResultCore.js +3 -0
- package/dist/cjs/api/types/SplitSchemaResponse.d.ts +2 -0
- package/dist/cjs/api/types/TablesConfig.d.ts +2 -0
- package/dist/cjs/api/types/TablesResponse.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +14 -0
- package/dist/cjs/api/types/index.js +14 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +16 -0
- package/dist/esm/api/client/requests/ExtractAsyncRequest.d.mts +13 -2
- package/dist/esm/api/client/requests/ExtractRequest.d.mts +13 -2
- package/dist/esm/api/errors/GoneError.d.mts +6 -0
- package/dist/esm/api/errors/GoneError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/index.mjs +4 -0
- package/dist/esm/api/resources/largeResults/client/Client.d.mts +35 -0
- package/dist/esm/api/resources/largeResults/client/Client.mjs +84 -0
- package/dist/esm/api/resources/largeResults/client/index.d.mts +1 -0
- package/dist/esm/api/resources/largeResults/client/index.mjs +1 -0
- package/dist/esm/api/resources/largeResults/client/requests/GetLargeResultLargeResultsRequest.d.mts +10 -0
- package/dist/esm/api/resources/largeResults/client/requests/GetLargeResultLargeResultsRequest.mjs +2 -0
- package/dist/esm/api/resources/largeResults/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/largeResults/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/largeResults/index.d.mts +1 -0
- package/dist/esm/api/resources/largeResults/index.mjs +1 -0
- package/dist/esm/api/resources/pipeline/client/Client.d.mts +55 -0
- package/dist/esm/api/resources/pipeline/client/Client.mjs +108 -0
- package/dist/esm/api/resources/pipeline/client/index.d.mts +1 -0
- package/dist/esm/api/resources/pipeline/client/index.mjs +1 -0
- package/dist/esm/api/resources/pipeline/client/requests/PipelineExecuteInput.d.mts +17 -0
- package/dist/esm/api/resources/pipeline/client/requests/PipelineExecuteInput.mjs +2 -0
- package/dist/esm/api/resources/pipeline/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/pipeline/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/pipeline/index.d.mts +1 -0
- package/dist/esm/api/resources/pipeline/index.mjs +1 -0
- package/dist/esm/api/types/AsyncSubmissionResponse.d.mts +2 -0
- package/dist/esm/api/types/BatchFileUpload.d.mts +6 -0
- package/dist/esm/api/types/BatchFileUpload.mjs +2 -0
- package/dist/esm/api/types/BatchInputSource.d.mts +4 -3
- package/dist/esm/api/types/ExtractInput.d.mts +13 -2
- package/dist/esm/api/types/ExtractLargeResultResponse.d.mts +25 -0
- package/dist/esm/api/types/ExtractLargeResultResponse.mjs +2 -0
- package/dist/esm/api/types/ExtractOptions.d.mts +13 -2
- package/dist/esm/api/types/ExtractResponse.d.mts +3 -3
- package/dist/esm/api/types/ExtractResultCore.d.mts +112 -0
- package/dist/esm/api/types/ExtractResultCore.mjs +2 -0
- package/dist/esm/api/types/GoneErrorBody.d.mts +9 -0
- package/dist/esm/api/types/GoneErrorBody.mjs +2 -0
- package/dist/esm/api/types/JobStatusResponse.d.mts +1 -1
- package/dist/esm/api/types/PipelineBatchExtractResult.d.mts +13 -0
- package/dist/esm/api/types/PipelineBatchExtractResult.mjs +2 -0
- package/dist/esm/api/types/PipelineExecuteMultipartInput.d.mts +13 -0
- package/dist/esm/api/types/PipelineExecuteMultipartInput.mjs +2 -0
- package/dist/esm/api/types/PipelineExecuteResponse.d.mts +21 -0
- package/dist/esm/api/types/PipelineExecuteResponse.mjs +8 -0
- package/dist/esm/api/types/PipelineExtractResult.d.mts +118 -0
- package/dist/esm/api/types/PipelineExtractResult.mjs +2 -0
- package/dist/esm/api/types/PipelineResults.d.mts +14 -0
- package/dist/esm/api/types/PipelineResults.mjs +2 -0
- package/dist/esm/api/types/PipelineSchemaResult.d.mts +14 -0
- package/dist/esm/api/types/PipelineSchemaResult.mjs +2 -0
- package/dist/esm/api/types/PipelineSplitResult.d.mts +18 -0
- package/dist/esm/api/types/PipelineSplitResult.mjs +2 -0
- package/dist/esm/api/types/PipelineStepBatchExtractConfig.d.mts +146 -0
- package/dist/esm/api/types/PipelineStepBatchExtractConfig.mjs +23 -0
- package/dist/esm/api/types/PipelineSteps.d.mts +14 -0
- package/dist/esm/api/types/PipelineSteps.mjs +2 -0
- package/dist/esm/api/types/SingleSchemaResponse.d.mts +2 -0
- package/dist/esm/api/types/SplitResponse.d.mts +1 -6
- package/dist/esm/api/types/SplitResultCore.d.mts +12 -0
- package/dist/esm/api/types/SplitResultCore.mjs +2 -0
- package/dist/esm/api/types/SplitSchemaResponse.d.mts +2 -0
- package/dist/esm/api/types/TablesConfig.d.mts +2 -0
- package/dist/esm/api/types/TablesResponse.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +14 -0
- package/dist/esm/api/types/index.mjs +14 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +161 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Pulse from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Ordered step definitions. Key order determines execution order. Use `extract` for single-file or `batch_extract` for multi-file pipelines — they are mutually exclusive. Each step accepts the same configuration as its standalone endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export interface PipelineSteps {
|
|
6
|
+
/** Single-document extraction step. Same options as `POST /extract`. */
|
|
7
|
+
extract?: Pulse.ExtractOptions;
|
|
8
|
+
/** Multi-document parallel extraction step. Provide `file_urls` at the top level and optional `workers` here. */
|
|
9
|
+
batch_extract?: Pulse.PipelineStepBatchExtractConfig;
|
|
10
|
+
/** Structured data extraction step. Same config as `schema_config` in `POST /schema`. Requires `extract` or `batch_extract` before it. */
|
|
11
|
+
schema?: Pulse.SchemaConfig;
|
|
12
|
+
/** Topic splitting step. Same config as `split_config` in `POST /split`. Requires `extract` or `batch_extract` before it. */
|
|
13
|
+
split?: Pulse.SplitConfig;
|
|
14
|
+
}
|
|
@@ -13,4 +13,6 @@ export interface SingleSchemaResponse {
|
|
|
13
13
|
extraction_ids?: string[];
|
|
14
14
|
/** API path to download the filled Excel template (e.g. `/schema/{schema_id}/excel`). Requires the same API key authentication. Only present when `excel_template` was provided in the request. */
|
|
15
15
|
excel_output_url?: string;
|
|
16
|
+
/** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
|
|
17
|
+
credits_used?: number | null;
|
|
16
18
|
}
|
|
@@ -2,9 +2,4 @@ import type * as Pulse from "../index.mjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* Result of document splitting with page assignments.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
/** Unique identifier for this split result. Use this ID with the `/schema` endpoint (split mode) to apply schemas to specific page groups. */
|
|
7
|
-
split_id: string;
|
|
8
|
-
/** Page assignments per topic. */
|
|
9
|
-
split_output: Pulse.SplitOutput;
|
|
10
|
-
}
|
|
5
|
+
export type SplitResponse = Pulse.SplitResultCore;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Pulse from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Core split result fields shared by the synchronous `/split` endpoint and the pipeline split step.
|
|
4
|
+
*/
|
|
5
|
+
export interface SplitResultCore {
|
|
6
|
+
/** Unique identifier for this split result. Use this ID with the `/schema` endpoint (split mode) to apply schemas to specific page groups. */
|
|
7
|
+
split_id?: string;
|
|
8
|
+
/** Page assignments per topic. */
|
|
9
|
+
split_output?: Pulse.SplitOutput;
|
|
10
|
+
/** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
|
|
11
|
+
credits_used?: number | null;
|
|
12
|
+
}
|
|
@@ -13,4 +13,6 @@ export interface SplitSchemaResponse {
|
|
|
13
13
|
input_schemas?: Record<string, Record<string, unknown>>;
|
|
14
14
|
/** Per-topic errors if any topics failed to process. Keys are topic names, values are error messages. */
|
|
15
15
|
errors?: Record<string, string>;
|
|
16
|
+
/** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
|
|
17
|
+
credits_used?: number | null;
|
|
16
18
|
}
|
|
@@ -6,6 +6,8 @@ export interface TablesConfig {
|
|
|
6
6
|
merge?: boolean;
|
|
7
7
|
/** Output format for table content. Currently only `html` is supported. */
|
|
8
8
|
table_format?: TablesConfig.TableFormat;
|
|
9
|
+
/** Convert figures and charts into tables using LLM processing. Resulting tables have `from_chart: true` in the response. */
|
|
10
|
+
charts_to_tables?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export declare namespace TablesConfig {
|
|
11
13
|
/** Output format for table content. Currently only `html` is supported. */
|
|
@@ -6,6 +6,8 @@ export interface TablesResponse {
|
|
|
6
6
|
tables_id: string;
|
|
7
7
|
/** The extracted tables data. */
|
|
8
8
|
tables_output: TablesResponse.TablesOutput;
|
|
9
|
+
/** Number of credits consumed by this request. Only present when the organization has the credit billing system enabled. */
|
|
10
|
+
credits_used?: number | null;
|
|
9
11
|
}
|
|
10
12
|
export declare namespace TablesResponse {
|
|
11
13
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AsyncSubmissionResponse.mjs";
|
|
2
2
|
export * from "./BatchExtractionIds.mjs";
|
|
3
3
|
export * from "./BatchExtractResponse.mjs";
|
|
4
|
+
export * from "./BatchFileUpload.mjs";
|
|
4
5
|
export * from "./BatchInputSource.mjs";
|
|
5
6
|
export * from "./BatchOutputDestination.mjs";
|
|
6
7
|
export * from "./BatchSchemaResponse.mjs";
|
|
@@ -8,18 +9,31 @@ export * from "./BatchSplitResponse.mjs";
|
|
|
8
9
|
export * from "./BatchTablesResponse.mjs";
|
|
9
10
|
export * from "./ExtractAsyncSubmissionResponse.mjs";
|
|
10
11
|
export * from "./ExtractInput.mjs";
|
|
12
|
+
export * from "./ExtractLargeResultResponse.mjs";
|
|
11
13
|
export * from "./ExtractOptions.mjs";
|
|
12
14
|
export * from "./ExtractResponse.mjs";
|
|
15
|
+
export * from "./ExtractResultCore.mjs";
|
|
13
16
|
export * from "./ExtractSource.mjs";
|
|
17
|
+
export * from "./GoneErrorBody.mjs";
|
|
14
18
|
export * from "./JobCancellationResponse.mjs";
|
|
15
19
|
export * from "./JobStatus.mjs";
|
|
16
20
|
export * from "./JobStatusResponse.mjs";
|
|
21
|
+
export * from "./PipelineBatchExtractResult.mjs";
|
|
22
|
+
export * from "./PipelineExecuteMultipartInput.mjs";
|
|
23
|
+
export * from "./PipelineExecuteResponse.mjs";
|
|
24
|
+
export * from "./PipelineExtractResult.mjs";
|
|
25
|
+
export * from "./PipelineResults.mjs";
|
|
26
|
+
export * from "./PipelineSchemaResult.mjs";
|
|
27
|
+
export * from "./PipelineSplitResult.mjs";
|
|
28
|
+
export * from "./PipelineStepBatchExtractConfig.mjs";
|
|
29
|
+
export * from "./PipelineSteps.mjs";
|
|
17
30
|
export * from "./SchemaConfig.mjs";
|
|
18
31
|
export * from "./SchemaResponse.mjs";
|
|
19
32
|
export * from "./SingleSchemaResponse.mjs";
|
|
20
33
|
export * from "./SplitConfig.mjs";
|
|
21
34
|
export * from "./SplitOutput.mjs";
|
|
22
35
|
export * from "./SplitResponse.mjs";
|
|
36
|
+
export * from "./SplitResultCore.mjs";
|
|
23
37
|
export * from "./SplitSchemaResponse.mjs";
|
|
24
38
|
export * from "./StructuredOutputConfig.mjs";
|
|
25
39
|
export * from "./StructuredOutputResult.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AsyncSubmissionResponse.mjs";
|
|
2
2
|
export * from "./BatchExtractionIds.mjs";
|
|
3
3
|
export * from "./BatchExtractResponse.mjs";
|
|
4
|
+
export * from "./BatchFileUpload.mjs";
|
|
4
5
|
export * from "./BatchInputSource.mjs";
|
|
5
6
|
export * from "./BatchOutputDestination.mjs";
|
|
6
7
|
export * from "./BatchSchemaResponse.mjs";
|
|
@@ -8,18 +9,31 @@ export * from "./BatchSplitResponse.mjs";
|
|
|
8
9
|
export * from "./BatchTablesResponse.mjs";
|
|
9
10
|
export * from "./ExtractAsyncSubmissionResponse.mjs";
|
|
10
11
|
export * from "./ExtractInput.mjs";
|
|
12
|
+
export * from "./ExtractLargeResultResponse.mjs";
|
|
11
13
|
export * from "./ExtractOptions.mjs";
|
|
12
14
|
export * from "./ExtractResponse.mjs";
|
|
15
|
+
export * from "./ExtractResultCore.mjs";
|
|
13
16
|
export * from "./ExtractSource.mjs";
|
|
17
|
+
export * from "./GoneErrorBody.mjs";
|
|
14
18
|
export * from "./JobCancellationResponse.mjs";
|
|
15
19
|
export * from "./JobStatus.mjs";
|
|
16
20
|
export * from "./JobStatusResponse.mjs";
|
|
21
|
+
export * from "./PipelineBatchExtractResult.mjs";
|
|
22
|
+
export * from "./PipelineExecuteMultipartInput.mjs";
|
|
23
|
+
export * from "./PipelineExecuteResponse.mjs";
|
|
24
|
+
export * from "./PipelineExtractResult.mjs";
|
|
25
|
+
export * from "./PipelineResults.mjs";
|
|
26
|
+
export * from "./PipelineSchemaResult.mjs";
|
|
27
|
+
export * from "./PipelineSplitResult.mjs";
|
|
28
|
+
export * from "./PipelineStepBatchExtractConfig.mjs";
|
|
29
|
+
export * from "./PipelineSteps.mjs";
|
|
17
30
|
export * from "./SchemaConfig.mjs";
|
|
18
31
|
export * from "./SchemaResponse.mjs";
|
|
19
32
|
export * from "./SingleSchemaResponse.mjs";
|
|
20
33
|
export * from "./SplitConfig.mjs";
|
|
21
34
|
export * from "./SplitOutput.mjs";
|
|
22
35
|
export * from "./SplitResponse.mjs";
|
|
36
|
+
export * from "./SplitResultCore.mjs";
|
|
23
37
|
export * from "./SplitSchemaResponse.mjs";
|
|
24
38
|
export * from "./StructuredOutputConfig.mjs";
|
|
25
39
|
export * from "./StructuredOutputResult.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.9";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.9";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -759,6 +759,96 @@ await client.batch.split({
|
|
|
759
759
|
</dl>
|
|
760
760
|
|
|
761
761
|
|
|
762
|
+
</dd>
|
|
763
|
+
</dl>
|
|
764
|
+
</details>
|
|
765
|
+
|
|
766
|
+
## Pipeline
|
|
767
|
+
<details><summary><code>client.pipeline.<a href="/src/api/resources/pipeline/client/Client.ts">execute</a>({ ...params }) -> Pulse.PipelineExecuteResponse</code></summary>
|
|
768
|
+
<dl>
|
|
769
|
+
<dd>
|
|
770
|
+
|
|
771
|
+
#### 📝 Description
|
|
772
|
+
|
|
773
|
+
<dl>
|
|
774
|
+
<dd>
|
|
775
|
+
|
|
776
|
+
<dl>
|
|
777
|
+
<dd>
|
|
778
|
+
|
|
779
|
+
Chain multiple processing steps (extract, schema, split) into a single
|
|
780
|
+
request with inline configurations. No saved pipeline required.
|
|
781
|
+
|
|
782
|
+
The `steps` object defines what to run and in what order. Outputs flow
|
|
783
|
+
forward automatically — you never need to pass extraction IDs between
|
|
784
|
+
steps.
|
|
785
|
+
|
|
786
|
+
**Supported step combinations:**
|
|
787
|
+
- `extract` — extract a single document
|
|
788
|
+
- `extract` → `schema` — extract then apply structured schema
|
|
789
|
+
- `extract` → `split` — extract then split into topics
|
|
790
|
+
- `batch_extract` → `schema` — extract multiple files, combine into one schema output
|
|
791
|
+
|
|
792
|
+
**Document input:**
|
|
793
|
+
- Single file: provide `fileUrl` in JSON or `file` via multipart
|
|
794
|
+
- Multiple files (batch_extract): provide `fileUrls` in JSON or multiple `file` fields via multipart
|
|
795
|
+
|
|
796
|
+
Set `async: true` to return immediately with a `job_id` for polling via
|
|
797
|
+
`GET /job/{jobId}`.
|
|
798
|
+
|
|
799
|
+
Set `autoDelete: true` for zero-retention mode — all stored artifacts
|
|
800
|
+
are deleted immediately after you receive the results. Requires
|
|
801
|
+
`save_extractions` to be disabled for your organization.
|
|
802
|
+
|
|
803
|
+
Requires the `enable_adhoc_pipeline` feature flag.
|
|
804
|
+
</dd>
|
|
805
|
+
</dl>
|
|
806
|
+
</dd>
|
|
807
|
+
</dl>
|
|
808
|
+
|
|
809
|
+
#### 🔌 Usage
|
|
810
|
+
|
|
811
|
+
<dl>
|
|
812
|
+
<dd>
|
|
813
|
+
|
|
814
|
+
<dl>
|
|
815
|
+
<dd>
|
|
816
|
+
|
|
817
|
+
```typescript
|
|
818
|
+
await client.pipeline.execute({
|
|
819
|
+
steps: {}
|
|
820
|
+
});
|
|
821
|
+
|
|
822
|
+
```
|
|
823
|
+
</dd>
|
|
824
|
+
</dl>
|
|
825
|
+
</dd>
|
|
826
|
+
</dl>
|
|
827
|
+
|
|
828
|
+
#### ⚙️ Parameters
|
|
829
|
+
|
|
830
|
+
<dl>
|
|
831
|
+
<dd>
|
|
832
|
+
|
|
833
|
+
<dl>
|
|
834
|
+
<dd>
|
|
835
|
+
|
|
836
|
+
**request:** `Pulse.PipelineExecuteInput`
|
|
837
|
+
|
|
838
|
+
</dd>
|
|
839
|
+
</dl>
|
|
840
|
+
|
|
841
|
+
<dl>
|
|
842
|
+
<dd>
|
|
843
|
+
|
|
844
|
+
**requestOptions:** `PipelineClient.RequestOptions`
|
|
845
|
+
|
|
846
|
+
</dd>
|
|
847
|
+
</dl>
|
|
848
|
+
</dd>
|
|
849
|
+
</dl>
|
|
850
|
+
|
|
851
|
+
|
|
762
852
|
</dd>
|
|
763
853
|
</dl>
|
|
764
854
|
</details>
|
|
@@ -892,6 +982,77 @@ await client.jobs.cancelJob({
|
|
|
892
982
|
</dl>
|
|
893
983
|
|
|
894
984
|
|
|
985
|
+
</dd>
|
|
986
|
+
</dl>
|
|
987
|
+
</details>
|
|
988
|
+
|
|
989
|
+
## LargeResults
|
|
990
|
+
<details><summary><code>client.largeResults.<a href="/src/api/resources/largeResults/client/Client.ts">getLargeResult</a>({ ...params }) -> Pulse.ExtractResultCore</code></summary>
|
|
991
|
+
<dl>
|
|
992
|
+
<dd>
|
|
993
|
+
|
|
994
|
+
#### 📝 Description
|
|
995
|
+
|
|
996
|
+
<dl>
|
|
997
|
+
<dd>
|
|
998
|
+
|
|
999
|
+
<dl>
|
|
1000
|
+
<dd>
|
|
1001
|
+
|
|
1002
|
+
Download the full result for a large extraction (70+ pages).
|
|
1003
|
+
|
|
1004
|
+
When `/extract` or `GET /job/{jobId}` returns `is_url: true`, fetch
|
|
1005
|
+
the complete result from the URL provided. The URL is single-use:
|
|
1006
|
+
after a successful download the resource is deleted and subsequent
|
|
1007
|
+
requests return 410 Gone.
|
|
1008
|
+
</dd>
|
|
1009
|
+
</dl>
|
|
1010
|
+
</dd>
|
|
1011
|
+
</dl>
|
|
1012
|
+
|
|
1013
|
+
#### 🔌 Usage
|
|
1014
|
+
|
|
1015
|
+
<dl>
|
|
1016
|
+
<dd>
|
|
1017
|
+
|
|
1018
|
+
<dl>
|
|
1019
|
+
<dd>
|
|
1020
|
+
|
|
1021
|
+
```typescript
|
|
1022
|
+
await client.largeResults.getLargeResult({
|
|
1023
|
+
jobId: "jobId"
|
|
1024
|
+
});
|
|
1025
|
+
|
|
1026
|
+
```
|
|
1027
|
+
</dd>
|
|
1028
|
+
</dl>
|
|
1029
|
+
</dd>
|
|
1030
|
+
</dl>
|
|
1031
|
+
|
|
1032
|
+
#### ⚙️ Parameters
|
|
1033
|
+
|
|
1034
|
+
<dl>
|
|
1035
|
+
<dd>
|
|
1036
|
+
|
|
1037
|
+
<dl>
|
|
1038
|
+
<dd>
|
|
1039
|
+
|
|
1040
|
+
**request:** `Pulse.GetLargeResultLargeResultsRequest`
|
|
1041
|
+
|
|
1042
|
+
</dd>
|
|
1043
|
+
</dl>
|
|
1044
|
+
|
|
1045
|
+
<dl>
|
|
1046
|
+
<dd>
|
|
1047
|
+
|
|
1048
|
+
**requestOptions:** `LargeResultsClient.RequestOptions`
|
|
1049
|
+
|
|
1050
|
+
</dd>
|
|
1051
|
+
</dl>
|
|
1052
|
+
</dd>
|
|
1053
|
+
</dl>
|
|
1054
|
+
|
|
1055
|
+
|
|
895
1056
|
</dd>
|
|
896
1057
|
</dl>
|
|
897
1058
|
</details>
|