@pushwoosh/rpc-gateway-ai-assistant 0.1.655 → 0.1.657

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
@@ -4024,6 +4024,9 @@ export const data = {
4024
4024
  },
4025
4025
  "cardId": {
4026
4026
  "type": "number"
4027
+ },
4028
+ "capReason": {
4029
+ "type": "string"
4027
4030
  }
4028
4031
  }
4029
4032
  },
@@ -4403,6 +4406,9 @@ export const data = {
4403
4406
  },
4404
4407
  "toolRequestMessageId": {
4405
4408
  "type": "number"
4409
+ },
4410
+ "capReason": {
4411
+ "type": "string"
4406
4412
  }
4407
4413
  }
4408
4414
  },
@@ -6257,6 +6263,9 @@ export const data = {
6257
6263
  },
6258
6264
  "autonomy": {
6259
6265
  "type": "string"
6266
+ },
6267
+ "blockedReason": {
6268
+ "type": "string"
6260
6269
  }
6261
6270
  }
6262
6271
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.655",
3
+ "version": "0.1.657",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -24,6 +24,8 @@ export type Message = {
24
24
  iterationCapped: boolean;
25
25
  /** The board card this message announces; the widget draws the card under the text. */
26
26
  cardId: number;
27
+ /** Why an iteration_capped row stopped: "steps", "length" (the answer hit the output limit) or "session". */
28
+ capReason: string;
27
29
  };
28
30
  /** SuggestedActionKind says what a click does; UNSPECIFIED keeps today's rule: prompt or url. */
29
31
  export type SuggestedActionKind = 'SUGGESTED_ACTION_KIND_UNSPECIFIED'
@@ -265,6 +267,8 @@ export type InferenceResponse = {
265
267
  proposal: Proposal;
266
268
  /** Set on STREAM_EVENT_TOOL_REQUEST_SAVED */
267
269
  toolRequestMessageId: number;
270
+ /** Set on the closing MESSAGE_STOP with stop_reason "iteration_cap"; see Message.cap_reason */
271
+ capReason: string;
268
272
  };
269
273
  export type GetConsentRequest = {
270
274
  application: string;
@@ -41,7 +41,10 @@ export interface BoardService {
41
41
  * The application's passport and the verticals with a published passport and their published jobs.
42
42
  */
43
43
  GetAgentSetup: BoardService_GetAgentSetup;
44
- /** Switches the agent on in a mode: the passport is written whole (template by vertical, every module). */
44
+ /**
45
+ * Switches the agent on in a mode: the passport is written whole (template by vertical, every module). An account
46
+ * without the "Marketing agent" token gets one created as the caller; FailedPrecondition when the caller cannot.
47
+ */
45
48
  ActivateAgent: BoardService_ActivateAgent;
46
49
  /** Changes the mode only; proposes_only → readonly with a card accepted or building is FailedPrecondition. */
47
50
  SetAgentMode: BoardService_SetAgentMode;
@@ -322,7 +325,7 @@ export type GetAgentAccessRequest = {
322
325
  application: string;
323
326
  };
324
327
  export type GetAgentAccessResponse = {
325
- /** An enabled agent profile and the account's consent. */
328
+ /** An enabled agent profile; blocked_reason says when it still cannot act. */
326
329
  enabled: boolean;
327
330
  /** A goal is active, or reached and still on the board. */
328
331
  hasGoal: boolean;
@@ -340,6 +343,11 @@ export type GetAgentAccessResponse = {
340
343
  focuses: AgentFocus[];
341
344
  /** readonly | proposes_only; empty when the agent is off. */
342
345
  autonomy: string;
346
+ /**
347
+ * Why an enabled agent is paused, empty when it can act: no_api_token (no account token "Marketing agent"),
348
+ * no_consent (no AI subprocessor consent), no_passport (the profile's vertical has no published passport).
349
+ */
350
+ blockedReason: string;
343
351
  };
344
352
  /** A kind of goal the client may pick, from the vertical passport. */
345
353
  export type AgentFocus = {