@pushwoosh/rpc-gateway-ai-assistant 0.1.478 → 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
@@ -2988,6 +2988,38 @@ export const data = {
2988
2988
  },
2989
2989
  "brandVoice": {
2990
2990
  "type": "string"
2991
+ },
2992
+ "legal": {
2993
+ "type": "pushwoosh.aigen.v1.AiGenLegal"
2994
+ }
2995
+ }
2996
+ },
2997
+ "pushwoosh.aigen.v1.AiGenLegal": {
2998
+ "type": "I",
2999
+ "fields": {
3000
+ "companyName": {
3001
+ "type": "string"
3002
+ },
3003
+ "address": {
3004
+ "type": "string"
3005
+ },
3006
+ "links": {
3007
+ "type": "pushwoosh.aigen.v1.AiGenLegalLink",
3008
+ "array": true
3009
+ }
3010
+ }
3011
+ },
3012
+ "pushwoosh.aigen.v1.AiGenLegalLink": {
3013
+ "type": "I",
3014
+ "fields": {
3015
+ "kind": {
3016
+ "type": "string"
3017
+ },
3018
+ "url": {
3019
+ "type": "string"
3020
+ },
3021
+ "label": {
3022
+ "type": "string"
2991
3023
  }
2992
3024
  }
2993
3025
  },
@@ -3703,6 +3735,9 @@ export const data = {
3703
3735
  },
3704
3736
  "turnUserMessageId": {
3705
3737
  "type": "number"
3738
+ },
3739
+ "isAdvisor": {
3740
+ "type": "boolean"
3706
3741
  }
3707
3742
  }
3708
3743
  },
@@ -3717,6 +3752,9 @@ export const data = {
3717
3752
  },
3718
3753
  "isOnboarding": {
3719
3754
  "type": "boolean"
3755
+ },
3756
+ "isAdvisor": {
3757
+ "type": "boolean"
3720
3758
  }
3721
3759
  }
3722
3760
  },
@@ -4271,6 +4309,9 @@ export const data = {
4271
4309
  },
4272
4310
  "createdAt": {
4273
4311
  "type": "Date"
4312
+ },
4313
+ "rejectReason": {
4314
+ "type": "string"
4274
4315
  }
4275
4316
  }
4276
4317
  },
@@ -4321,6 +4362,9 @@ export const data = {
4321
4362
  },
4322
4363
  "accept": {
4323
4364
  "type": "boolean"
4365
+ },
4366
+ "rejectReason": {
4367
+ "type": "string"
4324
4368
  }
4325
4369
  }
4326
4370
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.478",
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 = {
@@ -734,6 +734,26 @@ export type AiGenExtractThemeResponse = {
734
734
  logoUrl: string;
735
735
  /** How the brand talks, 1-3 sentences, for a copywriter to imitate. Empty without copy. */
736
736
  brandVoice: string;
737
+ /**
738
+ * Company details read off site_url's footer and imprint/contact pages, every value
739
+ * verbatim from the site. Always set; fields stay empty without site_url or a find.
740
+ */
741
+ legal: AiGenLegal;
742
+ };
743
+ /** AiGenLegal is the legal block an email footer needs; a field the site does not show stays empty. */
744
+ export type AiGenLegal = {
745
+ companyName: string;
746
+ /** One line, as the site writes it. */
747
+ address: string;
748
+ links: AiGenLegalLink[];
749
+ };
750
+ export type AiGenLegalLink = {
751
+ /** privacy | terms | imprint | contact | unsubscribe | other */
752
+ kind: string;
753
+ /** A link found on the site (http(s) or mailto). */
754
+ url: string;
755
+ /** The link's own text on the site. */
756
+ label: string;
737
757
  };
738
758
  export type AiGenTranslateRequest = {
739
759
  /** Application code, for account/app scoping middleware and logging. */