@pushwoosh/rpc-gateway-ai-assistant 0.1.620 → 0.1.621

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
@@ -5505,6 +5505,12 @@ export const data = {
5505
5505
  "method": "get",
5506
5506
  "path": "/api/v1/applications/{application}/board/cards/{card_id}/timeline"
5507
5507
  },
5508
+ "ListGoals": {
5509
+ "request": "pushwoosh.uds.onyx.v1.ListGoalsRequest",
5510
+ "response": "pushwoosh.uds.onyx.v1.ListGoalsResponse",
5511
+ "method": "get",
5512
+ "path": "/api/v1/applications/{application}/board/goals"
5513
+ },
5508
5514
  "GetAgentAccess": {
5509
5515
  "request": "pushwoosh.uds.onyx.v1.GetAgentAccessRequest",
5510
5516
  "response": "pushwoosh.uds.onyx.v1.GetAgentAccessResponse",
@@ -5812,6 +5818,38 @@ export const data = {
5812
5818
  },
5813
5819
  "days": {
5814
5820
  "type": "number"
5821
+ },
5822
+ "pace": {
5823
+ "type": "string"
5824
+ },
5825
+ "outcome": {
5826
+ "type": "string"
5827
+ },
5828
+ "endedAt": {
5829
+ "type": "Date"
5830
+ },
5831
+ "carriedValue": {
5832
+ "type": "number"
5833
+ },
5834
+ "carriedProven": {
5835
+ "type": "number"
5836
+ },
5837
+ "revises": {
5838
+ "type": "pushwoosh.uds.onyx.v1.GoalRevision"
5839
+ }
5840
+ }
5841
+ },
5842
+ "pushwoosh.uds.onyx.v1.GoalRevision": {
5843
+ "type": "I",
5844
+ "fields": {
5845
+ "goalId": {
5846
+ "type": "number"
5847
+ },
5848
+ "target": {
5849
+ "type": "number"
5850
+ },
5851
+ "revisedAt": {
5852
+ "type": "Date"
5815
5853
  }
5816
5854
  }
5817
5855
  },
@@ -5834,6 +5872,9 @@ export const data = {
5834
5872
  },
5835
5873
  "includeHidden": {
5836
5874
  "type": "boolean"
5875
+ },
5876
+ "goalId": {
5877
+ "type": "number"
5837
5878
  }
5838
5879
  }
5839
5880
  },
@@ -5863,6 +5904,26 @@ export const data = {
5863
5904
  },
5864
5905
  "hiddenCount": {
5865
5906
  "type": "number"
5907
+ },
5908
+ "readOnly": {
5909
+ "type": "boolean"
5910
+ }
5911
+ }
5912
+ },
5913
+ "pushwoosh.uds.onyx.v1.ListGoalsRequest": {
5914
+ "type": "I",
5915
+ "fields": {
5916
+ "application": {
5917
+ "type": "string"
5918
+ }
5919
+ }
5920
+ },
5921
+ "pushwoosh.uds.onyx.v1.ListGoalsResponse": {
5922
+ "type": "I",
5923
+ "fields": {
5924
+ "goals": {
5925
+ "type": "pushwoosh.uds.onyx.v1.BoardGoal",
5926
+ "array": true
5866
5927
  }
5867
5928
  }
5868
5929
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.620",
3
+ "version": "0.1.621",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -10,6 +10,7 @@ export type BoardService_GetBoard = RpcMethod<GetBoardRequest, GetBoardResponse>
10
10
  export type BoardService_MoveCard = RpcMethod<MoveCardRequest, MoveCardResponse>;
11
11
  export type BoardService_OpenCardChat = RpcMethod<OpenCardChatRequest, OpenCardChatResponse>;
12
12
  export type BoardService_GetCardTimeline = RpcMethod<GetCardTimelineRequest, GetCardTimelineResponse>;
13
+ export type BoardService_ListGoals = RpcMethod<ListGoalsRequest, ListGoalsResponse>;
13
14
  export type BoardService_GetAgentAccess = RpcMethod<GetAgentAccessRequest, GetAgentAccessResponse>;
14
15
  /**
15
16
  * BoardService is the marketing agent's board: cards laid out in columns, each rendered by its kind.
@@ -23,6 +24,8 @@ export interface BoardService {
23
24
  OpenCardChat: BoardService_OpenCardChat;
24
25
  /** The card's history newest first: its events and its chat's messages merged by time. */
25
26
  GetCardTimeline: BoardService_GetCardTimeline;
27
+ /** The application's last 5 goals, newest first, each with its result: the board's versions. */
28
+ ListGoals: BoardService_ListGoals;
26
29
  GetAgentAccess: BoardService_GetAgentAccess;
27
30
  }
