@wix/auto_sdk_multilingual_translation-credits 1.0.29 → 1.0.30

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.
@@ -45,6 +45,491 @@ interface CheckSufficientCreditsResponse {
45
45
  /** Whether the site has enough credits to translate the specified number of words. */
46
46
  sufficientCredits?: boolean;
47
47
  }
48
+ interface ReportCreditUsageRequest {
49
+ /** Number of credits used in the translation operation */
50
+ used?: number;
51
+ }
52
+ interface ReportCreditUsageResponse {
53
+ /** Updated credit status after reporting usage */
54
+ creditData?: CreditData;
55
+ }
56
+ interface UpdateCreditRequest {
57
+ /** New credit status to be set for the site */
58
+ creditData?: CreditData;
59
+ }
60
+ interface UpdateCreditResponse {
61
+ /** Updated credit status after the change */
62
+ creditData?: CreditData;
63
+ }
64
+ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
65
+ /** Emitted on a meta site creation. */
66
+ siteCreated?: SiteCreated;
67
+ /** Emitted on a meta site transfer completion. */
68
+ siteTransferred?: SiteTransferred;
69
+ /** Emitted on a meta site deletion. */
70
+ siteDeleted?: SiteDeleted;
71
+ /** Emitted on a meta site restoration. */
72
+ siteUndeleted?: SiteUndeleted;
73
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
74
+ sitePublished?: SitePublished;
75
+ /** Emitted on a meta site unpublish. */
76
+ siteUnpublished?: SiteUnpublished;
77
+ /** Emitted when meta site is marked as template. */
78
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
79
+ /** Emitted when meta site is marked as a WixSite. */
80
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
81
+ /** Emitted when an application is provisioned (installed). */
82
+ serviceProvisioned?: ServiceProvisioned;
83
+ /** Emitted when an application is removed (uninstalled). */
84
+ serviceRemoved?: ServiceRemoved;
85
+ /** Emitted when meta site name (URL slug) is changed. */
86
+ siteRenamedPayload?: SiteRenamed;
87
+ /** Emitted when meta site was permanently deleted. */
88
+ hardDeleted?: SiteHardDeleted;
89
+ /** Emitted on a namespace change. */
90
+ namespaceChanged?: NamespaceChanged;
91
+ /** Emitted when Studio is attached. */
92
+ studioAssigned?: StudioAssigned;
93
+ /** Emitted when Studio is detached. */
94
+ studioUnassigned?: StudioUnassigned;
95
+ /**
96
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
97
+ * the actual URL.
98
+ *
99
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
100
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
101
+ */
102
+ urlChanged?: SiteUrlChanged;
103
+ /** Site is marked as PurgedExternally */
104
+ sitePurgedExternally?: SitePurgedExternally;
105
+ /** Emitted when Odeditor is attached. */
106
+ odeditorAssigned?: OdeditorAssigned;
107
+ /** Emitted when Odeditor is detached. */
108
+ odeditorUnassigned?: OdeditorUnassigned;
109
+ /** Emitted when Picasso is attached. */
110
+ picassoAssigned?: PicassoAssigned;
111
+ /** Emitted when Picasso is detached. */
112
+ picassoUnassigned?: PicassoUnassigned;
113
+ /**
114
+ * A meta site id.
115
+ * @format GUID
116
+ */
117
+ metaSiteId?: string;
118
+ /** A meta site version. Monotonically increasing. */
119
+ version?: string;
120
+ /** A timestamp of the event. */
121
+ timestamp?: string;
122
+ /**
123
+ * TODO(meta-site): Change validation once validations are disabled for consumers
124
+ * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
125
+ * @maxSize 4000
126
+ */
127
+ assets?: Asset[];
128
+ }
129
+ /** @oneof */
130
+ interface MetaSiteSpecialEventPayloadOneOf {
131
+ /** Emitted on a meta site creation. */
132
+ siteCreated?: SiteCreated;
133
+ /** Emitted on a meta site transfer completion. */
134
+ siteTransferred?: SiteTransferred;
135
+ /** Emitted on a meta site deletion. */
136
+ siteDeleted?: SiteDeleted;
137
+ /** Emitted on a meta site restoration. */
138
+ siteUndeleted?: SiteUndeleted;
139
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
140
+ sitePublished?: SitePublished;
141
+ /** Emitted on a meta site unpublish. */
142
+ siteUnpublished?: SiteUnpublished;
143
+ /** Emitted when meta site is marked as template. */
144
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
145
+ /** Emitted when meta site is marked as a WixSite. */
146
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
147
+ /** Emitted when an application is provisioned (installed). */
148
+ serviceProvisioned?: ServiceProvisioned;
149
+ /** Emitted when an application is removed (uninstalled). */
150
+ serviceRemoved?: ServiceRemoved;
151
+ /** Emitted when meta site name (URL slug) is changed. */
152
+ siteRenamedPayload?: SiteRenamed;
153
+ /** Emitted when meta site was permanently deleted. */
154
+ hardDeleted?: SiteHardDeleted;
155
+ /** Emitted on a namespace change. */
156
+ namespaceChanged?: NamespaceChanged;
157
+ /** Emitted when Studio is attached. */
158
+ studioAssigned?: StudioAssigned;
159
+ /** Emitted when Studio is detached. */
160
+ studioUnassigned?: StudioUnassigned;
161
+ /**
162
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
163
+ * the actual URL.
164
+ *
165
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
166
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
167
+ */
168
+ urlChanged?: SiteUrlChanged;
169
+ /** Site is marked as PurgedExternally */
170
+ sitePurgedExternally?: SitePurgedExternally;
171
+ /** Emitted when Odeditor is attached. */
172
+ odeditorAssigned?: OdeditorAssigned;
173
+ /** Emitted when Odeditor is detached. */
174
+ odeditorUnassigned?: OdeditorUnassigned;
175
+ /** Emitted when Picasso is attached. */
176
+ picassoAssigned?: PicassoAssigned;
177
+ /** Emitted when Picasso is detached. */
178
+ picassoUnassigned?: PicassoUnassigned;
179
+ }
180
+ interface Asset {
181
+ /**
182
+ * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
183
+ * @maxLength 36
184
+ */
185
+ appDefId?: string;
186
+ /**
187
+ * An instance id. For legacy reasons may be UUID or a string.
188
+ * @maxLength 200
189
+ */
190
+ instanceId?: string;
191
+ /** An application state. */
192
+ state?: StateWithLiterals;
193
+ }
194
+ declare enum State {
195
+ UNKNOWN = "UNKNOWN",
196
+ ENABLED = "ENABLED",
197
+ DISABLED = "DISABLED",
198
+ PENDING = "PENDING",
199
+ DEMO = "DEMO"
200
+ }
201
+ /** @enumType */
202
+ type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
203
+ interface SiteCreated {
204
+ /**
205
+ * A template identifier (empty if not created from a template).
206
+ * @maxLength 36
207
+ */
208
+ originTemplateId?: string;
209
+ /**
210
+ * An account id of the owner.
211
+ * @format GUID
212
+ */
213
+ ownerId?: string;
214
+ /** A context in which meta site was created. */
215
+ context?: SiteCreatedContextWithLiterals;
216
+ /**
217
+ * A meta site id from which this site was created.
218
+ *
219
+ * In case of a creation from a template it's a template id.
220
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
221
+ * @format GUID
222
+ */
223
+ originMetaSiteId?: string | null;
224
+ /**
225
+ * A meta site name (URL slug).
226
+ * @maxLength 20
227
+ */
228
+ siteName?: string;
229
+ /** A namespace. */
230
+ namespace?: NamespaceWithLiterals;
231
+ }
232
+ declare enum SiteCreatedContext {
233
+ /** A valid option, we don't expose all reasons why site might be created. */
234
+ OTHER = "OTHER",
235
+ /** A meta site was created from template. */
236
+ FROM_TEMPLATE = "FROM_TEMPLATE",
237
+ /** A meta site was created by copying of the transfferred meta site. */
238
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
239
+ /** A copy of existing meta site. */
240
+ DUPLICATE = "DUPLICATE",
241
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
242
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
243
+ /** deprecated A meta site was created for Flash editor. */
244
+ FLASH = "FLASH"
245
+ }
246
+ /** @enumType */
247
+ type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
248
+ declare enum Namespace {
249
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
250
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
251
+ WIX = "WIX",
252
+ /** 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. */
253
+ SHOUT_OUT = "SHOUT_OUT",
254
+ /** 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. */
255
+ ALBUMS = "ALBUMS",
256
+ /** 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. */
257
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
258
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
259
+ HOTELS = "HOTELS",
260
+ /** 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. */
261
+ CLUBS = "CLUBS",
262
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
263
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
264
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
265
+ DEV_SITE = "DEV_SITE",
266
+ /** 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. */
267
+ LOGOS = "LOGOS",
268
+ /** 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. */
269
+ VIDEO_MAKER = "VIDEO_MAKER",
270
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
271
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
272
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
273
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
274
+ /**
275
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
276
+ *
277
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
278
+ */
279
+ HTML_DRAFT = "HTML_DRAFT",
280
+ /**
281
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
282
+ * Will be accessible from Site List and will not have a website app.
283
+ * Once the user attaches a site, the site will become a regular wixsite.
284
+ */
285
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
286
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
287
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
288
+ /** It is to be used in the Business First efforts. */
289
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
290
+ /** Bookings business flow with no site. */
291
+ ANYWHERE = "ANYWHERE",
292
+ /** Namespace for Headless Backoffice with no editor */
293
+ HEADLESS = "HEADLESS",
294
+ /**
295
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
296
+ * The site will be used for account level CSM feature for enterprise
297
+ */
298
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
299
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
300
+ RISE = "RISE",
301
+ /**
302
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
303
+ * There's a blank site behind the scene but it's blank).
304
+ * The Mobile company will be the owner of this namespace.
305
+ */
306
+ BRANDED_FIRST = "BRANDED_FIRST",
307
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
308
+ NOWNIA = "NOWNIA",
309
+ /**
310
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
311
+ * The Partners company owns this namespace.
312
+ */
313
+ UGC_TEMPLATE = "UGC_TEMPLATE",
314
+ /** Codux Headless Sites */
315
+ CODUX = "CODUX",
316
+ /** Bobb - AI Design Creator. */
317
+ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
318
+ /**
319
+ * Shared Blog Site is a unique single site across Enterprise account,
320
+ * This site will hold all Blog posts related to the Marketing product.
321
+ */
322
+ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
323
+ /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
324
+ STANDALONE_FORMS = "STANDALONE_FORMS",
325
+ /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
326
+ STANDALONE_EVENTS = "STANDALONE_EVENTS",
327
+ /** MIMIR - Siteless account for MIMIR Ai Job runner. */
328
+ MIMIR = "MIMIR",
329
+ /** Wix Twins platform. */
330
+ TWINS = "TWINS",
331
+ /** Wix Nano. */
332
+ NANO = "NANO"
333
+ }
334
+ /** @enumType */
335
+ 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' | 'TWINS' | 'NANO';
336
+ /** Site transferred to another user. */
337
+ interface SiteTransferred {
338
+ /**
339
+ * A previous owner id (user that transfers meta site).
340
+ * @format GUID
341
+ */
342
+ oldOwnerId?: string;
343
+ /**
344
+ * A new owner id (user that accepts meta site).
345
+ * @format GUID
346
+ */
347
+ newOwnerId?: string;
348
+ }
349
+ /** Soft deletion of the meta site. Could be restored. */
350
+ interface SiteDeleted {
351
+ /** A deletion context. */
352
+ deleteContext?: DeleteContext;
353
+ }
354
+ interface DeleteContext {
355
+ /** When the meta site was deleted. */
356
+ dateDeleted?: Date | null;
357
+ /** A status. */
358
+ deleteStatus?: DeleteStatusWithLiterals;
359
+ /**
360
+ * A reason (flow).
361
+ * @maxLength 255
362
+ */
363
+ deleteOrigin?: string;
364
+ /**
365
+ * A service that deleted it.
366
+ * @maxLength 255
367
+ */
368
+ initiatorId?: string | null;
369
+ }
370
+ declare enum DeleteStatus {
371
+ UNKNOWN = "UNKNOWN",
372
+ TRASH = "TRASH",
373
+ DELETED = "DELETED",
374
+ PENDING_PURGE = "PENDING_PURGE",
375
+ PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
376
+ }
377
+ /** @enumType */
378
+ type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
379
+ /** Restoration of the meta site. */
380
+ interface SiteUndeleted {
381
+ }
382
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
383
+ interface SitePublished {
384
+ }
385
+ interface SiteUnpublished {
386
+ /**
387
+ * A list of URLs previously associated with the meta site.
388
+ * @maxLength 4000
389
+ * @maxSize 10000
390
+ */
391
+ urls?: string[];
392
+ }
393
+ interface SiteMarkedAsTemplate {
394
+ }
395
+ interface SiteMarkedAsWixSite {
396
+ }
397
+ /**
398
+ * Represents a service provisioned a site.
399
+ *
400
+ * Note on `origin_instance_id`:
401
+ * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
402
+ * This is because of the following scenario:
403
+ *
404
+ * Imagine you have a template where a third-party application (TPA) includes some stub data,
405
+ * such as a product catalog. When you create a site from this template, you inherit this
406
+ * default product catalog. However, if the template's product catalog is modified,
407
+ * your site will retain the catalog as it was at the time of site creation. This ensures that
408
+ * your site remains consistent with what you initially received and does not include any
409
+ * changes made to the original template afterward.
410
+ * To ensure this, the TPA on the template gets a new instance_id.
411
+ */
412
+ interface ServiceProvisioned {
413
+ /**
414
+ * Either UUID or EmbeddedServiceType.
415
+ * @maxLength 36
416
+ */
417
+ appDefId?: string;
418
+ /**
419
+ * Not only UUID. Something here could be something weird.
420
+ * @maxLength 36
421
+ */
422
+ instanceId?: string;
423
+ /**
424
+ * An instance id from which this instance is originated.
425
+ * @maxLength 36
426
+ */
427
+ originInstanceId?: string;
428
+ /**
429
+ * A version.
430
+ * @maxLength 500
431
+ */
432
+ version?: string | null;
433
+ /**
434
+ * The origin meta site id
435
+ * @format GUID
436
+ */
437
+ originMetaSiteId?: string | null;
438
+ }
439
+ interface ServiceRemoved {
440
+ /**
441
+ * Either UUID or EmbeddedServiceType.
442
+ * @maxLength 36
443
+ */
444
+ appDefId?: string;
445
+ /**
446
+ * Not only UUID. Something here could be something weird.
447
+ * @maxLength 36
448
+ */
449
+ instanceId?: string;
450
+ /**
451
+ * A version.
452
+ * @maxLength 500
453
+ */
454
+ version?: string | null;
455
+ }
456
+ /** Rename of the site. Meaning, free public url has been changed as well. */
457
+ interface SiteRenamed {
458
+ /**
459
+ * A new meta site name (URL slug).
460
+ * @maxLength 20
461
+ */
462
+ newSiteName?: string;
463
+ /**
464
+ * A previous meta site name (URL slug).
465
+ * @maxLength 255
466
+ */
467
+ oldSiteName?: string;
468
+ }
469
+ /**
470
+ * Hard deletion of the meta site.
471
+ *
472
+ * Could not be restored. Therefore it's desirable to cleanup data.
473
+ */
474
+ interface SiteHardDeleted {
475
+ /** A deletion context. */
476
+ deleteContext?: DeleteContext;
477
+ }
478
+ interface NamespaceChanged {
479
+ /** A previous namespace. */
480
+ oldNamespace?: NamespaceWithLiterals;
481
+ /** A new namespace. */
482
+ newNamespace?: NamespaceWithLiterals;
483
+ }
484
+ /** Assigned Studio editor */
485
+ interface StudioAssigned {
486
+ }
487
+ /** Unassigned Studio editor */
488
+ interface StudioUnassigned {
489
+ }
490
+ /**
491
+ * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
492
+ *
493
+ * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
494
+ * with sites and its urls, you need to listen to another topic/event. Read about it:
495
+ *
496
+ * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
497
+ */
498
+ interface SiteUrlChanged {
499
+ }
500
+ /**
501
+ * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
502
+ * Consumed by other teams to remove relevant data.
503
+ */
504
+ interface SitePurgedExternally {
505
+ /**
506
+ * @maxLength 2048
507
+ * @maxSize 100
508
+ * @deprecated
509
+ * @targetRemovalDate 2025-04-15
510
+ */
511
+ appDefId?: string[];
512
+ }
513
+ /** Assigned Odeditor */
514
+ interface OdeditorAssigned {
515
+ }
516
+ /** Unassigned Odeditor */
517
+ interface OdeditorUnassigned {
518
+ }
519
+ /** Assigned Picasso editor */
520
+ interface PicassoAssigned {
521
+ }
522
+ /** Unassigned Picasso */
523
+ interface PicassoUnassigned {
524
+ }
525
+ interface Empty {
526
+ }
527
+ /** @docsIgnore */
528
+ type CheckSufficientCreditsApplicationErrors = {
529
+ code?: 'FEATURE_NOT_FOUND';
530
+ description?: string;
531
+ data?: Record<string, any>;
532
+ };
48
533
 
