@wix/auto_sdk_editor-branches_branches 1.0.11 → 1.0.13

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 (125) hide show
  1. package/build/cjs/index.d.ts +89 -1
  2. package/build/cjs/index.js +730 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1265 -1
  5. package/build/cjs/index.typings.js +606 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +317 -1
  8. package/build/cjs/meta.js +434 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +89 -0
  11. package/build/es/index.mjs +691 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/editor-branches-v1-branch-branches.universal.d.ts → es/index.typings.d.mts} +156 -109
  14. package/build/es/index.typings.mjs +570 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +317 -0
  17. package/build/es/meta.mjs +404 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +89 -1
  20. package/build/internal/cjs/index.js +730 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +1265 -1
  23. package/build/internal/cjs/index.typings.js +606 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +317 -1
  26. package/build/internal/cjs/meta.js +434 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +89 -0
  29. package/build/internal/es/index.mjs +691 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/{cjs/src/editor-branches-v1-branch-branches.universal.d.ts → internal/es/index.typings.d.mts} +156 -109
  32. package/build/internal/es/index.typings.mjs +570 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/internal/es/meta.d.mts +317 -0
  35. package/build/internal/es/meta.mjs +404 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +12 -10
  38. package/build/cjs/src/editor-branches-v1-branch-branches.context.d.ts +0 -21
  39. package/build/cjs/src/editor-branches-v1-branch-branches.context.js +0 -33
  40. package/build/cjs/src/editor-branches-v1-branch-branches.context.js.map +0 -1
  41. package/build/cjs/src/editor-branches-v1-branch-branches.http.d.ts +0 -22
  42. package/build/cjs/src/editor-branches-v1-branch-branches.http.js +0 -286
  43. package/build/cjs/src/editor-branches-v1-branch-branches.http.js.map +0 -1
  44. package/build/cjs/src/editor-branches-v1-branch-branches.meta.d.ts +0 -27
  45. package/build/cjs/src/editor-branches-v1-branch-branches.meta.js +0 -161
  46. package/build/cjs/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
  47. package/build/cjs/src/editor-branches-v1-branch-branches.public.d.ts +0 -69
  48. package/build/cjs/src/editor-branches-v1-branch-branches.public.js +0 -92
  49. package/build/cjs/src/editor-branches-v1-branch-branches.public.js.map +0 -1
  50. package/build/cjs/src/editor-branches-v1-branch-branches.types.d.ts +0 -930
  51. package/build/cjs/src/editor-branches-v1-branch-branches.types.js +0 -160
  52. package/build/cjs/src/editor-branches-v1-branch-branches.types.js.map +0 -1
  53. package/build/cjs/src/editor-branches-v1-branch-branches.universal.js +0 -433
  54. package/build/cjs/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/editor-branches-v1-branch-branches.context.d.ts +0 -21
  65. package/build/es/src/editor-branches-v1-branch-branches.context.js +0 -21
  66. package/build/es/src/editor-branches-v1-branch-branches.context.js.map +0 -1
  67. package/build/es/src/editor-branches-v1-branch-branches.http.d.ts +0 -22
  68. package/build/es/src/editor-branches-v1-branch-branches.http.js +0 -276
  69. package/build/es/src/editor-branches-v1-branch-branches.http.js.map +0 -1
  70. package/build/es/src/editor-branches-v1-branch-branches.meta.d.ts +0 -27
  71. package/build/es/src/editor-branches-v1-branch-branches.meta.js +0 -128
  72. package/build/es/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
  73. package/build/es/src/editor-branches-v1-branch-branches.public.d.ts +0 -69
  74. package/build/es/src/editor-branches-v1-branch-branches.public.js +0 -73
  75. package/build/es/src/editor-branches-v1-branch-branches.public.js.map +0 -1
  76. package/build/es/src/editor-branches-v1-branch-branches.types.d.ts +0 -930
  77. package/build/es/src/editor-branches-v1-branch-branches.types.js +0 -157
  78. package/build/es/src/editor-branches-v1-branch-branches.types.js.map +0 -1
  79. package/build/es/src/editor-branches-v1-branch-branches.universal.d.ts +0 -1218
  80. package/build/es/src/editor-branches-v1-branch-branches.universal.js +0 -400
  81. package/build/es/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
  82. package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.d.ts +0 -21
  83. package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.js +0 -33
  84. package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.js.map +0 -1
  85. package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.d.ts +0 -22
  86. package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.js +0 -286
  87. package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.js.map +0 -1
  88. package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.d.ts +0 -27
  89. package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.js +0 -161
  90. package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
  91. package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.d.ts +0 -69
  92. package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.js +0 -92
  93. package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.js.map +0 -1
  94. package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.d.ts +0 -930
  95. package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.js +0 -160
  96. package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.js.map +0 -1
  97. package/build/internal/cjs/src/editor-branches-v1-branch-branches.universal.js +0 -433
  98. package/build/internal/cjs/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
  99. package/build/internal/es/index.d.ts +0 -1
  100. package/build/internal/es/index.js +0 -2
  101. package/build/internal/es/index.js.map +0 -1
  102. package/build/internal/es/index.typings.d.ts +0 -1
  103. package/build/internal/es/index.typings.js +0 -2
  104. package/build/internal/es/index.typings.js.map +0 -1
  105. package/build/internal/es/meta.d.ts +0 -1
  106. package/build/internal/es/meta.js +0 -2
  107. package/build/internal/es/meta.js.map +0 -1
  108. package/build/internal/es/src/editor-branches-v1-branch-branches.context.d.ts +0 -21
  109. package/build/internal/es/src/editor-branches-v1-branch-branches.context.js +0 -21
  110. package/build/internal/es/src/editor-branches-v1-branch-branches.context.js.map +0 -1
  111. package/build/internal/es/src/editor-branches-v1-branch-branches.http.d.ts +0 -22
  112. package/build/internal/es/src/editor-branches-v1-branch-branches.http.js +0 -276
  113. package/build/internal/es/src/editor-branches-v1-branch-branches.http.js.map +0 -1
  114. package/build/internal/es/src/editor-branches-v1-branch-branches.meta.d.ts +0 -27
  115. package/build/internal/es/src/editor-branches-v1-branch-branches.meta.js +0 -128
  116. package/build/internal/es/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
  117. package/build/internal/es/src/editor-branches-v1-branch-branches.public.d.ts +0 -69
  118. package/build/internal/es/src/editor-branches-v1-branch-branches.public.js +0 -73
  119. package/build/internal/es/src/editor-branches-v1-branch-branches.public.js.map +0 -1
  120. package/build/internal/es/src/editor-branches-v1-branch-branches.types.d.ts +0 -930
  121. package/build/internal/es/src/editor-branches-v1-branch-branches.types.js +0 -157
  122. package/build/internal/es/src/editor-branches-v1-branch-branches.types.js.map +0 -1
  123. package/build/internal/es/src/editor-branches-v1-branch-branches.universal.d.ts +0 -1218
  124. package/build/internal/es/src/editor-branches-v1-branch-branches.universal.js +0 -400
  125. package/build/internal/es/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
