@wix/media 1.0.89 → 1.0.90

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.
@@ -0,0 +1,4151 @@
1
+ interface EnterpriseCategory {
2
+ /**
3
+ * Id of the category
4
+ * @readonly
5
+ */
6
+ _id?: string;
7
+ /** The display name that will be shown for the item */
8
+ displayName?: string | null;
9
+ /** Id of the parent category, will default to the account master category */
10
+ parentCategoryId?: string | null;
11
+ /** Sort order number of the category, will determine the order of the category with other categories under the same parent category */
12
+ sortOrder?: number | null;
13
+ /** Publish status of the category */
14
+ publishStatus?: PublishStatus$1;
15
+ /**
16
+ * Date and time the category was created.
17
+ * @readonly
18
+ */
19
+ _createdDate?: Date;
20
+ /**
21
+ * Date and time the category was updated.
22
+ * @readonly
23
+ */
24
+ _updatedDate?: Date;
25
+ }
26
+ declare enum PublishStatus$1 {
27
+ UNDEFINED = "UNDEFINED",
28
+ UNPUBLISHED = "UNPUBLISHED",
29
+ PUBLISHED = "PUBLISHED",
30
+ WIX_ONLY = "WIX_ONLY"
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
+ }
76
+ interface EnterpriseCategoryTree {
77
+ /** Category information */
78
+ category?: EnterpriseCategory;
79
+ /** Information about the sub categories */
80
+ subCategories?: EnterpriseCategoryTree[];
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
+ }
88
+ interface EnterpriseOnboardingResponse {
89
+ /** The enterprise category */
90
+ category?: EnterpriseCategory;
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
+ }
110
+ interface GetMediaManagerCategoriesResponse {
111
+ /** The category details */
112
+ category?: EnterpriseCategoryTree;
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
+ }
191
+ interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
192
+ /** ID of a site visitor that has not logged in to the site. */
193
+ anonymousVisitorId?: string;
194
+ /** ID of a site visitor that has logged in to the site. */
195
+ memberId?: string;
196
+ /** ID of a Wix user (site owner, contributor, etc.). */
197
+ wixUserId?: string;
198
+ /** ID of an app. */
199
+ appId?: string;
200
+ /** @readonly */
201
+ identityType?: WebhookIdentityType$3;
202
+ }
203
+ /** @oneof */
204
+ interface IdentificationDataIdOneOf$3 {
205
+ /** ID of a site visitor that has not logged in to the site. */
206
+ anonymousVisitorId?: string;
207
+ /** ID of a site visitor that has logged in to the site. */
208
+ memberId?: string;
209
+ /** ID of a Wix user (site owner, contributor, etc.). */
210
+ wixUserId?: string;
211
+ /** ID of an app. */
212
+ appId?: string;
213
+ }
214
+ declare enum WebhookIdentityType$3 {
215
+ UNKNOWN = "UNKNOWN",
216
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
217
+ MEMBER = "MEMBER",
218
+ WIX_USER = "WIX_USER",
219
+ APP = "APP"
220
+ }
221
+ interface CreateCategoryResponseNonNullableFields {
222
+ category?: {
223
+ _id: string;
224
+ publishStatus: PublishStatus$1;
225
+ };
226
+ }
227
+ interface UpdateCategoryResponseNonNullableFields {
228
+ category?: {
229
+ _id: string;
230
+ publishStatus: PublishStatus$1;
231
+ };
232
+ }
233
+ interface GetCategoryResponseNonNullableFields {
234
+ category?: {
235
+ category?: {
236
+ _id: string;
237
+ publishStatus: PublishStatus$1;
238
+ };
239
+ subCategories: NonNullable<GetCategoryResponseNonNullableFields>['category'][];
240
+ };
241
+ }
242
+ interface EnterpriseOnboardingResponseNonNullableFields {
243
+ category?: {
244
+ _id: string;
245
+ publishStatus: PublishStatus$1;
246
+ };
247
+ }
248
+ interface GetMediaManagerCategoriesResponseNonNullableFields {
249
+ category?: {
250
+ category?: {
251
+ _id: string;
252
+ publishStatus: PublishStatus$1;
253
+ };
254
+ subCategories: NonNullable<GetMediaManagerCategoriesResponseNonNullableFields>['category'][];
255
+ };
256
+ }
257
+ interface BaseEventMetadata$3 {
258
+ /** App instance ID. */
259
+ instanceId?: string | null;
260
+ /** Event type. */
261
+ eventType?: string;
262
+ /** The identification type and identity data. */
263
+ identity?: IdentificationData$3;
264
+ }
265
+ interface EventMetadata$3 extends BaseEventMetadata$3 {
266
+ /**
267
+ * Unique event ID.
268
+ * Allows clients to ignore duplicate webhooks.
269
+ */
270
+ _id?: string;
271
+ /**
272
+ * Assumes actions are also always typed to an entity_type
273
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
274
+ */
275
+ entityFqdn?: string;
276
+ /**
277
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
278
+ * This is although the created/updated/deleted notion is duplication of the oneof types
279
+ * Example: created/updated/deleted/started/completed/email_opened
280
+ */
281
+ slug?: string;
282
+ /** ID of the entity associated with the event. */
283
+ entityId?: string;
284
+ /** Event timestamp. */
285
+ eventTime?: Date;
286
+ /**
287
+ * Whether the event was triggered as a result of a privacy regulation application
288
+ * (for example, GDPR).
289
+ */
290
+ triggeredByAnonymizeRequest?: boolean | null;
291
+ /** If present, indicates the action that triggered the event. */
292
+ originatedFrom?: string | null;
293
+ /**
294
+ * A sequence number defining the order of updates to the underlying entity.
295
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
296
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
297
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
298
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
299
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
300
+ */
301
+ entityEventSequence?: string | null;
302
+ }
303
+ interface EnterpriseCategoryCreatedEnvelope {
304
+ entity: EnterpriseCategory;
305
+ metadata: EventMetadata$3;
306
+ }
307
+ interface EnterpriseCategoryDeletedEnvelope {
308
+ metadata: EventMetadata$3;
309
+ }
310
+ interface EnterpriseCategoryUpdatedEnvelope {
311
+ entity: EnterpriseCategory;
312
+ metadata: EventMetadata$3;
313
+ }
314
+ interface UpdateCategory {
315
+ /**
316
+ * Id of the category
317
+ * @readonly
318
+ */
319
+ _id?: string;
320
+ /** The display name that will be shown for the item */
321
+ displayName?: string | null;
322
+ /** Id of the parent category, will default to the account master category */
323
+ parentCategoryId?: string | null;
324
+ /** Sort order number of the category, will determine the order of the category with other categories under the same parent category */
325
+ sortOrder?: number | null;
326
+ /** Publish status of the category */
327
+ publishStatus?: PublishStatus$1;
328
+ /**
329
+ * Date and time the category was created.
330
+ * @readonly
331
+ */
332
+ _createdDate?: Date;
333
+ /**
334
+ * Date and time the category was updated.
335
+ * @readonly
336
+ */
337
+ _updatedDate?: Date;
338
+ }
339
+ interface GetCategoryOptions {
340
+ /** number of sub category levels */
341
+ levels?: number | null;
342
+ /** filter categories by publish statuses. When empty will return PUBLISHED and UNPUBLISHED */
343
+ publishStatus?: PublishStatus$1;
344
+ }
345
+ interface EnterpriseOnboardingOptions {
346
+ /** The account name of the organization - will be used as the organization category name */
347
+ accountName?: string;
348
+ }
349
+
350
+ interface HttpClient {
351
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
352
+ }
353
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
354
+ type HttpResponse<T = any> = {
355
+ data: T;
356
+ status: number;
357
+ statusText: string;
358
+ headers: any;
359
+ request?: any;
360
+ };
361
+ type RequestOptions<_TResponse = any, Data = any> = {
362
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
363
+ url: string;
364
+ data?: Data;
365
+ params?: URLSearchParams;
366
+ } & APIMetadata;
367
+ type APIMetadata = {
368
+ methodFqn?: string;
369
+ entityFqdn?: string;
370
+ packageName?: string;
371
+ };
372
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
373
+ __type: 'event-definition';
374
+ type: Type;
375
+ isDomainEvent?: boolean;
376
+ transformations?: unknown;
377
+ __payload: Payload;
378
+ };
379
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
380
+
381
+ declare const __metadata$3: {
382
+ PACKAGE_NAME: string;
383
+ };
384
+ declare function createCategory(httpClient: HttpClient): (category: EnterpriseCategory) => Promise<EnterpriseCategory & {
385
+ _id: string;
386
+ publishStatus: PublishStatus$1;
387
+ }>;
388
+ declare function deleteCategory(httpClient: HttpClient): (categoryId: string) => Promise<void>;
389
+ declare function updateCategory(httpClient: HttpClient): (_id: string, category: UpdateCategory) => Promise<EnterpriseCategory & {
390
+ _id: string;
391
+ publishStatus: PublishStatus$1;
392
+ }>;
393
+ declare function getCategory(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<EnterpriseCategoryTree & {
394
+ category?: {
395
+ _id: string;
396
+ publishStatus: PublishStatus$1;
397
+ } | undefined;
398
+ subCategories: (any | undefined)[];
399
+ }>;
400
+ declare function enterpriseOnboarding(httpClient: HttpClient): (accountId: string, options?: EnterpriseOnboardingOptions) => Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
401
+ declare function getMediaManagerCategories(httpClient: HttpClient): () => Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
402
+ declare const onEnterpriseCategoryCreated: EventDefinition<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
403
+ declare const onEnterpriseCategoryDeleted: EventDefinition<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
404
+ declare const onEnterpriseCategoryUpdated: EventDefinition<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
405
+
406
+ type index_d$3_CreateCategoryRequest = CreateCategoryRequest;
407
+ type index_d$3_CreateCategoryResponse = CreateCategoryResponse;
408
+ type index_d$3_CreateCategoryResponseNonNullableFields = CreateCategoryResponseNonNullableFields;
409
+ type index_d$3_DeleteCategoryRequest = DeleteCategoryRequest;
410
+ type index_d$3_DeleteCategoryResponse = DeleteCategoryResponse;
411
+ type index_d$3_EnterpriseCategory = EnterpriseCategory;
412
+ type index_d$3_EnterpriseCategoryCreatedEnvelope = EnterpriseCategoryCreatedEnvelope;
413
+ type index_d$3_EnterpriseCategoryDeletedEnvelope = EnterpriseCategoryDeletedEnvelope;
414
+ type index_d$3_EnterpriseCategoryTree = EnterpriseCategoryTree;
415
+ type index_d$3_EnterpriseCategoryUpdatedEnvelope = EnterpriseCategoryUpdatedEnvelope;
416
+ type index_d$3_EnterpriseOnboardingOptions = EnterpriseOnboardingOptions;
417
+ type index_d$3_EnterpriseOnboardingRequest = EnterpriseOnboardingRequest;
418
+ type index_d$3_EnterpriseOnboardingResponse = EnterpriseOnboardingResponse;
419
+ type index_d$3_EnterpriseOnboardingResponseNonNullableFields = EnterpriseOnboardingResponseNonNullableFields;
420
+ type index_d$3_GetCategoryOptions = GetCategoryOptions;
421
+ type index_d$3_GetCategoryRequest = GetCategoryRequest;
422
+ type index_d$3_GetCategoryResponse = GetCategoryResponse;
423
+ type index_d$3_GetCategoryResponseNonNullableFields = GetCategoryResponseNonNullableFields;
424
+ type index_d$3_GetMediaManagerCategoriesRequest = GetMediaManagerCategoriesRequest;
425
+ type index_d$3_GetMediaManagerCategoriesResponse = GetMediaManagerCategoriesResponse;
426
+ type index_d$3_GetMediaManagerCategoriesResponseNonNullableFields = GetMediaManagerCategoriesResponseNonNullableFields;
427
+ type index_d$3_LinkItemsToCategoryRequest = LinkItemsToCategoryRequest;
428
+ type index_d$3_LinkItemsToCategoryResponse = LinkItemsToCategoryResponse;
429
+ type index_d$3_UnlinkItemsFromCategoryRequest = UnlinkItemsFromCategoryRequest;
430
+ type index_d$3_UnlinkItemsFromCategoryResponse = UnlinkItemsFromCategoryResponse;
431
+ type index_d$3_UpdateCategory = UpdateCategory;
432
+ type index_d$3_UpdateCategoryRequest = UpdateCategoryRequest;
433
+ type index_d$3_UpdateCategoryResponse = UpdateCategoryResponse;
434
+ type index_d$3_UpdateCategoryResponseNonNullableFields = UpdateCategoryResponseNonNullableFields;
435
+ declare const index_d$3_createCategory: typeof createCategory;
436
+ declare const index_d$3_deleteCategory: typeof deleteCategory;
437
+ declare const index_d$3_enterpriseOnboarding: typeof enterpriseOnboarding;
438
+ declare const index_d$3_getCategory: typeof getCategory;
439
+ declare const index_d$3_getMediaManagerCategories: typeof getMediaManagerCategories;
440
+ declare const index_d$3_onEnterpriseCategoryCreated: typeof onEnterpriseCategoryCreated;
441
+ declare const index_d$3_onEnterpriseCategoryDeleted: typeof onEnterpriseCategoryDeleted;
442
+ declare const index_d$3_onEnterpriseCategoryUpdated: typeof onEnterpriseCategoryUpdated;
443
+ declare const index_d$3_updateCategory: typeof updateCategory;
444
+ declare namespace index_d$3 {
445
+ export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$3_CreateCategoryRequest as CreateCategoryRequest, type index_d$3_CreateCategoryResponse as CreateCategoryResponse, type index_d$3_CreateCategoryResponseNonNullableFields as CreateCategoryResponseNonNullableFields, type index_d$3_DeleteCategoryRequest as DeleteCategoryRequest, type index_d$3_DeleteCategoryResponse as DeleteCategoryResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$3_EnterpriseCategory as EnterpriseCategory, type index_d$3_EnterpriseCategoryCreatedEnvelope as EnterpriseCategoryCreatedEnvelope, type index_d$3_EnterpriseCategoryDeletedEnvelope as EnterpriseCategoryDeletedEnvelope, type index_d$3_EnterpriseCategoryTree as EnterpriseCategoryTree, type index_d$3_EnterpriseCategoryUpdatedEnvelope as EnterpriseCategoryUpdatedEnvelope, type index_d$3_EnterpriseOnboardingOptions as EnterpriseOnboardingOptions, type index_d$3_EnterpriseOnboardingRequest as EnterpriseOnboardingRequest, type index_d$3_EnterpriseOnboardingResponse as EnterpriseOnboardingResponse, type index_d$3_EnterpriseOnboardingResponseNonNullableFields as EnterpriseOnboardingResponseNonNullableFields, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type index_d$3_GetCategoryOptions as GetCategoryOptions, type index_d$3_GetCategoryRequest as GetCategoryRequest, type index_d$3_GetCategoryResponse as GetCategoryResponse, type index_d$3_GetCategoryResponseNonNullableFields as GetCategoryResponseNonNullableFields, type index_d$3_GetMediaManagerCategoriesRequest as GetMediaManagerCategoriesRequest, type index_d$3_GetMediaManagerCategoriesResponse as GetMediaManagerCategoriesResponse, type index_d$3_GetMediaManagerCategoriesResponseNonNullableFields as GetMediaManagerCategoriesResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$3_LinkItemsToCategoryRequest as LinkItemsToCategoryRequest, type index_d$3_LinkItemsToCategoryResponse as LinkItemsToCategoryResponse, MediaType$2 as MediaType, type MessageEnvelope$3 as MessageEnvelope, PublishStatus$1 as PublishStatus, type index_d$3_UnlinkItemsFromCategoryRequest as UnlinkItemsFromCategoryRequest, type index_d$3_UnlinkItemsFromCategoryResponse as UnlinkItemsFromCategoryResponse, type index_d$3_UpdateCategory as UpdateCategory, type index_d$3_UpdateCategoryRequest as UpdateCategoryRequest, type index_d$3_UpdateCategoryResponse as UpdateCategoryResponse, type index_d$3_UpdateCategoryResponseNonNullableFields as UpdateCategoryResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_createCategory as createCategory, index_d$3_deleteCategory as deleteCategory, index_d$3_enterpriseOnboarding as enterpriseOnboarding, index_d$3_getCategory as getCategory, index_d$3_getMediaManagerCategories as getMediaManagerCategories, index_d$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, index_d$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, index_d$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, index_d$3_updateCategory as updateCategory };
446
+ }
447
+
448
+ /**
449
+ * Duration for video fits better if there will be type specific media item.. however, is it ok to implement
450
+ * an additional one of field called details?
451
+ */
452
+ interface EnterpriseMediaItem {
453
+ /**
454
+ * Id of the item in public media
455
+ * @readonly
456
+ */
457
+ _id?: string;
458
+ /**
459
+ * Media type of the item
460
+ * @readonly
461
+ */
462
+ mediaType?: MediaType$1;
463
+ /**
464
+ * Size of the uploaded file in bytes.
465
+ * @readonly
466
+ */
467
+ sizeInBytes?: string | null;
468
+ /** The item title, part of searchable fields */
469
+ title?: string | null;
470
+ /**
471
+ * The aspect ratio of the item
472
+ * An object containing urls for different views of the item
473
+ * @readonly
474
+ */
475
+ assets?: ItemAssets;
476
+ /** Tags describing the image, part of searchable fields */
477
+ displayTags?: string[] | null;
478
+ /** Tags for internal client use, part of searchable fields */
479
+ internalTags?: string[] | null;
480
+ /**
481
+ * Tags for filtering items in the search
482
+ * @readonly
483
+ */
484
+ systemTags?: string[] | null;
485
+ /**
486
+ * Category ids this item belongs to
487
+ * @readonly
488
+ */
489
+ parentCategoryIds?: string[] | null;
490
+ /** Status of the item */
491
+ publishStatus?: PublishStatus;
492
+ /**
493
+ * Date and time the item was created.
494
+ * @readonly
495
+ */
496
+ _createdDate?: Date;
497
+ /**
498
+ * Date and time the item was updated.
499
+ * @readonly
500
+ */
501
+ _updatedDate?: Date;
502
+ /**
503
+ * An internal id used with different wix media systems
504
+ * @readonly
505
+ */
506
+ internalId?: string | null;
507
+ }
508
+ declare enum MediaType$1 {
509
+ MIXED = "MIXED",
510
+ IMAGE = "IMAGE",
511
+ VIDEO = "VIDEO",
512
+ AUDIO = "AUDIO",
513
+ DOCUMENT = "DOCUMENT",
514
+ VECTOR = "VECTOR",
515
+ ARCHIVE = "ARCHIVE",
516
+ MODEL3D = "MODEL3D"
517
+ }
518
+ interface ItemAssets extends ItemAssetsAssetsOneOf {
519
+ /** Assets for image media type */
520
+ image?: string;
521
+ /** Assets for video media type */
522
+ video?: string;
523
+ /** Assets for vector media type */
524
+ vector?: string;
525
+ /** Assets for audio media type */
526
+ audio?: string;
527
+ /** Assets for document media type */
528
+ document?: string;
529
+ /** Information about the archive. */
530
+ archive?: Archive$1;
531
+ /** Information about the 3D Model. */
532
+ model3d?: Model3D$1;
533
+ }
534
+ /** @oneof */
535
+ interface ItemAssetsAssetsOneOf {
536
+ /** Assets for image media type */
537
+ image?: string;
538
+ /** Assets for video media type */
539
+ video?: string;
540
+ /** Assets for vector media type */
541
+ vector?: string;
542
+ /** Assets for audio media type */
543
+ audio?: string;
544
+ /** Assets for document media type */
545
+ document?: string;
546
+ /** Information about the archive. */
547
+ archive?: Archive$1;
548
+ /** Information about the 3D Model. */
549
+ model3d?: Model3D$1;
550
+ }
551
+ interface VideoResolution$1 {
552
+ /** Video URL. */
553
+ url?: string;
554
+ /** Video height. */
555
+ height?: number;
556
+ /** Video width. */
557
+ width?: number;
558
+ /**
559
+ * Video format
560
+ * Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
561
+ * '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm' ]
562
+ */
563
+ format?: string;
564
+ }
565
+ interface Archive$1 {
566
+ /** WixMedia ID. */
567
+ _id?: string;
568
+ /** Archive URL. */
569
+ url?: string;
570
+ /**
571
+ * Archive URL expiration date (when relevant).
572
+ * @readonly
573
+ */
574
+ urlExpirationDate?: Date;
575
+ /** Archive size in bytes. */
576
+ sizeInBytes?: string | null;
577
+ /** Archive filename. */
578
+ filename?: string | null;
579
+ }
580
+ interface Model3D$1 {
581
+ /** WixMedia 3D ID. */
582
+ _id?: string;
583
+ /** 3D URL. */
584
+ url?: string;
585
+ /** 3D thumbnail Image */
586
+ thumbnail?: string;
587
+ /** 3D alt text. */
588
+ altText?: string | null;
589
+ /**
590
+ * 3D URL expiration date (when relevant).
591
+ * @readonly
592
+ */
593
+ urlExpirationDate?: Date;
594
+ /**
595
+ * 3D filename.
596
+ * @readonly
597
+ */
598
+ filename?: string | null;
599
+ /**
600
+ * 3D size in bytes.
601
+ * @readonly
602
+ */
603
+ sizeInBytes?: string | null;
604
+ }
605
+ declare enum PublishStatus {
606
+ UNDEFINED = "UNDEFINED",
607
+ UNPUBLISHED = "UNPUBLISHED",
608
+ PUBLISHED = "PUBLISHED",
609
+ WIX_ONLY = "WIX_ONLY"
610
+ }
611
+ interface ItemCategoriesChanged {
612
+ /** A list of the current item categories */
613
+ itemCategoryIds?: string[] | null;
614
+ /** A list of the categories that where unlinked from the item */
615
+ unlinkedCategoryIds?: string[] | null;
616
+ /** A list of the categories that where linked to the item */
617
+ linkedCategoryIds?: string[] | null;
618
+ /** The full updated item information */
619
+ entity?: EnterpriseMediaItem;
620
+ }
621
+ interface ItemUploadCallbackRequest {
622
+ /** The item id of the created item */
623
+ itemId?: string;
624
+ /** The callback passed to the upload endpoint */
625
+ callbackToken?: string;
626
+ }
627
+ interface ItemUploadCallbackResponse {
628
+ }
629
+ interface GenerateFileUploadUrlRequest$1 {
630
+ /** The uploaded original file name including the extension */
631
+ fileName?: string;
632
+ /** The file mime-type - will be used to identify the type of media */
633
+ contentType?: string;
634
+ /** The file size in bytes */
635
+ sizeInBytes?: number;
636
+ /**
637
+ * An optional list of categories to link the created item to
638
+ * The item will be linked to the account category automatically
639
+ */
640
+ categoryIds?: string[] | null;
641
+ }
642
+ interface GenerateFileUploadUrlResponse$1 {
643
+ /** The upload url to upload the file to */
644
+ uploadUrl?: string;
645
+ }
646
+ interface ImportFileRequest$1 {
647
+ /** The url to the file to be imported */
648
+ url: string;
649
+ /** The uploaded original file name including the extension - will be used as the initial display name */
650
+ fileName?: string | null;
651
+ /** The file mime-type - will be used to identify the type of media */
652
+ contentType?: string | null;
653
+ /** The file size in bytes */
654
+ sizeInBytes?: number | null;
655
+ /**
656
+ * An optional list of categories to link the created item to
657
+ * The item will be linked to the account category automatically
658
+ */
659
+ categoryIds?: string[] | null;
660
+ /** The media type of the uploaded file */
661
+ mediaType?: MediaType$1;
662
+ /**
663
+ * A unique identifier of the client that imported the file
664
+ * This information will exist in the system_tags field prefixed by '_external_uploader:{uploader_system_tag}'
665
+ */
666
+ uploaderSystemTag?: string | null;
667
+ /**
668
+ * An additional container for external information
669
+ * mostly used to pass identifying information of related entities in external services
670
+ * This information will exist in the system_tags field prefixed by '_external_uploader_info:{uploader_info_system_tag}'
671
+ */
672
+ uploaderInfoSystemTag?: string | null;
673
+ }
674
+ interface ImportFileResponse$1 {
675
+ /**
676
+ * Partial item - without the assets
677
+ * At this stage of implementation only the 'internal_id' will be filled
678
+ * all other required values will be fake values
679
+ */
680
+ item?: EnterpriseMediaItem;
681
+ }
682
+ interface SearchItemsRequest {
683
+ /** Items search query */
684
+ query?: Search;
685
+ }
686
+ interface Search extends SearchPagingMethodOneOf {
687
+ /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
688
+ paging?: Paging;
689
+ /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
690
+ filter?: Record<string, any> | null;
691
+ /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
692
+ sort?: Sorting$2[];
693
+ /** free text to match in searchable fields */
694
+ search?: SearchDetails;
695
+ }
696
+ /** @oneof */
697
+ interface SearchPagingMethodOneOf {
698
+ /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
699
+ paging?: Paging;
700
+ }
701
+ interface Sorting$2 {
702
+ /** Name of the field to sort by. */
703
+ fieldName?: string;
704
+ /** Sort order. */
705
+ order?: SortOrder$2;
706
+ }
707
+ declare enum SortOrder$2 {
708
+ ASC = "ASC",
709
+ DESC = "DESC"
710
+ }
711
+ interface SearchDetails {
712
+ /** search term or expression */
713
+ expression?: string | null;
714
+ }
715
+ interface Paging {
716
+ /** Number of items to load. */
717
+ limit?: number | null;
718
+ /** Number of items to skip in the current sort order. */
719
+ offset?: number | null;
720
+ }
721
+ interface SearchItemsResponse {
722
+ /** A list of items matching the request */
723
+ items?: EnterpriseMediaItem[];
724
+ /** Information about the search results. */
725
+ pagingMetadata?: PagingMetadataV2$2;
726
+ }
727
+ interface PagingMetadataV2$2 {
728
+ /** Number of items returned in the response. */
729
+ count?: number | null;
730
+ /** Offset that was requested. */
731
+ offset?: number | null;
732
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
733
+ total?: number | null;
734
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
735
+ cursors?: Cursors$2;
736
+ }
737
+ interface Cursors$2 {
738
+ /** Cursor pointing to next page in the list of results. */
739
+ next?: string | null;
740
+ }
741
+ interface QueryItemsRequest {
742
+ /** Items query */
743
+ query?: QueryV2;
744
+ }
745
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
746
+ /** Paging options to limit and skip the number of items. */
747
+ paging?: Paging;
748
+ /**
749
+ * Filter object in the following format:
750
+ * `"filter" : {
751
+ * "fieldName1": "value1",
752
+ * "fieldName2":{"$operator":"value2"}
753
+ * }`
754
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
755
+ */
756
+ filter?: Record<string, any> | null;
757
+ /**
758
+ * Sort object in the following format:
759
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
760
+ */
761
+ sort?: Sorting$2[];
762
+ }
763
+ /** @oneof */
764
+ interface QueryV2PagingMethodOneOf {
765
+ /** Paging options to limit and skip the number of items. */
766
+ paging?: Paging;
767
+ }
768
+ interface QueryItemsResponse {
769
+ /** A list of items matching the request */
770
+ items?: EnterpriseMediaItem[];
771
+ /** Information for the next request. */
772
+ pagingMetadata?: PagingMetadataV2$2;
773
+ }
774
+ interface UpdateItemRequest {
775
+ /** The category object that will be created */
776
+ item: EnterpriseMediaItem;
777
+ }
778
+ interface UpdateItemResponse {
779
+ /** Updated item info */
780
+ item?: EnterpriseMediaItem;
781
+ }
782
+ interface PublishStatusChanged {
783
+ /** The new item status */
784
+ publishStatus?: PublishStatus;
785
+ /** The full updated item information */
786
+ entity?: EnterpriseMediaItem;
787
+ }
788
+ interface BulkUpdateItemRequest {
789
+ /** Requests to update individual item */
790
+ updateItemRequests: UpdateItemRequest[];
791
+ /** Should the response return the updated item */
792
+ returnEntity?: boolean;
793
+ }
794
+ interface BulkUpdateItemResponse {
795
+ /** Requests to update individual item */
796
+ results?: BulkItemUpdateResult[];
797
+ /** Metadata of the operation */
798
+ bulkActionMetadata?: BulkActionMetadata$1;
799
+ }
800
+ interface BulkItemUpdateResult {
801
+ /** updated item metadata */
802
+ itemMetadata?: ItemMetadata$1;
803
+ /** only returned if operation was successful and if returnEntity flag was on */
804
+ item?: EnterpriseMediaItem;
805
+ }
806
+ interface ItemMetadata$1 {
807
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
808
+ _id?: string | null;
809
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
810
+ originalIndex?: number;
811
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
812
+ success?: boolean;
813
+ /** Details about the error in case of failure. */
814
+ error?: ApplicationError$1;
815
+ }
816
+ interface ApplicationError$1 {
817
+ /** Error code. */
818
+ code?: string;
819
+ /** Description of the error. */
820
+ description?: string;
821
+ /** Data related to the error. */
822
+ data?: Record<string, any> | null;
823
+ }
824
+ interface BulkActionMetadata$1 {
825
+ /** Number of items that were successfully processed. */
826
+ totalSuccesses?: number;
827
+ /** Number of items that couldn't be processed. */
828
+ totalFailures?: number;
829
+ /** Number of failures without details because detailed failure threshold was exceeded. */
830
+ undetailedFailures?: number;
831
+ }
832
+ interface GetItemRequest {
833
+ /** Item id */
834
+ itemId: string;
835
+ }
836
+ interface GetItemResponse {
837
+ /** item info */
838
+ item?: EnterpriseMediaItem;
839
+ }
840
+ interface LinkItemToCategoriesRequest {
841
+ /** The item id */
842
+ itemId: string;
843
+ /** The category ids that the item will be linked to */
844
+ categoryIds?: string[];
845
+ }
846
+ interface LinkItemToCategoriesResponse {
847
+ /** The linked category ids */
848
+ linkedCategoryIds?: string[] | null;
849
+ }
850
+ interface UnlinkItemFromCategoriesRequest {
851
+ /** The item id */
852
+ itemId: string;
853
+ /** The category ids that the item will be unlinked from */
854
+ categoryIds?: string[];
855
+ }
856
+ interface UnlinkItemFromCategoriesResponse {
857
+ /** The unlinked category ids */
858
+ unlinkedCategoryIds?: string[] | null;
859
+ }
860
+ interface OverwriteItemCategoriesRequest {
861
+ /** The item id */
862
+ itemId: string;
863
+ /** The category ids the item will be linked to after this operation */
864
+ categoryIds?: string[];
865
+ }
866
+ interface OverwriteItemCategoriesResponse {
867
+ /** The linked category ids */
868
+ linkedCategoryIds?: string[] | null;
869
+ /** The unlinked category ids */
870
+ unlinkedCategoryIds?: string[] | null;
871
+ }
872
+ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
873
+ createdEvent?: EntityCreatedEvent$2;
874
+ updatedEvent?: EntityUpdatedEvent$2;
875
+ deletedEvent?: EntityDeletedEvent$2;
876
+ actionEvent?: ActionEvent$2;
877
+ /**
878
+ * Unique event ID.
879
+ * Allows clients to ignore duplicate webhooks.
880
+ */
881
+ _id?: string;
882
+ /**
883
+ * Assumes actions are also always typed to an entity_type
884
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
885
+ */
886
+ entityFqdn?: string;
887
+ /**
888
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
889
+ * This is although the created/updated/deleted notion is duplication of the oneof types
890
+ * Example: created/updated/deleted/started/completed/email_opened
891
+ */
892
+ slug?: string;
893
+ /** ID of the entity associated with the event. */
894
+ entityId?: string;
895
+ /** Event timestamp. */
896
+ eventTime?: Date;
897
+ /**
898
+ * Whether the event was triggered as a result of a privacy regulation application
899
+ * (for example, GDPR).
900
+ */
901
+ triggeredByAnonymizeRequest?: boolean | null;
902
+ /** If present, indicates the action that triggered the event. */
903
+ originatedFrom?: string | null;
904
+ /**
905
+ * A sequence number defining the order of updates to the underlying entity.
906
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
907
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
908
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
909
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
910
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
911
+ */
912
+ entityEventSequence?: string | null;
913
+ }
914
+ /** @oneof */
915
+ interface DomainEventBodyOneOf$2 {
916
+ createdEvent?: EntityCreatedEvent$2;
917
+ updatedEvent?: EntityUpdatedEvent$2;
918
+ deletedEvent?: EntityDeletedEvent$2;
919
+ actionEvent?: ActionEvent$2;
920
+ }
921
+ interface EntityCreatedEvent$2 {
922
+ entity?: string;
923
+ }
924
+ interface EntityUpdatedEvent$2 {
925
+ /**
926
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
927
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
928
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
929
+ */
930
+ currentEntity?: string;
931
+ }
932
+ interface EntityDeletedEvent$2 {
933
+ /** Entity that was deleted */
934
+ deletedEntity?: string | null;
935
+ }
936
+ interface ActionEvent$2 {
937
+ body?: string;
938
+ }
939
+ interface MessageEnvelope$2 {
940
+ /** App instance ID. */
941
+ instanceId?: string | null;
942
+ /** Event type. */
943
+ eventType?: string;
944
+ /** The identification type and identity data. */
945
+ identity?: IdentificationData$2;
946
+ /** Stringify payload. */
947
+ data?: string;
948
+ }
949
+ interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
950
+ /** ID of a site visitor that has not logged in to the site. */
951
+ anonymousVisitorId?: string;
952
+ /** ID of a site visitor that has logged in to the site. */
953
+ memberId?: string;
954
+ /** ID of a Wix user (site owner, contributor, etc.). */
955
+ wixUserId?: string;
956
+ /** ID of an app. */
957
+ appId?: string;
958
+ /** @readonly */
959
+ identityType?: WebhookIdentityType$2;
960
+ }
961
+ /** @oneof */
962
+ interface IdentificationDataIdOneOf$2 {
963
+ /** ID of a site visitor that has not logged in to the site. */
964
+ anonymousVisitorId?: string;
965
+ /** ID of a site visitor that has logged in to the site. */
966
+ memberId?: string;
967
+ /** ID of a Wix user (site owner, contributor, etc.). */
968
+ wixUserId?: string;
969
+ /** ID of an app. */
970
+ appId?: string;
971
+ }
972
+ declare enum WebhookIdentityType$2 {
973
+ UNKNOWN = "UNKNOWN",
974
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
975
+ MEMBER = "MEMBER",
976
+ WIX_USER = "WIX_USER",
977
+ APP = "APP"
978
+ }
979
+ interface GenerateFileUploadUrlResponseNonNullableFields$1 {
980
+ uploadUrl: string;
981
+ }
982
+ interface ImportFileResponseNonNullableFields$1 {
983
+ item?: {
984
+ _id: string;
985
+ mediaType: MediaType$1;
986
+ assets?: {
987
+ image: string;
988
+ video: string;
989
+ vector: string;
990
+ audio: string;
991
+ document: string;
992
+ archive?: {
993
+ _id: string;
994
+ url: string;
995
+ };
996
+ model3d?: {
997
+ _id: string;
998
+ url: string;
999
+ thumbnail: string;
1000
+ };
1001
+ };
1002
+ publishStatus: PublishStatus;
1003
+ };
1004
+ }
1005
+ interface SearchItemsResponseNonNullableFields {
1006
+ items: {
1007
+ _id: string;
1008
+ mediaType: MediaType$1;
1009
+ assets?: {
1010
+ image: string;
1011
+ video: string;
1012
+ vector: string;
1013
+ audio: string;
1014
+ document: string;
1015
+ archive?: {
1016
+ _id: string;
1017
+ url: string;
1018
+ };
1019
+ model3d?: {
1020
+ _id: string;
1021
+ url: string;
1022
+ thumbnail: string;
1023
+ };
1024
+ };
1025
+ publishStatus: PublishStatus;
1026
+ }[];
1027
+ }
1028
+ interface QueryItemsResponseNonNullableFields {
1029
+ items: {
1030
+ _id: string;
1031
+ mediaType: MediaType$1;
1032
+ assets?: {
1033
+ image: string;
1034
+ video: string;
1035
+ vector: string;
1036
+ audio: string;
1037
+ document: string;
1038
+ archive?: {
1039
+ _id: string;
1040
+ url: string;
1041
+ };
1042
+ model3d?: {
1043
+ _id: string;
1044
+ url: string;
1045
+ thumbnail: string;
1046
+ };
1047
+ };
1048
+ publishStatus: PublishStatus;
1049
+ }[];
1050
+ }
1051
+ interface UpdateItemResponseNonNullableFields {
1052
+ item?: {
1053
+ _id: string;
1054
+ mediaType: MediaType$1;
1055
+ assets?: {
1056
+ image: string;
1057
+ video: string;
1058
+ vector: string;
1059
+ audio: string;
1060
+ document: string;
1061
+ archive?: {
1062
+ _id: string;
1063
+ url: string;
1064
+ };
1065
+ model3d?: {
1066
+ _id: string;
1067
+ url: string;
1068
+ thumbnail: string;
1069
+ };
1070
+ };
1071
+ publishStatus: PublishStatus;
1072
+ };
1073
+ }
1074
+ interface BulkUpdateItemResponseNonNullableFields {
1075
+ results: {
1076
+ itemMetadata?: {
1077
+ originalIndex: number;
1078
+ success: boolean;
1079
+ error?: {
1080
+ code: string;
1081
+ description: string;
1082
+ };
1083
+ };
1084
+ item?: {
1085
+ _id: string;
1086
+ mediaType: MediaType$1;
1087
+ assets?: {
1088
+ image: string;
1089
+ video: string;
1090
+ vector: string;
1091
+ audio: string;
1092
+ document: string;
1093
+ archive?: {
1094
+ _id: string;
1095
+ url: string;
1096
+ };
1097
+ model3d?: {
1098
+ _id: string;
1099
+ url: string;
1100
+ thumbnail: string;
1101
+ };
1102
+ };
1103
+ publishStatus: PublishStatus;
1104
+ };
1105
+ }[];
1106
+ bulkActionMetadata?: {
1107
+ totalSuccesses: number;
1108
+ totalFailures: number;
1109
+ undetailedFailures: number;
1110
+ };
1111
+ }
1112
+ interface GetItemResponseNonNullableFields {
1113
+ item?: {
1114
+ _id: string;
1115
+ mediaType: MediaType$1;
1116
+ assets?: {
1117
+ image: string;
1118
+ video: string;
1119
+ vector: string;
1120
+ audio: string;
1121
+ document: string;
1122
+ archive?: {
1123
+ _id: string;
1124
+ url: string;
1125
+ };
1126
+ model3d?: {
1127
+ _id: string;
1128
+ url: string;
1129
+ thumbnail: string;
1130
+ };
1131
+ };
1132
+ publishStatus: PublishStatus;
1133
+ };
1134
+ }
1135
+ interface BaseEventMetadata$2 {
1136
+ /** App instance ID. */
1137
+ instanceId?: string | null;
1138
+ /** Event type. */
1139
+ eventType?: string;
1140
+ /** The identification type and identity data. */
1141
+ identity?: IdentificationData$2;
1142
+ }
1143
+ interface EventMetadata$2 extends BaseEventMetadata$2 {
1144
+ /**
1145
+ * Unique event ID.
1146
+ * Allows clients to ignore duplicate webhooks.
1147
+ */
1148
+ _id?: string;
1149
+ /**
1150
+ * Assumes actions are also always typed to an entity_type
1151
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1152
+ */
1153
+ entityFqdn?: string;
1154
+ /**
1155
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1156
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1157
+ * Example: created/updated/deleted/started/completed/email_opened
1158
+ */
1159
+ slug?: string;
1160
+ /** ID of the entity associated with the event. */
1161
+ entityId?: string;
1162
+ /** Event timestamp. */
1163
+ eventTime?: Date;
1164
+ /**
1165
+ * Whether the event was triggered as a result of a privacy regulation application
1166
+ * (for example, GDPR).
1167
+ */
1168
+ triggeredByAnonymizeRequest?: boolean | null;
1169
+ /** If present, indicates the action that triggered the event. */
1170
+ originatedFrom?: string | null;
1171
+ /**
1172
+ * A sequence number defining the order of updates to the underlying entity.
1173
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1174
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1175
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1176
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1177
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1178
+ */
1179
+ entityEventSequence?: string | null;
1180
+ }
1181
+ interface EnterpriseItemCreatedEnvelope {
1182
+ entity: EnterpriseMediaItem;
1183
+ metadata: EventMetadata$2;
1184
+ }
1185
+ interface EnterpriseItemUpdatedEnvelope {
1186
+ entity: EnterpriseMediaItem;
1187
+ metadata: EventMetadata$2;
1188
+ }
1189
+ interface EnterpriseItemItemCategoriesChangedEnvelope {
1190
+ data: ItemCategoriesChanged;
1191
+ metadata: EventMetadata$2;
1192
+ }
1193
+ interface EnterpriseItemPublishStatusChangedEnvelope {
1194
+ data: PublishStatusChanged;
1195
+ metadata: EventMetadata$2;
1196
+ }
1197
+ interface ItemUploadCallbackOptions {
1198
+ /** The item id of the created item */
1199
+ itemId?: string;
1200
+ /** The callback passed to the upload endpoint */
1201
+ callbackToken?: string;
1202
+ }
1203
+ interface GenerateFileUploadUrlOptions$1 {
1204
+ /** The uploaded original file name including the extension */
1205
+ fileName?: string;
1206
+ /** The file mime-type - will be used to identify the type of media */
1207
+ contentType?: string;
1208
+ /** The file size in bytes */
1209
+ sizeInBytes?: number;
1210
+ /**
1211
+ * An optional list of categories to link the created item to
1212
+ * The item will be linked to the account category automatically
1213
+ */
1214
+ categoryIds?: string[] | null;
1215
+ }
1216
+ interface ImportFileOptions$1 {
1217
+ /** The uploaded original file name including the extension - will be used as the initial display name */
1218
+ fileName?: string | null;
1219
+ /** The file mime-type - will be used to identify the type of media */
1220
+ contentType?: string | null;
1221
+ /** The file size in bytes */
1222
+ sizeInBytes?: number | null;
1223
+ /**
1224
+ * An optional list of categories to link the created item to
1225
+ * The item will be linked to the account category automatically
1226
+ */
1227
+ categoryIds?: string[] | null;
1228
+ /** The media type of the uploaded file */
1229
+ mediaType?: MediaType$1;
1230
+ /**
1231
+ * A unique identifier of the client that imported the file
1232
+ * This information will exist in the system_tags field prefixed by '_external_uploader:{uploader_system_tag}'
1233
+ */
1234
+ uploaderSystemTag?: string | null;
1235
+ /**
1236
+ * An additional container for external information
1237
+ * mostly used to pass identifying information of related entities in external services
1238
+ * This information will exist in the system_tags field prefixed by '_external_uploader_info:{uploader_info_system_tag}'
1239
+ */
1240
+ uploaderInfoSystemTag?: string | null;
1241
+ }
1242
+ interface SearchItemsOptions {
1243
+ /** Items search query */
1244
+ query?: Search;
1245
+ }
1246
+ interface QueryOffsetResult {
1247
+ currentPage: number | undefined;
1248
+ totalPages: number | undefined;
1249
+ totalCount: number | undefined;
1250
+ hasNext: () => boolean;
1251
+ hasPrev: () => boolean;
1252
+ length: number;
1253
+ pageSize: number;
1254
+ }
1255
+ interface ItemsQueryResult extends QueryOffsetResult {
1256
+ items: EnterpriseMediaItem[];
1257
+ query: ItemsQueryBuilder;
1258
+ next: () => Promise<ItemsQueryResult>;
1259
+ prev: () => Promise<ItemsQueryResult>;
1260
+ }
1261
+ interface ItemsQueryBuilder {
1262
+ /** @param propertyName - Property whose value is compared with `value`.
1263
+ * @param value - Value to compare against.
1264
+ * @documentationMaturity preview
1265
+ */
1266
+ eq: (propertyName: 'sizeInBytes' | 'title' | '_createdDate' | '_updatedDate', value: any) => ItemsQueryBuilder;
1267
+ /** @param propertyName - Property whose value is compared with `values`.
1268
+ * @param values - List of values to compare against.
1269
+ * @documentationMaturity preview
1270
+ */
1271
+ hasSome: (propertyName: 'parentCategoryIds', value: any[]) => ItemsQueryBuilder;
1272
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1273
+ * @documentationMaturity preview
1274
+ */
1275
+ ascending: (...propertyNames: Array<'sizeInBytes' | 'title' | '_createdDate' | '_updatedDate'>) => ItemsQueryBuilder;
1276
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1277
+ * @documentationMaturity preview
1278
+ */
1279
+ descending: (...propertyNames: Array<'sizeInBytes' | 'title' | '_createdDate' | '_updatedDate'>) => ItemsQueryBuilder;
1280
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1281
+ * @documentationMaturity preview
1282
+ */
1283
+ limit: (limit: number) => ItemsQueryBuilder;
1284
+ /** @param skip - Number of items to skip in the query results before returning the results.
1285
+ * @documentationMaturity preview
1286
+ */
1287
+ skip: (skip: number) => ItemsQueryBuilder;
1288
+ /** @documentationMaturity preview */
1289
+ find: () => Promise<ItemsQueryResult>;
1290
+ }
1291
+ interface UpdateItem {
1292
+ /**
1293
+ * Id of the item in public media
1294
+ * @readonly
1295
+ */
1296
+ _id?: string;
1297
+ /**
1298
+ * Media type of the item
1299
+ * @readonly
1300
+ */
1301
+ mediaType?: MediaType$1;
1302
+ /**
1303
+ * Size of the uploaded file in bytes.
1304
+ * @readonly
1305
+ */
1306
+ sizeInBytes?: string | null;
1307
+ /** The item title, part of searchable fields */
1308
+ title?: string | null;
1309
+ /**
1310
+ * The aspect ratio of the item
1311
+ * An object containing urls for different views of the item
1312
+ * @readonly
1313
+ */
1314
+ assets?: ItemAssets;
1315
+ /** Tags describing the image, part of searchable fields */
1316
+ displayTags?: string[] | null;
1317
+ /** Tags for internal client use, part of searchable fields */
1318
+ internalTags?: string[] | null;
1319
+ /**
1320
+ * Tags for filtering items in the search
1321
+ * @readonly
1322
+ */
1323
+ systemTags?: string[] | null;
1324
+ /**
1325
+ * Category ids this item belongs to
1326
+ * @readonly
1327
+ */
1328
+ parentCategoryIds?: string[] | null;
1329
+ /** Status of the item */
1330
+ publishStatus?: PublishStatus;
1331
+ /**
1332
+ * Date and time the item was created.
1333
+ * @readonly
1334
+ */
1335
+ _createdDate?: Date;
1336
+ /**
1337
+ * Date and time the item was updated.
1338
+ * @readonly
1339
+ */
1340
+ _updatedDate?: Date;
1341
+ /**
1342
+ * An internal id used with different wix media systems
1343
+ * @readonly
1344
+ */
1345
+ internalId?: string | null;
1346
+ }
1347
+ interface BulkUpdateItemOptions {
1348
+ /** Should the response return the updated item */
1349
+ returnEntity?: boolean;
1350
+ }
1351
+ interface LinkItemToCategoriesOptions {
1352
+ /** The category ids that the item will be linked to */
1353
+ categoryIds?: string[];
1354
+ }
1355
+ interface UnlinkItemFromCategoriesOptions {
1356
+ /** The category ids that the item will be unlinked from */
1357
+ categoryIds?: string[];
1358
+ }
1359
+ interface OverwriteItemCategoriesOptions {
1360
+ /** The category ids the item will be linked to after this operation */
1361
+ categoryIds?: string[];
1362
+ }
1363
+
1364
+ declare const __metadata$2: {
1365
+ PACKAGE_NAME: string;
1366
+ };
1367
+ declare function itemUploadCallback(httpClient: HttpClient): (options?: ItemUploadCallbackOptions) => Promise<void>;
1368
+ declare function generateFileUploadUrl$1(httpClient: HttpClient): (options?: GenerateFileUploadUrlOptions$1) => Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
1369
+ declare function importFile$1(httpClient: HttpClient): (url: string, options?: ImportFileOptions$1) => Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
1370
+ declare function searchItems(httpClient: HttpClient): (options?: SearchItemsOptions) => Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
1371
+ declare function queryItems(httpClient: HttpClient): () => ItemsQueryBuilder;
1372
+ declare function updateItem(httpClient: HttpClient): (_id: string, item: UpdateItem) => Promise<EnterpriseMediaItem & {
1373
+ _id: string;
1374
+ mediaType: MediaType$1;
1375
+ assets?: {
1376
+ image: string;
1377
+ video: string;
1378
+ vector: string;
1379
+ audio: string;
1380
+ document: string;
1381
+ archive?: {
1382
+ _id: string;
1383
+ url: string;
1384
+ } | undefined;
1385
+ model3d?: {
1386
+ _id: string;
1387
+ url: string;
1388
+ thumbnail: string;
1389
+ } | undefined;
1390
+ } | undefined;
1391
+ publishStatus: PublishStatus;
1392
+ }>;
1393
+ declare function bulkUpdateItem(httpClient: HttpClient): (updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions) => Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
1394
+ declare function getItem(httpClient: HttpClient): (itemId: string) => Promise<EnterpriseMediaItem & {
1395
+ _id: string;
1396
+ mediaType: MediaType$1;
1397
+ assets?: {
1398
+ image: string;
1399
+ video: string;
1400
+ vector: string;
1401
+ audio: string;
1402
+ document: string;
1403
+ archive?: {
1404
+ _id: string;
1405
+ url: string;
1406
+ } | undefined;
1407
+ model3d?: {
1408
+ _id: string;
1409
+ url: string;
1410
+ thumbnail: string;
1411
+ } | undefined;
1412
+ } | undefined;
1413
+ publishStatus: PublishStatus;
1414
+ }>;
1415
+ declare function linkItemToCategories(httpClient: HttpClient): (itemId: string, options?: LinkItemToCategoriesOptions) => Promise<LinkItemToCategoriesResponse>;
1416
+ declare function unlinkItemFromCategories(httpClient: HttpClient): (itemId: string, options?: UnlinkItemFromCategoriesOptions) => Promise<UnlinkItemFromCategoriesResponse>;
1417
+ declare function overwriteItemCategories(httpClient: HttpClient): (itemId: string, options?: OverwriteItemCategoriesOptions) => Promise<OverwriteItemCategoriesResponse>;
1418
+ declare const onEnterpriseItemCreated: EventDefinition<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
1419
+ declare const onEnterpriseItemUpdated: EventDefinition<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
1420
+ declare const onEnterpriseItemItemCategoriesChanged: EventDefinition<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
1421
+ declare const onEnterpriseItemPublishStatusChanged: EventDefinition<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
1422
+
1423
+ type index_d$2_BulkItemUpdateResult = BulkItemUpdateResult;
1424
+ type index_d$2_BulkUpdateItemOptions = BulkUpdateItemOptions;
1425
+ type index_d$2_BulkUpdateItemRequest = BulkUpdateItemRequest;
1426
+ type index_d$2_BulkUpdateItemResponse = BulkUpdateItemResponse;
1427
+ type index_d$2_BulkUpdateItemResponseNonNullableFields = BulkUpdateItemResponseNonNullableFields;
1428
+ type index_d$2_EnterpriseItemCreatedEnvelope = EnterpriseItemCreatedEnvelope;
1429
+ type index_d$2_EnterpriseItemItemCategoriesChangedEnvelope = EnterpriseItemItemCategoriesChangedEnvelope;
1430
+ type index_d$2_EnterpriseItemPublishStatusChangedEnvelope = EnterpriseItemPublishStatusChangedEnvelope;
1431
+ type index_d$2_EnterpriseItemUpdatedEnvelope = EnterpriseItemUpdatedEnvelope;
1432
+ type index_d$2_EnterpriseMediaItem = EnterpriseMediaItem;
1433
+ type index_d$2_GetItemRequest = GetItemRequest;
1434
+ type index_d$2_GetItemResponse = GetItemResponse;
1435
+ type index_d$2_GetItemResponseNonNullableFields = GetItemResponseNonNullableFields;
1436
+ type index_d$2_ItemAssets = ItemAssets;
1437
+ type index_d$2_ItemAssetsAssetsOneOf = ItemAssetsAssetsOneOf;
1438
+ type index_d$2_ItemCategoriesChanged = ItemCategoriesChanged;
1439
+ type index_d$2_ItemUploadCallbackOptions = ItemUploadCallbackOptions;
1440
+ type index_d$2_ItemUploadCallbackRequest = ItemUploadCallbackRequest;
1441
+ type index_d$2_ItemUploadCallbackResponse = ItemUploadCallbackResponse;
1442
+ type index_d$2_ItemsQueryBuilder = ItemsQueryBuilder;
1443
+ type index_d$2_ItemsQueryResult = ItemsQueryResult;
1444
+ type index_d$2_LinkItemToCategoriesOptions = LinkItemToCategoriesOptions;
1445
+ type index_d$2_LinkItemToCategoriesRequest = LinkItemToCategoriesRequest;
1446
+ type index_d$2_LinkItemToCategoriesResponse = LinkItemToCategoriesResponse;
1447
+ type index_d$2_OverwriteItemCategoriesOptions = OverwriteItemCategoriesOptions;
1448
+ type index_d$2_OverwriteItemCategoriesRequest = OverwriteItemCategoriesRequest;
1449
+ type index_d$2_OverwriteItemCategoriesResponse = OverwriteItemCategoriesResponse;
1450
+ type index_d$2_Paging = Paging;
1451
+ type index_d$2_PublishStatus = PublishStatus;
1452
+ declare const index_d$2_PublishStatus: typeof PublishStatus;
1453
+ type index_d$2_PublishStatusChanged = PublishStatusChanged;
1454
+ type index_d$2_QueryItemsRequest = QueryItemsRequest;
1455
+ type index_d$2_QueryItemsResponse = QueryItemsResponse;
1456
+ type index_d$2_QueryItemsResponseNonNullableFields = QueryItemsResponseNonNullableFields;
1457
+ type index_d$2_QueryV2 = QueryV2;
1458
+ type index_d$2_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
1459
+ type index_d$2_Search = Search;
1460
+ type index_d$2_SearchDetails = SearchDetails;
1461
+ type index_d$2_SearchItemsOptions = SearchItemsOptions;
1462
+ type index_d$2_SearchItemsRequest = SearchItemsRequest;
1463
+ type index_d$2_SearchItemsResponse = SearchItemsResponse;
1464
+ type index_d$2_SearchItemsResponseNonNullableFields = SearchItemsResponseNonNullableFields;
1465
+ type index_d$2_SearchPagingMethodOneOf = SearchPagingMethodOneOf;
1466
+ type index_d$2_UnlinkItemFromCategoriesOptions = UnlinkItemFromCategoriesOptions;
1467
+ type index_d$2_UnlinkItemFromCategoriesRequest = UnlinkItemFromCategoriesRequest;
1468
+ type index_d$2_UnlinkItemFromCategoriesResponse = UnlinkItemFromCategoriesResponse;
1469
+ type index_d$2_UpdateItem = UpdateItem;
1470
+ type index_d$2_UpdateItemRequest = UpdateItemRequest;
1471
+ type index_d$2_UpdateItemResponse = UpdateItemResponse;
1472
+ type index_d$2_UpdateItemResponseNonNullableFields = UpdateItemResponseNonNullableFields;
1473
+ declare const index_d$2_bulkUpdateItem: typeof bulkUpdateItem;
1474
+ declare const index_d$2_getItem: typeof getItem;
1475
+ declare const index_d$2_itemUploadCallback: typeof itemUploadCallback;
1476
+ declare const index_d$2_linkItemToCategories: typeof linkItemToCategories;
1477
+ declare const index_d$2_onEnterpriseItemCreated: typeof onEnterpriseItemCreated;
1478
+ declare const index_d$2_onEnterpriseItemItemCategoriesChanged: typeof onEnterpriseItemItemCategoriesChanged;
1479
+ declare const index_d$2_onEnterpriseItemPublishStatusChanged: typeof onEnterpriseItemPublishStatusChanged;
1480
+ declare const index_d$2_onEnterpriseItemUpdated: typeof onEnterpriseItemUpdated;
1481
+ declare const index_d$2_overwriteItemCategories: typeof overwriteItemCategories;
1482
+ declare const index_d$2_queryItems: typeof queryItems;
1483
+ declare const index_d$2_searchItems: typeof searchItems;
1484
+ declare const index_d$2_unlinkItemFromCategories: typeof unlinkItemFromCategories;
1485
+ declare const index_d$2_updateItem: typeof updateItem;
1486
+ declare namespace index_d$2 {
1487
+ export { type ActionEvent$2 as ActionEvent, type ApplicationError$1 as ApplicationError, type Archive$1 as Archive, type BaseEventMetadata$2 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type index_d$2_BulkItemUpdateResult as BulkItemUpdateResult, type index_d$2_BulkUpdateItemOptions as BulkUpdateItemOptions, type index_d$2_BulkUpdateItemRequest as BulkUpdateItemRequest, type index_d$2_BulkUpdateItemResponse as BulkUpdateItemResponse, type index_d$2_BulkUpdateItemResponseNonNullableFields as BulkUpdateItemResponseNonNullableFields, type Cursors$2 as Cursors, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type index_d$2_EnterpriseItemCreatedEnvelope as EnterpriseItemCreatedEnvelope, type index_d$2_EnterpriseItemItemCategoriesChangedEnvelope as EnterpriseItemItemCategoriesChangedEnvelope, type index_d$2_EnterpriseItemPublishStatusChangedEnvelope as EnterpriseItemPublishStatusChangedEnvelope, type index_d$2_EnterpriseItemUpdatedEnvelope as EnterpriseItemUpdatedEnvelope, type index_d$2_EnterpriseMediaItem as EnterpriseMediaItem, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type GenerateFileUploadUrlOptions$1 as GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest$1 as GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse$1 as GenerateFileUploadUrlResponse, type GenerateFileUploadUrlResponseNonNullableFields$1 as GenerateFileUploadUrlResponseNonNullableFields, type index_d$2_GetItemRequest as GetItemRequest, type index_d$2_GetItemResponse as GetItemResponse, type index_d$2_GetItemResponseNonNullableFields as GetItemResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type ImportFileOptions$1 as ImportFileOptions, type ImportFileRequest$1 as ImportFileRequest, type ImportFileResponse$1 as ImportFileResponse, type ImportFileResponseNonNullableFields$1 as ImportFileResponseNonNullableFields, type index_d$2_ItemAssets as ItemAssets, type index_d$2_ItemAssetsAssetsOneOf as ItemAssetsAssetsOneOf, type index_d$2_ItemCategoriesChanged as ItemCategoriesChanged, type ItemMetadata$1 as ItemMetadata, type index_d$2_ItemUploadCallbackOptions as ItemUploadCallbackOptions, type index_d$2_ItemUploadCallbackRequest as ItemUploadCallbackRequest, type index_d$2_ItemUploadCallbackResponse as ItemUploadCallbackResponse, type index_d$2_ItemsQueryBuilder as ItemsQueryBuilder, type index_d$2_ItemsQueryResult as ItemsQueryResult, type index_d$2_LinkItemToCategoriesOptions as LinkItemToCategoriesOptions, type index_d$2_LinkItemToCategoriesRequest as LinkItemToCategoriesRequest, type index_d$2_LinkItemToCategoriesResponse as LinkItemToCategoriesResponse, MediaType$1 as MediaType, type MessageEnvelope$2 as MessageEnvelope, type Model3D$1 as Model3D, type index_d$2_OverwriteItemCategoriesOptions as OverwriteItemCategoriesOptions, type index_d$2_OverwriteItemCategoriesRequest as OverwriteItemCategoriesRequest, type index_d$2_OverwriteItemCategoriesResponse as OverwriteItemCategoriesResponse, type index_d$2_Paging as Paging, type PagingMetadataV2$2 as PagingMetadataV2, index_d$2_PublishStatus as PublishStatus, type index_d$2_PublishStatusChanged as PublishStatusChanged, type index_d$2_QueryItemsRequest as QueryItemsRequest, type index_d$2_QueryItemsResponse as QueryItemsResponse, type index_d$2_QueryItemsResponseNonNullableFields as QueryItemsResponseNonNullableFields, type index_d$2_QueryV2 as QueryV2, type index_d$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$2_Search as Search, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchItemsOptions as SearchItemsOptions, type index_d$2_SearchItemsRequest as SearchItemsRequest, type index_d$2_SearchItemsResponse as SearchItemsResponse, type index_d$2_SearchItemsResponseNonNullableFields as SearchItemsResponseNonNullableFields, type index_d$2_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$2_UnlinkItemFromCategoriesOptions as UnlinkItemFromCategoriesOptions, type index_d$2_UnlinkItemFromCategoriesRequest as UnlinkItemFromCategoriesRequest, type index_d$2_UnlinkItemFromCategoriesResponse as UnlinkItemFromCategoriesResponse, type index_d$2_UpdateItem as UpdateItem, type index_d$2_UpdateItemRequest as UpdateItemRequest, type index_d$2_UpdateItemResponse as UpdateItemResponse, type index_d$2_UpdateItemResponseNonNullableFields as UpdateItemResponseNonNullableFields, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$1 as generateFileUploadUrl, index_d$2_getItem as getItem, importFile$1 as importFile, index_d$2_itemUploadCallback as itemUploadCallback, index_d$2_linkItemToCategories as linkItemToCategories, index_d$2_onEnterpriseItemCreated as onEnterpriseItemCreated, index_d$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, index_d$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, index_d$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, index_d$2_overwriteItemCategories as overwriteItemCategories, index_d$2_queryItems as queryItems, index_d$2_searchItems as searchItems, index_d$2_unlinkItemFromCategories as unlinkItemFromCategories, index_d$2_updateItem as updateItem };
1488
+ }
1489
+
1490
+ interface FileDescriptor {
1491
+ /**
1492
+ * File ID. Generated when a file is uploaded to the Media Manager.
1493
+ * @readonly
1494
+ */
1495
+ _id?: string;
1496
+ /** File name as it appears in the Media Manager. */
1497
+ displayName?: string;
1498
+ /**
1499
+ * Static URL of the file.
1500
+ * @readonly
1501
+ */
1502
+ url?: string;
1503
+ /** ID of the file's parent folder. */
1504
+ parentFolderId?: string | null;
1505
+ /**
1506
+ * File hash.
1507
+ * @readonly
1508
+ */
1509
+ hash?: string;
1510
+ /**
1511
+ * Size of the uploaded file in bytes.
1512
+ * @readonly
1513
+ */
1514
+ sizeInBytes?: string | null;
1515
+ /**
1516
+ * Whether the link to the uploaded file is public or private. Private links require a token.
1517
+ * @readonly
1518
+ */
1519
+ private?: boolean;
1520
+ /**
1521
+ * Media file type.
1522
+ * @readonly
1523
+ */
1524
+ mediaType?: MediaType;
1525
+ /**
1526
+ * Media file content.
1527
+ * @readonly
1528
+ */
1529
+ media?: FileMedia;
1530
+ /**
1531
+ * Status of the file that was uploaded.
1532
+ * * `FAILED`: The file failed to upload, for example, during media post processing.
1533
+ * * `READY`: The file uploaded, finished all processing, and is ready for use.
1534
+ * * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
1535
+ * @readonly
1536
+ */
1537
+ operationStatus?: OperationStatus;
1538
+ /**
1539
+ * URL where the file was uploaded from.
1540
+ * @readonly
1541
+ */
1542
+ sourceUrl?: string | null;
1543
+ /**
1544
+ * URL of the file's thumbnail.
1545
+ * @readonly
1546
+ */
1547
+ thumbnailUrl?: string | null;
1548
+ /** 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. */
1549
+ labels?: string[];
1550
+ /**
1551
+ * Date and time the file was created.
1552
+ * @readonly
1553
+ */
1554
+ _createdDate?: Date;
1555
+ /**
1556
+ * Date and time the file was updated.
1557
+ * @readonly
1558
+ */
1559
+ _updatedDate?: Date;
1560
+ /**
1561
+ * The Wix site ID where the media file is stored.
1562
+ * @readonly
1563
+ */
1564
+ siteId?: string;
1565
+ /**
1566
+ * State of the file.
1567
+ * @readonly
1568
+ */
1569
+ state?: State$1;
1570
+ }
1571
+ declare enum MediaType {
1572
+ UNKNOWN = "UNKNOWN",
1573
+ IMAGE = "IMAGE",
1574
+ VIDEO = "VIDEO",
1575
+ AUDIO = "AUDIO",
1576
+ DOCUMENT = "DOCUMENT",
1577
+ VECTOR = "VECTOR",
1578
+ ARCHIVE = "ARCHIVE",
1579
+ MODEL3D = "MODEL3D",
1580
+ OTHER = "OTHER"
1581
+ }
1582
+ interface FileMedia extends FileMediaMediaOneOf {
1583
+ /** Information about the image. */
1584
+ image?: ImageMedia;
1585
+ /** Information about the video. */
1586
+ video?: string;
1587
+ /** Information about the audio. */
1588
+ audio?: AudioV2;
1589
+ /** Information about the document. */
1590
+ document?: string;
1591
+ /** Information about the vector. */
1592
+ vector?: ImageMedia;
1593
+ /** Information about the archive. */
1594
+ archive?: Archive;
1595
+ /** Information about the 3D Model. */
1596
+ model3d?: Model3D;
1597
+ }
1598
+ /** @oneof */
1599
+ interface FileMediaMediaOneOf {
1600
+ /** Information about the image. */
1601
+ image?: ImageMedia;
1602
+ /** Information about the video. */
1603
+ video?: string;
1604
+ /** Information about the audio. */
1605
+ audio?: AudioV2;
1606
+ /** Information about the document. */
1607
+ document?: string;
1608
+ /** Information about the vector. */
1609
+ vector?: ImageMedia;
1610
+ /** Information about the archive. */
1611
+ archive?: Archive;
1612
+ /** Information about the 3D Model. */
1613
+ model3d?: Model3D;
1614
+ }
1615
+ interface ImageMedia {
1616
+ /** Image data. */
1617
+ image?: string;
1618
+ /** Image colors. */
1619
+ colors?: Colors;
1620
+ /** Information about faces in the image. Use to crop images without cutting out faces. */
1621
+ faces?: FaceRecognition[];
1622
+ /**
1623
+ * Information about the image preview.
1624
+ * You can use this to display a preview for private images.
1625
+ */
1626
+ previewImage?: string;
1627
+ /**
1628
+ * Optional, An AI generated description of the image
1629
+ * @readonly
1630
+ */
1631
+ caption?: string | null;
1632
+ }
1633
+ interface Colors {
1634
+ /** Main color of the image. */
1635
+ prominent?: Color;
1636
+ /** Color palette of the image. */
1637
+ palette?: Color[];
1638
+ }
1639
+ interface Color {
1640
+ /** HEX color. */
1641
+ hex?: string | null;
1642
+ /** RGB color. */
1643
+ rgb?: ColorRGB;
1644
+ }
1645
+ interface ColorRGB {
1646
+ /** Red channel. */
1647
+ r?: number | null;
1648
+ /** Green channel. */
1649
+ g?: number | null;
1650
+ /** Blue channel. */
1651
+ b?: number | null;
1652
+ }
1653
+ /**
1654
+ * Using this object you can crop images while centering on faces
1655
+ * ------------------------
1656
+ * | |
1657
+ * | x,y |
1658
+ * | *-------- |
1659
+ * | | . . | |
1660
+ * | | | | height |
1661
+ * | | \ / | |
1662
+ * | | | |
1663
+ * | --------- |
1664
+ * | width |
1665
+ * | |
1666
+ * |______________________|
1667
+ */
1668
+ interface FaceRecognition {
1669
+ /** The accuracy percentage of the face recognition. The likelihood that a face is detected. */
1670
+ confidence?: number;
1671
+ /** Top left x pixel coordinate of the face. */
1672
+ x?: number;
1673
+ /** Top left y pixel coordinate of the face. */
1674
+ y?: number;
1675
+ /** Face pixel height. */
1676
+ height?: number;
1677
+ /** Face pixel width. */
1678
+ width?: number;
1679
+ }
1680
+ interface VideoResolution {
1681
+ /** Video URL. */
1682
+ url?: string;
1683
+ /** Video height. */
1684
+ height?: number;
1685
+ /** Video width. */
1686
+ width?: number;
1687
+ /**
1688
+ * Video format
1689
+ * Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
1690
+ * '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]
1691
+ */
1692
+ format?: string;
1693
+ }
1694
+ interface AudioV2 {
1695
+ /** WixMedia ID. */
1696
+ _id?: string;
1697
+ /** Audio formats available for this file. */
1698
+ assets?: string[];
1699
+ /**
1700
+ * Audio bitrate.
1701
+ * @readonly
1702
+ */
1703
+ bitrate?: number | null;
1704
+ /**
1705
+ * Audio format.
1706
+ * @readonly
1707
+ */
1708
+ format?: string | null;
1709
+ /**
1710
+ * Audio duration in seconds.
1711
+ * @readonly
1712
+ */
1713
+ duration?: number | null;
1714
+ /**
1715
+ * Audio size in bytes.
1716
+ * @readonly
1717
+ */
1718
+ sizeInBytes?: string | null;
1719
+ }
1720
+ interface Archive {
1721
+ /** WixMedia ID. */
1722
+ _id?: string;
1723
+ /** Archive URL. */
1724
+ url?: string;
1725
+ /**
1726
+ * Archive URL expiration date (when relevant).
1727
+ * @readonly
1728
+ */
1729
+ urlExpirationDate?: Date;
1730
+ /** Archive size in bytes. */
1731
+ sizeInBytes?: string | null;
1732
+ /** Archive filename. */
1733
+ filename?: string | null;
1734
+ }
1735
+ interface Model3D {
1736
+ /** WixMedia 3D ID. */
1737
+ _id?: string;
1738
+ /** 3D URL. */
1739
+ url?: string;
1740
+ /** 3D thumbnail Image */
1741
+ thumbnail?: string;
1742
+ /** 3D alt text. */
1743
+ altText?: string | null;
1744
+ /**
1745
+ * 3D URL expiration date (when relevant).
1746
+ * @readonly
1747
+ */
1748
+ urlExpirationDate?: Date;
1749
+ /**
1750
+ * 3D filename.
1751
+ * @readonly
1752
+ */
1753
+ filename?: string | null;
1754
+ /**
1755
+ * 3D size in bytes.
1756
+ * @readonly
1757
+ */
1758
+ sizeInBytes?: string | null;
1759
+ }
1760
+ interface OtherMedia {
1761
+ /** WixMedia ID. for use with Site Media APIs only */
1762
+ _id?: string;
1763
+ /**
1764
+ * The media type of the file: 'site_icon', 'swf', 'package', 'ufont'
1765
+ * @readonly
1766
+ */
1767
+ internalMediaType?: string | null;
1768
+ /**
1769
+ * size in bytes. Optional.
1770
+ * @readonly
1771
+ */
1772
+ sizeInBytes?: string | null;
1773
+ }
1774
+ declare enum OperationStatus {
1775
+ /** File upload or processing failed */
1776
+ FAILED = "FAILED",
1777
+ /** File is ready for consumption */
1778
+ READY = "READY",
1779
+ /** File is waiting for processing or currently being processed */
1780
+ PENDING = "PENDING"
1781
+ }
1782
+ declare enum State$1 {
1783
+ /** File is ready for consumption */
1784
+ OK = "OK",
1785
+ /** Deleted file */
1786
+ DELETED = "DELETED"
1787
+ }
1788
+ declare enum Namespace$1 {
1789
+ NO_NAMESPACE = "NO_NAMESPACE",
1790
+ OTHERS = "OTHERS",
1791
+ /** ANY = 2; */
1792
+ WIX_VIDEO = "WIX_VIDEO",
1793
+ /** _nsWixMusic */
1794
+ WIX_MUSIC = "WIX_MUSIC",
1795
+ /** _nsArtStore */
1796
+ ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
1797
+ /** _nsDigitalProduct */
1798
+ WIX_ECOM = "WIX_ECOM",
1799
+ /** _nsPhotoShareApp */
1800
+ PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
1801
+ /** _nsSharingApp, */
1802
+ SHARING_APP = "SHARING_APP",
1803
+ /** engage */
1804
+ CHAT = "CHAT",
1805
+ /** logobuilder */
1806
+ LOGO_BUILDER = "LOGO_BUILDER",
1807
+ /** WixExposure */
1808
+ ALBUMS_OLD = "ALBUMS_OLD",
1809
+ /** chat-mobile-uploads */
1810
+ CHAT_MOBILE = "CHAT_MOBILE",
1811
+ /** _nsWixForms */
1812
+ WIX_FORMS = "WIX_FORMS"
1813
+ }
1814
+ interface IdentityInfo {
1815
+ /** The type of the user that uploaded the file */
1816
+ identityType?: IdentityType;
1817
+ /** User Id. empty when UNKNOWN */
1818
+ identityId?: string | null;
1819
+ }
1820
+ declare enum IdentityType {
1821
+ UNKNOWN = "UNKNOWN",
1822
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1823
+ MEMBER = "MEMBER",
1824
+ WIX_USER = "WIX_USER",
1825
+ APP = "APP"
1826
+ }
1827
+ interface FileReady {
1828
+ /** File entity that is ready with full information */
1829
+ file?: FileDescriptor;
1830
+ /** External information passed in the file import or upload. */
1831
+ externalInfo?: ExternalInfo;
1832
+ /** The File was restored from the trash-bin */
1833
+ triggeredByUndelete?: boolean;
1834
+ }
1835
+ interface ExternalInfo {
1836
+ /** External information to pass in the File Ready or File Failed events. */
1837
+ origin?: string;
1838
+ /** External IDs to pass in the File Ready or File Failed events. */
1839
+ externalIds?: string[];
1840
+ }
1841
+ interface FileFailed {
1842
+ /** External information passed in the file import or upload. */
1843
+ externalInfo?: ExternalInfo;
1844
+ }
1845
+ interface GenerateFilesDownloadUrlRequest {
1846
+ /** IDs or Wix media URLs of the files to download. */
1847
+ fileIds: string[];
1848
+ }
1849
+ interface GenerateFilesDownloadUrlResponse {
1850
+ /** URL for downloading the compressed file containing the specified files in the Media Manager. */
1851
+ downloadUrl?: string;
1852
+ }
1853
+ interface GenerateFileDownloadUrlRequest {
1854
+ /** File ID, or the file's Wix media URL. */
1855
+ fileId: string;
1856
+ /**
1857
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
1858
+ *
1859
+ * **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
1860
+ */
1861
+ downloadFileName?: string | null;
1862
+ /**
1863
+ * The time that it takes in minutes for the download URL to expire. <br />
1864
+ * Default: `600`. <br />
1865
+ * Limit: `525600` (1 year).
1866
+ */
1867
+ expirationInMinutes?: number | null;
1868
+ /**
1869
+ * The redirect URL for when the temporary download URL with a token expires. <br />
1870
+ * Default: A 403 Forbidden response page.
1871
+ */
1872
+ expirationRedirectUrl?: string | null;
1873
+ /**
1874
+ * Keys for downloading different assets (format and quality) of a file.
1875
+ * Default: `src`, key representing the original file's format and quality.
1876
+ */
1877
+ assetKeys?: string[] | null;
1878
+ /**
1879
+ * Whether the link downloads the file or opens the file in the browser.
1880
+ *
1881
+ * - `ATTACHMENT`: The link downloads the file.
1882
+ * - `INLINE`: The link opens the file in the browser.
1883
+ *
1884
+ * Default: `ATTACHMENT`
1885
+ */
1886
+ contentDisposition?: ContentDisposition;
1887
+ }
1888
+ declare enum ContentDisposition {
1889
+ /** Using the link in the browser will download the file */
1890
+ ATTACHMENT = "ATTACHMENT",
1891
+ /** Using the link in the browser will open the file in the browser */
1892
+ INLINE = "INLINE"
1893
+ }
1894
+ interface GenerateFileDownloadUrlResponse {
1895
+ /** URL for downloading a specific file in the Media Manager. */
1896
+ downloadUrls?: DownloadUrl[];
1897
+ }
1898
+ interface DownloadUrl {
1899
+ /** The file download URL. */
1900
+ url?: string;
1901
+ /**
1902
+ * Key for downloading a different asset (format and quality) of a file.
1903
+ * Default: `src`, key representing the original file's format and quality.
1904
+ */
1905
+ assetKey?: string;
1906
+ }
1907
+ interface GetFileDescriptorRequest {
1908
+ /** File ID, or the file's Wix media URL. */
1909
+ fileId: string;
1910
+ }
1911
+ interface GetFileDescriptorResponse {
1912
+ /** Information about the file. */
1913
+ file?: FileDescriptor;
1914
+ }
1915
+ interface GetFileDescriptorsRequest {
1916
+ /** File IDs, or the files' Wix media URLs. */
1917
+ fileIds: string[];
1918
+ }
1919
+ interface GetFileDescriptorsResponse {
1920
+ /** Information about the requested files. */
1921
+ files?: FileDescriptor[];
1922
+ }
1923
+ interface UpdateFileRequest {
1924
+ /** ID or Wix media URL of the file to update. */
1925
+ fileId?: string;
1926
+ /** File name that appears in the Media Manager. */
1927
+ displayName?: string | null;
1928
+ /**
1929
+ * ID of the file's parent folder. <br />
1930
+ * Default: `media-root`.
1931
+ */
1932
+ parentFolderId?: string | null;
1933
+ /** 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. */
1934
+ labels?: string[] | null;
1935
+ }
1936
+ interface UpdateFileResponse {
1937
+ /** Information about the updated file. */
1938
+ file?: FileDescriptor;
1939
+ }
1940
+ interface UpdateFileDescriptorRequest {
1941
+ /** The file to update. */
1942
+ file: FileDescriptor;
1943
+ }
1944
+ interface UpdateFileDescriptorResponse {
1945
+ /** Information about the updated file. */
1946
+ file?: FileDescriptor;
1947
+ }
1948
+ interface GenerateFileUploadUrlRequest {
1949
+ /** File mime type. */
1950
+ mimeType: string | null;
1951
+ /**
1952
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
1953
+ * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
1954
+ */
1955
+ fileName?: string | null;
1956
+ /**
1957
+ * File size in bytes.
1958
+ * @readonly
1959
+ */
1960
+ sizeInBytes?: string | null;
1961
+ /**
1962
+ * ID of the file's parent folder. <br />
1963
+ * Default: `media-root`.
1964
+ */
1965
+ parentFolderId?: string | null;
1966
+ /** Whether the link to the uploaded file is public or private. See `Private Files` in terminology. */
1967
+ private?: boolean | null;
1968
+ /** 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. */
1969
+ labels?: string[] | null;
1970
+ /** A place to map an external entity to an uploaded file in the Wix Media Manager. */
1971
+ externalInfo?: ExternalInfo;
1972
+ /**
1973
+ * The path by folder names to create the file under.
1974
+ * In case a folder in the path does not exist it will be created
1975
+ * If multiple folders with the same name exist, the first one will be used
1976
+ * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
1977
+ * example: 'videos/2024/december'
1978
+ */
1979
+ filePath?: string | null;
1980
+ }
1981
+ interface GenerateFileUploadUrlResponse {
1982
+ /** The URL for uploading a file to the Media Manager. */
1983
+ uploadUrl?: string;
1984
+ }
1985
+ interface GenerateFileResumableUploadUrlRequest {
1986
+ /** File mime type. */
1987
+ mimeType: string | null;
1988
+ /**
1989
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
1990
+ * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
1991
+ */
1992
+ fileName?: string | null;
1993
+ /**
1994
+ * File size in bytes.
1995
+ * @readonly
1996
+ */
1997
+ sizeInBytes?: string | null;
1998
+ /**
1999
+ * ID of the file's parent folder. <br />
2000
+ * Default: `media-root`.
2001
+ */
2002
+ parentFolderId?: string | null;
2003
+ /** Whether the link to the imported file is public or private. See `Private Files` in terminology. */
2004
+ private?: boolean | null;
2005
+ /** 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. */
2006
+ labels?: string[] | null;
2007
+ /** The upload protocol to use for implementing the resumable upload. */
2008
+ uploadProtocol?: UploadProtocol;
2009
+ /**
2010
+ * The path by folder names to create the file under.
2011
+ * In case a folder in the path does not exist it will be created
2012
+ * If multiple folders with the same name exist, the first one will be used
2013
+ * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
2014
+ * example: 'videos/2024/december'
2015
+ */
2016
+ filePath?: string | null;
2017
+ }
2018
+ declare enum UploadProtocol {
2019
+ /** The upload protocol to use for implementing the resumable upload. */
2020
+ TUS = "TUS"
2021
+ }
2022
+ interface GenerateFileResumableUploadUrlResponse {
2023
+ /**
2024
+ * The upload protocol to use for implementing the resumable upload.
2025
+ *
2026
+ * Supported values: `"TUS"`
2027
+ */
2028
+ uploadProtocol?: UploadProtocol;
2029
+ /** The URL for uploading a file to the Media Manager. */
2030
+ uploadUrl?: string;
2031
+ /** Single-use upload token. */
2032
+ uploadToken?: string;
2033
+ }
2034
+ interface ImportFileRequest {
2035
+ /** Publicly accessible external file URL. */
2036
+ url: string;
2037
+ /** Media type of the file to import. */
2038
+ mediaType?: MediaType;
2039
+ /** File name that appears in the Media Manager. */
2040
+ displayName?: string | null;
2041
+ /**
2042
+ * ID of the file's parent folder. <br />
2043
+ * Default: `media-root`.
2044
+ */
2045
+ parentFolderId?: string | null;
2046
+ /** Whether the link to the imported file is public or private. */
2047
+ private?: boolean | null;
2048
+ /** 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. */
2049
+ labels?: string[] | null;
2050
+ /** File mime type. */
2051
+ mimeType?: string;
2052
+ /** A place to map an external entity to an imported file in the Wix Media Manager. */
2053
+ externalInfo?: ExternalInfo;
2054
+ /** Optional parameters that should be sent with the external URL. */
2055
+ urlParams?: Record<string, any> | null;
2056
+ /** Optional headers that should be sent with the external URL. */
2057
+ urlHeaders?: Record<string, any> | null;
2058
+ /**
2059
+ * The path by folder names to create the file under.
2060
+ * In case a folder in the path does not exist it will be created
2061
+ * If multiple folders with the same name exist, the first one will be used
2062
+ * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
2063
+ * example: 'videos/2024/december'
2064
+ */
2065
+ filePath?: string | null;
2066
+ }
2067
+ interface ImportFileResponse {
2068
+ /** Information about the imported file. */
2069
+ file?: FileDescriptor;
2070
+ }
2071
+ interface BulkImportFilesRequest {
2072
+ /** Information about the files to import. */
2073
+ importFileRequests: ImportFileRequest[];
2074
+ }
2075
+ interface BulkImportFilesResponse {
2076
+ /** Information about the imported files. */
2077
+ files?: FileDescriptor[];
2078
+ }
2079
+ interface BulkImportFileRequest {
2080
+ /** Information about the files to import. */
2081
+ importFileRequests: ImportFileRequest[];
2082
+ /**
2083
+ * Whether to include the imported File Descriptor in the response. Set to `false` to exclude the File Descriptor from the returned object.
2084
+ *
2085
+ * Default: `true`
2086
+ */
2087
+ returnEntity?: boolean | null;
2088
+ }
2089
+ interface BulkImportFileResponse {
2090
+ /** Items created by bulk action. */
2091
+ results?: BulkImportFileResult[];
2092
+ /** Bulk action metadata. */
2093
+ bulkActionMetadata?: BulkActionMetadata;
2094
+ }
2095
+ interface BulkImportFileResult {
2096
+ /** Item metadata. */
2097
+ itemMetadata?: ItemMetadata;
2098
+ /** Imported file. This field is returned if the operation was successful and `returnEntity` is not set to `false`. */
2099
+ item?: FileDescriptor;
2100
+ }
2101
+ interface ItemMetadata {
2102
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2103
+ _id?: string | null;
2104
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
2105
+ originalIndex?: number;
2106
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2107
+ success?: boolean;
2108
+ /** Details about the error in case of failure. */
2109
+ error?: ApplicationError;
2110
+ }
2111
+ interface ApplicationError {
2112
+ /** Error code. */
2113
+ code?: string;
2114
+ /** Description of the error. */
2115
+ description?: string;
2116
+ /** Data related to the error. */
2117
+ data?: Record<string, any> | null;
2118
+ }
2119
+ interface BulkActionMetadata {
2120
+ /** Number of items that were successfully processed. */
2121
+ totalSuccesses?: number;
2122
+ /** Number of items that couldn't be processed. */
2123
+ totalFailures?: number;
2124
+ /** Number of failures without details because detailed failure threshold was exceeded. */
2125
+ undetailedFailures?: number;
2126
+ }
2127
+ interface ListFilesRequest {
2128
+ /**
2129
+ * ID of the file's parent folder. <br />
2130
+ * Default:`media-root`.
2131
+ */
2132
+ parentFolderId?: string | null;
2133
+ /**
2134
+ * File media type.
2135
+ * excluding: OTHER media type
2136
+ */
2137
+ mediaTypes?: MediaType[];
2138
+ /** Whether the link to the imported file is public or private. */
2139
+ private?: boolean | null;
2140
+ /**
2141
+ * Field name and order to sort by. One of:
2142
+ *
2143
+ * - `displayName`
2144
+ * - `_updatedDate`
2145
+ * - `sizeInBytes`
2146
+ *
2147
+ * Default: `_updatedDate` in `"DESC"` order.
2148
+ */
2149
+ sort?: Sorting$1;
2150
+ /** Cursor and paging information. */
2151
+ paging?: CursorPaging$1;
2152
+ }
2153
+ interface Sorting$1 {
2154
+ /** Name of the field to sort by. */
2155
+ fieldName?: string;
2156
+ /** Sort order. */
2157
+ order?: SortOrder$1;
2158
+ }
2159
+ declare enum SortOrder$1 {
2160
+ ASC = "ASC",
2161
+ DESC = "DESC"
2162
+ }
2163
+ interface CursorPaging$1 {
2164
+ /** Maximum number of items to return in the results. */
2165
+ limit?: number | null;
2166
+ /**
2167
+ * Pointer to the next or previous page in the list of results.
2168
+ *
2169
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2170
+ * Not relevant for the first request.
2171
+ */
2172
+ cursor?: string | null;
2173
+ }
2174
+ interface ListFilesResponse {
2175
+ /** List of files in the Media Manager. */
2176
+ files?: FileDescriptor[];
2177
+ /** The next cursor if it exists. */
2178
+ nextCursor?: PagingMetadataV2$1;
2179
+ }
2180
+ interface PagingMetadataV2$1 {
2181
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
2182
+ total?: number | null;
2183
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2184
+ cursors?: Cursors$1;
2185
+ }
2186
+ interface Cursors$1 {
2187
+ /** Cursor string pointing to the next page in the list of results. */
2188
+ next?: string | null;
2189
+ }
2190
+ interface SearchFilesRequest {
2191
+ /**
2192
+ * Term to search for. Possible terms include the value of a file's
2193
+ * `displayName`, `mimeType`, and `label`. <br />
2194
+ * For example, if a file's label is cat, the search term is 'cat'.
2195
+ */
2196
+ search?: string | null;
2197
+ /**
2198
+ * A root folder in the media manager to search in. <br />
2199
+ * Default: `MEDIA_ROOT`.
2200
+ */
2201
+ rootFolder?: RootFolder$1;
2202
+ /**
2203
+ * File media type.
2204
+ * excluding: OTHER media type
2205
+ */
2206
+ mediaTypes?: MediaType[];
2207
+ /** Whether the link to the imported file is public or private. */
2208
+ private?: boolean | null;
2209
+ /**
2210
+ * Field name and order to sort by. One of:
2211
+ *
2212
+ * - `displayName`
2213
+ * - `_updatedDate`
2214
+ * - `sizeInBytes`
2215
+ *
2216
+ * Default: `_updatedDate` in `"DESC"` order.
2217
+ */
2218
+ sort?: Sorting$1;
2219
+ /** Cursor and paging information. */
2220
+ paging?: CursorPaging$1;
2221
+ }
2222
+ declare enum RootFolder$1 {
2223
+ /** Root of all site media */
2224
+ MEDIA_ROOT = "MEDIA_ROOT",
2225
+ /** Root of the trash system folder */
2226
+ TRASH_ROOT = "TRASH_ROOT",
2227
+ /** Root of all visitor uploads */
2228
+ VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
2229
+ }
2230
+ interface SearchFilesResponse {
2231
+ /** Files matching the query. */
2232
+ files?: FileDescriptor[];
2233
+ /** The next cursor if it exists. */
2234
+ nextCursor?: PagingMetadataV2$1;
2235
+ }
2236
+ interface GenerateVideoStreamingUrlRequest {
2237
+ /** File ID, or the file's Wix media URL. */
2238
+ fileId: string;
2239
+ /** Video stream format. */
2240
+ format?: StreamFormat;
2241
+ }
2242
+ declare enum StreamFormat {
2243
+ UNKNOWN = "UNKNOWN",
2244
+ HLS = "HLS",
2245
+ DASH = "DASH"
2246
+ }
2247
+ interface GenerateVideoStreamingUrlResponse {
2248
+ /** URL for streaming a specific file in the Media Manager. */
2249
+ downloadUrl?: DownloadUrl;
2250
+ }
2251
+ interface GenerateWebSocketTokenRequest {
2252
+ }
2253
+ interface GenerateWebSocketTokenResponse {
2254
+ /** The web socket token for the identity in the request */
2255
+ token?: string;
2256
+ }
2257
+ interface BulkDeleteFilesRequest {
2258
+ /** IDs or Wix media URLs of the files to move to the Media Manager's trash bin. */
2259
+ fileIds: string[];
2260
+ /**
2261
+ * Whether the specified files are permanently deleted. <br />
2262
+ * Default: `false`
2263
+ */
2264
+ permanent?: boolean;
2265
+ }
2266
+ interface BulkDeleteFilesResponse {
2267
+ }
2268
+ interface BulkRestoreFilesFromTrashBinRequest {
2269
+ /** IDs or Wix media URLs of the files to restore from the Media Manager's trash bin. */
2270
+ fileIds: string[];
2271
+ }
2272
+ interface BulkRestoreFilesFromTrashBinResponse {
2273
+ }
2274
+ interface ListDeletedFilesRequest {
2275
+ /**
2276
+ * ID of the file's parent folder. <br />
2277
+ * Default: `media-root`.
2278
+ */
2279
+ parentFolderId?: string | null;
2280
+ /**
2281
+ * File media type.
2282
+ * excluding: OTHER media type
2283
+ */
2284
+ mediaTypes?: MediaType[];
2285
+ /** Whether the link to the imported file is public or private. */
2286
+ private?: boolean | null;
2287
+ /**
2288
+ * Field name and order to sort by. One of:
2289
+ *
2290
+ * - `displayName`
2291
+ * - `_updatedDate`
2292
+ * - `sizeInBytes`
2293
+ *
2294
+ * Default: `_updatedDate` in `"DESC"` order.
2295
+ */
2296
+ sort?: Sorting$1;
2297
+ /** Cursor and paging information. */
2298
+ paging?: CursorPaging$1;
2299
+ }
2300
+ interface ListDeletedFilesResponse {
2301
+ /** List of files in the Media Manager's trash bin. */
2302
+ files?: FileDescriptor[];
2303
+ /** The next cursor if it exists. */
2304
+ nextCursor?: PagingMetadataV2$1;
2305
+ }
2306
+ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
2307
+ createdEvent?: EntityCreatedEvent$1;
2308
+ updatedEvent?: EntityUpdatedEvent$1;
2309
+ deletedEvent?: EntityDeletedEvent$1;
2310
+ actionEvent?: ActionEvent$1;
2311
+ /**
2312
+ * Unique event ID.
2313
+ * Allows clients to ignore duplicate webhooks.
2314
+ */
2315
+ _id?: string;
2316
+ /**
2317
+ * Assumes actions are also always typed to an entity_type
2318
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2319
+ */
2320
+ entityFqdn?: string;
2321
+ /**
2322
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2323
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2324
+ * Example: created/updated/deleted/started/completed/email_opened
2325
+ */
2326
+ slug?: string;
2327
+ /** ID of the entity associated with the event. */
2328
+ entityId?: string;
2329
+ /** Event timestamp. */
2330
+ eventTime?: Date;
2331
+ /**
2332
+ * Whether the event was triggered as a result of a privacy regulation application
2333
+ * (for example, GDPR).
2334
+ */
2335
+ triggeredByAnonymizeRequest?: boolean | null;
2336
+ /** If present, indicates the action that triggered the event. */
2337
+ originatedFrom?: string | null;
2338
+ /**
2339
+ * A sequence number defining the order of updates to the underlying entity.
2340
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2341
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2342
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2343
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2344
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2345
+ */
2346
+ entityEventSequence?: string | null;
2347
+ }
2348
+ /** @oneof */
2349
+ interface DomainEventBodyOneOf$1 {
2350
+ createdEvent?: EntityCreatedEvent$1;
2351
+ updatedEvent?: EntityUpdatedEvent$1;
2352
+ deletedEvent?: EntityDeletedEvent$1;
2353
+ actionEvent?: ActionEvent$1;
2354
+ }
2355
+ interface EntityCreatedEvent$1 {
2356
+ entity?: string;
2357
+ }
2358
+ interface EntityUpdatedEvent$1 {
2359
+ /**
2360
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2361
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2362
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2363
+ */
2364
+ currentEntity?: string;
2365
+ }
2366
+ interface EntityDeletedEvent$1 {
2367
+ /** Entity that was deleted */
2368
+ deletedEntity?: string | null;
2369
+ }
2370
+ interface ActionEvent$1 {
2371
+ body?: string;
2372
+ }
2373
+ interface MessageEnvelope$1 {
2374
+ /** App instance ID. */
2375
+ instanceId?: string | null;
2376
+ /** Event type. */
2377
+ eventType?: string;
2378
+ /** The identification type and identity data. */
2379
+ identity?: IdentificationData$1;
2380
+ /** Stringify payload. */
2381
+ data?: string;
2382
+ }
2383
+ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
2384
+ /** ID of a site visitor that has not logged in to the site. */
2385
+ anonymousVisitorId?: string;
2386
+ /** ID of a site visitor that has logged in to the site. */
2387
+ memberId?: string;
2388
+ /** ID of a Wix user (site owner, contributor, etc.). */
2389
+ wixUserId?: string;
2390
+ /** ID of an app. */
2391
+ appId?: string;
2392
+ /** @readonly */
2393
+ identityType?: WebhookIdentityType$1;
2394
+ }
2395
+ /** @oneof */
2396
+ interface IdentificationDataIdOneOf$1 {
2397
+ /** ID of a site visitor that has not logged in to the site. */
2398
+ anonymousVisitorId?: string;
2399
+ /** ID of a site visitor that has logged in to the site. */
2400
+ memberId?: string;
2401
+ /** ID of a Wix user (site owner, contributor, etc.). */
2402
+ wixUserId?: string;
2403
+ /** ID of an app. */
2404
+ appId?: string;
2405
+ }
2406
+ declare enum WebhookIdentityType$1 {
2407
+ UNKNOWN = "UNKNOWN",
2408
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2409
+ MEMBER = "MEMBER",
2410
+ WIX_USER = "WIX_USER",
2411
+ APP = "APP"
2412
+ }
2413
+ interface GenerateFilesDownloadUrlResponseNonNullableFields {
2414
+ downloadUrl: string;
2415
+ }
2416
+ interface GenerateFileDownloadUrlResponseNonNullableFields {
2417
+ downloadUrls: {
2418
+ url: string;
2419
+ assetKey: string;
2420
+ }[];
2421
+ }
2422
+ interface GetFileDescriptorResponseNonNullableFields {
2423
+ file?: {
2424
+ _id: string;
2425
+ displayName: string;
2426
+ url: string;
2427
+ hash: string;
2428
+ private: boolean;
2429
+ mediaType: MediaType;
2430
+ media?: {
2431
+ image?: {
2432
+ image: string;
2433
+ colors?: {
2434
+ palette: Color[];
2435
+ };
2436
+ faces: {
2437
+ confidence: number;
2438
+ x: number;
2439
+ y: number;
2440
+ height: number;
2441
+ width: number;
2442
+ }[];
2443
+ previewImage: string;
2444
+ };
2445
+ video: string;
2446
+ audio?: {
2447
+ _id: string;
2448
+ assets: string;
2449
+ };
2450
+ document: string;
2451
+ vector?: {
2452
+ image: string;
2453
+ colors?: {
2454
+ palette: Color[];
2455
+ };
2456
+ faces: {
2457
+ confidence: number;
2458
+ x: number;
2459
+ y: number;
2460
+ height: number;
2461
+ width: number;
2462
+ }[];
2463
+ previewImage: string;
2464
+ };
2465
+ archive?: {
2466
+ _id: string;
2467
+ url: string;
2468
+ };
2469
+ model3d?: {
2470
+ _id: string;
2471
+ url: string;
2472
+ thumbnail: string;
2473
+ };
2474
+ };
2475
+ operationStatus: OperationStatus;
2476
+ labels: string[];
2477
+ siteId: string;
2478
+ state: State$1;
2479
+ };
2480
+ }
2481
+ interface GetFileDescriptorsResponseNonNullableFields {
2482
+ files: {
2483
+ _id: string;
2484
+ displayName: string;
2485
+ url: string;
2486
+ hash: string;
2487
+ private: boolean;
2488
+ mediaType: MediaType;
2489
+ media?: {
2490
+ image?: {
2491
+ image: string;
2492
+ colors?: {
2493
+ palette: Color[];
2494
+ };
2495
+ faces: {
2496
+ confidence: number;
2497
+ x: number;
2498
+ y: number;
2499
+ height: number;
2500
+ width: number;
2501
+ }[];
2502
+ previewImage: string;
2503
+ };
2504
+ video: string;
2505
+ audio?: {
2506
+ _id: string;
2507
+ assets: string;
2508
+ };
2509
+ document: string;
2510
+ vector?: {
2511
+ image: string;
2512
+ colors?: {
2513
+ palette: Color[];
2514
+ };
2515
+ faces: {
2516
+ confidence: number;
2517
+ x: number;
2518
+ y: number;
2519
+ height: number;
2520
+ width: number;
2521
+ }[];
2522
+ previewImage: string;
2523
+ };
2524
+ archive?: {
2525
+ _id: string;
2526
+ url: string;
2527
+ };
2528
+ model3d?: {
2529
+ _id: string;
2530
+ url: string;
2531
+ thumbnail: string;
2532
+ };
2533
+ };
2534
+ operationStatus: OperationStatus;
2535
+ labels: string[];
2536
+ siteId: string;
2537
+ state: State$1;
2538
+ }[];
2539
+ }
2540
+ interface UpdateFileDescriptorResponseNonNullableFields {
2541
+ file?: {
2542
+ _id: string;
2543
+ displayName: string;
2544
+ url: string;
2545
+ hash: string;
2546
+ private: boolean;
2547
+ mediaType: MediaType;
2548
+ media?: {
2549
+ image?: {
2550
+ image: string;
2551
+ colors?: {
2552
+ palette: Color[];
2553
+ };
2554
+ faces: {
2555
+ confidence: number;
2556
+ x: number;
2557
+ y: number;
2558
+ height: number;
2559
+ width: number;
2560
+ }[];
2561
+ previewImage: string;
2562
+ };
2563
+ video: string;
2564
+ audio?: {
2565
+ _id: string;
2566
+ assets: string;
2567
+ };
2568
+ document: string;
2569
+ vector?: {
2570
+ image: string;
2571
+ colors?: {
2572
+ palette: Color[];
2573
+ };
2574
+ faces: {
2575
+ confidence: number;
2576
+ x: number;
2577
+ y: number;
2578
+ height: number;
2579
+ width: number;
2580
+ }[];
2581
+ previewImage: string;
2582
+ };
2583
+ archive?: {
2584
+ _id: string;
2585
+ url: string;
2586
+ };
2587
+ model3d?: {
2588
+ _id: string;
2589
+ url: string;
2590
+ thumbnail: string;
2591
+ };
2592
+ };
2593
+ operationStatus: OperationStatus;
2594
+ labels: string[];
2595
+ siteId: string;
2596
+ state: State$1;
2597
+ };
2598
+ }
2599
+ interface GenerateFileUploadUrlResponseNonNullableFields {
2600
+ uploadUrl: string;
2601
+ }
2602
+ interface GenerateFileResumableUploadUrlResponseNonNullableFields {
2603
+ uploadProtocol: UploadProtocol;
2604
+ uploadUrl: string;
2605
+ uploadToken: string;
2606
+ }
2607
+ interface ImportFileResponseNonNullableFields {
2608
+ file?: {
2609
+ _id: string;
2610
+ displayName: string;
2611
+ url: string;
2612
+ hash: string;
2613
+ private: boolean;
2614
+ mediaType: MediaType;
2615
+ media?: {
2616
+ image?: {
2617
+ image: string;
2618
+ colors?: {
2619
+ palette: Color[];
2620
+ };
2621
+ faces: {
2622
+ confidence: number;
2623
+ x: number;
2624
+ y: number;
2625
+ height: number;
2626
+ width: number;
2627
+ }[];
2628
+ previewImage: string;
2629
+ };
2630
+ video: string;
2631
+ audio?: {
2632
+ _id: string;
2633
+ assets: string;
2634
+ };
2635
+ document: string;
2636
+ vector?: {
2637
+ image: string;
2638
+ colors?: {
2639
+ palette: Color[];
2640
+ };
2641
+ faces: {
2642
+ confidence: number;
2643
+ x: number;
2644
+ y: number;
2645
+ height: number;
2646
+ width: number;
2647
+ }[];
2648
+ previewImage: string;
2649
+ };
2650
+ archive?: {
2651
+ _id: string;
2652
+ url: string;
2653
+ };
2654
+ model3d?: {
2655
+ _id: string;
2656
+ url: string;
2657
+ thumbnail: string;
2658
+ };
2659
+ };
2660
+ operationStatus: OperationStatus;
2661
+ labels: string[];
2662
+ siteId: string;
2663
+ state: State$1;
2664
+ };
2665
+ }
2666
+ interface BulkImportFilesResponseNonNullableFields {
2667
+ files: {
2668
+ _id: string;
2669
+ displayName: string;
2670
+ url: string;
2671
+ hash: string;
2672
+ private: boolean;
2673
+ mediaType: MediaType;
2674
+ media?: {
2675
+ image?: {
2676
+ image: string;
2677
+ colors?: {
2678
+ palette: Color[];
2679
+ };
2680
+ faces: {
2681
+ confidence: number;
2682
+ x: number;
2683
+ y: number;
2684
+ height: number;
2685
+ width: number;
2686
+ }[];
2687
+ previewImage: string;
2688
+ };
2689
+ video: string;
2690
+ audio?: {
2691
+ _id: string;
2692
+ assets: string;
2693
+ };
2694
+ document: string;
2695
+ vector?: {
2696
+ image: string;
2697
+ colors?: {
2698
+ palette: Color[];
2699
+ };
2700
+ faces: {
2701
+ confidence: number;
2702
+ x: number;
2703
+ y: number;
2704
+ height: number;
2705
+ width: number;
2706
+ }[];
2707
+ previewImage: string;
2708
+ };
2709
+ archive?: {
2710
+ _id: string;
2711
+ url: string;
2712
+ };
2713
+ model3d?: {
2714
+ _id: string;
2715
+ url: string;
2716
+ thumbnail: string;
2717
+ };
2718
+ };
2719
+ operationStatus: OperationStatus;
2720
+ labels: string[];
2721
+ siteId: string;
2722
+ state: State$1;
2723
+ }[];
2724
+ }
2725
+ interface BulkImportFileResponseNonNullableFields {
2726
+ results: {
2727
+ itemMetadata?: {
2728
+ originalIndex: number;
2729
+ success: boolean;
2730
+ error?: {
2731
+ code: string;
2732
+ description: string;
2733
+ };
2734
+ };
2735
+ item?: {
2736
+ _id: string;
2737
+ displayName: string;
2738
+ url: string;
2739
+ hash: string;
2740
+ private: boolean;
2741
+ mediaType: MediaType;
2742
+ media?: {
2743
+ image?: {
2744
+ image: string;
2745
+ colors?: {
2746
+ palette: Color[];
2747
+ };
2748
+ faces: {
2749
+ confidence: number;
2750
+ x: number;
2751
+ y: number;
2752
+ height: number;
2753
+ width: number;
2754
+ }[];
2755
+ previewImage: string;
2756
+ };
2757
+ video: string;
2758
+ audio?: {
2759
+ _id: string;
2760
+ assets: string;
2761
+ };
2762
+ document: string;
2763
+ vector?: {
2764
+ image: string;
2765
+ colors?: {
2766
+ palette: Color[];
2767
+ };
2768
+ faces: {
2769
+ confidence: number;
2770
+ x: number;
2771
+ y: number;
2772
+ height: number;
2773
+ width: number;
2774
+ }[];
2775
+ previewImage: string;
2776
+ };
2777
+ archive?: {
2778
+ _id: string;
2779
+ url: string;
2780
+ };
2781
+ model3d?: {
2782
+ _id: string;
2783
+ url: string;
2784
+ thumbnail: string;
2785
+ };
2786
+ };
2787
+ operationStatus: OperationStatus;
2788
+ labels: string[];
2789
+ siteId: string;
2790
+ state: State$1;
2791
+ };
2792
+ }[];
2793
+ bulkActionMetadata?: {
2794
+ totalSuccesses: number;
2795
+ totalFailures: number;
2796
+ undetailedFailures: number;
2797
+ };
2798
+ }
2799
+ interface ListFilesResponseNonNullableFields {
2800
+ files: {
2801
+ _id: string;
2802
+ displayName: string;
2803
+ url: string;
2804
+ hash: string;
2805
+ private: boolean;
2806
+ mediaType: MediaType;
2807
+ media?: {
2808
+ image?: {
2809
+ image: string;
2810
+ colors?: {
2811
+ palette: Color[];
2812
+ };
2813
+ faces: {
2814
+ confidence: number;
2815
+ x: number;
2816
+ y: number;
2817
+ height: number;
2818
+ width: number;
2819
+ }[];
2820
+ previewImage: string;
2821
+ };
2822
+ video: string;
2823
+ audio?: {
2824
+ _id: string;
2825
+ assets: string;
2826
+ };
2827
+ document: string;
2828
+ vector?: {
2829
+ image: string;
2830
+ colors?: {
2831
+ palette: Color[];
2832
+ };
2833
+ faces: {
2834
+ confidence: number;
2835
+ x: number;
2836
+ y: number;
2837
+ height: number;
2838
+ width: number;
2839
+ }[];
2840
+ previewImage: string;
2841
+ };
2842
+ archive?: {
2843
+ _id: string;
2844
+ url: string;
2845
+ };
2846
+ model3d?: {
2847
+ _id: string;
2848
+ url: string;
2849
+ thumbnail: string;
2850
+ };
2851
+ };
2852
+ operationStatus: OperationStatus;
2853
+ labels: string[];
2854
+ siteId: string;
2855
+ state: State$1;
2856
+ }[];
2857
+ }
2858
+ interface SearchFilesResponseNonNullableFields {
2859
+ files: {
2860
+ _id: string;
2861
+ displayName: string;
2862
+ url: string;
2863
+ hash: string;
2864
+ private: boolean;
2865
+ mediaType: MediaType;
2866
+ media?: {
2867
+ image?: {
2868
+ image: string;
2869
+ colors?: {
2870
+ palette: Color[];
2871
+ };
2872
+ faces: {
2873
+ confidence: number;
2874
+ x: number;
2875
+ y: number;
2876
+ height: number;
2877
+ width: number;
2878
+ }[];
2879
+ previewImage: string;
2880
+ };
2881
+ video: string;
2882
+ audio?: {
2883
+ _id: string;
2884
+ assets: string;
2885
+ };
2886
+ document: string;
2887
+ vector?: {
2888
+ image: string;
2889
+ colors?: {
2890
+ palette: Color[];
2891
+ };
2892
+ faces: {
2893
+ confidence: number;
2894
+ x: number;
2895
+ y: number;
2896
+ height: number;
2897
+ width: number;
2898
+ }[];
2899
+ previewImage: string;
2900
+ };
2901
+ archive?: {
2902
+ _id: string;
2903
+ url: string;
2904
+ };
2905
+ model3d?: {
2906
+ _id: string;
2907
+ url: string;
2908
+ thumbnail: string;
2909
+ };
2910
+ };
2911
+ operationStatus: OperationStatus;
2912
+ labels: string[];
2913
+ siteId: string;
2914
+ state: State$1;
2915
+ }[];
2916
+ }
2917
+ interface GenerateVideoStreamingUrlResponseNonNullableFields {
2918
+ downloadUrl?: {
2919
+ url: string;
2920
+ assetKey: string;
2921
+ };
2922
+ }
2923
+ interface ListDeletedFilesResponseNonNullableFields {
2924
+ files: {
2925
+ _id: string;
2926
+ displayName: string;
2927
+ url: string;
2928
+ hash: string;
2929
+ private: boolean;
2930
+ mediaType: MediaType;
2931
+ media?: {
2932
+ image?: {
2933
+ image: string;
2934
+ colors?: {
2935
+ palette: Color[];
2936
+ };
2937
+ faces: {
2938
+ confidence: number;
2939
+ x: number;
2940
+ y: number;
2941
+ height: number;
2942
+ width: number;
2943
+ }[];
2944
+ previewImage: string;
2945
+ };
2946
+ video: string;
2947
+ audio?: {
2948
+ _id: string;
2949
+ assets: string;
2950
+ };
2951
+ document: string;
2952
+ vector?: {
2953
+ image: string;
2954
+ colors?: {
2955
+ palette: Color[];
2956
+ };
2957
+ faces: {
2958
+ confidence: number;
2959
+ x: number;
2960
+ y: number;
2961
+ height: number;
2962
+ width: number;
2963
+ }[];
2964
+ previewImage: string;
2965
+ };
2966
+ archive?: {
2967
+ _id: string;
2968
+ url: string;
2969
+ };
2970
+ model3d?: {
2971
+ _id: string;
2972
+ url: string;
2973
+ thumbnail: string;
2974
+ };
2975
+ };
2976
+ operationStatus: OperationStatus;
2977
+ labels: string[];
2978
+ siteId: string;
2979
+ state: State$1;
2980
+ }[];
2981
+ }
2982
+ interface BaseEventMetadata$1 {
2983
+ /** App instance ID. */
2984
+ instanceId?: string | null;
2985
+ /** Event type. */
2986
+ eventType?: string;
2987
+ /** The identification type and identity data. */
2988
+ identity?: IdentificationData$1;
2989
+ }
2990
+ interface EventMetadata$1 extends BaseEventMetadata$1 {
2991
+ /**
2992
+ * Unique event ID.
2993
+ * Allows clients to ignore duplicate webhooks.
2994
+ */
2995
+ _id?: string;
2996
+ /**
2997
+ * Assumes actions are also always typed to an entity_type
2998
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2999
+ */
3000
+ entityFqdn?: string;
3001
+ /**
3002
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
3003
+ * This is although the created/updated/deleted notion is duplication of the oneof types
3004
+ * Example: created/updated/deleted/started/completed/email_opened
3005
+ */
3006
+ slug?: string;
3007
+ /** ID of the entity associated with the event. */
3008
+ entityId?: string;
3009
+ /** Event timestamp. */
3010
+ eventTime?: Date;
3011
+ /**
3012
+ * Whether the event was triggered as a result of a privacy regulation application
3013
+ * (for example, GDPR).
3014
+ */
3015
+ triggeredByAnonymizeRequest?: boolean | null;
3016
+ /** If present, indicates the action that triggered the event. */
3017
+ originatedFrom?: string | null;
3018
+ /**
3019
+ * A sequence number defining the order of updates to the underlying entity.
3020
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
3021
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3022
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3023
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
3024
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3025
+ */
3026
+ entityEventSequence?: string | null;
3027
+ }
3028
+ interface FileDescriptorUpdatedEnvelope {
3029
+ entity: FileDescriptor;
3030
+ metadata: EventMetadata$1;
3031
+ }
3032
+ interface FileDescriptorDeletedEnvelope {
3033
+ metadata: EventMetadata$1;
3034
+ }
3035
+ interface FileDescriptorFileReadyEnvelope {
3036
+ data: FileReady;
3037
+ metadata: EventMetadata$1;
3038
+ }
3039
+ interface FileDescriptorFileFailedEnvelope {
3040
+ data: FileFailed;
3041
+ metadata: EventMetadata$1;
3042
+ }
3043
+ interface GenerateFileDownloadUrlOptions {
3044
+ /**
3045
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
3046
+ *
3047
+ * **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
3048
+ */
3049
+ downloadFileName?: string | null;
3050
+ /**
3051
+ * The time that it takes in minutes for the download URL to expire. <br />
3052
+ * Default: `600`. <br />
3053
+ * Limit: `525600` (1 year).
3054
+ */
3055
+ expirationInMinutes?: number | null;
3056
+ /**
3057
+ * The redirect URL for when the temporary download URL with a token expires. <br />
3058
+ * Default: A 403 Forbidden response page.
3059
+ */
3060
+ expirationRedirectUrl?: string | null;
3061
+ /**
3062
+ * Keys for downloading different assets (format and quality) of a file.
3063
+ * Default: `src`, key representing the original file's format and quality.
3064
+ */
3065
+ assetKeys?: string[] | null;
3066
+ /**
3067
+ * Whether the link downloads the file or opens the file in the browser.
3068
+ *
3069
+ * - `ATTACHMENT`: The link downloads the file.
3070
+ * - `INLINE`: The link opens the file in the browser.
3071
+ *
3072
+ * Default: `ATTACHMENT`
3073
+ */
3074
+ contentDisposition?: ContentDisposition;
3075
+ }
3076
+ interface GenerateFileUploadUrlOptions {
3077
+ /**
3078
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
3079
+ * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
3080
+ */
3081
+ fileName?: string | null;
3082
+ /**
3083
+ * File size in bytes.
3084
+ * @readonly
3085
+ */
3086
+ sizeInBytes?: string | null;
3087
+ /**
3088
+ * ID of the file's parent folder. <br />
3089
+ * Default: `media-root`.
3090
+ */
3091
+ parentFolderId?: string | null;
3092
+ /** Whether the link to the uploaded file is public or private. See `Private Files` in terminology. */
3093
+ private?: boolean | null;
3094
+ /** 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. */
3095
+ labels?: string[] | null;
3096
+ /** A place to map an external entity to an uploaded file in the Wix Media Manager. */
3097
+ externalInfo?: ExternalInfo;
3098
+ /**
3099
+ * The path by folder names to create the file under.
3100
+ * In case a folder in the path does not exist it will be created
3101
+ * If multiple folders with the same name exist, the first one will be used
3102
+ * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
3103
+ * example: 'videos/2024/december'
3104
+ */
3105
+ filePath?: string | null;
3106
+ }
3107
+ interface GenerateFileResumableUploadUrlOptions {
3108
+ /**
3109
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
3110
+ * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
3111
+ */
3112
+ fileName?: string | null;
3113
+ /**
3114
+ * File size in bytes.
3115
+ * @readonly
3116
+ */
3117
+ sizeInBytes?: string | null;
3118
+ /**
3119
+ * ID of the file's parent folder. <br />
3120
+ * Default: `media-root`.
3121
+ */
3122
+ parentFolderId?: string | null;
3123
+ /** Whether the link to the imported file is public or private. See `Private Files` in terminology. */
3124
+ private?: boolean | null;
3125
+ /** 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. */
3126
+ labels?: string[] | null;
3127
+ /**
3128
+ * The upload protocol to use for implementing the resumable upload.
3129
+ *
3130
+ * Supported values: `"TUS"`
3131
+ */
3132
+ uploadProtocol?: UploadProtocol;
3133
+ /**
3134
+ * The path by folder names to create the file under.
3135
+ * In case a folder in the path does not exist it will be created
3136
+ * If multiple folders with the same name exist, the first one will be used
3137
+ * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
3138
+ * example: 'videos/2024/december'
3139
+ */
3140
+ filePath?: string | null;
3141
+ }
3142
+ interface ImportFileOptions {
3143
+ /** Media type of the file to import. */
3144
+ mediaType?: MediaType;
3145
+ /** File name that appears in the Media Manager. */
3146
+ displayName?: string | null;
3147
+ /**
3148
+ * ID of the file's parent folder. <br />
3149
+ * Default: `media-root`.
3150
+ */
3151
+ parentFolderId?: string | null;
3152
+ /** Whether the link to the imported file is public or private. */
3153
+ private?: boolean | null;
3154
+ /** 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. */
3155
+ labels?: string[] | null;
3156
+ /** File mime type. */
3157
+ mimeType?: string;
3158
+ /** A place to map an external entity to an imported file in the Wix Media Manager. */
3159
+ externalInfo?: ExternalInfo;
3160
+ /** Optional parameters that should be sent with the external URL. */
3161
+ urlParams?: Record<string, any> | null;
3162
+ /** Optional headers that should be sent with the external URL. */
3163
+ urlHeaders?: Record<string, any> | null;
3164
+ /**
3165
+ * The path by folder names to create the file under.
3166
+ * In case a folder in the path does not exist it will be created
3167
+ * If multiple folders with the same name exist, the first one will be used
3168
+ * If `parentFolderId` is provided, the path will be nested under the folder specified by the `parentFolderId`
3169
+ * example: 'videos/2024/december'
3170
+ */
3171
+ filePath?: string | null;
3172
+ }
3173
+ interface BulkImportFileOptions {
3174
+ /**
3175
+ * Whether to include the imported File Descriptor in the response. Set to `false` to exclude the File Descriptor from the returned object.
3176
+ *
3177
+ * Default: `true`
3178
+ */
3179
+ returnEntity?: boolean | null;
3180
+ }
3181
+ interface ListFilesOptions {
3182
+ /**
3183
+ * ID of the file's parent folder. <br />
3184
+ * Default:`media-root`.
3185
+ */
3186
+ parentFolderId?: string | null;
3187
+ /** Media file type. */
3188
+ mediaTypes?: MediaType[];
3189
+ /** Whether the link to the imported file is public or private. */
3190
+ private?: boolean | null;
3191
+ /**
3192
+ * Field name and order to sort by. One of:
3193
+ *
3194
+ * - `displayName`
3195
+ * - `_updatedDate`
3196
+ * - `sizeInBytes`
3197
+ *
3198
+ * Default: `_updatedDate` in `"DESC"` order.
3199
+ */
3200
+ sort?: Sorting$1;
3201
+ /** Cursor and paging information. */
3202
+ paging?: CursorPaging$1;
3203
+ }
3204
+ interface SearchFilesOptions {
3205
+ /**
3206
+ * Term to search for. Possible terms include the value of a file's
3207
+ * `displayName`, `mimeType`, and `label`. <br />
3208
+ * For example, if a file's label is cat, the search term is 'cat'.
3209
+ */
3210
+ search?: string | null;
3211
+ /**
3212
+ * A root folder in the media manager to search in.
3213
+ *
3214
+ * Default: `MEDIA_ROOT`.
3215
+ */
3216
+ rootFolder?: RootFolder$1;
3217
+ /** Media file type. */
3218
+ mediaTypes?: MediaType[];
3219
+ /**
3220
+ * Whether the link to the imported file is public or private.
3221
+ *
3222
+ * Default: `false`.
3223
+ */
3224
+ private?: boolean | null;
3225
+ /**
3226
+ * Field name and order to sort by. One of:
3227
+ *
3228
+ * - `displayName`
3229
+ * - `_updatedDate`
3230
+ * - `sizeInBytes`
3231
+ *
3232
+ * Default: `_updatedDate` in `"DESC"` order.
3233
+ */
3234
+ sort?: Sorting$1;
3235
+ /** Cursor and paging information. */
3236
+ paging?: CursorPaging$1;
3237
+ }
3238
+ interface GenerateVideoStreamingUrlOptions {
3239
+ /** Video stream format. */
3240
+ format?: StreamFormat;
3241
+ }
3242
+ interface BulkDeleteFilesOptions {
3243
+ /**
3244
+ * Whether the specified files are permanently deleted. <br />
3245
+ * Default: `false`
3246
+ */
3247
+ permanent?: boolean;
3248
+ }
3249
+ interface ListDeletedFilesOptions {
3250
+ /**
3251
+ * ID of the file's parent folder. <br />
3252
+ * Default: `media-root`.
3253
+ */
3254
+ parentFolderId?: string | null;
3255
+ /** Media file type. */
3256
+ mediaTypes?: MediaType[];
3257
+ /** Whether the link to the imported file is public or private. */
3258
+ private?: boolean | null;
3259
+ /**
3260
+ * Field name and order to sort by. One of:
3261
+ *
3262
+ * - `displayName`
3263
+ * - `_updatedDate`
3264
+ * - `sizeInBytes`
3265
+ *
3266
+ * Default: `_updatedDate` in `"DESC"` order.
3267
+ */
3268
+ sort?: Sorting$1;
3269
+ /** Cursor and paging information. */
3270
+ paging?: CursorPaging$1;
3271
+ }
3272
+
3273
+ declare const __metadata$1: {
3274
+ PACKAGE_NAME: string;
3275
+ };
3276
+ declare function generateFilesDownloadUrl(httpClient: HttpClient): (fileIds: string[]) => Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
3277
+ declare function generateFileDownloadUrl(httpClient: HttpClient): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
3278
+ declare function getFileDescriptor(httpClient: HttpClient): (fileId: string) => Promise<FileDescriptor & {
3279
+ _id: string;
3280
+ displayName: string;
3281
+ url: string;
3282
+ hash: string;
3283
+ private: boolean;
3284
+ mediaType: MediaType;
3285
+ media?: {
3286
+ image?: {
3287
+ image: string;
3288
+ colors?: {
3289
+ palette: Color[];
3290
+ } | undefined;
3291
+ faces: {
3292
+ confidence: number;
3293
+ x: number;
3294
+ y: number;
3295
+ height: number;
3296
+ width: number;
3297
+ }[];
3298
+ previewImage: string;
3299
+ } | undefined;
3300
+ video: string;
3301
+ audio?: {
3302
+ _id: string;
3303
+ assets: string;
3304
+ } | undefined;
3305
+ document: string;
3306
+ vector?: {
3307
+ image: string;
3308
+ colors?: {
3309
+ palette: Color[];
3310
+ } | undefined;
3311
+ faces: {
3312
+ confidence: number;
3313
+ x: number;
3314
+ y: number;
3315
+ height: number;
3316
+ width: number;
3317
+ }[];
3318
+ previewImage: string;
3319
+ } | undefined;
3320
+ archive?: {
3321
+ _id: string;
3322
+ url: string;
3323
+ } | undefined;
3324
+ model3d?: {
3325
+ _id: string;
3326
+ url: string;
3327
+ thumbnail: string;
3328
+ } | undefined;
3329
+ } | undefined;
3330
+ operationStatus: OperationStatus;
3331
+ labels: string[];
3332
+ siteId: string;
3333
+ state: State$1;
3334
+ }>;
3335
+ declare function getFileDescriptors(httpClient: HttpClient): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
3336
+ declare function updateFileDescriptor(httpClient: HttpClient): (file: FileDescriptor) => Promise<FileDescriptor & {
3337
+ _id: string;
3338
+ displayName: string;
3339
+ url: string;
3340
+ hash: string;
3341
+ private: boolean;
3342
+ mediaType: MediaType;
3343
+ media?: {
3344
+ image?: {
3345
+ image: string;
3346
+ colors?: {
3347
+ palette: Color[];
3348
+ } | undefined;
3349
+ faces: {
3350
+ confidence: number;
3351
+ x: number;
3352
+ y: number;
3353
+ height: number;
3354
+ width: number;
3355
+ }[];
3356
+ previewImage: string;
3357
+ } | undefined;
3358
+ video: string;
3359
+ audio?: {
3360
+ _id: string;
3361
+ assets: string;
3362
+ } | undefined;
3363
+ document: string;
3364
+ vector?: {
3365
+ image: string;
3366
+ colors?: {
3367
+ palette: Color[];
3368
+ } | undefined;
3369
+ faces: {
3370
+ confidence: number;
3371
+ x: number;
3372
+ y: number;
3373
+ height: number;
3374
+ width: number;
3375
+ }[];
3376
+ previewImage: string;
3377
+ } | undefined;
3378
+ archive?: {
3379
+ _id: string;
3380
+ url: string;
3381
+ } | undefined;
3382
+ model3d?: {
3383
+ _id: string;
3384
+ url: string;
3385
+ thumbnail: string;
3386
+ } | undefined;
3387
+ } | undefined;
3388
+ operationStatus: OperationStatus;
3389
+ labels: string[];
3390
+ siteId: string;
3391
+ state: State$1;
3392
+ }>;
3393
+ declare function generateFileUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
3394
+ declare function generateFileResumableUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
3395
+ declare function importFile(httpClient: HttpClient): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
3396
+ declare function bulkImportFiles(httpClient: HttpClient): (importFileRequests: ImportFileRequest[]) => Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
3397
+ declare function bulkImportFile(httpClient: HttpClient): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions) => Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
3398
+ declare function listFiles(httpClient: HttpClient): (options?: ListFilesOptions) => Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
3399
+ declare function searchFiles(httpClient: HttpClient): (options?: SearchFilesOptions) => Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
3400
+ declare function generateVideoStreamingUrl(httpClient: HttpClient): (fileId: string, options?: GenerateVideoStreamingUrlOptions) => Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
3401
+ declare function bulkDeleteFiles(httpClient: HttpClient): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
3402
+ declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient): (fileIds: string[]) => Promise<void>;
3403
+ declare function listDeletedFiles(httpClient: HttpClient): (options?: ListDeletedFilesOptions) => Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
3404
+ declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
3405
+ declare const onFileDescriptorDeleted: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
3406
+ declare const onFileDescriptorFileReady: EventDefinition<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
3407
+ declare const onFileDescriptorFileFailed: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
3408
+
3409
+ type index_d$1_ApplicationError = ApplicationError;
3410
+ type index_d$1_Archive = Archive;
3411
+ type index_d$1_AudioV2 = AudioV2;
3412
+ type index_d$1_BulkActionMetadata = BulkActionMetadata;
3413
+ type index_d$1_BulkDeleteFilesOptions = BulkDeleteFilesOptions;
3414
+ type index_d$1_BulkDeleteFilesRequest = BulkDeleteFilesRequest;
3415
+ type index_d$1_BulkDeleteFilesResponse = BulkDeleteFilesResponse;
3416
+ type index_d$1_BulkImportFileOptions = BulkImportFileOptions;
3417
+ type index_d$1_BulkImportFileRequest = BulkImportFileRequest;
3418
+ type index_d$1_BulkImportFileResponse = BulkImportFileResponse;
3419
+ type index_d$1_BulkImportFileResponseNonNullableFields = BulkImportFileResponseNonNullableFields;
3420
+ type index_d$1_BulkImportFileResult = BulkImportFileResult;
3421
+ type index_d$1_BulkImportFilesRequest = BulkImportFilesRequest;
3422
+ type index_d$1_BulkImportFilesResponse = BulkImportFilesResponse;
3423
+ type index_d$1_BulkImportFilesResponseNonNullableFields = BulkImportFilesResponseNonNullableFields;
3424
+ type index_d$1_BulkRestoreFilesFromTrashBinRequest = BulkRestoreFilesFromTrashBinRequest;
3425
+ type index_d$1_BulkRestoreFilesFromTrashBinResponse = BulkRestoreFilesFromTrashBinResponse;
3426
+ type index_d$1_Color = Color;
3427
+ type index_d$1_ColorRGB = ColorRGB;
3428
+ type index_d$1_Colors = Colors;
3429
+ type index_d$1_ContentDisposition = ContentDisposition;
3430
+ declare const index_d$1_ContentDisposition: typeof ContentDisposition;
3431
+ type index_d$1_DownloadUrl = DownloadUrl;
3432
+ type index_d$1_ExternalInfo = ExternalInfo;
3433
+ type index_d$1_FaceRecognition = FaceRecognition;
3434
+ type index_d$1_FileDescriptor = FileDescriptor;
3435
+ type index_d$1_FileDescriptorDeletedEnvelope = FileDescriptorDeletedEnvelope;
3436
+ type index_d$1_FileDescriptorFileFailedEnvelope = FileDescriptorFileFailedEnvelope;
3437
+ type index_d$1_FileDescriptorFileReadyEnvelope = FileDescriptorFileReadyEnvelope;
3438
+ type index_d$1_FileDescriptorUpdatedEnvelope = FileDescriptorUpdatedEnvelope;
3439
+ type index_d$1_FileFailed = FileFailed;
3440
+ type index_d$1_FileMedia = FileMedia;
3441
+ type index_d$1_FileMediaMediaOneOf = FileMediaMediaOneOf;
3442
+ type index_d$1_FileReady = FileReady;
3443
+ type index_d$1_GenerateFileDownloadUrlOptions = GenerateFileDownloadUrlOptions;
3444
+ type index_d$1_GenerateFileDownloadUrlRequest = GenerateFileDownloadUrlRequest;
3445
+ type index_d$1_GenerateFileDownloadUrlResponse = GenerateFileDownloadUrlResponse;
3446
+ type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields = GenerateFileDownloadUrlResponseNonNullableFields;
3447
+ type index_d$1_GenerateFileResumableUploadUrlOptions = GenerateFileResumableUploadUrlOptions;
3448
+ type index_d$1_GenerateFileResumableUploadUrlRequest = GenerateFileResumableUploadUrlRequest;
3449
+ type index_d$1_GenerateFileResumableUploadUrlResponse = GenerateFileResumableUploadUrlResponse;
3450
+ type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields = GenerateFileResumableUploadUrlResponseNonNullableFields;
3451
+ type index_d$1_GenerateFileUploadUrlOptions = GenerateFileUploadUrlOptions;
3452
+ type index_d$1_GenerateFileUploadUrlRequest = GenerateFileUploadUrlRequest;
3453
+ type index_d$1_GenerateFileUploadUrlResponse = GenerateFileUploadUrlResponse;
3454
+ type index_d$1_GenerateFileUploadUrlResponseNonNullableFields = GenerateFileUploadUrlResponseNonNullableFields;
3455
+ type index_d$1_GenerateFilesDownloadUrlRequest = GenerateFilesDownloadUrlRequest;
3456
+ type index_d$1_GenerateFilesDownloadUrlResponse = GenerateFilesDownloadUrlResponse;
3457
+ type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields = GenerateFilesDownloadUrlResponseNonNullableFields;
3458
+ type index_d$1_GenerateVideoStreamingUrlOptions = GenerateVideoStreamingUrlOptions;
3459
+ type index_d$1_GenerateVideoStreamingUrlRequest = GenerateVideoStreamingUrlRequest;
3460
+ type index_d$1_GenerateVideoStreamingUrlResponse = GenerateVideoStreamingUrlResponse;
3461
+ type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields = GenerateVideoStreamingUrlResponseNonNullableFields;
3462
+ type index_d$1_GenerateWebSocketTokenRequest = GenerateWebSocketTokenRequest;
3463
+ type index_d$1_GenerateWebSocketTokenResponse = GenerateWebSocketTokenResponse;
3464
+ type index_d$1_GetFileDescriptorRequest = GetFileDescriptorRequest;
3465
+ type index_d$1_GetFileDescriptorResponse = GetFileDescriptorResponse;
3466
+ type index_d$1_GetFileDescriptorResponseNonNullableFields = GetFileDescriptorResponseNonNullableFields;
3467
+ type index_d$1_GetFileDescriptorsRequest = GetFileDescriptorsRequest;
3468
+ type index_d$1_GetFileDescriptorsResponse = GetFileDescriptorsResponse;
3469
+ type index_d$1_GetFileDescriptorsResponseNonNullableFields = GetFileDescriptorsResponseNonNullableFields;
3470
+ type index_d$1_IdentityInfo = IdentityInfo;
3471
+ type index_d$1_IdentityType = IdentityType;
3472
+ declare const index_d$1_IdentityType: typeof IdentityType;
3473
+ type index_d$1_ImageMedia = ImageMedia;
3474
+ type index_d$1_ImportFileOptions = ImportFileOptions;
3475
+ type index_d$1_ImportFileRequest = ImportFileRequest;
3476
+ type index_d$1_ImportFileResponse = ImportFileResponse;
3477
+ type index_d$1_ImportFileResponseNonNullableFields = ImportFileResponseNonNullableFields;
3478
+ type index_d$1_ItemMetadata = ItemMetadata;
3479
+ type index_d$1_ListDeletedFilesOptions = ListDeletedFilesOptions;
3480
+ type index_d$1_ListDeletedFilesRequest = ListDeletedFilesRequest;
3481
+ type index_d$1_ListDeletedFilesResponse = ListDeletedFilesResponse;
3482
+ type index_d$1_ListDeletedFilesResponseNonNullableFields = ListDeletedFilesResponseNonNullableFields;
3483
+ type index_d$1_ListFilesOptions = ListFilesOptions;
3484
+ type index_d$1_ListFilesRequest = ListFilesRequest;
3485
+ type index_d$1_ListFilesResponse = ListFilesResponse;
3486
+ type index_d$1_ListFilesResponseNonNullableFields = ListFilesResponseNonNullableFields;
3487
+ type index_d$1_MediaType = MediaType;
3488
+ declare const index_d$1_MediaType: typeof MediaType;
3489
+ type index_d$1_Model3D = Model3D;
3490
+ type index_d$1_OperationStatus = OperationStatus;
3491
+ declare const index_d$1_OperationStatus: typeof OperationStatus;
3492
+ type index_d$1_OtherMedia = OtherMedia;
3493
+ type index_d$1_SearchFilesOptions = SearchFilesOptions;
3494
+ type index_d$1_SearchFilesRequest = SearchFilesRequest;
3495
+ type index_d$1_SearchFilesResponse = SearchFilesResponse;
3496
+ type index_d$1_SearchFilesResponseNonNullableFields = SearchFilesResponseNonNullableFields;
3497
+ type index_d$1_StreamFormat = StreamFormat;
3498
+ declare const index_d$1_StreamFormat: typeof StreamFormat;
3499
+ type index_d$1_UpdateFileDescriptorRequest = UpdateFileDescriptorRequest;
3500
+ type index_d$1_UpdateFileDescriptorResponse = UpdateFileDescriptorResponse;
3501
+ type index_d$1_UpdateFileDescriptorResponseNonNullableFields = UpdateFileDescriptorResponseNonNullableFields;
3502
+ type index_d$1_UpdateFileRequest = UpdateFileRequest;
3503
+ type index_d$1_UpdateFileResponse = UpdateFileResponse;
3504
+ type index_d$1_UploadProtocol = UploadProtocol;
3505
+ declare const index_d$1_UploadProtocol: typeof UploadProtocol;
3506
+ type index_d$1_VideoResolution = VideoResolution;
3507
+ declare const index_d$1_bulkDeleteFiles: typeof bulkDeleteFiles;
3508
+ declare const index_d$1_bulkImportFile: typeof bulkImportFile;
3509
+ declare const index_d$1_bulkImportFiles: typeof bulkImportFiles;
3510
+ declare const index_d$1_bulkRestoreFilesFromTrashBin: typeof bulkRestoreFilesFromTrashBin;
3511
+ declare const index_d$1_generateFileDownloadUrl: typeof generateFileDownloadUrl;
3512
+ declare const index_d$1_generateFileResumableUploadUrl: typeof generateFileResumableUploadUrl;
3513
+ declare const index_d$1_generateFileUploadUrl: typeof generateFileUploadUrl;
3514
+ declare const index_d$1_generateFilesDownloadUrl: typeof generateFilesDownloadUrl;
3515
+ declare const index_d$1_generateVideoStreamingUrl: typeof generateVideoStreamingUrl;
3516
+ declare const index_d$1_getFileDescriptor: typeof getFileDescriptor;
3517
+ declare const index_d$1_getFileDescriptors: typeof getFileDescriptors;
3518
+ declare const index_d$1_importFile: typeof importFile;
3519
+ declare const index_d$1_listDeletedFiles: typeof listDeletedFiles;
3520
+ declare const index_d$1_listFiles: typeof listFiles;
3521
+ declare const index_d$1_onFileDescriptorDeleted: typeof onFileDescriptorDeleted;
3522
+ declare const index_d$1_onFileDescriptorFileFailed: typeof onFileDescriptorFileFailed;
3523
+ declare const index_d$1_onFileDescriptorFileReady: typeof onFileDescriptorFileReady;
3524
+ declare const index_d$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
3525
+ declare const index_d$1_searchFiles: typeof searchFiles;
3526
+ declare const index_d$1_updateFileDescriptor: typeof updateFileDescriptor;
3527
+ declare namespace index_d$1 {
3528
+ export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type index_d$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type index_d$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type index_d$1_UpdateFileRequest as UpdateFileRequest, type index_d$1_UpdateFileResponse as UpdateFileResponse, index_d$1_UploadProtocol as UploadProtocol, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_bulkDeleteFiles as bulkDeleteFiles, index_d$1_bulkImportFile as bulkImportFile, index_d$1_bulkImportFiles as bulkImportFiles, index_d$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, index_d$1_generateFileDownloadUrl as generateFileDownloadUrl, index_d$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, index_d$1_generateFileUploadUrl as generateFileUploadUrl, index_d$1_generateFilesDownloadUrl as generateFilesDownloadUrl, index_d$1_generateVideoStreamingUrl as generateVideoStreamingUrl, index_d$1_getFileDescriptor as getFileDescriptor, index_d$1_getFileDescriptors as getFileDescriptors, index_d$1_importFile as importFile, index_d$1_listDeletedFiles as listDeletedFiles, index_d$1_listFiles as listFiles, index_d$1_onFileDescriptorDeleted as onFileDescriptorDeleted, index_d$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, index_d$1_onFileDescriptorFileReady as onFileDescriptorFileReady, index_d$1_onFileDescriptorUpdated as onFileDescriptorUpdated, index_d$1_searchFiles as searchFiles, index_d$1_updateFileDescriptor as updateFileDescriptor };
3529
+ }
3530
+
3531
+ interface Folder {
3532
+ /** Folder ID. Generated when a folder is created in the Media Manager. */
3533
+ _id?: string;
3534
+ /** Folder name as it appears in the Media Manager. */
3535
+ displayName?: string;
3536
+ /** ID of the folder's parent folder. <br /> Default: `media-root` folder. */
3537
+ parentFolderId?: string;
3538
+ /**
3539
+ * Date the folder was created.
3540
+ * @readonly
3541
+ */
3542
+ _createdDate?: Date;
3543
+ /**
3544
+ * Date the folder was updated.
3545
+ * @readonly
3546
+ */
3547
+ _updatedDate?: Date;
3548
+ /**
3549
+ * State of the folder.
3550
+ * @readonly
3551
+ */
3552
+ state?: State;
3553
+ }
3554
+ declare enum State {
3555
+ OK = "OK",
3556
+ DELETED = "DELETED"
3557
+ }
3558
+ declare enum Namespace {
3559
+ NO_NAMESPACE = "NO_NAMESPACE",
3560
+ OTHERS = "OTHERS",
3561
+ /** ANY = 2; */
3562
+ WIX_VIDEO = "WIX_VIDEO",
3563
+ /** _nsWixMusic */
3564
+ WIX_MUSIC = "WIX_MUSIC",
3565
+ /** _nsArtStore */
3566
+ ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
3567
+ /** _nsDigitalProduct */
3568
+ WIX_ECOM = "WIX_ECOM",
3569
+ /** _nsPhotoShareApp */
3570
+ PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
3571
+ /** _nsSharingApp, */
3572
+ SHARING_APP = "SHARING_APP",
3573
+ /** engage */
3574
+ CHAT = "CHAT",
3575
+ /** logobuilder */
3576
+ LOGO_BUILDER = "LOGO_BUILDER",
3577
+ /** WixExposure */
3578
+ ALBUMS_OLD = "ALBUMS_OLD",
3579
+ /** chat-mobile-uploads */
3580
+ CHAT_MOBILE = "CHAT_MOBILE",
3581
+ /** _nsWixForms */
3582
+ WIX_FORMS = "WIX_FORMS"
3583
+ }
3584
+ interface CreateFolderRequest {
3585
+ /** Folder name that appears in the Media Manager. */
3586
+ displayName: string;
3587
+ /** ID of the folder's parent folder. */
3588
+ parentFolderId?: string | null;
3589
+ }
3590
+ interface CreateFolderResponse {
3591
+ /** Information about the newly created folder. */
3592
+ folder?: Folder;
3593
+ }
3594
+ interface GetFolderRequest {
3595
+ /** Folder ID. */
3596
+ folderId: string;
3597
+ }
3598
+ interface GetFolderResponse {
3599
+ /** Information about the folder. */
3600
+ folder?: Folder;
3601
+ }
3602
+ interface ListFoldersRequest {
3603
+ /**
3604
+ * ID of the folder's parent folder.
3605
+ * <br /> Default: `media-root` folder.
3606
+ */
3607
+ parentFolderId?: string | null;
3608
+ /**
3609
+ * Field name and order to sort by. One of:
3610
+ * - `displayName`
3611
+ * - `_updatedDate`
3612
+ * Default: `_updatedDate` in `"DESC"` order.
3613
+ */
3614
+ sort?: Sorting;
3615
+ /** Cursor and paging information. */
3616
+ paging?: CursorPaging;
3617
+ }
3618
+ interface Sorting {
3619
+ /** Name of the field to sort by. */
3620
+ fieldName?: string;
3621
+ /** Sort order. */
3622
+ order?: SortOrder;
3623
+ }
3624
+ declare enum SortOrder {
3625
+ ASC = "ASC",
3626
+ DESC = "DESC"
3627
+ }
3628
+ interface CursorPaging {
3629
+ /** Maximum number of items to return in the results. */
3630
+ limit?: number | null;
3631
+ /**
3632
+ * Pointer to the next or previous page in the list of results.
3633
+ *
3634
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
3635
+ * Not relevant for the first request.
3636
+ */
3637
+ cursor?: string | null;
3638
+ }
3639
+ interface ListFoldersResponse {
3640
+ /** Information about the folders in the requested folder. */
3641
+ folders?: Folder[];
3642
+ /** The next cursor if it exists. */
3643
+ nextCursor?: PagingMetadataV2;
3644
+ }
3645
+ interface PagingMetadataV2 {
3646
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
3647
+ total?: number | null;
3648
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
3649
+ cursors?: Cursors;
3650
+ }
3651
+ interface Cursors {
3652
+ /** Cursor string pointing to the next page in the list of results. */
3653
+ next?: string | null;
3654
+ }
3655
+ interface SearchFoldersRequest {
3656
+ /**
3657
+ * A root folder in the media manager to search in. <br />
3658
+ * Default: `MEDIA_ROOT`.
3659
+ */
3660
+ rootFolder?: RootFolder;
3661
+ /**
3662
+ * Field name and order to sort by. One of:
3663
+ * - `displayName`
3664
+ * - `_updatedDate`
3665
+ *
3666
+ * Default: `_updatedDate` in `"DESC"` order.
3667
+ */
3668
+ sort?: Sorting;
3669
+ /** Cursor and paging information. */
3670
+ paging?: CursorPaging;
3671
+ /**
3672
+ * Term to search for, such as the value of a folder's `displayName`. <br />
3673
+ * For example, if a folder's `displayName` is 'my-videos-folder', the search term is 'my-videos-folder'.
3674
+ */
3675
+ search?: string | null;
3676
+ }
3677
+ declare enum RootFolder {
3678
+ /** Root of all site media */
3679
+ MEDIA_ROOT = "MEDIA_ROOT",
3680
+ /** Root of the trash system folder */
3681
+ TRASH_ROOT = "TRASH_ROOT",
3682
+ /** Root of all visitor uploads */
3683
+ VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
3684
+ }
3685
+ interface SearchFoldersResponse {
3686
+ /** Information about the folders in the requested folder. */
3687
+ folders?: Folder[];
3688
+ /** The next cursor if it exists. */
3689
+ nextCursor?: PagingMetadataV2;
3690
+ }
3691
+ interface UpdateFolderRequest {
3692
+ /** The folder to update. */
3693
+ folder: Folder;
3694
+ }
3695
+ interface UpdateFolderResponse {
3696
+ /** Information about the updated folder. */
3697
+ folder?: Folder;
3698
+ }
3699
+ interface GenerateFolderDownloadUrlRequest {
3700
+ /** Folder ID. */
3701
+ folderId: string;
3702
+ }
3703
+ interface GenerateFolderDownloadUrlResponse {
3704
+ /** URL for downloading a specific folder in the Media Manager. */
3705
+ downloadUrl?: string;
3706
+ }
3707
+ interface BulkDeleteFoldersRequest {
3708
+ /** IDs of the folders to move to the Media Manager's trash bin. */
3709
+ folderIds: string[];
3710
+ /**
3711
+ * Whether the specified folders are permanently deleted. <br />
3712
+ * Default: `false`
3713
+ */
3714
+ permanent?: boolean;
3715
+ }
3716
+ interface BulkDeleteFoldersResponse {
3717
+ }
3718
+ interface BulkRestoreFoldersFromTrashBinRequest {
3719
+ /** IDs of the folders to restore from the Media Manager's trash bin. */
3720
+ folderIds: string[];
3721
+ }
3722
+ interface BulkRestoreFoldersFromTrashBinResponse {
3723
+ }
3724
+ interface ListDeletedFoldersRequest {
3725
+ /** ID of the folder's parent folder. */
3726
+ parentFolderId?: string | null;
3727
+ /**
3728
+ * Field name and order to sort by. One of:
3729
+ * - `displayName`
3730
+ * - `_updatedDate`
3731
+ *
3732
+ * Default: `_updatedDate` in `"DESC"` order.
3733
+ */
3734
+ sort?: Sorting;
3735
+ /** Cursor and paging information. */
3736
+ paging?: CursorPaging;
3737
+ }
3738
+ interface ListDeletedFoldersResponse {
3739
+ /** List of folders in the Media Manager's trash bin. */
3740
+ folders?: Folder[];
3741
+ /** The next cursor if it exists. */
3742
+ nextCursor?: PagingMetadataV2;
3743
+ }
3744
+ interface DomainEvent extends DomainEventBodyOneOf {
3745
+ createdEvent?: EntityCreatedEvent;
3746
+ updatedEvent?: EntityUpdatedEvent;
3747
+ deletedEvent?: EntityDeletedEvent;
3748
+ actionEvent?: ActionEvent;
3749
+ /**
3750
+ * Unique event ID.
3751
+ * Allows clients to ignore duplicate webhooks.
3752
+ */
3753
+ _id?: string;
3754
+ /**
3755
+ * Assumes actions are also always typed to an entity_type
3756
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
3757
+ */
3758
+ entityFqdn?: string;
3759
+ /**
3760
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
3761
+ * This is although the created/updated/deleted notion is duplication of the oneof types
3762
+ * Example: created/updated/deleted/started/completed/email_opened
3763
+ */
3764
+ slug?: string;
3765
+ /** ID of the entity associated with the event. */
3766
+ entityId?: string;
3767
+ /** Event timestamp. */
3768
+ eventTime?: Date;
3769
+ /**
3770
+ * Whether the event was triggered as a result of a privacy regulation application
3771
+ * (for example, GDPR).
3772
+ */
3773
+ triggeredByAnonymizeRequest?: boolean | null;
3774
+ /** If present, indicates the action that triggered the event. */
3775
+ originatedFrom?: string | null;
3776
+ /**
3777
+ * A sequence number defining the order of updates to the underlying entity.
3778
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
3779
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3780
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3781
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
3782
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3783
+ */
3784
+ entityEventSequence?: string | null;
3785
+ }
3786
+ /** @oneof */
3787
+ interface DomainEventBodyOneOf {
3788
+ createdEvent?: EntityCreatedEvent;
3789
+ updatedEvent?: EntityUpdatedEvent;
3790
+ deletedEvent?: EntityDeletedEvent;
3791
+ actionEvent?: ActionEvent;
3792
+ }
3793
+ interface EntityCreatedEvent {
3794
+ entity?: string;
3795
+ }
3796
+ interface EntityUpdatedEvent {
3797
+ /**
3798
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3799
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3800
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3801
+ */
3802
+ currentEntity?: string;
3803
+ }
3804
+ interface EntityDeletedEvent {
3805
+ /** Entity that was deleted */
3806
+ deletedEntity?: string | null;
3807
+ }
3808
+ interface ActionEvent {
3809
+ body?: string;
3810
+ }
3811
+ interface MessageEnvelope {
3812
+ /** App instance ID. */
3813
+ instanceId?: string | null;
3814
+ /** Event type. */
3815
+ eventType?: string;
3816
+ /** The identification type and identity data. */
3817
+ identity?: IdentificationData;
3818
+ /** Stringify payload. */
3819
+ data?: string;
3820
+ }
3821
+ interface IdentificationData extends IdentificationDataIdOneOf {
3822
+ /** ID of a site visitor that has not logged in to the site. */
3823
+ anonymousVisitorId?: string;
3824
+ /** ID of a site visitor that has logged in to the site. */
3825
+ memberId?: string;
3826
+ /** ID of a Wix user (site owner, contributor, etc.). */
3827
+ wixUserId?: string;
3828
+ /** ID of an app. */
3829
+ appId?: string;
3830
+ /** @readonly */
3831
+ identityType?: WebhookIdentityType;
3832
+ }
3833
+ /** @oneof */
3834
+ interface IdentificationDataIdOneOf {
3835
+ /** ID of a site visitor that has not logged in to the site. */
3836
+ anonymousVisitorId?: string;
3837
+ /** ID of a site visitor that has logged in to the site. */
3838
+ memberId?: string;
3839
+ /** ID of a Wix user (site owner, contributor, etc.). */
3840
+ wixUserId?: string;
3841
+ /** ID of an app. */
3842
+ appId?: string;
3843
+ }
3844
+ declare enum WebhookIdentityType {
3845
+ UNKNOWN = "UNKNOWN",
3846
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3847
+ MEMBER = "MEMBER",
3848
+ WIX_USER = "WIX_USER",
3849
+ APP = "APP"
3850
+ }
3851
+ interface CreateFolderResponseNonNullableFields {
3852
+ folder?: {
3853
+ _id: string;
3854
+ displayName: string;
3855
+ parentFolderId: string;
3856
+ state: State;
3857
+ };
3858
+ }
3859
+ interface GetFolderResponseNonNullableFields {
3860
+ folder?: {
3861
+ _id: string;
3862
+ displayName: string;
3863
+ parentFolderId: string;
3864
+ state: State;
3865
+ };
3866
+ }
3867
+ interface ListFoldersResponseNonNullableFields {
3868
+ folders: {
3869
+ _id: string;
3870
+ displayName: string;
3871
+ parentFolderId: string;
3872
+ state: State;
3873
+ }[];
3874
+ }
3875
+ interface SearchFoldersResponseNonNullableFields {
3876
+ folders: {
3877
+ _id: string;
3878
+ displayName: string;
3879
+ parentFolderId: string;
3880
+ state: State;
3881
+ }[];
3882
+ }
3883
+ interface UpdateFolderResponseNonNullableFields {
3884
+ folder?: {
3885
+ _id: string;
3886
+ displayName: string;
3887
+ parentFolderId: string;
3888
+ state: State;
3889
+ };
3890
+ }
3891
+ interface GenerateFolderDownloadUrlResponseNonNullableFields {
3892
+ downloadUrl: string;
3893
+ }
3894
+ interface ListDeletedFoldersResponseNonNullableFields {
3895
+ folders: {
3896
+ _id: string;
3897
+ displayName: string;
3898
+ parentFolderId: string;
3899
+ state: State;
3900
+ }[];
3901
+ }
3902
+ interface BaseEventMetadata {
3903
+ /** App instance ID. */
3904
+ instanceId?: string | null;
3905
+ /** Event type. */
3906
+ eventType?: string;
3907
+ /** The identification type and identity data. */
3908
+ identity?: IdentificationData;
3909
+ }
3910
+ interface EventMetadata extends BaseEventMetadata {
3911
+ /**
3912
+ * Unique event ID.
3913
+ * Allows clients to ignore duplicate webhooks.
3914
+ */
3915
+ _id?: string;
3916
+ /**
3917
+ * Assumes actions are also always typed to an entity_type
3918
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
3919
+ */
3920
+ entityFqdn?: string;
3921
+ /**
3922
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
3923
+ * This is although the created/updated/deleted notion is duplication of the oneof types
3924
+ * Example: created/updated/deleted/started/completed/email_opened
3925
+ */
3926
+ slug?: string;
3927
+ /** ID of the entity associated with the event. */
3928
+ entityId?: string;
3929
+ /** Event timestamp. */
3930
+ eventTime?: Date;
3931
+ /**
3932
+ * Whether the event was triggered as a result of a privacy regulation application
3933
+ * (for example, GDPR).
3934
+ */
3935
+ triggeredByAnonymizeRequest?: boolean | null;
3936
+ /** If present, indicates the action that triggered the event. */
3937
+ originatedFrom?: string | null;
3938
+ /**
3939
+ * A sequence number defining the order of updates to the underlying entity.
3940
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
3941
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3942
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3943
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
3944
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3945
+ */
3946
+ entityEventSequence?: string | null;
3947
+ }
3948
+ interface FolderCreatedEnvelope {
3949
+ entity: Folder;
3950
+ metadata: EventMetadata;
3951
+ }
3952
+ interface FolderUpdatedEnvelope {
3953
+ entity: Folder;
3954
+ metadata: EventMetadata;
3955
+ }
3956
+ interface FolderDeletedEnvelope {
3957
+ metadata: EventMetadata;
3958
+ }
3959
+ interface CreateFolderOptions {
3960
+ /** ID of the folder's parent folder. */
3961
+ parentFolderId?: string | null;
3962
+ }
3963
+ interface ListFoldersOptions {
3964
+ /**
3965
+ * ID of the folder's parent folder.
3966
+ * <br /> Default: `media-root` folder.
3967
+ */
3968
+ parentFolderId?: string | null;
3969
+ /**
3970
+ * Field name and order to sort by. One of:
3971
+ * - `displayName`
3972
+ * - `_updatedDate`
3973
+ *
3974
+ * Default: `_updatedDate` in `"DESC"` order.
3975
+ */
3976
+ sort?: Sorting;
3977
+ /** Cursor and paging information. */
3978
+ paging?: CursorPaging;
3979
+ }
3980
+ interface SearchFoldersOptions {
3981
+ /**
3982
+ * A root folder in the media manager to search in. <br />
3983
+ * Default: `MEDIA_ROOT`.
3984
+ */
3985
+ rootFolder?: RootFolder;
3986
+ /**
3987
+ * Field name and order to sort by. One of:
3988
+ * - `displayName`
3989
+ * - `_updatedDate`
3990
+ *
3991
+ * Default: `_updatedDate` in `"DESC"` order.
3992
+ */
3993
+ sort?: Sorting;
3994
+ /** Cursor and paging information. */
3995
+ paging?: CursorPaging;
3996
+ /**
3997
+ * Term to search for, such as the value of a folder's `displayName`.
3998
+ *
3999
+ * For example, if a folder's `displayName` is 'my-videos-folder', the search term is `'my-videos-folder'`.
4000
+ */
4001
+ search?: string | null;
4002
+ }
4003
+ interface UpdateFolder {
4004
+ /** Folder ID. Generated when a folder is created in the Media Manager. */
4005
+ _id?: string;
4006
+ /** Folder name as it appears in the Media Manager. */
4007
+ displayName?: string;
4008
+ /** ID of the folder's parent folder. <br /> Default: `media-root` folder. */
4009
+ parentFolderId?: string;
4010
+ /**
4011
+ * Date the folder was created.
4012
+ * @readonly
4013
+ */
4014
+ _createdDate?: Date;
4015
+ /**
4016
+ * Date the folder was updated.
4017
+ * @readonly
4018
+ */
4019
+ _updatedDate?: Date;
4020
+ /**
4021
+ * State of the folder.
4022
+ * @readonly
4023
+ */
4024
+ state?: State;
4025
+ }
4026
+ interface BulkDeleteFoldersOptions {
4027
+ /**
4028
+ * Whether the specified folders are permanently deleted. <br />
4029
+ * Default: `false`
4030
+ */
4031
+ permanent?: boolean;
4032
+ }
4033
+ interface ListDeletedFoldersOptions {
4034
+ /** ID of the folder's parent folder. */
4035
+ parentFolderId?: string | null;
4036
+ /**
4037
+ * Field name and order to sort by. One of:
4038
+ * - `displayName`
4039
+ * - `_updatedDate`
4040
+ *
4041
+ * Default: `_updatedDate` in `"DESC"` order.
4042
+ */
4043
+ sort?: Sorting;
4044
+ /** Cursor and paging information. */
4045
+ paging?: CursorPaging;
4046
+ }
4047
+
4048
+ declare const __metadata: {
4049
+ PACKAGE_NAME: string;
4050
+ };
4051
+ declare function createFolder(httpClient: HttpClient): (displayName: string, options?: CreateFolderOptions) => Promise<CreateFolderResponse & CreateFolderResponseNonNullableFields>;
4052
+ declare function getFolder(httpClient: HttpClient): (folderId: string) => Promise<Folder & {
4053
+ _id: string;
4054
+ displayName: string;
4055
+ parentFolderId: string;
4056
+ state: State;
4057
+ }>;
4058
+ declare function listFolders(httpClient: HttpClient): (options?: ListFoldersOptions) => Promise<ListFoldersResponse & ListFoldersResponseNonNullableFields>;
4059
+ declare function searchFolders(httpClient: HttpClient): (options?: SearchFoldersOptions) => Promise<SearchFoldersResponse & SearchFoldersResponseNonNullableFields>;
4060
+ declare function updateFolder(httpClient: HttpClient): (_id: string, folder: UpdateFolder) => Promise<Folder & {
4061
+ _id: string;
4062
+ displayName: string;
4063
+ parentFolderId: string;
4064
+ state: State;
4065
+ }>;
4066
+ declare function generateFolderDownloadUrl(httpClient: HttpClient): (folderId: string) => Promise<GenerateFolderDownloadUrlResponse & GenerateFolderDownloadUrlResponseNonNullableFields>;
4067
+ declare function bulkDeleteFolders(httpClient: HttpClient): (folderIds: string[], options?: BulkDeleteFoldersOptions) => Promise<void>;
4068
+ declare function bulkRestoreFoldersFromTrashBin(httpClient: HttpClient): (folderIds: string[]) => Promise<void>;
4069
+ declare function listDeletedFolders(httpClient: HttpClient): (options?: ListDeletedFoldersOptions) => Promise<ListDeletedFoldersResponse & ListDeletedFoldersResponseNonNullableFields>;
4070
+ declare const onFolderCreated: EventDefinition<FolderCreatedEnvelope, "wix.media.site_media.v1.folder_created">;
4071
+ declare const onFolderUpdated: EventDefinition<FolderUpdatedEnvelope, "wix.media.site_media.v1.folder_updated">;
4072
+ declare const onFolderDeleted: EventDefinition<FolderDeletedEnvelope, "wix.media.site_media.v1.folder_deleted">;
4073
+
4074
+ type index_d_ActionEvent = ActionEvent;
4075
+ type index_d_BaseEventMetadata = BaseEventMetadata;
4076
+ type index_d_BulkDeleteFoldersOptions = BulkDeleteFoldersOptions;
4077
+ type index_d_BulkDeleteFoldersRequest = BulkDeleteFoldersRequest;
4078
+ type index_d_BulkDeleteFoldersResponse = BulkDeleteFoldersResponse;
4079
+ type index_d_BulkRestoreFoldersFromTrashBinRequest = BulkRestoreFoldersFromTrashBinRequest;
4080
+ type index_d_BulkRestoreFoldersFromTrashBinResponse = BulkRestoreFoldersFromTrashBinResponse;
4081
+ type index_d_CreateFolderOptions = CreateFolderOptions;
4082
+ type index_d_CreateFolderRequest = CreateFolderRequest;
4083
+ type index_d_CreateFolderResponse = CreateFolderResponse;
4084
+ type index_d_CreateFolderResponseNonNullableFields = CreateFolderResponseNonNullableFields;
4085
+ type index_d_CursorPaging = CursorPaging;
4086
+ type index_d_Cursors = Cursors;
4087
+ type index_d_DomainEvent = DomainEvent;
4088
+ type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
4089
+ type index_d_EntityCreatedEvent = EntityCreatedEvent;
4090
+ type index_d_EntityDeletedEvent = EntityDeletedEvent;
4091
+ type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
4092
+ type index_d_EventMetadata = EventMetadata;
4093
+ type index_d_Folder = Folder;
4094
+ type index_d_FolderCreatedEnvelope = FolderCreatedEnvelope;
4095
+ type index_d_FolderDeletedEnvelope = FolderDeletedEnvelope;
4096
+ type index_d_FolderUpdatedEnvelope = FolderUpdatedEnvelope;
4097
+ type index_d_GenerateFolderDownloadUrlRequest = GenerateFolderDownloadUrlRequest;
4098
+ type index_d_GenerateFolderDownloadUrlResponse = GenerateFolderDownloadUrlResponse;
4099
+ type index_d_GenerateFolderDownloadUrlResponseNonNullableFields = GenerateFolderDownloadUrlResponseNonNullableFields;
4100
+ type index_d_GetFolderRequest = GetFolderRequest;
4101
+ type index_d_GetFolderResponse = GetFolderResponse;
4102
+ type index_d_GetFolderResponseNonNullableFields = GetFolderResponseNonNullableFields;
4103
+ type index_d_IdentificationData = IdentificationData;
4104
+ type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
4105
+ type index_d_ListDeletedFoldersOptions = ListDeletedFoldersOptions;
4106
+ type index_d_ListDeletedFoldersRequest = ListDeletedFoldersRequest;
4107
+ type index_d_ListDeletedFoldersResponse = ListDeletedFoldersResponse;
4108
+ type index_d_ListDeletedFoldersResponseNonNullableFields = ListDeletedFoldersResponseNonNullableFields;
4109
+ type index_d_ListFoldersOptions = ListFoldersOptions;
4110
+ type index_d_ListFoldersRequest = ListFoldersRequest;
4111
+ type index_d_ListFoldersResponse = ListFoldersResponse;
4112
+ type index_d_ListFoldersResponseNonNullableFields = ListFoldersResponseNonNullableFields;
4113
+ type index_d_MessageEnvelope = MessageEnvelope;
4114
+ type index_d_Namespace = Namespace;
4115
+ declare const index_d_Namespace: typeof Namespace;
4116
+ type index_d_PagingMetadataV2 = PagingMetadataV2;
4117
+ type index_d_RootFolder = RootFolder;
4118
+ declare const index_d_RootFolder: typeof RootFolder;
4119
+ type index_d_SearchFoldersOptions = SearchFoldersOptions;
4120
+ type index_d_SearchFoldersRequest = SearchFoldersRequest;
4121
+ type index_d_SearchFoldersResponse = SearchFoldersResponse;
4122
+ type index_d_SearchFoldersResponseNonNullableFields = SearchFoldersResponseNonNullableFields;
4123
+ type index_d_SortOrder = SortOrder;
4124
+ declare const index_d_SortOrder: typeof SortOrder;
4125
+ type index_d_Sorting = Sorting;
4126
+ type index_d_State = State;
4127
+ declare const index_d_State: typeof State;
4128
+ type index_d_UpdateFolder = UpdateFolder;
4129
+ type index_d_UpdateFolderRequest = UpdateFolderRequest;
4130
+ type index_d_UpdateFolderResponse = UpdateFolderResponse;
4131
+ type index_d_UpdateFolderResponseNonNullableFields = UpdateFolderResponseNonNullableFields;
4132
+ type index_d_WebhookIdentityType = WebhookIdentityType;
4133
+ declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
4134
+ declare const index_d___metadata: typeof __metadata;
4135
+ declare const index_d_bulkDeleteFolders: typeof bulkDeleteFolders;
4136
+ declare const index_d_bulkRestoreFoldersFromTrashBin: typeof bulkRestoreFoldersFromTrashBin;
4137
+ declare const index_d_createFolder: typeof createFolder;
4138
+ declare const index_d_generateFolderDownloadUrl: typeof generateFolderDownloadUrl;
4139
+ declare const index_d_getFolder: typeof getFolder;
4140
+ declare const index_d_listDeletedFolders: typeof listDeletedFolders;
4141
+ declare const index_d_listFolders: typeof listFolders;
4142
+ declare const index_d_onFolderCreated: typeof onFolderCreated;
4143
+ declare const index_d_onFolderDeleted: typeof onFolderDeleted;
4144
+ declare const index_d_onFolderUpdated: typeof onFolderUpdated;
4145
+ declare const index_d_searchFolders: typeof searchFolders;
4146
+ declare const index_d_updateFolder: typeof updateFolder;
4147
+ declare namespace index_d {
4148
+ export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkDeleteFoldersOptions as BulkDeleteFoldersOptions, type index_d_BulkDeleteFoldersRequest as BulkDeleteFoldersRequest, type index_d_BulkDeleteFoldersResponse as BulkDeleteFoldersResponse, type index_d_BulkRestoreFoldersFromTrashBinRequest as BulkRestoreFoldersFromTrashBinRequest, type index_d_BulkRestoreFoldersFromTrashBinResponse as BulkRestoreFoldersFromTrashBinResponse, type index_d_CreateFolderOptions as CreateFolderOptions, type index_d_CreateFolderRequest as CreateFolderRequest, type index_d_CreateFolderResponse as CreateFolderResponse, type index_d_CreateFolderResponseNonNullableFields as CreateFolderResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Folder as Folder, type index_d_FolderCreatedEnvelope as FolderCreatedEnvelope, type index_d_FolderDeletedEnvelope as FolderDeletedEnvelope, type index_d_FolderUpdatedEnvelope as FolderUpdatedEnvelope, type index_d_GenerateFolderDownloadUrlRequest as GenerateFolderDownloadUrlRequest, type index_d_GenerateFolderDownloadUrlResponse as GenerateFolderDownloadUrlResponse, type index_d_GenerateFolderDownloadUrlResponseNonNullableFields as GenerateFolderDownloadUrlResponseNonNullableFields, type index_d_GetFolderRequest as GetFolderRequest, type index_d_GetFolderResponse as GetFolderResponse, type index_d_GetFolderResponseNonNullableFields as GetFolderResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListDeletedFoldersOptions as ListDeletedFoldersOptions, type index_d_ListDeletedFoldersRequest as ListDeletedFoldersRequest, type index_d_ListDeletedFoldersResponse as ListDeletedFoldersResponse, type index_d_ListDeletedFoldersResponseNonNullableFields as ListDeletedFoldersResponseNonNullableFields, type index_d_ListFoldersOptions as ListFoldersOptions, type index_d_ListFoldersRequest as ListFoldersRequest, type index_d_ListFoldersResponse as ListFoldersResponse, type index_d_ListFoldersResponseNonNullableFields as ListFoldersResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, index_d_Namespace as Namespace, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_RootFolder as RootFolder, type index_d_SearchFoldersOptions as SearchFoldersOptions, type index_d_SearchFoldersRequest as SearchFoldersRequest, type index_d_SearchFoldersResponse as SearchFoldersResponse, type index_d_SearchFoldersResponseNonNullableFields as SearchFoldersResponseNonNullableFields, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_UpdateFolder as UpdateFolder, type index_d_UpdateFolderRequest as UpdateFolderRequest, type index_d_UpdateFolderResponse as UpdateFolderResponse, type index_d_UpdateFolderResponseNonNullableFields as UpdateFolderResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_bulkDeleteFolders as bulkDeleteFolders, index_d_bulkRestoreFoldersFromTrashBin as bulkRestoreFoldersFromTrashBin, index_d_createFolder as createFolder, index_d_generateFolderDownloadUrl as generateFolderDownloadUrl, index_d_getFolder as getFolder, index_d_listDeletedFolders as listDeletedFolders, index_d_listFolders as listFolders, index_d_onFolderCreated as onFolderCreated, index_d_onFolderDeleted as onFolderDeleted, index_d_onFolderUpdated as onFolderUpdated, index_d_searchFolders as searchFolders, index_d_updateFolder as updateFolder };
4149
+ }
4150
+
4151
+ export { index_d$3 as enterpriseMediaCategories, index_d$2 as enterpriseMediaItems, index_d$1 as files, index_d as folders };