@azure-rest/ai-document-intelligence 1.0.0-beta.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.
@@ -0,0 +1,1411 @@
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
+ /// <reference types="node" />
8
+
9
+ import { Client } from '@azure-rest/core-client';
10
+ import { ClientOptions } from '@azure-rest/core-client';
11
+ import { CreateHttpPollerOptions } from '@azure/core-lro';
12
+ import { HttpResponse } from '@azure-rest/core-client';
13
+ import { KeyCredential } from '@azure/core-auth';
14
+ import { OperationState } from '@azure/core-lro';
15
+ import { Paged } from '@azure/core-paging';
16
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
17
+ import { PathUncheckedResponse } from '@azure-rest/core-client';
18
+ import { RawHttpHeaders } from '@azure/core-rest-pipeline';
19
+ import { RequestParameters } from '@azure-rest/core-client';
20
+ import { SimplePollerLike } from '@azure/core-lro';
21
+ import { StreamableMethod } from '@azure-rest/core-client';
22
+ import { TokenCredential } from '@azure/core-auth';
23
+
24
+ // @public
25
+ export interface AddressValueOutput {
26
+ city?: string;
27
+ cityDistrict?: string;
28
+ countryRegion?: string;
29
+ house?: string;
30
+ houseNumber?: string;
31
+ level?: string;
32
+ poBox?: string;
33
+ postalCode?: string;
34
+ road?: string;
35
+ state?: string;
36
+ stateDistrict?: string;
37
+ streetAddress?: string;
38
+ suburb?: string;
39
+ unit?: string;
40
+ }
41
+
42
+ // @public (undocumented)
43
+ export interface AnalyzeDocument202Headers {
44
+ // (undocumented)
45
+ "operation-location": string;
46
+ }
47
+
48
+ // @public
49
+ export interface AnalyzeDocument202Response extends HttpResponse {
50
+ // (undocumented)
51
+ headers: RawHttpHeaders & AnalyzeDocument202Headers;
52
+ // (undocumented)
53
+ status: "202";
54
+ }
55
+
56
+ // @public (undocumented)
57
+ export interface AnalyzeDocumentBodyParam {
58
+ body?: AnalyzeDocumentRequest;
59
+ }
60
+
61
+ // @public (undocumented)
62
+ export interface AnalyzeDocumentDefaultResponse extends HttpResponse {
63
+ // (undocumented)
64
+ body: ErrorResponseOutput;
65
+ // (undocumented)
66
+ status: string;
67
+ }
68
+
69
+ // @public (undocumented)
70
+ export interface AnalyzeDocumentFromStream {
71
+ post(options: AnalyzeDocumentFromStreamParameters): StreamableMethod<AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse>;
72
+ post(options: AnalyzeDocumentParameters): StreamableMethod<AnalyzeDocument202Response | AnalyzeDocumentDefaultResponse>;
73
+ }
74
+
75
+ // @public (undocumented)
76
+ export interface AnalyzeDocumentFromStream202Headers {
77
+ // (undocumented)
78
+ "operation-location": string;
79
+ }
80
+
81
+ // @public
82
+ export interface AnalyzeDocumentFromStream202Response extends HttpResponse {
83
+ // (undocumented)
84
+ headers: RawHttpHeaders & AnalyzeDocumentFromStream202Headers;
85
+ // (undocumented)
86
+ status: "202";
87
+ }
88
+
89
+ // @public (undocumented)
90
+ export interface AnalyzeDocumentFromStreamBodyParam {
91
+ body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
92
+ }
93
+
94
+ // @public (undocumented)
95
+ export interface AnalyzeDocumentFromStreamDefaultResponse extends HttpResponse {
96
+ // (undocumented)
97
+ body: ErrorResponseOutput;
98
+ // (undocumented)
99
+ status: string;
100
+ }
101
+
102
+ // @public
103
+ export interface AnalyzeDocumentFromStreamLogicalResponse extends HttpResponse {
104
+ // (undocumented)
105
+ status: "200";
106
+ }
107
+
108
+ // @public (undocumented)
109
+ export interface AnalyzeDocumentFromStreamMediaTypesParam {
110
+ 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";
111
+ }
112
+
113
+ // @public (undocumented)
114
+ export type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam & AnalyzeDocumentFromStreamMediaTypesParam & AnalyzeDocumentFromStreamBodyParam & RequestParameters;
115
+
116
+ // @public (undocumented)
117
+ export interface AnalyzeDocumentFromStreamQueryParam {
118
+ // (undocumented)
119
+ queryParameters?: AnalyzeDocumentFromStreamQueryParamProperties;
120
+ }
121
+
122
+ // @public (undocumented)
123
+ export interface AnalyzeDocumentFromStreamQueryParamProperties {
124
+ features?: string[];
125
+ locale?: string;
126
+ outputContentFormat?: string;
127
+ pages?: string;
128
+ queryFields?: string[];
129
+ stringIndexType?: string;
130
+ }
131
+
132
+ // @public
133
+ export interface AnalyzeDocumentLogicalResponse extends HttpResponse {
134
+ // (undocumented)
135
+ status: "200";
136
+ }
137
+
138
+ // @public (undocumented)
139
+ export interface AnalyzeDocumentMediaTypesParam {
140
+ contentType: "application/json";
141
+ }
142
+
143
+ // @public (undocumented)
144
+ export type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam & AnalyzeDocumentMediaTypesParam & AnalyzeDocumentBodyParam & RequestParameters;
145
+
146
+ // @public (undocumented)
147
+ export interface AnalyzeDocumentQueryParam {
148
+ // (undocumented)
149
+ queryParameters?: AnalyzeDocumentQueryParamProperties;
150
+ }
151
+
152
+ // @public (undocumented)
153
+ export interface AnalyzeDocumentQueryParamProperties {
154
+ features?: string[];
155
+ locale?: string;
156
+ outputContentFormat?: string;
157
+ pages?: string;
158
+ queryFields?: string[];
159
+ stringIndexType?: string;
160
+ }
161
+
162
+ // @public
163
+ export interface AnalyzeDocumentRequest {
164
+ base64Source?: string;
165
+ urlSource?: string;
166
+ }
167
+
168
+ // @public
169
+ export interface AnalyzeResultOperationOutput {
170
+ analyzeResult?: AnalyzeResultOutput;
171
+ createdDateTime: string;
172
+ error?: ErrorModelOutput;
173
+ lastUpdatedDateTime: string;
174
+ status: string;
175
+ }
176
+
177
+ // @public
178
+ export interface AnalyzeResultOutput {
179
+ apiVersion: string;
180
+ content: string;
181
+ contentFormat?: string;
182
+ documents?: Array<DocumentOutput>;
183
+ figures?: Array<DocumentFigureOutput>;
184
+ keyValuePairs?: Array<DocumentKeyValuePairOutput>;
185
+ languages?: Array<DocumentLanguageOutput>;
186
+ lists?: Array<DocumentListOutput>;
187
+ modelId: string;
188
+ pages: Array<DocumentPageOutput>;
189
+ paragraphs?: Array<DocumentParagraphOutput>;
190
+ sections?: Array<DocumentSectionOutput>;
191
+ stringIndexType: string;
192
+ styles?: Array<DocumentStyleOutput>;
193
+ tables?: Array<DocumentTableOutput>;
194
+ }
195
+
196
+ // @public
197
+ export interface AuthorizeCopyRequest {
198
+ description?: string;
199
+ modelId: string;
200
+ tags?: Record<string, string>;
201
+ }
202
+
203
+ // @public (undocumented)
204
+ export interface AuthorizeModelCopy {
205
+ post(options: AuthorizeModelCopyParameters): StreamableMethod<AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse>;
206
+ }
207
+
208
+ // @public
209
+ export interface AuthorizeModelCopy200Response extends HttpResponse {
210
+ // (undocumented)
211
+ body: CopyAuthorizationOutput;
212
+ // (undocumented)
213
+ status: "200";
214
+ }
215
+
216
+ // @public (undocumented)
217
+ export interface AuthorizeModelCopyBodyParam {
218
+ body: AuthorizeCopyRequest;
219
+ }
220
+
221
+ // @public (undocumented)
222
+ export interface AuthorizeModelCopyDefaultResponse extends HttpResponse {
223
+ // (undocumented)
224
+ body: ErrorResponseOutput;
225
+ // (undocumented)
226
+ status: string;
227
+ }
228
+
229
+ // @public (undocumented)
230
+ export type AuthorizeModelCopyParameters = AuthorizeModelCopyBodyParam & RequestParameters;
231
+
232
+ // @public
233
+ export interface AzureBlobContentSource {
234
+ containerUrl: string;
235
+ prefix?: string;
236
+ }
237
+
238
+ // @public
239
+ export interface AzureBlobContentSourceOutput {
240
+ containerUrl: string;
241
+ prefix?: string;
242
+ }
243
+
244
+ // @public
245
+ export interface AzureBlobFileListContentSource {
246
+ containerUrl: string;
247
+ fileList: string;
248
+ }
249
+
250
+ // @public
251
+ export interface AzureBlobFileListContentSourceOutput {
252
+ containerUrl: string;
253
+ fileList: string;
254
+ }
255
+
256
+ // @public
257
+ export interface BoundingRegionOutput {
258
+ pageNumber: number;
259
+ polygon: number[];
260
+ }
261
+
262
+ // @public (undocumented)
263
+ export interface BuildClassifier {
264
+ post(options: BuildClassifierParameters): StreamableMethod<BuildClassifier202Response | BuildClassifierDefaultResponse>;
265
+ }
266
+
267
+ // @public (undocumented)
268
+ export interface BuildClassifier202Headers {
269
+ // (undocumented)
270
+ "operation-location": string;
271
+ }
272
+
273
+ // @public
274
+ export interface BuildClassifier202Response extends HttpResponse {
275
+ // (undocumented)
276
+ headers: RawHttpHeaders & BuildClassifier202Headers;
277
+ // (undocumented)
278
+ status: "202";
279
+ }
280
+
281
+ // @public (undocumented)
282
+ export interface BuildClassifierBodyParam {
283
+ body: BuildDocumentClassifierRequest;
284
+ }
285
+
286
+ // @public (undocumented)
287
+ export interface BuildClassifierDefaultResponse extends HttpResponse {
288
+ // (undocumented)
289
+ body: ErrorResponseOutput;
290
+ // (undocumented)
291
+ status: string;
292
+ }
293
+
294
+ // @public
295
+ export interface BuildClassifierLogicalResponse extends HttpResponse {
296
+ // (undocumented)
297
+ status: "200";
298
+ }
299
+
300
+ // @public (undocumented)
301
+ export type BuildClassifierParameters = BuildClassifierBodyParam & RequestParameters;
302
+
303
+ // @public
304
+ export interface BuildDocumentClassifierRequest {
305
+ classifierId: string;
306
+ description?: string;
307
+ docTypes: Record<string, ClassifierDocumentTypeDetails>;
308
+ }
309
+
310
+ // @public
311
+ export interface BuildDocumentModelRequest {
312
+ azureBlobFileListSource?: AzureBlobFileListContentSource;
313
+ azureBlobSource?: AzureBlobContentSource;
314
+ buildMode: string;
315
+ description?: string;
316
+ modelId: string;
317
+ tags?: Record<string, string>;
318
+ }
319
+
320
+ // @public (undocumented)
321
+ export interface BuildModel {
322
+ post(options: BuildModelParameters): StreamableMethod<BuildModel202Response | BuildModelDefaultResponse>;
323
+ }
324
+
325
+ // @public (undocumented)
326
+ export interface BuildModel202Headers {
327
+ // (undocumented)
328
+ "operation-location": string;
329
+ }
330
+
331
+ // @public
332
+ export interface BuildModel202Response extends HttpResponse {
333
+ // (undocumented)
334
+ headers: RawHttpHeaders & BuildModel202Headers;
335
+ // (undocumented)
336
+ status: "202";
337
+ }
338
+
339
+ // @public (undocumented)
340
+ export interface BuildModelBodyParam {
341
+ body: BuildDocumentModelRequest;
342
+ }
343
+
344
+ // @public (undocumented)
345
+ export interface BuildModelDefaultResponse extends HttpResponse {
346
+ // (undocumented)
347
+ body: ErrorResponseOutput;
348
+ // (undocumented)
349
+ status: string;
350
+ }
351
+
352
+ // @public
353
+ export interface BuildModelLogicalResponse extends HttpResponse {
354
+ // (undocumented)
355
+ status: "200";
356
+ }
357
+
358
+ // @public (undocumented)
359
+ export type BuildModelParameters = BuildModelBodyParam & RequestParameters;
360
+
361
+ // @public
362
+ export interface ClassifierDocumentTypeDetails {
363
+ azureBlobFileListSource?: AzureBlobFileListContentSource;
364
+ azureBlobSource?: AzureBlobContentSource;
365
+ sourceKind?: string;
366
+ }
367
+
368
+ // @public
369
+ export interface ClassifierDocumentTypeDetailsOutput {
370
+ azureBlobFileListSource?: AzureBlobFileListContentSourceOutput;
371
+ azureBlobSource?: AzureBlobContentSourceOutput;
372
+ sourceKind?: string;
373
+ }
374
+
375
+ // @public (undocumented)
376
+ export interface ClassifyDocument202Headers {
377
+ // (undocumented)
378
+ "operation-location": string;
379
+ }
380
+
381
+ // @public
382
+ export interface ClassifyDocument202Response extends HttpResponse {
383
+ // (undocumented)
384
+ headers: RawHttpHeaders & ClassifyDocument202Headers;
385
+ // (undocumented)
386
+ status: "202";
387
+ }
388
+
389
+ // @public (undocumented)
390
+ export interface ClassifyDocumentBodyParam {
391
+ body: ClassifyDocumentRequest;
392
+ }
393
+
394
+ // @public (undocumented)
395
+ export interface ClassifyDocumentDefaultResponse extends HttpResponse {
396
+ // (undocumented)
397
+ body: ErrorResponseOutput;
398
+ // (undocumented)
399
+ status: string;
400
+ }
401
+
402
+ // @public (undocumented)
403
+ export interface ClassifyDocumentFromStream {
404
+ post(options: ClassifyDocumentFromStreamParameters): StreamableMethod<ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse>;
405
+ post(options: ClassifyDocumentParameters): StreamableMethod<ClassifyDocument202Response | ClassifyDocumentDefaultResponse>;
406
+ }
407
+
408
+ // @public (undocumented)
409
+ export interface ClassifyDocumentFromStream202Headers {
410
+ // (undocumented)
411
+ "operation-location": string;
412
+ }
413
+
414
+ // @public
415
+ export interface ClassifyDocumentFromStream202Response extends HttpResponse {
416
+ // (undocumented)
417
+ headers: RawHttpHeaders & ClassifyDocumentFromStream202Headers;
418
+ // (undocumented)
419
+ status: "202";
420
+ }
421
+
422
+ // @public (undocumented)
423
+ export interface ClassifyDocumentFromStreamBodyParam {
424
+ body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
425
+ }
426
+
427
+ // @public (undocumented)
428
+ export interface ClassifyDocumentFromStreamDefaultResponse extends HttpResponse {
429
+ // (undocumented)
430
+ body: ErrorResponseOutput;
431
+ // (undocumented)
432
+ status: string;
433
+ }
434
+
435
+ // @public
436
+ export interface ClassifyDocumentFromStreamLogicalResponse extends HttpResponse {
437
+ // (undocumented)
438
+ status: "200";
439
+ }
440
+
441
+ // @public (undocumented)
442
+ export interface ClassifyDocumentFromStreamMediaTypesParam {
443
+ 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";
444
+ }
445
+
446
+ // @public (undocumented)
447
+ export type ClassifyDocumentFromStreamParameters = ClassifyDocumentFromStreamQueryParam & ClassifyDocumentFromStreamMediaTypesParam & ClassifyDocumentFromStreamBodyParam & RequestParameters;
448
+
449
+ // @public (undocumented)
450
+ export interface ClassifyDocumentFromStreamQueryParam {
451
+ // (undocumented)
452
+ queryParameters?: ClassifyDocumentFromStreamQueryParamProperties;
453
+ }
454
+
455
+ // @public (undocumented)
456
+ export interface ClassifyDocumentFromStreamQueryParamProperties {
457
+ split?: string;
458
+ stringIndexType?: string;
459
+ }
460
+
461
+ // @public
462
+ export interface ClassifyDocumentLogicalResponse extends HttpResponse {
463
+ // (undocumented)
464
+ status: "200";
465
+ }
466
+
467
+ // @public (undocumented)
468
+ export interface ClassifyDocumentMediaTypesParam {
469
+ contentType: "application/json";
470
+ }
471
+
472
+ // @public (undocumented)
473
+ export type ClassifyDocumentParameters = ClassifyDocumentQueryParam & ClassifyDocumentMediaTypesParam & ClassifyDocumentBodyParam & RequestParameters;
474
+
475
+ // @public (undocumented)
476
+ export interface ClassifyDocumentQueryParam {
477
+ // (undocumented)
478
+ queryParameters?: ClassifyDocumentQueryParamProperties;
479
+ }
480
+
481
+ // @public (undocumented)
482
+ export interface ClassifyDocumentQueryParamProperties {
483
+ split?: string;
484
+ stringIndexType?: string;
485
+ }
486
+
487
+ // @public
488
+ export interface ClassifyDocumentRequest {
489
+ base64Source?: string;
490
+ urlSource?: string;
491
+ }
492
+
493
+ // @public
494
+ export interface ComponentDocumentModelDetails {
495
+ modelId: string;
496
+ }
497
+
498
+ // @public
499
+ export interface ComposeDocumentModelRequest {
500
+ componentModels: Array<ComponentDocumentModelDetails>;
501
+ description?: string;
502
+ modelId: string;
503
+ tags?: Record<string, string>;
504
+ }
505
+
506
+ // @public (undocumented)
507
+ export interface ComposeModel {
508
+ post(options: ComposeModelParameters): StreamableMethod<ComposeModel202Response | ComposeModelDefaultResponse>;
509
+ }
510
+
511
+ // @public (undocumented)
512
+ export interface ComposeModel202Headers {
513
+ // (undocumented)
514
+ "operation-location": string;
515
+ }
516
+
517
+ // @public
518
+ export interface ComposeModel202Response extends HttpResponse {
519
+ // (undocumented)
520
+ headers: RawHttpHeaders & ComposeModel202Headers;
521
+ // (undocumented)
522
+ status: "202";
523
+ }
524
+
525
+ // @public (undocumented)
526
+ export interface ComposeModelBodyParam {
527
+ body: ComposeDocumentModelRequest;
528
+ }
529
+
530
+ // @public (undocumented)
531
+ export interface ComposeModelDefaultResponse extends HttpResponse {
532
+ // (undocumented)
533
+ body: ErrorResponseOutput;
534
+ // (undocumented)
535
+ status: string;
536
+ }
537
+
538
+ // @public
539
+ export interface ComposeModelLogicalResponse extends HttpResponse {
540
+ // (undocumented)
541
+ status: "200";
542
+ }
543
+
544
+ // @public (undocumented)
545
+ export type ComposeModelParameters = ComposeModelBodyParam & RequestParameters;
546
+
547
+ // @public
548
+ export interface CopyAuthorization {
549
+ accessToken: string;
550
+ expirationDateTime: Date | string;
551
+ targetModelId: string;
552
+ targetModelLocation: string;
553
+ targetResourceId: string;
554
+ targetResourceRegion: string;
555
+ }
556
+
557
+ // @public
558
+ export interface CopyAuthorizationOutput {
559
+ accessToken: string;
560
+ expirationDateTime: string;
561
+ targetModelId: string;
562
+ targetModelLocation: string;
563
+ targetResourceId: string;
564
+ targetResourceRegion: string;
565
+ }
566
+
567
+ // @public (undocumented)
568
+ export interface CopyModelTo {
569
+ post(options: CopyModelToParameters): StreamableMethod<CopyModelTo202Response | CopyModelToDefaultResponse>;
570
+ }
571
+
572
+ // @public (undocumented)
573
+ export interface CopyModelTo202Headers {
574
+ // (undocumented)
575
+ "operation-location": string;
576
+ }
577
+
578
+ // @public
579
+ export interface CopyModelTo202Response extends HttpResponse {
580
+ // (undocumented)
581
+ headers: RawHttpHeaders & CopyModelTo202Headers;
582
+ // (undocumented)
583
+ status: "202";
584
+ }
585
+
586
+ // @public (undocumented)
587
+ export interface CopyModelToBodyParam {
588
+ body: CopyAuthorization;
589
+ }
590
+
591
+ // @public (undocumented)
592
+ export interface CopyModelToDefaultResponse extends HttpResponse {
593
+ // (undocumented)
594
+ body: ErrorResponseOutput;
595
+ // (undocumented)
596
+ status: string;
597
+ }
598
+
599
+ // @public
600
+ export interface CopyModelToLogicalResponse extends HttpResponse {
601
+ // (undocumented)
602
+ status: "200";
603
+ }
604
+
605
+ // @public (undocumented)
606
+ export type CopyModelToParameters = CopyModelToBodyParam & RequestParameters;
607
+
608
+ // @public
609
+ function createClient(endpoint: string, credentials: TokenCredential | KeyCredential, options?: ClientOptions): DocumentIntelligenceClient;
610
+ export default createClient;
611
+
612
+ // @public
613
+ export interface CurrencyValueOutput {
614
+ amount: number;
615
+ currencyCode?: string;
616
+ currencySymbol?: string;
617
+ }
618
+
619
+ // @public
620
+ export interface CustomDocumentModelsDetailsOutput {
621
+ count: number;
622
+ limit: number;
623
+ }
624
+
625
+ // @public
626
+ export interface DeleteClassifier204Response extends HttpResponse {
627
+ // (undocumented)
628
+ status: "204";
629
+ }
630
+
631
+ // @public (undocumented)
632
+ export interface DeleteClassifierDefaultResponse extends HttpResponse {
633
+ // (undocumented)
634
+ body: ErrorResponseOutput;
635
+ // (undocumented)
636
+ status: string;
637
+ }
638
+
639
+ // @public (undocumented)
640
+ export type DeleteClassifierParameters = RequestParameters;
641
+
642
+ // @public
643
+ export interface DeleteModel204Response extends HttpResponse {
644
+ // (undocumented)
645
+ status: "204";
646
+ }
647
+
648
+ // @public (undocumented)
649
+ export interface DeleteModelDefaultResponse extends HttpResponse {
650
+ // (undocumented)
651
+ body: ErrorResponseOutput;
652
+ // (undocumented)
653
+ status: string;
654
+ }
655
+
656
+ // @public (undocumented)
657
+ export type DeleteModelParameters = RequestParameters;
658
+
659
+ // @public
660
+ export interface DocumentBarcodeOutput {
661
+ confidence: number;
662
+ kind: string;
663
+ polygon?: number[];
664
+ span: DocumentSpanOutput;
665
+ value: string;
666
+ }
667
+
668
+ // @public
669
+ export interface DocumentCaptionOutput {
670
+ boundingRegions?: Array<BoundingRegionOutput>;
671
+ content: string;
672
+ elements?: string[];
673
+ spans: Array<DocumentSpanOutput>;
674
+ }
675
+
676
+ // @public
677
+ export interface DocumentClassifierBuildOperationDetailsOutput extends OperationDetailsOutputParent {
678
+ kind: "documentClassifierBuild";
679
+ result?: DocumentClassifierDetailsOutput;
680
+ }
681
+
682
+ // @public
683
+ export interface DocumentClassifierDetailsOutput {
684
+ apiVersion: string;
685
+ classifierId: string;
686
+ createdDateTime: string;
687
+ description?: string;
688
+ docTypes: Record<string, ClassifierDocumentTypeDetailsOutput>;
689
+ expirationDateTime?: string;
690
+ }
691
+
692
+ // @public
693
+ export interface DocumentFieldOutput {
694
+ boundingRegions?: Array<BoundingRegionOutput>;
695
+ confidence?: number;
696
+ content?: string;
697
+ spans?: Array<DocumentSpanOutput>;
698
+ type: string;
699
+ valueAddress?: AddressValueOutput;
700
+ valueArray?: Array<DocumentFieldOutput>;
701
+ valueBoolean?: boolean;
702
+ valueCountryRegion?: string;
703
+ valueCurrency?: CurrencyValueOutput;
704
+ valueDate?: string;
705
+ valueInteger?: number;
706
+ valueNumber?: number;
707
+ valueObject?: Record<string, DocumentFieldOutput>;
708
+ valuePhoneNumber?: string;
709
+ valueSelectionMark?: string;
710
+ valueSignature?: string;
711
+ valueString?: string;
712
+ valueTime?: string;
713
+ }
714
+
715
+ // @public
716
+ export interface DocumentFieldSchemaOutput {
717
+ description?: string;
718
+ example?: string;
719
+ items?: DocumentFieldSchemaOutput;
720
+ properties?: Record<string, DocumentFieldSchemaOutput>;
721
+ type: string;
722
+ }
723
+
724
+ // @public
725
+ export interface DocumentFigureOutput {
726
+ boundingRegions?: Array<BoundingRegionOutput>;
727
+ caption?: DocumentCaptionOutput;
728
+ elements?: string[];
729
+ footnotes?: Array<DocumentFootnoteOutput>;
730
+ spans: Array<DocumentSpanOutput>;
731
+ }
732
+
733
+ // @public
734
+ export interface DocumentFootnoteOutput {
735
+ boundingRegions?: Array<BoundingRegionOutput>;
736
+ content: string;
737
+ elements?: string[];
738
+ spans: Array<DocumentSpanOutput>;
739
+ }
740
+
741
+ // @public
742
+ export interface DocumentFormulaOutput {
743
+ confidence: number;
744
+ kind: string;
745
+ polygon?: number[];
746
+ span: DocumentSpanOutput;
747
+ value: string;
748
+ }
749
+
750
+ // @public (undocumented)
751
+ export type DocumentIntelligenceClient = Client & {
752
+ path: Routes;
753
+ };
754
+
755
+ // @public
756
+ export interface DocumentKeyValueElementOutput {
757
+ boundingRegions?: Array<BoundingRegionOutput>;
758
+ content: string;
759
+ spans: Array<DocumentSpanOutput>;
760
+ }
761
+
762
+ // @public
763
+ export interface DocumentKeyValuePairOutput {
764
+ confidence: number;
765
+ key: DocumentKeyValueElementOutput;
766
+ value?: DocumentKeyValueElementOutput;
767
+ }
768
+
769
+ // @public
770
+ export interface DocumentLanguageOutput {
771
+ confidence: number;
772
+ locale: string;
773
+ spans: Array<DocumentSpanOutput>;
774
+ }
775
+
776
+ // @public
777
+ export interface DocumentLineOutput {
778
+ content: string;
779
+ polygon?: number[];
780
+ spans: Array<DocumentSpanOutput>;
781
+ }
782
+
783
+ // @public
784
+ export interface DocumentListItemOutput {
785
+ boundingRegions?: Array<BoundingRegionOutput>;
786
+ content: string;
787
+ elements?: string[];
788
+ level: number;
789
+ spans: Array<DocumentSpanOutput>;
790
+ }
791
+
792
+ // @public
793
+ export interface DocumentListOutput {
794
+ items: Array<DocumentListItemOutput>;
795
+ spans: Array<DocumentSpanOutput>;
796
+ }
797
+
798
+ // @public
799
+ export interface DocumentModelBuildOperationDetailsOutput extends OperationDetailsOutputParent {
800
+ kind: "documentModelBuild";
801
+ result?: DocumentModelDetailsOutput;
802
+ }
803
+
804
+ // @public
805
+ export interface DocumentModelComposeOperationDetailsOutput extends OperationDetailsOutputParent {
806
+ kind: "documentModelCompose";
807
+ result?: DocumentModelDetailsOutput;
808
+ }
809
+
810
+ // @public
811
+ export interface DocumentModelCopyToOperationDetailsOutput extends OperationDetailsOutputParent {
812
+ kind: "documentModelCopyTo";
813
+ result?: DocumentModelDetailsOutput;
814
+ }
815
+
816
+ // @public
817
+ export interface DocumentModelDetailsOutput {
818
+ apiVersion?: string;
819
+ azureBlobFileListSource?: AzureBlobFileListContentSourceOutput;
820
+ azureBlobSource?: AzureBlobContentSourceOutput;
821
+ buildMode?: string;
822
+ createdDateTime: string;
823
+ description?: string;
824
+ docTypes?: Record<string, DocumentTypeDetailsOutput>;
825
+ expirationDateTime?: string;
826
+ modelId: string;
827
+ tags?: Record<string, string>;
828
+ }
829
+
830
+ // @public
831
+ export interface DocumentOutput {
832
+ boundingRegions?: Array<BoundingRegionOutput>;
833
+ confidence: number;
834
+ docType: string;
835
+ fields?: Record<string, DocumentFieldOutput>;
836
+ spans: Array<DocumentSpanOutput>;
837
+ }
838
+
839
+ // @public
840
+ export interface DocumentPageOutput {
841
+ angle?: number;
842
+ barcodes?: Array<DocumentBarcodeOutput>;
843
+ formulas?: Array<DocumentFormulaOutput>;
844
+ height?: number;
845
+ lines?: Array<DocumentLineOutput>;
846
+ pageNumber: number;
847
+ selectionMarks?: Array<DocumentSelectionMarkOutput>;
848
+ spans: Array<DocumentSpanOutput>;
849
+ unit?: string;
850
+ width?: number;
851
+ words?: Array<DocumentWordOutput>;
852
+ }
853
+
854
+ // @public
855
+ export interface DocumentParagraphOutput {
856
+ boundingRegions?: Array<BoundingRegionOutput>;
857
+ content: string;
858
+ role?: string;
859
+ spans: Array<DocumentSpanOutput>;
860
+ }
861
+
862
+ // @public
863
+ export interface DocumentSectionOutput {
864
+ elements?: string[];
865
+ spans: Array<DocumentSpanOutput>;
866
+ }
867
+
868
+ // @public
869
+ export interface DocumentSelectionMarkOutput {
870
+ confidence: number;
871
+ polygon?: number[];
872
+ span: DocumentSpanOutput;
873
+ state: string;
874
+ }
875
+
876
+ // @public
877
+ export interface DocumentSpanOutput {
878
+ length: number;
879
+ offset: number;
880
+ }
881
+
882
+ // @public
883
+ export interface DocumentStyleOutput {
884
+ backgroundColor?: string;
885
+ color?: string;
886
+ confidence: number;
887
+ fontStyle?: string;
888
+ fontWeight?: string;
889
+ isHandwritten?: boolean;
890
+ similarFontFamily?: string;
891
+ spans: Array<DocumentSpanOutput>;
892
+ }
893
+
894
+ // @public
895
+ export interface DocumentTableCellOutput {
896
+ boundingRegions?: Array<BoundingRegionOutput>;
897
+ columnIndex: number;
898
+ columnSpan?: number;
899
+ content: string;
900
+ elements?: string[];
901
+ kind?: string;
902
+ rowIndex: number;
903
+ rowSpan?: number;
904
+ spans: Array<DocumentSpanOutput>;
905
+ }
906
+
907
+ // @public
908
+ export interface DocumentTableOutput {
909
+ boundingRegions?: Array<BoundingRegionOutput>;
910
+ caption?: DocumentCaptionOutput;
911
+ cells: Array<DocumentTableCellOutput>;
912
+ columnCount: number;
913
+ footnotes?: Array<DocumentFootnoteOutput>;
914
+ rowCount: number;
915
+ spans: Array<DocumentSpanOutput>;
916
+ }
917
+
918
+ // @public
919
+ export interface DocumentTypeDetailsOutput {
920
+ buildMode?: string;
921
+ description?: string;
922
+ fieldConfidence?: Record<string, number>;
923
+ fieldSchema: Record<string, DocumentFieldSchemaOutput>;
924
+ }
925
+
926
+ // @public
927
+ export interface DocumentWordOutput {
928
+ confidence: number;
929
+ content: string;
930
+ polygon?: number[];
931
+ span: DocumentSpanOutput;
932
+ }
933
+
934
+ // @public
935
+ export interface ErrorModelOutput {
936
+ code: string;
937
+ details?: Array<ErrorModelOutput>;
938
+ innererror?: InnerErrorOutput;
939
+ message: string;
940
+ target?: string;
941
+ }
942
+
943
+ // @public
944
+ export interface ErrorResponseOutput {
945
+ error: ErrorModelOutput;
946
+ }
947
+
948
+ // @public (undocumented)
949
+ export interface GetAnalyzeResult {
950
+ get(options?: GetAnalyzeResultParameters): StreamableMethod<GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse>;
951
+ }
952
+
953
+ // @public
954
+ export interface GetAnalyzeResult200Response extends HttpResponse {
955
+ // (undocumented)
956
+ body: AnalyzeResultOperationOutput;
957
+ // (undocumented)
958
+ status: "200";
959
+ }
960
+
961
+ // @public (undocumented)
962
+ export interface GetAnalyzeResultDefaultResponse extends HttpResponse {
963
+ // (undocumented)
964
+ body: ErrorResponseOutput;
965
+ // (undocumented)
966
+ status: string;
967
+ }
968
+
969
+ // @public (undocumented)
970
+ export type GetAnalyzeResultParameters = RequestParameters;
971
+
972
+ // @public
973
+ export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
974
+
975
+ // @public (undocumented)
976
+ export interface GetClassifier {
977
+ delete(options?: DeleteClassifierParameters): StreamableMethod<DeleteClassifier204Response | DeleteClassifierDefaultResponse>;
978
+ get(options?: GetClassifierParameters): StreamableMethod<GetClassifier200Response | GetClassifierDefaultResponse>;
979
+ }
980
+
981
+ // @public
982
+ export interface GetClassifier200Response extends HttpResponse {
983
+ // (undocumented)
984
+ body: DocumentClassifierDetailsOutput;
985
+ // (undocumented)
986
+ status: "200";
987
+ }
988
+
989
+ // @public (undocumented)
990
+ export interface GetClassifierDefaultResponse extends HttpResponse {
991
+ // (undocumented)
992
+ body: ErrorResponseOutput;
993
+ // (undocumented)
994
+ status: string;
995
+ }
996
+
997
+ // @public (undocumented)
998
+ export type GetClassifierParameters = RequestParameters;
999
+
1000
+ // @public (undocumented)
1001
+ export interface GetClassifyResult {
1002
+ get(options?: GetClassifyResultParameters): StreamableMethod<GetClassifyResult200Response | GetClassifyResultDefaultResponse>;
1003
+ }
1004
+
1005
+ // @public
1006
+ export interface GetClassifyResult200Response extends HttpResponse {
1007
+ // (undocumented)
1008
+ body: AnalyzeResultOperationOutput;
1009
+ // (undocumented)
1010
+ status: "200";
1011
+ }
1012
+
1013
+ // @public (undocumented)
1014
+ export interface GetClassifyResultDefaultResponse extends HttpResponse {
1015
+ // (undocumented)
1016
+ body: ErrorResponseOutput;
1017
+ // (undocumented)
1018
+ status: string;
1019
+ }
1020
+
1021
+ // @public (undocumented)
1022
+ export type GetClassifyResultParameters = RequestParameters;
1023
+
1024
+ // @public
1025
+ export interface GetDocumentClassifierBuildOperation200Response extends HttpResponse {
1026
+ // (undocumented)
1027
+ body: DocumentClassifierBuildOperationDetailsOutput;
1028
+ // (undocumented)
1029
+ status: "200";
1030
+ }
1031
+
1032
+ // @public (undocumented)
1033
+ export interface GetDocumentClassifierBuildOperationDefaultResponse extends HttpResponse {
1034
+ // (undocumented)
1035
+ body: ErrorResponseOutput;
1036
+ // (undocumented)
1037
+ status: string;
1038
+ }
1039
+
1040
+ // @public (undocumented)
1041
+ export type GetDocumentClassifierBuildOperationParameters = RequestParameters;
1042
+
1043
+ // @public (undocumented)
1044
+ export interface GetDocumentModelBuildOperation {
1045
+ get(options?: GetDocumentModelBuildOperationParameters): StreamableMethod<GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse>;
1046
+ get(options?: GetDocumentModelComposeOperationParameters): StreamableMethod<GetDocumentModelComposeOperation200Response | GetDocumentModelComposeOperationDefaultResponse>;
1047
+ get(options?: GetDocumentModelCopyToOperationParameters): StreamableMethod<GetDocumentModelCopyToOperation200Response | GetDocumentModelCopyToOperationDefaultResponse>;
1048
+ get(options?: GetDocumentClassifierBuildOperationParameters): StreamableMethod<GetDocumentClassifierBuildOperation200Response | GetDocumentClassifierBuildOperationDefaultResponse>;
1049
+ get(options?: GetOperationParameters): StreamableMethod<GetOperation200Response | GetOperationDefaultResponse>;
1050
+ }
1051
+
1052
+ // @public
1053
+ export interface GetDocumentModelBuildOperation200Response extends HttpResponse {
1054
+ // (undocumented)
1055
+ body: DocumentModelBuildOperationDetailsOutput;
1056
+ // (undocumented)
1057
+ status: "200";
1058
+ }
1059
+
1060
+ // @public (undocumented)
1061
+ export interface GetDocumentModelBuildOperationDefaultResponse extends HttpResponse {
1062
+ // (undocumented)
1063
+ body: ErrorResponseOutput;
1064
+ // (undocumented)
1065
+ status: string;
1066
+ }
1067
+
1068
+ // @public (undocumented)
1069
+ export type GetDocumentModelBuildOperationParameters = RequestParameters;
1070
+
1071
+ // @public
1072
+ export interface GetDocumentModelComposeOperation200Response extends HttpResponse {
1073
+ // (undocumented)
1074
+ body: DocumentModelComposeOperationDetailsOutput;
1075
+ // (undocumented)
1076
+ status: "200";
1077
+ }
1078
+
1079
+ // @public (undocumented)
1080
+ export interface GetDocumentModelComposeOperationDefaultResponse extends HttpResponse {
1081
+ // (undocumented)
1082
+ body: ErrorResponseOutput;
1083
+ // (undocumented)
1084
+ status: string;
1085
+ }
1086
+
1087
+ // @public (undocumented)
1088
+ export type GetDocumentModelComposeOperationParameters = RequestParameters;
1089
+
1090
+ // @public
1091
+ export interface GetDocumentModelCopyToOperation200Response extends HttpResponse {
1092
+ // (undocumented)
1093
+ body: DocumentModelCopyToOperationDetailsOutput;
1094
+ // (undocumented)
1095
+ status: "200";
1096
+ }
1097
+
1098
+ // @public (undocumented)
1099
+ export interface GetDocumentModelCopyToOperationDefaultResponse extends HttpResponse {
1100
+ // (undocumented)
1101
+ body: ErrorResponseOutput;
1102
+ // (undocumented)
1103
+ status: string;
1104
+ }
1105
+
1106
+ // @public (undocumented)
1107
+ export type GetDocumentModelCopyToOperationParameters = RequestParameters;
1108
+
1109
+ // @public
1110
+ export function getLongRunningPoller<TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse>(client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
1111
+
1112
+ // @public (undocumented)
1113
+ export function getLongRunningPoller<TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse>(client: Client, initialResponse: ComposeModel202Response | ComposeModelDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
1114
+
1115
+ // @public (undocumented)
1116
+ export function getLongRunningPoller<TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse>(client: Client, initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
1117
+
1118
+ // @public (undocumented)
1119
+ export function getLongRunningPoller<TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse>(client: Client, initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
1120
+
1121
+ // @public (undocumented)
1122
+ export function getLongRunningPoller<TResult extends AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse>(client: Client, initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
1123
+
1124
+ // @public (undocumented)
1125
+ export function getLongRunningPoller<TResult extends ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse>(client: Client, initialResponse: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
1126
+
1127
+ // @public (undocumented)
1128
+ export interface GetModel {
1129
+ delete(options?: DeleteModelParameters): StreamableMethod<DeleteModel204Response | DeleteModelDefaultResponse>;
1130
+ get(options?: GetModelParameters): StreamableMethod<GetModel200Response | GetModelDefaultResponse>;
1131
+ }
1132
+
1133
+ // @public
1134
+ export interface GetModel200Response extends HttpResponse {
1135
+ // (undocumented)
1136
+ body: DocumentModelDetailsOutput;
1137
+ // (undocumented)
1138
+ status: "200";
1139
+ }
1140
+
1141
+ // @public (undocumented)
1142
+ export interface GetModelDefaultResponse extends HttpResponse {
1143
+ // (undocumented)
1144
+ body: ErrorResponseOutput;
1145
+ // (undocumented)
1146
+ status: string;
1147
+ }
1148
+
1149
+ // @public (undocumented)
1150
+ export type GetModelParameters = RequestParameters;
1151
+
1152
+ // @public
1153
+ export interface GetOperation200Response extends HttpResponse {
1154
+ // (undocumented)
1155
+ body: OperationDetailsOutput;
1156
+ // (undocumented)
1157
+ status: "200";
1158
+ }
1159
+
1160
+ // @public (undocumented)
1161
+ export interface GetOperationDefaultResponse extends HttpResponse {
1162
+ // (undocumented)
1163
+ body: ErrorResponseOutput;
1164
+ // (undocumented)
1165
+ status: string;
1166
+ }
1167
+
1168
+ // @public (undocumented)
1169
+ export type GetOperationParameters = RequestParameters;
1170
+
1171
+ // @public
1172
+ export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
1173
+ page: TPage;
1174
+ nextPageLink?: string;
1175
+ }>;
1176
+
1177
+ // @public (undocumented)
1178
+ export interface GetResourceInfo {
1179
+ get(options?: GetResourceInfoParameters): StreamableMethod<GetResourceInfo200Response | GetResourceInfoDefaultResponse>;
1180
+ }
1181
+
1182
+ // @public
1183
+ export interface GetResourceInfo200Response extends HttpResponse {
1184
+ // (undocumented)
1185
+ body: ResourceDetailsOutput;
1186
+ // (undocumented)
1187
+ status: "200";
1188
+ }
1189
+
1190
+ // @public (undocumented)
1191
+ export interface GetResourceInfoDefaultResponse extends HttpResponse {
1192
+ // (undocumented)
1193
+ body: ErrorResponseOutput;
1194
+ // (undocumented)
1195
+ status: string;
1196
+ }
1197
+
1198
+ // @public (undocumented)
1199
+ export type GetResourceInfoParameters = RequestParameters;
1200
+
1201
+ // @public
1202
+ export interface InnerErrorOutput {
1203
+ code?: string;
1204
+ innererror?: InnerErrorOutput;
1205
+ message?: string;
1206
+ }
1207
+
1208
+ // @public (undocumented)
1209
+ export function isUnexpected(response: ListOperations200Response | ListOperationsDefaultResponse): response is ListOperationsDefaultResponse;
1210
+
1211
+ // @public (undocumented)
1212
+ export function isUnexpected(response: GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse): response is GetDocumentModelBuildOperationDefaultResponse;
1213
+
1214
+ // @public (undocumented)
1215
+ export function isUnexpected(response: GetResourceInfo200Response | GetResourceInfoDefaultResponse): response is GetResourceInfoDefaultResponse;
1216
+
1217
+ // @public (undocumented)
1218
+ export function isUnexpected(response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse): response is GetAnalyzeResultDefaultResponse;
1219
+
1220
+ // @public (undocumented)
1221
+ export function isUnexpected(response: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse): response is AnalyzeDocumentFromStreamDefaultResponse;
1222
+
1223
+ // @public (undocumented)
1224
+ export function isUnexpected(response: GetModel200Response | GetModelDefaultResponse): response is GetModelDefaultResponse;
1225
+
1226
+ // @public (undocumented)
1227
+ export function isUnexpected(response: DeleteModel204Response | DeleteModelDefaultResponse): response is DeleteModelDefaultResponse;
1228
+
1229
+ // @public (undocumented)
1230
+ export function isUnexpected(response: BuildModel202Response | BuildModelLogicalResponse | BuildModelDefaultResponse): response is BuildModelDefaultResponse;
1231
+
1232
+ // @public (undocumented)
1233
+ export function isUnexpected(response: ComposeModel202Response | ComposeModelLogicalResponse | ComposeModelDefaultResponse): response is ComposeModelDefaultResponse;
1234
+
1235
+ // @public (undocumented)
1236
+ export function isUnexpected(response: AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse): response is AuthorizeModelCopyDefaultResponse;
1237
+
1238
+ // @public (undocumented)
1239
+ export function isUnexpected(response: CopyModelTo202Response | CopyModelToLogicalResponse | CopyModelToDefaultResponse): response is CopyModelToDefaultResponse;
1240
+
1241
+ // @public (undocumented)
1242
+ export function isUnexpected(response: ListModels200Response | ListModelsDefaultResponse): response is ListModelsDefaultResponse;
1243
+
1244
+ // @public (undocumented)
1245
+ export function isUnexpected(response: BuildClassifier202Response | BuildClassifierLogicalResponse | BuildClassifierDefaultResponse): response is BuildClassifierDefaultResponse;
1246
+
1247
+ // @public (undocumented)
1248
+ export function isUnexpected(response: ListClassifiers200Response | ListClassifiersDefaultResponse): response is ListClassifiersDefaultResponse;
1249
+
1250
+ // @public (undocumented)
1251
+ export function isUnexpected(response: GetClassifier200Response | GetClassifierDefaultResponse): response is GetClassifierDefaultResponse;
1252
+
1253
+ // @public (undocumented)
1254
+ export function isUnexpected(response: DeleteClassifier204Response | DeleteClassifierDefaultResponse): response is DeleteClassifierDefaultResponse;
1255
+
1256
+ // @public (undocumented)
1257
+ export function isUnexpected(response: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse): response is ClassifyDocumentFromStreamDefaultResponse;
1258
+
1259
+ // @public (undocumented)
1260
+ export function isUnexpected(response: GetClassifyResult200Response | GetClassifyResultDefaultResponse): response is GetClassifyResultDefaultResponse;
1261
+
1262
+ // @public (undocumented)
1263
+ export interface ListClassifiers {
1264
+ get(options?: ListClassifiersParameters): StreamableMethod<ListClassifiers200Response | ListClassifiersDefaultResponse>;
1265
+ }
1266
+
1267
+ // @public
1268
+ export interface ListClassifiers200Response extends HttpResponse {
1269
+ // (undocumented)
1270
+ body: PagedDocumentClassifierDetailsOutput;
1271
+ // (undocumented)
1272
+ status: "200";
1273
+ }
1274
+
1275
+ // @public (undocumented)
1276
+ export interface ListClassifiersDefaultResponse extends HttpResponse {
1277
+ // (undocumented)
1278
+ body: ErrorResponseOutput;
1279
+ // (undocumented)
1280
+ status: string;
1281
+ }
1282
+
1283
+ // @public (undocumented)
1284
+ export type ListClassifiersParameters = RequestParameters;
1285
+
1286
+ // @public (undocumented)
1287
+ export interface ListModels {
1288
+ get(options?: ListModelsParameters): StreamableMethod<ListModels200Response | ListModelsDefaultResponse>;
1289
+ }
1290
+
1291
+ // @public
1292
+ export interface ListModels200Response extends HttpResponse {
1293
+ // (undocumented)
1294
+ body: PagedDocumentModelDetailsOutput;
1295
+ // (undocumented)
1296
+ status: "200";
1297
+ }
1298
+
1299
+ // @public (undocumented)
1300
+ export interface ListModelsDefaultResponse extends HttpResponse {
1301
+ // (undocumented)
1302
+ body: ErrorResponseOutput;
1303
+ // (undocumented)
1304
+ status: string;
1305
+ }
1306
+
1307
+ // @public (undocumented)
1308
+ export type ListModelsParameters = RequestParameters;
1309
+
1310
+ // @public (undocumented)
1311
+ export interface ListOperations {
1312
+ get(options?: ListOperationsParameters): StreamableMethod<ListOperations200Response | ListOperationsDefaultResponse>;
1313
+ }
1314
+
1315
+ // @public
1316
+ export interface ListOperations200Response extends HttpResponse {
1317
+ // (undocumented)
1318
+ body: PagedOperationDetailsOutput;
1319
+ // (undocumented)
1320
+ status: "200";
1321
+ }
1322
+
1323
+ // @public (undocumented)
1324
+ export interface ListOperationsDefaultResponse extends HttpResponse {
1325
+ // (undocumented)
1326
+ body: ErrorResponseOutput;
1327
+ // (undocumented)
1328
+ status: string;
1329
+ }
1330
+
1331
+ // @public (undocumented)
1332
+ export type ListOperationsParameters = RequestParameters;
1333
+
1334
+ // @public
1335
+ export type OperationDetailsOutput = DocumentModelBuildOperationDetailsOutput | DocumentModelComposeOperationDetailsOutput | DocumentModelCopyToOperationDetailsOutput | DocumentClassifierBuildOperationDetailsOutput;
1336
+
1337
+ // @public
1338
+ export interface OperationDetailsOutputParent {
1339
+ apiVersion?: string;
1340
+ createdDateTime: string;
1341
+ error?: ErrorModelOutput;
1342
+ // (undocumented)
1343
+ kind: string;
1344
+ lastUpdatedDateTime: string;
1345
+ operationId: string;
1346
+ percentCompleted?: number;
1347
+ resourceLocation: string;
1348
+ status: string;
1349
+ tags?: Record<string, string>;
1350
+ }
1351
+
1352
+ // @public
1353
+ export type PagedDocumentClassifierDetailsOutput = Paged<DocumentClassifierDetailsOutput>;
1354
+
1355
+ // @public
1356
+ export type PagedDocumentModelDetailsOutput = Paged<DocumentModelDetailsOutput>;
1357
+
1358
+ // @public
1359
+ export type PagedOperationDetailsOutput = Paged<OperationDetailsOutput>;
1360
+
1361
+ // @public
1362
+ export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
1363
+
1364
+ // @public
1365
+ export type PaginateReturn<TResult> = TResult extends {
1366
+ body: {
1367
+ value?: infer TPage;
1368
+ };
1369
+ } ? GetArrayType<TPage> : Array<unknown>;
1370
+
1371
+ // @public
1372
+ export interface PagingOptions<TResponse> {
1373
+ customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
1374
+ }
1375
+
1376
+ // @public
1377
+ export interface QuotaDetailsOutput {
1378
+ quota: number;
1379
+ quotaResetDateTime: string;
1380
+ used: number;
1381
+ }
1382
+
1383
+ // @public
1384
+ export interface ResourceDetailsOutput {
1385
+ customDocumentModels: CustomDocumentModelsDetailsOutput;
1386
+ customNeuralDocumentModelBuilds: QuotaDetailsOutput;
1387
+ }
1388
+
1389
+ // @public (undocumented)
1390
+ export interface Routes {
1391
+ (path: "/operations"): ListOperations;
1392
+ (path: "/operations/{operationId}", operationId: string): GetDocumentModelBuildOperation;
1393
+ (path: "/info"): GetResourceInfo;
1394
+ (path: "/documentModels/{modelId}/analyzeResults/{resultId}", modelId: string, resultId: string): GetAnalyzeResult;
1395
+ (path: "/documentModels/{modelId}:analyze", modelId: string): AnalyzeDocumentFromStream;
1396
+ (path: "/documentModels/{modelId}", modelId: string): GetModel;
1397
+ (path: "/documentModels:build"): BuildModel;
1398
+ (path: "/documentModels:compose"): ComposeModel;
1399
+ (path: "/documentModels:authorizeCopy"): AuthorizeModelCopy;
1400
+ (path: "/documentModels/{modelId}:copyTo", modelId: string): CopyModelTo;
1401
+ (path: "/documentModels"): ListModels;
1402
+ (path: "/documentClassifiers:build"): BuildClassifier;
1403
+ (path: "/documentClassifiers"): ListClassifiers;
1404
+ (path: "/documentClassifiers/{classifierId}", classifierId: string): GetClassifier;
1405
+ (path: "/documentClassifiers/{classifierId}:analyze", classifierId: string): ClassifyDocumentFromStream;
1406
+ (path: "/documentClassifiers/{classifierId}/analyzeResults/{resultId}", classifierId: string, resultId: string): GetClassifyResult;
1407
+ }
1408
+
1409
+ // (No @packageDocumentation comment for this package)
1410
+
1411
+ ```