@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.d.cts 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?: string;
139
- description?: string;
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?: number[];
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?: string[];
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?: string;
180
- confidence_value?: number;
184
+ description?: any;
185
+ confidence_value?: any;
181
186
  }
182
187
 
183
188
  export interface EventPage {
184
- events: PullEvent[];
185
- next_cursor?: string;
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?: Record<string, any>;
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?: boolean;
202
- gsheet_view_link?: string;
203
- gsheet_csv_link?: string;
204
- gsheet_xlsx_link?: string;
205
- list_keywords_included_or_excluded?: number[];
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?: boolean;
216
- list_projects_associated?: string[];
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?: string;
222
- moment_id?: number;
223
- file_path?: string;
224
- image_metadata?: Record<string, any>;
225
- tags?: string[];
226
- title?: string;
227
- description?: string;
228
- format?: string;
229
- size?: string;
230
- source_resolution_x?: number;
231
- source_resolution_y?: number;
232
- date_taken?: string;
233
- date_modified?: string;
234
- date_guessed?: string;
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?: number;
237
- longitude?: number;
238
- country_code?: string;
239
- country?: string;
240
- state?: string;
241
- city?: string;
242
- average_hash?: string;
243
- perceptual_hash?: string;
244
- difference_hash?: string;
245
- wavelet_hash_haar?: string;
246
- color_hash?: string;
247
- reference_1_average_distance?: number;
248
- reference_2_average_distance?: number;
249
- reference_3_average_distance?: number;
250
- main_color_palette?: string[];
251
- color_averages?: string[];
252
- labels_from_classifications_model?: Record<string, any>;
253
- ocr_output?: Record<string, any>;
254
- bounding_boxes_from_faces_model?: Record<string, any>[];
255
- number_of_faces?: number;
256
- blur_value?: number;
257
- feature_extraction_output?: number[];
258
- similar_photo_ids_high?: number[];
259
- similar_photo_ids_medium?: number[];
260
- similar_photo_ids_low?: number[];
261
- evidence_score?: number;
262
- face_score?: number;
263
- content_score?: number;
264
- aesthetic_score?: number;
265
- similarity_set_ranking?: number;
266
- topic?: string;
267
- rank?: number;
268
- hue_values?: number[];
269
- light_values?: number[];
270
- saturation_values?: number[];
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?: boolean;
279
- smile_confidence?: number;
280
- eyeglasses_value?: boolean;
281
- eyeglasses_confidence?: number;
282
- sunglasses_value?: boolean;
283
- sunglasses_confidence?: number;
284
- eyes_open_value?: boolean;
285
- eyes_open_confidence?: number;
286
- emotion_happy_confidence?: number;
287
- emotion_sad_confidence?: number;
288
- landmark_eyeleft_x?: number;
289
- landmark_eyeleft_y?: number;
290
- landmark_eyeright_x?: number;
291
- landmark_eyeright_y?: number;
292
- landmark_mouthleft_x?: number;
293
- landmark_mouthleft_y?: number;
294
- landmark_mouthright_x?: number;
295
- landmark_mouthright_y?: number;
296
- landmark_nose_x?: number;
297
- landmark_nose_y?: number;
298
- pose_roll?: number;
299
- pose_yaw?: number;
300
- pose_pitch?: number;
301
- quality_brightness?: number;
302
- quality_sharpness?: number;
303
- face_occluded_value?: boolean;
304
- eye_direction_yaw?: number;
305
- eye_direction_pitch?: number;
306
- eye_direction_confidence?: number;
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?: boolean;
359
+ private?: any;
339
360
  type: number;
340
- description?: string;
341
- directory?: string;
342
- photo_upload_vector?: number;
343
- thumbnail?: string;
344
- run_name?: string;
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?: number;
352
- date_photos_uploaded?: string;
353
- date_deleted?: string;
354
- top_tier?: number;
355
- tier_2?: number;
356
- total_photos_uploaded?: number;
357
- gsheet_view_link?: string;
358
- gsheet_csv_link?: string;
359
- gsheet_xlsx_link?: string;
360
- insights_view_link?: string;
361
- similarity_level?: string;
362
- blur_model?: boolean;
363
- colors_model?: boolean;
364
- face_recognition_model?: boolean;
365
- image_classification_model?: boolean;
366
- image_comparison_model?: boolean;
367
- image_describe_model?: boolean;
368
- ocr_model?: boolean;
369
- similarity_model?: boolean;
370
- personhood_model?: boolean;
371
- evidence_model?: boolean;
372
- insights_model?: boolean;
373
- normalize?: boolean;
374
- is_continuous_upload?: boolean;
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?: string[];
389
- and_string_params?: string[];
390
- or_params?: string[];
391
- or_string_params?: string[];
392
- not_params?: string[];
393
- not_string_params?: string[];
394
- date_min?: string;
395
- date_max?: string;
396
- date_null_and?: boolean;
397
- date_null_or?: boolean;
398
- date_order?: string;
399
- custom_album_id?: number;
400
- best_of_similar_sets_only?: boolean;
401
- curated_album_id?: number;
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?: string;
414
- targets: string[];
428
+ callback_url?: any;
429
+ targets: any;
415
430
  status: string;
416
431
  consecutive_failures: number;
417
- last_delivery_at?: string;
418
- last_status_code?: number;
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?: string;
429
- phone_number?: string;
430
- birthday?: string;
431
- profile_picture?: string;
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?: string, confidenceValue?: number): Promise<CuratedAlbumDisplay>;
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?: string, description?: string, confidenceValue?: number }): Promise<CuratedAlbumDisplay>;
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?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
464
- updateCustomAlbum(albumId: number, body?: { name?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
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?: string[]): Promise<KeywordListDisplayWithProjects>;
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: number[], listKeywordsToExclude: number[]): Promise<KeywordListDisplayWithList>;
492
- updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: string[] }): Promise<KeywordListDisplayWithProjects>;
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?: string, title?: string, description?: string, tags?: string[] }): Promise<PhotoDisplay>;
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_?: boolean, description?: string, directory?: string, photoUploadVector?: number, thumbnail?: string, runName?: string, options?: { outcomes?: any, models?: any }): Promise<ProjectRunDisplay>;
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?: boolean, type?: number, description?: string, directory?: string, name?: string, thumbnail?: string }): Promise<ProjectRunDisplay>;
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?: string): Promise<Record<string, any>>;
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?: number, options?: { minCosine?: number | number[], labelMinCosine?: number | number[], labelTopK?: number | number[], labelDelta?: number | number[], bestOfSimilarSetsOnly?: boolean | boolean[], splitByTier?: boolean | boolean[] }): Promise<Record<string, any>>;
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: string[], callbackUrl?: string): Promise<SubscriptionActivated>;
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?: string, targets?: string[] }): Promise<SubscriptionDisplay>;
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?: number, profilePicture?: string, paymentPlanType?: string): Promise<UserDisplay>;
595
- createUserAndCompany(name: string, email: string, password: string, companyId?: number, profilePicture?: string, paymentPlanType?: string, companyName?: string, credits?: number, options?: { inviteToken?: string | string[] }): Promise<UserDisplay>;
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<UserDisplay>;
633
+ getUser(userId: number): Promise<UserDisplayWithCompanyPermissions>;
599
634
  getAllUsersByCompany(companyId: number): Promise<UserDisplay[]>;
600
- updateUser(userId: number, body?: { name?: string, email?: string, password?: string, companyId?: number, accountType?: number, profilePicture?: string, location?: string, phoneNumber?: string, birthday?: string }): Promise<UserDisplay>;
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