@wix/auto_sdk_media_files 1.0.0 → 1.0.2

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.
Files changed (57) hide show
  1. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.d.ts +2 -2
  2. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.js +2 -2
  3. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.js.map +1 -1
  4. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -7
  5. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.js +0 -7
  6. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.js.map +1 -1
  7. package/build/cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts +1 -8
  8. package/build/cjs/src/media-site-media-v1-file-descriptor-files.public.js.map +1 -1
  9. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.d.ts +490 -179
  10. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.js +9 -9
  11. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.js.map +1 -1
  12. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.d.ts +678 -194
  13. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.js +105 -16
  14. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.js.map +1 -1
  15. package/build/es/src/media-site-media-v1-file-descriptor-files.context.d.ts +2 -2
  16. package/build/es/src/media-site-media-v1-file-descriptor-files.context.js +1 -1
  17. package/build/es/src/media-site-media-v1-file-descriptor-files.context.js.map +1 -1
  18. package/build/es/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -7
  19. package/build/es/src/media-site-media-v1-file-descriptor-files.http.js +0 -7
  20. package/build/es/src/media-site-media-v1-file-descriptor-files.http.js.map +1 -1
  21. package/build/es/src/media-site-media-v1-file-descriptor-files.public.d.ts +1 -8
  22. package/build/es/src/media-site-media-v1-file-descriptor-files.public.js.map +1 -1
  23. package/build/es/src/media-site-media-v1-file-descriptor-files.types.d.ts +490 -179
  24. package/build/es/src/media-site-media-v1-file-descriptor-files.types.js +8 -8
  25. package/build/es/src/media-site-media-v1-file-descriptor-files.types.js.map +1 -1
  26. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.d.ts +678 -194
  27. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.js +104 -15
  28. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.js.map +1 -1
  29. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.d.ts +2 -2
  30. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.js +2 -2
  31. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.js.map +1 -1
  32. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -7
  33. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.js +0 -7
  34. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.js.map +1 -1
  35. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts +1 -8
  36. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.public.js.map +1 -1
  37. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.d.ts +490 -179
  38. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.js +9 -9
  39. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.js.map +1 -1
  40. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.d.ts +678 -194
  41. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.js +105 -16
  42. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.js.map +1 -1
  43. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.d.ts +2 -2
  44. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.js +1 -1
  45. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.js.map +1 -1
  46. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -7
  47. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.js +0 -7
  48. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.js.map +1 -1
  49. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.d.ts +1 -8
  50. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.js.map +1 -1
  51. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.d.ts +490 -179
  52. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.js +8 -8
  53. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.js.map +1 -1
  54. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.d.ts +678 -194
  55. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.js +104 -15
  56. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.js.map +1 -1
  57. package/package.json +2 -2
@@ -2,25 +2,36 @@ export interface FileDescriptor {
2
2
  /**
3
3
  * File ID. Generated when a file is uploaded to the Media Manager.
4
4
  * @readonly
5
+ * @maxLength 1000
5
6
  */
6
7
  id?: string;
7
- /** File name as it appears in the Media Manager. */
8
+ /**
9
+ * File name as it appears in the Media Manager.
10
+ * @maxLength 200
11
+ */
8
12
  displayName?: string;
9
13
  /**
10
14
  * Static URL of the file.
11
15
  * @readonly
16
+ * @format WEB_URL
12
17
  */
13
18
  url?: string;
14
- /** ID of the file's parent folder. */
19
+ /**
20
+ * ID of the file's parent folder.
21
+ * @maxLength 100
22
+ */
15
23
  parentFolderId?: string | null;
16
24
  /**
17
25
  * File hash.
18
26
  * @readonly
27
+ * @maxLength 100
19
28
  */
20
29
  hash?: string;
21
30
  /**
22
31
  * Size of the uploaded file in bytes.
23
32
  * @readonly
33
+ * @format DECIMAL_VALUE
34
+ * @decimalValue options { maxScale:0 }
24
35
  */
25
36
  sizeInBytes?: string | null;
26
37
  /**
@@ -49,14 +60,20 @@ export interface FileDescriptor {
49
60
  /**
50
61
  * URL where the file was uploaded from.
51
62
  * @readonly
63
+ * @format WEB_URL
52
64
  */
53
65
  sourceUrl?: string | null;
54
66
  /**
55
67
  * URL of the file's thumbnail.
56
68
  * @readonly
69
+ * @format WEB_URL
57
70
  */
58
71
  thumbnailUrl?: string | null;
59
- /** Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
72
+ /**
73
+ * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
74
+ * @maxSize 100
75
+ * @maxLength 200
76
+ */
60
77
  labels?: string[];
61
78
  /**
62
79
  * Date and time the file was created.
@@ -71,6 +88,7 @@ export interface FileDescriptor {
71
88
  /**
72
89
  * The Wix site ID where the media file is stored.
73
90
  * @readonly
91
+ * @maxLength 100
74
92
  */
75
93
  siteId?: string;
76
94
  /**
@@ -128,7 +146,10 @@ export interface ImageMedia {
128
146
  image?: Image;
129
147
  /** Image colors. */
130
148
  colors?: Colors;
131
- /** Information about faces in the image. Use to crop images without cutting out faces. */
149
+ /**
150
+ * Information about faces in the image. Use to crop images without cutting out faces.
151
+ * @maxSize 100
152
+ */
132
153
  faces?: FaceRecognition[];
133
154
  /**
134
155
  * Information about the image preview.
@@ -138,6 +159,7 @@ export interface ImageMedia {
138
159
  /**
139
160
  * Optional, An AI generated description of the image
140
161
  * @readonly
162
+ * @maxLength 300
141
163
  */
142
164
  caption?: string | null;
143
165
  }
