@azure-rest/ai-document-intelligence 1.1.0-alpha.20250619.1 → 1.1.0-alpha.20250718.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.
@@ -1,2300 +1,2300 @@
1
- ## API Report File for "@azure-rest/ai-document-intelligence"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
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';
19
-
20
- // @public
21
- export interface AddressValueOutput {
22
- city?: string;
23
- cityDistrict?: string;
24
- countryRegion?: string;
25
- house?: string;
26
- houseNumber?: string;
27
- level?: string;
28
- poBox?: string;
29
- postalCode?: string;
30
- road?: string;
31
- state?: string;
32
- stateDistrict?: string;
33
- streetAddress?: string;
34
- suburb?: string;
35
- unit?: string;
36
- }
37
-
38
- // @public (undocumented)
39
- export interface AnalyzeBatchDocuments {
40
- post(options: AnalyzeBatchDocumentsParameters): StreamableMethod<AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse>;
41
- }
42
-
43
- // @public (undocumented)
44
- export interface AnalyzeBatchDocuments202Headers {
45
- // (undocumented)
46
- "operation-location": string;
47
- "retry-after"?: number;
48
- }
49
-
50
- // @public
51
- export interface AnalyzeBatchDocuments202Response extends HttpResponse {
52
- // (undocumented)
53
- headers: RawHttpHeaders & AnalyzeBatchDocuments202Headers;
54
- // (undocumented)
55
- status: "202";
56
- }
57
-
58
- // @public (undocumented)
59
- export interface AnalyzeBatchDocumentsBodyParam {
60
- body: AnalyzeBatchDocumentsRequest;
61
- }
62
-
63
- // @public (undocumented)
64
- export interface AnalyzeBatchDocumentsDefaultResponse extends HttpResponse {
65
- // (undocumented)
66
- body: DocumentIntelligenceErrorResponseOutput;
67
- // (undocumented)
68
- status: string;
69
- }
70
-
71
- // @public
72
- export interface AnalyzeBatchDocumentsFeaturesQueryParam {
73
- explode: false;
74
- style: "form";
75
- value: DocumentAnalysisFeature[];
76
- }
77
-
78
- // @public
79
- export interface AnalyzeBatchDocumentsLogicalResponse extends HttpResponse {
80
- // (undocumented)
81
- status: "200";
82
- }
83
-
84
- // @public (undocumented)
85
- export interface AnalyzeBatchDocumentsMediaTypesParam {
86
- contentType: "application/json";
87
- }
88
-
89
- // @public
90
- export interface AnalyzeBatchDocumentsOutputQueryParam {
91
- explode: false;
92
- style: "form";
93
- value: AnalyzeOutputOption[];
94
- }
95
-
96
- // @public (undocumented)
97
- export type AnalyzeBatchDocumentsParameters = AnalyzeBatchDocumentsQueryParam & AnalyzeBatchDocumentsMediaTypesParam & AnalyzeBatchDocumentsBodyParam & RequestParameters;
98
-
99
- // @public
100
- export interface AnalyzeBatchDocumentsQueryFieldsQueryParam {
101
- explode: false;
102
- style: "form";
103
- value: string[];
104
- }
105
-
106
- // @public (undocumented)
107
- export interface AnalyzeBatchDocumentsQueryParam {
108
- // (undocumented)
109
- queryParameters?: AnalyzeBatchDocumentsQueryParamProperties;
110
- }
111
-
112
- // @public (undocumented)
113
- export interface AnalyzeBatchDocumentsQueryParamProperties {
114
- features?: DocumentAnalysisFeature[] | AnalyzeBatchDocumentsFeaturesQueryParam;
115
- locale?: string;
116
- output?: AnalyzeOutputOption[] | AnalyzeBatchDocumentsOutputQueryParam;
117
- outputContentFormat?: DocumentContentFormat;
118
- pages?: string;
119
- queryFields?: string[] | AnalyzeBatchDocumentsQueryFieldsQueryParam;
120
- stringIndexType?: StringIndexType;
121
- }
122
-
123
- // @public
124
- export interface AnalyzeBatchDocumentsRequest {
125
- azureBlobFileListSource?: AzureBlobFileListContentSource;
126
- azureBlobSource?: AzureBlobContentSource;
127
- overwriteExisting?: boolean;
128
- resultContainerUrl: string;
129
- resultPrefix?: string;
130
- }
131
-
132
- // @public
133
- export interface AnalyzeBatchOperationDetailOutput {
134
- error?: DocumentIntelligenceErrorOutput;
135
- resultUrl?: string;
136
- sourceUrl: string;
137
- status: DocumentIntelligenceOperationStatusOutput;
138
- }
139
-
140
- // @public
141
- export interface AnalyzeBatchOperationOutput {
142
- createdDateTime: string;
143
- error?: DocumentIntelligenceErrorOutput;
144
- lastUpdatedDateTime: string;
145
- percentCompleted?: number;
146
- result?: AnalyzeBatchResultOutput;
147
- resultId?: string;
148
- status: DocumentIntelligenceOperationStatusOutput;
149
- }
150
-
151
- // @public
152
- export interface AnalyzeBatchResultOutput {
153
- details?: Array<AnalyzeBatchOperationDetailOutput>;
154
- failedCount: number;
155
- skippedCount: number;
156
- succeededCount: number;
157
- }
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
-
168
- // @public (undocumented)
169
- export interface AnalyzeDocument202Headers {
170
- // (undocumented)
171
- "operation-location": string;
172
- "retry-after"?: number;
173
- }
174
-
175
- // @public
176
- export interface AnalyzeDocument202Response extends HttpResponse {
177
- // (undocumented)
178
- headers: RawHttpHeaders & AnalyzeDocument202Headers;
179
- // (undocumented)
180
- status: "202";
181
- }
182
-
183
- // @public (undocumented)
184
- export interface AnalyzeDocumentBodyParam {
185
- body: AnalyzeDocumentRequest;
186
- }
187
-
188
- // @public (undocumented)
189
- export interface AnalyzeDocumentDefaultResponse extends HttpResponse {
190
- // (undocumented)
191
- body: DocumentIntelligenceErrorResponseOutput;
192
- // (undocumented)
193
- status: string;
194
- }
195
-
196
- // @public
197
- export interface AnalyzeDocumentFeaturesQueryParam {
198
- explode: false;
199
- style: "form";
200
- value: DocumentAnalysisFeature[];
201
- }
202
-
203
- // @public (undocumented)
204
- export interface AnalyzeDocumentFromStream {
205
- post(options: AnalyzeDocumentFromStreamParameters): StreamableMethod<AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse>;
206
- post(options: AnalyzeDocumentParameters): StreamableMethod<AnalyzeDocument202Response | AnalyzeDocumentDefaultResponse>;
207
- }
208
-
209
- // @public (undocumented)
210
- export interface AnalyzeDocumentFromStream202Headers {
211
- // (undocumented)
212
- "operation-location": string;
213
- "retry-after"?: number;
214
- }
215
-
216
- // @public
217
- export interface AnalyzeDocumentFromStream202Response extends HttpResponse {
218
- // (undocumented)
219
- headers: RawHttpHeaders & AnalyzeDocumentFromStream202Headers;
220
- // (undocumented)
221
- status: "202";
222
- }
223
-
224
- // @public (undocumented)
225
- export interface AnalyzeDocumentFromStreamBodyParam {
226
- body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
227
- }
228
-
229
- // @public (undocumented)
230
- export interface AnalyzeDocumentFromStreamDefaultResponse extends HttpResponse {
231
- // (undocumented)
232
- body: DocumentIntelligenceErrorResponseOutput;
233
- // (undocumented)
234
- status: string;
235
- }
236
-
237
- // @public
238
- export interface AnalyzeDocumentFromStreamFeaturesQueryParam {
239
- explode: false;
240
- style: "form";
241
- value: DocumentAnalysisFeature[];
242
- }
243
-
244
- // @public
245
- export interface AnalyzeDocumentFromStreamLogicalResponse extends HttpResponse {
246
- // (undocumented)
247
- status: "200";
248
- }
249
-
250
- // @public (undocumented)
251
- export interface AnalyzeDocumentFromStreamMediaTypesParam {
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";
253
- }
254
-
255
- // @public
256
- export interface AnalyzeDocumentFromStreamOutputQueryParam {
257
- explode: false;
258
- style: "form";
259
- value: AnalyzeOutputOption[];
260
- }
261
-
262
- // @public (undocumented)
263
- export type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam & AnalyzeDocumentFromStreamMediaTypesParam & AnalyzeDocumentFromStreamBodyParam & RequestParameters;
264
-
265
- // @public
266
- export interface AnalyzeDocumentFromStreamQueryFieldsQueryParam {
267
- explode: false;
268
- style: "form";
269
- value: string[];
270
- }
271
-
272
- // @public (undocumented)
273
- export interface AnalyzeDocumentFromStreamQueryParam {
274
- // (undocumented)
275
- queryParameters?: AnalyzeDocumentFromStreamQueryParamProperties;
276
- }
277
-
278
- // @public (undocumented)
279
- export interface AnalyzeDocumentFromStreamQueryParamProperties {
280
- features?: DocumentAnalysisFeature[] | AnalyzeDocumentFromStreamFeaturesQueryParam;
281
- locale?: string;
282
- output?: AnalyzeOutputOption[] | AnalyzeDocumentFromStreamOutputQueryParam;
283
- outputContentFormat?: DocumentContentFormat;
284
- pages?: string;
285
- queryFields?: string[] | AnalyzeDocumentFromStreamQueryFieldsQueryParam;
286
- stringIndexType?: StringIndexType;
287
- }
288
-
289
- // @public
290
- export interface AnalyzeDocumentLogicalResponse extends HttpResponse {
291
- // (undocumented)
292
- status: "200";
293
- }
294
-
295
- // @public (undocumented)
296
- export interface AnalyzeDocumentMediaTypesParam {
297
- contentType: "application/json";
298
- }
299
-
300
- // @public
301
- export interface AnalyzeDocumentOutputQueryParam {
302
- explode: false;
303
- style: "form";
304
- value: AnalyzeOutputOption[];
305
- }
306
-
307
- // @public (undocumented)
308
- export type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam & AnalyzeDocumentMediaTypesParam & AnalyzeDocumentBodyParam & RequestParameters;
309
-
310
- // @public
311
- export interface AnalyzeDocumentQueryFieldsQueryParam {
312
- explode: false;
313
- style: "form";
314
- value: string[];
315
- }
316
-
317
- // @public (undocumented)
318
- export interface AnalyzeDocumentQueryParam {
319
- // (undocumented)
320
- queryParameters?: AnalyzeDocumentQueryParamProperties;
321
- }
322
-
323
- // @public (undocumented)
324
- export interface AnalyzeDocumentQueryParamProperties {
325
- features?: DocumentAnalysisFeature[] | AnalyzeDocumentFeaturesQueryParam;
326
- locale?: string;
327
- output?: AnalyzeOutputOption[] | AnalyzeDocumentOutputQueryParam;
328
- outputContentFormat?: DocumentContentFormat;
329
- pages?: string;
330
- queryFields?: string[] | AnalyzeDocumentQueryFieldsQueryParam;
331
- stringIndexType?: StringIndexType;
332
- }
333
-
334
- // @public
335
- export interface AnalyzeDocumentRequest {
336
- base64Source?: string;
337
- urlSource?: string;
338
- }
339
-
340
- // @public
341
- export interface AnalyzeOperationOutput {
342
- analyzeResult?: AnalyzeResultOutput;
343
- createdDateTime: string;
344
- error?: DocumentIntelligenceErrorOutput;
345
- lastUpdatedDateTime: string;
346
- status: DocumentIntelligenceOperationStatusOutput;
347
- }
348
-
349
- // @public
350
- export type AnalyzeOutputOption = string;
351
-
352
- // @public
353
- export interface AnalyzeResultOutput {
354
- apiVersion: string;
355
- content: string;
356
- contentFormat?: DocumentContentFormatOutput;
357
- documents?: Array<AnalyzedDocumentOutput>;
358
- figures?: Array<DocumentFigureOutput>;
359
- keyValuePairs?: Array<DocumentKeyValuePairOutput>;
360
- languages?: Array<DocumentLanguageOutput>;
361
- modelId: string;
362
- pages: Array<DocumentPageOutput>;
363
- paragraphs?: Array<DocumentParagraphOutput>;
364
- sections?: Array<DocumentSectionOutput>;
365
- stringIndexType: StringIndexTypeOutput;
366
- styles?: Array<DocumentStyleOutput>;
367
- tables?: Array<DocumentTableOutput>;
368
- warnings?: Array<DocumentIntelligenceWarningOutput>;
369
- }
370
-
371
- // @public (undocumented)
372
- export interface AuthorizeClassifierCopy {
373
- post(options: AuthorizeClassifierCopyParameters): StreamableMethod<AuthorizeClassifierCopy200Response | AuthorizeClassifierCopyDefaultResponse>;
374
- }
375
-
376
- // @public
377
- export interface AuthorizeClassifierCopy200Response extends HttpResponse {
378
- // (undocumented)
379
- body: ClassifierCopyAuthorizationOutput;
380
- // (undocumented)
381
- status: "200";
382
- }
383
-
384
- // @public (undocumented)
385
- export interface AuthorizeClassifierCopyBodyParam {
386
- body: AuthorizeClassifierCopyRequest;
387
- }
388
-
389
- // @public (undocumented)
390
- export interface AuthorizeClassifierCopyDefaultResponse extends HttpResponse {
391
- // (undocumented)
392
- body: DocumentIntelligenceErrorResponseOutput;
393
- // (undocumented)
394
- status: string;
395
- }
396
-
397
- // @public (undocumented)
398
- export type AuthorizeClassifierCopyParameters = AuthorizeClassifierCopyBodyParam & RequestParameters;
399
-
400
- // @public
401
- export interface AuthorizeClassifierCopyRequest {
402
- classifierId: string;
403
- description?: string;
404
- tags?: Record<string, string>;
405
- }
406
-
407
- // @public
408
- export interface AuthorizeCopyRequest {
409
- description?: string;
410
- modelId: string;
411
- tags?: Record<string, string>;
412
- }
413
-
414
- // @public (undocumented)
415
- export interface AuthorizeModelCopy {
416
- post(options: AuthorizeModelCopyParameters): StreamableMethod<AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse>;
417
- }
418
-
419
- // @public
420
- export interface AuthorizeModelCopy200Response extends HttpResponse {
421
- // (undocumented)
422
- body: ModelCopyAuthorizationOutput;
423
- // (undocumented)
424
- status: "200";
425
- }
426
-
427
- // @public (undocumented)
428
- export interface AuthorizeModelCopyBodyParam {
429
- body: AuthorizeCopyRequest;
430
- }
431
-
432
- // @public (undocumented)
433
- export interface AuthorizeModelCopyDefaultResponse extends HttpResponse {
434
- // (undocumented)
435
- body: DocumentIntelligenceErrorResponseOutput;
436
- // (undocumented)
437
- status: string;
438
- }
439
-
440
- // @public (undocumented)
441
- export type AuthorizeModelCopyParameters = AuthorizeModelCopyBodyParam & RequestParameters;
442
-
443
- // @public
444
- export interface AzureBlobContentSource {
445
- containerUrl: string;
446
- prefix?: string;
447
- }
448
-
449
- // @public
450
- export interface AzureBlobContentSourceOutput {
451
- containerUrl: string;
452
- prefix?: string;
453
- }
454
-
455
- // @public
456
- export interface AzureBlobFileListContentSource {
457
- containerUrl: string;
458
- fileList: string;
459
- }
460
-
461
- // @public
462
- export interface AzureBlobFileListContentSourceOutput {
463
- containerUrl: string;
464
- fileList: string;
465
- }
466
-
467
- // @public
468
- export interface BoundingRegionOutput {
469
- pageNumber: number;
470
- polygon: number[];
471
- }
472
-
473
- // @public (undocumented)
474
- export interface BuildClassifier {
475
- post(options: BuildClassifierParameters): StreamableMethod<BuildClassifier202Response | BuildClassifierDefaultResponse>;
476
- }
477
-
478
- // @public (undocumented)
479
- export interface BuildClassifier202Headers {
480
- // (undocumented)
481
- "operation-location": string;
482
- "retry-after"?: number;
483
- }
484
-
485
- // @public
486
- export interface BuildClassifier202Response extends HttpResponse {
487
- // (undocumented)
488
- headers: RawHttpHeaders & BuildClassifier202Headers;
489
- // (undocumented)
490
- status: "202";
491
- }
492
-
493
- // @public (undocumented)
494
- export interface BuildClassifierBodyParam {
495
- body: BuildDocumentClassifierRequest;
496
- }
497
-
498
- // @public (undocumented)
499
- export interface BuildClassifierDefaultResponse extends HttpResponse {
500
- // (undocumented)
501
- body: DocumentIntelligenceErrorResponseOutput;
502
- // (undocumented)
503
- status: string;
504
- }
505
-
506
- // @public
507
- export interface BuildClassifierLogicalResponse extends HttpResponse {
508
- // (undocumented)
509
- status: "200";
510
- }
511
-
512
- // @public (undocumented)
513
- export type BuildClassifierParameters = BuildClassifierBodyParam & RequestParameters;
514
-
515
- // @public
516
- export interface BuildDocumentClassifierRequest {
517
- allowOverwrite?: boolean;
518
- baseClassifierId?: string;
519
- classifierId: string;
520
- description?: string;
521
- docTypes: Record<string, ClassifierDocumentTypeDetails>;
522
- }
523
-
524
- // @public
525
- export interface BuildDocumentModelRequest {
526
- allowOverwrite?: boolean;
527
- azureBlobFileListSource?: AzureBlobFileListContentSource;
528
- azureBlobSource?: AzureBlobContentSource;
529
- buildMode: DocumentBuildMode;
530
- description?: string;
531
- maxTrainingHours?: number;
532
- modelId: string;
533
- tags?: Record<string, string>;
534
- }
535
-
536
- // @public (undocumented)
537
- export interface BuildModel {
538
- post(options: BuildModelParameters): StreamableMethod<BuildModel202Response | BuildModelDefaultResponse>;
539
- }
540
-
541
- // @public (undocumented)
542
- export interface BuildModel202Headers {
543
- // (undocumented)
544
- "operation-location": string;
545
- "retry-after"?: number;
546
- }
547
-
548
- // @public
549
- export interface BuildModel202Response extends HttpResponse {
550
- // (undocumented)
551
- headers: RawHttpHeaders & BuildModel202Headers;
552
- // (undocumented)
553
- status: "202";
554
- }
555
-
556
- // @public (undocumented)
557
- export interface BuildModelBodyParam {
558
- body: BuildDocumentModelRequest;
559
- }
560
-
561
- // @public (undocumented)
562
- export interface BuildModelDefaultResponse extends HttpResponse {
563
- // (undocumented)
564
- body: DocumentIntelligenceErrorResponseOutput;
565
- // (undocumented)
566
- status: string;
567
- }
568
-
569
- // @public
570
- export interface BuildModelLogicalResponse extends HttpResponse {
571
- // (undocumented)
572
- status: "200";
573
- }
574
-
575
- // @public (undocumented)
576
- export type BuildModelParameters = BuildModelBodyParam & RequestParameters;
577
-
578
- // @public
579
- export interface ClassifierCopyAuthorization {
580
- accessToken: string;
581
- expirationDateTime: Date | string;
582
- targetClassifierId: string;
583
- targetClassifierLocation: string;
584
- targetResourceId: string;
585
- targetResourceRegion: string;
586
- }
587
-
588
- // @public
589
- export interface ClassifierCopyAuthorizationOutput {
590
- accessToken: string;
591
- expirationDateTime: string;
592
- targetClassifierId: string;
593
- targetClassifierLocation: string;
594
- targetResourceId: string;
595
- targetResourceRegion: string;
596
- }
597
-
598
- // @public
599
- export interface ClassifierDocumentTypeDetails {
600
- azureBlobFileListSource?: AzureBlobFileListContentSource;
601
- azureBlobSource?: AzureBlobContentSource;
602
- sourceKind?: ContentSourceKind;
603
- }
604
-
605
- // @public
606
- export interface ClassifierDocumentTypeDetailsOutput {
607
- azureBlobFileListSource?: AzureBlobFileListContentSourceOutput;
608
- azureBlobSource?: AzureBlobContentSourceOutput;
609
- sourceKind?: ContentSourceKindOutput;
610
- }
611
-
612
- // @public (undocumented)
613
- export interface ClassifyDocument202Headers {
614
- // (undocumented)
615
- "operation-location": string;
616
- "retry-after"?: number;
617
- }
618
-
619
- // @public
620
- export interface ClassifyDocument202Response extends HttpResponse {
621
- // (undocumented)
622
- headers: RawHttpHeaders & ClassifyDocument202Headers;
623
- // (undocumented)
624
- status: "202";
625
- }
626
-
627
- // @public (undocumented)
628
- export interface ClassifyDocumentBodyParam {
629
- body: ClassifyDocumentRequest;
630
- }
631
-
632
- // @public (undocumented)
633
- export interface ClassifyDocumentDefaultResponse extends HttpResponse {
634
- // (undocumented)
635
- body: DocumentIntelligenceErrorResponseOutput;
636
- // (undocumented)
637
- status: string;
638
- }
639
-
640
- // @public (undocumented)
641
- export interface ClassifyDocumentFromStream {
642
- post(options: ClassifyDocumentFromStreamParameters): StreamableMethod<ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse>;
643
- post(options: ClassifyDocumentParameters): StreamableMethod<ClassifyDocument202Response | ClassifyDocumentDefaultResponse>;
644
- }
645
-
646
- // @public (undocumented)
647
- export interface ClassifyDocumentFromStream202Headers {
648
- // (undocumented)
649
- "operation-location": string;
650
- "retry-after"?: number;
651
- }
652
-
653
- // @public
654
- export interface ClassifyDocumentFromStream202Response extends HttpResponse {
655
- // (undocumented)
656
- headers: RawHttpHeaders & ClassifyDocumentFromStream202Headers;
657
- // (undocumented)
658
- status: "202";
659
- }
660
-
661
- // @public (undocumented)
662
- export interface ClassifyDocumentFromStreamBodyParam {
663
- body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
664
- }
665
-
666
- // @public (undocumented)
667
- export interface ClassifyDocumentFromStreamDefaultResponse extends HttpResponse {
668
- // (undocumented)
669
- body: DocumentIntelligenceErrorResponseOutput;
670
- // (undocumented)
671
- status: string;
672
- }
673
-
674
- // @public
675
- export interface ClassifyDocumentFromStreamLogicalResponse extends HttpResponse {
676
- // (undocumented)
677
- status: "200";
678
- }
679
-
680
- // @public (undocumented)
681
- export interface ClassifyDocumentFromStreamMediaTypesParam {
682
- 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";
683
- }
684
-
685
- // @public (undocumented)
686
- export type ClassifyDocumentFromStreamParameters = ClassifyDocumentFromStreamQueryParam & ClassifyDocumentFromStreamMediaTypesParam & ClassifyDocumentFromStreamBodyParam & RequestParameters;
687
-
688
- // @public (undocumented)
689
- export interface ClassifyDocumentFromStreamQueryParam {
690
- // (undocumented)
691
- queryParameters?: ClassifyDocumentFromStreamQueryParamProperties;
692
- }
693
-
694
- // @public (undocumented)
695
- export interface ClassifyDocumentFromStreamQueryParamProperties {
696
- pages?: string;
697
- split?: SplitMode;
698
- stringIndexType?: StringIndexType;
699
- }
700
-
701
- // @public
702
- export interface ClassifyDocumentLogicalResponse extends HttpResponse {
703
- // (undocumented)
704
- status: "200";
705
- }
706
-
707
- // @public (undocumented)
708
- export interface ClassifyDocumentMediaTypesParam {
709
- contentType: "application/json";
710
- }
711
-
712
- // @public (undocumented)
713
- export type ClassifyDocumentParameters = ClassifyDocumentQueryParam & ClassifyDocumentMediaTypesParam & ClassifyDocumentBodyParam & RequestParameters;
714
-
715
- // @public (undocumented)
716
- export interface ClassifyDocumentQueryParam {
717
- // (undocumented)
718
- queryParameters?: ClassifyDocumentQueryParamProperties;
719
- }
720
-
721
- // @public (undocumented)
722
- export interface ClassifyDocumentQueryParamProperties {
723
- pages?: string;
724
- split?: SplitMode;
725
- stringIndexType?: StringIndexType;
726
- }
727
-
728
- // @public
729
- export interface ClassifyDocumentRequest {
730
- base64Source?: string;
731
- urlSource?: string;
732
- }
733
-
734
- // @public
735
- export interface ComposeDocumentModelRequest {
736
- classifierId: string;
737
- description?: string;
738
- docTypes: Record<string, DocumentTypeDetails>;
739
- modelId: string;
740
- split?: SplitMode;
741
- tags?: Record<string, string>;
742
- }
743
-
744
- // @public (undocumented)
745
- export interface ComposeModel {
746
- post(options: ComposeModelParameters): StreamableMethod<ComposeModel202Response | ComposeModelDefaultResponse>;
747
- }
748
-
749
- // @public (undocumented)
750
- export interface ComposeModel202Headers {
751
- // (undocumented)
752
- "operation-location": string;
753
- "retry-after"?: number;
754
- }
755
-
756
- // @public
757
- export interface ComposeModel202Response extends HttpResponse {
758
- // (undocumented)
759
- headers: RawHttpHeaders & ComposeModel202Headers;
760
- // (undocumented)
761
- status: "202";
762
- }
763
-
764
- // @public (undocumented)
765
- export interface ComposeModelBodyParam {
766
- body: ComposeDocumentModelRequest;
767
- }
768
-
769
- // @public (undocumented)
770
- export interface ComposeModelDefaultResponse extends HttpResponse {
771
- // (undocumented)
772
- body: DocumentIntelligenceErrorResponseOutput;
773
- // (undocumented)
774
- status: string;
775
- }
776
-
777
- // @public
778
- export interface ComposeModelLogicalResponse extends HttpResponse {
779
- // (undocumented)
780
- status: "200";
781
- }
782
-
783
- // @public (undocumented)
784
- export type ComposeModelParameters = ComposeModelBodyParam & RequestParameters;
785
-
786
- // @public
787
- export type ContentSourceKind = string;
788
-
789
- // @public
790
- export type ContentSourceKindOutput = string;
791
-
792
- // @public (undocumented)
793
- export interface CopyClassifierTo {
794
- post(options: CopyClassifierToParameters): StreamableMethod<CopyClassifierTo202Response | CopyClassifierToDefaultResponse>;
795
- }
796
-
797
- // @public (undocumented)
798
- export interface CopyClassifierTo202Headers {
799
- // (undocumented)
800
- "operation-location": string;
801
- "retry-after"?: number;
802
- }
803
-
804
- // @public
805
- export interface CopyClassifierTo202Response extends HttpResponse {
806
- // (undocumented)
807
- headers: RawHttpHeaders & CopyClassifierTo202Headers;
808
- // (undocumented)
809
- status: "202";
810
- }
811
-
812
- // @public (undocumented)
813
- export interface CopyClassifierToBodyParam {
814
- body: ClassifierCopyAuthorization;
815
- }
816
-
817
- // @public (undocumented)
818
- export interface CopyClassifierToDefaultResponse extends HttpResponse {
819
- // (undocumented)
820
- body: DocumentIntelligenceErrorResponseOutput;
821
- // (undocumented)
822
- status: string;
823
- }
824
-
825
- // @public
826
- export interface CopyClassifierToLogicalResponse extends HttpResponse {
827
- // (undocumented)
828
- status: "200";
829
- }
830
-
831
- // @public (undocumented)
832
- export type CopyClassifierToParameters = CopyClassifierToBodyParam & RequestParameters;
833
-
834
- // @public (undocumented)
835
- export interface CopyModelTo {
836
- post(options: CopyModelToParameters): StreamableMethod<CopyModelTo202Response | CopyModelToDefaultResponse>;
837
- }
838
-
839
- // @public (undocumented)
840
- export interface CopyModelTo202Headers {
841
- // (undocumented)
842
- "operation-location": string;
843
- "retry-after"?: number;
844
- }
845
-
846
- // @public
847
- export interface CopyModelTo202Response extends HttpResponse {
848
- // (undocumented)
849
- headers: RawHttpHeaders & CopyModelTo202Headers;
850
- // (undocumented)
851
- status: "202";
852
- }
853
-
854
- // @public (undocumented)
855
- export interface CopyModelToBodyParam {
856
- body: ModelCopyAuthorization;
857
- }
858
-
859
- // @public (undocumented)
860
- export interface CopyModelToDefaultResponse extends HttpResponse {
861
- // (undocumented)
862
- body: DocumentIntelligenceErrorResponseOutput;
863
- // (undocumented)
864
- status: string;
865
- }
866
-
867
- // @public
868
- export interface CopyModelToLogicalResponse extends HttpResponse {
869
- // (undocumented)
870
- status: "200";
871
- }
872
-
873
- // @public (undocumented)
874
- export type CopyModelToParameters = CopyModelToBodyParam & RequestParameters;
875
-
876
- // @public
877
- function createClient(endpointParam: string, credentials: TokenCredential | KeyCredential, { apiVersion, ...options }?: DocumentIntelligenceClientOptions): DocumentIntelligenceClient;
878
- export default createClient;
879
-
880
- // @public
881
- export interface CurrencyValueOutput {
882
- amount: number;
883
- currencyCode?: string;
884
- currencySymbol?: string;
885
- }
886
-
887
- // @public
888
- export interface CustomDocumentModelsDetailsOutput {
889
- count: number;
890
- limit: number;
891
- }
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
-
927
- // @public (undocumented)
928
- export interface DeleteClassifier204Headers {
929
- "x-ms-client-request-id"?: string;
930
- }
931
-
932
- // @public
933
- export interface DeleteClassifier204Response extends HttpResponse {
934
- // (undocumented)
935
- headers: RawHttpHeaders & DeleteClassifier204Headers;
936
- // (undocumented)
937
- status: "204";
938
- }
939
-
940
- // @public (undocumented)
941
- export interface DeleteClassifierDefaultResponse extends HttpResponse {
942
- // (undocumented)
943
- body: DocumentIntelligenceErrorResponseOutput;
944
- // (undocumented)
945
- status: string;
946
- }
947
-
948
- // @public (undocumented)
949
- export interface DeleteClassifierHeaderParam {
950
- // (undocumented)
951
- headers?: RawHttpHeadersInput & DeleteClassifierHeaders;
952
- }
953
-
954
- // @public (undocumented)
955
- export interface DeleteClassifierHeaders {
956
- "x-ms-client-request-id"?: string;
957
- }
958
-
959
- // @public (undocumented)
960
- export type DeleteClassifierParameters = DeleteClassifierHeaderParam & RequestParameters;
961
-
962
- // @public (undocumented)
963
- export interface DeleteModel204Headers {
964
- "x-ms-client-request-id"?: string;
965
- }
966
-
967
- // @public
968
- export interface DeleteModel204Response extends HttpResponse {
969
- // (undocumented)
970
- headers: RawHttpHeaders & DeleteModel204Headers;
971
- // (undocumented)
972
- status: "204";
973
- }
974
-
975
- // @public (undocumented)
976
- export interface DeleteModelDefaultResponse extends HttpResponse {
977
- // (undocumented)
978
- body: DocumentIntelligenceErrorResponseOutput;
979
- // (undocumented)
980
- status: string;
981
- }
982
-
983
- // @public (undocumented)
984
- export interface DeleteModelHeaderParam {
985
- // (undocumented)
986
- headers?: RawHttpHeadersInput & DeleteModelHeaders;
987
- }
988
-
989
- // @public (undocumented)
990
- export interface DeleteModelHeaders {
991
- "x-ms-client-request-id"?: string;
992
- }
993
-
994
- // @public (undocumented)
995
- export type DeleteModelParameters = DeleteModelHeaderParam & RequestParameters;
996
-
997
- // @public
998
- export type DocumentAnalysisFeature = string;
999
-
1000
- // @public
1001
- export type DocumentAnalysisFeatureOutput = string;
1002
-
1003
- // @public
1004
- export type DocumentBarcodeKindOutput = string;
1005
-
1006
- // @public
1007
- export interface DocumentBarcodeOutput {
1008
- confidence: number;
1009
- kind: DocumentBarcodeKindOutput;
1010
- polygon?: number[];
1011
- span: DocumentSpanOutput;
1012
- value: string;
1013
- }
1014
-
1015
- // @public
1016
- export type DocumentBuildMode = string;
1017
-
1018
- // @public
1019
- export type DocumentBuildModeOutput = string;
1020
-
1021
- // @public
1022
- export interface DocumentCaptionOutput {
1023
- boundingRegions?: Array<BoundingRegionOutput>;
1024
- content: string;
1025
- elements?: string[];
1026
- spans: Array<DocumentSpanOutput>;
1027
- }
1028
-
1029
- // @public
1030
- export interface DocumentClassifierBuildOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1031
- kind: "documentClassifierBuild";
1032
- result?: DocumentClassifierDetailsOutput;
1033
- }
1034
-
1035
- // @public
1036
- export interface DocumentClassifierCopyToOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1037
- kind: "documentClassifierCopyTo";
1038
- result?: DocumentClassifierDetailsOutput;
1039
- }
1040
-
1041
- // @public
1042
- export interface DocumentClassifierDetailsOutput {
1043
- apiVersion: string;
1044
- baseClassifierId?: string;
1045
- classifierId: string;
1046
- createdDateTime: string;
1047
- description?: string;
1048
- docTypes: Record<string, ClassifierDocumentTypeDetailsOutput>;
1049
- expirationDateTime?: string;
1050
- readonly modifiedDateTime?: string;
1051
- warnings?: Array<DocumentIntelligenceWarningOutput>;
1052
- }
1053
-
1054
- // @public
1055
- export type DocumentContentFormat = string;
1056
-
1057
- // @public
1058
- export type DocumentContentFormatOutput = string;
1059
-
1060
- // @public
1061
- export interface DocumentFieldOutput {
1062
- boundingRegions?: Array<BoundingRegionOutput>;
1063
- confidence?: number;
1064
- content?: string;
1065
- spans?: Array<DocumentSpanOutput>;
1066
- type: DocumentFieldTypeOutput;
1067
- valueAddress?: AddressValueOutput;
1068
- valueArray?: Array<DocumentFieldOutput>;
1069
- valueBoolean?: boolean;
1070
- valueCountryRegion?: string;
1071
- valueCurrency?: CurrencyValueOutput;
1072
- valueDate?: string;
1073
- valueInteger?: number;
1074
- valueNumber?: number;
1075
- valueObject?: Record<string, DocumentFieldOutput>;
1076
- valuePhoneNumber?: string;
1077
- valueSelectionGroup?: string[];
1078
- valueSelectionMark?: DocumentSelectionMarkStateOutput;
1079
- valueSignature?: DocumentSignatureTypeOutput;
1080
- valueString?: string;
1081
- valueTime?: string;
1082
- }
1083
-
1084
- // @public
1085
- export interface DocumentFieldSchema {
1086
- description?: string;
1087
- example?: string;
1088
- items?: DocumentFieldSchema;
1089
- properties?: Record<string, DocumentFieldSchema>;
1090
- type: DocumentFieldType;
1091
- }
1092
-
1093
- // @public
1094
- export interface DocumentFieldSchemaOutput {
1095
- description?: string;
1096
- example?: string;
1097
- items?: DocumentFieldSchemaOutput;
1098
- properties?: Record<string, DocumentFieldSchemaOutput>;
1099
- type: DocumentFieldTypeOutput;
1100
- }
1101
-
1102
- // @public
1103
- export type DocumentFieldType = string;
1104
-
1105
- // @public
1106
- export type DocumentFieldTypeOutput = string;
1107
-
1108
- // @public
1109
- export interface DocumentFigureOutput {
1110
- boundingRegions?: Array<BoundingRegionOutput>;
1111
- caption?: DocumentCaptionOutput;
1112
- elements?: string[];
1113
- footnotes?: Array<DocumentFootnoteOutput>;
1114
- id?: string;
1115
- spans: Array<DocumentSpanOutput>;
1116
- }
1117
-
1118
- // @public
1119
- export type DocumentFontStyleOutput = string;
1120
-
1121
- // @public
1122
- export type DocumentFontWeightOutput = string;
1123
-
1124
- // @public
1125
- export interface DocumentFootnoteOutput {
1126
- boundingRegions?: Array<BoundingRegionOutput>;
1127
- content: string;
1128
- elements?: string[];
1129
- spans: Array<DocumentSpanOutput>;
1130
- }
1131
-
1132
- // @public
1133
- export type DocumentFormulaKindOutput = string;
1134
-
1135
- // @public
1136
- export interface DocumentFormulaOutput {
1137
- confidence: number;
1138
- kind: DocumentFormulaKindOutput;
1139
- polygon?: number[];
1140
- span: DocumentSpanOutput;
1141
- value: string;
1142
- }
1143
-
1144
- // @public (undocumented)
1145
- export type DocumentIntelligenceClient = Client & {
1146
- path: Routes;
1147
- };
1148
-
1149
- // @public
1150
- export interface DocumentIntelligenceClientOptions extends ClientOptions {
1151
- apiVersion?: string;
1152
- }
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
-
1208
- // @public
1209
- export interface DocumentKeyValueElementOutput {
1210
- boundingRegions?: Array<BoundingRegionOutput>;
1211
- content: string;
1212
- spans: Array<DocumentSpanOutput>;
1213
- }
1214
-
1215
- // @public
1216
- export interface DocumentKeyValuePairOutput {
1217
- confidence: number;
1218
- key: DocumentKeyValueElementOutput;
1219
- value?: DocumentKeyValueElementOutput;
1220
- }
1221
-
1222
- // @public
1223
- export interface DocumentLanguageOutput {
1224
- confidence: number;
1225
- locale: string;
1226
- spans: Array<DocumentSpanOutput>;
1227
- }
1228
-
1229
- // @public
1230
- export interface DocumentLineOutput {
1231
- content: string;
1232
- polygon?: number[];
1233
- spans: Array<DocumentSpanOutput>;
1234
- }
1235
-
1236
- // @public
1237
- export interface DocumentModelBuildOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1238
- kind: "documentModelBuild";
1239
- result?: DocumentModelDetailsOutput;
1240
- }
1241
-
1242
- // @public
1243
- export interface DocumentModelComposeOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1244
- kind: "documentModelCompose";
1245
- result?: DocumentModelDetailsOutput;
1246
- }
1247
-
1248
- // @public
1249
- export interface DocumentModelCopyToOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1250
- kind: "documentModelCopyTo";
1251
- result?: DocumentModelDetailsOutput;
1252
- }
1253
-
1254
- // @public
1255
- export interface DocumentModelDetailsOutput {
1256
- readonly apiVersion?: string;
1257
- readonly azureBlobFileListSource?: AzureBlobFileListContentSourceOutput;
1258
- readonly azureBlobSource?: AzureBlobContentSourceOutput;
1259
- readonly buildMode?: DocumentBuildModeOutput;
1260
- classifierId?: string;
1261
- readonly createdDateTime: string;
1262
- description?: string;
1263
- readonly docTypes?: Record<string, DocumentTypeDetailsOutput>;
1264
- readonly expirationDateTime?: string;
1265
- modelId: string;
1266
- readonly modifiedDateTime?: string;
1267
- split?: SplitModeOutput;
1268
- tags?: Record<string, string>;
1269
- readonly trainingHours?: number;
1270
- readonly warnings?: Array<DocumentIntelligenceWarningOutput>;
1271
- }
1272
-
1273
- // @public
1274
- export interface DocumentPageOutput {
1275
- angle?: number;
1276
- barcodes?: Array<DocumentBarcodeOutput>;
1277
- formulas?: Array<DocumentFormulaOutput>;
1278
- height?: number;
1279
- lines?: Array<DocumentLineOutput>;
1280
- pageNumber: number;
1281
- selectionMarks?: Array<DocumentSelectionMarkOutput>;
1282
- spans: Array<DocumentSpanOutput>;
1283
- unit?: LengthUnitOutput;
1284
- width?: number;
1285
- words?: Array<DocumentWordOutput>;
1286
- }
1287
-
1288
- // @public
1289
- export interface DocumentParagraphOutput {
1290
- boundingRegions?: Array<BoundingRegionOutput>;
1291
- content: string;
1292
- role?: ParagraphRoleOutput;
1293
- spans: Array<DocumentSpanOutput>;
1294
- }
1295
-
1296
- // @public
1297
- export interface DocumentSectionOutput {
1298
- elements?: string[];
1299
- spans: Array<DocumentSpanOutput>;
1300
- }
1301
-
1302
- // @public
1303
- export interface DocumentSelectionMarkOutput {
1304
- confidence: number;
1305
- polygon?: number[];
1306
- span: DocumentSpanOutput;
1307
- state: DocumentSelectionMarkStateOutput;
1308
- }
1309
-
1310
- // @public
1311
- export type DocumentSelectionMarkStateOutput = string;
1312
-
1313
- // @public
1314
- export type DocumentSignatureTypeOutput = string;
1315
-
1316
- // @public
1317
- export interface DocumentSpanOutput {
1318
- length: number;
1319
- offset: number;
1320
- }
1321
-
1322
- // @public
1323
- export interface DocumentStyleOutput {
1324
- backgroundColor?: string;
1325
- color?: string;
1326
- confidence: number;
1327
- fontStyle?: DocumentFontStyleOutput;
1328
- fontWeight?: DocumentFontWeightOutput;
1329
- isHandwritten?: boolean;
1330
- similarFontFamily?: string;
1331
- spans: Array<DocumentSpanOutput>;
1332
- }
1333
-
1334
- // @public
1335
- export type DocumentTableCellKindOutput = string;
1336
-
1337
- // @public
1338
- export interface DocumentTableCellOutput {
1339
- boundingRegions?: Array<BoundingRegionOutput>;
1340
- columnIndex: number;
1341
- columnSpan?: number;
1342
- content: string;
1343
- elements?: string[];
1344
- kind?: DocumentTableCellKindOutput;
1345
- rowIndex: number;
1346
- rowSpan?: number;
1347
- spans: Array<DocumentSpanOutput>;
1348
- }
1349
-
1350
- // @public
1351
- export interface DocumentTableOutput {
1352
- boundingRegions?: Array<BoundingRegionOutput>;
1353
- caption?: DocumentCaptionOutput;
1354
- cells: Array<DocumentTableCellOutput>;
1355
- columnCount: number;
1356
- footnotes?: Array<DocumentFootnoteOutput>;
1357
- rowCount: number;
1358
- spans: Array<DocumentSpanOutput>;
1359
- }
1360
-
1361
- // @public
1362
- export interface DocumentTypeDetails {
1363
- buildMode?: DocumentBuildMode;
1364
- confidenceThreshold?: number;
1365
- description?: string;
1366
- features?: DocumentAnalysisFeature[];
1367
- fieldConfidence?: Record<string, number>;
1368
- fieldSchema?: Record<string, DocumentFieldSchema>;
1369
- maxDocumentsToAnalyze?: number;
1370
- modelId?: string;
1371
- queryFields?: string[];
1372
- }
1373
-
1374
- // @public
1375
- export interface DocumentTypeDetailsOutput {
1376
- buildMode?: DocumentBuildModeOutput;
1377
- confidenceThreshold?: number;
1378
- description?: string;
1379
- features?: DocumentAnalysisFeatureOutput[];
1380
- fieldConfidence?: Record<string, number>;
1381
- fieldSchema?: Record<string, DocumentFieldSchemaOutput>;
1382
- maxDocumentsToAnalyze?: number;
1383
- modelId?: string;
1384
- queryFields?: string[];
1385
- }
1386
-
1387
- // @public
1388
- export interface DocumentWordOutput {
1389
- confidence: number;
1390
- content: string;
1391
- polygon?: number[];
1392
- span: DocumentSpanOutput;
1393
- }
1394
-
1395
- // @public (undocumented)
1396
- export interface GetAnalyzeBatchResult {
1397
- delete(options?: DeleteAnalyzeBatchResultParameters): StreamableMethod<DeleteAnalyzeBatchResult204Response | DeleteAnalyzeBatchResultDefaultResponse>;
1398
- get(options?: GetAnalyzeBatchResultParameters): StreamableMethod<GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse>;
1399
- }
1400
-
1401
- // @public
1402
- export interface GetAnalyzeBatchResult200Response extends HttpResponse {
1403
- // (undocumented)
1404
- body: AnalyzeBatchOperationOutput;
1405
- // (undocumented)
1406
- status: "200";
1407
- }
1408
-
1409
- // @public (undocumented)
1410
- export interface GetAnalyzeBatchResultDefaultResponse extends HttpResponse {
1411
- // (undocumented)
1412
- body: DocumentIntelligenceErrorResponseOutput;
1413
- // (undocumented)
1414
- status: string;
1415
- }
1416
-
1417
- // @public (undocumented)
1418
- export type GetAnalyzeBatchResultParameters = RequestParameters;
1419
-
1420
- // @public (undocumented)
1421
- export interface GetAnalyzeResult {
1422
- delete(options?: DeleteAnalyzeResultParameters): StreamableMethod<DeleteAnalyzeResult204Response | DeleteAnalyzeResultDefaultResponse>;
1423
- get(options?: GetAnalyzeResultParameters): StreamableMethod<GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse>;
1424
- }
1425
-
1426
- // @public
1427
- export interface GetAnalyzeResult200Response extends HttpResponse {
1428
- // (undocumented)
1429
- body: AnalyzeOperationOutput;
1430
- // (undocumented)
1431
- status: "200";
1432
- }
1433
-
1434
- // @public (undocumented)
1435
- export interface GetAnalyzeResultDefaultResponse extends HttpResponse {
1436
- // (undocumented)
1437
- body: DocumentIntelligenceErrorResponseOutput;
1438
- // (undocumented)
1439
- status: string;
1440
- }
1441
-
1442
- // @public (undocumented)
1443
- export interface GetAnalyzeResultFigure {
1444
- get(options?: GetAnalyzeResultFigureParameters): StreamableMethod<GetAnalyzeResultFigure200Response | GetAnalyzeResultFigureDefaultResponse>;
1445
- }
1446
-
1447
- // @public (undocumented)
1448
- export interface GetAnalyzeResultFigure200Headers {
1449
- "content-type": "image/png";
1450
- }
1451
-
1452
- // @public
1453
- export interface GetAnalyzeResultFigure200Response extends HttpResponse {
1454
- body: Uint8Array;
1455
- // (undocumented)
1456
- headers: RawHttpHeaders & GetAnalyzeResultFigure200Headers;
1457
- // (undocumented)
1458
- status: "200";
1459
- }
1460
-
1461
- // @public (undocumented)
1462
- export interface GetAnalyzeResultFigureDefaultResponse extends HttpResponse {
1463
- // (undocumented)
1464
- body: DocumentIntelligenceErrorResponseOutput;
1465
- // (undocumented)
1466
- status: string;
1467
- }
1468
-
1469
- // @public (undocumented)
1470
- export type GetAnalyzeResultFigureParameters = RequestParameters;
1471
-
1472
- // @public (undocumented)
1473
- export type GetAnalyzeResultParameters = RequestParameters;
1474
-
1475
- // @public (undocumented)
1476
- export interface GetAnalyzeResultPdf {
1477
- get(options?: GetAnalyzeResultPdfParameters): StreamableMethod<GetAnalyzeResultPdf200Response | GetAnalyzeResultPdfDefaultResponse>;
1478
- }
1479
-
1480
- // @public (undocumented)
1481
- export interface GetAnalyzeResultPdf200Headers {
1482
- "content-type": "application/pdf";
1483
- }
1484
-
1485
- // @public
1486
- export interface GetAnalyzeResultPdf200Response extends HttpResponse {
1487
- body: Uint8Array;
1488
- // (undocumented)
1489
- headers: RawHttpHeaders & GetAnalyzeResultPdf200Headers;
1490
- // (undocumented)
1491
- status: "200";
1492
- }
1493
-
1494
- // @public (undocumented)
1495
- export interface GetAnalyzeResultPdfDefaultResponse extends HttpResponse {
1496
- // (undocumented)
1497
- body: DocumentIntelligenceErrorResponseOutput;
1498
- // (undocumented)
1499
- status: string;
1500
- }
1501
-
1502
- // @public (undocumented)
1503
- export type GetAnalyzeResultPdfParameters = RequestParameters;
1504
-
1505
- // @public
1506
- export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
1507
-
1508
- // @public (undocumented)
1509
- export interface GetClassifier {
1510
- delete(options?: DeleteClassifierParameters): StreamableMethod<DeleteClassifier204Response | DeleteClassifierDefaultResponse>;
1511
- get(options?: GetClassifierParameters): StreamableMethod<GetClassifier200Response | GetClassifierDefaultResponse>;
1512
- }
1513
-
1514
- // @public (undocumented)
1515
- export interface GetClassifier200Headers {
1516
- "x-ms-client-request-id"?: string;
1517
- }
1518
-
1519
- // @public
1520
- export interface GetClassifier200Response extends HttpResponse {
1521
- // (undocumented)
1522
- body: DocumentClassifierDetailsOutput;
1523
- // (undocumented)
1524
- headers: RawHttpHeaders & GetClassifier200Headers;
1525
- // (undocumented)
1526
- status: "200";
1527
- }
1528
-
1529
- // @public (undocumented)
1530
- export interface GetClassifierDefaultResponse extends HttpResponse {
1531
- // (undocumented)
1532
- body: DocumentIntelligenceErrorResponseOutput;
1533
- // (undocumented)
1534
- status: string;
1535
- }
1536
-
1537
- // @public (undocumented)
1538
- export interface GetClassifierHeaderParam {
1539
- // (undocumented)
1540
- headers?: RawHttpHeadersInput & GetClassifierHeaders;
1541
- }
1542
-
1543
- // @public (undocumented)
1544
- export interface GetClassifierHeaders {
1545
- "x-ms-client-request-id"?: string;
1546
- }
1547
-
1548
- // @public (undocumented)
1549
- export type GetClassifierParameters = GetClassifierHeaderParam & RequestParameters;
1550
-
1551
- // @public (undocumented)
1552
- export interface GetClassifyResult {
1553
- get(options?: GetClassifyResultParameters): StreamableMethod<GetClassifyResult200Response | GetClassifyResultDefaultResponse>;
1554
- }
1555
-
1556
- // @public
1557
- export interface GetClassifyResult200Response extends HttpResponse {
1558
- // (undocumented)
1559
- body: AnalyzeOperationOutput;
1560
- // (undocumented)
1561
- status: "200";
1562
- }
1563
-
1564
- // @public (undocumented)
1565
- export interface GetClassifyResultDefaultResponse extends HttpResponse {
1566
- // (undocumented)
1567
- body: DocumentIntelligenceErrorResponseOutput;
1568
- // (undocumented)
1569
- status: string;
1570
- }
1571
-
1572
- // @public (undocumented)
1573
- export type GetClassifyResultParameters = RequestParameters;
1574
-
1575
- // @public (undocumented)
1576
- export interface GetDocumentClassifierBuildOperation200Headers {
1577
- "x-ms-client-request-id"?: string;
1578
- }
1579
-
1580
- // @public
1581
- export interface GetDocumentClassifierBuildOperation200Response extends HttpResponse {
1582
- // (undocumented)
1583
- body: DocumentClassifierBuildOperationDetailsOutput;
1584
- // (undocumented)
1585
- headers: RawHttpHeaders & GetDocumentClassifierBuildOperation200Headers;
1586
- // (undocumented)
1587
- status: "200";
1588
- }
1589
-
1590
- // @public (undocumented)
1591
- export interface GetDocumentClassifierBuildOperationDefaultResponse extends HttpResponse {
1592
- // (undocumented)
1593
- body: DocumentIntelligenceErrorResponseOutput;
1594
- // (undocumented)
1595
- status: string;
1596
- }
1597
-
1598
- // @public (undocumented)
1599
- export interface GetDocumentClassifierBuildOperationHeaderParam {
1600
- // (undocumented)
1601
- headers?: RawHttpHeadersInput & GetDocumentClassifierBuildOperationHeaders;
1602
- }
1603
-
1604
- // @public (undocumented)
1605
- export interface GetDocumentClassifierBuildOperationHeaders {
1606
- "x-ms-client-request-id"?: string;
1607
- }
1608
-
1609
- // @public (undocumented)
1610
- export type GetDocumentClassifierBuildOperationParameters = GetDocumentClassifierBuildOperationHeaderParam & RequestParameters;
1611
-
1612
- // @public (undocumented)
1613
- export interface GetDocumentClassifierCopyToOperation200Headers {
1614
- "x-ms-client-request-id"?: string;
1615
- }
1616
-
1617
- // @public
1618
- export interface GetDocumentClassifierCopyToOperation200Response extends HttpResponse {
1619
- // (undocumented)
1620
- body: DocumentClassifierCopyToOperationDetailsOutput;
1621
- // (undocumented)
1622
- headers: RawHttpHeaders & GetDocumentClassifierCopyToOperation200Headers;
1623
- // (undocumented)
1624
- status: "200";
1625
- }
1626
-
1627
- // @public (undocumented)
1628
- export interface GetDocumentClassifierCopyToOperationDefaultResponse extends HttpResponse {
1629
- // (undocumented)
1630
- body: DocumentIntelligenceErrorResponseOutput;
1631
- // (undocumented)
1632
- status: string;
1633
- }
1634
-
1635
- // @public (undocumented)
1636
- export interface GetDocumentClassifierCopyToOperationHeaderParam {
1637
- // (undocumented)
1638
- headers?: RawHttpHeadersInput & GetDocumentClassifierCopyToOperationHeaders;
1639
- }
1640
-
1641
- // @public (undocumented)
1642
- export interface GetDocumentClassifierCopyToOperationHeaders {
1643
- "x-ms-client-request-id"?: string;
1644
- }
1645
-
1646
- // @public (undocumented)
1647
- export type GetDocumentClassifierCopyToOperationParameters = GetDocumentClassifierCopyToOperationHeaderParam & RequestParameters;
1648
-
1649
- // @public (undocumented)
1650
- export interface GetDocumentModelBuildOperation {
1651
- get(options?: GetDocumentModelBuildOperationParameters): StreamableMethod<GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse>;
1652
- get(options?: GetDocumentModelComposeOperationParameters): StreamableMethod<GetDocumentModelComposeOperation200Response | GetDocumentModelComposeOperationDefaultResponse>;
1653
- get(options?: GetDocumentModelCopyToOperationParameters): StreamableMethod<GetDocumentModelCopyToOperation200Response | GetDocumentModelCopyToOperationDefaultResponse>;
1654
- get(options?: GetDocumentClassifierCopyToOperationParameters): StreamableMethod<GetDocumentClassifierCopyToOperation200Response | GetDocumentClassifierCopyToOperationDefaultResponse>;
1655
- get(options?: GetDocumentClassifierBuildOperationParameters): StreamableMethod<GetDocumentClassifierBuildOperation200Response | GetDocumentClassifierBuildOperationDefaultResponse>;
1656
- get(options?: GetOperationParameters): StreamableMethod<GetOperation200Response | GetOperationDefaultResponse>;
1657
- }
1658
-
1659
- // @public (undocumented)
1660
- export interface GetDocumentModelBuildOperation200Headers {
1661
- "x-ms-client-request-id"?: string;
1662
- }
1663
-
1664
- // @public
1665
- export interface GetDocumentModelBuildOperation200Response extends HttpResponse {
1666
- // (undocumented)
1667
- body: DocumentModelBuildOperationDetailsOutput;
1668
- // (undocumented)
1669
- headers: RawHttpHeaders & GetDocumentModelBuildOperation200Headers;
1670
- // (undocumented)
1671
- status: "200";
1672
- }
1673
-
1674
- // @public (undocumented)
1675
- export interface GetDocumentModelBuildOperationDefaultResponse extends HttpResponse {
1676
- // (undocumented)
1677
- body: DocumentIntelligenceErrorResponseOutput;
1678
- // (undocumented)
1679
- status: string;
1680
- }
1681
-
1682
- // @public (undocumented)
1683
- export interface GetDocumentModelBuildOperationHeaderParam {
1684
- // (undocumented)
1685
- headers?: RawHttpHeadersInput & GetDocumentModelBuildOperationHeaders;
1686
- }
1687
-
1688
- // @public (undocumented)
1689
- export interface GetDocumentModelBuildOperationHeaders {
1690
- "x-ms-client-request-id"?: string;
1691
- }
1692
-
1693
- // @public (undocumented)
1694
- export type GetDocumentModelBuildOperationParameters = GetDocumentModelBuildOperationHeaderParam & RequestParameters;
1695
-
1696
- // @public (undocumented)
1697
- export interface GetDocumentModelComposeOperation200Headers {
1698
- "x-ms-client-request-id"?: string;
1699
- }
1700
-
1701
- // @public
1702
- export interface GetDocumentModelComposeOperation200Response extends HttpResponse {
1703
- // (undocumented)
1704
- body: DocumentModelComposeOperationDetailsOutput;
1705
- // (undocumented)
1706
- headers: RawHttpHeaders & GetDocumentModelComposeOperation200Headers;
1707
- // (undocumented)
1708
- status: "200";
1709
- }
1710
-
1711
- // @public (undocumented)
1712
- export interface GetDocumentModelComposeOperationDefaultResponse extends HttpResponse {
1713
- // (undocumented)
1714
- body: DocumentIntelligenceErrorResponseOutput;
1715
- // (undocumented)
1716
- status: string;
1717
- }
1718
-
1719
- // @public (undocumented)
1720
- export interface GetDocumentModelComposeOperationHeaderParam {
1721
- // (undocumented)
1722
- headers?: RawHttpHeadersInput & GetDocumentModelComposeOperationHeaders;
1723
- }
1724
-
1725
- // @public (undocumented)
1726
- export interface GetDocumentModelComposeOperationHeaders {
1727
- "x-ms-client-request-id"?: string;
1728
- }
1729
-
1730
- // @public (undocumented)
1731
- export type GetDocumentModelComposeOperationParameters = GetDocumentModelComposeOperationHeaderParam & RequestParameters;
1732
-
1733
- // @public (undocumented)
1734
- export interface GetDocumentModelCopyToOperation200Headers {
1735
- "x-ms-client-request-id"?: string;
1736
- }
1737
-
1738
- // @public
1739
- export interface GetDocumentModelCopyToOperation200Response extends HttpResponse {
1740
- // (undocumented)
1741
- body: DocumentModelCopyToOperationDetailsOutput;
1742
- // (undocumented)
1743
- headers: RawHttpHeaders & GetDocumentModelCopyToOperation200Headers;
1744
- // (undocumented)
1745
- status: "200";
1746
- }
1747
-
1748
- // @public (undocumented)
1749
- export interface GetDocumentModelCopyToOperationDefaultResponse extends HttpResponse {
1750
- // (undocumented)
1751
- body: DocumentIntelligenceErrorResponseOutput;
1752
- // (undocumented)
1753
- status: string;
1754
- }
1755
-
1756
- // @public (undocumented)
1757
- export interface GetDocumentModelCopyToOperationHeaderParam {
1758
- // (undocumented)
1759
- headers?: RawHttpHeadersInput & GetDocumentModelCopyToOperationHeaders;
1760
- }
1761
-
1762
- // @public (undocumented)
1763
- export interface GetDocumentModelCopyToOperationHeaders {
1764
- "x-ms-client-request-id"?: string;
1765
- }
1766
-
1767
- // @public (undocumented)
1768
- export type GetDocumentModelCopyToOperationParameters = GetDocumentModelCopyToOperationHeaderParam & RequestParameters;
1769
-
1770
- // @public
1771
- export function getLongRunningPoller<TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse>(client: Client, initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1772
-
1773
- // @public (undocumented)
1774
- export function getLongRunningPoller<TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse>(client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1775
-
1776
- // @public (undocumented)
1777
- export function getLongRunningPoller<TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse>(client: Client, initialResponse: ComposeModel202Response | ComposeModelDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1778
-
1779
- // @public (undocumented)
1780
- export function getLongRunningPoller<TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse>(client: Client, initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1781
-
1782
- // @public (undocumented)
1783
- export function getLongRunningPoller<TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse>(client: Client, initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1784
-
1785
- // @public (undocumented)
1786
- export function getLongRunningPoller<TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse>(client: Client, initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1787
-
1788
- // @public (undocumented)
1789
- export function getLongRunningPoller<TResult extends AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse>(client: Client, initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1790
-
1791
- // @public (undocumented)
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
- }
1799
-
1800
- // @public (undocumented)
1801
- export interface GetModel {
1802
- delete(options?: DeleteModelParameters): StreamableMethod<DeleteModel204Response | DeleteModelDefaultResponse>;
1803
- get(options?: GetModelParameters): StreamableMethod<GetModel200Response | GetModelDefaultResponse>;
1804
- }
1805
-
1806
- // @public (undocumented)
1807
- export interface GetModel200Headers {
1808
- "x-ms-client-request-id"?: string;
1809
- }
1810
-
1811
- // @public
1812
- export interface GetModel200Response extends HttpResponse {
1813
- // (undocumented)
1814
- body: DocumentModelDetailsOutput;
1815
- // (undocumented)
1816
- headers: RawHttpHeaders & GetModel200Headers;
1817
- // (undocumented)
1818
- status: "200";
1819
- }
1820
-
1821
- // @public (undocumented)
1822
- export interface GetModelDefaultResponse extends HttpResponse {
1823
- // (undocumented)
1824
- body: DocumentIntelligenceErrorResponseOutput;
1825
- // (undocumented)
1826
- status: string;
1827
- }
1828
-
1829
- // @public (undocumented)
1830
- export interface GetModelHeaderParam {
1831
- // (undocumented)
1832
- headers?: RawHttpHeadersInput & GetModelHeaders;
1833
- }
1834
-
1835
- // @public (undocumented)
1836
- export interface GetModelHeaders {
1837
- "x-ms-client-request-id"?: string;
1838
- }
1839
-
1840
- // @public (undocumented)
1841
- export type GetModelParameters = GetModelHeaderParam & RequestParameters;
1842
-
1843
- // @public (undocumented)
1844
- export interface GetOperation200Headers {
1845
- "x-ms-client-request-id"?: string;
1846
- }
1847
-
1848
- // @public
1849
- export interface GetOperation200Response extends HttpResponse {
1850
- // (undocumented)
1851
- body: DocumentIntelligenceOperationDetailsOutput;
1852
- // (undocumented)
1853
- headers: RawHttpHeaders & GetOperation200Headers;
1854
- // (undocumented)
1855
- status: "200";
1856
- }
1857
-
1858
- // @public (undocumented)
1859
- export interface GetOperationDefaultResponse extends HttpResponse {
1860
- // (undocumented)
1861
- body: DocumentIntelligenceErrorResponseOutput;
1862
- // (undocumented)
1863
- status: string;
1864
- }
1865
-
1866
- // @public (undocumented)
1867
- export interface GetOperationHeaderParam {
1868
- // (undocumented)
1869
- headers?: RawHttpHeadersInput & GetOperationHeaders;
1870
- }
1871
-
1872
- // @public (undocumented)
1873
- export interface GetOperationHeaders {
1874
- "x-ms-client-request-id"?: string;
1875
- }
1876
-
1877
- // @public (undocumented)
1878
- export type GetOperationParameters = GetOperationHeaderParam & RequestParameters;
1879
-
1880
- // @public
1881
- export type GetPage<TPage> = (pageLink: string) => Promise<{
1882
- page: TPage;
1883
- nextPageLink?: string;
1884
- }>;
1885
-
1886
- // @public (undocumented)
1887
- export interface GetResourceDetails {
1888
- get(options?: GetResourceDetailsParameters): StreamableMethod<GetResourceDetails200Response | GetResourceDetailsDefaultResponse>;
1889
- }
1890
-
1891
- // @public
1892
- export interface GetResourceDetails200Response extends HttpResponse {
1893
- // (undocumented)
1894
- body: DocumentIntelligenceResourceDetailsOutput;
1895
- // (undocumented)
1896
- status: "200";
1897
- }
1898
-
1899
- // @public (undocumented)
1900
- export interface GetResourceDetailsDefaultResponse extends HttpResponse {
1901
- // (undocumented)
1902
- body: DocumentIntelligenceErrorResponseOutput;
1903
- // (undocumented)
1904
- status: string;
1905
- }
1906
-
1907
- // @public (undocumented)
1908
- export type GetResourceDetailsParameters = RequestParameters;
1909
-
1910
- // @public (undocumented)
1911
- export function isUnexpected(response: ListOperations200Response | ListOperationsDefaultResponse): response is ListOperationsDefaultResponse;
1912
-
1913
- // @public (undocumented)
1914
- export function isUnexpected(response: GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse): response is GetDocumentModelBuildOperationDefaultResponse;
1915
-
1916
- // @public (undocumented)
1917
- export function isUnexpected(response: GetDocumentModelComposeOperation200Response | GetDocumentModelComposeOperationDefaultResponse): response is GetDocumentModelComposeOperationDefaultResponse;
1918
-
1919
- // @public (undocumented)
1920
- export function isUnexpected(response: GetDocumentModelCopyToOperation200Response | GetDocumentModelCopyToOperationDefaultResponse): response is GetDocumentModelCopyToOperationDefaultResponse;
1921
-
1922
- // @public (undocumented)
1923
- export function isUnexpected(response: GetDocumentClassifierCopyToOperation200Response | GetDocumentClassifierCopyToOperationDefaultResponse): response is GetDocumentClassifierCopyToOperationDefaultResponse;
1924
-
1925
- // @public (undocumented)
1926
- export function isUnexpected(response: GetDocumentClassifierBuildOperation200Response | GetDocumentClassifierBuildOperationDefaultResponse): response is GetDocumentClassifierBuildOperationDefaultResponse;
1927
-
1928
- // @public (undocumented)
1929
- export function isUnexpected(response: GetOperation200Response | GetOperationDefaultResponse): response is GetOperationDefaultResponse;
1930
-
1931
- // @public (undocumented)
1932
- export function isUnexpected(response: GetResourceDetails200Response | GetResourceDetailsDefaultResponse): response is GetResourceDetailsDefaultResponse;
1933
-
1934
- // @public (undocumented)
1935
- export function isUnexpected(response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse): response is GetAnalyzeResultDefaultResponse;
1936
-
1937
- // @public (undocumented)
1938
- export function isUnexpected(response: DeleteAnalyzeResult204Response | DeleteAnalyzeResultDefaultResponse): response is DeleteAnalyzeResultDefaultResponse;
1939
-
1940
- // @public (undocumented)
1941
- export function isUnexpected(response: GetAnalyzeResultPdf200Response | GetAnalyzeResultPdfDefaultResponse): response is GetAnalyzeResultPdfDefaultResponse;
1942
-
1943
- // @public (undocumented)
1944
- export function isUnexpected(response: GetAnalyzeResultFigure200Response | GetAnalyzeResultFigureDefaultResponse): response is GetAnalyzeResultFigureDefaultResponse;
1945
-
1946
- // @public (undocumented)
1947
- export function isUnexpected(response: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse): response is AnalyzeDocumentFromStreamDefaultResponse;
1948
-
1949
- // @public (undocumented)
1950
- export function isUnexpected(response: AnalyzeDocument202Response | AnalyzeDocumentLogicalResponse | AnalyzeDocumentDefaultResponse): response is AnalyzeDocumentDefaultResponse;
1951
-
1952
- // @public (undocumented)
1953
- export function isUnexpected(response: GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse): response is GetAnalyzeBatchResultDefaultResponse;
1954
-
1955
- // @public (undocumented)
1956
- export function isUnexpected(response: DeleteAnalyzeBatchResult204Response | DeleteAnalyzeBatchResultDefaultResponse): response is DeleteAnalyzeBatchResultDefaultResponse;
1957
-
1958
- // @public (undocumented)
1959
- export function isUnexpected(response: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse): response is AnalyzeBatchDocumentsDefaultResponse;
1960
-
1961
- // @public (undocumented)
1962
- export function isUnexpected(response: ListAnalyzeBatchResults200Response | ListAnalyzeBatchResultsDefaultResponse): response is ListAnalyzeBatchResultsDefaultResponse;
1963
-
1964
- // @public (undocumented)
1965
- export function isUnexpected(response: GetModel200Response | GetModelDefaultResponse): response is GetModelDefaultResponse;
1966
-
1967
- // @public (undocumented)
1968
- export function isUnexpected(response: DeleteModel204Response | DeleteModelDefaultResponse): response is DeleteModelDefaultResponse;
1969
-
1970
- // @public (undocumented)
1971
- export function isUnexpected(response: BuildModel202Response | BuildModelLogicalResponse | BuildModelDefaultResponse): response is BuildModelDefaultResponse;
1972
-
1973
- // @public (undocumented)
1974
- export function isUnexpected(response: ComposeModel202Response | ComposeModelLogicalResponse | ComposeModelDefaultResponse): response is ComposeModelDefaultResponse;
1975
-
1976
- // @public (undocumented)
1977
- export function isUnexpected(response: AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse): response is AuthorizeModelCopyDefaultResponse;
1978
-
1979
- // @public (undocumented)
1980
- export function isUnexpected(response: CopyModelTo202Response | CopyModelToLogicalResponse | CopyModelToDefaultResponse): response is CopyModelToDefaultResponse;
1981
-
1982
- // @public (undocumented)
1983
- export function isUnexpected(response: ListModels200Response | ListModelsDefaultResponse): response is ListModelsDefaultResponse;
1984
-
1985
- // @public (undocumented)
1986
- export function isUnexpected(response: BuildClassifier202Response | BuildClassifierLogicalResponse | BuildClassifierDefaultResponse): response is BuildClassifierDefaultResponse;
1987
-
1988
- // @public (undocumented)
1989
- export function isUnexpected(response: ListClassifiers200Response | ListClassifiersDefaultResponse): response is ListClassifiersDefaultResponse;
1990
-
1991
- // @public (undocumented)
1992
- export function isUnexpected(response: GetClassifier200Response | GetClassifierDefaultResponse): response is GetClassifierDefaultResponse;
1993
-
1994
- // @public (undocumented)
1995
- export function isUnexpected(response: DeleteClassifier204Response | DeleteClassifierDefaultResponse): response is DeleteClassifierDefaultResponse;
1996
-
1997
- // @public (undocumented)
1998
- export function isUnexpected(response: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse): response is ClassifyDocumentFromStreamDefaultResponse;
1999
-
2000
- // @public (undocumented)
2001
- export function isUnexpected(response: ClassifyDocument202Response | ClassifyDocumentLogicalResponse | ClassifyDocumentDefaultResponse): response is ClassifyDocumentDefaultResponse;
2002
-
2003
- // @public (undocumented)
2004
- export function isUnexpected(response: GetClassifyResult200Response | GetClassifyResultDefaultResponse): response is GetClassifyResultDefaultResponse;
2005
-
2006
- // @public (undocumented)
2007
- export function isUnexpected(response: AuthorizeClassifierCopy200Response | AuthorizeClassifierCopyDefaultResponse): response is AuthorizeClassifierCopyDefaultResponse;
2008
-
2009
- // @public (undocumented)
2010
- export function isUnexpected(response: CopyClassifierTo202Response | CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse): response is CopyClassifierToDefaultResponse;
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
-
2019
- // @public
2020
- export type LengthUnitOutput = string;
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
-
2046
- // @public (undocumented)
2047
- export interface ListClassifiers {
2048
- get(options?: ListClassifiersParameters): StreamableMethod<ListClassifiers200Response | ListClassifiersDefaultResponse>;
2049
- }
2050
-
2051
- // @public (undocumented)
2052
- export interface ListClassifiers200Headers {
2053
- "x-ms-client-request-id"?: string;
2054
- }
2055
-
2056
- // @public
2057
- export interface ListClassifiers200Response extends HttpResponse {
2058
- // (undocumented)
2059
- body: PagedDocumentClassifierDetailsOutput;
2060
- // (undocumented)
2061
- headers: RawHttpHeaders & ListClassifiers200Headers;
2062
- // (undocumented)
2063
- status: "200";
2064
- }
2065
-
2066
- // @public (undocumented)
2067
- export interface ListClassifiersDefaultResponse extends HttpResponse {
2068
- // (undocumented)
2069
- body: DocumentIntelligenceErrorResponseOutput;
2070
- // (undocumented)
2071
- status: string;
2072
- }
2073
-
2074
- // @public (undocumented)
2075
- export interface ListClassifiersHeaderParam {
2076
- // (undocumented)
2077
- headers?: RawHttpHeadersInput & ListClassifiersHeaders;
2078
- }
2079
-
2080
- // @public (undocumented)
2081
- export interface ListClassifiersHeaders {
2082
- "x-ms-client-request-id"?: string;
2083
- }
2084
-
2085
- // @public (undocumented)
2086
- export type ListClassifiersParameters = ListClassifiersHeaderParam & RequestParameters;
2087
-
2088
- // @public (undocumented)
2089
- export interface ListModels {
2090
- get(options?: ListModelsParameters): StreamableMethod<ListModels200Response | ListModelsDefaultResponse>;
2091
- }
2092
-
2093
- // @public (undocumented)
2094
- export interface ListModels200Headers {
2095
- "x-ms-client-request-id"?: string;
2096
- }
2097
-
2098
- // @public
2099
- export interface ListModels200Response extends HttpResponse {
2100
- // (undocumented)
2101
- body: PagedDocumentModelDetailsOutput;
2102
- // (undocumented)
2103
- headers: RawHttpHeaders & ListModels200Headers;
2104
- // (undocumented)
2105
- status: "200";
2106
- }
2107
-
2108
- // @public (undocumented)
2109
- export interface ListModelsDefaultResponse extends HttpResponse {
2110
- // (undocumented)
2111
- body: DocumentIntelligenceErrorResponseOutput;
2112
- // (undocumented)
2113
- status: string;
2114
- }
2115
-
2116
- // @public (undocumented)
2117
- export interface ListModelsHeaderParam {
2118
- // (undocumented)
2119
- headers?: RawHttpHeadersInput & ListModelsHeaders;
2120
- }
2121
-
2122
- // @public (undocumented)
2123
- export interface ListModelsHeaders {
2124
- "x-ms-client-request-id"?: string;
2125
- }
2126
-
2127
- // @public (undocumented)
2128
- export type ListModelsParameters = ListModelsHeaderParam & RequestParameters;
2129
-
2130
- // @public (undocumented)
2131
- export interface ListOperations {
2132
- get(options?: ListOperationsParameters): StreamableMethod<ListOperations200Response | ListOperationsDefaultResponse>;
2133
- }
2134
-
2135
- // @public (undocumented)
2136
- export interface ListOperations200Headers {
2137
- "x-ms-client-request-id"?: string;
2138
- }
2139
-
2140
- // @public
2141
- export interface ListOperations200Response extends HttpResponse {
2142
- // (undocumented)
2143
- body: PagedDocumentIntelligenceOperationDetailsOutput;
2144
- // (undocumented)
2145
- headers: RawHttpHeaders & ListOperations200Headers;
2146
- // (undocumented)
2147
- status: "200";
2148
- }
2149
-
2150
- // @public (undocumented)
2151
- export interface ListOperationsDefaultResponse extends HttpResponse {
2152
- // (undocumented)
2153
- body: DocumentIntelligenceErrorResponseOutput;
2154
- // (undocumented)
2155
- status: string;
2156
- }
2157
-
2158
- // @public (undocumented)
2159
- export interface ListOperationsHeaderParam {
2160
- // (undocumented)
2161
- headers?: RawHttpHeadersInput & ListOperationsHeaders;
2162
- }
2163
-
2164
- // @public (undocumented)
2165
- export interface ListOperationsHeaders {
2166
- "x-ms-client-request-id"?: string;
2167
- }
2168
-
2169
- // @public (undocumented)
2170
- export type ListOperationsParameters = ListOperationsHeaderParam & RequestParameters;
2171
-
2172
- // @public
2173
- export interface ModelCopyAuthorization {
2174
- accessToken: string;
2175
- expirationDateTime: Date | string;
2176
- targetModelId: string;
2177
- targetModelLocation: string;
2178
- targetResourceId: string;
2179
- targetResourceRegion: string;
2180
- }
2181
-
2182
- // @public
2183
- export interface ModelCopyAuthorizationOutput {
2184
- accessToken: string;
2185
- expirationDateTime: string;
2186
- targetModelId: string;
2187
- targetModelLocation: string;
2188
- targetResourceId: string;
2189
- targetResourceRegion: string;
2190
- }
2191
-
2192
- // @public
2193
- export type OperationKindOutput = string;
2194
-
2195
- // @public
2196
- export interface PagedAnalyzeBatchOperationOutput {
2197
- nextLink?: string;
2198
- value: Array<AnalyzeBatchOperationOutput>;
2199
- }
2200
-
2201
- // @public
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
- }
2207
-
2208
- // @public
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
- }
2225
-
2226
- // @public
2227
- export interface PageSettings {
2228
- continuationToken?: string;
2229
- }
2230
-
2231
- // @public
2232
- export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
2233
-
2234
- // @public
2235
- export type PaginateReturn<TResult> = TResult extends {
2236
- body: {
2237
- value?: infer TPage;
2238
- };
2239
- } ? GetArrayType<TPage> : Array<unknown>;
2240
-
2241
- // @public
2242
- export interface PagingOptions<TResponse> {
2243
- customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
2244
- }
2245
-
2246
- // @public
2247
- export type ParagraphRoleOutput = string;
2248
-
2249
- // @public
2250
- export function parseResultIdFromResponse(initialResponse: {
2251
- headers: {
2252
- "operation-location": string;
2253
- };
2254
- }): string;
2255
-
2256
- // @public (undocumented)
2257
- export interface Routes {
2258
- (path: "/operations"): ListOperations;
2259
- (path: "/operations/{operationId}", operationId: string): GetDocumentModelBuildOperation;
2260
- (path: "/info"): GetResourceDetails;
2261
- (path: "/documentModels/{modelId}/analyzeResults/{resultId}", modelId: string, resultId: string): GetAnalyzeResult;
2262
- (path: "/documentModels/{modelId}/analyzeResults/{resultId}/pdf", modelId: string, resultId: string): GetAnalyzeResultPdf;
2263
- (path: "/documentModels/{modelId}/analyzeResults/{resultId}/figures/{figureId}", modelId: string, resultId: string, figureId: string): GetAnalyzeResultFigure;
2264
- (path: "/documentModels/{modelId}:analyze", modelId: string): AnalyzeDocumentFromStream;
2265
- (path: "/documentModels/{modelId}/analyzeBatchResults/{resultId}", modelId: string, resultId: string): GetAnalyzeBatchResult;
2266
- (path: "/documentModels/{modelId}:analyzeBatch", modelId: string): AnalyzeBatchDocuments;
2267
- (path: "/documentModels/{modelId}/analyzeBatchResults", modelId: string): ListAnalyzeBatchResults;
2268
- (path: "/documentModels/{modelId}", modelId: string): GetModel;
2269
- (path: "/documentModels:build"): BuildModel;
2270
- (path: "/documentModels:compose"): ComposeModel;
2271
- (path: "/documentModels:authorizeCopy"): AuthorizeModelCopy;
2272
- (path: "/documentModels/{modelId}:copyTo", modelId: string): CopyModelTo;
2273
- (path: "/documentModels"): ListModels;
2274
- (path: "/documentClassifiers:build"): BuildClassifier;
2275
- (path: "/documentClassifiers"): ListClassifiers;
2276
- (path: "/documentClassifiers/{classifierId}", classifierId: string): GetClassifier;
2277
- (path: "/documentClassifiers/{classifierId}:analyze", classifierId: string): ClassifyDocumentFromStream;
2278
- (path: "/documentClassifiers/{classifierId}/analyzeResults/{resultId}", classifierId: string, resultId: string): GetClassifyResult;
2279
- (path: "/documentClassifiers:authorizeCopy"): AuthorizeClassifierCopy;
2280
- (path: "/documentClassifiers/{classifierId}:copyTo", classifierId: string): CopyClassifierTo;
2281
- }
2282
-
2283
- // @public
2284
- export type SplitMode = string;
2285
-
2286
- // @public
2287
- export type SplitModeOutput = string;
2288
-
2289
- // @public
2290
- export function streamToUint8Array(stream: NodeJS.ReadableStream): Promise<Uint8Array>;
2291
-
2292
- // @public
2293
- export type StringIndexType = string;
2294
-
2295
- // @public
2296
- export type StringIndexTypeOutput = string;
2297
-
2298
- // (No @packageDocumentation comment for this package)
2299
-
2300
- ```
1
+ ## API Report File for "@azure-rest/ai-document-intelligence"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
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';
19
+
20
+ // @public
21
+ export interface AddressValueOutput {
22
+ city?: string;
23
+ cityDistrict?: string;
24
+ countryRegion?: string;
25
+ house?: string;
26
+ houseNumber?: string;
27
+ level?: string;
28
+ poBox?: string;
29
+ postalCode?: string;
30
+ road?: string;
31
+ state?: string;
32
+ stateDistrict?: string;
33
+ streetAddress?: string;
34
+ suburb?: string;
35
+ unit?: string;
36
+ }
37
+
38
+ // @public (undocumented)
39
+ export interface AnalyzeBatchDocuments {
40
+ post(options: AnalyzeBatchDocumentsParameters): StreamableMethod<AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse>;
41
+ }
42
+
43
+ // @public (undocumented)
44
+ export interface AnalyzeBatchDocuments202Headers {
45
+ // (undocumented)
46
+ "operation-location": string;
47
+ "retry-after"?: number;
48
+ }
49
+
50
+ // @public
51
+ export interface AnalyzeBatchDocuments202Response extends HttpResponse {
52
+ // (undocumented)
53
+ headers: RawHttpHeaders & AnalyzeBatchDocuments202Headers;
54
+ // (undocumented)
55
+ status: "202";
56
+ }
57
+
58
+ // @public (undocumented)
59
+ export interface AnalyzeBatchDocumentsBodyParam {
60
+ body: AnalyzeBatchDocumentsRequest;
61
+ }
62
+
63
+ // @public (undocumented)
64
+ export interface AnalyzeBatchDocumentsDefaultResponse extends HttpResponse {
65
+ // (undocumented)
66
+ body: DocumentIntelligenceErrorResponseOutput;
67
+ // (undocumented)
68
+ status: string;
69
+ }
70
+
71
+ // @public
72
+ export interface AnalyzeBatchDocumentsFeaturesQueryParam {
73
+ explode: false;
74
+ style: "form";
75
+ value: DocumentAnalysisFeature[];
76
+ }
77
+
78
+ // @public
79
+ export interface AnalyzeBatchDocumentsLogicalResponse extends HttpResponse {
80
+ // (undocumented)
81
+ status: "200";
82
+ }
83
+
84
+ // @public (undocumented)
85
+ export interface AnalyzeBatchDocumentsMediaTypesParam {
86
+ contentType: "application/json";
87
+ }
88
+
89
+ // @public
90
+ export interface AnalyzeBatchDocumentsOutputQueryParam {
91
+ explode: false;
92
+ style: "form";
93
+ value: AnalyzeOutputOption[];
94
+ }
95
+
96
+ // @public (undocumented)
97
+ export type AnalyzeBatchDocumentsParameters = AnalyzeBatchDocumentsQueryParam & AnalyzeBatchDocumentsMediaTypesParam & AnalyzeBatchDocumentsBodyParam & RequestParameters;
98
+
99
+ // @public
100
+ export interface AnalyzeBatchDocumentsQueryFieldsQueryParam {
101
+ explode: false;
102
+ style: "form";
103
+ value: string[];
104
+ }
105
+
106
+ // @public (undocumented)
107
+ export interface AnalyzeBatchDocumentsQueryParam {
108
+ // (undocumented)
109
+ queryParameters?: AnalyzeBatchDocumentsQueryParamProperties;
110
+ }
111
+
112
+ // @public (undocumented)
113
+ export interface AnalyzeBatchDocumentsQueryParamProperties {
114
+ features?: DocumentAnalysisFeature[] | AnalyzeBatchDocumentsFeaturesQueryParam;
115
+ locale?: string;
116
+ output?: AnalyzeOutputOption[] | AnalyzeBatchDocumentsOutputQueryParam;
117
+ outputContentFormat?: DocumentContentFormat;
118
+ pages?: string;
119
+ queryFields?: string[] | AnalyzeBatchDocumentsQueryFieldsQueryParam;
120
+ stringIndexType?: StringIndexType;
121
+ }
122
+
123
+ // @public
124
+ export interface AnalyzeBatchDocumentsRequest {
125
+ azureBlobFileListSource?: AzureBlobFileListContentSource;
126
+ azureBlobSource?: AzureBlobContentSource;
127
+ overwriteExisting?: boolean;
128
+ resultContainerUrl: string;
129
+ resultPrefix?: string;
130
+ }
131
+
132
+ // @public
133
+ export interface AnalyzeBatchOperationDetailOutput {
134
+ error?: DocumentIntelligenceErrorOutput;
135
+ resultUrl?: string;
136
+ sourceUrl: string;
137
+ status: DocumentIntelligenceOperationStatusOutput;
138
+ }
139
+
140
+ // @public
141
+ export interface AnalyzeBatchOperationOutput {
142
+ createdDateTime: string;
143
+ error?: DocumentIntelligenceErrorOutput;
144
+ lastUpdatedDateTime: string;
145
+ percentCompleted?: number;
146
+ result?: AnalyzeBatchResultOutput;
147
+ resultId?: string;
148
+ status: DocumentIntelligenceOperationStatusOutput;
149
+ }
150
+
151
+ // @public
152
+ export interface AnalyzeBatchResultOutput {
153
+ details?: Array<AnalyzeBatchOperationDetailOutput>;
154
+ failedCount: number;
155
+ skippedCount: number;
156
+ succeededCount: number;
157
+ }
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
+
168
+ // @public (undocumented)
169
+ export interface AnalyzeDocument202Headers {
170
+ // (undocumented)
171
+ "operation-location": string;
172
+ "retry-after"?: number;
173
+ }
174
+
175
+ // @public
176
+ export interface AnalyzeDocument202Response extends HttpResponse {
177
+ // (undocumented)
178
+ headers: RawHttpHeaders & AnalyzeDocument202Headers;
179
+ // (undocumented)
180
+ status: "202";
181
+ }
182
+
183
+ // @public (undocumented)
184
+ export interface AnalyzeDocumentBodyParam {
185
+ body: AnalyzeDocumentRequest;
186
+ }
187
+
188
+ // @public (undocumented)
189
+ export interface AnalyzeDocumentDefaultResponse extends HttpResponse {
190
+ // (undocumented)
191
+ body: DocumentIntelligenceErrorResponseOutput;
192
+ // (undocumented)
193
+ status: string;
194
+ }
195
+
196
+ // @public
197
+ export interface AnalyzeDocumentFeaturesQueryParam {
198
+ explode: false;
199
+ style: "form";
200
+ value: DocumentAnalysisFeature[];
201
+ }
202
+
203
+ // @public (undocumented)
204
+ export interface AnalyzeDocumentFromStream {
205
+ post(options: AnalyzeDocumentFromStreamParameters): StreamableMethod<AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse>;
206
+ post(options: AnalyzeDocumentParameters): StreamableMethod<AnalyzeDocument202Response | AnalyzeDocumentDefaultResponse>;
207
+ }
208
+
209
+ // @public (undocumented)
210
+ export interface AnalyzeDocumentFromStream202Headers {
211
+ // (undocumented)
212
+ "operation-location": string;
213
+ "retry-after"?: number;
214
+ }
215
+
216
+ // @public
217
+ export interface AnalyzeDocumentFromStream202Response extends HttpResponse {
218
+ // (undocumented)
219
+ headers: RawHttpHeaders & AnalyzeDocumentFromStream202Headers;
220
+ // (undocumented)
221
+ status: "202";
222
+ }
223
+
224
+ // @public (undocumented)
225
+ export interface AnalyzeDocumentFromStreamBodyParam {
226
+ body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
227
+ }
228
+
229
+ // @public (undocumented)
230
+ export interface AnalyzeDocumentFromStreamDefaultResponse extends HttpResponse {
231
+ // (undocumented)
232
+ body: DocumentIntelligenceErrorResponseOutput;
233
+ // (undocumented)
234
+ status: string;
235
+ }
236
+
237
+ // @public
238
+ export interface AnalyzeDocumentFromStreamFeaturesQueryParam {
239
+ explode: false;
240
+ style: "form";
241
+ value: DocumentAnalysisFeature[];
242
+ }
243
+
244
+ // @public
245
+ export interface AnalyzeDocumentFromStreamLogicalResponse extends HttpResponse {
246
+ // (undocumented)
247
+ status: "200";
248
+ }
249
+
250
+ // @public (undocumented)
251
+ export interface AnalyzeDocumentFromStreamMediaTypesParam {
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";
253
+ }
254
+
255
+ // @public
256
+ export interface AnalyzeDocumentFromStreamOutputQueryParam {
257
+ explode: false;
258
+ style: "form";
259
+ value: AnalyzeOutputOption[];
260
+ }
261
+
262
+ // @public (undocumented)
263
+ export type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam & AnalyzeDocumentFromStreamMediaTypesParam & AnalyzeDocumentFromStreamBodyParam & RequestParameters;
264
+
265
+ // @public
266
+ export interface AnalyzeDocumentFromStreamQueryFieldsQueryParam {
267
+ explode: false;
268
+ style: "form";
269
+ value: string[];
270
+ }
271
+
272
+ // @public (undocumented)
273
+ export interface AnalyzeDocumentFromStreamQueryParam {
274
+ // (undocumented)
275
+ queryParameters?: AnalyzeDocumentFromStreamQueryParamProperties;
276
+ }
277
+
278
+ // @public (undocumented)
279
+ export interface AnalyzeDocumentFromStreamQueryParamProperties {
280
+ features?: DocumentAnalysisFeature[] | AnalyzeDocumentFromStreamFeaturesQueryParam;
281
+ locale?: string;
282
+ output?: AnalyzeOutputOption[] | AnalyzeDocumentFromStreamOutputQueryParam;
283
+ outputContentFormat?: DocumentContentFormat;
284
+ pages?: string;
285
+ queryFields?: string[] | AnalyzeDocumentFromStreamQueryFieldsQueryParam;
286
+ stringIndexType?: StringIndexType;
287
+ }
288
+
289
+ // @public
290
+ export interface AnalyzeDocumentLogicalResponse extends HttpResponse {
291
+ // (undocumented)
292
+ status: "200";
293
+ }
294
+
295
+ // @public (undocumented)
296
+ export interface AnalyzeDocumentMediaTypesParam {
297
+ contentType: "application/json";
298
+ }
299
+
300
+ // @public
301
+ export interface AnalyzeDocumentOutputQueryParam {
302
+ explode: false;
303
+ style: "form";
304
+ value: AnalyzeOutputOption[];
305
+ }
306
+
307
+ // @public (undocumented)
308
+ export type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam & AnalyzeDocumentMediaTypesParam & AnalyzeDocumentBodyParam & RequestParameters;
309
+
310
+ // @public
311
+ export interface AnalyzeDocumentQueryFieldsQueryParam {
312
+ explode: false;
313
+ style: "form";
314
+ value: string[];
315
+ }
316
+
317
+ // @public (undocumented)
318
+ export interface AnalyzeDocumentQueryParam {
319
+ // (undocumented)
320
+ queryParameters?: AnalyzeDocumentQueryParamProperties;
321
+ }
322
+
323
+ // @public (undocumented)
324
+ export interface AnalyzeDocumentQueryParamProperties {
325
+ features?: DocumentAnalysisFeature[] | AnalyzeDocumentFeaturesQueryParam;
326
+ locale?: string;
327
+ output?: AnalyzeOutputOption[] | AnalyzeDocumentOutputQueryParam;
328
+ outputContentFormat?: DocumentContentFormat;
329
+ pages?: string;
330
+ queryFields?: string[] | AnalyzeDocumentQueryFieldsQueryParam;
331
+ stringIndexType?: StringIndexType;
332
+ }
333
+
334
+ // @public
335
+ export interface AnalyzeDocumentRequest {
336
+ base64Source?: string;
337
+ urlSource?: string;
338
+ }
339
+
340
+ // @public
341
+ export interface AnalyzeOperationOutput {
342
+ analyzeResult?: AnalyzeResultOutput;
343
+ createdDateTime: string;
344
+ error?: DocumentIntelligenceErrorOutput;
345
+ lastUpdatedDateTime: string;
346
+ status: DocumentIntelligenceOperationStatusOutput;
347
+ }
348
+
349
+ // @public
350
+ export type AnalyzeOutputOption = string;
351
+
352
+ // @public
353
+ export interface AnalyzeResultOutput {
354
+ apiVersion: string;
355
+ content: string;
356
+ contentFormat?: DocumentContentFormatOutput;
357
+ documents?: Array<AnalyzedDocumentOutput>;
358
+ figures?: Array<DocumentFigureOutput>;
359
+ keyValuePairs?: Array<DocumentKeyValuePairOutput>;
360
+ languages?: Array<DocumentLanguageOutput>;
361
+ modelId: string;
362
+ pages: Array<DocumentPageOutput>;
363
+ paragraphs?: Array<DocumentParagraphOutput>;
364
+ sections?: Array<DocumentSectionOutput>;
365
+ stringIndexType: StringIndexTypeOutput;
366
+ styles?: Array<DocumentStyleOutput>;
367
+ tables?: Array<DocumentTableOutput>;
368
+ warnings?: Array<DocumentIntelligenceWarningOutput>;
369
+ }
370
+
371
+ // @public (undocumented)
372
+ export interface AuthorizeClassifierCopy {
373
+ post(options: AuthorizeClassifierCopyParameters): StreamableMethod<AuthorizeClassifierCopy200Response | AuthorizeClassifierCopyDefaultResponse>;
374
+ }
375
+
376
+ // @public
377
+ export interface AuthorizeClassifierCopy200Response extends HttpResponse {
378
+ // (undocumented)
379
+ body: ClassifierCopyAuthorizationOutput;
380
+ // (undocumented)
381
+ status: "200";
382
+ }
383
+
384
+ // @public (undocumented)
385
+ export interface AuthorizeClassifierCopyBodyParam {
386
+ body: AuthorizeClassifierCopyRequest;
387
+ }
388
+
389
+ // @public (undocumented)
390
+ export interface AuthorizeClassifierCopyDefaultResponse extends HttpResponse {
391
+ // (undocumented)
392
+ body: DocumentIntelligenceErrorResponseOutput;
393
+ // (undocumented)
394
+ status: string;
395
+ }
396
+
397
+ // @public (undocumented)
398
+ export type AuthorizeClassifierCopyParameters = AuthorizeClassifierCopyBodyParam & RequestParameters;
399
+
400
+ // @public
401
+ export interface AuthorizeClassifierCopyRequest {
402
+ classifierId: string;
403
+ description?: string;
404
+ tags?: Record<string, string>;
405
+ }
406
+
407
+ // @public
408
+ export interface AuthorizeCopyRequest {
409
+ description?: string;
410
+ modelId: string;
411
+ tags?: Record<string, string>;
412
+ }
413
+
414
+ // @public (undocumented)
415
+ export interface AuthorizeModelCopy {
416
+ post(options: AuthorizeModelCopyParameters): StreamableMethod<AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse>;
417
+ }
418
+
419
+ // @public
420
+ export interface AuthorizeModelCopy200Response extends HttpResponse {
421
+ // (undocumented)
422
+ body: ModelCopyAuthorizationOutput;
423
+ // (undocumented)
424
+ status: "200";
425
+ }
426
+
427
+ // @public (undocumented)
428
+ export interface AuthorizeModelCopyBodyParam {
429
+ body: AuthorizeCopyRequest;
430
+ }
431
+
432
+ // @public (undocumented)
433
+ export interface AuthorizeModelCopyDefaultResponse extends HttpResponse {
434
+ // (undocumented)
435
+ body: DocumentIntelligenceErrorResponseOutput;
436
+ // (undocumented)
437
+ status: string;
438
+ }
439
+
440
+ // @public (undocumented)
441
+ export type AuthorizeModelCopyParameters = AuthorizeModelCopyBodyParam & RequestParameters;
442
+
443
+ // @public
444
+ export interface AzureBlobContentSource {
445
+ containerUrl: string;
446
+ prefix?: string;
447
+ }
448
+
449
+ // @public
450
+ export interface AzureBlobContentSourceOutput {
451
+ containerUrl: string;
452
+ prefix?: string;
453
+ }
454
+
455
+ // @public
456
+ export interface AzureBlobFileListContentSource {
457
+ containerUrl: string;
458
+ fileList: string;
459
+ }
460
+
461
+ // @public
462
+ export interface AzureBlobFileListContentSourceOutput {
463
+ containerUrl: string;
464
+ fileList: string;
465
+ }
466
+
467
+ // @public
468
+ export interface BoundingRegionOutput {
469
+ pageNumber: number;
470
+ polygon: number[];
471
+ }
472
+
473
+ // @public (undocumented)
474
+ export interface BuildClassifier {
475
+ post(options: BuildClassifierParameters): StreamableMethod<BuildClassifier202Response | BuildClassifierDefaultResponse>;
476
+ }
477
+
478
+ // @public (undocumented)
479
+ export interface BuildClassifier202Headers {
480
+ // (undocumented)
481
+ "operation-location": string;
482
+ "retry-after"?: number;
483
+ }
484
+
485
+ // @public
486
+ export interface BuildClassifier202Response extends HttpResponse {
487
+ // (undocumented)
488
+ headers: RawHttpHeaders & BuildClassifier202Headers;
489
+ // (undocumented)
490
+ status: "202";
491
+ }
492
+
493
+ // @public (undocumented)
494
+ export interface BuildClassifierBodyParam {
495
+ body: BuildDocumentClassifierRequest;
496
+ }
497
+
498
+ // @public (undocumented)
499
+ export interface BuildClassifierDefaultResponse extends HttpResponse {
500
+ // (undocumented)
501
+ body: DocumentIntelligenceErrorResponseOutput;
502
+ // (undocumented)
503
+ status: string;
504
+ }
505
+
506
+ // @public
507
+ export interface BuildClassifierLogicalResponse extends HttpResponse {
508
+ // (undocumented)
509
+ status: "200";
510
+ }
511
+
512
+ // @public (undocumented)
513
+ export type BuildClassifierParameters = BuildClassifierBodyParam & RequestParameters;
514
+
515
+ // @public
516
+ export interface BuildDocumentClassifierRequest {
517
+ allowOverwrite?: boolean;
518
+ baseClassifierId?: string;
519
+ classifierId: string;
520
+ description?: string;
521
+ docTypes: Record<string, ClassifierDocumentTypeDetails>;
522
+ }
523
+
524
+ // @public
525
+ export interface BuildDocumentModelRequest {
526
+ allowOverwrite?: boolean;
527
+ azureBlobFileListSource?: AzureBlobFileListContentSource;
528
+ azureBlobSource?: AzureBlobContentSource;
529
+ buildMode: DocumentBuildMode;
530
+ description?: string;
531
+ maxTrainingHours?: number;
532
+ modelId: string;
533
+ tags?: Record<string, string>;
534
+ }
535
+
536
+ // @public (undocumented)
537
+ export interface BuildModel {
538
+ post(options: BuildModelParameters): StreamableMethod<BuildModel202Response | BuildModelDefaultResponse>;
539
+ }
540
+
541
+ // @public (undocumented)
542
+ export interface BuildModel202Headers {
543
+ // (undocumented)
544
+ "operation-location": string;
545
+ "retry-after"?: number;
546
+ }
547
+
548
+ // @public
549
+ export interface BuildModel202Response extends HttpResponse {
550
+ // (undocumented)
551
+ headers: RawHttpHeaders & BuildModel202Headers;
552
+ // (undocumented)
553
+ status: "202";
554
+ }
555
+
556
+ // @public (undocumented)
557
+ export interface BuildModelBodyParam {
558
+ body: BuildDocumentModelRequest;
559
+ }
560
+
561
+ // @public (undocumented)
562
+ export interface BuildModelDefaultResponse extends HttpResponse {
563
+ // (undocumented)
564
+ body: DocumentIntelligenceErrorResponseOutput;
565
+ // (undocumented)
566
+ status: string;
567
+ }
568
+
569
+ // @public
570
+ export interface BuildModelLogicalResponse extends HttpResponse {
571
+ // (undocumented)
572
+ status: "200";
573
+ }
574
+
575
+ // @public (undocumented)
576
+ export type BuildModelParameters = BuildModelBodyParam & RequestParameters;
577
+
578
+ // @public
579
+ export interface ClassifierCopyAuthorization {
580
+ accessToken: string;
581
+ expirationDateTime: Date | string;
582
+ targetClassifierId: string;
583
+ targetClassifierLocation: string;
584
+ targetResourceId: string;
585
+ targetResourceRegion: string;
586
+ }
587
+
588
+ // @public
589
+ export interface ClassifierCopyAuthorizationOutput {
590
+ accessToken: string;
591
+ expirationDateTime: string;
592
+ targetClassifierId: string;
593
+ targetClassifierLocation: string;
594
+ targetResourceId: string;
595
+ targetResourceRegion: string;
596
+ }
597
+
598
+ // @public
599
+ export interface ClassifierDocumentTypeDetails {
600
+ azureBlobFileListSource?: AzureBlobFileListContentSource;
601
+ azureBlobSource?: AzureBlobContentSource;
602
+ sourceKind?: ContentSourceKind;
603
+ }
604
+
605
+ // @public
606
+ export interface ClassifierDocumentTypeDetailsOutput {
607
+ azureBlobFileListSource?: AzureBlobFileListContentSourceOutput;
608
+ azureBlobSource?: AzureBlobContentSourceOutput;
609
+ sourceKind?: ContentSourceKindOutput;
610
+ }
611
+
612
+ // @public (undocumented)
613
+ export interface ClassifyDocument202Headers {
614
+ // (undocumented)
615
+ "operation-location": string;
616
+ "retry-after"?: number;
617
+ }
618
+
619
+ // @public
620
+ export interface ClassifyDocument202Response extends HttpResponse {
621
+ // (undocumented)
622
+ headers: RawHttpHeaders & ClassifyDocument202Headers;
623
+ // (undocumented)
624
+ status: "202";
625
+ }
626
+
627
+ // @public (undocumented)
628
+ export interface ClassifyDocumentBodyParam {
629
+ body: ClassifyDocumentRequest;
630
+ }
631
+
632
+ // @public (undocumented)
633
+ export interface ClassifyDocumentDefaultResponse extends HttpResponse {
634
+ // (undocumented)
635
+ body: DocumentIntelligenceErrorResponseOutput;
636
+ // (undocumented)
637
+ status: string;
638
+ }
639
+
640
+ // @public (undocumented)
641
+ export interface ClassifyDocumentFromStream {
642
+ post(options: ClassifyDocumentFromStreamParameters): StreamableMethod<ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse>;
643
+ post(options: ClassifyDocumentParameters): StreamableMethod<ClassifyDocument202Response | ClassifyDocumentDefaultResponse>;
644
+ }
645
+
646
+ // @public (undocumented)
647
+ export interface ClassifyDocumentFromStream202Headers {
648
+ // (undocumented)
649
+ "operation-location": string;
650
+ "retry-after"?: number;
651
+ }
652
+
653
+ // @public
654
+ export interface ClassifyDocumentFromStream202Response extends HttpResponse {
655
+ // (undocumented)
656
+ headers: RawHttpHeaders & ClassifyDocumentFromStream202Headers;
657
+ // (undocumented)
658
+ status: "202";
659
+ }
660
+
661
+ // @public (undocumented)
662
+ export interface ClassifyDocumentFromStreamBodyParam {
663
+ body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
664
+ }
665
+
666
+ // @public (undocumented)
667
+ export interface ClassifyDocumentFromStreamDefaultResponse extends HttpResponse {
668
+ // (undocumented)
669
+ body: DocumentIntelligenceErrorResponseOutput;
670
+ // (undocumented)
671
+ status: string;
672
+ }
673
+
674
+ // @public
675
+ export interface ClassifyDocumentFromStreamLogicalResponse extends HttpResponse {
676
+ // (undocumented)
677
+ status: "200";
678
+ }
679
+
680
+ // @public (undocumented)
681
+ export interface ClassifyDocumentFromStreamMediaTypesParam {
682
+ 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";
683
+ }
684
+
685
+ // @public (undocumented)
686
+ export type ClassifyDocumentFromStreamParameters = ClassifyDocumentFromStreamQueryParam & ClassifyDocumentFromStreamMediaTypesParam & ClassifyDocumentFromStreamBodyParam & RequestParameters;
687
+
688
+ // @public (undocumented)
689
+ export interface ClassifyDocumentFromStreamQueryParam {
690
+ // (undocumented)
691
+ queryParameters?: ClassifyDocumentFromStreamQueryParamProperties;
692
+ }
693
+
694
+ // @public (undocumented)
695
+ export interface ClassifyDocumentFromStreamQueryParamProperties {
696
+ pages?: string;
697
+ split?: SplitMode;
698
+ stringIndexType?: StringIndexType;
699
+ }
700
+
701
+ // @public
702
+ export interface ClassifyDocumentLogicalResponse extends HttpResponse {
703
+ // (undocumented)
704
+ status: "200";
705
+ }
706
+
707
+ // @public (undocumented)
708
+ export interface ClassifyDocumentMediaTypesParam {
709
+ contentType: "application/json";
710
+ }
711
+
712
+ // @public (undocumented)
713
+ export type ClassifyDocumentParameters = ClassifyDocumentQueryParam & ClassifyDocumentMediaTypesParam & ClassifyDocumentBodyParam & RequestParameters;
714
+
715
+ // @public (undocumented)
716
+ export interface ClassifyDocumentQueryParam {
717
+ // (undocumented)
718
+ queryParameters?: ClassifyDocumentQueryParamProperties;
719
+ }
720
+
721
+ // @public (undocumented)
722
+ export interface ClassifyDocumentQueryParamProperties {
723
+ pages?: string;
724
+ split?: SplitMode;
725
+ stringIndexType?: StringIndexType;
726
+ }
727
+
728
+ // @public
729
+ export interface ClassifyDocumentRequest {
730
+ base64Source?: string;
731
+ urlSource?: string;
732
+ }
733
+
734
+ // @public
735
+ export interface ComposeDocumentModelRequest {
736
+ classifierId: string;
737
+ description?: string;
738
+ docTypes: Record<string, DocumentTypeDetails>;
739
+ modelId: string;
740
+ split?: SplitMode;
741
+ tags?: Record<string, string>;
742
+ }
743
+
744
+ // @public (undocumented)
745
+ export interface ComposeModel {
746
+ post(options: ComposeModelParameters): StreamableMethod<ComposeModel202Response | ComposeModelDefaultResponse>;
747
+ }
748
+
749
+ // @public (undocumented)
750
+ export interface ComposeModel202Headers {
751
+ // (undocumented)
752
+ "operation-location": string;
753
+ "retry-after"?: number;
754
+ }
755
+
756
+ // @public
757
+ export interface ComposeModel202Response extends HttpResponse {
758
+ // (undocumented)
759
+ headers: RawHttpHeaders & ComposeModel202Headers;
760
+ // (undocumented)
761
+ status: "202";
762
+ }
763
+
764
+ // @public (undocumented)
765
+ export interface ComposeModelBodyParam {
766
+ body: ComposeDocumentModelRequest;
767
+ }
768
+
769
+ // @public (undocumented)
770
+ export interface ComposeModelDefaultResponse extends HttpResponse {
771
+ // (undocumented)
772
+ body: DocumentIntelligenceErrorResponseOutput;
773
+ // (undocumented)
774
+ status: string;
775
+ }
776
+
777
+ // @public
778
+ export interface ComposeModelLogicalResponse extends HttpResponse {
779
+ // (undocumented)
780
+ status: "200";
781
+ }
782
+
783
+ // @public (undocumented)
784
+ export type ComposeModelParameters = ComposeModelBodyParam & RequestParameters;
785
+
786
+ // @public
787
+ export type ContentSourceKind = string;
788
+
789
+ // @public
790
+ export type ContentSourceKindOutput = string;
791
+
792
+ // @public (undocumented)
793
+ export interface CopyClassifierTo {
794
+ post(options: CopyClassifierToParameters): StreamableMethod<CopyClassifierTo202Response | CopyClassifierToDefaultResponse>;
795
+ }
796
+
797
+ // @public (undocumented)
798
+ export interface CopyClassifierTo202Headers {
799
+ // (undocumented)
800
+ "operation-location": string;
801
+ "retry-after"?: number;
802
+ }
803
+
804
+ // @public
805
+ export interface CopyClassifierTo202Response extends HttpResponse {
806
+ // (undocumented)
807
+ headers: RawHttpHeaders & CopyClassifierTo202Headers;
808
+ // (undocumented)
809
+ status: "202";
810
+ }
811
+
812
+ // @public (undocumented)
813
+ export interface CopyClassifierToBodyParam {
814
+ body: ClassifierCopyAuthorization;
815
+ }
816
+
817
+ // @public (undocumented)
818
+ export interface CopyClassifierToDefaultResponse extends HttpResponse {
819
+ // (undocumented)
820
+ body: DocumentIntelligenceErrorResponseOutput;
821
+ // (undocumented)
822
+ status: string;
823
+ }
824
+
825
+ // @public
826
+ export interface CopyClassifierToLogicalResponse extends HttpResponse {
827
+ // (undocumented)
828
+ status: "200";
829
+ }
830
+
831
+ // @public (undocumented)
832
+ export type CopyClassifierToParameters = CopyClassifierToBodyParam & RequestParameters;
833
+
834
+ // @public (undocumented)
835
+ export interface CopyModelTo {
836
+ post(options: CopyModelToParameters): StreamableMethod<CopyModelTo202Response | CopyModelToDefaultResponse>;
837
+ }
838
+
839
+ // @public (undocumented)
840
+ export interface CopyModelTo202Headers {
841
+ // (undocumented)
842
+ "operation-location": string;
843
+ "retry-after"?: number;
844
+ }
845
+
846
+ // @public
847
+ export interface CopyModelTo202Response extends HttpResponse {
848
+ // (undocumented)
849
+ headers: RawHttpHeaders & CopyModelTo202Headers;
850
+ // (undocumented)
851
+ status: "202";
852
+ }
853
+
854
+ // @public (undocumented)
855
+ export interface CopyModelToBodyParam {
856
+ body: ModelCopyAuthorization;
857
+ }
858
+
859
+ // @public (undocumented)
860
+ export interface CopyModelToDefaultResponse extends HttpResponse {
861
+ // (undocumented)
862
+ body: DocumentIntelligenceErrorResponseOutput;
863
+ // (undocumented)
864
+ status: string;
865
+ }
866
+
867
+ // @public
868
+ export interface CopyModelToLogicalResponse extends HttpResponse {
869
+ // (undocumented)
870
+ status: "200";
871
+ }
872
+
873
+ // @public (undocumented)
874
+ export type CopyModelToParameters = CopyModelToBodyParam & RequestParameters;
875
+
876
+ // @public
877
+ function createClient(endpointParam: string, credentials: TokenCredential | KeyCredential, { apiVersion, ...options }?: DocumentIntelligenceClientOptions): DocumentIntelligenceClient;
878
+ export default createClient;
879
+
880
+ // @public
881
+ export interface CurrencyValueOutput {
882
+ amount: number;
883
+ currencyCode?: string;
884
+ currencySymbol?: string;
885
+ }
886
+
887
+ // @public
888
+ export interface CustomDocumentModelsDetailsOutput {
889
+ count: number;
890
+ limit: number;
891
+ }
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
+
927
+ // @public (undocumented)
928
+ export interface DeleteClassifier204Headers {
929
+ "x-ms-client-request-id"?: string;
930
+ }
931
+
932
+ // @public
933
+ export interface DeleteClassifier204Response extends HttpResponse {
934
+ // (undocumented)
935
+ headers: RawHttpHeaders & DeleteClassifier204Headers;
936
+ // (undocumented)
937
+ status: "204";
938
+ }
939
+
940
+ // @public (undocumented)
941
+ export interface DeleteClassifierDefaultResponse extends HttpResponse {
942
+ // (undocumented)
943
+ body: DocumentIntelligenceErrorResponseOutput;
944
+ // (undocumented)
945
+ status: string;
946
+ }
947
+
948
+ // @public (undocumented)
949
+ export interface DeleteClassifierHeaderParam {
950
+ // (undocumented)
951
+ headers?: RawHttpHeadersInput & DeleteClassifierHeaders;
952
+ }
953
+
954
+ // @public (undocumented)
955
+ export interface DeleteClassifierHeaders {
956
+ "x-ms-client-request-id"?: string;
957
+ }
958
+
959
+ // @public (undocumented)
960
+ export type DeleteClassifierParameters = DeleteClassifierHeaderParam & RequestParameters;
961
+
962
+ // @public (undocumented)
963
+ export interface DeleteModel204Headers {
964
+ "x-ms-client-request-id"?: string;
965
+ }
966
+
967
+ // @public
968
+ export interface DeleteModel204Response extends HttpResponse {
969
+ // (undocumented)
970
+ headers: RawHttpHeaders & DeleteModel204Headers;
971
+ // (undocumented)
972
+ status: "204";
973
+ }
974
+
975
+ // @public (undocumented)
976
+ export interface DeleteModelDefaultResponse extends HttpResponse {
977
+ // (undocumented)
978
+ body: DocumentIntelligenceErrorResponseOutput;
979
+ // (undocumented)
980
+ status: string;
981
+ }
982
+
983
+ // @public (undocumented)
984
+ export interface DeleteModelHeaderParam {
985
+ // (undocumented)
986
+ headers?: RawHttpHeadersInput & DeleteModelHeaders;
987
+ }
988
+
989
+ // @public (undocumented)
990
+ export interface DeleteModelHeaders {
991
+ "x-ms-client-request-id"?: string;
992
+ }
993
+
994
+ // @public (undocumented)
995
+ export type DeleteModelParameters = DeleteModelHeaderParam & RequestParameters;
996
+
997
+ // @public
998
+ export type DocumentAnalysisFeature = string;
999
+
1000
+ // @public
1001
+ export type DocumentAnalysisFeatureOutput = string;
1002
+
1003
+ // @public
1004
+ export type DocumentBarcodeKindOutput = string;
1005
+
1006
+ // @public
1007
+ export interface DocumentBarcodeOutput {
1008
+ confidence: number;
1009
+ kind: DocumentBarcodeKindOutput;
1010
+ polygon?: number[];
1011
+ span: DocumentSpanOutput;
1012
+ value: string;
1013
+ }
1014
+
1015
+ // @public
1016
+ export type DocumentBuildMode = string;
1017
+
1018
+ // @public
1019
+ export type DocumentBuildModeOutput = string;
1020
+
1021
+ // @public
1022
+ export interface DocumentCaptionOutput {
1023
+ boundingRegions?: Array<BoundingRegionOutput>;
1024
+ content: string;
1025
+ elements?: string[];
1026
+ spans: Array<DocumentSpanOutput>;
1027
+ }
1028
+
1029
+ // @public
1030
+ export interface DocumentClassifierBuildOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1031
+ kind: "documentClassifierBuild";
1032
+ result?: DocumentClassifierDetailsOutput;
1033
+ }
1034
+
1035
+ // @public
1036
+ export interface DocumentClassifierCopyToOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1037
+ kind: "documentClassifierCopyTo";
1038
+ result?: DocumentClassifierDetailsOutput;
1039
+ }
1040
+
1041
+ // @public
1042
+ export interface DocumentClassifierDetailsOutput {
1043
+ apiVersion: string;
1044
+ baseClassifierId?: string;
1045
+ classifierId: string;
1046
+ createdDateTime: string;
1047
+ description?: string;
1048
+ docTypes: Record<string, ClassifierDocumentTypeDetailsOutput>;
1049
+ expirationDateTime?: string;
1050
+ readonly modifiedDateTime?: string;
1051
+ warnings?: Array<DocumentIntelligenceWarningOutput>;
1052
+ }
1053
+
1054
+ // @public
1055
+ export type DocumentContentFormat = string;
1056
+
1057
+ // @public
1058
+ export type DocumentContentFormatOutput = string;
1059
+
1060
+ // @public
1061
+ export interface DocumentFieldOutput {
1062
+ boundingRegions?: Array<BoundingRegionOutput>;
1063
+ confidence?: number;
1064
+ content?: string;
1065
+ spans?: Array<DocumentSpanOutput>;
1066
+ type: DocumentFieldTypeOutput;
1067
+ valueAddress?: AddressValueOutput;
1068
+ valueArray?: Array<DocumentFieldOutput>;
1069
+ valueBoolean?: boolean;
1070
+ valueCountryRegion?: string;
1071
+ valueCurrency?: CurrencyValueOutput;
1072
+ valueDate?: string;
1073
+ valueInteger?: number;
1074
+ valueNumber?: number;
1075
+ valueObject?: Record<string, DocumentFieldOutput>;
1076
+ valuePhoneNumber?: string;
1077
+ valueSelectionGroup?: string[];
1078
+ valueSelectionMark?: DocumentSelectionMarkStateOutput;
1079
+ valueSignature?: DocumentSignatureTypeOutput;
1080
+ valueString?: string;
1081
+ valueTime?: string;
1082
+ }
1083
+
1084
+ // @public
1085
+ export interface DocumentFieldSchema {
1086
+ description?: string;
1087
+ example?: string;
1088
+ items?: DocumentFieldSchema;
1089
+ properties?: Record<string, DocumentFieldSchema>;
1090
+ type: DocumentFieldType;
1091
+ }
1092
+
1093
+ // @public
1094
+ export interface DocumentFieldSchemaOutput {
1095
+ description?: string;
1096
+ example?: string;
1097
+ items?: DocumentFieldSchemaOutput;
1098
+ properties?: Record<string, DocumentFieldSchemaOutput>;
1099
+ type: DocumentFieldTypeOutput;
1100
+ }
1101
+
1102
+ // @public
1103
+ export type DocumentFieldType = string;
1104
+
1105
+ // @public
1106
+ export type DocumentFieldTypeOutput = string;
1107
+
1108
+ // @public
1109
+ export interface DocumentFigureOutput {
1110
+ boundingRegions?: Array<BoundingRegionOutput>;
1111
+ caption?: DocumentCaptionOutput;
1112
+ elements?: string[];
1113
+ footnotes?: Array<DocumentFootnoteOutput>;
1114
+ id?: string;
1115
+ spans: Array<DocumentSpanOutput>;
1116
+ }
1117
+
1118
+ // @public
1119
+ export type DocumentFontStyleOutput = string;
1120
+
1121
+ // @public
1122
+ export type DocumentFontWeightOutput = string;
1123
+
1124
+ // @public
1125
+ export interface DocumentFootnoteOutput {
1126
+ boundingRegions?: Array<BoundingRegionOutput>;
1127
+ content: string;
1128
+ elements?: string[];
1129
+ spans: Array<DocumentSpanOutput>;
1130
+ }
1131
+
1132
+ // @public
1133
+ export type DocumentFormulaKindOutput = string;
1134
+
1135
+ // @public
1136
+ export interface DocumentFormulaOutput {
1137
+ confidence: number;
1138
+ kind: DocumentFormulaKindOutput;
1139
+ polygon?: number[];
1140
+ span: DocumentSpanOutput;
1141
+ value: string;
1142
+ }
1143
+
1144
+ // @public (undocumented)
1145
+ export type DocumentIntelligenceClient = Client & {
1146
+ path: Routes;
1147
+ };
1148
+
1149
+ // @public
1150
+ export interface DocumentIntelligenceClientOptions extends ClientOptions {
1151
+ apiVersion?: string;
1152
+ }
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
+
1208
+ // @public
1209
+ export interface DocumentKeyValueElementOutput {
1210
+ boundingRegions?: Array<BoundingRegionOutput>;
1211
+ content: string;
1212
+ spans: Array<DocumentSpanOutput>;
1213
+ }
1214
+
1215
+ // @public
1216
+ export interface DocumentKeyValuePairOutput {
1217
+ confidence: number;
1218
+ key: DocumentKeyValueElementOutput;
1219
+ value?: DocumentKeyValueElementOutput;
1220
+ }
1221
+
1222
+ // @public
1223
+ export interface DocumentLanguageOutput {
1224
+ confidence: number;
1225
+ locale: string;
1226
+ spans: Array<DocumentSpanOutput>;
1227
+ }
1228
+
1229
+ // @public
1230
+ export interface DocumentLineOutput {
1231
+ content: string;
1232
+ polygon?: number[];
1233
+ spans: Array<DocumentSpanOutput>;
1234
+ }
1235
+
1236
+ // @public
1237
+ export interface DocumentModelBuildOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1238
+ kind: "documentModelBuild";
1239
+ result?: DocumentModelDetailsOutput;
1240
+ }
1241
+
1242
+ // @public
1243
+ export interface DocumentModelComposeOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1244
+ kind: "documentModelCompose";
1245
+ result?: DocumentModelDetailsOutput;
1246
+ }
1247
+
1248
+ // @public
1249
+ export interface DocumentModelCopyToOperationDetailsOutput extends DocumentIntelligenceOperationDetailsOutputParent {
1250
+ kind: "documentModelCopyTo";
1251
+ result?: DocumentModelDetailsOutput;
1252
+ }
1253
+
1254
+ // @public
1255
+ export interface DocumentModelDetailsOutput {
1256
+ readonly apiVersion?: string;
1257
+ readonly azureBlobFileListSource?: AzureBlobFileListContentSourceOutput;
1258
+ readonly azureBlobSource?: AzureBlobContentSourceOutput;
1259
+ readonly buildMode?: DocumentBuildModeOutput;
1260
+ classifierId?: string;
1261
+ readonly createdDateTime: string;
1262
+ description?: string;
1263
+ readonly docTypes?: Record<string, DocumentTypeDetailsOutput>;
1264
+ readonly expirationDateTime?: string;
1265
+ modelId: string;
1266
+ readonly modifiedDateTime?: string;
1267
+ split?: SplitModeOutput;
1268
+ tags?: Record<string, string>;
1269
+ readonly trainingHours?: number;
1270
+ readonly warnings?: Array<DocumentIntelligenceWarningOutput>;
1271
+ }
1272
+
1273
+ // @public
1274
+ export interface DocumentPageOutput {
1275
+ angle?: number;
1276
+ barcodes?: Array<DocumentBarcodeOutput>;
1277
+ formulas?: Array<DocumentFormulaOutput>;
1278
+ height?: number;
1279
+ lines?: Array<DocumentLineOutput>;
1280
+ pageNumber: number;
1281
+ selectionMarks?: Array<DocumentSelectionMarkOutput>;
1282
+ spans: Array<DocumentSpanOutput>;
1283
+ unit?: LengthUnitOutput;
1284
+ width?: number;
1285
+ words?: Array<DocumentWordOutput>;
1286
+ }
1287
+
1288
+ // @public
1289
+ export interface DocumentParagraphOutput {
1290
+ boundingRegions?: Array<BoundingRegionOutput>;
1291
+ content: string;
1292
+ role?: ParagraphRoleOutput;
1293
+ spans: Array<DocumentSpanOutput>;
1294
+ }
1295
+
1296
+ // @public
1297
+ export interface DocumentSectionOutput {
1298
+ elements?: string[];
1299
+ spans: Array<DocumentSpanOutput>;
1300
+ }
1301
+
1302
+ // @public
1303
+ export interface DocumentSelectionMarkOutput {
1304
+ confidence: number;
1305
+ polygon?: number[];
1306
+ span: DocumentSpanOutput;
1307
+ state: DocumentSelectionMarkStateOutput;
1308
+ }
1309
+
1310
+ // @public
1311
+ export type DocumentSelectionMarkStateOutput = string;
1312
+
1313
+ // @public
1314
+ export type DocumentSignatureTypeOutput = string;
1315
+
1316
+ // @public
1317
+ export interface DocumentSpanOutput {
1318
+ length: number;
1319
+ offset: number;
1320
+ }
1321
+
1322
+ // @public
1323
+ export interface DocumentStyleOutput {
1324
+ backgroundColor?: string;
1325
+ color?: string;
1326
+ confidence: number;
1327
+ fontStyle?: DocumentFontStyleOutput;
1328
+ fontWeight?: DocumentFontWeightOutput;
1329
+ isHandwritten?: boolean;
1330
+ similarFontFamily?: string;
1331
+ spans: Array<DocumentSpanOutput>;
1332
+ }
1333
+
1334
+ // @public
1335
+ export type DocumentTableCellKindOutput = string;
1336
+
1337
+ // @public
1338
+ export interface DocumentTableCellOutput {
1339
+ boundingRegions?: Array<BoundingRegionOutput>;
1340
+ columnIndex: number;
1341
+ columnSpan?: number;
1342
+ content: string;
1343
+ elements?: string[];
1344
+ kind?: DocumentTableCellKindOutput;
1345
+ rowIndex: number;
1346
+ rowSpan?: number;
1347
+ spans: Array<DocumentSpanOutput>;
1348
+ }
1349
+
1350
+ // @public
1351
+ export interface DocumentTableOutput {
1352
+ boundingRegions?: Array<BoundingRegionOutput>;
1353
+ caption?: DocumentCaptionOutput;
1354
+ cells: Array<DocumentTableCellOutput>;
1355
+ columnCount: number;
1356
+ footnotes?: Array<DocumentFootnoteOutput>;
1357
+ rowCount: number;
1358
+ spans: Array<DocumentSpanOutput>;
1359
+ }
1360
+
1361
+ // @public
1362
+ export interface DocumentTypeDetails {
1363
+ buildMode?: DocumentBuildMode;
1364
+ confidenceThreshold?: number;
1365
+ description?: string;
1366
+ features?: DocumentAnalysisFeature[];
1367
+ fieldConfidence?: Record<string, number>;
1368
+ fieldSchema?: Record<string, DocumentFieldSchema>;
1369
+ maxDocumentsToAnalyze?: number;
1370
+ modelId?: string;
1371
+ queryFields?: string[];
1372
+ }
1373
+
1374
+ // @public
1375
+ export interface DocumentTypeDetailsOutput {
1376
+ buildMode?: DocumentBuildModeOutput;
1377
+ confidenceThreshold?: number;
1378
+ description?: string;
1379
+ features?: DocumentAnalysisFeatureOutput[];
1380
+ fieldConfidence?: Record<string, number>;
1381
+ fieldSchema?: Record<string, DocumentFieldSchemaOutput>;
1382
+ maxDocumentsToAnalyze?: number;
1383
+ modelId?: string;
1384
+ queryFields?: string[];
1385
+ }
1386
+
1387
+ // @public
1388
+ export interface DocumentWordOutput {
1389
+ confidence: number;
1390
+ content: string;
1391
+ polygon?: number[];
1392
+ span: DocumentSpanOutput;
1393
+ }
1394
+
1395
+ // @public (undocumented)
1396
+ export interface GetAnalyzeBatchResult {
1397
+ delete(options?: DeleteAnalyzeBatchResultParameters): StreamableMethod<DeleteAnalyzeBatchResult204Response | DeleteAnalyzeBatchResultDefaultResponse>;
1398
+ get(options?: GetAnalyzeBatchResultParameters): StreamableMethod<GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse>;
1399
+ }
1400
+
1401
+ // @public
1402
+ export interface GetAnalyzeBatchResult200Response extends HttpResponse {
1403
+ // (undocumented)
1404
+ body: AnalyzeBatchOperationOutput;
1405
+ // (undocumented)
1406
+ status: "200";
1407
+ }
1408
+
1409
+ // @public (undocumented)
1410
+ export interface GetAnalyzeBatchResultDefaultResponse extends HttpResponse {
1411
+ // (undocumented)
1412
+ body: DocumentIntelligenceErrorResponseOutput;
1413
+ // (undocumented)
1414
+ status: string;
1415
+ }
1416
+
1417
+ // @public (undocumented)
1418
+ export type GetAnalyzeBatchResultParameters = RequestParameters;
1419
+
1420
+ // @public (undocumented)
1421
+ export interface GetAnalyzeResult {
1422
+ delete(options?: DeleteAnalyzeResultParameters): StreamableMethod<DeleteAnalyzeResult204Response | DeleteAnalyzeResultDefaultResponse>;
1423
+ get(options?: GetAnalyzeResultParameters): StreamableMethod<GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse>;
1424
+ }
1425
+
1426
+ // @public
1427
+ export interface GetAnalyzeResult200Response extends HttpResponse {
1428
+ // (undocumented)
1429
+ body: AnalyzeOperationOutput;
1430
+ // (undocumented)
1431
+ status: "200";
1432
+ }
1433
+
1434
+ // @public (undocumented)
1435
+ export interface GetAnalyzeResultDefaultResponse extends HttpResponse {
1436
+ // (undocumented)
1437
+ body: DocumentIntelligenceErrorResponseOutput;
1438
+ // (undocumented)
1439
+ status: string;
1440
+ }
1441
+
1442
+ // @public (undocumented)
1443
+ export interface GetAnalyzeResultFigure {
1444
+ get(options?: GetAnalyzeResultFigureParameters): StreamableMethod<GetAnalyzeResultFigure200Response | GetAnalyzeResultFigureDefaultResponse>;
1445
+ }
1446
+
1447
+ // @public (undocumented)
1448
+ export interface GetAnalyzeResultFigure200Headers {
1449
+ "content-type": "image/png";
1450
+ }
1451
+
1452
+ // @public
1453
+ export interface GetAnalyzeResultFigure200Response extends HttpResponse {
1454
+ body: Uint8Array;
1455
+ // (undocumented)
1456
+ headers: RawHttpHeaders & GetAnalyzeResultFigure200Headers;
1457
+ // (undocumented)
1458
+ status: "200";
1459
+ }
1460
+
1461
+ // @public (undocumented)
1462
+ export interface GetAnalyzeResultFigureDefaultResponse extends HttpResponse {
1463
+ // (undocumented)
1464
+ body: DocumentIntelligenceErrorResponseOutput;
1465
+ // (undocumented)
1466
+ status: string;
1467
+ }
1468
+
1469
+ // @public (undocumented)
1470
+ export type GetAnalyzeResultFigureParameters = RequestParameters;
1471
+
1472
+ // @public (undocumented)
1473
+ export type GetAnalyzeResultParameters = RequestParameters;
1474
+
1475
+ // @public (undocumented)
1476
+ export interface GetAnalyzeResultPdf {
1477
+ get(options?: GetAnalyzeResultPdfParameters): StreamableMethod<GetAnalyzeResultPdf200Response | GetAnalyzeResultPdfDefaultResponse>;
1478
+ }
1479
+
1480
+ // @public (undocumented)
1481
+ export interface GetAnalyzeResultPdf200Headers {
1482
+ "content-type": "application/pdf";
1483
+ }
1484
+
1485
+ // @public
1486
+ export interface GetAnalyzeResultPdf200Response extends HttpResponse {
1487
+ body: Uint8Array;
1488
+ // (undocumented)
1489
+ headers: RawHttpHeaders & GetAnalyzeResultPdf200Headers;
1490
+ // (undocumented)
1491
+ status: "200";
1492
+ }
1493
+
1494
+ // @public (undocumented)
1495
+ export interface GetAnalyzeResultPdfDefaultResponse extends HttpResponse {
1496
+ // (undocumented)
1497
+ body: DocumentIntelligenceErrorResponseOutput;
1498
+ // (undocumented)
1499
+ status: string;
1500
+ }
1501
+
1502
+ // @public (undocumented)
1503
+ export type GetAnalyzeResultPdfParameters = RequestParameters;
1504
+
1505
+ // @public
1506
+ export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
1507
+
1508
+ // @public (undocumented)
1509
+ export interface GetClassifier {
1510
+ delete(options?: DeleteClassifierParameters): StreamableMethod<DeleteClassifier204Response | DeleteClassifierDefaultResponse>;
1511
+ get(options?: GetClassifierParameters): StreamableMethod<GetClassifier200Response | GetClassifierDefaultResponse>;
1512
+ }
1513
+
1514
+ // @public (undocumented)
1515
+ export interface GetClassifier200Headers {
1516
+ "x-ms-client-request-id"?: string;
1517
+ }
1518
+
1519
+ // @public
1520
+ export interface GetClassifier200Response extends HttpResponse {
1521
+ // (undocumented)
1522
+ body: DocumentClassifierDetailsOutput;
1523
+ // (undocumented)
1524
+ headers: RawHttpHeaders & GetClassifier200Headers;
1525
+ // (undocumented)
1526
+ status: "200";
1527
+ }
1528
+
1529
+ // @public (undocumented)
1530
+ export interface GetClassifierDefaultResponse extends HttpResponse {
1531
+ // (undocumented)
1532
+ body: DocumentIntelligenceErrorResponseOutput;
1533
+ // (undocumented)
1534
+ status: string;
1535
+ }
1536
+
1537
+ // @public (undocumented)
1538
+ export interface GetClassifierHeaderParam {
1539
+ // (undocumented)
1540
+ headers?: RawHttpHeadersInput & GetClassifierHeaders;
1541
+ }
1542
+
1543
+ // @public (undocumented)
1544
+ export interface GetClassifierHeaders {
1545
+ "x-ms-client-request-id"?: string;
1546
+ }
1547
+
1548
+ // @public (undocumented)
1549
+ export type GetClassifierParameters = GetClassifierHeaderParam & RequestParameters;
1550
+
1551
+ // @public (undocumented)
1552
+ export interface GetClassifyResult {
1553
+ get(options?: GetClassifyResultParameters): StreamableMethod<GetClassifyResult200Response | GetClassifyResultDefaultResponse>;
1554
+ }
1555
+
1556
+ // @public
1557
+ export interface GetClassifyResult200Response extends HttpResponse {
1558
+ // (undocumented)
1559
+ body: AnalyzeOperationOutput;
1560
+ // (undocumented)
1561
+ status: "200";
1562
+ }
1563
+
1564
+ // @public (undocumented)
1565
+ export interface GetClassifyResultDefaultResponse extends HttpResponse {
1566
+ // (undocumented)
1567
+ body: DocumentIntelligenceErrorResponseOutput;
1568
+ // (undocumented)
1569
+ status: string;
1570
+ }
1571
+
1572
+ // @public (undocumented)
1573
+ export type GetClassifyResultParameters = RequestParameters;
1574
+
1575
+ // @public (undocumented)
1576
+ export interface GetDocumentClassifierBuildOperation200Headers {
1577
+ "x-ms-client-request-id"?: string;
1578
+ }
1579
+
1580
+ // @public
1581
+ export interface GetDocumentClassifierBuildOperation200Response extends HttpResponse {
1582
+ // (undocumented)
1583
+ body: DocumentClassifierBuildOperationDetailsOutput;
1584
+ // (undocumented)
1585
+ headers: RawHttpHeaders & GetDocumentClassifierBuildOperation200Headers;
1586
+ // (undocumented)
1587
+ status: "200";
1588
+ }
1589
+
1590
+ // @public (undocumented)
1591
+ export interface GetDocumentClassifierBuildOperationDefaultResponse extends HttpResponse {
1592
+ // (undocumented)
1593
+ body: DocumentIntelligenceErrorResponseOutput;
1594
+ // (undocumented)
1595
+ status: string;
1596
+ }
1597
+
1598
+ // @public (undocumented)
1599
+ export interface GetDocumentClassifierBuildOperationHeaderParam {
1600
+ // (undocumented)
1601
+ headers?: RawHttpHeadersInput & GetDocumentClassifierBuildOperationHeaders;
1602
+ }
1603
+
1604
+ // @public (undocumented)
1605
+ export interface GetDocumentClassifierBuildOperationHeaders {
1606
+ "x-ms-client-request-id"?: string;
1607
+ }
1608
+
1609
+ // @public (undocumented)
1610
+ export type GetDocumentClassifierBuildOperationParameters = GetDocumentClassifierBuildOperationHeaderParam & RequestParameters;
1611
+
1612
+ // @public (undocumented)
1613
+ export interface GetDocumentClassifierCopyToOperation200Headers {
1614
+ "x-ms-client-request-id"?: string;
1615
+ }
1616
+
1617
+ // @public
1618
+ export interface GetDocumentClassifierCopyToOperation200Response extends HttpResponse {
1619
+ // (undocumented)
1620
+ body: DocumentClassifierCopyToOperationDetailsOutput;
1621
+ // (undocumented)
1622
+ headers: RawHttpHeaders & GetDocumentClassifierCopyToOperation200Headers;
1623
+ // (undocumented)
1624
+ status: "200";
1625
+ }
1626
+
1627
+ // @public (undocumented)
1628
+ export interface GetDocumentClassifierCopyToOperationDefaultResponse extends HttpResponse {
1629
+ // (undocumented)
1630
+ body: DocumentIntelligenceErrorResponseOutput;
1631
+ // (undocumented)
1632
+ status: string;
1633
+ }
1634
+
1635
+ // @public (undocumented)
1636
+ export interface GetDocumentClassifierCopyToOperationHeaderParam {
1637
+ // (undocumented)
1638
+ headers?: RawHttpHeadersInput & GetDocumentClassifierCopyToOperationHeaders;
1639
+ }
1640
+
1641
+ // @public (undocumented)
1642
+ export interface GetDocumentClassifierCopyToOperationHeaders {
1643
+ "x-ms-client-request-id"?: string;
1644
+ }
1645
+
1646
+ // @public (undocumented)
1647
+ export type GetDocumentClassifierCopyToOperationParameters = GetDocumentClassifierCopyToOperationHeaderParam & RequestParameters;
1648
+
1649
+ // @public (undocumented)
1650
+ export interface GetDocumentModelBuildOperation {
1651
+ get(options?: GetDocumentModelBuildOperationParameters): StreamableMethod<GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse>;
1652
+ get(options?: GetDocumentModelComposeOperationParameters): StreamableMethod<GetDocumentModelComposeOperation200Response | GetDocumentModelComposeOperationDefaultResponse>;
1653
+ get(options?: GetDocumentModelCopyToOperationParameters): StreamableMethod<GetDocumentModelCopyToOperation200Response | GetDocumentModelCopyToOperationDefaultResponse>;
1654
+ get(options?: GetDocumentClassifierCopyToOperationParameters): StreamableMethod<GetDocumentClassifierCopyToOperation200Response | GetDocumentClassifierCopyToOperationDefaultResponse>;
1655
+ get(options?: GetDocumentClassifierBuildOperationParameters): StreamableMethod<GetDocumentClassifierBuildOperation200Response | GetDocumentClassifierBuildOperationDefaultResponse>;
1656
+ get(options?: GetOperationParameters): StreamableMethod<GetOperation200Response | GetOperationDefaultResponse>;
1657
+ }
1658
+
1659
+ // @public (undocumented)
1660
+ export interface GetDocumentModelBuildOperation200Headers {
1661
+ "x-ms-client-request-id"?: string;
1662
+ }
1663
+
1664
+ // @public
1665
+ export interface GetDocumentModelBuildOperation200Response extends HttpResponse {
1666
+ // (undocumented)
1667
+ body: DocumentModelBuildOperationDetailsOutput;
1668
+ // (undocumented)
1669
+ headers: RawHttpHeaders & GetDocumentModelBuildOperation200Headers;
1670
+ // (undocumented)
1671
+ status: "200";
1672
+ }
1673
+
1674
+ // @public (undocumented)
1675
+ export interface GetDocumentModelBuildOperationDefaultResponse extends HttpResponse {
1676
+ // (undocumented)
1677
+ body: DocumentIntelligenceErrorResponseOutput;
1678
+ // (undocumented)
1679
+ status: string;
1680
+ }
1681
+
1682
+ // @public (undocumented)
1683
+ export interface GetDocumentModelBuildOperationHeaderParam {
1684
+ // (undocumented)
1685
+ headers?: RawHttpHeadersInput & GetDocumentModelBuildOperationHeaders;
1686
+ }
1687
+
1688
+ // @public (undocumented)
1689
+ export interface GetDocumentModelBuildOperationHeaders {
1690
+ "x-ms-client-request-id"?: string;
1691
+ }
1692
+
1693
+ // @public (undocumented)
1694
+ export type GetDocumentModelBuildOperationParameters = GetDocumentModelBuildOperationHeaderParam & RequestParameters;
1695
+
1696
+ // @public (undocumented)
1697
+ export interface GetDocumentModelComposeOperation200Headers {
1698
+ "x-ms-client-request-id"?: string;
1699
+ }
1700
+
1701
+ // @public
1702
+ export interface GetDocumentModelComposeOperation200Response extends HttpResponse {
1703
+ // (undocumented)
1704
+ body: DocumentModelComposeOperationDetailsOutput;
1705
+ // (undocumented)
1706
+ headers: RawHttpHeaders & GetDocumentModelComposeOperation200Headers;
1707
+ // (undocumented)
1708
+ status: "200";
1709
+ }
1710
+
1711
+ // @public (undocumented)
1712
+ export interface GetDocumentModelComposeOperationDefaultResponse extends HttpResponse {
1713
+ // (undocumented)
1714
+ body: DocumentIntelligenceErrorResponseOutput;
1715
+ // (undocumented)
1716
+ status: string;
1717
+ }
1718
+
1719
+ // @public (undocumented)
1720
+ export interface GetDocumentModelComposeOperationHeaderParam {
1721
+ // (undocumented)
1722
+ headers?: RawHttpHeadersInput & GetDocumentModelComposeOperationHeaders;
1723
+ }
1724
+
1725
+ // @public (undocumented)
1726
+ export interface GetDocumentModelComposeOperationHeaders {
1727
+ "x-ms-client-request-id"?: string;
1728
+ }
1729
+
1730
+ // @public (undocumented)
1731
+ export type GetDocumentModelComposeOperationParameters = GetDocumentModelComposeOperationHeaderParam & RequestParameters;
1732
+
1733
+ // @public (undocumented)
1734
+ export interface GetDocumentModelCopyToOperation200Headers {
1735
+ "x-ms-client-request-id"?: string;
1736
+ }
1737
+
1738
+ // @public
1739
+ export interface GetDocumentModelCopyToOperation200Response extends HttpResponse {
1740
+ // (undocumented)
1741
+ body: DocumentModelCopyToOperationDetailsOutput;
1742
+ // (undocumented)
1743
+ headers: RawHttpHeaders & GetDocumentModelCopyToOperation200Headers;
1744
+ // (undocumented)
1745
+ status: "200";
1746
+ }
1747
+
1748
+ // @public (undocumented)
1749
+ export interface GetDocumentModelCopyToOperationDefaultResponse extends HttpResponse {
1750
+ // (undocumented)
1751
+ body: DocumentIntelligenceErrorResponseOutput;
1752
+ // (undocumented)
1753
+ status: string;
1754
+ }
1755
+
1756
+ // @public (undocumented)
1757
+ export interface GetDocumentModelCopyToOperationHeaderParam {
1758
+ // (undocumented)
1759
+ headers?: RawHttpHeadersInput & GetDocumentModelCopyToOperationHeaders;
1760
+ }
1761
+
1762
+ // @public (undocumented)
1763
+ export interface GetDocumentModelCopyToOperationHeaders {
1764
+ "x-ms-client-request-id"?: string;
1765
+ }
1766
+
1767
+ // @public (undocumented)
1768
+ export type GetDocumentModelCopyToOperationParameters = GetDocumentModelCopyToOperationHeaderParam & RequestParameters;
1769
+
1770
+ // @public
1771
+ export function getLongRunningPoller<TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse>(client: Client, initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1772
+
1773
+ // @public (undocumented)
1774
+ export function getLongRunningPoller<TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse>(client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1775
+
1776
+ // @public (undocumented)
1777
+ export function getLongRunningPoller<TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse>(client: Client, initialResponse: ComposeModel202Response | ComposeModelDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1778
+
1779
+ // @public (undocumented)
1780
+ export function getLongRunningPoller<TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse>(client: Client, initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1781
+
1782
+ // @public (undocumented)
1783
+ export function getLongRunningPoller<TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse>(client: Client, initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1784
+
1785
+ // @public (undocumented)
1786
+ export function getLongRunningPoller<TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse>(client: Client, initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1787
+
1788
+ // @public (undocumented)
1789
+ export function getLongRunningPoller<TResult extends AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse>(client: Client, initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
1790
+
1791
+ // @public (undocumented)
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
+ }
1799
+
1800
+ // @public (undocumented)
1801
+ export interface GetModel {
1802
+ delete(options?: DeleteModelParameters): StreamableMethod<DeleteModel204Response | DeleteModelDefaultResponse>;
1803
+ get(options?: GetModelParameters): StreamableMethod<GetModel200Response | GetModelDefaultResponse>;
1804
+ }
1805
+
1806
+ // @public (undocumented)
1807
+ export interface GetModel200Headers {
1808
+ "x-ms-client-request-id"?: string;
1809
+ }
1810
+
1811
+ // @public
1812
+ export interface GetModel200Response extends HttpResponse {
1813
+ // (undocumented)
1814
+ body: DocumentModelDetailsOutput;
1815
+ // (undocumented)
1816
+ headers: RawHttpHeaders & GetModel200Headers;
1817
+ // (undocumented)
1818
+ status: "200";
1819
+ }
1820
+
1821
+ // @public (undocumented)
1822
+ export interface GetModelDefaultResponse extends HttpResponse {
1823
+ // (undocumented)
1824
+ body: DocumentIntelligenceErrorResponseOutput;
1825
+ // (undocumented)
1826
+ status: string;
1827
+ }
1828
+
1829
+ // @public (undocumented)
1830
+ export interface GetModelHeaderParam {
1831
+ // (undocumented)
1832
+ headers?: RawHttpHeadersInput & GetModelHeaders;
1833
+ }
1834
+
1835
+ // @public (undocumented)
1836
+ export interface GetModelHeaders {
1837
+ "x-ms-client-request-id"?: string;
1838
+ }
1839
+
1840
+ // @public (undocumented)
1841
+ export type GetModelParameters = GetModelHeaderParam & RequestParameters;
1842
+
1843
+ // @public (undocumented)
1844
+ export interface GetOperation200Headers {
1845
+ "x-ms-client-request-id"?: string;
1846
+ }
1847
+
1848
+ // @public
1849
+ export interface GetOperation200Response extends HttpResponse {
1850
+ // (undocumented)
1851
+ body: DocumentIntelligenceOperationDetailsOutput;
1852
+ // (undocumented)
1853
+ headers: RawHttpHeaders & GetOperation200Headers;
1854
+ // (undocumented)
1855
+ status: "200";
1856
+ }
1857
+
1858
+ // @public (undocumented)
1859
+ export interface GetOperationDefaultResponse extends HttpResponse {
1860
+ // (undocumented)
1861
+ body: DocumentIntelligenceErrorResponseOutput;
1862
+ // (undocumented)
1863
+ status: string;
1864
+ }
1865
+
1866
+ // @public (undocumented)
1867
+ export interface GetOperationHeaderParam {
1868
+ // (undocumented)
1869
+ headers?: RawHttpHeadersInput & GetOperationHeaders;
1870
+ }
1871
+
1872
+ // @public (undocumented)
1873
+ export interface GetOperationHeaders {
1874
+ "x-ms-client-request-id"?: string;
1875
+ }
1876
+
1877
+ // @public (undocumented)
1878
+ export type GetOperationParameters = GetOperationHeaderParam & RequestParameters;
1879
+
1880
+ // @public
1881
+ export type GetPage<TPage> = (pageLink: string) => Promise<{
1882
+ page: TPage;
1883
+ nextPageLink?: string;
1884
+ }>;
1885
+
1886
+ // @public (undocumented)
1887
+ export interface GetResourceDetails {
1888
+ get(options?: GetResourceDetailsParameters): StreamableMethod<GetResourceDetails200Response | GetResourceDetailsDefaultResponse>;
1889
+ }
1890
+
1891
+ // @public
1892
+ export interface GetResourceDetails200Response extends HttpResponse {
1893
+ // (undocumented)
1894
+ body: DocumentIntelligenceResourceDetailsOutput;
1895
+ // (undocumented)
1896
+ status: "200";
1897
+ }
1898
+
1899
+ // @public (undocumented)
1900
+ export interface GetResourceDetailsDefaultResponse extends HttpResponse {
1901
+ // (undocumented)
1902
+ body: DocumentIntelligenceErrorResponseOutput;
1903
+ // (undocumented)
1904
+ status: string;
1905
+ }
1906
+
1907
+ // @public (undocumented)
1908
+ export type GetResourceDetailsParameters = RequestParameters;
1909
+
1910
+ // @public (undocumented)
1911
+ export function isUnexpected(response: ListOperations200Response | ListOperationsDefaultResponse): response is ListOperationsDefaultResponse;
1912
+
1913
+ // @public (undocumented)
1914
+ export function isUnexpected(response: GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse): response is GetDocumentModelBuildOperationDefaultResponse;
1915
+
1916
+ // @public (undocumented)
1917
+ export function isUnexpected(response: GetDocumentModelComposeOperation200Response | GetDocumentModelComposeOperationDefaultResponse): response is GetDocumentModelComposeOperationDefaultResponse;
1918
+
1919
+ // @public (undocumented)
1920
+ export function isUnexpected(response: GetDocumentModelCopyToOperation200Response | GetDocumentModelCopyToOperationDefaultResponse): response is GetDocumentModelCopyToOperationDefaultResponse;
1921
+
1922
+ // @public (undocumented)
1923
+ export function isUnexpected(response: GetDocumentClassifierCopyToOperation200Response | GetDocumentClassifierCopyToOperationDefaultResponse): response is GetDocumentClassifierCopyToOperationDefaultResponse;
1924
+
1925
+ // @public (undocumented)
1926
+ export function isUnexpected(response: GetDocumentClassifierBuildOperation200Response | GetDocumentClassifierBuildOperationDefaultResponse): response is GetDocumentClassifierBuildOperationDefaultResponse;
1927
+
1928
+ // @public (undocumented)
1929
+ export function isUnexpected(response: GetOperation200Response | GetOperationDefaultResponse): response is GetOperationDefaultResponse;
1930
+
1931
+ // @public (undocumented)
1932
+ export function isUnexpected(response: GetResourceDetails200Response | GetResourceDetailsDefaultResponse): response is GetResourceDetailsDefaultResponse;
1933
+
1934
+ // @public (undocumented)
1935
+ export function isUnexpected(response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse): response is GetAnalyzeResultDefaultResponse;
1936
+
1937
+ // @public (undocumented)
1938
+ export function isUnexpected(response: DeleteAnalyzeResult204Response | DeleteAnalyzeResultDefaultResponse): response is DeleteAnalyzeResultDefaultResponse;
1939
+
1940
+ // @public (undocumented)
1941
+ export function isUnexpected(response: GetAnalyzeResultPdf200Response | GetAnalyzeResultPdfDefaultResponse): response is GetAnalyzeResultPdfDefaultResponse;
1942
+
1943
+ // @public (undocumented)
1944
+ export function isUnexpected(response: GetAnalyzeResultFigure200Response | GetAnalyzeResultFigureDefaultResponse): response is GetAnalyzeResultFigureDefaultResponse;
1945
+
1946
+ // @public (undocumented)
1947
+ export function isUnexpected(response: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse): response is AnalyzeDocumentFromStreamDefaultResponse;
1948
+
1949
+ // @public (undocumented)
1950
+ export function isUnexpected(response: AnalyzeDocument202Response | AnalyzeDocumentLogicalResponse | AnalyzeDocumentDefaultResponse): response is AnalyzeDocumentDefaultResponse;
1951
+
1952
+ // @public (undocumented)
1953
+ export function isUnexpected(response: GetAnalyzeBatchResult200Response | GetAnalyzeBatchResultDefaultResponse): response is GetAnalyzeBatchResultDefaultResponse;
1954
+
1955
+ // @public (undocumented)
1956
+ export function isUnexpected(response: DeleteAnalyzeBatchResult204Response | DeleteAnalyzeBatchResultDefaultResponse): response is DeleteAnalyzeBatchResultDefaultResponse;
1957
+
1958
+ // @public (undocumented)
1959
+ export function isUnexpected(response: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse): response is AnalyzeBatchDocumentsDefaultResponse;
1960
+
1961
+ // @public (undocumented)
1962
+ export function isUnexpected(response: ListAnalyzeBatchResults200Response | ListAnalyzeBatchResultsDefaultResponse): response is ListAnalyzeBatchResultsDefaultResponse;
1963
+
1964
+ // @public (undocumented)
1965
+ export function isUnexpected(response: GetModel200Response | GetModelDefaultResponse): response is GetModelDefaultResponse;
1966
+
1967
+ // @public (undocumented)
1968
+ export function isUnexpected(response: DeleteModel204Response | DeleteModelDefaultResponse): response is DeleteModelDefaultResponse;
1969
+
1970
+ // @public (undocumented)
1971
+ export function isUnexpected(response: BuildModel202Response | BuildModelLogicalResponse | BuildModelDefaultResponse): response is BuildModelDefaultResponse;
1972
+
1973
+ // @public (undocumented)
1974
+ export function isUnexpected(response: ComposeModel202Response | ComposeModelLogicalResponse | ComposeModelDefaultResponse): response is ComposeModelDefaultResponse;
1975
+
1976
+ // @public (undocumented)
1977
+ export function isUnexpected(response: AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse): response is AuthorizeModelCopyDefaultResponse;
1978
+
1979
+ // @public (undocumented)
1980
+ export function isUnexpected(response: CopyModelTo202Response | CopyModelToLogicalResponse | CopyModelToDefaultResponse): response is CopyModelToDefaultResponse;
1981
+
1982
+ // @public (undocumented)
1983
+ export function isUnexpected(response: ListModels200Response | ListModelsDefaultResponse): response is ListModelsDefaultResponse;
1984
+
1985
+ // @public (undocumented)
1986
+ export function isUnexpected(response: BuildClassifier202Response | BuildClassifierLogicalResponse | BuildClassifierDefaultResponse): response is BuildClassifierDefaultResponse;
1987
+
1988
+ // @public (undocumented)
1989
+ export function isUnexpected(response: ListClassifiers200Response | ListClassifiersDefaultResponse): response is ListClassifiersDefaultResponse;
1990
+
1991
+ // @public (undocumented)
1992
+ export function isUnexpected(response: GetClassifier200Response | GetClassifierDefaultResponse): response is GetClassifierDefaultResponse;
1993
+
1994
+ // @public (undocumented)
1995
+ export function isUnexpected(response: DeleteClassifier204Response | DeleteClassifierDefaultResponse): response is DeleteClassifierDefaultResponse;
1996
+
1997
+ // @public (undocumented)
1998
+ export function isUnexpected(response: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse): response is ClassifyDocumentFromStreamDefaultResponse;
1999
+
2000
+ // @public (undocumented)
2001
+ export function isUnexpected(response: ClassifyDocument202Response | ClassifyDocumentLogicalResponse | ClassifyDocumentDefaultResponse): response is ClassifyDocumentDefaultResponse;
2002
+
2003
+ // @public (undocumented)
2004
+ export function isUnexpected(response: GetClassifyResult200Response | GetClassifyResultDefaultResponse): response is GetClassifyResultDefaultResponse;
2005
+
2006
+ // @public (undocumented)
2007
+ export function isUnexpected(response: AuthorizeClassifierCopy200Response | AuthorizeClassifierCopyDefaultResponse): response is AuthorizeClassifierCopyDefaultResponse;
2008
+
2009
+ // @public (undocumented)
2010
+ export function isUnexpected(response: CopyClassifierTo202Response | CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse): response is CopyClassifierToDefaultResponse;
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
+
2019
+ // @public
2020
+ export type LengthUnitOutput = string;
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
+
2046
+ // @public (undocumented)
2047
+ export interface ListClassifiers {
2048
+ get(options?: ListClassifiersParameters): StreamableMethod<ListClassifiers200Response | ListClassifiersDefaultResponse>;
2049
+ }
2050
+
2051
+ // @public (undocumented)
2052
+ export interface ListClassifiers200Headers {
2053
+ "x-ms-client-request-id"?: string;
2054
+ }
2055
+
2056
+ // @public
2057
+ export interface ListClassifiers200Response extends HttpResponse {
2058
+ // (undocumented)
2059
+ body: PagedDocumentClassifierDetailsOutput;
2060
+ // (undocumented)
2061
+ headers: RawHttpHeaders & ListClassifiers200Headers;
2062
+ // (undocumented)
2063
+ status: "200";
2064
+ }
2065
+
2066
+ // @public (undocumented)
2067
+ export interface ListClassifiersDefaultResponse extends HttpResponse {
2068
+ // (undocumented)
2069
+ body: DocumentIntelligenceErrorResponseOutput;
2070
+ // (undocumented)
2071
+ status: string;
2072
+ }
2073
+
2074
+ // @public (undocumented)
2075
+ export interface ListClassifiersHeaderParam {
2076
+ // (undocumented)
2077
+ headers?: RawHttpHeadersInput & ListClassifiersHeaders;
2078
+ }
2079
+
2080
+ // @public (undocumented)
2081
+ export interface ListClassifiersHeaders {
2082
+ "x-ms-client-request-id"?: string;
2083
+ }
2084
+
2085
+ // @public (undocumented)
2086
+ export type ListClassifiersParameters = ListClassifiersHeaderParam & RequestParameters;
2087
+
2088
+ // @public (undocumented)
2089
+ export interface ListModels {
2090
+ get(options?: ListModelsParameters): StreamableMethod<ListModels200Response | ListModelsDefaultResponse>;
2091
+ }
2092
+
2093
+ // @public (undocumented)
2094
+ export interface ListModels200Headers {
2095
+ "x-ms-client-request-id"?: string;
2096
+ }
2097
+
2098
+ // @public
2099
+ export interface ListModels200Response extends HttpResponse {
2100
+ // (undocumented)
2101
+ body: PagedDocumentModelDetailsOutput;
2102
+ // (undocumented)
2103
+ headers: RawHttpHeaders & ListModels200Headers;
2104
+ // (undocumented)
2105
+ status: "200";
2106
+ }
2107
+
2108
+ // @public (undocumented)
2109
+ export interface ListModelsDefaultResponse extends HttpResponse {
2110
+ // (undocumented)
2111
+ body: DocumentIntelligenceErrorResponseOutput;
2112
+ // (undocumented)
2113
+ status: string;
2114
+ }
2115
+
2116
+ // @public (undocumented)
2117
+ export interface ListModelsHeaderParam {
2118
+ // (undocumented)
2119
+ headers?: RawHttpHeadersInput & ListModelsHeaders;
2120
+ }
2121
+
2122
+ // @public (undocumented)
2123
+ export interface ListModelsHeaders {
2124
+ "x-ms-client-request-id"?: string;
2125
+ }
2126
+
2127
+ // @public (undocumented)
2128
+ export type ListModelsParameters = ListModelsHeaderParam & RequestParameters;
2129
+
2130
+ // @public (undocumented)
2131
+ export interface ListOperations {
2132
+ get(options?: ListOperationsParameters): StreamableMethod<ListOperations200Response | ListOperationsDefaultResponse>;
2133
+ }
2134
+
2135
+ // @public (undocumented)
2136
+ export interface ListOperations200Headers {
2137
+ "x-ms-client-request-id"?: string;
2138
+ }
2139
+
2140
+ // @public
2141
+ export interface ListOperations200Response extends HttpResponse {
2142
+ // (undocumented)
2143
+ body: PagedDocumentIntelligenceOperationDetailsOutput;
2144
+ // (undocumented)
2145
+ headers: RawHttpHeaders & ListOperations200Headers;
2146
+ // (undocumented)
2147
+ status: "200";
2148
+ }
2149
+
2150
+ // @public (undocumented)
2151
+ export interface ListOperationsDefaultResponse extends HttpResponse {
2152
+ // (undocumented)
2153
+ body: DocumentIntelligenceErrorResponseOutput;
2154
+ // (undocumented)
2155
+ status: string;
2156
+ }
2157
+
2158
+ // @public (undocumented)
2159
+ export interface ListOperationsHeaderParam {
2160
+ // (undocumented)
2161
+ headers?: RawHttpHeadersInput & ListOperationsHeaders;
2162
+ }
2163
+
2164
+ // @public (undocumented)
2165
+ export interface ListOperationsHeaders {
2166
+ "x-ms-client-request-id"?: string;
2167
+ }
2168
+
2169
+ // @public (undocumented)
2170
+ export type ListOperationsParameters = ListOperationsHeaderParam & RequestParameters;
2171
+
2172
+ // @public
2173
+ export interface ModelCopyAuthorization {
2174
+ accessToken: string;
2175
+ expirationDateTime: Date | string;
2176
+ targetModelId: string;
2177
+ targetModelLocation: string;
2178
+ targetResourceId: string;
2179
+ targetResourceRegion: string;
2180
+ }
2181
+
2182
+ // @public
2183
+ export interface ModelCopyAuthorizationOutput {
2184
+ accessToken: string;
2185
+ expirationDateTime: string;
2186
+ targetModelId: string;
2187
+ targetModelLocation: string;
2188
+ targetResourceId: string;
2189
+ targetResourceRegion: string;
2190
+ }
2191
+
2192
+ // @public
2193
+ export type OperationKindOutput = string;
2194
+
2195
+ // @public
2196
+ export interface PagedAnalyzeBatchOperationOutput {
2197
+ nextLink?: string;
2198
+ value: Array<AnalyzeBatchOperationOutput>;
2199
+ }
2200
+
2201
+ // @public
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
+ }
2207
+
2208
+ // @public
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
+ }
2225
+
2226
+ // @public
2227
+ export interface PageSettings {
2228
+ continuationToken?: string;
2229
+ }
2230
+
2231
+ // @public
2232
+ export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
2233
+
2234
+ // @public
2235
+ export type PaginateReturn<TResult> = TResult extends {
2236
+ body: {
2237
+ value?: infer TPage;
2238
+ };
2239
+ } ? GetArrayType<TPage> : Array<unknown>;
2240
+
2241
+ // @public
2242
+ export interface PagingOptions<TResponse> {
2243
+ customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
2244
+ }
2245
+
2246
+ // @public
2247
+ export type ParagraphRoleOutput = string;
2248
+
2249
+ // @public
2250
+ export function parseResultIdFromResponse(initialResponse: {
2251
+ headers: {
2252
+ "operation-location": string;
2253
+ };
2254
+ }): string;
2255
+
2256
+ // @public (undocumented)
2257
+ export interface Routes {
2258
+ (path: "/operations"): ListOperations;
2259
+ (path: "/operations/{operationId}", operationId: string): GetDocumentModelBuildOperation;
2260
+ (path: "/info"): GetResourceDetails;
2261
+ (path: "/documentModels/{modelId}/analyzeResults/{resultId}", modelId: string, resultId: string): GetAnalyzeResult;
2262
+ (path: "/documentModels/{modelId}/analyzeResults/{resultId}/pdf", modelId: string, resultId: string): GetAnalyzeResultPdf;
2263
+ (path: "/documentModels/{modelId}/analyzeResults/{resultId}/figures/{figureId}", modelId: string, resultId: string, figureId: string): GetAnalyzeResultFigure;
2264
+ (path: "/documentModels/{modelId}:analyze", modelId: string): AnalyzeDocumentFromStream;
2265
+ (path: "/documentModels/{modelId}/analyzeBatchResults/{resultId}", modelId: string, resultId: string): GetAnalyzeBatchResult;
2266
+ (path: "/documentModels/{modelId}:analyzeBatch", modelId: string): AnalyzeBatchDocuments;
2267
+ (path: "/documentModels/{modelId}/analyzeBatchResults", modelId: string): ListAnalyzeBatchResults;
2268
+ (path: "/documentModels/{modelId}", modelId: string): GetModel;
2269
+ (path: "/documentModels:build"): BuildModel;
2270
+ (path: "/documentModels:compose"): ComposeModel;
2271
+ (path: "/documentModels:authorizeCopy"): AuthorizeModelCopy;
2272
+ (path: "/documentModels/{modelId}:copyTo", modelId: string): CopyModelTo;
2273
+ (path: "/documentModels"): ListModels;
2274
+ (path: "/documentClassifiers:build"): BuildClassifier;
2275
+ (path: "/documentClassifiers"): ListClassifiers;
2276
+ (path: "/documentClassifiers/{classifierId}", classifierId: string): GetClassifier;
2277
+ (path: "/documentClassifiers/{classifierId}:analyze", classifierId: string): ClassifyDocumentFromStream;
2278
+ (path: "/documentClassifiers/{classifierId}/analyzeResults/{resultId}", classifierId: string, resultId: string): GetClassifyResult;
2279
+ (path: "/documentClassifiers:authorizeCopy"): AuthorizeClassifierCopy;
2280
+ (path: "/documentClassifiers/{classifierId}:copyTo", classifierId: string): CopyClassifierTo;
2281
+ }
2282
+
2283
+ // @public
2284
+ export type SplitMode = string;
2285
+
2286
+ // @public
2287
+ export type SplitModeOutput = string;
2288
+
2289
+ // @public
2290
+ export function streamToUint8Array(stream: NodeJS.ReadableStream): Promise<Uint8Array>;
2291
+
2292
+ // @public
2293
+ export type StringIndexType = string;
2294
+
2295
+ // @public
2296
+ export type StringIndexTypeOutput = string;
2297
+
2298
+ // (No @packageDocumentation comment for this package)
2299
+
2300
+ ```