@wix/auto_sdk_rich-content_ricos-conversations 1.0.4 → 1.0.6
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/build/cjs/index.d.ts +85 -29
- package/build/cjs/index.js +21 -429
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +21 -421
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +86 -21
- package/build/cjs/meta.js +21 -405
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +85 -29
- package/build/es/index.mjs +19 -428
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +19 -420
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +86 -21
- package/build/es/meta.mjs +19 -404
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -14
- package/build/internal/cjs/index.js +21 -429
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +85 -39
- package/build/internal/cjs/index.typings.js +21 -421
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +86 -21
- package/build/internal/cjs/meta.js +21 -405
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -14
- package/build/internal/es/index.mjs +19 -428
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +85 -39
- package/build/internal/es/index.typings.mjs +19 -420
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +86 -21
- package/build/internal/es/meta.mjs +19 -404
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1142,6 +1142,8 @@ interface Decoration extends DecorationDataOneOf {
|
|
|
1142
1142
|
superscriptData?: boolean | null;
|
|
1143
1143
|
/** Data for a subscript decoration. Defaults to `true`. */
|
|
1144
1144
|
subscriptData?: boolean | null;
|
|
1145
|
+
/** Data for a font family decoration. */
|
|
1146
|
+
fontFamilyData?: FontFamilyData;
|
|
1145
1147
|
/** The type of decoration to apply. */
|
|
1146
1148
|
type?: DecorationTypeWithLiterals;
|
|
1147
1149
|
}
|
|
@@ -1171,6 +1173,8 @@ interface DecorationDataOneOf {
|
|
|
1171
1173
|
superscriptData?: boolean | null;
|
|
1172
1174
|
/** Data for a subscript decoration. Defaults to `true`. */
|
|
1173
1175
|
subscriptData?: boolean | null;
|
|
1176
|
+
/** Data for a font family decoration. */
|
|
1177
|
+
fontFamilyData?: FontFamilyData;
|
|
1174
1178
|
}
|
|
1175
1179
|
declare enum DecorationType {
|
|
1176
1180
|
BOLD = "BOLD",
|
|
@@ -1185,10 +1189,11 @@ declare enum DecorationType {
|
|
|
1185
1189
|
EXTERNAL = "EXTERNAL",
|
|
1186
1190
|
STRIKETHROUGH = "STRIKETHROUGH",
|
|
1187
1191
|
SUPERSCRIPT = "SUPERSCRIPT",
|
|
1188
|
-
SUBSCRIPT = "SUBSCRIPT"
|
|
1192
|
+
SUBSCRIPT = "SUBSCRIPT",
|
|
1193
|
+
FONT_FAMILY = "FONT_FAMILY"
|
|
1189
1194
|
}
|
|
1190
1195
|
/** @enumType */
|
|
1191
|
-
type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT';
|
|
1196
|
+
type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT' | 'FONT_FAMILY';
|
|
1192
1197
|
interface AnchorData {
|
|
1193
1198
|
/** The target node's ID. */
|
|
1194
1199
|
anchor?: string;
|
|
@@ -1227,6 +1232,10 @@ interface SpoilerData {
|
|
|
1227
1232
|
/** Spoiler ID. */
|
|
1228
1233
|
id?: string | null;
|
|
1229
1234
|
}
|
|
1235
|
+
interface FontFamilyData {
|
|
1236
|
+
/** @maxLength 1000 */
|
|
1237
|
+
value?: string | null;
|
|
1238
|
+
}
|
|
1230
1239
|
interface AppEmbedData extends AppEmbedDataAppDataOneOf {
|
|
1231
1240
|
/** Data for embedded Wix Bookings content. */
|
|
1232
1241
|
bookingData?: BookingData;
|
|
@@ -1611,6 +1620,13 @@ interface TableData {
|
|
|
1611
1620
|
rowHeader?: boolean | null;
|
|
1612
1621
|
/** Sets whether the table's first column is a header. Defaults to `false`. */
|
|
1613
1622
|
columnHeader?: boolean | null;
|
|
1623
|
+
/** The spacing between cells in pixels. Defaults to `0`. */
|
|
1624
|
+
cellSpacing?: number | null;
|
|
1625
|
+
/**
|
|
1626
|
+
* Padding in pixels for cells. Follows CSS order: top, right, bottom, left.
|
|
1627
|
+
* @maxSize 4
|
|
1628
|
+
*/
|
|
1629
|
+
cellPadding?: number[];
|
|
1614
1630
|
}
|
|
1615
1631
|
interface Dimensions {
|
|
1616
1632
|
/** An array representing relative width of each column in relation to the other columns. */
|
|
@@ -1625,6 +1641,12 @@ interface TableCellData {
|
|
|
1625
1641
|
cellStyle?: CellStyle;
|
|
1626
1642
|
/** The cell's border colors. */
|
|
1627
1643
|
borderColors?: BorderColors;
|
|
1644
|
+
/** Defines how many columns the cell spans. Default: 1. */
|
|
1645
|
+
colspan?: number | null;
|
|
1646
|
+
/** Defines how many rows the cell spans. Default: 1. */
|
|
1647
|
+
rowspan?: number | null;
|
|
1648
|
+
/** The cell's border widths. */
|
|
1649
|
+
borderWidths?: BorderWidths;
|
|
1628
1650
|
}
|
|
1629
1651
|
declare enum VerticalAlignment {
|
|
1630
1652
|
/** Top alignment */
|
|
@@ -1667,6 +1689,16 @@ interface BorderColors {
|
|
|
1667
1689
|
*/
|
|
1668
1690
|
bottom?: string | null;
|
|
1669
1691
|
}
|
|
1692
|
+
interface BorderWidths {
|
|
1693
|
+
/** Left border width in pixels. */
|
|
1694
|
+
left?: number | null;
|
|
1695
|
+
/** Right border width in pixels. */
|
|
1696
|
+
right?: number | null;
|
|
1697
|
+
/** Top border width in pixels. */
|
|
1698
|
+
top?: number | null;
|
|
1699
|
+
/** Bottom border width in pixels. */
|
|
1700
|
+
bottom?: number | null;
|
|
1701
|
+
}
|
|
1670
1702
|
/**
|
|
1671
1703
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
1672
1704
|
* `Value` type union.
|
|
@@ -1766,6 +1798,8 @@ interface LayoutData {
|
|
|
1766
1798
|
responsivenessBehaviour?: ResponsivenessBehaviourWithLiterals;
|
|
1767
1799
|
/** Size in pixels when responsiveness_behaviour applies */
|
|
1768
1800
|
responsivenessBreakpoint?: number | null;
|
|
1801
|
+
/** Styling for the layout's container. */
|
|
1802
|
+
containerData?: PluginContainerData;
|
|
1769
1803
|
}
|
|
1770
1804
|
declare enum Scaling {
|
|
1771
1805
|
/** Auto image scaling */
|
|
@@ -1981,6 +2015,8 @@ interface Theme {
|
|
|
1981
2015
|
* Defines how images appear, including borders
|
|
1982
2016
|
*/
|
|
1983
2017
|
image?: V1Image;
|
|
2018
|
+
/** Page setup configuration for layout and spacing */
|
|
2019
|
+
pageSetup?: PageSetup;
|
|
1984
2020
|
}
|
|
1985
2021
|
/**
|
|
1986
2022
|
* Background defines the styling for a page's background.
|
|
@@ -2379,6 +2415,52 @@ interface ImageBorder {
|
|
|
2379
2415
|
*/
|
|
2380
2416
|
color?: string | null;
|
|
2381
2417
|
}
|
|
2418
|
+
/**
|
|
2419
|
+
* PageSetup defines the layout configuration for pages.
|
|
2420
|
+
* Includes settings for horizontal padding and vertical padding to control page spacing.
|
|
2421
|
+
*/
|
|
2422
|
+
interface PageSetup {
|
|
2423
|
+
/** Horizontal padding configuration that determines the horizontal spacing of page content */
|
|
2424
|
+
horizontalPadding?: HorizontalPaddingTypeWithLiterals;
|
|
2425
|
+
/** Vertical padding configuration that controls spacing above and below content */
|
|
2426
|
+
verticalPadding?: VerticalPaddingTypeWithLiterals;
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
* Type defines the preset horizontal padding options for page content.
|
|
2430
|
+
* Each option provides different amounts of horizontal spacing for content layout.
|
|
2431
|
+
*/
|
|
2432
|
+
declare enum HorizontalPaddingType {
|
|
2433
|
+
/** Default value when horizontal padding is not specified */
|
|
2434
|
+
UNKNOWN_HORIZONTAL_PADDING = "UNKNOWN_HORIZONTAL_PADDING",
|
|
2435
|
+
/** No horizontal padding - content extends to page edges */
|
|
2436
|
+
NONE = "NONE",
|
|
2437
|
+
/** Small horizontal padding - minimal left/right spacing, results in wide content area */
|
|
2438
|
+
SMALL = "SMALL",
|
|
2439
|
+
/** Medium horizontal padding - standard left/right spacing, results in balanced content width */
|
|
2440
|
+
MEDIUM = "MEDIUM",
|
|
2441
|
+
/** Large horizontal padding - generous left/right spacing, results in narrow content area */
|
|
2442
|
+
LARGE = "LARGE"
|
|
2443
|
+
}
|
|
2444
|
+
/** @enumType */
|
|
2445
|
+
type HorizontalPaddingTypeWithLiterals = HorizontalPaddingType | 'UNKNOWN_HORIZONTAL_PADDING' | 'NONE' | 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
2446
|
+
/**
|
|
2447
|
+
* Type defines the preset vertical padding options for page content.
|
|
2448
|
+
* Each option provides different amounts of spacing around content.
|
|
2449
|
+
*/
|
|
2450
|
+
declare enum VerticalPaddingType {
|
|
2451
|
+
/** Default value when vertical padding is not specified */
|
|
2452
|
+
UNKNOWN_VERTICAL_PADDING = "UNKNOWN_VERTICAL_PADDING",
|
|
2453
|
+
/** No vertical padding - content extends to page edges */
|
|
2454
|
+
NONE = "NONE",
|
|
2455
|
+
/** Small vertical padding - minimal spacing around content */
|
|
2456
|
+
SMALL = "SMALL",
|
|
2457
|
+
/** Medium vertical padding - standard spacing around content */
|
|
2458
|
+
MEDIUM = "MEDIUM",
|
|
2459
|
+
/** Large vertical padding - generous spacing around content */
|
|
2460
|
+
LARGE = "LARGE"
|
|
2461
|
+
}
|
|
2462
|
+
/** @enumType */
|
|
2463
|
+
type VerticalPaddingTypeWithLiterals = VerticalPaddingType | 'UNKNOWN_VERTICAL_PADDING' | 'NONE' | 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
2382
2464
|
/** Request message for prompting the AI assistant with streaming response delivery */
|
|
2383
2465
|
interface CreateConversationStreamedRequest {
|
|
2384
2466
|
/**
|
|
@@ -2403,11 +2485,6 @@ interface CreateConversationStreamedRequest {
|
|
|
2403
2485
|
interface ConversationResponse {
|
|
2404
2486
|
/** A single chunk of the AI's response stream. */
|
|
2405
2487
|
chunk?: RicosConversationChunk;
|
|
2406
|
-
/**
|
|
2407
|
-
* Unique identifier for this conversation session.
|
|
2408
|
-
* @format GUID
|
|
2409
|
-
*/
|
|
2410
|
-
conversationId?: string | null;
|
|
2411
2488
|
}
|
|
2412
2489
|
/**
|
|
2413
2490
|
* Represents a single chunk in a Ricos AI conversation flow
|
|
@@ -2636,21 +2713,10 @@ interface ThemeOptions {
|
|
|
2636
2713
|
/** Generated theme */
|
|
2637
2714
|
theme?: Theme;
|
|
2638
2715
|
}
|
|
2639
|
-
/** Request message for continuing an existing conversation with streaming response delivery */
|
|
2640
|
-
interface ContinueConversationStreamedRequest {
|
|
2641
|
-
/** The conversation context including the current document state and message history. */
|
|
2642
|
-
ricosConversation?: RicosConversation;
|
|
2643
|
-
}
|
|
2644
2716
|
/** Request message for creating a new conversation with non-streamed response */
|
|
2645
2717
|
interface CreateRicosConversationRequest {
|
|
2646
2718
|
/** The conversation context including the current document state and message history */
|
|
2647
2719
|
ricosConversation?: RicosConversation;
|
|
2648
|
-
/**
|
|
2649
|
-
* Flag to control whether this conversation should be persisted for future continuation
|
|
2650
|
-
* When true, the conversation will be stored and can be continued using the continue endpoint
|
|
2651
|
-
* When false, the conversation will not be persisted
|
|
2652
|
-
*/
|
|
2653
|
-
persist?: boolean;
|
|
2654
2720
|
/**
|
|
2655
2721
|
* Invocation id
|
|
2656
2722
|
* @format GUID
|
|
@@ -2907,19 +2973,9 @@ interface CreateConversationStreamedOptions {
|
|
|
2907
2973
|
*/
|
|
2908
2974
|
invocationId?: string | null;
|
|
2909
2975
|
}
|
|
2910
|
-
interface ContinueConversationStreamedOptions {
|
|
2911
|
-
/** The conversation context including the current document state and message history. */
|
|
2912
|
-
ricosConversation?: RicosConversation;
|
|
2913
|
-
}
|
|
2914
2976
|
interface CreateRicosConversationOptions {
|
|
2915
2977
|
/** The conversation context including the current document state and message history */
|
|
2916
2978
|
ricosConversation?: RicosConversation;
|
|
2917
|
-
/**
|
|
2918
|
-
* Flag to control whether this conversation should be persisted for future continuation
|
|
2919
|
-
* When true, the conversation will be stored and can be continued using the continue endpoint
|
|
2920
|
-
* When false, the conversation will not be persisted
|
|
2921
|
-
*/
|
|
2922
|
-
persist?: boolean;
|
|
2923
2979
|
/**
|
|
2924
2980
|
* Invocation id
|
|
2925
2981
|
* @format GUID
|
|
@@ -2934,4 +2990,4 @@ interface ListConversationSuggestionsOptions {
|
|
|
2934
2990
|
suggestions?: Suggestion[];
|
|
2935
2991
|
}
|
|
2936
2992
|
|
|
2937
|
-
export { Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundBackgroundType, type BackgroundBackgroundTypeWithLiterals, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulletedListData, type Button, type ButtonBorder, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, ButtonSize, type ButtonSizeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type Center, ChunkType, type ChunkTypeWithLiterals, type CodeBlockData, type CollapsibleListData, type ColorData, type ColorOptions, type ColorSwatch, type ColorSwatchColorTypeOptionsOneOf, ColorSwatchType, type ColorSwatchTypeWithLiterals, type Colors, type
|
|
2993
|
+
export { Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundBackgroundType, type BackgroundBackgroundTypeWithLiterals, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BlockquoteData, type BookingData, type Border, type BorderColors, type BorderWidths, type BulletedListData, type Button, type ButtonBorder, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, ButtonSize, type ButtonSizeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type Center, ChunkType, type ChunkTypeWithLiterals, type CodeBlockData, type CollapsibleListData, type ColorData, type ColorOptions, type ColorSwatch, type ColorSwatchColorTypeOptionsOneOf, ColorSwatchType, type ColorSwatchTypeWithLiterals, type Colors, type ConversationResponse, type CreateConversationStreamedOptions, type CreateConversationStreamedRequest, type CreateRicosConversationOptions, type CreateRicosConversationRequest, type CreateRicosConversationResponse, Crop, type CropWithLiterals, type DebugOptions, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type ExplainOption, type File, type FileData, type FileSource, type FileSourceDataOneOf, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type Gradient, type GradientStop, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, HorizontalPaddingType, type HorizontalPaddingTypeWithLiterals, type Hover, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageBorder, type ImageData, type ImageDataStyles, type ImageOptions, ImageOptionsImagePosition, type ImageOptionsImagePositionWithLiterals, ImagePosition, type ImagePositionWithLiterals, ImageScaling, type ImageScalingWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InsertOptions, type Item, type ItemDataOneOf, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListConversationSuggestionsOptions, type ListConversationSuggestionsRequest, type ListConversationSuggestionsResponse, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type MessageEnvelope, type Metadata, type MetadataOptions, Name, type NameWithLiterals, type Node, type NodeDataOneOf, type NodeOptions, type NodeStyle, type NodeTextOptions, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type PageSetup, type ParagraphData, type PatchOptions, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, PositionsPosition, type PositionsPositionWithLiterals, type PricingData, type ProgressOptions, type PromptConfiguration, type RangeDetails, type Rel, type ReplaceOptions, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, type RicosConversation, type RicosConversationChunk, type RicosConversationChunkTypeDataOneOf, type RicosConversationUserMessageOneOf, Scaling, type ScalingWithLiterals, type Settings, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type Suggestion, SuggestionAction, type SuggestionActionWithLiterals, type SuggestionOptions, type SuggestionPositionDetailsOneOf, type SummaryOptions, type TableCellData, type TableData, Target, type TargetWithLiterals, type TemplateSearchConfiguration, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Theme, type ThemeOptions, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type Tool, type ToolConfigurationOneOf, type ToolUseOptions, Type, type TypeWithLiterals, type Typography, type TypographyTextStyle, type V1Background, type V1BackgroundBackgroundTypeOptionsOneOf, type V1Gradient, type V1GradientGradientTypeOptionsOneOf, type V1Image, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, VerticalPaddingType, type VerticalPaddingTypeWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals };
|