@@ -177,21 +199,36 @@ export interface FocalPoint {
177
199
  export interface Colors {
178
200
  /** Main color of the image. */
179
201
  prominent?: Color;
180
- /** Color palette of the image. */
202
+ /**
203
+ * Color palette of the image.
204
+ * @maxSize 100
205
+ */
181
206
  palette?: Color[];
182
207
  }
183
208
  export interface Color {
184
- /** HEX color. */
209
+ /**
210
+ * HEX color.
211
+ * @format COLOR_HEX
212
+ */
185
213
  hex?: string | null;
186
214
  /** RGB color. */
187
215
  rgb?: ColorRGB;
188
216
  }
189
217
  export interface ColorRGB {
190
- /** Red channel. */
218
+ /**
219
+ * Red channel.
220
+ * @max 255
221
+ */
191
222
  r?: number | null;
192
- /** Green channel. */
223
+ /**
224
+ * Green channel.
225
+ * @max 255
226
+ */
193
227
  g?: number | null;
194
- /** Blue channel. */
228
+ /**
229
+ * Blue channel.
230
+ * @max 255
231
+ */
195
232
  b?: number | null;
196
233
  }
197
234
  /**
@@ -227,6 +264,7 @@ export interface VideoV2 {
227
264
  /**
228
265
  * Available resolutions for the video, starting with the optimal resolution.
229
266
  * @readonly
267
+ * @maxSize 100
230
268
  */
231
269
  resolutions?: VideoResolution[];
232
270
  /**
@@ -250,9 +288,15 @@ export interface VideoResolution {
250
288
  format?: string;
251
289
  }
252
290
  export interface AudioV2 {
253
- /** WixMedia ID. */
291
+ /**
292
+ * WixMedia ID.
293
+ * @maxLength 200
294
+ */
254
295
  id?: string;
255
- /** Audio formats available for this file. */
296
+ /**
297
+ * Audio formats available for this file.
298
+ * @maxSize 100
299
+ */
256
300
  assets?: Audio[];
257
301
  /**
258
302
  * Audio bitrate.
@@ -262,6 +306,7 @@ export interface AudioV2 {
262
306
  /**
263
307
  * Audio format.
264
308
  * @readonly
309
+ * @maxLength 100
265
310
  */
266
311
  format?: string | null;
267
312
  /**
@@ -272,6 +317,8 @@ export interface AudioV2 {
272
317
  /**
273
318
  * Audio size in bytes.
274
319
  * @readonly
320
+ * @format DECIMAL_VALUE
321
+ * @decimalValue options { maxScale:0 }
275
322
  */
276
323
  sizeInBytes?: string | null;
277
324
  }
