@casual-simulation/aux-records-aws 3.8.2-alpha.19511653187 → 3.10.2
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/README.md
CHANGED
|
@@ -1,3 +1,463 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @casual-simulation/aux-records-aws
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@casual-simulation/aux-records-aws)
|
|
4
|
+
|
|
5
|
+
AWS implementations for the CasualOS Records System. This package provides production-ready integrations with AWS services for file storage, authentication messaging, and content moderation.
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
`aux-records-aws` implements the core interfaces from `@casual-simulation/aux-records` using AWS services:
|
|
10
|
+
|
|
11
|
+
- **S3FileRecordsStore**: File storage and management using Amazon S3
|
|
12
|
+
- **SimpleEmailServiceAuthMessenger**: Email-based authentication codes via Amazon SES
|
|
13
|
+
- **TextItAuthMessenger**: SMS/email authentication via TextIt integration
|
|
14
|
+
- **RekognitionModerationJobProvider**: Content moderation using Amazon Rekognition
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @casual-simulation/aux-records-aws
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Components
|
|
23
|
+
|
|
24
|
+
### S3FileRecordsStore
|
|
25
|
+
|
|
26
|
+
Amazon S3 implementation of `FileRecordsStore` for managing file records in CasualOS.
|
|
27
|
+
|
|
28
|
+
**Features**:
|
|
29
|
+
|
|
30
|
+
- Upload/download files to S3 with presigned URLs
|
|
31
|
+
- File metadata tracking via `FileRecordsLookup`
|
|
32
|
+
- Public and private file access control
|
|
33
|
+
- Storage class configuration (STANDARD, GLACIER, etc.)
|
|
34
|
+
- File listing and filtering
|
|
35
|
+
- Bucket management (default and custom buckets)
|
|
36
|
+
- Server-side signature generation for authenticated requests
|
|
37
|
+
|
|
38
|
+
**Configuration**:
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import { S3FileRecordsStore } from '@casual-simulation/aux-records-aws';
|
|
42
|
+
import { S3Client } from '@aws-sdk/client-s3';
|
|
43
|
+
|
|
44
|
+
const s3Client = new S3Client({ region: 'us-east-1' });
|
|
45
|
+
|
|
46
|
+
const store = new S3FileRecordsStore(
|
|
47
|
+
'us-east-1', // AWS region
|
|
48
|
+
'my-files-bucket', // Main bucket
|
|
49
|
+
'my-default-bucket', // Default bucket
|
|
50
|
+
fileRecordsLookup, // Database lookup for file metadata
|
|
51
|
+
'STANDARD', // Storage class
|
|
52
|
+
s3Client, // S3 client
|
|
53
|
+
's3.amazonaws.com', // S3 host (optional)
|
|
54
|
+
credentialProvider, // AWS credentials (optional)
|
|
55
|
+
'https://cdn.example.com' // Public files CDN URL (optional)
|
|
56
|
+
);
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Example Usage**:
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
// Presign file upload
|
|
63
|
+
const uploadResult = await store.presignFileUpload({
|
|
64
|
+
recordName: 'myRecord',
|
|
65
|
+
fileName: 'document.pdf',
|
|
66
|
+
fileSha256Hex: 'abc123...',
|
|
67
|
+
fileMimeType: 'application/pdf',
|
|
68
|
+
fileByteLength: 1024000,
|
|
69
|
+
headers: {},
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
if (uploadResult.success) {
|
|
73
|
+
console.log('Upload URL:', uploadResult.uploadUrl);
|
|
74
|
+
console.log('Upload method:', uploadResult.uploadMethod);
|
|
75
|
+
console.log('Upload headers:', uploadResult.uploadHeaders);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Presign file read
|
|
79
|
+
const readResult = await store.presignFileRead({
|
|
80
|
+
recordName: 'myRecord',
|
|
81
|
+
fileName: 'document.pdf',
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
if (readResult.success) {
|
|
85
|
+
console.log('Download URL:', readResult.requestUrl);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// List files
|
|
89
|
+
const listResult = await store.listUploadedFiles('myRecord', 'document.pdf');
|
|
90
|
+
|
|
91
|
+
if (listResult.success) {
|
|
92
|
+
console.log('Files:', listResult.files);
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Key Methods**:
|
|
97
|
+
|
|
98
|
+
- `presignFileUpload(request)`: Generate presigned URL for file upload
|
|
99
|
+
- `presignFileRead(request)`: Generate presigned URL for file download
|
|
100
|
+
- `getFileRecord(recordName, fileName)`: Get file metadata
|
|
101
|
+
- `setFileRecordAsUploaded(recordName, fileName)`: Mark file as uploaded
|
|
102
|
+
- `eraseFileRecord(recordName, fileName)`: Delete file from S3
|
|
103
|
+
- `listUploadedFiles(recordName, fileName)`: List files matching criteria
|
|
104
|
+
- `getFileNameFromUrl(fileUrl)`: Extract record name and file name from URL
|
|
105
|
+
|
|
106
|
+
### SimpleEmailServiceAuthMessenger
|
|
107
|
+
|
|
108
|
+
Amazon SES implementation of `AuthMessenger` for sending authentication codes via email.
|
|
109
|
+
|
|
110
|
+
**Features**:
|
|
111
|
+
|
|
112
|
+
- Send authentication codes via AWS SES
|
|
113
|
+
- Template-based emails (using SES templates)
|
|
114
|
+
- Plain text emails with variable substitution
|
|
115
|
+
- Supports email address type only
|
|
116
|
+
- Customizable sender address and content
|
|
117
|
+
|
|
118
|
+
**Configuration**:
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
import { SimpleEmailServiceAuthMessenger } from '@casual-simulation/aux-records-aws';
|
|
122
|
+
import { SESv2Client } from '@aws-sdk/client-sesv2';
|
|
123
|
+
|
|
124
|
+
const sesClient = new SESv2Client({ region: 'us-east-1' });
|
|
125
|
+
|
|
126
|
+
// Using SES template
|
|
127
|
+
const messenger = new SimpleEmailServiceAuthMessenger(sesClient, {
|
|
128
|
+
fromAddress: 'noreply@example.com',
|
|
129
|
+
content: {
|
|
130
|
+
type: 'template',
|
|
131
|
+
templateArn: 'arn:aws:ses:us-east-1:123456789:template/AuthCode',
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// Using plain text with variable substitution
|
|
136
|
+
const messengerPlain = new SimpleEmailServiceAuthMessenger(sesClient, {
|
|
137
|
+
fromAddress: 'noreply@example.com',
|
|
138
|
+
content: {
|
|
139
|
+
type: 'plain',
|
|
140
|
+
subject: 'Your authentication code',
|
|
141
|
+
body: 'Your code is: {{code}}',
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Example Usage**:
|
|
147
|
+
|
|
148
|
+
```typescript
|
|
149
|
+
const result = await messenger.sendCode('user@example.com', 'email', '123456');
|
|
150
|
+
|
|
151
|
+
if (result.success) {
|
|
152
|
+
console.log('Code sent successfully');
|
|
153
|
+
} else {
|
|
154
|
+
console.error('Error:', result.errorCode, result.errorMessage);
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Template Variables**:
|
|
159
|
+
|
|
160
|
+
- `{{code}}`: The authentication code
|
|
161
|
+
- `{{address}}`: The recipient email address
|
|
162
|
+
- `{{addressType}}`: The address type ('email')
|
|
163
|
+
|
|
164
|
+
### TextItAuthMessenger
|
|
165
|
+
|
|
166
|
+
TextIt integration for sending authentication codes via SMS or email.
|
|
167
|
+
|
|
168
|
+
**Features**:
|
|
169
|
+
|
|
170
|
+
- Send authentication codes via TextIt flows
|
|
171
|
+
- Supports both email and phone numbers
|
|
172
|
+
- Flow-based message delivery
|
|
173
|
+
- Configurable via TextIt API
|
|
174
|
+
- Restart participants automatically for new codes
|
|
175
|
+
|
|
176
|
+
**Configuration**:
|
|
177
|
+
|
|
178
|
+
```typescript
|
|
179
|
+
import { TextItAuthMessenger } from '@casual-simulation/aux-records-aws';
|
|
180
|
+
|
|
181
|
+
const messenger = new TextItAuthMessenger(
|
|
182
|
+
'your-textit-api-key',
|
|
183
|
+
'your-flow-id'
|
|
184
|
+
);
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Example Usage**:
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
// Send to phone
|
|
191
|
+
const smsResult = await messenger.sendCode('+1234567890', 'phone', '123456');
|
|
192
|
+
|
|
193
|
+
// Send to email
|
|
194
|
+
const emailResult = await messenger.sendCode(
|
|
195
|
+
'user@example.com',
|
|
196
|
+
'email',
|
|
197
|
+
'123456'
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
if (smsResult.success) {
|
|
201
|
+
console.log('SMS code sent');
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**TextIt Flow Parameters**:
|
|
206
|
+
The flow receives the following parameters:
|
|
207
|
+
|
|
208
|
+
- `code`: The authentication code to send
|
|
209
|
+
|
|
210
|
+
**Error Handling**:
|
|
211
|
+
|
|
212
|
+
- `address_type_not_supported`: Address type not supported (only 'email' and 'phone')
|
|
213
|
+
- `unacceptable_address`: Invalid address format
|
|
214
|
+
- `server_error`: TextIt API error
|
|
215
|
+
|
|
216
|
+
### RekognitionModerationJobProvider
|
|
217
|
+
|
|
218
|
+
Amazon Rekognition implementation of `ModerationJobProvider` for content moderation.
|
|
219
|
+
|
|
220
|
+
**Features**:
|
|
221
|
+
|
|
222
|
+
- Scan individual files using Rekognition
|
|
223
|
+
- Create batch moderation jobs using S3 Batch Operations
|
|
224
|
+
- Custom moderation models support
|
|
225
|
+
- Configurable minimum confidence thresholds
|
|
226
|
+
- Lambda-based batch processing
|
|
227
|
+
- Manifest generation for batch jobs
|
|
228
|
+
|
|
229
|
+
**Configuration**:
|
|
230
|
+
|
|
231
|
+
```typescript
|
|
232
|
+
import { RekognitionModerationJobProvider } from '@casual-simulation/aux-records-aws';
|
|
233
|
+
import { RekognitionClient } from '@aws-sdk/client-rekognition';
|
|
234
|
+
import { S3ControlClient } from '@aws-sdk/client-s3-control';
|
|
235
|
+
import { S3Client } from '@aws-sdk/client-s3';
|
|
236
|
+
|
|
237
|
+
const provider = new RekognitionModerationJobProvider({
|
|
238
|
+
filesStore: s3FileRecordsStore,
|
|
239
|
+
rekognition: new RekognitionClient({ region: 'us-east-1' }),
|
|
240
|
+
s3Control: new S3ControlClient({ region: 'us-east-1' }),
|
|
241
|
+
s3: new S3Client({ region: 'us-east-1' }),
|
|
242
|
+
filesJob: {
|
|
243
|
+
accountId: '123456789012',
|
|
244
|
+
lambdaFunctionArn:
|
|
245
|
+
'arn:aws:lambda:us-east-1:123456789:function:moderation',
|
|
246
|
+
sourceBucket: 'my-files-bucket',
|
|
247
|
+
reportBucket: 'my-reports-bucket',
|
|
248
|
+
priority: 10,
|
|
249
|
+
roleArn: 'arn:aws:iam::123456789:role/S3BatchRole',
|
|
250
|
+
customModerationModelArn:
|
|
251
|
+
'arn:aws:rekognition:us-east-1:123456789:project/...',
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
**Example Usage**:
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
// Scan single file
|
|
260
|
+
const scanResult = await provider.scanFile({
|
|
261
|
+
recordName: 'myRecord',
|
|
262
|
+
fileName: 'image.jpg',
|
|
263
|
+
bucket: 'my-files-bucket',
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
if (scanResult.success && scanResult.result.detected) {
|
|
267
|
+
console.log('Moderation labels:', scanResult.result.labels);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// Create batch moderation job
|
|
271
|
+
const jobResult = await provider.createModerationJob({
|
|
272
|
+
type: 'files',
|
|
273
|
+
filter: {
|
|
274
|
+
createdAfter: Date.now() - 86400000, // Last 24 hours
|
|
275
|
+
recordName: 'myRecord',
|
|
276
|
+
},
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
if (jobResult.success) {
|
|
280
|
+
console.log('Job created:', jobResult.job.jobId);
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
**Scan Result**:
|
|
285
|
+
|
|
286
|
+
```typescript
|
|
287
|
+
interface ModerationFileScan {
|
|
288
|
+
detected: boolean;
|
|
289
|
+
labels: Array<{
|
|
290
|
+
name: string;
|
|
291
|
+
confidence: number;
|
|
292
|
+
parentName?: string;
|
|
293
|
+
}>;
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**Batch Job Options**:
|
|
298
|
+
|
|
299
|
+
- `type: 'files'`: Create a batch moderation job for files
|
|
300
|
+
- `filter`: Filter files by record name, creation date, etc.
|
|
301
|
+
- Job generates a manifest in S3 and invokes Lambda for each file
|
|
302
|
+
|
|
303
|
+
## AWS Service Requirements
|
|
304
|
+
|
|
305
|
+
### Required AWS Services
|
|
306
|
+
|
|
307
|
+
1. **Amazon S3**: File storage
|
|
308
|
+
|
|
309
|
+
- Permissions: `s3:GetObject`, `s3:PutObject`, `s3:DeleteObject`, `s3:ListBucket`
|
|
310
|
+
|
|
311
|
+
2. **Amazon SES** (optional): Email authentication codes
|
|
312
|
+
|
|
313
|
+
- Permissions: `ses:SendEmail`, `ses:SendTemplatedEmail`
|
|
314
|
+
|
|
315
|
+
3. **Amazon Rekognition** (optional): Content moderation
|
|
316
|
+
|
|
317
|
+
- Permissions: `rekognition:DetectModerationLabels`
|
|
318
|
+
|
|
319
|
+
4. **AWS S3 Control** (optional): Batch operations
|
|
320
|
+
|
|
321
|
+
- Permissions: `s3:CreateJob`, `s3:DescribeJob`
|
|
322
|
+
|
|
323
|
+
5. **AWS Lambda** (optional): Batch moderation processing
|
|
324
|
+
- Invoked by S3 Batch Operations
|
|
325
|
+
|
|
326
|
+
### IAM Policy Example
|
|
327
|
+
|
|
328
|
+
```json
|
|
329
|
+
{
|
|
330
|
+
"Version": "2012-10-17",
|
|
331
|
+
"Statement": [
|
|
332
|
+
{
|
|
333
|
+
"Effect": "Allow",
|
|
334
|
+
"Action": [
|
|
335
|
+
"s3:GetObject",
|
|
336
|
+
"s3:PutObject",
|
|
337
|
+
"s3:DeleteObject",
|
|
338
|
+
"s3:ListBucket"
|
|
339
|
+
],
|
|
340
|
+
"Resource": [
|
|
341
|
+
"arn:aws:s3:::my-files-bucket/*",
|
|
342
|
+
"arn:aws:s3:::my-files-bucket"
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"Effect": "Allow",
|
|
347
|
+
"Action": ["ses:SendEmail", "ses:SendTemplatedEmail"],
|
|
348
|
+
"Resource": "*"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"Effect": "Allow",
|
|
352
|
+
"Action": ["rekognition:DetectModerationLabels"],
|
|
353
|
+
"Resource": "*"
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
## Architecture
|
|
360
|
+
|
|
361
|
+
```
|
|
362
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
363
|
+
│ CasualOS Records │
|
|
364
|
+
├─────────────────────────────────────────────────────────────┤
|
|
365
|
+
│ │
|
|
366
|
+
│ ┌────────────────────────────────────────────────────┐ │
|
|
367
|
+
│ │ @casual-simulation/aux-records │ │
|
|
368
|
+
│ │ (Interfaces: FileRecordsStore, AuthMessenger) │ │
|
|
369
|
+
│ └────────────────────┬───────────────────────────────┘ │
|
|
370
|
+
│ │ │
|
|
371
|
+
│ │ implements │
|
|
372
|
+
│ │ │
|
|
373
|
+
│ ┌────────────────────▼───────────────────────────────┐ │
|
|
374
|
+
│ │ @casual-simulation/aux-records-aws │ │
|
|
375
|
+
│ ├────────────────────────────────────────────────────┤ │
|
|
376
|
+
│ │ │ │
|
|
377
|
+
│ │ ┌──────────────────┐ ┌──────────────────────┐ │ │
|
|
378
|
+
│ │ │ S3FileRecords │ │ SESAuthMessenger │ │ │
|
|
379
|
+
│ │ │ Store │ │ │ │ │
|
|
380
|
+
│ │ │ │ │ TextItAuthMessenger │ │ │
|
|
381
|
+
│ │ └────────┬─────────┘ └──────────┬───────────┘ │ │
|
|
382
|
+
│ │ │ │ │ │
|
|
383
|
+
│ │ │ │ │ │
|
|
384
|
+
│ │ ┌────────▼────────────────────────▼───────────┐ │ │
|
|
385
|
+
│ │ │ RekognitionModerationJobProvider │ │ │
|
|
386
|
+
│ │ └────────────────────────────────────────────┘ │ │
|
|
387
|
+
│ │ │ │
|
|
388
|
+
│ └────────────────────┬───────────────────────────────┘ │
|
|
389
|
+
│ │ │
|
|
390
|
+
│ │ uses │
|
|
391
|
+
│ │ │
|
|
392
|
+
│ ┌────────────────────▼───────────────────────────────┐ │
|
|
393
|
+
│ │ AWS Services │ │
|
|
394
|
+
│ ├────────────────────────────────────────────────────┤ │
|
|
395
|
+
│ │ │ │
|
|
396
|
+
│ │ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │ │
|
|
397
|
+
│ │ │ Amazon │ │ Amazon │ │ Amazon │ │ │
|
|
398
|
+
│ │ │ S3 │ │ SES │ │ Rekognition │ │ │
|
|
399
|
+
│ │ └──────────┘ └──────────┘ └──────────────┘ │ │
|
|
400
|
+
│ │ │ │
|
|
401
|
+
│ │ ┌──────────┐ ┌──────────┐ │ │
|
|
402
|
+
│ │ │ S3 Batch │ │ AWS │ │ │
|
|
403
|
+
│ │ │ Ops │ │ Lambda │ │ │
|
|
404
|
+
│ │ └──────────┘ └──────────┘ │ │
|
|
405
|
+
│ │ │ │
|
|
406
|
+
│ └────────────────────────────────────────────────────┘ │
|
|
407
|
+
│ │
|
|
408
|
+
└─────────────────────────────────────────────────────────────┘
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
## Dependencies
|
|
412
|
+
|
|
413
|
+
### AWS SDK v3
|
|
414
|
+
|
|
415
|
+
- `@aws-sdk/client-s3`: S3 file operations
|
|
416
|
+
- `@aws-sdk/client-sesv2`: SES email sending
|
|
417
|
+
- `@aws-sdk/client-rekognition`: Content moderation
|
|
418
|
+
- `@aws-sdk/client-s3-control`: S3 Batch Operations
|
|
419
|
+
- `@aws-sdk/credential-providers`: AWS credentials
|
|
420
|
+
|
|
421
|
+
### CasualOS Packages
|
|
422
|
+
|
|
423
|
+
- `@casual-simulation/aux-records`: Core interfaces
|
|
424
|
+
- `@casual-simulation/aux-common`: Common types and utilities
|
|
425
|
+
|
|
426
|
+
### Other Dependencies
|
|
427
|
+
|
|
428
|
+
- `axios`: HTTP client for TextIt API
|
|
429
|
+
- `uuid`: Unique identifier generation
|
|
430
|
+
|
|
431
|
+
## Testing
|
|
432
|
+
|
|
433
|
+
The module includes comprehensive test files:
|
|
434
|
+
|
|
435
|
+
- `S3FileRecordsStore.spec.ts`: S3 file storage tests
|
|
436
|
+
- `SimpleEmailServiceAuthMessenger.spec.ts`: SES email tests
|
|
437
|
+
- `TextItAuthMessenger.spec.ts`: TextIt integration tests
|
|
438
|
+
|
|
439
|
+
Run tests:
|
|
440
|
+
|
|
441
|
+
```bash
|
|
442
|
+
npm test
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
## License
|
|
446
|
+
|
|
447
|
+
AGPL-3.0-only
|
|
448
|
+
|
|
449
|
+
## Related Packages
|
|
450
|
+
|
|
451
|
+
- `@casual-simulation/aux-records`: Core records system interfaces
|
|
452
|
+
- `@casual-simulation/aux-common`: Common types and utilities
|
|
453
|
+
- `@casual-simulation/aux-server`: CasualOS server implementation
|
|
454
|
+
|
|
455
|
+
## Contributing
|
|
456
|
+
|
|
457
|
+
See [DEVELOPERS.md](../../DEVELOPERS.md) for development guidelines.
|
|
458
|
+
|
|
459
|
+
## Version
|
|
460
|
+
|
|
461
|
+
Current version: 3.8.1
|
|
462
|
+
|
|
463
|
+
See [CHANGELOG.md](../../CHANGELOG.md) for version history.
|
|
@@ -20,7 +20,6 @@ export class RekognitionModerationJobProvider {
|
|
|
20
20
|
this._filesOptions = options.filesJob;
|
|
21
21
|
}
|
|
22
22
|
async startFilesJob(filter) {
|
|
23
|
-
var _a, _b;
|
|
24
23
|
const jobId = uuid();
|
|
25
24
|
const files = await this._filesStore.listAllUploadedFilesMatching(filter);
|
|
26
25
|
if (files.success === false) {
|
|
@@ -31,7 +30,7 @@ export class RekognitionModerationJobProvider {
|
|
|
31
30
|
let manifest = '';
|
|
32
31
|
for (let file of files.files) {
|
|
33
32
|
const key = this._filesStore.getFileKey(file.recordName, file.fileName);
|
|
34
|
-
manifest += `${
|
|
33
|
+
manifest += `${file.bucket ?? this._filesOptions.sourceBucket},${key}\n`;
|
|
35
34
|
}
|
|
36
35
|
const manifestKey = `${jobId}.manifest.csv`;
|
|
37
36
|
const manifestResult = await this._s3.putObject({
|
|
@@ -44,7 +43,7 @@ export class RekognitionModerationJobProvider {
|
|
|
44
43
|
ClientRequestToken: jobId,
|
|
45
44
|
AccountId: this._filesOptions.accountId,
|
|
46
45
|
Priority: this._filesOptions.priority,
|
|
47
|
-
Tags:
|
|
46
|
+
Tags: this._filesOptions.tags?.map((t) => ({
|
|
48
47
|
Key: t.key,
|
|
49
48
|
Value: t.value,
|
|
50
49
|
})),
|
|
@@ -86,7 +85,6 @@ export class RekognitionModerationJobProvider {
|
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
87
|
async scanFile(options) {
|
|
89
|
-
var _a;
|
|
90
88
|
const file = await this._filesStore.getS3ObjectInfo(options.recordName, options.fileName);
|
|
91
89
|
const args = {
|
|
92
90
|
Image: {
|
|
@@ -106,7 +104,7 @@ export class RekognitionModerationJobProvider {
|
|
|
106
104
|
return {
|
|
107
105
|
fileName: options.fileName,
|
|
108
106
|
recordName: options.recordName,
|
|
109
|
-
labels: (
|
|
107
|
+
labels: (result.ModerationLabels ?? []).map((l) => ({
|
|
110
108
|
name: l.Name,
|
|
111
109
|
category: l.ParentName || undefined,
|
|
112
110
|
confidence: l.Confidence,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RekognitionModerationJobProvider.js","sourceRoot":"","sources":["RekognitionModerationJobProvider.ts"],"names":[],"mappings":";;;;;;AAiCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC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|
|
34
34
|
const files = result.files.map(({ bucket, ...f }) => ({
|
|
35
35
|
...f,
|
|
36
|
-
url: this._fileUrl(recordName, f.fileName, bucket
|
|
36
|
+
url: this._fileUrl(recordName, f.fileName, bucket ?? this._bucket, isPublicFile(f.markers)).href,
|
|
37
37
|
}));
|
|
38
38
|
return {
|
|
39
39
|
success: true,
|
|
@@ -132,13 +132,12 @@ export class S3FileRecordsStore {
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
async presignFileUpload(request) {
|
|
135
|
-
var _a;
|
|
136
135
|
const credentials = await this._getCredentials();
|
|
137
136
|
const secretAccessKey = credentials
|
|
138
137
|
? credentials.secretAccessKey
|
|
139
138
|
: null;
|
|
140
139
|
const accessKeyId = credentials ? credentials.accessKeyId : null;
|
|
141
|
-
const now =
|
|
140
|
+
const now = request.date ?? new Date();
|
|
142
141
|
const fileUrl = this._fileUrl(request.recordName, request.fileName, this._bucket,
|
|
143
142
|
// Presigned file uploads always have to use an S3 URL
|
|
144
143
|
false);
|
|
@@ -172,13 +171,12 @@ export class S3FileRecordsStore {
|
|
|
172
171
|
};
|
|
173
172
|
}
|
|
174
173
|
async presignFileRead(request) {
|
|
175
|
-
var _a;
|
|
176
174
|
const credentials = await this._getCredentials();
|
|
177
175
|
const secretAccessKey = credentials
|
|
178
176
|
? credentials.secretAccessKey
|
|
179
177
|
: null;
|
|
180
178
|
const accessKeyId = credentials ? credentials.accessKeyId : null;
|
|
181
|
-
const now =
|
|
179
|
+
const now = request.date ?? new Date();
|
|
182
180
|
const fileUrl = this._fileUrl(request.recordName, request.fileName, this._bucket,
|
|
183
181
|
// Presigned file reads always have to use an S3 URL
|
|
184
182
|
false);
|
|
@@ -213,11 +211,10 @@ export class S3FileRecordsStore {
|
|
|
213
211
|
};
|
|
214
212
|
}
|
|
215
213
|
async getFileRecord(recordName, fileName) {
|
|
216
|
-
var _a;
|
|
217
214
|
try {
|
|
218
215
|
const result = await this._lookup.getFileRecord(recordName, fileName);
|
|
219
216
|
if (result) {
|
|
220
|
-
const url = this._fileUrl(result.recordName, result.fileName,
|
|
217
|
+
const url = this._fileUrl(result.recordName, result.fileName, result.bucket ?? this._defaultBucket, isPublicFile(result.markers));
|
|
221
218
|
return {
|
|
222
219
|
success: true,
|
|
223
220
|
recordName: result.recordName,
|
|
@@ -287,7 +284,6 @@ export class S3FileRecordsStore {
|
|
|
287
284
|
* @param fileName The name of the file.
|
|
288
285
|
*/
|
|
289
286
|
async getS3ObjectInfo(recordName, fileName) {
|
|
290
|
-
var _a;
|
|
291
287
|
let file = await this._lookup.getFileRecord(recordName, fileName);
|
|
292
288
|
if (!file) {
|
|
293
289
|
return {
|
|
@@ -296,7 +292,7 @@ export class S3FileRecordsStore {
|
|
|
296
292
|
};
|
|
297
293
|
}
|
|
298
294
|
return {
|
|
299
|
-
bucket:
|
|
295
|
+
bucket: file.bucket ?? this._bucket,
|
|
300
296
|
name: this.getFileKey(recordName, fileName),
|
|
301
297
|
};
|
|
302
298
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"S3FileRecordsStore.js","sourceRoot":"","sources":["S3FileRecordsStore.ts"],"names":[],"mappings":";;;;;;AA2BA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAW7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAElF,MAAM,UAAU,GAAG,oBAAoB,CAAC;AACxC,MAAM,CAAC,MAAM,4BAA4B,GACrC,kEAAkE,CAAC;AAEvE;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAY3B,YACI,MAAc,EACd,MAAc,EACd,aAAqB,EACrB,UAA6B,EAC7B,eAAuB,UAAU,EACjC,EAAM,EACN,SAAiB,IAAI,EACrB,qBAAoD,qBAAqB,EAAE,EAC3E,iBAAyB,IAAI;QA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|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
2
|
+
"name": "@casual-simulation/aux-records-aws",
|
|
3
|
+
"version": "3.10.2",
|
|
4
|
+
"description": "AWS Store implementations for the CasualOS Records System.",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "Casual Simulation, Inc.",
|
|
7
|
+
"homepage": "https://github.com/casual-simulation/casualos",
|
|
8
|
+
"license": "AGPL-3.0-only",
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"types": "index.d.ts",
|
|
11
|
+
"module": "index",
|
|
12
|
+
"directories": {
|
|
13
|
+
"lib": "."
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"/README.md",
|
|
17
|
+
"/LICENSE.txt",
|
|
18
|
+
"**/*.js",
|
|
19
|
+
"**/*.js.map",
|
|
20
|
+
"**/*.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/casual-simulation/casualos.git"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/casual-simulation/casualos/issues"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@aws-sdk/client-dynamodb": "^3.620.1",
|
|
34
|
+
"@aws-sdk/client-rekognition": "^3.620.1",
|
|
35
|
+
"@aws-sdk/client-s3": "^3.620.1",
|
|
36
|
+
"@aws-sdk/client-s3-control": "^3.620.1",
|
|
37
|
+
"@aws-sdk/client-sesv2": "^3.620.1",
|
|
38
|
+
"@aws-sdk/credential-providers": "^3.620.1",
|
|
39
|
+
"@aws-sdk/types": "^3.609.0",
|
|
40
|
+
"@casual-simulation/aux-common": "^3.10.2",
|
|
41
|
+
"@casual-simulation/aux-records": "^3.10.2",
|
|
42
|
+
"axios": "1.7.7",
|
|
43
|
+
"uuid": "10.0.0"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"watch": "tsc --watch",
|
|
47
|
+
"watch:player": "npm run watch",
|
|
48
|
+
"build": "echo \"Nothing to do.\"",
|
|
49
|
+
"test": "jest",
|
|
50
|
+
"test:watch": "jest --watchAll"
|
|
51
|
+
}
|
|
52
|
+
}
|