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