@wix/auto_sdk_multilingual_locale-settings 1.0.4 → 1.0.5

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 (132) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +2 -0
  11. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +20 -0
  12. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +1 -0
  13. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +20 -0
  14. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +143 -0
  15. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +1 -0
  16. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +15 -0
  17. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +85 -0
  18. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +1 -0
  19. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +4 -0
  20. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +35 -0
  21. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +1 -0
  22. package/build/{internal/multilingual-settings-v2-locale-settings-locale-settings.universal-CEiXVHN_.d.ts → cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts} +61 -61
  23. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +148 -0
  24. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +1 -0
  25. package/build/{index.d.mts → cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts} +49 -51
  26. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +286 -0
  27. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +2 -0
  39. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +10 -0
  40. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +1 -0
  41. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +20 -0
  42. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +137 -0
  43. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +1 -0
  44. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +15 -0
  45. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +56 -0
  46. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +1 -0
  47. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +4 -0
  48. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +22 -0
  49. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +1 -0
  50. package/build/{internal/multilingual-settings-v2-locale-settings-locale-settings.universal-CEiXVHN_.d.mts → es/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts} +61 -61
  51. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +145 -0
  52. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +1 -0
  53. package/build/{index.d.ts → es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts} +49 -51
  54. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +257 -0
  55. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +10 -0
  66. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +20 -0
  67. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +1 -0
  68. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +20 -0
  69. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +143 -0
  70. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +1 -0
  71. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +15 -0
  72. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +85 -0
  73. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +1 -0
  74. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +48 -0
  75. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +35 -0
  76. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +1 -0
  77. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +772 -0
  78. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +148 -0
  79. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +1 -0
  80. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts +824 -0
  81. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +286 -0
  82. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +10 -0
  93. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +10 -0
  94. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +1 -0
  95. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +20 -0
  96. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +137 -0
  97. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +1 -0
  98. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +15 -0
  99. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +56 -0
  100. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +1 -0
  101. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +48 -0
  102. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +22 -0
  103. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +1 -0
  104. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +772 -0
  105. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +145 -0
  106. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +1 -0
  107. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts +824 -0
  108. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +257 -0
  109. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.js +0 -362
  112. package/build/index.js.map +0 -1
  113. package/build/index.mjs +0 -329
  114. package/build/index.mjs.map +0 -1
  115. package/build/internal/index.d.mts +0 -55
  116. package/build/internal/index.d.ts +0 -55
  117. package/build/internal/index.js +0 -362
  118. package/build/internal/index.js.map +0 -1
  119. package/build/internal/index.mjs +0 -329
  120. package/build/internal/index.mjs.map +0 -1
  121. package/build/internal/meta.d.mts +0 -218
  122. package/build/internal/meta.d.ts +0 -218
  123. package/build/internal/meta.js +0 -218
  124. package/build/internal/meta.js.map +0 -1
  125. package/build/internal/meta.mjs +0 -189
  126. package/build/internal/meta.mjs.map +0 -1
  127. package/build/meta.d.mts +0 -218
  128. package/build/meta.d.ts +0 -218
  129. package/build/meta.js +0 -218
  130. package/build/meta.js.map +0 -1
  131. package/build/meta.mjs +0 -189
  132. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,772 @@
