@pushwoosh/rpc-gateway-ai-assistant 0.1.193 → 0.1.195

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
@@ -485,6 +485,50 @@ export const data = {
485
485
  }
486
486
  }
487
487
  },
488
+ "pushwoosh.aibuilder.v1.Timer": {
489
+ "type": "I",
490
+ "fields": {
491
+ "endTime": {
492
+ "type": "string"
493
+ },
494
+ "timezone": {
495
+ "type": "string"
496
+ },
497
+ "language": {
498
+ "type": "string"
499
+ },
500
+ "showLabels": {
501
+ "type": "boolean"
502
+ },
503
+ "backgroundColor": {
504
+ "type": "string"
505
+ },
506
+ "digitColor": {
507
+ "type": "string"
508
+ },
509
+ "labelColor": {
510
+ "type": "string"
511
+ },
512
+ "digitFontSize": {
513
+ "type": "number"
514
+ },
515
+ "labelFontSize": {
516
+ "type": "number"
517
+ },
518
+ "width": {
519
+ "type": "number"
520
+ },
521
+ "height": {
522
+ "type": "number"
523
+ },
524
+ "digitFontFamily": {
525
+ "type": "string"
526
+ },
527
+ "labelFontFamily": {
528
+ "type": "string"
529
+ }
530
+ }
531
+ },
488
532
  "pushwoosh.aibuilder.v1.ContentItem": {
489
533
  "type": "I",
490
534
  "fields": {
@@ -503,6 +547,9 @@ export const data = {
503
547
  "form": {
504
548
  "type": "pushwoosh.aibuilder.v1.Form"
505
549
  },
550
+ "timer": {
551
+ "type": "pushwoosh.aibuilder.v1.Timer"
552
+ },
506
553
  "padding": {
507
554
  "type": "pushwoosh.aibuilder.v1.EdgeInsets",
508
555
  "optional": true
@@ -515,7 +562,8 @@ export const data = {
515
562
  "buttonGroup",
516
563
  "list",
517
564
  "image",
518
- "form"
565
+ "form",
566
+ "timer"
519
567
  ]
520
568
  }
521
569
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.193",
3
+ "version": "0.1.195",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -424,6 +424,44 @@ export type Form = {
424
424
  submitLabel: string;
425
425
  submitStyles?: ButtonStyles;
426
426
  };
427
+ /**
428
+ * Countdown timer. Renders in email HTML as an animated GIF served by this
429
+ * service's public /timer/v1/countdown.gif endpoint (regenerated per open).
430
+ * Client-managed for the MVP: the LLM neither sees nor generates timers.
431
+ */
432
+ export type Timer = {
433
+ /**
434
+ * Countdown target as local wall-clock time in `timezone`
435
+ * ("2026-12-01T00:00:00") — mirrors the Unlayer widget's
436
+ * endTime+timezone pair.
437
+ */
438
+ endTime: string;
439
+ /** IANA zone name; empty = UTC. */
440
+ timezone: string;
441
+ /** Unit-label language (ISO 639-1); empty/unknown = "en". */
442
+ language: string;
443
+ showLabels: boolean;
444
+ /**
445
+ * Hex "#rrggbb"; empty = renderer defaults (white bg, dark digits,
446
+ * gray labels).
447
+ */
448
+ backgroundColor: string;
449
+ digitColor: string;
450
+ labelColor: string;
451
+ /** px; 0 = 40 */
452
+ digitFontSize: number;
453
+ /** px; 0 = 16 */
454
+ labelFontSize: number;
455
+ /** Canvas size in px; 0 = derived from the font sizes. */
456
+ width: number;
457
+ height: number;
458
+ /**
459
+ * Font families carried for fidelity/round-trip; the GIF renderer
460
+ * currently always uses Open Sans.
461
+ */
462
+ digitFontFamily: string;
463
+ labelFontFamily: string;
464
+ };
427
465
  export type ContentItem_item_text = {
428
466
  type: 'text';
429
467
  data: TextBlock;
@@ -444,7 +482,11 @@ export type ContentItem_item_form = {
444
482
  type: 'form';
445
483
  data: Form;
446
484
  };
447
- export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form;
485
+ export type ContentItem_item_timer = {
486
+ type: 'timer';
487
+ data: Timer;
488
+ };
489
+ export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form | ContentItem_item_timer;
448
490
  export type ContentItem = {
449
491
  /**
450
492
  * Container padding of the item. Unset = client's default inter-item gap;