extend-ai 1.7.0 → 1.9.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/BaseClient.js +2 -2
- package/Client.d.ts +3 -0
- package/Client.js +53 -48
- package/api/resources/batchRuns/client/Client.d.ts +50 -0
- package/api/resources/batchRuns/client/Client.js +143 -0
- package/api/resources/batchRuns/client/index.d.ts +1 -0
- package/api/resources/batchRuns/client/index.js +2 -0
- package/api/resources/batchRuns/index.d.ts +1 -0
- package/api/resources/batchRuns/index.js +17 -0
- package/api/resources/classifierVersions/client/Client.d.ts +6 -3
- package/api/resources/classifierVersions/client/Client.js +6 -3
- package/api/resources/classifyRuns/client/Client.d.ts +57 -0
- package/api/resources/classifyRuns/client/Client.js +111 -1
- package/api/resources/classifyRuns/client/requests/ClassifyRunsCreateBatchRequest.d.ts +38 -0
- package/api/resources/classifyRuns/client/requests/ClassifyRunsListRequest.d.ts +6 -0
- package/api/resources/classifyRuns/client/requests/index.d.ts +1 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestClassifier.d.ts +11 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItem.d.ts +6 -0
- package/api/resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
- package/api/resources/classifyRuns/types/index.d.ts +3 -0
- package/api/resources/classifyRuns/types/index.js +3 -0
- package/api/resources/extractRuns/client/Client.d.ts +57 -0
- package/api/resources/extractRuns/client/Client.js +111 -1
- package/api/resources/extractRuns/client/requests/ExtractRunsCreateBatchRequest.d.ts +38 -0
- package/api/resources/extractRuns/client/requests/ExtractRunsListRequest.d.ts +6 -0
- package/api/resources/extractRuns/client/requests/index.d.ts +1 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestExtractor.d.ts +11 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItem.d.ts +6 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItem.js +3 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
- package/api/resources/extractRuns/types/ExtractRunsCreateBatchRequestInputsItemFile.js +3 -0
- package/api/resources/extractRuns/types/index.d.ts +3 -0
- package/api/resources/extractRuns/types/index.js +3 -0
- package/api/resources/extractorVersions/client/Client.d.ts +6 -3
- package/api/resources/extractorVersions/client/Client.js +6 -3
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/parseRuns/client/Client.d.ts +77 -0
- package/api/resources/parseRuns/client/Client.js +189 -0
- package/api/resources/parseRuns/client/requests/ParseRunsCreateBatchRequest.d.ts +35 -0
- package/api/resources/parseRuns/client/requests/ParseRunsCreateBatchRequest.js +3 -0
- package/api/resources/parseRuns/client/requests/ParseRunsListRequest.d.ts +27 -0
- package/api/resources/parseRuns/client/requests/ParseRunsListRequest.js +3 -0
- package/api/resources/parseRuns/client/requests/index.d.ts +2 -0
- package/api/resources/parseRuns/types/ParseRunsCreateBatchRequestInputsItem.d.ts +6 -0
- package/api/resources/parseRuns/types/ParseRunsCreateBatchRequestInputsItem.js +3 -0
- package/api/resources/parseRuns/types/ParseRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
- package/api/resources/parseRuns/types/ParseRunsCreateBatchRequestInputsItemFile.js +3 -0
- package/api/resources/parseRuns/types/ParseRunsListRequestStatus.d.ts +7 -0
- package/api/resources/parseRuns/types/ParseRunsListRequestStatus.js +10 -0
- package/api/resources/parseRuns/types/ParseRunsListResponse.d.ts +6 -0
- package/api/resources/parseRuns/types/ParseRunsListResponse.js +3 -0
- package/api/resources/parseRuns/types/index.d.ts +4 -0
- package/api/resources/parseRuns/types/index.js +4 -0
- package/api/resources/splitRuns/client/Client.d.ts +58 -0
- package/api/resources/splitRuns/client/Client.js +112 -1
- package/api/resources/splitRuns/client/requests/SplitRunsCreateBatchRequest.d.ts +38 -0
- package/api/resources/splitRuns/client/requests/SplitRunsCreateBatchRequest.js +3 -0
- package/api/resources/splitRuns/client/requests/SplitRunsListRequest.d.ts +6 -0
- package/api/resources/splitRuns/client/requests/index.d.ts +1 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItem.d.ts +6 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItem.js +3 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItemFile.d.ts +5 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestInputsItemFile.js +3 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestSplitter.d.ts +11 -0
- package/api/resources/splitRuns/types/SplitRunsCreateBatchRequestSplitter.js +3 -0
- package/api/resources/splitRuns/types/index.d.ts +3 -0
- package/api/resources/splitRuns/types/index.js +3 -0
- package/api/resources/splitterVersions/client/Client.d.ts +6 -3
- package/api/resources/splitterVersions/client/Client.js +6 -3
- package/api/resources/workflowVersions/client/Client.d.ts +6 -6
- package/api/resources/workflowVersions/client/Client.js +6 -6
- package/api/types/BatchParseRunCompletedWebhookEvent.d.ts +6 -0
- package/api/types/BatchParseRunCompletedWebhookEvent.js +3 -0
- package/api/types/BatchParseRunFailedWebhookEvent.d.ts +6 -0
- package/api/types/BatchParseRunFailedWebhookEvent.js +3 -0
- package/api/types/BatchProcessorRunCompletedWebhookEvent.d.ts +6 -0
- package/api/types/BatchProcessorRunCompletedWebhookEvent.js +3 -0
- package/api/types/BatchProcessorRunFailedWebhookEvent.d.ts +6 -0
- package/api/types/BatchProcessorRunFailedWebhookEvent.js +3 -0
- package/api/types/BatchRun.d.ts +9 -16
- package/api/types/BatchRunStatus.d.ts +7 -5
- package/api/types/BatchRunStatus.js +7 -5
- package/api/types/Block.d.ts +1 -0
- package/api/types/BlockDetails.d.ts +1 -1
- package/api/types/BlockType.d.ts +2 -0
- package/api/types/BlockType.js +2 -0
- package/api/types/FormulaDetails.d.ts +9 -0
- package/api/types/FormulaDetails.js +3 -0
- package/api/types/LegacyListProcessorsResponse.d.ts +1 -1
- package/api/types/ParseConfigAdvancedOptions.d.ts +10 -0
- package/api/types/ParseConfigAdvancedOptionsFormattingDetectionItem.d.ts +8 -0
- package/api/types/ParseConfigAdvancedOptionsFormattingDetectionItem.js +3 -0
- package/api/types/ParseConfigBlockOptions.d.ts +2 -0
- package/api/types/ParseConfigBlockOptionsFormulas.d.ts +7 -0
- package/api/types/ParseConfigBlockOptionsFormulas.js +3 -0
- package/api/types/ParseRun.d.ts +10 -1
- package/api/types/ParseRunStatusEnum.d.ts +2 -0
- package/api/types/ParseRunStatusEnum.js +2 -0
- package/api/types/ProcessorRunStatus.d.ts +2 -0
- package/api/types/ProcessorRunStatus.js +2 -0
- package/api/types/WebhookEndpointEventType.d.ts +4 -0
- package/api/types/WebhookEndpointEventType.js +4 -0
- package/api/types/WebhookEvent.d.ts +13 -1
- package/api/types/WebhookSubscriptionEventType.d.ts +5 -3
- package/api/types/WebhookSubscriptionEventType.js +5 -3
- package/api/types/index.d.ts +7 -8
- package/api/types/index.js +7 -8
- package/package.json +1 -1
- package/reference.md +574 -15
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/BatchProcessorRun.d.ts +0 -66
- package/api/types/BatchProcessorRunMetrics.d.ts +0 -6
- package/api/types/BatchProcessorRunOptions.d.ts +0 -9
- package/api/types/BatchProcessorRunSource.d.ts +0 -12
- package/api/types/BatchProcessorRunSource.js +0 -15
- package/api/types/BatchProcessorRunStatus.d.ts +0 -14
- package/api/types/BatchProcessorRunStatus.js +0 -17
- package/api/types/BatchRunEntity.d.ts +0 -18
- package/api/types/BatchRunEntityVersion.d.ts +0 -18
- package/api/types/BatchRunMetrics.d.ts +0 -6
- /package/api/{types/BatchProcessorRun.js → resources/classifyRuns/client/requests/ClassifyRunsCreateBatchRequest.js} +0 -0
- /package/api/{types/BatchProcessorRunMetrics.js → resources/classifyRuns/types/ClassifyRunsCreateBatchRequestClassifier.js} +0 -0
- /package/api/{types/BatchProcessorRunOptions.js → resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItem.js} +0 -0
- /package/api/{types/BatchRunEntity.js → resources/classifyRuns/types/ClassifyRunsCreateBatchRequestInputsItemFile.js} +0 -0
- /package/api/{types/BatchRunEntityVersion.js → resources/extractRuns/client/requests/ExtractRunsCreateBatchRequest.js} +0 -0
- /package/api/{types/BatchRunMetrics.js → resources/extractRuns/types/ExtractRunsCreateBatchRequestExtractor.js} +0 -0
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type * as Extend from "../index";
|
|
2
|
-
export interface BatchProcessorRun {
|
|
3
|
-
/** The type of response. In this case, it will always be `"batch_processor_run"`. */
|
|
4
|
-
object: string;
|
|
5
|
-
/**
|
|
6
|
-
* The unique identifier for this batch processor run.
|
|
7
|
-
*
|
|
8
|
-
* Example: `"batch_processor_run_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
9
|
-
*/
|
|
10
|
-
id: string;
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the processor used for this run.
|
|
13
|
-
*
|
|
14
|
-
* Example: `"ex_Xj8mK2pL9nR4vT7qY5wZ"`
|
|
15
|
-
*/
|
|
16
|
-
processorId: string;
|
|
17
|
-
/**
|
|
18
|
-
* The ID of the specific processor version used.
|
|
19
|
-
*
|
|
20
|
-
* Example: `"exv_xK9mLPqRtN3vS8wF5hB2cQ"`
|
|
21
|
-
*/
|
|
22
|
-
processorVersionId: string;
|
|
23
|
-
/**
|
|
24
|
-
* The name of the processor.
|
|
25
|
-
*
|
|
26
|
-
* Example: `"Invoice Processor"`
|
|
27
|
-
*/
|
|
28
|
-
processorName: string;
|
|
29
|
-
metrics: Extend.BatchProcessorRunMetrics;
|
|
30
|
-
/**
|
|
31
|
-
* The current status of the batch processor run:
|
|
32
|
-
* * `"PENDING"` - The batch processor run is waiting to start
|
|
33
|
-
* * `"PROCESSING"` - The batch processor run is in progress
|
|
34
|
-
* * `"PROCESSED"` - The batch processor run completed successfully
|
|
35
|
-
* * `"FAILED"` - The batch processor run encountered an error
|
|
36
|
-
*/
|
|
37
|
-
status: Extend.BatchProcessorRunStatus;
|
|
38
|
-
/**
|
|
39
|
-
* The source of the batch processor run:
|
|
40
|
-
* * `"EVAL_SET"` - The batch processor run was made from an evaluation set. The `sourceId` will be the ID of the evaluation set (e.g., `"ev_1234"`)
|
|
41
|
-
* * `"PLAYGROUND"` - The batch processor run was made from the playground. The `sourceId` will not be set
|
|
42
|
-
* * `"STUDIO"` - The batch processor run was made for a processor in Studio. The `sourceId` will be the ID of the processor (e.g., `"ex_1234"`)
|
|
43
|
-
*/
|
|
44
|
-
source: Extend.BatchProcessorRunSource;
|
|
45
|
-
/**
|
|
46
|
-
* The ID of the source of the batch processor run. See the `source` field for more details.
|
|
47
|
-
* Example: `"ev_1234"` for EVAL_SET source, `"ex_1234"` for STUDIO source
|
|
48
|
-
*/
|
|
49
|
-
sourceId?: string;
|
|
50
|
-
/** The number of runs that were made. */
|
|
51
|
-
runCount: number;
|
|
52
|
-
/** The options for the batch processor run. */
|
|
53
|
-
options: Extend.BatchProcessorRunOptions;
|
|
54
|
-
/**
|
|
55
|
-
* The time (in UTC) at which the batch processor run was created. Will follow the RFC 3339 format.
|
|
56
|
-
*
|
|
57
|
-
* Example: `"2024-03-21T15:30:00Z"`
|
|
58
|
-
*/
|
|
59
|
-
createdAt: string;
|
|
60
|
-
/**
|
|
61
|
-
* The time (in UTC) at which the batch processor run was last updated. Will follow the RFC 3339 format.
|
|
62
|
-
*
|
|
63
|
-
* Example: `"2024-03-21T16:45:00Z"`
|
|
64
|
-
*/
|
|
65
|
-
updatedAt: string;
|
|
66
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The source of the batch processor run:
|
|
3
|
-
* * `"EVAL_SET"` - The batch processor run was made from an evaluation set. The `sourceId` will be the ID of the evaluation set (e.g., `"ev_1234"`)
|
|
4
|
-
* * `"PLAYGROUND"` - The batch processor run was made from the playground. The `sourceId` will not be set
|
|
5
|
-
* * `"STUDIO"` - The batch processor run was made for a processor in Studio. The `sourceId` will be the ID of the processor (e.g., `"ex_1234"`)
|
|
6
|
-
*/
|
|
7
|
-
export declare const BatchProcessorRunSource: {
|
|
8
|
-
readonly EvalSet: "EVAL_SET";
|
|
9
|
-
readonly Playground: "PLAYGROUND";
|
|
10
|
-
readonly Studio: "STUDIO";
|
|
11
|
-
};
|
|
12
|
-
export type BatchProcessorRunSource = (typeof BatchProcessorRunSource)[keyof typeof BatchProcessorRunSource] | string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BatchProcessorRunSource = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* The source of the batch processor run:
|
|
7
|
-
* * `"EVAL_SET"` - The batch processor run was made from an evaluation set. The `sourceId` will be the ID of the evaluation set (e.g., `"ev_1234"`)
|
|
8
|
-
* * `"PLAYGROUND"` - The batch processor run was made from the playground. The `sourceId` will not be set
|
|
9
|
-
* * `"STUDIO"` - The batch processor run was made for a processor in Studio. The `sourceId` will be the ID of the processor (e.g., `"ex_1234"`)
|
|
10
|
-
*/
|
|
11
|
-
exports.BatchProcessorRunSource = {
|
|
12
|
-
EvalSet: "EVAL_SET",
|
|
13
|
-
Playground: "PLAYGROUND",
|
|
14
|
-
Studio: "STUDIO",
|
|
15
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The current status of the batch processor run:
|
|
3
|
-
* * `"PENDING"` - The batch processor run is waiting to start
|
|
4
|
-
* * `"PROCESSING"` - The batch processor run is in progress
|
|
5
|
-
* * `"PROCESSED"` - The batch processor run completed successfully
|
|
6
|
-
* * `"FAILED"` - The batch processor run encountered an error
|
|
7
|
-
*/
|
|
8
|
-
export declare const BatchProcessorRunStatus: {
|
|
9
|
-
readonly Pending: "PENDING";
|
|
10
|
-
readonly Processing: "PROCESSING";
|
|
11
|
-
readonly Processed: "PROCESSED";
|
|
12
|
-
readonly Failed: "FAILED";
|
|
13
|
-
};
|
|
14
|
-
export type BatchProcessorRunStatus = (typeof BatchProcessorRunStatus)[keyof typeof BatchProcessorRunStatus] | string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BatchProcessorRunStatus = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* The current status of the batch processor run:
|
|
7
|
-
* * `"PENDING"` - The batch processor run is waiting to start
|
|
8
|
-
* * `"PROCESSING"` - The batch processor run is in progress
|
|
9
|
-
* * `"PROCESSED"` - The batch processor run completed successfully
|
|
10
|
-
* * `"FAILED"` - The batch processor run encountered an error
|
|
11
|
-
*/
|
|
12
|
-
exports.BatchProcessorRunStatus = {
|
|
13
|
-
Pending: "PENDING",
|
|
14
|
-
Processing: "PROCESSING",
|
|
15
|
-
Processed: "PROCESSED",
|
|
16
|
-
Failed: "FAILED",
|
|
17
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type * as Extend from "../index";
|
|
2
|
-
/**
|
|
3
|
-
* The extractor, classifier, or splitter that was run.
|
|
4
|
-
*
|
|
5
|
-
* **Availability:** Present when an entity was provided when creating the batch run.
|
|
6
|
-
*/
|
|
7
|
-
export type BatchRunEntity = Extend.BatchRunEntity.Extractor | Extend.BatchRunEntity.Classifier | Extend.BatchRunEntity.Splitter;
|
|
8
|
-
export declare namespace BatchRunEntity {
|
|
9
|
-
interface Extractor extends Extend.ExtractorSummary {
|
|
10
|
-
object: "extractor";
|
|
11
|
-
}
|
|
12
|
-
interface Classifier extends Extend.ClassifierSummary {
|
|
13
|
-
object: "classifier";
|
|
14
|
-
}
|
|
15
|
-
interface Splitter extends Extend.SplitterSummary {
|
|
16
|
-
object: "splitter";
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type * as Extend from "../index";
|
|
2
|
-
/**
|
|
3
|
-
* The version of the extractor, classifier, or splitter that was run.
|
|
4
|
-
*
|
|
5
|
-
* **Availability:** Present when an entity was provided when creating the batch run.
|
|
6
|
-
*/
|
|
7
|
-
export type BatchRunEntityVersion = Extend.BatchRunEntityVersion.ExtractorVersion | Extend.BatchRunEntityVersion.ClassifierVersion | Extend.BatchRunEntityVersion.SplitterVersion;
|
|
8
|
-
export declare namespace BatchRunEntityVersion {
|
|
9
|
-
interface ExtractorVersion extends Extend.ExtractorVersionSummary {
|
|
10
|
-
object: "extractor_version";
|
|
11
|
-
}
|
|
12
|
-
interface ClassifierVersion extends Extend.ClassifierVersionSummary {
|
|
13
|
-
object: "classifier_version";
|
|
14
|
-
}
|
|
15
|
-
interface SplitterVersion extends Extend.SplitterVersionSummary {
|
|
16
|
-
object: "splitter_version";
|
|
17
|
-
}
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|