@aws-amplify/predictions 5.5.24 → 5.5.26
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/lib/.tsbuildinfo +1 -3
- package/lib/Predictions.d.ts +5 -0
- package/lib/Predictions.js +9 -3
- package/lib/Predictions.js.map +1 -1
- package/lib/Providers/AmazonAIConvertPredictionsProvider.d.ts +5 -0
- package/lib/Providers/AmazonAIConvertPredictionsProvider.js +37 -30
- package/lib/Providers/AmazonAIConvertPredictionsProvider.js.map +1 -1
- package/lib/Providers/AmazonAIIdentifyPredictionsProvider.d.ts +5 -0
- package/lib/Providers/AmazonAIIdentifyPredictionsProvider.js +57 -50
- package/lib/Providers/AmazonAIIdentifyPredictionsProvider.js.map +1 -1
- package/lib/Providers/AmazonAIInterpretPredictionsProvider.d.ts +5 -0
- package/lib/Providers/AmazonAIInterpretPredictionsProvider.js +49 -43
- package/lib/Providers/AmazonAIInterpretPredictionsProvider.js.map +1 -1
- package/lib/Providers/AmazonAIPredictionsProvider.d.ts +5 -0
- package/lib/Providers/AmazonAIPredictionsProvider.js +6 -0
- package/lib/Providers/AmazonAIPredictionsProvider.js.map +1 -1
- package/lib/Providers/IdentifyTextUtils.js +8 -8
- package/lib/Providers/IdentifyTextUtils.js.map +1 -1
- package/lib/Providers/Utils.js +3 -3
- package/lib/Providers/Utils.js.map +1 -1
- package/lib/Providers/index.js +5 -4
- package/lib/Providers/index.js.map +1 -1
- package/lib/index.js +6 -5
- package/lib/index.js.map +1 -1
- package/lib/types/AWSTypes.d.ts +6 -7
- package/lib/types/Predictions.d.ts +285 -5
- package/lib/types/Predictions.js +77 -13
- package/lib/types/Predictions.js.map +1 -1
- package/lib/types/Providers/AbstractConvertPredictionsProvider.js +4 -3
- package/lib/types/Providers/AbstractConvertPredictionsProvider.js.map +1 -1
- package/lib/types/Providers/AbstractIdentifyPredictionsProvider.js +4 -3
- package/lib/types/Providers/AbstractIdentifyPredictionsProvider.js.map +1 -1
- package/lib/types/Providers/AbstractInterpretPredictionsProvider.js +2 -1
- package/lib/types/Providers/AbstractInterpretPredictionsProvider.js.map +1 -1
- package/lib/types/Providers/AbstractPredictionsProvider.js +1 -0
- package/lib/types/Providers/AbstractPredictionsProvider.js.map +1 -1
- package/lib-esm/.tsbuildinfo +1 -3
- package/lib-esm/Predictions.d.ts +5 -0
- package/lib-esm/Predictions.js +9 -4
- package/lib-esm/Predictions.js.map +1 -1
- package/lib-esm/Providers/AmazonAIConvertPredictionsProvider.d.ts +5 -0
- package/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js +32 -26
- package/lib-esm/Providers/AmazonAIConvertPredictionsProvider.js.map +1 -1
- package/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.d.ts +5 -0
- package/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js +34 -28
- package/lib-esm/Providers/AmazonAIIdentifyPredictionsProvider.js.map +1 -1
- package/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.d.ts +5 -0
- package/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.js +47 -42
- package/lib-esm/Providers/AmazonAIInterpretPredictionsProvider.js.map +1 -1
- package/lib-esm/Providers/AmazonAIPredictionsProvider.d.ts +5 -0
- package/lib-esm/Providers/AmazonAIPredictionsProvider.js +5 -0
- package/lib-esm/Providers/AmazonAIPredictionsProvider.js.map +1 -1
- package/lib-esm/Providers/IdentifyTextUtils.js +1 -1
- package/lib-esm/Providers/IdentifyTextUtils.js.map +1 -1
- package/lib-esm/Providers/Utils.js.map +1 -1
- package/lib-esm/types/AWSTypes.d.ts +6 -7
- package/lib-esm/types/AWSTypes.js +1 -0
- package/lib-esm/types/Predictions.d.ts +285 -5
- package/lib-esm/types/Predictions.js +63 -0
- package/lib-esm/types/Predictions.js.map +1 -1
- package/lib-esm/types/Providers/AbstractConvertPredictionsProvider.js.map +1 -1
- package/lib-esm/types/Providers/AbstractIdentifyPredictionsProvider.js.map +1 -1
- package/lib-esm/types/Providers/AbstractInterpretPredictionsProvider.js.map +1 -1
- package/package.json +36 -28
- package/src/Predictions.ts +5 -0
- package/src/Providers/AmazonAIConvertPredictionsProvider.ts +5 -0
- package/src/Providers/AmazonAIIdentifyPredictionsProvider.ts +10 -3
- package/src/Providers/AmazonAIInterpretPredictionsProvider.ts +5 -0
- package/src/Providers/AmazonAIPredictionsProvider.ts +5 -0
- package/src/types/Predictions.ts +281 -0
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
/**
|
|
3
2
|
* Base types
|
|
3
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
4
|
+
* See the migration guide:
|
|
5
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
4
6
|
*/
|
|
5
7
|
export interface PredictionsOptions {
|
|
6
8
|
[key: string]: any;
|
|
7
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
12
|
+
* See the migration guide:
|
|
13
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
14
|
+
*/
|
|
8
15
|
export interface ProviderOptions {
|
|
9
16
|
providerName?: string;
|
|
10
17
|
}
|
|
11
18
|
/**
|
|
12
19
|
* Convert types
|
|
20
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
21
|
+
* See the migration guide:
|
|
22
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
13
23
|
*/
|
|
14
24
|
export declare enum InterpretTextCategories {
|
|
15
25
|
ALL = "ALL",
|
|
@@ -19,15 +29,30 @@ export declare enum InterpretTextCategories {
|
|
|
19
29
|
SYNTAX = "SYNTAX",
|
|
20
30
|
KEY_PHRASES = "KEY_PHRASES"
|
|
21
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
34
|
+
* See the migration guide:
|
|
35
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
36
|
+
*/
|
|
22
37
|
export interface InterpretTextInput {
|
|
23
38
|
text: InterpretTextInputLanguage | InterpretTextOthers | InterpretTextAll;
|
|
24
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
42
|
+
* See the migration guide:
|
|
43
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
44
|
+
*/
|
|
25
45
|
export interface InterpretTextInputLanguage {
|
|
26
46
|
source: {
|
|
27
47
|
text: string;
|
|
28
48
|
};
|
|
29
49
|
type: InterpretTextCategories.LANGUAGE;
|
|
30
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
53
|
+
* See the migration guide:
|
|
54
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
55
|
+
*/
|
|
31
56
|
export interface InterpretTextOthers {
|
|
32
57
|
source: {
|
|
33
58
|
text: string;
|
|
@@ -35,23 +60,48 @@ export interface InterpretTextOthers {
|
|
|
35
60
|
};
|
|
36
61
|
type: InterpretTextCategories.ENTITIES | InterpretTextCategories.SENTIMENT | InterpretTextCategories.SYNTAX | InterpretTextCategories.KEY_PHRASES;
|
|
37
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
65
|
+
* See the migration guide:
|
|
66
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
67
|
+
*/
|
|
38
68
|
export interface InterpretTextAll {
|
|
39
69
|
source: {
|
|
40
70
|
text: string;
|
|
41
71
|
};
|
|
42
72
|
type: InterpretTextCategories.ALL;
|
|
43
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
76
|
+
* See the migration guide:
|
|
77
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
78
|
+
*/
|
|
44
79
|
export interface TextEntities {
|
|
45
80
|
type: string;
|
|
46
81
|
text: string;
|
|
47
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
85
|
+
* See the migration guide:
|
|
86
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
87
|
+
*/
|
|
48
88
|
export interface KeyPhrases {
|
|
49
89
|
text: string;
|
|
50
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
93
|
+
* See the migration guide:
|
|
94
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
95
|
+
*/
|
|
51
96
|
export interface TextSyntax {
|
|
52
97
|
text: string;
|
|
53
98
|
syntax: string;
|
|
54
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
102
|
+
* See the migration guide:
|
|
103
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
104
|
+
*/
|
|
55
105
|
export interface TextSentiment {
|
|
56
106
|
predominant: string;
|
|
57
107
|
positive: number;
|
|
@@ -59,6 +109,11 @@ export interface TextSentiment {
|
|
|
59
109
|
neutral: number;
|
|
60
110
|
mixed: number;
|
|
61
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
114
|
+
* See the migration guide:
|
|
115
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
116
|
+
*/
|
|
62
117
|
export interface InterpretTextOutput {
|
|
63
118
|
textInterpretation: {
|
|
64
119
|
language?: string;
|
|
@@ -68,6 +123,11 @@ export interface InterpretTextOutput {
|
|
|
68
123
|
syntax?: Array<TextSyntax>;
|
|
69
124
|
};
|
|
70
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
128
|
+
* See the migration guide:
|
|
129
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
130
|
+
*/
|
|
71
131
|
export interface TranslateTextInput {
|
|
72
132
|
translateText: {
|
|
73
133
|
source: {
|
|
@@ -77,10 +137,20 @@ export interface TranslateTextInput {
|
|
|
77
137
|
targetLanguage?: string;
|
|
78
138
|
};
|
|
79
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
142
|
+
* See the migration guide:
|
|
143
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
144
|
+
*/
|
|
80
145
|
export interface TranslateTextOutput {
|
|
81
146
|
text: string;
|
|
82
147
|
language: string;
|
|
83
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
151
|
+
* See the migration guide:
|
|
152
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
153
|
+
*/
|
|
84
154
|
export interface TextToSpeechInput {
|
|
85
155
|
textToSpeech: {
|
|
86
156
|
source: {
|
|
@@ -90,6 +160,11 @@ export interface TextToSpeechInput {
|
|
|
90
160
|
voiceId?: string;
|
|
91
161
|
};
|
|
92
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
165
|
+
* See the migration guide:
|
|
166
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
167
|
+
*/
|
|
93
168
|
export interface TextToSpeechOutput {
|
|
94
169
|
speech: {
|
|
95
170
|
url: string;
|
|
@@ -97,56 +172,116 @@ export interface TextToSpeechOutput {
|
|
|
97
172
|
audioStream: Buffer;
|
|
98
173
|
text: string;
|
|
99
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
177
|
+
* See the migration guide:
|
|
178
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
179
|
+
*/
|
|
100
180
|
export interface StorageSource {
|
|
101
181
|
key: string;
|
|
102
182
|
level?: 'public' | 'private' | 'protected';
|
|
103
183
|
identityId?: string;
|
|
104
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
187
|
+
* See the migration guide:
|
|
188
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
189
|
+
*/
|
|
105
190
|
export interface FileSource {
|
|
106
191
|
file: File;
|
|
107
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
195
|
+
* See the migration guide:
|
|
196
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
197
|
+
*/
|
|
108
198
|
export interface BytesSource {
|
|
109
199
|
bytes: Buffer | ArrayBuffer | Blob | string;
|
|
110
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
203
|
+
* See the migration guide:
|
|
204
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
205
|
+
*/
|
|
111
206
|
export interface SpeechToTextInput {
|
|
112
207
|
transcription: {
|
|
113
208
|
source: BytesSource;
|
|
114
209
|
language?: string;
|
|
115
210
|
};
|
|
116
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
214
|
+
* See the migration guide:
|
|
215
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
216
|
+
*/
|
|
117
217
|
export interface SpeechToTextOutput {
|
|
118
218
|
transcription: {
|
|
119
219
|
fullText: string;
|
|
120
220
|
};
|
|
121
221
|
}
|
|
122
|
-
|
|
222
|
+
/**
|
|
223
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
224
|
+
* See the migration guide:
|
|
225
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
226
|
+
*/
|
|
227
|
+
export type IdentifySource = StorageSource | FileSource | BytesSource;
|
|
228
|
+
/**
|
|
229
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
230
|
+
* See the migration guide:
|
|
231
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
232
|
+
*/
|
|
123
233
|
export interface IdentifyTextInput {
|
|
124
234
|
text: {
|
|
125
235
|
source: IdentifySource;
|
|
126
236
|
format?: 'PLAIN' | 'FORM' | 'TABLE' | 'ALL';
|
|
127
237
|
};
|
|
128
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
241
|
+
* See the migration guide:
|
|
242
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
243
|
+
*/
|
|
129
244
|
export interface Word {
|
|
130
245
|
text?: string;
|
|
131
246
|
polygon?: Polygon;
|
|
132
247
|
boundingBox?: BoundingBox;
|
|
133
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
251
|
+
* See the migration guide:
|
|
252
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
253
|
+
*/
|
|
134
254
|
export interface LineDetailed {
|
|
135
255
|
text?: string;
|
|
136
256
|
polygon?: Polygon;
|
|
137
257
|
boundingBox?: BoundingBox;
|
|
138
258
|
page?: number;
|
|
139
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
262
|
+
* See the migration guide:
|
|
263
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
264
|
+
*/
|
|
140
265
|
export interface Content {
|
|
141
266
|
text?: string;
|
|
142
267
|
selected?: boolean;
|
|
143
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
271
|
+
* See the migration guide:
|
|
272
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
273
|
+
*/
|
|
144
274
|
export interface TableCell extends Content {
|
|
145
275
|
boundingBox?: BoundingBox;
|
|
146
276
|
polygon?: Polygon;
|
|
147
277
|
rowSpan?: Number;
|
|
148
278
|
columnSpan?: Number;
|
|
149
279
|
}
|
|
280
|
+
/**
|
|
281
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
282
|
+
* See the migration guide:
|
|
283
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
284
|
+
*/
|
|
150
285
|
export interface Table {
|
|
151
286
|
size: {
|
|
152
287
|
rows: number;
|
|
@@ -156,12 +291,22 @@ export interface Table {
|
|
|
156
291
|
polygon: Polygon;
|
|
157
292
|
boundingBox: BoundingBox;
|
|
158
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
296
|
+
* See the migration guide:
|
|
297
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
298
|
+
*/
|
|
159
299
|
export interface KeyValue {
|
|
160
300
|
key: string;
|
|
161
301
|
value: Content;
|
|
162
302
|
polygon: Polygon;
|
|
163
303
|
boundingBox: BoundingBox;
|
|
164
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
307
|
+
* See the migration guide:
|
|
308
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
309
|
+
*/
|
|
165
310
|
export interface IdentifyTextOutput {
|
|
166
311
|
text: {
|
|
167
312
|
fullText: string;
|
|
@@ -177,23 +322,48 @@ export interface IdentifyTextOutput {
|
|
|
177
322
|
}[];
|
|
178
323
|
};
|
|
179
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
327
|
+
* See the migration guide:
|
|
328
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
329
|
+
*/
|
|
180
330
|
export interface IdentifyLabelsInput {
|
|
181
331
|
labels: {
|
|
182
332
|
source: IdentifySource;
|
|
183
333
|
type: 'LABELS' | 'UNSAFE' | 'ALL';
|
|
184
334
|
};
|
|
185
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
338
|
+
* See the migration guide:
|
|
339
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
340
|
+
*/
|
|
186
341
|
export interface Point {
|
|
187
342
|
x?: Number;
|
|
188
343
|
y?: Number;
|
|
189
344
|
}
|
|
190
|
-
|
|
345
|
+
/**
|
|
346
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
347
|
+
* See the migration guide:
|
|
348
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
349
|
+
*/
|
|
350
|
+
export type Polygon = Array<Point> | Iterable<Point>;
|
|
351
|
+
/**
|
|
352
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
353
|
+
* See the migration guide:
|
|
354
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
355
|
+
*/
|
|
191
356
|
export interface BoundingBox {
|
|
192
357
|
width?: Number;
|
|
193
358
|
height?: Number;
|
|
194
359
|
left?: Number;
|
|
195
360
|
top?: Number;
|
|
196
361
|
}
|
|
362
|
+
/**
|
|
363
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
364
|
+
* See the migration guide:
|
|
365
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
366
|
+
*/
|
|
197
367
|
export interface IdentifyLabelsOutput {
|
|
198
368
|
labels?: {
|
|
199
369
|
name: string;
|
|
@@ -202,22 +372,47 @@ export interface IdentifyLabelsOutput {
|
|
|
202
372
|
}[];
|
|
203
373
|
unsafe?: 'YES' | 'NO' | 'UNKNOWN';
|
|
204
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
377
|
+
* See the migration guide:
|
|
378
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
379
|
+
*/
|
|
205
380
|
export interface IdentifyEntitiesInput {
|
|
206
381
|
entities: IdentifyFromCollection | IdentifyCelebrities | IdentifyEntities;
|
|
207
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
385
|
+
* See the migration guide:
|
|
386
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
387
|
+
*/
|
|
208
388
|
export interface IdentifyFromCollection {
|
|
209
389
|
source: IdentifySource;
|
|
210
390
|
collection: true;
|
|
211
391
|
collectionId?: string;
|
|
212
392
|
maxEntities?: number;
|
|
213
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
396
|
+
* See the migration guide:
|
|
397
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
398
|
+
*/
|
|
214
399
|
export interface IdentifyCelebrities {
|
|
215
400
|
source: IdentifySource;
|
|
216
401
|
celebrityDetection: true;
|
|
217
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
405
|
+
* See the migration guide:
|
|
406
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
407
|
+
*/
|
|
218
408
|
export interface IdentifyEntities {
|
|
219
409
|
source: IdentifySource;
|
|
220
410
|
}
|
|
411
|
+
/**
|
|
412
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
413
|
+
* See the migration guide:
|
|
414
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
415
|
+
*/
|
|
221
416
|
export interface FaceAttributes {
|
|
222
417
|
smile?: boolean;
|
|
223
418
|
eyeglasses?: boolean;
|
|
@@ -229,6 +424,11 @@ export interface FaceAttributes {
|
|
|
229
424
|
mouthOpen?: boolean;
|
|
230
425
|
emotions?: string[];
|
|
231
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
429
|
+
* See the migration guide:
|
|
430
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
431
|
+
*/
|
|
232
432
|
export interface IdentifyEntitiesOutput {
|
|
233
433
|
entities: {
|
|
234
434
|
boundingBox?: BoundingBox;
|
|
@@ -245,18 +445,83 @@ export interface IdentifyEntitiesOutput {
|
|
|
245
445
|
metadata?: object;
|
|
246
446
|
}[];
|
|
247
447
|
}
|
|
448
|
+
/**
|
|
449
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
450
|
+
* See the migration guide:
|
|
451
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
452
|
+
*/
|
|
248
453
|
export declare function isIdentifyFromCollection(obj: any): obj is IdentifyFromCollection;
|
|
454
|
+
/**
|
|
455
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
456
|
+
* See the migration guide:
|
|
457
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
458
|
+
*/
|
|
249
459
|
export declare function isIdentifyCelebrities(obj: any): obj is IdentifyCelebrities;
|
|
460
|
+
/**
|
|
461
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
462
|
+
* See the migration guide:
|
|
463
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
464
|
+
*/
|
|
250
465
|
export declare function isTranslateTextInput(obj: any): obj is TranslateTextInput;
|
|
466
|
+
/**
|
|
467
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
468
|
+
* See the migration guide:
|
|
469
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
470
|
+
*/
|
|
251
471
|
export declare function isTextToSpeechInput(obj: any): obj is TextToSpeechInput;
|
|
472
|
+
/**
|
|
473
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
474
|
+
* See the migration guide:
|
|
475
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
476
|
+
*/
|
|
252
477
|
export declare function isSpeechToTextInput(obj: any): obj is SpeechToTextInput;
|
|
478
|
+
/**
|
|
479
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
480
|
+
* See the migration guide:
|
|
481
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
482
|
+
*/
|
|
253
483
|
export declare function isStorageSource(obj: any): obj is StorageSource;
|
|
484
|
+
/**
|
|
485
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
486
|
+
* See the migration guide:
|
|
487
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
488
|
+
*/
|
|
254
489
|
export declare function isFileSource(obj: any): obj is FileSource;
|
|
490
|
+
/**
|
|
491
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
492
|
+
* See the migration guide:
|
|
493
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
494
|
+
*/
|
|
255
495
|
export declare function isBytesSource(obj: any): obj is BytesSource;
|
|
496
|
+
/**
|
|
497
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
498
|
+
* See the migration guide:
|
|
499
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
500
|
+
*/
|
|
256
501
|
export declare function isIdentifyTextInput(obj: any): obj is IdentifyTextInput;
|
|
502
|
+
/**
|
|
503
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
504
|
+
* See the migration guide:
|
|
505
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
506
|
+
*/
|
|
257
507
|
export declare function isIdentifyLabelsInput(obj: any): obj is IdentifyLabelsInput;
|
|
508
|
+
/**
|
|
509
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
510
|
+
* See the migration guide:
|
|
511
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
512
|
+
*/
|
|
258
513
|
export declare function isIdentifyEntitiesInput(obj: any): obj is IdentifyEntitiesInput;
|
|
514
|
+
/**
|
|
515
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
516
|
+
* See the migration guide:
|
|
517
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
518
|
+
*/
|
|
259
519
|
export declare function isInterpretTextInput(obj: any): obj is InterpretTextInput;
|
|
520
|
+
/**
|
|
521
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
522
|
+
* See the migration guide:
|
|
523
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
524
|
+
*/
|
|
260
525
|
export interface Geometry {
|
|
261
526
|
/**
|
|
262
527
|
* <p>An axis-aligned coarse representation of the detected text's location on the image.</p>
|
|
@@ -267,6 +532,11 @@ export interface Geometry {
|
|
|
267
532
|
*/
|
|
268
533
|
Polygon?: Array<Point> | Iterable<Point>;
|
|
269
534
|
}
|
|
535
|
+
/**
|
|
536
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
537
|
+
* See the migration guide:
|
|
538
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
539
|
+
*/
|
|
270
540
|
export interface Relationship {
|
|
271
541
|
/**
|
|
272
542
|
* <p>The type of relationship that the blocks in the IDs array have with the current block. The relationship can be <code>VALUE</code> or <code>CHILD</code>.</p>
|
|
@@ -277,5 +547,15 @@ export interface Relationship {
|
|
|
277
547
|
*/
|
|
278
548
|
Ids?: Array<string> | Iterable<string>;
|
|
279
549
|
}
|
|
280
|
-
|
|
281
|
-
|
|
550
|
+
/**
|
|
551
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
552
|
+
* See the migration guide:
|
|
553
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
554
|
+
*/
|
|
555
|
+
export type FeatureType = 'TABLES' | 'FORMS' | string;
|
|
556
|
+
/**
|
|
557
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
558
|
+
* See the migration guide:
|
|
559
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
560
|
+
*/
|
|
561
|
+
export type FeatureTypes = FeatureType[];
|
package/lib/types/Predictions.js
CHANGED
|
@@ -3,8 +3,24 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
/* tslint:disable:max-line-length */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InterpretTextCategories = void 0;
|
|
7
|
+
exports.isIdentifyFromCollection = isIdentifyFromCollection;
|
|
8
|
+
exports.isIdentifyCelebrities = isIdentifyCelebrities;
|
|
9
|
+
exports.isTranslateTextInput = isTranslateTextInput;
|
|
10
|
+
exports.isTextToSpeechInput = isTextToSpeechInput;
|
|
11
|
+
exports.isSpeechToTextInput = isSpeechToTextInput;
|
|
12
|
+
exports.isStorageSource = isStorageSource;
|
|
13
|
+
exports.isFileSource = isFileSource;
|
|
14
|
+
exports.isBytesSource = isBytesSource;
|
|
15
|
+
exports.isIdentifyTextInput = isIdentifyTextInput;
|
|
16
|
+
exports.isIdentifyLabelsInput = isIdentifyLabelsInput;
|
|
17
|
+
exports.isIdentifyEntitiesInput = isIdentifyEntitiesInput;
|
|
18
|
+
exports.isInterpretTextInput = isInterpretTextInput;
|
|
6
19
|
/**
|
|
7
20
|
* Convert types
|
|
21
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
22
|
+
* See the migration guide:
|
|
23
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
8
24
|
*/
|
|
9
25
|
var InterpretTextCategories;
|
|
10
26
|
(function (InterpretTextCategories) {
|
|
@@ -14,66 +30,114 @@ var InterpretTextCategories;
|
|
|
14
30
|
InterpretTextCategories["SENTIMENT"] = "SENTIMENT";
|
|
15
31
|
InterpretTextCategories["SYNTAX"] = "SYNTAX";
|
|
16
32
|
InterpretTextCategories["KEY_PHRASES"] = "KEY_PHRASES";
|
|
17
|
-
})(InterpretTextCategories
|
|
33
|
+
})(InterpretTextCategories || (exports.InterpretTextCategories = InterpretTextCategories = {}));
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
36
|
+
* See the migration guide:
|
|
37
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
38
|
+
*/
|
|
18
39
|
function isIdentifyFromCollection(obj) {
|
|
19
40
|
var key = 'collection';
|
|
20
41
|
var keyId = 'collectionId';
|
|
21
42
|
return obj && (obj.hasOwnProperty(key) || obj.hasOwnProperty(keyId));
|
|
22
43
|
}
|
|
23
|
-
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
46
|
+
* See the migration guide:
|
|
47
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
48
|
+
*/
|
|
24
49
|
function isIdentifyCelebrities(obj) {
|
|
25
50
|
var key = 'celebrityDetection';
|
|
26
51
|
return obj && obj.hasOwnProperty(key);
|
|
27
52
|
}
|
|
28
|
-
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
55
|
+
* See the migration guide:
|
|
56
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
57
|
+
*/
|
|
29
58
|
function isTranslateTextInput(obj) {
|
|
30
59
|
var key = 'translateText';
|
|
31
60
|
return obj && obj.hasOwnProperty(key);
|
|
32
61
|
}
|
|
33
|
-
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
64
|
+
* See the migration guide:
|
|
65
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
66
|
+
*/
|
|
34
67
|
function isTextToSpeechInput(obj) {
|
|
35
68
|
var key = 'textToSpeech';
|
|
36
69
|
return obj && obj.hasOwnProperty(key);
|
|
37
70
|
}
|
|
38
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
73
|
+
* See the migration guide:
|
|
74
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
75
|
+
*/
|
|
39
76
|
function isSpeechToTextInput(obj) {
|
|
40
77
|
var key = 'transcription';
|
|
41
78
|
return obj && obj.hasOwnProperty(key);
|
|
42
79
|
}
|
|
43
|
-
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
82
|
+
* See the migration guide:
|
|
83
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
84
|
+
*/
|
|
44
85
|
function isStorageSource(obj) {
|
|
45
86
|
var key = 'key';
|
|
46
87
|
return obj && obj.hasOwnProperty(key);
|
|
47
88
|
}
|
|
48
|
-
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
91
|
+
* See the migration guide:
|
|
92
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
93
|
+
*/
|
|
49
94
|
function isFileSource(obj) {
|
|
50
95
|
var key = 'file';
|
|
51
96
|
return obj && obj.hasOwnProperty(key);
|
|
52
97
|
}
|
|
53
|
-
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
100
|
+
* See the migration guide:
|
|
101
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
102
|
+
*/
|
|
54
103
|
function isBytesSource(obj) {
|
|
55
104
|
var key = 'bytes';
|
|
56
105
|
return obj && obj.hasOwnProperty(key);
|
|
57
106
|
}
|
|
58
|
-
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
109
|
+
* See the migration guide:
|
|
110
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
111
|
+
*/
|
|
59
112
|
function isIdentifyTextInput(obj) {
|
|
60
113
|
var key = 'text';
|
|
61
114
|
return obj && obj.hasOwnProperty(key);
|
|
62
115
|
}
|
|
63
|
-
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
118
|
+
* See the migration guide:
|
|
119
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
120
|
+
*/
|
|
64
121
|
function isIdentifyLabelsInput(obj) {
|
|
65
122
|
var key = 'labels';
|
|
66
123
|
return obj && obj.hasOwnProperty(key);
|
|
67
124
|
}
|
|
68
|
-
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
127
|
+
* See the migration guide:
|
|
128
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
129
|
+
*/
|
|
69
130
|
function isIdentifyEntitiesInput(obj) {
|
|
70
131
|
var key = 'entities';
|
|
71
132
|
return obj && obj.hasOwnProperty(key);
|
|
72
133
|
}
|
|
73
|
-
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
136
|
+
* See the migration guide:
|
|
137
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
138
|
+
*/
|
|
74
139
|
function isInterpretTextInput(obj) {
|
|
75
140
|
var key = 'text';
|
|
76
141
|
return obj && obj.hasOwnProperty(key);
|
|
77
142
|
}
|
|
78
|
-
exports.isInterpretTextInput = isInterpretTextInput;
|
|
79
143
|
//# sourceMappingURL=Predictions.js.map
|