@mediaviz/react-native-sdk 1.11.0-dev.125 → 1.11.0-dev.126
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/sdk.d.cts +158 -153
- package/dist/sdk.d.ts +158 -153
- package/dist/sdk.esm.d.ts +158 -153
- package/package.json +1 -1
package/dist/sdk.esm.d.ts
CHANGED
|
@@ -135,8 +135,8 @@ export const WEBHOOK_OUTCOME_MODELS: Record<string, string[]>;
|
|
|
135
135
|
|
|
136
136
|
// ── response schemas ──
|
|
137
137
|
export interface AlbumDisplay {
|
|
138
|
-
name?:
|
|
139
|
-
description?:
|
|
138
|
+
name?: string;
|
|
139
|
+
description?: string;
|
|
140
140
|
id: number;
|
|
141
141
|
project_table_name: string;
|
|
142
142
|
}
|
|
@@ -181,19 +181,19 @@ export interface CuratedAlbumDisplay {
|
|
|
181
181
|
id: number;
|
|
182
182
|
project_table_name: string;
|
|
183
183
|
name: string;
|
|
184
|
-
description?:
|
|
185
|
-
confidence_value?:
|
|
184
|
+
description?: string;
|
|
185
|
+
confidence_value?: number;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
export interface EventPage {
|
|
189
189
|
events: any;
|
|
190
|
-
next_cursor?:
|
|
190
|
+
next_cursor?: string;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
export interface HealthCheck {
|
|
194
194
|
status?: string;
|
|
195
195
|
timestamp?: string;
|
|
196
|
-
checks?: any
|
|
196
|
+
checks?: Record<string, any>;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
export interface KeywordListDisplayWithList {
|
|
@@ -203,10 +203,10 @@ export interface KeywordListDisplayWithList {
|
|
|
203
203
|
name: string;
|
|
204
204
|
date_created: string;
|
|
205
205
|
date_last_updated: string;
|
|
206
|
-
is_inclusion?:
|
|
207
|
-
gsheet_view_link?:
|
|
208
|
-
gsheet_csv_link?:
|
|
209
|
-
gsheet_xlsx_link?:
|
|
206
|
+
is_inclusion?: boolean;
|
|
207
|
+
gsheet_view_link?: string;
|
|
208
|
+
gsheet_csv_link?: string;
|
|
209
|
+
gsheet_xlsx_link?: string;
|
|
210
210
|
list_keywords_included_or_excluded?: any;
|
|
211
211
|
}
|
|
212
212
|
|
|
@@ -217,7 +217,7 @@ export interface KeywordListDisplayWithProjects {
|
|
|
217
217
|
name: string;
|
|
218
218
|
date_created: string;
|
|
219
219
|
date_last_updated: string;
|
|
220
|
-
is_inclusion?:
|
|
220
|
+
is_inclusion?: boolean;
|
|
221
221
|
list_projects_associated?: any;
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -228,67 +228,72 @@ export interface OrganizationCredentialCreated {
|
|
|
228
228
|
created_at: string;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
export interface OrganizationCredentialRevoked {
|
|
232
|
+
client_id: string;
|
|
233
|
+
revoked_at: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
231
236
|
export interface PhotoDisplay {
|
|
232
237
|
photo_s3_link: string;
|
|
233
|
-
client_side_id?:
|
|
234
|
-
moment_id?:
|
|
235
|
-
file_path?:
|
|
236
|
-
image_metadata?: any
|
|
238
|
+
client_side_id?: string;
|
|
239
|
+
moment_id?: number;
|
|
240
|
+
file_path?: string;
|
|
241
|
+
image_metadata?: Record<string, any>;
|
|
237
242
|
tags?: any;
|
|
238
|
-
title?:
|
|
239
|
-
description?:
|
|
240
|
-
format?:
|
|
241
|
-
size?:
|
|
242
|
-
source_resolution_x?:
|
|
243
|
-
source_resolution_y?:
|
|
244
|
-
date_taken?:
|
|
245
|
-
date_modified?:
|
|
246
|
-
date_guessed?:
|
|
243
|
+
title?: string;
|
|
244
|
+
description?: string;
|
|
245
|
+
format?: string;
|
|
246
|
+
size?: string;
|
|
247
|
+
source_resolution_x?: number;
|
|
248
|
+
source_resolution_y?: number;
|
|
249
|
+
date_taken?: string;
|
|
250
|
+
date_modified?: string;
|
|
251
|
+
date_guessed?: string;
|
|
247
252
|
date_uploaded?: string;
|
|
248
|
-
latitude?:
|
|
249
|
-
longitude?:
|
|
250
|
-
country_code?:
|
|
251
|
-
country?:
|
|
252
|
-
state?:
|
|
253
|
-
city?:
|
|
254
|
-
average_hash?:
|
|
255
|
-
perceptual_hash?:
|
|
256
|
-
difference_hash?:
|
|
257
|
-
wavelet_hash_haar?:
|
|
258
|
-
color_hash?:
|
|
259
|
-
reference_1_average_distance?:
|
|
260
|
-
reference_2_average_distance?:
|
|
261
|
-
reference_3_average_distance?:
|
|
253
|
+
latitude?: number;
|
|
254
|
+
longitude?: number;
|
|
255
|
+
country_code?: string;
|
|
256
|
+
country?: string;
|
|
257
|
+
state?: string;
|
|
258
|
+
city?: string;
|
|
259
|
+
average_hash?: string;
|
|
260
|
+
perceptual_hash?: string;
|
|
261
|
+
difference_hash?: string;
|
|
262
|
+
wavelet_hash_haar?: string;
|
|
263
|
+
color_hash?: string;
|
|
264
|
+
reference_1_average_distance?: number;
|
|
265
|
+
reference_2_average_distance?: number;
|
|
266
|
+
reference_3_average_distance?: number;
|
|
262
267
|
main_color_palette?: any;
|
|
263
268
|
color_averages?: any;
|
|
264
|
-
labels_from_classifications_model?: any
|
|
265
|
-
ocr_output?: any
|
|
269
|
+
labels_from_classifications_model?: Record<string, any>;
|
|
270
|
+
ocr_output?: Record<string, any>;
|
|
266
271
|
bounding_boxes_from_faces_model?: any;
|
|
267
|
-
number_of_faces?:
|
|
268
|
-
blur_value?:
|
|
272
|
+
number_of_faces?: number;
|
|
273
|
+
blur_value?: number;
|
|
269
274
|
feature_extraction_output?: any;
|
|
270
275
|
similar_photo_ids_high?: any;
|
|
271
276
|
similar_photo_ids_medium?: any;
|
|
272
277
|
similar_photo_ids_low?: any;
|
|
273
|
-
evidence_score?:
|
|
274
|
-
face_score?:
|
|
275
|
-
content_score?:
|
|
276
|
-
aesthetic_score?:
|
|
277
|
-
similarity_set_ranking?:
|
|
278
|
-
topic?:
|
|
279
|
-
rank?:
|
|
278
|
+
evidence_score?: number;
|
|
279
|
+
face_score?: number;
|
|
280
|
+
content_score?: number;
|
|
281
|
+
aesthetic_score?: number;
|
|
282
|
+
similarity_set_ranking?: number;
|
|
283
|
+
topic?: string;
|
|
284
|
+
rank?: number;
|
|
280
285
|
hue_values?: any;
|
|
281
286
|
light_values?: any;
|
|
282
287
|
saturation_values?: any;
|
|
283
|
-
aesthetic_appeal?:
|
|
284
|
-
lighting?:
|
|
285
|
-
subject_significance?:
|
|
286
|
-
emotional_intensity?:
|
|
287
|
-
positive_emotion?:
|
|
288
|
-
universal_relatability?:
|
|
289
|
-
memorability?:
|
|
290
|
-
composition?:
|
|
291
|
-
judgment_overall_score?:
|
|
288
|
+
aesthetic_appeal?: number;
|
|
289
|
+
lighting?: number;
|
|
290
|
+
subject_significance?: number;
|
|
291
|
+
emotional_intensity?: number;
|
|
292
|
+
positive_emotion?: number;
|
|
293
|
+
universal_relatability?: number;
|
|
294
|
+
memorability?: number;
|
|
295
|
+
composition?: number;
|
|
296
|
+
judgment_overall_score?: number;
|
|
292
297
|
user_id: number;
|
|
293
298
|
company_id: number;
|
|
294
299
|
id: number;
|
|
@@ -296,35 +301,35 @@ export interface PhotoDisplay {
|
|
|
296
301
|
}
|
|
297
302
|
|
|
298
303
|
export interface PhotoFace {
|
|
299
|
-
smile_value?:
|
|
300
|
-
smile_confidence?:
|
|
301
|
-
eyeglasses_value?:
|
|
302
|
-
eyeglasses_confidence?:
|
|
303
|
-
sunglasses_value?:
|
|
304
|
-
sunglasses_confidence?:
|
|
305
|
-
eyes_open_value?:
|
|
306
|
-
eyes_open_confidence?:
|
|
307
|
-
emotion_happy_confidence?:
|
|
308
|
-
emotion_sad_confidence?:
|
|
309
|
-
landmark_eyeleft_x?:
|
|
310
|
-
landmark_eyeleft_y?:
|
|
311
|
-
landmark_eyeright_x?:
|
|
312
|
-
landmark_eyeright_y?:
|
|
313
|
-
landmark_mouthleft_x?:
|
|
314
|
-
landmark_mouthleft_y?:
|
|
315
|
-
landmark_mouthright_x?:
|
|
316
|
-
landmark_mouthright_y?:
|
|
317
|
-
landmark_nose_x?:
|
|
318
|
-
landmark_nose_y?:
|
|
319
|
-
pose_roll?:
|
|
320
|
-
pose_yaw?:
|
|
321
|
-
pose_pitch?:
|
|
322
|
-
quality_brightness?:
|
|
323
|
-
quality_sharpness?:
|
|
324
|
-
face_occluded_value?:
|
|
325
|
-
eye_direction_yaw?:
|
|
326
|
-
eye_direction_pitch?:
|
|
327
|
-
eye_direction_confidence?:
|
|
304
|
+
smile_value?: boolean;
|
|
305
|
+
smile_confidence?: number;
|
|
306
|
+
eyeglasses_value?: boolean;
|
|
307
|
+
eyeglasses_confidence?: number;
|
|
308
|
+
sunglasses_value?: boolean;
|
|
309
|
+
sunglasses_confidence?: number;
|
|
310
|
+
eyes_open_value?: boolean;
|
|
311
|
+
eyes_open_confidence?: number;
|
|
312
|
+
emotion_happy_confidence?: number;
|
|
313
|
+
emotion_sad_confidence?: number;
|
|
314
|
+
landmark_eyeleft_x?: number;
|
|
315
|
+
landmark_eyeleft_y?: number;
|
|
316
|
+
landmark_eyeright_x?: number;
|
|
317
|
+
landmark_eyeright_y?: number;
|
|
318
|
+
landmark_mouthleft_x?: number;
|
|
319
|
+
landmark_mouthleft_y?: number;
|
|
320
|
+
landmark_mouthright_x?: number;
|
|
321
|
+
landmark_mouthright_y?: number;
|
|
322
|
+
landmark_nose_x?: number;
|
|
323
|
+
landmark_nose_y?: number;
|
|
324
|
+
pose_roll?: number;
|
|
325
|
+
pose_yaw?: number;
|
|
326
|
+
pose_pitch?: number;
|
|
327
|
+
quality_brightness?: number;
|
|
328
|
+
quality_sharpness?: number;
|
|
329
|
+
face_occluded_value?: boolean;
|
|
330
|
+
eye_direction_yaw?: number;
|
|
331
|
+
eye_direction_pitch?: number;
|
|
332
|
+
eye_direction_confidence?: number;
|
|
328
333
|
}
|
|
329
334
|
|
|
330
335
|
export interface PhotoPersonLight {
|
|
@@ -356,44 +361,44 @@ export interface PhotoPersonWithS3Link {
|
|
|
356
361
|
|
|
357
362
|
export interface ProjectRunDisplay {
|
|
358
363
|
name: string;
|
|
359
|
-
private?:
|
|
364
|
+
private?: boolean;
|
|
360
365
|
type: number;
|
|
361
|
-
description?:
|
|
362
|
-
directory?:
|
|
363
|
-
photo_upload_vector?:
|
|
364
|
-
thumbnail?:
|
|
365
|
-
run_name?:
|
|
366
|
+
description?: string;
|
|
367
|
+
directory?: string;
|
|
368
|
+
photo_upload_vector?: number;
|
|
369
|
+
thumbnail?: string;
|
|
370
|
+
run_name?: string;
|
|
366
371
|
id: string;
|
|
367
372
|
user_id: number;
|
|
368
373
|
company_id: number;
|
|
369
374
|
active: boolean;
|
|
370
375
|
project_table_name: string;
|
|
371
376
|
date_created: string;
|
|
372
|
-
number_of_photos?:
|
|
373
|
-
date_photos_uploaded?:
|
|
374
|
-
date_deleted?:
|
|
375
|
-
top_tier?:
|
|
376
|
-
tier_2?:
|
|
377
|
-
total_photos_uploaded?:
|
|
378
|
-
gsheet_view_link?:
|
|
379
|
-
gsheet_csv_link?:
|
|
380
|
-
gsheet_xlsx_link?:
|
|
381
|
-
insights_view_link?:
|
|
382
|
-
similarity_level?:
|
|
383
|
-
blur_model?:
|
|
384
|
-
colors_model?:
|
|
385
|
-
face_recognition_model?:
|
|
386
|
-
image_classification_model?:
|
|
387
|
-
image_comparison_model?:
|
|
388
|
-
image_describe_model?:
|
|
389
|
-
ocr_model?:
|
|
390
|
-
judgment_model?:
|
|
391
|
-
similarity_model?:
|
|
392
|
-
personhood_model?:
|
|
393
|
-
evidence_model?:
|
|
394
|
-
insights_model?:
|
|
395
|
-
normalize?:
|
|
396
|
-
is_continuous_upload?:
|
|
377
|
+
number_of_photos?: number;
|
|
378
|
+
date_photos_uploaded?: string;
|
|
379
|
+
date_deleted?: string;
|
|
380
|
+
top_tier?: number;
|
|
381
|
+
tier_2?: number;
|
|
382
|
+
total_photos_uploaded?: number;
|
|
383
|
+
gsheet_view_link?: string;
|
|
384
|
+
gsheet_csv_link?: string;
|
|
385
|
+
gsheet_xlsx_link?: string;
|
|
386
|
+
insights_view_link?: string;
|
|
387
|
+
similarity_level?: string;
|
|
388
|
+
blur_model?: boolean;
|
|
389
|
+
colors_model?: boolean;
|
|
390
|
+
face_recognition_model?: boolean;
|
|
391
|
+
image_classification_model?: boolean;
|
|
392
|
+
image_comparison_model?: boolean;
|
|
393
|
+
image_describe_model?: boolean;
|
|
394
|
+
ocr_model?: boolean;
|
|
395
|
+
judgment_model?: boolean;
|
|
396
|
+
similarity_model?: boolean;
|
|
397
|
+
personhood_model?: boolean;
|
|
398
|
+
evidence_model?: boolean;
|
|
399
|
+
insights_model?: boolean;
|
|
400
|
+
normalize?: boolean;
|
|
401
|
+
is_continuous_upload?: boolean;
|
|
397
402
|
}
|
|
398
403
|
|
|
399
404
|
export interface SearchDisplay {
|
|
@@ -406,14 +411,14 @@ export interface SearchDisplay {
|
|
|
406
411
|
or_string_params?: any;
|
|
407
412
|
not_params?: any;
|
|
408
413
|
not_string_params?: any;
|
|
409
|
-
date_min?:
|
|
410
|
-
date_max?:
|
|
411
|
-
date_null_and?:
|
|
412
|
-
date_null_or?:
|
|
413
|
-
date_order?:
|
|
414
|
-
custom_album_id?:
|
|
415
|
-
best_of_similar_sets_only?:
|
|
416
|
-
curated_album_id?:
|
|
414
|
+
date_min?: string;
|
|
415
|
+
date_max?: string;
|
|
416
|
+
date_null_and?: boolean;
|
|
417
|
+
date_null_or?: boolean;
|
|
418
|
+
date_order?: string;
|
|
419
|
+
custom_album_id?: number;
|
|
420
|
+
best_of_similar_sets_only?: boolean;
|
|
421
|
+
curated_album_id?: number;
|
|
417
422
|
}
|
|
418
423
|
|
|
419
424
|
export interface SubscriptionActivated {
|
|
@@ -425,12 +430,12 @@ export interface SubscriptionActivated {
|
|
|
425
430
|
export interface SubscriptionDisplay {
|
|
426
431
|
id: string;
|
|
427
432
|
project_table_name: string;
|
|
428
|
-
callback_url?:
|
|
433
|
+
callback_url?: string;
|
|
429
434
|
targets: any;
|
|
430
435
|
status: string;
|
|
431
436
|
consecutive_failures: number;
|
|
432
|
-
last_delivery_at?:
|
|
433
|
-
last_status_code?:
|
|
437
|
+
last_delivery_at?: string;
|
|
438
|
+
last_status_code?: number;
|
|
434
439
|
created_at: string;
|
|
435
440
|
}
|
|
436
441
|
|
|
@@ -440,10 +445,10 @@ export interface UserDisplay {
|
|
|
440
445
|
name: string;
|
|
441
446
|
email: string;
|
|
442
447
|
account_type: number;
|
|
443
|
-
location?:
|
|
444
|
-
phone_number?:
|
|
445
|
-
birthday?:
|
|
446
|
-
profile_picture?:
|
|
448
|
+
location?: string;
|
|
449
|
+
phone_number?: string;
|
|
450
|
+
birthday?: string;
|
|
451
|
+
profile_picture?: string;
|
|
447
452
|
}
|
|
448
453
|
|
|
449
454
|
export interface UserDisplayWithCompanyPermissions {
|
|
@@ -452,10 +457,10 @@ export interface UserDisplayWithCompanyPermissions {
|
|
|
452
457
|
name: string;
|
|
453
458
|
email: string;
|
|
454
459
|
account_type: number;
|
|
455
|
-
location?:
|
|
456
|
-
phone_number?:
|
|
457
|
-
birthday?:
|
|
458
|
-
profile_picture?:
|
|
460
|
+
location?: string;
|
|
461
|
+
phone_number?: string;
|
|
462
|
+
birthday?: string;
|
|
463
|
+
profile_picture?: string;
|
|
459
464
|
can_manage_api_clients?: boolean;
|
|
460
465
|
}
|
|
461
466
|
|
|
@@ -474,12 +479,12 @@ export class Company {
|
|
|
474
479
|
}
|
|
475
480
|
|
|
476
481
|
export class CuratedAlbums {
|
|
477
|
-
createCuratedAlbum(projectTableName: string, name: string, description?:
|
|
482
|
+
createCuratedAlbum(projectTableName: string, name: string, description?: string, confidenceValue?: number): Promise<CuratedAlbumDisplay>;
|
|
478
483
|
getAllProjectCuratedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
|
|
479
484
|
getCuratedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
|
|
480
485
|
getCuratedAlbumPhotosRanked(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<Record<string, any>>;
|
|
481
486
|
getCuratedAlbumById(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
482
|
-
updateCuratedAlbum(albumId: number, body?: { name?:
|
|
487
|
+
updateCuratedAlbum(albumId: number, body?: { name?: string, description?: string, confidenceValue?: number }): Promise<CuratedAlbumDisplay>;
|
|
483
488
|
deleteCuratedAlbum(albumId: number): Promise<Record<string, any>>;
|
|
484
489
|
convertCuratedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
485
490
|
}
|
|
@@ -489,8 +494,8 @@ export class CustomAlbums {
|
|
|
489
494
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
490
495
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
491
496
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
492
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?:
|
|
493
|
-
updateCustomAlbum(albumId: number, body?: { name?:
|
|
497
|
+
createProjectCustomAlbum(projectTableName: string, body?: { name?: string, description?: string, photoIdInclusionList?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
|
|
498
|
+
updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
|
|
494
499
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
495
500
|
}
|
|
496
501
|
|
|
@@ -518,7 +523,7 @@ export class Keywords {
|
|
|
518
523
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
519
524
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
520
525
|
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude: any, listKeywordsToExclude: any): Promise<KeywordListDisplayWithList>;
|
|
521
|
-
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?:
|
|
526
|
+
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: any }): Promise<KeywordListDisplayWithProjects>;
|
|
522
527
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
523
528
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
524
529
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -540,7 +545,7 @@ export class OauthAuthorization {
|
|
|
540
545
|
export class OauthClients {
|
|
541
546
|
createApiCredential(credentialName: string): Promise<OrganizationCredentialCreated>;
|
|
542
547
|
getCompanyApiCredentials(): Promise<any>;
|
|
543
|
-
revokeApiCredential(clientId: string): Promise<
|
|
548
|
+
revokeApiCredential(clientId: string): Promise<OrganizationCredentialRevoked>;
|
|
544
549
|
}
|
|
545
550
|
|
|
546
551
|
export class OauthToken {
|
|
@@ -577,13 +582,13 @@ export class Photos {
|
|
|
577
582
|
getProjectPhotoIdsByTableName(tableName: string, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], includeAll?: boolean | boolean[], startDate?: string | string[], endDate?: string | string[], noDateTaken?: boolean | boolean[] }): Promise<any>;
|
|
578
583
|
getRankedProjectPhotoIdsByTableName(tableName: string, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], startDate?: string | string[], endDate?: string | string[], noDateTaken?: boolean | boolean[] }): Promise<Record<string, any>>;
|
|
579
584
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
580
|
-
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?:
|
|
585
|
+
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: string, title?: string, description?: string, tags?: any }): Promise<PhotoDisplay>;
|
|
581
586
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
582
587
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
583
588
|
}
|
|
584
589
|
|
|
585
590
|
export class Projects {
|
|
586
|
-
createProjectAndRun(name: string, type: number, private_?:
|
|
591
|
+
createProjectAndRun(name: string, type: number, private_?: boolean, description?: string, directory?: string, photoUploadVector?: number, thumbnail?: string, runName?: string, options?: { outcomes?: any, models?: any }): Promise<ProjectRunDisplay>;
|
|
587
592
|
markProjectUploadComplete(projectTableName: string, options?: { skippedFileCount?: number | number[] }): Promise<any>;
|
|
588
593
|
checkProjectStatus(projectTableName: string): Promise<any>;
|
|
589
594
|
getProjectPrelimModelRequestTemplate(projectTableName: string): Promise<Record<string, any>>;
|
|
@@ -591,7 +596,7 @@ export class Projects {
|
|
|
591
596
|
getAdminProjects(): Promise<ProjectRunDisplay[]>;
|
|
592
597
|
getProjectById(projectId: string): Promise<ProjectRunDisplay>;
|
|
593
598
|
getProjectByDirectory(directory: string): Promise<ProjectRunDisplay>;
|
|
594
|
-
updateProject(projectId: string, body?: { private?:
|
|
599
|
+
updateProject(projectId: string, body?: { private?: boolean, type?: number, description?: string, directory?: string, name?: string, thumbnail?: string }): Promise<ProjectRunDisplay>;
|
|
595
600
|
updateProjectPhotoCount(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<Record<string, any>>;
|
|
596
601
|
updateProjectCreateUploadReport(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<any>;
|
|
597
602
|
requestProjectSimilarityQueue(projectTableName: string, level: string): Promise<Record<string, any>>;
|
|
@@ -600,7 +605,7 @@ export class Projects {
|
|
|
600
605
|
requestInsightsQueue(analysisLevel: string, identifier: string): Promise<Record<string, any>>;
|
|
601
606
|
requestProjectExport(projectTableName: string): Promise<Record<string, any>>;
|
|
602
607
|
getProjectProcessStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
|
|
603
|
-
addProjectEvent(projectTableName: string, event: string, detail?:
|
|
608
|
+
addProjectEvent(projectTableName: string, event: string, detail?: string): Promise<Record<string, any>>;
|
|
604
609
|
deleteProject(projectId: string): Promise<Record<string, any>>;
|
|
605
610
|
}
|
|
606
611
|
|
|
@@ -608,7 +613,7 @@ export class Search {
|
|
|
608
613
|
searchProjectPhotos(projectTableName: string, options?: { andParams?: any, andStringParams?: any, orParams?: any, orStringParams?: any, notParams?: any, notStringParams?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], dateOrder?: string | string[], customAlbumId?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], curatedAlbumId?: number | number[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
|
|
609
614
|
searchProjectPhotosParametrized(projectTableName: string, options?: { andSearchText?: any, orSearchText?: any, notSearchText?: any, city?: any, country?: any, state?: any, albums?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
610
615
|
recallProjectPhotos(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>[]>;
|
|
611
|
-
searchProjectPhotosNaturalLanguage(projectTableName: string, searchText: string, size?:
|
|
616
|
+
searchProjectPhotosNaturalLanguage(projectTableName: string, searchText: string, size?: number, options?: { minCosine?: number | number[], labelMinCosine?: number | number[], labelTopK?: number | number[], labelDelta?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
|
|
612
617
|
getProjectSavedSearches(projectTableName: string): Promise<Record<string, any>>;
|
|
613
618
|
getSavedSearchById(searchId: number): Promise<SearchDisplay>;
|
|
614
619
|
saveProjectPhotosSearch(projectTableName: string, options?: { searchName?: string | string[], andParams?: any, andStringParams?: any, orParams?: any, orStringParams?: any, notParams?: any, notStringParams?: any, dateMin?: string | string[], dateMax?: string | string[], dateNullAnd?: boolean | boolean[], dateNullOr?: boolean | boolean[], dateOrder?: string | string[], customAlbumId?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], curatedAlbumId?: number | number[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
|
|
@@ -616,23 +621,23 @@ export class Search {
|
|
|
616
621
|
}
|
|
617
622
|
|
|
618
623
|
export class Subscription {
|
|
619
|
-
createSubscription(projectTableName: string, targets: any, callbackUrl?:
|
|
624
|
+
createSubscription(projectTableName: string, targets: any, callbackUrl?: string): Promise<SubscriptionActivated>;
|
|
620
625
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
621
626
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
622
627
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
623
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?:
|
|
628
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: string, targets?: any }): Promise<SubscriptionDisplay>;
|
|
624
629
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
625
630
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
626
631
|
}
|
|
627
632
|
|
|
628
633
|
export class Users {
|
|
629
|
-
createUser(name: string, email: string, accountType: number, companyId?:
|
|
630
|
-
createUserAndCompany(name: string, email: string, password: string, companyId?:
|
|
634
|
+
createUser(name: string, email: string, accountType: number, companyId?: number, profilePicture?: string, paymentPlanType?: string): Promise<UserDisplay>;
|
|
635
|
+
createUserAndCompany(name: string, email: string, password: string, companyId?: number, profilePicture?: string, paymentPlanType?: string, companyName?: string, credits?: number, options?: { inviteToken?: string | string[] }): Promise<UserDisplay>;
|
|
631
636
|
changePassword(oldPassword: string, newPassword: string): Promise<Record<string, any>>;
|
|
632
637
|
getUserId(): Promise<Record<string, any>>;
|
|
633
638
|
getUser(userId: number): Promise<UserDisplayWithCompanyPermissions>;
|
|
634
639
|
getAllUsersByCompany(companyId: number): Promise<UserDisplay[]>;
|
|
635
|
-
updateUser(userId: number, body?: { name?:
|
|
640
|
+
updateUser(userId: number, body?: { name?: string, email?: string, password?: string, companyId?: number, accountType?: number, profilePicture?: string, location?: string, phoneNumber?: string, birthday?: string }): Promise<UserDisplay>;
|
|
636
641
|
deleteUser(userId: number, options?: { newCompanyOwnerId?: number | number[] }): Promise<Record<string, any>>;
|
|
637
642
|
}
|
|
638
643
|
|
package/package.json
CHANGED