@wix/auto_sdk_data_collections 1.0.90 → 1.0.92

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 (45) hide show
  1. package/build/cjs/index.js +7 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +17 -2
  4. package/build/cjs/index.typings.js +7 -0
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +17 -2
  7. package/build/cjs/meta.js +10 -0
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +51 -0
  10. package/build/cjs/schemas.js +204 -51
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.mjs +7 -0
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +17 -2
  15. package/build/es/index.typings.mjs +7 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +17 -2
  18. package/build/es/meta.mjs +10 -0
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +51 -0
  21. package/build/es/schemas.mjs +204 -51
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.js +7 -0
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +410 -5
  26. package/build/internal/cjs/index.typings.js +7 -0
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +506 -4
  29. package/build/internal/cjs/meta.js +10 -0
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +51 -0
  32. package/build/internal/cjs/schemas.js +204 -51
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.mjs +7 -0
  35. package/build/internal/es/index.mjs.map +1 -1
  36. package/build/internal/es/index.typings.d.mts +410 -5
  37. package/build/internal/es/index.typings.mjs +7 -0
  38. package/build/internal/es/index.typings.mjs.map +1 -1
  39. package/build/internal/es/meta.d.mts +506 -4
  40. package/build/internal/es/meta.mjs +10 -0
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +51 -0
  43. package/build/internal/es/schemas.mjs +204 -51
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +4 -4
@@ -99,6 +99,12 @@ interface DataCollection {
99
99
  * @readonly
100
100
  */
101
101
  allowedDataPermissions?: AllowedDataPermissions;
102
+ /**
103
+ * Strict mode the collection fields validation.
104
+ * When enabled, strict mode enforces all field validations during data operations.
105
+ * @internal
106
+ */
107
+ strictMode?: boolean | null;
102
108
  /**
103
109
  * Free-text description of the collection's purpose and contents.
104
110
  * @internal
@@ -254,6 +260,11 @@ interface Field extends FieldRangeValidationsOneOf {
254
260
  * @maxLength 16000
255
261
  */
256
262
  description?: string | null;
263
+ /**
264
+ * @internal
265
+ * @maxLength 100
266
+ */
267
+ plugin?: string | null;
257
268
  /**
258
269
  * Whether the field is read-only. A read-only field can't be changed.
259
270
  *
@@ -277,6 +288,12 @@ interface Field extends FieldRangeValidationsOneOf {
277
288
  * @maxSize 100
278
289
  */
279
290
  plugins?: FieldPlugin[];
291
+ /**
292
+ * Whether the field is deleted. Returned only when `include_deleted_fields = true`.
293
+ * @internal
294
+ * @readonly
295
+ */
296
+ deleted?: boolean | null;
280
297
  /**
281
298
  * This indicates that this fields is conditional and is not retrieved by default.
282
299
  * @readonly
@@ -376,6 +393,11 @@ declare enum Type {
376
393
  LEGACY_COLOR = "LEGACY_COLOR",
377
394
  /** Deprecated type that might appear in legacy collections. */
378
395
  LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO",
396
+ /**
397
+ * SLUG type used for dynamic page URLs.
398
+ * @documentationMaturity preview
399
+ */
400
+ SLUG = "SLUG",
379
401
  /**
380
402
  * Email.
381
403
  * @documentationMaturity preview
@@ -390,18 +412,16 @@ declare enum Type {
390
412
  /**
391
413
  * Media image object.
392
414
  * @documentationMaturity preview
393
- * @internal
394
415
  */
395
416
  MEDIA_IMAGE = "MEDIA_IMAGE",
396
417
  /**
397
418
  * Media vector art object.
398
419
  * @documentationMaturity preview
399
- * @internal
400
420
  */
401
421
  MEDIA_VECTOR_ART = "MEDIA_VECTOR_ART"
402
422
  }
403
423
  /** @enumType */
