@@ -52,13 +52,13 @@ export interface AnalyzeDocumentOptions<Result = AnalyzeResult<AnalyzedDocument>
52
52
53
53
// @public
54
54
export interface AnalyzeResult <Document = AnalyzedDocument > extends AnalyzeResultCommon {
55
- documents: Document [];
56
- keyValuePairs: DocumentKeyValuePair [];
57
- languages: DocumentLanguage [];
58
- pages: DocumentPage [];
59
- paragraphs: DocumentParagraph [];
60
- styles: DocumentStyle [];
61
- tables: DocumentTable [];
55
+ documents? : Document [];
56
+ keyValuePairs? : DocumentKeyValuePair [];
57
+ languages? : DocumentLanguage [];
58
+ pages? : DocumentPage [];
59
+ paragraphs? : DocumentParagraph [];
60
+ styles? : DocumentStyle [];
61
+ tables? : DocumentTable [];
62
62
}
63
63
64
64
// @public
@@ -80,12 +80,20 @@ export interface ArrayFieldSchema<Item extends Readonly<FieldSchema> = Readonly<
80
80
export { AzureKeyCredential }
81
81
82
82
// @public
83
- export interface BoundingRegion extends HasBoundingPolygon {
84
- pageNumber: number ;
83
+ export interface BeginBuildModelOptions extends CreateModelOptions {
84
+ }
85
+
86
+ // @public
87
+ export interface BeginComposeModelOptions extends CreateModelOptions {
85
88
}
86
89
87
90
// @public
88
- export interface BuildModelOptions extends OperationOptions , CommonModelCreationOptions , PollerOptions <TrainingPollOperationState > {
91
+ export interface BeginCopyModelOptions extends OperationOptions , PollerOptions <TrainingPollOperationState > {
92
+ }
93
+
94
+ // @public
95
+ export interface BoundingRegion extends HasBoundingPolygon {
96
+ pageNumber: number ;
89
97
}
90
98
91
99
// @public
@@ -197,7 +205,7 @@ export interface CopyAuthorization {
197
205
}
198
206
199
207
// @public
200
- export interface CopyModelOptions extends OperationOptions , PollerOptions <TrainingPollOperationState > {
208
+ export interface CreateModelOptions extends OperationOptions , CommonModelCreationOptions , PollerOptions <TrainingPollOperationState > {
201
209
}
202
210
203
211
// @public
@@ -377,16 +385,16 @@ export class DocumentModelAdministrationClient {
377
385
constructor (endpoint : string , credential : TokenCredential , options ? : DocumentModelAdministrationClientOptions );
378
386
constructor (endpoint : string , credential : KeyCredential , options ? : DocumentModelAdministrationClientOptions );
379
387
constructor (endpoint : string , credential : KeyCredential | TokenCredential , options ? : DocumentModelAdministrationClientOptions );
380
- beginBuildModel(modelId : string , containerUrl : string , buildMode : DocumentModelBuildMode , options ? : BuildModelOptions ): Promise <TrainingPoller >;
381
- beginComposeModel(modelId : string , componentModelIds : Iterable <string >, options ? : BuildModelOptions ): Promise <TrainingPoller >;
382
- beginCopyModelTo(sourceModelId : string , authorization : CopyAuthorization , options ? : CopyModelOptions ): Promise <TrainingPoller >;
388
+ beginBuildModel(modelId : string , containerUrl : string , buildMode : DocumentModelBuildMode , options ? : BeginBuildModelOptions ): Promise <DocumentModelPoller >;
389
+ beginComposeModel(modelId : string , componentModelIds : Iterable <string >, options ? : BeginComposeModelOptions ): Promise <DocumentModelPoller >;
390
+ beginCopyModelTo(sourceModelId : string , authorization : CopyAuthorization , options ? : BeginCopyModelOptions ): Promise <DocumentModelPoller >;
383
391
deleteModel(modelId : string , options ? : DeleteModelOptions ): Promise <void >;
384
392
getCopyAuthorization(destinationModelId : string , options ? : GetCopyAuthorizationOptions ): Promise <CopyAuthorization >;
385
- getInfo(options ? : GetInfoOptions ): Promise <GetInfoResponse >;
386
- getModel(modelId : string , options ? : GetModelOptions ): Promise <ModelInfo >;
393
+ getModel(modelId : string , options ? : GetModelOptions ): Promise <DocumentModelInfo >;
387
394
getOperation(operationId : string , options ? : GetOperationOptions ): Promise <OperationInfo >;
388
- listModels(options ? : ListModelsOptions ): PagedAsyncIterableIterator <ModelSummary >;
389
- listOperations(options ? : ListOperationsOptions ): PagedAsyncIterableIterator <OperationInfo >;
395
+ getResourceInfo(options ? : GetResourceInfoOptions ): Promise <ResourceInfo >;
396
+ listModels(options ? : ListModelsOptions ): PagedAsyncIterableIterator <DocumentModelSummary >;
397
+ listOperations(options ? : ListOperationsOptions ): PagedAsyncIterableIterator <OperationSummary >;
390
398
}
391
399
392
400
// @public
@@ -402,6 +410,27 @@ export const DocumentModelBuildMode: {
402
410
readonly Neural: " neural" ;
403
411
};
404
412
413
+ // @public
414
+ export interface DocumentModelInfo extends DocumentModelSummary {
415
+ docTypes? : {
416
+ [propertyName : string ]: DocTypeInfo ;
417
+ };
418
+ }
419
+
420
+ // @public
421
+ export type DocumentModelPoller = PollerLike <TrainingPollOperationState , DocumentModelInfo >;
422
+
423
+ // @public
424
+ export interface DocumentModelSummary {
425
+ apiVersion? : string ;
426
+ createdDateTime: Date ;
427
+ description? : string ;
428
+ modelId: string ;
429
+ tags? : {
430
+ [propertyName : string ]: string ;
431
+ };
432
+ }
433
+
405
434
// @public
406
435
export interface DocumentNumberField extends DocumentValueField <number > {
407
436
kind: " number" ;
@@ -531,6 +560,15 @@ export interface DocumentWord extends HasBoundingPolygon {
531
560
// @public
532
561
export type EnglishCapitalLetter = " A" | " B" | " C" | " D" | " E" | " F" | " G" | " H" | " I" | " J" | " K" | " L" | " M" | " N" | " O" | " P" | " Q" | " R" | " S" | " T" | " U" | " V" | " W" | " X" | " Y" | " Z" ;
533
562
563
+ // @public
564
+ export interface ErrorModel {
565
+ code: string ;
566
+ details? : ErrorModel [];
567
+ innererror? : InnerError ;
568
+ message: string ;
569
+ target? : string ;
570
+ }
571
+
534
572
// @public
535
573
export type FieldSchema = StringLikeFieldSchema | NumberFieldSchema | DateFieldSchema | ArrayFieldSchema | ObjectFieldSchema | StructuredStringFieldSchema | WellKnownObjectFieldSchema ;
536
574
@@ -552,28 +590,26 @@ export type FormRecognizerRequestBody = NodeJS.ReadableStream | Blob | ArrayBuff
552
590
553
591
// @public
554
592
export interface GeneralDocumentResult extends LayoutResult {
555
- keyValuePairs: DocumentKeyValuePair [];
593
+ keyValuePairs? : DocumentKeyValuePair [];
556
594
}
557
595
558
596
// @public
559
597
export interface GetCopyAuthorizationOptions extends OperationOptions , CommonModelCreationOptions {
560
598
}
561
599
562
600
// @public
563
- export interface GetInfoOptions extends OperationOptions {
601
+ export interface GetModelOptions extends OperationOptions {
564
602
}
565
603
566
604
// @public
567
- export interface GetInfoResponse {
568
- customDocumentModels: CustomDocumentModelsInfo ;
605
+ export interface GetOperationOptions extends OperationOptions {
569
606
}
570
607
571
608
// @public
572
- export interface GetModelOptions extends OperationOptions {
573
- }
609
+ export type GetOperationResponse = OperationInfo ;
574
610
575
611
// @public
576
- export interface GetOperationOptions extends OperationOptions {
612
+ export interface GetResourceInfoOptions extends OperationOptions {
577
613
}
578
614
579
615
// @public
@@ -669,6 +705,13 @@ export const IdentityDocumentSchema: {
669
705
};
670
706
};
671
707
708
+ // @public
709
+ export interface InnerError {
710
+ code: string ;
711
+ innererror? : InnerError ;
712
+ message? : string ;
713
+ }
714
+
672
715
// @public
673
716
export type Invoice = ReifyPrebuiltSchema <typeof InvoiceSchema >;
674
717
@@ -814,9 +857,9 @@ export const InvoiceSchema: {
814
857
815
858
// @public
816
859
export interface LayoutResult {
817
- pages: DocumentPage [];
818
- styles: DocumentStyle [];
819
- tables: DocumentTable [];
860
+ pages? : DocumentPage [];
861
+ styles? : DocumentStyle [];
862
+ tables? : DocumentTable [];
820
863
}
821
864
822
865
// @public
@@ -830,13 +873,6 @@ export interface ListModelsOptions extends OperationOptions {
830
873
export interface ListOperationsOptions extends OperationOptions {
831
874
}
832
875
833
- // @public
834
- export interface ModelInfo extends ModelSummary {
835
- docTypes? : {
836
- [propertyName : string ]: DocTypeInfo ;
837
- };
838
- }
839
-
840
876
// @public
841
877
export interface ModelSchema {
842
878
docTypes: {
@@ -849,17 +885,6 @@ export interface ModelSchema {
849
885
modelId: string ;
850
886
}
851
887
852
- // @public
853
- export interface ModelSummary {
854
- apiVersion? : string ;
855
- createdDateTime: Date ;
856
- description? : string ;
857
- modelId: string ;
858
- tags? : {
859
- [propertyName : string ]: string ;
860
- };
861
- }
862
-
863
888
// @public
864
889
export interface NumberFieldSchema <Type extends " number" | " integer" = " number" | " integer" > {
865
890
readonly type: Type ;
@@ -876,7 +901,19 @@ export interface ObjectFieldSchema<Properties extends {
876
901
}
877
902
878
903
// @public
879
- export interface OperationInfo {
904
+ export interface OperationInfo extends OperationSummary {
905
+ error? : ErrorModel ;
906
+ result? : Record <string , unknown >;
907
+ }
908
+
909
+ // @public
910
+ export type OperationKind = string ;
911
+
912
+ // @public
913
+ export type OperationStatus = " notStarted" | " running" | " failed" | " succeeded" | " canceled" ;
914
+
915
+ // @public
916
+ export interface OperationSummary {
880
917
apiVersion? : string ;
881
918
createdDateTime: Date ;
882
919
kind: OperationKind ;
@@ -890,12 +927,6 @@ export interface OperationInfo {
890
927
};
891
928
}
892
929
893
- // @public
894
- export type OperationKind = string ;
895
-
896
- // @public
897
- export type OperationStatus = " notStarted" | " running" | " failed" | " succeeded" | " canceled" ;
898
-
899
930
// @public
900
931
export type ParagraphRole = string ;
901
932
@@ -1098,9 +1129,9 @@ export const PrebuiltModels: {
1098
1129
1099
1130
// @public
1100
1131
export interface ReadResult extends AnalyzeResultCommon {
1101
- languages: DocumentLanguage [];
1102
- pages: DocumentPage [];
1103
- styles: DocumentStyle [];
1132
+ languages? : DocumentLanguage [];
1133
+ pages? : DocumentPage [];
1134
+ styles? : DocumentStyle [];
1104
1135
}
1105
1136
1106
1137
// @public
@@ -1472,6 +1503,11 @@ export type ReifyPrebuiltSchema<Schema extends Readonly<ModelSchema>> = {
1472
1503
};
1473
1504
}[keyof Schema [" docTypes" ]];
1474
1505
1506
+ // @public
1507
+ export interface ResourceInfo {
1508
+ customDocumentModels: CustomDocumentModelsInfo ;
1509
+ }
1510
+
1475
1511
// @public
1476
1512
export type SelectionMarkState = string ;
1477
1513
@@ -1650,10 +1686,7 @@ export const TaxUsW2Schema: {
1650
1686
};
1651
1687
1652
1688
// @public
1653
- export type TrainingPoller = PollerLike <TrainingPollOperationState , ModelInfo >;
1654
-
1655
- // @public
1656
- export interface TrainingPollOperationState extends PollOperationState <ModelInfo > {
1689
+ export interface TrainingPollOperationState extends PollOperationState <DocumentModelInfo > {
1657
1690
apiVersion? : string ;
1658
1691
createdOn: Date ;
1659
1692
lastUpdatedOn: Date ;
0 commit comments