@wix/auto_sdk_data_collections 1.0.90 → 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.
@@ -89,6 +89,29 @@ interface DataCollection {
89
89
  * @readonly
90
90
  */
91
91
  updatedDate?: Date | null;
92
+ /**
93
+ * [Permissions](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/introduction#permissions) required to access and modify collection items, defined by the lowest access level required to perform each action.
94
+ * @internal
95
+ */
96
+ dataPermissions?: DataPermissions;
97
+ /**
98
+ * Actual data operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`
99
+ * @internal
100
+ * @readonly
101
+ */
102
+ allowedDataPermissions?: AllowedDataPermissions;
103
+ /**
104
+ * Strict mode the collection fields validation.
105
+ * When enabled, strict mode enforces all field validations during data operations.
106
+ * @internal
107
+ */
108
+ strictMode?: boolean | null;
109
+ /**
110
+ * Free-text description of the collection's purpose and contents.
111
+ * @internal
112
+ * @maxLength 4000
113
+ */
114
+ description?: string | null;
92
115
  }
93
116
  declare enum CollectionType {
94
117
  /** User-created collection. */
@@ -136,6 +159,11 @@ interface CollectionCapabilities {
136
159
  collectionOperations?: CollectionOperationWithLiterals[];
137
160
  /** Maximum number of indexes for the collection. */
138
161
  indexLimits?: IndexLimits;
162
+ /**
163
+ * Maximum number of indexes for the collection.
164
+ * @internal
165
+ */
166
+ indexQuotaLimits?: IndexQuotaLimits;
139
167
  }
140
168
  declare enum DataOperation {
141
169
  AGGREGATE = "AGGREGATE",
@@ -233,6 +261,11 @@ interface Field extends FieldRangeValidationsOneOf {
233
261
  * @maxLength 16000
234
262
  */
235
263
  description?: string | null;
264
+ /**
265
+ * @internal
266
+ * @maxLength 100
267
+ */
268
+ plugin?: string | null;
236
269
  /**
237
270
  * Whether the field is read-only. A read-only field can't be changed.
238
271
  *
@@ -256,6 +289,12 @@ interface Field extends FieldRangeValidationsOneOf {
256
289
  * @maxSize 100
257
290
  */
258
291
  plugins?: FieldPlugin[];
292
+ /**
293
+ * Whether the field is deleted. Returned only when `include_deleted_fields = true`.
294
+ * @internal
295
+ * @readonly
296
+ */
297
+ deleted?: boolean | null;
259
298
  /**
260
299
  * This indicates that this fields is conditional and is not retrieved by default.
261
300
  * @readonly
@@ -355,11 +394,35 @@ declare enum Type {
355
394
  LEGACY_COLOR = "LEGACY_COLOR",
356
395
  /** Deprecated type that might appear in legacy collections. */
357
396
  LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO",
397
+ /**
398
+ * SLUG type used for dynamic page URLs.
399
+ * @documentationMaturity preview
400
+ * @internal
401
+ */
402
+ SLUG = "SLUG",
358
403
  /**
359
404
  * Email.
360
405
  * @documentationMaturity preview
361
406
  */
362
- EMAIL = "EMAIL"
407
+ EMAIL = "EMAIL",
408
+ /**
409
+ * Secured media object with digital file metadata.
410
+ * @documentationMaturity preview
411
+ * @internal
412
+ */
413
+ SECURED_MEDIA = "SECURED_MEDIA",
414
+ /**
415
+ * Media image object.
416
+ * @documentationMaturity preview
417
+ * @internal
418
+ */
419
+ MEDIA_IMAGE = "MEDIA_IMAGE",
420
+ /**
421
+ * Media vector art object.
422
+ * @documentationMaturity preview
423
+ * @internal
424
+ */
425
+ MEDIA_VECTOR_ART = "MEDIA_VECTOR_ART"
363
426
  }
364
427
  /** @enumType */
365
428
  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';
@@ -374,6 +437,106 @@ interface TypeMetadata extends TypeMetadataMetadataOneOf {
374
437
  array?: _Array;
375
438
  /** Metadata for a page link field. */
376
439
  pageLink?: PageLink;
440
+ /**
441
+ * Metadata for a slug field.
442
+ * @internal
443
+ */
444
+ slug?: Slug;
445
+ /**
446
+ * Metadata for TEXT.
447
+ * @internal
448
+ */
449
+ text?: Text;
450
+ /**
451
+ * Metadata for NUMBER.
452
+ * @internal
453
+ */
454
+ number?: _Number;
455
+ /**
456
+ * Metadata for DATE.
457
+ * @internal
458
+ */
459
+ date?: _Date;
460
+ /**
461
+ * Metadata for DATETIME.
462
+ * @internal
463
+ */
464
+ datetime?: Datetime;
465
+ /**
466
+ * Metadata for IMAGE.
467
+ * @internal
468
+ */
469
+ image?: Image;
470
+ /**
471
+ * Metadata for BOOLEAN.
472
+ * @internal
473
+ */
474
+ boolean?: _Boolean;
475
+ /**
476
+ * Metadata for DOCUMENT.
477
+ * @internal
478
+ */
479
+ document?: Document;
480
+ /**
481
+ * Metadata for URL.
482
+ * @internal
483
+ */
484
+ url?: Url;
485
+ /**
486
+ * Metadata for RICH_TEXT.
487
+ * @internal
488
+ */
489
+ richText?: RichText;
490
+ /**
491
+ * Metadata for VIDEO.
492
+ * @internal
493
+ */
494
+ video?: Video;
495
+ /**
496
+ * Metadata for ARRAY_STRING.
497
+ * @internal
498
+ */
499
+ arrayString?: ArrayString;
500
+ /**
501
+ * Metadata for ARRAY_DOCUMENT.
502
+ * @internal
503
+ */
504
+ arrayDocument?: ArrayDocument;
505
+ /**
506
+ * Metadata for AUDIO.
507
+ * @internal
508
+ */
509
+ audio?: Audio;
510
+ /**
511
+ * Metadata for TIME.
512
+ * @internal
513
+ */
514
+ time?: Time;
515
+ /**
516
+ * Metadata for RICH_CONTENT.
517
+ * @internal
518
+ */
519
+ richContent?: RichContent;
520
+ /**
521
+ * Metadata for MEDIA_GALLERY.
522
+ * @internal
523
+ */
524
+ mediaGallery?: MediaGallery;
525
+ /**
526
+ * Metadata for ADDRESS.
527
+ * @internal
528
+ */
529
+ address?: Address;
530
+ /**
531
+ * Metadata for EMAIL.
532
+ * @internal
533
+ */
534
+ email?: Email;
535
+ /**
536
+ * Metadata for LEGACY_COLOR.
537
+ * @internal
538
+ */
539
+ legacyColor?: LegacyColor;
377
540
  }
378
541
  /** @oneof */
379
542
  interface TypeMetadataMetadataOneOf {
@@ -387,6 +550,106 @@ interface TypeMetadataMetadataOneOf {
387
550
  array?: _Array;
388
551
  /** Metadata for a page link field. */
389
552
  pageLink?: PageLink;
553
+ /**
554
+ * Metadata for a slug field.
555
+ * @internal
556
+ */
557
+ slug?: Slug;
558
+ /**
559
+ * Metadata for TEXT.
560
+ * @internal
561
+ */
562
+ text?: Text;
563
+ /**
564
+ * Metadata for NUMBER.
565
+ * @internal
566
+ */
567
+ number?: _Number;
568
+ /**
569
+ * Metadata for DATE.
570
+ * @internal
571
+ */
572
+ date?: _Date;
573
+ /**
574
+ * Metadata for DATETIME.
575
+ * @internal
576
+ */
577
+ datetime?: Datetime;
578
+ /**
579
+ * Metadata for IMAGE.
580
+ * @internal
581
+ */
582
+ image?: Image;
583
+ /**
584
+ * Metadata for BOOLEAN.
585
+ * @internal
586
+ */
587
+ boolean?: _Boolean;
588
+ /**
589
+ * Metadata for DOCUMENT.
590
+ * @internal
591
+ */
592
+ document?: Document;
593
+ /**
594
+ * Metadata for URL.
595
+ * @internal
596
+ */
597
+ url?: Url;
598
+ /**
599
+ * Metadata for RICH_TEXT.
600
+ * @internal
601
+ */
602
+ richText?: RichText;
603
+ /**
604
+ * Metadata for VIDEO.
605
+ * @internal
606
+ */
607
+ video?: Video;
608
+ /**
609
+ * Metadata for ARRAY_STRING.
610
+ * @internal
611
+ */
612
+ arrayString?: ArrayString;
613
+ /**
614
+ * Metadata for ARRAY_DOCUMENT.
615
+ * @internal
616
+ */
617
+ arrayDocument?: ArrayDocument;
618
+ /**
619
+ * Metadata for AUDIO.
620
+ * @internal
621
+ */
622
+ audio?: Audio;
623
+ /**
624
+ * Metadata for TIME.
625
+ * @internal
626
+ */
627
+ time?: Time;
628
+ /**
629
+ * Metadata for RICH_CONTENT.
630
+ * @internal
631
+ */
632
+ richContent?: RichContent;
633
+ /**
634
+ * Metadata for MEDIA_GALLERY.
635
+ * @internal
636
+ */
637
+ mediaGallery?: MediaGallery;
638
+ /**
639
+ * Metadata for ADDRESS.
640
+ * @internal
641
+ */
642
+ address?: Address;
643
+ /**
644
+ * Metadata for EMAIL.
645
+ * @internal
646
+ */
647
+ email?: Email;
648
+ /**
649
+ * Metadata for LEGACY_COLOR.
650
+ * @internal
651
+ */
652
+ legacyColor?: LegacyColor;
390
653
  }
391
654
  interface FieldCapabilities {
392
655
  /**
@@ -512,12 +775,26 @@ interface _Object {
512
775
  * @maxSize 1000
513
776
  */
514
777
  fields?: ObjectField[];
778
+ /** @internal */
779
+ defaultValue?: Record<string, any> | null;
515
780
  }
516
781
  interface _Array {
517
782
  /** Element's data type. */
518
783
  elementType?: TypeWithLiterals;
519
784
  /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
520
785
  typeMetadata?: TypeMetadata;
786
+ /**
787
+ * Minimum permitted number of items in an array field.
788
+ * @internal
789
+ */
790
+ minSize?: number | null;
791
+ /**
792
+ * Maximum permitted number of items in an array field.
793
+ * @internal
794
+ */
795
+ maxSize?: number | null;
796
+ /** @internal */
797
+ defaultValue?: any[];
521
798
  }
522
799
  interface PageLink {
523
800
  calculator?: Calculator;
@@ -526,6 +803,11 @@ interface PageLink {
526
803
  * @maxLength 1000
527
804
  */
528
805
  linkedRouterPage?: string | null;
806
+ /**
807
+ * Defines the type of the page link.
808
+ * @internal
809
+ */
810
+ pageLinkType?: PageLinkTypeWithLiterals;
529
811
  }
530
812
  interface Slug {
531
813
  /**
@@ -533,6 +815,18 @@ interface Slug {
533
815
  * @maxLength 1000
534
816
  */
535
817
  pattern?: string;
818
+ /**
819
+ * Minimum permitted length for a string field.
820
+ * @internal
821
+ */
822
+ minLength?: number | null;
823
+ /**
824
+ * Maximum permitted length for a string field.
825
+ * @internal
826
+ */
827
+ maxLength?: number | null;
828
+ /** @internal */
829
+ defaultValue?: string | null;
536
830
  }
537
831
  interface Text extends TextValidationOneOf {
538
832
  textValidation?: TextValidation;
@@ -744,7 +1038,25 @@ declare enum FieldPluginType {
744
1038
  /** Uknown plugin type. */
745
1039
  UNKNOWN = "UNKNOWN",
746
1040
  /** CMS-related field attributes */
747
- CMS = "CMS"
1041
+ CMS = "CMS",
1042
+ /**
1043
+ * Marks a multi-reference field as a category field linking to a Category Group.
1044
+ * @documentationMaturity preview
1045
+ * @internal
1046
+ */
1047
+ CATEGORY_FIELD = "CATEGORY_FIELD",
1048
+ /**
1049
+ * Marks a back-reference field on Category Groups indicating a consumer relationship.
1050
+ * @documentationMaturity preview
1051
+ * @internal
1052
+ */
1053
+ CATEGORY_CONSUMER = "CATEGORY_CONSUMER",
1054
+ /**
1055
+ * Marks the auto-managed primary category single-reference field on a consumer collection.
1056
+ * @documentationMaturity preview
1057
+ * @internal
1058
+ */
1059
+ PRIMARY_CATEGORY_FIELD = "PRIMARY_CATEGORY_FIELD"
748
1060
  }
749
1061
  /** @enumType */
750
1062
  type FieldPluginTypeWithLiterals = FieldPluginType | 'UNKNOWN' | 'CMS';
@@ -841,6 +1153,16 @@ interface Plugin extends PluginOptionsOneOf {
841
1153
  editablePageLinkOptions?: PageLinkPluginOptions;
842
1154
  /** Options for the CMS plugin. */
843
1155
  cmsOptions?: PluginCmsOptions;
1156
+ /**
1157
+ * Options for the Catalog plugin.
1158
+ * @internal
1159
+ */
1160
+ catalogOptions?: CatalogOptions;
1161
+ /**
1162
+ * Options for the Draft Items plugin.
1163
+ * @internal
1164
+ */
1165
+ draftItemsOptions?: DraftItemsPluginOptions;
844
1166
  /** Plugin type. */
845
1167
  type?: PluginTypeWithLiterals;
846
1168
  }
@@ -861,6 +1183,16 @@ interface PluginOptionsOneOf {
861
1183
  editablePageLinkOptions?: PageLinkPluginOptions;
862
1184
  /** Options for the CMS plugin. */
863
1185
  cmsOptions?: PluginCmsOptions;
1186
+ /**
1187
+ * Options for the Catalog plugin.
1188
+ * @internal
1189
+ */
1190
+ catalogOptions?: CatalogOptions;
1191
+ /**
1192
+ * Options for the Draft Items plugin.
1193
+ * @internal
1194
+ */
1195
+ draftItemsOptions?: DraftItemsPluginOptions;
864
1196
  }
865
1197
  declare enum Status {
866
1198
  PUBLISHED = "PUBLISHED",
@@ -909,6 +1241,20 @@ declare enum AccessLevel {
909
1241
  /** @enumType */
910
1242
  type AccessLevelWithLiterals = AccessLevel | 'ANYONE' | 'SITE_MEMBER' | 'SITE_MEMBER_AUTHOR' | 'CMS_EDITOR' | 'PRIVILEGED';
911
1243
  interface DraftPermissions {
1244
+ /**
1245
+ * Access level required to view/edit/remove items from the drafts collection.
1246
+ * Can be set to one of CMS_EDITOR, PRIVILEGED
1247
+ * Default: `CMS_EDITOR`
1248
+ * @internal
1249
+ */
1250
+ manageDrafts?: AccessLevelWithLiterals;
1251
+ /**
1252
+ * Access level required to publish draft items and unpublish published items.
1253
+ * Can be set to one of CMS_EDITOR, PRIVILEGED
1254
+ * Default: `CMS_EDITOR`
1255
+ * @internal
1256
+ */
1257
+ managePublishStatus?: AccessLevelWithLiterals;
912
1258
  }
913
1259
  interface AllowedDraftPermissions {
914
1260
  /** If manage_drafts is permitted for the caller. */
@@ -932,13 +1278,37 @@ declare enum PluginType {
932
1278
  /** Indicates that page link fields are persisted and can be updated. */
933
1279
  EDITABLE_PAGE_LINK = "EDITABLE_PAGE_LINK",
934
1280
  /** CMS-specific collection properties. */
935
- CMS = "CMS"
1281
+ CMS = "CMS",
1282
+ /**
1283
+ * 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.
1284
+ * @documentationMaturity preview
1285
+ * @internal
1286
+ */
1287
+ CATALOG = "CATALOG",
1288
+ /**
1289
+ * Marks the collection as a Category Group for categorization features.
1290
+ * @documentationMaturity preview
1291
+ * @internal
1292
+ */
1293
+ CATEGORIES = "CATEGORIES",
1294
+ /**
1295
+ * Enables the draft items collection: safe draft editing with explicit publish step.
1296
+ * @documentationMaturity preview
1297
+ * @internal
1298
+ */
1299
+ DRAFT_ITEMS = "DRAFT_ITEMS"
936
1300
  }
937
1301
  /** @enumType */
938
1302
  type PluginTypeWithLiterals = PluginType | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
939
1303
  interface PublishPluginOptions {
940
1304
  /** Default status. */
941
1305
  defaultStatus?: StatusWithLiterals;
1306
+ /**
1307
+ * Server-managed lifecycle status.
1308
+ * @internal
1309
+ * @readonly
1310
+ */
1311
+ lifecycleStatus?: LifecycleStatusWithLiterals;
942
1312
  }
943
1313
  interface SingleItemPluginOptions {
944
1314
  /**
@@ -1112,6 +1482,14 @@ interface DraftItemsPluginOptions extends DraftItemsPluginOptionsPairedCollectio
1112
1482
  * @readonly
1113
1483
  */
1114
1484
  publishedCollectionId?: string;
1485
+ /** @internal */
1486
+ draftPermissions?: DraftPermissions;
1487
+ /**
1488
+ * Actual draft management operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`.
1489
+ * @internal
1490
+ * @readonly
1491
+ */
1492
+ allowedPermissions?: AllowedDraftPermissions;
1115
1493
  }
1116
1494
  /** @oneof */
1117
1495
  interface DraftItemsPluginOptionsPairedCollectionOneOf {
@@ -1267,6 +1645,13 @@ interface GetDataCollectionRequest {
1267
1645
  * @maxLength 256
1268
1646
  */
1269
1647
  dataCollectionId: string;
1648
+ /**
1649
+ * Whether to return all collections referenced by the requested collection.
1650
+ *
1651
+ * Default: `false`
1652
+ * @internal
1653
+ */
1654
+ includeReferencedCollections?: boolean;
1270
1655
  /**
1271
1656
  * Whether to retrieve data from the primary database instance.
1272
1657
  * This decreases performance but ensures data retrieved is up to date even immediately after an update.
@@ -1275,6 +1660,24 @@ interface GetDataCollectionRequest {
1275
1660
  * Default: `false`
1276
1661
  */
1277
1662
  consistentRead?: boolean;
1663
+ /**
1664
+ * Whether to return deleted fields.
1665
+ *
1666
+ * Default: `false`
1667
+ * @internal
1668
+ */
1669
+ includeDeletedFields?: boolean;
1670
+ /**
1671
+ * If set allowed for caller data permissions would be included in the response
1672
+ * @internal
1673
+ */
1674
+ includeAllowedDataPermissions?: boolean;
1675
+ /**
1676
+ * Segment: PUBLIC or DEV.
1677
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1678
+ * @internal
1679
+ */
1680
+ segment?: SegmentWithLiterals;
1278
1681
  /**
1279
1682
  * List of specific field names to return, if empty all fields are returned.
1280
1683
  * Affects all returned collections
@@ -1293,6 +1696,12 @@ type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
1293
1696
  interface GetDataCollectionResponse {
1294
1697
  /** Details of the collection requested. */
1295
1698
  collection?: DataCollection;
1699
+ /**
1700
+ * Details of collections referenced by the collection requested.
1701
+ * Only populated when `includeReferencedCollections` is `true` in the request.
1702
+ * @internal
1703
+ */
1704
+ referencedCollections?: DataCollection[];
1296
1705
  }
1297
1706
  interface ListDataCollectionsRequest {
1298
1707
  /**
@@ -1311,6 +1720,17 @@ interface ListDataCollectionsRequest {
1311
1720
  * Default: `false`
1312
1721
  */
1313
1722
  consistentRead?: boolean;
1723
+ /**
1724
+ * If set allowed for caller data permissions would be included in the response
1725
+ * @internal
1726
+ */
1727
+ includeAllowedDataPermissions?: boolean;
1728
+ /**
1729
+ * Segment: PUBLIC or DEV.
1730
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1731
+ * @internal
1732
+ */
1733
+ segment?: SegmentWithLiterals;
1314
1734
  /**
1315
1735
  * List of specific field names to return, if empty all fields are returned.
1316
1736
  * Affects all returned collections
@@ -1318,6 +1738,14 @@ interface ListDataCollectionsRequest {
1318
1738
  * @maxLength 128
1319
1739
  */
1320
1740
  fields?: string[];
1741
+ /**
1742
+ * Collection types to filter by.
1743
+ * If not specified, all collection types are returned.
1744
+ * If specified, only collections of the given types are returned.
1745
+ * @internal
1746
+ * @maxSize 10
1747
+ */
1748
+ collectionTypes?: CollectionTypeWithLiterals[];
1321
1749
  }
1322
1750
  interface Sorting {
1323
1751
  /**
@@ -1386,6 +1814,17 @@ interface BulkGetDataCollectionsRequest {
1386
1814
  * Default: `false`
1387
1815
  */
1388
1816
  consistentRead?: boolean;
1817
+ /**
1818
+ * If set allowed for caller data permissions would be included in the response
1819
+ * @internal
1820
+ */
1821
+ includeAllowedDataPermissions?: boolean;
1822
+ /**
1823
+ * Segment: PUBLIC or DEV.
1824
+ * Impacts blocks apps collections only: if PUBLIC, only apps in published site are included.
1825
+ * @internal
1826
+ */
1827
+ segment?: SegmentWithLiterals;
1389
1828
  /**
1390
1829
  * List of specific field names to return, if empty all fields are returned.
1391
1830
  * Affects all returned collections
@@ -1453,6 +1892,16 @@ interface RestoreDataCollectionResponse {
1453
1892
  interface PatchDataCollectionRequest {
1454
1893
  /** Data collection to update. */
1455
1894
  dataCollection: DataCollection;
1895
+ /**
1896
+ * Field mask specifying which properties to update.
1897
+ * Supported properties: `displayName`, `displayField`, `permissions`.
1898
+ * Attempting to update unsupported properties results in an error.
1899
+ * 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),
1900
+ * [Update Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/update-data-collection-field),
1901
+ * or [Delete Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-field).
1902
+ * @internal
1903
+ */
1904
+ fieldMask?: string[];
1456
1905
  }
1457
1906
  interface PatchDataCollectionResponse {
1458
1907
  /** Updated data collection. */
@@ -1720,6 +2169,13 @@ interface PatchDataCollectionFieldRequest {
1720
2169
  dataCollectionId: string;
1721
2170
  /** Field to update. */
1722
2171
  field: Field;
2172
+ /**
2173
+ * Field mask specifying which field properties to update.
2174
+ * Supported properties: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`.
2175
+ * Attempting to update `key` or other unsupported properties results in an error.
2176
+ * @internal
2177
+ */
2178
+ fieldMask?: string[];
1723
2179
  }
1724
2180
  interface PatchDataCollectionFieldResponse {
1725
2181
  /** Updated data collection. */
@@ -1899,6 +2355,13 @@ interface Failure {
1899
2355
  * @maxLength 7
1900
2356
  */
1901
2357
  code?: string;
2358
+ /**
2359
+ * Broad error code.
2360
+ * - `WD_UNKNOWN_ERROR`: Unknown error.
2361
+ * @internal
2362
+ * @maxLength 64
2363
+ */
2364
+ broadCode?: string;
1902
2365
  /**
1903
2366
  * Description of the failure.
1904
2367
  * @maxLength 1024
@@ -2091,8 +2554,18 @@ interface DomainEventBodyOneOf {
2091
2554
  }
2092
2555
  interface EntityCreatedEvent {
2093
2556
  entityAsJson?: string;
2557
+ /**
2558
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
2559
+ * @internal
2560
+ */
2561
+ triggeredByUndelete?: boolean | null;
2094
2562
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
2095
2563
  restoreInfo?: RestoreInfo;
2564
+ /**
2565
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
2566
+ * @internal
2567
+ */
2568
+ additionalMetadataAsJson?: string | null;
2096
2569
  }
2097
2570
  interface RestoreInfo {
2098
2571
  deletedDate?: Date | null;
@@ -2104,10 +2577,42 @@ interface EntityUpdatedEvent {
2104
2577
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2105
2578
  */
2106
2579
  currentEntityAsJson?: string;
2580
+ /**
2581
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
2582
+ * wont populate it / have any reference to it in the API.
2583
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
2584
+ * the developer should send only the new (current) entity.
2585
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
2586
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
2587
+ * @internal
2588
+ * @deprecated
2589
+ */
2590
+ previousEntityAsJson?: string | null;
2591
+ /**
2592
+ * Map of fully qualified field paths to their previous values for fields that changed.
2593
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
2594
+ * @internal
2595
+ */
2596
+ modifiedFields?: Record<string, any>;
2597
+ /**
2598
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
2599
+ * @internal
2600
+ */
2601
+ additionalMetadataAsJson?: string | null;
2107
2602
  }
2108
2603
  interface EntityDeletedEvent {
2604
+ /**
2605
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
2606
+ * @internal
2607
+ */
2608
+ movedToTrash?: boolean | null;
2109
2609
  /** Entity that was deleted. */
2110
2610
  deletedEntityAsJson?: string | null;
2611
+ /**
2612
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
2613
+ * @internal
2614
+ */
2615
+ additionalMetadataAsJson?: string | null;
2111
2616
  }
2112
2617
  interface ActionEvent {
2113
2618
  bodyAsJson?: string;