@pushwoosh/rpc-gateway-ai-assistant 0.1.186 → 0.1.187

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
@@ -2608,7 +2608,8 @@ export const data = {
2608
2608
  "type": "I",
2609
2609
  "fields": {
2610
2610
  "image": {
2611
- "type": "pushwoosh.vibeml.v1.VibeReferenceImage"
2611
+ "type": "pushwoosh.vibeml.v1.VibeReferenceImage",
2612
+ "optional": true
2612
2613
  },
2613
2614
  "application": {
2614
2615
  "type": "string"
@@ -2619,6 +2620,13 @@ export const data = {
2619
2620
  "llmModel": {
2620
2621
  "type": "string",
2621
2622
  "optional": true
2623
+ },
2624
+ "sources": {
2625
+ "type": "pushwoosh.vibeml.v1.VibeSource",
2626
+ "array": true
2627
+ },
2628
+ "description": {
2629
+ "type": "string"
2622
2630
  }
2623
2631
  }
2624
2632
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.186",
3
+ "version": "0.1.187",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -411,20 +411,24 @@ export interface VibeMlService {
411
411
  */
412
412
  Restyle: VibeMlService_Restyle;
413
413
  /**
414
- * ExtractTheme samples a brand theme from a single image: the full
415
- * role-keyed palette plus body/heading font stacks, returned as a
416
- * VibeTheme ready to seed a Generate request. Pure extractor — image
417
- * in, theme out, no document.
414
+ * ExtractTheme samples a brand theme the full role-keyed palette plus
415
+ * body/heading font stacks from any mix of brand materials: an image, a
416
+ * brand-book PDF, HTML/markdown/text sources, and/or a written brand
417
+ * description. At least one input (image, source or description) is
418
+ * required; any combination is allowed — files with a description, files
419
+ * alone, or a description alone. Returned as a VibeTheme ready to seed a
420
+ * Generate request. Pure extractor — materials in, theme out, no document.
418
421
  *
419
422
  * The model MUST return every palette role (background, surface, text,
420
423
  * text-secondary, accent, text-on-accent, border, link) and both font
421
- * families — even when the image gives no clear typographic signal it
424
+ * families — even when the materials give no clear typographic signal it
422
425
  * picks reasonable stacks rather than leaving them empty.
423
426
  *
424
- * The chosen model must be vision-capable. Since llm_model is a client
425
- * override and capability can't be derived from a model name, there is no
426
- * up-front check: a non-vision model fails at the upstream call. Unary;
427
- * the result is small.
427
+ * When an image is attached the chosen model must be vision-capable; a
428
+ * PDF source requires a document-capable provider (claude/openai/gemini).
429
+ * Since llm_model is a client override and capability can't be derived
430
+ * from a model name, there is no up-front vision check: a non-vision
431
+ * model fails at the upstream call. Unary; the result is small.
428
432
  */
429
433
  ExtractTheme: VibeMlService_ExtractTheme;
430
434
  }
@@ -596,18 +600,31 @@ export type VibeReferenceImage = {
596
600
  };
597
601
  export type VibeMlExtractThemeRequest = {
598
602
  /**
599
- * The image to sample the theme from. Required. The selected model must
600
- * be vision-capable.
603
+ * An image to sample the theme from (screenshot, logo, moodboard).
604
+ * Optional — one of image / sources / description must be present. When
605
+ * set, the selected model must be vision-capable.
601
606
  */
602
- image: VibeReferenceImage;
607
+ image?: VibeReferenceImage;
603
608
  /** Application code, for account/app scoping middleware and logging. */
604
609
  application: string;
605
610
  /**
606
611
  * Provider/model, same semantics as on Generate: llm_provider is
607
- * REQUIRED, llm_model optional. The chosen model must be vision-capable.
612
+ * REQUIRED, llm_model optional.
608
613
  */
609
614
  llmProvider: string;
610
615
  llmModel?: string;
616
+ /**
617
+ * Brand materials to sample the theme from: a brand-book PDF, an HTML
618
+ * page, markdown or plain text. Same shape, formats and limits as
619
+ * Generate's sources (PDF needs a document-capable provider). Optional.
620
+ */
621
+ sources: VibeSource[];
622
+ /**
623
+ * A written brand description ("dark green, minimalist, premium outdoor
624
+ * brand") the model derives the palette from. Optional; may accompany or
625
+ * replace the image/sources.
626
+ */
627
+ description: string;
611
628
  };
612
629
  export type VibeMlExtractThemeResponse = {
613
630
  /**