@pushwoosh/rpc-gateway-ai-assistant 0.1.536 → 0.1.538

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
@@ -4853,6 +4853,30 @@ export const data = {
4853
4853
  "response": "pushwoosh.accounts.assistant.v1.ListAgentWorkResponse",
4854
4854
  "method": "get",
4855
4855
  "path": "/api/v1/applications/{application}/agent-work"
4856
+ },
4857
+ "ListProjectSkills": {
4858
+ "request": "pushwoosh.accounts.assistant.v1.ListProjectSkillsRequest",
4859
+ "response": "pushwoosh.accounts.assistant.v1.ListProjectSkillsResponse",
4860
+ "method": "get",
4861
+ "path": "/api/v1/applications/{application}/agent-skills"
4862
+ },
4863
+ "SetProjectSkillEnabled": {
4864
+ "request": "pushwoosh.accounts.assistant.v1.SetProjectSkillEnabledRequest",
4865
+ "response": "pushwoosh.accounts.assistant.v1.SetProjectSkillEnabledResponse",
4866
+ "method": "post",
4867
+ "path": "/api/v1/applications/{application}/agent-skills/{id}/enabled"
4868
+ },
4869
+ "ListProjectRules": {
4870
+ "request": "pushwoosh.accounts.assistant.v1.ListProjectRulesRequest",
4871
+ "response": "pushwoosh.accounts.assistant.v1.ListProjectRulesResponse",
4872
+ "method": "get",
4873
+ "path": "/api/v1/applications/{application}/agent-rules"
4874
+ },
4875
+ "RemoveProjectRule": {
4876
+ "request": "pushwoosh.accounts.assistant.v1.RemoveProjectRuleRequest",
4877
+ "response": "pushwoosh.accounts.assistant.v1.RemoveProjectRuleResponse",
4878
+ "method": "delete",
4879
+ "path": "/api/v1/applications/{application}/agent-rules/{id}"
4856
4880
  }
4857
4881
  }
4858
4882
  },
@@ -4964,6 +4988,135 @@ export const data = {
4964
4988
  }
4965
4989
  }
4966
4990
  },
