@azure-rest/ai-document-intelligence 1.0.0-beta.3 → 1.1.0-alpha.20250513.1
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/CHANGELOG.md +137 -0
- package/LICENSE +4 -4
- package/README.md +274 -75
- package/dist/browser/audience.d.ts +19 -0
- package/dist/browser/audience.d.ts.map +1 -0
- package/dist/browser/audience.js +22 -0
- package/dist/browser/audience.js.map +1 -0
- package/dist/browser/clientDefinitions.d.ts +18 -8
- package/dist/browser/clientDefinitions.d.ts.map +1 -1
- package/dist/browser/clientDefinitions.js +1 -1
- package/dist/browser/clientDefinitions.js.map +1 -1
- package/dist/browser/documentIntelligence.d.ts +3 -3
- package/dist/browser/documentIntelligence.d.ts.map +1 -1
- package/dist/browser/documentIntelligence.js +9 -4
- package/dist/browser/documentIntelligence.js.map +1 -1
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +3 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/isUnexpected.d.ts +5 -2
- package/dist/browser/isUnexpected.d.ts.map +1 -1
- package/dist/browser/isUnexpected.js +4 -1
- package/dist/browser/isUnexpected.js.map +1 -1
- package/dist/browser/logger.js +1 -1
- package/dist/browser/logger.js.map +1 -1
- package/dist/browser/models.d.ts +5 -5
- package/dist/browser/models.d.ts.map +1 -1
- package/dist/browser/models.js +1 -1
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/outputModels.d.ts +85 -58
- package/dist/browser/outputModels.d.ts.map +1 -1
- package/dist/browser/outputModels.js +1 -1
- package/dist/browser/outputModels.js.map +1 -1
- package/dist/browser/paginateHelper.d.ts +28 -3
- package/dist/browser/paginateHelper.d.ts.map +1 -1
- package/dist/browser/paginateHelper.js +99 -2
- package/dist/browser/paginateHelper.js.map +1 -1
- package/dist/browser/parameters.d.ts +108 -24
- package/dist/browser/parameters.d.ts.map +1 -1
- package/dist/browser/parameters.js +1 -1
- package/dist/browser/parameters.js.map +1 -1
- package/dist/browser/pollingHelper.d.ts +25 -73
- package/dist/browser/pollingHelper.d.ts.map +1 -1
- package/dist/browser/pollingHelper.js +13 -51
- package/dist/browser/pollingHelper.js.map +1 -1
- package/dist/browser/responses.d.ts +68 -43
- package/dist/browser/responses.d.ts.map +1 -1
- package/dist/browser/responses.js +1 -1
- package/dist/browser/responses.js.map +1 -1
- package/dist/browser/utils.d.ts +5 -0
- package/dist/browser/utils.d.ts.map +1 -0
- package/dist/browser/utils.js +33 -0
- package/dist/browser/utils.js.map +1 -0
- package/dist/commonjs/audience.d.ts +19 -0
- package/dist/commonjs/audience.d.ts.map +1 -0
- package/dist/commonjs/audience.js +25 -0
- package/dist/commonjs/audience.js.map +1 -0
- package/dist/commonjs/clientDefinitions.d.ts +18 -8
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
- package/dist/commonjs/clientDefinitions.js +1 -1
- package/dist/commonjs/clientDefinitions.js.map +1 -1
- package/dist/commonjs/documentIntelligence.d.ts +3 -3
- package/dist/commonjs/documentIntelligence.d.ts.map +1 -1
- package/dist/commonjs/documentIntelligence.js +9 -4
- package/dist/commonjs/documentIntelligence.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +5 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/isUnexpected.d.ts +5 -2
- package/dist/commonjs/isUnexpected.d.ts.map +1 -1
- package/dist/commonjs/isUnexpected.js +4 -1
- package/dist/commonjs/isUnexpected.js.map +1 -1
- package/dist/commonjs/logger.js +1 -1
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models.d.ts +5 -5
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/outputModels.d.ts +85 -58
- package/dist/commonjs/outputModels.d.ts.map +1 -1
- package/dist/commonjs/outputModels.js +1 -1
- package/dist/commonjs/outputModels.js.map +1 -1
- package/dist/commonjs/paginateHelper.d.ts +28 -3
- package/dist/commonjs/paginateHelper.d.ts.map +1 -1
- package/dist/commonjs/paginateHelper.js +100 -3
- package/dist/commonjs/paginateHelper.js.map +1 -1
- package/dist/commonjs/parameters.d.ts +108 -24
- package/dist/commonjs/parameters.d.ts.map +1 -1
- package/dist/commonjs/parameters.js +1 -1
- package/dist/commonjs/parameters.js.map +1 -1
- package/dist/commonjs/pollingHelper.d.ts +25 -73
- package/dist/commonjs/pollingHelper.d.ts.map +1 -1
- package/dist/commonjs/pollingHelper.js +13 -50
- package/dist/commonjs/pollingHelper.js.map +1 -1
- package/dist/commonjs/responses.d.ts +68 -43
- package/dist/commonjs/responses.d.ts.map +1 -1
- package/dist/commonjs/responses.js +1 -1
- package/dist/commonjs/responses.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/utils.d.ts +5 -0
- package/dist/commonjs/utils.d.ts.map +1 -0
- package/dist/commonjs/utils.js +36 -0
- package/dist/commonjs/utils.js.map +1 -0
- package/dist/esm/audience.d.ts +19 -0
- package/dist/esm/audience.d.ts.map +1 -0
- package/dist/esm/audience.js +22 -0
- package/dist/esm/audience.js.map +1 -0
- package/dist/esm/clientDefinitions.d.ts +18 -8
- package/dist/esm/clientDefinitions.d.ts.map +1 -1
- package/dist/esm/clientDefinitions.js +1 -1
- package/dist/esm/clientDefinitions.js.map +1 -1
- package/dist/esm/documentIntelligence.d.ts +3 -3
- package/dist/esm/documentIntelligence.d.ts.map +1 -1
- package/dist/esm/documentIntelligence.js +9 -4
- package/dist/esm/documentIntelligence.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isUnexpected.d.ts +5 -2
- package/dist/esm/isUnexpected.d.ts.map +1 -1
- package/dist/esm/isUnexpected.js +4 -1
- package/dist/esm/isUnexpected.js.map +1 -1
- package/dist/esm/logger.js +1 -1
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/models.d.ts +5 -5
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/outputModels.d.ts +85 -58
- package/dist/esm/outputModels.d.ts.map +1 -1
- package/dist/esm/outputModels.js +1 -1
- package/dist/esm/outputModels.js.map +1 -1
- package/dist/esm/paginateHelper.d.ts +28 -3
- package/dist/esm/paginateHelper.d.ts.map +1 -1
- package/dist/esm/paginateHelper.js +99 -2
- package/dist/esm/paginateHelper.js.map +1 -1
- package/dist/esm/parameters.d.ts +108 -24
- package/dist/esm/parameters.d.ts.map +1 -1
- package/dist/esm/parameters.js +1 -1
- package/dist/esm/parameters.js.map +1 -1
- package/dist/esm/pollingHelper.d.ts +25 -73
- package/dist/esm/pollingHelper.d.ts.map +1 -1
- package/dist/esm/pollingHelper.js +13 -51
- package/dist/esm/pollingHelper.js.map +1 -1
- package/dist/esm/responses.d.ts +68 -43
- package/dist/esm/responses.d.ts.map +1 -1
- package/dist/esm/responses.js +1 -1
- package/dist/esm/responses.js.map +1 -1
- package/dist/esm/utils.d.ts +5 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/utils.js +33 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/react-native/audience.d.ts +19 -0
- package/dist/react-native/audience.d.ts.map +1 -0
- package/dist/react-native/audience.js +22 -0
- package/dist/react-native/audience.js.map +1 -0
- package/dist/react-native/clientDefinitions.d.ts +18 -8
- package/dist/react-native/clientDefinitions.d.ts.map +1 -1
- package/dist/react-native/clientDefinitions.js +1 -1
- package/dist/react-native/clientDefinitions.js.map +1 -1
- package/dist/react-native/documentIntelligence.d.ts +3 -3
- package/dist/react-native/documentIntelligence.d.ts.map +1 -1
- package/dist/react-native/documentIntelligence.js +9 -4
- package/dist/react-native/documentIntelligence.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +3 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/isUnexpected.d.ts +5 -2
- package/dist/react-native/isUnexpected.d.ts.map +1 -1
- package/dist/react-native/isUnexpected.js +4 -1
- package/dist/react-native/isUnexpected.js.map +1 -1
- package/dist/react-native/logger.js +1 -1
- package/dist/react-native/logger.js.map +1 -1
- package/dist/react-native/models.d.ts +5 -5
- package/dist/react-native/models.d.ts.map +1 -1
- package/dist/react-native/models.js +1 -1
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/outputModels.d.ts +85 -58
- package/dist/react-native/outputModels.d.ts.map +1 -1
- package/dist/react-native/outputModels.js +1 -1
- package/dist/react-native/outputModels.js.map +1 -1
- package/dist/react-native/paginateHelper.d.ts +28 -3
- package/dist/react-native/paginateHelper.d.ts.map +1 -1
- package/dist/react-native/paginateHelper.js +99 -2
- package/dist/react-native/paginateHelper.js.map +1 -1
- package/dist/react-native/parameters.d.ts +108 -24
- package/dist/react-native/parameters.d.ts.map +1 -1
- package/dist/react-native/parameters.js +1 -1
- package/dist/react-native/parameters.js.map +1 -1
- package/dist/react-native/pollingHelper.d.ts +25 -73
- package/dist/react-native/pollingHelper.d.ts.map +1 -1
- package/dist/react-native/pollingHelper.js +13 -51
- package/dist/react-native/pollingHelper.js.map +1 -1
- package/dist/react-native/responses.d.ts +68 -43
- package/dist/react-native/responses.d.ts.map +1 -1
- package/dist/react-native/responses.js +1 -1
- package/dist/react-native/responses.js.map +1 -1
- package/dist/react-native/utils.d.ts +5 -0
- package/dist/react-native/utils.d.ts.map +1 -0
- package/dist/react-native/utils.js +33 -0
- package/dist/react-native/utils.js.map +1 -0
- package/package.json +44 -58
- package/review/ai-document-intelligence.api.md +380 -221
|
@@ -4,22 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
|
|
20
|
-
import { RequestParameters } from '@azure-rest/core-client';
|
|
21
|
-
import { StreamableMethod } from '@azure-rest/core-client';
|
|
22
|
-
import { TokenCredential } from '@azure/core-auth';
|
|
7
|
+
import type { Client } from '@azure-rest/core-client';
|
|
8
|
+
import type { ClientOptions } from '@azure-rest/core-client';
|
|
9
|
+
import type { HttpResponse } from '@azure-rest/core-client';
|
|
10
|
+
import type { KeyCredential } from '@azure/core-auth';
|
|
11
|
+
import type { OperationState } from '@azure/core-lro';
|
|
12
|
+
import type { PathUncheckedResponse } from '@azure-rest/core-client';
|
|
13
|
+
import type { PollerLike } from '@azure/core-lro';
|
|
14
|
+
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
15
|
+
import type { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
|
|
16
|
+
import type { RequestParameters } from '@azure-rest/core-client';
|
|
17
|
+
import type { StreamableMethod } from '@azure-rest/core-client';
|
|
18
|
+
import type { TokenCredential } from '@azure/core-auth';
|
|
23
19
|
|
|
24
20
|
// @public
|
|
25
21
|
export interface AddressValueOutput {
|
|
@@ -61,17 +57,24 @@ export interface AnalyzeBatchDocuments202Response extends HttpResponse {
|
|
|
61
57
|
|
|
62
58
|
// @public (undocumented)
|
|
63
59
|
export interface AnalyzeBatchDocumentsBodyParam {
|
|
64
|
-
body
|
|
60
|
+
body: AnalyzeBatchDocumentsRequest;
|
|
65
61
|
}
|
|
66
62
|
|
|
67
63
|
// @public (undocumented)
|
|
68
64
|
export interface AnalyzeBatchDocumentsDefaultResponse extends HttpResponse {
|
|
69
65
|
// (undocumented)
|
|
70
|
-
body:
|
|
66
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
71
67
|
// (undocumented)
|
|
72
68
|
status: string;
|
|
73
69
|
}
|
|
74
70
|
|
|
71
|
+
// @public
|
|
72
|
+
export interface AnalyzeBatchDocumentsFeaturesQueryParam {
|
|
73
|
+
explode: false;
|
|
74
|
+
style: "form";
|
|
75
|
+
value: DocumentAnalysisFeature[];
|
|
76
|
+
}
|
|
77
|
+
|
|
75
78
|
// @public
|
|
76
79
|
export interface AnalyzeBatchDocumentsLogicalResponse extends HttpResponse {
|
|
77
80
|
// (undocumented)
|
|
@@ -83,9 +86,23 @@ export interface AnalyzeBatchDocumentsMediaTypesParam {
|
|
|
83
86
|
contentType: "application/json";
|
|
84
87
|
}
|
|
85
88
|
|
|
89
|
+
// @public
|
|
90
|
+
export interface AnalyzeBatchDocumentsOutputQueryParam {
|
|
91
|
+
explode: false;
|
|
92
|
+
style: "form";
|
|
93
|
+
value: AnalyzeOutputOption[];
|
|
94
|
+
}
|
|
95
|
+
|
|
86
96
|
// @public (undocumented)
|
|
87
97
|
export type AnalyzeBatchDocumentsParameters = AnalyzeBatchDocumentsQueryParam & AnalyzeBatchDocumentsMediaTypesParam & AnalyzeBatchDocumentsBodyParam & RequestParameters;
|
|
88
98
|
|
|
99
|
+
// @public
|
|
100
|
+
export interface AnalyzeBatchDocumentsQueryFieldsQueryParam {
|
|
101
|
+
explode: false;
|
|
102
|
+
style: "form";
|
|
103
|
+
value: string[];
|
|
104
|
+
}
|
|
105
|
+
|
|
89
106
|
// @public (undocumented)
|
|
90
107
|
export interface AnalyzeBatchDocumentsQueryParam {
|
|
91
108
|
// (undocumented)
|
|
@@ -94,12 +111,12 @@ export interface AnalyzeBatchDocumentsQueryParam {
|
|
|
94
111
|
|
|
95
112
|
// @public (undocumented)
|
|
96
113
|
export interface AnalyzeBatchDocumentsQueryParamProperties {
|
|
97
|
-
features?: DocumentAnalysisFeature[];
|
|
114
|
+
features?: DocumentAnalysisFeature[] | AnalyzeBatchDocumentsFeaturesQueryParam;
|
|
98
115
|
locale?: string;
|
|
99
|
-
output?: AnalyzeOutputOption[];
|
|
100
|
-
outputContentFormat?:
|
|
116
|
+
output?: AnalyzeOutputOption[] | AnalyzeBatchDocumentsOutputQueryParam;
|
|
117
|
+
outputContentFormat?: DocumentContentFormat;
|
|
101
118
|
pages?: string;
|
|
102
|
-
queryFields?: string[];
|
|
119
|
+
queryFields?: string[] | AnalyzeBatchDocumentsQueryFieldsQueryParam;
|
|
103
120
|
stringIndexType?: StringIndexType;
|
|
104
121
|
}
|
|
105
122
|
|
|
@@ -114,30 +131,40 @@ export interface AnalyzeBatchDocumentsRequest {
|
|
|
114
131
|
|
|
115
132
|
// @public
|
|
116
133
|
export interface AnalyzeBatchOperationDetailOutput {
|
|
117
|
-
error?:
|
|
134
|
+
error?: DocumentIntelligenceErrorOutput;
|
|
118
135
|
resultUrl?: string;
|
|
119
136
|
sourceUrl: string;
|
|
120
|
-
status:
|
|
137
|
+
status: DocumentIntelligenceOperationStatusOutput;
|
|
121
138
|
}
|
|
122
139
|
|
|
123
140
|
// @public
|
|
124
|
-
export interface
|
|
141
|
+
export interface AnalyzeBatchOperationOutput {
|
|
125
142
|
createdDateTime: string;
|
|
126
|
-
error?:
|
|
143
|
+
error?: DocumentIntelligenceErrorOutput;
|
|
127
144
|
lastUpdatedDateTime: string;
|
|
128
145
|
percentCompleted?: number;
|
|
129
146
|
result?: AnalyzeBatchResultOutput;
|
|
130
|
-
|
|
147
|
+
resultId?: string;
|
|
148
|
+
status: DocumentIntelligenceOperationStatusOutput;
|
|
131
149
|
}
|
|
132
150
|
|
|
133
151
|
// @public
|
|
134
152
|
export interface AnalyzeBatchResultOutput {
|
|
135
|
-
details
|
|
153
|
+
details?: Array<AnalyzeBatchOperationDetailOutput>;
|
|
136
154
|
failedCount: number;
|
|
137
155
|
skippedCount: number;
|
|
138
156
|
succeededCount: number;
|
|
139
157
|
}
|
|
140
158
|
|
|
159
|
+
// @public
|
|
160
|
+
export interface AnalyzedDocumentOutput {
|
|
161
|
+
boundingRegions?: Array<BoundingRegionOutput>;
|
|
162
|
+
confidence: number;
|
|
163
|
+
docType: string;
|
|
164
|
+
fields?: Record<string, DocumentFieldOutput>;
|
|
165
|
+
spans: Array<DocumentSpanOutput>;
|
|
166
|
+
}
|
|
167
|
+
|
|
141
168
|
// @public (undocumented)
|
|
142
169
|
export interface AnalyzeDocument202Headers {
|
|
143
170
|
// (undocumented)
|
|
@@ -155,17 +182,24 @@ export interface AnalyzeDocument202Response extends HttpResponse {
|
|
|
155
182
|
|
|
156
183
|
// @public (undocumented)
|
|
157
184
|
export interface AnalyzeDocumentBodyParam {
|
|
158
|
-
body
|
|
185
|
+
body: AnalyzeDocumentRequest;
|
|
159
186
|
}
|
|
160
187
|
|
|
161
188
|
// @public (undocumented)
|
|
162
189
|
export interface AnalyzeDocumentDefaultResponse extends HttpResponse {
|
|
163
190
|
// (undocumented)
|
|
164
|
-
body:
|
|
191
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
165
192
|
// (undocumented)
|
|
166
193
|
status: string;
|
|
167
194
|
}
|
|
168
195
|
|
|
196
|
+
// @public
|
|
197
|
+
export interface AnalyzeDocumentFeaturesQueryParam {
|
|
198
|
+
explode: false;
|
|
199
|
+
style: "form";
|
|
200
|
+
value: DocumentAnalysisFeature[];
|
|
201
|
+
}
|
|
202
|
+
|
|
169
203
|
// @public (undocumented)
|
|
170
204
|
export interface AnalyzeDocumentFromStream {
|
|
171
205
|
post(options: AnalyzeDocumentFromStreamParameters): StreamableMethod<AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse>;
|
|
@@ -195,11 +229,18 @@ export interface AnalyzeDocumentFromStreamBodyParam {
|
|
|
195
229
|
// @public (undocumented)
|
|
196
230
|
export interface AnalyzeDocumentFromStreamDefaultResponse extends HttpResponse {
|
|
197
231
|
// (undocumented)
|
|
198
|
-
body:
|
|
232
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
199
233
|
// (undocumented)
|
|
200
234
|
status: string;
|
|
201
235
|
}
|
|
202
236
|
|
|
237
|
+
// @public
|
|
238
|
+
export interface AnalyzeDocumentFromStreamFeaturesQueryParam {
|
|
239
|
+
explode: false;
|
|
240
|
+
style: "form";
|
|
241
|
+
value: DocumentAnalysisFeature[];
|
|
242
|
+
}
|
|
243
|
+
|
|
203
244
|
// @public
|
|
204
245
|
export interface AnalyzeDocumentFromStreamLogicalResponse extends HttpResponse {
|
|
205
246
|
// (undocumented)
|
|
@@ -211,9 +252,23 @@ export interface AnalyzeDocumentFromStreamMediaTypesParam {
|
|
|
211
252
|
contentType: "application/octet-stream" | "application/pdf" | "image/jpeg" | "image/png" | "image/tiff" | "image/bmp" | "image/heif" | "text/html" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
212
253
|
}
|
|
213
254
|
|
|
255
|
+
// @public
|
|
256
|
+
export interface AnalyzeDocumentFromStreamOutputQueryParam {
|
|
257
|
+
explode: false;
|
|
258
|
+
style: "form";
|
|
259
|
+
value: AnalyzeOutputOption[];
|
|
260
|
+
}
|
|
261
|
+
|
|
214
262
|
// @public (undocumented)
|
|
215
263
|
export type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam & AnalyzeDocumentFromStreamMediaTypesParam & AnalyzeDocumentFromStreamBodyParam & RequestParameters;
|
|
216
264
|
|
|
265
|
+
// @public
|
|
266
|
+
export interface AnalyzeDocumentFromStreamQueryFieldsQueryParam {
|
|
267
|
+
explode: false;
|
|
268
|
+
style: "form";
|
|
269
|
+
value: string[];
|
|
270
|
+
}
|
|
271
|
+
|
|
217
272
|
// @public (undocumented)
|
|
218
273
|
export interface AnalyzeDocumentFromStreamQueryParam {
|
|
219
274
|
// (undocumented)
|
|
@@ -222,12 +277,12 @@ export interface AnalyzeDocumentFromStreamQueryParam {
|
|
|
222
277
|
|
|
223
278
|
// @public (undocumented)
|
|
224
279
|
export interface AnalyzeDocumentFromStreamQueryParamProperties {
|
|
225
|
-
features?: DocumentAnalysisFeature[];
|
|
280
|
+
features?: DocumentAnalysisFeature[] | AnalyzeDocumentFromStreamFeaturesQueryParam;
|
|
226
281
|
locale?: string;
|
|
227
|
-
output?: AnalyzeOutputOption[];
|
|
228
|
-
outputContentFormat?:
|
|
282
|
+
output?: AnalyzeOutputOption[] | AnalyzeDocumentFromStreamOutputQueryParam;
|
|
283
|
+
outputContentFormat?: DocumentContentFormat;
|
|
229
284
|
pages?: string;
|
|
230
|
-
queryFields?: string[];
|
|
285
|
+
queryFields?: string[] | AnalyzeDocumentFromStreamQueryFieldsQueryParam;
|
|
231
286
|
stringIndexType?: StringIndexType;
|
|
232
287
|
}
|
|
233
288
|
|
|
@@ -242,9 +297,23 @@ export interface AnalyzeDocumentMediaTypesParam {
|
|
|
242
297
|
contentType: "application/json";
|
|
243
298
|
}
|
|
244
299
|
|
|
300
|
+
// @public
|
|
301
|
+
export interface AnalyzeDocumentOutputQueryParam {
|
|
302
|
+
explode: false;
|
|
303
|
+
style: "form";
|
|
304
|
+
value: AnalyzeOutputOption[];
|
|
305
|
+
}
|
|
306
|
+
|
|
245
307
|
// @public (undocumented)
|
|
246
308
|
export type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam & AnalyzeDocumentMediaTypesParam & AnalyzeDocumentBodyParam & RequestParameters;
|
|
247
309
|
|
|
310
|
+
// @public
|
|
311
|
+
export interface AnalyzeDocumentQueryFieldsQueryParam {
|
|
312
|
+
explode: false;
|
|
313
|
+
style: "form";
|
|
314
|
+
value: string[];
|
|
315
|
+
}
|
|
316
|
+
|
|
248
317
|
// @public (undocumented)
|
|
249
318
|
export interface AnalyzeDocumentQueryParam {
|
|
250
319
|
// (undocumented)
|
|
@@ -253,12 +322,12 @@ export interface AnalyzeDocumentQueryParam {
|
|
|
253
322
|
|
|
254
323
|
// @public (undocumented)
|
|
255
324
|
export interface AnalyzeDocumentQueryParamProperties {
|
|
256
|
-
features?: DocumentAnalysisFeature[];
|
|
325
|
+
features?: DocumentAnalysisFeature[] | AnalyzeDocumentFeaturesQueryParam;
|
|
257
326
|
locale?: string;
|
|
258
|
-
output?: AnalyzeOutputOption[];
|
|
259
|
-
outputContentFormat?:
|
|
327
|
+
output?: AnalyzeOutputOption[] | AnalyzeDocumentOutputQueryParam;
|
|
328
|
+
outputContentFormat?: DocumentContentFormat;
|
|
260
329
|
pages?: string;
|
|
261
|
-
queryFields?: string[];
|
|
330
|
+
queryFields?: string[] | AnalyzeDocumentQueryFieldsQueryParam;
|
|
262
331
|
stringIndexType?: StringIndexType;
|
|
263
332
|
}
|
|
264
333
|
|
|
@@ -269,23 +338,23 @@ export interface AnalyzeDocumentRequest {
|
|
|
269
338
|
}
|
|
270
339
|
|
|
271
340
|
// @public
|
|
272
|
-
export
|
|
273
|
-
|
|
274
|
-
// @public
|
|
275
|
-
export interface AnalyzeResultOperationOutput {
|
|
341
|
+
export interface AnalyzeOperationOutput {
|
|
276
342
|
analyzeResult?: AnalyzeResultOutput;
|
|
277
343
|
createdDateTime: string;
|
|
278
|
-
error?:
|
|
344
|
+
error?: DocumentIntelligenceErrorOutput;
|
|
279
345
|
lastUpdatedDateTime: string;
|
|
280
|
-
status:
|
|
346
|
+
status: DocumentIntelligenceOperationStatusOutput;
|
|
281
347
|
}
|
|
282
348
|
|
|
349
|
+
// @public
|
|
350
|
+
export type AnalyzeOutputOption = string;
|
|
351
|
+
|
|
283
352
|
// @public
|
|
284
353
|
export interface AnalyzeResultOutput {
|
|
285
354
|
apiVersion: string;
|
|
286
355
|
content: string;
|
|
287
|
-
contentFormat?:
|
|
288
|
-
documents?: Array<
|
|
356
|
+
contentFormat?: DocumentContentFormatOutput;
|
|
357
|
+
documents?: Array<AnalyzedDocumentOutput>;
|
|
289
358
|
figures?: Array<DocumentFigureOutput>;
|
|
290
359
|
keyValuePairs?: Array<DocumentKeyValuePairOutput>;
|
|
291
360
|
languages?: Array<DocumentLanguageOutput>;
|
|
@@ -296,7 +365,7 @@ export interface AnalyzeResultOutput {
|
|
|
296
365
|
stringIndexType: StringIndexTypeOutput;
|
|
297
366
|
styles?: Array<DocumentStyleOutput>;
|
|
298
367
|
tables?: Array<DocumentTableOutput>;
|
|
299
|
-
warnings?: Array<
|
|
368
|
+
warnings?: Array<DocumentIntelligenceWarningOutput>;
|
|
300
369
|
}
|
|
301
370
|
|
|
302
371
|
// @public (undocumented)
|
|
@@ -320,7 +389,7 @@ export interface AuthorizeClassifierCopyBodyParam {
|
|
|
320
389
|
// @public (undocumented)
|
|
321
390
|
export interface AuthorizeClassifierCopyDefaultResponse extends HttpResponse {
|
|
322
391
|
// (undocumented)
|
|
323
|
-
body:
|
|
392
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
324
393
|
// (undocumented)
|
|
325
394
|
status: string;
|
|
326
395
|
}
|
|
@@ -350,7 +419,7 @@ export interface AuthorizeModelCopy {
|
|
|
350
419
|
// @public
|
|
351
420
|
export interface AuthorizeModelCopy200Response extends HttpResponse {
|
|
352
421
|
// (undocumented)
|
|
353
|
-
body:
|
|
422
|
+
body: ModelCopyAuthorizationOutput;
|
|
354
423
|
// (undocumented)
|
|
355
424
|
status: "200";
|
|
356
425
|
}
|
|
@@ -363,7 +432,7 @@ export interface AuthorizeModelCopyBodyParam {
|
|
|
363
432
|
// @public (undocumented)
|
|
364
433
|
export interface AuthorizeModelCopyDefaultResponse extends HttpResponse {
|
|
365
434
|
// (undocumented)
|
|
366
|
-
body:
|
|
435
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
367
436
|
// (undocumented)
|
|
368
437
|
status: string;
|
|
369
438
|
}
|
|
@@ -429,7 +498,7 @@ export interface BuildClassifierBodyParam {
|
|
|
429
498
|
// @public (undocumented)
|
|
430
499
|
export interface BuildClassifierDefaultResponse extends HttpResponse {
|
|
431
500
|
// (undocumented)
|
|
432
|
-
body:
|
|
501
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
433
502
|
// (undocumented)
|
|
434
503
|
status: string;
|
|
435
504
|
}
|
|
@@ -492,7 +561,7 @@ export interface BuildModelBodyParam {
|
|
|
492
561
|
// @public (undocumented)
|
|
493
562
|
export interface BuildModelDefaultResponse extends HttpResponse {
|
|
494
563
|
// (undocumented)
|
|
495
|
-
body:
|
|
564
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
496
565
|
// (undocumented)
|
|
497
566
|
status: string;
|
|
498
567
|
}
|
|
@@ -563,7 +632,7 @@ export interface ClassifyDocumentBodyParam {
|
|
|
563
632
|
// @public (undocumented)
|
|
564
633
|
export interface ClassifyDocumentDefaultResponse extends HttpResponse {
|
|
565
634
|
// (undocumented)
|
|
566
|
-
body:
|
|
635
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
567
636
|
// (undocumented)
|
|
568
637
|
status: string;
|
|
569
638
|
}
|
|
@@ -597,7 +666,7 @@ export interface ClassifyDocumentFromStreamBodyParam {
|
|
|
597
666
|
// @public (undocumented)
|
|
598
667
|
export interface ClassifyDocumentFromStreamDefaultResponse extends HttpResponse {
|
|
599
668
|
// (undocumented)
|
|
600
|
-
body:
|
|
669
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
601
670
|
// (undocumented)
|
|
602
671
|
status: string;
|
|
603
672
|
}
|
|
@@ -700,7 +769,7 @@ export interface ComposeModelBodyParam {
|
|
|
700
769
|
// @public (undocumented)
|
|
701
770
|
export interface ComposeModelDefaultResponse extends HttpResponse {
|
|
702
771
|
// (undocumented)
|
|
703
|
-
body:
|
|
772
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
704
773
|
// (undocumented)
|
|
705
774
|
status: string;
|
|
706
775
|
}
|
|
@@ -714,38 +783,12 @@ export interface ComposeModelLogicalResponse extends HttpResponse {
|
|
|
714
783
|
// @public (undocumented)
|
|
715
784
|
export type ComposeModelParameters = ComposeModelBodyParam & RequestParameters;
|
|
716
785
|
|
|
717
|
-
// @public
|
|
718
|
-
export type ContentFormat = string;
|
|
719
|
-
|
|
720
|
-
// @public
|
|
721
|
-
export type ContentFormatOutput = string;
|
|
722
|
-
|
|
723
786
|
// @public
|
|
724
787
|
export type ContentSourceKind = string;
|
|
725
788
|
|
|
726
789
|
// @public
|
|
727
790
|
export type ContentSourceKindOutput = string;
|
|
728
791
|
|
|
729
|
-
// @public
|
|
730
|
-
export interface CopyAuthorization {
|
|
731
|
-
accessToken: string;
|
|
732
|
-
expirationDateTime: Date | string;
|
|
733
|
-
targetModelId: string;
|
|
734
|
-
targetModelLocation: string;
|
|
735
|
-
targetResourceId: string;
|
|
736
|
-
targetResourceRegion: string;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
// @public
|
|
740
|
-
export interface CopyAuthorizationOutput {
|
|
741
|
-
accessToken: string;
|
|
742
|
-
expirationDateTime: string;
|
|
743
|
-
targetModelId: string;
|
|
744
|
-
targetModelLocation: string;
|
|
745
|
-
targetResourceId: string;
|
|
746
|
-
targetResourceRegion: string;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
792
|
// @public (undocumented)
|
|
750
793
|
export interface CopyClassifierTo {
|
|
751
794
|
post(options: CopyClassifierToParameters): StreamableMethod<CopyClassifierTo202Response | CopyClassifierToDefaultResponse>;
|
|
@@ -774,7 +817,7 @@ export interface CopyClassifierToBodyParam {
|
|
|
774
817
|
// @public (undocumented)
|
|
775
818
|
export interface CopyClassifierToDefaultResponse extends HttpResponse {
|
|
776
819
|
// (undocumented)
|
|
777
|
-
body:
|
|
820
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
778
821
|
// (undocumented)
|
|
779
822
|
status: string;
|
|
780
823
|
}
|
|
@@ -810,13 +853,13 @@ export interface CopyModelTo202Response extends HttpResponse {
|
|
|
810
853
|
|
|
811
854
|
// @public (undocumented)
|
|
812
855
|
export interface CopyModelToBodyParam {
|
|
813
|
-
body:
|
|
856
|
+
body: ModelCopyAuthorization;
|
|
814
857
|
}
|
|
815
858
|
|
|
816
859
|
// @public (undocumented)
|
|
817
860
|
export interface CopyModelToDefaultResponse extends HttpResponse {
|
|
818
861
|
// (undocumented)
|
|
819
|
-
body:
|
|
862
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
820
863
|
// (undocumented)
|
|
821
864
|
status: string;
|
|
822
865
|
}
|
|
@@ -847,6 +890,40 @@ export interface CustomDocumentModelsDetailsOutput {
|
|
|
847
890
|
limit: number;
|
|
848
891
|
}
|
|
849
892
|
|
|
893
|
+
// @public
|
|
894
|
+
export interface DeleteAnalyzeBatchResult204Response extends HttpResponse {
|
|
895
|
+
// (undocumented)
|
|
896
|
+
status: "204";
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
// @public (undocumented)
|
|
900
|
+
export interface DeleteAnalyzeBatchResultDefaultResponse extends HttpResponse {
|
|
901
|
+
// (undocumented)
|
|
902
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
903
|
+
// (undocumented)
|
|
904
|
+
status: string;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
// @public (undocumented)
|
|
908
|
+
export type DeleteAnalyzeBatchResultParameters = RequestParameters;
|
|
909
|
+
|
|
910
|
+
// @public
|
|
911
|
+
export interface DeleteAnalyzeResult204Response extends HttpResponse {
|
|
912
|
+
// (undocumented)
|
|
913
|
+
status: "204";
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
// @public (undocumented)
|
|
917
|
+
export interface DeleteAnalyzeResultDefaultResponse extends HttpResponse {
|
|
918
|
+
// (undocumented)
|
|
919
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
920
|
+
// (undocumented)
|
|
921
|
+
status: string;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// @public (undocumented)
|
|
925
|
+
export type DeleteAnalyzeResultParameters = RequestParameters;
|
|
926
|
+
|
|
850
927
|
// @public (undocumented)
|
|
851
928
|
export interface DeleteClassifier204Headers {
|
|
852
929
|
"x-ms-client-request-id"?: string;
|
|
@@ -863,7 +940,7 @@ export interface DeleteClassifier204Response extends HttpResponse {
|
|
|
863
940
|
// @public (undocumented)
|
|
864
941
|
export interface DeleteClassifierDefaultResponse extends HttpResponse {
|
|
865
942
|
// (undocumented)
|
|
866
|
-
body:
|
|
943
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
867
944
|
// (undocumented)
|
|
868
945
|
status: string;
|
|
869
946
|
}
|
|
@@ -898,7 +975,7 @@ export interface DeleteModel204Response extends HttpResponse {
|
|
|
898
975
|
// @public (undocumented)
|
|
899
976
|
export interface DeleteModelDefaultResponse extends HttpResponse {
|
|
900
977
|
// (undocumented)
|
|
901
|
-
body:
|
|
978
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
902
979
|
// (undocumented)
|
|
903
980
|
status: string;
|
|
904
981
|
}
|
|
@@ -950,13 +1027,13 @@ export interface DocumentCaptionOutput {
|
|
|
950
1027
|
}
|
|
951
1028
|
|
|
952
1029
|
// @public
|
|
953
|
-
export interface DocumentClassifierBuildOperationDetailsOutput extends
|
|
1030
|
+
export interface DocumentClassifierBuildOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
|
|
954
1031
|
kind: "documentClassifierBuild";
|
|
955
1032
|
result?: DocumentClassifierDetailsOutput;
|
|
956
1033
|
}
|
|
957
1034
|
|
|
958
1035
|
// @public
|
|
959
|
-
export interface DocumentClassifierCopyToOperationDetailsOutput extends
|
|
1036
|
+
export interface DocumentClassifierCopyToOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
|
|
960
1037
|
kind: "documentClassifierCopyTo";
|
|
961
1038
|
result?: DocumentClassifierDetailsOutput;
|
|
962
1039
|
}
|
|
@@ -970,9 +1047,16 @@ export interface DocumentClassifierDetailsOutput {
|
|
|
970
1047
|
description?: string;
|
|
971
1048
|
docTypes: Record<string, ClassifierDocumentTypeDetailsOutput>;
|
|
972
1049
|
expirationDateTime?: string;
|
|
973
|
-
|
|
1050
|
+
readonly modifiedDateTime?: string;
|
|
1051
|
+
warnings?: Array<DocumentIntelligenceWarningOutput>;
|
|
974
1052
|
}
|
|
975
1053
|
|
|
1054
|
+
// @public
|
|
1055
|
+
export type DocumentContentFormat = string;
|
|
1056
|
+
|
|
1057
|
+
// @public
|
|
1058
|
+
export type DocumentContentFormatOutput = string;
|
|
1059
|
+
|
|
976
1060
|
// @public
|
|
977
1061
|
export interface DocumentFieldOutput {
|
|
978
1062
|
boundingRegions?: Array<BoundingRegionOutput>;
|
|
@@ -1031,6 +1115,12 @@ export interface DocumentFigureOutput {
|
|
|
1031
1115
|
spans: Array<DocumentSpanOutput>;
|
|
1032
1116
|
}
|
|
1033
1117
|
|
|
1118
|
+
// @public
|
|
1119
|
+
export type DocumentFontStyleOutput = string;
|
|
1120
|
+
|
|
1121
|
+
// @public
|
|
1122
|
+
export type DocumentFontWeightOutput = string;
|
|
1123
|
+
|
|
1034
1124
|
// @public
|
|
1035
1125
|
export interface DocumentFootnoteOutput {
|
|
1036
1126
|
boundingRegions?: Array<BoundingRegionOutput>;
|
|
@@ -1061,6 +1151,60 @@ export interface DocumentIntelligenceClientOptions extends ClientOptions {
|
|
|
1061
1151
|
apiVersion?: string;
|
|
1062
1152
|
}
|
|
1063
1153
|
|
|
1154
|
+
// @public
|
|
1155
|
+
export interface DocumentIntelligenceErrorOutput {
|
|
1156
|
+
code: string;
|
|
1157
|
+
details?: Array<DocumentIntelligenceErrorOutput>;
|
|
1158
|
+
innererror?: DocumentIntelligenceInnerErrorOutput;
|
|
1159
|
+
message: string;
|
|
1160
|
+
target?: string;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
// @public
|
|
1164
|
+
export interface DocumentIntelligenceErrorResponseOutput {
|
|
1165
|
+
error: DocumentIntelligenceErrorOutput;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
// @public
|
|
1169
|
+
export interface DocumentIntelligenceInnerErrorOutput {
|
|
1170
|
+
code?: string;
|
|
1171
|
+
innererror?: DocumentIntelligenceInnerErrorOutput;
|
|
1172
|
+
message?: string;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
// @public
|
|
1176
|
+
export type DocumentIntelligenceOperationDetailsOutput = DocumentIntelligenceOperationDetailsOutputParent | DocumentModelBuildOperationDetailsOutput | DocumentModelComposeOperationDetailsOutput | DocumentModelCopyToOperationDetailsOutput | DocumentClassifierCopyToOperationDetailsOutput | DocumentClassifierBuildOperationDetailsOutput;
|
|
1177
|
+
|
|
1178
|
+
// @public
|
|
1179
|
+
export interface DocumentIntelligenceOperationDetailsOutputParent {
|
|
1180
|
+
apiVersion?: string;
|
|
1181
|
+
createdDateTime: string;
|
|
1182
|
+
error?: DocumentIntelligenceErrorOutput;
|
|
1183
|
+
// (undocumented)
|
|
1184
|
+
kind: OperationKindOutput;
|
|
1185
|
+
lastUpdatedDateTime: string;
|
|
1186
|
+
operationId: string;
|
|
1187
|
+
percentCompleted?: number;
|
|
1188
|
+
resourceLocation: string;
|
|
1189
|
+
status: DocumentIntelligenceOperationStatusOutput;
|
|
1190
|
+
tags?: Record<string, string>;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
// @public
|
|
1194
|
+
export type DocumentIntelligenceOperationStatusOutput = string;
|
|
1195
|
+
|
|
1196
|
+
// @public
|
|
1197
|
+
export interface DocumentIntelligenceResourceDetailsOutput {
|
|
1198
|
+
customDocumentModels: CustomDocumentModelsDetailsOutput;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
// @public
|
|
1202
|
+
export interface DocumentIntelligenceWarningOutput {
|
|
1203
|
+
code: string;
|
|
1204
|
+
message: string;
|
|
1205
|
+
target?: string;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1064
1208
|
// @public
|
|
1065
1209
|
export interface DocumentKeyValueElementOutput {
|
|
1066
1210
|
boundingRegions?: Array<BoundingRegionOutput>;
|
|
@@ -1090,19 +1234,19 @@ export interface DocumentLineOutput {
|
|
|
1090
1234
|
}
|
|
1091
1235
|
|
|
1092
1236
|
// @public
|
|
1093
|
-
export interface DocumentModelBuildOperationDetailsOutput extends
|
|
1237
|
+
export interface DocumentModelBuildOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
|
|
1094
1238
|
kind: "documentModelBuild";
|
|
1095
1239
|
result?: DocumentModelDetailsOutput;
|
|
1096
1240
|
}
|
|
1097
1241
|
|
|
1098
1242
|
// @public
|
|
1099
|
-
export interface DocumentModelComposeOperationDetailsOutput extends
|
|
1243
|
+
export interface DocumentModelComposeOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
|
|
1100
1244
|
kind: "documentModelCompose";
|
|
1101
1245
|
result?: DocumentModelDetailsOutput;
|
|
1102
1246
|
}
|
|
1103
1247
|
|
|
1104
1248
|
// @public
|
|
1105
|
-
export interface DocumentModelCopyToOperationDetailsOutput extends
|
|
1249
|
+
export interface DocumentModelCopyToOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
|
|
1106
1250
|
kind: "documentModelCopyTo";
|
|
1107
1251
|
result?: DocumentModelDetailsOutput;
|
|
1108
1252
|
}
|
|
@@ -1119,19 +1263,11 @@ export interface DocumentModelDetailsOutput {
|
|
|
1119
1263
|
readonly docTypes?: Record<string, DocumentTypeDetailsOutput>;
|
|
1120
1264
|
readonly expirationDateTime?: string;
|
|
1121
1265
|
modelId: string;
|
|
1266
|
+
readonly modifiedDateTime?: string;
|
|
1122
1267
|
split?: SplitModeOutput;
|
|
1123
1268
|
tags?: Record<string, string>;
|
|
1124
1269
|
readonly trainingHours?: number;
|
|
1125
|
-
readonly warnings?: Array<
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
// @public
|
|
1129
|
-
export interface DocumentOutput {
|
|
1130
|
-
boundingRegions?: Array<BoundingRegionOutput>;
|
|
1131
|
-
confidence: number;
|
|
1132
|
-
docType: string;
|
|
1133
|
-
fields?: Record<string, DocumentFieldOutput>;
|
|
1134
|
-
spans: Array<DocumentSpanOutput>;
|
|
1270
|
+
readonly warnings?: Array<DocumentIntelligenceWarningOutput>;
|
|
1135
1271
|
}
|
|
1136
1272
|
|
|
1137
1273
|
// @public
|
|
@@ -1188,8 +1324,8 @@ export interface DocumentStyleOutput {
|
|
|
1188
1324
|
backgroundColor?: string;
|
|
1189
1325
|
color?: string;
|
|
1190
1326
|
confidence: number;
|
|
1191
|
-
fontStyle?:
|
|
1192
|
-
fontWeight?:
|
|
1327
|
+
fontStyle?: DocumentFontStyleOutput;
|
|
1328
|
+
fontWeight?: DocumentFontWeightOutput;
|
|
1193
1329
|
isHandwritten?: boolean;
|
|
1194
1330
|
similarFontFamily?: string;
|
|
1195
1331
|
spans: Array<DocumentSpanOutput>;
|
|
@@ -1256,35 +1392,16 @@ export interface DocumentWordOutput {
|
|
|
1256
1392
|
span: DocumentSpanOutput;
|
|
1257
1393
|
}
|
|
1258
1394
|
|
|
1259
|
-
// @public
|
|
1260
|
-
export interface ErrorModelOutput {
|
|
1261
|
-
code: string;
|
|
1262
|
-
details?: Array<ErrorModelOutput>;
|
|
1263
|
-
innererror?: InnerErrorOutput;
|
|
1264
|
-
message: string;
|
|
1265
|
-
target?: string;
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
// @public
|
|
1269
|
-
export interface ErrorResponseOutput {
|
|
1270
|
-
error: ErrorModelOutput;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
// @public
|
|
1274
|
-
export type FontStyleOutput = string;
|
|
1275
|
-
|
|
1276
|
-
// @public
|
|
1277
|
-
export type FontWeightOutput = string;
|
|
1278
|
-
|
|
1279
1395
|
// @public (undocumented)
|
|
1280
1396
|
export interface GetAnalyzeBatchResult {
|
|
1397
|
+
delete(options?: DeleteAnalyzeBatchResultParameters): StreamableMethod<DeleteAnalyzeBatchResult204Response | DeleteAnalyzeBatchResultDefaultResponse>;
|
|
1281
1398
|
get(options?: GetAnalyzeBatchResultParameters): StreamableMethod<GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse>;
|
|
1282
1399
|
}
|
|
1283
1400
|
|
|
1284
1401
|
// @public
|
|
1285
1402
|
export interface GetAnalyzeBatchResult200Response extends HttpResponse {
|
|
1286
1403
|
// (undocumented)
|
|
1287
|
-
body:
|
|
1404
|
+
body: AnalyzeBatchOperationOutput;
|
|
1288
1405
|
// (undocumented)
|
|
1289
1406
|
status: "200";
|
|
1290
1407
|
}
|
|
@@ -1292,7 +1409,7 @@ export interface GetAnalyzeBatchResult200Response extends HttpResponse {
|
|
|
1292
1409
|
// @public (undocumented)
|
|
1293
1410
|
export interface GetAnalyzeBatchResultDefaultResponse extends HttpResponse {
|
|
1294
1411
|
// (undocumented)
|
|
1295
|
-
body:
|
|
1412
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1296
1413
|
// (undocumented)
|
|
1297
1414
|
status: string;
|
|
1298
1415
|
}
|
|
@@ -1302,13 +1419,14 @@ export type GetAnalyzeBatchResultParameters = RequestParameters;
|
|
|
1302
1419
|
|
|
1303
1420
|
// @public (undocumented)
|
|
1304
1421
|
export interface GetAnalyzeResult {
|
|
1422
|
+
delete(options?: DeleteAnalyzeResultParameters): StreamableMethod<DeleteAnalyzeResult204Response | DeleteAnalyzeResultDefaultResponse>;
|
|
1305
1423
|
get(options?: GetAnalyzeResultParameters): StreamableMethod<GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse>;
|
|
1306
1424
|
}
|
|
1307
1425
|
|
|
1308
1426
|
// @public
|
|
1309
1427
|
export interface GetAnalyzeResult200Response extends HttpResponse {
|
|
1310
1428
|
// (undocumented)
|
|
1311
|
-
body:
|
|
1429
|
+
body: AnalyzeOperationOutput;
|
|
1312
1430
|
// (undocumented)
|
|
1313
1431
|
status: "200";
|
|
1314
1432
|
}
|
|
@@ -1316,7 +1434,7 @@ export interface GetAnalyzeResult200Response extends HttpResponse {
|
|
|
1316
1434
|
// @public (undocumented)
|
|
1317
1435
|
export interface GetAnalyzeResultDefaultResponse extends HttpResponse {
|
|
1318
1436
|
// (undocumented)
|
|
1319
|
-
body:
|
|
1437
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1320
1438
|
// (undocumented)
|
|
1321
1439
|
status: string;
|
|
1322
1440
|
}
|
|
@@ -1343,7 +1461,7 @@ export interface GetAnalyzeResultFigure200Response extends HttpResponse {
|
|
|
1343
1461
|
// @public (undocumented)
|
|
1344
1462
|
export interface GetAnalyzeResultFigureDefaultResponse extends HttpResponse {
|
|
1345
1463
|
// (undocumented)
|
|
1346
|
-
body:
|
|
1464
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1347
1465
|
// (undocumented)
|
|
1348
1466
|
status: string;
|
|
1349
1467
|
}
|
|
@@ -1376,7 +1494,7 @@ export interface GetAnalyzeResultPdf200Response extends HttpResponse {
|
|
|
1376
1494
|
// @public (undocumented)
|
|
1377
1495
|
export interface GetAnalyzeResultPdfDefaultResponse extends HttpResponse {
|
|
1378
1496
|
// (undocumented)
|
|
1379
|
-
body:
|
|
1497
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1380
1498
|
// (undocumented)
|
|
1381
1499
|
status: string;
|
|
1382
1500
|
}
|
|
@@ -1411,7 +1529,7 @@ export interface GetClassifier200Response extends HttpResponse {
|
|
|
1411
1529
|
// @public (undocumented)
|
|
1412
1530
|
export interface GetClassifierDefaultResponse extends HttpResponse {
|
|
1413
1531
|
// (undocumented)
|
|
1414
|
-
body:
|
|
1532
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1415
1533
|
// (undocumented)
|
|
1416
1534
|
status: string;
|
|
1417
1535
|
}
|
|
@@ -1438,7 +1556,7 @@ export interface GetClassifyResult {
|
|
|
1438
1556
|
// @public
|
|
1439
1557
|
export interface GetClassifyResult200Response extends HttpResponse {
|
|
1440
1558
|
// (undocumented)
|
|
1441
|
-
body:
|
|
1559
|
+
body: AnalyzeOperationOutput;
|
|
1442
1560
|
// (undocumented)
|
|
1443
1561
|
status: "200";
|
|
1444
1562
|
}
|
|
@@ -1446,7 +1564,7 @@ export interface GetClassifyResult200Response extends HttpResponse {
|
|
|
1446
1564
|
// @public (undocumented)
|
|
1447
1565
|
export interface GetClassifyResultDefaultResponse extends HttpResponse {
|
|
1448
1566
|
// (undocumented)
|
|
1449
|
-
body:
|
|
1567
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1450
1568
|
// (undocumented)
|
|
1451
1569
|
status: string;
|
|
1452
1570
|
}
|
|
@@ -1472,7 +1590,7 @@ export interface GetDocumentClassifierBuildOperation200Response extends HttpResp
|
|
|
1472
1590
|
// @public (undocumented)
|
|
1473
1591
|
export interface GetDocumentClassifierBuildOperationDefaultResponse extends HttpResponse {
|
|
1474
1592
|
// (undocumented)
|
|
1475
|
-
body:
|
|
1593
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1476
1594
|
// (undocumented)
|
|
1477
1595
|
status: string;
|
|
1478
1596
|
}
|
|
@@ -1509,7 +1627,7 @@ export interface GetDocumentClassifierCopyToOperation200Response extends HttpRes
|
|
|
1509
1627
|
// @public (undocumented)
|
|
1510
1628
|
export interface GetDocumentClassifierCopyToOperationDefaultResponse extends HttpResponse {
|
|
1511
1629
|
// (undocumented)
|
|
1512
|
-
body:
|
|
1630
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1513
1631
|
// (undocumented)
|
|
1514
1632
|
status: string;
|
|
1515
1633
|
}
|
|
@@ -1556,7 +1674,7 @@ export interface GetDocumentModelBuildOperation200Response extends HttpResponse
|
|
|
1556
1674
|
// @public (undocumented)
|
|
1557
1675
|
export interface GetDocumentModelBuildOperationDefaultResponse extends HttpResponse {
|
|
1558
1676
|
// (undocumented)
|
|
1559
|
-
body:
|
|
1677
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1560
1678
|
// (undocumented)
|
|
1561
1679
|
status: string;
|
|
1562
1680
|
}
|
|
@@ -1593,7 +1711,7 @@ export interface GetDocumentModelComposeOperation200Response extends HttpRespons
|
|
|
1593
1711
|
// @public (undocumented)
|
|
1594
1712
|
export interface GetDocumentModelComposeOperationDefaultResponse extends HttpResponse {
|
|
1595
1713
|
// (undocumented)
|
|
1596
|
-
body:
|
|
1714
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1597
1715
|
// (undocumented)
|
|
1598
1716
|
status: string;
|
|
1599
1717
|
}
|
|
@@ -1630,7 +1748,7 @@ export interface GetDocumentModelCopyToOperation200Response extends HttpResponse
|
|
|
1630
1748
|
// @public (undocumented)
|
|
1631
1749
|
export interface GetDocumentModelCopyToOperationDefaultResponse extends HttpResponse {
|
|
1632
1750
|
// (undocumented)
|
|
1633
|
-
body:
|
|
1751
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1634
1752
|
// (undocumented)
|
|
1635
1753
|
status: string;
|
|
1636
1754
|
}
|
|
@@ -1650,28 +1768,34 @@ export interface GetDocumentModelCopyToOperationHeaders {
|
|
|
1650
1768
|
export type GetDocumentModelCopyToOperationParameters = GetDocumentModelCopyToOperationHeaderParam & RequestParameters;
|
|
1651
1769
|
|
|
1652
1770
|
// @public
|
|
1653
|
-
export function getLongRunningPoller<TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse>(client: Client, initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse, options?:
|
|
1771
|
+
export function getLongRunningPoller<TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse>(client: Client, initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
|
|
1654
1772
|
|
|
1655
1773
|
// @public (undocumented)
|
|
1656
|
-
export function getLongRunningPoller<TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse>(client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, options?:
|
|
1774
|
+
export function getLongRunningPoller<TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse>(client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
|
|
1657
1775
|
|
|
1658
1776
|
// @public (undocumented)
|
|
1659
|
-
export function getLongRunningPoller<TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse>(client: Client, initialResponse: ComposeModel202Response | ComposeModelDefaultResponse, options?:
|
|
1777
|
+
export function getLongRunningPoller<TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse>(client: Client, initialResponse: ComposeModel202Response | ComposeModelDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
|
|
1660
1778
|
|
|
1661
1779
|
// @public (undocumented)
|
|
1662
|
-
export function getLongRunningPoller<TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse>(client: Client, initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse, options?:
|
|
1780
|
+
export function getLongRunningPoller<TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse>(client: Client, initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
|
|
1663
1781
|
|
|
1664
1782
|
// @public (undocumented)
|
|
1665
|
-
export function getLongRunningPoller<TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse>(client: Client, initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse, options?:
|
|
1783
|
+
export function getLongRunningPoller<TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse>(client: Client, initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
|
|
1666
1784
|
|
|
1667
1785
|
// @public (undocumented)
|
|
1668
|
-
export function getLongRunningPoller<TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse>(client: Client, initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse, options?:
|
|
1786
|
+
export function getLongRunningPoller<TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse>(client: Client, initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
|
|
1669
1787
|
|
|
1670
1788
|
// @public (undocumented)
|
|
1671
|
-
export function getLongRunningPoller<TResult extends AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse>(client: Client, initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse, options?:
|
|
1789
|
+
export function getLongRunningPoller<TResult extends AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse>(client: Client, initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
|
|
1672
1790
|
|
|
1673
1791
|
// @public (undocumented)
|
|
1674
|
-
export function getLongRunningPoller<TResult extends ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse>(client: Client, initialResponse: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse, options?:
|
|
1792
|
+
export function getLongRunningPoller<TResult extends ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse>(client: Client, initialResponse: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
|
|
1793
|
+
|
|
1794
|
+
// @public
|
|
1795
|
+
export interface GetLongRunningPollerOptions {
|
|
1796
|
+
intervalInMs?: number;
|
|
1797
|
+
restoreFrom?: string;
|
|
1798
|
+
}
|
|
1675
1799
|
|
|
1676
1800
|
// @public (undocumented)
|
|
1677
1801
|
export interface GetModel {
|
|
@@ -1697,7 +1821,7 @@ export interface GetModel200Response extends HttpResponse {
|
|
|
1697
1821
|
// @public (undocumented)
|
|
1698
1822
|
export interface GetModelDefaultResponse extends HttpResponse {
|
|
1699
1823
|
// (undocumented)
|
|
1700
|
-
body:
|
|
1824
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1701
1825
|
// (undocumented)
|
|
1702
1826
|
status: string;
|
|
1703
1827
|
}
|
|
@@ -1724,7 +1848,7 @@ export interface GetOperation200Headers {
|
|
|
1724
1848
|
// @public
|
|
1725
1849
|
export interface GetOperation200Response extends HttpResponse {
|
|
1726
1850
|
// (undocumented)
|
|
1727
|
-
body:
|
|
1851
|
+
body: DocumentIntelligenceOperationDetailsOutput;
|
|
1728
1852
|
// (undocumented)
|
|
1729
1853
|
headers: RawHttpHeaders & GetOperation200Headers;
|
|
1730
1854
|
// (undocumented)
|
|
@@ -1734,7 +1858,7 @@ export interface GetOperation200Response extends HttpResponse {
|
|
|
1734
1858
|
// @public (undocumented)
|
|
1735
1859
|
export interface GetOperationDefaultResponse extends HttpResponse {
|
|
1736
1860
|
// (undocumented)
|
|
1737
|
-
body:
|
|
1861
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1738
1862
|
// (undocumented)
|
|
1739
1863
|
status: string;
|
|
1740
1864
|
}
|
|
@@ -1754,41 +1878,34 @@ export interface GetOperationHeaders {
|
|
|
1754
1878
|
export type GetOperationParameters = GetOperationHeaderParam & RequestParameters;
|
|
1755
1879
|
|
|
1756
1880
|
// @public
|
|
1757
|
-
export type GetPage<TPage> = (pageLink: string
|
|
1881
|
+
export type GetPage<TPage> = (pageLink: string) => Promise<{
|
|
1758
1882
|
page: TPage;
|
|
1759
1883
|
nextPageLink?: string;
|
|
1760
1884
|
}>;
|
|
1761
1885
|
|
|
1762
1886
|
// @public (undocumented)
|
|
1763
|
-
export interface
|
|
1764
|
-
get(options?:
|
|
1887
|
+
export interface GetResourceDetails {
|
|
1888
|
+
get(options?: GetResourceDetailsParameters): StreamableMethod<GetResourceDetails200Response | GetResourceDetailsDefaultResponse>;
|
|
1765
1889
|
}
|
|
1766
1890
|
|
|
1767
1891
|
// @public
|
|
1768
|
-
export interface
|
|
1892
|
+
export interface GetResourceDetails200Response extends HttpResponse {
|
|
1769
1893
|
// (undocumented)
|
|
1770
|
-
body:
|
|
1894
|
+
body: DocumentIntelligenceResourceDetailsOutput;
|
|
1771
1895
|
// (undocumented)
|
|
1772
1896
|
status: "200";
|
|
1773
1897
|
}
|
|
1774
1898
|
|
|
1775
1899
|
// @public (undocumented)
|
|
1776
|
-
export interface
|
|
1900
|
+
export interface GetResourceDetailsDefaultResponse extends HttpResponse {
|
|
1777
1901
|
// (undocumented)
|
|
1778
|
-
body:
|
|
1902
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1779
1903
|
// (undocumented)
|
|
1780
1904
|
status: string;
|
|
1781
1905
|
}
|
|
1782
1906
|
|
|
1783
1907
|
// @public (undocumented)
|
|
1784
|
-
export type
|
|
1785
|
-
|
|
1786
|
-
// @public
|
|
1787
|
-
export interface InnerErrorOutput {
|
|
1788
|
-
code?: string;
|
|
1789
|
-
innererror?: InnerErrorOutput;
|
|
1790
|
-
message?: string;
|
|
1791
|
-
}
|
|
1908
|
+
export type GetResourceDetailsParameters = RequestParameters;
|
|
1792
1909
|
|
|
1793
1910
|
// @public (undocumented)
|
|
1794
1911
|
export function isUnexpected(response: ListOperations200Response | ListOperationsDefaultResponse): response is ListOperationsDefaultResponse;
|
|
@@ -1812,11 +1929,14 @@ export function isUnexpected(response: GetDocumentClassifierBuildOperation200Res
|
|
|
1812
1929
|
export function isUnexpected(response: GetOperation200Response | GetOperationDefaultResponse): response is GetOperationDefaultResponse;
|
|
1813
1930
|
|
|
1814
1931
|
// @public (undocumented)
|
|
1815
|
-
export function isUnexpected(response:
|
|
1932
|
+
export function isUnexpected(response: GetResourceDetails200Response | GetResourceDetailsDefaultResponse): response is GetResourceDetailsDefaultResponse;
|
|
1816
1933
|
|
|
1817
1934
|
// @public (undocumented)
|
|
1818
1935
|
export function isUnexpected(response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse): response is GetAnalyzeResultDefaultResponse;
|
|
1819
1936
|
|
|
1937
|
+
// @public (undocumented)
|
|
1938
|
+
export function isUnexpected(response: DeleteAnalyzeResult204Response | DeleteAnalyzeResultDefaultResponse): response is DeleteAnalyzeResultDefaultResponse;
|
|
1939
|
+
|
|
1820
1940
|
// @public (undocumented)
|
|
1821
1941
|
export function isUnexpected(response: GetAnalyzeResultPdf200Response | GetAnalyzeResultPdfDefaultResponse): response is GetAnalyzeResultPdfDefaultResponse;
|
|
1822
1942
|
|
|
@@ -1832,9 +1952,15 @@ export function isUnexpected(response: AnalyzeDocument202Response | AnalyzeDocum
|
|
|
1832
1952
|
// @public (undocumented)
|
|
1833
1953
|
export function isUnexpected(response: GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse): response is GetAnalyzeBatchResultDefaultResponse;
|
|
1834
1954
|
|
|
1955
|
+
// @public (undocumented)
|
|
1956
|
+
export function isUnexpected(response: DeleteAnalyzeBatchResult204Response | DeleteAnalyzeBatchResultDefaultResponse): response is DeleteAnalyzeBatchResultDefaultResponse;
|
|
1957
|
+
|
|
1835
1958
|
// @public (undocumented)
|
|
1836
1959
|
export function isUnexpected(response: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse): response is AnalyzeBatchDocumentsDefaultResponse;
|
|
1837
1960
|
|
|
1961
|
+
// @public (undocumented)
|
|
1962
|
+
export function isUnexpected(response: ListAnalyzeBatchResults200Response | ListAnalyzeBatchResultsDefaultResponse): response is ListAnalyzeBatchResultsDefaultResponse;
|
|
1963
|
+
|
|
1838
1964
|
// @public (undocumented)
|
|
1839
1965
|
export function isUnexpected(response: GetModel200Response | GetModelDefaultResponse): response is GetModelDefaultResponse;
|
|
1840
1966
|
|
|
@@ -1883,9 +2009,40 @@ export function isUnexpected(response: AuthorizeClassifierCopy200Response | Auth
|
|
|
1883
2009
|
// @public (undocumented)
|
|
1884
2010
|
export function isUnexpected(response: CopyClassifierTo202Response | CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse): response is CopyClassifierToDefaultResponse;
|
|
1885
2011
|
|
|
2012
|
+
// @public
|
|
2013
|
+
export enum KnownDocumentIntelligenceAudience {
|
|
2014
|
+
AzureChina = "https://cognitiveservices.azure.cn",
|
|
2015
|
+
AzureGovernment = "https://cognitiveservices.azure.us",
|
|
2016
|
+
AzurePublicCloud = "https://cognitiveservices.azure.com"
|
|
2017
|
+
}
|
|
2018
|
+
|
|
1886
2019
|
// @public
|
|
1887
2020
|
export type LengthUnitOutput = string;
|
|
1888
2021
|
|
|
2022
|
+
// @public (undocumented)
|
|
2023
|
+
export interface ListAnalyzeBatchResults {
|
|
2024
|
+
get(options?: ListAnalyzeBatchResultsParameters): StreamableMethod<ListAnalyzeBatchResults200Response | ListAnalyzeBatchResultsDefaultResponse>;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
// @public
|
|
2028
|
+
export interface ListAnalyzeBatchResults200Response extends HttpResponse {
|
|
2029
|
+
// (undocumented)
|
|
2030
|
+
body: PagedAnalyzeBatchOperationOutput;
|
|
2031
|
+
// (undocumented)
|
|
2032
|
+
status: "200";
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
// @public (undocumented)
|
|
2036
|
+
export interface ListAnalyzeBatchResultsDefaultResponse extends HttpResponse {
|
|
2037
|
+
// (undocumented)
|
|
2038
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
2039
|
+
// (undocumented)
|
|
2040
|
+
status: string;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
// @public (undocumented)
|
|
2044
|
+
export type ListAnalyzeBatchResultsParameters = RequestParameters;
|
|
2045
|
+
|
|
1889
2046
|
// @public (undocumented)
|
|
1890
2047
|
export interface ListClassifiers {
|
|
1891
2048
|
get(options?: ListClassifiersParameters): StreamableMethod<ListClassifiers200Response | ListClassifiersDefaultResponse>;
|
|
@@ -1909,7 +2066,7 @@ export interface ListClassifiers200Response extends HttpResponse {
|
|
|
1909
2066
|
// @public (undocumented)
|
|
1910
2067
|
export interface ListClassifiersDefaultResponse extends HttpResponse {
|
|
1911
2068
|
// (undocumented)
|
|
1912
|
-
body:
|
|
2069
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1913
2070
|
// (undocumented)
|
|
1914
2071
|
status: string;
|
|
1915
2072
|
}
|
|
@@ -1951,7 +2108,7 @@ export interface ListModels200Response extends HttpResponse {
|
|
|
1951
2108
|
// @public (undocumented)
|
|
1952
2109
|
export interface ListModelsDefaultResponse extends HttpResponse {
|
|
1953
2110
|
// (undocumented)
|
|
1954
|
-
body:
|
|
2111
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1955
2112
|
// (undocumented)
|
|
1956
2113
|
status: string;
|
|
1957
2114
|
}
|
|
@@ -1983,7 +2140,7 @@ export interface ListOperations200Headers {
|
|
|
1983
2140
|
// @public
|
|
1984
2141
|
export interface ListOperations200Response extends HttpResponse {
|
|
1985
2142
|
// (undocumented)
|
|
1986
|
-
body:
|
|
2143
|
+
body: PagedDocumentIntelligenceOperationDetailsOutput;
|
|
1987
2144
|
// (undocumented)
|
|
1988
2145
|
headers: RawHttpHeaders & ListOperations200Headers;
|
|
1989
2146
|
// (undocumented)
|
|
@@ -1993,7 +2150,7 @@ export interface ListOperations200Response extends HttpResponse {
|
|
|
1993
2150
|
// @public (undocumented)
|
|
1994
2151
|
export interface ListOperationsDefaultResponse extends HttpResponse {
|
|
1995
2152
|
// (undocumented)
|
|
1996
|
-
body:
|
|
2153
|
+
body: DocumentIntelligenceErrorResponseOutput;
|
|
1997
2154
|
// (undocumented)
|
|
1998
2155
|
status: string;
|
|
1999
2156
|
}
|
|
@@ -2013,37 +2170,63 @@ export interface ListOperationsHeaders {
|
|
|
2013
2170
|
export type ListOperationsParameters = ListOperationsHeaderParam & RequestParameters;
|
|
2014
2171
|
|
|
2015
2172
|
// @public
|
|
2016
|
-
export
|
|
2173
|
+
export interface ModelCopyAuthorization {
|
|
2174
|
+
accessToken: string;
|
|
2175
|
+
expirationDateTime: Date | string;
|
|
2176
|
+
targetModelId: string;
|
|
2177
|
+
targetModelLocation: string;
|
|
2178
|
+
targetResourceId: string;
|
|
2179
|
+
targetResourceRegion: string;
|
|
2180
|
+
}
|
|
2017
2181
|
|
|
2018
2182
|
// @public
|
|
2019
|
-
export interface
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
operationId: string;
|
|
2027
|
-
percentCompleted?: number;
|
|
2028
|
-
resourceLocation: string;
|
|
2029
|
-
status: OperationStatusOutput;
|
|
2030
|
-
tags?: Record<string, string>;
|
|
2183
|
+
export interface ModelCopyAuthorizationOutput {
|
|
2184
|
+
accessToken: string;
|
|
2185
|
+
expirationDateTime: string;
|
|
2186
|
+
targetModelId: string;
|
|
2187
|
+
targetModelLocation: string;
|
|
2188
|
+
targetResourceId: string;
|
|
2189
|
+
targetResourceRegion: string;
|
|
2031
2190
|
}
|
|
2032
2191
|
|
|
2033
2192
|
// @public
|
|
2034
2193
|
export type OperationKindOutput = string;
|
|
2035
2194
|
|
|
2036
2195
|
// @public
|
|
2037
|
-
export
|
|
2196
|
+
export interface PagedAnalyzeBatchOperationOutput {
|
|
2197
|
+
nextLink?: string;
|
|
2198
|
+
value: Array<AnalyzeBatchOperationOutput>;
|
|
2199
|
+
}
|
|
2038
2200
|
|
|
2039
2201
|
// @public
|
|
2040
|
-
export
|
|
2202
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
|
|
2203
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
2204
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
|
|
2205
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
2206
|
+
}
|
|
2041
2207
|
|
|
2042
2208
|
// @public
|
|
2043
|
-
export
|
|
2209
|
+
export interface PagedDocumentClassifierDetailsOutput {
|
|
2210
|
+
nextLink?: string;
|
|
2211
|
+
value: Array<DocumentClassifierDetailsOutput>;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
// @public
|
|
2215
|
+
export interface PagedDocumentIntelligenceOperationDetailsOutput {
|
|
2216
|
+
nextLink?: string;
|
|
2217
|
+
value: Array<DocumentIntelligenceOperationDetailsOutput>;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
// @public
|
|
2221
|
+
export interface PagedDocumentModelDetailsOutput {
|
|
2222
|
+
nextLink?: string;
|
|
2223
|
+
value: Array<DocumentModelDetailsOutput>;
|
|
2224
|
+
}
|
|
2044
2225
|
|
|
2045
2226
|
// @public
|
|
2046
|
-
export
|
|
2227
|
+
export interface PageSettings {
|
|
2228
|
+
continuationToken?: string;
|
|
2229
|
+
}
|
|
2047
2230
|
|
|
2048
2231
|
// @public
|
|
2049
2232
|
export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
@@ -2064,21 +2247,24 @@ export interface PagingOptions<TResponse> {
|
|
|
2064
2247
|
export type ParagraphRoleOutput = string;
|
|
2065
2248
|
|
|
2066
2249
|
// @public
|
|
2067
|
-
export
|
|
2068
|
-
|
|
2069
|
-
|
|
2250
|
+
export function parseResultIdFromResponse(initialResponse: {
|
|
2251
|
+
headers: {
|
|
2252
|
+
"operation-location": string;
|
|
2253
|
+
};
|
|
2254
|
+
}): string;
|
|
2070
2255
|
|
|
2071
2256
|
// @public (undocumented)
|
|
2072
2257
|
export interface Routes {
|
|
2073
2258
|
(path: "/operations"): ListOperations;
|
|
2074
2259
|
(path: "/operations/{operationId}", operationId: string): GetDocumentModelBuildOperation;
|
|
2075
|
-
(path: "/info"):
|
|
2260
|
+
(path: "/info"): GetResourceDetails;
|
|
2076
2261
|
(path: "/documentModels/{modelId}/analyzeResults/{resultId}", modelId: string, resultId: string): GetAnalyzeResult;
|
|
2077
2262
|
(path: "/documentModels/{modelId}/analyzeResults/{resultId}/pdf", modelId: string, resultId: string): GetAnalyzeResultPdf;
|
|
2078
2263
|
(path: "/documentModels/{modelId}/analyzeResults/{resultId}/figures/{figureId}", modelId: string, resultId: string, figureId: string): GetAnalyzeResultFigure;
|
|
2079
2264
|
(path: "/documentModels/{modelId}:analyze", modelId: string): AnalyzeDocumentFromStream;
|
|
2080
2265
|
(path: "/documentModels/{modelId}/analyzeBatchResults/{resultId}", modelId: string, resultId: string): GetAnalyzeBatchResult;
|
|
2081
2266
|
(path: "/documentModels/{modelId}:analyzeBatch", modelId: string): AnalyzeBatchDocuments;
|
|
2267
|
+
(path: "/documentModels/{modelId}/analyzeBatchResults", modelId: string): ListAnalyzeBatchResults;
|
|
2082
2268
|
(path: "/documentModels/{modelId}", modelId: string): GetModel;
|
|
2083
2269
|
(path: "/documentModels:build"): BuildModel;
|
|
2084
2270
|
(path: "/documentModels:compose"): ComposeModel;
|
|
@@ -2094,29 +2280,6 @@ export interface Routes {
|
|
|
2094
2280
|
(path: "/documentClassifiers/{classifierId}:copyTo", classifierId: string): CopyClassifierTo;
|
|
2095
2281
|
}
|
|
2096
2282
|
|
|
2097
|
-
// @public
|
|
2098
|
-
export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
|
|
2099
|
-
getOperationId(): string;
|
|
2100
|
-
getOperationState(): TState;
|
|
2101
|
-
getResult(): TResult | undefined;
|
|
2102
|
-
isDone(): boolean;
|
|
2103
|
-
// @deprecated
|
|
2104
|
-
isStopped(): boolean;
|
|
2105
|
-
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
|
2106
|
-
poll(options?: {
|
|
2107
|
-
abortSignal?: AbortSignalLike;
|
|
2108
|
-
}): Promise<TState>;
|
|
2109
|
-
pollUntilDone(pollOptions?: {
|
|
2110
|
-
abortSignal?: AbortSignalLike;
|
|
2111
|
-
}): Promise<TResult>;
|
|
2112
|
-
serialize(): Promise<string>;
|
|
2113
|
-
// @deprecated
|
|
2114
|
-
stopPolling(): void;
|
|
2115
|
-
submitted(): Promise<void>;
|
|
2116
|
-
// @deprecated
|
|
2117
|
-
toString(): string;
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
2283
|
// @public
|
|
2121
2284
|
export type SplitMode = string;
|
|
2122
2285
|
|
|
@@ -2124,17 +2287,13 @@ export type SplitMode = string;
|
|
|
2124
2287
|
export type SplitModeOutput = string;
|
|
2125
2288
|
|
|
2126
2289
|
// @public
|
|
2127
|
-
export
|
|
2290
|
+
export function streamToUint8Array(stream: NodeJS.ReadableStream): Promise<Uint8Array>;
|
|
2128
2291
|
|
|
2129
2292
|
// @public
|
|
2130
|
-
export type
|
|
2293
|
+
export type StringIndexType = string;
|
|
2131
2294
|
|
|
2132
2295
|
// @public
|
|
2133
|
-
export
|
|
2134
|
-
code: string;
|
|
2135
|
-
message: string;
|
|
2136
|
-
target?: string;
|
|
2137
|
-
}
|
|
2296
|
+
export type StringIndexTypeOutput = string;
|
|
2138
2297
|
|
|
2139
2298
|
// (No @packageDocumentation comment for this package)
|
|
2140
2299
|
|