@wix/auto_sdk_data_collections 1.0.89 → 1.0.91

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 (35) hide show
  1. package/build/cjs/index.d.ts +6 -0
  2. package/build/cjs/index.js +7 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +6 -0
  5. package/build/cjs/index.typings.js +7 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.js +10 -0
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/es/index.d.mts +6 -0
  10. package/build/es/index.mjs +7 -0
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +6 -0
  13. package/build/es/index.typings.mjs +7 -0
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.mjs +10 -0
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/internal/cjs/index.d.ts +6 -0
  18. package/build/internal/cjs/index.js +7 -0
  19. package/build/internal/cjs/index.js.map +1 -1
  20. package/build/internal/cjs/index.typings.d.ts +416 -2
  21. package/build/internal/cjs/index.typings.js +7 -0
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +508 -3
  24. package/build/internal/cjs/meta.js +10 -0
  25. package/build/internal/cjs/meta.js.map +1 -1
  26. package/build/internal/es/index.d.mts +6 -0
  27. package/build/internal/es/index.mjs +7 -0
  28. package/build/internal/es/index.mjs.map +1 -1
  29. package/build/internal/es/index.typings.d.mts +416 -2
  30. package/build/internal/es/index.typings.mjs +7 -0
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +508 -3
  33. package/build/internal/es/meta.mjs +10 -0
  34. package/build/internal/es/meta.mjs.map +1 -1
  35. 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,12 @@ 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
+ * @internal
400
+ */
401
+ SLUG = "SLUG",
379
402
  /**
380
403
  * Email.
381
404
  * @documentationMaturity preview
@@ -413,6 +436,106 @@ interface TypeMetadata extends TypeMetadataMetadataOneOf {
413
436
  array?: _Array;
414
437
  /** Metadata for a page link field. */
415
438
  pageLink?: PageLink;
439
+ /**
440
+ * Metadata for a slug field.
441
+ * @internal
442
+ */
443
+ slug?: Slug;
444
+ /**
445
+ * Metadata for TEXT.
446
+ * @internal
447
+ */
448
+ text?: Text;
449
+ /**
450
+ * Metadata for NUMBER.
451
+ * @internal
452
+ */
453
+ number?: _Number;
454
+ /**
455
+ * Metadata for DATE.
456
+ * @internal
457
+ */
458
+ date?: _Date;
459
+ /**
460
+ * Metadata for DATETIME.
461
+ * @internal
462
+ */
463
+ datetime?: Datetime;
464
+ /**
465
+ * Metadata for IMAGE.
466
+ * @internal
467
+ */
468
+ image?: Image;
469
+ /**
470
+ * Metadata for BOOLEAN.
471
+ * @internal
472
+ */
473
+ boolean?: _Boolean;
474
+ /**
475
+ * Metadata for DOCUMENT.
476
+ * @internal
477
+ */
478
+ document?: Document;
479
+ /**
480
+ * Metadata for URL.
481
+ * @internal
482
+ */
483
+ url?: Url;
484
+ /**
485
+ * Metadata for RICH_TEXT.
486
+ * @internal
487
+ */
488
+ richText?: RichText;
489
+ /**
490
+ * Metadata for VIDEO.
491
+ * @internal
492
+ */
493
+ video?: Video;
494
+ /**
495
+ * Metadata for ARRAY_STRING.
496
+ * @internal
497
+ */
498
+ arrayString?: ArrayString;
499
+ /**
500
+ * Metadata for ARRAY_DOCUMENT.
501
+ * @internal
502
+ */
503
+ arrayDocument?: ArrayDocument;
504
+ /**
505
+ * Metadata for AUDIO.
506
+ * @internal
507
+ */
508
+ audio?: Audio;
509
+ /**
510
+ * Metadata for TIME.
511
+ * @internal
512
+ */
513
+ time?: Time;
514
+ /**
515
+ * Metadata for RICH_CONTENT.
516
+ * @internal
517
+ */
518
+ richContent?: RichContent;
519
+ /**
520
+ * Metadata for MEDIA_GALLERY.
521
+ * @internal
522
+ */
523
+ mediaGallery?: MediaGallery;
524
+ /**
525
+ * Metadata for ADDRESS.
526
+ * @internal
527
+ */
528
+ address?: Address;
529
+ /**
530
+ * Metadata for EMAIL.
531
+ * @internal
532
+ */
533
+ email?: Email;
534
+ /**
535
+ * Metadata for LEGACY_COLOR.
536
+ * @internal
537
+ */
538
+ legacyColor?: LegacyColor;
416
539
  }