4991
+ "pushwoosh.accounts.assistant.v1.ProjectSkill": {
4992
+ "type": "I",
4993
+ "fields": {
4994
+ "id": {
4995
+ "type": "number"
4996
+ },
4997
+ "slug": {
4998
+ "type": "string"
4999
+ },
5000
+ "name": {
5001
+ "type": "string"
5002
+ },
5003
+ "job": {
5004
+ "type": "string"
5005
+ },
5006
+ "matters": {
5007
+ "type": "string"
5008
+ },
5009
+ "resultEvent": {
5010
+ "type": "string"
5011
+ },
5012
+ "enabled": {
5013
+ "type": "boolean"
5014
+ },
5015
+ "usesThisMonth": {
5016
+ "type": "number"
5017
+ },
5018
+ "createdAt": {
5019
+ "type": "Date"
5020
+ },
5021
+ "updatedAt": {
5022
+ "type": "Date"
5023
+ }
5024
+ }
5025
+ },
5026
+ "pushwoosh.accounts.assistant.v1.ListProjectSkillsRequest": {
5027
+ "type": "I",
5028
+ "fields": {
5029
+ "application": {
5030
+ "type": "string"
5031
+ }
5032
+ }
5033
+ },
5034
+ "pushwoosh.accounts.assistant.v1.ListProjectSkillsResponse": {
5035
+ "type": "I",
5036
+ "fields": {
5037
+ "skills": {
5038
+ "type": "pushwoosh.accounts.assistant.v1.ProjectSkill",
5039
+ "array": true
5040
+ }
5041
+ }
5042
+ },
5043
+ "pushwoosh.accounts.assistant.v1.SetProjectSkillEnabledRequest": {
5044
+ "type": "I",
5045
+ "fields": {
5046
+ "application": {
5047
+ "type": "string"
5048
+ },
5049
+ "id": {
5050
+ "type": "number"
5051
+ },
5052
+ "enabled": {
5053
+ "type": "boolean"
5054
+ }
5055
+ }
5056
+ },
5057
+ "pushwoosh.accounts.assistant.v1.SetProjectSkillEnabledResponse": {
5058
+ "type": "I",
5059
+ "fields": {
5060
+ "skill": {
5061
+ "type": "pushwoosh.accounts.assistant.v1.ProjectSkill"
5062
+ }
5063
+ }
5064
+ },
5065
+ "pushwoosh.accounts.assistant.v1.ProjectRule": {
5066
+ "type": "I",
5067
+ "fields": {
5068
+ "id": {
5069
+ "type": "number"
5070
+ },
5071
+ "text": {
5072
+ "type": "string"
5073
+ },
5074
+ "source": {
5075
+ "type": "string"
5076
+ },
5077
+ "sourceChatId": {
5078
+ "type": "number"
5079
+ },
5080
+ "sourceRunId": {
5081
+ "type": "number"
5082
+ },
5083
+ "createdAt": {
5084
+ "type": "Date"
5085
+ }
5086
+ }
5087
+ },
5088
+ "pushwoosh.accounts.assistant.v1.ListProjectRulesRequest": {
5089
+ "type": "I",
5090
+ "fields": {
5091
+ "application": {
5092
+ "type": "string"
5093
+ }
5094
+ }
5095
+ },
5096
+ "pushwoosh.accounts.assistant.v1.ListProjectRulesResponse": {
5097
+ "type": "I",
5098
+ "fields": {
5099
+ "rules": {
5100
+ "type": "pushwoosh.accounts.assistant.v1.ProjectRule",
5101
+ "array": true
5102
+ }
5103
+ }
5104
+ },
5105
+ "pushwoosh.accounts.assistant.v1.RemoveProjectRuleRequest": {
5106
+ "type": "I",
5107
+ "fields": {
5108
+ "application": {
5109
+ "type": "string"
5110
+ },
5111
+ "id": {
5112
+ "type": "number"
5113
+ }
5114
+ }
5115
+ },
5116
+ "pushwoosh.accounts.assistant.v1.RemoveProjectRuleResponse": {
5117
+ "type": "I",
5118
+ "fields": {}
5119
+ },
4967
5120
  "pushwoosh.llm.v1.LlmPolicy": {
4968
5121
  "type": "E",
4969
5122
  "values": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.536",
3
+ "version": "0.1.538",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -508,6 +508,10 @@ export type AssistantService_CreateRealtimeSession = RpcMethod<CreateRealtimeSes
508
508
  export type AssistantService_CallVoiceTool = RpcMethod<CallVoiceToolRequest, CallVoiceToolResponse>;
509
509
  export type AssistantService_AppendVoiceTranscript = RpcMethod<AppendVoiceTranscriptRequest, AppendVoiceTranscriptResponse>;
510
510
  export type AssistantService_ListAgentWork = RpcMethod<ListAgentWorkRequest, ListAgentWorkResponse>;
511
+ export type AssistantService_ListProjectSkills = RpcMethod<ListProjectSkillsRequest, ListProjectSkillsResponse>;
512
+ export type AssistantService_SetProjectSkillEnabled = RpcMethod<SetProjectSkillEnabledRequest, SetProjectSkillEnabledResponse>;
513
+ export type AssistantService_ListProjectRules = RpcMethod<ListProjectRulesRequest, ListProjectRulesResponse>;
514
+ export type AssistantService_RemoveProjectRule = RpcMethod<RemoveProjectRuleRequest, RemoveProjectRuleResponse>;
511
515
  export interface AssistantService {
512
516
  /** Create a new chat */
513
517
  CreateChat: AssistantService_CreateChat;
@@ -607,6 +611,13 @@ export interface AssistantService {
607
611
  AppendVoiceTranscript: AssistantService_AppendVoiceTranscript;
608
612
  /** ListAgentWork is the marketing agent's board for one application: its cards, plan and runs. */
609
613
  ListAgentWork: AssistantService_ListAgentWork;
614
+ /** ListProjectSkills is the Skills tab: the skills the agent learned for this application. */
615
+ ListProjectSkills: AssistantService_ListProjectSkills;
616
+ SetProjectSkillEnabled: AssistantService_SetProjectSkillEnabled;
617
+ /** ListProjectRules lists the application's active rules; removed ones are not returned. */
618
+ ListProjectRules: AssistantService_ListProjectRules;
619
+ /** RemoveProjectRule marks the rule removed; the row stays. */
620
+ RemoveProjectRule: AssistantService_RemoveProjectRule;
610
621
  }
611
622
  export type ListAgentWorkRequest = {
612
623
  application: string;
@@ -653,3 +664,54 @@ export type AgentRun = {
653
664
  verdict: string;
654
665
  summary: string;
655
666
  };
667
+ /** One skill of the application; field names match the ai_agent_project_skills columns. */
668
+ export type ProjectSkill = {
669
+ id: number;
670
+ slug: string;
671
+ name: string;
672
+ job: string;
673
+ matters: string;
674
+ resultEvent: string;
675
+ enabled: boolean;
676
+ /** ai_agent_runs with skill "project/<slug>" started this calendar month, UTC */
677
+ usesThisMonth: number;
678
+ createdAt: Date;
679
+ updatedAt: Date;
680
+ };
681
+ export type ListProjectSkillsRequest = {
682
+ application: string;
683
+ };
684
+ export type ListProjectSkillsResponse = {
685
+ skills: ProjectSkill[];
686
+ };
687
+ export type SetProjectSkillEnabledRequest = {
688
+ application: string;
689
+ id: number;
690
+ enabled: boolean;
691
+ };
692
+ export type SetProjectSkillEnabledResponse = {
693
+ skill: ProjectSkill;
694
+ };
695
+ /** One active rule of the application; field names match the ai_agent_project_rules columns. */
696
+ export type ProjectRule = {
697
+ id: number;
698
+ text: string;
699
+ /** chat | run */
700
+ source: string;
701
+ /** 0 = none */
702
+ sourceChatId: number;
703
+ /** 0 = none */
704
+ sourceRunId: number;
705
+ createdAt: Date;
706
+ };
707
+ export type ListProjectRulesRequest = {
708
+ application: string;
709
+ };
710
+ export type ListProjectRulesResponse = {
711
+ rules: ProjectRule[];
712
+ };
713
+ export type RemoveProjectRuleRequest = {
714
+ application: string;
715
+ id: number;
716
+ };
717
+ export type RemoveProjectRuleResponse = {};