@pushwoosh/rpc-gateway-ai-assistant 0.1.601 → 0.1.603

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
@@ -3678,6 +3678,9 @@ export const data = {
3678
3678
  },
3679
3679
  "iterationCapped": {
3680
3680
  "type": "boolean"
3681
+ },
3682
+ "cardId": {
3683
+ "type": "number"
3681
3684
  }
3682
3685
  }
3683
3686
  },
@@ -5225,6 +5228,9 @@ export const data = {
5225
5228
  },
5226
5229
  "view": {
5227
5230
  "type": "pushwoosh.uds.onyx.v1.CardView"
5231
+ },
5232
+ "expiresAt": {
5233
+ "type": "Date"
5228
5234
  }
5229
5235
  }
5230
5236
  },
@@ -5474,6 +5480,15 @@ export const data = {
5474
5480
  },
5475
5481
  "proven": {
5476
5482
  "type": "number"
5483
+ },
5484
+ "status": {
5485
+ "type": "string"
5486
+ },
5487
+ "dayOf": {
5488
+ "type": "number"
5489
+ },
5490
+ "days": {
5491
+ "type": "number"
5477
5492
  }
5478
5493
  }
5479
5494
  },
@@ -5522,6 +5537,9 @@ export const data = {
5522
5537
  "hidden": {
5523
5538
  "type": "pushwoosh.uds.onyx.v1.Card",
5524
5539
  "array": true
5540
+ },
5541
+ "hiddenCount": {
5542
+ "type": "number"
5525
5543
  }
5526
5544
  }
5527
5545
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.601",
3
+ "version": "0.1.603",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -22,6 +22,8 @@ export type Message = {
22
22
  * widget offers Continue on it. Its content may be empty.
23
23
  */
24
24
  iterationCapped: boolean;
25
+ /** The board card this message announces; the widget draws the card under the text. */
26
+ cardId: number;
25
27
  };
26
28
  /** SuggestedActionKind says what a click does; UNSPECIFIED keeps today's rule: prompt or url. */
27
29
  export type SuggestedActionKind = 'SUGGESTED_ACTION_KIND_UNSPECIFIED'
@@ -36,6 +36,8 @@ export type Card = {
36
36
  createdAt: Date;
37
37
  updatedAt: Date;
38
38
  view: CardView;
39
+ /** The user's decision window; unset when the card does not wait for the user. */
40
+ expiresAt: Date;
39
41
  };
40
42
  /** CardView is the whole card as the board draws it; every layer is optional. */
41
43
  export type CardView = {
@@ -133,6 +135,11 @@ export type BoardGoal = {
133
135
  /** Sums of payload.result.value / payload.result.proven over the goal's closed cards. */
134
136
  value: number;
135
137
  proven: number;
138
+ /** active, or reached while it stays on the board (its period, at least 14 days after it was reached). */
139
+ status: string;
140
+ /** The period's current day (1-based) and its length in days. */
141
+ dayOf: number;
142
+ days: number;
136
143
  };
137
144
  export type BoardPulse = {
138
145
  /** The earliest wake-up of an agent card; unset when none is scheduled. */
@@ -154,6 +161,8 @@ export type GetBoardResponse = {
154
161
  pendingForUser: number;
155
162
  /** Filled only with include_hidden. */
156
163
  hidden: Card[];
164
+ /** How many cards are hidden, counted with or without include_hidden. */
165
+ hiddenCount: number;
157
166
  };
158
167
  export type MoveCardRequest = {
159
168
  application: string;
@@ -178,5 +187,6 @@ export type GetAgentAccessRequest = {
178
187
  export type GetAgentAccessResponse = {
179
188
  /** An enabled agent profile and the account's consent. */
180
189
  enabled: boolean;
190
+ /** A goal is active, or reached and still on the board. */
181
191
  hasGoal: boolean;
182
192
  };