@pushwoosh/rpc-gateway-ai-assistant 0.1.147 → 0.1.149
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 +18 -1
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +13 -0
- package/pushwoosh_aigen_v1.d.ts +19 -1
package/data.js
CHANGED
|
@@ -236,6 +236,10 @@ export const data = {
|
|
|
236
236
|
},
|
|
237
237
|
"text": {
|
|
238
238
|
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"color": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"optional": true
|
|
239
243
|
}
|
|
240
244
|
}
|
|
241
245
|
},
|
|
@@ -951,6 +955,15 @@ export const data = {
|
|
|
951
955
|
}
|
|
952
956
|
}
|
|
953
957
|
},
|
|
958
|
+
"pushwoosh.aigen.v1.AiGenColorSchemeDelta": {
|
|
959
|
+
"type": "I",
|
|
960
|
+
"fields": {
|
|
961
|
+
"colorScheme": {
|
|
962
|
+
"type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
|
|
963
|
+
"mapKeyType": "string"
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
},
|
|
954
967
|
"pushwoosh.aigen.v1.AiGenEvent": {
|
|
955
968
|
"type": "I",
|
|
956
969
|
"fields": {
|
|
@@ -980,6 +993,9 @@ export const data = {
|
|
|
980
993
|
},
|
|
981
994
|
"metaDelta": {
|
|
982
995
|
"type": "pushwoosh.aigen.v1.AiGenMetaDelta"
|
|
996
|
+
},
|
|
997
|
+
"colorSchemeDelta": {
|
|
998
|
+
"type": "pushwoosh.aigen.v1.AiGenColorSchemeDelta"
|
|
983
999
|
}
|
|
984
1000
|
},
|
|
985
1001
|
"oneofs": {
|
|
@@ -993,7 +1009,8 @@ export const data = {
|
|
|
993
1009
|
"blockError",
|
|
994
1010
|
"done",
|
|
995
1011
|
"fatal",
|
|
996
|
-
"metaDelta"
|
|
1012
|
+
"metaDelta",
|
|
1013
|
+
"colorSchemeDelta"
|
|
997
1014
|
]
|
|
998
1015
|
}
|
|
999
1016
|
}
|
package/package.json
CHANGED
|
@@ -250,6 +250,19 @@ export type DocumentSettings = {
|
|
|
250
250
|
export type TextBlock = {
|
|
251
251
|
variant: string;
|
|
252
252
|
text: string;
|
|
253
|
+
/**
|
|
254
|
+
* Per-text-item colour override.
|
|
255
|
+
*
|
|
256
|
+
* Wire contract:
|
|
257
|
+
* - #RGB or #RRGGBB hex.
|
|
258
|
+
* - Unset (or empty string) = inherit. Cascade: this field →
|
|
259
|
+
* DocumentSettings.text_color → renderer default. Backend should
|
|
260
|
+
* emit unset rather than "".
|
|
261
|
+
* - LLM-managed: the block generator picks an accent colour from the
|
|
262
|
+
* document's color_scheme for CTA-relevant / primary copy and leaves
|
|
263
|
+
* it empty for body text so the document default applies.
|
|
264
|
+
*/
|
|
265
|
+
color?: string;
|
|
253
266
|
};
|
|
254
267
|
export type ButtonActionHref = {
|
|
255
268
|
url: string;
|
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -314,6 +314,20 @@ export type AiGenMetaDelta = {
|
|
|
314
314
|
field: string;
|
|
315
315
|
value: string;
|
|
316
316
|
};
|
|
317
|
+
/**
|
|
318
|
+
* AiGenColorSchemeDelta carries a document-level colour palette the model
|
|
319
|
+
* derived for this generation — from a reference image when one was sent
|
|
320
|
+
* ("make it like this design"), otherwise from the brand / topic in the
|
|
321
|
+
* prompt. Emitted on create only, and only when the request carried no
|
|
322
|
+
* color_scheme of its own (a client/template palette is never overridden).
|
|
323
|
+
* The client applies it to AiBuilderDocument.color_scheme; the same palette
|
|
324
|
+
* also feeds the content generator this run, so freshly generated blocks
|
|
325
|
+
* draw their accent colours from it. Keys are role names (primary, accent,
|
|
326
|
+
* background, …); values are the proto ColorSchemeItem (hex + description).
|
|
327
|
+
*/
|
|
328
|
+
export type AiGenColorSchemeDelta = {
|
|
329
|
+
colorScheme: Record<string, pushwoosh_aibuilder_v1_ColorSchemeItem>;
|
|
330
|
+
};
|
|
317
331
|
export type AiGenEvent_event_progress = {
|
|
318
332
|
type: 'progress';
|
|
319
333
|
data: string;
|
|
@@ -350,7 +364,11 @@ export type AiGenEvent_event_metaDelta = {
|
|
|
350
364
|
type: 'metaDelta';
|
|
351
365
|
data: AiGenMetaDelta;
|
|
352
366
|
};
|
|
353
|
-
export type
|
|
367
|
+
export type AiGenEvent_event_colorSchemeDelta = {
|
|
368
|
+
type: 'colorSchemeDelta';
|
|
369
|
+
data: AiGenColorSchemeDelta;
|
|
370
|
+
};
|
|
371
|
+
export type AiGenEvent_event = AiGenEvent_event_progress | AiGenEvent_event_structure | AiGenEvent_event_structureDiff | AiGenEvent_event_blockDelta | AiGenEvent_event_imageDelta | AiGenEvent_event_blockError | AiGenEvent_event_done | AiGenEvent_event_fatal | AiGenEvent_event_metaDelta | AiGenEvent_event_colorSchemeDelta;
|
|
354
372
|
export type AiGenEvent = {
|
|
355
373
|
event: AiGenEvent_event;
|
|
356
374
|
};
|