@aws-sdk/client-rekognition 3.686.0 → 3.691.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.
@@ -28,8 +28,8 @@ import {
28
28
  } from "./models_0";
29
29
  import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
30
30
  export interface MatchedUser {
31
- UserId?: string;
32
- UserStatus?: UserStatus;
31
+ UserId?: string | undefined;
32
+ UserStatus?: UserStatus | undefined;
33
33
  }
34
34
  export interface NotificationChannel {
35
35
  SNSTopicArn: string | undefined;
@@ -38,76 +38,76 @@ export interface NotificationChannel {
38
38
  export interface PutProjectPolicyRequest {
39
39
  ProjectArn: string | undefined;
40
40
  PolicyName: string | undefined;
41
- PolicyRevisionId?: string;
41
+ PolicyRevisionId?: string | undefined;
42
42
  PolicyDocument: string | undefined;
43
43
  }
44
44
  export interface PutProjectPolicyResponse {
45
- PolicyRevisionId?: string;
45
+ PolicyRevisionId?: string | undefined;
46
46
  }
47
47
  export interface RecognizeCelebritiesRequest {
48
48
  Image: Image | undefined;
49
49
  }
50
50
  export interface RecognizeCelebritiesResponse {
51
- CelebrityFaces?: Celebrity[];
52
- UnrecognizedFaces?: ComparedFace[];
53
- OrientationCorrection?: OrientationCorrection;
51
+ CelebrityFaces?: Celebrity[] | undefined;
52
+ UnrecognizedFaces?: ComparedFace[] | undefined;
53
+ OrientationCorrection?: OrientationCorrection | undefined;
54
54
  }
55
55
  export interface SearchFacesRequest {
56
56
  CollectionId: string | undefined;
57
57
  FaceId: string | undefined;
58
- MaxFaces?: number;
59
- FaceMatchThreshold?: number;
58
+ MaxFaces?: number | undefined;
59
+ FaceMatchThreshold?: number | undefined;
60
60
  }
61
61
  export interface SearchFacesResponse {
62
- SearchedFaceId?: string;
63
- FaceMatches?: FaceMatch[];
64
- FaceModelVersion?: string;
62
+ SearchedFaceId?: string | undefined;
63
+ FaceMatches?: FaceMatch[] | undefined;
64
+ FaceModelVersion?: string | undefined;
65
65
  }
66
66
  export interface SearchFacesByImageRequest {
67
67
  CollectionId: string | undefined;
68
68
  Image: Image | undefined;
69
- MaxFaces?: number;
70
- FaceMatchThreshold?: number;
71
- QualityFilter?: QualityFilter;
69
+ MaxFaces?: number | undefined;
70
+ FaceMatchThreshold?: number | undefined;
71
+ QualityFilter?: QualityFilter | undefined;
72
72
  }
73
73
  export interface SearchFacesByImageResponse {
74
- SearchedFaceBoundingBox?: BoundingBox;
75
- SearchedFaceConfidence?: number;
76
- FaceMatches?: FaceMatch[];
77
- FaceModelVersion?: string;
74
+ SearchedFaceBoundingBox?: BoundingBox | undefined;
75
+ SearchedFaceConfidence?: number | undefined;
76
+ FaceMatches?: FaceMatch[] | undefined;
77
+ FaceModelVersion?: string | undefined;
78
78
  }
79
79
  export interface SearchUsersRequest {
80
80
  CollectionId: string | undefined;
81
- UserId?: string;
82
- FaceId?: string;
83
- UserMatchThreshold?: number;
84
- MaxUsers?: number;
81
+ UserId?: string | undefined;
82
+ FaceId?: string | undefined;
83
+ UserMatchThreshold?: number | undefined;
84
+ MaxUsers?: number | undefined;
85
85
  }
86
86
  export interface SearchedFace {
87
- FaceId?: string;
87
+ FaceId?: string | undefined;
88
88
  }
89
89
  export interface SearchedUser {
90
- UserId?: string;
90
+ UserId?: string | undefined;
91
91
  }
92
92
  export interface UserMatch {
93
- Similarity?: number;
94
- User?: MatchedUser;
93
+ Similarity?: number | undefined;
94
+ User?: MatchedUser | undefined;
95
95
  }
96
96
  export interface SearchUsersResponse {
97
- UserMatches?: UserMatch[];
98
- FaceModelVersion?: string;
99
- SearchedFace?: SearchedFace;
100
- SearchedUser?: SearchedUser;
97
+ UserMatches?: UserMatch[] | undefined;
98
+ FaceModelVersion?: string | undefined;
99
+ SearchedFace?: SearchedFace | undefined;
100
+ SearchedUser?: SearchedUser | undefined;
101
101
  }
102
102
  export interface SearchUsersByImageRequest {
103
103
  CollectionId: string | undefined;
104
104
  Image: Image | undefined;
105
- UserMatchThreshold?: number;
106
- MaxUsers?: number;
107
- QualityFilter?: QualityFilter;
105
+ UserMatchThreshold?: number | undefined;
106
+ MaxUsers?: number | undefined;
107
+ QualityFilter?: QualityFilter | undefined;
108
108
  }
109
109
  export interface SearchedFaceDetails {
110
- FaceDetail?: FaceDetail;
110
+ FaceDetail?: FaceDetail | undefined;
111
111
  }
112
112
  export declare const UnsearchedFaceReason: {
113
113
  readonly EXCEEDS_MAX_FACES: "EXCEEDS_MAX_FACES";
@@ -122,160 +122,160 @@ export declare const UnsearchedFaceReason: {
122
122
  export type UnsearchedFaceReason =
123
123
  (typeof UnsearchedFaceReason)[keyof typeof UnsearchedFaceReason];
124
124
  export interface UnsearchedFace {
125
- FaceDetails?: FaceDetail;
126
- Reasons?: UnsearchedFaceReason[];
125
+ FaceDetails?: FaceDetail | undefined;
126
+ Reasons?: UnsearchedFaceReason[] | undefined;
127
127
  }
128
128
  export interface SearchUsersByImageResponse {
129
- UserMatches?: UserMatch[];
130
- FaceModelVersion?: string;
131
- SearchedFace?: SearchedFaceDetails;
132
- UnsearchedFaces?: UnsearchedFace[];
129
+ UserMatches?: UserMatch[] | undefined;
130
+ FaceModelVersion?: string | undefined;
131
+ SearchedFace?: SearchedFaceDetails | undefined;
132
+ UnsearchedFaces?: UnsearchedFace[] | undefined;
133
133
  }
134
134
  export interface StartCelebrityRecognitionRequest {
135
135
  Video: Video | undefined;
136
- ClientRequestToken?: string;
137
- NotificationChannel?: NotificationChannel;
138
- JobTag?: string;
136
+ ClientRequestToken?: string | undefined;
137
+ NotificationChannel?: NotificationChannel | undefined;
138
+ JobTag?: string | undefined;
139
139
  }
140
140
  export interface StartCelebrityRecognitionResponse {
141
- JobId?: string;
141
+ JobId?: string | undefined;
142
142
  }
143
143
  export declare class VideoTooLargeException extends __BaseException {
144
144
  readonly name: "VideoTooLargeException";
145
145
  readonly $fault: "client";
146
- Message?: string;
147
- Code?: string;
148
- Logref?: string;
146
+ Message?: string | undefined;
147
+ Code?: string | undefined;
148
+ Logref?: string | undefined;
149
149
  constructor(
150
150
  opts: __ExceptionOptionType<VideoTooLargeException, __BaseException>
151
151
  );
152
152
  }
153
153
  export interface StartContentModerationRequest {
154
154
  Video: Video | undefined;
155
- MinConfidence?: number;
156
- ClientRequestToken?: string;
157
- NotificationChannel?: NotificationChannel;
158
- JobTag?: string;
155
+ MinConfidence?: number | undefined;
156
+ ClientRequestToken?: string | undefined;
157
+ NotificationChannel?: NotificationChannel | undefined;
158
+ JobTag?: string | undefined;
159
159
  }
160
160
  export interface StartContentModerationResponse {
161
- JobId?: string;
161
+ JobId?: string | undefined;
162
162
  }
163
163
  export interface StartFaceDetectionRequest {
164
164
  Video: Video | undefined;
165
- ClientRequestToken?: string;
166
- NotificationChannel?: NotificationChannel;
167
- FaceAttributes?: FaceAttributes;
168
- JobTag?: string;
165
+ ClientRequestToken?: string | undefined;
166
+ NotificationChannel?: NotificationChannel | undefined;
167
+ FaceAttributes?: FaceAttributes | undefined;
168
+ JobTag?: string | undefined;
169
169
  }
170
170
  export interface StartFaceDetectionResponse {
171
- JobId?: string;
171
+ JobId?: string | undefined;
172
172
  }
173
173
  export interface StartFaceSearchRequest {
174
174
  Video: Video | undefined;
175
- ClientRequestToken?: string;
176
- FaceMatchThreshold?: number;
175
+ ClientRequestToken?: string | undefined;
176
+ FaceMatchThreshold?: number | undefined;
177
177
  CollectionId: string | undefined;
178
- NotificationChannel?: NotificationChannel;
179
- JobTag?: string;
178
+ NotificationChannel?: NotificationChannel | undefined;
179
+ JobTag?: string | undefined;
180
180
  }
181
181
  export interface StartFaceSearchResponse {
182
- JobId?: string;
182
+ JobId?: string | undefined;
183
183
  }
184
184
  export interface StartLabelDetectionRequest {
185
185
  Video: Video | undefined;
186
- ClientRequestToken?: string;
187
- MinConfidence?: number;
188
- NotificationChannel?: NotificationChannel;
189
- JobTag?: string;
190
- Features?: LabelDetectionFeatureName[];
191
- Settings?: LabelDetectionSettings;
186
+ ClientRequestToken?: string | undefined;
187
+ MinConfidence?: number | undefined;
188
+ NotificationChannel?: NotificationChannel | undefined;
189
+ JobTag?: string | undefined;
190
+ Features?: LabelDetectionFeatureName[] | undefined;
191
+ Settings?: LabelDetectionSettings | undefined;
192
192
  }
193
193
  export interface StartLabelDetectionResponse {
194
- JobId?: string;
194
+ JobId?: string | undefined;
195
195
  }
196
196
  export interface StartMediaAnalysisJobRequest {
197
- ClientRequestToken?: string;
198
- JobName?: string;
197
+ ClientRequestToken?: string | undefined;
198
+ JobName?: string | undefined;
199
199
  OperationsConfig: MediaAnalysisOperationsConfig | undefined;
200
200
  Input: MediaAnalysisInput | undefined;
201
201
  OutputConfig: MediaAnalysisOutputConfig | undefined;
202
- KmsKeyId?: string;
202
+ KmsKeyId?: string | undefined;
203
203
  }
204
204
  export interface StartMediaAnalysisJobResponse {
205
205
  JobId: string | undefined;
206
206
  }
207
207
  export interface StartPersonTrackingRequest {
208
208
  Video: Video | undefined;
209
- ClientRequestToken?: string;
210
- NotificationChannel?: NotificationChannel;
211
- JobTag?: string;
209
+ ClientRequestToken?: string | undefined;
210
+ NotificationChannel?: NotificationChannel | undefined;
211
+ JobTag?: string | undefined;
212
212
  }
213
213
  export interface StartPersonTrackingResponse {
214
- JobId?: string;
214
+ JobId?: string | undefined;
215
215
  }
216
216
  export interface StartProjectVersionRequest {
217
217
  ProjectVersionArn: string | undefined;
218
218
  MinInferenceUnits: number | undefined;
219
- MaxInferenceUnits?: number;
219
+ MaxInferenceUnits?: number | undefined;
220
220
  }
221
221
  export interface StartProjectVersionResponse {
222
- Status?: ProjectVersionStatus;
222
+ Status?: ProjectVersionStatus | undefined;
223
223
  }
224
224
  export interface StartShotDetectionFilter {
225
- MinSegmentConfidence?: number;
225
+ MinSegmentConfidence?: number | undefined;
226
226
  }
227
227
  export interface StartTechnicalCueDetectionFilter {
228
- MinSegmentConfidence?: number;
229
- BlackFrame?: BlackFrame;
228
+ MinSegmentConfidence?: number | undefined;
229
+ BlackFrame?: BlackFrame | undefined;
230
230
  }
231
231
  export interface StartSegmentDetectionFilters {
232
- TechnicalCueFilter?: StartTechnicalCueDetectionFilter;
233
- ShotFilter?: StartShotDetectionFilter;
232
+ TechnicalCueFilter?: StartTechnicalCueDetectionFilter | undefined;
233
+ ShotFilter?: StartShotDetectionFilter | undefined;
234
234
  }
235
235
  export interface StartSegmentDetectionRequest {
236
236
  Video: Video | undefined;
237
- ClientRequestToken?: string;
238
- NotificationChannel?: NotificationChannel;
239
- JobTag?: string;
240
- Filters?: StartSegmentDetectionFilters;
237
+ ClientRequestToken?: string | undefined;
238
+ NotificationChannel?: NotificationChannel | undefined;
239
+ JobTag?: string | undefined;
240
+ Filters?: StartSegmentDetectionFilters | undefined;
241
241
  SegmentTypes: SegmentType[] | undefined;
242
242
  }
243
243
  export interface StartSegmentDetectionResponse {
244
- JobId?: string;
244
+ JobId?: string | undefined;
245
245
  }
246
246
  export interface StreamProcessingStartSelector {
247
- KVSStreamStartSelector?: KinesisVideoStreamStartSelector;
247
+ KVSStreamStartSelector?: KinesisVideoStreamStartSelector | undefined;
248
248
  }
249
249
  export interface StreamProcessingStopSelector {
250
- MaxDurationInSeconds?: number;
250
+ MaxDurationInSeconds?: number | undefined;
251
251
  }
252
252
  export interface StartStreamProcessorRequest {
253
253
  Name: string | undefined;
254
- StartSelector?: StreamProcessingStartSelector;
255
- StopSelector?: StreamProcessingStopSelector;
254
+ StartSelector?: StreamProcessingStartSelector | undefined;
255
+ StopSelector?: StreamProcessingStopSelector | undefined;
256
256
  }
257
257
  export interface StartStreamProcessorResponse {
258
- SessionId?: string;
258
+ SessionId?: string | undefined;
259
259
  }
260
260
  export interface StartTextDetectionFilters {
261
- WordFilter?: DetectionFilter;
262
- RegionsOfInterest?: RegionOfInterest[];
261
+ WordFilter?: DetectionFilter | undefined;
262
+ RegionsOfInterest?: RegionOfInterest[] | undefined;
263
263
  }
264
264
  export interface StartTextDetectionRequest {
265
265
  Video: Video | undefined;
266
- ClientRequestToken?: string;
267
- NotificationChannel?: NotificationChannel;
268
- JobTag?: string;
269
- Filters?: StartTextDetectionFilters;
266
+ ClientRequestToken?: string | undefined;
267
+ NotificationChannel?: NotificationChannel | undefined;
268
+ JobTag?: string | undefined;
269
+ Filters?: StartTextDetectionFilters | undefined;
270
270
  }
271
271
  export interface StartTextDetectionResponse {
272
- JobId?: string;
272
+ JobId?: string | undefined;
273
273
  }
274
274
  export interface StopProjectVersionRequest {
275
275
  ProjectVersionArn: string | undefined;
276
276
  }
277
277
  export interface StopProjectVersionResponse {
278
- Status?: ProjectVersionStatus;
278
+ Status?: ProjectVersionStatus | undefined;
279
279
  }
280
280
  export interface StopStreamProcessorRequest {
281
281
  Name: string | undefined;
@@ -303,13 +303,15 @@ export declare const StreamProcessorParameterToDelete: {
303
303
  export type StreamProcessorParameterToDelete =
304
304
  (typeof StreamProcessorParameterToDelete)[keyof typeof StreamProcessorParameterToDelete];
305
305
  export interface StreamProcessorSettingsForUpdate {
306
- ConnectedHomeForUpdate?: ConnectedHomeSettingsForUpdate;
306
+ ConnectedHomeForUpdate?: ConnectedHomeSettingsForUpdate | undefined;
307
307
  }
308
308
  export interface UpdateStreamProcessorRequest {
309
309
  Name: string | undefined;
310
- SettingsForUpdate?: StreamProcessorSettingsForUpdate;
311
- RegionsOfInterestForUpdate?: RegionOfInterest[];
312
- DataSharingPreferenceForUpdate?: StreamProcessorDataSharingPreference;
313
- ParametersToDelete?: StreamProcessorParameterToDelete[];
310
+ SettingsForUpdate?: StreamProcessorSettingsForUpdate | undefined;
311
+ RegionsOfInterestForUpdate?: RegionOfInterest[] | undefined;
312
+ DataSharingPreferenceForUpdate?:
313
+ | StreamProcessorDataSharingPreference
314
+ | undefined;
315
+ ParametersToDelete?: StreamProcessorParameterToDelete[] | undefined;
314
316
  }
315
317
  export interface UpdateStreamProcessorResponse {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rekognition",
3
3
  "description": "AWS SDK for JavaScript Rekognition Client for Node.js, Browser and React Native",
4
- "version": "3.686.0",
4
+ "version": "3.691.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rekognition",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.686.0",
24
- "@aws-sdk/client-sts": "3.686.0",
25
- "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.686.0",
23
+ "@aws-sdk/client-sso-oidc": "3.691.0",
24
+ "@aws-sdk/client-sts": "3.691.0",
25
+ "@aws-sdk/core": "3.691.0",
26
+ "@aws-sdk/credential-provider-node": "3.691.0",
27
27
  "@aws-sdk/middleware-host-header": "3.686.0",
28
28
  "@aws-sdk/middleware-logger": "3.686.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.686.0",
30
+ "@aws-sdk/middleware-user-agent": "3.691.0",
31
31
  "@aws-sdk/region-config-resolver": "3.686.0",
32
32
  "@aws-sdk/types": "3.686.0",
33
33
  "@aws-sdk/util-endpoints": "3.686.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.686.0",
35
+ "@aws-sdk/util-user-agent-node": "3.691.0",
36
36
  "@smithy/config-resolver": "^3.0.10",
37
37
  "@smithy/core": "^2.5.1",
38
38
  "@smithy/fetch-http-handler": "^4.0.0",