@wix/media 1.0.103 → 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.
@@ -29,20 +29,165 @@ declare enum PublishStatus$1 {
29
29
  PUBLISHED = "PUBLISHED",
30
30
  WIX_ONLY = "WIX_ONLY"
31
31
  }
32
+ declare enum MediaType$2 {
33
+ MIXED = "MIXED",
34
+ IMAGE = "IMAGE",
35
+ VIDEO = "VIDEO",
36
+ AUDIO = "AUDIO",
37
+ DOCUMENT = "DOCUMENT",
38
+ VECTOR = "VECTOR",
39
+ ARCHIVE = "ARCHIVE",
40
+ MODEL3D = "MODEL3D"
41
+ }
42
+ interface CreateCategoryRequest {
43
+ /** The category object that will be created */
44
+ category: EnterpriseCategory;
45
+ }
46
+ interface CreateCategoryResponse {
47
+ /** A list of items matching the request */
48
+ category?: EnterpriseCategory;
49
+ }
50
+ interface DeleteCategoryRequest {
51
+ /** Category id */
52
+ categoryId: string;
53
+ }
54
+ interface DeleteCategoryResponse {
55
+ }
56
+ interface UpdateCategoryRequest {
57
+ /** The category object that will be created */
58
+ category: EnterpriseCategory;
59
+ }
60
+ interface UpdateCategoryResponse {
61
+ /** The updated category */
62
+ category?: EnterpriseCategory;
63
+ }
64
+ interface GetCategoryRequest {
65
+ /** Category id */
66
+ categoryId: string;
67
+ /** number of sub category levels */
68
+ levels?: number | null;
69
+ /** filter categories by publish statuses. When empty will return PUBLISHED and UNPUBLISHED */
70
+ publishStatus?: PublishStatus$1;
71
+ }
72
+ interface GetCategoryResponse {
73
+ /** The category details */
74
+ category?: EnterpriseCategoryTree;
75
+ }
32
76
  interface EnterpriseCategoryTree {
33
77
  /** Category information */
34
78
  category?: EnterpriseCategory;
35
79
  /** Information about the sub categories */
36
80
  subCategories?: EnterpriseCategoryTree[];
37
81
  }
82
+ interface EnterpriseOnboardingRequest {
83
+ /** The account id of the organization - will be used as the organization category id */
84
+ accountId: string;
85
+ /** The account name of the organization - will be used as the organization category name */
86
+ accountName?: string;
87
+ }
38
88
  interface EnterpriseOnboardingResponse {
39
89
  /** The enterprise category */
40
90
  category?: EnterpriseCategory;
41
91
  }
92
+ interface LinkItemsToCategoryRequest {
93
+ /** The category to link to */
94
+ categoryId?: string;
95
+ /** The item ids that will be added to the category */
96
+ itemIds?: string[];
97
+ }
98
+ interface LinkItemsToCategoryResponse {
99
+ }
100
+ interface UnlinkItemsFromCategoryRequest {
101
+ /** The category to link to */
102
+ categoryId?: string;
103
+ /** The item ids that will be added to the category */
104
+ itemIds?: string[];
105
+ }
106
+ interface UnlinkItemsFromCategoryResponse {
107
+ }
108
+ interface GetMediaManagerCategoriesRequest {
109
+ }
42
110
  interface GetMediaManagerCategoriesResponse {
43
111
  /** The category details */
44
112
  category?: EnterpriseCategoryTree;
45
113
  }
114
+ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
115
+ createdEvent?: EntityCreatedEvent$3;
116
+ updatedEvent?: EntityUpdatedEvent$3;
117
+ deletedEvent?: EntityDeletedEvent$3;
118
+ actionEvent?: ActionEvent$3;
119
+ /**
120
+ * Unique event ID.
121
+ * Allows clients to ignore duplicate webhooks.
122
+ */
123
+ _id?: string;
124
+ /**
125
+ * Assumes actions are also always typed to an entity_type
126
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
127
+ */
128
+ entityFqdn?: string;
129
+ /**
130
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
131
+ * This is although the created/updated/deleted notion is duplication of the oneof types
132
+ * Example: created/updated/deleted/started/completed/email_opened
133
+ */
134
+ slug?: string;
135
+ /** ID of the entity associated with the event. */
136
+ entityId?: string;
137
+ /** Event timestamp. */
138
+ eventTime?: Date;
139
+ /**
140
+ * Whether the event was triggered as a result of a privacy regulation application
141
+ * (for example, GDPR).
142
+ */
143
+ triggeredByAnonymizeRequest?: boolean | null;
144
+ /** If present, indicates the action that triggered the event. */
145
+ originatedFrom?: string | null;
146
+ /**
147
+ * A sequence number defining the order of updates to the underlying entity.
148
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
149
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
150
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
151
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
152
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
153
+ */
154
+ entityEventSequence?: string | null;
155
+ }
156
+ /** @oneof */
157
+ interface DomainEventBodyOneOf$3 {
158
+ createdEvent?: EntityCreatedEvent$3;
159
+ updatedEvent?: EntityUpdatedEvent$3;
160
+ deletedEvent?: EntityDeletedEvent$3;
161
+ actionEvent?: ActionEvent$3;
162
+ }
163
+ interface EntityCreatedEvent$3 {
164
+ entity?: string;
165
+ }
166
+ interface EntityUpdatedEvent$3 {
167
+ /**
168
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
169
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
170
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
171
+ */
172
+ currentEntity?: string;
173
+ }
174
+ interface EntityDeletedEvent$3 {
175
+ /** Entity that was deleted */
176
+ deletedEntity?: string | null;
177
+ }
178
+ interface ActionEvent$3 {
179
+ body?: string;
180
+ }
181
+ interface MessageEnvelope$3 {
182
+ /** App instance ID. */
183
+ instanceId?: string | null;
184
+ /** Event type. */
185
+ eventType?: string;
186
+ /** The identification type and identity data. */
187
+ identity?: IdentificationData$3;
188
+ /** Stringify payload. */
189
+ data?: string;
190
+ }
46
191
  interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
47
192
  /** ID of a site visitor that has not logged in to the site. */
48
193
  anonymousVisitorId?: string;
@@ -73,20 +218,29 @@ declare enum WebhookIdentityType$3 {
73
218
  WIX_USER = "WIX_USER",
74
219
  APP = "APP"
75
220
  }
221
+ interface EnterpriseCategoryNonNullableFields {
222
+ _id: string;
223
+ publishStatus: PublishStatus$1;
224
+ mediaType: MediaType$2;
225
+ }
226
+ interface CreateCategoryResponseNonNullableFields {
227
+ category?: EnterpriseCategoryNonNullableFields;
228
+ }
229
+ interface UpdateCategoryResponseNonNullableFields {
230
+ category?: EnterpriseCategoryNonNullableFields;
231
+ }
232
+ interface EnterpriseCategoryTreeNonNullableFields {
233
+ category?: EnterpriseCategoryNonNullableFields;
234
+ subCategories: EnterpriseCategoryTreeNonNullableFields[];
235
+ }
236
+ interface GetCategoryResponseNonNullableFields {
237
+ category?: EnterpriseCategoryTreeNonNullableFields;
238
+ }
76
239
  interface EnterpriseOnboardingResponseNonNullableFields {
77
- category?: {
78
- _id: string;
79
- publishStatus: PublishStatus$1;
80
- };
240
+ category?: EnterpriseCategoryNonNullableFields;
81
241
  }
82
242
  interface GetMediaManagerCategoriesResponseNonNullableFields {
83
- category?: {
84
- category?: {
85
- _id: string;
86
- publishStatus: PublishStatus$1;
87
- };
88
- subCategories: NonNullable<GetMediaManagerCategoriesResponseNonNullableFields>['category'][];
89
- };
243
+ category?: EnterpriseCategoryTreeNonNullableFields;
90
244
  }