@@ -1,930 +0,0 @@
1
- /**
2
- * A branch is a version of draft site content that can be edited independently. Also known as a test site.
3
- * Read more about branches in this [article](https://support.wix.com/en/article/about-test-sites).
4
- */
5
- export interface Branch extends BranchSourceOneOf {
6
- /** Source branch properties. */
7
- sourceBranchProperties?: SourceBranch;
8
- /** Source template properties. */
9
- sourceTemplateProperties?: SourceTemplate;
10
- /**
11
- * Branch ID.
12
- * @format GUID
13
- * @readonly
14
- */
15
- id?: string | null;
16
- /**
17
- * Revision number, which increments by 1 each time the branch is updated.
18
- * To prevent conflicting changes,
19
- * the current revision must be passed when updating the branch.
20
- * @readonly
21
- */
22
- revision?: string | null;
23
- /** Branch type. */
24
- type?: TypeWithLiterals;
25
- /**
26
- * Branch name.
27
- * @maxLength 50
28
- */
29
- name?: string | null;
30
- /** Source type. */
31
- sourceType?: SourceTypeWithLiterals;
32
- /**
33
- * Date and time the branch was last published, if relevant.
34
- * @readonly
35
- */
36
- lastPublishDate?: string | null;
37
- /**
38
- * Editor type.
39
- * @readonly
40
- */
41
- editorType?: EditorType;
42
- /**
43
- * Default branch
44
- * @readonly
45
- */
46
- default?: boolean | null;
47
- /**
48
- * Date and time the branch was created.
49
- * @readonly
50
- */
51
- createdDate?: Date | null;
52
- /**
53
- * Date and time the branch was last updated.
54
- * @readonly
55
- */
56
- updatedDate?: Date | null;
57
- /**
58
- * Custom field data for the branch.
59
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
60
- */
61
- extendedFields?: ExtendedFields;
62
- }
63
- /** @oneof */
64
- export interface BranchSourceOneOf {
65
- /** Source branch properties. */
66
- sourceBranchProperties?: SourceBranch;
67
- /** Source template properties. */
68
- sourceTemplateProperties?: SourceTemplate;
69
- }
70
- export declare enum Type {
71
- /** Unknown branch type. */
72
- UNKNOWN_TYPE = "UNKNOWN_TYPE",
73
- /** A branch created by a Wix user, that can be accessed for editing and publishing via the editor UI. */
74
- USER = "USER",
75
- /** A branch created for technical purposes, unrelated to the Wix user. For internal use, can't be accessed via the editor UI. */
76
- TECHNICAL = "TECHNICAL",
77
- /** The original branch of the site, created when the site is created. Can be accessed for editing and publishing in the editor. */
78
- ORIGINAL_BRANCH = "ORIGINAL_BRANCH"
79
- }
80
- /** @enumType */
81
- export type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'USER' | 'TECHNICAL' | 'ORIGINAL_BRANCH';
82
- export declare enum SourceType {
83
- /** Unknown source type. */
84
- UNKNOWN_SOURCE_TYPE = "UNKNOWN_SOURCE_TYPE",
85
- /** This branch's source was a branch. */
86
- SOURCE_BRANCH = "SOURCE_BRANCH",
87
- /** This branch's source was a template. For internal use. */
88
- SOURCE_TEMPLATE = "SOURCE_TEMPLATE"
89
- }
90
- /** @enumType */
91
- export type SourceTypeWithLiterals = SourceType | 'UNKNOWN_SOURCE_TYPE' | 'SOURCE_BRANCH' | 'SOURCE_TEMPLATE';
92
- export interface EditorType {
93
- /** Editor type */
94
- editorTypeOptions?: EditorTypeOptionsWithLiterals;
95
- }
96
- export declare enum EditorTypeOptions {
97
- /** Unknown editor type */
98
- UNKNOWN_EDITOR_TYPE = "UNKNOWN_EDITOR_TYPE",
99
- /** STUDIO */
100
- STUDIO = "STUDIO",
101
- /** CLASSIC */
102
- CLASSIC = "CLASSIC"
103
- }
104
- /** @enumType */
105
- export type EditorTypeOptionsWithLiterals = EditorTypeOptions | 'UNKNOWN_EDITOR_TYPE' | 'STUDIO' | 'CLASSIC';
106
- export interface SourceBranch {
107
- /**
108
- * Source branch ID.
109
- * @format GUID
110
- */
111
- branchId?: string;
112
- /** Source branch revision. */
113
- branchRevision?: string | null;
114
- }
115
- export interface SourceTemplate {
116
- /**
117
- * Source template ID.
118
- * @format GUID
119
- */
120
- templateId?: string;
121
- }
122
- export interface ExtendedFields {
123
- /**
124
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
125
- * The value of each key is structured according to the schema defined when the extended fields were configured.
126
- *
127
- * You can only access fields for which you have the appropriate permissions.
128
- *
129
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
130
- */
131
- namespaces?: Record<string, Record<string, any>>;
132
- }
133
- export interface CreateBranchRequest {
134
- /** Branch to be created. */
135
- branch: Branch;
136
- }
137
- export interface CreateBranchResponse {
138
- /** Created branch. */
139
- branch?: Branch;
140
- }
141
- export interface GetBranchRequest {
142
- /**
143
- * ID of branch to retrieve.
144
- * @format GUID
145
- */
146
- branchId: string;
147
- }
148
- export interface GetBranchResponse {
149
- /** Requested branch. */
150
- branch?: Branch;
151
- }
152
- export interface UpdateBranchRequest {
153
- /** Branch to be updated. */
154
- branch: Branch;
155
- }
156
- export interface UpdateBranchResponse {
157
- /** Updated branch. */
158
- branch?: Branch;
159
- }
160
- export interface DeleteBranchRequest {
161
- /**
162
- * ID of branch to delete.
163
- * @format GUID
164
- */
165
- branchId: string;
166
- }
167
- export interface DeleteBranchResponse {
168
- }
169
- export interface QueryBranchesRequest {
170
- /** WQL expression. */
171
- query?: CursorQuery;
172
- }
173
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
174
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
175
- cursorPaging?: CursorPaging;
176
- /**
177
- * Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"}}`.
178
- *
179
- * Filterable fields:
180
- *
181
- * `type`
182
- * `name`
183
- * `updatedDate`
184
- * `createdDate`
185
- * `lastPublishDate`
186
- * `sourceBranchProperties.branchId`
187
- * `sourceBranchProperties.branchRevision`
188
- *
189
- * All operators are valid.
190
- */
191
- filter?: Record<string, any> | null;
192
- /**
193
- * Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`.
194
- *
195
- * Sortable fields:
196
- *
197
- * `updatedDate`
198
- * `createdDate`
199
- * `lastPublishDate`
200
- * @maxSize 5
201
- */
202
- sort?: Sorting[];
203
- }
204
- /** @oneof */
205
- export interface CursorQueryPagingMethodOneOf {
206
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
207
- cursorPaging?: CursorPaging;
208
- }
209
- export interface Sorting {
210
- /**
211
- * Name of the field to sort by.
212
- * @maxLength 512
213
- */
214
- fieldName?: string;
215
- /** Sort order. */
216
- order?: SortOrderWithLiterals;
217
- }
218
- export declare enum SortOrder {
219
- ASC = "ASC",
220
- DESC = "DESC"
221
- }
222
- /** @enumType */
223
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
224
- export interface CursorPaging {
225
- /**
226
- * Maximum number of items to return in the results.
227
- * @max 100
228
- */
229
- limit?: number | null;
230
- /**
231
- * Pointer to the next or previous page in the list of results.
232
- *
233
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
234
- * Not relevant for the first request.
235
- * @maxLength 16000
236
- */
237
- cursor?: string | null;
238
- }
239
- export interface QueryBranchesResponse {
240
- /** List of branches. */
241
- branches?: Branch[];
242
- /** Paging metadata */
243
- pagingMetadata?: CursorPagingMetadata;
244
- }
245
- export interface CursorPagingMetadata {
246
- /** Number of items returned in the response. */
247
- count?: number | null;
248
- /** Cursor strings that point to the next page, previous page, or both. */
249
- cursors?: Cursors;
250
- /**
251
- * Whether there are more pages to retrieve following the current page.
252
- *
253
- * + `true`: Another page of results can be retrieved.
254
- * + `false`: This is the last page.
255
- */
256
- hasNext?: boolean | null;
257
- }
258
- export interface Cursors {
259
- /**
260
- * Cursor string pointing to the next page in the list of results.
261
- * @maxLength 16000
262
- */
263
- next?: string | null;
264
- /**
265
- * Cursor pointing to the previous page in the list of results.
266
- * @maxLength 16000
267
- */
268
- prev?: string | null;
269
- }
270
- export interface UpdateExtendedFieldsRequest {
271
- /** ID of the entity to update. */
272
- id?: string;
273
- /** Identifier for the app whose extended fields are being updated. */
274
- namespace?: string;
275
- /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
276
- namespaceData?: Record<string, any> | null;
277
- }
278
- export interface UpdateExtendedFieldsResponse {
279
- /** Updated branch. */
280
- branch?: Branch;
281
- }
282
- export interface HtmlSitePublished {
283
- /**
284
- * Application instance ID
285
- * @maxLength 50
286
- */
287
- appInstanceId?: string;
288
- /**
289
- * Application type
290
- * @maxLength 100
291
- */
292
- appType?: string;
293
- /** Revision */
294
- revision?: string;
295
- /**
296
- * MSID
297
- * @maxLength 100
298
- */
299
- metaSiteId?: string | null;
300
- /**
301
- * optional branch id if publish is done from branch
302
- * @format GUID
303
- */
304
- branchId?: string | null;
305
- /** The site's last transactionId */
306
- lastTransactionId?: string | null;
307
- /** A list of the site's pages */
308
- pages?: Page[];
309
- /** Site's publish date */
310
- publishDate?: string;
311
- }
312
- export interface Page {
313
- /**
314
- * Page's Id
315
- * @maxLength 100
316
- */
317
- id?: string;
318
- }
319
- export interface Empty {
320
- }
321
- export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
322
- /** Emitted on a meta site creation. */
323
- siteCreated?: SiteCreated;
324
- /** Emitted on a meta site transfer completion. */
325
- siteTransferred?: SiteTransferred;
326
- /** Emitted on a meta site deletion. */
327
- siteDeleted?: SiteDeleted;
328
- /** Emitted on a meta site restoration. */
329
- siteUndeleted?: SiteUndeleted;
330
- /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
331
- sitePublished?: SitePublished;
332
- /** Emitted on a meta site unpublish. */
333
- siteUnpublished?: SiteUnpublished;
334
- /** Emitted when meta site is marked as template. */
335
- siteMarkedAsTemplate?: SiteMarkedAsTemplate;
336
- /** Emitted when meta site is marked as a WixSite. */
337
- siteMarkedAsWixSite?: SiteMarkedAsWixSite;
338
- /** Emitted when an application is provisioned (installed). */
339
- serviceProvisioned?: ServiceProvisioned;
340
- /** Emitted when an application is removed (uninstalled). */
341
- serviceRemoved?: ServiceRemoved;
342
- /** Emitted when meta site name (URL slug) is changed. */
343
- siteRenamedPayload?: SiteRenamed;
344
- /** Emitted when meta site was permanently deleted. */
345
- hardDeleted?: SiteHardDeleted;
346
- /** Emitted on a namespace change. */
347
- namespaceChanged?: NamespaceChanged;
348
- /** Emitted when Studio is attached. */
349
- studioAssigned?: StudioAssigned;
350
- /** Emitted when Studio is detached. */
351
- studioUnassigned?: StudioUnassigned;
352
- /**
353
- * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
354
- * the actual URL.
355
- *
356
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
357
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
358
- */
359
- urlChanged?: SiteUrlChanged;
360
- /** Site is marked as PurgedExternally */
361
- sitePurgedExternally?: SitePurgedExternally;
362
- /** Emitted when Odeditor is attached. */
363
- odeditorAssigned?: OdeditorAssigned;
364
- /** Emitted when Odeditor is detached. */
365
- odeditorUnassigned?: OdeditorUnassigned;
366
- /** Emitted when Picasso is attached. */
367
- picassoAssigned?: PicassoAssigned;
368
- /** Emitted when Picasso is detached. */
369
- picassoUnassigned?: PicassoUnassigned;
370
- /**
371
- * A meta site id.
372
- * @format GUID
373
- */
374
- metaSiteId?: string;
375
- /** A meta site version. Monotonically increasing. */
376
- version?: string;
377
- /** A timestamp of the event. */
378
- timestamp?: string;
379
- /**
380
- * TODO(meta-site): Change validation once validations are disabled for consumers
381
- * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
382
- * @maxSize 4000
383
- */
384
- assets?: Asset[];
385
- }
386
- /** @oneof */
387
- export interface MetaSiteSpecialEventPayloadOneOf {
388
- /** Emitted on a meta site creation. */
389
- siteCreated?: SiteCreated;
390
- /** Emitted on a meta site transfer completion. */
391
- siteTransferred?: SiteTransferred;
392
- /** Emitted on a meta site deletion. */
393
- siteDeleted?: SiteDeleted;
394
- /** Emitted on a meta site restoration. */
395
- siteUndeleted?: SiteUndeleted;
396
- /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
397
- sitePublished?: SitePublished;
398
- /** Emitted on a meta site unpublish. */
399
- siteUnpublished?: SiteUnpublished;
400
- /** Emitted when meta site is marked as template. */
401
- siteMarkedAsTemplate?: SiteMarkedAsTemplate;
402
- /** Emitted when meta site is marked as a WixSite. */
403
- siteMarkedAsWixSite?: SiteMarkedAsWixSite;
404
- /** Emitted when an application is provisioned (installed). */
405
- serviceProvisioned?: ServiceProvisioned;
406
- /** Emitted when an application is removed (uninstalled). */
407
- serviceRemoved?: ServiceRemoved;
408
- /** Emitted when meta site name (URL slug) is changed. */
409
- siteRenamedPayload?: SiteRenamed;
410
- /** Emitted when meta site was permanently deleted. */
411
- hardDeleted?: SiteHardDeleted;
412
- /** Emitted on a namespace change. */
413
- namespaceChanged?: NamespaceChanged;
414
- /** Emitted when Studio is attached. */
415
- studioAssigned?: StudioAssigned;
416
- /** Emitted when Studio is detached. */
417
- studioUnassigned?: StudioUnassigned;
418
- /**
419
- * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
420
- * the actual URL.
421
- *
422
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
423
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
424
- */
425
- urlChanged?: SiteUrlChanged;
426
- /** Site is marked as PurgedExternally */
427
- sitePurgedExternally?: SitePurgedExternally;
428
- /** Emitted when Odeditor is attached. */
429
- odeditorAssigned?: OdeditorAssigned;
430
- /** Emitted when Odeditor is detached. */
431
- odeditorUnassigned?: OdeditorUnassigned;
432
- /** Emitted when Picasso is attached. */
433
- picassoAssigned?: PicassoAssigned;
434
- /** Emitted when Picasso is detached. */
435
- picassoUnassigned?: PicassoUnassigned;
436
- }
437
- export interface Asset {
438
- /**
439
- * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
440
- * @maxLength 36
441
- */
442
- appDefId?: string;
443
- /**
444
- * An instance id. For legacy reasons may be UUID or a string.
445
- * @maxLength 200
446
- */
447
- instanceId?: string;
448
- /** An application state. */
449
- state?: StateWithLiterals;
450
- }
451
- export declare enum State {
452
- UNKNOWN = "UNKNOWN",
453
- ENABLED = "ENABLED",
454
- DISABLED = "DISABLED",
455
- PENDING = "PENDING",
456
- DEMO = "DEMO"
457
- }
458
- /** @enumType */
459
- export type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
460
- export interface SiteCreated {
461
- /**
462
- * A template identifier (empty if not created from a template).
463
- * @maxLength 36
464
- */
465
- originTemplateId?: string;
466
- /**
467
- * An account id of the owner.
468
- * @format GUID
469
- */
470
- ownerId?: string;
471
- /** A context in which meta site was created. */
472
- context?: SiteCreatedContextWithLiterals;
473
- /**
474
- * A meta site id from which this site was created.
475
- *
476
- * In case of a creation from a template it's a template id.
477
- * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
478
- * @format GUID
479
- */
480
- originMetaSiteId?: string | null;
481
- /**
482
- * A meta site name (URL slug).
483
- * @maxLength 20
484
- */
485
- siteName?: string;
486
- /** A namespace. */
487
- namespace?: NamespaceWithLiterals;
488
- }
489
- export declare enum SiteCreatedContext {
490
- /** A valid option, we don't expose all reasons why site might be created. */
491
- OTHER = "OTHER",
492
- /** A meta site was created from template. */
493
- FROM_TEMPLATE = "FROM_TEMPLATE",
494
- /** A meta site was created by copying of the transfferred meta site. */
495
- DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
496
- /** A copy of existing meta site. */
497
- DUPLICATE = "DUPLICATE",
498
- /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
499
- OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
500
- /** deprecated A meta site was created for Flash editor. */
501
- FLASH = "FLASH"
502
- }
503
- /** @enumType */
504
- export type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
505
- export declare enum Namespace {
506
- UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
507
- /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
508
- WIX = "WIX",
509
- /** 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. */
510
- SHOUT_OUT = "SHOUT_OUT",
511
- /** 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. */
512
- ALBUMS = "ALBUMS",
513
- /** 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. */
514
- WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
515
- /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
516
- HOTELS = "HOTELS",
517
- /** 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. */
518
- CLUBS = "CLUBS",
519
- /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
520
- ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
521
- /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
522
- DEV_SITE = "DEV_SITE",
523
- /** 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. */
524
- LOGOS = "LOGOS",
525
- /** 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. */
526
- VIDEO_MAKER = "VIDEO_MAKER",
527
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
528
- PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
529
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
530
- DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
531
- /**
532
- * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
533
- *
534
- * Meta site with this namespace will *not* be shown in a user's site list by default.
535
- */
536
- HTML_DRAFT = "HTML_DRAFT",
537
- /**
538
- * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
539
- * Will be accessible from Site List and will not have a website app.
540
- * Once the user attaches a site, the site will become a regular wixsite.
541
- */
542
- SITELESS_BUSINESS = "SITELESS_BUSINESS",
543
- /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
544
- CREATOR_ECONOMY = "CREATOR_ECONOMY",
545
- /** It is to be used in the Business First efforts. */
546
- DASHBOARD_FIRST = "DASHBOARD_FIRST",
547
- /** Bookings business flow with no site. */
548
- ANYWHERE = "ANYWHERE",
549
- /** Namespace for Headless Backoffice with no editor */
550
- HEADLESS = "HEADLESS",
551
- /**
552
- * Namespace for master site that will exist in parent account that will be referenced by subaccounts
553
- * The site will be used for account level CSM feature for enterprise
554
- */
555
- ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
556
- /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
557
- RISE = "RISE",
558
- /**
559
- * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
560
- * There's a blank site behind the scene but it's blank).
561
- * The Mobile company will be the owner of this namespace.
562
- */
563
- BRANDED_FIRST = "BRANDED_FIRST",
564
- /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
565
- NOWNIA = "NOWNIA",
566
- /**
567
- * UGC Templates are templates that are created by users for personal use and to sale to other users.
568
- * The Partners company owns this namespace.
569
- */
570
- UGC_TEMPLATE = "UGC_TEMPLATE",
571
- /** Codux Headless Sites */
572
- CODUX = "CODUX",
573
- /** Bobb - AI Design Creator. */
574
- MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
575
- /**
576
- * Shared Blog Site is a unique single site across Enterprise account,
577
- * This site will hold all Blog posts related to the Marketing product.
578
- */
579
- SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
580
- /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
581
- STANDALONE_FORMS = "STANDALONE_FORMS",
582
- /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
583
- STANDALONE_EVENTS = "STANDALONE_EVENTS",
584
- /** MIMIR - Siteless account for MIMIR Ai Job runner. */
585
- MIMIR = "MIMIR"
586
- }
587
- /** @enumType */
588
- export type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR';
589
- /** Site transferred to another user. */
590
- export interface SiteTransferred {
591
- /**
592
- * A previous owner id (user that transfers meta site).
593
- * @format GUID
594
- */
595
- oldOwnerId?: string;
596
- /**
597
- * A new owner id (user that accepts meta site).
598
- * @format GUID
599
- */
600
- newOwnerId?: string;
601
- }
602
- /** Soft deletion of the meta site. Could be restored. */
603
- export interface SiteDeleted {
604
- /** A deletion context. */
605
- deleteContext?: DeleteContext;
606
- }
607
- export interface DeleteContext {
608
- /** When the meta site was deleted. */
609
- dateDeleted?: Date | null;
610
- /** A status. */
611
- deleteStatus?: DeleteStatusWithLiterals;
612
- /**
613
- * A reason (flow).
614
- * @maxLength 255
615
- */
616
- deleteOrigin?: string;
617
- /**
618
- * A service that deleted it.
619
- * @maxLength 255
620
- */
621
- initiatorId?: string | null;
622
- }
623
- export declare enum DeleteStatus {
624
- UNKNOWN = "UNKNOWN",
625
- TRASH = "TRASH",
626
- DELETED = "DELETED",
627
- PENDING_PURGE = "PENDING_PURGE",
628
- PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
629
- }
630
- /** @enumType */
631
- export type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
632
- /** Restoration of the meta site. */
633
- export interface SiteUndeleted {
634
- }
635
- /** First publish of a meta site. Or subsequent publish after unpublish. */
636
- export interface SitePublished {
637
- }
638
- export interface SiteUnpublished {
639
- /**
640
- * A list of URLs previously associated with the meta site.
641
- * @maxLength 4000
642
- * @maxSize 10000
643
- */
644
- urls?: string[];
645
- }
646
- export interface SiteMarkedAsTemplate {
647
- }
648
- export interface SiteMarkedAsWixSite {
649
- }
650
- /**
651
- * Represents a service provisioned a site.
652
- *
653
- * Note on `origin_instance_id`:
654
- * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
655
- * This is because of the following scenario:
656
- *
657
- * Imagine you have a template where a third-party application (TPA) includes some stub data,
658
- * such as a product catalog. When you create a site from this template, you inherit this
659
- * default product catalog. However, if the template's product catalog is modified,
660
- * your site will retain the catalog as it was at the time of site creation. This ensures that
661
- * your site remains consistent with what you initially received and does not include any
662
- * changes made to the original template afterward.
663
- * To ensure this, the TPA on the template gets a new instance_id.
664
- */
665
- export interface ServiceProvisioned {
666
- /**
667
- * Either UUID or EmbeddedServiceType.
668
- * @maxLength 36
669
- */
670
- appDefId?: string;
671
- /**
672
- * Not only UUID. Something here could be something weird.
673
- * @maxLength 36
674
- */
675
- instanceId?: string;
676
- /**
677
- * An instance id from which this instance is originated.
678
- * @maxLength 36
679
- */
680
- originInstanceId?: string;
681
- /**
682
- * A version.
683
- * @maxLength 500
684
- */
685
- version?: string | null;
686
- /**
687
- * The origin meta site id
688
- * @format GUID
689
- */
690
- originMetaSiteId?: string | null;
691
- }
692
- export interface ServiceRemoved {
693
- /**
694
- * Either UUID or EmbeddedServiceType.
695
- * @maxLength 36
696
- */
697
- appDefId?: string;
698
- /**
699
- * Not only UUID. Something here could be something weird.
700
- * @maxLength 36
701
- */
702
- instanceId?: string;
703
- /**
704
- * A version.
705
- * @maxLength 500
706
- */
707
- version?: string | null;
708
- }
709
- /** Rename of the site. Meaning, free public url has been changed as well. */
710
- export interface SiteRenamed {
711
- /**
712
- * A new meta site name (URL slug).
713
- * @maxLength 20
714
- */
715
- newSiteName?: string;
716
- /**
717
- * A previous meta site name (URL slug).
718
- * @maxLength 255
719
- */
720
- oldSiteName?: string;
721
- }
722
- /**
723
- * Hard deletion of the meta site.
724
- *
725
- * Could not be restored. Therefore it's desirable to cleanup data.
726
- */
727
- export interface SiteHardDeleted {
728
- /** A deletion context. */
729
- deleteContext?: DeleteContext;
730
- }
731
- export interface NamespaceChanged {
732
- /** A previous namespace. */
733
- oldNamespace?: NamespaceWithLiterals;
734
- /** A new namespace. */
735
- newNamespace?: NamespaceWithLiterals;
736
- }
737
- /** Assigned Studio editor */
738
- export interface StudioAssigned {
739
- }
740
- /** Unassigned Studio editor */
741
- export interface StudioUnassigned {
742
- }
743
- /**
744
- * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
745
- *
746
- * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
747
- * with sites and its urls, you need to listen to another topic/event. Read about it:
748
- *
749
- * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
750
- */
751
- export interface SiteUrlChanged {
752
- }
753
- /**
754
- * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
755
- * Consumed by other teams to remove relevant data.
756
- */
757
- export interface SitePurgedExternally {
758
- /**
759
- * @maxLength 2048
760
- * @maxSize 100
761
- * @deprecated
762
- * @targetRemovalDate 2025-04-15
763
- */
764
- appDefId?: string[];
765
- }
766
- /** Assigned Odeditor */
767
- export interface OdeditorAssigned {
768
- }
769
- /** Unassigned Odeditor */
770
- export interface OdeditorUnassigned {
771
- }
772
- /** Assigned Picasso editor */
773
- export interface PicassoAssigned {
774
- }
775
- /** Unassigned Picasso */
776
- export interface PicassoUnassigned {
777
- }
778
- export interface SetDefaultBranchRequest {
779
- /**
780
- * Branch Id.
781
- * @format GUID
782
- */
783
- branchId: string;
784
- }
785
- export interface SetDefaultBranchResponse {
786
- /** Updated branch. */
787
- branch?: Branch;
788
- }
789
- export interface GetDefaultBranchRequest {
790
- }
791
- export interface GetDefaultBranchResponse {
792
- /** Default branch. */
793
- branch?: Branch;
794
- }
795
- export interface DomainEvent extends DomainEventBodyOneOf {
796
- createdEvent?: EntityCreatedEvent;
797
- updatedEvent?: EntityUpdatedEvent;
798
- deletedEvent?: EntityDeletedEvent;
799
- actionEvent?: ActionEvent;
800
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
801
- id?: string;
802
- /**
803
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
804
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
805
- */
806
- entityFqdn?: string;
807
- /**
808
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
809
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
810
- */
811
- slug?: string;
812
- /** ID of the entity associated with the event. */
813
- entityId?: string;
814
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
815
- eventTime?: Date | null;
816
- /**
817
- * Whether the event was triggered as a result of a privacy regulation application
818
- * (for example, GDPR).
819
- */
820
- triggeredByAnonymizeRequest?: boolean | null;
821
- /** If present, indicates the action that triggered the event. */
822
- originatedFrom?: string | null;
823
- /**
824
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
825
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
826
- */
827
- entityEventSequence?: string | null;
828
- }
829
- /** @oneof */
830
- export interface DomainEventBodyOneOf {
831
- createdEvent?: EntityCreatedEvent;
832
- updatedEvent?: EntityUpdatedEvent;
833
- deletedEvent?: EntityDeletedEvent;
834
- actionEvent?: ActionEvent;
835
- }
836
- export interface EntityCreatedEvent {
837
- entityAsJson?: string;
838
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
839
- restoreInfo?: RestoreInfo;
840
- }
841
- export interface RestoreInfo {
842
- deletedDate?: Date | null;
843
- }
844
- export interface EntityUpdatedEvent {
845
- /**
846
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
847
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
848
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
849
- */
850
- currentEntityAsJson?: string;
851
- }
852
- export interface EntityDeletedEvent {
853
- /** Entity that was deleted. */
854
- deletedEntityAsJson?: string | null;
855
- }
856
- export interface ActionEvent {
857
- bodyAsJson?: string;
858
- }
859
- export interface MessageEnvelope {
860
- /**
861
- * App instance ID.
862
- * @format GUID
863
- */
864
- instanceId?: string | null;
865
- /**
866
- * Event type.
867
- * @maxLength 150
868
- */
869
- eventType?: string;
870
- /** The identification type and identity data. */
871
- identity?: IdentificationData;
872
- /** Stringify payload. */
873
- data?: string;
874
- }
875
- export interface IdentificationData extends IdentificationDataIdOneOf {
876
- /**
877
- * ID of a site visitor that has not logged in to the site.
878
- * @format GUID
879
- */
880
- anonymousVisitorId?: string;
881
- /**
882
- * ID of a site visitor that has logged in to the site.
883
- * @format GUID
884
- */
885
- memberId?: string;
886
- /**
887
- * ID of a Wix user (site owner, contributor, etc.).
888
- * @format GUID
889
- */
890
- wixUserId?: string;
891
- /**
892
- * ID of an app.
893
- * @format GUID
894
- */
895
- appId?: string;
896
- /** @readonly */
897
- identityType?: WebhookIdentityTypeWithLiterals;
898
- }
899
- /** @oneof */
900
- export interface IdentificationDataIdOneOf {
901
- /**
902
- * ID of a site visitor that has not logged in to the site.
903
- * @format GUID
904
- */
905
- anonymousVisitorId?: string;
906
- /**
907
- * ID of a site visitor that has logged in to the site.
908
- * @format GUID
909
- */
910
- memberId?: string;
911
- /**
912
- * ID of a Wix user (site owner, contributor, etc.).
913
- * @format GUID
914
- */
915
- wixUserId?: string;
916
- /**
917
- * ID of an app.
918
- * @format GUID
919
- */
920
- appId?: string;
921
- }
922
- export declare enum WebhookIdentityType {
923
- UNKNOWN = "UNKNOWN",
924
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
925
- MEMBER = "MEMBER",
926
- WIX_USER = "WIX_USER",
927
- APP = "APP"
928
- }
929
- /** @enumType */
930
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';