@wix/multilingual 1.0.17 → 1.0.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/multilingual",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,10 +18,10 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/multilingual_machine-translation": "1.0.17",
22
- "@wix/multilingual_site-translator": "1.0.5",
23
- "@wix/multilingual_translation-contents": "1.0.4",
24
- "@wix/multilingual_translation-schemas": "1.0.5"
21
+ "@wix/multilingual_machine-translation": "1.0.19",
22
+ "@wix/multilingual_site-translator": "1.0.6",
23
+ "@wix/multilingual_translation-contents": "1.0.5",
24
+ "@wix/multilingual_translation-schemas": "1.0.6"
25
25
  },
26
26
  "devDependencies": {
27
27
  "glob": "^10.4.1",
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "a9851e3b4aed9b6a7fa9b9f56de9ab22f5d1d63f0f8f7f4263447d09"
48
+ "falconPackageHash": "0002ff548059deec06038dce4ca9bead5801648dc8df928128d78e91"
49
49
  }
@@ -413,7 +413,10 @@ interface FileData$1 {
413
413
  name?: string | null;
414
414
  /** File type. */
415
415
  type?: string | null;
416
- /** File size in KB. */
416
+ /**
417
+ * Use `sizeInKb` instead.
418
+ * @deprecated
419
+ */
417
420
  size?: number | null;
418
421
  /** Settings for PDF files. */
419
422
  pdfSettings?: PDFSettings$1;
@@ -421,6 +424,8 @@ interface FileData$1 {
421
424
  mimeType?: string | null;
422
425
  /** File path. */
423
426
  path?: string | null;
427
+ /** File size in KB. */
428
+ sizeInKb?: string | null;
424
429
  }
425
430
  declare enum ViewMode$1 {
426
431
  /** No PDF view */
@@ -2760,7 +2765,10 @@ interface FileData {
2760
2765
  name?: string | null;
2761
2766
  /** File type. */
2762
2767
  type?: string | null;
2763
- /** File size in KB. */
2768
+ /**
2769
+ * Use `sizeInKb` instead.
2770
+ * @deprecated
2771
+ */
2764
2772
  size?: number | null;
2765
2773
  /** Settings for PDF files. */
2766
2774
  pdfSettings?: PDFSettings;
@@ -2768,6 +2776,8 @@ interface FileData {
2768
2776
  mimeType?: string | null;
2769
2777
  /** File path. */
2770
2778
  path?: string | null;
2779
+ /** File size in KB. */
2780
+ sizeInKb?: string | null;
2771
2781
  }
2772
2782
  declare enum ViewMode {
2773
2783
  /** No PDF view */
@@ -4170,7 +4180,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
4170
4180
  slug?: string;
4171
4181
  /** ID of the entity associated with the event. */
4172
4182
  entityId?: string;
4173
- /** Event timestamp. */
4183
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
4174
4184
  eventTime?: Date;
4175
4185
  /**
4176
4186
  * Whether the event was triggered as a result of a privacy regulation application
@@ -4353,7 +4363,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
4353
4363
  slug?: string;
4354
4364
  /** ID of the entity associated with the event. */
4355
4365
  entityId?: string;
4356
- /** Event timestamp. */
4366
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
4357
4367
  eventTime?: Date;
4358
4368
  /**
4359
4369
  * Whether the event was triggered as a result of a privacy regulation application
@@ -413,7 +413,10 @@ interface FileData$1 {
413
413
  name?: string | null;
414
414
  /** File type. */
415
415
  type?: string | null;
416
- /** File size in KB. */
416
+ /**
417
+ * Use `sizeInKb` instead.
418
+ * @deprecated
419
+ */
417
420
  size?: number | null;
418
421
  /** Settings for PDF files. */
419
422
  pdfSettings?: PDFSettings$1;
@@ -421,6 +424,8 @@ interface FileData$1 {
421
424
  mimeType?: string | null;
422
425
  /** File path. */
423
426
  path?: string | null;
427
+ /** File size in KB. */
428
+ sizeInKb?: string | null;
424
429
  }
425
430
  declare enum ViewMode$1 {
426
431
  /** No PDF view */
@@ -1890,6 +1895,7 @@ interface BulkMachineTranslateOptions {
1890
1895
  contentToTranslate?: TranslatableContent[];
1891
1896
  }
1892
1897
 
1898
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
1893
1899
  interface HttpClient {
1894
1900
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1895
1901
  fetchWithAuth: typeof fetch;
@@ -1914,6 +1920,7 @@ type APIMetadata = {
1914
1920
  entityFqdn?: string;
1915
1921
  packageName?: string;
1916
1922
  };
1923
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1917
1924
  type EventDefinition<Payload = unknown, Type extends string = string> = {
1918
1925
  __type: 'event-definition';
1919
1926
  type: Type;
@@ -1922,6 +1929,8 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
1922
1929
  __payload: Payload;
1923
1930
  };
1924
1931
  declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1932
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
1933
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
1925
1934
 
1926
1935
  declare global {
1927
1936
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -1930,11 +1939,10 @@ declare global {
1930
1939
  }
1931
1940
  }
1932
1941
 
1933
- declare const __metadata$3: {
1934
- PACKAGE_NAME: string;
1935
- };
1936
- declare function machineTranslate(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options: MachineTranslateOptions) => Promise<MachineTranslateResponse & MachineTranslateResponseNonNullableFields>;
1937
- declare function bulkMachineTranslate(httpClient: HttpClient): (sourceLanguage: SupportedLanguage, options?: BulkMachineTranslateOptions) => Promise<BulkMachineTranslateResponse & BulkMachineTranslateResponseNonNullableFields>;
1942
+ declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1943
+
1944
+ declare const machineTranslate: ReturnType<typeof createRESTModule$3<typeof publicMachineTranslate>>;
1945
+ declare const bulkMachineTranslate: ReturnType<typeof createRESTModule$3<typeof publicBulkMachineTranslate>>;
1938
1946
 
1939
1947
  type index_d$3_BulkMachineTranslateOptions = BulkMachineTranslateOptions;
1940
1948
  type index_d$3_BulkMachineTranslateRequest = BulkMachineTranslateRequest;
@@ -1957,7 +1965,7 @@ type index_d$3_UnknownFormatError = UnknownFormatError;
1957
1965
  declare const index_d$3_bulkMachineTranslate: typeof bulkMachineTranslate;
1958
1966
  declare const index_d$3_machineTranslate: typeof machineTranslate;
1959
1967
  declare namespace index_d$3 {
1960
- export { Alignment$1 as Alignment, type AnchorData$1 as AnchorData, type AppEmbedData$1 as AppEmbedData, type AppEmbedDataAppDataOneOf$1 as AppEmbedDataAppDataOneOf, AppType$1 as AppType, type ApplicationError$1 as ApplicationError, type AudioData$1 as AudioData, type Background$1 as Background, type BackgroundBackgroundOneOf$1 as BackgroundBackgroundOneOf, BackgroundType$1 as BackgroundType, type BlockquoteData$1 as BlockquoteData, type BookingData$1 as BookingData, type Border$1 as Border, type BorderColors$1 as BorderColors, type BulkActionMetadata$1 as BulkActionMetadata, type index_d$3_BulkMachineTranslateOptions as BulkMachineTranslateOptions, type index_d$3_BulkMachineTranslateRequest as BulkMachineTranslateRequest, type index_d$3_BulkMachineTranslateResponse as BulkMachineTranslateResponse, type index_d$3_BulkMachineTranslateResponseNonNullableFields as BulkMachineTranslateResponseNonNullableFields, type index_d$3_BulkTranslateResult as BulkTranslateResult, type BulletedListData$1 as BulletedListData, type ButtonData$1 as ButtonData, type CellStyle$1 as CellStyle, type CodeBlockData$1 as CodeBlockData, type CollapsibleListData$1 as CollapsibleListData, type ColorData$1 as ColorData, type Colors$1 as Colors, Crop$1 as Crop, type Decoration$1 as Decoration, type DecorationDataOneOf$1 as DecorationDataOneOf, DecorationType$1 as DecorationType, type Design$1 as Design, type Dimensions$1 as Dimensions, Direction$1 as Direction, type DividerData$1 as DividerData, type DocumentStyle$1 as DocumentStyle, type EmbedData$1 as EmbedData, type EventData$1 as EventData, type FileData$1 as FileData, type FileSource$1 as FileSource, type FileSourceDataOneOf$1 as FileSourceDataOneOf, type FontSizeData$1 as FontSizeData, FontType$1 as FontType, index_d$3_Format as Format, type GIF$1 as GIF, type GIFData$1 as GIFData, type GalleryData$1 as GalleryData, type GalleryOptions$1 as GalleryOptions, type Gradient$1 as Gradient, type HTMLData$1 as HTMLData, type HTMLDataDataOneOf$1 as HTMLDataDataOneOf, type HeadingData$1 as HeadingData, type Height$1 as Height, type Image$1 as Image, type ImageData$1 as ImageData, InitialExpandedItems$1 as InitialExpandedItems, type Item$1 as Item, type ItemDataOneOf$1 as ItemDataOneOf, type ItemMetadata$1 as ItemMetadata, type ItemStyle$1 as ItemStyle, type Layout$1 as Layout, LayoutType$1 as LayoutType, LineStyle$1 as LineStyle, type Link$1 as Link, type LinkData$1 as LinkData, type LinkDataOneOf$1 as LinkDataOneOf, type LinkPreviewData$1 as LinkPreviewData, type ListValue$1 as ListValue, type index_d$3_MachineTranslateOptions as MachineTranslateOptions, type index_d$3_MachineTranslateRequest as MachineTranslateRequest, type index_d$3_MachineTranslateResponse as MachineTranslateResponse, type index_d$3_MachineTranslateResponseNonNullableFields as MachineTranslateResponseNonNullableFields, type MapData$1 as MapData, type MapSettings$1 as MapSettings, MapType$1 as MapType, type Media$1 as Media, type MentionData$1 as MentionData, type Metadata$1 as Metadata, type Node$1 as Node, type NodeDataOneOf$1 as NodeDataOneOf, type NodeStyle$1 as NodeStyle, NodeType$1 as NodeType, type index_d$3_NotEnoughCreditsError as NotEnoughCreditsError, NullValue$1 as NullValue, type Oembed$1 as Oembed, type Option$1 as Option, type OptionDesign$1 as OptionDesign, type OptionLayout$1 as OptionLayout, type OrderedListData$1 as OrderedListData, Orientation$1 as Orientation, type PDFSettings$1 as PDFSettings, type ParagraphData$1 as ParagraphData, type Permissions$1 as Permissions, type PlaybackOptions$1 as PlaybackOptions, type PluginContainerData$1 as PluginContainerData, PluginContainerDataAlignment$1 as PluginContainerDataAlignment, type PluginContainerDataWidth$1 as PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf$1 as PluginContainerDataWidthDataOneOf, type Poll$1 as Poll, type PollData$1 as PollData, type PollDataLayout$1 as PollDataLayout, type PollDesign$1 as PollDesign, type PollLayout$1 as PollLayout, PollLayoutDirection$1 as PollLayoutDirection, PollLayoutType$1 as PollLayoutType, type Rel$1 as Rel, type RichContent$1 as RichContent, type Settings$1 as Settings, Source$1 as Source, type Spoiler$1 as Spoiler, type SpoilerData$1 as SpoilerData, type Styles$1 as Styles, index_d$3_SupportedLanguage as SupportedLanguage, type TableCellData$1 as TableCellData, type TableData$1 as TableData, Target$1 as Target, TextAlignment$1 as TextAlignment, type TextData$1 as TextData, type TextNodeStyle$1 as TextNodeStyle, type TextStyle$1 as TextStyle, type index_d$3_TextTooLongError as TextTooLongError, type Thumbnails$1 as Thumbnails, ThumbnailsAlignment$1 as ThumbnailsAlignment, type index_d$3_TranslatableContent as TranslatableContent, type index_d$3_TranslatableContentContentOneOf as TranslatableContentContentOneOf, Type$1 as Type, type index_d$3_UnknownFormatError as UnknownFormatError, VerticalAlignment$1 as VerticalAlignment, type Video$1 as Video, type VideoData$1 as VideoData, ViewMode$1 as ViewMode, ViewRole$1 as ViewRole, VoteRole$1 as VoteRole, Width$1 as Width, WidthType$1 as WidthType, __metadata$3 as __metadata, index_d$3_bulkMachineTranslate as bulkMachineTranslate, index_d$3_machineTranslate as machineTranslate };
1968
+ export { Alignment$1 as Alignment, type AnchorData$1 as AnchorData, type AppEmbedData$1 as AppEmbedData, type AppEmbedDataAppDataOneOf$1 as AppEmbedDataAppDataOneOf, AppType$1 as AppType, type ApplicationError$1 as ApplicationError, type AudioData$1 as AudioData, type Background$1 as Background, type BackgroundBackgroundOneOf$1 as BackgroundBackgroundOneOf, BackgroundType$1 as BackgroundType, type BlockquoteData$1 as BlockquoteData, type BookingData$1 as BookingData, type Border$1 as Border, type BorderColors$1 as BorderColors, type BulkActionMetadata$1 as BulkActionMetadata, type index_d$3_BulkMachineTranslateOptions as BulkMachineTranslateOptions, type index_d$3_BulkMachineTranslateRequest as BulkMachineTranslateRequest, type index_d$3_BulkMachineTranslateResponse as BulkMachineTranslateResponse, type index_d$3_BulkMachineTranslateResponseNonNullableFields as BulkMachineTranslateResponseNonNullableFields, type index_d$3_BulkTranslateResult as BulkTranslateResult, type BulletedListData$1 as BulletedListData, type ButtonData$1 as ButtonData, type CellStyle$1 as CellStyle, type CodeBlockData$1 as CodeBlockData, type CollapsibleListData$1 as CollapsibleListData, type ColorData$1 as ColorData, type Colors$1 as Colors, Crop$1 as Crop, type Decoration$1 as Decoration, type DecorationDataOneOf$1 as DecorationDataOneOf, DecorationType$1 as DecorationType, type Design$1 as Design, type Dimensions$1 as Dimensions, Direction$1 as Direction, type DividerData$1 as DividerData, type DocumentStyle$1 as DocumentStyle, type EmbedData$1 as EmbedData, type EventData$1 as EventData, type FileData$1 as FileData, type FileSource$1 as FileSource, type FileSourceDataOneOf$1 as FileSourceDataOneOf, type FontSizeData$1 as FontSizeData, FontType$1 as FontType, index_d$3_Format as Format, type GIF$1 as GIF, type GIFData$1 as GIFData, type GalleryData$1 as GalleryData, type GalleryOptions$1 as GalleryOptions, type Gradient$1 as Gradient, type HTMLData$1 as HTMLData, type HTMLDataDataOneOf$1 as HTMLDataDataOneOf, type HeadingData$1 as HeadingData, type Height$1 as Height, type Image$1 as Image, type ImageData$1 as ImageData, InitialExpandedItems$1 as InitialExpandedItems, type Item$1 as Item, type ItemDataOneOf$1 as ItemDataOneOf, type ItemMetadata$1 as ItemMetadata, type ItemStyle$1 as ItemStyle, type Layout$1 as Layout, LayoutType$1 as LayoutType, LineStyle$1 as LineStyle, type Link$1 as Link, type LinkData$1 as LinkData, type LinkDataOneOf$1 as LinkDataOneOf, type LinkPreviewData$1 as LinkPreviewData, type ListValue$1 as ListValue, type index_d$3_MachineTranslateOptions as MachineTranslateOptions, type index_d$3_MachineTranslateRequest as MachineTranslateRequest, type index_d$3_MachineTranslateResponse as MachineTranslateResponse, type index_d$3_MachineTranslateResponseNonNullableFields as MachineTranslateResponseNonNullableFields, type MapData$1 as MapData, type MapSettings$1 as MapSettings, MapType$1 as MapType, type Media$1 as Media, type MentionData$1 as MentionData, type Metadata$1 as Metadata, type Node$1 as Node, type NodeDataOneOf$1 as NodeDataOneOf, type NodeStyle$1 as NodeStyle, NodeType$1 as NodeType, type index_d$3_NotEnoughCreditsError as NotEnoughCreditsError, NullValue$1 as NullValue, type Oembed$1 as Oembed, type Option$1 as Option, type OptionDesign$1 as OptionDesign, type OptionLayout$1 as OptionLayout, type OrderedListData$1 as OrderedListData, Orientation$1 as Orientation, type PDFSettings$1 as PDFSettings, type ParagraphData$1 as ParagraphData, type Permissions$1 as Permissions, type PlaybackOptions$1 as PlaybackOptions, type PluginContainerData$1 as PluginContainerData, PluginContainerDataAlignment$1 as PluginContainerDataAlignment, type PluginContainerDataWidth$1 as PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf$1 as PluginContainerDataWidthDataOneOf, type Poll$1 as Poll, type PollData$1 as PollData, type PollDataLayout$1 as PollDataLayout, type PollDesign$1 as PollDesign, type PollLayout$1 as PollLayout, PollLayoutDirection$1 as PollLayoutDirection, PollLayoutType$1 as PollLayoutType, type Rel$1 as Rel, type RichContent$1 as RichContent, type Settings$1 as Settings, Source$1 as Source, type Spoiler$1 as Spoiler, type SpoilerData$1 as SpoilerData, type Styles$1 as Styles, index_d$3_SupportedLanguage as SupportedLanguage, type TableCellData$1 as TableCellData, type TableData$1 as TableData, Target$1 as Target, TextAlignment$1 as TextAlignment, type TextData$1 as TextData, type TextNodeStyle$1 as TextNodeStyle, type TextStyle$1 as TextStyle, type index_d$3_TextTooLongError as TextTooLongError, type Thumbnails$1 as Thumbnails, ThumbnailsAlignment$1 as ThumbnailsAlignment, type index_d$3_TranslatableContent as TranslatableContent, type index_d$3_TranslatableContentContentOneOf as TranslatableContentContentOneOf, Type$1 as Type, type index_d$3_UnknownFormatError as UnknownFormatError, VerticalAlignment$1 as VerticalAlignment, type Video$1 as Video, type VideoData$1 as VideoData, ViewMode$1 as ViewMode, ViewRole$1 as ViewRole, VoteRole$1 as VoteRole, Width$1 as Width, WidthType$1 as WidthType, index_d$3_bulkMachineTranslate as bulkMachineTranslate, index_d$3_machineTranslate as machineTranslate };
1961
1969
  }
1962
1970
 
1963
1971
  interface SiteTranslatableProperties {
@@ -2281,11 +2289,10 @@ interface GetSiteTranslatablesPropertiesOptions {
2281
2289
  translatedLanguage?: Locale;
2282
2290
  }
2283
2291
 
2284
- declare const __metadata$2: {
2285
- PACKAGE_NAME: string;
2286
- };
2287
- declare function translateSite(httpClient: HttpClient): (mainLanguage: Locale, options: TranslateSiteOptions) => Promise<void>;
2288
- declare function getSiteTranslatablesProperties(httpClient: HttpClient): (mainLanguage: Locale, options?: GetSiteTranslatablesPropertiesOptions) => Promise<GetSiteTranslatablesPropertiesResponse & GetSiteTranslatablesPropertiesResponseNonNullableFields>;
2292
+ declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2293
+
2294
+ declare const translateSite: ReturnType<typeof createRESTModule$2<typeof publicTranslateSite>>;
2295
+ declare const getSiteTranslatablesProperties: ReturnType<typeof createRESTModule$2<typeof publicGetSiteTranslatablesProperties>>;
2289
2296
 
2290
2297
  type index_d$2_ApplicationTranslatableProperties = ApplicationTranslatableProperties;
2291
2298
  type index_d$2_Flag = Flag;
@@ -2302,7 +2309,7 @@ type index_d$2_TranslateSiteResponse = TranslateSiteResponse;
2302
2309
  declare const index_d$2_getSiteTranslatablesProperties: typeof getSiteTranslatablesProperties;
2303
2310
  declare const index_d$2_translateSite: typeof translateSite;
2304
2311
  declare namespace index_d$2 {
2305
- export { type index_d$2_ApplicationTranslatableProperties as ApplicationTranslatableProperties, index_d$2_Flag as Flag, type index_d$2_GetSiteTranslatablesPropertiesOptions as GetSiteTranslatablesPropertiesOptions, type index_d$2_GetSiteTranslatablesPropertiesRequest as GetSiteTranslatablesPropertiesRequest, type index_d$2_GetSiteTranslatablesPropertiesResponse as GetSiteTranslatablesPropertiesResponse, type index_d$2_GetSiteTranslatablesPropertiesResponseNonNullableFields as GetSiteTranslatablesPropertiesResponseNonNullableFields, type index_d$2_Locale as Locale, type index_d$2_SiteTranslatableProperties as SiteTranslatableProperties, type index_d$2_TranslateSiteOptions as TranslateSiteOptions, type index_d$2_TranslateSiteRequest as TranslateSiteRequest, type index_d$2_TranslateSiteResponse as TranslateSiteResponse, __metadata$2 as __metadata, index_d$2_getSiteTranslatablesProperties as getSiteTranslatablesProperties, index_d$2_translateSite as translateSite };
2312
+ export { type index_d$2_ApplicationTranslatableProperties as ApplicationTranslatableProperties, index_d$2_Flag as Flag, type index_d$2_GetSiteTranslatablesPropertiesOptions as GetSiteTranslatablesPropertiesOptions, type index_d$2_GetSiteTranslatablesPropertiesRequest as GetSiteTranslatablesPropertiesRequest, type index_d$2_GetSiteTranslatablesPropertiesResponse as GetSiteTranslatablesPropertiesResponse, type index_d$2_GetSiteTranslatablesPropertiesResponseNonNullableFields as GetSiteTranslatablesPropertiesResponseNonNullableFields, type index_d$2_Locale as Locale, type index_d$2_SiteTranslatableProperties as SiteTranslatableProperties, type index_d$2_TranslateSiteOptions as TranslateSiteOptions, type index_d$2_TranslateSiteRequest as TranslateSiteRequest, type index_d$2_TranslateSiteResponse as TranslateSiteResponse, index_d$2_getSiteTranslatablesProperties as getSiteTranslatablesProperties, index_d$2_translateSite as translateSite };
2306
2313
  }
2307
2314
 
2308
2315
  interface Content {
@@ -2758,7 +2765,10 @@ interface FileData {
2758
2765
  name?: string | null;
2759
2766
  /** File type. */
2760
2767
  type?: string | null;
2761
- /** File size in KB. */
2768
+ /**
2769
+ * Use `sizeInKb` instead.
2770
+ * @deprecated
2771
+ */
2762
2772
  size?: number | null;
2763
2773
  /** Settings for PDF files. */
2764
2774
  pdfSettings?: PDFSettings;
@@ -2766,6 +2776,8 @@ interface FileData {
2766
2776
  mimeType?: string | null;
2767
2777
  /** File path. */
2768
2778
  path?: string | null;
2779
+ /** File size in KB. */
2780
+ sizeInKb?: string | null;
2769
2781
  }
2770
2782
  declare enum ViewMode {
2771
2783
  /** No PDF view */
@@ -4168,7 +4180,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
4168
4180
  slug?: string;
4169
4181
  /** ID of the entity associated with the event. */
4170
4182
  entityId?: string;
4171
- /** Event timestamp. */
4183
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
4172
4184
  eventTime?: Date;
4173
4185
  /**
4174
4186
  * Whether the event was triggered as a result of a privacy regulation application
@@ -4351,7 +4363,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
4351
4363
  slug?: string;
4352
4364
  /** ID of the entity associated with the event. */
4353
4365
  entityId?: string;
4354
- /** Event timestamp. */
4366
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
4355
4367
  eventTime?: Date;
4356
4368
  /**
4357
4369
  * Whether the event was triggered as a result of a privacy regulation application
@@ -4395,20 +4407,21 @@ interface BulkUpdateContentOptions {
4395
4407
  returnEntity?: boolean;
4396
4408
  }
4397
4409
 
4398
- declare const __metadata$1: {
4399
- PACKAGE_NAME: string;
4400
- };
4401
- declare function createContent(httpClient: HttpClient): (content: Content) => Promise<Content & ContentNonNullableFields>;
4402
- declare function getContent(httpClient: HttpClient): (contentId: string) => Promise<Content & ContentNonNullableFields>;
4403
- declare function updateContent(httpClient: HttpClient): (content: Content) => Promise<Content & ContentNonNullableFields>;
4404
- declare function deleteContent(httpClient: HttpClient): (contentId: string) => Promise<void>;
4405
- declare function queryContents(httpClient: HttpClient): (options?: QueryContentsOptions) => Promise<QueryContentsResponse & QueryContentsResponseNonNullableFields>;
4406
- declare function bulkCreateContent(httpClient: HttpClient): (contents: Content[], options?: BulkCreateContentOptions) => Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
4407
- declare function bulkUpdateContent(httpClient: HttpClient): (contents: MaskedContent[], options?: BulkUpdateContentOptions) => Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
4408
- declare function bulkDeleteContent(httpClient: HttpClient): (contentIds: string[]) => Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
4409
- declare const onContentCreated: EventDefinition<ContentCreatedEnvelope, "wix.multilingual.translation.v1.content_created">;
4410
- declare const onContentUpdated: EventDefinition<ContentUpdatedEnvelope, "wix.multilingual.translation.v1.content_updated">;
4411
- declare const onContentDeleted: EventDefinition<ContentDeletedEnvelope, "wix.multilingual.translation.v1.content_deleted">;
4410
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
4411
+
4412
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
4413
+
4414
+ declare const createContent: ReturnType<typeof createRESTModule$1<typeof publicCreateContent>>;
4415
+ declare const getContent: ReturnType<typeof createRESTModule$1<typeof publicGetContent>>;
4416
+ declare const updateContent: ReturnType<typeof createRESTModule$1<typeof publicUpdateContent>>;
4417
+ declare const deleteContent: ReturnType<typeof createRESTModule$1<typeof publicDeleteContent>>;
4418
+ declare const queryContents: ReturnType<typeof createRESTModule$1<typeof publicQueryContents>>;
4419
+ declare const bulkCreateContent: ReturnType<typeof createRESTModule$1<typeof publicBulkCreateContent>>;
4420
+ declare const bulkUpdateContent: ReturnType<typeof createRESTModule$1<typeof publicBulkUpdateContent>>;
4421
+ declare const bulkDeleteContent: ReturnType<typeof createRESTModule$1<typeof publicBulkDeleteContent>>;
4422
+ declare const onContentCreated: ReturnType<typeof createEventModule$1<typeof publicOnContentCreated>>;
4423
+ declare const onContentUpdated: ReturnType<typeof createEventModule$1<typeof publicOnContentUpdated>>;
4424
+ declare const onContentDeleted: ReturnType<typeof createEventModule$1<typeof publicOnContentDeleted>>;
4412
4425
 
4413
4426
  type index_d$1_Alignment = Alignment;
4414
4427
  declare const index_d$1_Alignment: typeof Alignment;
@@ -4621,7 +4634,7 @@ declare const index_d$1_onContentUpdated: typeof onContentUpdated;
4621
4634
  declare const index_d$1_queryContents: typeof queryContents;
4622
4635
  declare const index_d$1_updateContent: typeof updateContent;
4623
4636
  declare namespace index_d$1 {
4624
- export { type ActionEvent$1 as ActionEvent, index_d$1_Alignment as Alignment, type index_d$1_AnchorData as AnchorData, type index_d$1_AppEmbedData as AppEmbedData, type index_d$1_AppEmbedDataAppDataOneOf as AppEmbedDataAppDataOneOf, index_d$1_AppType as AppType, type index_d$1_ApplicationError as ApplicationError, type Asset$1 as Asset, type index_d$1_AudioData as AudioData, type index_d$1_Background as Background, type index_d$1_BackgroundBackgroundOneOf as BackgroundBackgroundOneOf, index_d$1_BackgroundType as BackgroundType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BlockquoteData as BlockquoteData, type index_d$1_BookingData as BookingData, type index_d$1_Border as Border, type index_d$1_BorderColors as BorderColors, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkContentResult as BulkContentResult, type index_d$1_BulkCreateContentOptions as BulkCreateContentOptions, type index_d$1_BulkCreateContentRequest as BulkCreateContentRequest, type index_d$1_BulkCreateContentResponse as BulkCreateContentResponse, type index_d$1_BulkCreateContentResponseNonNullableFields as BulkCreateContentResponseNonNullableFields, type index_d$1_BulkDeleteContentRequest as BulkDeleteContentRequest, type index_d$1_BulkDeleteContentResponse as BulkDeleteContentResponse, type index_d$1_BulkDeleteContentResponseBulkContentResult as BulkDeleteContentResponseBulkContentResult, type index_d$1_BulkDeleteContentResponseNonNullableFields as BulkDeleteContentResponseNonNullableFields, type index_d$1_BulkUpdateContentOptions as BulkUpdateContentOptions, type index_d$1_BulkUpdateContentRequest as BulkUpdateContentRequest, type index_d$1_BulkUpdateContentResponse as BulkUpdateContentResponse, type index_d$1_BulkUpdateContentResponseBulkContentResult as BulkUpdateContentResponseBulkContentResult, type index_d$1_BulkUpdateContentResponseNonNullableFields as BulkUpdateContentResponseNonNullableFields, type index_d$1_BulletedListData as BulletedListData, type index_d$1_ButtonData as ButtonData, type index_d$1_CellStyle as CellStyle, type index_d$1_CodeBlockData as CodeBlockData, type index_d$1_CollapsibleListData as CollapsibleListData, type index_d$1_ColorData as ColorData, type index_d$1_Colors as Colors, type index_d$1_Content as Content, type index_d$1_ContentCreatedEnvelope as ContentCreatedEnvelope, type index_d$1_ContentDeletedEnvelope as ContentDeletedEnvelope, type index_d$1_ContentField as ContentField, type index_d$1_ContentFieldValueOneOf as ContentFieldValueOneOf, type index_d$1_ContentNonNullableFields as ContentNonNullableFields, type index_d$1_ContentUpdatedEnvelope as ContentUpdatedEnvelope, type index_d$1_CreateContentRequest as CreateContentRequest, type index_d$1_CreateContentResponse as CreateContentResponse, type index_d$1_CreateContentResponseNonNullableFields as CreateContentResponseNonNullableFields, index_d$1_Crop as Crop, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_Decoration as Decoration, type index_d$1_DecorationDataOneOf as DecorationDataOneOf, index_d$1_DecorationType as DecorationType, type index_d$1_DeleteContentRequest as DeleteContentRequest, type index_d$1_DeleteContentResponse as DeleteContentResponse, type DeleteContext$1 as DeleteContext, DeleteStatus$1 as DeleteStatus, type index_d$1_Design as Design, type index_d$1_Dimensions as Dimensions, index_d$1_Direction as Direction, type index_d$1_DividerData as DividerData, type index_d$1_DocumentStyle as DocumentStyle, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EmbedData as EmbedData, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventData as EventData, type EventMetadata$1 as EventMetadata, type index_d$1_FileData as FileData, type index_d$1_FileSource as FileSource, type index_d$1_FileSourceDataOneOf as FileSourceDataOneOf, type index_d$1_FontSizeData as FontSizeData, index_d$1_FontType as FontType, type index_d$1_GIF as GIF, type index_d$1_GIFData as GIFData, type index_d$1_GalleryData as GalleryData, type index_d$1_GalleryOptions as GalleryOptions, type index_d$1_GetContentRequest as GetContentRequest, type index_d$1_GetContentResponse as GetContentResponse, type index_d$1_GetContentResponseNonNullableFields as GetContentResponseNonNullableFields, type index_d$1_Gradient as Gradient, type index_d$1_HTMLData as HTMLData, type index_d$1_HTMLDataDataOneOf as HTMLDataDataOneOf, type index_d$1_HeadingData as HeadingData, type index_d$1_Height as Height, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Image as Image, type index_d$1_ImageData as ImageData, index_d$1_InitialExpandedItems as InitialExpandedItems, type index_d$1_Item as Item, type index_d$1_ItemDataOneOf as ItemDataOneOf, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ItemStyle as ItemStyle, type index_d$1_Layout as Layout, index_d$1_LayoutType as LayoutType, index_d$1_LineStyle as LineStyle, type index_d$1_Link as Link, type index_d$1_LinkData as LinkData, type index_d$1_LinkDataOneOf as LinkDataOneOf, type index_d$1_LinkPreviewData as LinkPreviewData, type index_d$1_ListValue as ListValue, type index_d$1_MapData as MapData, type index_d$1_MapSettings as MapSettings, index_d$1_MapType as MapType, type index_d$1_MaskedContent as MaskedContent, type index_d$1_Media as Media, type index_d$1_MentionData as MentionData, type MessageEnvelope$1 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, type index_d$1_Metadata as Metadata, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type index_d$1_Node as Node, type index_d$1_NodeDataOneOf as NodeDataOneOf, type index_d$1_NodeStyle as NodeStyle, index_d$1_NodeType as NodeType, index_d$1_NullValue as NullValue, type index_d$1_Oembed as Oembed, type index_d$1_Option as Option, type index_d$1_OptionDesign as OptionDesign, type index_d$1_OptionLayout as OptionLayout, type index_d$1_OrderedListData as OrderedListData, index_d$1_Orientation as Orientation, type index_d$1_PDFSettings as PDFSettings, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParagraphData as ParagraphData, type index_d$1_Permissions as Permissions, type index_d$1_PlaybackOptions as PlaybackOptions, type index_d$1_PluginContainerData as PluginContainerData, index_d$1_PluginContainerDataAlignment as PluginContainerDataAlignment, type index_d$1_PluginContainerDataWidth as PluginContainerDataWidth, type index_d$1_PluginContainerDataWidthDataOneOf as PluginContainerDataWidthDataOneOf, type index_d$1_Poll as Poll, type index_d$1_PollData as PollData, type index_d$1_PollDataLayout as PollDataLayout, type index_d$1_PollDesign as PollDesign, type index_d$1_PollLayout as PollLayout, index_d$1_PollLayoutDirection as PollLayoutDirection, index_d$1_PollLayoutType as PollLayoutType, index_d$1_PublishStatus as PublishStatus, type index_d$1_QueryContentsLegacyRequest as QueryContentsLegacyRequest, type index_d$1_QueryContentsLegacyResponse as QueryContentsLegacyResponse, type index_d$1_QueryContentsOptions as QueryContentsOptions, type index_d$1_QueryContentsRequest as QueryContentsRequest, type index_d$1_QueryContentsResponse as QueryContentsResponse, type index_d$1_QueryContentsResponseNonNullableFields as QueryContentsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_Rel as Rel, type index_d$1_RemoveContentsByFilterRequest as RemoveContentsByFilterRequest, type index_d$1_RemoveContentsByFilterResponse as RemoveContentsByFilterResponse, type index_d$1_RepublishContentByFilterRequest as RepublishContentByFilterRequest, type index_d$1_RepublishContentByFilterResponse as RepublishContentByFilterResponse, type RestoreInfo$1 as RestoreInfo, type index_d$1_RichContent as RichContent, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type index_d$1_Settings as Settings, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Source as Source, type index_d$1_Spoiler as Spoiler, type index_d$1_SpoilerData as SpoilerData, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$1_Styles as Styles, type index_d$1_TableCellData as TableCellData, type index_d$1_TableData as TableData, index_d$1_Target as Target, index_d$1_TextAlignment as TextAlignment, type index_d$1_TextData as TextData, type index_d$1_TextNodeStyle as TextNodeStyle, type index_d$1_TextStyle as TextStyle, type index_d$1_Thumbnails as Thumbnails, index_d$1_ThumbnailsAlignment as ThumbnailsAlignment, index_d$1_Type as Type, type index_d$1_UpdateContentRequest as UpdateContentRequest, type index_d$1_UpdateContentResponse as UpdateContentResponse, type index_d$1_UpdateContentResponseNonNullableFields as UpdateContentResponseNonNullableFields, index_d$1_UpdaterIdentity as UpdaterIdentity, index_d$1_VerticalAlignment as VerticalAlignment, type index_d$1_Video as Video, type index_d$1_VideoData as VideoData, type index_d$1_VideoResolution as VideoResolution, index_d$1_ViewMode as ViewMode, index_d$1_ViewRole as ViewRole, index_d$1_VoteRole as VoteRole, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_Width as Width, index_d$1_WidthType as WidthType, __metadata$1 as __metadata, index_d$1_bulkCreateContent as bulkCreateContent, index_d$1_bulkDeleteContent as bulkDeleteContent, index_d$1_bulkUpdateContent as bulkUpdateContent, index_d$1_createContent as createContent, index_d$1_deleteContent as deleteContent, index_d$1_getContent as getContent, index_d$1_onContentCreated as onContentCreated, index_d$1_onContentDeleted as onContentDeleted, index_d$1_onContentUpdated as onContentUpdated, index_d$1_queryContents as queryContents, index_d$1_updateContent as updateContent };
4637
+ export { type ActionEvent$1 as ActionEvent, index_d$1_Alignment as Alignment, type index_d$1_AnchorData as AnchorData, type index_d$1_AppEmbedData as AppEmbedData, type index_d$1_AppEmbedDataAppDataOneOf as AppEmbedDataAppDataOneOf, index_d$1_AppType as AppType, type index_d$1_ApplicationError as ApplicationError, type Asset$1 as Asset, type index_d$1_AudioData as AudioData, type index_d$1_Background as Background, type index_d$1_BackgroundBackgroundOneOf as BackgroundBackgroundOneOf, index_d$1_BackgroundType as BackgroundType, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BlockquoteData as BlockquoteData, type index_d$1_BookingData as BookingData, type index_d$1_Border as Border, type index_d$1_BorderColors as BorderColors, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkContentResult as BulkContentResult, type index_d$1_BulkCreateContentOptions as BulkCreateContentOptions, type index_d$1_BulkCreateContentRequest as BulkCreateContentRequest, type index_d$1_BulkCreateContentResponse as BulkCreateContentResponse, type index_d$1_BulkCreateContentResponseNonNullableFields as BulkCreateContentResponseNonNullableFields, type index_d$1_BulkDeleteContentRequest as BulkDeleteContentRequest, type index_d$1_BulkDeleteContentResponse as BulkDeleteContentResponse, type index_d$1_BulkDeleteContentResponseBulkContentResult as BulkDeleteContentResponseBulkContentResult, type index_d$1_BulkDeleteContentResponseNonNullableFields as BulkDeleteContentResponseNonNullableFields, type index_d$1_BulkUpdateContentOptions as BulkUpdateContentOptions, type index_d$1_BulkUpdateContentRequest as BulkUpdateContentRequest, type index_d$1_BulkUpdateContentResponse as BulkUpdateContentResponse, type index_d$1_BulkUpdateContentResponseBulkContentResult as BulkUpdateContentResponseBulkContentResult, type index_d$1_BulkUpdateContentResponseNonNullableFields as BulkUpdateContentResponseNonNullableFields, type index_d$1_BulletedListData as BulletedListData, type index_d$1_ButtonData as ButtonData, type index_d$1_CellStyle as CellStyle, type index_d$1_CodeBlockData as CodeBlockData, type index_d$1_CollapsibleListData as CollapsibleListData, type index_d$1_ColorData as ColorData, type index_d$1_Colors as Colors, type index_d$1_Content as Content, type index_d$1_ContentCreatedEnvelope as ContentCreatedEnvelope, type index_d$1_ContentDeletedEnvelope as ContentDeletedEnvelope, type index_d$1_ContentField as ContentField, type index_d$1_ContentFieldValueOneOf as ContentFieldValueOneOf, type index_d$1_ContentNonNullableFields as ContentNonNullableFields, type index_d$1_ContentUpdatedEnvelope as ContentUpdatedEnvelope, type index_d$1_CreateContentRequest as CreateContentRequest, type index_d$1_CreateContentResponse as CreateContentResponse, type index_d$1_CreateContentResponseNonNullableFields as CreateContentResponseNonNullableFields, index_d$1_Crop as Crop, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_Decoration as Decoration, type index_d$1_DecorationDataOneOf as DecorationDataOneOf, index_d$1_DecorationType as DecorationType, type index_d$1_DeleteContentRequest as DeleteContentRequest, type index_d$1_DeleteContentResponse as DeleteContentResponse, type DeleteContext$1 as DeleteContext, DeleteStatus$1 as DeleteStatus, type index_d$1_Design as Design, type index_d$1_Dimensions as Dimensions, index_d$1_Direction as Direction, type index_d$1_DividerData as DividerData, type index_d$1_DocumentStyle as DocumentStyle, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EmbedData as EmbedData, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventData as EventData, type EventMetadata$1 as EventMetadata, type index_d$1_FileData as FileData, type index_d$1_FileSource as FileSource, type index_d$1_FileSourceDataOneOf as FileSourceDataOneOf, type index_d$1_FontSizeData as FontSizeData, index_d$1_FontType as FontType, type index_d$1_GIF as GIF, type index_d$1_GIFData as GIFData, type index_d$1_GalleryData as GalleryData, type index_d$1_GalleryOptions as GalleryOptions, type index_d$1_GetContentRequest as GetContentRequest, type index_d$1_GetContentResponse as GetContentResponse, type index_d$1_GetContentResponseNonNullableFields as GetContentResponseNonNullableFields, type index_d$1_Gradient as Gradient, type index_d$1_HTMLData as HTMLData, type index_d$1_HTMLDataDataOneOf as HTMLDataDataOneOf, type index_d$1_HeadingData as HeadingData, type index_d$1_Height as Height, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_Image as Image, type index_d$1_ImageData as ImageData, index_d$1_InitialExpandedItems as InitialExpandedItems, type index_d$1_Item as Item, type index_d$1_ItemDataOneOf as ItemDataOneOf, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ItemStyle as ItemStyle, type index_d$1_Layout as Layout, index_d$1_LayoutType as LayoutType, index_d$1_LineStyle as LineStyle, type index_d$1_Link as Link, type index_d$1_LinkData as LinkData, type index_d$1_LinkDataOneOf as LinkDataOneOf, type index_d$1_LinkPreviewData as LinkPreviewData, type index_d$1_ListValue as ListValue, type index_d$1_MapData as MapData, type index_d$1_MapSettings as MapSettings, index_d$1_MapType as MapType, type index_d$1_MaskedContent as MaskedContent, type index_d$1_Media as Media, type index_d$1_MentionData as MentionData, type MessageEnvelope$1 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, type index_d$1_Metadata as Metadata, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type index_d$1_Node as Node, type index_d$1_NodeDataOneOf as NodeDataOneOf, type index_d$1_NodeStyle as NodeStyle, index_d$1_NodeType as NodeType, index_d$1_NullValue as NullValue, type index_d$1_Oembed as Oembed, type index_d$1_Option as Option, type index_d$1_OptionDesign as OptionDesign, type index_d$1_OptionLayout as OptionLayout, type index_d$1_OrderedListData as OrderedListData, index_d$1_Orientation as Orientation, type index_d$1_PDFSettings as PDFSettings, type index_d$1_Paging as Paging, type index_d$1_PagingMetadataV2 as PagingMetadataV2, type index_d$1_ParagraphData as ParagraphData, type index_d$1_Permissions as Permissions, type index_d$1_PlaybackOptions as PlaybackOptions, type index_d$1_PluginContainerData as PluginContainerData, index_d$1_PluginContainerDataAlignment as PluginContainerDataAlignment, type index_d$1_PluginContainerDataWidth as PluginContainerDataWidth, type index_d$1_PluginContainerDataWidthDataOneOf as PluginContainerDataWidthDataOneOf, type index_d$1_Poll as Poll, type index_d$1_PollData as PollData, type index_d$1_PollDataLayout as PollDataLayout, type index_d$1_PollDesign as PollDesign, type index_d$1_PollLayout as PollLayout, index_d$1_PollLayoutDirection as PollLayoutDirection, index_d$1_PollLayoutType as PollLayoutType, index_d$1_PublishStatus as PublishStatus, type index_d$1_QueryContentsLegacyRequest as QueryContentsLegacyRequest, type index_d$1_QueryContentsLegacyResponse as QueryContentsLegacyResponse, type index_d$1_QueryContentsOptions as QueryContentsOptions, type index_d$1_QueryContentsRequest as QueryContentsRequest, type index_d$1_QueryContentsResponse as QueryContentsResponse, type index_d$1_QueryContentsResponseNonNullableFields as QueryContentsResponseNonNullableFields, type index_d$1_QueryV2 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$1_Rel as Rel, type index_d$1_RemoveContentsByFilterRequest as RemoveContentsByFilterRequest, type index_d$1_RemoveContentsByFilterResponse as RemoveContentsByFilterResponse, type index_d$1_RepublishContentByFilterRequest as RepublishContentByFilterRequest, type index_d$1_RepublishContentByFilterResponse as RepublishContentByFilterResponse, type RestoreInfo$1 as RestoreInfo, type index_d$1_RichContent as RichContent, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type index_d$1_Settings as Settings, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Source as Source, type index_d$1_Spoiler as Spoiler, type index_d$1_SpoilerData as SpoilerData, State$1 as State, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type index_d$1_Styles as Styles, type index_d$1_TableCellData as TableCellData, type index_d$1_TableData as TableData, index_d$1_Target as Target, index_d$1_TextAlignment as TextAlignment, type index_d$1_TextData as TextData, type index_d$1_TextNodeStyle as TextNodeStyle, type index_d$1_TextStyle as TextStyle, type index_d$1_Thumbnails as Thumbnails, index_d$1_ThumbnailsAlignment as ThumbnailsAlignment, index_d$1_Type as Type, type index_d$1_UpdateContentRequest as UpdateContentRequest, type index_d$1_UpdateContentResponse as UpdateContentResponse, type index_d$1_UpdateContentResponseNonNullableFields as UpdateContentResponseNonNullableFields, index_d$1_UpdaterIdentity as UpdaterIdentity, index_d$1_VerticalAlignment as VerticalAlignment, type index_d$1_Video as Video, type index_d$1_VideoData as VideoData, type index_d$1_VideoResolution as VideoResolution, index_d$1_ViewMode as ViewMode, index_d$1_ViewRole as ViewRole, index_d$1_VoteRole as VoteRole, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_Width as Width, index_d$1_WidthType as WidthType, index_d$1_bulkCreateContent as bulkCreateContent, index_d$1_bulkDeleteContent as bulkDeleteContent, index_d$1_bulkUpdateContent as bulkUpdateContent, index_d$1_createContent as createContent, index_d$1_deleteContent as deleteContent, index_d$1_getContent as getContent, index_d$1_onContentCreated as onContentCreated, index_d$1_onContentDeleted as onContentDeleted, index_d$1_onContentUpdated as onContentUpdated, index_d$1_queryContents as queryContents, index_d$1_updateContent as updateContent };
4625
4638
  }
4626
4639
 
4627
4640
  interface Schema {
@@ -5378,16 +5391,17 @@ interface ListSiteSchemasOptions {
5378
5391
  paging?: CursorPaging;
5379
5392
  }
5380
5393
 
5381
- declare const __metadata: {
5382
- PACKAGE_NAME: string;
5383
- };
5384
- declare function getSchema(httpClient: HttpClient): (schemaId: string) => Promise<Schema & SchemaNonNullableFields>;
5385
- declare function getSchemaByKey(httpClient: HttpClient): (identifiers: GetSchemaByKeyIdentifiers, key: GetSchemaByKey) => Promise<GetSchemaByKeyResponse & GetSchemaByKeyResponseNonNullableFields>;
5386
- declare function querySchemas(httpClient: HttpClient): (options?: QuerySchemasOptions) => SchemasQueryBuilder;
5387
- declare function listSiteSchemas(httpClient: HttpClient): (options?: ListSiteSchemasOptions) => Promise<ListSiteSchemasResponse & ListSiteSchemasResponseNonNullableFields>;
5388
- declare const onSchemaCreated: EventDefinition<SchemaCreatedEnvelope, "wix.multilingual.translation.v1.schema_created">;
5389
- declare const onSchemaUpdated: EventDefinition<SchemaUpdatedEnvelope, "wix.multilingual.translation.v1.schema_updated">;
5390
- declare const onSchemaDeleted: EventDefinition<SchemaDeletedEnvelope, "wix.multilingual.translation.v1.schema_deleted">;
5394
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
5395
+
5396
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
5397
+
5398
+ declare const getSchema: ReturnType<typeof createRESTModule<typeof publicGetSchema>>;
5399
+ declare const getSchemaByKey: ReturnType<typeof createRESTModule<typeof publicGetSchemaByKey>>;
5400
+ declare const querySchemas: ReturnType<typeof createRESTModule<typeof publicQuerySchemas>>;
5401
+ declare const listSiteSchemas: ReturnType<typeof createRESTModule<typeof publicListSiteSchemas>>;
5402
+ declare const onSchemaCreated: ReturnType<typeof createEventModule<typeof publicOnSchemaCreated>>;
5403
+ declare const onSchemaUpdated: ReturnType<typeof createEventModule<typeof publicOnSchemaUpdated>>;
5404
+ declare const onSchemaDeleted: ReturnType<typeof createEventModule<typeof publicOnSchemaDeleted>>;
5391
5405
 
5392
5406
  type index_d_ActionEvent = ActionEvent;
5393
5407
  type index_d_Asset = Asset;
@@ -5475,7 +5489,6 @@ type index_d_UpdateSchemaRequest = UpdateSchemaRequest;
5475
5489
  type index_d_UpdateSchemaResponse = UpdateSchemaResponse;
5476
5490
  type index_d_WebhookIdentityType = WebhookIdentityType;
5477
5491
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
5478
- declare const index_d___metadata: typeof __metadata;
5479
5492
  declare const index_d_getSchema: typeof getSchema;
5480
5493
  declare const index_d_getSchemaByKey: typeof getSchemaByKey;
5481
5494
  declare const index_d_listSiteSchemas: typeof listSiteSchemas;
@@ -5484,7 +5497,7 @@ declare const index_d_onSchemaDeleted: typeof onSchemaDeleted;
5484
5497
  declare const index_d_onSchemaUpdated: typeof onSchemaUpdated;
5485
5498
  declare const index_d_querySchemas: typeof querySchemas;
5486
5499
  declare namespace index_d {
5487
- export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateSchemaRequest as CreateSchemaRequest, type index_d_CreateSchemaResponse as CreateSchemaResponse, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteContext as DeleteContext, type index_d_DeleteSchemaRequest as DeleteSchemaRequest, type index_d_DeleteSchemaResponse as DeleteSchemaResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, index_d_FieldType as FieldType, type index_d_GetSchemaByKey as GetSchemaByKey, type index_d_GetSchemaByKeyIdentifiers as GetSchemaByKeyIdentifiers, type index_d_GetSchemaByKeyRequest as GetSchemaByKeyRequest, type index_d_GetSchemaByKeyResponse as GetSchemaByKeyResponse, type index_d_GetSchemaByKeyResponseNonNullableFields as GetSchemaByKeyResponseNonNullableFields, type index_d_GetSchemaRequest as GetSchemaRequest, type index_d_GetSchemaResponse as GetSchemaResponse, type index_d_GetSchemaResponseNonNullableFields as GetSchemaResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListSiteSchemasOptions as ListSiteSchemasOptions, type index_d_ListSiteSchemasRequest as ListSiteSchemasRequest, type index_d_ListSiteSchemasResponse as ListSiteSchemasResponse, type index_d_ListSiteSchemasResponseNonNullableFields as ListSiteSchemasResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_PreviewFields as PreviewFields, type index_d_QuerySchemasOptions as QuerySchemasOptions, type index_d_QuerySchemasRequest as QuerySchemasRequest, type index_d_QuerySchemasResponse as QuerySchemasResponse, type index_d_QuerySchemasResponseNonNullableFields as QuerySchemasResponseNonNullableFields, type index_d_RestoreInfo as RestoreInfo, type index_d_Schema as Schema, type index_d_SchemaCreatedEnvelope as SchemaCreatedEnvelope, type index_d_SchemaDeletedEnvelope as SchemaDeletedEnvelope, type index_d_SchemaField as SchemaField, type index_d_SchemaKey as SchemaKey, type index_d_SchemaNonNullableFields as SchemaNonNullableFields, index_d_SchemaScope as SchemaScope, type index_d_SchemaUpdatedEnvelope as SchemaUpdatedEnvelope, type index_d_SchemasQueryBuilder as SchemasQueryBuilder, type index_d_SchemasQueryResult as SchemasQueryResult, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_UpdateSchemaRequest as UpdateSchemaRequest, type index_d_UpdateSchemaResponse as UpdateSchemaResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_getSchema as getSchema, index_d_getSchemaByKey as getSchemaByKey, index_d_listSiteSchemas as listSiteSchemas, index_d_onSchemaCreated as onSchemaCreated, index_d_onSchemaDeleted as onSchemaDeleted, index_d_onSchemaUpdated as onSchemaUpdated, index_d_querySchemas as querySchemas };
5500
+ export { type index_d_ActionEvent as ActionEvent, type index_d_Asset as Asset, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateSchemaRequest as CreateSchemaRequest, type index_d_CreateSchemaResponse as CreateSchemaResponse, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteContext as DeleteContext, type index_d_DeleteSchemaRequest as DeleteSchemaRequest, type index_d_DeleteSchemaResponse as DeleteSchemaResponse, index_d_DeleteStatus as DeleteStatus, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, index_d_FieldType as FieldType, type index_d_GetSchemaByKey as GetSchemaByKey, type index_d_GetSchemaByKeyIdentifiers as GetSchemaByKeyIdentifiers, type index_d_GetSchemaByKeyRequest as GetSchemaByKeyRequest, type index_d_GetSchemaByKeyResponse as GetSchemaByKeyResponse, type index_d_GetSchemaByKeyResponseNonNullableFields as GetSchemaByKeyResponseNonNullableFields, type index_d_GetSchemaRequest as GetSchemaRequest, type index_d_GetSchemaResponse as GetSchemaResponse, type index_d_GetSchemaResponseNonNullableFields as GetSchemaResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListSiteSchemasOptions as ListSiteSchemasOptions, type index_d_ListSiteSchemasRequest as ListSiteSchemasRequest, type index_d_ListSiteSchemasResponse as ListSiteSchemasResponse, type index_d_ListSiteSchemasResponseNonNullableFields as ListSiteSchemasResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d_Namespace as Namespace, type index_d_NamespaceChanged as NamespaceChanged, type index_d_PreviewFields as PreviewFields, type index_d_QuerySchemasOptions as QuerySchemasOptions, type index_d_QuerySchemasRequest as QuerySchemasRequest, type index_d_QuerySchemasResponse as QuerySchemasResponse, type index_d_QuerySchemasResponseNonNullableFields as QuerySchemasResponseNonNullableFields, type index_d_RestoreInfo as RestoreInfo, type index_d_Schema as Schema, type index_d_SchemaCreatedEnvelope as SchemaCreatedEnvelope, type index_d_SchemaDeletedEnvelope as SchemaDeletedEnvelope, type index_d_SchemaField as SchemaField, type index_d_SchemaKey as SchemaKey, type index_d_SchemaNonNullableFields as SchemaNonNullableFields, index_d_SchemaScope as SchemaScope, type index_d_SchemaUpdatedEnvelope as SchemaUpdatedEnvelope, type index_d_SchemasQueryBuilder as SchemasQueryBuilder, type index_d_SchemasQueryResult as SchemasQueryResult, type index_d_ServiceProvisioned as ServiceProvisioned, type index_d_ServiceRemoved as ServiceRemoved, type index_d_SiteCreated as SiteCreated, index_d_SiteCreatedContext as SiteCreatedContext, type index_d_SiteDeleted as SiteDeleted, type index_d_SiteHardDeleted as SiteHardDeleted, type index_d_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d_SitePublished as SitePublished, type index_d_SiteRenamed as SiteRenamed, type index_d_SiteTransferred as SiteTransferred, type index_d_SiteUndeleted as SiteUndeleted, type index_d_SiteUnpublished as SiteUnpublished, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_StudioAssigned as StudioAssigned, type index_d_StudioUnassigned as StudioUnassigned, type index_d_UpdateSchemaRequest as UpdateSchemaRequest, type index_d_UpdateSchemaResponse as UpdateSchemaResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d_getSchema as getSchema, index_d_getSchemaByKey as getSchemaByKey, index_d_listSiteSchemas as listSiteSchemas, index_d_onSchemaCreated as onSchemaCreated, index_d_onSchemaDeleted as onSchemaDeleted, index_d_onSchemaUpdated as onSchemaUpdated, index_d_querySchemas as querySchemas };
5488
5501
  }
5489
5502
 
5490
5503
  export { index_d$3 as machineTranslation, index_d$2 as siteTranslator, index_d$1 as translationContents, index_d as translationSchemas };
@@ -413,7 +413,10 @@ interface FileData$3 {
413
413
  name?: string | null;
414
414
  /** File type. */
415
415
  type?: string | null;
416
- /** File size in KB. */
416
+ /**
417
+ * Use `sizeInKb` instead.
418
+ * @deprecated
419
+ */
417
420
  size?: number | null;
418
421
  /** Settings for PDF files. */
419
422
  pdfSettings?: PDFSettings$3;
@@ -421,6 +424,8 @@ interface FileData$3 {
421
424
  mimeType?: string | null;
422
425
  /** File path. */
423
426
  path?: string | null;
427
+ /** File size in KB. */
428
+ sizeInKb?: string | null;
424
429
  }
425
430
  declare enum ViewMode$3 {
426
431
  /** No PDF view */
@@ -2262,7 +2267,10 @@ interface FileData$2 {
2262
2267
  name?: string | null;
2263
2268
  /** File type. */
2264
2269
  type?: string | null;
2265
- /** File size in KB. */
2270
+ /**
2271
+ * Use `sizeInKb` instead.
2272
+ * @deprecated
2273
+ */
2266
2274
  size?: number | null;
2267
2275
  /** Settings for PDF files. */
2268
2276
  pdfSettings?: PDFSettings$2;
@@ -2270,6 +2278,8 @@ interface FileData$2 {
2270
2278
  mimeType?: string | null;
2271
2279
  /** File path. */
2272
2280
  path?: string | null;
2281
+ /** File size in KB. */
2282
+ sizeInKb?: string | null;
2273
2283
  }
2274
2284
  declare enum ViewMode$2 {
2275
2285
  /** No PDF view */
@@ -4813,7 +4823,10 @@ interface FileData$1 {
4813
4823
  name?: string | null;
4814
4824
  /** File type. */
4815
4825
  type?: string | null;
4816
- /** File size in KB. */
4826
+ /**
4827
+ * Use `sizeInKb` instead.
4828
+ * @deprecated
4829
+ */
4817
4830
  size?: number | null;
4818
4831
  /** Settings for PDF files. */
4819
4832
  pdfSettings?: PDFSettings$1;
@@ -4821,6 +4834,8 @@ interface FileData$1 {
4821
4834
  mimeType?: string | null;
4822
4835
  /** File path. */
4823
4836
  path?: string | null;
4837
+ /** File size in KB. */
4838
+ sizeInKb?: string | null;
4824
4839
  }
4825
4840
  declare enum ViewMode$1 {
4826
4841
  /** No PDF view */
@@ -6405,7 +6420,10 @@ interface FileData {
6405
6420
  name?: string | null;
6406
6421
  /** File type. */
6407
6422
  type?: string | null;
6408
- /** File size in KB. */
6423
+ /**
6424
+ * Use `sizeInKb` instead.
6425
+ * @deprecated
6426
+ */
6409
6427
  size?: number | null;
6410
6428
  /** Settings for PDF files. */
6411
6429
  pdfSettings?: PDFSettings;
@@ -6413,6 +6431,8 @@ interface FileData {
6413
6431
  mimeType?: string | null;
6414
6432
  /** File path. */
6415
6433
  path?: string | null;
6434
+ /** File size in KB. */
6435
+ sizeInKb?: string | null;
6416
6436
  }
6417
6437
  declare enum ViewMode {
6418
6438
  /** No PDF view */