404
- type TypeWithLiterals = Type | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO' | 'EMAIL';
424
+ type TypeWithLiterals = Type | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO' | 'SLUG' | 'EMAIL' | 'MEDIA_IMAGE' | 'MEDIA_VECTOR_ART';
405
425
  interface TypeMetadata extends TypeMetadataMetadataOneOf {
406
426
  /** Metadata for a reference field. */
407
427
  reference?: Reference;
@@ -413,6 +433,106 @@ interface TypeMetadata extends TypeMetadataMetadataOneOf {
413
433
  array?: _Array;
414
434
  /** Metadata for a page link field. */
415
435
  pageLink?: PageLink;
436
+ /**
437
+ * Metadata for a slug field.
438
+ * @internal
439
+ */
440
+ slug?: Slug;
441
+ /**
442
+ * Metadata for TEXT.
443
+ * @internal
444
+ */
445
+ text?: Text;
446
+ /**
447
+ * Metadata for NUMBER.
448
+ * @internal
449
+ */
450
+ number?: _Number;
451
+ /**
452
+ * Metadata for DATE.
453
+ * @internal
454
+ */
455
+ date?: _Date;
456
+ /**
457
+ * Metadata for DATETIME.
458
+ * @internal
459
+ */
460
+ datetime?: Datetime;
461
+ /**
462
+ * Metadata for IMAGE.
463
+ * @internal
464
+ */
465
+ image?: Image;
466
+ /**
467
+ * Metadata for BOOLEAN.
468
+ * @internal
469
+ */
470
+ boolean?: _Boolean;
471
+ /**
472
+ * Metadata for DOCUMENT.
473
+ * @internal
474
+ */
475
+ document?: Document;
476
+ /**
477
+ * Metadata for URL.
478
+ * @internal
479
+ */
480
+ url?: Url;
481
+ /**
482
+ * Metadata for RICH_TEXT.
483
+ * @internal
484
+ */
485
+ richText?: RichText;
486
+ /**
487
+ * Metadata for VIDEO.
488
+ * @internal
489
+ */
490
+ video?: Video;
491
+ /**
492
+ * Metadata for ARRAY_STRING.
493
+ * @internal
494
+ */
495
+ arrayString?: ArrayString;
496
+ /**
497
+ * Metadata for ARRAY_DOCUMENT.
498
+ * @internal
499
+ */
500
+ arrayDocument?: ArrayDocument;
501
+ /**
502
+ * Metadata for AUDIO.
503
+ * @internal
504
+ */
505
+ audio?: Audio;
506
+ /**
507
+ * Metadata for TIME.
508
+ * @internal
509
+ */
510
+ time?: Time;
511
+ /**
512
+ * Metadata for RICH_CONTENT.
513
+ * @internal
514
+ */
515
+ richContent?: RichContent;
516
+ /**
517
+ * Metadata for MEDIA_GALLERY.
518
+ * @internal
519
+ */
520
+ mediaGallery?: MediaGallery;
521
+ /**
522
+ * Metadata for ADDRESS.
523
+ * @internal
524
+ */
525
+ address?: Address;
526
+ /**
527
+ * Metadata for EMAIL.
528
+ * @internal
529
+ */
530
+ email?: Email;
531
+ /**
532
+ * Metadata for LEGACY_COLOR.
533
+ * @internal
534
+ */
535
+ legacyColor?: LegacyColor;
416
536
  }
417
537
  /** @oneof */
418
538
  interface TypeMetadataMetadataOneOf {
@@ -426,6 +546,106 @@ interface TypeMetadataMetadataOneOf {
426
546
  array?: _Array;
427
547
  /** Metadata for a page link field. */
428
548
  pageLink?: PageLink;
549
+ /**
550
+ * Metadata for a slug field.
551
+ * @internal
552
+ */
553
+ slug?: Slug;
554
+ /**
555
+ * Metadata for TEXT.
556
+ * @internal
557
+ */
558
+ text?: Text;
559
+ /**
560
+ * Metadata for NUMBER.
561
+ * @internal
562
+ */
563
+ number?: _Number;
564
+ /**
565
+ * Metadata for DATE.
566
+ * @internal
567
+ */
568
+ date?: _Date;
569
+ /**
570
+ * Metadata for DATETIME.
571
+ * @internal
572
+ */
573
+ datetime?: Datetime;
574
+ /**
575
+ * Metadata for IMAGE.
576
+ * @internal
577
+ */
578
+ image?: Image;
579
+ /**
580
+ * Metadata for BOOLEAN.
581
+ * @internal
582
+ */
583
+ boolean?: _Boolean;
584
+ /**
585
+ * Metadata for DOCUMENT.
586
+ * @internal
587
+ */
588
+ document?: Document;
589
+ /**
590
+ * Metadata for URL.
591
+ * @internal
592
+ */
593
+ url?: Url;
594
+ /**
595
+ * Metadata for RICH_TEXT.
596
+ * @internal
597
+ */
598
+ richText?: RichText;
599
+ /**
600
+ * Metadata for VIDEO.
601
+ * @internal
602
+ */
603
+ video?: Video;
604
+ /**
605
+ * Metadata for ARRAY_STRING.
606
+ * @internal
607
+ */
608
+ arrayString?: ArrayString;
609
+ /**
610
+ * Metadata for ARRAY_DOCUMENT.
611
+ * @internal
612
+ */
613
+ arrayDocument?: ArrayDocument;
614
+ /**
615
+ * Metadata for AUDIO.
616
+ * @internal
617
+ */
618
+ audio?: Audio;
619
+ /**
620
+ * Metadata for TIME.
621
+ * @internal
622
+ */
623
+ time?: Time;
624
+ /**
625
+ * Metadata for RICH_CONTENT.
626
+ * @internal
627
+ */
628
+ richContent?: RichContent;
629
+ /**
630
+ * Metadata for MEDIA_GALLERY.
631
+ * @internal
632
+ */
633
+ mediaGallery?: MediaGallery;
634
+ /**
635
+ * Metadata for ADDRESS.
636
+ * @internal
637
+ */
638
+ address?: Address;
639
+ /**
640
+ * Metadata for EMAIL.
641
+ * @internal
642
+ */
643
+ email?: Email;
644
+ /**
645
+ * Metadata for LEGACY_COLOR.
646
+ * @internal
647
+ */
648
+ legacyColor?: LegacyColor;
429
649
  }
430
650
  interface FieldCapabilities {
431
651
  /**
@@ -551,12 +771,26 @@ interface _Object {
551
771
  * @maxSize 1000
552
772
  */
553
773
  fields?: ObjectField[];
774
+ /** @internal */
775
+ defaultValue?: Record<string, any> | null;
554
776
  }
555
777
  interface _Array {
556
778
  /** Element's data type. */
557
779
  elementType?: TypeWithLiterals;
558
780
  /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
559
781
  typeMetadata?: TypeMetadata;
782
+ /**
783
+ * Minimum permitted number of items in an array field.
784
+ * @internal
785
+ */
786
+ minSize?: number | null;
787
+ /**
788
+ * Maximum permitted number of items in an array field.
789
+ * @internal
790
+ */
791
+ maxSize?: number | null;
792
+ /** @internal */
793
+ defaultValue?: any[];
560
794
  }
561
795
  interface PageLink {
562
796
  calculator?: Calculator;
@@ -565,6 +799,11 @@ interface PageLink {
565
799
  * @maxLength 1000
566
800
  */
567
801
  linkedRouterPage?: string | null;
802
+ /**
803
+ * Defines the type of the page link.
804
+ * @internal
805
+ */
806
+ pageLinkType?: PageLinkTypeWithLiterals;
568
807
  }
569
808
  interface Slug {
570
809
  /**
@@ -572,6 +811,18 @@ interface Slug {
572
811
  * @maxLength 1000
573
812
  */
574
813
  pattern?: string;
814
+ /**
815
+ * Minimum permitted length for a string field.
816
+ * @internal
817
+ */
818
+ minLength?: number | null;
819
+ /**
820
+ * Maximum permitted length for a string field.
821
+ * @internal
822
+ */
823
+ maxLength?: number | null;
824
+ /** @internal */
825
+ defaultValue?: string | null;
575
826
  }
576
827
  interface Text extends TextValidationOneOf {
577
828
  textValidation?: TextValidation;
@@ -783,7 +1034,25 @@ declare enum FieldPluginType {
783
1034
  /** Uknown plugin type. */
784
1035
  UNKNOWN = "UNKNOWN",
785
1036
  /** CMS-related field attributes */
786
- CMS = "CMS"
1037
+ CMS = "CMS",
1038
+ /**
1039
+ * Marks a multi-reference field as a category field linking to a Category Group.
1040
+ * @documentationMaturity preview
1041
+ * @internal
1042
+ */
1043
+ CATEGORY_FIELD = "CATEGORY_FIELD",
1044
+ /**
1045
+ * Marks a back-reference field on Category Groups indicating a consumer relationship.
1046
+ * @documentationMaturity preview
1047
+ * @internal
1048
+ */
1049
+ CATEGORY_CONSUMER = "CATEGORY_CONSUMER",
1050
+ /**
1051
+ * Marks the auto-managed primary category single-reference field on a consumer collection.
1052
+ * @documentationMaturity preview
1053
+ * @internal
1054
+ */
1055
+ PRIMARY_CATEGORY_FIELD = "PRIMARY_CATEGORY_FIELD"
787
1056
  }
788
1057
  /** @enumType */
789
1058
  type FieldPluginTypeWithLiterals = FieldPluginType | 'UNKNOWN' | 'CMS';
@@ -880,6 +1149,16 @@ interface Plugin extends PluginOptionsOneOf {
880
1149
  editablePageLinkOptions?: PageLinkPluginOptions;
881
1150
  /** Options for the CMS plugin. */
882
1151
  cmsOptions?: PluginCmsOptions;
1152
+ /**
1153
+ * Options for the Catalog plugin.
1154
+ * @internal
1155
+ */
1156
+ catalogOptions?: CatalogOptions;
1157
+ /**
1158
+ * Options for the Draft Items plugin.
1159
+ * @internal
1160
+ */
1161
+ draftItemsOptions?: DraftItemsPluginOptions;
883
1162
  /** Plugin type. */
884
1163
  type?: PluginTypeWithLiterals;
885
1164
  }
@@ -900,6 +1179,16 @@ interface PluginOptionsOneOf {
900
1179
  editablePageLinkOptions?: PageLinkPluginOptions;
901
1180
  /** Options for the CMS plugin. */
902
1181
  cmsOptions?: PluginCmsOptions;
1182
+ /**
1183
+ * Options for the Catalog plugin.
1184
+ * @internal
1185
+ */
1186
+ catalogOptions?: CatalogOptions;
1187
+ /**
1188
+ * Options for the Draft Items plugin.
1189
+ * @internal
1190
+ */
1191
+ draftItemsOptions?: DraftItemsPluginOptions;
903
1192
  }
904
1193
  declare enum Status {
905
1194
  PUBLISHED = "PUBLISHED",
@@ -948,6 +1237,20 @@ declare enum AccessLevel {
948
1237
  /** @enumType */
949
1238
  type AccessLevelWithLiterals = AccessLevel | 'ANYONE' | 'SITE_MEMBER' | 'SITE_MEMBER_AUTHOR' | 'CMS_EDITOR' | 'PRIVILEGED';
950
1239
  interface DraftPermissions {
1240
+ /**
1241
+ * Access level required to view/edit/remove items from the drafts collection.
1242
+ * Can be set to one of CMS_EDITOR, PRIVILEGED
1243
+ * Default: `CMS_EDITOR`
1244
+ * @internal
1245
+ */
1246
+ manageDrafts?: AccessLevelWithLiterals;
1247
+ /**
1248
+ * Access level required to publish draft items and unpublish published items.
1249
+ * Can be set to one of CMS_EDITOR, PRIVILEGED
1250
+ * Default: `CMS_EDITOR`
1251
+ * @internal
1252
+ */
1253
+ managePublishStatus?: AccessLevelWithLiterals;
951
1254
  }
952
1255
  interface AllowedDraftPermissions {
953
1256
  /** If manage_drafts is permitted for the caller. */
@@ -971,7 +1274,25 @@ declare enum PluginType {
971
1274
  /** Indicates that page link fields are persisted and can be updated. */
972
1275
  EDITABLE_PAGE_LINK = "EDITABLE_PAGE_LINK",
973
1276
  /** CMS-specific collection properties. */
974
- CMS = "CMS"
1277
+ CMS = "CMS",
1278
+ /**
1279
+ * Indicates that the collection is used as a [Wix Catalog](https://dev.wix.com/docs/rest/business-solutions/e-commerce/catalogs/catalog-service-plugin/introduction) app. This plugin is used to manage product data and is required for collections that are part of a catalog.
1280
+ * @documentationMaturity preview
1281
+ * @internal
1282
+ */
1283
+ CATALOG = "CATALOG",
1284
+ /**
1285
+ * Marks the collection as a Category Group for categorization features.
1286
+ * @documentationMaturity preview
1287
+ * @internal
1288
+ */
1289
+ CATEGORIES = "CATEGORIES",
1290
+ /**
1291
+ * Enables the draft items collection: safe draft editing with explicit publish step.
1292
+ * @documentationMaturity preview
1293
+ * @internal
1294
+ */
1295
+ DRAFT_ITEMS = "DRAFT_ITEMS"
975
1296
  }
976
1297
  /** @enumType */
977
1298
  type PluginTypeWithLiterals = PluginType | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
@@ -1157,6 +1478,14 @@ interface DraftItemsPluginOptions extends DraftItemsPluginOptionsPairedCollectio
1157
1478
  * @readonly
1158
1479
  */
1159
1480
  publishedCollectionId?: string;
1481
+ /** @internal */
1482
+ draftPermissions?: DraftPermissions;
1483
+ /**
1484
+ * Actual draft management operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`.
1485
+ * @internal
1486
+ * @readonly
1487
+ */
1488
+ allowedPermissions?: AllowedDraftPermissions;
1160
1489
  }
1161
1490
  /** @oneof */
1162
1491
  interface DraftItemsPluginOptionsPairedCollectionOneOf {
@@ -1312,6 +1641,13 @@ interface GetDataCollectionRequest {
1312
1641
  * @maxLength 256
1313
1642
  */
1314
1643
  dataCollectionId: string;
1644
+ /**
1645
+ * Whether to return all collections referenced by the requested collection.
1646
+ *
1647
+ * Default: `false`
1648
+ * @internal
1649
+ */
1650
+ includeReferencedCollections?: boolean;
1315
1651
  /**
1316
1652
  * Whether to retrieve data from the primary database instance.
1317
1653
  * This decreases performance but ensures data retrieved is up to date even immediately after an update.
@@ -1320,11 +1656,24 @@ interface GetDataCollectionRequest {
1320
1656
  * Default: `false`
1321
1657
  */
1322
1658
  consistentRead?: boolean;
1659
+ /**
1660
+ * Whether to return deleted fields.
1661
+ *
1662
+ * Default: `false`
1663
+ * @internal
1664
+ */
1665
+ includeDeletedFields?: boolean;
1323
1666
  /**
1324
1667
  * If set allowed for caller data permissions would be included in the response
1325
1668
  * @internal
1326
1669
  */
1327
1670
  includeAllowedDataPermissions?: boolean;
1671
+ /**
1672
+ * Segment: PUBLIC or DEV.
1673
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1674
+ * @internal
1675
+ */
1676
+ segment?: SegmentWithLiterals;
1328
1677
  /**
1329
1678
  * List of specific field names to return, if empty all fields are returned.
1330
1679
  * Affects all returned collections
@@ -1343,6 +1692,12 @@ type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
1343
1692
  interface GetDataCollectionResponse {
1344
1693
  /** Details of the collection requested. */
1345
1694
  collection?: DataCollection;
1695
+ /**
1696
+ * Details of collections referenced by the collection requested.
1697
+ * Only populated when `includeReferencedCollections` is `true` in the request.
1698
+ * @internal
1699
+ */
1700
+ referencedCollections?: DataCollection[];
1346
1701
  }
1347
1702
  interface ListDataCollectionsRequest {
1348
1703
  /**
@@ -1366,6 +1721,12 @@ interface ListDataCollectionsRequest {
1366
1721
  * @internal
1367
1722
  */
1368
1723
  includeAllowedDataPermissions?: boolean;
1724
+ /**
1725
+ * Segment: PUBLIC or DEV.
1726
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1727
+ * @internal
1728
+ */
1729
+ segment?: SegmentWithLiterals;
1369
1730
  /**
1370
1731
  * List of specific field names to return, if empty all fields are returned.
1371
1732
  * Affects all returned collections
@@ -1373,6 +1734,14 @@ interface ListDataCollectionsRequest {
1373
1734
  * @maxLength 128
1374
1735
  */
1375
1736
  fields?: string[];
1737
+ /**
1738
+ * Collection types to filter by.
1739
+ * If not specified, all collection types are returned.
1740
+ * If specified, only collections of the given types are returned.
1741
+ * @internal
1742
+ * @maxSize 10
1743
+ */
1744
+ collectionTypes?: CollectionTypeWithLiterals[];
1376
1745
  }
1377
1746
  interface Sorting {
1378
1747
  /**
@@ -1446,6 +1815,12 @@ interface BulkGetDataCollectionsRequest {
1446
1815
  * @internal
1447
1816
  */
1448
1817
  includeAllowedDataPermissions?: boolean;
1818
+ /**
1819
+ * Segment: PUBLIC or DEV.
1820
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1821
+ * @internal
1822
+ */
1823
+ segment?: SegmentWithLiterals;
1449
1824
  /**
1450
1825
  * List of specific field names to return, if empty all fields are returned.
1451
1826
  * Affects all returned collections
@@ -1513,6 +1888,16 @@ interface RestoreDataCollectionResponse {
1513
1888
  interface PatchDataCollectionRequest {
1514
1889
  /** Data collection to update. */
1515
1890
  dataCollection: DataCollection;
1891
+ /**
1892
+ * Field mask specifying which properties to update.
1893
+ * Supported properties: `displayName`, `displayField`, `permissions`.
1894
+ * Attempting to update unsupported properties results in an error.
1895
+ * To update `fields` use [Create Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection-field),
1896
+ * [Update Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/update-data-collection-field),
1897
+ * or [Delete Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-field).
1898
+ * @internal
1899
+ */
1900
+ fieldMask?: string[];
1516
1901
  }
1517
1902
  interface PatchDataCollectionResponse {
1518
1903
  /** Updated data collection. */
@@ -1780,6 +2165,13 @@ interface PatchDataCollectionFieldRequest {
1780
2165
  dataCollectionId: string;
1781
2166
  /** Field to update. */
1782
2167
  field: Field;
2168
+ /**
2169
+ * Field mask specifying which field properties to update.
2170
+ * Supported properties: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`.
2171
+ * Attempting to update `key` or other unsupported properties results in an error.
2172
+ * @internal
2173
+ */
2174
+ fieldMask?: string[];
1783
2175
  }
1784
2176
  interface PatchDataCollectionFieldResponse {
1785
2177
  /** Updated data collection. */
@@ -1959,6 +2351,13 @@ interface Failure {
1959
2351
  * @maxLength 7
1960
2352
  */
1961
2353
  code?: string;
2354
+ /**
2355
+ * Broad error code.
2356
+ * - `WD_UNKNOWN_ERROR`: Unknown error.
2357
+ * @internal
2358
+ * @maxLength 64
2359
+ */
2360
+ broadCode?: string;
1962
2361
  /**
1963
2362
  * Description of the failure.
1964
2363
  * @maxLength 1024
@@ -2550,6 +2949,12 @@ interface PatchDataCollection {
2550
2949
  * @readonly
2551
2950
  */
2552
2951
  allowedDataPermissions?: AllowedDataPermissions;
2952
+ /**
2953
+ * Strict mode the collection fields validation.
2954
+ * When enabled, strict mode enforces all field validations during data operations.
2955
+ * @internal
2956
+ */
2957
+ strictMode?: boolean | null;
2553
2958
  /**
2554
2959
  * Free-text description of the collection's purpose and contents.
2555
2960
  * @internal
@@ -2034,6 +2034,7 @@ var Type = /* @__PURE__ */ ((Type2) => {
2034
2034
  Type2["LEGACY_IMAGE"] = "LEGACY_IMAGE";
2035
2035
  Type2["LEGACY_COLOR"] = "LEGACY_COLOR";
2036
2036
  Type2["LEGACY_EXTERNAL_VIDEO"] = "LEGACY_EXTERNAL_VIDEO";
2037
+ Type2["SLUG"] = "SLUG";
2037
2038
  Type2["EMAIL"] = "EMAIL";
2038
2039
  Type2["SECURED_MEDIA"] = "SECURED_MEDIA";
2039
2040
  Type2["MEDIA_IMAGE"] = "MEDIA_IMAGE";
@@ -2064,6 +2065,9 @@ var PageLinkType = /* @__PURE__ */ ((PageLinkType2) => {
2064
2065
  var FieldPluginType = /* @__PURE__ */ ((FieldPluginType2) => {
2065
2066
  FieldPluginType2["UNKNOWN"] = "UNKNOWN";
2066
2067
  FieldPluginType2["CMS"] = "CMS";
2068
+ FieldPluginType2["CATEGORY_FIELD"] = "CATEGORY_FIELD";
2069
+ FieldPluginType2["CATEGORY_CONSUMER"] = "CATEGORY_CONSUMER";
2070
+ FieldPluginType2["PRIMARY_CATEGORY_FIELD"] = "PRIMARY_CATEGORY_FIELD";
2067
2071
  return FieldPluginType2;
2068
2072
  })(FieldPluginType || {});
2069
2073
  var Permission = /* @__PURE__ */ ((Permission2) => {
@@ -2110,6 +2114,9 @@ var PluginType = /* @__PURE__ */ ((PluginType2) => {
2110
2114
  PluginType2["SHARED"] = "SHARED";
2111
2115
  PluginType2["EDITABLE_PAGE_LINK"] = "EDITABLE_PAGE_LINK";
2112
2116
  PluginType2["CMS"] = "CMS";
2117
+ PluginType2["CATALOG"] = "CATALOG";
2118
+ PluginType2["CATEGORIES"] = "CATEGORIES";
2119
+ PluginType2["DRAFT_ITEMS"] = "DRAFT_ITEMS";
2113
2120
  return PluginType2;
2114
2121
  })(PluginType || {});
2115
2122
  var PagingMode = /* @__PURE__ */ ((PagingMode2) => {