pulse-ts-sdk 1.0.4 → 1.0.6
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/README.md +1 -1
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +17 -0
- package/dist/cjs/Client.js +29 -4
- package/dist/cjs/api/client/requests/ExtractAsyncRequest.d.ts +7 -0
- package/dist/cjs/api/client/requests/ExtractAsyncRequest.js +4 -0
- package/dist/cjs/api/client/requests/ExtractRequest.d.ts +7 -0
- package/dist/cjs/api/client/requests/ExtractRequest.js +4 -0
- package/dist/cjs/api/resources/batch/client/Client.d.ts +141 -0
- package/dist/cjs/api/resources/batch/client/Client.js +361 -0
- package/dist/cjs/api/resources/batch/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/batch/client/index.js +17 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchExtractInput.d.ts +18 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchExtractInput.js +3 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchSchemaInput.d.ts +27 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchSchemaInput.js +3 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchSplitInput.d.ts +24 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchSplitInput.js +3 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchTablesInput.d.ts +19 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchTablesInput.js +3 -0
- package/dist/cjs/api/resources/batch/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/batch/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/batch/index.d.ts +1 -0
- package/dist/cjs/api/resources/batch/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/types/BatchExtractResponse.d.ts +16 -0
- package/dist/cjs/api/types/BatchExtractResponse.js +10 -0
- package/dist/cjs/api/types/BatchExtractionIds.d.ts +10 -0
- package/dist/cjs/api/types/BatchExtractionIds.js +3 -0
- package/dist/cjs/api/types/BatchInputSource.d.ts +12 -0
- package/dist/cjs/api/types/BatchInputSource.js +3 -0
- package/dist/cjs/api/types/BatchOutputDestination.d.ts +11 -0
- package/dist/cjs/api/types/BatchOutputDestination.js +3 -0
- package/dist/cjs/api/types/BatchSchemaResponse.d.ts +18 -0
- package/dist/cjs/api/types/BatchSchemaResponse.js +10 -0
- package/dist/cjs/api/types/BatchSplitResponse.d.ts +16 -0
- package/dist/cjs/api/types/BatchSplitResponse.js +10 -0
- package/dist/cjs/api/types/BatchTablesResponse.d.ts +16 -0
- package/dist/cjs/api/types/BatchTablesResponse.js +10 -0
- package/dist/cjs/api/types/ExtractInput.d.ts +7 -0
- package/dist/cjs/api/types/ExtractInput.js +4 -0
- package/dist/cjs/api/types/ExtractOptions.d.ts +7 -0
- package/dist/cjs/api/types/ExtractOptions.js +4 -0
- package/dist/cjs/api/types/ExtractResponse.d.ts +13 -2
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +7 -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 +17 -0
- package/dist/esm/Client.mjs +25 -0
- package/dist/esm/api/client/requests/ExtractAsyncRequest.d.mts +7 -0
- package/dist/esm/api/client/requests/ExtractAsyncRequest.mjs +4 -0
- package/dist/esm/api/client/requests/ExtractRequest.d.mts +7 -0
- package/dist/esm/api/client/requests/ExtractRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/Client.d.mts +141 -0
- package/dist/esm/api/resources/batch/client/Client.mjs +324 -0
- package/dist/esm/api/resources/batch/client/index.d.mts +1 -0
- package/dist/esm/api/resources/batch/client/index.mjs +1 -0
- package/dist/esm/api/resources/batch/client/requests/BatchExtractInput.d.mts +18 -0
- package/dist/esm/api/resources/batch/client/requests/BatchExtractInput.mjs +2 -0
- package/dist/esm/api/resources/batch/client/requests/BatchSchemaInput.d.mts +27 -0
- package/dist/esm/api/resources/batch/client/requests/BatchSchemaInput.mjs +2 -0
- package/dist/esm/api/resources/batch/client/requests/BatchSplitInput.d.mts +24 -0
- package/dist/esm/api/resources/batch/client/requests/BatchSplitInput.mjs +2 -0
- package/dist/esm/api/resources/batch/client/requests/BatchTablesInput.d.mts +19 -0
- package/dist/esm/api/resources/batch/client/requests/BatchTablesInput.mjs +2 -0
- package/dist/esm/api/resources/batch/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/batch/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/batch/index.d.mts +1 -0
- package/dist/esm/api/resources/batch/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/types/BatchExtractResponse.d.mts +16 -0
- package/dist/esm/api/types/BatchExtractResponse.mjs +7 -0
- package/dist/esm/api/types/BatchExtractionIds.d.mts +10 -0
- package/dist/esm/api/types/BatchExtractionIds.mjs +2 -0
- package/dist/esm/api/types/BatchInputSource.d.mts +12 -0
- package/dist/esm/api/types/BatchInputSource.mjs +2 -0
- package/dist/esm/api/types/BatchOutputDestination.d.mts +11 -0
- package/dist/esm/api/types/BatchOutputDestination.mjs +2 -0
- package/dist/esm/api/types/BatchSchemaResponse.d.mts +18 -0
- package/dist/esm/api/types/BatchSchemaResponse.mjs +7 -0
- package/dist/esm/api/types/BatchSplitResponse.d.mts +16 -0
- package/dist/esm/api/types/BatchSplitResponse.mjs +7 -0
- package/dist/esm/api/types/BatchTablesResponse.d.mts +16 -0
- package/dist/esm/api/types/BatchTablesResponse.mjs +7 -0
- package/dist/esm/api/types/ExtractInput.d.mts +7 -0
- package/dist/esm/api/types/ExtractInput.mjs +4 -0
- package/dist/esm/api/types/ExtractOptions.d.mts +7 -0
- package/dist/esm/api/types/ExtractOptions.mjs +4 -0
- package/dist/esm/api/types/ExtractResponse.d.mts +13 -2
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +332 -0
package/README.md
CHANGED
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "pulse-ts-sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.0.
|
|
47
|
-
"User-Agent": "pulse-ts-sdk/1.0.
|
|
46
|
+
"X-Fern-SDK-Version": "1.0.6",
|
|
47
|
+
"User-Agent": "pulse-ts-sdk/1.0.6",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as Pulse from "./api/index.js";
|
|
2
|
+
import { BatchClient } from "./api/resources/batch/client/Client.js";
|
|
2
3
|
import { JobsClient } from "./api/resources/jobs/client/Client.js";
|
|
3
4
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.js";
|
|
4
5
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
@@ -11,9 +12,11 @@ export declare namespace PulseClient {
|
|
|
11
12
|
}
|
|
12
13
|
export declare class PulseClient {
|
|
13
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<PulseClient.Options>;
|
|
15
|
+
protected _batch: BatchClient | undefined;
|
|
14
16
|
protected _jobs: JobsClient | undefined;
|
|
15
17
|
protected _webhooks: WebhooksClient | undefined;
|
|
16
18
|
constructor(options?: PulseClient.Options);
|
|
19
|
+
get batch(): BatchClient;
|
|
17
20
|
get jobs(): JobsClient;
|
|
18
21
|
get webhooks(): WebhooksClient;
|
|
19
22
|
/**
|
|
@@ -24,6 +27,9 @@ export declare class PulseClient {
|
|
|
24
27
|
* Set `async: true` to return immediately with a job_id for polling via
|
|
25
28
|
* GET /job/{jobId}. Otherwise processes synchronously.
|
|
26
29
|
*
|
|
30
|
+
* To process many files at once, see [Batch Extract](api:POST/batch/extract)
|
|
31
|
+
* or the [Batch Processing guide](/batch).
|
|
32
|
+
*
|
|
27
33
|
* @param {Pulse.ExtractRequest} request
|
|
28
34
|
* @param {PulseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
35
|
*
|
|
@@ -68,6 +74,9 @@ export declare class PulseClient {
|
|
|
68
74
|
*
|
|
69
75
|
* Set `async: true` to return immediately with a job_id for polling.
|
|
70
76
|
*
|
|
77
|
+
* To split many extractions at once, see [Batch Split](api:POST/batch/split)
|
|
78
|
+
* or the [Batch Processing guide](/batch).
|
|
79
|
+
*
|
|
71
80
|
* @param {Pulse.SplitInput} request
|
|
72
81
|
* @param {PulseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
82
|
*
|
|
@@ -98,6 +107,10 @@ export declare class PulseClient {
|
|
|
98
107
|
* Creates a versioned schema record that can be retrieved later.
|
|
99
108
|
* Set `async: true` to return immediately with a job_id for polling.
|
|
100
109
|
*
|
|
110
|
+
* To apply schemas across many extractions or splits at once, see
|
|
111
|
+
* [Batch Schema](api:POST/batch/schema) or the
|
|
112
|
+
* [Batch Processing guide](/batch).
|
|
113
|
+
*
|
|
101
114
|
* @param {Pulse.SchemaInput} request
|
|
102
115
|
* @param {PulseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
116
|
*
|
|
@@ -122,6 +135,10 @@ export declare class PulseClient {
|
|
|
122
135
|
* Set `async: true` to return immediately with a `tables_id` for
|
|
123
136
|
* polling via `GET /job/{tables_id}`.
|
|
124
137
|
*
|
|
138
|
+
* To extract tables from many extractions at once, see
|
|
139
|
+
* [Batch Tables](api:POST/batch/tables) or the
|
|
140
|
+
* [Batch Processing guide](/batch).
|
|
141
|
+
*
|
|
125
142
|
* @param {Pulse.TablesInput} request
|
|
126
143
|
* @param {PulseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
144
|
*
|
package/dist/cjs/Client.js
CHANGED
|
@@ -45,8 +45,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.PulseClient = void 0;
|
|
47
47
|
const Pulse = __importStar(require("./api/index.js"));
|
|
48
|
-
const Client_js_1 = require("./api/resources/
|
|
49
|
-
const Client_js_2 = require("./api/resources/
|
|
48
|
+
const Client_js_1 = require("./api/resources/batch/client/Client.js");
|
|
49
|
+
const Client_js_2 = require("./api/resources/jobs/client/Client.js");
|
|
50
|
+
const Client_js_3 = require("./api/resources/webhooks/client/Client.js");
|
|
50
51
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
51
52
|
const headers_js_1 = require("./core/headers.js");
|
|
52
53
|
const core = __importStar(require("./core/index.js"));
|
|
@@ -58,13 +59,17 @@ class PulseClient {
|
|
|
58
59
|
constructor(options = {}) {
|
|
59
60
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
60
61
|
}
|
|
62
|
+
get batch() {
|
|
63
|
+
var _a;
|
|
64
|
+
return ((_a = this._batch) !== null && _a !== void 0 ? _a : (this._batch = new Client_js_1.BatchClient(this._options)));
|
|
65
|
+
}
|
|
61
66
|
get jobs() {
|
|
62
67
|
var _a;
|
|
63
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
68
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_js_2.JobsClient(this._options)));
|
|
64
69
|
}
|
|
65
70
|
get webhooks() {
|
|
66
71
|
var _a;
|
|
67
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
72
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_3.WebhooksClient(this._options)));
|
|
68
73
|
}
|
|
69
74
|
/**
|
|
70
75
|
* The primary endpoint for the Pulse API. Parses uploaded documents or remote
|
|
@@ -74,6 +79,9 @@ class PulseClient {
|
|
|
74
79
|
* Set `async: true` to return immediately with a job_id for polling via
|
|
75
80
|
* GET /job/{jobId}. Otherwise processes synchronously.
|
|
76
81
|
*
|
|
82
|
+
* To process many files at once, see [Batch Extract](api:POST/batch/extract)
|
|
83
|
+
* or the [Batch Processing guide](/batch).
|
|
84
|
+
*
|
|
77
85
|
* @param {Pulse.ExtractRequest} request
|
|
78
86
|
* @param {PulseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
87
|
*
|
|
@@ -98,6 +106,9 @@ class PulseClient {
|
|
|
98
106
|
if (request.fileUrl != null) {
|
|
99
107
|
_request.append("fileUrl", request.fileUrl);
|
|
100
108
|
}
|
|
109
|
+
if (request.model != null) {
|
|
110
|
+
_request.append("model", request.model);
|
|
111
|
+
}
|
|
101
112
|
if (request.pages != null) {
|
|
102
113
|
_request.append("pages", request.pages);
|
|
103
114
|
}
|
|
@@ -216,6 +227,9 @@ class PulseClient {
|
|
|
216
227
|
if (request.fileUrl != null) {
|
|
217
228
|
_request.append("fileUrl", request.fileUrl);
|
|
218
229
|
}
|
|
230
|
+
if (request.model != null) {
|
|
231
|
+
_request.append("model", request.model);
|
|
232
|
+
}
|
|
219
233
|
if (request.pages != null) {
|
|
220
234
|
_request.append("pages", request.pages);
|
|
221
235
|
}
|
|
@@ -314,6 +328,9 @@ class PulseClient {
|
|
|
314
328
|
*
|
|
315
329
|
* Set `async: true` to return immediately with a job_id for polling.
|
|
316
330
|
*
|
|
331
|
+
* To split many extractions at once, see [Batch Split](api:POST/batch/split)
|
|
332
|
+
* or the [Batch Processing guide](/batch).
|
|
333
|
+
*
|
|
317
334
|
* @param {Pulse.SplitInput} request
|
|
318
335
|
* @param {PulseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
319
336
|
*
|
|
@@ -390,6 +407,10 @@ class PulseClient {
|
|
|
390
407
|
* Creates a versioned schema record that can be retrieved later.
|
|
391
408
|
* Set `async: true` to return immediately with a job_id for polling.
|
|
392
409
|
*
|
|
410
|
+
* To apply schemas across many extractions or splits at once, see
|
|
411
|
+
* [Batch Schema](api:POST/batch/schema) or the
|
|
412
|
+
* [Batch Processing guide](/batch).
|
|
413
|
+
*
|
|
393
414
|
* @param {Pulse.SchemaInput} request
|
|
394
415
|
* @param {PulseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
395
416
|
*
|
|
@@ -460,6 +481,10 @@ class PulseClient {
|
|
|
460
481
|
* Set `async: true` to return immediately with a `tables_id` for
|
|
461
482
|
* polling via `GET /job/{tables_id}`.
|
|
462
483
|
*
|
|
484
|
+
* To extract tables from many extractions at once, see
|
|
485
|
+
* [Batch Tables](api:POST/batch/tables) or the
|
|
486
|
+
* [Batch Processing guide](/batch).
|
|
487
|
+
*
|
|
463
488
|
* @param {Pulse.TablesInput} request
|
|
464
489
|
* @param {PulseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
465
490
|
*
|
|
@@ -8,6 +8,8 @@ export interface ExtractAsyncRequest {
|
|
|
8
8
|
file?: core.file.Uploadable | undefined;
|
|
9
9
|
/** Public or pre-signed URL that Pulse will download and extract. Required unless file is provided. */
|
|
10
10
|
fileUrl?: string;
|
|
11
|
+
/** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
|
|
12
|
+
model?: ExtractAsyncRequest.Model;
|
|
11
13
|
/** Page range filter supporting segments such as `1-2` or mixed ranges like `1-2,5`. */
|
|
12
14
|
pages?: string;
|
|
13
15
|
/** Settings that control how figures in the document are processed. These affect the markdown output directly (e.g. figure descriptions, chart-to-table conversion, image embedding) and do not produce additional output fields in the response. */
|
|
@@ -42,6 +44,11 @@ export interface ExtractAsyncRequest {
|
|
|
42
44
|
thinking?: boolean;
|
|
43
45
|
}
|
|
44
46
|
export declare namespace ExtractAsyncRequest {
|
|
47
|
+
/** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
|
|
48
|
+
const Model: {
|
|
49
|
+
readonly EnterprisePreview: "enterprise-preview";
|
|
50
|
+
};
|
|
51
|
+
type Model = (typeof Model)[keyof typeof Model];
|
|
45
52
|
/**
|
|
46
53
|
* Settings that control how figures in the document are processed. These affect the markdown output directly (e.g. figure descriptions, chart-to-table conversion, image embedding) and do not produce additional output fields in the response.
|
|
47
54
|
*/
|
|
@@ -4,6 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ExtractAsyncRequest = void 0;
|
|
5
5
|
var ExtractAsyncRequest;
|
|
6
6
|
(function (ExtractAsyncRequest) {
|
|
7
|
+
/** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
|
|
8
|
+
ExtractAsyncRequest.Model = {
|
|
9
|
+
EnterprisePreview: "enterprise-preview",
|
|
10
|
+
};
|
|
7
11
|
let Extensions;
|
|
8
12
|
(function (Extensions) {
|
|
9
13
|
let Chunking;
|
|
@@ -8,6 +8,8 @@ export interface ExtractRequest {
|
|
|
8
8
|
file?: core.file.Uploadable | undefined;
|
|
9
9
|
/** Public or pre-signed URL that Pulse will download and extract. Required unless file is provided. */
|
|
10
10
|
fileUrl?: string;
|
|
11
|
+
/** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
|
|
12
|
+
model?: ExtractRequest.Model;
|
|
11
13
|
/** Page range filter supporting segments such as `1-2` or mixed ranges like `1-2,5`. */
|
|
12
14
|
pages?: string;
|
|
13
15
|
/** Settings that control how figures in the document are processed. These affect the markdown output directly (e.g. figure descriptions, chart-to-table conversion, image embedding) and do not produce additional output fields in the response. */
|
|
@@ -42,6 +44,11 @@ export interface ExtractRequest {
|
|
|
42
44
|
thinking?: boolean;
|
|
43
45
|
}
|
|
44
46
|
export declare namespace ExtractRequest {
|
|
47
|
+
/** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
|
|
48
|
+
const Model: {
|
|
49
|
+
readonly EnterprisePreview: "enterprise-preview";
|
|
50
|
+
};
|
|
51
|
+
type Model = (typeof Model)[keyof typeof Model];
|
|
45
52
|
/**
|
|
46
53
|
* Settings that control how figures in the document are processed. These affect the markdown output directly (e.g. figure descriptions, chart-to-table conversion, image embedding) and do not produce additional output fields in the response.
|
|
47
54
|
*/
|
|
@@ -4,6 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ExtractRequest = void 0;
|
|
5
5
|
var ExtractRequest;
|
|
6
6
|
(function (ExtractRequest) {
|
|
7
|
+
/** Extraction model to use. When set to `enterprise-preview`, routes the request through Pulse's self-hosted VPC extraction model instead of the default cloud-based service. If omitted or set to any other value, the default model is used. */
|
|
8
|
+
ExtractRequest.Model = {
|
|
9
|
+
EnterprisePreview: "enterprise-preview",
|
|
10
|
+
};
|
|
7
11
|
let Extensions;
|
|
8
12
|
(function (Extensions) {
|
|
9
13
|
let Chunking;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Pulse from "../../../index.js";
|
|
5
|
+
export declare namespace BatchClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class BatchClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<BatchClient.Options>;
|
|
12
|
+
constructor(options?: BatchClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Process multiple files in parallel. Enumerates files from an input
|
|
15
|
+
* source (S3 prefix, local directory, or URL list), calls
|
|
16
|
+
* [Extract](api:POST/extract) for each file, and saves results to an
|
|
17
|
+
* output destination.
|
|
18
|
+
*
|
|
19
|
+
* Always asynchronous — returns a batch job ID immediately.
|
|
20
|
+
* Poll [GET /job/{jobId}](api:GET/job/{jobId}) for real-time progress
|
|
21
|
+
* including per-file completion status.
|
|
22
|
+
*
|
|
23
|
+
* See the [Extract](api:POST/extract) endpoint for details on
|
|
24
|
+
* `extract_options` and the [Batch Processing guide](/batch) for
|
|
25
|
+
* an overview of the batch pipeline.
|
|
26
|
+
*
|
|
27
|
+
* @param {Pulse.BatchExtractInput} request
|
|
28
|
+
* @param {BatchClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link Pulse.BadRequestError}
|
|
31
|
+
* @throws {@link Pulse.UnauthorizedError}
|
|
32
|
+
* @throws {@link Pulse.TooManyRequestsError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.batch.extract({
|
|
36
|
+
* input: {},
|
|
37
|
+
* output: {}
|
|
38
|
+
* })
|
|
39
|
+
*/
|
|
40
|
+
extract(request: Pulse.BatchExtractInput, requestOptions?: BatchClient.RequestOptions): core.HttpResponsePromise<Pulse.BatchExtractResponse>;
|
|
41
|
+
private __extract;
|
|
42
|
+
/**
|
|
43
|
+
* Apply schema extraction to multiple items in parallel.
|
|
44
|
+
* Mode is inferred from the input:
|
|
45
|
+
*
|
|
46
|
+
* **Single mode** — Provide `extraction_ids` or `batch_extract_id`
|
|
47
|
+
* with `schema_config` to apply one schema to each extraction.
|
|
48
|
+
*
|
|
49
|
+
* **Split mode** — Provide `split_ids` or `batch_split_id`
|
|
50
|
+
* with `split_schema_config` to apply per-topic schemas to each split.
|
|
51
|
+
*
|
|
52
|
+
* Each child call goes through the full [Schema](api:POST/schema) code
|
|
53
|
+
* path. Poll [GET /job/{jobId}](api:GET/job/{jobId}) for real-time
|
|
54
|
+
* progress.
|
|
55
|
+
*
|
|
56
|
+
* See the [Schema](api:POST/schema) endpoint for details on
|
|
57
|
+
* `schema_config` and `split_schema_config`, and the
|
|
58
|
+
* [Batch Processing guide](/batch) for an overview of the batch
|
|
59
|
+
* pipeline.
|
|
60
|
+
*
|
|
61
|
+
* @param {Pulse.BatchSchemaInput} request
|
|
62
|
+
* @param {BatchClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Pulse.BadRequestError}
|
|
65
|
+
* @throws {@link Pulse.UnauthorizedError}
|
|
66
|
+
* @throws {@link Pulse.NotFoundError}
|
|
67
|
+
* @throws {@link Pulse.TooManyRequestsError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.batch.schema({
|
|
71
|
+
* output: {}
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
schema(request: Pulse.BatchSchemaInput, requestOptions?: BatchClient.RequestOptions): core.HttpResponsePromise<Pulse.BatchSchemaResponse>;
|
|
75
|
+
private __schema;
|
|
76
|
+
/**
|
|
77
|
+
* Extract tables from multiple existing extractions in parallel.
|
|
78
|
+
* Each child call goes through the full [Tables](api:POST/tables) code
|
|
79
|
+
* path.
|
|
80
|
+
*
|
|
81
|
+
* Extractions are identified by either a `batch_extract_id` (from a
|
|
82
|
+
* prior [Batch Extract](api:POST/batch/extract) run) or an explicit
|
|
83
|
+
* list of `extraction_ids`.
|
|
84
|
+
*
|
|
85
|
+
* Poll [GET /job/{jobId}](api:GET/job/{jobId}) for real-time progress.
|
|
86
|
+
*
|
|
87
|
+
* See the [Tables](api:POST/tables) endpoint for details on
|
|
88
|
+
* `tables_config` and the [Batch Processing guide](/batch) for an
|
|
89
|
+
* overview of the batch pipeline.
|
|
90
|
+
*
|
|
91
|
+
* @param {Pulse.BatchTablesInput} request
|
|
92
|
+
* @param {BatchClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link Pulse.BadRequestError}
|
|
95
|
+
* @throws {@link Pulse.UnauthorizedError}
|
|
96
|
+
* @throws {@link Pulse.NotFoundError}
|
|
97
|
+
* @throws {@link Pulse.TooManyRequestsError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.batch.tables({
|
|
101
|
+
* output: {}
|
|
102
|
+
* })
|
|
103
|
+
*/
|
|
104
|
+
tables(request: Pulse.BatchTablesInput, requestOptions?: BatchClient.RequestOptions): core.HttpResponsePromise<Pulse.BatchTablesResponse>;
|
|
105
|
+
private __tables;
|
|
106
|
+
/**
|
|
107
|
+
* Split multiple existing extractions by topics in parallel.
|
|
108
|
+
* Each child call goes through the full [Split](api:POST/split) code
|
|
109
|
+
* path.
|
|
110
|
+
*
|
|
111
|
+
* Extractions are identified by either a `batch_extract_id` (from a
|
|
112
|
+
* prior [Batch Extract](api:POST/batch/extract) run) or an explicit
|
|
113
|
+
* list of `extraction_ids`.
|
|
114
|
+
*
|
|
115
|
+
* Poll [GET /job/{jobId}](api:GET/job/{jobId}) for real-time progress.
|
|
116
|
+
*
|
|
117
|
+
* See the [Split](api:POST/split) endpoint for details on
|
|
118
|
+
* `split_config` and the [Batch Processing guide](/batch) for an
|
|
119
|
+
* overview of the batch pipeline.
|
|
120
|
+
*
|
|
121
|
+
* @param {Pulse.BatchSplitInput} request
|
|
122
|
+
* @param {BatchClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link Pulse.BadRequestError}
|
|
125
|
+
* @throws {@link Pulse.UnauthorizedError}
|
|
126
|
+
* @throws {@link Pulse.NotFoundError}
|
|
127
|
+
* @throws {@link Pulse.TooManyRequestsError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await client.batch.split({
|
|
131
|
+
* output: {},
|
|
132
|
+
* split_config: {
|
|
133
|
+
* split_input: [{
|
|
134
|
+
* name: "name"
|
|
135
|
+
* }]
|
|
136
|
+
* }
|
|
137
|
+
* })
|
|
138
|
+
*/
|
|
139
|
+
split(request: Pulse.BatchSplitInput, requestOptions?: BatchClient.RequestOptions): core.HttpResponsePromise<Pulse.BatchSplitResponse>;
|
|
140
|
+
private __split;
|
|
141
|
+
}
|