49
534
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
50
535
  getUrl: (context: any) => string;
@@ -59,4 +544,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
59
544
  declare function getCreditData(): __PublicMethodMetaInfo<'GET', {}, GetCreditDataRequest$1, GetCreditDataRequest, GetCreditDataResponse$1, GetCreditDataResponse>;
60
545
  declare function checkSufficientCredits(): __PublicMethodMetaInfo<'POST', {}, CheckSufficientCreditsRequest$1, CheckSufficientCreditsRequest, CheckSufficientCreditsResponse$1, CheckSufficientCreditsResponse>;
61
546
 
62
- export { type __PublicMethodMetaInfo, checkSufficientCredits, getCreditData };
547
+ export { type Asset as AssetOriginal, type CheckSufficientCreditsApplicationErrors as CheckSufficientCreditsApplicationErrorsOriginal, type CheckSufficientCreditsRequest as CheckSufficientCreditsRequestOriginal, type CheckSufficientCreditsResponse as CheckSufficientCreditsResponseOriginal, type CreditData as CreditDataOriginal, type CreditDataTypeOneOf as CreditDataTypeOneOfOriginal, type DeleteContext as DeleteContextOriginal, DeleteStatus as DeleteStatusOriginal, type DeleteStatusWithLiterals as DeleteStatusWithLiteralsOriginal, type Empty as EmptyOriginal, type GetCreditDataRequest as GetCreditDataRequestOriginal, type GetCreditDataResponse as GetCreditDataResponseOriginal, type LimitedQuota as LimitedQuotaOriginal, type MetaSiteSpecialEvent as MetaSiteSpecialEventOriginal, type MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOfOriginal, type NamespaceChanged as NamespaceChangedOriginal, Namespace as NamespaceOriginal, type NamespaceWithLiterals as NamespaceWithLiteralsOriginal, type OdeditorAssigned as OdeditorAssignedOriginal, type OdeditorUnassigned as OdeditorUnassignedOriginal, type PicassoAssigned as PicassoAssignedOriginal, type PicassoUnassigned as PicassoUnassignedOriginal, Quota as QuotaOriginal, type QuotaWithLiterals as QuotaWithLiteralsOriginal, type ReportCreditUsageRequest as ReportCreditUsageRequestOriginal, type ReportCreditUsageResponse as ReportCreditUsageResponseOriginal, type ServiceProvisioned as ServiceProvisionedOriginal, type ServiceRemoved as ServiceRemovedOriginal, SiteCreatedContext as SiteCreatedContextOriginal, type SiteCreatedContextWithLiterals as SiteCreatedContextWithLiteralsOriginal, type SiteCreated as SiteCreatedOriginal, type SiteDeleted as SiteDeletedOriginal, type SiteHardDeleted as SiteHardDeletedOriginal, type SiteMarkedAsTemplate as SiteMarkedAsTemplateOriginal, type SiteMarkedAsWixSite as SiteMarkedAsWixSiteOriginal, type SitePublished as SitePublishedOriginal, type SitePurgedExternally as SitePurgedExternallyOriginal, type SiteRenamed as SiteRenamedOriginal, type SiteTransferred as SiteTransferredOriginal, type SiteUndeleted as SiteUndeletedOriginal, type SiteUnpublished as SiteUnpublishedOriginal, type SiteUrlChanged as SiteUrlChangedOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type StudioAssigned as StudioAssignedOriginal, type StudioUnassigned as StudioUnassignedOriginal, type UpdateCreditRequest as UpdateCreditRequestOriginal, type UpdateCreditResponse as UpdateCreditResponseOriginal, type __PublicMethodMetaInfo, checkSufficientCredits, getCreditData };
@@ -20,6 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ DeleteStatusOriginal: () => DeleteStatus,
24
+ NamespaceOriginal: () => Namespace,
25
+ QuotaOriginal: () => Quota,
26
+ SiteCreatedContextOriginal: () => SiteCreatedContext,
27
+ StateOriginal: () => State,
23
28
  checkSufficientCredits: () => checkSufficientCredits2,