91
245
  interface BaseEventMetadata$3 {
92
246
  /** App instance ID. */
@@ -181,41 +335,42 @@ interface EnterpriseOnboardingOptions {
181
335
  accountName?: string;
182
336
  }
183
337
 
184
- type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
185
- interface HttpClient$3 {
186
- request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
187
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
338
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
339
+ interface HttpClient {
340
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
341
+ fetchWithAuth: typeof fetch;
342
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
188
343
  }
189
- type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
190
- type HttpResponse$3<T = any> = {
344
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
345
+ type HttpResponse<T = any> = {
191
346
  data: T;
192
347
  status: number;
193
348
  statusText: string;
194
349
  headers: any;
195
350
  request?: any;
196
351
  };
197
- type RequestOptions$3<_TResponse = any, Data = any> = {
352
+ type RequestOptions<_TResponse = any, Data = any> = {
198
353
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
199
354
  url: string;
200
355
  data?: Data;
201
356
  params?: URLSearchParams;
202
- } & APIMetadata$3;
203
- type APIMetadata$3 = {
357
+ } & APIMetadata;
358
+ type APIMetadata = {
204
359
  methodFqn?: string;
205
360
  entityFqdn?: string;
206
361
  packageName?: string;
207
362
  };
208
- type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
209
- type EventDefinition$3<Payload = unknown, Type extends string = string> = {
363
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
364
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
210
365
  __type: 'event-definition';
211
366
  type: Type;
212
367
  isDomainEvent?: boolean;
213
368
  transformations?: (envelope: unknown) => Payload;
214
369
  __payload: Payload;
215
370
  };
216
- declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
217
- type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
218
- type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
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;
219
374
 
220
375
  declare global {
221
376
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -224,38 +379,51 @@ declare global {
224
379
  }
225
380
  }
226
381
 
227
- declare function createCategory$1(httpClient: HttpClient$3): (category: EnterpriseCategory) => Promise<EnterpriseCategory & {
228
- _id: string;
229
- publishStatus: PublishStatus$1;
230
- }>;
231
- declare function deleteCategory$1(httpClient: HttpClient$3): (categoryId: string) => Promise<void>;
232
- declare function updateCategory$1(httpClient: HttpClient$3): (_id: string, category: UpdateCategory) => Promise<EnterpriseCategory & {
233
- _id: string;
234
- publishStatus: PublishStatus$1;
235
- }>;
236
- declare function getCategory$1(httpClient: HttpClient$3): (categoryId: string, options?: GetCategoryOptions) => Promise<EnterpriseCategoryTree & {
237
- category?: {
238
- _id: string;
239
- publishStatus: PublishStatus$1;
240
- } | undefined;
241
- subCategories: (any | undefined)[];
242
- }>;
243
- declare function enterpriseOnboarding$1(httpClient: HttpClient$3): (accountId: string, options?: EnterpriseOnboardingOptions) => Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
244
- declare function getMediaManagerCategories$1(httpClient: HttpClient$3): () => Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
245
- declare const onEnterpriseCategoryCreated$1: EventDefinition$3<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
246
- declare const onEnterpriseCategoryDeleted$1: EventDefinition$3<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
247
- declare const onEnterpriseCategoryUpdated$1: EventDefinition$3<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;
248
383
 
249
- declare const createCategory: BuildRESTFunction$3<typeof createCategory$1>;
250
- declare const deleteCategory: BuildRESTFunction$3<typeof deleteCategory$1>;
251
- declare const updateCategory: BuildRESTFunction$3<typeof updateCategory$1>;
252
- declare const getCategory: BuildRESTFunction$3<typeof getCategory$1>;
253
- declare const enterpriseOnboarding: BuildRESTFunction$3<typeof enterpriseOnboarding$1>;
254
- declare const getMediaManagerCategories: BuildRESTFunction$3<typeof getMediaManagerCategories$1>;
255
- declare const onEnterpriseCategoryCreated: BuildEventDefinition$3<typeof onEnterpriseCategoryCreated$1>;
256
- declare const onEnterpriseCategoryDeleted: BuildEventDefinition$3<typeof onEnterpriseCategoryDeleted$1>;
257
- declare const onEnterpriseCategoryUpdated: BuildEventDefinition$3<typeof onEnterpriseCategoryUpdated$1>;
384
+ declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
258
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>>;
395
+
396
+ type context$3_CreateCategoryRequest = CreateCategoryRequest;
397
+ type context$3_CreateCategoryResponse = CreateCategoryResponse;
398
+ type context$3_CreateCategoryResponseNonNullableFields = CreateCategoryResponseNonNullableFields;
399
+ type context$3_DeleteCategoryRequest = DeleteCategoryRequest;
400
+ type context$3_DeleteCategoryResponse = DeleteCategoryResponse;
401
+ type context$3_EnterpriseCategory = EnterpriseCategory;
402
+ type context$3_EnterpriseCategoryCreatedEnvelope = EnterpriseCategoryCreatedEnvelope;
403
+ type context$3_EnterpriseCategoryDeletedEnvelope = EnterpriseCategoryDeletedEnvelope;
404
+ type context$3_EnterpriseCategoryNonNullableFields = EnterpriseCategoryNonNullableFields;
405
+ type context$3_EnterpriseCategoryTree = EnterpriseCategoryTree;
406
+ type context$3_EnterpriseCategoryTreeNonNullableFields = EnterpriseCategoryTreeNonNullableFields;
407
+ type context$3_EnterpriseCategoryUpdatedEnvelope = EnterpriseCategoryUpdatedEnvelope;
408
+ type context$3_EnterpriseOnboardingOptions = EnterpriseOnboardingOptions;
409
+ type context$3_EnterpriseOnboardingRequest = EnterpriseOnboardingRequest;
410
+ type context$3_EnterpriseOnboardingResponse = EnterpriseOnboardingResponse;
411
+ type context$3_EnterpriseOnboardingResponseNonNullableFields = EnterpriseOnboardingResponseNonNullableFields;
412
+ type context$3_GetCategoryOptions = GetCategoryOptions;
413
+ type context$3_GetCategoryRequest = GetCategoryRequest;
414
+ type context$3_GetCategoryResponse = GetCategoryResponse;
415
+ type context$3_GetCategoryResponseNonNullableFields = GetCategoryResponseNonNullableFields;
416
+ type context$3_GetMediaManagerCategoriesRequest = GetMediaManagerCategoriesRequest;
417
+ type context$3_GetMediaManagerCategoriesResponse = GetMediaManagerCategoriesResponse;
418
+ type context$3_GetMediaManagerCategoriesResponseNonNullableFields = GetMediaManagerCategoriesResponseNonNullableFields;
419
+ type context$3_LinkItemsToCategoryRequest = LinkItemsToCategoryRequest;
420
+ type context$3_LinkItemsToCategoryResponse = LinkItemsToCategoryResponse;
421
+ type context$3_UnlinkItemsFromCategoryRequest = UnlinkItemsFromCategoryRequest;
422
+ type context$3_UnlinkItemsFromCategoryResponse = UnlinkItemsFromCategoryResponse;
423
+ type context$3_UpdateCategory = UpdateCategory;
424
+ type context$3_UpdateCategoryRequest = UpdateCategoryRequest;
425
+ type context$3_UpdateCategoryResponse = UpdateCategoryResponse;
426
+ type context$3_UpdateCategoryResponseNonNullableFields = UpdateCategoryResponseNonNullableFields;
259
427
  declare const context$3_createCategory: typeof createCategory;
260
428
  declare const context$3_deleteCategory: typeof deleteCategory;
261
429
  declare const context$3_enterpriseOnboarding: typeof enterpriseOnboarding;
@@ -266,7 +434,7 @@ declare const context$3_onEnterpriseCategoryDeleted: typeof onEnterpriseCategory
266
434
  declare const context$3_onEnterpriseCategoryUpdated: typeof onEnterpriseCategoryUpdated;
267
435
  declare const context$3_updateCategory: typeof updateCategory;
268
436
  declare namespace context$3 {
269
- export { context$3_createCategory as createCategory, context$3_deleteCategory as deleteCategory, context$3_enterpriseOnboarding as enterpriseOnboarding, context$3_getCategory as getCategory, context$3_getMediaManagerCategories as getMediaManagerCategories, context$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, context$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, context$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, context$3_updateCategory as updateCategory };
437
+ export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type context$3_CreateCategoryRequest as CreateCategoryRequest, type context$3_CreateCategoryResponse as CreateCategoryResponse, type context$3_CreateCategoryResponseNonNullableFields as CreateCategoryResponseNonNullableFields, type context$3_DeleteCategoryRequest as DeleteCategoryRequest, type context$3_DeleteCategoryResponse as DeleteCategoryResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type context$3_EnterpriseCategory as EnterpriseCategory, type context$3_EnterpriseCategoryCreatedEnvelope as EnterpriseCategoryCreatedEnvelope, type context$3_EnterpriseCategoryDeletedEnvelope as EnterpriseCategoryDeletedEnvelope, type context$3_EnterpriseCategoryNonNullableFields as EnterpriseCategoryNonNullableFields, type context$3_EnterpriseCategoryTree as EnterpriseCategoryTree, type context$3_EnterpriseCategoryTreeNonNullableFields as EnterpriseCategoryTreeNonNullableFields, type context$3_EnterpriseCategoryUpdatedEnvelope as EnterpriseCategoryUpdatedEnvelope, type context$3_EnterpriseOnboardingOptions as EnterpriseOnboardingOptions, type context$3_EnterpriseOnboardingRequest as EnterpriseOnboardingRequest, type context$3_EnterpriseOnboardingResponse as EnterpriseOnboardingResponse, type context$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 context$3_GetCategoryOptions as GetCategoryOptions, type context$3_GetCategoryRequest as GetCategoryRequest, type context$3_GetCategoryResponse as GetCategoryResponse, type context$3_GetCategoryResponseNonNullableFields as GetCategoryResponseNonNullableFields, type context$3_GetMediaManagerCategoriesRequest as GetMediaManagerCategoriesRequest, type context$3_GetMediaManagerCategoriesResponse as GetMediaManagerCategoriesResponse, type context$3_GetMediaManagerCategoriesResponseNonNullableFields as GetMediaManagerCategoriesResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type context$3_LinkItemsToCategoryRequest as LinkItemsToCategoryRequest, type context$3_LinkItemsToCategoryResponse as LinkItemsToCategoryResponse, MediaType$2 as MediaType, type MessageEnvelope$3 as MessageEnvelope, PublishStatus$1 as PublishStatus, type context$3_UnlinkItemsFromCategoryRequest as UnlinkItemsFromCategoryRequest, type context$3_UnlinkItemsFromCategoryResponse as UnlinkItemsFromCategoryResponse, type context$3_UpdateCategory as UpdateCategory, type context$3_UpdateCategoryRequest as UpdateCategoryRequest, type context$3_UpdateCategoryResponse as UpdateCategoryResponse, type context$3_UpdateCategoryResponseNonNullableFields as UpdateCategoryResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, context$3_createCategory as createCategory, context$3_deleteCategory as deleteCategory, context$3_enterpriseOnboarding as enterpriseOnboarding, context$3_getCategory as getCategory, context$3_getMediaManagerCategories as getMediaManagerCategories, context$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, context$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, context$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, context$3_updateCategory as updateCategory };
270
438
  }
271
439
 
272
440
  /**
@@ -372,6 +540,20 @@ interface ItemAssetsAssetsOneOf {
372
540
  /** Information about the 3D Model. */
373
541
  model3d?: Model3D$1;
374
542
  }
543
+ interface VideoResolution$1 {
544
+ /** Video URL. */
545
+ url?: string;
546
+ /** Video height. */
547
+ height?: number;
548
+ /** Video width. */
549
+ width?: number;
550
+ /**
551
+ * Video format
552
+ * Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
553
+ * '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm' ]
554
+ */
555
+ format?: string;
556
+ }
375
557
  interface Archive$1 {
376
558
  /** WixMedia ID. */
377
559
  _id?: string;
@@ -428,10 +610,59 @@ interface ItemCategoriesChanged {
428
610
  /** The full updated item information */
429
611
  entity?: EnterpriseMediaItem;
430
612
  }
613
+ interface ItemUploadCallbackRequest {
614
+ /** The item id of the created item */
615
+ itemId?: string;
616
+ /** The callback passed to the upload endpoint */
617
+ callbackToken?: string;
618
+ }
619
+ interface ItemUploadCallbackResponse {
620
+ }
621
+ interface GenerateFileUploadUrlRequest$1 {
622
+ /** The uploaded original file name including the extension */
623
+ fileName?: string;
624
+ /** The file mime-type - will be used to identify the type of media */
625
+ contentType?: string;
626
+ /** The file size in bytes */
627
+ sizeInBytes?: number;
628
+ /**
629
+ * An optional list of categories to link the created item to
630
+ * The item will be linked to the account category automatically
631
+ */
632
+ categoryIds?: string[] | null;
633
+ }
431
634
  interface GenerateFileUploadUrlResponse$1 {
432
635
  /** The upload url to upload the file to */
433
636
  uploadUrl?: string;
434
637
  }
638
+ interface ImportFileRequest$1 {
639
+ /** The url to the file to be imported */
640
+ url: string;
641
+ /** The uploaded original file name including the extension - will be used as the initial display name */
642
+ fileName?: string | null;
643
+ /** The file mime-type - will be used to identify the type of media */
644
+ contentType?: string | null;
645
+ /** The file size in bytes */
646
+ sizeInBytes?: number | null;
647
+ /**
648
+ * An optional list of categories to link the created item to
649
+ * The item will be linked to the account category automatically
650
+ */
651
+ categoryIds?: string[] | null;
652
+ /** The media type of the uploaded file */
653
+ mediaType?: MediaType$1;
654
+ /**
655
+ * A unique identifier of the client that imported the file
656
+ * This information will exist in the system_tags field prefixed by '_external_uploader:{uploader_system_tag}'
657
+ */
658
+ uploaderSystemTag?: string | null;
659
+ /**
660
+ * An additional container for external information
661
+ * mostly used to pass identifying information of related entities in external services
662
+ * This information will exist in the system_tags field prefixed by '_external_uploader_info:{uploader_info_system_tag}'
663
+ */
664
+ uploaderInfoSystemTag?: string | null;
665
+ }
435
666
  interface ImportFileResponse$1 {
436
667
  /**
437
668
  * Partial item - without the assets
@@ -440,6 +671,10 @@ interface ImportFileResponse$1 {
440
671
  */
441
672
  item?: EnterpriseMediaItem;
442
673
  }
674
+ interface SearchItemsRequest {
675
+ /** Items search query */
676
+ query?: Search;
677
+ }
443
678
  interface Search extends SearchPagingMethodOneOf {
444
679
  /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
445
680
  paging?: Paging;
@@ -495,16 +730,59 @@ interface Cursors$2 {
495
730
  /** Cursor pointing to next page in the list of results. */
496
731
  next?: string | null;
497
732
  }
733
+ interface QueryItemsRequest {
734
+ /** Items query */
735
+ query?: QueryV2;
736
+ }
737
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
738
+ /** Paging options to limit and skip the number of items. */
739
+ paging?: Paging;
740
+ /**
741
+ * Filter object in the following format:
742
+ * `"filter" : {
743
+ * "fieldName1": "value1",
744
+ * "fieldName2":{"$operator":"value2"}
745
+ * }`
746
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
747
+ */
748
+ filter?: Record<string, any> | null;
749
+ /**
750
+ * Sort object in the following format:
751
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
752
+ */
753
+ sort?: Sorting$2[];
754
+ }
755
+ /** @oneof */
756
+ interface QueryV2PagingMethodOneOf {
757
+ /** Paging options to limit and skip the number of items. */
758
+ paging?: Paging;
759
+ }
760
+ interface QueryItemsResponse {
761
+ /** A list of items matching the request */
762
+ items?: EnterpriseMediaItem[];
763
+ /** Information for the next request. */
764
+ pagingMetadata?: PagingMetadataV2$2;
765
+ }
498
766
  interface UpdateItemRequest {
499
767
  /** The category object that will be created */
500
768
  item: EnterpriseMediaItem;
501
769
  }
770
+ interface UpdateItemResponse {
771
+ /** Updated item info */
772
+ item?: EnterpriseMediaItem;
773
+ }
502
774
  interface PublishStatusChanged {
503
775
  /** The new item status */
504
776
  publishStatus?: PublishStatus;
505
777
  /** The full updated item information */
506
778
  entity?: EnterpriseMediaItem;
507
779
  }
780
+ interface BulkUpdateItemRequest {
781
+ /** Requests to update individual item */
782
+ updateItemRequests: UpdateItemRequest[];
783
+ /** Should the response return the updated item */
784
+ returnEntity?: boolean;
785
+ }
508
786
  interface BulkUpdateItemResponse {
509
787
  /** Requests to update individual item */
510
788
  results?: BulkItemUpdateResult[];
@@ -543,146 +821,51 @@ interface BulkActionMetadata$1 {
543
821
  /** Number of failures without details because detailed failure threshold was exceeded. */
544
822
  undetailedFailures?: number;
545
823
  }
824
+ interface GetItemRequest {
825
+ /** Item id */
826
+ itemId: string;
827
+ }
828
+ interface GetItemResponse {
829
+ /** item info */
830
+ item?: EnterpriseMediaItem;
831
+ }
832
+ interface LinkItemToCategoriesRequest {
833
+ /** The item id */
834
+ itemId: string;
835
+ /** The category ids that the item will be linked to */
836
+ categoryIds?: string[];
837
+ }
546
838
  interface LinkItemToCategoriesResponse {
547
839
  /** The linked category ids */
548
840
  linkedCategoryIds?: string[] | null;
549
841
  }
842
+ interface UnlinkItemFromCategoriesRequest {
843
+ /** The item id */
844
+ itemId: string;
845
+ /** The category ids that the item will be unlinked from */
846
+ categoryIds?: string[];
847
+ }
550
848
  interface UnlinkItemFromCategoriesResponse {
551
849
  /** The unlinked category ids */
552
850
  unlinkedCategoryIds?: string[] | null;
553
851
  }
852
+ interface OverwriteItemCategoriesRequest {
853
+ /** The item id */
854
+ itemId: string;
855
+ /** The category ids the item will be linked to after this operation */
856
+ categoryIds?: string[];
857
+ }
554
858
  interface OverwriteItemCategoriesResponse {
555
859
  /** The linked category ids */
556
860
  linkedCategoryIds?: string[] | null;
557
861
  /** The unlinked category ids */
558
862
  unlinkedCategoryIds?: string[] | null;
559
863
  }
560
- interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
561
- /** ID of a site visitor that has not logged in to the site. */
562
- anonymousVisitorId?: string;
563
- /** ID of a site visitor that has logged in to the site. */
564
- memberId?: string;
565
- /** ID of a Wix user (site owner, contributor, etc.). */
566
- wixUserId?: string;
567
- /** ID of an app. */
568
- appId?: string;
569
- /** @readonly */
570
- identityType?: WebhookIdentityType$2;
571
- }
572
- /** @oneof */
573
- interface IdentificationDataIdOneOf$2 {
574
- /** ID of a site visitor that has not logged in to the site. */
575
- anonymousVisitorId?: string;
576
- /** ID of a site visitor that has logged in to the site. */
577
- memberId?: string;
578
- /** ID of a Wix user (site owner, contributor, etc.). */
579
- wixUserId?: string;
580
- /** ID of an app. */
581
- appId?: string;
582
- }
583
- declare enum WebhookIdentityType$2 {
584
- UNKNOWN = "UNKNOWN",
585
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
586
- MEMBER = "MEMBER",
587
- WIX_USER = "WIX_USER",
588
- APP = "APP"
589
- }
590
- interface GenerateFileUploadUrlResponseNonNullableFields$1 {
591
- uploadUrl: string;
592
- }
593
- interface ImportFileResponseNonNullableFields$1 {
594
- item?: {
595
- _id: string;
596
- mediaType: MediaType$1;
597
- assets?: {
598
- image: string;
599
- video: string;
600
- vector: string;
601
- audio: string;
602
- document: string;
603
- archive?: {
604
- _id: string;
605
- url: string;
606
- };
607
- model3d?: {
608
- _id: string;
609
- url: string;
610
- thumbnail: string;
611
- };
612
- };
613
- publishStatus: PublishStatus;
614
- };
615
- }
616
- interface SearchItemsResponseNonNullableFields {
617
- items: {
618
- _id: string;
619
- mediaType: MediaType$1;
620
- assets?: {
621
- image: string;
622
- video: string;
623
- vector: string;
624
- audio: string;
625
- document: string;
626
- archive?: {
627
- _id: string;
628
- url: string;
629
- };
630
- model3d?: {
631
- _id: string;
632
- url: string;
633
- thumbnail: string;
634
- };
635
- };
636
- publishStatus: PublishStatus;
637
- }[];
638
- }
639
- interface BulkUpdateItemResponseNonNullableFields {
640
- results: {
641
- itemMetadata?: {
642
- originalIndex: number;
643
- success: boolean;
644
- error?: {
645
- code: string;
646
- description: string;
647
- };
648
- };
649
- item?: {
650
- _id: string;
651
- mediaType: MediaType$1;
652
- assets?: {
653
- image: string;
654
- video: string;
655
- vector: string;
656
- audio: string;
657
- document: string;
658
- archive?: {
659
- _id: string;
660
- url: string;
661
- };
662
- model3d?: {
663
- _id: string;
664
- url: string;
665
- thumbnail: string;
666
- };
667
- };
668
- publishStatus: PublishStatus;
669
- };
670
- }[];
671
- bulkActionMetadata?: {
672
- totalSuccesses: number;
673
- totalFailures: number;
674
- undetailedFailures: number;
675
- };
676
- }
677
- interface BaseEventMetadata$2 {
678
- /** App instance ID. */
679
- instanceId?: string | null;
680
- /** Event type. */
681
- eventType?: string;
682
- /** The identification type and identity data. */
683
- identity?: IdentificationData$2;
684
- }
685
- interface EventMetadata$2 extends BaseEventMetadata$2 {
864
+ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
865
+ createdEvent?: EntityCreatedEvent$2;
866
+ updatedEvent?: EntityUpdatedEvent$2;
867
+ deletedEvent?: EntityDeletedEvent$2;
868
+ actionEvent?: ActionEvent$2;
686
869
  /**
687
870
  * Unique event ID.
688
871
  * Allows clients to ignore duplicate webhooks.
@@ -720,15 +903,190 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
720
903
  */
721
904
  entityEventSequence?: string | null;
722
905
  }
723
- interface EnterpriseItemCreatedEnvelope {
724
- entity: EnterpriseMediaItem;
725
- metadata: EventMetadata$2;
906
+ /** @oneof */
907
+ interface DomainEventBodyOneOf$2 {
908
+ createdEvent?: EntityCreatedEvent$2;
909
+ updatedEvent?: EntityUpdatedEvent$2;
910
+ deletedEvent?: EntityDeletedEvent$2;
911
+ actionEvent?: ActionEvent$2;
726
912
  }
727
- interface EnterpriseItemUpdatedEnvelope {
728
- entity: EnterpriseMediaItem;
729
- metadata: EventMetadata$2;
913
+ interface EntityCreatedEvent$2 {
914
+ entity?: string;
730
915
  }
731
- interface EnterpriseItemItemCategoriesChangedEnvelope {
916
+ interface EntityUpdatedEvent$2 {
917
+ /**
918
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
919
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
920
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
921
+ */
922
+ currentEntity?: string;
923
+ }
924
+ interface EntityDeletedEvent$2 {
925
+ /** Entity that was deleted */
926
+ deletedEntity?: string | null;
927
+ }
928
+ interface ActionEvent$2 {
929
+ body?: string;
930
+ }
931
+ interface MessageEnvelope$2 {
932
+ /** App instance ID. */
933
+ instanceId?: string | null;
934
+ /** Event type. */
935
+ eventType?: string;
936
+ /** The identification type and identity data. */
937
+ identity?: IdentificationData$2;
938
+ /** Stringify payload. */
939
+ data?: string;
940
+ }
941
+ interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
942
+ /** ID of a site visitor that has not logged in to the site. */
943
+ anonymousVisitorId?: string;
944
+ /** ID of a site visitor that has logged in to the site. */
945
+ memberId?: string;
946
+ /** ID of a Wix user (site owner, contributor, etc.). */
947
+ wixUserId?: string;
948
+ /** ID of an app. */
949
+ appId?: string;
950
+ /** @readonly */
951
+ identityType?: WebhookIdentityType$2;
952
+ }
953
+ /** @oneof */
954
+ interface IdentificationDataIdOneOf$2 {
955
+ /** ID of a site visitor that has not logged in to the site. */
956
+ anonymousVisitorId?: string;
957
+ /** ID of a site visitor that has logged in to the site. */
958
+ memberId?: string;
959
+ /** ID of a Wix user (site owner, contributor, etc.). */
960
+ wixUserId?: string;
961
+ /** ID of an app. */
962
+ appId?: string;
963
+ }
964
+ declare enum WebhookIdentityType$2 {
965
+ UNKNOWN = "UNKNOWN",
966
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
967
+ MEMBER = "MEMBER",
968
+ WIX_USER = "WIX_USER",
969
+ APP = "APP"
970
+ }
971
+ interface GenerateFileUploadUrlResponseNonNullableFields$1 {
972
+ uploadUrl: string;
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
+ }
998
+ interface ImportFileResponseNonNullableFields$1 {
999
+ item?: EnterpriseMediaItemNonNullableFields;
1000
+ }
1001
+ interface SearchItemsResponseNonNullableFields {
1002
+ items: EnterpriseMediaItemNonNullableFields[];
1003
+ }
1004
+ interface QueryItemsResponseNonNullableFields {
1005
+ items: EnterpriseMediaItemNonNullableFields[];
1006
+ }
1007
+ interface UpdateItemResponseNonNullableFields {
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;
1027
+ }
1028
+ interface BulkUpdateItemResponseNonNullableFields {
1029
+ results: BulkItemUpdateResultNonNullableFields[];
1030
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
1031
+ }
1032
+ interface GetItemResponseNonNullableFields {
1033
+ item?: EnterpriseMediaItemNonNullableFields;
1034
+ }
1035
+ interface BaseEventMetadata$2 {
1036
+ /** App instance ID. */
1037
+ instanceId?: string | null;
1038
+ /** Event type. */
1039
+ eventType?: string;
1040
+ /** The identification type and identity data. */
1041
+ identity?: IdentificationData$2;
1042
+ }
1043
+ interface EventMetadata$2 extends BaseEventMetadata$2 {
1044
+ /**
1045
+ * Unique event ID.
1046
+ * Allows clients to ignore duplicate webhooks.
1047
+ */
1048
+ _id?: string;
1049
+ /**
1050
+ * Assumes actions are also always typed to an entity_type
1051
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1052
+ */
1053
+ entityFqdn?: string;
1054
+ /**
1055
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1056
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1057
+ * Example: created/updated/deleted/started/completed/email_opened
1058
+ */
1059
+ slug?: string;
1060
+ /** ID of the entity associated with the event. */
1061
+ entityId?: string;
1062
+ /** Event timestamp. */
1063
+ eventTime?: Date;
1064
+ /**
1065
+ * Whether the event was triggered as a result of a privacy regulation application
1066
+ * (for example, GDPR).
1067
+ */
1068
+ triggeredByAnonymizeRequest?: boolean | null;
1069
+ /** If present, indicates the action that triggered the event. */
1070
+ originatedFrom?: string | null;
1071
+ /**
1072
+ * A sequence number defining the order of updates to the underlying entity.
1073
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1074
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1075
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1076
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1077
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1078
+ */
1079
+ entityEventSequence?: string | null;
1080
+ }
1081
+ interface EnterpriseItemCreatedEnvelope {
1082
+ entity: EnterpriseMediaItem;
1083
+ metadata: EventMetadata$2;
1084
+ }
1085
+ interface EnterpriseItemUpdatedEnvelope {
1086
+ entity: EnterpriseMediaItem;
1087
+ metadata: EventMetadata$2;
1088
+ }
1089
+ interface EnterpriseItemItemCategoriesChangedEnvelope {
732
1090
  data: ItemCategoriesChanged;
733
1091
  metadata: EventMetadata$2;
734
1092
  }
@@ -903,121 +1261,77 @@ interface OverwriteItemCategoriesOptions {
903
1261
  categoryIds?: string[];
904
1262
  }
905
1263
 
906
- type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
907
- interface HttpClient$2 {
908
- request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
909
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
910
- }
911
- type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
912
- type HttpResponse$2<T = any> = {
913
- data: T;
914
- status: number;
915
- statusText: string;
916
- headers: any;
917
- request?: any;
918
- };
919
- type RequestOptions$2<_TResponse = any, Data = any> = {
920
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
921
- url: string;
922
- data?: Data;
923
- params?: URLSearchParams;
924
- } & APIMetadata$2;
925
- type APIMetadata$2 = {
926
- methodFqn?: string;
927
- entityFqdn?: string;
928
- packageName?: string;
929
- };
930
- type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
931
- type EventDefinition$2<Payload = unknown, Type extends string = string> = {
932
- __type: 'event-definition';
933
- type: Type;
934
- isDomainEvent?: boolean;
935
- transformations?: (envelope: unknown) => Payload;
936
- __payload: Payload;
937
- };
938
- declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
939
- type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
940
- type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
1264
+ declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
941
1265
 
942
- declare global {
943
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
944
- interface SymbolConstructor {
945
- readonly observable: symbol;
946
- }
947
- }
1266
+ declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
948
1267
 
949
- declare function itemUploadCallback$1(httpClient: HttpClient$2): (options?: ItemUploadCallbackOptions) => Promise<void>;
950
- declare function generateFileUploadUrl$3(httpClient: HttpClient$2): (options?: GenerateFileUploadUrlOptions$1) => Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
951
- declare function importFile$3(httpClient: HttpClient$2): (url: string, options?: ImportFileOptions$1) => Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
952
- declare function searchItems$1(httpClient: HttpClient$2): (options?: SearchItemsOptions) => Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
953
- declare function queryItems$1(httpClient: HttpClient$2): () => ItemsQueryBuilder;
954
- declare function updateItem$1(httpClient: HttpClient$2): (_id: string, item: UpdateItem) => Promise<EnterpriseMediaItem & {
955
- _id: string;
956
- mediaType: MediaType$1;
957
- assets?: {
958
- image: string;
959
- video: string;
960
- vector: string;
961
- audio: string;
962
- document: string;
963
- archive?: {
964
- _id: string;
965
- url: string;
966
- } | undefined;
967
- model3d?: {
968
- _id: string;
969
- url: string;
970
- thumbnail: string;
971
- } | undefined;
972
- } | undefined;
973
- publishStatus: PublishStatus;
974
- }>;
975
- declare function bulkUpdateItem$1(httpClient: HttpClient$2): (updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions) => Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
976
- declare function getItem$1(httpClient: HttpClient$2): (itemId: string) => Promise<EnterpriseMediaItem & {
977
- _id: string;
978
- mediaType: MediaType$1;
979
- assets?: {
980
- image: string;
981
- video: string;
982
- vector: string;
983
- audio: string;
984
- document: string;
985
- archive?: {
986
- _id: string;
987
- url: string;
988
- } | undefined;
989
- model3d?: {
990
- _id: string;
991
- url: string;
992
- thumbnail: string;
993
- } | undefined;
994
- } | undefined;
995
- publishStatus: PublishStatus;
996
- }>;
997
- declare function linkItemToCategories$1(httpClient: HttpClient$2): (itemId: string, options?: LinkItemToCategoriesOptions) => Promise<LinkItemToCategoriesResponse>;
998
- declare function unlinkItemFromCategories$1(httpClient: HttpClient$2): (itemId: string, options?: UnlinkItemFromCategoriesOptions) => Promise<UnlinkItemFromCategoriesResponse>;
999
- declare function overwriteItemCategories$1(httpClient: HttpClient$2): (itemId: string, options?: OverwriteItemCategoriesOptions) => Promise<OverwriteItemCategoriesResponse>;
1000
- declare const onEnterpriseItemCreated$1: EventDefinition$2<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
1001
- declare const onEnterpriseItemUpdated$1: EventDefinition$2<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
1002
- declare const onEnterpriseItemItemCategoriesChanged$1: EventDefinition$2<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
1003
- declare const onEnterpriseItemPublishStatusChanged$1: EventDefinition$2<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
1004
-
1005
- declare const itemUploadCallback: BuildRESTFunction$2<typeof itemUploadCallback$1>;
1006
- declare const generateFileUploadUrl$2: BuildRESTFunction$2<typeof generateFileUploadUrl$3>;
1007
- declare const importFile$2: BuildRESTFunction$2<typeof importFile$3>;
1008
- declare const searchItems: BuildRESTFunction$2<typeof searchItems$1>;
1009
- declare const queryItems: BuildRESTFunction$2<typeof queryItems$1>;
1010
- declare const updateItem: BuildRESTFunction$2<typeof updateItem$1>;
1011
- declare const bulkUpdateItem: BuildRESTFunction$2<typeof bulkUpdateItem$1>;
1012
- declare const getItem: BuildRESTFunction$2<typeof getItem$1>;
1013
- declare const linkItemToCategories: BuildRESTFunction$2<typeof linkItemToCategories$1>;
1014
- declare const unlinkItemFromCategories: BuildRESTFunction$2<typeof unlinkItemFromCategories$1>;
1015
- declare const overwriteItemCategories: BuildRESTFunction$2<typeof overwriteItemCategories$1>;
1016
- declare const onEnterpriseItemCreated: BuildEventDefinition$2<typeof onEnterpriseItemCreated$1>;
1017
- declare const onEnterpriseItemUpdated: BuildEventDefinition$2<typeof onEnterpriseItemUpdated$1>;
1018
- declare const onEnterpriseItemItemCategoriesChanged: BuildEventDefinition$2<typeof onEnterpriseItemItemCategoriesChanged$1>;
1019
- declare const onEnterpriseItemPublishStatusChanged: BuildEventDefinition$2<typeof onEnterpriseItemPublishStatusChanged$1>;
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>>;
1020
1283
 
1284
+ type context$2_BulkItemUpdateResult = BulkItemUpdateResult;
1285
+ type context$2_BulkUpdateItemOptions = BulkUpdateItemOptions;
1286
+ type context$2_BulkUpdateItemRequest = BulkUpdateItemRequest;
1287
+ type context$2_BulkUpdateItemResponse = BulkUpdateItemResponse;
1288
+ type context$2_BulkUpdateItemResponseNonNullableFields = BulkUpdateItemResponseNonNullableFields;
1289
+ type context$2_EnterpriseItemCreatedEnvelope = EnterpriseItemCreatedEnvelope;
1290
+ type context$2_EnterpriseItemItemCategoriesChangedEnvelope = EnterpriseItemItemCategoriesChangedEnvelope;
1291
+ type context$2_EnterpriseItemPublishStatusChangedEnvelope = EnterpriseItemPublishStatusChangedEnvelope;
1292
+ type context$2_EnterpriseItemUpdatedEnvelope = EnterpriseItemUpdatedEnvelope;
1293
+ type context$2_EnterpriseMediaItem = EnterpriseMediaItem;
1294
+ type context$2_EnterpriseMediaItemNonNullableFields = EnterpriseMediaItemNonNullableFields;
1295
+ type context$2_GetItemRequest = GetItemRequest;
1296
+ type context$2_GetItemResponse = GetItemResponse;
1297
+ type context$2_GetItemResponseNonNullableFields = GetItemResponseNonNullableFields;
1298
+ type context$2_ItemAssets = ItemAssets;
1299
+ type context$2_ItemAssetsAssetsOneOf = ItemAssetsAssetsOneOf;
1300
+ type context$2_ItemCategoriesChanged = ItemCategoriesChanged;
1301
+ type context$2_ItemUploadCallbackOptions = ItemUploadCallbackOptions;
1302
+ type context$2_ItemUploadCallbackRequest = ItemUploadCallbackRequest;
1303
+ type context$2_ItemUploadCallbackResponse = ItemUploadCallbackResponse;
1304
+ type context$2_ItemsQueryBuilder = ItemsQueryBuilder;
1305
+ type context$2_ItemsQueryResult = ItemsQueryResult;
1306
+ type context$2_LinkItemToCategoriesOptions = LinkItemToCategoriesOptions;
1307
+ type context$2_LinkItemToCategoriesRequest = LinkItemToCategoriesRequest;
1308
+ type context$2_LinkItemToCategoriesResponse = LinkItemToCategoriesResponse;
1309
+ type context$2_OverwriteItemCategoriesOptions = OverwriteItemCategoriesOptions;
1310
+ type context$2_OverwriteItemCategoriesRequest = OverwriteItemCategoriesRequest;
1311
+ type context$2_OverwriteItemCategoriesResponse = OverwriteItemCategoriesResponse;
1312
+ type context$2_Paging = Paging;
1313
+ type context$2_PublishStatus = PublishStatus;
1314
+ declare const context$2_PublishStatus: typeof PublishStatus;
1315
+ type context$2_PublishStatusChanged = PublishStatusChanged;
1316
+ type context$2_QueryItemsRequest = QueryItemsRequest;
1317
+ type context$2_QueryItemsResponse = QueryItemsResponse;
1318
+ type context$2_QueryItemsResponseNonNullableFields = QueryItemsResponseNonNullableFields;
1319
+ type context$2_QueryV2 = QueryV2;
1320
+ type context$2_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
1321
+ type context$2_Search = Search;
1322
+ type context$2_SearchDetails = SearchDetails;
1323
+ type context$2_SearchItemsOptions = SearchItemsOptions;
1324
+ type context$2_SearchItemsRequest = SearchItemsRequest;
1325
+ type context$2_SearchItemsResponse = SearchItemsResponse;
1326
+ type context$2_SearchItemsResponseNonNullableFields = SearchItemsResponseNonNullableFields;
1327
+ type context$2_SearchPagingMethodOneOf = SearchPagingMethodOneOf;
1328
+ type context$2_UnlinkItemFromCategoriesOptions = UnlinkItemFromCategoriesOptions;
1329
+ type context$2_UnlinkItemFromCategoriesRequest = UnlinkItemFromCategoriesRequest;
1330
+ type context$2_UnlinkItemFromCategoriesResponse = UnlinkItemFromCategoriesResponse;
1331
+ type context$2_UpdateItem = UpdateItem;
1332
+ type context$2_UpdateItemRequest = UpdateItemRequest;
1333
+ type context$2_UpdateItemResponse = UpdateItemResponse;
1334
+ type context$2_UpdateItemResponseNonNullableFields = UpdateItemResponseNonNullableFields;
1021
1335
  declare const context$2_bulkUpdateItem: typeof bulkUpdateItem;
1022
1336
  declare const context$2_getItem: typeof getItem;
1023
1337
  declare const context$2_itemUploadCallback: typeof itemUploadCallback;
@@ -1032,7 +1346,7 @@ declare const context$2_searchItems: typeof searchItems;
1032
1346
  declare const context$2_unlinkItemFromCategories: typeof unlinkItemFromCategories;
1033
1347
  declare const context$2_updateItem: typeof updateItem;
1034
1348
  declare namespace context$2 {
1035
- export { context$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$2 as generateFileUploadUrl, context$2_getItem as getItem, importFile$2 as importFile, context$2_itemUploadCallback as itemUploadCallback, context$2_linkItemToCategories as linkItemToCategories, context$2_onEnterpriseItemCreated as onEnterpriseItemCreated, context$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, context$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, context$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, context$2_overwriteItemCategories as overwriteItemCategories, context$2_queryItems as queryItems, context$2_searchItems as searchItems, context$2_unlinkItemFromCategories as unlinkItemFromCategories, context$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 context$2_BulkItemUpdateResult as BulkItemUpdateResult, type context$2_BulkUpdateItemOptions as BulkUpdateItemOptions, type context$2_BulkUpdateItemRequest as BulkUpdateItemRequest, type context$2_BulkUpdateItemResponse as BulkUpdateItemResponse, type context$2_BulkUpdateItemResponseNonNullableFields as BulkUpdateItemResponseNonNullableFields, type Cursors$2 as Cursors, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type context$2_EnterpriseItemCreatedEnvelope as EnterpriseItemCreatedEnvelope, type context$2_EnterpriseItemItemCategoriesChangedEnvelope as EnterpriseItemItemCategoriesChangedEnvelope, type context$2_EnterpriseItemPublishStatusChangedEnvelope as EnterpriseItemPublishStatusChangedEnvelope, type context$2_EnterpriseItemUpdatedEnvelope as EnterpriseItemUpdatedEnvelope, type context$2_EnterpriseMediaItem as EnterpriseMediaItem, type context$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 context$2_GetItemRequest as GetItemRequest, type context$2_GetItemResponse as GetItemResponse, type context$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 context$2_ItemAssets as ItemAssets, type context$2_ItemAssetsAssetsOneOf as ItemAssetsAssetsOneOf, type context$2_ItemCategoriesChanged as ItemCategoriesChanged, type ItemMetadata$1 as ItemMetadata, type context$2_ItemUploadCallbackOptions as ItemUploadCallbackOptions, type context$2_ItemUploadCallbackRequest as ItemUploadCallbackRequest, type context$2_ItemUploadCallbackResponse as ItemUploadCallbackResponse, type context$2_ItemsQueryBuilder as ItemsQueryBuilder, type context$2_ItemsQueryResult as ItemsQueryResult, type context$2_LinkItemToCategoriesOptions as LinkItemToCategoriesOptions, type context$2_LinkItemToCategoriesRequest as LinkItemToCategoriesRequest, type context$2_LinkItemToCategoriesResponse as LinkItemToCategoriesResponse, MediaType$1 as MediaType, type MessageEnvelope$2 as MessageEnvelope, type Model3D$1 as Model3D, type context$2_OverwriteItemCategoriesOptions as OverwriteItemCategoriesOptions, type context$2_OverwriteItemCategoriesRequest as OverwriteItemCategoriesRequest, type context$2_OverwriteItemCategoriesResponse as OverwriteItemCategoriesResponse, type context$2_Paging as Paging, type PagingMetadataV2$2 as PagingMetadataV2, context$2_PublishStatus as PublishStatus, type context$2_PublishStatusChanged as PublishStatusChanged, type context$2_QueryItemsRequest as QueryItemsRequest, type context$2_QueryItemsResponse as QueryItemsResponse, type context$2_QueryItemsResponseNonNullableFields as QueryItemsResponseNonNullableFields, type context$2_QueryV2 as QueryV2, type context$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context$2_Search as Search, type context$2_SearchDetails as SearchDetails, type context$2_SearchItemsOptions as SearchItemsOptions, type context$2_SearchItemsRequest as SearchItemsRequest, type context$2_SearchItemsResponse as SearchItemsResponse, type context$2_SearchItemsResponseNonNullableFields as SearchItemsResponseNonNullableFields, type context$2_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type context$2_UnlinkItemFromCategoriesOptions as UnlinkItemFromCategoriesOptions, type context$2_UnlinkItemFromCategoriesRequest as UnlinkItemFromCategoriesRequest, type context$2_UnlinkItemFromCategoriesResponse as UnlinkItemFromCategoriesResponse, type context$2_UpdateItem as UpdateItem, type context$2_UpdateItemRequest as UpdateItemRequest, type context$2_UpdateItemResponse as UpdateItemResponse, type context$2_UpdateItemResponseNonNullableFields as UpdateItemResponseNonNullableFields, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, context$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$1 as generateFileUploadUrl, context$2_getItem as getItem, importFile$1 as importFile, context$2_itemUploadCallback as itemUploadCallback, context$2_linkItemToCategories as linkItemToCategories, context$2_onEnterpriseItemCreated as onEnterpriseItemCreated, context$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, context$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, context$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, context$2_overwriteItemCategories as overwriteItemCategories, context$2_queryItems as queryItems, context$2_searchItems as searchItems, context$2_unlinkItemFromCategories as unlinkItemFromCategories, context$2_updateItem as updateItem };
1036
1350
  }
1037
1351
 
1038
1352
  interface FileDescriptor {
@@ -1230,6 +1544,20 @@ interface FaceRecognition {
1230
1544
  /** Face pixel width. */
1231
1545
  width?: number;
1232
1546
  }
1547
+ interface VideoResolution {
1548
+ /** Video URL. */
1549
+ url?: string;
1550
+ /** Video height. */
1551
+ height?: number;
1552
+ /** Video width. */
1553
+ width?: number;
1554
+ /**
1555
+ * Video format
1556
+ * Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
1557
+ * '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]
1558
+ */
1559
+ format?: string;
1560
+ }
1233
1561
  interface AudioV2 {
1234
1562
  /** WixMedia ID. */
1235
1563
  _id?: string;
@@ -1296,6 +1624,20 @@ interface Model3D {
1296
1624
  */
1297
1625
  sizeInBytes?: string | null;
1298
1626
  }
1627
+ interface OtherMedia {
1628
+ /** WixMedia ID. for use with Site Media APIs only */
1629
+ _id?: string;
1630
+ /**
1631
+ * The media type of the file: 'site_icon', 'swf', 'package', 'ufont'
1632
+ * @readonly
1633
+ */
1634
+ internalMediaType?: string | null;
1635
+ /**
1636
+ * size in bytes. Optional.
1637
+ * @readonly
1638
+ */
1639
+ sizeInBytes?: string | null;
1640
+ }
1299
1641
  declare enum OperationStatus {
1300
1642
  /** File upload or processing failed */
1301
1643
  FAILED = "FAILED",
@@ -1310,6 +1652,45 @@ declare enum State$1 {
1310
1652
  /** Deleted file */
1311
1653
  DELETED = "DELETED"
1312
1654
  }
1655
+ declare enum Namespace$1 {
1656
+ NO_NAMESPACE = "NO_NAMESPACE",
1657
+ OTHERS = "OTHERS",
1658
+ /** ANY = 2; */
1659
+ WIX_VIDEO = "WIX_VIDEO",
1660
+ /** _nsWixMusic */
1661
+ WIX_MUSIC = "WIX_MUSIC",
1662
+ /** _nsArtStore */
1663
+ ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
1664
+ /** _nsDigitalProduct */
1665
+ WIX_ECOM = "WIX_ECOM",
1666
+ /** _nsPhotoShareApp */
1667
+ PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
1668
+ /** _nsSharingApp, */
1669
+ SHARING_APP = "SHARING_APP",
1670
+ /** engage */
1671
+ CHAT = "CHAT",
1672
+ /** logobuilder */
1673
+ LOGO_BUILDER = "LOGO_BUILDER",
1674
+ /** WixExposure */
1675
+ ALBUMS_OLD = "ALBUMS_OLD",
1676
+ /** chat-mobile-uploads */
1677
+ CHAT_MOBILE = "CHAT_MOBILE",
1678
+ /** _nsWixForms */
1679
+ WIX_FORMS = "WIX_FORMS"
1680
+ }
1681
+ interface IdentityInfo {
1682
+ /** The type of the user that uploaded the file */
1683
+ identityType?: IdentityType;
1684
+ /** User Id. empty when UNKNOWN */
1685
+ identityId?: string | null;
1686
+ }
1687
+ declare enum IdentityType {
1688
+ UNKNOWN = "UNKNOWN",
1689
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1690
+ MEMBER = "MEMBER",
1691
+ WIX_USER = "WIX_USER",
1692
+ APP = "APP"
1693
+ }
1313
1694
  interface FileReady {
1314
1695
  /** File entity that is ready with full information */
1315
1696
  file?: FileDescriptor;
@@ -1328,10 +1709,59 @@ interface FileFailed {
1328
1709
  /** External information passed in the file import or upload. */
1329
1710
  externalInfo?: ExternalInfo;
1330
1711
  }
1712
+ interface GenerateFilesDownloadUrlRequest {
1713
+ /**
1714
+ * IDs of the files to download.
1715
+ *
1716
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1717
+ * Learn more in the File and Folder IDs article.
1718
+ */
1719
+ fileIds: string[];
1720
+ }
1331
1721
  interface GenerateFilesDownloadUrlResponse {
1332
1722
  /** URL for downloading the compressed file containing the specified files in the Media Manager. */
1333
1723
  downloadUrl?: string;
1334
1724
  }
1725
+ interface GenerateFileDownloadUrlRequest {
1726
+ /**
1727
+ * File ID.
1728
+ *
1729
+ * You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1730
+ * Learn more in the File and Folder IDs article.
1731
+ */
1732
+ fileId: string;
1733
+ /**
1734
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
1735
+ *
1736
+ * **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
1737
+ */
1738
+ downloadFileName?: string | null;
1739
+ /**
1740
+ * The time that it takes in minutes for the download URL to expire. <br />
1741
+ * Default: `600`. <br />
1742
+ * Limit: `525600` (1 year).
1743
+ */
1744
+ expirationInMinutes?: number | null;
1745
+ /**
1746
+ * The redirect URL for when the temporary download URL with a token expires. <br />
1747
+ * Default: A 403 Forbidden response page.
1748
+ */
1749
+ expirationRedirectUrl?: string | null;
1750
+ /**
1751
+ * Keys for downloading different assets (format and quality) of a file.
1752
+ * Default: `src`, key representing the original file's format and quality.
1753
+ */
1754
+ assetKeys?: string[] | null;
1755
+ /**
1756
+ * Whether the link downloads the file or opens the file in the browser.
1757
+ *
1758
+ * - `ATTACHMENT`: The link downloads the file.
1759
+ * - `INLINE`: The link opens the file in the browser.
1760
+ *
1761
+ * Default: `ATTACHMENT`
1762
+ */
1763
+ contentDisposition?: ContentDisposition;
1764
+ }
1335
1765
  declare enum ContentDisposition {
1336
1766
  /** Using the link in the browser will download the file */
1337
1767
  ATTACHMENT = "ATTACHMENT",
@@ -1351,14 +1781,110 @@ interface DownloadUrl {
1351
1781
  */
1352
1782
  assetKey?: string;
1353
1783
  }
1784
+ interface GetFileDescriptorRequest {
1785
+ /**
1786
+ * File ID.
1787
+ *
1788
+ * You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1789
+ * Learn more in the File and Folder IDs article.
1790
+ */
1791
+ fileId: string;
1792
+ }
1793
+ interface GetFileDescriptorResponse {
1794
+ /** Information about the file. */
1795
+ file?: FileDescriptor;
1796
+ }
1797
+ interface GetFileDescriptorsRequest {
1798
+ /**
1799
+ * File IDs.
1800
+ *
1801
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1802
+ * Learn more in the File and Folder IDs article.
1803
+ */
1804
+ fileIds: string[];
1805
+ }
1354
1806
  interface GetFileDescriptorsResponse {
1355
1807
  /** Information about the requested files. */
1356
1808
  files?: FileDescriptor[];
1357
1809
  }
1810
+ interface UpdateFileDescriptorRequest {
1811
+ /** The file to update. */
1812
+ file: FileDescriptor;
1813
+ }
1814
+ interface UpdateFileDescriptorResponse {
1815
+ /** Information about the updated file. */
1816
+ file?: FileDescriptor;
1817
+ }
1818
+ interface GenerateFileUploadUrlRequest {
1819
+ /** File mime type. */
1820
+ mimeType: string | null;
1821
+ /**
1822
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
1823
+ * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
1824
+ */
1825
+ fileName?: string | null;
1826
+ /**
1827
+ * File size in bytes.
1828
+ * @readonly
1829
+ */
1830
+ sizeInBytes?: string | null;
1831
+ /**
1832
+ * ID of the file's parent folder. <br />
1833
+ * This folder is the path root for the `filePath`.<br />
1834
+ * Default: `media-root`.
1835
+ */
1836
+ parentFolderId?: string | null;
1837
+ /** Whether the link to the uploaded file is public or private. See `Private Files` in terminology. */
1838
+ private?: boolean | null;
1839
+ /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
1840
+ labels?: string[] | null;
1841
+ /** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
1842
+ externalInfo?: ExternalInfo;
1843
+ /**
1844
+ * Path to the folder where the file will be stored.
1845
+ * For example, `/videos/2024/december`. <br/>
1846
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
1847
+ * The folders in the path will be created if they don't already exist. <br />
1848
+ */
1849
+ filePath?: string | null;
1850
+ }
1358
1851
  interface GenerateFileUploadUrlResponse {
1359
1852
  /** The URL for uploading a file to the Media Manager. */
1360
1853
  uploadUrl?: string;
1361
1854
  }
1855
+ interface GenerateFileResumableUploadUrlRequest {
1856
+ /** File mime type. */
1857
+ mimeType: string | null;
1858
+ /**
1859
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
1860
+ * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
1861
+ */
1862
+ fileName?: string | null;
1863
+ /**
1864
+ * File size in bytes.
1865
+ * @readonly
1866
+ */
1867
+ sizeInBytes?: string | null;
1868
+ /**
1869
+ * ID of the file's parent folder. <br />
1870
+ * This folder is the path root for the `filePath`.<br />
1871
+ * Default: `media-root`.
1872
+ */
1873
+ parentFolderId?: string | null;
1874
+ /** Whether the link to the imported file is public or private. See `Private Files` in terminology. */
1875
+ private?: boolean | null;
1876
+ /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
1877
+ labels?: string[] | null;
1878
+ /** The upload protocol to use for implementing the resumable upload. */
1879
+ uploadProtocol?: UploadProtocol;
1880
+ /**
1881
+ * Path to the folder where the file will be stored.
1882
+ * For example, `/videos/2024/december`. <br/>
1883
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
1884
+ * The folders in the path will be created if they don't already exist. <br />
1885
+ */
1886
+ filePath?: string | null;
1887
+ }
1362
1888
  declare enum UploadProtocol {
1363
1889
  /** The upload protocol to use for implementing the resumable upload. */
1364
1890
  TUS = "TUS"
@@ -1412,10 +1938,24 @@ interface ImportFileResponse {
1412
1938
  /** Information about the imported file. */
1413
1939
  file?: FileDescriptor;
1414
1940
  }
1941
+ interface BulkImportFilesRequest {
1942
+ /** Information about the files to import. */
1943
+ importFileRequests: ImportFileRequest[];
1944
+ }
1415
1945
  interface BulkImportFilesResponse {
1416
1946
  /** Information about the imported files. */
1417
1947
  files?: FileDescriptor[];
1418
1948
  }
1949
+ interface BulkImportFileRequest {
1950
+ /** Information about the files to import. */
1951
+ importFileRequests: ImportFileRequest[];
1952
+ /**
1953
+ * Whether to include the imported File Descriptor in the response. Set to `false` to exclude the File Descriptor from the returned object.
1954
+ *
1955
+ * Default: `true`
1956
+ */
1957
+ returnEntity?: boolean | null;
1958
+ }
1419
1959
  interface BulkImportFileResponse {
1420
1960
  /** Items created by bulk action. */
1421
1961
  results?: BulkImportFileResult[];
@@ -1454,6 +1994,32 @@ interface BulkActionMetadata {
1454
1994
  /** Number of failures without details because detailed failure threshold was exceeded. */
1455
1995
  undetailedFailures?: number;
1456
1996
  }
1997
+ interface ListFilesRequest {
1998
+ /**
1999
+ * ID of the file's parent folder. <br />
2000
+ * Default:`media-root`.
2001
+ */
2002
+ parentFolderId?: string | null;
2003
+ /**
2004
+ * File media type.
2005
+ * excluding: OTHER media type
2006
+ */
2007
+ mediaTypes?: MediaType[];
2008
+ /** Whether the link to the imported file is public or private. */
2009
+ private?: boolean | null;
2010
+ /**
2011
+ * Field name and order to sort by. One of:
2012
+ *
2013
+ * - `displayName`
2014
+ * - `_updatedDate`
2015
+ * - `sizeInBytes`
2016
+ *
2017
+ * Default: `_updatedDate` in `"DESC"` order.
2018
+ */
2019
+ sort?: Sorting$1;
2020
+ /** Cursor and paging information. */
2021
+ paging?: CursorPaging$1;
2022
+ }
1457
2023
  interface Sorting$1 {
1458
2024
  /** Name of the field to sort by. */
1459
2025
  fieldName?: string;
@@ -1491,6 +2057,38 @@ interface Cursors$1 {
1491
2057
  /** Cursor string pointing to the next page in the list of results. */
1492
2058
  next?: string | null;
1493
2059
  }
2060
+ interface SearchFilesRequest {
2061
+ /**
2062
+ * Term to search for. Possible terms include the value of a file's
2063
+ * `displayName`, `mimeType`, and `label`. <br />
2064
+ * For example, if a file's label is cat, the search term is 'cat'.
2065
+ */
2066
+ search?: string | null;
2067
+ /**
2068
+ * A root folder in the media manager to search in. <br />
2069
+ * Default: `MEDIA_ROOT`.
2070
+ */
2071
+ rootFolder?: RootFolder$1;
2072
+ /**
2073
+ * File media type.
2074
+ * excluding: OTHER media type
2075
+ */
2076
+ mediaTypes?: MediaType[];
2077
+ /** Whether the link to the imported file is public or private. */
2078
+ private?: boolean | null;
2079
+ /**
2080
+ * Field name and order to sort by. One of:
2081
+ *
2082
+ * - `displayName`
2083
+ * - `_updatedDate`
2084
+ * - `sizeInBytes`
2085
+ *
2086
+ * Default: `_updatedDate` in `"DESC"` order.
2087
+ */
2088
+ sort?: Sorting$1;
2089
+ /** Cursor and paging information. */
2090
+ paging?: CursorPaging$1;
2091
+ }
1494
2092
  declare enum RootFolder$1 {
1495
2093
  /** Root of all site media */
1496
2094
  MEDIA_ROOT = "MEDIA_ROOT",
@@ -1505,6 +2103,17 @@ interface SearchFilesResponse {
1505
2103
  /** The next cursor if it exists. */
1506
2104
  nextCursor?: PagingMetadataV2$1;
1507
2105
  }
2106
+ interface GenerateVideoStreamingUrlRequest {
2107
+ /**
2108
+ * File ID.
2109
+ *
2110
+ * You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2111
+ * Learn more in the File and Folder IDs article.
2112
+ */
2113
+ fileId: string;
2114
+ /** Video stream format. */
2115
+ format?: StreamFormat;
2116
+ }
1508
2117
  declare enum StreamFormat {
1509
2118
  UNKNOWN = "UNKNOWN",
1510
2119
  HLS = "HLS",
@@ -1514,12 +2123,173 @@ interface GenerateVideoStreamingUrlResponse {
1514
2123
  /** URL for streaming a specific file in the Media Manager. */
1515
2124
  downloadUrl?: DownloadUrl;
1516
2125
  }
2126
+ interface GenerateWebSocketTokenRequest {
2127
+ }
2128
+ interface GenerateWebSocketTokenResponse {
2129
+ /** The web socket token for the identity in the request */
2130
+ token?: string;
2131
+ }
2132
+ interface BulkDeleteFilesRequest {
2133
+ /**
2134
+ * IDs of the files to move to the Media Manager's trash bin.
2135
+ *
2136
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2137
+ * Learn more in the File and Folder IDs article.
2138
+ */
2139
+ fileIds: string[];
2140
+ /**
2141
+ * Whether the specified files are permanently deleted. <br />
2142
+ * Default: `false`
2143
+ */
2144
+ permanent?: boolean;
2145
+ }
2146
+ interface BulkDeleteFilesResponse {
2147
+ }
2148
+ interface BulkRestoreFilesFromTrashBinRequest {
2149
+ /**
2150
+ * IDs of the files to restore from the Media Manager's trash bin.
2151
+ *
2152
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2153
+ * Learn more in the File and Folder IDs article.
2154
+ */
2155
+ fileIds: string[];
2156
+ }
2157
+ interface BulkRestoreFilesFromTrashBinResponse {
2158
+ }
2159
+ interface ListDeletedFilesRequest {
2160
+ /**
2161
+ * ID of the file's parent folder. <br />
2162
+ * Default: `media-root`.
2163
+ */
2164
+ parentFolderId?: string | null;
2165
+ /**
2166
+ * File media type.
2167
+ * excluding: OTHER media type
2168
+ */
2169
+ mediaTypes?: MediaType[];
2170
+ /** Whether the link to the imported file is public or private. */
2171
+ private?: boolean | null;
2172
+ /**
2173
+ * Field name and order to sort by. One of:
2174
+ *
2175
+ * - `displayName`
2176
+ * - `_updatedDate`
2177
+ * - `sizeInBytes`
2178
+ *
2179
+ * Default: `_updatedDate` in `"DESC"` order.
2180
+ */
2181
+ sort?: Sorting$1;
2182
+ /** Cursor and paging information. */
2183
+ paging?: CursorPaging$1;
2184
+ }
1517
2185
  interface ListDeletedFilesResponse {
1518
2186
  /** List of files in the Media Manager's trash bin. */
1519
2187
  files?: FileDescriptor[];
1520
2188
  /** The next cursor if it exists. */
1521
2189
  nextCursor?: PagingMetadataV2$1;
1522
2190
  }
2191
+ interface UpdateFileRequest {
2192
+ /**
2193
+ * ID of the file to update.
2194
+ *
2195
+ * You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2196
+ * Learn more in the File and Folder IDs article.
2197
+ */
2198
+ fileId?: string;
2199
+ /** File name that appears in the Media Manager. */
2200
+ displayName?: string | null;
2201
+ /**
2202
+ * ID of the file's parent folder. <br />
2203
+ * Default: `media-root`.
2204
+ */
2205
+ parentFolderId?: string | null;
2206
+ /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
2207
+ labels?: string[] | null;
2208
+ }
2209
+ interface UpdateFileResponse {
2210
+ /** Information about the updated file. */
2211
+ file?: FileDescriptor;
2212
+ }
2213
+ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
2214
+ createdEvent?: EntityCreatedEvent$1;
2215
+ updatedEvent?: EntityUpdatedEvent$1;
2216
+ deletedEvent?: EntityDeletedEvent$1;
2217
+ actionEvent?: ActionEvent$1;
2218
+ /**
2219
+ * Unique event ID.
2220
+ * Allows clients to ignore duplicate webhooks.
2221
+ */
2222
+ _id?: string;
2223
+ /**
2224
+ * Assumes actions are also always typed to an entity_type
2225
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2226
+ */
2227
+ entityFqdn?: string;
2228
+ /**
2229
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2230
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2231
+ * Example: created/updated/deleted/started/completed/email_opened
2232
+ */
2233
+ slug?: string;
2234
+ /** ID of the entity associated with the event. */
2235
+ entityId?: string;
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 */
2237
+ eventTime?: Date;
2238
+ /**
2239
+ * Whether the event was triggered as a result of a privacy regulation application
2240
+ * (for example, GDPR).
2241
+ */
2242
+ triggeredByAnonymizeRequest?: boolean | null;
2243
+ /** If present, indicates the action that triggered the event. */
2244
+ originatedFrom?: string | null;
2245
+ /**
2246
+ * A sequence number defining the order of updates to the underlying entity.
2247
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2248
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2249
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2250
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2251
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2252
+ */
2253
+ entityEventSequence?: string | null;
2254
+ }
2255
+ /** @oneof */
2256
+ interface DomainEventBodyOneOf$1 {
2257
+ createdEvent?: EntityCreatedEvent$1;
2258
+ updatedEvent?: EntityUpdatedEvent$1;
2259
+ deletedEvent?: EntityDeletedEvent$1;
2260
+ actionEvent?: ActionEvent$1;
2261
+ }
2262
+ interface EntityCreatedEvent$1 {
2263
+ entity?: string;
2264
+ }
2265
+ interface RestoreInfo$1 {
2266
+ deletedDate?: Date;
2267
+ }
2268
+ interface EntityUpdatedEvent$1 {
2269
+ /**
2270
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2271
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2272
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2273
+ */
2274
+ currentEntity?: string;
2275
+ }
2276
+ interface EntityDeletedEvent$1 {
2277
+ /** Entity that was deleted */
2278
+ deletedEntity?: string | null;
2279
+ }
2280
+ interface ActionEvent$1 {
2281
+ body?: string;
2282
+ }
2283
+ interface MessageEnvelope$1 {
2284
+ /** App instance ID. */
2285
+ instanceId?: string | null;
2286
+ /** Event type. */
2287
+ eventType?: string;
2288
+ /** The identification type and identity data. */
2289
+ identity?: IdentificationData$1;
2290
+ /** Stringify payload. */
2291
+ data?: string;
2292
+ }
1523
2293
  interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
1524
2294
  /** ID of a site visitor that has not logged in to the site. */
1525
2295
  anonymousVisitorId?: string;
@@ -1543,80 +2313,88 @@ interface IdentificationDataIdOneOf$1 {
1543
2313
  /** ID of an app. */
1544
2314
  appId?: string;
1545
2315
  }
1546
- declare enum WebhookIdentityType$1 {
1547
- UNKNOWN = "UNKNOWN",
1548
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1549
- MEMBER = "MEMBER",
1550
- WIX_USER = "WIX_USER",
1551
- APP = "APP"
2316
+ declare enum WebhookIdentityType$1 {
2317
+ UNKNOWN = "UNKNOWN",
2318
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2319
+ MEMBER = "MEMBER",
2320
+ WIX_USER = "WIX_USER",
2321
+ APP = "APP"
2322
+ }
2323
+ interface GenerateFilesDownloadUrlResponseNonNullableFields {
2324
+ downloadUrl: string;
2325
+ }
2326
+ interface DownloadUrlNonNullableFields {
2327
+ url: string;
2328
+ assetKey: string;
2329
+ }
2330
+ interface GenerateFileDownloadUrlResponseNonNullableFields {
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;
1552
2357
  }
1553
- interface GenerateFilesDownloadUrlResponseNonNullableFields {
1554
- downloadUrl: string;
2358
+ interface OtherMediaNonNullableFields {
2359
+ _id: string;
1555
2360
  }
1556
- interface GenerateFileDownloadUrlResponseNonNullableFields {
1557
- downloadUrls: {
1558
- url: string;
1559
- assetKey: string;
1560
- }[];
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;
2389
+ }
2390
+ interface GetFileDescriptorResponseNonNullableFields {
2391
+ file?: FileDescriptorNonNullableFields;
1561
2392
  }
1562
2393
  interface GetFileDescriptorsResponseNonNullableFields {
1563
- files: {
1564
- _id: string;
1565
- displayName: string;
1566
- url: string;
1567
- hash: string;
1568
- private: boolean;
1569
- mediaType: MediaType;
1570
- media?: {
1571
- image?: {
1572
- image: string;
1573
- colors?: {
1574
- palette: Color[];
1575
- };
1576
- faces: {
1577
- confidence: number;
1578
- x: number;
1579
- y: number;
1580
- height: number;
1581
- width: number;
1582
- }[];
1583
- previewImage: string;
1584
- };
1585
- video: string;
1586
- audio?: {
1587
- _id: string;
1588
- assets: string;
1589
- };
1590
- document: string;
1591
- vector?: {
1592
- image: string;
1593
- colors?: {
1594
- palette: Color[];
1595
- };
1596
- faces: {
1597
- confidence: number;
1598
- x: number;
1599
- y: number;
1600
- height: number;
1601
- width: number;
1602
- }[];
1603
- previewImage: string;
1604
- };
1605
- archive?: {
1606
- _id: string;
1607
- url: string;
1608
- };
1609
- model3d?: {
1610
- _id: string;
1611
- url: string;
1612
- thumbnail: string;
1613
- };
1614
- };
1615
- operationStatus: OperationStatus;
1616
- labels: string[];
1617
- siteId: string;
1618
- state: State$1;
1619
- }[];
2394
+ files: FileDescriptorNonNullableFields[];
2395
+ }
2396
+ interface UpdateFileDescriptorResponseNonNullableFields {
2397
+ file?: FileDescriptorNonNullableFields;
1620
2398
  }
1621
2399
  interface GenerateFileUploadUrlResponseNonNullableFields {
1622
2400
  uploadUrl: string;
@@ -1627,379 +2405,44 @@ interface GenerateFileResumableUploadUrlResponseNonNullableFields {
1627
2405
  uploadToken: string;
1628
2406
  }
1629
2407
  interface ImportFileResponseNonNullableFields {
1630
- file?: {
1631
- _id: string;
1632
- displayName: string;
1633
- url: string;
1634
- hash: string;
1635
- private: boolean;
1636
- mediaType: MediaType;
1637
- media?: {
1638
- image?: {
1639
- image: string;
1640
- colors?: {
1641
- palette: Color[];
1642
- };
1643
- faces: {
1644
- confidence: number;
1645
- x: number;
1646
- y: number;
1647
- height: number;
1648
- width: number;
1649
- }[];
1650
- previewImage: string;
1651
- };
1652
- video: string;
1653
- audio?: {
1654
- _id: string;
1655
- assets: string;
1656
- };
1657
- document: string;
1658
- vector?: {
1659
- image: string;
1660
- colors?: {
1661
- palette: Color[];
1662
- };
1663
- faces: {
1664
- confidence: number;
1665
- x: number;
1666
- y: number;
1667
- height: number;
1668
- width: number;
1669
- }[];
1670
- previewImage: string;
1671
- };
1672
- archive?: {
1673
- _id: string;
1674
- url: string;
1675
- };
1676
- model3d?: {
1677
- _id: string;
1678
- url: string;
1679
- thumbnail: string;
1680
- };
1681
- };
1682
- operationStatus: OperationStatus;
1683
- labels: string[];
1684
- siteId: string;
1685
- state: State$1;
1686
- };
2408
+ file?: FileDescriptorNonNullableFields;
1687
2409
  }
1688
2410
  interface BulkImportFilesResponseNonNullableFields {
1689
- files: {
1690
- _id: string;
1691
- displayName: string;
1692
- url: string;
1693
- hash: string;
1694
- private: boolean;
1695
- mediaType: MediaType;
1696
- media?: {
1697
- image?: {
1698
- image: string;
1699
- colors?: {
1700
- palette: Color[];
1701
- };
1702
- faces: {
1703
- confidence: number;
1704
- x: number;
1705
- y: number;
1706
- height: number;
1707
- width: number;
1708
- }[];
1709
- previewImage: string;
1710
- };
1711
- video: string;
1712
- audio?: {
1713
- _id: string;
1714
- assets: string;
1715
- };
1716
- document: string;
1717
- vector?: {
1718
- image: string;
1719
- colors?: {
1720
- palette: Color[];
1721
- };
1722
- faces: {
1723
- confidence: number;
1724
- x: number;
1725
- y: number;
1726
- height: number;
1727
- width: number;
1728
- }[];
1729
- previewImage: string;
1730
- };
1731
- archive?: {
1732
- _id: string;
1733
- url: string;
1734
- };
1735
- model3d?: {
1736
- _id: string;
1737
- url: string;
1738
- thumbnail: string;
1739
- };
1740
- };
1741
- operationStatus: OperationStatus;
1742
- labels: string[];
1743
- siteId: string;
1744
- state: State$1;
1745
- }[];
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;
1746
2430
  }
1747
2431
  interface BulkImportFileResponseNonNullableFields {
1748
- results: {
1749
- itemMetadata?: {
1750
- originalIndex: number;
1751
- success: boolean;
1752
- error?: {
1753
- code: string;
1754
- description: string;
1755
- };
1756
- };
1757
- item?: {
1758
- _id: string;
1759
- displayName: string;
1760
- url: string;
1761
- hash: string;
1762
- private: boolean;
1763
- mediaType: MediaType;
1764
- media?: {
1765
- image?: {
1766
- image: string;
1767
- colors?: {
1768
- palette: Color[];
1769
- };
1770
- faces: {
1771
- confidence: number;
1772
- x: number;
1773
- y: number;
1774
- height: number;
1775
- width: number;
1776
- }[];
1777
- previewImage: string;
1778
- };
1779
- video: string;
1780
- audio?: {
1781
- _id: string;
1782
- assets: string;
1783
- };
1784
- document: string;
1785
- vector?: {
1786
- image: string;
1787
- colors?: {
1788
- palette: Color[];
1789
- };
1790
- faces: {
1791
- confidence: number;
1792
- x: number;
1793
- y: number;
1794
- height: number;
1795
- width: number;
1796
- }[];
1797
- previewImage: string;
1798
- };
1799
- archive?: {
1800
- _id: string;
1801
- url: string;
1802
- };
1803
- model3d?: {
1804
- _id: string;
1805
- url: string;
1806
- thumbnail: string;
1807
- };
1808
- };
1809
- operationStatus: OperationStatus;
1810
- labels: string[];
1811
- siteId: string;
1812
- state: State$1;
1813
- };
1814
- }[];
1815
- bulkActionMetadata?: {
1816
- totalSuccesses: number;
1817
- totalFailures: number;
1818
- undetailedFailures: number;
1819
- };
2432
+ results: BulkImportFileResultNonNullableFields[];
2433
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1820
2434
  }
1821
2435
  interface ListFilesResponseNonNullableFields {
1822
- files: {
1823
- _id: string;
1824
- displayName: string;
1825
- url: string;
1826
- hash: string;
1827
- private: boolean;
1828
- mediaType: MediaType;
1829
- media?: {
1830
- image?: {
1831
- image: string;
1832
- colors?: {
1833
- palette: Color[];
1834
- };
1835
- faces: {
1836
- confidence: number;
1837
- x: number;
1838
- y: number;
1839
- height: number;
1840
- width: number;
1841
- }[];
1842
- previewImage: string;
1843
- };
1844
- video: string;
1845
- audio?: {
1846
- _id: string;
1847
- assets: string;
1848
- };
1849
- document: string;
1850
- vector?: {
1851
- image: string;
1852
- colors?: {
1853
- palette: Color[];
1854
- };
1855
- faces: {
1856
- confidence: number;
1857
- x: number;
1858
- y: number;
1859
- height: number;
1860
- width: number;
1861
- }[];
1862
- previewImage: string;
1863
- };
1864
- archive?: {
1865
- _id: string;
1866
- url: string;
1867
- };
1868
- model3d?: {
1869
- _id: string;
1870
- url: string;
1871
- thumbnail: string;
1872
- };
1873
- };
1874
- operationStatus: OperationStatus;
1875
- labels: string[];
1876
- siteId: string;
1877
- state: State$1;
1878
- }[];
2436
+ files: FileDescriptorNonNullableFields[];
1879
2437
  }
1880
2438
  interface SearchFilesResponseNonNullableFields {
1881
- files: {
1882
- _id: string;
1883
- displayName: string;
1884
- url: string;
1885
- hash: string;
1886
- private: boolean;
1887
- mediaType: MediaType;
1888
- media?: {
1889
- image?: {
1890
- image: string;
1891
- colors?: {
1892
- palette: Color[];
1893
- };
1894
- faces: {
1895
- confidence: number;
1896
- x: number;
1897
- y: number;
1898
- height: number;
1899
- width: number;
1900
- }[];
1901
- previewImage: string;
1902
- };
1903
- video: string;
1904
- audio?: {
1905
- _id: string;
1906
- assets: string;
1907
- };
1908
- document: string;
1909
- vector?: {
1910
- image: string;
1911
- colors?: {
1912
- palette: Color[];
1913
- };
1914
- faces: {
1915
- confidence: number;
1916
- x: number;
1917
- y: number;
1918
- height: number;
1919
- width: number;
1920
- }[];
1921
- previewImage: string;
1922
- };
1923
- archive?: {
1924
- _id: string;
1925
- url: string;
1926
- };
1927
- model3d?: {
1928
- _id: string;
1929
- url: string;
1930
- thumbnail: string;
1931
- };
1932
- };
1933
- operationStatus: OperationStatus;
1934
- labels: string[];
1935
- siteId: string;
1936
- state: State$1;
1937
- }[];
2439
+ files: FileDescriptorNonNullableFields[];
1938
2440
  }
1939
2441
  interface GenerateVideoStreamingUrlResponseNonNullableFields {
1940
- downloadUrl?: {
1941
- url: string;
1942
- assetKey: string;
1943
- };
2442
+ downloadUrl?: DownloadUrlNonNullableFields;
1944
2443
  }
1945
2444
  interface ListDeletedFilesResponseNonNullableFields {
1946
- files: {
1947
- _id: string;
1948
- displayName: string;
1949
- url: string;
1950
- hash: string;
1951
- private: boolean;
1952
- mediaType: MediaType;
1953
- media?: {
1954
- image?: {
1955
- image: string;
1956
- colors?: {
1957
- palette: Color[];
1958
- };
1959
- faces: {
1960
- confidence: number;
1961
- x: number;
1962
- y: number;
1963
- height: number;
1964
- width: number;
1965
- }[];
1966
- previewImage: string;
1967
- };
1968
- video: string;
1969
- audio?: {
1970
- _id: string;
1971
- assets: string;
1972
- };
1973
- document: string;
1974
- vector?: {
1975
- image: string;
1976
- colors?: {
1977
- palette: Color[];
1978
- };
1979
- faces: {
1980
- confidence: number;
1981
- x: number;
1982
- y: number;
1983
- height: number;
1984
- width: number;
1985
- }[];
1986
- previewImage: string;
1987
- };
1988
- archive?: {
1989
- _id: string;
1990
- url: string;
1991
- };
1992
- model3d?: {
1993
- _id: string;
1994
- url: string;
1995
- thumbnail: string;
1996
- };
1997
- };
1998
- operationStatus: OperationStatus;
1999
- labels: string[];
2000
- siteId: string;
2001
- state: State$1;
2002
- }[];
2445
+ files: FileDescriptorNonNullableFields[];
2003
2446
  }
2004
2447
  interface BaseEventMetadata$1 {
2005
2448
  /** App instance ID. */
@@ -2028,7 +2471,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
2028
2471
  slug?: string;
2029
2472
  /** ID of the entity associated with the event. */
2030
2473
  entityId?: string;
2031
- /** 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 */
2032
2475
  eventTime?: Date;
2033
2476
  /**
2034
2477
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2292,203 +2735,130 @@ interface ListDeletedFilesOptions {
2292
2735
  paging?: CursorPaging$1;
2293
2736
  }
2294
2737
 
2295
- type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
2296
- interface HttpClient$1 {
2297
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
2298
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2299
- }
2300
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
2301
- type HttpResponse$1<T = any> = {
2302
- data: T;
2303
- status: number;
2304
- statusText: string;
2305
- headers: any;
2306
- request?: any;
2307
- };
2308
- type RequestOptions$1<_TResponse = any, Data = any> = {
2309
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2310
- url: string;
2311
- data?: Data;
2312
- params?: URLSearchParams;
2313
- } & APIMetadata$1;
2314
- type APIMetadata$1 = {
2315
- methodFqn?: string;
2316
- entityFqdn?: string;
2317
- packageName?: string;
2318
- };
2319
- type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
2320
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
2321
- __type: 'event-definition';
2322
- type: Type;
2323
- isDomainEvent?: boolean;
2324
- transformations?: (envelope: unknown) => Payload;
2325
- __payload: Payload;
2326
- };
2327
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
2328
- type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
2329
- type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
2330
-
2331
- declare global {
2332
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2333
- interface SymbolConstructor {
2334
- readonly observable: symbol;
2335
- }
2336
- }
2738
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2337
2739
 
2338
- declare function generateFilesDownloadUrl$1(httpClient: HttpClient$1): (fileIds: string[]) => Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
2339
- declare function generateFileDownloadUrl$1(httpClient: HttpClient$1): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
2340
- declare function getFileDescriptor$1(httpClient: HttpClient$1): (fileId: string) => Promise<FileDescriptor & {
2341
- _id: string;
2342
- displayName: string;
2343
- url: string;
2344
- hash: string;
2345
- private: boolean;
2346
- mediaType: MediaType;
2347
- media?: {
2348
- image?: {
2349
- image: string;
2350
- colors?: {
2351
- palette: Color[];
2352
- } | undefined;
2353
- faces: {
2354
- confidence: number;
2355
- x: number;
2356
- y: number;
2357
- height: number;
2358
- width: number;
2359
- }[];
2360
- previewImage: string;
2361
- } | undefined;
2362
- video: string;
2363
- audio?: {
2364
- _id: string;
2365
- assets: string;
2366
- } | undefined;
2367
- document: string;
2368
- vector?: {
2369
- image: string;
2370
- colors?: {
2371
- palette: Color[];
2372
- } | undefined;
2373
- faces: {
2374
- confidence: number;
2375
- x: number;
2376
- y: number;
2377
- height: number;
2378
- width: number;
2379
- }[];
2380
- previewImage: string;
2381
- } | undefined;
2382
- archive?: {
2383
- _id: string;
2384
- url: string;
2385
- } | undefined;
2386
- model3d?: {
2387
- _id: string;
2388
- url: string;
2389
- thumbnail: string;
2390
- } | undefined;
2391
- } | undefined;
2392
- operationStatus: OperationStatus;
2393
- labels: string[];
2394
- siteId: string;
2395
- state: State$1;
2396
- }>;
2397
- declare function getFileDescriptors$1(httpClient: HttpClient$1): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
2398
- declare function updateFileDescriptor$1(httpClient: HttpClient$1): (file: FileDescriptor) => Promise<FileDescriptor & {
2399
- _id: string;
2400
- displayName: string;
2401
- url: string;
2402
- hash: string;
2403
- private: boolean;
2404
- mediaType: MediaType;
2405
- media?: {
2406
- image?: {
2407
- image: string;
2408
- colors?: {
2409
- palette: Color[];
2410
- } | undefined;
2411
- faces: {
2412
- confidence: number;
2413
- x: number;
2414
- y: number;
2415
- height: number;
2416
- width: number;
2417
- }[];
2418
- previewImage: string;
2419
- } | undefined;
2420
- video: string;
2421
- audio?: {
2422
- _id: string;
2423
- assets: string;
2424
- } | undefined;
2425
- document: string;
2426
- vector?: {
2427
- image: string;
2428
- colors?: {
2429
- palette: Color[];
2430
- } | undefined;
2431
- faces: {
2432
- confidence: number;
2433
- x: number;
2434
- y: number;
2435
- height: number;
2436
- width: number;
2437
- }[];
2438
- previewImage: string;
2439
- } | undefined;
2440
- archive?: {
2441
- _id: string;
2442
- url: string;
2443
- } | undefined;
2444
- model3d?: {
2445
- _id: string;
2446
- url: string;
2447
- thumbnail: string;
2448
- } | undefined;
2449
- } | undefined;
2450
- operationStatus: OperationStatus;
2451
- labels: string[];
2452
- siteId: string;
2453
- state: State$1;
2454
- }>;
2455
- declare function generateFileUploadUrl$1(httpClient: HttpClient$1): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
2456
- declare function generateFileResumableUploadUrl$1(httpClient: HttpClient$1): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
2457
- declare function importFile$1(httpClient: HttpClient$1): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
2458
- declare function bulkImportFiles$1(httpClient: HttpClient$1): (importFileRequests: ImportFileRequest[]) => Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
2459
- declare function bulkImportFile$1(httpClient: HttpClient$1): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions) => Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
2460
- declare function listFiles$1(httpClient: HttpClient$1): (options?: ListFilesOptions) => Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
2461
- declare function searchFiles$1(httpClient: HttpClient$1): (options?: SearchFilesOptions) => Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
2462
- declare function generateVideoStreamingUrl$1(httpClient: HttpClient$1): (fileId: string, options?: GenerateVideoStreamingUrlOptions) => Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
2463
- declare function bulkDeleteFiles$1(httpClient: HttpClient$1): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
2464
- declare function bulkRestoreFilesFromTrashBin$1(httpClient: HttpClient$1): (fileIds: string[]) => Promise<void>;
2465
- declare function listDeletedFiles$1(httpClient: HttpClient$1): (options?: ListDeletedFilesOptions) => Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
2466
- declare const onFileDescriptorUpdated$1: EventDefinition$1<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
2467
- declare const onFileDescriptorDeleted$1: EventDefinition$1<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
2468
- declare const onFileDescriptorFileReady$1: EventDefinition$1<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
2469
- declare const onFileDescriptorFileFailed$1: EventDefinition$1<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
2740
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2470
2741
 
2471
- declare const generateFilesDownloadUrl: BuildRESTFunction$1<typeof generateFilesDownloadUrl$1>;
2472
- declare const generateFileDownloadUrl: BuildRESTFunction$1<typeof generateFileDownloadUrl$1>;
2473
- declare const getFileDescriptor: BuildRESTFunction$1<typeof getFileDescriptor$1>;
2474
- declare const getFileDescriptors: BuildRESTFunction$1<typeof getFileDescriptors$1>;
2475
- declare const updateFileDescriptor: BuildRESTFunction$1<typeof updateFileDescriptor$1>;
2476
- declare const generateFileUploadUrl: BuildRESTFunction$1<typeof generateFileUploadUrl$1>;
2477
- declare const generateFileResumableUploadUrl: BuildRESTFunction$1<typeof generateFileResumableUploadUrl$1>;
2478
- declare const importFile: BuildRESTFunction$1<typeof importFile$1>;
2479
- declare const bulkImportFiles: BuildRESTFunction$1<typeof bulkImportFiles$1>;
2480
- declare const bulkImportFile: BuildRESTFunction$1<typeof bulkImportFile$1>;
2481
- declare const listFiles: BuildRESTFunction$1<typeof listFiles$1>;
2482
- declare const searchFiles: BuildRESTFunction$1<typeof searchFiles$1>;
2483
- declare const generateVideoStreamingUrl: BuildRESTFunction$1<typeof generateVideoStreamingUrl$1>;
2484
- declare const bulkDeleteFiles: BuildRESTFunction$1<typeof bulkDeleteFiles$1>;
2485
- declare const bulkRestoreFilesFromTrashBin: BuildRESTFunction$1<typeof bulkRestoreFilesFromTrashBin$1>;
2486
- declare const listDeletedFiles: BuildRESTFunction$1<typeof listDeletedFiles$1>;
2487
- declare const onFileDescriptorUpdated: BuildEventDefinition$1<typeof onFileDescriptorUpdated$1>;
2488
- declare const onFileDescriptorDeleted: BuildEventDefinition$1<typeof onFileDescriptorDeleted$1>;
2489
- declare const onFileDescriptorFileReady: BuildEventDefinition$1<typeof onFileDescriptorFileReady$1>;
2490
- declare const onFileDescriptorFileFailed: BuildEventDefinition$1<typeof onFileDescriptorFileFailed$1>;
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>>;
2491
2762
 
2763
+ type context$1_ApplicationError = ApplicationError;
2764
+ type context$1_Archive = Archive;
2765
+ type context$1_AudioV2 = AudioV2;
2766
+ type context$1_BulkActionMetadata = BulkActionMetadata;
2767
+ type context$1_BulkDeleteFilesOptions = BulkDeleteFilesOptions;
2768
+ type context$1_BulkDeleteFilesRequest = BulkDeleteFilesRequest;
2769
+ type context$1_BulkDeleteFilesResponse = BulkDeleteFilesResponse;
2770
+ type context$1_BulkImportFileOptions = BulkImportFileOptions;
2771
+ type context$1_BulkImportFileRequest = BulkImportFileRequest;
2772
+ type context$1_BulkImportFileResponse = BulkImportFileResponse;
2773
+ type context$1_BulkImportFileResponseNonNullableFields = BulkImportFileResponseNonNullableFields;
2774
+ type context$1_BulkImportFileResult = BulkImportFileResult;
2775
+ type context$1_BulkImportFilesRequest = BulkImportFilesRequest;
2776
+ type context$1_BulkImportFilesResponse = BulkImportFilesResponse;
2777
+ type context$1_BulkImportFilesResponseNonNullableFields = BulkImportFilesResponseNonNullableFields;
2778
+ type context$1_BulkRestoreFilesFromTrashBinRequest = BulkRestoreFilesFromTrashBinRequest;
2779
+ type context$1_BulkRestoreFilesFromTrashBinResponse = BulkRestoreFilesFromTrashBinResponse;
2780
+ type context$1_Color = Color;
2781
+ type context$1_ColorRGB = ColorRGB;
2782
+ type context$1_Colors = Colors;
2783
+ type context$1_ContentDisposition = ContentDisposition;
2784
+ declare const context$1_ContentDisposition: typeof ContentDisposition;
2785
+ type context$1_DownloadUrl = DownloadUrl;
2786
+ type context$1_ExternalInfo = ExternalInfo;
2787
+ type context$1_FaceRecognition = FaceRecognition;
2788
+ type context$1_FileDescriptor = FileDescriptor;
2789
+ type context$1_FileDescriptorDeletedEnvelope = FileDescriptorDeletedEnvelope;
2790
+ type context$1_FileDescriptorFileFailedEnvelope = FileDescriptorFileFailedEnvelope;
2791
+ type context$1_FileDescriptorFileReadyEnvelope = FileDescriptorFileReadyEnvelope;
2792
+ type context$1_FileDescriptorNonNullableFields = FileDescriptorNonNullableFields;
2793
+ type context$1_FileDescriptorUpdatedEnvelope = FileDescriptorUpdatedEnvelope;
2794
+ type context$1_FileFailed = FileFailed;
2795
+ type context$1_FileMedia = FileMedia;
2796
+ type context$1_FileMediaMediaOneOf = FileMediaMediaOneOf;
2797
+ type context$1_FileReady = FileReady;
2798
+ type context$1_GenerateFileDownloadUrlOptions = GenerateFileDownloadUrlOptions;
2799
+ type context$1_GenerateFileDownloadUrlRequest = GenerateFileDownloadUrlRequest;
2800
+ type context$1_GenerateFileDownloadUrlResponse = GenerateFileDownloadUrlResponse;
2801
+ type context$1_GenerateFileDownloadUrlResponseNonNullableFields = GenerateFileDownloadUrlResponseNonNullableFields;
2802
+ type context$1_GenerateFileResumableUploadUrlOptions = GenerateFileResumableUploadUrlOptions;
2803
+ type context$1_GenerateFileResumableUploadUrlRequest = GenerateFileResumableUploadUrlRequest;
2804
+ type context$1_GenerateFileResumableUploadUrlResponse = GenerateFileResumableUploadUrlResponse;
2805
+ type context$1_GenerateFileResumableUploadUrlResponseNonNullableFields = GenerateFileResumableUploadUrlResponseNonNullableFields;
2806
+ type context$1_GenerateFileUploadUrlOptions = GenerateFileUploadUrlOptions;
2807
+ type context$1_GenerateFileUploadUrlRequest = GenerateFileUploadUrlRequest;
2808
+ type context$1_GenerateFileUploadUrlResponse = GenerateFileUploadUrlResponse;
2809
+ type context$1_GenerateFileUploadUrlResponseNonNullableFields = GenerateFileUploadUrlResponseNonNullableFields;
2810
+ type context$1_GenerateFilesDownloadUrlRequest = GenerateFilesDownloadUrlRequest;
2811
+ type context$1_GenerateFilesDownloadUrlResponse = GenerateFilesDownloadUrlResponse;
2812
+ type context$1_GenerateFilesDownloadUrlResponseNonNullableFields = GenerateFilesDownloadUrlResponseNonNullableFields;
2813
+ type context$1_GenerateVideoStreamingUrlOptions = GenerateVideoStreamingUrlOptions;
2814
+ type context$1_GenerateVideoStreamingUrlRequest = GenerateVideoStreamingUrlRequest;
2815
+ type context$1_GenerateVideoStreamingUrlResponse = GenerateVideoStreamingUrlResponse;
2816
+ type context$1_GenerateVideoStreamingUrlResponseNonNullableFields = GenerateVideoStreamingUrlResponseNonNullableFields;
2817
+ type context$1_GenerateWebSocketTokenRequest = GenerateWebSocketTokenRequest;
2818
+ type context$1_GenerateWebSocketTokenResponse = GenerateWebSocketTokenResponse;
2819
+ type context$1_GetFileDescriptorRequest = GetFileDescriptorRequest;
2820
+ type context$1_GetFileDescriptorResponse = GetFileDescriptorResponse;
2821
+ type context$1_GetFileDescriptorResponseNonNullableFields = GetFileDescriptorResponseNonNullableFields;
2822
+ type context$1_GetFileDescriptorsRequest = GetFileDescriptorsRequest;
2823
+ type context$1_GetFileDescriptorsResponse = GetFileDescriptorsResponse;
2824
+ type context$1_GetFileDescriptorsResponseNonNullableFields = GetFileDescriptorsResponseNonNullableFields;
2825
+ type context$1_IdentityInfo = IdentityInfo;
2826
+ type context$1_IdentityType = IdentityType;
2827
+ declare const context$1_IdentityType: typeof IdentityType;
2828
+ type context$1_ImageMedia = ImageMedia;
2829
+ type context$1_ImportFileOptions = ImportFileOptions;
2830
+ type context$1_ImportFileRequest = ImportFileRequest;
2831
+ type context$1_ImportFileResponse = ImportFileResponse;
2832
+ type context$1_ImportFileResponseNonNullableFields = ImportFileResponseNonNullableFields;
2833
+ type context$1_ItemMetadata = ItemMetadata;
2834
+ type context$1_ListDeletedFilesOptions = ListDeletedFilesOptions;
2835
+ type context$1_ListDeletedFilesRequest = ListDeletedFilesRequest;
2836
+ type context$1_ListDeletedFilesResponse = ListDeletedFilesResponse;
2837
+ type context$1_ListDeletedFilesResponseNonNullableFields = ListDeletedFilesResponseNonNullableFields;
2838
+ type context$1_ListFilesOptions = ListFilesOptions;
2839
+ type context$1_ListFilesRequest = ListFilesRequest;
2840
+ type context$1_ListFilesResponse = ListFilesResponse;
2841
+ type context$1_ListFilesResponseNonNullableFields = ListFilesResponseNonNullableFields;
2842
+ type context$1_MediaType = MediaType;
2843
+ declare const context$1_MediaType: typeof MediaType;
2844
+ type context$1_Model3D = Model3D;
2845
+ type context$1_OperationStatus = OperationStatus;
2846
+ declare const context$1_OperationStatus: typeof OperationStatus;
2847
+ type context$1_OtherMedia = OtherMedia;
2848
+ type context$1_SearchFilesOptions = SearchFilesOptions;
2849
+ type context$1_SearchFilesRequest = SearchFilesRequest;
2850
+ type context$1_SearchFilesResponse = SearchFilesResponse;
2851
+ type context$1_SearchFilesResponseNonNullableFields = SearchFilesResponseNonNullableFields;
2852
+ type context$1_StreamFormat = StreamFormat;
2853
+ declare const context$1_StreamFormat: typeof StreamFormat;
2854
+ type context$1_UpdateFileDescriptorRequest = UpdateFileDescriptorRequest;
2855
+ type context$1_UpdateFileDescriptorResponse = UpdateFileDescriptorResponse;
2856
+ type context$1_UpdateFileDescriptorResponseNonNullableFields = UpdateFileDescriptorResponseNonNullableFields;
2857
+ type context$1_UpdateFileRequest = UpdateFileRequest;
2858
+ type context$1_UpdateFileResponse = UpdateFileResponse;
2859
+ type context$1_UploadProtocol = UploadProtocol;
2860
+ declare const context$1_UploadProtocol: typeof UploadProtocol;
2861
+ type context$1_VideoResolution = VideoResolution;
2492
2862
  declare const context$1_bulkDeleteFiles: typeof bulkDeleteFiles;
2493
2863
  declare const context$1_bulkImportFile: typeof bulkImportFile;
2494
2864
  declare const context$1_bulkImportFiles: typeof bulkImportFiles;
@@ -2510,7 +2880,7 @@ declare const context$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
2510
2880
  declare const context$1_searchFiles: typeof searchFiles;
2511
2881
  declare const context$1_updateFileDescriptor: typeof updateFileDescriptor;
2512
2882
  declare namespace context$1 {
2513
- export { context$1_bulkDeleteFiles as bulkDeleteFiles, context$1_bulkImportFile as bulkImportFile, context$1_bulkImportFiles as bulkImportFiles, context$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, context$1_generateFileDownloadUrl as generateFileDownloadUrl, context$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, context$1_generateFileUploadUrl as generateFileUploadUrl, context$1_generateFilesDownloadUrl as generateFilesDownloadUrl, context$1_generateVideoStreamingUrl as generateVideoStreamingUrl, context$1_getFileDescriptor as getFileDescriptor, context$1_getFileDescriptors as getFileDescriptors, context$1_importFile as importFile, context$1_listDeletedFiles as listDeletedFiles, context$1_listFiles as listFiles, context$1_onFileDescriptorDeleted as onFileDescriptorDeleted, context$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, context$1_onFileDescriptorFileReady as onFileDescriptorFileReady, context$1_onFileDescriptorUpdated as onFileDescriptorUpdated, context$1_searchFiles as searchFiles, context$1_updateFileDescriptor as updateFileDescriptor };
2883
+ export { type ActionEvent$1 as ActionEvent, type context$1_ApplicationError as ApplicationError, type context$1_Archive as Archive, type context$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_BulkActionMetadata as BulkActionMetadata, type context$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type context$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type context$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type context$1_BulkImportFileOptions as BulkImportFileOptions, type context$1_BulkImportFileRequest as BulkImportFileRequest, type context$1_BulkImportFileResponse as BulkImportFileResponse, type context$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type context$1_BulkImportFileResult as BulkImportFileResult, type context$1_BulkImportFilesRequest as BulkImportFilesRequest, type context$1_BulkImportFilesResponse as BulkImportFilesResponse, type context$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type context$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type context$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type context$1_Color as Color, type context$1_ColorRGB as ColorRGB, type context$1_Colors as Colors, context$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 context$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 context$1_ExternalInfo as ExternalInfo, type context$1_FaceRecognition as FaceRecognition, type context$1_FileDescriptor as FileDescriptor, type context$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type context$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type context$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type context$1_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, type context$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type context$1_FileFailed as FileFailed, type context$1_FileMedia as FileMedia, type context$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type context$1_FileReady as FileReady, type context$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type context$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type context$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type context$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type context$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type context$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type context$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type context$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type context$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type context$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type context$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type context$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type context$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type context$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type context$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type context$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type context$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type context$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type context$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type context$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type context$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type context$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type context$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type context$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type context$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type context$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type context$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_IdentityInfo as IdentityInfo, context$1_IdentityType as IdentityType, type context$1_ImageMedia as ImageMedia, type context$1_ImportFileOptions as ImportFileOptions, type context$1_ImportFileRequest as ImportFileRequest, type context$1_ImportFileResponse as ImportFileResponse, type context$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type context$1_ItemMetadata as ItemMetadata, type context$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type context$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type context$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type context$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type context$1_ListFilesOptions as ListFilesOptions, type context$1_ListFilesRequest as ListFilesRequest, type context$1_ListFilesResponse as ListFilesResponse, type context$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, context$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type context$1_Model3D as Model3D, Namespace$1 as Namespace, context$1_OperationStatus as OperationStatus, type context$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type RestoreInfo$1 as RestoreInfo, RootFolder$1 as RootFolder, type context$1_SearchFilesOptions as SearchFilesOptions, type context$1_SearchFilesRequest as SearchFilesRequest, type context$1_SearchFilesResponse as SearchFilesResponse, type context$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, context$1_StreamFormat as StreamFormat, type context$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type context$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type context$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type context$1_UpdateFileRequest as UpdateFileRequest, type context$1_UpdateFileResponse as UpdateFileResponse, context$1_UploadProtocol as UploadProtocol, type context$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, context$1_bulkDeleteFiles as bulkDeleteFiles, context$1_bulkImportFile as bulkImportFile, context$1_bulkImportFiles as bulkImportFiles, context$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, context$1_generateFileDownloadUrl as generateFileDownloadUrl, context$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, context$1_generateFileUploadUrl as generateFileUploadUrl, context$1_generateFilesDownloadUrl as generateFilesDownloadUrl, context$1_generateVideoStreamingUrl as generateVideoStreamingUrl, context$1_getFileDescriptor as getFileDescriptor, context$1_getFileDescriptors as getFileDescriptors, context$1_importFile as importFile, context$1_listDeletedFiles as listDeletedFiles, context$1_listFiles as listFiles, context$1_onFileDescriptorDeleted as onFileDescriptorDeleted, context$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, context$1_onFileDescriptorFileReady as onFileDescriptorFileReady, context$1_onFileDescriptorUpdated as onFileDescriptorUpdated, context$1_searchFiles as searchFiles, context$1_updateFileDescriptor as updateFileDescriptor };
2514
2884
  }
2515
2885
 
2516
2886
  interface Folder {
@@ -2540,10 +2910,66 @@ declare enum State {
2540
2910
  OK = "OK",
2541
2911
  DELETED = "DELETED"
2542
2912
  }
2913
+ declare enum Namespace {
2914
+ NO_NAMESPACE = "NO_NAMESPACE",
2915
+ OTHERS = "OTHERS",
2916
+ /** ANY = 2; */
2917
+ WIX_VIDEO = "WIX_VIDEO",
2918
+ /** _nsWixMusic */
2919
+ WIX_MUSIC = "WIX_MUSIC",
2920
+ /** _nsArtStore */
2921
+ ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
2922
+ /** _nsDigitalProduct */
2923
+ WIX_ECOM = "WIX_ECOM",
2924
+ /** _nsPhotoShareApp */
2925
+ PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
2926
+ /** _nsSharingApp, */
2927
+ SHARING_APP = "SHARING_APP",
2928
+ /** engage */
2929
+ CHAT = "CHAT",
2930
+ /** logobuilder */
2931
+ LOGO_BUILDER = "LOGO_BUILDER",
2932
+ /** WixExposure */
2933
+ ALBUMS_OLD = "ALBUMS_OLD",
2934
+ /** chat-mobile-uploads */
2935
+ CHAT_MOBILE = "CHAT_MOBILE",
2936
+ /** _nsWixForms */
2937
+ WIX_FORMS = "WIX_FORMS"
2938
+ }
2939
+ interface CreateFolderRequest {
2940
+ /** Folder name that appears in the Media Manager. */
2941
+ displayName: string;
2942
+ /** ID of the folder's parent folder. */
2943
+ parentFolderId?: string | null;
2944
+ }
2543
2945
  interface CreateFolderResponse {
2544
2946
  /** Information about the newly created folder. */
2545
2947
  folder?: Folder;
2546
2948
  }
2949
+ interface GetFolderRequest {
2950
+ /** Folder ID. */
2951
+ folderId: string;
2952
+ }
2953
+ interface GetFolderResponse {
2954
+ /** Information about the folder. */
2955
+ folder?: Folder;
2956
+ }
2957
+ interface ListFoldersRequest {
2958
+ /**
2959
+ * ID of the folder's parent folder.
2960
+ * <br /> Default: `media-root` folder.
2961
+ */
2962
+ parentFolderId?: string | null;
2963
+ /**
2964
+ * Field name and order to sort by. One of:
2965
+ * - `displayName`
2966
+ * - `_updatedDate`
2967
+ * Default: `_updatedDate` in `"DESC"` order.
2968
+ */
2969
+ sort?: Sorting;
2970
+ /** Cursor and paging information. */
2971
+ paging?: CursorPaging;
2972
+ }
2547
2973
  interface Sorting {
2548
2974
  /** Name of the field to sort by. */
2549
2975
  fieldName?: string;
@@ -2581,6 +3007,28 @@ interface Cursors {
2581
3007
  /** Cursor string pointing to the next page in the list of results. */
2582
3008
  next?: string | null;
2583
3009
  }
3010
+ interface SearchFoldersRequest {
3011
+ /**
3012
+ * A root folder in the media manager to search in. <br />
3013
+ * Default: `MEDIA_ROOT`.
3014
+ */
3015
+ rootFolder?: RootFolder;
3016
+ /**
3017
+ * Field name and order to sort by. One of:
3018
+ * - `displayName`
3019
+ * - `_updatedDate`
3020
+ *
3021
+ * Default: `_updatedDate` in `"DESC"` order.
3022
+ */
3023
+ sort?: Sorting;
3024
+ /** Cursor and paging information. */
3025
+ paging?: CursorPaging;
3026
+ /**
3027
+ * Term to search for, such as the value of a folder's `displayName`. <br />
3028
+ * For example, if a folder's `displayName` is 'my-videos-folder', the search term is 'my-videos-folder'.
3029
+ */
3030
+ search?: string | null;
3031
+ }
2584
3032
  declare enum RootFolder {
2585
3033
  /** Root of all site media */
2586
3034
  MEDIA_ROOT = "MEDIA_ROOT",
@@ -2595,16 +3043,139 @@ interface SearchFoldersResponse {
2595
3043
  /** The next cursor if it exists. */
2596
3044
  nextCursor?: PagingMetadataV2;
2597
3045
  }
3046
+ interface UpdateFolderRequest {
3047
+ /** The folder to update. */
3048
+ folder: Folder;
3049
+ }
3050
+ interface UpdateFolderResponse {
3051
+ /** Information about the updated folder. */
3052
+ folder?: Folder;
3053
+ }
3054
+ interface GenerateFolderDownloadUrlRequest {
3055
+ /** Folder ID. */
3056
+ folderId: string;
3057
+ }
2598
3058
  interface GenerateFolderDownloadUrlResponse {
2599
3059
  /** URL for downloading a specific folder in the Media Manager. */
2600
3060
  downloadUrl?: string;
2601
3061
  }
3062
+ interface BulkDeleteFoldersRequest {
3063
+ /** IDs of the folders to move to the Media Manager's trash bin. */
3064
+ folderIds: string[];
3065
+ /**
3066
+ * Whether the specified folders are permanently deleted. <br />
3067
+ * Default: `false`
3068
+ */
3069
+ permanent?: boolean;
3070
+ }
3071
+ interface BulkDeleteFoldersResponse {
3072
+ }
3073
+ interface BulkRestoreFoldersFromTrashBinRequest {
3074
+ /** IDs of the folders to restore from the Media Manager's trash bin. */
3075
+ folderIds: string[];
3076
+ }
3077
+ interface BulkRestoreFoldersFromTrashBinResponse {
3078
+ }
3079
+ interface ListDeletedFoldersRequest {
3080
+ /** ID of the folder's parent folder. */
3081
+ parentFolderId?: string | null;
3082
+ /**
3083
+ * Field name and order to sort by. One of:
3084
+ * - `displayName`
3085
+ * - `_updatedDate`
3086
+ *
3087
+ * Default: `_updatedDate` in `"DESC"` order.
3088
+ */
3089
+ sort?: Sorting;
3090
+ /** Cursor and paging information. */
3091
+ paging?: CursorPaging;
3092
+ }
2602
3093
  interface ListDeletedFoldersResponse {
2603
3094
  /** List of folders in the Media Manager's trash bin. */
2604
3095
  folders?: Folder[];
2605
3096
  /** The next cursor if it exists. */
2606
3097
  nextCursor?: PagingMetadataV2;
2607
3098
  }
3099
+ interface DomainEvent extends DomainEventBodyOneOf {
3100
+ createdEvent?: EntityCreatedEvent;
3101
+ updatedEvent?: EntityUpdatedEvent;
3102
+ deletedEvent?: EntityDeletedEvent;
3103
+ actionEvent?: ActionEvent;
3104
+ /**
3105
+ * Unique event ID.
3106
+ * Allows clients to ignore duplicate webhooks.
3107
+ */
3108
+ _id?: string;
3109
+ /**
3110
+ * Assumes actions are also always typed to an entity_type
3111
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
3112
+ */
3113
+ entityFqdn?: string;
3114
+ /**
3115
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
3116
+ * This is although the created/updated/deleted notion is duplication of the oneof types
3117
+ * Example: created/updated/deleted/started/completed/email_opened
3118
+ */
3119
+ slug?: string;
3120
+ /** ID of the entity associated with the event. */
3121
+ entityId?: string;
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 */
3123
+ eventTime?: Date;
3124
+ /**
3125
+ * Whether the event was triggered as a result of a privacy regulation application
3126
+ * (for example, GDPR).
3127
+ */
3128
+ triggeredByAnonymizeRequest?: boolean | null;
3129
+ /** If present, indicates the action that triggered the event. */
3130
+ originatedFrom?: string | null;
3131
+ /**
3132
+ * A sequence number defining the order of updates to the underlying entity.
3133
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
3134
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3135
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3136
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
3137
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3138
+ */
3139
+ entityEventSequence?: string | null;
3140
+ }
3141
+ /** @oneof */
3142
+ interface DomainEventBodyOneOf {
3143
+ createdEvent?: EntityCreatedEvent;
3144
+ updatedEvent?: EntityUpdatedEvent;
3145
+ deletedEvent?: EntityDeletedEvent;
3146
+ actionEvent?: ActionEvent;
3147
+ }
3148
+ interface EntityCreatedEvent {
3149
+ entity?: string;
3150
+ }
3151
+ interface RestoreInfo {
3152
+ deletedDate?: Date;
3153
+ }
3154
+ interface EntityUpdatedEvent {
3155
+ /**
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.
3157
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3158
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3159
+ */
3160
+ currentEntity?: string;
3161
+ }
3162
+ interface EntityDeletedEvent {
3163
+ /** Entity that was deleted */
3164
+ deletedEntity?: string | null;
3165
+ }
3166
+ interface ActionEvent {
3167
+ body?: string;
3168
+ }
3169
+ interface MessageEnvelope {
3170
+ /** App instance ID. */
3171
+ instanceId?: string | null;
3172
+ /** Event type. */
3173
+ eventType?: string;
3174
+ /** The identification type and identity data. */
3175
+ identity?: IdentificationData;
3176
+ /** Stringify payload. */
3177
+ data?: string;
3178
+ }
2608
3179
  interface IdentificationData extends IdentificationDataIdOneOf {
2609
3180
  /** ID of a site visitor that has not logged in to the site. */
2610
3181
  anonymousVisitorId?: string;
@@ -2635,40 +3206,33 @@ declare enum WebhookIdentityType {
2635
3206
  WIX_USER = "WIX_USER",
2636
3207
  APP = "APP"
2637
3208
  }
3209
+ interface FolderNonNullableFields {
3210
+ _id: string;
3211
+ displayName: string;
3212
+ parentFolderId: string;
3213
+ state: State;
3214
+ namespace: Namespace;
3215
+ }
2638
3216
  interface CreateFolderResponseNonNullableFields {
2639
- folder?: {
2640
- _id: string;
2641
- displayName: string;
2642
- parentFolderId: string;
2643
- state: State;
2644
- };
3217
+ folder?: FolderNonNullableFields;
3218
+ }
3219
+ interface GetFolderResponseNonNullableFields {
3220
+ folder?: FolderNonNullableFields;
2645
3221
  }
2646
3222
  interface ListFoldersResponseNonNullableFields {
2647
- folders: {
2648
- _id: string;
2649
- displayName: string;
2650
- parentFolderId: string;
2651
- state: State;
2652
- }[];
3223
+ folders: FolderNonNullableFields[];
2653
3224
  }
2654
3225
  interface SearchFoldersResponseNonNullableFields {
2655
- folders: {
2656
- _id: string;
2657
- displayName: string;
2658
- parentFolderId: string;
2659
- state: State;
2660
- }[];
3226
+ folders: FolderNonNullableFields[];
3227
+ }
3228
+ interface UpdateFolderResponseNonNullableFields {
3229
+ folder?: FolderNonNullableFields;
2661
3230
  }
2662
3231
  interface GenerateFolderDownloadUrlResponseNonNullableFields {
2663
3232
  downloadUrl: string;
2664
3233
  }
2665
3234
  interface ListDeletedFoldersResponseNonNullableFields {
2666
- folders: {
2667
- _id: string;
2668
- displayName: string;
2669
- parentFolderId: string;
2670
- state: State;
2671
- }[];
3235
+ folders: FolderNonNullableFields[];
2672
3236
  }
2673
3237
  interface BaseEventMetadata {
2674
3238
  /** App instance ID. */
@@ -2697,7 +3261,7 @@ interface EventMetadata extends BaseEventMetadata {
2697
3261
  slug?: string;
2698
3262
  /** ID of the entity associated with the event. */
2699
3263
  entityId?: string;
2700
- /** 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 */
2701
3265
  eventTime?: Date;
2702
3266
  /**
2703
3267
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2816,85 +3380,85 @@ interface ListDeletedFoldersOptions {
2816
3380
  paging?: CursorPaging;
2817
3381
  }
2818
3382
 
2819
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
2820
- interface HttpClient {
2821
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
2822
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2823
- }
2824
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
2825
- type HttpResponse<T = any> = {
2826
- data: T;
2827
- status: number;
2828
- statusText: string;
2829
- headers: any;
2830
- request?: any;
2831
- };
2832
- type RequestOptions<_TResponse = any, Data = any> = {
2833
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2834
- url: string;
2835
- data?: Data;
2836
- params?: URLSearchParams;
2837
- } & APIMetadata;
2838
- type APIMetadata = {
2839
- methodFqn?: string;
2840
- entityFqdn?: string;
2841
- packageName?: string;
2842
- };
2843
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
2844
- type EventDefinition<Payload = unknown, Type extends string = string> = {
2845
- __type: 'event-definition';
2846
- type: Type;
2847
- isDomainEvent?: boolean;
2848
- transformations?: (envelope: unknown) => Payload;
2849
- __payload: Payload;
2850
- };
2851
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
2852
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
2853
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
2854
-
2855
- declare global {
2856
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2857
- interface SymbolConstructor {
2858
- readonly observable: symbol;
2859
- }
2860
- }
3383
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2861
3384
 
2862
- declare function createFolder$1(httpClient: HttpClient): (displayName: string, options?: CreateFolderOptions) => Promise<CreateFolderResponse & CreateFolderResponseNonNullableFields>;
2863
- declare function getFolder$1(httpClient: HttpClient): (folderId: string) => Promise<Folder & {
2864
- _id: string;
2865
- displayName: string;
2866
- parentFolderId: string;
2867
- state: State;
2868
- }>;
2869
- declare function listFolders$1(httpClient: HttpClient): (options?: ListFoldersOptions) => Promise<ListFoldersResponse & ListFoldersResponseNonNullableFields>;
2870
- declare function searchFolders$1(httpClient: HttpClient): (options?: SearchFoldersOptions) => Promise<SearchFoldersResponse & SearchFoldersResponseNonNullableFields>;
2871
- declare function updateFolder$1(httpClient: HttpClient): (_id: string, folder: UpdateFolder) => Promise<Folder & {
2872
- _id: string;
2873
- displayName: string;
2874
- parentFolderId: string;
2875
- state: State;
2876
- }>;
2877
- declare function generateFolderDownloadUrl$1(httpClient: HttpClient): (folderId: string) => Promise<GenerateFolderDownloadUrlResponse & GenerateFolderDownloadUrlResponseNonNullableFields>;
2878
- declare function bulkDeleteFolders$1(httpClient: HttpClient): (folderIds: string[], options?: BulkDeleteFoldersOptions) => Promise<void>;
2879
- declare function bulkRestoreFoldersFromTrashBin$1(httpClient: HttpClient): (folderIds: string[]) => Promise<void>;
2880
- declare function listDeletedFolders$1(httpClient: HttpClient): (options?: ListDeletedFoldersOptions) => Promise<ListDeletedFoldersResponse & ListDeletedFoldersResponseNonNullableFields>;
2881
- declare const onFolderCreated$1: EventDefinition<FolderCreatedEnvelope, "wix.media.site_media.v1.folder_created">;
2882
- declare const onFolderUpdated$1: EventDefinition<FolderUpdatedEnvelope, "wix.media.site_media.v1.folder_updated">;
2883
- declare const onFolderDeleted$1: EventDefinition<FolderDeletedEnvelope, "wix.media.site_media.v1.folder_deleted">;
3385
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2884
3386
 
2885
- declare const createFolder: BuildRESTFunction<typeof createFolder$1>;
2886
- declare const getFolder: BuildRESTFunction<typeof getFolder$1>;
2887
- declare const listFolders: BuildRESTFunction<typeof listFolders$1>;
2888
- declare const searchFolders: BuildRESTFunction<typeof searchFolders$1>;
2889
- declare const updateFolder: BuildRESTFunction<typeof updateFolder$1>;
2890
- declare const generateFolderDownloadUrl: BuildRESTFunction<typeof generateFolderDownloadUrl$1>;
2891
- declare const bulkDeleteFolders: BuildRESTFunction<typeof bulkDeleteFolders$1>;
2892
- declare const bulkRestoreFoldersFromTrashBin: BuildRESTFunction<typeof bulkRestoreFoldersFromTrashBin$1>;
2893
- declare const listDeletedFolders: BuildRESTFunction<typeof listDeletedFolders$1>;
2894
- declare const onFolderCreated: BuildEventDefinition<typeof onFolderCreated$1>;
2895
- declare const onFolderUpdated: BuildEventDefinition<typeof onFolderUpdated$1>;
2896
- declare const onFolderDeleted: BuildEventDefinition<typeof onFolderDeleted$1>;
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>>;
2897
3399
 
3400
+ type context_ActionEvent = ActionEvent;
3401
+ type context_BaseEventMetadata = BaseEventMetadata;
3402
+ type context_BulkDeleteFoldersOptions = BulkDeleteFoldersOptions;
3403
+ type context_BulkDeleteFoldersRequest = BulkDeleteFoldersRequest;
3404
+ type context_BulkDeleteFoldersResponse = BulkDeleteFoldersResponse;
3405
+ type context_BulkRestoreFoldersFromTrashBinRequest = BulkRestoreFoldersFromTrashBinRequest;
3406
+ type context_BulkRestoreFoldersFromTrashBinResponse = BulkRestoreFoldersFromTrashBinResponse;
3407
+ type context_CreateFolderOptions = CreateFolderOptions;
3408
+ type context_CreateFolderRequest = CreateFolderRequest;
3409
+ type context_CreateFolderResponse = CreateFolderResponse;
3410
+ type context_CreateFolderResponseNonNullableFields = CreateFolderResponseNonNullableFields;
3411
+ type context_CursorPaging = CursorPaging;
3412
+ type context_Cursors = Cursors;
3413
+ type context_DomainEvent = DomainEvent;
3414
+ type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
3415
+ type context_EntityCreatedEvent = EntityCreatedEvent;
3416
+ type context_EntityDeletedEvent = EntityDeletedEvent;
3417
+ type context_EntityUpdatedEvent = EntityUpdatedEvent;
3418
+ type context_EventMetadata = EventMetadata;
3419
+ type context_Folder = Folder;
3420
+ type context_FolderCreatedEnvelope = FolderCreatedEnvelope;
3421
+ type context_FolderDeletedEnvelope = FolderDeletedEnvelope;
3422
+ type context_FolderNonNullableFields = FolderNonNullableFields;
3423
+ type context_FolderUpdatedEnvelope = FolderUpdatedEnvelope;
3424
+ type context_GenerateFolderDownloadUrlRequest = GenerateFolderDownloadUrlRequest;
3425
+ type context_GenerateFolderDownloadUrlResponse = GenerateFolderDownloadUrlResponse;
3426
+ type context_GenerateFolderDownloadUrlResponseNonNullableFields = GenerateFolderDownloadUrlResponseNonNullableFields;
3427
+ type context_GetFolderRequest = GetFolderRequest;
3428
+ type context_GetFolderResponse = GetFolderResponse;
3429
+ type context_GetFolderResponseNonNullableFields = GetFolderResponseNonNullableFields;
3430
+ type context_IdentificationData = IdentificationData;
3431
+ type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
3432
+ type context_ListDeletedFoldersOptions = ListDeletedFoldersOptions;
3433
+ type context_ListDeletedFoldersRequest = ListDeletedFoldersRequest;
3434
+ type context_ListDeletedFoldersResponse = ListDeletedFoldersResponse;
3435
+ type context_ListDeletedFoldersResponseNonNullableFields = ListDeletedFoldersResponseNonNullableFields;
3436
+ type context_ListFoldersOptions = ListFoldersOptions;
3437
+ type context_ListFoldersRequest = ListFoldersRequest;
3438
+ type context_ListFoldersResponse = ListFoldersResponse;
3439
+ type context_ListFoldersResponseNonNullableFields = ListFoldersResponseNonNullableFields;
3440
+ type context_MessageEnvelope = MessageEnvelope;
3441
+ type context_Namespace = Namespace;
3442
+ declare const context_Namespace: typeof Namespace;
3443
+ type context_PagingMetadataV2 = PagingMetadataV2;
3444
+ type context_RestoreInfo = RestoreInfo;
3445
+ type context_RootFolder = RootFolder;
3446
+ declare const context_RootFolder: typeof RootFolder;
3447
+ type context_SearchFoldersOptions = SearchFoldersOptions;
3448
+ type context_SearchFoldersRequest = SearchFoldersRequest;
3449
+ type context_SearchFoldersResponse = SearchFoldersResponse;
3450
+ type context_SearchFoldersResponseNonNullableFields = SearchFoldersResponseNonNullableFields;
3451
+ type context_SortOrder = SortOrder;
3452
+ declare const context_SortOrder: typeof SortOrder;
3453
+ type context_Sorting = Sorting;
3454
+ type context_State = State;
3455
+ declare const context_State: typeof State;
3456
+ type context_UpdateFolder = UpdateFolder;
3457
+ type context_UpdateFolderRequest = UpdateFolderRequest;
3458
+ type context_UpdateFolderResponse = UpdateFolderResponse;
3459
+ type context_UpdateFolderResponseNonNullableFields = UpdateFolderResponseNonNullableFields;
3460
+ type context_WebhookIdentityType = WebhookIdentityType;
3461
+ declare const context_WebhookIdentityType: typeof WebhookIdentityType;
2898
3462
  declare const context_bulkDeleteFolders: typeof bulkDeleteFolders;
2899
3463
  declare const context_bulkRestoreFoldersFromTrashBin: typeof bulkRestoreFoldersFromTrashBin;
2900
3464
  declare const context_createFolder: typeof createFolder;
@@ -2908,7 +3472,7 @@ declare const context_onFolderUpdated: typeof onFolderUpdated;
2908
3472
  declare const context_searchFolders: typeof searchFolders;
2909
3473
  declare const context_updateFolder: typeof updateFolder;
2910
3474
  declare namespace context {
2911
- export { context_bulkDeleteFolders as bulkDeleteFolders, context_bulkRestoreFoldersFromTrashBin as bulkRestoreFoldersFromTrashBin, context_createFolder as createFolder, context_generateFolderDownloadUrl as generateFolderDownloadUrl, context_getFolder as getFolder, context_listDeletedFolders as listDeletedFolders, context_listFolders as listFolders, context_onFolderCreated as onFolderCreated, context_onFolderDeleted as onFolderDeleted, context_onFolderUpdated as onFolderUpdated, context_searchFolders as searchFolders, context_updateFolder as updateFolder };
3475
+ export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_BulkDeleteFoldersOptions as BulkDeleteFoldersOptions, type context_BulkDeleteFoldersRequest as BulkDeleteFoldersRequest, type context_BulkDeleteFoldersResponse as BulkDeleteFoldersResponse, type context_BulkRestoreFoldersFromTrashBinRequest as BulkRestoreFoldersFromTrashBinRequest, type context_BulkRestoreFoldersFromTrashBinResponse as BulkRestoreFoldersFromTrashBinResponse, type context_CreateFolderOptions as CreateFolderOptions, type context_CreateFolderRequest as CreateFolderRequest, type context_CreateFolderResponse as CreateFolderResponse, type context_CreateFolderResponseNonNullableFields as CreateFolderResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_Folder as Folder, type context_FolderCreatedEnvelope as FolderCreatedEnvelope, type context_FolderDeletedEnvelope as FolderDeletedEnvelope, type context_FolderNonNullableFields as FolderNonNullableFields, type context_FolderUpdatedEnvelope as FolderUpdatedEnvelope, type context_GenerateFolderDownloadUrlRequest as GenerateFolderDownloadUrlRequest, type context_GenerateFolderDownloadUrlResponse as GenerateFolderDownloadUrlResponse, type context_GenerateFolderDownloadUrlResponseNonNullableFields as GenerateFolderDownloadUrlResponseNonNullableFields, type context_GetFolderRequest as GetFolderRequest, type context_GetFolderResponse as GetFolderResponse, type context_GetFolderResponseNonNullableFields as GetFolderResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListDeletedFoldersOptions as ListDeletedFoldersOptions, type context_ListDeletedFoldersRequest as ListDeletedFoldersRequest, type context_ListDeletedFoldersResponse as ListDeletedFoldersResponse, type context_ListDeletedFoldersResponseNonNullableFields as ListDeletedFoldersResponseNonNullableFields, type context_ListFoldersOptions as ListFoldersOptions, type context_ListFoldersRequest as ListFoldersRequest, type context_ListFoldersResponse as ListFoldersResponse, type context_ListFoldersResponseNonNullableFields as ListFoldersResponseNonNullableFields, type context_MessageEnvelope as MessageEnvelope, context_Namespace as Namespace, type context_PagingMetadataV2 as PagingMetadataV2, type context_RestoreInfo as RestoreInfo, context_RootFolder as RootFolder, type context_SearchFoldersOptions as SearchFoldersOptions, type context_SearchFoldersRequest as SearchFoldersRequest, type context_SearchFoldersResponse as SearchFoldersResponse, type context_SearchFoldersResponseNonNullableFields as SearchFoldersResponseNonNullableFields, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, type context_UpdateFolder as UpdateFolder, type context_UpdateFolderRequest as UpdateFolderRequest, type context_UpdateFolderResponse as UpdateFolderResponse, type context_UpdateFolderResponseNonNullableFields as UpdateFolderResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, context_bulkDeleteFolders as bulkDeleteFolders, context_bulkRestoreFoldersFromTrashBin as bulkRestoreFoldersFromTrashBin, context_createFolder as createFolder, context_generateFolderDownloadUrl as generateFolderDownloadUrl, context_getFolder as getFolder, context_listDeletedFolders as listDeletedFolders, context_listFolders as listFolders, context_onFolderCreated as onFolderCreated, context_onFolderDeleted as onFolderDeleted, context_onFolderUpdated as onFolderUpdated, context_searchFolders as searchFolders, context_updateFolder as updateFolder };
2912
3476
  }
2913
3477
 
2914
3478
  export { context$3 as enterpriseMediaCategories, context$2 as enterpriseMediaItems, context$1 as files, context as folders };