extend-ai 0.0.17 → 0.1.0
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/Client.d.ts +27 -27
- package/Client.js +37 -41
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/batchProcessorRun/client/Client.d.ts +3 -3
- package/api/resources/batchProcessorRun/client/Client.js +2 -6
- package/api/resources/batchWorkflowRun/client/Client.d.ts +3 -3
- package/api/resources/batchWorkflowRun/client/Client.js +2 -6
- package/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.d.ts +1 -1
- package/api/resources/edit/client/Client.d.ts +3 -3
- package/api/resources/edit/client/Client.js +2 -6
- package/api/resources/evaluationSet/client/Client.d.ts +3 -3
- package/api/resources/evaluationSet/client/Client.js +2 -6
- package/api/resources/evaluationSetItem/client/Client.d.ts +3 -3
- package/api/resources/evaluationSetItem/client/Client.js +2 -6
- package/api/resources/file/client/Client.d.ts +3 -3
- package/api/resources/file/client/Client.js +2 -6
- package/api/resources/index.d.ts +23 -23
- package/api/resources/index.js +24 -24
- package/api/resources/parserRun/client/Client.d.ts +3 -3
- package/api/resources/parserRun/client/Client.js +2 -6
- package/api/resources/processor/client/Client.d.ts +3 -3
- package/api/resources/processor/client/Client.js +2 -6
- package/api/resources/processorRun/client/Client.d.ts +4 -4
- package/api/resources/processorRun/client/Client.js +3 -7
- package/api/resources/processorVersion/client/Client.d.ts +23 -23
- package/api/resources/processorVersion/client/Client.js +49 -53
- package/api/resources/processorVersion/types/index.d.ts +1 -1
- package/api/resources/processorVersion/types/index.js +1 -1
- package/api/resources/workflow/client/Client.d.ts +3 -3
- package/api/resources/workflow/client/Client.js +2 -6
- package/api/resources/workflowRun/client/Client.d.ts +3 -3
- package/api/resources/workflowRun/client/Client.js +2 -6
- package/api/resources/workflowRunOutput/client/Client.d.ts +3 -3
- package/api/resources/workflowRunOutput/client/Client.js +2 -6
- package/api/types/EditBoundingBox.d.ts +4 -4
- package/api/types/ParseConfig.d.ts +1 -1
- package/api/types/ParseConfigAdvancedOptions.d.ts +11 -0
- package/api/types/ParseConfigAdvancedOptionsExcelParsingMode.d.ts +16 -0
- package/api/types/ParseConfigAdvancedOptionsExcelParsingMode.js +10 -0
- package/api/types/ParseConfigTarget.d.ts +1 -1
- package/api/types/ParserRun.d.ts +2 -0
- package/api/types/ParserRunOcr.d.ts +11 -0
- package/api/types/ParserRunOcrWordsItem.d.ts +14 -0
- package/api/types/ParserRunOcrWordsItemBoundingBox.d.ts +16 -0
- package/api/types/index.d.ts +132 -130
- package/api/types/index.js +132 -130
- package/dist/Client.d.ts +27 -27
- package/dist/Client.js +37 -41
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/batchProcessorRun/client/Client.d.ts +3 -3
- package/dist/api/resources/batchProcessorRun/client/Client.js +2 -6
- package/dist/api/resources/batchWorkflowRun/client/Client.d.ts +3 -3
- package/dist/api/resources/batchWorkflowRun/client/Client.js +2 -6
- package/dist/api/resources/batchWorkflowRun/types/BatchWorkflowRunCreateRequestInputsItem.d.ts +1 -1
- package/dist/api/resources/edit/client/Client.d.ts +3 -3
- package/dist/api/resources/edit/client/Client.js +2 -6
- package/dist/api/resources/evaluationSet/client/Client.d.ts +3 -3
- package/dist/api/resources/evaluationSet/client/Client.js +2 -6
- package/dist/api/resources/evaluationSetItem/client/Client.d.ts +3 -3
- package/dist/api/resources/evaluationSetItem/client/Client.js +2 -6
- package/dist/api/resources/file/client/Client.d.ts +3 -3
- package/dist/api/resources/file/client/Client.js +2 -6
- package/dist/api/resources/index.d.ts +23 -23
- package/dist/api/resources/index.js +24 -24
- package/dist/api/resources/parserRun/client/Client.d.ts +3 -3
- package/dist/api/resources/parserRun/client/Client.js +2 -6
- package/dist/api/resources/processor/client/Client.d.ts +3 -3
- package/dist/api/resources/processor/client/Client.js +2 -6
- package/dist/api/resources/processorRun/client/Client.d.ts +4 -4
- package/dist/api/resources/processorRun/client/Client.js +3 -7
- package/dist/api/resources/processorVersion/client/Client.d.ts +23 -23
- package/dist/api/resources/processorVersion/client/Client.js +49 -53
- package/dist/api/resources/processorVersion/types/index.d.ts +1 -1
- package/dist/api/resources/processorVersion/types/index.js +1 -1
- package/dist/api/resources/workflow/client/Client.d.ts +3 -3
- package/dist/api/resources/workflow/client/Client.js +2 -6
- package/dist/api/resources/workflowRun/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowRun/client/Client.js +2 -6
- package/dist/api/resources/workflowRunOutput/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowRunOutput/client/Client.js +2 -6
- package/dist/api/types/EditBoundingBox.d.ts +4 -4
- package/dist/api/types/ParseConfig.d.ts +1 -1
- package/dist/api/types/ParseConfigAdvancedOptions.d.ts +11 -0
- package/dist/api/types/ParseConfigAdvancedOptionsExcelParsingMode.d.ts +16 -0
- package/dist/api/types/ParseConfigAdvancedOptionsExcelParsingMode.js +10 -0
- package/dist/api/types/ParseConfigTarget.d.ts +1 -1
- package/dist/api/types/ParserRun.d.ts +2 -0
- package/dist/api/types/ParserRunOcr.d.ts +11 -0
- package/dist/api/types/ParserRunOcrWordsItem.d.ts +14 -0
- package/dist/api/types/ParserRunOcrWordsItem.js +5 -0
- package/dist/api/types/ParserRunOcrWordsItemBoundingBox.d.ts +16 -0
- package/dist/api/types/ParserRunOcrWordsItemBoundingBox.js +5 -0
- package/dist/api/types/index.d.ts +132 -130
- package/dist/api/types/index.js +132 -130
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +511 -511
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/OutputMetadata.d.ts +0 -5
- package/api/types/OutputMetadataValue.d.ts +0 -22
- package/dist/api/types/OutputMetadata.d.ts +0 -5
- package/dist/api/types/OutputMetadataValue.d.ts +0 -22
- /package/api/types/{OutputMetadata.js → ParserRunOcr.js} +0 -0
- /package/api/types/{OutputMetadataValue.js → ParserRunOcrWordsItem.js} +0 -0
- /package/{dist/api/types/OutputMetadata.js → api/types/ParserRunOcrWordsItemBoundingBox.js} +0 -0
- /package/dist/api/types/{OutputMetadataValue.js → ParserRunOcr.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import * as Extend from "./api/index";
|
|
7
|
+
import { File_ } from "./api/resources/file/client/Client";
|
|
8
|
+
import { ParserRun } from "./api/resources/parserRun/client/Client";
|
|
9
|
+
import { Edit } from "./api/resources/edit/client/Client";
|
|
10
|
+
import { Workflow } from "./api/resources/workflow/client/Client";
|
|
7
11
|
import { WorkflowRun } from "./api/resources/workflowRun/client/Client";
|
|
12
|
+
import { WorkflowRunOutput } from "./api/resources/workflowRunOutput/client/Client";
|
|
8
13
|
import { BatchWorkflowRun } from "./api/resources/batchWorkflowRun/client/Client";
|
|
14
|
+
import { BatchProcessorRun } from "./api/resources/batchProcessorRun/client/Client";
|
|
15
|
+
import { EvaluationSet } from "./api/resources/evaluationSet/client/Client";
|
|
16
|
+
import { EvaluationSetItem } from "./api/resources/evaluationSetItem/client/Client";
|
|
9
17
|
import { ProcessorRun } from "./api/resources/processorRun/client/Client";
|
|
10
18
|
import { Processor } from "./api/resources/processor/client/Client";
|
|
11
19
|
import { ProcessorVersion } from "./api/resources/processorVersion/client/Client";
|
|
12
|
-
import { ParserRun } from "./api/resources/parserRun/client/Client";
|
|
13
|
-
import { Edit } from "./api/resources/edit/client/Client";
|
|
14
|
-
import { File_ } from "./api/resources/file/client/Client";
|
|
15
|
-
import { EvaluationSet } from "./api/resources/evaluationSet/client/Client";
|
|
16
|
-
import { EvaluationSetItem } from "./api/resources/evaluationSetItem/client/Client";
|
|
17
|
-
import { WorkflowRunOutput } from "./api/resources/workflowRunOutput/client/Client";
|
|
18
|
-
import { BatchProcessorRun } from "./api/resources/batchProcessorRun/client/Client";
|
|
19
|
-
import { Workflow } from "./api/resources/workflow/client/Client";
|
|
20
20
|
export declare namespace ExtendClient {
|
|
21
21
|
interface Options {
|
|
22
22
|
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
23
23
|
/** Specify a custom URL to connect the client to. */
|
|
24
24
|
baseUrl?: core.Supplier<string>;
|
|
25
|
-
token
|
|
25
|
+
token: core.Supplier<core.BearerToken>;
|
|
26
26
|
/** Override the x-extend-api-version header */
|
|
27
27
|
extendApiVersion?: "2025-04-21";
|
|
28
28
|
/** Additional headers to include in requests. */
|
|
@@ -46,33 +46,33 @@ export declare namespace ExtendClient {
|
|
|
46
46
|
}
|
|
47
47
|
export declare class ExtendClient {
|
|
48
48
|
protected readonly _options: ExtendClient.Options;
|
|
49
|
+
protected _file: File_ | undefined;
|
|
50
|
+
protected _parserRun: ParserRun | undefined;
|
|
51
|
+
protected _edit: Edit | undefined;
|
|
52
|
+
protected _workflow: Workflow | undefined;
|
|
49
53
|
protected _workflowRun: WorkflowRun | undefined;
|
|
54
|
+
protected _workflowRunOutput: WorkflowRunOutput | undefined;
|
|
50
55
|
protected _batchWorkflowRun: BatchWorkflowRun | undefined;
|
|
56
|
+
protected _batchProcessorRun: BatchProcessorRun | undefined;
|
|
57
|
+
protected _evaluationSet: EvaluationSet | undefined;
|
|
58
|
+
protected _evaluationSetItem: EvaluationSetItem | undefined;
|
|
51
59
|
protected _processorRun: ProcessorRun | undefined;
|
|
52
60
|
protected _processor: Processor | undefined;
|
|
53
61
|
protected _processorVersion: ProcessorVersion | undefined;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
protected _workflowRunOutput: WorkflowRunOutput | undefined;
|
|
60
|
-
protected _batchProcessorRun: BatchProcessorRun | undefined;
|
|
61
|
-
protected _workflow: Workflow | undefined;
|
|
62
|
-
constructor(_options?: ExtendClient.Options);
|
|
62
|
+
constructor(_options: ExtendClient.Options);
|
|
63
|
+
get file(): File_;
|
|
64
|
+
get parserRun(): ParserRun;
|
|
65
|
+
get edit(): Edit;
|
|
66
|
+
get workflow(): Workflow;
|
|
63
67
|
get workflowRun(): WorkflowRun;
|
|
68
|
+
get workflowRunOutput(): WorkflowRunOutput;
|
|
64
69
|
get batchWorkflowRun(): BatchWorkflowRun;
|
|
70
|
+
get batchProcessorRun(): BatchProcessorRun;
|
|
71
|
+
get evaluationSet(): EvaluationSet;
|
|
72
|
+
get evaluationSetItem(): EvaluationSetItem;
|
|
65
73
|
get processorRun(): ProcessorRun;
|
|
66
74
|
get processor(): Processor;
|
|
67
75
|
get processorVersion(): ProcessorVersion;
|
|
68
|
-
get parserRun(): ParserRun;
|
|
69
|
-
get edit(): Edit;
|
|
70
|
-
get file(): File_;
|
|
71
|
-
get evaluationSet(): EvaluationSet;
|
|
72
|
-
get evaluationSetItem(): EvaluationSetItem;
|
|
73
|
-
get workflowRunOutput(): WorkflowRunOutput;
|
|
74
|
-
get batchProcessorRun(): BatchProcessorRun;
|
|
75
|
-
get workflow(): Workflow;
|
|
76
76
|
/**
|
|
77
77
|
* Parse files to get cleaned, chunked target content (e.g. markdown).
|
|
78
78
|
*
|
|
@@ -124,5 +124,5 @@ export declare class ExtendClient {
|
|
|
124
124
|
*/
|
|
125
125
|
parseAsync(request: Extend.ParseAsyncRequest, requestOptions?: ExtendClient.RequestOptions): core.HttpResponsePromise<Extend.ParserRunStatus>;
|
|
126
126
|
private __parseAsync;
|
|
127
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
127
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
128
128
|
}
|
package/Client.js
CHANGED
|
@@ -62,63 +62,63 @@ const core = __importStar(require("./core"));
|
|
|
62
62
|
const headers_1 = require("./core/headers");
|
|
63
63
|
const Extend = __importStar(require("./api/index"));
|
|
64
64
|
const errors = __importStar(require("./errors/index"));
|
|
65
|
-
const Client_1 = require("./api/resources/
|
|
66
|
-
const Client_2 = require("./api/resources/
|
|
67
|
-
const Client_3 = require("./api/resources/
|
|
68
|
-
const Client_4 = require("./api/resources/
|
|
69
|
-
const Client_5 = require("./api/resources/
|
|
70
|
-
const Client_6 = require("./api/resources/
|
|
71
|
-
const Client_7 = require("./api/resources/
|
|
72
|
-
const Client_8 = require("./api/resources/
|
|
65
|
+
const Client_1 = require("./api/resources/file/client/Client");
|
|
66
|
+
const Client_2 = require("./api/resources/parserRun/client/Client");
|
|
67
|
+
const Client_3 = require("./api/resources/edit/client/Client");
|
|
68
|
+
const Client_4 = require("./api/resources/workflow/client/Client");
|
|
69
|
+
const Client_5 = require("./api/resources/workflowRun/client/Client");
|
|
70
|
+
const Client_6 = require("./api/resources/workflowRunOutput/client/Client");
|
|
71
|
+
const Client_7 = require("./api/resources/batchWorkflowRun/client/Client");
|
|
72
|
+
const Client_8 = require("./api/resources/batchProcessorRun/client/Client");
|
|
73
73
|
const Client_9 = require("./api/resources/evaluationSet/client/Client");
|
|
74
74
|
const Client_10 = require("./api/resources/evaluationSetItem/client/Client");
|
|
75
|
-
const Client_11 = require("./api/resources/
|
|
76
|
-
const Client_12 = require("./api/resources/
|
|
77
|
-
const Client_13 = require("./api/resources/
|
|
75
|
+
const Client_11 = require("./api/resources/processorRun/client/Client");
|
|
76
|
+
const Client_12 = require("./api/resources/processor/client/Client");
|
|
77
|
+
const Client_13 = require("./api/resources/processorVersion/client/Client");
|
|
78
78
|
class ExtendClient {
|
|
79
|
-
constructor(_options
|
|
79
|
+
constructor(_options) {
|
|
80
80
|
var _a;
|
|
81
81
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
|
|
82
82
|
"x-extend-api-version": (_a = _options === null || _options === void 0 ? void 0 : _options.extendApiVersion) !== null && _a !== void 0 ? _a : "2025-04-21",
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "extend-ai",
|
|
85
|
-
"X-Fern-SDK-Version": "0.0
|
|
86
|
-
"User-Agent": "extend-ai/0.0
|
|
85
|
+
"X-Fern-SDK-Version": "0.1.0",
|
|
86
|
+
"User-Agent": "extend-ai/0.1.0",
|
|
87
87
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
88
88
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
89
89
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
90
90
|
}
|
|
91
|
-
get
|
|
91
|
+
get file() {
|
|
92
92
|
var _a;
|
|
93
|
-
return ((_a = this.
|
|
93
|
+
return ((_a = this._file) !== null && _a !== void 0 ? _a : (this._file = new Client_1.File_(this._options)));
|
|
94
94
|
}
|
|
95
|
-
get
|
|
95
|
+
get parserRun() {
|
|
96
96
|
var _a;
|
|
97
|
-
return ((_a = this.
|
|
97
|
+
return ((_a = this._parserRun) !== null && _a !== void 0 ? _a : (this._parserRun = new Client_2.ParserRun(this._options)));
|
|
98
98
|
}
|
|
99
|
-
get
|
|
99
|
+
get edit() {
|
|
100
100
|
var _a;
|
|
101
|
-
return ((_a = this.
|
|
101
|
+
return ((_a = this._edit) !== null && _a !== void 0 ? _a : (this._edit = new Client_3.Edit(this._options)));
|
|
102
102
|
}
|
|
103
|
-
get
|
|
103
|
+
get workflow() {
|
|
104
104
|
var _a;
|
|
105
|
-
return ((_a = this.
|
|
105
|
+
return ((_a = this._workflow) !== null && _a !== void 0 ? _a : (this._workflow = new Client_4.Workflow(this._options)));
|
|
106
106
|
}
|
|
107
|
-
get
|
|
107
|
+
get workflowRun() {
|
|
108
108
|
var _a;
|
|
109
|
-
return ((_a = this.
|
|
109
|
+
return ((_a = this._workflowRun) !== null && _a !== void 0 ? _a : (this._workflowRun = new Client_5.WorkflowRun(this._options)));
|
|
110
110
|
}
|
|
111
|
-
get
|
|
111
|
+
get workflowRunOutput() {
|
|
112
112
|
var _a;
|
|
113
|
-
return ((_a = this.
|
|
113
|
+
return ((_a = this._workflowRunOutput) !== null && _a !== void 0 ? _a : (this._workflowRunOutput = new Client_6.WorkflowRunOutput(this._options)));
|
|
114
114
|
}
|
|
115
|
-
get
|
|
115
|
+
get batchWorkflowRun() {
|
|
116
116
|
var _a;
|
|
117
|
-
return ((_a = this.
|
|
117
|
+
return ((_a = this._batchWorkflowRun) !== null && _a !== void 0 ? _a : (this._batchWorkflowRun = new Client_7.BatchWorkflowRun(this._options)));
|
|
118
118
|
}
|
|
119
|
-
get
|
|
119
|
+
get batchProcessorRun() {
|
|
120
120
|
var _a;
|
|
121
|
-
return ((_a = this.
|
|
121
|
+
return ((_a = this._batchProcessorRun) !== null && _a !== void 0 ? _a : (this._batchProcessorRun = new Client_8.BatchProcessorRun(this._options)));
|
|
122
122
|
}
|
|
123
123
|
get evaluationSet() {
|
|
124
124
|
var _a;
|
|
@@ -128,17 +128,17 @@ class ExtendClient {
|
|
|
128
128
|
var _a;
|
|
129
129
|
return ((_a = this._evaluationSetItem) !== null && _a !== void 0 ? _a : (this._evaluationSetItem = new Client_10.EvaluationSetItem(this._options)));
|
|
130
130
|
}
|
|
131
|
-
get
|
|
131
|
+
get processorRun() {
|
|
132
132
|
var _a;
|
|
133
|
-
return ((_a = this.
|
|
133
|
+
return ((_a = this._processorRun) !== null && _a !== void 0 ? _a : (this._processorRun = new Client_11.ProcessorRun(this._options)));
|
|
134
134
|
}
|
|
135
|
-
get
|
|
135
|
+
get processor() {
|
|
136
136
|
var _a;
|
|
137
|
-
return ((_a = this.
|
|
137
|
+
return ((_a = this._processor) !== null && _a !== void 0 ? _a : (this._processor = new Client_12.Processor(this._options)));
|
|
138
138
|
}
|
|
139
|
-
get
|
|
139
|
+
get processorVersion() {
|
|
140
140
|
var _a;
|
|
141
|
-
return ((_a = this.
|
|
141
|
+
return ((_a = this._processorVersion) !== null && _a !== void 0 ? _a : (this._processorVersion = new Client_13.ProcessorVersion(this._options)));
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
144
|
* Parse files to get cleaned, chunked target content (e.g. markdown).
|
|
@@ -314,11 +314,7 @@ class ExtendClient {
|
|
|
314
314
|
}
|
|
315
315
|
_getAuthorizationHeader() {
|
|
316
316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
-
|
|
318
|
-
if (bearer != null) {
|
|
319
|
-
return `Bearer ${bearer}`;
|
|
320
|
-
}
|
|
321
|
-
return undefined;
|
|
317
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
322
318
|
});
|
|
323
319
|
}
|
|
324
320
|
}
|
package/api/errors/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export * from "./BadRequestError";
|
|
|
2
2
|
export * from "./UnauthorizedError";
|
|
3
3
|
export * from "./NotFoundError";
|
|
4
4
|
export * from "./InternalServerError";
|
|
5
|
-
export * from "./TooManyRequestsError";
|
|
6
5
|
export * from "./PaymentRequiredError";
|
|
7
6
|
export * from "./UnprocessableEntityError";
|
|
7
|
+
export * from "./TooManyRequestsError";
|
package/api/errors/index.js
CHANGED
|
@@ -18,6 +18,6 @@ __exportStar(require("./BadRequestError"), exports);
|
|
|
18
18
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
19
19
|
__exportStar(require("./NotFoundError"), exports);
|
|
20
20
|
__exportStar(require("./InternalServerError"), exports);
|
|
21
|
-
__exportStar(require("./TooManyRequestsError"), exports);
|
|
22
21
|
__exportStar(require("./PaymentRequiredError"), exports);
|
|
23
22
|
__exportStar(require("./UnprocessableEntityError"), exports);
|
|
23
|
+
__exportStar(require("./TooManyRequestsError"), exports);
|
|
@@ -9,7 +9,7 @@ export declare namespace BatchProcessorRun {
|
|
|
9
9
|
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
13
|
/** Override the x-extend-api-version header */
|
|
14
14
|
extendApiVersion?: "2025-04-21";
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
@@ -33,7 +33,7 @@ export declare namespace BatchProcessorRun {
|
|
|
33
33
|
}
|
|
34
34
|
export declare class BatchProcessorRun {
|
|
35
35
|
protected readonly _options: BatchProcessorRun.Options;
|
|
36
|
-
constructor(_options
|
|
36
|
+
constructor(_options: BatchProcessorRun.Options);
|
|
37
37
|
/**
|
|
38
38
|
* Retrieve details about a batch processor run, including evaluation runs
|
|
39
39
|
*
|
|
@@ -51,5 +51,5 @@ export declare class BatchProcessorRun {
|
|
|
51
51
|
*/
|
|
52
52
|
get(id: string, requestOptions?: BatchProcessorRun.RequestOptions): core.HttpResponsePromise<Extend.BatchProcessorRunGetResponse>;
|
|
53
53
|
private __get;
|
|
54
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
54
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
55
55
|
}
|
|
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
|
|
|
52
52
|
const headers_1 = require("../../../../core/headers");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
54
54
|
class BatchProcessorRun {
|
|
55
|
-
constructor(_options
|
|
55
|
+
constructor(_options) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -127,11 +127,7 @@ class BatchProcessorRun {
|
|
|
127
127
|
}
|
|
128
128
|
_getAuthorizationHeader() {
|
|
129
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
-
|
|
131
|
-
if (bearer != null) {
|
|
132
|
-
return `Bearer ${bearer}`;
|
|
133
|
-
}
|
|
134
|
-
return undefined;
|
|
130
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
135
131
|
});
|
|
136
132
|
}
|
|
137
133
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace BatchWorkflowRun {
|
|
|
9
9
|
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
13
|
/** Override the x-extend-api-version header */
|
|
14
14
|
extendApiVersion?: "2025-04-21";
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
@@ -33,7 +33,7 @@ export declare namespace BatchWorkflowRun {
|
|
|
33
33
|
}
|
|
34
34
|
export declare class BatchWorkflowRun {
|
|
35
35
|
protected readonly _options: BatchWorkflowRun.Options;
|
|
36
|
-
constructor(_options
|
|
36
|
+
constructor(_options: BatchWorkflowRun.Options);
|
|
37
37
|
/**
|
|
38
38
|
* This endpoint allows you to efficiently initiate large batches of workflow runs in a single request (up to 1,000 in a single request, but you can queue up multiple batches in rapid succession). It accepts an array of inputs, each containing a file and metadata pair. The primary use case for this endpoint is for doing large bulk runs of >1000 files at a time that can process over the course of a few hours without needing to manage rate limits that would likely occur using the primary run endpoint.
|
|
39
39
|
*
|
|
@@ -64,5 +64,5 @@ export declare class BatchWorkflowRun {
|
|
|
64
64
|
*/
|
|
65
65
|
create(request: Extend.BatchWorkflowRunCreateRequest, requestOptions?: BatchWorkflowRun.RequestOptions): core.HttpResponsePromise<Extend.BatchWorkflowRunCreateResponse>;
|
|
66
66
|
private __create;
|
|
67
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
67
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
68
68
|
}
|
|
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
|
|
|
52
52
|
const headers_1 = require("../../../../core/headers");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
54
54
|
class BatchWorkflowRun {
|
|
55
|
-
constructor(_options
|
|
55
|
+
constructor(_options) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -146,11 +146,7 @@ class BatchWorkflowRun {
|
|
|
146
146
|
}
|
|
147
147
|
_getAuthorizationHeader() {
|
|
148
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
-
|
|
150
|
-
if (bearer != null) {
|
|
151
|
-
return `Bearer ${bearer}`;
|
|
152
|
-
}
|
|
153
|
-
return undefined;
|
|
149
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
154
150
|
});
|
|
155
151
|
}
|
|
156
152
|
}
|
|
@@ -9,6 +9,6 @@ export interface BatchWorkflowRunCreateRequestInputsItem {
|
|
|
9
9
|
rawText?: string;
|
|
10
10
|
/** An optional object containing arbitrary key-value pairs to associate with this specific workflow run. This metadata will be included in webhook payloads and responses when fetching the workflow run details. */
|
|
11
11
|
metadata?: Extend.JsonObject;
|
|
12
|
-
/** An optional object containing secrets to be used by processors within the workflow for this specific run.
|
|
12
|
+
/** An optional object containing secrets to be used by processors within the workflow for this specific run. */
|
|
13
13
|
secrets?: Record<string, unknown>;
|
|
14
14
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Edit {
|
|
|
9
9
|
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
13
|
/** Override the x-extend-api-version header */
|
|
14
14
|
extendApiVersion?: "2025-04-21";
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
@@ -33,7 +33,7 @@ export declare namespace Edit {
|
|
|
33
33
|
}
|
|
34
34
|
export declare class Edit {
|
|
35
35
|
protected readonly _options: Edit.Options;
|
|
36
|
-
constructor(_options
|
|
36
|
+
constructor(_options: Edit.Options);
|
|
37
37
|
/**
|
|
38
38
|
* Edit and manipulate PDF documents by detecting and filling form fields.
|
|
39
39
|
* This is a synchronous endpoint that will wait for the edit operation to complete (up to 5 minutes) before returning results. For longer operations, use the [Edit File Async](/developers/api-reference/edit-endpoints/edit-file-async) endpoint.
|
|
@@ -116,5 +116,5 @@ export declare class Edit {
|
|
|
116
116
|
*/
|
|
117
117
|
delete(id: string, requestOptions?: Edit.RequestOptions): core.HttpResponsePromise<Extend.EditDeleteResponse>;
|
|
118
118
|
private __delete;
|
|
119
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
119
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
120
120
|
}
|
|
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
|
|
|
52
52
|
const headers_1 = require("../../../../core/headers");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
54
54
|
class Edit {
|
|
55
|
-
constructor(_options
|
|
55
|
+
constructor(_options) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -357,11 +357,7 @@ class Edit {
|
|
|
357
357
|
}
|
|
358
358
|
_getAuthorizationHeader() {
|
|
359
359
|
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
-
|
|
361
|
-
if (bearer != null) {
|
|
362
|
-
return `Bearer ${bearer}`;
|
|
363
|
-
}
|
|
364
|
-
return undefined;
|
|
360
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
365
361
|
});
|
|
366
362
|
}
|
|
367
363
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace EvaluationSet {
|
|
|
9
9
|
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
13
|
/** Override the x-extend-api-version header */
|
|
14
14
|
extendApiVersion?: "2025-04-21";
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
@@ -33,7 +33,7 @@ export declare namespace EvaluationSet {
|
|
|
33
33
|
}
|
|
34
34
|
export declare class EvaluationSet {
|
|
35
35
|
protected readonly _options: EvaluationSet.Options;
|
|
36
|
-
constructor(_options
|
|
36
|
+
constructor(_options: EvaluationSet.Options);
|
|
37
37
|
/**
|
|
38
38
|
* List evaluation sets in your account. You can use the `processorId` parameter to filter evaluation sets by processor.
|
|
39
39
|
*
|
|
@@ -93,5 +93,5 @@ export declare class EvaluationSet {
|
|
|
93
93
|
*/
|
|
94
94
|
get(id: string, requestOptions?: EvaluationSet.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetGetResponse>;
|
|
95
95
|
private __get;
|
|
96
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
96
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
97
97
|
}
|
|
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
|
|
|
52
52
|
const headers_1 = require("../../../../core/headers");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
54
54
|
class EvaluationSet {
|
|
55
|
-
constructor(_options
|
|
55
|
+
constructor(_options) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -291,11 +291,7 @@ class EvaluationSet {
|
|
|
291
291
|
}
|
|
292
292
|
_getAuthorizationHeader() {
|
|
293
293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
-
|
|
295
|
-
if (bearer != null) {
|
|
296
|
-
return `Bearer ${bearer}`;
|
|
297
|
-
}
|
|
298
|
-
return undefined;
|
|
294
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
299
295
|
});
|
|
300
296
|
}
|
|
301
297
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace EvaluationSetItem {
|
|
|
9
9
|
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
13
|
/** Override the x-extend-api-version header */
|
|
14
14
|
extendApiVersion?: "2025-04-21";
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
@@ -33,7 +33,7 @@ export declare namespace EvaluationSetItem {
|
|
|
33
33
|
}
|
|
34
34
|
export declare class EvaluationSetItem {
|
|
35
35
|
protected readonly _options: EvaluationSetItem.Options;
|
|
36
|
-
constructor(_options
|
|
36
|
+
constructor(_options: EvaluationSetItem.Options);
|
|
37
37
|
/**
|
|
38
38
|
* List all items in a specific evaluation set. Evaluation set items are the individual files and expected outputs that are used to evaluate the performance of a given processor in Extend.
|
|
39
39
|
*
|
|
@@ -162,5 +162,5 @@ export declare class EvaluationSetItem {
|
|
|
162
162
|
*/
|
|
163
163
|
createBatch(request: Extend.EvaluationSetItemCreateBatchRequest, requestOptions?: EvaluationSetItem.RequestOptions): core.HttpResponsePromise<Extend.EvaluationSetItemCreateBatchResponse>;
|
|
164
164
|
private __createBatch;
|
|
165
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
165
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
166
166
|
}
|
|
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
|
|
|
52
52
|
const headers_1 = require("../../../../core/headers");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
54
54
|
class EvaluationSetItem {
|
|
55
|
-
constructor(_options
|
|
55
|
+
constructor(_options) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -479,11 +479,7 @@ class EvaluationSetItem {
|
|
|
479
479
|
}
|
|
480
480
|
_getAuthorizationHeader() {
|
|
481
481
|
return __awaiter(this, void 0, void 0, function* () {
|
|
482
|
-
|
|
483
|
-
if (bearer != null) {
|
|
484
|
-
return `Bearer ${bearer}`;
|
|
485
|
-
}
|
|
486
|
-
return undefined;
|
|
482
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
487
483
|
});
|
|
488
484
|
}
|
|
489
485
|
}
|
|
@@ -11,7 +11,7 @@ export declare namespace File_ {
|
|
|
11
11
|
environment?: core.Supplier<environments.ExtendEnvironment | string>;
|
|
12
12
|
/** Specify a custom URL to connect the client to. */
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
|
-
token
|
|
14
|
+
token: core.Supplier<core.BearerToken>;
|
|
15
15
|
/** Override the x-extend-api-version header */
|
|
16
16
|
extendApiVersion?: "2025-04-21";
|
|
17
17
|
/** Additional headers to include in requests. */
|
|
@@ -35,7 +35,7 @@ export declare namespace File_ {
|
|
|
35
35
|
}
|
|
36
36
|
export declare class File_ {
|
|
37
37
|
protected readonly _options: File_.Options;
|
|
38
|
-
constructor(_options
|
|
38
|
+
constructor(_options: File_.Options);
|
|
39
39
|
/**
|
|
40
40
|
* List files in your account. Files represent documents that have been uploaded to Extend. This endpoint returns a paginated response. You can use the `nextPageToken` to fetch subsequent results.
|
|
41
41
|
*
|
|
@@ -117,5 +117,5 @@ export declare class File_ {
|
|
|
117
117
|
*/
|
|
118
118
|
upload(file: File | fs.ReadStream | Blob, requestOptions?: File_.RequestOptions): core.HttpResponsePromise<Extend.FileUploadResponse>;
|
|
119
119
|
private __upload;
|
|
120
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
120
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
121
121
|
}
|
|
@@ -52,7 +52,7 @@ const Extend = __importStar(require("../../../index"));
|
|
|
52
52
|
const headers_1 = require("../../../../core/headers");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
54
54
|
class File_ {
|
|
55
|
-
constructor(_options
|
|
55
|
+
constructor(_options) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -370,11 +370,7 @@ class File_ {
|
|
|
370
370
|
}
|
|
371
371
|
_getAuthorizationHeader() {
|
|
372
372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
-
|
|
374
|
-
if (bearer != null) {
|
|
375
|
-
return `Bearer ${bearer}`;
|
|
376
|
-
}
|
|
377
|
-
return undefined;
|
|
373
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
378
374
|
});
|
|
379
375
|
}
|
|
380
376
|
}
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
+
export * as file from "./file";
|
|
2
|
+
export * from "./file/types";
|
|
3
|
+
export * as parserRun from "./parserRun";
|
|
4
|
+
export * from "./parserRun/types";
|
|
5
|
+
export * as edit from "./edit";
|
|
6
|
+
export * from "./edit/types";
|
|
7
|
+
export * as workflow from "./workflow";
|
|
8
|
+
export * from "./workflow/types";
|
|
1
9
|
export * as workflowRun from "./workflowRun";
|
|
2
10
|
export * from "./workflowRun/types";
|
|
11
|
+
export * as workflowRunOutput from "./workflowRunOutput";
|
|
12
|
+
export * from "./workflowRunOutput/types";
|
|
3
13
|
export * as batchWorkflowRun from "./batchWorkflowRun";
|
|
4
14
|
export * from "./batchWorkflowRun/types";
|
|
15
|
+
export * as batchProcessorRun from "./batchProcessorRun";
|
|
16
|
+
export * from "./batchProcessorRun/types";
|
|
17
|
+
export * as evaluationSet from "./evaluationSet";
|
|
18
|
+
export * from "./evaluationSet/types";
|
|
19
|
+
export * as evaluationSetItem from "./evaluationSetItem";
|
|
20
|
+
export * from "./evaluationSetItem/types";
|
|
5
21
|
export * as processorRun from "./processorRun";
|
|
6
22
|
export * from "./processorRun/types";
|
|
7
23
|
export * as processor from "./processor";
|
|
8
24
|
export * from "./processor/types";
|
|
9
25
|
export * as processorVersion from "./processorVersion";
|
|
10
26
|
export * from "./processorVersion/types";
|
|
11
|
-
export *
|
|
12
|
-
export * from "./parserRun/
|
|
13
|
-
export *
|
|
14
|
-
export * from "./
|
|
15
|
-
export * as file from "./file";
|
|
16
|
-
export * from "./file/types";
|
|
17
|
-
export * as evaluationSet from "./evaluationSet";
|
|
18
|
-
export * from "./evaluationSet/types";
|
|
19
|
-
export * as evaluationSetItem from "./evaluationSetItem";
|
|
20
|
-
export * from "./evaluationSetItem/types";
|
|
21
|
-
export * as workflowRunOutput from "./workflowRunOutput";
|
|
22
|
-
export * from "./workflowRunOutput/types";
|
|
23
|
-
export * as batchProcessorRun from "./batchProcessorRun";
|
|
24
|
-
export * from "./batchProcessorRun/types";
|
|
25
|
-
export * as workflow from "./workflow";
|
|
26
|
-
export * from "./workflow/types";
|
|
27
|
+
export * from "./file/client/requests";
|
|
28
|
+
export * from "./parserRun/client/requests";
|
|
29
|
+
export * from "./edit/client/requests";
|
|
30
|
+
export * from "./workflow/client/requests";
|
|
27
31
|
export * from "./workflowRun/client/requests";
|
|
32
|
+
export * from "./workflowRunOutput/client/requests";
|
|
28
33
|
export * from "./batchWorkflowRun/client/requests";
|
|
34
|
+
export * from "./evaluationSet/client/requests";
|
|
35
|
+
export * from "./evaluationSetItem/client/requests";
|
|
29
36
|
export * from "./processorRun/client/requests";
|
|
30
37
|
export * from "./processor/client/requests";
|
|
31
38
|
export * from "./processorVersion/client/requests";
|
|
32
|
-
export * from "./parserRun/client/requests";
|
|
33
|
-
export * from "./edit/client/requests";
|
|
34
|
-
export * from "./file/client/requests";
|
|
35
|
-
export * from "./evaluationSet/client/requests";
|
|
36
|
-
export * from "./evaluationSetItem/client/requests";
|
|
37
|
-
export * from "./workflowRunOutput/client/requests";
|
|
38
|
-
export * from "./workflow/client/requests";
|