@wix/auto_sdk_data_collections 1.0.0 → 1.0.1

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.
@@ -1,6 +1,10 @@
1
1
  /** A data collection determines the structure of data to be stored in a database. */
2
2
  export interface DataCollection {
3
- /** Collection ID. For example, `my-first-collection`. May include a namespace. */
3
+ /**
4
+ * Collection ID. For example, `my-first-collection`. May include a namespace.
5
+ * @immutable
6
+ * @maxLength 256
7
+ */
4
8
  _id?: string;
5
9
  /**
6
10
  * Collection type. Indicates how the collection was created and how it is stored.
@@ -9,6 +13,7 @@ export interface DataCollection {
9
13
  collectionType?: CollectionType;
10
14
  /**
11
15
  * ID of the app that defined this collection. For collections defined by Wix users, this value is null.
16
+ * @format GUID
12
17
  * @readonly
13
18
  */
14
19
  ownerAppId?: string | null;
@@ -19,7 +24,10 @@ export interface DataCollection {
19
24
  * @readonly
20
25
  */
21
26
  maxPageSize?: number | null;
22
- /** Collection's display name as shown in the CMS. For example, `My First Collection`. */
27
+ /**
28
+ * Collection's display name as shown in the CMS. For example, `My First Collection`.
29
+ * @maxLength 1000
30
+ */
23
31
  displayName?: string | null;
24
32
  /**
25
33
  * Default item sorting order when a query doesn't specify one.
@@ -30,16 +38,23 @@ export interface DataCollection {
30
38
  * UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.
31
39
  * Empty for all data collections not owned by Wix apps.
32
40
  * @readonly
41
+ * @maxLength 1000
33
42
  */
34
43
  displayNamespace?: string | null;
35
- /** Field whose value the CMS displays to represent the collection item when referenced in a different collection. */
44
+ /**
45
+ * Field whose value the CMS displays to represent the collection item when referenced in a different collection.
46
+ * @maxLength 1000
47
+ */
36
48
  displayField?: string | null;
37
49
  /**
38
50
  * Capabilities the collection supports.
39
51
  * @readonly
40
52
  */
41
53
  capabilities?: CollectionCapabilities;
42
- /** Collection's field structure. */
54
+ /**
55
+ * Collection's field structure.
56
+ * @maxSize 1000
57
+ */
43
58
  fields?: Field[];
44
59
  /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
45
60
  permissions?: Permissions;
@@ -48,11 +63,15 @@ export interface DataCollection {
48
63
  * @readonly
49
64
  */
50
65
  revision?: string | null;
51
- /** Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality. */
66
+ /**
67
+ * Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality.
68
+ * @maxSize 100
69
+ */
52
70
  plugins?: Plugin[];
53
71
  /**
54
72
  * Paging modes the collection supports. In native collections, offset-based paging is supported by default.
55
73
  * @readonly
74
+ * @maxSize 2
56
75
  */
57
76
  pagingModes?: PagingMode[];
58
77
  /**
@@ -88,7 +107,10 @@ export declare enum CollectionType {
88
107
  EXTERNAL = "EXTERNAL"
89
108
  }
90
109
  export interface Sort {
91
- /** Field to sort by. */
110
+ /**
111
+ * Field to sort by.
112
+ * @maxLength 1000
113
+ */
92
114
  fieldKey?: string;
93
115
  /**
94
116
  * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
@@ -106,9 +128,13 @@ export interface CollectionCapabilities {
106
128
  * Data operations the collection supports. The listed operations can be performed on data the collection contains.
107
129
  *
108
130
  * > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
131
+ * @maxSize 100
109
132
  */
110
133
  dataOperations?: DataOperation[];
111
- /** Collection operations supported. The listed operations can be performed on the collection itself. */
134
+ /**
135
+ * Collection operations supported. The listed operations can be performed on the collection itself.
136
+ * @maxSize 100
137
+ */
112
138
  collectionOperations?: CollectionOperation[];
113
139
  /** Maximum number of indexes for the collection. */
114
140
  indexLimits?: IndexLimits;
@@ -157,9 +183,15 @@ export interface Field extends FieldRangeValidationsOneOf {
157
183
  stringLengthRange?: StringLengthRange;
158
184
  /** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */
159
185
  arraySizeRange?: ArraySizeRange;
160
- /** Unique identifier for the field. For example, `firstName`. */
186
+ /**
187
+ * Unique identifier for the field. For example, `firstName`.
188
+ * @maxLength 1000
189
+ */
161
190
  key?: string;
162
- /** Field's display name when displayed in the CMS. For example, `First Name`. */
191
+ /**
192
+ * Field's display name when displayed in the CMS. For example, `First Name`.
193
+ * @maxLength 1000
194
+ */
163
195
  displayName?: string | null;
164
196
  /** Field's data type. */
165
197
  type?: Type;
@@ -177,7 +209,10 @@ export interface Field extends FieldRangeValidationsOneOf {
177
209
  capabilities?: FieldCapabilities;
178
210
  /** Whether the field is encrypted. */
179
211
  encrypted?: boolean;
180
- /** Field description. */
212
+ /**
213
+ * Field description.
214
+ * @maxLength 16000
215
+ */
181
216
  description?: string | null;
182
217
  /**
183
218
  * Whether the field is read-only. A read-only field can't be changed.
@@ -197,7 +232,10 @@ export interface Field extends FieldRangeValidationsOneOf {
197
232
  * Default: `false`
198
233
  */
199
234
  required?: boolean | null;
200
- /** Additional optional plugins for the field. */
235
+ /**
236
+ * Additional optional plugins for the field.
237
+ * @maxSize 100
238
+ */
201
239
  plugins?: FieldPlugin[];
202
240
  }
203
241
  /** @oneof */
@@ -282,7 +320,10 @@ export interface FieldCapabilities {
282
320
  * Default: `false`
283
321
  */
284
322
  sortable?: boolean;
285
- /** Query operators that can be used for this field. */
323
+ /**
324
+ * Query operators that can be used for this field.
325
+ * @maxSize 100
326
+ */
286
327
  queryOperators?: QueryOperator[];
287
328
  }
288
329
  export declare enum QueryOperator {
@@ -301,9 +342,15 @@ export declare enum QueryOperator {
301
342
  URLIZED = "URLIZED"
302
343
  }
303
344
  export interface ObjectField {
304
- /** Field ID. */
345
+ /**
346
+ * Field ID.
347
+ * @maxLength 1000
348
+ */
305
349
  key?: string;
306
- /** Display name for the field. */
350
+ /**
351
+ * Display name for the field.
352
+ * @maxLength 1000
353
+ */
307
354
  displayName?: string | null;
308
355
  /** Field type. */
309
356
  type?: Type;
@@ -316,10 +363,12 @@ export interface ObjectField {
316
363
  capabilities?: FieldCapabilities;
317
364
  }
318
365
  export interface FieldsPattern {
366
+ /** @maxLength 1000 */
319
367
  pattern?: string;
320
368
  lowercase?: boolean;
321
369
  }
322
370
  export interface UrlizedOnlyPattern {
371
+ /** @maxLength 1000 */
323
372
  pattern?: string;
324
373
  }
325
374
  export interface Calculator extends CalculatorPatternOneOf {
@@ -336,19 +385,34 @@ export interface CalculatorPatternOneOf {
336
385
  urlizedOnlyPattern?: UrlizedOnlyPattern;
337
386
  }
338
387
  export interface Reference {
339
- /** Referenced collection ID. */
388
+ /**
389
+ * Referenced collection ID.
390
+ * @maxLength 256
391
+ */
340
392
  referencedCollectionId?: string;
341
393
  }
342
394
  export interface MultiReference {
343
- /** Referenced collection ID. */
395
+ /**
396
+ * Referenced collection ID.
397
+ * @maxLength 256
398
+ */
344
399
  referencedCollectionId?: string;
345
- /** Referencing field ID. */
400
+ /**
401
+ * Referencing field ID.
402
+ * @maxLength 1000
403
+ */
346
404
  referencingFieldKey?: string;
347
- /** Display name in the CMS for the referenced data. */
405
+ /**
406
+ * Display name in the CMS for the referenced data.
407
+ * @maxLength 1000
408
+ */
348
409
  referencingDisplayName?: string;
349
410
  }
350
411
  export interface _Object {
351
- /** Fields within the object. */
412
+ /**
413
+ * Fields within the object.
414
+ * @maxSize 1000
415
+ */
352
416
  fields?: ObjectField[];
353
417
  }
354
418
  export interface _Array {
@@ -359,7 +423,10 @@ export interface _Array {
359
423
  }
360
424
  export interface PageLink {
361
425
  calculator?: Calculator;
362
- /** Defines reference to router pattern in the site document. */
426
+ /**
427
+ * Defines reference to router pattern in the site document.
428
+ * @maxLength 1000
429
+ */
363
430
  linkedRouterPage?: string | null;
364
431
  }
365
432
  export interface NumberRange {
@@ -504,7 +571,10 @@ export declare enum Format {
504
571
  }
505
572
  /** if CMS-defined sort is enabled and should be used in site */
506
573
  export interface SiteSort {
507
- /** Field and order for the site sort. */
574
+ /**
575
+ * Field and order for the site sort.
576
+ * @maxSize 100
577
+ */
508
578
  sort?: Sort[];
509
579
  }
510
580
  export declare enum PluginType {
@@ -532,7 +602,10 @@ export interface PublishPluginOptions {
532
602
  defaultStatus?: Status;
533
603
  }
534
604
  export interface SingleItemPluginOptions {
535
- /** ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this. */
605
+ /**
606
+ * ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this.
607
+ * @maxLength 16000
608
+ */
536
609
  singleItemId?: string;
537
610
  }
538
611
  export interface UrlizedPluginOptions {
@@ -540,7 +613,11 @@ export interface UrlizedPluginOptions {
540
613
  format?: Format;
541
614
  }
542
615
  export interface MultilingualOptions {
543
- /** IDs of fields to allow translation. */
616
+ /**
617
+ * IDs of fields to allow translation.
618
+ * @maxSize 1000
619
+ * @maxLength 1000
620
+ */
544
621
  translatableFieldKeys?: string[];
545
622
  }
546
623
  export interface PageLinkPluginOptions {
@@ -597,23 +674,47 @@ export interface AllowedDataPermissions {
597
674
  itemRemove?: boolean;
598
675
  }
599
676
  export interface DataCollectionClonedEvent {
600
- /** Instance ID of the collection from which the data is cloned. */
677
+ /**
678
+ * Instance ID of the collection from which the data is cloned.
679
+ * @format GUID
680
+ */
601
681
  originInstanceId?: string;
602
- /** ID of the collection from which the data is cloned. */
682
+ /**
683
+ * ID of the collection from which the data is cloned.
684
+ * @maxLength 256
685
+ */
603
686
  originId?: string;
604
687
  }
605
688
  export interface DataCollectionChangedEvent {
606
- /** list of new fields */
689
+ /**
690
+ * list of new fields
691
+ * @maxSize 1000
692
+ */
607
693
  fieldsAdded?: Field[];
608
- /** list of changed fields */
694
+ /**
695
+ * list of changed fields
696
+ * @maxSize 1000
697
+ */
609
698
  fieldsUpdated?: FieldUpdate[];
610
- /** list of removed fields */
699
+ /**
700
+ * list of removed fields
701
+ * @maxSize 1000
702
+ */
611
703
  fieldsRemoved?: Field[];
612
- /** list of new plugins */
704
+ /**
705
+ * list of new plugins
706
+ * @maxSize 100
707
+ */
613
708
  pluginsAdded?: Plugin[];
614
- /** list of changed plugins */
709
+ /**
710
+ * list of changed plugins
711
+ * @maxSize 100
712
+ */
615
713
  pluginsUpdated?: PluginUpdate[];
616
- /** list of removed plugins */
714
+ /**
715
+ * list of removed plugins
716
+ * @maxSize 100
717
+ */
617
718
  pluginsRemoved?: Plugin[];
618
719
  }
619
720
  export interface FieldUpdate {
@@ -629,7 +730,11 @@ export interface PluginUpdate {
629
730
  current?: Plugin;
630
731
  }
631
732
  export interface DataCollectionEvictedEvent {
632
- /** ID of the collection that was permanently deleted. */
733
+ /**
734
+ * ID of the collection that was permanently deleted.
735
+ * @minLength 1
736
+ * @maxLength 1000
737
+ */
633
738
  _id?: string;
634
739
  }
635
740
  export interface CreateDataCollectionRequest {
@@ -641,7 +746,10 @@ export interface CreateDataCollectionResponse {
641
746
  collection?: DataCollection;
642
747
  }
643
748
  export interface GetDataCollectionRequest {
644
- /** ID of the collection to retrieve. */
749
+ /**
750
+ * ID of the collection to retrieve.
751
+ * @maxLength 256
752
+ */
645
753
  dataCollectionId: string;
646
754
  /**
647
755
  * Whether to retrieve data from the primary database instance.
@@ -659,6 +767,8 @@ export interface GetDataCollectionRequest {
659
767
  /**
660
768
  * List of specific field names to return, if empty all fields are returned.
661
769
  * Affects all returned collections
770
+ * @maxSize 100
771
+ * @maxLength 1000
662
772
  */
663
773
  fields?: string[];
664
774
  }
@@ -701,11 +811,16 @@ export interface ListDataCollectionsRequest {
701
811
  /**
702
812
  * List of specific field names to return, if empty all fields are returned.
703
813
  * Affects all returned collections
814
+ * @maxSize 100
815
+ * @maxLength 128
704
816
  */
705
817
  fields?: string[];
706
818
  }
707
819
  export interface Sorting {
708
- /** Name of the field to sort by. */
820
+ /**
821
+ * Name of the field to sort by.
822
+ * @maxLength 1000
823
+ */
709
824
  fieldName?: string;
710
825
  /** Sort order. */
711
826
  order?: SortOrder;
@@ -737,7 +852,12 @@ export interface PagingMetadataV2 {
737
852
  tooManyToCount?: boolean | null;
738
853
  }
739
854
  export interface BulkGetDataCollectionsRequest {
740
- /** IDs of the collections to retrieve. */
855
+ /**
856
+ * IDs of the collections to retrieve.
857
+ * @minSize 1
858
+ * @maxSize 100
859
+ * @maxLength 256
860
+ */
741
861
  dataCollectionIds?: string[];
742
862
  /**
743
863
  * Whether to include deleted collections.
@@ -769,6 +889,8 @@ export interface BulkGetDataCollectionsRequest {
769
889
  /**
770
890
  * List of specific field names to return, if empty all fields are returned.
771
891
  * Affects all returned collections
892
+ * @maxSize 100
893
+ * @maxLength 1000
772
894
  */
773
895
  fields?: string[];
774
896
  }
@@ -790,13 +912,19 @@ export interface UpdateDataCollectionResponse {
790
912
  collection?: DataCollection;
791
913
  }
792
914
  export interface DeleteDataCollectionRequest {
793
- /** ID of the collection to delete. */
915
+ /**
916
+ * ID of the collection to delete.
917
+ * @maxLength 256
918
+ */
794
919
  dataCollectionId: string;
795
920
  }
796
921
  export interface DeleteDataCollectionResponse {
797
922
  }
798
923
  export interface RestoreDataCollectionRequest {
799
- /** Data Collection ID to restore */
924
+ /**
925
+ * Data Collection ID to restore
926
+ * @maxLength 256
927
+ */
800
928
  dataCollectionId?: string;
801
929
  }
802
930
  export interface RestoreDataCollectionResponse {
@@ -804,7 +932,10 @@ export interface RestoreDataCollectionResponse {
804
932
  dataCollection?: DataCollection;
805
933
  }
806
934
  export interface CreateDataCollectionFieldRequest {
807
- /** ID of data collection to update */
935
+ /**
936
+ * ID of data collection to update
937
+ * @maxLength 256
938
+ */
808
939
  dataCollectionId: string;
809
940
  /** field to create */
810
941
  field: Field;
@@ -814,7 +945,10 @@ export interface CreateDataCollectionFieldResponse {
814
945
  dataCollection?: DataCollection;
815
946
  }
816
947
  export interface UpdateDataCollectionFieldRequest {
817
- /** ID of data collection to update */
948
+ /**
949
+ * ID of data collection to update
950
+ * @maxLength 256
951
+ */
818
952
  dataCollectionId: string;
819
953
  /** Field to update */
820
954
  field: Field;
@@ -824,9 +958,15 @@ export interface UpdateDataCollectionFieldResponse {
824
958
  dataCollection?: DataCollection;
825
959
  }
826
960
  export interface DeleteDataCollectionFieldRequest {
827
- /** ID of data collection to update */
961
+ /**
962
+ * ID of data collection to update
963
+ * @maxLength 256
964
+ */
828
965
  dataCollectionId: string;
829
- /** Field ID to delete */
966
+ /**
967
+ * Field ID to delete
968
+ * @maxLength 1000
969
+ */
830
970
  fieldKey: string;
831
971
  }
832
972
  export interface DeleteDataCollectionFieldResponse {
@@ -834,7 +974,10 @@ export interface DeleteDataCollectionFieldResponse {
834
974
  dataCollection?: DataCollection;
835
975
  }
836
976
  export interface UpdateDataPermissionsRequest {
837
- /** ID of data collections to update */
977
+ /**
978
+ * ID of data collections to update
979
+ * @maxLength 256
980
+ */
838
981
  dataCollectionId?: string;
839
982
  /** Data permissions to set */
840
983
  dataPermissions?: DataPermissions;
@@ -844,7 +987,12 @@ export interface UpdateDataPermissionsResponse {
844
987
  dataCollection?: DataCollection;
845
988
  }
846
989
  export interface BulkGetDataCollectionsPageBySnapshotsRequest {
847
- /** Ids of schema snapshot */
990
+ /**
991
+ * Ids of schema snapshot
992
+ * @format GUID
993
+ * @minSize 1
994
+ * @maxSize 1000
995
+ */
848
996
  snapshotIds?: string[];
849
997
  /** Pagination information. */
850
998
  paging?: Paging;
@@ -856,21 +1004,33 @@ export interface BulkGetDataCollectionsPageBySnapshotsResponse {
856
1004
  pagingMetadata?: PagingMetadataV2;
857
1005
  }
858
1006
  export interface SnapshotCollection {
859
- /** snapshot to which collection belongs */
1007
+ /**
1008
+ * snapshot to which collection belongs
1009
+ * @format GUID
1010
+ */
860
1011
  snapshotId?: string;
861
1012
  /** snapshot collection */
862
1013
  collection?: DataCollection;
863
- /** snapshot of collection indexes */
1014
+ /**
1015
+ * snapshot of collection indexes
1016
+ * @maxSize 100
1017
+ */
864
1018
  indexes?: Index[];
865
1019
  }
866
1020
  /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
867
1021
  export interface Index {
868
- /** Name of the index. */
1022
+ /**
1023
+ * Name of the index.
1024
+ * @minLength 1
1025
+ * @maxLength 128
1026
+ */
869
1027
  name?: string;
870
1028
  /**
871
1029
  * Fields for which the index is defined.
872
1030
  *
873
1031
  * Max: 3 fields (for a unique index: 1 field)
1032
+ * @minSize 1
1033
+ * @maxSize 3
874
1034
  */
875
1035
  fields?: IndexField[];
876
1036
  /**
@@ -906,7 +1066,11 @@ export declare enum Order {
906
1066
  DESC = "DESC"
907
1067
  }
908
1068
  export interface IndexField {
909
- /** Path of the field to index. For example: `title` or `options.price`. */
1069
+ /**
1070
+ * Path of the field to index. For example: `title` or `options.price`.
1071
+ * @minLength 1
1072
+ * @maxLength 128
1073
+ */
910
1074
  path?: string;
911
1075
  /**
912
1076
  * Sort order for the index. Base on how the data is regularly queried.
@@ -937,45 +1101,72 @@ export interface Failure {
937
1101
  * - `WDE0112`: Unknown error while building collection index.
938
1102
  * - `WDE0113`: Duplicate key error while building collection index.
939
1103
  * - `WDE0114`: Document too large while building collection index.
1104
+ * @maxLength 7
940
1105
  */
941
1106
  code?: string;
942
- /** Description of the failure. */
1107
+ /**
1108
+ * Description of the failure.
1109
+ * @maxLength 1024
1110
+ */
943
1111
  description?: string;
944
1112
  /**
945
1113
  * ID of the data item that caused the failure.
946
1114
  * For example, if `unique` is `true`, the ID of an item containing a duplicate value.
1115
+ * @maxLength 16000
947
1116
  */
948
1117
  itemId?: string | null;
949
1118
  }
950
1119
  export interface CreateDataCollectionsSnapshotRequest {
951
1120
  }
952
1121
  export interface CreateDataCollectionsSnapshotResponse {
953
- /** created snapshot ID */
1122
+ /**
1123
+ * created snapshot ID
1124
+ * @format GUID
1125
+ */
954
1126
  snapshotId?: string;
955
1127
  /** data collections in snapshot */
956
1128
  snapshotCollections?: DataCollection[];
957
1129
  }
958
1130
  export interface RestoreDataCollectionsFromSnapshotRequest {
959
- /** snapshot ID to restore */
1131
+ /**
1132
+ * snapshot ID to restore
1133
+ * @format GUID
1134
+ */
960
1135
  snapshotId?: string;
961
1136
  /**
962
1137
  * collection IDs to restore, if empty – all collections would be restored
1138
+ * @maxSize 1000
1139
+ * @maxLength 256
963
1140
  * @deprecated
964
1141
  * @replacedBy restoration_collections
965
1142
  * @targetRemovalDate 2025-12-31
966
1143
  */
967
1144
  dataCollectionIds?: string[];
968
- /** collection to restore, if empty – all collections would be restored */
1145
+ /**
1146
+ * collection to restore, if empty – all collections would be restored
1147
+ * @maxSize 1000
1148
+ */
969
1149
  restorationCollections?: RestorationCollection[];
970
1150
  }
971
1151
  export interface Destination {
972
- /** Collection id. */
1152
+ /**
1153
+ * Collection id.
1154
+ * @minLength 1
1155
+ * @maxLength 1000
1156
+ */
973
1157
  dataCollectionId?: string;
974
- /** Display name. When not specified value is taken from the snapshot. */
1158
+ /**
1159
+ * Display name. When not specified value is taken from the snapshot.
1160
+ * @maxLength 1000
1161
+ */
975
1162
  displayName?: string | null;
976
1163
  }
977
1164
  export interface RestorationCollection {
978
- /** Collection ID to restore */
1165
+ /**
1166
+ * Collection ID to restore
1167
+ * @minLength 1
1168
+ * @maxLength 1000
1169
+ */
979
1170
  dataCollectionId?: string;
980
1171
  /**
981
1172
  * Destination where to restore the collection.
@@ -988,17 +1179,24 @@ export interface RestoreDataCollectionsFromSnapshotResponse {
988
1179
  restoredCollections?: DataCollection[];
989
1180
  }
990
1181
  export interface DeleteDataCollectionsSnapshotRequest {
991
- /** snapshot ID to delete */
1182
+ /**
1183
+ * snapshot ID to delete
1184
+ * @format GUID
1185
+ */
992
1186
  snapshotId?: string;
993
1187
  }
994
1188
  export interface DeleteDataCollectionsSnapshotResponse {
995
1189
  }
996
1190
  export interface CreateMigratedCollectionsSnapshotRequest {
1191
+ /** @format GUID */
997
1192
  existingSnapshotId?: string;
1193
+ /** @maxLength 255 */
998
1194
  newNamespace?: string;
1195
+ /** @maxLength 255 */
999
1196
  existingNamespace?: string;
1000
1197
  }
1001
1198
  export interface CreateMigratedCollectionsSnapshotResponse {
1199
+ /** @format GUID */
1002
1200
  snapshotId?: string;
1003
1201
  }
1004
1202
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -1072,9 +1270,15 @@ export interface ActionEvent {
1072
1270
  body?: string;
1073
1271
  }
1074
1272
  export interface MessageEnvelope {
1075
- /** App instance ID. */
1273
+ /**
1274
+ * App instance ID.
1275
+ * @format GUID
1276
+ */
1076
1277
  instanceId?: string | null;
1077
- /** Event type. */
1278
+ /**
1279
+ * Event type.
1280
+ * @maxLength 150
1281
+ */
1078
1282
  eventType?: string;
1079
1283
  /** The identification type and identity data. */
1080
1284
  identity?: IdentificationData;
@@ -1082,26 +1286,50 @@ export interface MessageEnvelope {
1082
1286
  data?: string;
1083
1287
  }
1084
1288
  export interface IdentificationData extends IdentificationDataIdOneOf {
1085
- /** ID of a site visitor that has not logged in to the site. */
1289
+ /**
1290
+ * ID of a site visitor that has not logged in to the site.
1291
+ * @format GUID
1292
+ */
1086
1293
  anonymousVisitorId?: string;
1087
- /** ID of a site visitor that has logged in to the site. */
1294
+ /**
1295
+ * ID of a site visitor that has logged in to the site.
1296
+ * @format GUID
1297
+ */
1088
1298
  memberId?: string;
1089
- /** ID of a Wix user (site owner, contributor, etc.). */
1299
+ /**
1300
+ * ID of a Wix user (site owner, contributor, etc.).
1301
+ * @format GUID
1302
+ */
1090
1303
  wixUserId?: string;
1091
- /** ID of an app. */
1304
+ /**
1305
+ * ID of an app.
1306
+ * @format GUID
1307
+ */
1092
1308
  appId?: string;
1093
1309
  /** @readonly */
1094
1310
  identityType?: WebhookIdentityType;
1095
1311
  }
1096
1312
  /** @oneof */
1097
1313
  export interface IdentificationDataIdOneOf {
1098
- /** ID of a site visitor that has not logged in to the site. */
1314
+ /**
1315
+ * ID of a site visitor that has not logged in to the site.
1316
+ * @format GUID
1317
+ */
1099
1318
  anonymousVisitorId?: string;
1100
- /** ID of a site visitor that has logged in to the site. */
1319
+ /**
1320
+ * ID of a site visitor that has logged in to the site.
1321
+ * @format GUID
1322
+ */
1101
1323
  memberId?: string;
1102
- /** ID of a Wix user (site owner, contributor, etc.). */
1324
+ /**
1325
+ * ID of a Wix user (site owner, contributor, etc.).
1326
+ * @format GUID
1327
+ */
1103
1328
  wixUserId?: string;
1104
- /** ID of an app. */
1329
+ /**
1330
+ * ID of an app.
1331
+ * @format GUID
1332
+ */
1105
1333
  appId?: string;
1106
1334
  }
1107
1335
  export declare enum WebhookIdentityType {
@@ -1329,6 +1557,8 @@ export interface GetDataCollectionOptions {
1329
1557
  /**
1330
1558
  * List of specific field names to return, if empty all fields are returned.
1331
1559
  * Affects all returned collections
1560
+ * @maxSize 100
1561
+ * @maxLength 1000
1332
1562
  */
1333
1563
  fields?: string[];
1334
1564
  }
@@ -1367,6 +1597,8 @@ export interface ListDataCollectionsOptions {
1367
1597
  /**
1368
1598
  * List of specific field names to return, if empty all fields are returned.
1369
1599
  * Affects all returned collections
1600
+ * @maxSize 100
1601
+ * @maxLength 128
1370
1602
  */
1371
1603
  fields?: string[];
1372
1604
  }
@@ -1498,7 +1730,10 @@ export interface UpdateDataCollectionFieldOptions {
1498
1730
  */
1499
1731
  export declare function deleteDataCollectionField(dataCollectionId: string, options: DeleteDataCollectionFieldOptions): Promise<DeleteDataCollectionFieldResponse & DeleteDataCollectionFieldResponseNonNullableFields>;
1500
1732
  export interface DeleteDataCollectionFieldOptions {
1501
- /** Field ID to delete */
1733
+ /**
1734
+ * Field ID to delete
1735
+ * @maxLength 1000
1736
+ */
1502
1737
  fieldKey: string;
1503
1738
  }
1504
1739
  export {};