28
31
  export type Card = {
@@ -136,14 +139,29 @@ export type BoardGoal = {
136
139
  periodStart: Date;
137
140
  periodEnd: Date;
138
141
  summary: string;
139
- /** Sums of payload.result.value / payload.result.proven over the goal's closed cards. */
142
+ /** The goal's slices of its closed cards (payload.result_by_goal) plus what a revision carried over. */
140
143
  value: number;
141
144
  proven: number;
142
- /** active, or reached while it stays on the board (its period, at least 14 days after it was reached). */
145
+ /** active; reached until its period ends; closed once it ended or was replaced. */
143
146
  status: string;
144
147
  /** The period's current day (1-based) and its length in days. */
145
148
  dayOf: number;
146
149
  days: number;
150
+ /** on_track | behind | reached against a linear plan to date; empty once closed. */
151
+ pace: string;
152
+ /** reached | missed | revised, set once the goal closed. */
153
+ outcome: string;
154
+ endedAt: Date;
155
+ /** Taken over from the goal this version revises, already inside value / proven. */
156
+ carriedValue: number;
157
+ carriedProven: number;
158
+ /** The goal this version replaced: "revised <revised_at>, was <target>". */
159
+ revises: GoalRevision;
160
+ };
161
+ export type GoalRevision = {
162
+ goalId: number;
163
+ target: number;
164
+ revisedAt: Date;
147
165
  };
148
166
  export type BoardPulse = {
149
167
  /** The earliest wake-up of an agent card; unset when none is scheduled. */
@@ -153,9 +171,14 @@ export type BoardPulse = {
153
171
  export type GetBoardRequest = {
154
172
  application: string;
155
173
  includeHidden: boolean;
174
+ /**
175
+ * A past version of the board (a ListGoals id): its cards with a share in that goal, read-only.
176
+ * 0 or the goal on the board is the live board.
177
+ */
178
+ goalId: number;
156
179
  };
157
180
  export type GetBoardResponse = {
158
- /** Unset when the application has no active goal. */
181
+ /** The goal in play, else the last closed one for 14 days after it ended; unset otherwise. */
159
182
  goal: BoardGoal;
160
183
  columns: BoardColumn[];
161
184
  /** Agent cards outside every column, newest first. */
@@ -167,6 +190,14 @@ export type GetBoardResponse = {
167
190
  hidden: Card[];
168
191
  /** How many cards are hidden, counted with or without include_hidden. */
169
192
  hiddenCount: number;
193
+ /** A past version (goal_id): no card offers actions. */
194
+ readOnly: boolean;
195
+ };
196
+ export type ListGoalsRequest = {
197
+ application: string;
198
+ };
199
+ export type ListGoalsResponse = {
200
+ goals: BoardGoal[];
170
201
  };
171
202
  export type MoveCardRequest = {
172
203
  application: string;
@@ -238,7 +269,10 @@ export type GetAgentAccessResponse = {
238
269
  enabled: boolean;
239
270
  /** A goal is active, or reached and still on the board. */
240
271
  hasGoal: boolean;
241
- /** no_goal | goal_proposed | goal_active: goal_active as has_goal, goal_proposed when only a goal card waits for the client. */
272
+ /**
273
+ * no_goal | goal_proposed | goal_active | goal_ended: goal_active as has_goal, goal_proposed when only a first goal
274
+ * card waits for the client, goal_ended when a goal ended and the next one is not accepted.
275
+ */
242
276
  stage: string;
243
277
  /** The application's agency (advisor) chat, created on first read; 0 when the agent is off. */
244
278
  agencyChatId: number;