@wix/media 1.0.104 → 1.0.105

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.
@@ -218,41 +218,29 @@ declare enum WebhookIdentityType$3 {
218
218
  WIX_USER = "WIX_USER",
219
219
  APP = "APP"
220
220
  }
221
+ interface EnterpriseCategoryNonNullableFields {
222
+ _id: string;
223
+ publishStatus: PublishStatus$1;
224
+ mediaType: MediaType$2;
225
+ }
221
226
  interface CreateCategoryResponseNonNullableFields {
222
- category?: {
223
- _id: string;
224
- publishStatus: PublishStatus$1;
225
- };
227
+ category?: EnterpriseCategoryNonNullableFields;
226
228
  }
227
229
  interface UpdateCategoryResponseNonNullableFields {
228
- category?: {
229
- _id: string;
230
- publishStatus: PublishStatus$1;
231
- };
230
+ category?: EnterpriseCategoryNonNullableFields;
231
+ }
232
+ interface EnterpriseCategoryTreeNonNullableFields {
233
+ category?: EnterpriseCategoryNonNullableFields;
234
+ subCategories: EnterpriseCategoryTreeNonNullableFields[];
232
235
  }
233
236
  interface GetCategoryResponseNonNullableFields {
234
- category?: {
235
- category?: {
236
- _id: string;
237
- publishStatus: PublishStatus$1;
238
- };
239
- subCategories: NonNullable<GetCategoryResponseNonNullableFields>['category'][];
240
- };
237
+ category?: EnterpriseCategoryTreeNonNullableFields;
241
238
  }
242
239
  interface EnterpriseOnboardingResponseNonNullableFields {
243
- category?: {
244
- _id: string;
245
- publishStatus: PublishStatus$1;
246
- };
240
+ category?: EnterpriseCategoryNonNullableFields;
247
241
  }
248
242
  interface GetMediaManagerCategoriesResponseNonNullableFields {
249
- category?: {
250
- category?: {
251
- _id: string;
252
- publishStatus: PublishStatus$1;
253
- };
254
- subCategories: NonNullable<GetMediaManagerCategoriesResponseNonNullableFields>['category'][];
255
- };
243
+ category?: EnterpriseCategoryTreeNonNullableFields;
256
244
  }
