@mediaviz/sdk 1.10.0-rc.8 → 1.11.0-dev.125
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.cjs +57 -13
- package/dist/sdk.d.cts +207 -181
- package/dist/sdk.d.ts +207 -181
- package/dist/sdk.esm.d.ts +207 -181
- package/dist/sdk.esm.js +57 -14
- package/dist/sdk.umd.js +57 -13
- 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?: any;
|
|
139
|
+
description?: any;
|
|
140
140
|
id: number;
|
|
141
141
|
project_table_name: string;
|
|
142
142
|
}
|
|
@@ -152,7 +152,7 @@ export interface CompanyDisplay {
|
|
|
152
152
|
name: string;
|
|
153
153
|
id: number;
|
|
154
154
|
owner_id: number;
|
|
155
|
-
users?:
|
|
155
|
+
users?: any;
|
|
156
156
|
active: boolean;
|
|
157
157
|
payment_plan_type: string;
|
|
158
158
|
}
|
|
@@ -162,7 +162,12 @@ export interface CompanyKeywordListOverview {
|
|
|
162
162
|
name: string;
|
|
163
163
|
active_keywords: number;
|
|
164
164
|
excluded_keywords: number;
|
|
165
|
-
project_ids?:
|
|
165
|
+
project_ids?: any;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface CredentialSelfServiceEnablementDisplay {
|
|
169
|
+
company_id: number;
|
|
170
|
+
can_manage_api_clients: boolean;
|
|
166
171
|
}
|
|
167
172
|
|
|
168
173
|
export interface CreditBalanceOutput {
|
|
@@ -176,19 +181,19 @@ export interface CuratedAlbumDisplay {
|
|
|
176
181
|
id: number;
|
|
177
182
|
project_table_name: string;
|
|
178
183
|
name: string;
|
|
179
|
-
description?:
|
|
180
|
-
confidence_value?:
|
|
184
|
+
description?: any;
|
|
185
|
+
confidence_value?: any;
|
|
181
186
|
}
|
|
182
187
|
|
|
183
188
|
export interface EventPage {
|
|
184
|
-
events:
|
|
185
|
-
next_cursor?:
|
|
189
|
+
events: any;
|
|
190
|
+
next_cursor?: any;
|
|
186
191
|
}
|
|
187
192
|
|
|
188
193
|
export interface HealthCheck {
|
|
189
194
|
status?: string;
|
|
190
195
|
timestamp?: string;
|
|
191
|
-
checks?:
|
|
196
|
+
checks?: any;
|
|
192
197
|
}
|
|
193
198
|
|
|
194
199
|
export interface KeywordListDisplayWithList {
|
|
@@ -198,11 +203,11 @@ export interface KeywordListDisplayWithList {
|
|
|
198
203
|
name: string;
|
|
199
204
|
date_created: string;
|
|
200
205
|
date_last_updated: string;
|
|
201
|
-
is_inclusion?:
|
|
202
|
-
gsheet_view_link?:
|
|
203
|
-
gsheet_csv_link?:
|
|
204
|
-
gsheet_xlsx_link?:
|
|
205
|
-
list_keywords_included_or_excluded?:
|
|
206
|
+
is_inclusion?: any;
|
|
207
|
+
gsheet_view_link?: any;
|
|
208
|
+
gsheet_csv_link?: any;
|
|
209
|
+
gsheet_xlsx_link?: any;
|
|
210
|
+
list_keywords_included_or_excluded?: any;
|
|
206
211
|
}
|
|
207
212
|
|
|
208
213
|
export interface KeywordListDisplayWithProjects {
|
|
@@ -212,71 +217,78 @@ export interface KeywordListDisplayWithProjects {
|
|
|
212
217
|
name: string;
|
|
213
218
|
date_created: string;
|
|
214
219
|
date_last_updated: string;
|
|
215
|
-
is_inclusion?:
|
|
216
|
-
list_projects_associated?:
|
|
220
|
+
is_inclusion?: any;
|
|
221
|
+
list_projects_associated?: any;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface OrganizationCredentialCreated {
|
|
225
|
+
client_id: string;
|
|
226
|
+
client_secret: string;
|
|
227
|
+
credential_name: string;
|
|
228
|
+
created_at: string;
|
|
217
229
|
}
|
|
218
230
|
|
|
219
231
|
export interface PhotoDisplay {
|
|
220
232
|
photo_s3_link: string;
|
|
221
|
-
client_side_id?:
|
|
222
|
-
moment_id?:
|
|
223
|
-
file_path?:
|
|
224
|
-
image_metadata?:
|
|
225
|
-
tags?:
|
|
226
|
-
title?:
|
|
227
|
-
description?:
|
|
228
|
-
format?:
|
|
229
|
-
size?:
|
|
230
|
-
source_resolution_x?:
|
|
231
|
-
source_resolution_y?:
|
|
232
|
-
date_taken?:
|
|
233
|
-
date_modified?:
|
|
234
|
-
date_guessed?:
|
|
233
|
+
client_side_id?: any;
|
|
234
|
+
moment_id?: any;
|
|
235
|
+
file_path?: any;
|
|
236
|
+
image_metadata?: any;
|
|
237
|
+
tags?: any;
|
|
238
|
+
title?: any;
|
|
239
|
+
description?: any;
|
|
240
|
+
format?: any;
|
|
241
|
+
size?: any;
|
|
242
|
+
source_resolution_x?: any;
|
|
243
|
+
source_resolution_y?: any;
|
|
244
|
+
date_taken?: any;
|
|
245
|
+
date_modified?: any;
|
|
246
|
+
date_guessed?: any;
|
|
235
247
|
date_uploaded?: string;
|
|
236
|
-
latitude?:
|
|
237
|
-
longitude?:
|
|
238
|
-
country_code?:
|
|
239
|
-
country?:
|
|
240
|
-
state?:
|
|
241
|
-
city?:
|
|
242
|
-
average_hash?:
|
|
243
|
-
perceptual_hash?:
|
|
244
|
-
difference_hash?:
|
|
245
|
-
wavelet_hash_haar?:
|
|
246
|
-
color_hash?:
|
|
247
|
-
reference_1_average_distance?:
|
|
248
|
-
reference_2_average_distance?:
|
|
249
|
-
reference_3_average_distance?:
|
|
250
|
-
main_color_palette?:
|
|
251
|
-
color_averages?:
|
|
252
|
-
labels_from_classifications_model?:
|
|
253
|
-
ocr_output?:
|
|
254
|
-
bounding_boxes_from_faces_model?:
|
|
255
|
-
number_of_faces?:
|
|
256
|
-
blur_value?:
|
|
257
|
-
feature_extraction_output?:
|
|
258
|
-
similar_photo_ids_high?:
|
|
259
|
-
similar_photo_ids_medium?:
|
|
260
|
-
similar_photo_ids_low?:
|
|
261
|
-
evidence_score?:
|
|
262
|
-
face_score?:
|
|
263
|
-
content_score?:
|
|
264
|
-
aesthetic_score?:
|
|
265
|
-
similarity_set_ranking?:
|
|
266
|
-
topic?:
|
|
267
|
-
rank?:
|
|
268
|
-
hue_values?:
|
|
269
|
-
light_values?:
|
|
270
|
-
saturation_values?:
|
|
271
|
-
aesthetic_appeal?:
|
|
272
|
-
lighting?:
|
|
273
|
-
subject_significance?:
|
|
274
|
-
emotional_intensity?:
|
|
275
|
-
positive_emotion?:
|
|
276
|
-
universal_relatability?:
|
|
277
|
-
memorability?:
|
|
278
|
-
composition?:
|
|
279
|
-
judgment_overall_score?:
|
|
248
|
+
latitude?: any;
|
|
249
|
+
longitude?: any;
|
|
250
|
+
country_code?: any;
|
|
251
|
+
country?: any;
|
|
252
|
+
state?: any;
|
|
253
|
+
city?: any;
|
|
254
|
+
average_hash?: any;
|
|
255
|
+
perceptual_hash?: any;
|
|
256
|
+
difference_hash?: any;
|
|
257
|
+
wavelet_hash_haar?: any;
|
|
258
|
+
color_hash?: any;
|
|
259
|
+
reference_1_average_distance?: any;
|
|
260
|
+
reference_2_average_distance?: any;
|
|
261
|
+
reference_3_average_distance?: any;
|
|
262
|
+
main_color_palette?: any;
|
|
263
|
+
color_averages?: any;
|
|
264
|
+
labels_from_classifications_model?: any;
|
|
265
|
+
ocr_output?: any;
|
|
266
|
+
bounding_boxes_from_faces_model?: any;
|
|
267
|
+
number_of_faces?: any;
|
|
268
|
+
blur_value?: any;
|
|
269
|
+
feature_extraction_output?: any;
|
|
270
|
+
similar_photo_ids_high?: any;
|
|
271
|
+
similar_photo_ids_medium?: any;
|
|
272
|
+
similar_photo_ids_low?: any;
|
|
273
|
+
evidence_score?: any;
|
|
274
|
+
face_score?: any;
|
|
275
|
+
content_score?: any;
|
|
276
|
+
aesthetic_score?: any;
|
|
277
|
+
similarity_set_ranking?: any;
|
|
278
|
+
topic?: any;
|
|
279
|
+
rank?: any;
|
|
280
|
+
hue_values?: any;
|
|
281
|
+
light_values?: any;
|
|
282
|
+
saturation_values?: any;
|
|
283
|
+
aesthetic_appeal?: any;
|
|
284
|
+
lighting?: any;
|
|
285
|
+
subject_significance?: any;
|
|
286
|
+
emotional_intensity?: any;
|
|
287
|
+
positive_emotion?: any;
|
|
288
|
+
universal_relatability?: any;
|
|
289
|
+
memorability?: any;
|
|
290
|
+
composition?: any;
|
|
291
|
+
judgment_overall_score?: any;
|
|
280
292
|
user_id: number;
|
|
281
293
|
company_id: number;
|
|
282
294
|
id: number;
|
|
@@ -284,35 +296,35 @@ export interface PhotoDisplay {
|
|
|
284
296
|
}
|
|
285
297
|
|
|
286
298
|
export interface PhotoFace {
|
|
287
|
-
smile_value?:
|
|
288
|
-
smile_confidence?:
|
|
289
|
-
eyeglasses_value?:
|
|
290
|
-
eyeglasses_confidence?:
|
|
291
|
-
sunglasses_value?:
|
|
292
|
-
sunglasses_confidence?:
|
|
293
|
-
eyes_open_value?:
|
|
294
|
-
eyes_open_confidence?:
|
|
295
|
-
emotion_happy_confidence?:
|
|
296
|
-
emotion_sad_confidence?:
|
|
297
|
-
landmark_eyeleft_x?:
|
|
298
|
-
landmark_eyeleft_y?:
|
|
299
|
-
landmark_eyeright_x?:
|
|
300
|
-
landmark_eyeright_y?:
|
|
301
|
-
landmark_mouthleft_x?:
|
|
302
|
-
landmark_mouthleft_y?:
|
|
303
|
-
landmark_mouthright_x?:
|
|
304
|
-
landmark_mouthright_y?:
|
|
305
|
-
landmark_nose_x?:
|
|
306
|
-
landmark_nose_y?:
|
|
307
|
-
pose_roll?:
|
|
308
|
-
pose_yaw?:
|
|
309
|
-
pose_pitch?:
|
|
310
|
-
quality_brightness?:
|
|
311
|
-
quality_sharpness?:
|
|
312
|
-
face_occluded_value?:
|
|
313
|
-
eye_direction_yaw?:
|
|
314
|
-
eye_direction_pitch?:
|
|
315
|
-
eye_direction_confidence?:
|
|
299
|
+
smile_value?: any;
|
|
300
|
+
smile_confidence?: any;
|
|
301
|
+
eyeglasses_value?: any;
|
|
302
|
+
eyeglasses_confidence?: any;
|
|
303
|
+
sunglasses_value?: any;
|
|
304
|
+
sunglasses_confidence?: any;
|
|
305
|
+
eyes_open_value?: any;
|
|
306
|
+
eyes_open_confidence?: any;
|
|
307
|
+
emotion_happy_confidence?: any;
|
|
308
|
+
emotion_sad_confidence?: any;
|
|
309
|
+
landmark_eyeleft_x?: any;
|
|
310
|
+
landmark_eyeleft_y?: any;
|
|
311
|
+
landmark_eyeright_x?: any;
|
|
312
|
+
landmark_eyeright_y?: any;
|
|
313
|
+
landmark_mouthleft_x?: any;
|
|
314
|
+
landmark_mouthleft_y?: any;
|
|
315
|
+
landmark_mouthright_x?: any;
|
|
316
|
+
landmark_mouthright_y?: any;
|
|
317
|
+
landmark_nose_x?: any;
|
|
318
|
+
landmark_nose_y?: any;
|
|
319
|
+
pose_roll?: any;
|
|
320
|
+
pose_yaw?: any;
|
|
321
|
+
pose_pitch?: any;
|
|
322
|
+
quality_brightness?: any;
|
|
323
|
+
quality_sharpness?: any;
|
|
324
|
+
face_occluded_value?: any;
|
|
325
|
+
eye_direction_yaw?: any;
|
|
326
|
+
eye_direction_pitch?: any;
|
|
327
|
+
eye_direction_confidence?: any;
|
|
316
328
|
}
|
|
317
329
|
|
|
318
330
|
export interface PhotoPersonLight {
|
|
@@ -344,71 +356,64 @@ export interface PhotoPersonWithS3Link {
|
|
|
344
356
|
|
|
345
357
|
export interface ProjectRunDisplay {
|
|
346
358
|
name: string;
|
|
347
|
-
private?:
|
|
359
|
+
private?: any;
|
|
348
360
|
type: number;
|
|
349
|
-
description?:
|
|
350
|
-
directory?:
|
|
351
|
-
photo_upload_vector?:
|
|
352
|
-
thumbnail?:
|
|
353
|
-
run_name?:
|
|
361
|
+
description?: any;
|
|
362
|
+
directory?: any;
|
|
363
|
+
photo_upload_vector?: any;
|
|
364
|
+
thumbnail?: any;
|
|
365
|
+
run_name?: any;
|
|
354
366
|
id: string;
|
|
355
367
|
user_id: number;
|
|
356
368
|
company_id: number;
|
|
357
369
|
active: boolean;
|
|
358
370
|
project_table_name: string;
|
|
359
371
|
date_created: string;
|
|
360
|
-
number_of_photos?:
|
|
361
|
-
date_photos_uploaded?:
|
|
362
|
-
date_deleted?:
|
|
363
|
-
top_tier?:
|
|
364
|
-
tier_2?:
|
|
365
|
-
total_photos_uploaded?:
|
|
366
|
-
gsheet_view_link?:
|
|
367
|
-
gsheet_csv_link?:
|
|
368
|
-
gsheet_xlsx_link?:
|
|
369
|
-
insights_view_link?:
|
|
370
|
-
similarity_level?:
|
|
371
|
-
blur_model?:
|
|
372
|
-
colors_model?:
|
|
373
|
-
face_recognition_model?:
|
|
374
|
-
image_classification_model?:
|
|
375
|
-
image_comparison_model?:
|
|
376
|
-
image_describe_model?:
|
|
377
|
-
ocr_model?:
|
|
378
|
-
judgment_model?:
|
|
379
|
-
similarity_model?:
|
|
380
|
-
personhood_model?:
|
|
381
|
-
evidence_model?:
|
|
382
|
-
insights_model?:
|
|
383
|
-
normalize?:
|
|
384
|
-
is_continuous_upload?:
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
export interface PullEvent {
|
|
388
|
-
event_id: string;
|
|
389
|
-
photo_id: number;
|
|
390
|
-
target: string;
|
|
391
|
-
completed_at: string;
|
|
372
|
+
number_of_photos?: any;
|
|
373
|
+
date_photos_uploaded?: any;
|
|
374
|
+
date_deleted?: any;
|
|
375
|
+
top_tier?: any;
|
|
376
|
+
tier_2?: any;
|
|
377
|
+
total_photos_uploaded?: any;
|
|
378
|
+
gsheet_view_link?: any;
|
|
379
|
+
gsheet_csv_link?: any;
|
|
380
|
+
gsheet_xlsx_link?: any;
|
|
381
|
+
insights_view_link?: any;
|
|
382
|
+
similarity_level?: any;
|
|
383
|
+
blur_model?: any;
|
|
384
|
+
colors_model?: any;
|
|
385
|
+
face_recognition_model?: any;
|
|
386
|
+
image_classification_model?: any;
|
|
387
|
+
image_comparison_model?: any;
|
|
388
|
+
image_describe_model?: any;
|
|
389
|
+
ocr_model?: any;
|
|
390
|
+
judgment_model?: any;
|
|
391
|
+
similarity_model?: any;
|
|
392
|
+
personhood_model?: any;
|
|
393
|
+
evidence_model?: any;
|
|
394
|
+
insights_model?: any;
|
|
395
|
+
normalize?: any;
|
|
396
|
+
is_continuous_upload?: any;
|
|
392
397
|
}
|
|
393
398
|
|
|
394
399
|
export interface SearchDisplay {
|
|
395
400
|
id: number;
|
|
396
401
|
project_table_name: string;
|
|
397
402
|
search_name: string;
|
|
398
|
-
and_params?:
|
|
399
|
-
and_string_params?:
|
|
400
|
-
or_params?:
|
|
401
|
-
or_string_params?:
|
|
402
|
-
not_params?:
|
|
403
|
-
not_string_params?:
|
|
404
|
-
date_min?:
|
|
405
|
-
date_max?:
|
|
406
|
-
date_null_and?:
|
|
407
|
-
date_null_or?:
|
|
408
|
-
date_order?:
|
|
409
|
-
custom_album_id?:
|
|
410
|
-
best_of_similar_sets_only?:
|
|
411
|
-
curated_album_id?:
|
|
403
|
+
and_params?: any;
|
|
404
|
+
and_string_params?: any;
|
|
405
|
+
or_params?: any;
|
|
406
|
+
or_string_params?: any;
|
|
407
|
+
not_params?: any;
|
|
408
|
+
not_string_params?: any;
|
|
409
|
+
date_min?: any;
|
|
410
|
+
date_max?: any;
|
|
411
|
+
date_null_and?: any;
|
|
412
|
+
date_null_or?: any;
|
|
413
|
+
date_order?: any;
|
|
414
|
+
custom_album_id?: any;
|
|
415
|
+
best_of_similar_sets_only?: any;
|
|
416
|
+
curated_album_id?: any;
|
|
412
417
|
}
|
|
413
418
|
|
|
414
419
|
export interface SubscriptionActivated {
|
|
@@ -420,12 +425,12 @@ export interface SubscriptionActivated {
|
|
|
420
425
|
export interface SubscriptionDisplay {
|
|
421
426
|
id: string;
|
|
422
427
|
project_table_name: string;
|
|
423
|
-
callback_url?:
|
|
424
|
-
targets:
|
|
428
|
+
callback_url?: any;
|
|
429
|
+
targets: any;
|
|
425
430
|
status: string;
|
|
426
431
|
consecutive_failures: number;
|
|
427
|
-
last_delivery_at?:
|
|
428
|
-
last_status_code?:
|
|
432
|
+
last_delivery_at?: any;
|
|
433
|
+
last_status_code?: any;
|
|
429
434
|
created_at: string;
|
|
430
435
|
}
|
|
431
436
|
|
|
@@ -435,10 +440,23 @@ export interface UserDisplay {
|
|
|
435
440
|
name: string;
|
|
436
441
|
email: string;
|
|
437
442
|
account_type: number;
|
|
438
|
-
location?:
|
|
439
|
-
phone_number?:
|
|
440
|
-
birthday?:
|
|
441
|
-
profile_picture?:
|
|
443
|
+
location?: any;
|
|
444
|
+
phone_number?: any;
|
|
445
|
+
birthday?: any;
|
|
446
|
+
profile_picture?: any;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export interface UserDisplayWithCompanyPermissions {
|
|
450
|
+
id: number;
|
|
451
|
+
company_id: number;
|
|
452
|
+
name: string;
|
|
453
|
+
email: string;
|
|
454
|
+
account_type: number;
|
|
455
|
+
location?: any;
|
|
456
|
+
phone_number?: any;
|
|
457
|
+
birthday?: any;
|
|
458
|
+
profile_picture?: any;
|
|
459
|
+
can_manage_api_clients?: boolean;
|
|
442
460
|
}
|
|
443
461
|
|
|
444
462
|
export class AiModelCredits {
|
|
@@ -447,6 +465,7 @@ export class AiModelCredits {
|
|
|
447
465
|
|
|
448
466
|
export class Admin {
|
|
449
467
|
getCategoryLabels(category: string): Promise<Record<string, any>>;
|
|
468
|
+
adminSetCompanyCanManageApiClients(companyId: number, canManageApiClients: boolean): Promise<CredentialSelfServiceEnablementDisplay>;
|
|
450
469
|
}
|
|
451
470
|
|
|
452
471
|
export class Company {
|
|
@@ -455,12 +474,12 @@ export class Company {
|
|
|
455
474
|
}
|
|
456
475
|
|
|
457
476
|
export class CuratedAlbums {
|
|
458
|
-
createCuratedAlbum(projectTableName: string, name: string, description?:
|
|
477
|
+
createCuratedAlbum(projectTableName: string, name: string, description?: any, confidenceValue?: any): Promise<CuratedAlbumDisplay>;
|
|
459
478
|
getAllProjectCuratedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
|
|
460
479
|
getCuratedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
|
|
461
480
|
getCuratedAlbumPhotosRanked(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<Record<string, any>>;
|
|
462
481
|
getCuratedAlbumById(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
463
|
-
updateCuratedAlbum(albumId: number, body?: { name?:
|
|
482
|
+
updateCuratedAlbum(albumId: number, body?: { name?: any, description?: any, confidenceValue?: any }): Promise<CuratedAlbumDisplay>;
|
|
464
483
|
deleteCuratedAlbum(albumId: number): Promise<Record<string, any>>;
|
|
465
484
|
convertCuratedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
466
485
|
}
|
|
@@ -470,8 +489,8 @@ export class CustomAlbums {
|
|
|
470
489
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
471
490
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
472
491
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
473
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?:
|
|
474
|
-
updateCustomAlbum(albumId: number, body?: { name?:
|
|
492
|
+
createProjectCustomAlbum(projectTableName: string, body?: { name?: any, description?: any, photoIdInclusionList?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
|
|
493
|
+
updateCustomAlbum(albumId: number, body?: { name?: any, description?: any, photoIdInclusionList?: any, photoIdRemovalList?: any }): Promise<AlbumDisplay>;
|
|
475
494
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
476
495
|
}
|
|
477
496
|
|
|
@@ -491,15 +510,15 @@ export class Health {
|
|
|
491
510
|
}
|
|
492
511
|
|
|
493
512
|
export class Keywords {
|
|
494
|
-
createKeywordFilteringList(name: string, projectList?:
|
|
513
|
+
createKeywordFilteringList(name: string, projectList?: any): Promise<KeywordListDisplayWithProjects>;
|
|
495
514
|
getUserKeywordFilteringLists(): Promise<KeywordListDisplayWithProjects[]>;
|
|
496
515
|
getCompanyKeywordLists(companyId: number): Promise<CompanyKeywordListOverview[]>;
|
|
497
516
|
getKeywordFilteringListAndProjectsById(keywordListId: number): Promise<KeywordListDisplayWithProjects>;
|
|
498
517
|
getKeywordFilteringListById(keywordListId: number): Promise<KeywordListDisplayWithList>;
|
|
499
518
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
500
519
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
501
|
-
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude:
|
|
502
|
-
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?:
|
|
520
|
+
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude: any, listKeywordsToExclude: any): Promise<KeywordListDisplayWithList>;
|
|
521
|
+
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: any, projectList?: any }): Promise<KeywordListDisplayWithProjects>;
|
|
503
522
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
504
523
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
505
524
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -518,6 +537,12 @@ export class OauthAuthorization {
|
|
|
518
537
|
getSwitchUser(sessionId: string, options?: { restartUrl?: string | string[] }): Promise<any>;
|
|
519
538
|
}
|
|
520
539
|
|
|
540
|
+
export class OauthClients {
|
|
541
|
+
createApiCredential(credentialName: string): Promise<OrganizationCredentialCreated>;
|
|
542
|
+
getCompanyApiCredentials(): Promise<any>;
|
|
543
|
+
revokeApiCredential(clientId: string): Promise<any>;
|
|
544
|
+
}
|
|
545
|
+
|
|
521
546
|
export class OauthToken {
|
|
522
547
|
token(body: { grantType: string, code: string, redirectUri: string, clientId: string, codeVerifier: string, refreshToken: string, clientSecret: string }): Promise<Record<string, any>>;
|
|
523
548
|
adminRevokeUserTokens(userId: number): Promise<Record<string, any>>;
|
|
@@ -552,13 +577,13 @@ export class Photos {
|
|
|
552
577
|
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>;
|
|
553
578
|
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>>;
|
|
554
579
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
555
|
-
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?:
|
|
580
|
+
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: any, title?: any, description?: any, tags?: any }): Promise<PhotoDisplay>;
|
|
556
581
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
557
582
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
558
583
|
}
|
|
559
584
|
|
|
560
585
|
export class Projects {
|
|
561
|
-
createProjectAndRun(name: string, type: number, private_?:
|
|
586
|
+
createProjectAndRun(name: string, type: number, private_?: any, description?: any, directory?: any, photoUploadVector?: any, thumbnail?: any, runName?: any, options?: { outcomes?: any, models?: any }): Promise<ProjectRunDisplay>;
|
|
562
587
|
markProjectUploadComplete(projectTableName: string, options?: { skippedFileCount?: number | number[] }): Promise<any>;
|
|
563
588
|
checkProjectStatus(projectTableName: string): Promise<any>;
|
|
564
589
|
getProjectPrelimModelRequestTemplate(projectTableName: string): Promise<Record<string, any>>;
|
|
@@ -566,7 +591,7 @@ export class Projects {
|
|
|
566
591
|
getAdminProjects(): Promise<ProjectRunDisplay[]>;
|
|
567
592
|
getProjectById(projectId: string): Promise<ProjectRunDisplay>;
|
|
568
593
|
getProjectByDirectory(directory: string): Promise<ProjectRunDisplay>;
|
|
569
|
-
updateProject(projectId: string, body?: { private?:
|
|
594
|
+
updateProject(projectId: string, body?: { private?: any, type?: any, description?: any, directory?: any, name?: any, thumbnail?: any }): Promise<ProjectRunDisplay>;
|
|
570
595
|
updateProjectPhotoCount(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<Record<string, any>>;
|
|
571
596
|
updateProjectCreateUploadReport(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<any>;
|
|
572
597
|
requestProjectSimilarityQueue(projectTableName: string, level: string): Promise<Record<string, any>>;
|
|
@@ -575,7 +600,7 @@ export class Projects {
|
|
|
575
600
|
requestInsightsQueue(analysisLevel: string, identifier: string): Promise<Record<string, any>>;
|
|
576
601
|
requestProjectExport(projectTableName: string): Promise<Record<string, any>>;
|
|
577
602
|
getProjectProcessStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
|
|
578
|
-
addProjectEvent(projectTableName: string, event: string, detail?:
|
|
603
|
+
addProjectEvent(projectTableName: string, event: string, detail?: any): Promise<Record<string, any>>;
|
|
579
604
|
deleteProject(projectId: string): Promise<Record<string, any>>;
|
|
580
605
|
}
|
|
581
606
|
|
|
@@ -583,7 +608,7 @@ export class Search {
|
|
|
583
608
|
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>>;
|
|
584
609
|
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>>;
|
|
585
610
|
recallProjectPhotos(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>[]>;
|
|
586
|
-
searchProjectPhotosNaturalLanguage(projectTableName: string, searchText: string, size?:
|
|
611
|
+
searchProjectPhotosNaturalLanguage(projectTableName: string, searchText: string, size?: any, options?: { minCosine?: number | number[], labelMinCosine?: number | number[], labelTopK?: number | number[], labelDelta?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
|
|
587
612
|
getProjectSavedSearches(projectTableName: string): Promise<Record<string, any>>;
|
|
588
613
|
getSavedSearchById(searchId: number): Promise<SearchDisplay>;
|
|
589
614
|
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>>;
|
|
@@ -591,23 +616,23 @@ export class Search {
|
|
|
591
616
|
}
|
|
592
617
|
|
|
593
618
|
export class Subscription {
|
|
594
|
-
createSubscription(projectTableName: string, targets:
|
|
619
|
+
createSubscription(projectTableName: string, targets: any, callbackUrl?: any): Promise<SubscriptionActivated>;
|
|
595
620
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
596
621
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
597
622
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
598
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?:
|
|
623
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: any, targets?: any }): Promise<SubscriptionDisplay>;
|
|
599
624
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
600
625
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
601
626
|
}
|
|
602
627
|
|
|
603
628
|
export class Users {
|
|
604
|
-
createUser(name: string, email: string, accountType: number, companyId?:
|
|
605
|
-
createUserAndCompany(name: string, email: string, password: string, companyId?:
|
|
629
|
+
createUser(name: string, email: string, accountType: number, companyId?: any, profilePicture?: any, paymentPlanType?: any): Promise<UserDisplay>;
|
|
630
|
+
createUserAndCompany(name: string, email: string, password: string, companyId?: any, profilePicture?: any, paymentPlanType?: any, companyName?: any, credits?: any, options?: { inviteToken?: string | string[] }): Promise<UserDisplay>;
|
|
606
631
|
changePassword(oldPassword: string, newPassword: string): Promise<Record<string, any>>;
|
|
607
632
|
getUserId(): Promise<Record<string, any>>;
|
|
608
|
-
getUser(userId: number): Promise<
|
|
633
|
+
getUser(userId: number): Promise<UserDisplayWithCompanyPermissions>;
|
|
609
634
|
getAllUsersByCompany(companyId: number): Promise<UserDisplay[]>;
|
|
610
|
-
updateUser(userId: number, body?: { name?:
|
|
635
|
+
updateUser(userId: number, body?: { name?: any, email?: any, password?: any, companyId?: any, accountType?: any, profilePicture?: any, location?: any, phoneNumber?: any, birthday?: any }): Promise<UserDisplay>;
|
|
611
636
|
deleteUser(userId: number, options?: { newCompanyOwnerId?: number | number[] }): Promise<Record<string, any>>;
|
|
612
637
|
}
|
|
613
638
|
|
|
@@ -632,6 +657,7 @@ export class MediaViz {
|
|
|
632
657
|
readonly health: Health;
|
|
633
658
|
readonly keywords: Keywords;
|
|
634
659
|
readonly oAuthAuthorization: OauthAuthorization;
|
|
660
|
+
readonly oAuthClients: OauthClients;
|
|
635
661
|
readonly oAuthToken: OauthToken;
|
|
636
662
|
readonly oauthLogin: OauthLogin;
|
|
637
663
|
readonly person: Person;
|