@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.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?: 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,71 +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[];
271
- aesthetic_appeal?: number;
272
- lighting?: number;
273
- subject_significance?: number;
274
- emotional_intensity?: number;
275
- positive_emotion?: number;
276
- universal_relatability?: number;
277
- memorability?: number;
278
- composition?: number;
279
- judgment_overall_score?: 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;
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?: boolean;
288
- smile_confidence?: number;
289
- eyeglasses_value?: boolean;
290
- eyeglasses_confidence?: number;
291
- sunglasses_value?: boolean;
292
- sunglasses_confidence?: number;
293
- eyes_open_value?: boolean;
294
- eyes_open_confidence?: number;
295
- emotion_happy_confidence?: number;
296
- emotion_sad_confidence?: number;
297
- landmark_eyeleft_x?: number;
298
- landmark_eyeleft_y?: number;
299
- landmark_eyeright_x?: number;
300
- landmark_eyeright_y?: number;
301
- landmark_mouthleft_x?: number;
302
- landmark_mouthleft_y?: number;
303
- landmark_mouthright_x?: number;
304
- landmark_mouthright_y?: number;
305
- landmark_nose_x?: number;
306
- landmark_nose_y?: number;
307
- pose_roll?: number;
308
- pose_yaw?: number;
309
- pose_pitch?: number;
310
- quality_brightness?: number;
311
- quality_sharpness?: number;
312
- face_occluded_value?: boolean;
313
- eye_direction_yaw?: number;
314
- eye_direction_pitch?: number;
315
- 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;
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?: boolean;
359
+ private?: any;
348
360
  type: number;
349
- description?: string;
350
- directory?: string;
351
- photo_upload_vector?: number;
352
- thumbnail?: string;
353
- run_name?: string;
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?: number;
361
- date_photos_uploaded?: string;
362
- date_deleted?: string;
363
- top_tier?: number;
364
- tier_2?: number;
365
- total_photos_uploaded?: number;
366
- gsheet_view_link?: string;
367
- gsheet_csv_link?: string;
368
- gsheet_xlsx_link?: string;
369
- insights_view_link?: string;
370
- similarity_level?: string;
371
- blur_model?: boolean;
372
- colors_model?: boolean;
373
- face_recognition_model?: boolean;
374
- image_classification_model?: boolean;
375
- image_comparison_model?: boolean;
376
- image_describe_model?: boolean;
377
- ocr_model?: boolean;
378
- judgment_model?: boolean;
379
- similarity_model?: boolean;
380
- personhood_model?: boolean;
381
- evidence_model?: boolean;
382
- insights_model?: boolean;
383
- normalize?: boolean;
384
- is_continuous_upload?: boolean;
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?: string[];
399
- and_string_params?: string[];
400
- or_params?: string[];
401
- or_string_params?: string[];
402
- not_params?: string[];
403
- not_string_params?: string[];
404
- date_min?: string;
405
- date_max?: string;
406
- date_null_and?: boolean;
407
- date_null_or?: boolean;
408
- date_order?: string;
409
- custom_album_id?: number;
410
- best_of_similar_sets_only?: boolean;
411
- 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;
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?: string;
424
- targets: string[];
428
+ callback_url?: any;
429
+ targets: any;
425
430
  status: string;
426
431
  consecutive_failures: number;
427
- last_delivery_at?: string;
428
- last_status_code?: number;
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?: string;
439
- phone_number?: string;
440
- birthday?: string;
441
- 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;
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?: string, confidenceValue?: number): Promise<CuratedAlbumDisplay>;
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?: string, description?: string, confidenceValue?: number }): Promise<CuratedAlbumDisplay>;
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?: string, description?: string, photoIdInclusionList?: number[], photoIdRemovalList?: number[] }): Promise<AlbumDisplay>;
474
- 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>;
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?: string[]): Promise<KeywordListDisplayWithProjects>;
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: number[], listKeywordsToExclude: number[]): Promise<KeywordListDisplayWithList>;
502
- 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>;
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?: 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>;
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_?: 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>;
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?: 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>;
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?: string): Promise<Record<string, any>>;
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?: 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>>;
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: string[], callbackUrl?: string): Promise<SubscriptionActivated>;
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?: string, targets?: string[] }): Promise<SubscriptionDisplay>;
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?: number, profilePicture?: string, paymentPlanType?: string): Promise<UserDisplay>;
605
- 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>;
606
631
  changePassword(oldPassword: string, newPassword: string): Promise<Record<string, any>>;
607
632
  getUserId(): Promise<Record<string, any>>;
608
- getUser(userId: number): Promise<UserDisplay>;
633
+ getUser(userId: number): Promise<UserDisplayWithCompanyPermissions>;
609
634
  getAllUsersByCompany(companyId: number): Promise<UserDisplay[]>;
610
- 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>;
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;