24
29
  getCreditData: () => getCreditData2
25
30
  });
@@ -83,6 +88,9 @@ function getCreditData(payload) {
83
88
  method: "GET",
84
89
  methodFqn: "wix.multilingual.machine.v1.TranslationCredits.GetCreditData",
85
90
  packageName: PACKAGE_NAME,
91
+ migrationOptions: {
92
+ optInTransformResponse: true
93
+ },
86
94
  url: resolveWixMultilingualMachineV1TranslationCreditsUrl({
87
95
  protoPath: "/v1/credit",
88
96
  data: payload,
@@ -101,6 +109,9 @@ function checkSufficientCredits(payload) {
101
109
  method: "POST",
102
110
  methodFqn: "wix.multilingual.machine.v1.TranslationCredits.CheckSufficientCredits",
103
111
  packageName: PACKAGE_NAME,
112
+ migrationOptions: {
113
+ optInTransformResponse: true
114
+ },
104
115
  url: resolveWixMultilingualMachineV1TranslationCreditsUrl({
105
116
  protoPath: "/v1/credit/is-eligible",
106
117
  data: payload,
@@ -113,6 +124,73 @@ function checkSufficientCredits(payload) {
113
124
  return __checkSufficientCredits;
114
125
  }
115
126
 
127
+ // src/multilingual-machine-v1-credit-data-translation-credits.types.ts
128
+ var Quota = /* @__PURE__ */ ((Quota2) => {
129
+ Quota2["UNKNOWN"] = "UNKNOWN";
130
+ Quota2["LIMITED"] = "LIMITED";
131
+ return Quota2;
132
+ })(Quota || {});
133
+ var State = /* @__PURE__ */ ((State2) => {
134
+ State2["UNKNOWN"] = "UNKNOWN";
135
+ State2["ENABLED"] = "ENABLED";
136
+ State2["DISABLED"] = "DISABLED";
137
+ State2["PENDING"] = "PENDING";
138
+ State2["DEMO"] = "DEMO";
139
+ return State2;
140
+ })(State || {});
141
+ var SiteCreatedContext = /* @__PURE__ */ ((SiteCreatedContext2) => {
142
+ SiteCreatedContext2["OTHER"] = "OTHER";
143
+ SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
144
+ SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
145
+ SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
146
+ SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
147
+ SiteCreatedContext2["FLASH"] = "FLASH";
148
+ return SiteCreatedContext2;
149
+ })(SiteCreatedContext || {});
150
+ var Namespace = /* @__PURE__ */ ((Namespace2) => {
151
+ Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
152
+ Namespace2["WIX"] = "WIX";
153
+ Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
154
+ Namespace2["ALBUMS"] = "ALBUMS";
155
+ Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
156
+ Namespace2["HOTELS"] = "HOTELS";
157
+ Namespace2["CLUBS"] = "CLUBS";
158
+ Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
159
+ Namespace2["DEV_SITE"] = "DEV_SITE";
160
+ Namespace2["LOGOS"] = "LOGOS";
161
+ Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
162
+ Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
163
+ Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
164
+ Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
165
+ Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
166
+ Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
167
+ Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
168
+ Namespace2["ANYWHERE"] = "ANYWHERE";
169
+ Namespace2["HEADLESS"] = "HEADLESS";
170
+ Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
171
+ Namespace2["RISE"] = "RISE";
172
+ Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
173
+ Namespace2["NOWNIA"] = "NOWNIA";
174
+ Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
175
+ Namespace2["CODUX"] = "CODUX";
176
+ Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
177
+ Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
178
+ Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
179
+ Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
180
+ Namespace2["MIMIR"] = "MIMIR";
181
+ Namespace2["TWINS"] = "TWINS";
182
+ Namespace2["NANO"] = "NANO";
183
+ return Namespace2;
184
+ })(Namespace || {});
185
+ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
186
+ DeleteStatus2["UNKNOWN"] = "UNKNOWN";
187
+ DeleteStatus2["TRASH"] = "TRASH";
188
+ DeleteStatus2["DELETED"] = "DELETED";
189
+ DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
190
+ DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
191
+ return DeleteStatus2;
192
+ })(DeleteStatus || {});
193
+
116
194
  // src/multilingual-machine-v1-credit-data-translation-credits.meta.ts
117
195
  function getCreditData2() {
118
196
  const payload = {};
@@ -154,6 +232,11 @@ function checkSufficientCredits2() {
154
232
  }
155
233
  // Annotate the CommonJS export names for ESM import in node:
156
234
  0 && (module.exports = {
235
+ DeleteStatusOriginal,
236
+ NamespaceOriginal,
237
+ QuotaOriginal,
238
+ SiteCreatedContextOriginal,
239
+ StateOriginal,
157
240
  checkSufficientCredits,
158
241
  getCreditData
159
242
  });