257
245
  interface BaseEventMetadata$3 {
258
246
  /** App instance ID. */
@@ -347,6 +335,7 @@ interface EnterpriseOnboardingOptions {
347
335
  accountName?: string;
348
336
  }
349
337
 
338
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
350
339
  interface HttpClient {
351
340
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
352
341
  fetchWithAuth: typeof fetch;
@@ -371,6 +360,7 @@ type APIMetadata = {
371
360
  entityFqdn?: string;
372
361
  packageName?: string;
373
362
  };
363
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
374
364
  type EventDefinition<Payload = unknown, Type extends string = string> = {
375
365
  __type: 'event-definition';
376
366
  type: Type;
@@ -379,6 +369,8 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
379
369
  __payload: Payload;
380
370
  };
381
371
  declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
372
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
373
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
382
374
 
383
375
  declare global {
384
376
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -387,30 +379,19 @@ declare global {
387
379
  }
388
380
  }
389
381
 
390
- declare const __metadata$3: {
391
- PACKAGE_NAME: string;
392
- };
393
- declare function createCategory(httpClient: HttpClient): (category: EnterpriseCategory) => Promise<EnterpriseCategory & {
394
- _id: string;
395
- publishStatus: PublishStatus$1;
396
- }>;
397
- declare function deleteCategory(httpClient: HttpClient): (categoryId: string) => Promise<void>;
398
- declare function updateCategory(httpClient: HttpClient): (_id: string, category: UpdateCategory) => Promise<EnterpriseCategory & {
399
- _id: string;
400
- publishStatus: PublishStatus$1;
401
- }>;
402
- declare function getCategory(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<EnterpriseCategoryTree & {
403
- category?: {
404
- _id: string;
405
- publishStatus: PublishStatus$1;
406
- } | undefined;
407
- subCategories: (any | undefined)[];
408
- }>;
409
- declare function enterpriseOnboarding(httpClient: HttpClient): (accountId: string, options?: EnterpriseOnboardingOptions) => Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
410
- declare function getMediaManagerCategories(httpClient: HttpClient): () => Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
411
- declare const onEnterpriseCategoryCreated: EventDefinition<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
412
- declare const onEnterpriseCategoryDeleted: EventDefinition<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
413
- declare const onEnterpriseCategoryUpdated: EventDefinition<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
382
+ declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
383
+
384
+ declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
385
+
386
+ declare const createCategory: ReturnType<typeof createRESTModule$3<typeof publicCreateCategory>>;
387
+ declare const deleteCategory: ReturnType<typeof createRESTModule$3<typeof publicDeleteCategory>>;
388
+ declare const updateCategory: ReturnType<typeof createRESTModule$3<typeof publicUpdateCategory>>;
389
+ declare const getCategory: ReturnType<typeof createRESTModule$3<typeof publicGetCategory>>;
390
+ declare const enterpriseOnboarding: ReturnType<typeof createRESTModule$3<typeof publicEnterpriseOnboarding>>;
391
+ declare const getMediaManagerCategories: ReturnType<typeof createRESTModule$3<typeof publicGetMediaManagerCategories>>;
392
+ declare const onEnterpriseCategoryCreated: ReturnType<typeof createEventModule$3<typeof publicOnEnterpriseCategoryCreated>>;
393
+ declare const onEnterpriseCategoryDeleted: ReturnType<typeof createEventModule$3<typeof publicOnEnterpriseCategoryDeleted>>;
394
+ declare const onEnterpriseCategoryUpdated: ReturnType<typeof createEventModule$3<typeof publicOnEnterpriseCategoryUpdated>>;
414
395
 
415
396
  type index_d$3_CreateCategoryRequest = CreateCategoryRequest;
416
397
  type index_d$3_CreateCategoryResponse = CreateCategoryResponse;
@@ -420,7 +401,9 @@ type index_d$3_DeleteCategoryResponse = DeleteCategoryResponse;
420
401
  type index_d$3_EnterpriseCategory = EnterpriseCategory;
421
402
  type index_d$3_EnterpriseCategoryCreatedEnvelope = EnterpriseCategoryCreatedEnvelope;
422
403
  type index_d$3_EnterpriseCategoryDeletedEnvelope = EnterpriseCategoryDeletedEnvelope;
404
+ type index_d$3_EnterpriseCategoryNonNullableFields = EnterpriseCategoryNonNullableFields;
423
405
  type index_d$3_EnterpriseCategoryTree = EnterpriseCategoryTree;
406
+ type index_d$3_EnterpriseCategoryTreeNonNullableFields = EnterpriseCategoryTreeNonNullableFields;
424
407
  type index_d$3_EnterpriseCategoryUpdatedEnvelope = EnterpriseCategoryUpdatedEnvelope;
425
408
  type index_d$3_EnterpriseOnboardingOptions = EnterpriseOnboardingOptions;
426
409
  type index_d$3_EnterpriseOnboardingRequest = EnterpriseOnboardingRequest;
@@ -451,7 +434,7 @@ declare const index_d$3_onEnterpriseCategoryDeleted: typeof onEnterpriseCategory
451
434
  declare const index_d$3_onEnterpriseCategoryUpdated: typeof onEnterpriseCategoryUpdated;
452
435
  declare const index_d$3_updateCategory: typeof updateCategory;
453
436
  declare namespace index_d$3 {
454
- export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$3_CreateCategoryRequest as CreateCategoryRequest, type index_d$3_CreateCategoryResponse as CreateCategoryResponse, type index_d$3_CreateCategoryResponseNonNullableFields as CreateCategoryResponseNonNullableFields, type index_d$3_DeleteCategoryRequest as DeleteCategoryRequest, type index_d$3_DeleteCategoryResponse as DeleteCategoryResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$3_EnterpriseCategory as EnterpriseCategory, type index_d$3_EnterpriseCategoryCreatedEnvelope as EnterpriseCategoryCreatedEnvelope, type index_d$3_EnterpriseCategoryDeletedEnvelope as EnterpriseCategoryDeletedEnvelope, type index_d$3_EnterpriseCategoryTree as EnterpriseCategoryTree, type index_d$3_EnterpriseCategoryUpdatedEnvelope as EnterpriseCategoryUpdatedEnvelope, type index_d$3_EnterpriseOnboardingOptions as EnterpriseOnboardingOptions, type index_d$3_EnterpriseOnboardingRequest as EnterpriseOnboardingRequest, type index_d$3_EnterpriseOnboardingResponse as EnterpriseOnboardingResponse, type index_d$3_EnterpriseOnboardingResponseNonNullableFields as EnterpriseOnboardingResponseNonNullableFields, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type index_d$3_GetCategoryOptions as GetCategoryOptions, type index_d$3_GetCategoryRequest as GetCategoryRequest, type index_d$3_GetCategoryResponse as GetCategoryResponse, type index_d$3_GetCategoryResponseNonNullableFields as GetCategoryResponseNonNullableFields, type index_d$3_GetMediaManagerCategoriesRequest as GetMediaManagerCategoriesRequest, type index_d$3_GetMediaManagerCategoriesResponse as GetMediaManagerCategoriesResponse, type index_d$3_GetMediaManagerCategoriesResponseNonNullableFields as GetMediaManagerCategoriesResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$3_LinkItemsToCategoryRequest as LinkItemsToCategoryRequest, type index_d$3_LinkItemsToCategoryResponse as LinkItemsToCategoryResponse, MediaType$2 as MediaType, type MessageEnvelope$3 as MessageEnvelope, PublishStatus$1 as PublishStatus, type index_d$3_UnlinkItemsFromCategoryRequest as UnlinkItemsFromCategoryRequest, type index_d$3_UnlinkItemsFromCategoryResponse as UnlinkItemsFromCategoryResponse, type index_d$3_UpdateCategory as UpdateCategory, type index_d$3_UpdateCategoryRequest as UpdateCategoryRequest, type index_d$3_UpdateCategoryResponse as UpdateCategoryResponse, type index_d$3_UpdateCategoryResponseNonNullableFields as UpdateCategoryResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_createCategory as createCategory, index_d$3_deleteCategory as deleteCategory, index_d$3_enterpriseOnboarding as enterpriseOnboarding, index_d$3_getCategory as getCategory, index_d$3_getMediaManagerCategories as getMediaManagerCategories, index_d$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, index_d$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, index_d$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, index_d$3_updateCategory as updateCategory };
437
+ export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$3_CreateCategoryRequest as CreateCategoryRequest, type index_d$3_CreateCategoryResponse as CreateCategoryResponse, type index_d$3_CreateCategoryResponseNonNullableFields as CreateCategoryResponseNonNullableFields, type index_d$3_DeleteCategoryRequest as DeleteCategoryRequest, type index_d$3_DeleteCategoryResponse as DeleteCategoryResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$3_EnterpriseCategory as EnterpriseCategory, type index_d$3_EnterpriseCategoryCreatedEnvelope as EnterpriseCategoryCreatedEnvelope, type index_d$3_EnterpriseCategoryDeletedEnvelope as EnterpriseCategoryDeletedEnvelope, type index_d$3_EnterpriseCategoryNonNullableFields as EnterpriseCategoryNonNullableFields, type index_d$3_EnterpriseCategoryTree as EnterpriseCategoryTree, type index_d$3_EnterpriseCategoryTreeNonNullableFields as EnterpriseCategoryTreeNonNullableFields, type index_d$3_EnterpriseCategoryUpdatedEnvelope as EnterpriseCategoryUpdatedEnvelope, type index_d$3_EnterpriseOnboardingOptions as EnterpriseOnboardingOptions, type index_d$3_EnterpriseOnboardingRequest as EnterpriseOnboardingRequest, type index_d$3_EnterpriseOnboardingResponse as EnterpriseOnboardingResponse, type index_d$3_EnterpriseOnboardingResponseNonNullableFields as EnterpriseOnboardingResponseNonNullableFields, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type index_d$3_GetCategoryOptions as GetCategoryOptions, type index_d$3_GetCategoryRequest as GetCategoryRequest, type index_d$3_GetCategoryResponse as GetCategoryResponse, type index_d$3_GetCategoryResponseNonNullableFields as GetCategoryResponseNonNullableFields, type index_d$3_GetMediaManagerCategoriesRequest as GetMediaManagerCategoriesRequest, type index_d$3_GetMediaManagerCategoriesResponse as GetMediaManagerCategoriesResponse, type index_d$3_GetMediaManagerCategoriesResponseNonNullableFields as GetMediaManagerCategoriesResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$3_LinkItemsToCategoryRequest as LinkItemsToCategoryRequest, type index_d$3_LinkItemsToCategoryResponse as LinkItemsToCategoryResponse, MediaType$2 as MediaType, type MessageEnvelope$3 as MessageEnvelope, PublishStatus$1 as PublishStatus, type index_d$3_UnlinkItemsFromCategoryRequest as UnlinkItemsFromCategoryRequest, type index_d$3_UnlinkItemsFromCategoryResponse as UnlinkItemsFromCategoryResponse, type index_d$3_UpdateCategory as UpdateCategory, type index_d$3_UpdateCategoryRequest as UpdateCategoryRequest, type index_d$3_UpdateCategoryResponse as UpdateCategoryResponse, type index_d$3_UpdateCategoryResponseNonNullableFields as UpdateCategoryResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, index_d$3_createCategory as createCategory, index_d$3_deleteCategory as deleteCategory, index_d$3_enterpriseOnboarding as enterpriseOnboarding, index_d$3_getCategory as getCategory, index_d$3_getMediaManagerCategories as getMediaManagerCategories, index_d$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, index_d$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, index_d$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, index_d$3_updateCategory as updateCategory };
455
438
  }
456
439
 
457
440
  /**
@@ -988,158 +971,66 @@ declare enum WebhookIdentityType$2 {
988
971
  interface GenerateFileUploadUrlResponseNonNullableFields$1 {
989
972
  uploadUrl: string;
990
973
  }
974
+ interface ArchiveNonNullableFields$1 {
975
+ _id: string;
976
+ url: string;
977
+ }
978
+ interface Model3DNonNullableFields$1 {
979
+ _id: string;
980
+ url: string;
981
+ thumbnail: string;
982
+ }
983
+ interface ItemAssetsNonNullableFields {
984
+ image: string;
985
+ video: string;
986
+ vector: string;
987
+ audio: string;
988
+ document: string;
989
+ archive?: ArchiveNonNullableFields$1;
990
+ model3d?: Model3DNonNullableFields$1;
991
+ }
992
+ interface EnterpriseMediaItemNonNullableFields {
993
+ _id: string;
994
+ mediaType: MediaType$1;
995
+ assets?: ItemAssetsNonNullableFields;
996
+ publishStatus: PublishStatus;
997
+ }
991
998
  interface ImportFileResponseNonNullableFields$1 {
992
- item?: {
993
- _id: string;
994
- mediaType: MediaType$1;
995
- assets?: {
996
- image: string;
997
- video: string;
998
- vector: string;
999
- audio: string;
1000
- document: string;
1001
- archive?: {
1002
- _id: string;
1003
- url: string;
1004
- };
1005
- model3d?: {
1006
- _id: string;
1007
- url: string;
1008
- thumbnail: string;
1009
- };
1010
- };
1011
- publishStatus: PublishStatus;
1012
- };
999
+ item?: EnterpriseMediaItemNonNullableFields;
1013
1000
  }
1014
1001
  interface SearchItemsResponseNonNullableFields {
1015
- items: {
1016
- _id: string;
1017
- mediaType: MediaType$1;
1018
- assets?: {
1019
- image: string;
1020
- video: string;
1021
- vector: string;
1022
- audio: string;
1023
- document: string;
1024
- archive?: {
1025
- _id: string;
1026
- url: string;
1027
- };
1028
- model3d?: {
1029
- _id: string;
1030
- url: string;
1031
- thumbnail: string;
1032
- };
1033
- };
1034
- publishStatus: PublishStatus;
1035
- }[];
1002
+ items: EnterpriseMediaItemNonNullableFields[];
1036
1003
  }
1037
1004
  interface QueryItemsResponseNonNullableFields {
1038
- items: {
1039
- _id: string;
1040
- mediaType: MediaType$1;
1041
- assets?: {
1042
- image: string;
1043
- video: string;
1044
- vector: string;
1045
- audio: string;
1046
- document: string;
1047
- archive?: {
1048
- _id: string;
1049
- url: string;
1050
- };
1051
- model3d?: {
1052
- _id: string;
1053
- url: string;
1054
- thumbnail: string;
1055
- };
1056
- };
1057
- publishStatus: PublishStatus;
1058
- }[];
1005
+ items: EnterpriseMediaItemNonNullableFields[];
1059
1006
  }
1060
1007
  interface UpdateItemResponseNonNullableFields {
1061
- item?: {
1062
- _id: string;
1063
- mediaType: MediaType$1;
1064
- assets?: {
1065
- image: string;
1066
- video: string;
1067
- vector: string;
1068
- audio: string;
1069
- document: string;
1070
- archive?: {
1071
- _id: string;
1072
- url: string;
1073
- };
1074
- model3d?: {
1075
- _id: string;
1076
- url: string;
1077
- thumbnail: string;
1078
- };
1079
- };
1080
- publishStatus: PublishStatus;
1081
- };
1008
+ item?: EnterpriseMediaItemNonNullableFields;
1009
+ }
1010
+ interface ApplicationErrorNonNullableFields$1 {
1011
+ code: string;
1012
+ description: string;
1013
+ }
1014
+ interface ItemMetadataNonNullableFields$1 {
1015
+ originalIndex: number;
1016
+ success: boolean;
1017
+ error?: ApplicationErrorNonNullableFields$1;
1018
+ }
1019
+ interface BulkItemUpdateResultNonNullableFields {
1020
+ itemMetadata?: ItemMetadataNonNullableFields$1;
1021
+ item?: EnterpriseMediaItemNonNullableFields;
1022
+ }
1023
+ interface BulkActionMetadataNonNullableFields$1 {
1024
+ totalSuccesses: number;
1025
+ totalFailures: number;
1026
+ undetailedFailures: number;
1082
1027
  }
1083
1028
  interface BulkUpdateItemResponseNonNullableFields {
1084
- results: {
1085
- itemMetadata?: {
1086
- originalIndex: number;
1087
- success: boolean;
1088
- error?: {
1089
- code: string;
1090
- description: string;
1091
- };
1092
- };
1093
- item?: {
1094
- _id: string;
1095
- mediaType: MediaType$1;
1096
- assets?: {
1097
- image: string;
1098
- video: string;
1099
- vector: string;
1100
- audio: string;
1101
- document: string;
1102
- archive?: {
1103
- _id: string;
1104
- url: string;
1105
- };
1106
- model3d?: {
1107
- _id: string;
1108
- url: string;
1109
- thumbnail: string;
1110
- };
1111
- };
1112
- publishStatus: PublishStatus;
1113
- };
1114
- }[];
1115
- bulkActionMetadata?: {
1116
- totalSuccesses: number;
1117
- totalFailures: number;
1118
- undetailedFailures: number;
1119
- };
1029
+ results: BulkItemUpdateResultNonNullableFields[];
1030
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
1120
1031
  }
1121
1032
  interface GetItemResponseNonNullableFields {
1122
- item?: {
1123
- _id: string;
1124
- mediaType: MediaType$1;
1125
- assets?: {
1126
- image: string;
1127
- video: string;
1128
- vector: string;
1129
- audio: string;
1130
- document: string;
1131
- archive?: {
1132
- _id: string;
1133
- url: string;
1134
- };
1135
- model3d?: {
1136
- _id: string;
1137
- url: string;
1138
- thumbnail: string;
1139
- };
1140
- };
1141
- publishStatus: PublishStatus;
1142
- };
1033
+ item?: EnterpriseMediaItemNonNullableFields;
1143
1034
  }
1144
1035
  interface BaseEventMetadata$2 {
1145
1036
  /** App instance ID. */
@@ -1370,64 +1261,25 @@ interface OverwriteItemCategoriesOptions {
1370
1261
  categoryIds?: string[];
1371
1262
  }
1372
1263
 
1373
- declare const __metadata$2: {
1374
- PACKAGE_NAME: string;
1375
- };
1376
- declare function itemUploadCallback(httpClient: HttpClient): (options?: ItemUploadCallbackOptions) => Promise<void>;
1377
- declare function generateFileUploadUrl$1(httpClient: HttpClient): (options?: GenerateFileUploadUrlOptions$1) => Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
1378
- declare function importFile$1(httpClient: HttpClient): (url: string, options?: ImportFileOptions$1) => Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
1379
- declare function searchItems(httpClient: HttpClient): (options?: SearchItemsOptions) => Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
1380
- declare function queryItems(httpClient: HttpClient): () => ItemsQueryBuilder;
1381
- declare function updateItem(httpClient: HttpClient): (_id: string, item: UpdateItem) => Promise<EnterpriseMediaItem & {
1382
- _id: string;
1383
- mediaType: MediaType$1;
1384
- assets?: {
1385
- image: string;
1386
- video: string;
1387
- vector: string;
1388
- audio: string;
1389
- document: string;
1390
- archive?: {
1391
- _id: string;
1392
- url: string;
1393
- } | undefined;
1394
- model3d?: {
1395
- _id: string;
1396
- url: string;
1397
- thumbnail: string;
1398
- } | undefined;
1399
- } | undefined;
1400
- publishStatus: PublishStatus;
1401
- }>;
1402
- declare function bulkUpdateItem(httpClient: HttpClient): (updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions) => Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
1403
- declare function getItem(httpClient: HttpClient): (itemId: string) => Promise<EnterpriseMediaItem & {
1404
- _id: string;
1405
- mediaType: MediaType$1;
1406
- assets?: {
1407
- image: string;
1408
- video: string;
1409
- vector: string;
1410
- audio: string;
1411
- document: string;
1412
- archive?: {
1413
- _id: string;
1414
- url: string;
1415
- } | undefined;
1416
- model3d?: {
1417
- _id: string;
1418
- url: string;
1419
- thumbnail: string;
1420
- } | undefined;
1421
- } | undefined;
1422
- publishStatus: PublishStatus;
1423
- }>;
1424
- declare function linkItemToCategories(httpClient: HttpClient): (itemId: string, options?: LinkItemToCategoriesOptions) => Promise<LinkItemToCategoriesResponse>;
1425
- declare function unlinkItemFromCategories(httpClient: HttpClient): (itemId: string, options?: UnlinkItemFromCategoriesOptions) => Promise<UnlinkItemFromCategoriesResponse>;
1426
- declare function overwriteItemCategories(httpClient: HttpClient): (itemId: string, options?: OverwriteItemCategoriesOptions) => Promise<OverwriteItemCategoriesResponse>;
1427
- declare const onEnterpriseItemCreated: EventDefinition<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
1428
- declare const onEnterpriseItemUpdated: EventDefinition<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
1429
- declare const onEnterpriseItemItemCategoriesChanged: EventDefinition<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
1430
- declare const onEnterpriseItemPublishStatusChanged: EventDefinition<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
1264
+ declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1265
+
1266
+ declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1267
+
1268
+ declare const itemUploadCallback: ReturnType<typeof createRESTModule$2<typeof publicItemUploadCallback>>;
1269
+ declare const generateFileUploadUrl$1: ReturnType<typeof createRESTModule$2<typeof publicGenerateFileUploadUrl>>;
1270
+ declare const importFile$1: ReturnType<typeof createRESTModule$2<typeof publicImportFile>>;
1271
+ declare const searchItems: ReturnType<typeof createRESTModule$2<typeof publicSearchItems>>;
1272
+ declare const queryItems: ReturnType<typeof createRESTModule$2<typeof publicQueryItems>>;
1273
+ declare const updateItem: ReturnType<typeof createRESTModule$2<typeof publicUpdateItem>>;
1274
+ declare const bulkUpdateItem: ReturnType<typeof createRESTModule$2<typeof publicBulkUpdateItem>>;
1275
+ declare const getItem: ReturnType<typeof createRESTModule$2<typeof publicGetItem>>;
1276
+ declare const linkItemToCategories: ReturnType<typeof createRESTModule$2<typeof publicLinkItemToCategories>>;
1277
+ declare const unlinkItemFromCategories: ReturnType<typeof createRESTModule$2<typeof publicUnlinkItemFromCategories>>;
1278
+ declare const overwriteItemCategories: ReturnType<typeof createRESTModule$2<typeof publicOverwriteItemCategories>>;
1279
+ declare const onEnterpriseItemCreated: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemCreated>>;
1280
+ declare const onEnterpriseItemUpdated: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemUpdated>>;
1281
+ declare const onEnterpriseItemItemCategoriesChanged: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemItemCategoriesChanged>>;
1282
+ declare const onEnterpriseItemPublishStatusChanged: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemPublishStatusChanged>>;
1431
1283
 
1432
1284
  type index_d$2_BulkItemUpdateResult = BulkItemUpdateResult;
1433
1285
  type index_d$2_BulkUpdateItemOptions = BulkUpdateItemOptions;
@@ -1439,6 +1291,7 @@ type index_d$2_EnterpriseItemItemCategoriesChangedEnvelope = EnterpriseItemItemC
1439
1291
  type index_d$2_EnterpriseItemPublishStatusChangedEnvelope = EnterpriseItemPublishStatusChangedEnvelope;
1440
1292
  type index_d$2_EnterpriseItemUpdatedEnvelope = EnterpriseItemUpdatedEnvelope;
1441
1293
  type index_d$2_EnterpriseMediaItem = EnterpriseMediaItem;
1294
+ type index_d$2_EnterpriseMediaItemNonNullableFields = EnterpriseMediaItemNonNullableFields;
1442
1295
  type index_d$2_GetItemRequest = GetItemRequest;
1443
1296
  type index_d$2_GetItemResponse = GetItemResponse;
1444
1297
  type index_d$2_GetItemResponseNonNullableFields = GetItemResponseNonNullableFields;
@@ -1493,7 +1346,7 @@ declare const index_d$2_searchItems: typeof searchItems;
1493
1346
  declare const index_d$2_unlinkItemFromCategories: typeof unlinkItemFromCategories;
1494
1347
  declare const index_d$2_updateItem: typeof updateItem;
1495
1348
  declare namespace index_d$2 {
1496
- export { type ActionEvent$2 as ActionEvent, type ApplicationError$1 as ApplicationError, type Archive$1 as Archive, type BaseEventMetadata$2 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type index_d$2_BulkItemUpdateResult as BulkItemUpdateResult, type index_d$2_BulkUpdateItemOptions as BulkUpdateItemOptions, type index_d$2_BulkUpdateItemRequest as BulkUpdateItemRequest, type index_d$2_BulkUpdateItemResponse as BulkUpdateItemResponse, type index_d$2_BulkUpdateItemResponseNonNullableFields as BulkUpdateItemResponseNonNullableFields, type Cursors$2 as Cursors, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type index_d$2_EnterpriseItemCreatedEnvelope as EnterpriseItemCreatedEnvelope, type index_d$2_EnterpriseItemItemCategoriesChangedEnvelope as EnterpriseItemItemCategoriesChangedEnvelope, type index_d$2_EnterpriseItemPublishStatusChangedEnvelope as EnterpriseItemPublishStatusChangedEnvelope, type index_d$2_EnterpriseItemUpdatedEnvelope as EnterpriseItemUpdatedEnvelope, type index_d$2_EnterpriseMediaItem as EnterpriseMediaItem, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type GenerateFileUploadUrlOptions$1 as GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest$1 as GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse$1 as GenerateFileUploadUrlResponse, type GenerateFileUploadUrlResponseNonNullableFields$1 as GenerateFileUploadUrlResponseNonNullableFields, type index_d$2_GetItemRequest as GetItemRequest, type index_d$2_GetItemResponse as GetItemResponse, type index_d$2_GetItemResponseNonNullableFields as GetItemResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type ImportFileOptions$1 as ImportFileOptions, type ImportFileRequest$1 as ImportFileRequest, type ImportFileResponse$1 as ImportFileResponse, type ImportFileResponseNonNullableFields$1 as ImportFileResponseNonNullableFields, type index_d$2_ItemAssets as ItemAssets, type index_d$2_ItemAssetsAssetsOneOf as ItemAssetsAssetsOneOf, type index_d$2_ItemCategoriesChanged as ItemCategoriesChanged, type ItemMetadata$1 as ItemMetadata, type index_d$2_ItemUploadCallbackOptions as ItemUploadCallbackOptions, type index_d$2_ItemUploadCallbackRequest as ItemUploadCallbackRequest, type index_d$2_ItemUploadCallbackResponse as ItemUploadCallbackResponse, type index_d$2_ItemsQueryBuilder as ItemsQueryBuilder, type index_d$2_ItemsQueryResult as ItemsQueryResult, type index_d$2_LinkItemToCategoriesOptions as LinkItemToCategoriesOptions, type index_d$2_LinkItemToCategoriesRequest as LinkItemToCategoriesRequest, type index_d$2_LinkItemToCategoriesResponse as LinkItemToCategoriesResponse, MediaType$1 as MediaType, type MessageEnvelope$2 as MessageEnvelope, type Model3D$1 as Model3D, type index_d$2_OverwriteItemCategoriesOptions as OverwriteItemCategoriesOptions, type index_d$2_OverwriteItemCategoriesRequest as OverwriteItemCategoriesRequest, type index_d$2_OverwriteItemCategoriesResponse as OverwriteItemCategoriesResponse, type index_d$2_Paging as Paging, type PagingMetadataV2$2 as PagingMetadataV2, index_d$2_PublishStatus as PublishStatus, type index_d$2_PublishStatusChanged as PublishStatusChanged, type index_d$2_QueryItemsRequest as QueryItemsRequest, type index_d$2_QueryItemsResponse as QueryItemsResponse, type index_d$2_QueryItemsResponseNonNullableFields as QueryItemsResponseNonNullableFields, type index_d$2_QueryV2 as QueryV2, type index_d$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$2_Search as Search, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchItemsOptions as SearchItemsOptions, type index_d$2_SearchItemsRequest as SearchItemsRequest, type index_d$2_SearchItemsResponse as SearchItemsResponse, type index_d$2_SearchItemsResponseNonNullableFields as SearchItemsResponseNonNullableFields, type index_d$2_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$2_UnlinkItemFromCategoriesOptions as UnlinkItemFromCategoriesOptions, type index_d$2_UnlinkItemFromCategoriesRequest as UnlinkItemFromCategoriesRequest, type index_d$2_UnlinkItemFromCategoriesResponse as UnlinkItemFromCategoriesResponse, type index_d$2_UpdateItem as UpdateItem, type index_d$2_UpdateItemRequest as UpdateItemRequest, type index_d$2_UpdateItemResponse as UpdateItemResponse, type index_d$2_UpdateItemResponseNonNullableFields as UpdateItemResponseNonNullableFields, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$1 as generateFileUploadUrl, index_d$2_getItem as getItem, importFile$1 as importFile, index_d$2_itemUploadCallback as itemUploadCallback, index_d$2_linkItemToCategories as linkItemToCategories, index_d$2_onEnterpriseItemCreated as onEnterpriseItemCreated, index_d$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, index_d$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, index_d$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, index_d$2_overwriteItemCategories as overwriteItemCategories, index_d$2_queryItems as queryItems, index_d$2_searchItems as searchItems, index_d$2_unlinkItemFromCategories as unlinkItemFromCategories, index_d$2_updateItem as updateItem };
1349
+ export { type ActionEvent$2 as ActionEvent, type ApplicationError$1 as ApplicationError, type Archive$1 as Archive, type BaseEventMetadata$2 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type index_d$2_BulkItemUpdateResult as BulkItemUpdateResult, type index_d$2_BulkUpdateItemOptions as BulkUpdateItemOptions, type index_d$2_BulkUpdateItemRequest as BulkUpdateItemRequest, type index_d$2_BulkUpdateItemResponse as BulkUpdateItemResponse, type index_d$2_BulkUpdateItemResponseNonNullableFields as BulkUpdateItemResponseNonNullableFields, type Cursors$2 as Cursors, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type index_d$2_EnterpriseItemCreatedEnvelope as EnterpriseItemCreatedEnvelope, type index_d$2_EnterpriseItemItemCategoriesChangedEnvelope as EnterpriseItemItemCategoriesChangedEnvelope, type index_d$2_EnterpriseItemPublishStatusChangedEnvelope as EnterpriseItemPublishStatusChangedEnvelope, type index_d$2_EnterpriseItemUpdatedEnvelope as EnterpriseItemUpdatedEnvelope, type index_d$2_EnterpriseMediaItem as EnterpriseMediaItem, type index_d$2_EnterpriseMediaItemNonNullableFields as EnterpriseMediaItemNonNullableFields, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type GenerateFileUploadUrlOptions$1 as GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest$1 as GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse$1 as GenerateFileUploadUrlResponse, type GenerateFileUploadUrlResponseNonNullableFields$1 as GenerateFileUploadUrlResponseNonNullableFields, type index_d$2_GetItemRequest as GetItemRequest, type index_d$2_GetItemResponse as GetItemResponse, type index_d$2_GetItemResponseNonNullableFields as GetItemResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type ImportFileOptions$1 as ImportFileOptions, type ImportFileRequest$1 as ImportFileRequest, type ImportFileResponse$1 as ImportFileResponse, type ImportFileResponseNonNullableFields$1 as ImportFileResponseNonNullableFields, type index_d$2_ItemAssets as ItemAssets, type index_d$2_ItemAssetsAssetsOneOf as ItemAssetsAssetsOneOf, type index_d$2_ItemCategoriesChanged as ItemCategoriesChanged, type ItemMetadata$1 as ItemMetadata, type index_d$2_ItemUploadCallbackOptions as ItemUploadCallbackOptions, type index_d$2_ItemUploadCallbackRequest as ItemUploadCallbackRequest, type index_d$2_ItemUploadCallbackResponse as ItemUploadCallbackResponse, type index_d$2_ItemsQueryBuilder as ItemsQueryBuilder, type index_d$2_ItemsQueryResult as ItemsQueryResult, type index_d$2_LinkItemToCategoriesOptions as LinkItemToCategoriesOptions, type index_d$2_LinkItemToCategoriesRequest as LinkItemToCategoriesRequest, type index_d$2_LinkItemToCategoriesResponse as LinkItemToCategoriesResponse, MediaType$1 as MediaType, type MessageEnvelope$2 as MessageEnvelope, type Model3D$1 as Model3D, type index_d$2_OverwriteItemCategoriesOptions as OverwriteItemCategoriesOptions, type index_d$2_OverwriteItemCategoriesRequest as OverwriteItemCategoriesRequest, type index_d$2_OverwriteItemCategoriesResponse as OverwriteItemCategoriesResponse, type index_d$2_Paging as Paging, type PagingMetadataV2$2 as PagingMetadataV2, index_d$2_PublishStatus as PublishStatus, type index_d$2_PublishStatusChanged as PublishStatusChanged, type index_d$2_QueryItemsRequest as QueryItemsRequest, type index_d$2_QueryItemsResponse as QueryItemsResponse, type index_d$2_QueryItemsResponseNonNullableFields as QueryItemsResponseNonNullableFields, type index_d$2_QueryV2 as QueryV2, type index_d$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$2_Search as Search, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchItemsOptions as SearchItemsOptions, type index_d$2_SearchItemsRequest as SearchItemsRequest, type index_d$2_SearchItemsResponse as SearchItemsResponse, type index_d$2_SearchItemsResponseNonNullableFields as SearchItemsResponseNonNullableFields, type index_d$2_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$2_UnlinkItemFromCategoriesOptions as UnlinkItemFromCategoriesOptions, type index_d$2_UnlinkItemFromCategoriesRequest as UnlinkItemFromCategoriesRequest, type index_d$2_UnlinkItemFromCategoriesResponse as UnlinkItemFromCategoriesResponse, type index_d$2_UpdateItem as UpdateItem, type index_d$2_UpdateItemRequest as UpdateItemRequest, type index_d$2_UpdateItemResponse as UpdateItemResponse, type index_d$2_UpdateItemResponseNonNullableFields as UpdateItemResponseNonNullableFields, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$1 as generateFileUploadUrl, index_d$2_getItem as getItem, importFile$1 as importFile, index_d$2_itemUploadCallback as itemUploadCallback, index_d$2_linkItemToCategories as linkItemToCategories, index_d$2_onEnterpriseItemCreated as onEnterpriseItemCreated, index_d$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, index_d$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, index_d$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, index_d$2_overwriteItemCategories as overwriteItemCategories, index_d$2_queryItems as queryItems, index_d$2_searchItems as searchItems, index_d$2_unlinkItemFromCategories as unlinkItemFromCategories, index_d$2_updateItem as updateItem };
1497
1350
  }
1498
1351
 
1499
1352
  interface FileDescriptor {
@@ -2380,7 +2233,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
2380
2233
  slug?: string;
2381
2234
  /** ID of the entity associated with the event. */
2382
2235
  entityId?: string;
2383
- /** Event timestamp. */
2236
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2384
2237
  eventTime?: Date;
2385
2238
  /**
2386
2239
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2409,7 +2262,7 @@ interface DomainEventBodyOneOf$1 {
2409
2262
  interface EntityCreatedEvent$1 {
2410
2263
  entity?: string;
2411
2264
  }
2412
- interface RestoreInfo {
2265
+ interface RestoreInfo$1 {
2413
2266
  deletedDate?: Date;
2414
2267
  }
2415
2268
  interface EntityUpdatedEvent$1 {
@@ -2470,188 +2323,78 @@ declare enum WebhookIdentityType$1 {
2470
2323
  interface GenerateFilesDownloadUrlResponseNonNullableFields {
2471
2324
  downloadUrl: string;
2472
2325
  }
2326
+ interface DownloadUrlNonNullableFields {
2327
+ url: string;
2328
+ assetKey: string;
2329
+ }
2473
2330
  interface GenerateFileDownloadUrlResponseNonNullableFields {
2474
- downloadUrls: {
2475
- url: string;
2476
- assetKey: string;
2477
- }[];
2331
+ downloadUrls: DownloadUrlNonNullableFields[];
2332
+ }
2333
+ interface FaceRecognitionNonNullableFields {
2334
+ confidence: number;
2335
+ x: number;
2336
+ y: number;
2337
+ height: number;
2338
+ width: number;
2339
+ }
2340
+ interface ImageMediaNonNullableFields {
2341
+ image: string;
2342
+ faces: FaceRecognitionNonNullableFields[];
2343
+ previewImage: string;
2344
+ }
2345
+ interface AudioV2NonNullableFields {
2346
+ _id: string;
2347
+ assets: string[];
2348
+ }
2349
+ interface ArchiveNonNullableFields {
2350
+ _id: string;
2351
+ url: string;
2352
+ }
2353
+ interface Model3DNonNullableFields {
2354
+ _id: string;
2355
+ url: string;
2356
+ thumbnail: string;
2357
+ }
2358
+ interface OtherMediaNonNullableFields {
2359
+ _id: string;
2360
+ }
2361
+ interface FileMediaNonNullableFields {
2362
+ image?: ImageMediaNonNullableFields;
2363
+ video: string;
2364
+ audio?: AudioV2NonNullableFields;
2365
+ document: string;
2366
+ vector?: ImageMediaNonNullableFields;
2367
+ archive?: ArchiveNonNullableFields;
2368
+ model3d?: Model3DNonNullableFields;
2369
+ other?: OtherMediaNonNullableFields;
2370
+ }
2371
+ interface IdentityInfoNonNullableFields {
2372
+ identityType: IdentityType;
2373
+ }
2374
+ interface FileDescriptorNonNullableFields {
2375
+ _id: string;
2376
+ displayName: string;
2377
+ url: string;
2378
+ hash: string;
2379
+ private: boolean;
2380
+ mediaType: MediaType;
2381
+ media?: FileMediaNonNullableFields;
2382
+ operationStatus: OperationStatus;
2383
+ labels: string[];
2384
+ siteId: string;
2385
+ state: State$1;
2386
+ internalTags: string[];
2387
+ namespace: Namespace$1;
2388
+ addedBy?: IdentityInfoNonNullableFields;
2478
2389
  }
2479
2390
  interface GetFileDescriptorResponseNonNullableFields {
2480
- file?: {
2481
- _id: string;
2482
- displayName: string;
2483
- url: string;
2484
- hash: string;
2485
- private: boolean;
2486
- mediaType: MediaType;
2487
- media?: {
2488
- image?: {
2489
- image: string;
2490
- colors?: {
2491
- palette: Color[];
2492
- };
2493
- faces: {
2494
- confidence: number;
2495
- x: number;
2496
- y: number;
2497
- height: number;
2498
- width: number;
2499
- }[];
2500
- previewImage: string;
2501
- };
2502
- video: string;
2503
- audio?: {
2504
- _id: string;
2505
- assets: string;
2506
- };
2507
- document: string;
2508
- vector?: {
2509
- image: string;
2510
- colors?: {
2511
- palette: Color[];
2512
- };
2513
- faces: {
2514
- confidence: number;
2515
- x: number;
2516
- y: number;
2517
- height: number;
2518
- width: number;
2519
- }[];
2520
- previewImage: string;
2521
- };
2522
- archive?: {
2523
- _id: string;
2524
- url: string;
2525
- };
2526
- model3d?: {
2527
- _id: string;
2528
- url: string;
2529
- thumbnail: string;
2530
- };
2531
- };
2532
- operationStatus: OperationStatus;
2533
- labels: string[];
2534
- siteId: string;
2535
- state: State$1;
2536
- };
2391
+ file?: FileDescriptorNonNullableFields;
2537
2392
  }
2538
2393
  interface GetFileDescriptorsResponseNonNullableFields {
2539
- files: {
2540
- _id: string;
2541
- displayName: string;
2542
- url: string;
2543
- hash: string;
2544
- private: boolean;
2545
- mediaType: MediaType;
2546
- media?: {
2547
- image?: {
2548
- image: string;
2549
- colors?: {
2550
- palette: Color[];
2551
- };
2552
- faces: {
2553
- confidence: number;
2554
- x: number;
2555
- y: number;
2556
- height: number;
2557
- width: number;
2558
- }[];
2559
- previewImage: string;
2560
- };
2561
- video: string;
2562
- audio?: {
2563
- _id: string;
2564
- assets: string;
2565
- };
2566
- document: string;
2567
- vector?: {
2568
- image: string;
2569
- colors?: {
2570
- palette: Color[];
2571
- };
2572
- faces: {
2573
- confidence: number;
2574
- x: number;
2575
- y: number;
2576
- height: number;
2577
- width: number;
2578
- }[];
2579
- previewImage: string;
2580
- };
2581
- archive?: {
2582
- _id: string;
2583
- url: string;
2584
- };
2585
- model3d?: {
2586
- _id: string;
2587
- url: string;
2588
- thumbnail: string;
2589
- };
2590
- };
2591
- operationStatus: OperationStatus;
2592
- labels: string[];
2593
- siteId: string;
2594
- state: State$1;
2595
- }[];
2394
+ files: FileDescriptorNonNullableFields[];
2596
2395
  }
2597
2396
  interface UpdateFileDescriptorResponseNonNullableFields {
2598
- file?: {
2599
- _id: string;
2600
- displayName: string;
2601
- url: string;
2602
- hash: string;
2603
- private: boolean;
2604
- mediaType: MediaType;
2605
- media?: {
2606
- image?: {
2607
- image: string;
2608
- colors?: {
2609
- palette: Color[];
2610
- };
2611
- faces: {
2612
- confidence: number;
2613
- x: number;
2614
- y: number;
2615
- height: number;
2616
- width: number;
2617
- }[];
2618
- previewImage: string;
2619
- };
2620
- video: string;
2621
- audio?: {
2622
- _id: string;
2623
- assets: string;
2624
- };
2625
- document: string;
2626
- vector?: {
2627
- image: string;
2628
- colors?: {
2629
- palette: Color[];
2630
- };
2631
- faces: {
2632
- confidence: number;
2633
- x: number;
2634
- y: number;
2635
- height: number;
2636
- width: number;
2637
- }[];
2638
- previewImage: string;
2639
- };
2640
- archive?: {
2641
- _id: string;
2642
- url: string;
2643
- };
2644
- model3d?: {
2645
- _id: string;
2646
- url: string;
2647
- thumbnail: string;
2648
- };
2649
- };
2650
- operationStatus: OperationStatus;
2651
- labels: string[];
2652
- siteId: string;
2653
- state: State$1;
2654
- };
2397
+ file?: FileDescriptorNonNullableFields;
2655
2398
  }
2656
2399
  interface GenerateFileUploadUrlResponseNonNullableFields {
2657
2400
  uploadUrl: string;
@@ -2662,379 +2405,44 @@ interface GenerateFileResumableUploadUrlResponseNonNullableFields {
2662
2405
  uploadToken: string;
2663
2406
  }
2664
2407
  interface ImportFileResponseNonNullableFields {
2665
- file?: {
2666
- _id: string;
2667
- displayName: string;
2668
- url: string;
2669
- hash: string;
2670
- private: boolean;
2671
- mediaType: MediaType;
2672
- media?: {
2673
- image?: {
2674
- image: string;
2675
- colors?: {
2676
- palette: Color[];
2677
- };
2678
- faces: {
2679
- confidence: number;
2680
- x: number;
2681
- y: number;
2682
- height: number;
2683
- width: number;
2684
- }[];
2685
- previewImage: string;
2686
- };
2687
- video: string;
2688
- audio?: {
2689
- _id: string;
2690
- assets: string;
2691
- };
2692
- document: string;
2693
- vector?: {
2694
- image: string;
2695
- colors?: {
2696
- palette: Color[];
2697
- };
2698
- faces: {
2699
- confidence: number;
2700
- x: number;
2701
- y: number;
2702
- height: number;
2703
- width: number;
2704
- }[];
2705
- previewImage: string;
2706
- };
2707
- archive?: {
2708
- _id: string;
2709
- url: string;
2710
- };
2711
- model3d?: {
2712
- _id: string;
2713
- url: string;
2714
- thumbnail: string;
2715
- };
2716
- };
2717
- operationStatus: OperationStatus;
2718
- labels: string[];
2719
- siteId: string;
2720
- state: State$1;
2721
- };
2408
+ file?: FileDescriptorNonNullableFields;
2722
2409
  }
2723
2410
  interface BulkImportFilesResponseNonNullableFields {
2724
- files: {
2725
- _id: string;
2726
- displayName: string;
2727
- url: string;
2728
- hash: string;
2729
- private: boolean;
2730
- mediaType: MediaType;
2731
- media?: {
2732
- image?: {
2733
- image: string;
2734
- colors?: {
2735
- palette: Color[];
2736
- };
2737
- faces: {
2738
- confidence: number;
2739
- x: number;
2740
- y: number;
2741
- height: number;
2742
- width: number;
2743
- }[];
2744
- previewImage: string;
2745
- };
2746
- video: string;
2747
- audio?: {
2748
- _id: string;
2749
- assets: string;
2750
- };
2751
- document: string;
2752
- vector?: {
2753
- image: string;
2754
- colors?: {
2755
- palette: Color[];
2756
- };
2757
- faces: {
2758
- confidence: number;
2759
- x: number;
2760
- y: number;
2761
- height: number;
2762
- width: number;
2763
- }[];
2764
- previewImage: string;
2765
- };
2766
- archive?: {
2767
- _id: string;
2768
- url: string;
2769
- };
2770
- model3d?: {
2771
- _id: string;
2772
- url: string;
2773
- thumbnail: string;
2774
- };
2775
- };
2776
- operationStatus: OperationStatus;
2777
- labels: string[];
2778
- siteId: string;
2779
- state: State$1;
2780
- }[];
2411
+ files: FileDescriptorNonNullableFields[];
2412
+ }
2413
+ interface ApplicationErrorNonNullableFields {
2414
+ code: string;
2415
+ description: string;
2416
+ }
2417
+ interface ItemMetadataNonNullableFields {
2418
+ originalIndex: number;
2419
+ success: boolean;
2420
+ error?: ApplicationErrorNonNullableFields;
2421
+ }
2422
+ interface BulkImportFileResultNonNullableFields {
2423
+ itemMetadata?: ItemMetadataNonNullableFields;
2424
+ item?: FileDescriptorNonNullableFields;
2425
+ }
2426
+ interface BulkActionMetadataNonNullableFields {
2427
+ totalSuccesses: number;
2428
+ totalFailures: number;
2429
+ undetailedFailures: number;
2781
2430
  }
2782
2431
  interface BulkImportFileResponseNonNullableFields {
2783
- results: {
2784
- itemMetadata?: {
2785
- originalIndex: number;
2786
- success: boolean;
2787
- error?: {
2788
- code: string;
2789
- description: string;
2790
- };
2791
- };
2792
- item?: {
2793
- _id: string;
2794
- displayName: string;
2795
- url: string;
2796
- hash: string;
2797
- private: boolean;
2798
- mediaType: MediaType;
2799
- media?: {
2800
- image?: {
2801
- image: string;
2802
- colors?: {
2803
- palette: Color[];
2804
- };
2805
- faces: {
2806
- confidence: number;
2807
- x: number;
2808
- y: number;
2809
- height: number;
2810
- width: number;
2811
- }[];
2812
- previewImage: string;
2813
- };
2814
- video: string;
2815
- audio?: {
2816
- _id: string;
2817
- assets: string;
2818
- };
2819
- document: string;
2820
- vector?: {
2821
- image: string;
2822
- colors?: {
2823
- palette: Color[];
2824
- };
2825
- faces: {
2826
- confidence: number;
2827
- x: number;
2828
- y: number;
2829
- height: number;
2830
- width: number;
2831
- }[];
2832
- previewImage: string;
2833
- };
2834
- archive?: {
2835
- _id: string;
2836
- url: string;
2837
- };
2838
- model3d?: {
2839
- _id: string;
2840
- url: string;
2841
- thumbnail: string;
2842
- };
2843
- };
2844
- operationStatus: OperationStatus;
2845
- labels: string[];
2846
- siteId: string;
2847
- state: State$1;
2848
- };
2849
- }[];
2850
- bulkActionMetadata?: {
2851
- totalSuccesses: number;
2852
- totalFailures: number;
2853
- undetailedFailures: number;
2854
- };
2432
+ results: BulkImportFileResultNonNullableFields[];
2433
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
2855
2434
  }
2856
2435
  interface ListFilesResponseNonNullableFields {
2857
- files: {
2858
- _id: string;
2859
- displayName: string;
2860
- url: string;
2861
- hash: string;
2862
- private: boolean;
2863
- mediaType: MediaType;
2864
- media?: {
2865
- image?: {
2866
- image: string;
2867
- colors?: {
2868
- palette: Color[];
2869
- };
2870
- faces: {
2871
- confidence: number;
2872
- x: number;
2873
- y: number;
2874
- height: number;
2875
- width: number;
2876
- }[];
2877
- previewImage: string;
2878
- };
2879
- video: string;
2880
- audio?: {
2881
- _id: string;
2882
- assets: string;
2883
- };
2884
- document: string;
2885
- vector?: {
2886
- image: string;
2887
- colors?: {
2888
- palette: Color[];
2889
- };
2890
- faces: {
2891
- confidence: number;
2892
- x: number;
2893
- y: number;
2894
- height: number;
2895
- width: number;
2896
- }[];
2897
- previewImage: string;
2898
- };
2899
- archive?: {
2900
- _id: string;
2901
- url: string;
2902
- };
2903
- model3d?: {
2904
- _id: string;
2905
- url: string;
2906
- thumbnail: string;
2907
- };
2908
- };
2909
- operationStatus: OperationStatus;
2910
- labels: string[];
2911
- siteId: string;
2912
- state: State$1;
2913
- }[];
2436
+ files: FileDescriptorNonNullableFields[];
2914
2437
  }
2915
2438
  interface SearchFilesResponseNonNullableFields {
2916
- files: {
2917
- _id: string;
2918
- displayName: string;
2919
- url: string;
2920
- hash: string;
2921
- private: boolean;
2922
- mediaType: MediaType;
2923
- media?: {
2924
- image?: {
2925
- image: string;
2926
- colors?: {
2927
- palette: Color[];
2928
- };
2929
- faces: {
2930
- confidence: number;
2931
- x: number;
2932
- y: number;
2933
- height: number;
2934
- width: number;
2935
- }[];
2936
- previewImage: string;
2937
- };
2938
- video: string;
2939
- audio?: {
2940
- _id: string;
2941
- assets: string;
2942
- };
2943
- document: string;
2944
- vector?: {
2945
- image: string;
2946
- colors?: {
2947
- palette: Color[];
2948
- };
2949
- faces: {
2950
- confidence: number;
2951
- x: number;
2952
- y: number;
2953
- height: number;
2954
- width: number;
2955
- }[];
2956
- previewImage: string;
2957
- };
2958
- archive?: {
2959
- _id: string;
2960
- url: string;
2961
- };
2962
- model3d?: {
2963
- _id: string;
2964
- url: string;
2965
- thumbnail: string;
2966
- };
2967
- };
2968
- operationStatus: OperationStatus;
2969
- labels: string[];
2970
- siteId: string;
2971
- state: State$1;
2972
- }[];
2439
+ files: FileDescriptorNonNullableFields[];
2973
2440
  }
2974
2441
  interface GenerateVideoStreamingUrlResponseNonNullableFields {
2975
- downloadUrl?: {
2976
- url: string;
2977
- assetKey: string;
2978
- };
2442
+ downloadUrl?: DownloadUrlNonNullableFields;
2979
2443
  }
2980
2444
  interface ListDeletedFilesResponseNonNullableFields {
2981
- files: {
2982
- _id: string;
2983
- displayName: string;
2984
- url: string;
2985
- hash: string;
2986
- private: boolean;
2987
- mediaType: MediaType;
2988
- media?: {
2989
- image?: {
2990
- image: string;
2991
- colors?: {
2992
- palette: Color[];
2993
- };
2994
- faces: {
2995
- confidence: number;
2996
- x: number;
2997
- y: number;
2998
- height: number;
2999
- width: number;
3000
- }[];
3001
- previewImage: string;
3002
- };
3003
- video: string;
3004
- audio?: {
3005
- _id: string;
3006
- assets: string;
3007
- };
3008
- document: string;
3009
- vector?: {
3010
- image: string;
3011
- colors?: {
3012
- palette: Color[];
3013
- };
3014
- faces: {
3015
- confidence: number;
3016
- x: number;
3017
- y: number;
3018
- height: number;
3019
- width: number;
3020
- }[];
3021
- previewImage: string;
3022
- };
3023
- archive?: {
3024
- _id: string;
3025
- url: string;
3026
- };
3027
- model3d?: {
3028
- _id: string;
3029
- url: string;
3030
- thumbnail: string;
3031
- };
3032
- };
3033
- operationStatus: OperationStatus;
3034
- labels: string[];
3035
- siteId: string;
3036
- state: State$1;
3037
- }[];
2445
+ files: FileDescriptorNonNullableFields[];
3038
2446
  }
3039
2447
  interface BaseEventMetadata$1 {
3040
2448
  /** App instance ID. */
@@ -3063,7 +2471,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
3063
2471
  slug?: string;
3064
2472
  /** ID of the entity associated with the event. */
3065
2473
  entityId?: string;
3066
- /** Event timestamp. */
2474
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3067
2475
  eventTime?: Date;
3068
2476
  /**
3069
2477
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3327,141 +2735,30 @@ interface ListDeletedFilesOptions {
3327
2735
  paging?: CursorPaging$1;
3328
2736
  }
3329
2737
 
3330
- declare const __metadata$1: {
3331
- PACKAGE_NAME: string;
3332
- };
3333
- declare function generateFilesDownloadUrl(httpClient: HttpClient): (fileIds: string[]) => Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
3334
- declare function generateFileDownloadUrl(httpClient: HttpClient): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
3335
- declare function getFileDescriptor(httpClient: HttpClient): (fileId: string) => Promise<FileDescriptor & {
3336
- _id: string;
3337
- displayName: string;
3338
- url: string;
3339
- hash: string;
3340
- private: boolean;
3341
- mediaType: MediaType;
3342
- media?: {
3343
- image?: {
3344
- image: string;
3345
- colors?: {
3346
- palette: Color[];
3347
- } | undefined;
3348
- faces: {
3349
- confidence: number;
3350
- x: number;
3351
- y: number;
3352
- height: number;
3353
- width: number;
3354
- }[];
3355
- previewImage: string;
3356
- } | undefined;
3357
- video: string;
3358
- audio?: {
3359
- _id: string;
3360
- assets: string;
3361
- } | undefined;
3362
- document: string;
3363
- vector?: {
3364
- image: string;
3365
- colors?: {
3366
- palette: Color[];
3367
- } | undefined;
3368
- faces: {
3369
- confidence: number;
3370
- x: number;
3371
- y: number;
3372
- height: number;
3373
- width: number;
3374
- }[];
3375
- previewImage: string;
3376
- } | undefined;
3377
- archive?: {
3378
- _id: string;
3379
- url: string;
3380
- } | undefined;
3381
- model3d?: {
3382
- _id: string;
3383
- url: string;
3384
- thumbnail: string;
3385
- } | undefined;
3386
- } | undefined;
3387
- operationStatus: OperationStatus;
3388
- labels: string[];
3389
- siteId: string;
3390
- state: State$1;
3391
- }>;
3392
- declare function getFileDescriptors(httpClient: HttpClient): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
3393
- declare function updateFileDescriptor(httpClient: HttpClient): (file: FileDescriptor) => Promise<FileDescriptor & {
3394
- _id: string;
3395
- displayName: string;
3396
- url: string;
3397
- hash: string;
3398
- private: boolean;
3399
- mediaType: MediaType;
3400
- media?: {
3401
- image?: {
3402
- image: string;
3403
- colors?: {
3404
- palette: Color[];
3405
- } | undefined;
3406
- faces: {
3407
- confidence: number;
3408
- x: number;
3409
- y: number;
3410
- height: number;
3411
- width: number;
3412
- }[];
3413
- previewImage: string;
3414
- } | undefined;
3415
- video: string;
3416
- audio?: {
3417
- _id: string;
3418
- assets: string;
3419
- } | undefined;
3420
- document: string;
3421
- vector?: {
3422
- image: string;
3423
- colors?: {
3424
- palette: Color[];
3425
- } | undefined;
3426
- faces: {
3427
- confidence: number;
3428
- x: number;
3429
- y: number;
3430
- height: number;
3431
- width: number;
3432
- }[];
3433
- previewImage: string;
3434
- } | undefined;
3435
- archive?: {
3436
- _id: string;
3437
- url: string;
3438
- } | undefined;
3439
- model3d?: {
3440
- _id: string;
3441
- url: string;
3442
- thumbnail: string;
3443
- } | undefined;
3444
- } | undefined;
3445
- operationStatus: OperationStatus;
3446
- labels: string[];
3447
- siteId: string;
3448
- state: State$1;
3449
- }>;
3450
- declare function generateFileUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
3451
- declare function generateFileResumableUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
3452
- declare function importFile(httpClient: HttpClient): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
3453
- declare function bulkImportFiles(httpClient: HttpClient): (importFileRequests: ImportFileRequest[]) => Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
3454
- declare function bulkImportFile(httpClient: HttpClient): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions) => Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
3455
- declare function listFiles(httpClient: HttpClient): (options?: ListFilesOptions) => Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
3456
- declare function searchFiles(httpClient: HttpClient): (options?: SearchFilesOptions) => Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
3457
- declare function generateVideoStreamingUrl(httpClient: HttpClient): (fileId: string, options?: GenerateVideoStreamingUrlOptions) => Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
3458
- declare function bulkDeleteFiles(httpClient: HttpClient): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
3459
- declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient): (fileIds: string[]) => Promise<void>;
3460
- declare function listDeletedFiles(httpClient: HttpClient): (options?: ListDeletedFilesOptions) => Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
3461
- declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
3462
- declare const onFileDescriptorDeleted: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
3463
- declare const onFileDescriptorFileReady: EventDefinition<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
3464
- declare const onFileDescriptorFileFailed: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
2738
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2739
+
2740
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2741
+
2742
+ declare const generateFilesDownloadUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateFilesDownloadUrl>>;
2743
+ declare const generateFileDownloadUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateFileDownloadUrl>>;
2744
+ declare const getFileDescriptor: ReturnType<typeof createRESTModule$1<typeof publicGetFileDescriptor>>;
2745
+ declare const getFileDescriptors: ReturnType<typeof createRESTModule$1<typeof publicGetFileDescriptors>>;
2746
+ declare const updateFileDescriptor: ReturnType<typeof createRESTModule$1<typeof publicUpdateFileDescriptor>>;
2747
+ declare const generateFileUploadUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateFileUploadUrl>>;
2748
+ declare const generateFileResumableUploadUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateFileResumableUploadUrl>>;
2749
+ declare const importFile: ReturnType<typeof createRESTModule$1<typeof publicImportFile>>;
2750
+ declare const bulkImportFiles: ReturnType<typeof createRESTModule$1<typeof publicBulkImportFiles>>;
2751
+ declare const bulkImportFile: ReturnType<typeof createRESTModule$1<typeof publicBulkImportFile>>;
2752
+ declare const listFiles: ReturnType<typeof createRESTModule$1<typeof publicListFiles>>;
2753
+ declare const searchFiles: ReturnType<typeof createRESTModule$1<typeof publicSearchFiles>>;
2754
+ declare const generateVideoStreamingUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateVideoStreamingUrl>>;
2755
+ declare const bulkDeleteFiles: ReturnType<typeof createRESTModule$1<typeof publicBulkDeleteFiles>>;
2756
+ declare const bulkRestoreFilesFromTrashBin: ReturnType<typeof createRESTModule$1<typeof publicBulkRestoreFilesFromTrashBin>>;
2757
+ declare const listDeletedFiles: ReturnType<typeof createRESTModule$1<typeof publicListDeletedFiles>>;
2758
+ declare const onFileDescriptorUpdated: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorUpdated>>;
2759
+ declare const onFileDescriptorDeleted: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorDeleted>>;
2760
+ declare const onFileDescriptorFileReady: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorFileReady>>;
2761
+ declare const onFileDescriptorFileFailed: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorFileFailed>>;
3465
2762
 
3466
2763
  type index_d$1_ApplicationError = ApplicationError;
3467
2764
  type index_d$1_Archive = Archive;
@@ -3492,6 +2789,7 @@ type index_d$1_FileDescriptor = FileDescriptor;
3492
2789
  type index_d$1_FileDescriptorDeletedEnvelope = FileDescriptorDeletedEnvelope;
3493
2790
  type index_d$1_FileDescriptorFileFailedEnvelope = FileDescriptorFileFailedEnvelope;
3494
2791
  type index_d$1_FileDescriptorFileReadyEnvelope = FileDescriptorFileReadyEnvelope;
2792
+ type index_d$1_FileDescriptorNonNullableFields = FileDescriptorNonNullableFields;
3495
2793
  type index_d$1_FileDescriptorUpdatedEnvelope = FileDescriptorUpdatedEnvelope;
3496
2794
  type index_d$1_FileFailed = FileFailed;
3497
2795
  type index_d$1_FileMedia = FileMedia;
@@ -3547,7 +2845,6 @@ type index_d$1_Model3D = Model3D;
3547
2845
  type index_d$1_OperationStatus = OperationStatus;
3548
2846
  declare const index_d$1_OperationStatus: typeof OperationStatus;
3549
2847
  type index_d$1_OtherMedia = OtherMedia;
3550
- type index_d$1_RestoreInfo = RestoreInfo;
3551
2848
  type index_d$1_SearchFilesOptions = SearchFilesOptions;
3552
2849
  type index_d$1_SearchFilesRequest = SearchFilesRequest;
3553
2850
  type index_d$1_SearchFilesResponse = SearchFilesResponse;
@@ -3583,7 +2880,7 @@ declare const index_d$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
3583
2880
  declare const index_d$1_searchFiles: typeof searchFiles;
3584
2881
  declare const index_d$1_updateFileDescriptor: typeof updateFileDescriptor;
3585
2882
  declare namespace index_d$1 {
3586
- export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_RestoreInfo as RestoreInfo, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type index_d$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type index_d$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type index_d$1_UpdateFileRequest as UpdateFileRequest, type index_d$1_UpdateFileResponse as UpdateFileResponse, index_d$1_UploadProtocol as UploadProtocol, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_bulkDeleteFiles as bulkDeleteFiles, index_d$1_bulkImportFile as bulkImportFile, index_d$1_bulkImportFiles as bulkImportFiles, index_d$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, index_d$1_generateFileDownloadUrl as generateFileDownloadUrl, index_d$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, index_d$1_generateFileUploadUrl as generateFileUploadUrl, index_d$1_generateFilesDownloadUrl as generateFilesDownloadUrl, index_d$1_generateVideoStreamingUrl as generateVideoStreamingUrl, index_d$1_getFileDescriptor as getFileDescriptor, index_d$1_getFileDescriptors as getFileDescriptors, index_d$1_importFile as importFile, index_d$1_listDeletedFiles as listDeletedFiles, index_d$1_listFiles as listFiles, index_d$1_onFileDescriptorDeleted as onFileDescriptorDeleted, index_d$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, index_d$1_onFileDescriptorFileReady as onFileDescriptorFileReady, index_d$1_onFileDescriptorUpdated as onFileDescriptorUpdated, index_d$1_searchFiles as searchFiles, index_d$1_updateFileDescriptor as updateFileDescriptor };
2883
+ export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type RestoreInfo$1 as RestoreInfo, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type index_d$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type index_d$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type index_d$1_UpdateFileRequest as UpdateFileRequest, type index_d$1_UpdateFileResponse as UpdateFileResponse, index_d$1_UploadProtocol as UploadProtocol, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_bulkDeleteFiles as bulkDeleteFiles, index_d$1_bulkImportFile as bulkImportFile, index_d$1_bulkImportFiles as bulkImportFiles, index_d$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, index_d$1_generateFileDownloadUrl as generateFileDownloadUrl, index_d$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, index_d$1_generateFileUploadUrl as generateFileUploadUrl, index_d$1_generateFilesDownloadUrl as generateFilesDownloadUrl, index_d$1_generateVideoStreamingUrl as generateVideoStreamingUrl, index_d$1_getFileDescriptor as getFileDescriptor, index_d$1_getFileDescriptors as getFileDescriptors, index_d$1_importFile as importFile, index_d$1_listDeletedFiles as listDeletedFiles, index_d$1_listFiles as listFiles, index_d$1_onFileDescriptorDeleted as onFileDescriptorDeleted, index_d$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, index_d$1_onFileDescriptorFileReady as onFileDescriptorFileReady, index_d$1_onFileDescriptorUpdated as onFileDescriptorUpdated, index_d$1_searchFiles as searchFiles, index_d$1_updateFileDescriptor as updateFileDescriptor };
3587
2884
  }
3588
2885
 
3589
2886
  interface Folder {
@@ -3822,7 +3119,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
3822
3119
  slug?: string;
3823
3120
  /** ID of the entity associated with the event. */
3824
3121
  entityId?: string;
3825
- /** Event timestamp. */
3122
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3826
3123
  eventTime?: Date;
3827
3124
  /**
3828
3125
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3851,6 +3148,9 @@ interface DomainEventBodyOneOf {
3851
3148
  interface EntityCreatedEvent {
3852
3149
  entity?: string;
3853
3150
  }
3151
+ interface RestoreInfo {
3152
+ deletedDate?: Date;
3153
+ }
3854
3154
  interface EntityUpdatedEvent {
3855
3155
  /**
3856
3156
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -3906,56 +3206,33 @@ declare enum WebhookIdentityType {
3906
3206
  WIX_USER = "WIX_USER",
3907
3207
  APP = "APP"
3908
3208
  }
3209
+ interface FolderNonNullableFields {
3210
+ _id: string;
3211
+ displayName: string;
3212
+ parentFolderId: string;
3213
+ state: State;
3214
+ namespace: Namespace;
3215
+ }
3909
3216
  interface CreateFolderResponseNonNullableFields {
3910
- folder?: {
3911
- _id: string;
3912
- displayName: string;
3913
- parentFolderId: string;
3914
- state: State;
3915
- };
3217
+ folder?: FolderNonNullableFields;
3916
3218
  }
3917
3219
  interface GetFolderResponseNonNullableFields {
3918
- folder?: {
3919
- _id: string;
3920
- displayName: string;
3921
- parentFolderId: string;
3922
- state: State;
3923
- };
3220
+ folder?: FolderNonNullableFields;
3924
3221
  }
3925
3222
  interface ListFoldersResponseNonNullableFields {
3926
- folders: {
3927
- _id: string;
3928
- displayName: string;
3929
- parentFolderId: string;
3930
- state: State;
3931
- }[];
3223
+ folders: FolderNonNullableFields[];
3932
3224
  }
3933
3225
  interface SearchFoldersResponseNonNullableFields {
3934
- folders: {
3935
- _id: string;
3936
- displayName: string;
3937
- parentFolderId: string;
3938
- state: State;
3939
- }[];
3226
+ folders: FolderNonNullableFields[];
3940
3227
  }
3941
3228
  interface UpdateFolderResponseNonNullableFields {
3942
- folder?: {
3943
- _id: string;
3944
- displayName: string;
3945
- parentFolderId: string;
3946
- state: State;
3947
- };
3229
+ folder?: FolderNonNullableFields;
3948
3230
  }
3949
3231
  interface GenerateFolderDownloadUrlResponseNonNullableFields {
3950
3232
  downloadUrl: string;
3951
3233
  }
3952
3234
  interface ListDeletedFoldersResponseNonNullableFields {
3953
- folders: {
3954
- _id: string;
3955
- displayName: string;
3956
- parentFolderId: string;
3957
- state: State;
3958
- }[];
3235
+ folders: FolderNonNullableFields[];
3959
3236
  }
3960
3237
  interface BaseEventMetadata {
3961
3238
  /** App instance ID. */
@@ -3984,7 +3261,7 @@ interface EventMetadata extends BaseEventMetadata {
3984
3261
  slug?: string;
3985
3262
  /** ID of the entity associated with the event. */
3986
3263
  entityId?: string;
3987
- /** Event timestamp. */
3264
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3988
3265
  eventTime?: Date;
3989
3266
  /**
3990
3267
  * Whether the event was triggered as a result of a privacy regulation application
@@ -4103,31 +3380,22 @@ interface ListDeletedFoldersOptions {
4103
3380
  paging?: CursorPaging;
4104
3381
  }
4105
3382
 
4106
- declare const __metadata: {
4107
- PACKAGE_NAME: string;
4108
- };
4109
- declare function createFolder(httpClient: HttpClient): (displayName: string, options?: CreateFolderOptions) => Promise<CreateFolderResponse & CreateFolderResponseNonNullableFields>;
4110
- declare function getFolder(httpClient: HttpClient): (folderId: string) => Promise<Folder & {
4111
- _id: string;
4112
- displayName: string;
4113
- parentFolderId: string;
4114
- state: State;
4115
- }>;
4116
- declare function listFolders(httpClient: HttpClient): (options?: ListFoldersOptions) => Promise<ListFoldersResponse & ListFoldersResponseNonNullableFields>;
4117
- declare function searchFolders(httpClient: HttpClient): (options?: SearchFoldersOptions) => Promise<SearchFoldersResponse & SearchFoldersResponseNonNullableFields>;
4118
- declare function updateFolder(httpClient: HttpClient): (_id: string, folder: UpdateFolder) => Promise<Folder & {
4119
- _id: string;
4120
- displayName: string;
4121
- parentFolderId: string;
4122
- state: State;
4123
- }>;
4124
- declare function generateFolderDownloadUrl(httpClient: HttpClient): (folderId: string) => Promise<GenerateFolderDownloadUrlResponse & GenerateFolderDownloadUrlResponseNonNullableFields>;
4125
- declare function bulkDeleteFolders(httpClient: HttpClient): (folderIds: string[], options?: BulkDeleteFoldersOptions) => Promise<void>;
4126
- declare function bulkRestoreFoldersFromTrashBin(httpClient: HttpClient): (folderIds: string[]) => Promise<void>;
4127
- declare function listDeletedFolders(httpClient: HttpClient): (options?: ListDeletedFoldersOptions) => Promise<ListDeletedFoldersResponse & ListDeletedFoldersResponseNonNullableFields>;
4128
- declare const onFolderCreated: EventDefinition<FolderCreatedEnvelope, "wix.media.site_media.v1.folder_created">;
4129
- declare const onFolderUpdated: EventDefinition<FolderUpdatedEnvelope, "wix.media.site_media.v1.folder_updated">;
4130
- declare const onFolderDeleted: EventDefinition<FolderDeletedEnvelope, "wix.media.site_media.v1.folder_deleted">;
3383
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3384
+
3385
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3386
+
3387
+ declare const createFolder: ReturnType<typeof createRESTModule<typeof publicCreateFolder>>;
3388
+ declare const getFolder: ReturnType<typeof createRESTModule<typeof publicGetFolder>>;
3389
+ declare const listFolders: ReturnType<typeof createRESTModule<typeof publicListFolders>>;
3390
+ declare const searchFolders: ReturnType<typeof createRESTModule<typeof publicSearchFolders>>;
3391
+ declare const updateFolder: ReturnType<typeof createRESTModule<typeof publicUpdateFolder>>;
3392
+ declare const generateFolderDownloadUrl: ReturnType<typeof createRESTModule<typeof publicGenerateFolderDownloadUrl>>;
3393
+ declare const bulkDeleteFolders: ReturnType<typeof createRESTModule<typeof publicBulkDeleteFolders>>;
3394
+ declare const bulkRestoreFoldersFromTrashBin: ReturnType<typeof createRESTModule<typeof publicBulkRestoreFoldersFromTrashBin>>;
3395
+ declare const listDeletedFolders: ReturnType<typeof createRESTModule<typeof publicListDeletedFolders>>;
3396
+ declare const onFolderCreated: ReturnType<typeof createEventModule<typeof publicOnFolderCreated>>;
3397
+ declare const onFolderUpdated: ReturnType<typeof createEventModule<typeof publicOnFolderUpdated>>;
3398
+ declare const onFolderDeleted: ReturnType<typeof createEventModule<typeof publicOnFolderDeleted>>;
4131
3399
 
4132
3400
  type index_d_ActionEvent = ActionEvent;
4133
3401
  type index_d_BaseEventMetadata = BaseEventMetadata;
@@ -4151,6 +3419,7 @@ type index_d_EventMetadata = EventMetadata;
4151
3419
  type index_d_Folder = Folder;
4152
3420
  type index_d_FolderCreatedEnvelope = FolderCreatedEnvelope;
4153
3421
  type index_d_FolderDeletedEnvelope = FolderDeletedEnvelope;
3422
+ type index_d_FolderNonNullableFields = FolderNonNullableFields;
4154
3423
  type index_d_FolderUpdatedEnvelope = FolderUpdatedEnvelope;
4155
3424
  type index_d_GenerateFolderDownloadUrlRequest = GenerateFolderDownloadUrlRequest;
4156
3425
  type index_d_GenerateFolderDownloadUrlResponse = GenerateFolderDownloadUrlResponse;
@@ -4172,6 +3441,7 @@ type index_d_MessageEnvelope = MessageEnvelope;
4172
3441
  type index_d_Namespace = Namespace;
4173
3442
  declare const index_d_Namespace: typeof Namespace;
4174
3443
  type index_d_PagingMetadataV2 = PagingMetadataV2;
3444
+ type index_d_RestoreInfo = RestoreInfo;
4175
3445
  type index_d_RootFolder = RootFolder;
4176
3446
  declare const index_d_RootFolder: typeof RootFolder;
4177
3447
  type index_d_SearchFoldersOptions = SearchFoldersOptions;
@@ -4189,7 +3459,6 @@ type index_d_UpdateFolderResponse = UpdateFolderResponse;
4189
3459
  type index_d_UpdateFolderResponseNonNullableFields = UpdateFolderResponseNonNullableFields;
4190
3460
  type index_d_WebhookIdentityType = WebhookIdentityType;
4191
3461
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
4192
- declare const index_d___metadata: typeof __metadata;
4193
3462
  declare const index_d_bulkDeleteFolders: typeof bulkDeleteFolders;
4194
3463
  declare const index_d_bulkRestoreFoldersFromTrashBin: typeof bulkRestoreFoldersFromTrashBin;
4195
3464
  declare const index_d_createFolder: typeof createFolder;
@@ -4203,7 +3472,7 @@ declare const index_d_onFolderUpdated: typeof onFolderUpdated;
4203
3472
  declare const index_d_searchFolders: typeof searchFolders;
4204
3473
  declare const index_d_updateFolder: typeof updateFolder;
4205
3474
  declare namespace index_d {
4206
- export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkDeleteFoldersOptions as BulkDeleteFoldersOptions, type index_d_BulkDeleteFoldersRequest as BulkDeleteFoldersRequest, type index_d_BulkDeleteFoldersResponse as BulkDeleteFoldersResponse, type index_d_BulkRestoreFoldersFromTrashBinRequest as BulkRestoreFoldersFromTrashBinRequest, type index_d_BulkRestoreFoldersFromTrashBinResponse as BulkRestoreFoldersFromTrashBinResponse, type index_d_CreateFolderOptions as CreateFolderOptions, type index_d_CreateFolderRequest as CreateFolderRequest, type index_d_CreateFolderResponse as CreateFolderResponse, type index_d_CreateFolderResponseNonNullableFields as CreateFolderResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Folder as Folder, type index_d_FolderCreatedEnvelope as FolderCreatedEnvelope, type index_d_FolderDeletedEnvelope as FolderDeletedEnvelope, type index_d_FolderUpdatedEnvelope as FolderUpdatedEnvelope, type index_d_GenerateFolderDownloadUrlRequest as GenerateFolderDownloadUrlRequest, type index_d_GenerateFolderDownloadUrlResponse as GenerateFolderDownloadUrlResponse, type index_d_GenerateFolderDownloadUrlResponseNonNullableFields as GenerateFolderDownloadUrlResponseNonNullableFields, type index_d_GetFolderRequest as GetFolderRequest, type index_d_GetFolderResponse as GetFolderResponse, type index_d_GetFolderResponseNonNullableFields as GetFolderResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListDeletedFoldersOptions as ListDeletedFoldersOptions, type index_d_ListDeletedFoldersRequest as ListDeletedFoldersRequest, type index_d_ListDeletedFoldersResponse as ListDeletedFoldersResponse, type index_d_ListDeletedFoldersResponseNonNullableFields as ListDeletedFoldersResponseNonNullableFields, type index_d_ListFoldersOptions as ListFoldersOptions, type index_d_ListFoldersRequest as ListFoldersRequest, type index_d_ListFoldersResponse as ListFoldersResponse, type index_d_ListFoldersResponseNonNullableFields as ListFoldersResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, index_d_Namespace as Namespace, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_RootFolder as RootFolder, type index_d_SearchFoldersOptions as SearchFoldersOptions, type index_d_SearchFoldersRequest as SearchFoldersRequest, type index_d_SearchFoldersResponse as SearchFoldersResponse, type index_d_SearchFoldersResponseNonNullableFields as SearchFoldersResponseNonNullableFields, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_UpdateFolder as UpdateFolder, type index_d_UpdateFolderRequest as UpdateFolderRequest, type index_d_UpdateFolderResponse as UpdateFolderResponse, type index_d_UpdateFolderResponseNonNullableFields as UpdateFolderResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_bulkDeleteFolders as bulkDeleteFolders, index_d_bulkRestoreFoldersFromTrashBin as bulkRestoreFoldersFromTrashBin, index_d_createFolder as createFolder, index_d_generateFolderDownloadUrl as generateFolderDownloadUrl, index_d_getFolder as getFolder, index_d_listDeletedFolders as listDeletedFolders, index_d_listFolders as listFolders, index_d_onFolderCreated as onFolderCreated, index_d_onFolderDeleted as onFolderDeleted, index_d_onFolderUpdated as onFolderUpdated, index_d_searchFolders as searchFolders, index_d_updateFolder as updateFolder };
3475
+ export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkDeleteFoldersOptions as BulkDeleteFoldersOptions, type index_d_BulkDeleteFoldersRequest as BulkDeleteFoldersRequest, type index_d_BulkDeleteFoldersResponse as BulkDeleteFoldersResponse, type index_d_BulkRestoreFoldersFromTrashBinRequest as BulkRestoreFoldersFromTrashBinRequest, type index_d_BulkRestoreFoldersFromTrashBinResponse as BulkRestoreFoldersFromTrashBinResponse, type index_d_CreateFolderOptions as CreateFolderOptions, type index_d_CreateFolderRequest as CreateFolderRequest, type index_d_CreateFolderResponse as CreateFolderResponse, type index_d_CreateFolderResponseNonNullableFields as CreateFolderResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Folder as Folder, type index_d_FolderCreatedEnvelope as FolderCreatedEnvelope, type index_d_FolderDeletedEnvelope as FolderDeletedEnvelope, type index_d_FolderNonNullableFields as FolderNonNullableFields, type index_d_FolderUpdatedEnvelope as FolderUpdatedEnvelope, type index_d_GenerateFolderDownloadUrlRequest as GenerateFolderDownloadUrlRequest, type index_d_GenerateFolderDownloadUrlResponse as GenerateFolderDownloadUrlResponse, type index_d_GenerateFolderDownloadUrlResponseNonNullableFields as GenerateFolderDownloadUrlResponseNonNullableFields, type index_d_GetFolderRequest as GetFolderRequest, type index_d_GetFolderResponse as GetFolderResponse, type index_d_GetFolderResponseNonNullableFields as GetFolderResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListDeletedFoldersOptions as ListDeletedFoldersOptions, type index_d_ListDeletedFoldersRequest as ListDeletedFoldersRequest, type index_d_ListDeletedFoldersResponse as ListDeletedFoldersResponse, type index_d_ListDeletedFoldersResponseNonNullableFields as ListDeletedFoldersResponseNonNullableFields, type index_d_ListFoldersOptions as ListFoldersOptions, type index_d_ListFoldersRequest as ListFoldersRequest, type index_d_ListFoldersResponse as ListFoldersResponse, type index_d_ListFoldersResponseNonNullableFields as ListFoldersResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, index_d_Namespace as Namespace, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_RestoreInfo as RestoreInfo, index_d_RootFolder as RootFolder, type index_d_SearchFoldersOptions as SearchFoldersOptions, type index_d_SearchFoldersRequest as SearchFoldersRequest, type index_d_SearchFoldersResponse as SearchFoldersResponse, type index_d_SearchFoldersResponseNonNullableFields as SearchFoldersResponseNonNullableFields, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_UpdateFolder as UpdateFolder, type index_d_UpdateFolderRequest as UpdateFolderRequest, type index_d_UpdateFolderResponse as UpdateFolderResponse, type index_d_UpdateFolderResponseNonNullableFields as UpdateFolderResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d_bulkDeleteFolders as bulkDeleteFolders, index_d_bulkRestoreFoldersFromTrashBin as bulkRestoreFoldersFromTrashBin, index_d_createFolder as createFolder, index_d_generateFolderDownloadUrl as generateFolderDownloadUrl, index_d_getFolder as getFolder, index_d_listDeletedFolders as listDeletedFolders, index_d_listFolders as listFolders, index_d_onFolderCreated as onFolderCreated, index_d_onFolderDeleted as onFolderDeleted, index_d_onFolderUpdated as onFolderUpdated, index_d_searchFolders as searchFolders, index_d_updateFolder as updateFolder };
4207
3476
  }
4208
3477
 
4209
3478
  export { index_d$3 as enterpriseMediaCategories, index_d$2 as enterpriseMediaItems, index_d$1 as files, index_d as folders };