@mediaviz/sdk 1.10.0 → 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 +89 -16
- package/dist/sdk.d.cts +213 -172
- package/dist/sdk.d.ts +213 -172
- package/dist/sdk.esm.d.ts +213 -172
- package/dist/sdk.esm.js +88 -17
- package/dist/sdk.umd.js +89 -16
- package/package.json +1 -1
package/dist/sdk.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,62 +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?:
|
|
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;
|
|
271
292
|
user_id: number;
|
|
272
293
|
company_id: number;
|
|
273
294
|
id: number;
|
|
@@ -275,35 +296,35 @@ export interface PhotoDisplay {
|
|
|
275
296
|
}
|
|
276
297
|
|
|
277
298
|
export interface PhotoFace {
|
|
278
|
-
smile_value?:
|
|
279
|
-
smile_confidence?:
|
|
280
|
-
eyeglasses_value?:
|
|
281
|
-
eyeglasses_confidence?:
|
|
282
|
-
sunglasses_value?:
|
|
283
|
-
sunglasses_confidence?:
|
|
284
|
-
eyes_open_value?:
|
|
285
|
-
eyes_open_confidence?:
|
|
286
|
-
emotion_happy_confidence?:
|
|
287
|
-
emotion_sad_confidence?:
|
|
288
|
-
landmark_eyeleft_x?:
|
|
289
|
-
landmark_eyeleft_y?:
|
|
290
|
-
landmark_eyeright_x?:
|
|
291
|
-
landmark_eyeright_y?:
|
|
292
|
-
landmark_mouthleft_x?:
|
|
293
|
-
landmark_mouthleft_y?:
|
|
294
|
-
landmark_mouthright_x?:
|
|
295
|
-
landmark_mouthright_y?:
|
|
296
|
-
landmark_nose_x?:
|
|
297
|
-
landmark_nose_y?:
|
|
298
|
-
pose_roll?:
|
|
299
|
-
pose_yaw?:
|
|
300
|
-
pose_pitch?:
|
|
301
|
-
quality_brightness?:
|
|
302
|
-
quality_sharpness?:
|
|
303
|
-
face_occluded_value?:
|
|
304
|
-
eye_direction_yaw?:
|
|
305
|
-
eye_direction_pitch?:
|
|
306
|
-
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;
|
|
307
328
|
}
|
|
308
329
|
|
|
309
330
|
export interface PhotoPersonLight {
|
|
@@ -335,70 +356,64 @@ export interface PhotoPersonWithS3Link {
|
|
|
335
356
|
|
|
336
357
|
export interface ProjectRunDisplay {
|
|
337
358
|
name: string;
|
|
338
|
-
private?:
|
|
359
|
+
private?: any;
|
|
339
360
|
type: number;
|
|
340
|
-
description?:
|
|
341
|
-
directory?:
|
|
342
|
-
photo_upload_vector?:
|
|
343
|
-
thumbnail?:
|
|
344
|
-
run_name?:
|
|
361
|
+
description?: any;
|
|
362
|
+
directory?: any;
|
|
363
|
+
photo_upload_vector?: any;
|
|
364
|
+
thumbnail?: any;
|
|
365
|
+
run_name?: any;
|
|
345
366
|
id: string;
|
|
346
367
|
user_id: number;
|
|
347
368
|
company_id: number;
|
|
348
369
|
active: boolean;
|
|
349
370
|
project_table_name: string;
|
|
350
371
|
date_created: string;
|
|
351
|
-
number_of_photos?:
|
|
352
|
-
date_photos_uploaded?:
|
|
353
|
-
date_deleted?:
|
|
354
|
-
top_tier?:
|
|
355
|
-
tier_2?:
|
|
356
|
-
total_photos_uploaded?:
|
|
357
|
-
gsheet_view_link?:
|
|
358
|
-
gsheet_csv_link?:
|
|
359
|
-
gsheet_xlsx_link?:
|
|
360
|
-
insights_view_link?:
|
|
361
|
-
similarity_level?:
|
|
362
|
-
blur_model?:
|
|
363
|
-
colors_model?:
|
|
364
|
-
face_recognition_model?:
|
|
365
|
-
image_classification_model?:
|
|
366
|
-
image_comparison_model?:
|
|
367
|
-
image_describe_model?:
|
|
368
|
-
ocr_model?:
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
export interface PullEvent {
|
|
378
|
-
event_id: string;
|
|
379
|
-
photo_id: number;
|
|
380
|
-
target: string;
|
|
381
|
-
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;
|
|
382
397
|
}
|
|
383
398
|
|
|
384
399
|
export interface SearchDisplay {
|
|
385
400
|
id: number;
|
|
386
401
|
project_table_name: string;
|
|
387
402
|
search_name: string;
|
|
388
|
-
and_params?:
|
|
389
|
-
and_string_params?:
|
|
390
|
-
or_params?:
|
|
391
|
-
or_string_params?:
|
|
392
|
-
not_params?:
|
|
393
|
-
not_string_params?:
|
|
394
|
-
date_min?:
|
|
395
|
-
date_max?:
|
|
396
|
-
date_null_and?:
|
|
397
|
-
date_null_or?:
|
|
398
|
-
date_order?:
|
|
399
|
-
custom_album_id?:
|
|
400
|
-
best_of_similar_sets_only?:
|
|
401
|
-
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;
|
|
402
417
|
}
|
|
403
418
|
|
|
404
419
|
export interface SubscriptionActivated {
|
|
@@ -410,12 +425,12 @@ export interface SubscriptionActivated {
|
|
|
410
425
|
export interface SubscriptionDisplay {
|
|
411
426
|
id: string;
|
|
412
427
|
project_table_name: string;
|
|
413
|
-
callback_url?:
|
|
414
|
-
targets:
|
|
428
|
+
callback_url?: any;
|
|
429
|
+
targets: any;
|
|
415
430
|
status: string;
|
|
416
431
|
consecutive_failures: number;
|
|
417
|
-
last_delivery_at?:
|
|
418
|
-
last_status_code?:
|
|
432
|
+
last_delivery_at?: any;
|
|
433
|
+
last_status_code?: any;
|
|
419
434
|
created_at: string;
|
|
420
435
|
}
|
|
421
436
|
|
|
@@ -425,10 +440,23 @@ export interface UserDisplay {
|
|
|
425
440
|
name: string;
|
|
426
441
|
email: string;
|
|
427
442
|
account_type: number;
|
|
428
|
-
location?:
|
|
429
|
-
phone_number?:
|
|
430
|
-
birthday?:
|
|
431
|
-
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;
|
|
432
460
|
}
|
|
433
461
|
|
|
434
462
|
export class AiModelCredits {
|
|
@@ -437,6 +465,7 @@ export class AiModelCredits {
|
|
|
437
465
|
|
|
438
466
|
export class Admin {
|
|
439
467
|
getCategoryLabels(category: string): Promise<Record<string, any>>;
|
|
468
|
+
adminSetCompanyCanManageApiClients(companyId: number, canManageApiClients: boolean): Promise<CredentialSelfServiceEnablementDisplay>;
|
|
440
469
|
}
|
|
441
470
|
|
|
442
471
|
export class Company {
|
|
@@ -445,12 +474,12 @@ export class Company {
|
|
|
445
474
|
}
|
|
446
475
|
|
|
447
476
|
export class CuratedAlbums {
|
|
448
|
-
createCuratedAlbum(projectTableName: string, name: string, description?:
|
|
477
|
+
createCuratedAlbum(projectTableName: string, name: string, description?: any, confidenceValue?: any): Promise<CuratedAlbumDisplay>;
|
|
449
478
|
getAllProjectCuratedAlbums(projectTableName: string): Promise<CuratedAlbumDisplay[]>;
|
|
450
479
|
getCuratedAlbumPhotos(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<any[]>;
|
|
451
480
|
getCuratedAlbumPhotosRanked(albumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[], confidenceValue?: number | number[] }): Promise<Record<string, any>>;
|
|
452
481
|
getCuratedAlbumById(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
453
|
-
updateCuratedAlbum(albumId: number, body?: { name?:
|
|
482
|
+
updateCuratedAlbum(albumId: number, body?: { name?: any, description?: any, confidenceValue?: any }): Promise<CuratedAlbumDisplay>;
|
|
454
483
|
deleteCuratedAlbum(albumId: number): Promise<Record<string, any>>;
|
|
455
484
|
convertCuratedAlbumToCustom(albumId: number): Promise<CuratedAlbumDisplay>;
|
|
456
485
|
}
|
|
@@ -460,8 +489,8 @@ export class CustomAlbums {
|
|
|
460
489
|
getAllProjectCustomAlbums(projectTableName: string): Promise<AlbumDisplay[]>;
|
|
461
490
|
getCustomAlbumPhotosById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<any>;
|
|
462
491
|
getRankedCustomAlbumById(customAlbumId: number, options?: { ascOrDesc?: string | string[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>>;
|
|
463
|
-
createProjectCustomAlbum(projectTableName: string, body?: { name?:
|
|
464
|
-
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>;
|
|
465
494
|
deleteCustomAlbum(albumId: number): Promise<Record<string, any>>;
|
|
466
495
|
}
|
|
467
496
|
|
|
@@ -481,15 +510,15 @@ export class Health {
|
|
|
481
510
|
}
|
|
482
511
|
|
|
483
512
|
export class Keywords {
|
|
484
|
-
createKeywordFilteringList(name: string, projectList?:
|
|
513
|
+
createKeywordFilteringList(name: string, projectList?: any): Promise<KeywordListDisplayWithProjects>;
|
|
485
514
|
getUserKeywordFilteringLists(): Promise<KeywordListDisplayWithProjects[]>;
|
|
486
515
|
getCompanyKeywordLists(companyId: number): Promise<CompanyKeywordListOverview[]>;
|
|
487
516
|
getKeywordFilteringListAndProjectsById(keywordListId: number): Promise<KeywordListDisplayWithProjects>;
|
|
488
517
|
getKeywordFilteringListById(keywordListId: number): Promise<KeywordListDisplayWithList>;
|
|
489
518
|
getExistingKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
490
519
|
getDefaultKeywordFilteringListByProject(projectTableName: string): Promise<Record<string, any>>;
|
|
491
|
-
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude:
|
|
492
|
-
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>;
|
|
493
522
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
494
523
|
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
495
524
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
@@ -508,6 +537,12 @@ export class OauthAuthorization {
|
|
|
508
537
|
getSwitchUser(sessionId: string, options?: { restartUrl?: string | string[] }): Promise<any>;
|
|
509
538
|
}
|
|
510
539
|
|
|
540
|
+
export class OauthClients {
|
|
541
|
+
createApiCredential(credentialName: string): Promise<OrganizationCredentialCreated>;
|
|
542
|
+
getCompanyApiCredentials(): Promise<any>;
|
|
543
|
+
revokeApiCredential(clientId: string): Promise<any>;
|
|
544
|
+
}
|
|
545
|
+
|
|
511
546
|
export class OauthToken {
|
|
512
547
|
token(body: { grantType: string, code: string, redirectUri: string, clientId: string, codeVerifier: string, refreshToken: string, clientSecret: string }): Promise<Record<string, any>>;
|
|
513
548
|
adminRevokeUserTokens(userId: number): Promise<Record<string, any>>;
|
|
@@ -532,7 +567,7 @@ export class Person {
|
|
|
532
567
|
}
|
|
533
568
|
|
|
534
569
|
export class Photoupload {
|
|
535
|
-
uploadPhotoToMediaviz(fileContent: string, filePath: string, mimetype: string, companyId: string, userId: string, projectTableName: string, blur: boolean | string, colors: boolean | string, faceRecognition: boolean | string, imageClassification: boolean | string, imageComparison: boolean | string, imageDescribe: boolean | string, ocr: boolean | string, options?: { clientSideId?: string, format?: string, size?: string, sourceResolutionX?: number | string, sourceResolutionY?: number | string, dateTaken?: string, latitude?: number | string, longitude?: number | string }): Promise<any>;
|
|
570
|
+
uploadPhotoToMediaviz(fileContent: string, filePath: string, mimetype: string, companyId: string, userId: string, projectTableName: string, blur: boolean | string, colors: boolean | string, faceRecognition: boolean | string, imageClassification: boolean | string, imageComparison: boolean | string, imageDescribe: boolean | string, ocr: boolean | string, judgment: boolean | string, options?: { clientSideId?: string, format?: string, size?: string, sourceResolutionX?: number | string, sourceResolutionY?: number | string, dateTaken?: string, latitude?: number | string, longitude?: number | string }): Promise<any>;
|
|
536
571
|
uploadPhoto(companyId: string, userId: string, projectTableName: string, photo: Record<string, any>): Promise<any>;
|
|
537
572
|
}
|
|
538
573
|
|
|
@@ -542,13 +577,13 @@ export class Photos {
|
|
|
542
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>;
|
|
543
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>>;
|
|
544
579
|
getProjectMonthYearsWithPhotos(tableName: string): Promise<any>;
|
|
545
|
-
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?:
|
|
580
|
+
updatePhotoInProject(tableName: string, photoId: number, body?: { filePath?: any, title?: any, description?: any, tags?: any }): Promise<PhotoDisplay>;
|
|
546
581
|
updatePhotoRanking(tableName: string, photoId: number, newCategory: string): Promise<Record<string, any>>;
|
|
547
582
|
deletePhotoFromProject(tableName: string, options?: { photoIds?: any }): Promise<Record<string, any>>;
|
|
548
583
|
}
|
|
549
584
|
|
|
550
585
|
export class Projects {
|
|
551
|
-
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>;
|
|
552
587
|
markProjectUploadComplete(projectTableName: string, options?: { skippedFileCount?: number | number[] }): Promise<any>;
|
|
553
588
|
checkProjectStatus(projectTableName: string): Promise<any>;
|
|
554
589
|
getProjectPrelimModelRequestTemplate(projectTableName: string): Promise<Record<string, any>>;
|
|
@@ -556,7 +591,7 @@ export class Projects {
|
|
|
556
591
|
getAdminProjects(): Promise<ProjectRunDisplay[]>;
|
|
557
592
|
getProjectById(projectId: string): Promise<ProjectRunDisplay>;
|
|
558
593
|
getProjectByDirectory(directory: string): Promise<ProjectRunDisplay>;
|
|
559
|
-
updateProject(projectId: string, body?: { private?:
|
|
594
|
+
updateProject(projectId: string, body?: { private?: any, type?: any, description?: any, directory?: any, name?: any, thumbnail?: any }): Promise<ProjectRunDisplay>;
|
|
560
595
|
updateProjectPhotoCount(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<Record<string, any>>;
|
|
561
596
|
updateProjectCreateUploadReport(tableName: string, options?: { filesFailedCount?: number | number[] }): Promise<any>;
|
|
562
597
|
requestProjectSimilarityQueue(projectTableName: string, level: string): Promise<Record<string, any>>;
|
|
@@ -565,7 +600,7 @@ export class Projects {
|
|
|
565
600
|
requestInsightsQueue(analysisLevel: string, identifier: string): Promise<Record<string, any>>;
|
|
566
601
|
requestProjectExport(projectTableName: string): Promise<Record<string, any>>;
|
|
567
602
|
getProjectProcessStatus(projectTableName: string, modelName: string): Promise<AnalysisStatusResponse>;
|
|
568
|
-
addProjectEvent(projectTableName: string, event: string, detail?:
|
|
603
|
+
addProjectEvent(projectTableName: string, event: string, detail?: any): Promise<Record<string, any>>;
|
|
569
604
|
deleteProject(projectId: string): Promise<Record<string, any>>;
|
|
570
605
|
}
|
|
571
606
|
|
|
@@ -573,7 +608,7 @@ export class Search {
|
|
|
573
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>>;
|
|
574
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>>;
|
|
575
610
|
recallProjectPhotos(projectTableName: string, options?: { ascOrDesc?: string | string[], bestOfSimilarSetsOnly?: boolean | boolean[], lastId?: number | number[], limit?: number | number[] }): Promise<Record<string, any>[]>;
|
|
576
|
-
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>>;
|
|
577
612
|
getProjectSavedSearches(projectTableName: string): Promise<Record<string, any>>;
|
|
578
613
|
getSavedSearchById(searchId: number): Promise<SearchDisplay>;
|
|
579
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>>;
|
|
@@ -581,26 +616,30 @@ export class Search {
|
|
|
581
616
|
}
|
|
582
617
|
|
|
583
618
|
export class Subscription {
|
|
584
|
-
createSubscription(projectTableName: string, targets:
|
|
619
|
+
createSubscription(projectTableName: string, targets: any, callbackUrl?: any): Promise<SubscriptionActivated>;
|
|
585
620
|
verifySubscription(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
586
621
|
listSubscriptions(): Promise<SubscriptionDisplay[]>;
|
|
587
622
|
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[] }): Promise<EventPage>;
|
|
588
|
-
updateSubscription(subscriptionId: string, body?: { callbackUrl?:
|
|
623
|
+
updateSubscription(subscriptionId: string, body?: { callbackUrl?: any, targets?: any }): Promise<SubscriptionDisplay>;
|
|
589
624
|
deleteSubscription(subscriptionId: string): Promise<Record<string, any>>;
|
|
590
625
|
rotateSubscriptionSecret(subscriptionId: string): Promise<SubscriptionActivated>;
|
|
591
626
|
}
|
|
592
627
|
|
|
593
628
|
export class Users {
|
|
594
|
-
createUser(name: string, email: string, accountType: number, companyId?:
|
|
595
|
-
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>;
|
|
596
631
|
changePassword(oldPassword: string, newPassword: string): Promise<Record<string, any>>;
|
|
597
632
|
getUserId(): Promise<Record<string, any>>;
|
|
598
|
-
getUser(userId: number): Promise<
|
|
633
|
+
getUser(userId: number): Promise<UserDisplayWithCompanyPermissions>;
|
|
599
634
|
getAllUsersByCompany(companyId: number): Promise<UserDisplay[]>;
|
|
600
|
-
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>;
|
|
601
636
|
deleteUser(userId: number, options?: { newCompanyOwnerId?: number | number[] }): Promise<Record<string, any>>;
|
|
602
637
|
}
|
|
603
638
|
|
|
639
|
+
export class Webhookreceiver {
|
|
640
|
+
listSubscriptionEvents(subscriptionId: string, options?: { since?: string | string[], limit?: number | number[], wait?: number | number[], includeHeavy?: boolean | boolean[] }): Promise<Record<string, any>>;
|
|
641
|
+
}
|
|
642
|
+
|
|
604
643
|
export class MediaViz {
|
|
605
644
|
constructor(config?: MediaVizConfig);
|
|
606
645
|
authenticate(): Promise<TokenResponse>;
|
|
@@ -618,6 +657,7 @@ export class MediaViz {
|
|
|
618
657
|
readonly health: Health;
|
|
619
658
|
readonly keywords: Keywords;
|
|
620
659
|
readonly oAuthAuthorization: OauthAuthorization;
|
|
660
|
+
readonly oAuthClients: OauthClients;
|
|
621
661
|
readonly oAuthToken: OauthToken;
|
|
622
662
|
readonly oauthLogin: OauthLogin;
|
|
623
663
|
readonly person: Person;
|
|
@@ -627,6 +667,7 @@ export class MediaViz {
|
|
|
627
667
|
readonly search: Search;
|
|
628
668
|
readonly subscription: Subscription;
|
|
629
669
|
readonly users: Users;
|
|
670
|
+
readonly webhookReceiver: Webhookreceiver;
|
|
630
671
|
readonly webhooks: WebhookConsumer;
|
|
631
672
|
}
|
|
632
673
|
|