1
+ export interface LocaleSettings {
2
+ /**
3
+ * Revision number, which increments by 1 each time the locale settings object is updated. To prevent conflicting changes, the existing revision must be passed when updating the locale settings object.
4
+ * @readonly
5
+ */
6
+ revision?: string | null;
7
+ /**
8
+ * Date and time the locale settings were created.
9
+ * @readonly
10
+ */
11
+ createdDate?: Date | null;
12
+ /**
13
+ * Date and time the locale settings were last updated.
14
+ * @readonly
15
+ */
16
+ updatedDate?: Date | null;
17
+ /**
18
+ * Indicates whether multilingual mode is enabled for the site.
19
+ *
20
+ * When set to `true`, you can create secondary locales.
21
+ * @readonly
22
+ */
23
+ multilingualModeEnabled?: boolean | null;
24
+ /**
25
+ * Indicates whether the live site will automatically open in a secondary locale if the
26
+ * site visitor's browser is set to that locale.
27
+ *
28
+ * Default: `false`
29
+ *
30
+ * <blockquote class="caution">
31
+ *
32
+ * __Caution:__
33
+ * Auto-switch can harm SEO by causing duplicate content issues and restricting search engine indexing of different language versions, which limits visibility in search results.
34
+ *
35
+ * </blockquote>
36
+ */
37
+ autoSwitch?: boolean | null;
38
+ /**
39
+ * Defines the default method for how secondary languages appear in the live site's URL.
40
+ * The URL structure can be overridden per locale, using the Locale API.
41
+ *
42
+ * Default: `"SUBDIRECTORY"`
43
+ */
44
+ urlStructure?: UrlStructure;
45
+ /**
46
+ * The site's primary locale.
47
+ * @readonly
48
+ */
49
+ primaryLocale?: Locale;
50
+ }
51
+ /** Enum representing the method for resolving locales in URLs. */
52
+ export declare enum UrlStructure {
53
+ /** Undefined resolution method. */
54
+ UNDEFINED_RESOLUTION_METHOD = "UNDEFINED_RESOLUTION_METHOD",
55
+ /** Subdirectory resolution method for the URL structure. For example, `"www.mysite.com/fr"`. */
56
+ SUBDIRECTORY = "SUBDIRECTORY",
57
+ /** Subdomain resolution method for the URL structure. For example, `"fr.mysite.com"`. */
58
+ SUBDOMAIN = "SUBDOMAIN",
59
+ /** Query parameter resolution method for the URL structure. For example, `"www.mysite.com?lang=fr"`. */
60
+ QUERY_PARAM = "QUERY_PARAM"
61
+ }
62
+ export interface Locale {
63
+ /**
64
+ * Locale ID. The ID is made up of the language and region codes. For example, `"en-US"`.
65
+ * @maxLength 20
66
+ * @format LANGUAGE_TAG
67
+ * @readonly
68
+ * @immutable
69
+ */
70
+ id?: string | null;
71
+ /**
72
+ * Revision number, which increments by 1 each time the locale is updated. To prevent conflicting changes, the existing revision must be passed when updating the locale object.
73
+ * @readonly
74
+ */
75
+ revision?: string | null;
76
+ /**
77
+ * Date and time the locale was created.
78
+ * @readonly
79
+ */
80
+ createdDate?: Date | null;
81
+ /**
82
+ * Date and time the locale was last updated.
83
+ * @readonly
84
+ */
85
+ updatedDate?: Date | null;
86
+ /**
87
+ * Language code. For example, `"en"` for English.
88
+ * @immutable
89
+ * @format LANGUAGE
90
+ */
91
+ languageCode?: string | null;
92
+ /**
93
+ * Region code. For example, `"UK"` for United Kingdom.
94
+ * @immutable
95
+ * @format COUNTRY
96
+ */
97
+ regionCode?: string | null;
98
+ /** Locale visibility status. */
99
+ visibility?: LocaleVisibility;
100
+ /**
101
+ * Indicates whether the locale is the site's primary locale.
102
+ * @readonly
103
+ */
104
+ primaryLocale?: boolean | null;
105
+ /**
106
+ * Indicates whether the locale is treated as the default for site visitors when no language is specified in the URL of the site.
107
+ * @readonly
108
+ */
109
+ visitorPrimaryLocale?: boolean | null;
110
+ /**
111
+ * Flag as a 3-letter language code based on Wix's supported locales. For example, `"USA"` for the United States flag.
112
+ * @maxLength 3
113
+ */
114
+ flag?: string | null;
115
+ /**
116
+ * Regional format for determining how to display data types such as dates, times, numbers, and currencies. For example, `"en-US"` for US English formatting.
117
+ * @format LANGUAGE_TAG
118
+ */
119
+ regionalFormat?: string | null;
120
+ /**
121
+ * Default URL structure for the locale's live site URL,
122
+ * based on the locale's settings, unless overridden.
123
+ * @readonly
124
+ */
125
+ effectiveUrlStructure?: UrlStructure;
126
+ /** Optional override for the locale's default URL structure. */
127
+ urlStructureOverride?: UrlStructureOverride;
128
+ /**
129
+ * Language code based on Wix's supported locales, used to specify the target language when
130
+ * translatable content is sent for machine translation. For example, `"ES"` for Spanish
131
+ * or `"ZH_TW"` for Traditional Chinese.
132
+ *
133
+ * Default: The locale's `languageCode` value.
134
+ * @format LANGUAGE_TAG
135
+ */
136
+ machineTranslationCode?: string | null;
137
+ /**
138
+ * The locale's `displayName`, unless overridden.
139
+ * @readonly
140
+ * @maxLength 30
141
+ */
142
+ effectiveDisplayName?: string | null;
143
+ /**
144
+ * Default display name for the locale, inferred from the locale ID and region code.
145
+ * @readonly
146
+ * @maxLength 30
147
+ */
148
+ displayName?: string | null;
149
+ /**
150
+ * Optional override for the locale's display name.
151
+ * @maxLength 30
152
+ */
153
+ overrideDisplayName?: string | null;
154
+ }
155
+ /** Enum representing the visibility status of a locale. */
156
+ export declare enum LocaleVisibility {
157
+ /** Undefined visibility status. */
158
+ UNDEFINED_LOCALE_STATUS = "UNDEFINED_LOCALE_STATUS",
159
+ /** Locale is hidden from site visitors. */
160
+ HIDDEN = "HIDDEN",
161
+ /** Locale is visible to site visitors. A site can only have up to 100 visible locales. */
162
+ VISIBLE = "VISIBLE"
163
+ }
164
+ /** Message for overriding the default resolution method. */
165
+ export interface UrlStructureOverride {
166
+ /** Resolution method that defines the URL structure to use instead of the default. */
167
+ urlStructure?: UrlStructure;
168
+ }
169
+ /** Payload for the event triggered when the multilingual_mode value changes */
170
+ export interface MultilingualModeUpdated {
171
+ /** The primary locale when `multilingualModeEnabled` is updated. */
172
+ primaryLocale?: Locale;
173
+ /** Indicates whether the multilingual mode is enabled on the site. */
174
+ multilingualModeEnabled?: boolean;
175
+ }
176
+ /** Request message for retrieving multilingual settings */
177
+ export interface GetLocaleSettingsRequest {
178
+ }
179
+ /** Response message containing the requested multilingual settings */
180
+ export interface GetLocaleSettingsResponse {
181
+ /** Retrieved locale settings. */
182
+ localeSettings?: LocaleSettings;
183
+ }
184
+ /** Request message for updating multilingual settings */
185
+ export interface UpdateLocaleSettingsRequest {
186
+ /** Locale settings to update. */
187
+ localeSettings: LocaleSettings;
188
+ }
189
+ /** Response message containing the updated multilingual settings */
190
+ export interface UpdateLocaleSettingsResponse {
191
+ /** Updated locale settings. */
192
+ localeSettings?: LocaleSettings;
193
+ }
194
+ /** Request message for setting the multilingual mode */
195
+ export interface SetMultilingualModeRequest {
196
+ /**
197
+ * Whether to enable multilingual mode for the site.
198
+ *
199
+ * Default: `false`
200
+ */
201
+ multilingualModeEnabled: boolean;
202
+ }
203
+ /** Response message containing the updated settings after changing the multilingual mode */
204
+ export interface SetMultilingualModeResponse {
205
+ /** Updated locale settings. */
206
+ localeSettings?: LocaleSettings;
207
+ }
208
+ export interface DomainEvent extends DomainEventBodyOneOf {
209
+ createdEvent?: EntityCreatedEvent;
210
+ updatedEvent?: EntityUpdatedEvent;
211
+ deletedEvent?: EntityDeletedEvent;
212
+ actionEvent?: ActionEvent;
213
+ /**
214
+ * Unique event ID.
215
+ * Allows clients to ignore duplicate webhooks.
216
+ */
217
+ id?: string;
218
+ /**
219
+ * Assumes actions are also always typed to an entity_type
220
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
221
+ */
222
+ entityFqdn?: string;
223
+ /**
224
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
225
+ * This is although the created/updated/deleted notion is duplication of the oneof types
226
+ * Example: created/updated/deleted/started/completed/email_opened
227
+ */
228
+ slug?: string;
229
+ /** ID of the entity associated with the event. */
230
+ entityId?: string;
231
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
232
+ eventTime?: Date | null;
233
+ /**
234
+ * Whether the event was triggered as a result of a privacy regulation application
235
+ * (for example, GDPR).
236
+ */
237
+ triggeredByAnonymizeRequest?: boolean | null;
238
+ /** If present, indicates the action that triggered the event. */
239
+ originatedFrom?: string | null;
240
+ /**
241
+ * A sequence number defining the order of updates to the underlying entity.
242
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
243
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
244
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
245
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
246
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
247
+ */
248
+ entityEventSequence?: string | null;
249
+ }
250
+ /** @oneof */
251
+ export interface DomainEventBodyOneOf {
252
+ createdEvent?: EntityCreatedEvent;
253
+ updatedEvent?: EntityUpdatedEvent;
254
+ deletedEvent?: EntityDeletedEvent;
255
+ actionEvent?: ActionEvent;
256
+ }
257
+ export interface EntityCreatedEvent {
258
+ entityAsJson?: string;
259
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
260
+ restoreInfo?: RestoreInfo;
261
+ }
262
+ export interface RestoreInfo {
263
+ deletedDate?: Date | null;
264
+ }
265
+ export interface EntityUpdatedEvent {
266
+ /**
267
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
268
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
269
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
270
+ */
271
+ currentEntityAsJson?: string;
272
+ }
273
+ export interface EntityDeletedEvent {
274
+ /** Entity that was deleted */
275
+ deletedEntityAsJson?: string | null;
276
+ }
277
+ export interface ActionEvent {
278
+ bodyAsJson?: string;
279
+ }
280
+ export interface Empty {
281
+ }
282
+ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
283
+ /** Emitted on a meta site creation. */
284
+ siteCreated?: SiteCreated;
285
+ /** Emitted on a meta site transfer completion. */
286
+ siteTransferred?: SiteTransferred;
287
+ /** Emitted on a meta site deletion. */
288
+ siteDeleted?: SiteDeleted;
289
+ /** Emitted on a meta site restoration. */
290
+ siteUndeleted?: SiteUndeleted;
291
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
292
+ sitePublished?: SitePublished;
293
+ /** Emitted on a meta site unpublish. */
294
+ siteUnpublished?: SiteUnpublished;
295
+ /** Emitted when meta site is marked as template. */
296
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
297
+ /** Emitted when meta site is marked as a WixSite. */
298
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
299
+ /** Emitted when an application is provisioned (installed). */
300
+ serviceProvisioned?: ServiceProvisioned;
301
+ /** Emitted when an application is removed (uninstalled). */
302
+ serviceRemoved?: ServiceRemoved;
303
+ /** Emitted when meta site name (URL slug) is changed. */
304
+ siteRenamedPayload?: SiteRenamed;
305
+ /** Emitted when meta site was permanently deleted. */
306
+ hardDeleted?: SiteHardDeleted;
307
+ /** Emitted on a namespace change. */
308
+ namespaceChanged?: NamespaceChanged;
309
+ /** Emitted when Studio is attached. */
310
+ studioAssigned?: StudioAssigned;
311
+ /** Emitted when Studio is detached. */
312
+ studioUnassigned?: StudioUnassigned;
313
+ /**
314
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
315
+ * the actual URL.
316
+ *
317
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
318
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
319
+ */
320
+ urlChanged?: SiteUrlChanged;
321
+ /** Site is marked as PurgedExternally */
322
+ sitePurgedExternally?: SitePurgedExternally;
323
+ /**
324
+ * A meta site id.
325
+ * @format GUID
326
+ */
327
+ metaSiteId?: string;
328
+ /** A meta site version. Monotonically increasing. */
329
+ version?: string;
330
+ /** A timestamp of the event. */
331
+ timestamp?: string;
332
+ /**
333
+ * TODO(meta-site): Change validation once validations are disabled for consumers
334
+ * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
335
+ * @maxSize 4000
336
+ */
337
+ assets?: Asset[];
338
+ }
339
+ /** @oneof */
340
+ export interface MetaSiteSpecialEventPayloadOneOf {
341
+ /** Emitted on a meta site creation. */
342
+ siteCreated?: SiteCreated;
343
+ /** Emitted on a meta site transfer completion. */
344
+ siteTransferred?: SiteTransferred;
345
+ /** Emitted on a meta site deletion. */
346
+ siteDeleted?: SiteDeleted;
347
+ /** Emitted on a meta site restoration. */
348
+ siteUndeleted?: SiteUndeleted;
349
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
350
+ sitePublished?: SitePublished;
351
+ /** Emitted on a meta site unpublish. */
352
+ siteUnpublished?: SiteUnpublished;
353
+ /** Emitted when meta site is marked as template. */
354
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
355
+ /** Emitted when meta site is marked as a WixSite. */
356
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
357
+ /** Emitted when an application is provisioned (installed). */
358
+ serviceProvisioned?: ServiceProvisioned;
359
+ /** Emitted when an application is removed (uninstalled). */
360
+ serviceRemoved?: ServiceRemoved;
361
+ /** Emitted when meta site name (URL slug) is changed. */
362
+ siteRenamedPayload?: SiteRenamed;
363
+ /** Emitted when meta site was permanently deleted. */
364
+ hardDeleted?: SiteHardDeleted;
365
+ /** Emitted on a namespace change. */
366
+ namespaceChanged?: NamespaceChanged;
367
+ /** Emitted when Studio is attached. */
368
+ studioAssigned?: StudioAssigned;
369
+ /** Emitted when Studio is detached. */
370
+ studioUnassigned?: StudioUnassigned;
371
+ /**
372
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
373
+ * the actual URL.
374
+ *
375
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
376
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
377
+ */
378
+ urlChanged?: SiteUrlChanged;
379
+ /** Site is marked as PurgedExternally */
380
+ sitePurgedExternally?: SitePurgedExternally;
381
+ }
382
+ export interface Asset {
383
+ /**
384
+ * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
385
+ * @maxLength 36
386
+ */
387
+ appDefId?: string;
388
+ /**
389
+ * An instance id. For legacy reasons may be UUID or a string.
390
+ * @maxLength 200
391
+ */
392
+ instanceId?: string;
393
+ /** An application state. */
394
+ state?: State;
395
+ }
396
+ export declare enum State {
397
+ UNKNOWN = "UNKNOWN",
398
+ ENABLED = "ENABLED",
399
+ DISABLED = "DISABLED",
400
+ PENDING = "PENDING",
401
+ DEMO = "DEMO"
402
+ }
403
+ export interface SiteCreated {
404
+ /**
405
+ * A template identifier (empty if not created from a template).
406
+ * @maxLength 36
407
+ */
408
+ originTemplateId?: string;
409
+ /**
410
+ * An account id of the owner.
411
+ * @format GUID
412
+ */
413
+ ownerId?: string;
414
+ /** A context in which meta site was created. */
415
+ context?: SiteCreatedContext;
416
+ /**
417
+ * A meta site id from which this site was created.
418
+ *
419
+ * In case of a creation from a template it's a template id.
420
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
421
+ * @format GUID
422
+ */
423
+ originMetaSiteId?: string | null;
424
+ /**
425
+ * A meta site name (URL slug).
426
+ * @maxLength 20
427
+ */
428
+ siteName?: string;
429
+ /** A namespace. */
430
+ namespace?: Namespace;
431
+ }
432
+ export declare enum SiteCreatedContext {
433
+ /** A valid option, we don't expose all reasons why site might be created. */
434
+ OTHER = "OTHER",
435
+ /** A meta site was created from template. */
436
+ FROM_TEMPLATE = "FROM_TEMPLATE",
437
+ /** A meta site was created by copying of the transfferred meta site. */
438
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
439
+ /** A copy of existing meta site. */
440
+ DUPLICATE = "DUPLICATE",
441
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
442
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
443
+ /** deprecated A meta site was created for Flash editor. */
444
+ FLASH = "FLASH"
445
+ }
446
+ export declare enum Namespace {
447
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
448
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
449
+ WIX = "WIX",
450
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
451
+ SHOUT_OUT = "SHOUT_OUT",
452
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
453
+ ALBUMS = "ALBUMS",
454
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
455
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
456
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
457
+ HOTELS = "HOTELS",
458
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
459
+ CLUBS = "CLUBS",
460
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
461
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
462
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
463
+ DEV_SITE = "DEV_SITE",
464
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
465
+ LOGOS = "LOGOS",
466
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
467
+ VIDEO_MAKER = "VIDEO_MAKER",
468
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
469
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
470
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
471
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
472
+ /**
473
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
474
+ *
475
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
476
+ */
477
+ HTML_DRAFT = "HTML_DRAFT",
478
+ /**
479
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
480
+ * Will be accessible from Site List and will not have a website app.
481
+ * Once the user attaches a site, the site will become a regular wixsite.
482
+ */
483
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
484
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
485
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
486
+ /** It is to be used in the Business First efforts. */
487
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
488
+ /** Bookings business flow with no site. */
489
+ ANYWHERE = "ANYWHERE",
490
+ /** Namespace for Headless Backoffice with no editor */
491
+ HEADLESS = "HEADLESS",
492
+ /**
493
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
494
+ * The site will be used for account level CSM feature for enterprise
495
+ */
496
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
497
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
498
+ RISE = "RISE",
499
+ /**
500
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
501
+ * There's a blank site behind the scene but it's blank).
502
+ * The Mobile company will be the owner of this namespace.
503
+ */
504
+ BRANDED_FIRST = "BRANDED_FIRST",
505
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
506
+ NOWNIA = "NOWNIA",
507
+ /**
508
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
509
+ * The Partners company owns this namespace.
510
+ */
511
+ UGC_TEMPLATE = "UGC_TEMPLATE",
512
+ /** Codux Headless Sites */
513
+ CODUX = "CODUX",
514
+ /** Bobb - AI Design Creator. */
515
+ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
516
+ /**
517
+ * Shared Blog Site is a unique single site across Enterprise account,
518
+ * This site will hold all Blog posts related to the Marketing product.
519
+ */
520
+ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
521
+ /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
522
+ STANDALONE_FORMS = "STANDALONE_FORMS",
523
+ /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
524
+ STANDALONE_EVENTS = "STANDALONE_EVENTS",
525
+ /** MIMIR - Siteless account for MIMIR Ai Job runner. */
526
+ MIMIR = "MIMIR"
527
+ }
528
+ /** Site transferred to another user. */
529
+ export interface SiteTransferred {
530
+ /**
531
+ * A previous owner id (user that transfers meta site).
532
+ * @format GUID
533
+ */
534
+ oldOwnerId?: string;
535
+ /**
536
+ * A new owner id (user that accepts meta site).
537
+ * @format GUID
538
+ */
539
+ newOwnerId?: string;
540
+ }
541
+ /** Soft deletion of the meta site. Could be restored. */
542
+ export interface SiteDeleted {
543
+ /** A deletion context. */
544
+ deleteContext?: DeleteContext;
545
+ }
546
+ export interface DeleteContext {
547
+ /** When the meta site was deleted. */
548
+ dateDeleted?: Date | null;
549
+ /** A status. */
550
+ deleteStatus?: DeleteStatus;
551
+ /**
552
+ * A reason (flow).
553
+ * @maxLength 255
554
+ */
555
+ deleteOrigin?: string;
556
+ /**
557
+ * A service that deleted it.
558
+ * @maxLength 255
559
+ */
560
+ initiatorId?: string | null;
561
+ }
562
+ export declare enum DeleteStatus {
563
+ UNKNOWN = "UNKNOWN",
564
+ TRASH = "TRASH",
565
+ DELETED = "DELETED",
566
+ PENDING_PURGE = "PENDING_PURGE",
567
+ PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
568
+ }
569
+ /** Restoration of the meta site. */
570
+ export interface SiteUndeleted {
571
+ }
572
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
573
+ export interface SitePublished {
574
+ }
575
+ export interface SiteUnpublished {
576
+ /**
577
+ * A list of URLs previously associated with the meta site.
578
+ * @maxLength 4000
579
+ * @maxSize 10000
580
+ */
581
+ urls?: string[];
582
+ }
583
+ export interface SiteMarkedAsTemplate {
584
+ }
585
+ export interface SiteMarkedAsWixSite {
586
+ }
587
+ /**
588
+ * Represents a service provisioned a site.
589
+ *
590
+ * Note on `origin_instance_id`:
591
+ * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
592
+ * This is because of the following scenario:
593
+ *
594
+ * Imagine you have a template where a third-party application (TPA) includes some stub data,
595
+ * such as a product catalog. When you create a site from this template, you inherit this
596
+ * default product catalog. However, if the template's product catalog is modified,
597
+ * your site will retain the catalog as it was at the time of site creation. This ensures that
598
+ * your site remains consistent with what you initially received and does not include any
599
+ * changes made to the original template afterward.
600
+ * To ensure this, the TPA on the template gets a new instance_id.
601
+ */
602
+ export interface ServiceProvisioned {
603
+ /**
604
+ * Either UUID or EmbeddedServiceType.
605
+ * @maxLength 36
606
+ */
607
+ appDefId?: string;
608
+ /**
609
+ * Not only UUID. Something here could be something weird.
610
+ * @maxLength 36
611
+ */
612
+ instanceId?: string;
613
+ /**
614
+ * An instance id from which this instance is originated.
615
+ * @maxLength 36
616
+ */
617
+ originInstanceId?: string;
618
+ /**
619
+ * A version.
620
+ * @maxLength 500
621
+ */
622
+ version?: string | null;
623
+ /**
624
+ * The origin meta site id
625
+ * @format GUID
626
+ */
627
+ originMetaSiteId?: string | null;
628
+ }
629
+ export interface ServiceRemoved {
630
+ /**
631
+ * Either UUID or EmbeddedServiceType.
632
+ * @maxLength 36
633
+ */
634
+ appDefId?: string;
635
+ /**
636
+ * Not only UUID. Something here could be something weird.
637
+ * @maxLength 36
638
+ */
639
+ instanceId?: string;
640
+ /**
641
+ * A version.
642
+ * @maxLength 500
643
+ */
644
+ version?: string | null;
645
+ }
646
+ /** Rename of the site. Meaning, free public url has been changed as well. */
647
+ export interface SiteRenamed {
648
+ /**
649
+ * A new meta site name (URL slug).
650
+ * @maxLength 20
651
+ */
652
+ newSiteName?: string;
653
+ /**
654
+ * A previous meta site name (URL slug).
655
+ * @maxLength 255
656
+ */
657
+ oldSiteName?: string;
658
+ }
659
+ /**
660
+ * Hard deletion of the meta site.
661
+ *
662
+ * Could not be restored. Therefore it's desirable to cleanup data.
663
+ */
664
+ export interface SiteHardDeleted {
665
+ /** A deletion context. */
666
+ deleteContext?: DeleteContext;
667
+ }
668
+ export interface NamespaceChanged {
669
+ /** A previous namespace. */
670
+ oldNamespace?: Namespace;
671
+ /** A new namespace. */
672
+ newNamespace?: Namespace;
673
+ }
674
+ /** Assigned Studio editor */
675
+ export interface StudioAssigned {
676
+ }
677
+ /** Unassigned Studio editor */
678
+ export interface StudioUnassigned {
679
+ }
680
+ /**
681
+ * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
682
+ *
683
+ * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
684
+ * with sites and its urls, you need to listen to another topic/event. Read about it:
685
+ *
686
+ * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
687
+ */
688
+ export interface SiteUrlChanged {
689
+ }
690
+ /**
691
+ * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
692
+ * Consumed by other teams to remove relevant data.
693
+ */
694
+ export interface SitePurgedExternally {
695
+ /**
696
+ * @maxLength 2048
697
+ * @maxSize 100
698
+ * @deprecated
699
+ * @targetRemovalDate 2025-04-15
700
+ */
701
+ appDefId?: string[];
702
+ }
703
+ export interface MessageEnvelope {
704
+ /**
705
+ * App instance ID.
706
+ * @format GUID
707
+ */
708
+ instanceId?: string | null;
709
+ /**
710
+ * Event type.
711
+ * @maxLength 150
712
+ */
713
+ eventType?: string;
714
+ /** The identification type and identity data. */
715
+ identity?: IdentificationData;
716
+ /** Stringify payload. */
717
+ data?: string;
718
+ }
719
+ export interface IdentificationData extends IdentificationDataIdOneOf {
720
+ /**
721
+ * ID of a site visitor that has not logged in to the site.
722
+ * @format GUID
723
+ */
724
+ anonymousVisitorId?: string;
725
+ /**
726
+ * ID of a site visitor that has logged in to the site.
727
+ * @format GUID
728
+ */
729
+ memberId?: string;
730
+ /**
731
+ * ID of a Wix user (site owner, contributor, etc.).
732
+ * @format GUID
733
+ */
734
+ wixUserId?: string;
735
+ /**
736
+ * ID of an app.
737
+ * @format GUID
738
+ */
739
+ appId?: string;
740
+ /** @readonly */
741
+ identityType?: WebhookIdentityType;
742
+ }
743
+ /** @oneof */
744
+ export interface IdentificationDataIdOneOf {
745
+ /**
746
+ * ID of a site visitor that has not logged in to the site.
747
+ * @format GUID
748
+ */
749
+ anonymousVisitorId?: string;
750
+ /**
751
+ * ID of a site visitor that has logged in to the site.
752
+ * @format GUID
753
+ */
754
+ memberId?: string;
755
+ /**
756
+ * ID of a Wix user (site owner, contributor, etc.).
757
+ * @format GUID
758
+ */
759
+ wixUserId?: string;
760
+ /**
761
+ * ID of an app.
762
+ * @format GUID
763
+ */
764
+ appId?: string;
765
+ }
766
+ export declare enum WebhookIdentityType {
767
+ UNKNOWN = "UNKNOWN",
768
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
769
+ MEMBER = "MEMBER",
770
+ WIX_USER = "WIX_USER",
771
+ APP = "APP"
772
+ }