@redseat/api 0.0.5 → 0.0.7
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/dist/library.js +7 -10
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -303,31 +303,31 @@ export class LibraryApi {
|
|
|
303
303
|
queryParams[key] = value;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
const res = await this.client.get(this.getUrl('/faces/unassigned'), { params: queryParams });
|
|
306
|
+
const res = await this.client.get(this.getUrl('/people/faces/unassigned'), { params: queryParams });
|
|
307
307
|
return res.data;
|
|
308
308
|
}
|
|
309
309
|
async getClusters() {
|
|
310
|
-
const res = await this.client.get(this.getUrl('/faces/clusters'));
|
|
310
|
+
const res = await this.client.get(this.getUrl('/people/faces/clusters'));
|
|
311
311
|
return res.data;
|
|
312
312
|
}
|
|
313
313
|
async assignFaces(request) {
|
|
314
|
-
const res = await this.client.post(this.getUrl('/faces/assign'), request);
|
|
314
|
+
const res = await this.client.post(this.getUrl('/people/faces/assign'), request);
|
|
315
315
|
return res.data;
|
|
316
316
|
}
|
|
317
317
|
async createPersonFromCluster(request) {
|
|
318
|
-
const res = await this.client.post(this.getUrl('/faces/cluster/person'), request);
|
|
318
|
+
const res = await this.client.post(this.getUrl('/people/faces/cluster/person'), request);
|
|
319
319
|
return res.data;
|
|
320
320
|
}
|
|
321
321
|
async splitCluster(request) {
|
|
322
|
-
const res = await this.client.post(this.getUrl('/faces/cluster/split'), request);
|
|
322
|
+
const res = await this.client.post(this.getUrl('/people/faces/cluster/split'), request);
|
|
323
323
|
return res.data;
|
|
324
324
|
}
|
|
325
325
|
async unassignFace(request) {
|
|
326
|
-
const res = await this.client.post(this.getUrl('/faces/unassign'), request);
|
|
326
|
+
const res = await this.client.post(this.getUrl('/people/faces/unassign'), request);
|
|
327
327
|
return res.data;
|
|
328
328
|
}
|
|
329
329
|
async deleteFace(faceId) {
|
|
330
|
-
const res = await this.client.delete(this.getUrl(`/faces/${faceId}`));
|
|
330
|
+
const res = await this.client.delete(this.getUrl(`/people/faces/${faceId}`));
|
|
331
331
|
return res.data;
|
|
332
332
|
}
|
|
333
333
|
async getAssignedFaces(personId) {
|
|
@@ -509,9 +509,6 @@ export class LibraryApi {
|
|
|
509
509
|
*/
|
|
510
510
|
async uploadMedia(data, options) {
|
|
511
511
|
// Validate: thumbnails can only be specified for encrypted libraries
|
|
512
|
-
if (options.thumb && this.library.crypt !== true) {
|
|
513
|
-
throw new Error('Thumbnails can only be specified for encrypted libraries.');
|
|
514
|
-
}
|
|
515
512
|
// Check library configuration
|
|
516
513
|
if (this.library.crypt === true) {
|
|
517
514
|
if (!this.key) {
|