417
540
  /** @oneof */
418
541
  interface TypeMetadataMetadataOneOf {
@@ -426,6 +549,106 @@ interface TypeMetadataMetadataOneOf {
426
549
  array?: _Array;
427
550
  /** Metadata for a page link field. */
428
551
  pageLink?: PageLink;
552
+ /**
553
+ * Metadata for a slug field.
554
+ * @internal
555
+ */
556
+ slug?: Slug;
557
+ /**
558
+ * Metadata for TEXT.
559
+ * @internal
560
+ */
561
+ text?: Text;
562
+ /**
563
+ * Metadata for NUMBER.
564
+ * @internal
565
+ */
566
+ number?: _Number;
567
+ /**
568
+ * Metadata for DATE.
569
+ * @internal
570
+ */
571
+ date?: _Date;
572
+ /**
573
+ * Metadata for DATETIME.
574
+ * @internal
575
+ */
576
+ datetime?: Datetime;
577
+ /**
578
+ * Metadata for IMAGE.
579
+ * @internal
580
+ */
581
+ image?: Image;
582
+ /**
583
+ * Metadata for BOOLEAN.
584
+ * @internal
585
+ */
586
+ boolean?: _Boolean;
587
+ /**
588
+ * Metadata for DOCUMENT.
589
+ * @internal
590
+ */
591
+ document?: Document;
592
+ /**
593
+ * Metadata for URL.
594
+ * @internal
595
+ */
596
+ url?: Url;
597
+ /**
598
+ * Metadata for RICH_TEXT.
599
+ * @internal
600
+ */
601
+ richText?: RichText;
602
+ /**
603
+ * Metadata for VIDEO.
604
+ * @internal
605
+ */
606
+ video?: Video;
607
+ /**
608
+ * Metadata for ARRAY_STRING.
609
+ * @internal
610
+ */
611
+ arrayString?: ArrayString;
612
+ /**
613
+ * Metadata for ARRAY_DOCUMENT.
614
+ * @internal
615
+ */
616
+ arrayDocument?: ArrayDocument;
617
+ /**
618
+ * Metadata for AUDIO.
619
+ * @internal
620
+ */
621
+ audio?: Audio;
622
+ /**
623
+ * Metadata for TIME.
624
+ * @internal
625
+ */
626
+ time?: Time;
627
+ /**
628
+ * Metadata for RICH_CONTENT.
629
+ * @internal
630
+ */
631
+ richContent?: RichContent;
632
+ /**
633
+ * Metadata for MEDIA_GALLERY.
634
+ * @internal
635
+ */
636
+ mediaGallery?: MediaGallery;
637
+ /**
638
+ * Metadata for ADDRESS.
639
+ * @internal
640
+ */
641
+ address?: Address;
642
+ /**
643
+ * Metadata for EMAIL.
644
+ * @internal
645
+ */
646
+ email?: Email;
647
+ /**
648
+ * Metadata for LEGACY_COLOR.
649
+ * @internal
650
+ */
651
+ legacyColor?: LegacyColor;
429
652
  }
430
653
  interface FieldCapabilities {
431
654
  /**
@@ -551,12 +774,26 @@ interface _Object {
551
774
  * @maxSize 1000
552
775
  */
553
776
  fields?: ObjectField[];
777
+ /** @internal */
778
+ defaultValue?: Record<string, any> | null;
554
779
  }
555
780
  interface _Array {
556
781
  /** Element's data type. */
557
782
  elementType?: TypeWithLiterals;
558
783
  /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
559
784
  typeMetadata?: TypeMetadata;
785
+ /**
786
+ * Minimum permitted number of items in an array field.
787
+ * @internal
788
+ */
789
+ minSize?: number | null;
790
+ /**
791
+ * Maximum permitted number of items in an array field.
792
+ * @internal
793
+ */
794
+ maxSize?: number | null;
795
+ /** @internal */
796
+ defaultValue?: any[];
560
797
  }
561
798
  interface PageLink {
562
799
  calculator?: Calculator;
@@ -565,6 +802,11 @@ interface PageLink {
565
802
  * @maxLength 1000
566
803
  */
567
804
  linkedRouterPage?: string | null;
805
+ /**
806
+ * Defines the type of the page link.
807
+ * @internal
808
+ */
809
+ pageLinkType?: PageLinkTypeWithLiterals;
568
810
  }
569
811
  interface Slug {
570
812
  /**
@@ -572,6 +814,18 @@ interface Slug {
572
814
  * @maxLength 1000
573
815
  */
574
816
  pattern?: string;
817
+ /**
818
+ * Minimum permitted length for a string field.
819
+ * @internal
820
+ */
821
+ minLength?: number | null;
822
+ /**
823
+ * Maximum permitted length for a string field.
824
+ * @internal
825
+ */
826
+ maxLength?: number | null;
827
+ /** @internal */
828
+ defaultValue?: string | null;
575
829
  }
576
830
  interface Text extends TextValidationOneOf {
577
831
  textValidation?: TextValidation;
@@ -783,7 +1037,25 @@ declare enum FieldPluginType {
783
1037
  /** Uknown plugin type. */
784
1038
  UNKNOWN = "UNKNOWN",
785
1039
  /** CMS-related field attributes */
786
- CMS = "CMS"
1040
+ CMS = "CMS",
1041
+ /**
1042
+ * Marks a multi-reference field as a category field linking to a Category Group.
1043
+ * @documentationMaturity preview
1044
+ * @internal
1045
+ */
1046
+ CATEGORY_FIELD = "CATEGORY_FIELD",
1047
+ /**
1048
+ * Marks a back-reference field on Category Groups indicating a consumer relationship.
1049
+ * @documentationMaturity preview
1050
+ * @internal
1051
+ */
1052
+ CATEGORY_CONSUMER = "CATEGORY_CONSUMER",
1053
+ /**
1054
+ * Marks the auto-managed primary category single-reference field on a consumer collection.
1055
+ * @documentationMaturity preview
1056
+ * @internal
1057
+ */
1058
+ PRIMARY_CATEGORY_FIELD = "PRIMARY_CATEGORY_FIELD"
787
1059
  }
788
1060
  /** @enumType */
789
1061
  type FieldPluginTypeWithLiterals = FieldPluginType | 'UNKNOWN' | 'CMS';
@@ -880,6 +1152,16 @@ interface Plugin extends PluginOptionsOneOf {
880
1152
  editablePageLinkOptions?: PageLinkPluginOptions;
881
1153
  /** Options for the CMS plugin. */
882
1154
  cmsOptions?: PluginCmsOptions;
1155
+ /**
1156
+ * Options for the Catalog plugin.
1157
+ * @internal
1158
+ */
1159
+ catalogOptions?: CatalogOptions;
1160
+ /**
1161
+ * Options for the Draft Items plugin.
1162
+ * @internal
1163
+ */
1164
+ draftItemsOptions?: DraftItemsPluginOptions;
883
1165
  /** Plugin type. */
884
1166
  type?: PluginTypeWithLiterals;
885
1167
  }
@@ -900,6 +1182,16 @@ interface PluginOptionsOneOf {
900
1182
  editablePageLinkOptions?: PageLinkPluginOptions;
901
1183
  /** Options for the CMS plugin. */
902
1184
  cmsOptions?: PluginCmsOptions;
1185
+ /**
1186
+ * Options for the Catalog plugin.
1187
+ * @internal
1188
+ */
1189
+ catalogOptions?: CatalogOptions;
1190
+ /**
1191
+ * Options for the Draft Items plugin.
1192
+ * @internal
1193
+ */
1194
+ draftItemsOptions?: DraftItemsPluginOptions;
903
1195
  }
904
1196
  declare enum Status {
905
1197
  PUBLISHED = "PUBLISHED",
@@ -948,6 +1240,20 @@ declare enum AccessLevel {
948
1240
  /** @enumType */
949
1241
  type AccessLevelWithLiterals = AccessLevel | 'ANYONE' | 'SITE_MEMBER' | 'SITE_MEMBER_AUTHOR' | 'CMS_EDITOR' | 'PRIVILEGED';
950
1242
  interface DraftPermissions {
1243
+ /**
1244
+ * Access level required to view/edit/remove items from the drafts collection.
1245
+ * Can be set to one of CMS_EDITOR, PRIVILEGED
1246
+ * Default: `CMS_EDITOR`
1247
+ * @internal
1248
+ */
1249
+ manageDrafts?: AccessLevelWithLiterals;
1250
+ /**
1251
+ * Access level required to publish draft items and unpublish published items.
1252
+ * Can be set to one of CMS_EDITOR, PRIVILEGED
1253
+ * Default: `CMS_EDITOR`
1254
+ * @internal
1255
+ */
1256
+ managePublishStatus?: AccessLevelWithLiterals;
951
1257
  }
952
1258
  interface AllowedDraftPermissions {
953
1259
  /** If manage_drafts is permitted for the caller. */
@@ -971,7 +1277,25 @@ declare enum PluginType {
971
1277
  /** Indicates that page link fields are persisted and can be updated. */
972
1278
  EDITABLE_PAGE_LINK = "EDITABLE_PAGE_LINK",
973
1279
  /** CMS-specific collection properties. */
974
- CMS = "CMS"
1280
+ CMS = "CMS",
1281
+ /**
1282
+ * 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.
1283
+ * @documentationMaturity preview
1284
+ * @internal
1285
+ */
1286
+ CATALOG = "CATALOG",
1287
+ /**
1288
+ * Marks the collection as a Category Group for categorization features.
1289
+ * @documentationMaturity preview
1290
+ * @internal
1291
+ */
1292
+ CATEGORIES = "CATEGORIES",
1293
+ /**
1294
+ * Enables the draft items collection: safe draft editing with explicit publish step.
1295
+ * @documentationMaturity preview
1296
+ * @internal
1297
+ */
1298
+ DRAFT_ITEMS = "DRAFT_ITEMS"
975
1299
  }
976
1300
  /** @enumType */
977
1301
  type PluginTypeWithLiterals = PluginType | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
@@ -1157,6 +1481,14 @@ interface DraftItemsPluginOptions extends DraftItemsPluginOptionsPairedCollectio
1157
1481
  * @readonly
1158
1482
  */
1159
1483
  publishedCollectionId?: string;
1484
+ /** @internal */
1485
+ draftPermissions?: DraftPermissions;
1486
+ /**
1487
+ * Actual draft management operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`.
1488
+ * @internal
1489
+ * @readonly
1490
+ */
1491
+ allowedPermissions?: AllowedDraftPermissions;
1160
1492
  }
1161
1493
  /** @oneof */
1162
1494
  interface DraftItemsPluginOptionsPairedCollectionOneOf {
@@ -1312,6 +1644,13 @@ interface GetDataCollectionRequest {
1312
1644
  * @maxLength 256
1313
1645
  */
1314
1646
  dataCollectionId: string;
1647
+ /**
1648
+ * Whether to return all collections referenced by the requested collection.
1649
+ *
1650
+ * Default: `false`
1651
+ * @internal
1652
+ */
1653
+ includeReferencedCollections?: boolean;
1315
1654
  /**
1316
1655
  * Whether to retrieve data from the primary database instance.
1317
1656
  * This decreases performance but ensures data retrieved is up to date even immediately after an update.
@@ -1320,11 +1659,24 @@ interface GetDataCollectionRequest {
1320
1659
  * Default: `false`
1321
1660
  */
1322
1661
  consistentRead?: boolean;
1662
+ /**
1663
+ * Whether to return deleted fields.
1664
+ *
1665
+ * Default: `false`
1666
+ * @internal
1667
+ */
1668
+ includeDeletedFields?: boolean;
1323
1669
  /**
1324
1670
  * If set allowed for caller data permissions would be included in the response
1325
1671
  * @internal
1326
1672
  */
1327
1673
  includeAllowedDataPermissions?: boolean;
1674
+ /**
1675
+ * Segment: PUBLIC or DEV.
1676
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1677
+ * @internal
1678
+ */
1679
+ segment?: SegmentWithLiterals;
1328
1680
  /**
1329
1681
  * List of specific field names to return, if empty all fields are returned.
1330
1682
  * Affects all returned collections
@@ -1343,6 +1695,12 @@ type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
1343
1695
  interface GetDataCollectionResponse {
1344
1696
  /** Details of the collection requested. */
1345
1697
  collection?: DataCollection;
1698
+ /**
1699
+ * Details of collections referenced by the collection requested.
1700
+ * Only populated when `includeReferencedCollections` is `true` in the request.
1701
+ * @internal
1702
+ */
1703
+ referencedCollections?: DataCollection[];
1346
1704
  }
1347
1705
  interface ListDataCollectionsRequest {
1348
1706
  /**
@@ -1366,6 +1724,12 @@ interface ListDataCollectionsRequest {
1366
1724
  * @internal
1367
1725
  */
1368
1726
  includeAllowedDataPermissions?: boolean;
1727
+ /**
1728
+ * Segment: PUBLIC or DEV.
1729
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1730
+ * @internal
1731
+ */
1732
+ segment?: SegmentWithLiterals;
1369
1733
  /**
1370
1734
  * List of specific field names to return, if empty all fields are returned.
1371
1735
  * Affects all returned collections
@@ -1373,6 +1737,14 @@ interface ListDataCollectionsRequest {
1373
1737
  * @maxLength 128
1374
1738
  */
1375
1739
  fields?: string[];
1740
+ /**
1741
+ * Collection types to filter by.
1742
+ * If not specified, all collection types are returned.
1743
+ * If specified, only collections of the given types are returned.
1744
+ * @internal
1745
+ * @maxSize 10
1746
+ */
1747
+ collectionTypes?: CollectionTypeWithLiterals[];
1376
1748
  }
1377
1749
  interface Sorting {
1378
1750
  /**
@@ -1446,6 +1818,12 @@ interface BulkGetDataCollectionsRequest {
1446
1818
  * @internal
1447
1819
  */
1448
1820
  includeAllowedDataPermissions?: boolean;
1821
+ /**
1822
+ * Segment: PUBLIC or DEV.
1823
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1824
+ * @internal
1825
+ */
1826
+ segment?: SegmentWithLiterals;
1449
1827
  /**
1450
1828
  * List of specific field names to return, if empty all fields are returned.
1451
1829
  * Affects all returned collections
@@ -1513,6 +1891,16 @@ interface RestoreDataCollectionResponse {
1513
1891
  interface PatchDataCollectionRequest {
1514
1892
  /** Data collection to update. */
1515
1893
  dataCollection: DataCollection;
1894
+ /**
1895
+ * Field mask specifying which properties to update.
1896
+ * Supported properties: `displayName`, `displayField`, `permissions`.
1897
+ * Attempting to update unsupported properties results in an error.
1898
+ * 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),
1899
+ * [Update Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/update-data-collection-field),
1900
+ * or [Delete Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-field).
1901
+ * @internal
1902
+ */
1903
+ fieldMask?: string[];
1516
1904
  }
1517
1905
  interface PatchDataCollectionResponse {
1518
1906
  /** Updated data collection. */
@@ -1780,6 +2168,13 @@ interface PatchDataCollectionFieldRequest {
1780
2168
  dataCollectionId: string;
1781
2169
  /** Field to update. */
1782
2170
  field: Field;
2171
+ /**
2172
+ * Field mask specifying which field properties to update.
2173
+ * Supported properties: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`.
2174
+ * Attempting to update `key` or other unsupported properties results in an error.
2175
+ * @internal
2176
+ */
2177
+ fieldMask?: string[];
1783
2178
  }
1784
2179
  interface PatchDataCollectionFieldResponse {
1785
2180
  /** Updated data collection. */
@@ -1959,6 +2354,13 @@ interface Failure {
1959
2354
  * @maxLength 7
1960
2355
  */
1961
2356
  code?: string;
2357
+ /**
2358
+ * Broad error code.
2359
+ * - `WD_UNKNOWN_ERROR`: Unknown error.
2360
+ * @internal
2361
+ * @maxLength 64
2362
+ */
2363
+ broadCode?: string;
1962
2364
  /**
1963
2365
  * Description of the failure.
1964
2366
  * @maxLength 1024
@@ -2284,6 +2686,12 @@ interface AccountInfo {
2284
2686
  declare function createDataCollection(collection: NonNullablePaths<DataCollection, `_id` | `fields.${number}.key` | `fields.${number}.type` | `permissions.insert` | `permissions.read` | `permissions.remove` | `permissions.update`, 4>): Promise<NonNullablePaths<DataCollection, `_id` | `collectionType` | `defaultDisplayOrder.fieldKey` | `defaultDisplayOrder.direction` | `capabilities.dataOperations` | `capabilities.collectionOperations` | `capabilities.indexLimits.regular` | `capabilities.indexLimits.unique` | `capabilities.indexLimits.total` | `fields` | `fields.${number}.key` | `fields.${number}.type` | `fields.${number}.typeMetadata.reference.referencedCollectionId` | `fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `fields.${number}.typeMetadata.array.elementType` | `fields.${number}.systemField` | `fields.${number}.capabilities.sortable` | `fields.${number}.encrypted` | `fields.${number}.condition.permission` | `permissions.insert` | `permissions.update` | `permissions.remove` | `permissions.read` | `plugins` | `plugins.${number}.publishOptions.defaultStatus` | `plugins.${number}.singleItemOptions.singleItemId` | `plugins.${number}.urlizedOptions.format` | `plugins.${number}.editablePageLinkOptions.isPersisted` | `plugins.${number}.editablePageLinkOptions.isMutable` | `plugins.${number}.type` | `pagingModes`, 6>>;
2285
2687
  /**
2286
2688
  * Retrieves a data collection by ID.
2689
+ *
2690
+ * Starting on August 3rd, 2026, when called with a visitor (unauthenticated) identity, the response contains only
2691
+ * the collection details needed to display the collection's data: `id`, `displayName`, `displayField`, `plugins`,
2692
+ * and for each field in `fields` its `key`, `displayName`, `type`, and `typeMetadata`. All other collection
2693
+ * details, such as `permissions` and `capabilities`, are omitted. Calls made with any other identity return the
2694
+ * full collection.
2287
2695
  * @param dataCollectionId - ID of the collection to retrieve.
2288
2696
  * @public
2289
2697
  * @requiredField dataCollectionId
@@ -2544,6 +2952,12 @@ interface PatchDataCollection {
2544
2952
  * @readonly
2545
2953
  */
2546
2954
  allowedDataPermissions?: AllowedDataPermissions;
2955
+ /**
2956
+ * Strict mode the collection fields validation.
2957
+ * When enabled, strict mode enforces all field validations during data operations.
2958
+ * @internal
2959
+ */
2960
+ strictMode?: boolean | null;
2547
2961
  /**
2548
2962
  * Free-text description of the collection's purpose and contents.
2549
2963
  * @internal
@@ -1961,6 +1961,7 @@ var Type = /* @__PURE__ */ ((Type2) => {
1961
1961
  Type2["LEGACY_IMAGE"] = "LEGACY_IMAGE";
1962
1962
  Type2["LEGACY_COLOR"] = "LEGACY_COLOR";
1963
1963
  Type2["LEGACY_EXTERNAL_VIDEO"] = "LEGACY_EXTERNAL_VIDEO";
1964
+ Type2["SLUG"] = "SLUG";
1964
1965
  Type2["EMAIL"] = "EMAIL";
1965
1966
  Type2["SECURED_MEDIA"] = "SECURED_MEDIA";
1966
1967
  Type2["MEDIA_IMAGE"] = "MEDIA_IMAGE";
@@ -1991,6 +1992,9 @@ var PageLinkType = /* @__PURE__ */ ((PageLinkType2) => {
1991
1992
  var FieldPluginType = /* @__PURE__ */ ((FieldPluginType2) => {
1992
1993
  FieldPluginType2["UNKNOWN"] = "UNKNOWN";
1993
1994
  FieldPluginType2["CMS"] = "CMS";
1995
+ FieldPluginType2["CATEGORY_FIELD"] = "CATEGORY_FIELD";
1996
+ FieldPluginType2["CATEGORY_CONSUMER"] = "CATEGORY_CONSUMER";
1997
+ FieldPluginType2["PRIMARY_CATEGORY_FIELD"] = "PRIMARY_CATEGORY_FIELD";
1994
1998
  return FieldPluginType2;
1995
1999
  })(FieldPluginType || {});
1996
2000
  var Permission = /* @__PURE__ */ ((Permission2) => {
@@ -2037,6 +2041,9 @@ var PluginType = /* @__PURE__ */ ((PluginType2) => {
2037
2041
  PluginType2["SHARED"] = "SHARED";
2038
2042
  PluginType2["EDITABLE_PAGE_LINK"] = "EDITABLE_PAGE_LINK";
2039
2043
  PluginType2["CMS"] = "CMS";
2044
+ PluginType2["CATALOG"] = "CATALOG";
2045
+ PluginType2["CATEGORIES"] = "CATEGORIES";
2046
+ PluginType2["DRAFT_ITEMS"] = "DRAFT_ITEMS";
2040
2047
  return PluginType2;
2041
2048
  })(PluginType || {});
2042
2049
  var PagingMode = /* @__PURE__ */ ((PagingMode2) => {