@pushwoosh/rpc-gateway-ai-assistant 0.1.480 → 0.1.481

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
@@ -3735,6 +3735,9 @@ export const data = {
3735
3735
  },
3736
3736
  "turnUserMessageId": {
3737
3737
  "type": "number"
3738
+ },
3739
+ "isAdvisor": {
3740
+ "type": "boolean"
3738
3741
  }
3739
3742
  }
3740
3743
  },
@@ -3749,6 +3752,9 @@ export const data = {
3749
3752
  },
3750
3753
  "isOnboarding": {
3751
3754
  "type": "boolean"
3755
+ },
3756
+ "isAdvisor": {
3757
+ "type": "boolean"
3752
3758
  }
3753
3759
  }
3754
3760
  },
@@ -4303,6 +4309,9 @@ export const data = {
4303
4309
  },
4304
4310
  "createdAt": {
4305
4311
  "type": "Date"
4312
+ },
4313
+ "rejectReason": {
4314
+ "type": "string"
4306
4315
  }
4307
4316
  }
4308
4317
  },
@@ -4353,6 +4362,9 @@ export const data = {
4353
4362
  },
4354
4363
  "accept": {
4355
4364
  "type": "boolean"
4365
+ },
4366
+ "rejectReason": {
4367
+ "type": "string"
4356
4368
  }
4357
4369
  }
4358
4370
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.480",
3
+ "version": "0.1.481",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -82,6 +82,11 @@ export type Chat = {
82
82
  * belong to that turn and arrive through AttachTurn; 0 means it has not written one yet.
83
83
  */
84
84
  turnUserMessageId: number;
85
+ /**
86
+ * is_advisor flags the application's "Agent advice" chat: one per application, shared by its users,
87
+ * holding the marketing agent's cards and reports. It cannot be deleted, cleared or renamed.
88
+ */
89
+ isAdvisor: boolean;
85
90
  };
86
91
  /** CreateChatRequest for creating a new chat */
87
92
  export type CreateChatRequest = {
@@ -94,6 +99,11 @@ export type CreateChatRequest = {
94
99
  * the server returns it instead of creating a new chat.
95
100
  */
96
101
  isOnboarding: boolean;
102
+ /**
103
+ * is_advisor requests the application's advisor chat, returning the existing one if any.
104
+ * Combined with is_onboarding it is InvalidArgument.
105
+ */
106
+ isAdvisor: boolean;
97
107
  };
98
108
  /** CreateChatResponse returns the created chat */
99
109
  export type CreateChatResponse = {
@@ -447,6 +457,8 @@ export type Proposal = {
447
457
  /** claude | gemini | chatgpt | llm | runner */
448
458
  inferencePath: string;
449
459
  createdAt: Date;
460
+ /** the user's reason for rejecting, empty when none was given */
461
+ rejectReason: string;
450
462
  };
451
463
  export type ListProposalsRequest = {
452
464
  application: string;
@@ -468,6 +480,8 @@ export type CountPendingProposalsResponse = {
468
480
  export type ProposalDecision = {
469
481
  proposalId: number;
470
482
  accept: boolean;
483
+ /** read only when accept is false */
484
+ rejectReason: string;
471
485
  };
472
486
  /** Decides a whole card at once: every pending proposal of that tool_request row not listed here is rejected. */
473
487
  export type DecideProposalsRequest = {