extend-ai 0.0.18 → 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/index.d.ts +132 -133
- package/api/types/index.js +132 -133
- 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/index.d.ts +132 -133
- package/dist/api/types/index.js +132 -133
- 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/OutputMetadata.js +0 -5
- package/api/types/OutputMetadataValue.d.ts +0 -22
- package/api/types/OutputMetadataValue.js +0 -5
- package/dist/api/types/OutputMetadata.d.ts +0 -5
- package/dist/api/types/OutputMetadata.js +0 -5
- package/dist/api/types/OutputMetadataValue.d.ts +0 -22
- package/dist/api/types/OutputMetadataValue.js +0 -5
package/api/types/index.js
CHANGED
|
@@ -14,119 +14,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./BadRequestErrorBodyCode"), exports);
|
|
18
|
+
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
18
19
|
__exportStar(require("./ParseRequestResponseType"), exports);
|
|
19
20
|
__exportStar(require("./ParseRequestFile"), exports);
|
|
20
21
|
__exportStar(require("./ParseAsyncRequestFile"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./TooManyRequestsErrorBody"), exports);
|
|
23
|
+
__exportStar(require("./ApiVersionEnum"), exports);
|
|
24
|
+
__exportStar(require("./JsonObject"), exports);
|
|
25
|
+
__exportStar(require("./Polygon"), exports);
|
|
23
26
|
__exportStar(require("./PageRangesItem"), exports);
|
|
24
27
|
__exportStar(require("./PageRanges"), exports);
|
|
25
|
-
__exportStar(require("./Error_"), exports);
|
|
26
|
-
__exportStar(require("./ExtendError"), exports);
|
|
27
|
-
__exportStar(require("./WorkflowStatus"), exports);
|
|
28
|
-
__exportStar(require("./WorkflowRun"), exports);
|
|
29
|
-
__exportStar(require("./JsonObject"), exports);
|
|
30
|
-
__exportStar(require("./FileCredits"), exports);
|
|
31
|
-
__exportStar(require("./DocumentProcessorRunCredits"), exports);
|
|
32
|
-
__exportStar(require("./WorkflowRunCredits"), exports);
|
|
33
|
-
__exportStar(require("./ParserRunCredits"), exports);
|
|
34
|
-
__exportStar(require("./StepRunStatus"), exports);
|
|
35
|
-
__exportStar(require("./StepRunStepType"), exports);
|
|
36
|
-
__exportStar(require("./StepRunStep"), exports);
|
|
37
|
-
__exportStar(require("./StepRunOutputRulesItemFailureReason"), exports);
|
|
38
|
-
__exportStar(require("./StepRunOutputRulesItem"), exports);
|
|
39
|
-
__exportStar(require("./StepRunOutput"), exports);
|
|
40
|
-
__exportStar(require("./StepRun"), exports);
|
|
41
|
-
__exportStar(require("./Workflow"), exports);
|
|
42
|
-
__exportStar(require("./ProcessorStatus"), exports);
|
|
43
|
-
__exportStar(require("./ProcessorRunType"), exports);
|
|
44
|
-
__exportStar(require("./ProcessorRunConfig"), exports);
|
|
45
|
-
__exportStar(require("./ProcessorRunMergedProcessorsItem"), exports);
|
|
46
|
-
__exportStar(require("./ProcessorRun"), exports);
|
|
47
|
-
__exportStar(require("./ExtractionOutputEdits"), exports);
|
|
48
|
-
__exportStar(require("./Processor"), exports);
|
|
49
|
-
__exportStar(require("./ProcessorVersionConfig"), exports);
|
|
50
|
-
__exportStar(require("./ProcessorVersion"), exports);
|
|
51
|
-
__exportStar(require("./EvaluationSet"), exports);
|
|
52
|
-
__exportStar(require("./EvaluationSetItem"), exports);
|
|
53
|
-
__exportStar(require("./ChunkType"), exports);
|
|
54
|
-
__exportStar(require("./ChunkMetadataPageRange"), exports);
|
|
55
|
-
__exportStar(require("./ChunkMetadata"), exports);
|
|
56
|
-
__exportStar(require("./Chunk"), exports);
|
|
57
|
-
__exportStar(require("./TableDetails"), exports);
|
|
58
|
-
__exportStar(require("./TableCellDetails"), exports);
|
|
59
|
-
__exportStar(require("./FigureDetailsFigureType"), exports);
|
|
60
|
-
__exportStar(require("./FigureDetails"), exports);
|
|
61
|
-
__exportStar(require("./EmptyBlockDetails"), exports);
|
|
62
|
-
__exportStar(require("./BlockType"), exports);
|
|
63
|
-
__exportStar(require("./BlockDetails"), exports);
|
|
64
|
-
__exportStar(require("./BlockMetadataPage"), exports);
|
|
65
|
-
__exportStar(require("./BlockMetadata"), exports);
|
|
66
|
-
__exportStar(require("./BlockPolygonItem"), exports);
|
|
67
|
-
__exportStar(require("./BlockBoundingBox"), exports);
|
|
68
|
-
__exportStar(require("./Block"), exports);
|
|
69
|
-
__exportStar(require("./BatchProcessorRunMetrics"), exports);
|
|
70
|
-
__exportStar(require("./BatchProcessorRunStatus"), exports);
|
|
71
|
-
__exportStar(require("./BatchProcessorRunSource"), exports);
|
|
72
|
-
__exportStar(require("./BatchProcessorRunOptions"), exports);
|
|
73
|
-
__exportStar(require("./BatchProcessorRun"), exports);
|
|
74
|
-
__exportStar(require("./BaseMetrics"), exports);
|
|
75
|
-
__exportStar(require("./ExtractMetricsFieldMetrics"), exports);
|
|
76
|
-
__exportStar(require("./ExtractMetrics"), exports);
|
|
77
|
-
__exportStar(require("./ClassifyMetrics"), exports);
|
|
78
|
-
__exportStar(require("./SplitterMetrics"), exports);
|
|
79
|
-
__exportStar(require("./WorkflowRunSummary"), exports);
|
|
80
|
-
__exportStar(require("./ProcessorRunSummaryType"), exports);
|
|
81
|
-
__exportStar(require("./ProcessorRunSummary"), exports);
|
|
82
|
-
__exportStar(require("./ParseErrorCode"), exports);
|
|
83
|
-
__exportStar(require("./ParseError"), exports);
|
|
84
|
-
__exportStar(require("./ParserRunOcrWordsItemBoundingBox"), exports);
|
|
85
|
-
__exportStar(require("./ParserRunOcrWordsItem"), exports);
|
|
86
|
-
__exportStar(require("./ParserRunOcr"), exports);
|
|
87
|
-
__exportStar(require("./ParserRunStatusEnum"), exports);
|
|
88
|
-
__exportStar(require("./ParserRunMetrics"), exports);
|
|
89
|
-
__exportStar(require("./ParserRun"), exports);
|
|
90
|
-
__exportStar(require("./ParserRunStatusStatus"), exports);
|
|
91
|
-
__exportStar(require("./ParserRunStatus"), exports);
|
|
92
|
-
__exportStar(require("./EditErrorCode"), exports);
|
|
93
|
-
__exportStar(require("./EditError"), exports);
|
|
94
|
-
__exportStar(require("./EditRootJsonSchema"), exports);
|
|
95
|
-
__exportStar(require("./EditBoundingBox"), exports);
|
|
96
|
-
__exportStar(require("./EditTextOptions"), exports);
|
|
97
|
-
__exportStar(require("./EditObjectJsonSchema"), exports);
|
|
98
|
-
__exportStar(require("./EditJsonSchemaExtendEditFieldType"), exports);
|
|
99
|
-
__exportStar(require("./EditJsonSchema"), exports);
|
|
100
|
-
__exportStar(require("./EditRunEditedFile"), exports);
|
|
101
|
-
__exportStar(require("./EditRunConfigAdvancedOptions"), exports);
|
|
102
|
-
__exportStar(require("./EditRunConfig"), exports);
|
|
103
|
-
__exportStar(require("./EditRunMetrics"), exports);
|
|
104
|
-
__exportStar(require("./EditRunUsage"), exports);
|
|
105
|
-
__exportStar(require("./EditRun"), exports);
|
|
106
|
-
__exportStar(require("./EditRunStatusStatus"), exports);
|
|
107
|
-
__exportStar(require("./EditRunStatus"), exports);
|
|
108
|
-
__exportStar(require("./WebhookEventEventType"), exports);
|
|
109
|
-
__exportStar(require("./WebhookEventPayload"), exports);
|
|
110
|
-
__exportStar(require("./WebhookEvent"), exports);
|
|
111
|
-
__exportStar(require("./WebhookEventWorkflowRunEventType"), exports);
|
|
112
|
-
__exportStar(require("./WebhookEventWorkflowRun"), exports);
|
|
113
|
-
__exportStar(require("./WebhookEventProcessorRunEventType"), exports);
|
|
114
|
-
__exportStar(require("./WebhookEventProcessorRun"), exports);
|
|
115
|
-
__exportStar(require("./WebhookEventWorkflowEventType"), exports);
|
|
116
|
-
__exportStar(require("./WebhookEventWorkflow"), exports);
|
|
117
|
-
__exportStar(require("./WebhookEventProcessorEventType"), exports);
|
|
118
|
-
__exportStar(require("./WebhookEventProcessor"), exports);
|
|
119
|
-
__exportStar(require("./WebhookEventProcessorVersion"), exports);
|
|
120
|
-
__exportStar(require("./ApiVersionEnum"), exports);
|
|
121
|
-
__exportStar(require("./ProcessorId"), exports);
|
|
122
28
|
__exportStar(require("./SortByEnum"), exports);
|
|
123
29
|
__exportStar(require("./SortDirEnum"), exports);
|
|
124
30
|
__exportStar(require("./NextPageToken"), exports);
|
|
125
31
|
__exportStar(require("./MaxPageSize"), exports);
|
|
126
|
-
__exportStar(require("./
|
|
127
|
-
__exportStar(require("./
|
|
128
|
-
__exportStar(require("./ListProcessorsProcessor"), exports);
|
|
129
|
-
__exportStar(require("./ListProcessorsResponse"), exports);
|
|
32
|
+
__exportStar(require("./Error_"), exports);
|
|
33
|
+
__exportStar(require("./ExtendError"), exports);
|
|
130
34
|
__exportStar(require("./FileType"), exports);
|
|
131
35
|
__exportStar(require("./FileContentsPagesItem"), exports);
|
|
132
36
|
__exportStar(require("./FileContentsSheetsItem"), exports);
|
|
@@ -134,15 +38,16 @@ __exportStar(require("./FileContents"), exports);
|
|
|
134
38
|
__exportStar(require("./FileMetadataParentSplit"), exports);
|
|
135
39
|
__exportStar(require("./FileMetadata"), exports);
|
|
136
40
|
__exportStar(require("./File_"), exports);
|
|
137
|
-
__exportStar(require("./
|
|
138
|
-
__exportStar(require("./
|
|
41
|
+
__exportStar(require("./FileCredits"), exports);
|
|
42
|
+
__exportStar(require("./ProcessorType"), exports);
|
|
43
|
+
__exportStar(require("./ProcessorId"), exports);
|
|
44
|
+
__exportStar(require("./Processor"), exports);
|
|
45
|
+
__exportStar(require("./ProcessorVersionConfig"), exports);
|
|
46
|
+
__exportStar(require("./ProcessorVersion"), exports);
|
|
139
47
|
__exportStar(require("./ProcessorRunFileInput"), exports);
|
|
140
|
-
__exportStar(require("./
|
|
141
|
-
__exportStar(require("./
|
|
142
|
-
__exportStar(require("./
|
|
143
|
-
__exportStar(require("./Classification"), exports);
|
|
144
|
-
__exportStar(require("./ClassificationAdvancedOptionsContext"), exports);
|
|
145
|
-
__exportStar(require("./ClassificationAdvancedOptions"), exports);
|
|
48
|
+
__exportStar(require("./ListProcessorsProcessor"), exports);
|
|
49
|
+
__exportStar(require("./ListProcessorsProcessorVersion"), exports);
|
|
50
|
+
__exportStar(require("./ListProcessorsResponse"), exports);
|
|
146
51
|
__exportStar(require("./ExtractionConfigBaseProcessor"), exports);
|
|
147
52
|
__exportStar(require("./ExtractionConfig"), exports);
|
|
148
53
|
__exportStar(require("./ExtractionAdvancedOptionsArrayCitationStrategy"), exports);
|
|
@@ -158,40 +63,80 @@ __exportStar(require("./ExcelSheetRange"), exports);
|
|
|
158
63
|
__exportStar(require("./ExtractionFieldType"), exports);
|
|
159
64
|
__exportStar(require("./ExtractionField"), exports);
|
|
160
65
|
__exportStar(require("./Enum"), exports);
|
|
161
|
-
__exportStar(require("./
|
|
162
|
-
__exportStar(require("./SplitterConfig"), exports);
|
|
163
|
-
__exportStar(require("./SplitterAdvancedOptionsSplitMethod"), exports);
|
|
164
|
-
__exportStar(require("./SplitterAdvancedOptions"), exports);
|
|
165
|
-
__exportStar(require("./ProvidedSplitterOutputSplitsItem"), exports);
|
|
166
|
-
__exportStar(require("./ProvidedSplitterOutput"), exports);
|
|
167
|
-
__exportStar(require("./SplitterOutputSplitsItem"), exports);
|
|
168
|
-
__exportStar(require("./SplitterOutput"), exports);
|
|
169
|
-
__exportStar(require("./ProvidedClassifierOutput"), exports);
|
|
170
|
-
__exportStar(require("./ClassifierOutput"), exports);
|
|
171
|
-
__exportStar(require("./ProvidedExtractionFieldResultType"), exports);
|
|
172
|
-
__exportStar(require("./ProvidedExtractionFieldResult"), exports);
|
|
173
|
-
__exportStar(require("./ProvidedFieldsArrayOutput"), exports);
|
|
174
|
-
__exportStar(require("./ProvidedExtractionOutput"), exports);
|
|
175
|
-
__exportStar(require("./ProvidedJsonOutput"), exports);
|
|
66
|
+
__exportStar(require("./EnumOption"), exports);
|
|
176
67
|
__exportStar(require("./ExtractionOutput"), exports);
|
|
177
68
|
__exportStar(require("./JsonOutputMetadataValueCitationsItemPolygonItem"), exports);
|
|
178
69
|
__exportStar(require("./JsonOutputMetadataValueCitationsItem"), exports);
|
|
179
70
|
__exportStar(require("./JsonOutputMetadataValue"), exports);
|
|
180
71
|
__exportStar(require("./JsonOutput"), exports);
|
|
181
|
-
__exportStar(require("./OutputMetadataValue"), exports);
|
|
182
|
-
__exportStar(require("./OutputMetadata"), exports);
|
|
183
|
-
__exportStar(require("./Citation"), exports);
|
|
184
|
-
__exportStar(require("./Polygon"), exports);
|
|
185
72
|
__exportStar(require("./FieldsArrayOutput"), exports);
|
|
186
73
|
__exportStar(require("./ExtractionFieldResultType"), exports);
|
|
187
74
|
__exportStar(require("./ExtractionFieldResult"), exports);
|
|
188
|
-
__exportStar(require("./EnumOption"), exports);
|
|
189
75
|
__exportStar(require("./ExtractionFieldResultReferenceBoundingBoxesItem"), exports);
|
|
190
76
|
__exportStar(require("./ExtractionFieldResultReference"), exports);
|
|
77
|
+
__exportStar(require("./ProvidedExtractionOutput"), exports);
|
|
78
|
+
__exportStar(require("./ProvidedJsonOutput"), exports);
|
|
79
|
+
__exportStar(require("./ProvidedFieldsArrayOutput"), exports);
|
|
80
|
+
__exportStar(require("./ProvidedExtractionFieldResultType"), exports);
|
|
81
|
+
__exportStar(require("./ProvidedExtractionFieldResult"), exports);
|
|
82
|
+
__exportStar(require("./ExtractionOutputEdits"), exports);
|
|
191
83
|
__exportStar(require("./InsightType"), exports);
|
|
192
84
|
__exportStar(require("./Insight"), exports);
|
|
193
|
-
__exportStar(require("./
|
|
85
|
+
__exportStar(require("./Citation"), exports);
|
|
86
|
+
__exportStar(require("./ClassificationConfigBaseProcessor"), exports);
|
|
87
|
+
__exportStar(require("./ClassificationConfig"), exports);
|
|
88
|
+
__exportStar(require("./Classification"), exports);
|
|
89
|
+
__exportStar(require("./ClassificationAdvancedOptionsContext"), exports);
|
|
90
|
+
__exportStar(require("./ClassificationAdvancedOptions"), exports);
|
|
91
|
+
__exportStar(require("./ClassifierOutput"), exports);
|
|
92
|
+
__exportStar(require("./ProvidedClassifierOutput"), exports);
|
|
93
|
+
__exportStar(require("./SplitterConfigBaseProcessor"), exports);
|
|
94
|
+
__exportStar(require("./SplitterConfig"), exports);
|
|
95
|
+
__exportStar(require("./SplitterAdvancedOptionsSplitMethod"), exports);
|
|
96
|
+
__exportStar(require("./SplitterAdvancedOptions"), exports);
|
|
97
|
+
__exportStar(require("./SplitterOutputSplitsItem"), exports);
|
|
98
|
+
__exportStar(require("./SplitterOutput"), exports);
|
|
99
|
+
__exportStar(require("./ProvidedSplitterOutputSplitsItem"), exports);
|
|
100
|
+
__exportStar(require("./ProvidedSplitterOutput"), exports);
|
|
194
101
|
__exportStar(require("./ProcessorOutput"), exports);
|
|
102
|
+
__exportStar(require("./ProvidedProcessorOutput"), exports);
|
|
103
|
+
__exportStar(require("./ProcessorStatus"), exports);
|
|
104
|
+
__exportStar(require("./ProcessorRunType"), exports);
|
|
105
|
+
__exportStar(require("./ProcessorRunConfig"), exports);
|
|
106
|
+
__exportStar(require("./ProcessorRunMergedProcessorsItem"), exports);
|
|
107
|
+
__exportStar(require("./ProcessorRun"), exports);
|
|
108
|
+
__exportStar(require("./ProcessorRunSummaryType"), exports);
|
|
109
|
+
__exportStar(require("./ProcessorRunSummary"), exports);
|
|
110
|
+
__exportStar(require("./BatchProcessorRunMetrics"), exports);
|
|
111
|
+
__exportStar(require("./BatchProcessorRunStatus"), exports);
|
|
112
|
+
__exportStar(require("./BatchProcessorRunSource"), exports);
|
|
113
|
+
__exportStar(require("./BatchProcessorRunOptions"), exports);
|
|
114
|
+
__exportStar(require("./BatchProcessorRun"), exports);
|
|
115
|
+
__exportStar(require("./DocumentProcessorRunCredits"), exports);
|
|
116
|
+
__exportStar(require("./WorkflowStatus"), exports);
|
|
117
|
+
__exportStar(require("./Workflow"), exports);
|
|
118
|
+
__exportStar(require("./WorkflowRun"), exports);
|
|
119
|
+
__exportStar(require("./WorkflowRunSummary"), exports);
|
|
120
|
+
__exportStar(require("./WorkflowRunCredits"), exports);
|
|
121
|
+
__exportStar(require("./StepRunStatus"), exports);
|
|
122
|
+
__exportStar(require("./StepRunStepType"), exports);
|
|
123
|
+
__exportStar(require("./StepRunStep"), exports);
|
|
124
|
+
__exportStar(require("./StepRunOutputRulesItemFailureReason"), exports);
|
|
125
|
+
__exportStar(require("./StepRunOutputRulesItem"), exports);
|
|
126
|
+
__exportStar(require("./StepRunOutput"), exports);
|
|
127
|
+
__exportStar(require("./StepRun"), exports);
|
|
128
|
+
__exportStar(require("./WorkflowRunFileInputOutputsItem"), exports);
|
|
129
|
+
__exportStar(require("./WorkflowRunFileInput"), exports);
|
|
130
|
+
__exportStar(require("./BatchWorkflowRunFileInput"), exports);
|
|
131
|
+
__exportStar(require("./ParserRunOcrWordsItemBoundingBox"), exports);
|
|
132
|
+
__exportStar(require("./ParserRunOcrWordsItem"), exports);
|
|
133
|
+
__exportStar(require("./ParserRunOcr"), exports);
|
|
134
|
+
__exportStar(require("./ParserRunStatusEnum"), exports);
|
|
135
|
+
__exportStar(require("./ParserRunMetrics"), exports);
|
|
136
|
+
__exportStar(require("./ParserRun"), exports);
|
|
137
|
+
__exportStar(require("./ParserRunStatusStatus"), exports);
|
|
138
|
+
__exportStar(require("./ParserRunStatus"), exports);
|
|
139
|
+
__exportStar(require("./ParserRunCredits"), exports);
|
|
195
140
|
__exportStar(require("./ParseConfigTarget"), exports);
|
|
196
141
|
__exportStar(require("./ParseConfigChunkingStrategyType"), exports);
|
|
197
142
|
__exportStar(require("./ParseConfigChunkingStrategyOptions"), exports);
|
|
@@ -204,9 +149,46 @@ __exportStar(require("./ParseConfigBlockOptionsTables"), exports);
|
|
|
204
149
|
__exportStar(require("./ParseConfigBlockOptionsTextAgentic"), exports);
|
|
205
150
|
__exportStar(require("./ParseConfigBlockOptionsText"), exports);
|
|
206
151
|
__exportStar(require("./ParseConfigBlockOptions"), exports);
|
|
152
|
+
__exportStar(require("./ParseConfigAdvancedOptionsExcelParsingMode"), exports);
|
|
207
153
|
__exportStar(require("./ParseConfigAdvancedOptionsReturnOcr"), exports);
|
|
208
154
|
__exportStar(require("./ParseConfigAdvancedOptions"), exports);
|
|
209
155
|
__exportStar(require("./ParseConfig"), exports);
|
|
156
|
+
__exportStar(require("./ParseErrorCode"), exports);
|
|
157
|
+
__exportStar(require("./ParseError"), exports);
|
|
158
|
+
__exportStar(require("./ChunkType"), exports);
|
|
159
|
+
__exportStar(require("./ChunkMetadataPageRange"), exports);
|
|
160
|
+
__exportStar(require("./ChunkMetadata"), exports);
|
|
161
|
+
__exportStar(require("./Chunk"), exports);
|
|
162
|
+
__exportStar(require("./BlockType"), exports);
|
|
163
|
+
__exportStar(require("./BlockDetails"), exports);
|
|
164
|
+
__exportStar(require("./BlockMetadataPage"), exports);
|
|
165
|
+
__exportStar(require("./BlockMetadata"), exports);
|
|
166
|
+
__exportStar(require("./BlockPolygonItem"), exports);
|
|
167
|
+
__exportStar(require("./BlockBoundingBox"), exports);
|
|
168
|
+
__exportStar(require("./Block"), exports);
|
|
169
|
+
__exportStar(require("./TableDetails"), exports);
|
|
170
|
+
__exportStar(require("./TableCellDetails"), exports);
|
|
171
|
+
__exportStar(require("./FigureDetailsFigureType"), exports);
|
|
172
|
+
__exportStar(require("./FigureDetails"), exports);
|
|
173
|
+
__exportStar(require("./EmptyBlockDetails"), exports);
|
|
174
|
+
__exportStar(require("./EditRunEditedFile"), exports);
|
|
175
|
+
__exportStar(require("./EditRunConfigAdvancedOptions"), exports);
|
|
176
|
+
__exportStar(require("./EditRunConfig"), exports);
|
|
177
|
+
__exportStar(require("./EditRunMetrics"), exports);
|
|
178
|
+
__exportStar(require("./EditRunUsage"), exports);
|
|
179
|
+
__exportStar(require("./EditRun"), exports);
|
|
180
|
+
__exportStar(require("./EditRunStatusStatus"), exports);
|
|
181
|
+
__exportStar(require("./EditRunStatus"), exports);
|
|
182
|
+
__exportStar(require("./EditErrorCode"), exports);
|
|
183
|
+
__exportStar(require("./EditError"), exports);
|
|
184
|
+
__exportStar(require("./EditRootJsonSchema"), exports);
|
|
185
|
+
__exportStar(require("./EditJsonSchemaExtendEditFieldType"), exports);
|
|
186
|
+
__exportStar(require("./EditJsonSchema"), exports);
|
|
187
|
+
__exportStar(require("./EditObjectJsonSchema"), exports);
|
|
188
|
+
__exportStar(require("./EditBoundingBox"), exports);
|
|
189
|
+
__exportStar(require("./EditTextOptions"), exports);
|
|
190
|
+
__exportStar(require("./EvaluationSet"), exports);
|
|
191
|
+
__exportStar(require("./EvaluationSetItem"), exports);
|
|
210
192
|
__exportStar(require("./OptimizerRunAgentType"), exports);
|
|
211
193
|
__exportStar(require("./OptimizerRunStatus"), exports);
|
|
212
194
|
__exportStar(require("./OptimizerRun"), exports);
|
|
@@ -218,3 +200,20 @@ __exportStar(require("./ExtractionFieldMetrics"), exports);
|
|
|
218
200
|
__exportStar(require("./ClassificationFieldMetrics"), exports);
|
|
219
201
|
__exportStar(require("./ExtractOptimizerOptions"), exports);
|
|
220
202
|
__exportStar(require("./ClassifyOptimizerOptions"), exports);
|
|
203
|
+
__exportStar(require("./BaseMetrics"), exports);
|
|
204
|
+
__exportStar(require("./ExtractMetricsFieldMetrics"), exports);
|
|
205
|
+
__exportStar(require("./ExtractMetrics"), exports);
|
|
206
|
+
__exportStar(require("./ClassifyMetrics"), exports);
|
|
207
|
+
__exportStar(require("./SplitterMetrics"), exports);
|
|
208
|
+
__exportStar(require("./WebhookEventEventType"), exports);
|
|
209
|
+
__exportStar(require("./WebhookEventPayload"), exports);
|
|
210
|
+
__exportStar(require("./WebhookEvent"), exports);
|
|
211
|
+
__exportStar(require("./WebhookEventWorkflowRunEventType"), exports);
|
|
212
|
+
__exportStar(require("./WebhookEventWorkflowRun"), exports);
|
|
213
|
+
__exportStar(require("./WebhookEventProcessorRunEventType"), exports);
|
|
214
|
+
__exportStar(require("./WebhookEventProcessorRun"), exports);
|
|
215
|
+
__exportStar(require("./WebhookEventWorkflowEventType"), exports);
|
|
216
|
+
__exportStar(require("./WebhookEventWorkflow"), exports);
|
|
217
|
+
__exportStar(require("./WebhookEventProcessorEventType"), exports);
|
|
218
|
+
__exportStar(require("./WebhookEventProcessor"), exports);
|
|
219
|
+
__exportStar(require("./WebhookEventProcessorVersion"), exports);
|
package/dist/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/dist/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
|
}
|
|
@@ -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/dist/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
|
}
|