@pushwoosh/rpc-gateway-ai-assistant 0.1.330 → 0.1.331

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
@@ -1652,6 +1652,34 @@ export const data = {
1652
1652
  }
1653
1653
  }
1654
1654
  },
1655
+ "pushwoosh.aibuilder.v1.NewsSource": {
1656
+ "type": "E",
1657
+ "values": [
1658
+ "NEWS_SOURCE_UNSPECIFIED",
1659
+ "NEWS_SOURCE_MANUAL",
1660
+ "NEWS_SOURCE_FEED"
1661
+ ]
1662
+ },
1663
+ "pushwoosh.aibuilder.v1.NewsFeedSource": {
1664
+ "type": "I",
1665
+ "fields": {
1666
+ "application": {
1667
+ "type": "string"
1668
+ },
1669
+ "feedOrigin": {
1670
+ "type": "string"
1671
+ },
1672
+ "feedCode": {
1673
+ "type": "string"
1674
+ },
1675
+ "category": {
1676
+ "type": "string"
1677
+ },
1678
+ "limit": {
1679
+ "type": "number"
1680
+ }
1681
+ }
1682
+ },
1655
1683
  "pushwoosh.aibuilder.v1.NewsData": {
1656
1684
  "type": "I",
1657
1685
  "fields": {
@@ -1681,6 +1709,13 @@ export const data = {
1681
1709
  "gap": {
1682
1710
  "type": "number",
1683
1711
  "optional": true
1712
+ },
1713
+ "source": {
1714
+ "type": "pushwoosh.aibuilder.v1.NewsSource"
1715
+ },
1716
+ "feed": {
1717
+ "type": "pushwoosh.aibuilder.v1.NewsFeedSource",
1718
+ "optional": true
1684
1719
  }
1685
1720
  }
1686
1721
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.330",
3
+ "version": "0.1.331",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1181,9 +1181,27 @@ export type NewsItem = {
1181
1181
  category: string;
1182
1182
  url: string;
1183
1183
  };
1184
+ export type NewsSource =
1185
+ /** Renders as MANUAL. */
1186
+ 'NEWS_SOURCE_UNSPECIFIED' | 'NEWS_SOURCE_MANUAL' | 'NEWS_SOURCE_FEED';
1187
+ /**
1188
+ * Registered news feed the block reads per send. Same degradation contract as
1189
+ * ProductsRule: anything unusable here falls back to the baked articles.
1190
+ */
1191
+ export type NewsFeedSource = {
1192
+ application: string;
1193
+ /** Environment-resolved feed host. "" = unset → degrades to MANUAL. */
1194
+ feedOrigin: string;
1195
+ /** Code of the feed in the news_feeds registry. "" = every feed of the app. */
1196
+ feedCode: string;
1197
+ /** "" = unset (the query parameter is omitted). */
1198
+ category: string;
1199
+ /** Grid cells emitted, and the feed limit. <= 0 → degrades to MANUAL. */
1200
+ limit: number;
1201
+ };
1184
1202
  /**
1185
- * News repeater: one card template per article, baked at edit time from the
1186
- * block's RSS/Atom feed.
1203
+ * News repeater: one card template per article baked at edit time, or fetched
1204
+ * per send when source is FEED.
1187
1205
  */
1188
1206
  export type NewsData = {
1189
1207
  /** Feed the articles were taken from, kept for the panel's Refresh. */
@@ -1204,6 +1222,8 @@ export type NewsData = {
1204
1222
  columns?: number;
1205
1223
  /** Gap between cells in px. Unset = renderer default. */
1206
1224
  gap?: number;
1225
+ source: NewsSource;
1226
+ feed?: NewsFeedSource;
1207
1227
  };
1208
1228
  export type AiBuilderBlock_block_card = {
1209
1229
  type: 'card';