@azure/ai-content-understanding 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +591 -0
- package/dist/browser/api/contentUnderstandingContext.d.ts +15 -0
- package/dist/browser/api/contentUnderstandingContext.js +27 -0
- package/dist/browser/api/contentUnderstandingContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +4 -0
- package/dist/browser/api/index.js +5 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations.d.ts +67 -0
- package/dist/browser/api/operations.js +488 -0
- package/dist/browser/api/operations.js.map +1 -0
- package/dist/browser/api/options.d.ts +94 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/contentUnderstandingClient.d.ts +65 -0
- package/dist/browser/contentUnderstandingClient.js +161 -0
- package/dist/browser/contentUnderstandingClient.js.map +1 -0
- package/dist/browser/index.d.ts +6 -0
- package/dist/browser/index.js +14 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +846 -0
- package/dist/browser/models/models.js +1005 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/browser/static-helpers/pollingHelpers.js +95 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/serialization/get-binary-response-browser.mjs.map +1 -0
- package/dist/browser/static-helpers/serialization/get-binary-response.d.ts +10 -0
- package/dist/browser/static-helpers/serialization/get-binary-response.js +19 -0
- package/dist/browser/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js +22 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/contentUnderstandingContext.d.ts +15 -0
- package/dist/commonjs/api/contentUnderstandingContext.js +30 -0
- package/dist/commonjs/api/contentUnderstandingContext.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +4 -0
- package/dist/commonjs/api/index.js +24 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations.d.ts +67 -0
- package/dist/commonjs/api/operations.js +535 -0
- package/dist/commonjs/api/operations.js.map +1 -0
- package/dist/commonjs/api/options.d.ts +94 -0
- package/dist/commonjs/api/options.js +5 -0
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/contentUnderstandingClient.d.ts +65 -0
- package/dist/commonjs/contentUnderstandingClient.js +160 -0
- package/dist/commonjs/contentUnderstandingClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.js +8 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +846 -0
- package/dist/commonjs/models/models.js +1103 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +146 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +98 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/serialization/get-binary-response.d.ts +10 -0
- package/dist/commonjs/static-helpers/serialization/get-binary-response.js +26 -0
- package/dist/commonjs/static-helpers/serialization/get-binary-response.js.map +1 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +25 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +203 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/contentUnderstandingContext.d.ts +15 -0
- package/dist/esm/api/contentUnderstandingContext.js +27 -0
- package/dist/esm/api/contentUnderstandingContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +4 -0
- package/dist/esm/api/index.js +5 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations.d.ts +67 -0
- package/dist/esm/api/operations.js +488 -0
- package/dist/esm/api/operations.js.map +1 -0
- package/dist/esm/api/options.d.ts +94 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/contentUnderstandingClient.d.ts +65 -0
- package/dist/esm/contentUnderstandingClient.js +161 -0
- package/dist/esm/contentUnderstandingClient.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +846 -0
- package/dist/esm/models/models.js +1005 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/esm/static-helpers/pollingHelpers.js +95 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/serialization/get-binary-response.d.ts +10 -0
- package/dist/esm/static-helpers/serialization/get-binary-response.js +23 -0
- package/dist/esm/static-helpers/serialization/get-binary-response.js.map +1 -0
- package/dist/esm/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js +22 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/contentUnderstandingContext.d.ts +15 -0
- package/dist/react-native/api/contentUnderstandingContext.js +27 -0
- package/dist/react-native/api/contentUnderstandingContext.js.map +1 -0
- package/dist/react-native/api/index.d.ts +4 -0
- package/dist/react-native/api/index.js +5 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations.d.ts +67 -0
- package/dist/react-native/api/operations.js +488 -0
- package/dist/react-native/api/operations.js.map +1 -0
- package/dist/react-native/api/options.d.ts +94 -0
- package/dist/react-native/api/options.js +4 -0
- package/dist/react-native/api/options.js.map +1 -0
- package/dist/react-native/contentUnderstandingClient.d.ts +65 -0
- package/dist/react-native/contentUnderstandingClient.js +161 -0
- package/dist/react-native/contentUnderstandingClient.js.map +1 -0
- package/dist/react-native/index.d.ts +6 -0
- package/dist/react-native/index.js +14 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +846 -0
- package/dist/react-native/models/models.js +1005 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +143 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +95 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/serialization/get-binary-response.d.ts +10 -0
- package/dist/react-native/static-helpers/serialization/get-binary-response.js +23 -0
- package/dist/react-native/static-helpers/serialization/get-binary-response.js.map +1 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.js +22 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.js +200 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +180 -0
|
@@ -0,0 +1,846 @@
|
|
|
1
|
+
import type { ErrorModel } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* This file contains only generated model types and their (de)serializers.
|
|
4
|
+
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
5
|
+
*/
|
|
6
|
+
/** Additional input to analyze. */
|
|
7
|
+
export interface AnalysisInput {
|
|
8
|
+
/** The URL of the input to analyze. Only one of url or data should be specified. */
|
|
9
|
+
url?: string;
|
|
10
|
+
/** Raw image bytes. Provide bytes-like object; do not base64-encode. Only one of url or data should be specified. */
|
|
11
|
+
data?: Uint8Array;
|
|
12
|
+
/** Name of the input. */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** The MIME type of the input content. Ex. application/pdf, image/jpeg, etc. */
|
|
15
|
+
mimeType?: string;
|
|
16
|
+
/** Range of the input to analyze (ex. `1-3,5,9-`). Document content uses 1-based page numbers, while audio visual content uses integer milliseconds. */
|
|
17
|
+
contentRange?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function analysisInputSerializer(item: AnalysisInput): any;
|
|
20
|
+
export declare function analysisInputArraySerializer(result: Array<AnalysisInput>): any[];
|
|
21
|
+
/** Provides status details for analyze operations. */
|
|
22
|
+
export interface ContentAnalyzerAnalyzeOperationStatus {
|
|
23
|
+
/** The unique ID of the operation. */
|
|
24
|
+
id: string;
|
|
25
|
+
/** The status of the operation */
|
|
26
|
+
status: OperationState;
|
|
27
|
+
/** Error object that describes the error when status is "Failed". */
|
|
28
|
+
error?: ErrorModel;
|
|
29
|
+
/** The result of the operation. */
|
|
30
|
+
result?: AnalysisResult;
|
|
31
|
+
/** Usage details of the analyze operation. */
|
|
32
|
+
usage?: UsageDetails;
|
|
33
|
+
}
|
|
34
|
+
export declare function contentAnalyzerAnalyzeOperationStatusDeserializer(item: any): ContentAnalyzerAnalyzeOperationStatus;
|
|
35
|
+
/** Enum describing allowed operation states. */
|
|
36
|
+
export type OperationState = "NotStarted" | "Running" | "Succeeded" | "Failed" | "Canceled";
|
|
37
|
+
/** Analyze operation result. */
|
|
38
|
+
export interface AnalysisResult {
|
|
39
|
+
/** The unique identifier of the analyzer. */
|
|
40
|
+
analyzerId?: string;
|
|
41
|
+
/** The version of the API used to analyze the document. */
|
|
42
|
+
apiVersion?: string;
|
|
43
|
+
/** The date and time when the result was created. */
|
|
44
|
+
createdAt?: Date;
|
|
45
|
+
/** Warnings encountered while analyzing the document. */
|
|
46
|
+
warnings?: ErrorModel[];
|
|
47
|
+
/**
|
|
48
|
+
* The string encoding format for content spans in the response.
|
|
49
|
+
* Possible values are 'codePoint', 'utf16', and `utf8`. Default is `codePoint`.")
|
|
50
|
+
*/
|
|
51
|
+
stringEncoding?: string;
|
|
52
|
+
/** The extracted content. */
|
|
53
|
+
contents: AnalysisContentUnion[];
|
|
54
|
+
}
|
|
55
|
+
export declare function analysisResultDeserializer(item: any): AnalysisResult;
|
|
56
|
+
export declare function analysisContentUnionArrayDeserializer(result: Array<AnalysisContentUnion>): any[];
|
|
57
|
+
/** Media content base class. */
|
|
58
|
+
export interface AnalysisContent {
|
|
59
|
+
/** Content kind. */
|
|
60
|
+
/** The discriminator possible values: document, audioVisual */
|
|
61
|
+
kind: AnalysisContentKind;
|
|
62
|
+
/** Detected MIME type of the content. Ex. application/pdf, image/jpeg, etc. */
|
|
63
|
+
mimeType: string;
|
|
64
|
+
/** The analyzer that generated this content. */
|
|
65
|
+
analyzerId?: string;
|
|
66
|
+
/** Classified content category. */
|
|
67
|
+
category?: string;
|
|
68
|
+
/** The path of the content in the input. */
|
|
69
|
+
path?: string;
|
|
70
|
+
/** Markdown representation of the content. */
|
|
71
|
+
markdown?: string;
|
|
72
|
+
/** Extracted fields from the content. */
|
|
73
|
+
fields?: Record<string, ContentFieldUnion>;
|
|
74
|
+
}
|
|
75
|
+
export declare function analysisContentDeserializer(item: any): AnalysisContent;
|
|
76
|
+
/** Alias for AnalysisContentUnion */
|
|
77
|
+
export type AnalysisContentUnion = DocumentContent | AudioVisualContent | AnalysisContent;
|
|
78
|
+
export declare function analysisContentUnionDeserializer(item: any): AnalysisContentUnion;
|
|
79
|
+
/** Kind of media content. */
|
|
80
|
+
export type AnalysisContentKind = "document" | "audioVisual";
|
|
81
|
+
export declare function contentFieldUnionRecordDeserializer(item: Record<string, any>): Record<string, ContentField>;
|
|
82
|
+
/** Field extracted from the content. */
|
|
83
|
+
export interface ContentField {
|
|
84
|
+
/** Semantic data type of the field value. */
|
|
85
|
+
/** The discriminator possible values: string, date, time, number, integer, boolean, array, object, json */
|
|
86
|
+
type: ContentFieldType;
|
|
87
|
+
/** Span(s) associated with the field value in the markdown content. */
|
|
88
|
+
spans?: ContentSpan[];
|
|
89
|
+
/** Confidence of predicting the field value. */
|
|
90
|
+
confidence?: number;
|
|
91
|
+
/** Encoded source that identifies the position of the field value in the content. */
|
|
92
|
+
source?: string;
|
|
93
|
+
/** The value of the field. */
|
|
94
|
+
value?: unknown;
|
|
95
|
+
}
|
|
96
|
+
export declare function contentFieldDeserializer(item: any): ContentField;
|
|
97
|
+
/** Alias for ContentFieldUnion */
|
|
98
|
+
export type ContentFieldUnion = StringField | DateField | TimeField | NumberField | IntegerField | BooleanField | ArrayField | ObjectField | JsonField | ContentField;
|
|
99
|
+
export declare function contentFieldUnionDeserializer(item: any): ContentFieldUnion;
|
|
100
|
+
/** Semantic data type of the field value. */
|
|
101
|
+
export type ContentFieldType = "string" | "date" | "time" | "number" | "integer" | "boolean" | "array" | "object" | "json";
|
|
102
|
+
export declare function contentSpanArrayDeserializer(result: Array<ContentSpan>): any[];
|
|
103
|
+
/** Position of the element in markdown, specified as a character offset and length. */
|
|
104
|
+
export interface ContentSpan {
|
|
105
|
+
/** Starting position (0-indexed) of the element in markdown, specified in characters. */
|
|
106
|
+
offset: number;
|
|
107
|
+
/** Length of the element in markdown, specified in characters. */
|
|
108
|
+
length: number;
|
|
109
|
+
}
|
|
110
|
+
export declare function contentSpanDeserializer(item: any): ContentSpan;
|
|
111
|
+
/** String field extracted from the content. */
|
|
112
|
+
export interface StringField extends ContentField {
|
|
113
|
+
/** Semantic data type of the field value. */
|
|
114
|
+
fieldType: "string";
|
|
115
|
+
/** The value of the field. */
|
|
116
|
+
value?: string;
|
|
117
|
+
}
|
|
118
|
+
export declare function stringFieldDeserializer(item: any): StringField;
|
|
119
|
+
/** Date field extracted from the content. */
|
|
120
|
+
export interface DateField extends ContentField {
|
|
121
|
+
/** Semantic data type of the field value. */
|
|
122
|
+
fieldType: "date";
|
|
123
|
+
/** The value of the field. */
|
|
124
|
+
value?: Date;
|
|
125
|
+
}
|
|
126
|
+
export declare function dateFieldDeserializer(item: any): DateField;
|
|
127
|
+
/** Time field extracted from the content. */
|
|
128
|
+
export interface TimeField extends ContentField {
|
|
129
|
+
/** Semantic data type of the field value. */
|
|
130
|
+
fieldType: "time";
|
|
131
|
+
/** The value of the field. */
|
|
132
|
+
value?: string;
|
|
133
|
+
}
|
|
134
|
+
export declare function timeFieldDeserializer(item: any): TimeField;
|
|
135
|
+
/** Number field extracted from the content. */
|
|
136
|
+
export interface NumberField extends ContentField {
|
|
137
|
+
/** Semantic data type of the field value. */
|
|
138
|
+
fieldType: "number";
|
|
139
|
+
/** The value of the field. */
|
|
140
|
+
value?: number;
|
|
141
|
+
}
|
|
142
|
+
export declare function numberFieldDeserializer(item: any): NumberField;
|
|
143
|
+
/** Integer field extracted from the content. */
|
|
144
|
+
export interface IntegerField extends ContentField {
|
|
145
|
+
/** Semantic data type of the field value. */
|
|
146
|
+
fieldType: "integer";
|
|
147
|
+
/** The value of the field. */
|
|
148
|
+
value?: number;
|
|
149
|
+
}
|
|
150
|
+
export declare function integerFieldDeserializer(item: any): IntegerField;
|
|
151
|
+
/** Boolean field extracted from the content. */
|
|
152
|
+
export interface BooleanField extends ContentField {
|
|
153
|
+
/** Semantic data type of the field value. */
|
|
154
|
+
fieldType: "boolean";
|
|
155
|
+
/** The value of the field. */
|
|
156
|
+
value?: boolean;
|
|
157
|
+
}
|
|
158
|
+
export declare function booleanFieldDeserializer(item: any): BooleanField;
|
|
159
|
+
/** Array field extracted from the content. */
|
|
160
|
+
export interface ArrayField extends ContentField {
|
|
161
|
+
/** Semantic data type of the field value. */
|
|
162
|
+
fieldType: "array";
|
|
163
|
+
/** The value of the field. */
|
|
164
|
+
value?: ContentFieldUnion[];
|
|
165
|
+
}
|
|
166
|
+
export declare function arrayFieldDeserializer(item: any): ArrayField;
|
|
167
|
+
export declare function contentFieldUnionArrayDeserializer(result: Array<ContentFieldUnion>): any[];
|
|
168
|
+
/** Object field extracted from the content. */
|
|
169
|
+
export interface ObjectField extends ContentField {
|
|
170
|
+
/** Semantic data type of the field value. */
|
|
171
|
+
fieldType: "object";
|
|
172
|
+
/** The value of the field. */
|
|
173
|
+
value?: Record<string, ContentFieldUnion>;
|
|
174
|
+
}
|
|
175
|
+
export declare function objectFieldDeserializer(item: any): ObjectField;
|
|
176
|
+
/** JSON field extracted from the content. */
|
|
177
|
+
export interface JsonField extends ContentField {
|
|
178
|
+
/** Semantic data type of the field value. */
|
|
179
|
+
fieldType: "json";
|
|
180
|
+
/** The value of the field. */
|
|
181
|
+
value?: unknown;
|
|
182
|
+
}
|
|
183
|
+
export declare function jsonFieldDeserializer(item: any): JsonField;
|
|
184
|
+
/** Document content. Ex. text/plain, application/pdf, image/jpeg. */
|
|
185
|
+
export interface DocumentContent extends AnalysisContent {
|
|
186
|
+
/** Content kind. */
|
|
187
|
+
kind: "document";
|
|
188
|
+
/** Start page number (1-indexed) of the content. */
|
|
189
|
+
startPageNumber: number;
|
|
190
|
+
/** End page number (1-indexed) of the content. */
|
|
191
|
+
endPageNumber: number;
|
|
192
|
+
/**
|
|
193
|
+
* Length unit used by the width, height, and source properties.
|
|
194
|
+
* For images/tiff, the default unit is pixel. For PDF, the default unit is inch.
|
|
195
|
+
*/
|
|
196
|
+
unit?: LengthUnit;
|
|
197
|
+
/** List of pages in the document. */
|
|
198
|
+
pages?: DocumentPage[];
|
|
199
|
+
/** List of paragraphs in the document. Only if enableOcr and returnDetails are true. */
|
|
200
|
+
paragraphs?: DocumentParagraph[];
|
|
201
|
+
/** List of sections in the document. Only if enableLayout and returnDetails are true. */
|
|
202
|
+
sections?: DocumentSection[];
|
|
203
|
+
/** List of tables in the document. Only if enableLayout and returnDetails are true. */
|
|
204
|
+
tables?: DocumentTable[];
|
|
205
|
+
/** List of figures in the document. Only if enableLayout and returnDetails are true. */
|
|
206
|
+
figures?: DocumentFigureUnion[];
|
|
207
|
+
/** List of annotations in the document. Only if enableAnnotations and returnDetails are true. */
|
|
208
|
+
annotations?: DocumentAnnotation[];
|
|
209
|
+
/** List of hyperlinks in the document. Only if returnDetails are true. */
|
|
210
|
+
hyperlinks?: DocumentHyperlink[];
|
|
211
|
+
/** List of detected content segments. Only if enableSegment is true. */
|
|
212
|
+
segments?: DocumentContentSegment[];
|
|
213
|
+
}
|
|
214
|
+
export declare function documentContentDeserializer(item: any): DocumentContent;
|
|
215
|
+
/** Length unit used by the width, height, and source properties. */
|
|
216
|
+
export type LengthUnit = "pixel" | "inch";
|
|
217
|
+
export declare function documentPageArrayDeserializer(result: Array<DocumentPage>): any[];
|
|
218
|
+
/** Content from a document page. */
|
|
219
|
+
export interface DocumentPage {
|
|
220
|
+
/** Page number (1-based). */
|
|
221
|
+
pageNumber: number;
|
|
222
|
+
/** Width of the page. */
|
|
223
|
+
width?: number;
|
|
224
|
+
/** Height of the page. */
|
|
225
|
+
height?: number;
|
|
226
|
+
/** Span(s) associated with the page in the markdown content. */
|
|
227
|
+
spans?: ContentSpan[];
|
|
228
|
+
/**
|
|
229
|
+
* The general orientation of the content in clockwise direction,
|
|
230
|
+
* measured in degrees between (-180, 180].
|
|
231
|
+
* Only if enableOcr is true.
|
|
232
|
+
*/
|
|
233
|
+
angle?: number;
|
|
234
|
+
/** List of words in the page. Only if enableOcr and returnDetails are true. */
|
|
235
|
+
words?: DocumentWord[];
|
|
236
|
+
/** List of lines in the page. Only if enableOcr and returnDetails are true. */
|
|
237
|
+
lines?: DocumentLine[];
|
|
238
|
+
/** List of barcodes in the page. Only if enableBarcode and returnDetails are true. */
|
|
239
|
+
barcodes?: DocumentBarcode[];
|
|
240
|
+
/** List of mathematical formulas in the page. Only if enableFormula and returnDetails are true. */
|
|
241
|
+
formulas?: DocumentFormula[];
|
|
242
|
+
}
|
|
243
|
+
export declare function documentPageDeserializer(item: any): DocumentPage;
|
|
244
|
+
export declare function documentWordArrayDeserializer(result: Array<DocumentWord>): any[];
|
|
245
|
+
/**
|
|
246
|
+
* Word in a document, consisting of a contiguous sequence of characters.
|
|
247
|
+
* For non-space delimited languages, such as Chinese, Japanese, and Korean,
|
|
248
|
+
* each character is represented as its own word.
|
|
249
|
+
*/
|
|
250
|
+
export interface DocumentWord {
|
|
251
|
+
/** Word text. */
|
|
252
|
+
content: string;
|
|
253
|
+
/** Encoded source that identifies the position of the word in the content. */
|
|
254
|
+
source?: string;
|
|
255
|
+
/** Span of the word in the markdown content. */
|
|
256
|
+
span?: ContentSpan;
|
|
257
|
+
/** Confidence of predicting the word. */
|
|
258
|
+
confidence?: number;
|
|
259
|
+
}
|
|
260
|
+
export declare function documentWordDeserializer(item: any): DocumentWord;
|
|
261
|
+
export declare function documentLineArrayDeserializer(result: Array<DocumentLine>): any[];
|
|
262
|
+
/** Line in a document, consisting of an contiguous sequence of words. */
|
|
263
|
+
export interface DocumentLine {
|
|
264
|
+
/** Line text. */
|
|
265
|
+
content: string;
|
|
266
|
+
/** Encoded source that identifies the position of the line in the content. */
|
|
267
|
+
source?: string;
|
|
268
|
+
/** Span of the line in the markdown content. */
|
|
269
|
+
span?: ContentSpan;
|
|
270
|
+
}
|
|
271
|
+
export declare function documentLineDeserializer(item: any): DocumentLine;
|
|
272
|
+
export declare function documentBarcodeArrayDeserializer(result: Array<DocumentBarcode>): any[];
|
|
273
|
+
/** Barcode in a document. */
|
|
274
|
+
export interface DocumentBarcode {
|
|
275
|
+
/** Barcode kind. */
|
|
276
|
+
kind: DocumentBarcodeKind;
|
|
277
|
+
/** Barcode value. */
|
|
278
|
+
value: string;
|
|
279
|
+
/** Encoded source that identifies the position of the barcode in the content. */
|
|
280
|
+
source?: string;
|
|
281
|
+
/** Span of the barcode in the markdown content. */
|
|
282
|
+
span?: ContentSpan;
|
|
283
|
+
/** Confidence of predicting the barcode. */
|
|
284
|
+
confidence?: number;
|
|
285
|
+
}
|
|
286
|
+
export declare function documentBarcodeDeserializer(item: any): DocumentBarcode;
|
|
287
|
+
/** Barcode kind. */
|
|
288
|
+
export type DocumentBarcodeKind = "QRCode" | "PDF417" | "UPCA" | "UPCE" | "Code39" | "Code128" | "EAN8" | "EAN13" | "DataBar" | "Code93" | "Codabar" | "DataBarExpanded" | "ITF" | "MicroQRCode" | "Aztec" | "DataMatrix" | "MaxiCode";
|
|
289
|
+
export declare function documentFormulaArrayDeserializer(result: Array<DocumentFormula>): any[];
|
|
290
|
+
/** Mathematical formula in a document. */
|
|
291
|
+
export interface DocumentFormula {
|
|
292
|
+
/** Formula kind. */
|
|
293
|
+
kind: DocumentFormulaKind;
|
|
294
|
+
/** LaTex expression describing the formula. */
|
|
295
|
+
value: string;
|
|
296
|
+
/** Encoded source that identifies the position of the formula in the content. */
|
|
297
|
+
source?: string;
|
|
298
|
+
/** Span of the formula in the markdown content. */
|
|
299
|
+
span?: ContentSpan;
|
|
300
|
+
/** Confidence of predicting the formula. */
|
|
301
|
+
confidence?: number;
|
|
302
|
+
}
|
|
303
|
+
export declare function documentFormulaDeserializer(item: any): DocumentFormula;
|
|
304
|
+
/** Formula kind. */
|
|
305
|
+
export type DocumentFormulaKind = "inline" | "display";
|
|
306
|
+
export declare function documentParagraphArrayDeserializer(result: Array<DocumentParagraph>): any[];
|
|
307
|
+
/**
|
|
308
|
+
* Paragraph in a document, generally consisting of an contiguous sequence of lines
|
|
309
|
+
* with common alignment and spacing.
|
|
310
|
+
*/
|
|
311
|
+
export interface DocumentParagraph {
|
|
312
|
+
/** Semantic role of the paragraph. */
|
|
313
|
+
role?: SemanticRole;
|
|
314
|
+
/** Paragraph text. */
|
|
315
|
+
content: string;
|
|
316
|
+
/** Encoded source that identifies the position of the paragraph in the content. */
|
|
317
|
+
source?: string;
|
|
318
|
+
/** Span of the paragraph in the markdown content. */
|
|
319
|
+
span?: ContentSpan;
|
|
320
|
+
}
|
|
321
|
+
export declare function documentParagraphDeserializer(item: any): DocumentParagraph;
|
|
322
|
+
/** Semantic role of the paragraph. */
|
|
323
|
+
export type SemanticRole = "pageHeader" | "pageFooter" | "pageNumber" | "title" | "sectionHeading" | "footnote" | "formulaBlock";
|
|
324
|
+
export declare function documentSectionArrayDeserializer(result: Array<DocumentSection>): any[];
|
|
325
|
+
/** Section in a document. */
|
|
326
|
+
export interface DocumentSection {
|
|
327
|
+
/** Span of the section in the markdown content. */
|
|
328
|
+
span?: ContentSpan;
|
|
329
|
+
/** Child elements of the section. */
|
|
330
|
+
elements?: string[];
|
|
331
|
+
}
|
|
332
|
+
export declare function documentSectionDeserializer(item: any): DocumentSection;
|
|
333
|
+
export declare function documentTableArrayDeserializer(result: Array<DocumentTable>): any[];
|
|
334
|
+
/** Table in a document, consisting table cells arranged in a rectangular layout. */
|
|
335
|
+
export interface DocumentTable {
|
|
336
|
+
/** Number of rows in the table. */
|
|
337
|
+
rowCount: number;
|
|
338
|
+
/** Number of columns in the table. */
|
|
339
|
+
columnCount: number;
|
|
340
|
+
/** Cells contained within the table. */
|
|
341
|
+
cells: DocumentTableCell[];
|
|
342
|
+
/** Encoded source that identifies the position of the table in the content. */
|
|
343
|
+
source?: string;
|
|
344
|
+
/** Span of the table in the markdown content. */
|
|
345
|
+
span?: ContentSpan;
|
|
346
|
+
/** Table caption. */
|
|
347
|
+
caption?: DocumentCaption;
|
|
348
|
+
/** List of table footnotes. */
|
|
349
|
+
footnotes?: DocumentFootnote[];
|
|
350
|
+
/** Semantic role of the table. */
|
|
351
|
+
role?: SemanticRole;
|
|
352
|
+
}
|
|
353
|
+
export declare function documentTableDeserializer(item: any): DocumentTable;
|
|
354
|
+
export declare function documentTableCellArrayDeserializer(result: Array<DocumentTableCell>): any[];
|
|
355
|
+
/** Table cell in a document table. */
|
|
356
|
+
export interface DocumentTableCell {
|
|
357
|
+
/** Table cell kind. */
|
|
358
|
+
kind?: DocumentTableCellKind;
|
|
359
|
+
/** Row index of the cell. */
|
|
360
|
+
rowIndex: number;
|
|
361
|
+
/** Column index of the cell. */
|
|
362
|
+
columnIndex: number;
|
|
363
|
+
/** Number of rows spanned by this cell. */
|
|
364
|
+
rowSpan?: number;
|
|
365
|
+
/** Number of columns spanned by this cell. */
|
|
366
|
+
columnSpan?: number;
|
|
367
|
+
/** Content of the table cell. */
|
|
368
|
+
content: string;
|
|
369
|
+
/** Encoded source that identifies the position of the table cell in the content. */
|
|
370
|
+
source?: string;
|
|
371
|
+
/** Span of the table cell in the markdown content. */
|
|
372
|
+
span?: ContentSpan;
|
|
373
|
+
/** Child elements of the table cell. */
|
|
374
|
+
elements?: string[];
|
|
375
|
+
}
|
|
376
|
+
export declare function documentTableCellDeserializer(item: any): DocumentTableCell;
|
|
377
|
+
/** Table cell kind. */
|
|
378
|
+
export type DocumentTableCellKind = "content" | "rowHeader" | "columnHeader" | "stubHead" | "description";
|
|
379
|
+
/** Caption of a table or figure. */
|
|
380
|
+
export interface DocumentCaption {
|
|
381
|
+
/** Content of the caption. */
|
|
382
|
+
content: string;
|
|
383
|
+
/** Encoded source that identifies the position of the caption in the content. */
|
|
384
|
+
source?: string;
|
|
385
|
+
/** Span of the caption in the markdown content. */
|
|
386
|
+
span?: ContentSpan;
|
|
387
|
+
/** Child elements of the caption. */
|
|
388
|
+
elements?: string[];
|
|
389
|
+
}
|
|
390
|
+
export declare function documentCaptionDeserializer(item: any): DocumentCaption;
|
|
391
|
+
export declare function documentFootnoteArrayDeserializer(result: Array<DocumentFootnote>): any[];
|
|
392
|
+
/** Footnote of a table or figure. */
|
|
393
|
+
export interface DocumentFootnote {
|
|
394
|
+
/** Content of the footnote. */
|
|
395
|
+
content: string;
|
|
396
|
+
/** Encoded source that identifies the position of the footnote in the content. */
|
|
397
|
+
source?: string;
|
|
398
|
+
/** Span of the footnote in the markdown content. */
|
|
399
|
+
span?: ContentSpan;
|
|
400
|
+
/** Child elements of the footnote. */
|
|
401
|
+
elements?: string[];
|
|
402
|
+
}
|
|
403
|
+
export declare function documentFootnoteDeserializer(item: any): DocumentFootnote;
|
|
404
|
+
export declare function documentFigureUnionArrayDeserializer(result: Array<DocumentFigureUnion>): any[];
|
|
405
|
+
/** Figure in a document. */
|
|
406
|
+
export interface DocumentFigure {
|
|
407
|
+
/** Figure kind. */
|
|
408
|
+
/** The discriminator possible values: chart, mermaid */
|
|
409
|
+
kind: DocumentFigureKind;
|
|
410
|
+
/** Figure identifier. */
|
|
411
|
+
id: string;
|
|
412
|
+
/** Encoded source that identifies the position of the figure in the content. */
|
|
413
|
+
source?: string;
|
|
414
|
+
/** Span of the figure in the markdown content. */
|
|
415
|
+
span?: ContentSpan;
|
|
416
|
+
/** Child elements of the figure, excluding any caption or footnotes. */
|
|
417
|
+
elements?: string[];
|
|
418
|
+
/** Figure caption. */
|
|
419
|
+
caption?: DocumentCaption;
|
|
420
|
+
/** List of figure footnotes. */
|
|
421
|
+
footnotes?: DocumentFootnote[];
|
|
422
|
+
/** Description of the figure. */
|
|
423
|
+
description?: string;
|
|
424
|
+
/** Semantic role of the figure. */
|
|
425
|
+
role?: SemanticRole;
|
|
426
|
+
}
|
|
427
|
+
export declare function documentFigureDeserializer(item: any): DocumentFigure;
|
|
428
|
+
/** Alias for DocumentFigureUnion */
|
|
429
|
+
export type DocumentFigureUnion = DocumentChartFigure | DocumentMermaidFigure | DocumentFigure;
|
|
430
|
+
export declare function documentFigureUnionDeserializer(item: any): DocumentFigureUnion;
|
|
431
|
+
/** Figure kind. */
|
|
432
|
+
export type DocumentFigureKind = "unknown" | "chart" | "mermaid";
|
|
433
|
+
/** Figure containing a chart, such as a bar chart, line chart, or pie chart. */
|
|
434
|
+
export interface DocumentChartFigure extends DocumentFigure {
|
|
435
|
+
/** Figure kind. */
|
|
436
|
+
kind: "chart";
|
|
437
|
+
/** Chart content represented using [Chart.js config](https://www.chartjs.org/docs/latest/configuration/). */
|
|
438
|
+
content: Record<string, any>;
|
|
439
|
+
}
|
|
440
|
+
export declare function documentChartFigureDeserializer(item: any): DocumentChartFigure;
|
|
441
|
+
/** Figure containing a diagram, such as a flowchart or network diagram. */
|
|
442
|
+
export interface DocumentMermaidFigure extends DocumentFigure {
|
|
443
|
+
/** Figure kind. */
|
|
444
|
+
kind: "mermaid";
|
|
445
|
+
/** Diagram content represented using [Mermaid syntax](https://mermaid.js.org/intro/). */
|
|
446
|
+
content: string;
|
|
447
|
+
}
|
|
448
|
+
export declare function documentMermaidFigureDeserializer(item: any): DocumentMermaidFigure;
|
|
449
|
+
export declare function documentAnnotationArrayDeserializer(result: Array<DocumentAnnotation>): any[];
|
|
450
|
+
/** Annotation in a document, such as a strikethrough or a comment. */
|
|
451
|
+
export interface DocumentAnnotation {
|
|
452
|
+
/** Annotation identifier. */
|
|
453
|
+
id: string;
|
|
454
|
+
/** Annotation kind. */
|
|
455
|
+
kind: DocumentAnnotationKind;
|
|
456
|
+
/** Spans of the content associated with the annotation. */
|
|
457
|
+
spans?: ContentSpan[];
|
|
458
|
+
/** Position of the annotation. */
|
|
459
|
+
source?: string;
|
|
460
|
+
/** Comments associated with the annotation. */
|
|
461
|
+
comments?: DocumentAnnotationComment[];
|
|
462
|
+
/** Annotation author. */
|
|
463
|
+
author?: string;
|
|
464
|
+
/** Date and time when the annotation was created. */
|
|
465
|
+
createdAt?: Date;
|
|
466
|
+
/** Date and time when the annotation was last modified. */
|
|
467
|
+
lastModifiedAt?: Date;
|
|
468
|
+
/** Tags associated with the annotation. */
|
|
469
|
+
tags?: string[];
|
|
470
|
+
}
|
|
471
|
+
export declare function documentAnnotationDeserializer(item: any): DocumentAnnotation;
|
|
472
|
+
/** Document annotation kind. */
|
|
473
|
+
export type DocumentAnnotationKind = "highlight" | "strikethrough" | "underline" | "italic" | "bold" | "circle" | "note";
|
|
474
|
+
export declare function documentAnnotationCommentArrayDeserializer(result: Array<DocumentAnnotationComment>): any[];
|
|
475
|
+
/** Comment associated with a document annotation. */
|
|
476
|
+
export interface DocumentAnnotationComment {
|
|
477
|
+
/** Comment message in Markdown. */
|
|
478
|
+
message: string;
|
|
479
|
+
/** Author of the comment. */
|
|
480
|
+
author?: string;
|
|
481
|
+
/** Date and time when the comment was created. */
|
|
482
|
+
createdAt?: Date;
|
|
483
|
+
/** Date and time when the comment was last modified. */
|
|
484
|
+
lastModifiedAt?: Date;
|
|
485
|
+
/** Tags associated with the comment. */
|
|
486
|
+
tags?: string[];
|
|
487
|
+
}
|
|
488
|
+
export declare function documentAnnotationCommentDeserializer(item: any): DocumentAnnotationComment;
|
|
489
|
+
export declare function documentHyperlinkArrayDeserializer(result: Array<DocumentHyperlink>): any[];
|
|
490
|
+
/** Hyperlink in a document, such as a link to a web page or an email address. */
|
|
491
|
+
export interface DocumentHyperlink {
|
|
492
|
+
/** Hyperlinked content. */
|
|
493
|
+
content: string;
|
|
494
|
+
/** URL of the hyperlink. */
|
|
495
|
+
url: string;
|
|
496
|
+
/** Span of the hyperlink in the markdown content. */
|
|
497
|
+
span?: ContentSpan;
|
|
498
|
+
/** Position of the hyperlink. */
|
|
499
|
+
source?: string;
|
|
500
|
+
}
|
|
501
|
+
export declare function documentHyperlinkDeserializer(item: any): DocumentHyperlink;
|
|
502
|
+
export declare function documentContentSegmentArrayDeserializer(result: Array<DocumentContentSegment>): any[];
|
|
503
|
+
/** Detected document content segment. */
|
|
504
|
+
export interface DocumentContentSegment {
|
|
505
|
+
/** Segment identifier. */
|
|
506
|
+
segmentId: string;
|
|
507
|
+
/** Classified content category. */
|
|
508
|
+
category: string;
|
|
509
|
+
/** Span of the segment in the markdown content. */
|
|
510
|
+
span: ContentSpan;
|
|
511
|
+
/** Start page number (1-indexed) of the segment. */
|
|
512
|
+
startPageNumber: number;
|
|
513
|
+
/** End page number (1-indexed) of the segment. */
|
|
514
|
+
endPageNumber: number;
|
|
515
|
+
}
|
|
516
|
+
export declare function documentContentSegmentDeserializer(item: any): DocumentContentSegment;
|
|
517
|
+
/** Audio visual content. Ex. audio/wav, video/mp4. */
|
|
518
|
+
export interface AudioVisualContent extends AnalysisContent {
|
|
519
|
+
/** Content kind. */
|
|
520
|
+
kind: "audioVisual";
|
|
521
|
+
/** Start time of the content in milliseconds. */
|
|
522
|
+
startTimeMs: number;
|
|
523
|
+
/** End time of the content in milliseconds. */
|
|
524
|
+
endTimeMs: number;
|
|
525
|
+
/** Width of each video frame in pixels, if applicable. */
|
|
526
|
+
width?: number;
|
|
527
|
+
/** Height of each video frame in pixels, if applicable. */
|
|
528
|
+
height?: number;
|
|
529
|
+
/** List of camera shot changes in the video, represented by its timestamp in milliseconds. Only if returnDetails is true. */
|
|
530
|
+
cameraShotTimesMs?: number[];
|
|
531
|
+
/** List of key frames in the video, represented by its timestamp in milliseconds. Only if returnDetails is true. */
|
|
532
|
+
keyFrameTimesMs?: number[];
|
|
533
|
+
/** List of transcript phrases. Only if returnDetails is true. */
|
|
534
|
+
transcriptPhrases?: TranscriptPhrase[];
|
|
535
|
+
/** List of detected content segments. Only if enableSegment is true. */
|
|
536
|
+
segments?: AudioVisualContentSegment[];
|
|
537
|
+
}
|
|
538
|
+
export declare function audioVisualContentDeserializer(item: any): AudioVisualContent;
|
|
539
|
+
export declare function transcriptPhraseArrayDeserializer(result: Array<TranscriptPhrase>): any[];
|
|
540
|
+
/** Transcript phrase. */
|
|
541
|
+
export interface TranscriptPhrase {
|
|
542
|
+
/** Speaker index or name. */
|
|
543
|
+
speaker?: string;
|
|
544
|
+
/** Start time of the phrase in milliseconds. */
|
|
545
|
+
startTimeMs: number;
|
|
546
|
+
/** End time of the phrase in milliseconds. */
|
|
547
|
+
endTimeMs: number;
|
|
548
|
+
/** Detected locale of the phrase. Ex. en-US. */
|
|
549
|
+
locale?: string;
|
|
550
|
+
/** Transcript text. */
|
|
551
|
+
text: string;
|
|
552
|
+
/** Confidence of predicting the phrase. */
|
|
553
|
+
confidence?: number;
|
|
554
|
+
/** Span of the phrase in the markdown content. */
|
|
555
|
+
span?: ContentSpan;
|
|
556
|
+
/** List of words in the phrase. */
|
|
557
|
+
words: TranscriptWord[];
|
|
558
|
+
}
|
|
559
|
+
export declare function transcriptPhraseDeserializer(item: any): TranscriptPhrase;
|
|
560
|
+
export declare function transcriptWordArrayDeserializer(result: Array<TranscriptWord>): any[];
|
|
561
|
+
/** Transcript word. */
|
|
562
|
+
export interface TranscriptWord {
|
|
563
|
+
/** Start time of the word in milliseconds. */
|
|
564
|
+
startTimeMs: number;
|
|
565
|
+
/** End time of the word in milliseconds. */
|
|
566
|
+
endTimeMs: number;
|
|
567
|
+
/** Transcript text. */
|
|
568
|
+
text: string;
|
|
569
|
+
/** Span of the word in the markdown content. */
|
|
570
|
+
span?: ContentSpan;
|
|
571
|
+
}
|
|
572
|
+
export declare function transcriptWordDeserializer(item: any): TranscriptWord;
|
|
573
|
+
export declare function audioVisualContentSegmentArrayDeserializer(result: Array<AudioVisualContentSegment>): any[];
|
|
574
|
+
/** Detected audio/visual content segment. */
|
|
575
|
+
export interface AudioVisualContentSegment {
|
|
576
|
+
/** Segment identifier. */
|
|
577
|
+
segmentId: string;
|
|
578
|
+
/** Classified content category. */
|
|
579
|
+
category: string;
|
|
580
|
+
/** Span of the segment in the markdown content. */
|
|
581
|
+
span: ContentSpan;
|
|
582
|
+
/** Start time of the segment in milliseconds. */
|
|
583
|
+
startTimeMs: number;
|
|
584
|
+
/** End time of the segment in milliseconds. */
|
|
585
|
+
endTimeMs: number;
|
|
586
|
+
}
|
|
587
|
+
export declare function audioVisualContentSegmentDeserializer(item: any): AudioVisualContentSegment;
|
|
588
|
+
/** Usage details. */
|
|
589
|
+
export interface UsageDetails {
|
|
590
|
+
/**
|
|
591
|
+
* The number of document pages processed at the minimal level.
|
|
592
|
+
* For documents without explicit pages (ex. txt, html), every 3000 UTF-16 characters is counted as one page.
|
|
593
|
+
*/
|
|
594
|
+
documentPagesMinimal?: number;
|
|
595
|
+
/**
|
|
596
|
+
* The number of document pages processed at the basic level.
|
|
597
|
+
* For documents without explicit pages (ex. txt, html), every 3000 UTF-16 characters is counted as one page.
|
|
598
|
+
*/
|
|
599
|
+
documentPagesBasic?: number;
|
|
600
|
+
/**
|
|
601
|
+
* The number of document pages processed at the standard level.
|
|
602
|
+
* For documents without explicit pages (ex. txt, html), every 3000 UTF-16 characters is counted as one page.
|
|
603
|
+
*/
|
|
604
|
+
documentPagesStandard?: number;
|
|
605
|
+
/** The hours of audio processed. */
|
|
606
|
+
audioHours?: number;
|
|
607
|
+
/** The hours of video processed. */
|
|
608
|
+
videoHours?: number;
|
|
609
|
+
/** The number of contextualization tokens consumed for preparing context, generating confidence scores, source grounding, and output formatting. */
|
|
610
|
+
contextualizationTokens?: number;
|
|
611
|
+
/** The number of LLM and embedding tokens consumed, grouped by model (ex. GTP 4.1) and type (ex. input, cached input, output). */
|
|
612
|
+
tokens?: Record<string, number>;
|
|
613
|
+
}
|
|
614
|
+
export declare function usageDetailsDeserializer(item: any): UsageDetails;
|
|
615
|
+
/** Analyzer that extracts content and fields from multimodal documents. */
|
|
616
|
+
export interface ContentAnalyzer {
|
|
617
|
+
/** The unique identifier of the analyzer. */
|
|
618
|
+
readonly analyzerId: string;
|
|
619
|
+
/** A description of the analyzer. */
|
|
620
|
+
description?: string;
|
|
621
|
+
/** Tags associated with the analyzer. */
|
|
622
|
+
tags?: Record<string, string>;
|
|
623
|
+
/** The status of the analyzer. */
|
|
624
|
+
readonly status: ContentAnalyzerStatus;
|
|
625
|
+
/** The date and time when the analyzer was created. */
|
|
626
|
+
readonly createdAt: Date;
|
|
627
|
+
/** The date and time when the analyzer was last modified. */
|
|
628
|
+
readonly lastModifiedAt: Date;
|
|
629
|
+
/** Warnings encountered while creating the analyzer. */
|
|
630
|
+
readonly warnings?: ErrorModel[];
|
|
631
|
+
/** The analyzer to incrementally train from. */
|
|
632
|
+
baseAnalyzerId?: string;
|
|
633
|
+
/** Analyzer configuration settings. */
|
|
634
|
+
config?: ContentAnalyzerConfig;
|
|
635
|
+
/** The schema of fields to extracted. */
|
|
636
|
+
fieldSchema?: ContentFieldSchema;
|
|
637
|
+
/** Indicates whether the result may contain additional fields outside of the defined schema. */
|
|
638
|
+
dynamicFieldSchema?: boolean;
|
|
639
|
+
/** The location where the data may be processed. Defaults to global. */
|
|
640
|
+
processingLocation?: ProcessingLocation;
|
|
641
|
+
/** Additional knowledge sources used to enhance the analyzer. */
|
|
642
|
+
knowledgeSources?: KnowledgeSourceUnion[];
|
|
643
|
+
/**
|
|
644
|
+
* Mapping of model roles to specific model names.
|
|
645
|
+
* Ex. { "completion": "gpt-4.1", "embedding": "text-embedding-3-large" }.
|
|
646
|
+
*/
|
|
647
|
+
models?: Record<string, string>;
|
|
648
|
+
/** Chat completion and embedding models supported by the analyzer. */
|
|
649
|
+
readonly supportedModels?: SupportedModels;
|
|
650
|
+
}
|
|
651
|
+
export declare function contentAnalyzerSerializer(item: ContentAnalyzer): any;
|
|
652
|
+
export declare function contentAnalyzerDeserializer(item: any): ContentAnalyzer;
|
|
653
|
+
/** Status of a resource. */
|
|
654
|
+
export type ContentAnalyzerStatus = "creating" | "ready" | "deleting" | "failed";
|
|
655
|
+
/** Configuration settings for an analyzer. */
|
|
656
|
+
export interface ContentAnalyzerConfig {
|
|
657
|
+
/** Return all content details. */
|
|
658
|
+
returnDetails?: boolean;
|
|
659
|
+
/** List of locale hints for speech transcription. */
|
|
660
|
+
locales?: string[];
|
|
661
|
+
/** Enable optical character recognition (OCR). */
|
|
662
|
+
enableOcr?: boolean;
|
|
663
|
+
/** Enable layout analysis. */
|
|
664
|
+
enableLayout?: boolean;
|
|
665
|
+
/** Enable generation of figure description. */
|
|
666
|
+
enableFigureDescription?: boolean;
|
|
667
|
+
/** Enable analysis of figures, such as charts and diagrams. */
|
|
668
|
+
enableFigureAnalysis?: boolean;
|
|
669
|
+
/** Enable mathematical formula detection. */
|
|
670
|
+
enableFormula?: boolean;
|
|
671
|
+
/** Representation format of tables in analyze result markdown. */
|
|
672
|
+
tableFormat?: TableFormat;
|
|
673
|
+
/** Representation format of charts in analyze result markdown. */
|
|
674
|
+
chartFormat?: ChartFormat;
|
|
675
|
+
/** Representation format of annotations in analyze result markdown. */
|
|
676
|
+
annotationFormat?: AnnotationFormat;
|
|
677
|
+
/** Disable the default blurring of faces for privacy while processing the content. */
|
|
678
|
+
disableFaceBlurring?: boolean;
|
|
679
|
+
/** Return field grounding source and confidence. */
|
|
680
|
+
estimateFieldSourceAndConfidence?: boolean;
|
|
681
|
+
/** Map of categories to classify the input content(s) against. */
|
|
682
|
+
contentCategories?: Record<string, ContentCategoryDefinition>;
|
|
683
|
+
/** Enable segmentation of the input by contentCategories. */
|
|
684
|
+
enableSegment?: boolean;
|
|
685
|
+
/** Force segmentation of document content by page. */
|
|
686
|
+
segmentPerPage?: boolean;
|
|
687
|
+
/**
|
|
688
|
+
* Omit the content for this analyzer from analyze result.
|
|
689
|
+
* Only return content(s) from additional analyzers specified in contentCategories, if any.
|
|
690
|
+
*/
|
|
691
|
+
omitContent?: boolean;
|
|
692
|
+
}
|
|
693
|
+
export declare function contentAnalyzerConfigSerializer(item: ContentAnalyzerConfig): any;
|
|
694
|
+
export declare function contentAnalyzerConfigDeserializer(item: any): ContentAnalyzerConfig;
|
|
695
|
+
/** Representation format of tables in analyze result markdown. */
|
|
696
|
+
export type TableFormat = "html" | "markdown";
|
|
697
|
+
/** Representation format of charts in analyze result markdown. */
|
|
698
|
+
export type ChartFormat = "chartJs" | "markdown";
|
|
699
|
+
/** Representation format of annotations in analyze result markdown. */
|
|
700
|
+
export type AnnotationFormat = "none" | "markdown";
|
|
701
|
+
export declare function contentCategoryDefinitionRecordSerializer(item: Record<string, ContentCategoryDefinition>): Record<string, any>;
|
|
702
|
+
export declare function contentCategoryDefinitionRecordDeserializer(item: Record<string, any>): Record<string, ContentCategoryDefinition>;
|
|
703
|
+
/** Content category definition. */
|
|
704
|
+
export interface ContentCategoryDefinition {
|
|
705
|
+
/** The description of the category. */
|
|
706
|
+
description?: string;
|
|
707
|
+
/** Optional analyzer used to process the content. */
|
|
708
|
+
analyzerId?: string;
|
|
709
|
+
/** Optional inline definition of analyzer used to process the content. */
|
|
710
|
+
analyzer?: ContentAnalyzer;
|
|
711
|
+
}
|
|
712
|
+
export declare function contentCategoryDefinitionSerializer(item: ContentCategoryDefinition): any;
|
|
713
|
+
export declare function contentCategoryDefinitionDeserializer(item: any): ContentCategoryDefinition;
|
|
714
|
+
/** Schema of fields to be extracted from documents. */
|
|
715
|
+
export interface ContentFieldSchema {
|
|
716
|
+
/** The name of the field schema. */
|
|
717
|
+
name?: string;
|
|
718
|
+
/** A description of the field schema. */
|
|
719
|
+
description?: string;
|
|
720
|
+
/** The fields defined in the schema. */
|
|
721
|
+
fields: Record<string, ContentFieldDefinition>;
|
|
722
|
+
/** Additional definitions referenced by the fields in the schema. */
|
|
723
|
+
definitions?: Record<string, ContentFieldDefinition>;
|
|
724
|
+
}
|
|
725
|
+
export declare function contentFieldSchemaSerializer(item: ContentFieldSchema): any;
|
|
726
|
+
export declare function contentFieldSchemaDeserializer(item: any): ContentFieldSchema;
|
|
727
|
+
export declare function contentFieldDefinitionRecordSerializer(item: Record<string, ContentFieldDefinition>): Record<string, any>;
|
|
728
|
+
export declare function contentFieldDefinitionRecordDeserializer(item: Record<string, any>): Record<string, ContentFieldDefinition>;
|
|
729
|
+
/** Definition of the field using a JSON Schema like syntax. */
|
|
730
|
+
export interface ContentFieldDefinition {
|
|
731
|
+
/** Generation method. */
|
|
732
|
+
method?: GenerationMethod;
|
|
733
|
+
/** Semantic data type of the field value. */
|
|
734
|
+
type?: ContentFieldType;
|
|
735
|
+
/** Field description. */
|
|
736
|
+
description?: string;
|
|
737
|
+
/** Field type schema of each array element, if type is array. */
|
|
738
|
+
itemDefinition?: ContentFieldDefinition;
|
|
739
|
+
/** Named sub-fields, if type is object. */
|
|
740
|
+
properties?: Record<string, ContentFieldDefinition>;
|
|
741
|
+
/** Examples of field values. */
|
|
742
|
+
examples?: string[];
|
|
743
|
+
/** Enumeration of possible field values. */
|
|
744
|
+
enum?: string[];
|
|
745
|
+
/** Descriptions for each enumeration value. */
|
|
746
|
+
enumDescriptions?: Record<string, string>;
|
|
747
|
+
/** Reference to another field definition. */
|
|
748
|
+
ref?: string;
|
|
749
|
+
/** Return grounding source and confidence. */
|
|
750
|
+
estimateSourceAndConfidence?: boolean;
|
|
751
|
+
}
|
|
752
|
+
export declare function contentFieldDefinitionSerializer(item: ContentFieldDefinition): any;
|
|
753
|
+
export declare function contentFieldDefinitionDeserializer(item: any): ContentFieldDefinition;
|
|
754
|
+
/** Generation method. */
|
|
755
|
+
export type GenerationMethod = "generate" | "extract" | "classify";
|
|
756
|
+
/** The location where the data may be processed. */
|
|
757
|
+
export type ProcessingLocation = "geography" | "dataZone" | "global";
|
|
758
|
+
export declare function knowledgeSourceUnionArraySerializer(result: Array<KnowledgeSourceUnion>): any[];
|
|
759
|
+
export declare function knowledgeSourceUnionArrayDeserializer(result: Array<KnowledgeSourceUnion>): any[];
|
|
760
|
+
/** Knowledge source. */
|
|
761
|
+
export interface KnowledgeSource {
|
|
762
|
+
/** The kind of knowledge source. */
|
|
763
|
+
/** The discriminator possible values: labeledData */
|
|
764
|
+
kind: KnowledgeSourceKind;
|
|
765
|
+
}
|
|
766
|
+
export declare function knowledgeSourceSerializer(item: KnowledgeSource): any;
|
|
767
|
+
export declare function knowledgeSourceDeserializer(item: any): KnowledgeSource;
|
|
768
|
+
/** Alias for KnowledgeSourceUnion */
|
|
769
|
+
export type KnowledgeSourceUnion = LabeledDataKnowledgeSource | KnowledgeSource;
|
|
770
|
+
export declare function knowledgeSourceUnionSerializer(item: KnowledgeSourceUnion): any;
|
|
771
|
+
export declare function knowledgeSourceUnionDeserializer(item: any): KnowledgeSourceUnion;
|
|
772
|
+
/** Knowledge source kind. */
|
|
773
|
+
export type KnowledgeSourceKind = "labeledData";
|
|
774
|
+
/** Labeled data knowledge source. */
|
|
775
|
+
export interface LabeledDataKnowledgeSource extends KnowledgeSource {
|
|
776
|
+
/** A blob container containing labeled data. */
|
|
777
|
+
kind: "labeledData";
|
|
778
|
+
/** The URL of the blob container containing labeled data. */
|
|
779
|
+
containerUrl: string;
|
|
780
|
+
/** An optional prefix to filter blobs within the container. */
|
|
781
|
+
prefix?: string;
|
|
782
|
+
/** An optional path to a file listing specific blobs to include. */
|
|
783
|
+
fileListPath: string;
|
|
784
|
+
}
|
|
785
|
+
export declare function labeledDataKnowledgeSourceSerializer(item: LabeledDataKnowledgeSource): any;
|
|
786
|
+
export declare function labeledDataKnowledgeSourceDeserializer(item: any): LabeledDataKnowledgeSource;
|
|
787
|
+
/** Chat completion and embedding models supported by the analyzer. */
|
|
788
|
+
export interface SupportedModels {
|
|
789
|
+
/** Chat completion models supported by the analyzer. */
|
|
790
|
+
completion?: string[];
|
|
791
|
+
/** Embedding models supported by the analyzer. */
|
|
792
|
+
embedding?: string[];
|
|
793
|
+
}
|
|
794
|
+
export declare function supportedModelsDeserializer(item: any): SupportedModels;
|
|
795
|
+
/** Provides status details for analyzer creation operations. */
|
|
796
|
+
export interface ContentAnalyzerOperationStatus {
|
|
797
|
+
/** The unique ID of the operation. */
|
|
798
|
+
id: string;
|
|
799
|
+
/** The status of the operation */
|
|
800
|
+
status: OperationState;
|
|
801
|
+
/** Error object that describes the error when status is "Failed". */
|
|
802
|
+
error?: ErrorModel;
|
|
803
|
+
/** The result of the operation. */
|
|
804
|
+
result?: ContentAnalyzer;
|
|
805
|
+
/** Usage details of the analyzer creation operation. */
|
|
806
|
+
usage?: UsageDetails;
|
|
807
|
+
}
|
|
808
|
+
export declare function contentAnalyzerOperationStatusDeserializer(item: any): ContentAnalyzerOperationStatus;
|
|
809
|
+
/** Default settings for this Content Understanding resource. */
|
|
810
|
+
export interface ContentUnderstandingDefaults {
|
|
811
|
+
/** Specify the default mapping of model names to LLM/embedding deployments in Microsoft Foundry. For details and current semantics, see https://aka.ms/cudoc-quickstart-rest. */
|
|
812
|
+
modelDeployments: Record<string, string>;
|
|
813
|
+
}
|
|
814
|
+
export declare function contentUnderstandingDefaultsDeserializer(item: any): ContentUnderstandingDefaults;
|
|
815
|
+
/** Copy authorization details for cross-resource copy. */
|
|
816
|
+
export interface CopyAuthorization {
|
|
817
|
+
/** Full path of the source analyzer. */
|
|
818
|
+
source: string;
|
|
819
|
+
/** Azure resource ID of the target location to copy to. */
|
|
820
|
+
targetAzureResourceId: string;
|
|
821
|
+
/** Date/time when the copy authorization expires. */
|
|
822
|
+
expiresAt: Date;
|
|
823
|
+
}
|
|
824
|
+
export declare function copyAuthorizationDeserializer(item: any): CopyAuthorization;
|
|
825
|
+
/** Paged collection of ContentAnalyzer items */
|
|
826
|
+
export interface _PagedContentAnalyzer {
|
|
827
|
+
/** The ContentAnalyzer items on this page */
|
|
828
|
+
value: ContentAnalyzer[];
|
|
829
|
+
/** The link to the next page of items */
|
|
830
|
+
nextLink?: string;
|
|
831
|
+
}
|
|
832
|
+
export declare function _pagedContentAnalyzerDeserializer(item: any): _PagedContentAnalyzer;
|
|
833
|
+
export declare function contentAnalyzerArraySerializer(result: Array<ContentAnalyzer>): any[];
|
|
834
|
+
export declare function contentAnalyzerArrayDeserializer(result: Array<ContentAnalyzer>): any[];
|
|
835
|
+
/** model interface RecordMergePatchUpdate */
|
|
836
|
+
export interface RecordMergePatchUpdate {
|
|
837
|
+
/** Additional properties */
|
|
838
|
+
additionalProperties?: Record<string, string>;
|
|
839
|
+
}
|
|
840
|
+
export declare function recordMergePatchUpdateSerializer(item: RecordMergePatchUpdate): any;
|
|
841
|
+
/** Service API versions. */
|
|
842
|
+
export declare enum KnownVersions {
|
|
843
|
+
/** The 2025-11-01 version of the Content Understanding service. */
|
|
844
|
+
V20251101 = "2025-11-01"
|
|
845
|
+
}
|
|
846
|
+
//# sourceMappingURL=models.d.ts.map
|