@mediaviz/react-native-sdk 1.11.0-dev.125 → 1.11.0-dev.126

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