@@ -304,7 +351,10 @@ export interface Archive {
304
351
  * @readonly
305
352
  */
306
353
  urlExpirationDate?: Date | null;
307
- /** Archive size in bytes. */
354
+ /**
355
+ * Archive size in bytes.
356
+ * @format DECIMAL_VALUE
357
+ */
308
358
  sizeInBytes?: string | null;
309
359
  /** Archive filename. */
310
360
  filename?: string | null;
@@ -331,51 +381,85 @@ export interface Model3D {
331
381
  /**
332
382
  * 3D size in bytes.
333
383
  * @readonly
384
+ * @format DECIMAL_VALUE
334
385
  */
335
386
  sizeInBytes?: string | null;
336
387
  }
337
388
  export interface OtherMedia {
338
- /** WixMedia ID. for use with Site Media APIs only */
389
+ /**
390
+ * WixMedia ID. for use with Site Media APIs only
391
+ * @maxLength 200
392
+ */
339
393
  id?: string;
340
394
  /**
341
395
  * The media type of the file: 'package', 'raw'
342
396
  * @readonly
397
+ * @maxLength 100
343
398
  */
344
399
  internalMediaType?: string | null;
345
400
  /**
346
401
  * size in bytes. Optional.
347
402
  * @readonly
403
+ * @format DECIMAL_VALUE
404
+ * @decimalValue options { gte:0, maxScale:0 }
348
405
  */
349
406
  sizeInBytes?: string | null;
350
- /** The file URL. */
407
+ /**
408
+ * The file URL.
409
+ * @format WEB_URL
410
+ */
351
411
  url?: string;
352
412
  }
353
413
  export interface FontMedia {
354
- /** WixMedia ID. for use with Site Media APIs only */
414
+ /**
415
+ * WixMedia ID. for use with Site Media APIs only
416
+ * @maxLength 200
417
+ */
355
418
  id?: string | null;
356
419
  /**
357
420
  * size in bytes. Optional.
358
421
  * @readonly
422
+ * @format DECIMAL_VALUE
423
+ * @decimalValue options { gte:0, maxScale:0 }
359
424
  */
360
425
  sizeInBytes?: string | null;
361
- /** The format of the font asset. ttf, woff, woff2 */
426
+ /**
427
+ * The format of the font asset. ttf, woff, woff2
428
+ * @maxLength 200
429
+ */
362
430
  format?: string | null;
363
- /** The font family name. */
431
+ /**
432
+ * The font family name.
433
+ * @maxLength 100
434
+ */
364
435
  family?: string | null;
365
- /** The font name */
436
+ /**
437
+ * The font name
438
+ * @maxLength 100
439
+ */
366
440
  fontName?: string | null;
367
- /** Font formats available for this file. */
441
+ /**
442
+ * Font formats available for this file.
443
+ * @maxSize 5
444
+ */
368
445
  assets?: FontAsset[];
369
446
  }
370
447
  export interface FontAsset {
371
448
  /**
372
449
  * Keys for downloading different assets of a file.
373
450
  * Default: `src`, key representing the original file's format and quality.
451
+ * @maxLength 100
374
452
  */
375
453
  assetKey?: string | null;
376
- /** The URL of the font asset. */
454
+ /**
455
+ * The URL of the font asset.
456
+ * @maxLength 200
457
+ */
377
458
  url?: string | null;
378
- /** The format of the font asset. ttf, woff, woff2 */
459
+ /**
460
+ * The format of the font asset. ttf, woff, woff2
461
+ * @maxLength 200
462
+ */
379
463
  format?: string | null;
380
464
  }
381
465
  export declare enum OperationStatus {
@@ -423,7 +507,10 @@ export declare enum Namespace {
423
507
  export interface IdentityInfo {
424
508
  /** The type of the user that uploaded the file */
425
509
  identityType?: IdentityType;
426
- /** User Id. empty when UNKNOWN */
510
+ /**
511
+ * User Id. empty when UNKNOWN
512
+ * @format GUID
513
+ */
427
514
  identityId?: string | null;
428
515
  }
429
516
  export declare enum IdentityType {
@@ -433,6 +520,175 @@ export declare enum IdentityType {
433
520
  WIX_USER = "WIX_USER",
434
521
  APP = "APP"
435
522
  }
523
+ export interface DraftFilePublished {
524
+ /** The file after it was published */
525
+ file?: FileDescriptor;
526
+ /** The namespace the file was published to */
527
+ namespace?: Namespace;
528
+ }
529
+ export interface GetUploadUrlRequest {
530
+ /** file size in bytes */
531
+ fileSize?: number;
532
+ /**
533
+ * file name
534
+ * @maxLength 100
535
+ */
536
+ fileName?: string;
537
+ /**
538
+ * file content type
539
+ * @maxLength 50
540
+ */
541
+ contentType?: string;
542
+ }
543
+ export interface GetUploadUrlResponse {
544
+ /**
545
+ * file upload url
546
+ * @maxLength 3000
547
+ */
548
+ uploadUrl?: string;
549
+ }
550
+ export interface DomainEvent extends DomainEventBodyOneOf {
551
+ createdEvent?: EntityCreatedEvent;
552
+ updatedEvent?: EntityUpdatedEvent;
553
+ deletedEvent?: EntityDeletedEvent;
554
+ actionEvent?: ActionEvent;
555
+ /**
556
+ * Unique event ID.
557
+ * Allows clients to ignore duplicate webhooks.
558
+ */
559
+ id?: string;
560
+ /**
561
+ * Assumes actions are also always typed to an entity_type
562
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
563
+ */
564
+ entityFqdn?: string;
565
+ /**
566
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
567
+ * This is although the created/updated/deleted notion is duplication of the oneof types
568
+ * Example: created/updated/deleted/started/completed/email_opened
569
+ */
570
+ slug?: string;
571
+ /** ID of the entity associated with the event. */
572
+ entityId?: string;
573
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
574
+ eventTime?: Date | null;
575
+ /**
576
+ * Whether the event was triggered as a result of a privacy regulation application
577
+ * (for example, GDPR).
578
+ */
579
+ triggeredByAnonymizeRequest?: boolean | null;
580
+ /** If present, indicates the action that triggered the event. */
581
+ originatedFrom?: string | null;
582
+ /**
583
+ * A sequence number defining the order of updates to the underlying entity.
584
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
585
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
586
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
587
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
588
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
589
+ */
590
+ entityEventSequence?: string | null;
591
+ }
592
+ /** @oneof */
593
+ export interface DomainEventBodyOneOf {
594
+ createdEvent?: EntityCreatedEvent;
595
+ updatedEvent?: EntityUpdatedEvent;
596
+ deletedEvent?: EntityDeletedEvent;
597
+ actionEvent?: ActionEvent;
598
+ }
599
+ export interface EntityCreatedEvent {
600
+ entityAsJson?: string;
601
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
602
+ restoreInfo?: RestoreInfo;
603
+ }
604
+ export interface RestoreInfo {
605
+ deletedDate?: Date | null;
606
+ }
607
+ export interface EntityUpdatedEvent {
608
+ /**
609
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
610
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
611
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
612
+ */
613
+ currentEntityAsJson?: string;
614
+ }
615
+ export interface EntityDeletedEvent {
616
+ /** Entity that was deleted */
617
+ deletedEntityAsJson?: string | null;
618
+ }
619
+ export interface ActionEvent {
620
+ bodyAsJson?: string;
621
+ }
622
+ export interface MessageEnvelope {
623
+ /**
624
+ * App instance ID.
625
+ * @format GUID
626
+ */
627
+ instanceId?: string | null;
628
+ /**
629
+ * Event type.
630
+ * @maxLength 150
631
+ */
632
+ eventType?: string;
633
+ /** The identification type and identity data. */
634
+ identity?: IdentificationData;
635
+ /** Stringify payload. */
636
+ data?: string;
637
+ }
638
+ export interface IdentificationData extends IdentificationDataIdOneOf {
639
+ /**
640
+ * ID of a site visitor that has not logged in to the site.
641
+ * @format GUID
642
+ */
643
+ anonymousVisitorId?: string;
644
+ /**
645
+ * ID of a site visitor that has logged in to the site.
646
+ * @format GUID
647
+ */
648
+ memberId?: string;
649
+ /**
650
+ * ID of a Wix user (site owner, contributor, etc.).
651
+ * @format GUID
652
+ */
653
+ wixUserId?: string;
654
+ /**
655
+ * ID of an app.
656
+ * @format GUID
657
+ */
658
+ appId?: string;
659
+ /** @readonly */
660
+ identityType?: WebhookIdentityType;
661
+ }
662
+ /** @oneof */
663
+ export interface IdentificationDataIdOneOf {
664
+ /**
665
+ * ID of a site visitor that has not logged in to the site.
666
+ * @format GUID
667
+ */
668
+ anonymousVisitorId?: string;
669
+ /**
670
+ * ID of a site visitor that has logged in to the site.
671
+ * @format GUID
672
+ */
673
+ memberId?: string;
674
+ /**
675
+ * ID of a Wix user (site owner, contributor, etc.).
676
+ * @format GUID
677
+ */
678
+ wixUserId?: string;
679
+ /**
680
+ * ID of an app.
681
+ * @format GUID
682
+ */
683
+ appId?: string;
684
+ }
685
+ export declare enum WebhookIdentityType {
686
+ UNKNOWN = "UNKNOWN",
687
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
688
+ MEMBER = "MEMBER",
689
+ WIX_USER = "WIX_USER",
690
+ APP = "APP"
691
+ }
436
692
  export interface FileReady {
437
693
  /** File entity that is ready with full information. */
438
694
  file?: FileDescriptor;
@@ -442,9 +698,16 @@ export interface FileReady {
442
698
  triggeredByUndelete?: boolean;
443
699
  }
444
700
  export interface ExternalInfo {
445
- /** External information to specify in the File Ready or File Failed events. */
701
+ /**
702
+ * External information to specify in the File Ready or File Failed events.
703
+ * @maxLength 1000
704
+ */
446
705
  origin?: string;
447
- /** External IDs to specify in the File Ready or File Failed events. */
706
+ /**
707
+ * External IDs to specify in the File Ready or File Failed events.
708
+ * @maxSize 30
709
+ * @maxLength 4000
710
+ */
448
711
  externalIds?: string[];
449
712
  }
450
713
  export interface FileFailed {
@@ -461,16 +724,19 @@ export interface ApplicationError {
461
724
  /** Data related to the error. */
462
725
  data?: Record<string, any> | null;
463
726
  }
464
- export interface DraftFilePublished {
465
- /** The file after it was published */
466
- file?: FileDescriptor;
467
- /** The namespace the file was published to */
468
- namespace?: Namespace;
469
- }
470
727
  export interface BulkAnnotateImagesRequest {
471
- /** The file ids to run detection on */
728
+ /**
729
+ * The file ids to run detection on
730
+ * @minSize 1
731
+ * @maxSize 10
732
+ * @maxLength 1000
733
+ */
472
734
  fileIds?: string[];
473
- /** A list of detections types to fill for the image */
735
+ /**
736
+ * A list of detections types to fill for the image
737
+ * @minSize 1
738
+ * @maxSize 10
739
+ */
474
740
  annotationTypes?: ImageAnnotationType[];
475
741
  /** When true the endpoint will detect listed information even if the image has this information */
476
742
  overwrite?: boolean | null;
@@ -525,11 +791,17 @@ export interface GenerateFilesDownloadUrlRequest {
525
791
  *
526
792
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
527
793
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
794
+ * @minSize 1
795
+ * @maxSize 1000
796
+ * @maxLength 1000
528
797
  */
529
798
  fileIds: string[];
530
799
  }
531
800
  export interface GenerateFilesDownloadUrlResponse {
532
- /** URL for downloading the compressed file containing the specified files in the Media Manager. */
801
+ /**
802
+ * URL for downloading the compressed file containing the specified files in the Media Manager.
803
+ * @format WEB_URL
804
+ */
533
805
  downloadUrl?: string;
534
806
  }
535
807
  export interface GenerateFileDownloadUrlRequest {
@@ -538,28 +810,34 @@ export interface GenerateFileDownloadUrlRequest {
538
810
  *
539
811
  * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
540
812
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
813
+ * @maxLength 1000
541
814
  */
542
815
  fileId: string;
543
816
  /**
544
817
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
545
818
  *
546
819
  * **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
820
+ * @maxLength 100
547
821
  */
548
822
  downloadFileName?: string | null;
549
823
  /**
550
824
  * The time that it takes in minutes for the download URL to expire. <br />
551
825
  * Default: `600`. <br />
552
826
  * Limit: `525600` (1 year).
827
+ * @min 1
553
828
  */
554
829
  expirationInMinutes?: number | null;
555
830
  /**
556
831
  * The redirect URL for when the temporary download URL with a token expires. <br />
557
832
  * Default: A 403 Forbidden response page.
833
+ * @format WEB_URL
558
834
  */
559
835
  expirationRedirectUrl?: string | null;
560
836
  /**
561
837
  * Keys for downloading different assets (format and quality) of a file.
562
838
  * Default: `src`, key representing the original file's format and quality.
839
+ * @maxSize 100
840
+ * @maxLength 100
563
841
  */
564
842
  assetKeys?: string[] | null;
565
843
  /**
@@ -579,15 +857,22 @@ export declare enum ContentDisposition {
579
857
  INLINE = "INLINE"
580
858
  }
581
859
  export interface GenerateFileDownloadUrlResponse {
582
- /** URL for downloading a specific file in the Media Manager. */
860
+ /**
861
+ * URL for downloading a specific file in the Media Manager.
862
+ * @maxSize 100
863
+ */
583
864
  downloadUrls?: DownloadUrl[];
584
865
  }
585
866
  export interface DownloadUrl {
586
- /** The file download URL. */
867
+ /**
868
+ * The file download URL.
869
+ * @format WEB_URL
870
+ */
587
871
  url?: string;
588
872
  /**
589
873
  * Key for downloading a different asset (format and quality) of a file.
590
874
  * Default: `src`, key representing the original file's format and quality.
875
+ * @maxLength 100
591
876
  */
592
877
  assetKey?: string;
593
878
  }
@@ -595,11 +880,15 @@ export interface ServiceError {
595
880
  /**
596
881
  * Error codes are groups of related errors
597
882
  * The error code can be used to provide additional details to wix support while debugging service errors
883
+ * @maxLength 200
598
884
  */
599
885
  internalCode?: string | null;
600
886
  /** Debugging information, http status code returned from wix media internal API */
601
887
  internalHttpStatusCode?: number | null;
602
- /** Optional Debugging information, error key will represent the error "family" returned from wix media internal API */
888
+ /**
889
+ * Optional Debugging information, error key will represent the error "family" returned from wix media internal API
890
+ * @maxLength 200
891
+ */
603
892
  internalKey?: string | null;
604
893
  }
605
894
  export interface GetFileDescriptorRequest {
@@ -610,6 +899,7 @@ export interface GetFileDescriptorRequest {
610
899
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
611
900
  *
612
901
  * If you are working in REST, note that you must encode the Wix media URL to specify it as a query param because it contains special characters. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032` becomes `wix%3Aimage%3A%2F%2Fv1%2F0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg%2Fleon.jpg%23originWidth%3D3024%26originHeight%3D4032`.
902
+ * @maxLength 1000
613
903
  */
614
904
  fileId: string;
615
905
  }
@@ -623,11 +913,17 @@ export interface GetFileDescriptorsRequest {
623
913
  *
624
914
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
625
915
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
916
+ * @minSize 1
917
+ * @maxSize 100
918
+ * @maxLength 1000
626
919
  */
627
920
  fileIds: string[];
628
921
  }
629
922
  export interface GetFileDescriptorsResponse {
630
- /** Information about the requested files. */
923
+ /**
924
+ * Information about the requested files.
925
+ * @maxSize 100
926
+ */
631
927
  files?: FileDescriptor[];
632
928
  }
633
929
  export interface UpdateFileDescriptorRequest {
@@ -639,33 +935,51 @@ export interface UpdateFileDescriptorResponse {
639
935
  file?: FileDescriptor;
640
936
  }
641
937
  export interface UnsupportedRequestValueError {
642
- /** Optional A list of allowed values */
938
+ /**
939
+ * Optional A list of allowed values
940
+ * @maxSize 100
941
+ * @maxLength 200
942
+ */
643
943
  allowedValues?: string[];
644
- /** The unsupported value send in the request */
944
+ /**
945
+ * The unsupported value send in the request
946
+ * @maxLength 200
947
+ */
645
948
  requestValue?: string;
646
949
  }
647
950
  export interface GenerateFileUploadUrlRequest {
648
- /** File mime type. */
951
+ /**
952
+ * File mime type.
953
+ * @maxLength 100
954
+ */
649
955
  mimeType: string | null;
650
956
  /**
651
957
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
652
958
  * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
959
+ * @maxLength 200
653
960
  */
654
961
  fileName?: string | null;
655
962
  /**
656
963
  * File size in bytes.
657
964
  * @readonly
965
+ * @format DECIMAL_VALUE
966
+ * @decimalValue options { gte:0, maxScale:0 }
658
967
  */
659
968
  sizeInBytes?: string | null;
660
969
  /**
661
970
  * ID of the file's parent folder. <br />
662
971
  * This folder is the path root for the `filePath`.<br />
663
972
  * Default: `media-root`.
973
+ * @maxLength 100
664
974
  */
665
975
  parentFolderId?: string | null;
666
976
  /** Whether the file will be public or private. Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
667
977
  private?: boolean | null;
668
- /** Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
978
+ /**
979
+ * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
980
+ * @maxSize 50
981
+ * @maxLength 200
982
+ */
669
983
  labels?: string[] | null;
670
984
  /** A place to map an external entity to an uploaded file in the Wix Media Manager. */
671
985
  externalInfo?: ExternalInfo;
@@ -674,6 +988,7 @@ export interface GenerateFileUploadUrlRequest {
674
988
  * For example, `/videos/2024/december`. <br/>
675
989
  * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
676
990
  * The folders in the path will be created if they don't already exist. <br />
991
+ * @maxLength 100
677
992
  */
678
993
  filePath?: string | null;
679
994
  }
@@ -684,22 +999,30 @@ export interface ImageAnnotationConfigurations {
684
999
  * A list of detections types to fill for the image
685
1000
  * If specified at least one valid annotation type should be provided
686
1001
  * Default will be all detections
1002
+ * @maxSize 10
687
1003
  */
688
1004
  annotationTypes?: ImageAnnotationType[];
689
1005
  }
690
1006
  export interface GenerateFileUploadUrlResponse {
691
- /** The URL for uploading a file to the Media Manager. */
1007
+ /**
1008
+ * The URL for uploading a file to the Media Manager.
1009
+ * @format WEB_URL
1010
+ */
692
1011
  uploadUrl?: string;
693
1012
  }
694
1013
  export interface SiteQuotaExceededError {
695
1014
  /**
696
1015
  * Error codes are groups of related errors
697
1016
  * The error code can be used to provide additional details to wix support while debugging service errors
1017
+ * @maxLength 200
698
1018
  */
699
1019
  internalCode?: string | null;
700
1020
  /** Debugging information, http status code returned from wix media internal API */
701
1021
  internalHttpStatusCode?: number | null;
702
- /** Optional Debugging information, error key will represent the error "family" returned from wix media internal API */
1022
+ /**
1023
+ * Optional Debugging information, error key will represent the error "family" returned from wix media internal API
1024
+ * @maxLength 200
1025
+ */
703
1026
  internalKey?: string | null;
704
1027
  /** The quota details */
705
1028
  quota?: TotalQuota;
@@ -715,13 +1038,17 @@ export interface TotalQuota {
715
1038
  export interface Plans {
716
1039
  /** Premium Plan */
717
1040
  premium?: Plan;
718
- /** Upgrade URL - the URL which a site owner can use to upgrade their quota. May be empty if an upgrade is not available. */
1041
+ /**
1042
+ * Upgrade URL - the URL which a site owner can use to upgrade their quota. May be empty if an upgrade is not available.
1043
+ * @format WEB_URL
1044
+ */
719
1045
  upgradeUrl?: string;
720
1046
  }
721
1047
  export interface Plan {
722
1048
  /**
723
1049
  * Plan ID - Premium product ID
724
1050
  * @readonly
1051
+ * @format GUID
725
1052
  */
726
1053
  id?: string;
727
1054
  /** Plan name */
@@ -732,27 +1059,38 @@ export interface Plan {
732
1059
  expiresAt?: Date | null;
733
1060
  }
734
1061
  export interface GenerateFileResumableUploadUrlRequest {
735
- /** File mime type. */
1062
+ /**
1063
+ * File mime type.
1064
+ * @maxLength 100
1065
+ */
736
1066
  mimeType: string | null;
737
1067
  /**
738
1068
  * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
739
1069
  * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
1070
+ * @maxLength 200
740
1071
  */
741
1072
  fileName?: string | null;
742
1073
  /**
743
1074
  * File size in bytes.
744
1075
  * @readonly
1076
+ * @format DECIMAL_VALUE
1077
+ * @decimalValue options { gte:0, maxScale:0 }
745
1078
  */
746
1079
  sizeInBytes?: string | null;
747
1080
  /**
748
1081
  * ID of the file's parent folder. <br />
749
1082
  * This folder is the path root for the `filePath`.<br />
750
1083
  * Default: `media-root`.
1084
+ * @maxLength 100
751
1085
  */
752
1086
  parentFolderId?: string | null;
753
1087
  /** Whether the file will be public or private. Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
754
1088
  private?: boolean | null;
755
- /** Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
1089
+ /**
1090
+ * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
1091
+ * @maxSize 500
1092
+ * @maxLength 200
1093
+ */
756
1094
  labels?: string[] | null;
757
1095
  /** The upload protocol to use for implementing the resumable upload. */
758
1096
  uploadProtocol?: UploadProtocol;
@@ -761,6 +1099,7 @@ export interface GenerateFileResumableUploadUrlRequest {
761
1099
  * For example, `/videos/2024/december`. <br/>
762
1100
  * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
763
1101
  * The folders in the path will be created if they don't already exist. <br />
1102
+ * @maxLength 100
764
1103
  */
765
1104
  filePath?: string | null;
766
1105
  }
@@ -771,32 +1110,52 @@ export declare enum UploadProtocol {
771
1110
  export interface GenerateFileResumableUploadUrlResponse {
772
1111
  /** The upload protocol to use for implementing the resumable upload. */
773
1112
  uploadProtocol?: UploadProtocol;
774
- /** The URL for uploading a file to the Media Manager. */
1113
+ /**
1114
+ * The URL for uploading a file to the Media Manager.
1115
+ * @format WEB_URL
1116
+ */
775
1117
  uploadUrl?: string;
776
- /** Single-use upload token. */
1118
+ /**
1119
+ * Single-use upload token.
1120
+ * @maxLength 2000
1121
+ */
777
1122
  uploadToken?: string;
778
1123
  }
779
1124
  export interface ImportFileRequest {
780
- /** Publicly accessible external file URL. */
1125
+ /**
1126
+ * Publicly accessible external file URL.
1127
+ * @format WEB_URL
1128
+ */
781
1129
  url: string;
782
1130
  /**
783
1131
  * Media type of the file to import.
784
1132
  * excluding: OTHER media type
785
1133
  */
786
1134
  mediaType?: MediaType;
787
- /** File name that appears in the Media Manager. */
1135
+ /**
1136
+ * File name that appears in the Media Manager.
1137
+ * @maxLength 200
1138
+ */
788
1139
  displayName?: string | null;
789
1140
  /**
790
1141
  * ID of the file's parent folder. <br />
791
1142
  * This folder is the path root for the `filePath`. <br />
792
1143
  * Default: `media-root`.
1144
+ * @maxLength 100
793
1145
  */
794
1146
  parentFolderId?: string | null;
795
1147
  /** Whether the file will be public or private. Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
796
1148
  private?: boolean | null;
797
- /** Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
1149
+ /**
1150
+ * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
1151
+ * @maxSize 500
1152
+ * @maxLength 200
1153
+ */
798
1154
  labels?: string[] | null;
799
- /** File mime type. */
1155
+ /**
1156
+ * File mime type.
1157
+ * @maxLength 100
1158
+ */
800
1159
  mimeType?: string;
801
1160
  /** Information sent to the File Ready and File Failed events. See Importing Files ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_using-externalinfo) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#using-externalinfo)) to learn more. */
802
1161
  externalInfo?: ExternalInfo;
@@ -809,6 +1168,7 @@ export interface ImportFileRequest {
809
1168
  * For example, `/videos/2024/december`. <br/>
810
1169
  * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
811
1170
  * The folders in the path will be created if they don't already exist. <br />
1171
+ * @maxLength 100
812
1172
  */
813
1173
  filePath?: string | null;
814
1174
  }
@@ -817,15 +1177,26 @@ export interface ImportFileResponse {
817
1177
  file?: FileDescriptor;
818
1178
  }
819
1179
  export interface BulkImportFilesRequest {
820
- /** Information about the files to import. */
1180
+ /**
1181
+ * Information about the files to import.
1182
+ * @minSize 1
1183
+ * @maxSize 100
1184
+ */
821
1185
  importFileRequests: ImportFileRequest[];
822
1186
  }
823
1187
  export interface BulkImportFilesResponse {
824
- /** Information about the imported files. */
1188
+ /**
1189
+ * Information about the imported files.
1190
+ * @maxSize 100
1191
+ */
825
1192
  files?: FileDescriptor[];
826
1193
  }
827
1194
  export interface BulkImportFileRequest {
828
- /** Information about the files to import. */
1195
+ /**
1196
+ * Information about the files to import.
1197
+ * @minSize 1
1198
+ * @maxSize 100
1199
+ */
829
1200
  importFileRequests: ImportFileRequest[];
830
1201
  /** Default: `true` */
831
1202
  returnEntity?: boolean | null;
@@ -846,9 +1217,13 @@ export interface ListFilesRequest {
846
1217
  /**
847
1218
  * ID of the file's parent folder. <br />
848
1219
  * Default:`media-root`.
1220
+ * @maxLength 100
849
1221
  */
850
1222
  parentFolderId?: string | null;
851
- /** File media type. */
1223
+ /**
1224
+ * File media type.
1225
+ * @maxSize 30
1226
+ */
852
1227
  mediaTypes?: MediaType[];
853
1228
  /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
854
1229
  private?: boolean | null;
@@ -864,7 +1239,10 @@ export interface ListFilesRequest {
864
1239
  paging?: CursorPaging;
865
1240
  }
866
1241
  export interface Sorting {
867
- /** Name of the field to sort by. */
1242
+ /**
1243
+ * Name of the field to sort by.
1244
+ * @maxLength 512
1245
+ */
868
1246
  fieldName?: string;
869
1247
  /** Sort order. */
870
1248
  order?: SortOrder;
@@ -874,18 +1252,25 @@ export declare enum SortOrder {
874
1252
  DESC = "DESC"
875
1253
  }
876
1254
  export interface CursorPaging {
877
- /** Maximum number of items to return in the results. */
1255
+ /**
1256
+ * Maximum number of items to return in the results.
1257
+ * @max 100
1258
+ */
878
1259
  limit?: number | null;
879
1260
  /**
880
1261
  * Pointer to the next or previous page in the list of results.
881
1262
  *
882
1263
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
883
1264
  * Not relevant for the first request.
1265
+ * @maxLength 16000
884
1266
  */
885
1267
  cursor?: string | null;
886
1268
  }
887
1269
  export interface ListFilesResponse {
888
- /** List of files in the Media Manager. */
1270
+ /**
1271
+ * List of files in the Media Manager.
1272
+ * @maxSize 200
1273
+ */
889
1274
  files?: FileDescriptor[];
890
1275
  /** The next cursor if it exists. */
891
1276
  nextCursor?: PagingMetadataV2;
@@ -897,7 +1282,10 @@ export interface PagingMetadataV2 {
897
1282
  cursors?: Cursors;
898
1283
  }
899
1284
  export interface Cursors {
900
- /** Cursor string pointing to the next page in the list of results. */
1285
+ /**
1286
+ * Cursor string pointing to the next page in the list of results.
1287
+ * @maxLength 16000
1288
+ */
901
1289
  next?: string | null;
902
1290
  }
903
1291
  export interface SearchFilesRequest {
@@ -905,6 +1293,7 @@ export interface SearchFilesRequest {
905
1293
  * Term to search for. Possible terms include the value of a file's
906
1294
  * `displayName`, `mimeType`, and `label`. <br />
907
1295
  * For example, if a file's label is cat, the search term is 'cat'.
1296
+ * @maxLength 200
908
1297
  */
909
1298
  search?: string | null;
910
1299
  /**
@@ -912,7 +1301,10 @@ export interface SearchFilesRequest {
912
1301
  * Default: `MEDIA_ROOT`.
913
1302
  */
914
1303
  rootFolder?: RootFolder;
915
- /** File media type. */
1304
+ /**
1305
+ * File media type.
1306
+ * @maxSize 30
1307
+ */
916
1308
  mediaTypes?: MediaType[];
917
1309
  /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
918
1310
  private?: boolean | null;
@@ -936,7 +1328,10 @@ export declare enum RootFolder {
936
1328
  VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
937
1329
  }
938
1330
  export interface SearchFilesResponse {
939
- /** Files matching the query. */
1331
+ /**
1332
+ * Files matching the query.
1333
+ * @maxSize 200
1334
+ */
940
1335
  files?: FileDescriptor[];
941
1336
  /** The next cursor if it exists. */
942
1337
  nextCursor?: PagingMetadataV2;
@@ -947,6 +1342,7 @@ export interface GenerateVideoStreamingUrlRequest {
947
1342
  *
948
1343
  * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
949
1344
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1345
+ * @maxLength 1000
950
1346
  */
951
1347
  fileId: string;
952
1348
  /** Video stream format. */
@@ -964,7 +1360,10 @@ export interface GenerateVideoStreamingUrlResponse {
964
1360
  export interface GenerateWebSocketTokenRequest {
965
1361
  }
966
1362
  export interface GenerateWebSocketTokenResponse {
967
- /** The web socket token for the identity in the request */
1363
+ /**
1364
+ * The web socket token for the identity in the request
1365
+ * @maxLength 2000
1366
+ */
968
1367
  token?: string;
969
1368
  }
970
1369
  export interface BulkDeleteFilesRequest {
@@ -973,6 +1372,8 @@ export interface BulkDeleteFilesRequest {
973
1372
  *
974
1373
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
975
1374
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1375
+ * @maxSize 1000
1376
+ * @maxLength 1000
976
1377
  */
977
1378
  fileIds: string[];
978
1379
  /**
@@ -989,6 +1390,8 @@ export interface BulkRestoreFilesFromTrashBinRequest {
989
1390
  *
990
1391
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
991
1392
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1393
+ * @maxSize 1000
1394
+ * @maxLength 1000
992
1395
  */
993
1396
  fileIds: string[];
994
1397
  }
@@ -998,9 +1401,13 @@ export interface ListDeletedFilesRequest {
998
1401
  /**
999
1402
  * ID of the file's parent folder. <br />
1000
1403
  * Default: `media-root`.
1404
+ * @maxLength 100
1001
1405
  */
1002
1406
  parentFolderId?: string | null;
1003
- /** File media type. */
1407
+ /**
1408
+ * File media type.
1409
+ * @maxSize 30
1410
+ */
1004
1411
  mediaTypes?: MediaType[];
1005
1412
  /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
1006
1413
  private?: boolean | null;
@@ -1016,7 +1423,10 @@ export interface ListDeletedFilesRequest {
1016
1423
  paging?: CursorPaging;
1017
1424
  }
1018
1425
  export interface ListDeletedFilesResponse {
1019
- /** List of files in the Media Manager's trash bin. */
1426
+ /**
1427
+ * List of files in the Media Manager's trash bin.
1428
+ * @maxSize 200
1429
+ */
1020
1430
  files?: FileDescriptor[];
1021
1431
  /** The next cursor if it exists. */
1022
1432
  nextCursor?: PagingMetadataV2;
@@ -1027,6 +1437,8 @@ export interface BulkPublishDraftFilesRequest {
1027
1437
  *
1028
1438
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1029
1439
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1440
+ * @maxSize 100
1441
+ * @maxLength 1000
1030
1442
  */
1031
1443
  fileIds?: string[];
1032
1444
  /**
@@ -1038,6 +1450,7 @@ export interface BulkPublishDraftFilesRequest {
1038
1450
  * ID of the file's parent folder. <br />
1039
1451
  * This folder is the path root for the `filePath`. <br />
1040
1452
  * Default: `media-root`.
1453
+ * @maxLength 100
1041
1454
  */
1042
1455
  parentFolderId?: string | null;
1043
1456
  /**
@@ -1045,6 +1458,7 @@ export interface BulkPublishDraftFilesRequest {
1045
1458
  * For example, `/videos/2024/december`. <br/>
1046
1459
  * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
1047
1460
  * The folders in the path will be created if they don't already exist. <br />
1461
+ * @maxLength 100
1048
1462
  */
1049
1463
  filePath?: string | null;
1050
1464
  /** Should the response return the item following the operation */
@@ -1071,134 +1485,31 @@ export interface UpdateFileRequest {
1071
1485
  *
1072
1486
  * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
1073
1487
  * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1488
+ * @maxLength 1000
1074
1489
  */
1075
1490
  fileId?: string;
1076
- /** File name that appears in the Media Manager. */
1491
+ /**
1492
+ * File name that appears in the Media Manager.
1493
+ * @maxLength 200
1494
+ */
1077
1495
  displayName?: string | null;
1078
1496
  /**
1079
1497
  * ID of the file's parent folder. <br />
1080
1498
  * Default: `media-root`.
1499
+ * @maxLength 100
1081
1500
  */
1082
1501
  parentFolderId?: string | null;
1083
- /** Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
1502
+ /**
1503
+ * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
1504
+ * @maxSize 500
1505
+ * @maxLength 200
1506
+ */
1084
1507
  labels?: string[] | null;
1085
1508
  }
1086
1509
  export interface UpdateFileResponse {
1087
1510
  /** Information about the updated file. */
1088
1511
  file?: FileDescriptor;
1089
1512
  }
1090
- export interface DomainEvent extends DomainEventBodyOneOf {
1091
- createdEvent?: EntityCreatedEvent;
1092
- updatedEvent?: EntityUpdatedEvent;
1093
- deletedEvent?: EntityDeletedEvent;
1094
- actionEvent?: ActionEvent;
1095
- /**
1096
- * Unique event ID.
1097
- * Allows clients to ignore duplicate webhooks.
1098
- */
1099
- id?: string;
1100
- /**
1101
- * Assumes actions are also always typed to an entity_type
1102
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1103
- */
1104
- entityFqdn?: string;
1105
- /**
1106
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1107
- * This is although the created/updated/deleted notion is duplication of the oneof types
1108
- * Example: created/updated/deleted/started/completed/email_opened
1109
- */
1110
- slug?: string;
1111
- /** ID of the entity associated with the event. */
1112
- entityId?: string;
1113
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1114
- eventTime?: Date | null;
1115
- /**
1116
- * Whether the event was triggered as a result of a privacy regulation application
1117
- * (for example, GDPR).
1118
- */
1119
- triggeredByAnonymizeRequest?: boolean | null;
1120
- /** If present, indicates the action that triggered the event. */
1121
- originatedFrom?: string | null;
1122
- /**
1123
- * A sequence number defining the order of updates to the underlying entity.
1124
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1125
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1126
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1127
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1128
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1129
- */
1130
- entityEventSequence?: string | null;
1131
- }
1132
- /** @oneof */
1133
- export interface DomainEventBodyOneOf {
1134
- createdEvent?: EntityCreatedEvent;
1135
- updatedEvent?: EntityUpdatedEvent;
1136
- deletedEvent?: EntityDeletedEvent;
1137
- actionEvent?: ActionEvent;
1138
- }
1139
- export interface EntityCreatedEvent {
1140
- entityAsJson?: string;
1141
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1142
- restoreInfo?: RestoreInfo;
1143
- }
1144
- export interface RestoreInfo {
1145
- deletedDate?: Date | null;
1146
- }
1147
- export interface EntityUpdatedEvent {
1148
- /**
1149
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1150
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1151
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1152
- */
1153
- currentEntityAsJson?: string;
1154
- }
1155
- export interface EntityDeletedEvent {
1156
- /** Entity that was deleted */
1157
- deletedEntityAsJson?: string | null;
1158
- }
1159
- export interface ActionEvent {
1160
- bodyAsJson?: string;
1161
- }
1162
- export interface MessageEnvelope {
1163
- /** App instance ID. */
1164
- instanceId?: string | null;
1165
- /** Event type. */
1166
- eventType?: string;
1167
- /** The identification type and identity data. */
1168
- identity?: IdentificationData;
1169
- /** Stringify payload. */
1170
- data?: string;
1171
- }
1172
- export interface IdentificationData extends IdentificationDataIdOneOf {
1173
- /** ID of a site visitor that has not logged in to the site. */
1174
- anonymousVisitorId?: string;
1175
- /** ID of a site visitor that has logged in to the site. */
1176
- memberId?: string;
1177
- /** ID of a Wix user (site owner, contributor, etc.). */
1178
- wixUserId?: string;
1179
- /** ID of an app. */
1180
- appId?: string;
1181
- /** @readonly */
1182
- identityType?: WebhookIdentityType;
1183
- }
1184
- /** @oneof */
1185
- export interface IdentificationDataIdOneOf {
1186
- /** ID of a site visitor that has not logged in to the site. */
1187
- anonymousVisitorId?: string;
1188
- /** ID of a site visitor that has logged in to the site. */
1189
- memberId?: string;
1190
- /** ID of a Wix user (site owner, contributor, etc.). */
1191
- wixUserId?: string;
1192
- /** ID of an app. */
1193
- appId?: string;
1194
- }
1195
- export declare enum WebhookIdentityType {
1196
- UNKNOWN = "UNKNOWN",
1197
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1198
- MEMBER = "MEMBER",
1199
- WIX_USER = "WIX_USER",
1200
- APP = "APP"
1201
- }
1202
1513
  export interface GenerateFilesDownloadUrlResponseNonNullableFields {
1203
1514
  downloadUrl: string;
1204
1515
  }