@pushwoosh/rpc-gateway-ai-assistant 0.1.137 → 0.1.138

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 CHANGED
@@ -69,6 +69,10 @@ export const data = {
69
69
  },
70
70
  "lineHeight": {
71
71
  "type": "number"
72
+ },
73
+ "fontFamily": {
74
+ "type": "string",
75
+ "optional": true
72
76
  }
73
77
  }
74
78
  },
@@ -191,6 +195,10 @@ export const data = {
191
195
  },
192
196
  "defaultStyles": {
193
197
  "type": "pushwoosh.aibuilder.v1.DefaultStyles"
198
+ },
199
+ "fontFamily": {
200
+ "type": "string",
201
+ "optional": true
194
202
  }
195
203
  }
196
204
  },
@@ -269,6 +277,10 @@ export const data = {
269
277
  "fontSize": {
270
278
  "type": "number",
271
279
  "optional": true
280
+ },
281
+ "fontFamily": {
282
+ "type": "string",
283
+ "optional": true
272
284
  }
273
285
  }
274
286
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.137",
3
+ "version": "0.1.138",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -89,6 +89,18 @@ export type TextVariantStyle = {
89
89
  fontSize: number;
90
90
  fontWeight: number;
91
91
  lineHeight: number;
92
+ /**
93
+ * Font-family override for this text variant (e.g. "headings in Inter,
94
+ * body in Roboto").
95
+ *
96
+ * Wire contract:
97
+ * - CSS font-family syntax; see DocumentSettings.font_family.
98
+ * - Unset (or empty string) = inherit from
99
+ * DocumentSettings.font_family, which itself falls back to the
100
+ * renderer default. Backend should emit unset rather than "".
101
+ * - Client-managed: the LLM never selects fonts.
102
+ */
103
+ fontFamily?: string;
92
104
  };
93
105
  export type ColorSchemeItem = {
94
106
  color: string;
@@ -179,6 +191,23 @@ export type DocumentSettings = {
179
191
  backgroundColor: string;
180
192
  textColor: string;
181
193
  defaultStyles: DefaultStyles;
194
+ /**
195
+ * Document-wide font-family override.
196
+ *
197
+ * Wire contract:
198
+ * - CSS font-family syntax: a comma-separated fallback chain, e.g.
199
+ * "Inter, system-ui, sans-serif". The backend stores it verbatim
200
+ * and never parses or rewrites it.
201
+ * - Unset (or empty string) = "no override" — the client falls
202
+ * back to its renderer default. Backend should emit unset rather
203
+ * than ""; do not rely on "" as an "explicit reset" state.
204
+ * - Client-managed: the LLM never sees this field and never
205
+ * selects fonts.
206
+ * - Overridden per-variant by TextVariantStyle.font_family and
207
+ * per-button by ButtonStyles.font_family. Cascade resolves
208
+ * button → variant → document → renderer default.
209
+ */
210
+ fontFamily?: string;
182
211
  };
183
212
  export type TextBlock = {
184
213
  variant: string;
@@ -207,6 +236,20 @@ export type ButtonStyles = {
207
236
  borderColor?: string;
208
237
  borderWidth?: number;
209
238
  fontSize?: number;
239
+ /**
240
+ * Font-family override for button labels.
241
+ *
242
+ * Wire contract:
243
+ * - CSS font-family syntax; see DocumentSettings.font_family.
244
+ * - Unset (or empty string) = inherit. Cascade: this field →
245
+ * TextVariantStyle.font_family of the button's variant (if any) →
246
+ * DocumentSettings.font_family → renderer default. Backend
247
+ * should emit unset rather than "".
248
+ * - Client-managed: the LLM never emits this field. Button styles
249
+ * aren't part of the block generator's JSON schema, so this is
250
+ * enforced by construction.
251
+ */
252
+ fontFamily?: string;
210
253
  };
211
254
  export type ButtonGroup = {
212
255
  buttons: Button[];