@pushwoosh/rpc-gateway-ai-assistant 0.1.143 → 0.1.145
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/data.js +60 -6
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +54 -10
- package/pushwoosh_aigen_v1.d.ts +33 -0
package/data.js
CHANGED
|
@@ -58,6 +58,36 @@ export const data = {
|
|
|
58
58
|
"CARD_IMAGE_FIT_FILL"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
+
"pushwoosh.aibuilder.v1.CardImageSizeUnit": {
|
|
62
|
+
"type": "E",
|
|
63
|
+
"values": [
|
|
64
|
+
"CARD_IMAGE_SIZE_UNIT_UNSPECIFIED",
|
|
65
|
+
"CARD_IMAGE_SIZE_UNIT_PX",
|
|
66
|
+
"CARD_IMAGE_SIZE_UNIT_PERCENT"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"pushwoosh.aibuilder.v1.CardImageSize": {
|
|
70
|
+
"type": "I",
|
|
71
|
+
"fields": {
|
|
72
|
+
"value": {
|
|
73
|
+
"type": "number"
|
|
74
|
+
},
|
|
75
|
+
"unit": {
|
|
76
|
+
"type": "pushwoosh.aibuilder.v1.CardImageSizeUnit"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"pushwoosh.aibuilder.v1.CardImagePosition": {
|
|
81
|
+
"type": "I",
|
|
82
|
+
"fields": {
|
|
83
|
+
"x": {
|
|
84
|
+
"type": "number"
|
|
85
|
+
},
|
|
86
|
+
"y": {
|
|
87
|
+
"type": "number"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
61
91
|
"pushwoosh.aibuilder.v1.TextVariantStyle": {
|
|
62
92
|
"type": "I",
|
|
63
93
|
"fields": {
|
|
@@ -145,10 +175,6 @@ export const data = {
|
|
|
145
175
|
"pushwoosh.aibuilder.v1.CardStyles": {
|
|
146
176
|
"type": "I",
|
|
147
177
|
"fields": {
|
|
148
|
-
"accentFitPadding": {
|
|
149
|
-
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
150
|
-
"optional": true
|
|
151
|
-
},
|
|
152
178
|
"contentPadding": {
|
|
153
179
|
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
154
180
|
"optional": true
|
|
@@ -406,8 +432,13 @@ export const data = {
|
|
|
406
432
|
"imageFit": {
|
|
407
433
|
"type": "pushwoosh.aibuilder.v1.CardImageFit"
|
|
408
434
|
},
|
|
409
|
-
"
|
|
410
|
-
"type": "
|
|
435
|
+
"imageSize": {
|
|
436
|
+
"type": "pushwoosh.aibuilder.v1.CardImageSize",
|
|
437
|
+
"optional": true
|
|
438
|
+
},
|
|
439
|
+
"imagePosition": {
|
|
440
|
+
"type": "pushwoosh.aibuilder.v1.CardImagePosition",
|
|
441
|
+
"optional": true
|
|
411
442
|
}
|
|
412
443
|
}
|
|
413
444
|
},
|
|
@@ -714,6 +745,29 @@ export const data = {
|
|
|
714
745
|
"template": {
|
|
715
746
|
"type": "pushwoosh.aibuilder.v1.AiBuilderDocument",
|
|
716
747
|
"optional": true
|
|
748
|
+
},
|
|
749
|
+
"llmProvider": {
|
|
750
|
+
"type": "string",
|
|
751
|
+
"optional": true
|
|
752
|
+
},
|
|
753
|
+
"llmModel": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"optional": true
|
|
756
|
+
},
|
|
757
|
+
"referenceImages": {
|
|
758
|
+
"type": "pushwoosh.aigen.v1.AiGenReferenceImage",
|
|
759
|
+
"array": true
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"pushwoosh.aigen.v1.AiGenReferenceImage": {
|
|
764
|
+
"type": "I",
|
|
765
|
+
"fields": {
|
|
766
|
+
"mediaType": {
|
|
767
|
+
"type": "string"
|
|
768
|
+
},
|
|
769
|
+
"data": {
|
|
770
|
+
"type": "string"
|
|
717
771
|
}
|
|
718
772
|
}
|
|
719
773
|
},
|
package/package.json
CHANGED
|
@@ -83,8 +83,51 @@ export type CardImageFit = 'CARD_IMAGE_FIT_UNSPECIFIED'
|
|
|
83
83
|
* and other assets that must not be cropped.
|
|
84
84
|
*/
|
|
85
85
|
| 'CARD_IMAGE_FIT_CONTAIN'
|
|
86
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Stretch to fit, distorting aspect ratio. Deprecated — no longer
|
|
88
|
+
* offered in the editor and dropped from the LLM schema; kept only for
|
|
89
|
+
* wire compatibility.
|
|
90
|
+
*/
|
|
87
91
|
| 'CARD_IMAGE_FIT_FILL';
|
|
92
|
+
/** Unit for CardImageSize.value. */
|
|
93
|
+
export type CardImageSizeUnit =
|
|
94
|
+
/** value ignored → client default */
|
|
95
|
+
'CARD_IMAGE_SIZE_UNIT_UNSPECIFIED'
|
|
96
|
+
/** absolute pixels */
|
|
97
|
+
| 'CARD_IMAGE_SIZE_UNIT_PX'
|
|
98
|
+
/** % of the card content-box width */
|
|
99
|
+
| 'CARD_IMAGE_SIZE_UNIT_PERCENT';
|
|
100
|
+
/**
|
|
101
|
+
* CardImageSize sizes the image slot. Which dimension it drives depends on
|
|
102
|
+
* AiBuilderCard.layout:
|
|
103
|
+
* LEFT / RIGHT → width of the image column
|
|
104
|
+
* TOP → height of the image
|
|
105
|
+
* BACKGROUND → height of the card (width is always 100%)
|
|
106
|
+
* NO → no image, ignored
|
|
107
|
+
* PERCENT is always measured against the card content-box WIDTH, so a
|
|
108
|
+
* percentage height yields a stable aspect ratio regardless of card width.
|
|
109
|
+
* Client-managed: the LLM never sets this; the backend round-trips it
|
|
110
|
+
* verbatim. value <= 0 (or unit UNSPECIFIED) is treated as unset → the
|
|
111
|
+
* client falls back to its default.
|
|
112
|
+
*/
|
|
113
|
+
export type CardImageSize = {
|
|
114
|
+
value: number;
|
|
115
|
+
unit: CardImageSizeUnit;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* CardImagePosition is the focus / anchor of the image within its slot
|
|
119
|
+
* (CSS object-position). One field serves both UI modes:
|
|
120
|
+
* CONTAIN → "set position" (where the fitted image sits)
|
|
121
|
+
* COVER → "focal point" (which point stays in frame when cropped)
|
|
122
|
+
* Percentages 0..100; (0,0) = top-left, (50,50) = centre. Client-managed:
|
|
123
|
+
* the LLM never sets this; the backend round-trips it verbatim.
|
|
124
|
+
*/
|
|
125
|
+
export type CardImagePosition = {
|
|
126
|
+
/** horizontal, % (left) */
|
|
127
|
+
x: number;
|
|
128
|
+
/** vertical, % (top) */
|
|
129
|
+
y: number;
|
|
130
|
+
};
|
|
88
131
|
export type TextVariantStyle = {
|
|
89
132
|
fontSize: number;
|
|
90
133
|
fontWeight: number;
|
|
@@ -165,11 +208,6 @@ export type ColumnsStyles = {
|
|
|
165
208
|
padding?: EdgeInsets;
|
|
166
209
|
};
|
|
167
210
|
export type CardStyles = {
|
|
168
|
-
/**
|
|
169
|
-
* Padding applied to the image column when accent_fit is enabled on
|
|
170
|
-
* the card (see AiBuilderCard.accent_fit). Ignored otherwise.
|
|
171
|
-
*/
|
|
172
|
-
accentFitPadding?: EdgeInsets;
|
|
173
211
|
/**
|
|
174
212
|
* Padding applied to the card's content (text) area on top of any
|
|
175
213
|
* document-level default. Applies to all layouts that have a content
|
|
@@ -313,11 +351,17 @@ export type AiBuilderCard = {
|
|
|
313
351
|
*/
|
|
314
352
|
imageFit: CardImageFit;
|
|
315
353
|
/**
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
354
|
+
* Size of the image slot (width for LEFT/RIGHT, height for TOP, card
|
|
355
|
+
* height for BACKGROUND; ignored for NO). Client-managed: the LLM never
|
|
356
|
+
* sets it, the backend round-trips it. Unset → client default.
|
|
357
|
+
*/
|
|
358
|
+
imageSize?: CardImageSize;
|
|
359
|
+
/**
|
|
360
|
+
* Focus / anchor of the image within its slot (object-position).
|
|
361
|
+
* Client-managed: the LLM never sets it, the backend round-trips it.
|
|
362
|
+
* Unset → centre (50/50). Applies to the image layouts only.
|
|
319
363
|
*/
|
|
320
|
-
|
|
364
|
+
imagePosition?: CardImagePosition;
|
|
321
365
|
};
|
|
322
366
|
export type AiBuilderColumns = {
|
|
323
367
|
columns: AiBuilderColumn[];
|
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -114,6 +114,39 @@ export type AiGenRequest = {
|
|
|
114
114
|
* free create (styling only, no structural reference).
|
|
115
115
|
*/
|
|
116
116
|
template?: pushwoosh_aibuilder_v1_AiBuilderDocument;
|
|
117
|
+
/**
|
|
118
|
+
* Dev-only override of the LLM backing block/structure generation.
|
|
119
|
+
* Empty = the server default (self-hosted Qwen/vLLM). "claude" routes
|
|
120
|
+
* generation through Anthropic. Gated client-side behind a hidden dev
|
|
121
|
+
* flag; the server simply honours whatever it receives.
|
|
122
|
+
*/
|
|
123
|
+
llmProvider?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Dev-only override of the concrete model name for the chosen provider.
|
|
126
|
+
* Empty = the provider's configured default (e.g. anthropic.model from
|
|
127
|
+
* config). Ignored when it doesn't apply to the provider.
|
|
128
|
+
*/
|
|
129
|
+
llmModel?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Reference images ("make it like this design") fed into the generation
|
|
132
|
+
* LLM's context — both the structure planner and the per-block content
|
|
133
|
+
* generator see them. Requires a vision-capable provider (Claude, or our
|
|
134
|
+
* multimodal Qwen/vLLM). Empty = text-only generation as before. Sent
|
|
135
|
+
* inline as base64; one image is the common case but the field is
|
|
136
|
+
* repeated for future multi-reference prompts.
|
|
137
|
+
*/
|
|
138
|
+
referenceImages: AiGenReferenceImage[];
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* AiGenReferenceImage is an inline, base64-encoded image attached to a
|
|
142
|
+
* generation request as visual context. Not persisted as document content —
|
|
143
|
+
* it only conditions the LLM for this one run.
|
|
144
|
+
*/
|
|
145
|
+
export type AiGenReferenceImage = {
|
|
146
|
+
/** MIME type: "image/jpeg" | "image/png" | "image/gif" | "image/webp". */
|
|
147
|
+
mediaType: string;
|
|
148
|
+
/** Base64-encoded image bytes (no data: URI prefix). */
|
|
149
|
+
data: string;
|
|
117
150
|
};
|
|
118
151
|
/**
|
|
119
152
|
* AiGenAddBlock triggers add-block mode on Generate. The server emits a
|