@pushwoosh/rpc-gateway-ai-assistant 0.1.656 → 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
@@ -6263,6 +6263,9 @@ export const data = {
6263
6263
  },
6264
6264
  "autonomy": {
6265
6265
  "type": "string"
6266
+ },
6267
+ "blockedReason": {
6268
+ "type": "string"
6266
6269
  }
6267
6270
  }
6268
6271
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.656",
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",
@@ -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 = {