@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
  /**
@@ -77,7 +96,10 @@ export declare enum CollectionType {
77
96
  EXTERNAL = "EXTERNAL"
78
97
  }
79
98
  export interface Sort {
80
- /** Field to sort by. */
99
+ /**
100
+ * Field to sort by.
101
+ * @maxLength 1000
102
+ */
81
103
  fieldKey?: string;
82
104
  /**
83
105
  * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
@@ -95,9 +117,13 @@ export interface CollectionCapabilities {
95
117
  * Data operations the collection supports. The listed operations can be performed on data the collection contains.
96
118
  *
97
119
  * > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
120
+ * @maxSize 100
98
121
  */
99
122
  dataOperations?: DataOperation[];
100
- /** Collection operations supported. The listed operations can be performed on the collection itself. */
123
+ /**
124
+ * Collection operations supported. The listed operations can be performed on the collection itself.
125
+ * @maxSize 100
126
+ */
101
127
  collectionOperations?: CollectionOperation[];
102
128
  /** Maximum number of indexes for the collection. */
103
129
  indexLimits?: IndexLimits;
@@ -146,9 +172,15 @@ export interface Field extends FieldRangeValidationsOneOf {
146
172
  stringLengthRange?: StringLengthRange;
147
173
  /** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */
148
174
  arraySizeRange?: ArraySizeRange;
149
- /** Unique identifier for the field. For example, `firstName`. */
175
+ /**
176
+ * Unique identifier for the field. For example, `firstName`.
177
+ * @maxLength 1000
178
+ */
150
179
  key?: string;
151
- /** Field's display name when displayed in the CMS. For example, `First Name`. */
180
+ /**
181
+ * Field's display name when displayed in the CMS. For example, `First Name`.
182
+ * @maxLength 1000
183
+ */
152
184
  displayName?: string | null;
153
185
  /** Field's data type. */
154
186
  type?: Type;
@@ -166,7 +198,10 @@ export interface Field extends FieldRangeValidationsOneOf {
166
198
  capabilities?: FieldCapabilities;
167
199
  /** Whether the field is encrypted. */
168
200
  encrypted?: boolean;
169
- /** Field description. */
201
+ /**
202
+ * Field description.
203
+ * @maxLength 16000
204
+ */
170
205
  description?: string | null;
171
206
  /**
172
207
  * Whether the field is read-only. A read-only field can't be changed.
@@ -186,7 +221,10 @@ export interface Field extends FieldRangeValidationsOneOf {
186
221
  * Default: `false`
187
222
  */
188
223
  required?: boolean | null;
189
- /** Additional optional plugins for the field. */
224
+ /**
225
+ * Additional optional plugins for the field.
226
+ * @maxSize 100
227
+ */
190
228
  plugins?: FieldPlugin[];
191
229
  }
192
230
  /** @oneof */
@@ -271,7 +309,10 @@ export interface FieldCapabilities {
271
309
  * Default: `false`
272
310
  */
273
311
  sortable?: boolean;
274
- /** Query operators that can be used for this field. */
312
+ /**
313
+ * Query operators that can be used for this field.
314
+ * @maxSize 100
315
+ */
275
316
  queryOperators?: QueryOperator[];
276
317
  }
277
318
  export declare enum QueryOperator {
@@ -290,9 +331,15 @@ export declare enum QueryOperator {
290
331
  URLIZED = "URLIZED"
291
332
  }
292
333
  export interface ObjectField {
293
- /** Field ID. */
334
+ /**
335
+ * Field ID.
336
+ * @maxLength 1000
337
+ */
294
338
  key?: string;
295
- /** Display name for the field. */
339
+ /**
340
+ * Display name for the field.
341
+ * @maxLength 1000
342
+ */
296
343
  displayName?: string | null;
297
344
  /** Field type. */
298
345
  type?: Type;
@@ -305,10 +352,12 @@ export interface ObjectField {
305
352
  capabilities?: FieldCapabilities;
306
353
  }
307
354
  export interface FieldsPattern {
355
+ /** @maxLength 1000 */
308
356
  pattern?: string;
309
357
  lowercase?: boolean;
310
358
  }
311
359
  export interface UrlizedOnlyPattern {
360
+ /** @maxLength 1000 */
312
361
  pattern?: string;
313
362
  }
314
363
  export interface Calculator extends CalculatorPatternOneOf {
@@ -325,19 +374,34 @@ export interface CalculatorPatternOneOf {
325
374
  urlizedOnlyPattern?: UrlizedOnlyPattern;
326
375
  }
327
376
  export interface Reference {
328
- /** Referenced collection ID. */
377
+ /**
378
+ * Referenced collection ID.
379
+ * @maxLength 256
380
+ */
329
381
  referencedCollectionId?: string;
330
382
  }
331
383
  export interface MultiReference {
332
- /** Referenced collection ID. */
384
+ /**
385
+ * Referenced collection ID.
386
+ * @maxLength 256
387
+ */
333
388
  referencedCollectionId?: string;
334
- /** Referencing field ID. */
389
+ /**
390
+ * Referencing field ID.
391
+ * @maxLength 1000
392
+ */
335
393
  referencingFieldKey?: string;
336
- /** Display name in the CMS for the referenced data. */
394
+ /**
395
+ * Display name in the CMS for the referenced data.
396
+ * @maxLength 1000
397
+ */
337
398
  referencingDisplayName?: string;
338
399
  }
339
400
  export interface _Object {
340
- /** Fields within the object. */
401
+ /**
402
+ * Fields within the object.
403
+ * @maxSize 1000
404
+ */
341
405
  fields?: ObjectField[];
342
406
  }
343
407
  export interface _Array {
@@ -348,7 +412,10 @@ export interface _Array {
348
412
  }
349
413
  export interface PageLink {
350
414
  calculator?: Calculator;
351
- /** Defines reference to router pattern in the site document. */
415
+ /**
416
+ * Defines reference to router pattern in the site document.
417
+ * @maxLength 1000
418
+ */
352
419
  linkedRouterPage?: string | null;
353
420
  }
354
421
  export interface NumberRange {
@@ -493,7 +560,10 @@ export declare enum Format {
493
560
  }
494
561
  /** if CMS-defined sort is enabled and should be used in site */
495
562
  export interface SiteSort {
496
- /** Field and order for the site sort. */
563
+ /**
564
+ * Field and order for the site sort.
565
+ * @maxSize 100
566
+ */
497
567
  sort?: Sort[];
498
568
  }
499
569
  export declare enum PluginType {
@@ -521,7 +591,10 @@ export interface PublishPluginOptions {
521
591
  defaultStatus?: Status;
522
592
  }
523
593
  export interface SingleItemPluginOptions {
524
- /** ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this. */
594
+ /**
595
+ * ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this.
596
+ * @maxLength 16000
597
+ */
525
598
  singleItemId?: string;
526
599
  }
527
600
  export interface UrlizedPluginOptions {
@@ -529,7 +602,11 @@ export interface UrlizedPluginOptions {
529
602
  format?: Format;
530
603
  }
531
604
  export interface MultilingualOptions {
532
- /** IDs of fields to allow translation. */
605
+ /**
606
+ * IDs of fields to allow translation.
607
+ * @maxSize 1000
608
+ * @maxLength 1000
609
+ */
533
610
  translatableFieldKeys?: string[];
534
611
  }
535
612
  export interface PageLinkPluginOptions {
@@ -586,23 +663,47 @@ export interface AllowedDataPermissions {
586
663
  itemRemove?: boolean;
587
664
  }
588
665
  export interface DataCollectionClonedEvent {
589
- /** Instance ID of the collection from which the data is cloned. */
666
+ /**
667
+ * Instance ID of the collection from which the data is cloned.
668
+ * @format GUID
669
+ */
590
670
  originInstanceId?: string;
591
- /** ID of the collection from which the data is cloned. */
671
+ /**
672
+ * ID of the collection from which the data is cloned.
673
+ * @maxLength 256
674
+ */
592
675
  originId?: string;
593
676
  }
594
677
  export interface DataCollectionChangedEvent {
595
- /** list of new fields */
678
+ /**
679
+ * list of new fields
680
+ * @maxSize 1000
681
+ */
596
682
  fieldsAdded?: Field[];
597
- /** list of changed fields */
683
+ /**
684
+ * list of changed fields
685
+ * @maxSize 1000
686
+ */
598
687
  fieldsUpdated?: FieldUpdate[];
599
- /** list of removed fields */
688
+ /**
689
+ * list of removed fields
690
+ * @maxSize 1000
691
+ */
600
692
  fieldsRemoved?: Field[];
601
- /** list of new plugins */
693
+ /**
694
+ * list of new plugins
695
+ * @maxSize 100
696
+ */
602
697
  pluginsAdded?: Plugin[];
603
- /** list of changed plugins */
698
+ /**
699
+ * list of changed plugins
700
+ * @maxSize 100
701
+ */
604
702
  pluginsUpdated?: PluginUpdate[];
605
- /** list of removed plugins */
703
+ /**
704
+ * list of removed plugins
705
+ * @maxSize 100
706
+ */
606
707
  pluginsRemoved?: Plugin[];
607
708
  }
608
709
  export interface FieldUpdate {
@@ -618,7 +719,11 @@ export interface PluginUpdate {
618
719
  current?: Plugin;
619
720
  }
620
721
  export interface DataCollectionEvictedEvent {
621
- /** ID of the collection that was permanently deleted. */
722
+ /**
723
+ * ID of the collection that was permanently deleted.
724
+ * @minLength 1
725
+ * @maxLength 1000
726
+ */
622
727
  id?: string;
623
728
  }
624
729
  export interface CreateDataCollectionRequest {
@@ -630,7 +735,10 @@ export interface CreateDataCollectionResponse {
630
735
  collection?: DataCollection;
631
736
  }
632
737
  export interface GetDataCollectionRequest {
633
- /** ID of the collection to retrieve. */
738
+ /**
739
+ * ID of the collection to retrieve.
740
+ * @maxLength 256
741
+ */
634
742
  dataCollectionId: string;
635
743
  /**
636
744
  * Whether to retrieve data from the primary database instance.
@@ -643,6 +751,8 @@ export interface GetDataCollectionRequest {
643
751
  /**
644
752
  * List of specific field names to return, if empty all fields are returned.
645
753
  * Affects all returned collections
754
+ * @maxSize 100
755
+ * @maxLength 1000
646
756
  */
647
757
  fields?: string[];
648
758
  }
@@ -680,11 +790,16 @@ export interface ListDataCollectionsRequest {
680
790
  /**
681
791
  * List of specific field names to return, if empty all fields are returned.
682
792
  * Affects all returned collections
793
+ * @maxSize 100
794
+ * @maxLength 128
683
795
  */
684
796
  fields?: string[];
685
797
  }
686
798
  export interface Sorting {
687
- /** Name of the field to sort by. */
799
+ /**
800
+ * Name of the field to sort by.
801
+ * @maxLength 1000
802
+ */
688
803
  fieldName?: string;
689
804
  /** Sort order. */
690
805
  order?: SortOrder;
@@ -716,7 +831,12 @@ export interface PagingMetadataV2 {
716
831
  tooManyToCount?: boolean | null;
717
832
  }
718
833
  export interface BulkGetDataCollectionsRequest {
719
- /** IDs of the collections to retrieve. */
834
+ /**
835
+ * IDs of the collections to retrieve.
836
+ * @minSize 1
837
+ * @maxSize 100
838
+ * @maxLength 256
839
+ */
720
840
  dataCollectionIds?: string[];
721
841
  /**
722
842
  * Whether to include deleted collections.
@@ -743,6 +863,8 @@ export interface BulkGetDataCollectionsRequest {
743
863
  /**
744
864
  * List of specific field names to return, if empty all fields are returned.
745
865
  * Affects all returned collections
866
+ * @maxSize 100
867
+ * @maxLength 1000
746
868
  */
747
869
  fields?: string[];
748
870
  }
@@ -764,13 +886,19 @@ export interface UpdateDataCollectionResponse {
764
886
  collection?: DataCollection;
765
887
  }
766
888
  export interface DeleteDataCollectionRequest {
767
- /** ID of the collection to delete. */
889
+ /**
890
+ * ID of the collection to delete.
891
+ * @maxLength 256
892
+ */
768
893
  dataCollectionId: string;
769
894
  }
770
895
  export interface DeleteDataCollectionResponse {
771
896
  }
772
897
  export interface RestoreDataCollectionRequest {
773
- /** Data Collection ID to restore */
898
+ /**
899
+ * Data Collection ID to restore
900
+ * @maxLength 256
901
+ */
774
902
  dataCollectionId?: string;
775
903
  }
776
904
  export interface RestoreDataCollectionResponse {
@@ -778,7 +906,10 @@ export interface RestoreDataCollectionResponse {
778
906
  dataCollection?: DataCollection;
779
907
  }
780
908
  export interface CreateDataCollectionFieldRequest {
781
- /** ID of data collection to update */
909
+ /**
910
+ * ID of data collection to update
911
+ * @maxLength 256
912
+ */
782
913
  dataCollectionId: string;
783
914
  /** field to create */
784
915
  field: Field;
@@ -788,7 +919,10 @@ export interface CreateDataCollectionFieldResponse {
788
919
  dataCollection?: DataCollection;
789
920
  }
790
921
  export interface UpdateDataCollectionFieldRequest {
791
- /** ID of data collection to update */
922
+ /**
923
+ * ID of data collection to update
924
+ * @maxLength 256
925
+ */
792
926
  dataCollectionId: string;
793
927
  /** Field to update */
794
928
  field: Field;
@@ -798,9 +932,15 @@ export interface UpdateDataCollectionFieldResponse {
798
932
  dataCollection?: DataCollection;
799
933
  }
800
934
  export interface DeleteDataCollectionFieldRequest {
801
- /** ID of data collection to update */
935
+ /**
936
+ * ID of data collection to update
937
+ * @maxLength 256
938
+ */
802
939
  dataCollectionId: string;
803
- /** Field ID to delete */
940
+ /**
941
+ * Field ID to delete
942
+ * @maxLength 1000
943
+ */
804
944
  fieldKey: string;
805
945
  }
806
946
  export interface DeleteDataCollectionFieldResponse {
@@ -808,7 +948,10 @@ export interface DeleteDataCollectionFieldResponse {
808
948
  dataCollection?: DataCollection;
809
949
  }
810
950
  export interface UpdateDataPermissionsRequest {
811
- /** ID of data collections to update */
951
+ /**
952
+ * ID of data collections to update
953
+ * @maxLength 256
954
+ */
812
955
  dataCollectionId?: string;
813
956
  /** Data permissions to set */
814
957
  dataPermissions?: DataPermissions;
@@ -818,7 +961,12 @@ export interface UpdateDataPermissionsResponse {
818
961
  dataCollection?: DataCollection;
819
962
  }
820
963
  export interface BulkGetDataCollectionsPageBySnapshotsRequest {
821
- /** Ids of schema snapshot */
964
+ /**
965
+ * Ids of schema snapshot
966
+ * @format GUID
967
+ * @minSize 1
968
+ * @maxSize 1000
969
+ */
822
970
  snapshotIds?: string[];
823
971
  /** Pagination information. */
824
972
  paging?: Paging;
@@ -830,21 +978,33 @@ export interface BulkGetDataCollectionsPageBySnapshotsResponse {
830
978
  pagingMetadata?: PagingMetadataV2;
831
979
  }
832
980
  export interface SnapshotCollection {
833
- /** snapshot to which collection belongs */
981
+ /**
982
+ * snapshot to which collection belongs
983
+ * @format GUID
984
+ */
834
985
  snapshotId?: string;
835
986
  /** snapshot collection */
836
987
  collection?: DataCollection;
837
- /** snapshot of collection indexes */
988
+ /**
989
+ * snapshot of collection indexes
990
+ * @maxSize 100
991
+ */
838
992
  indexes?: Index[];
839
993
  }
840
994
  /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
841
995
  export interface Index {
842
- /** Name of the index. */
996
+ /**
997
+ * Name of the index.
998
+ * @minLength 1
999
+ * @maxLength 128
1000
+ */
843
1001
  name?: string;
844
1002
  /**
845
1003
  * Fields for which the index is defined.
846
1004
  *
847
1005
  * Max: 3 fields (for a unique index: 1 field)
1006
+ * @minSize 1
1007
+ * @maxSize 3
848
1008
  */
849
1009
  fields?: IndexField[];
850
1010
  /**
@@ -880,7 +1040,11 @@ export declare enum Order {
880
1040
  DESC = "DESC"
881
1041
  }
882
1042
  export interface IndexField {
883
- /** Path of the field to index. For example: `title` or `options.price`. */
1043
+ /**
1044
+ * Path of the field to index. For example: `title` or `options.price`.
1045
+ * @minLength 1
1046
+ * @maxLength 128
1047
+ */
884
1048
  path?: string;
885
1049
  /**
886
1050
  * Sort order for the index. Base on how the data is regularly queried.
@@ -911,45 +1075,72 @@ export interface Failure {
911
1075
  * - `WDE0112`: Unknown error while building collection index.
912
1076
  * - `WDE0113`: Duplicate key error while building collection index.
913
1077
  * - `WDE0114`: Document too large while building collection index.
1078
+ * @maxLength 7
914
1079
  */
915
1080
  code?: string;
916
- /** Description of the failure. */
1081
+ /**
1082
+ * Description of the failure.
1083
+ * @maxLength 1024
1084
+ */
917
1085
  description?: string;
918
1086
  /**
919
1087
  * ID of the data item that caused the failure.
920
1088
  * For example, if `unique` is `true`, the ID of an item containing a duplicate value.
1089
+ * @maxLength 16000
921
1090
  */
922
1091
  itemId?: string | null;
923
1092
  }
924
1093
  export interface CreateDataCollectionsSnapshotRequest {
925
1094
  }
926
1095
  export interface CreateDataCollectionsSnapshotResponse {
927
- /** created snapshot ID */
1096
+ /**
1097
+ * created snapshot ID
1098
+ * @format GUID
1099
+ */
928
1100
  snapshotId?: string;
929
1101
  /** data collections in snapshot */
930
1102
  snapshotCollections?: DataCollection[];
931
1103
  }
932
1104
  export interface RestoreDataCollectionsFromSnapshotRequest {
933
- /** snapshot ID to restore */
1105
+ /**
1106
+ * snapshot ID to restore
1107
+ * @format GUID
1108
+ */
934
1109
  snapshotId?: string;
935
1110
  /**
936
1111
  * collection IDs to restore, if empty – all collections would be restored
1112
+ * @maxSize 1000
1113
+ * @maxLength 256
937
1114
  * @deprecated
938
1115
  * @replacedBy restoration_collections
939
1116
  * @targetRemovalDate 2025-12-31
940
1117
  */
941
1118
  dataCollectionIds?: string[];
942
- /** collection to restore, if empty – all collections would be restored */
1119
+ /**
1120
+ * collection to restore, if empty – all collections would be restored
1121
+ * @maxSize 1000
1122
+ */
943
1123
  restorationCollections?: RestorationCollection[];
944
1124
  }
945
1125
  export interface Destination {
946
- /** Collection id. */
1126
+ /**
1127
+ * Collection id.
1128
+ * @minLength 1
1129
+ * @maxLength 1000
1130
+ */
947
1131
  dataCollectionId?: string;
948
- /** Display name. When not specified value is taken from the snapshot. */
1132
+ /**
1133
+ * Display name. When not specified value is taken from the snapshot.
1134
+ * @maxLength 1000
1135
+ */
949
1136
  displayName?: string | null;
950
1137
  }
951
1138
  export interface RestorationCollection {
952
- /** Collection ID to restore */
1139
+ /**
1140
+ * Collection ID to restore
1141
+ * @minLength 1
1142
+ * @maxLength 1000
1143
+ */
953
1144
  dataCollectionId?: string;
954
1145
  /**
955
1146
  * Destination where to restore the collection.
@@ -962,17 +1153,24 @@ export interface RestoreDataCollectionsFromSnapshotResponse {
962
1153
  restoredCollections?: DataCollection[];
963
1154
  }
964
1155
  export interface DeleteDataCollectionsSnapshotRequest {
965
- /** snapshot ID to delete */
1156
+ /**
1157
+ * snapshot ID to delete
1158
+ * @format GUID
1159
+ */
966
1160
  snapshotId?: string;
967
1161
  }
968
1162
  export interface DeleteDataCollectionsSnapshotResponse {
969
1163
  }
970
1164
  export interface CreateMigratedCollectionsSnapshotRequest {
1165
+ /** @format GUID */
971
1166
  existingSnapshotId?: string;
1167
+ /** @maxLength 255 */
972
1168
  newNamespace?: string;
1169
+ /** @maxLength 255 */
973
1170
  existingNamespace?: string;
974
1171
  }
975
1172
  export interface CreateMigratedCollectionsSnapshotResponse {
1173
+ /** @format GUID */
976
1174
  snapshotId?: string;
977
1175
  }
978
1176
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -1048,9 +1246,15 @@ export interface ActionEvent {
1048
1246
  bodyAsJson?: string;
1049
1247
  }
1050
1248
  export interface MessageEnvelope {
1051
- /** App instance ID. */
1249
+ /**
1250
+ * App instance ID.
1251
+ * @format GUID
1252
+ */
1052
1253
  instanceId?: string | null;
1053
- /** Event type. */
1254
+ /**
1255
+ * Event type.
1256
+ * @maxLength 150
1257
+ */
1054
1258
  eventType?: string;
1055
1259
  /** The identification type and identity data. */
1056
1260
  identity?: IdentificationData;
@@ -1058,26 +1262,50 @@ export interface MessageEnvelope {
1058
1262
  data?: string;
1059
1263
  }
1060
1264
  export interface IdentificationData extends IdentificationDataIdOneOf {
1061
- /** ID of a site visitor that has not logged in to the site. */
1265
+ /**
1266
+ * ID of a site visitor that has not logged in to the site.
1267
+ * @format GUID
1268
+ */
1062
1269
  anonymousVisitorId?: string;
1063
- /** ID of a site visitor that has logged in to the site. */
1270
+ /**
1271
+ * ID of a site visitor that has logged in to the site.
1272
+ * @format GUID
1273
+ */
1064
1274
  memberId?: string;
1065
- /** ID of a Wix user (site owner, contributor, etc.). */
1275
+ /**
1276
+ * ID of a Wix user (site owner, contributor, etc.).
1277
+ * @format GUID
1278
+ */
1066
1279
  wixUserId?: string;
1067
- /** ID of an app. */
1280
+ /**
1281
+ * ID of an app.
1282
+ * @format GUID
1283
+ */
1068
1284
  appId?: string;
1069
1285
  /** @readonly */
1070
1286
  identityType?: WebhookIdentityType;
1071
1287
  }
1072
1288
  /** @oneof */
1073
1289
  export interface IdentificationDataIdOneOf {
1074
- /** ID of a site visitor that has not logged in to the site. */
1290
+ /**
1291
+ * ID of a site visitor that has not logged in to the site.
1292
+ * @format GUID
1293
+ */
1075
1294
  anonymousVisitorId?: string;
1076
- /** ID of a site visitor that has logged in to the site. */
1295
+ /**
1296
+ * ID of a site visitor that has logged in to the site.
1297
+ * @format GUID
1298
+ */
1077
1299
  memberId?: string;
1078
- /** ID of a Wix user (site owner, contributor, etc.). */
1300
+ /**
1301
+ * ID of a Wix user (site owner, contributor, etc.).
1302
+ * @format GUID
1303
+ */
1079
1304
  wixUserId?: string;
1080
- /** ID of an app. */
1305
+ /**
1306
+ * ID of an app.
1307
+ * @format GUID
1308
+ */
1081
1309
  appId?: string;
1082
1310
  }
1083
1311
  export declare enum WebhookIdentityType {