@pushwoosh/rpc-gateway-ai-assistant 0.1.488 → 0.1.489

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
@@ -4557,6 +4557,120 @@ export const data = {
4557
4557
  "response": "pushwoosh.accounts.assistant.v1.AppendVoiceTranscriptResponse",
4558
4558
  "method": "post",
4559
4559
  "path": "/api/v1/applications/{application}/realtime/transcript"
4560
+ },
4561
+ "ListAgentWork": {
4562
+ "request": "pushwoosh.accounts.assistant.v1.ListAgentWorkRequest",
4563
+ "response": "pushwoosh.accounts.assistant.v1.ListAgentWorkResponse",
4564
+ "method": "get",
4565
+ "path": "/api/v1/applications/{application}/agent-work"
4566
+ }
4567
+ }
4568
+ },
4569
+ "pushwoosh.accounts.assistant.v1.ListAgentWorkRequest": {
4570
+ "type": "I",
4571
+ "fields": {
4572
+ "application": {
4573
+ "type": "string"
4574
+ }
4575
+ }
4576
+ },
4577
+ "pushwoosh.accounts.assistant.v1.ListAgentWorkResponse": {
4578
+ "type": "I",
4579
+ "fields": {
4580
+ "cards": {
4581
+ "type": "pushwoosh.accounts.assistant.v1.Proposal",
4582
+ "array": true
4583
+ },
4584
+ "plan": {
4585
+ "type": "pushwoosh.accounts.assistant.v1.AgentPlanItem",
4586
+ "array": true
4587
+ },
4588
+ "runs": {
4589
+ "type": "pushwoosh.accounts.assistant.v1.AgentRun",
4590
+ "array": true
4591
+ }
4592
+ }
4593
+ },
4594
+ "pushwoosh.accounts.assistant.v1.AgentPlanItem": {
4595
+ "type": "I",
4596
+ "fields": {
4597
+ "id": {
4598
+ "type": "number"
4599
+ },
4600
+ "skill": {
4601
+ "type": "string"
4602
+ },
4603
+ "kind": {
4604
+ "type": "string"
4605
+ },
4606
+ "hypothesis": {
4607
+ "type": "string"
4608
+ },
4609
+ "status": {
4610
+ "type": "string"
4611
+ },
4612
+ "priority": {
4613
+ "type": "number"
4614
+ },
4615
+ "notes": {
4616
+ "type": "string"
4617
+ },
4618
+ "proposalId": {
4619
+ "type": "number"
4620
+ },
4621
+ "runId": {
4622
+ "type": "number"
4623
+ },
4624
+ "createdAt": {
4625
+ "type": "Date"
4626
+ },
4627
+ "updatedAt": {
4628
+ "type": "Date"
4629
+ }
4630
+ }
4631
+ },
4632
+ "pushwoosh.accounts.assistant.v1.AgentRun": {
4633
+ "type": "I",
4634
+ "fields": {
4635
+ "id": {
4636
+ "type": "number"
4637
+ },
4638
+ "skill": {
4639
+ "type": "string"
4640
+ },
4641
+ "kind": {
4642
+ "type": "string"
4643
+ },
4644
+ "status": {
4645
+ "type": "string"
4646
+ },
4647
+ "journeyUuid": {
4648
+ "type": "string"
4649
+ },
4650
+ "metric": {
4651
+ "type": "string"
4652
+ },
4653
+ "windowDays": {
4654
+ "type": "number"
4655
+ },
4656
+ "startedAt": {
4657
+ "type": "Date"
4658
+ },
4659
+ "measureAt": {
4660
+ "type": "Date"
4661
+ },
4662
+ "effect": {
4663
+ "type": "number",
4664
+ "optional": true
4665
+ },
4666
+ "evidence": {
4667
+ "type": "string"
4668
+ },
4669
+ "verdict": {
4670
+ "type": "string"
4671
+ },
4672
+ "summary": {
4673
+ "type": "string"
4560
4674
  }
4561
4675
  }
4562
4676
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.488",
3
+ "version": "0.1.489",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -507,6 +507,7 @@ export type AssistantService_CompleteOnboardingHandoff = RpcMethod<CompleteOnboa
507
507
  export type AssistantService_CreateRealtimeSession = RpcMethod<CreateRealtimeSessionRequest, CreateRealtimeSessionResponse>;
508
508
  export type AssistantService_CallVoiceTool = RpcMethod<CallVoiceToolRequest, CallVoiceToolResponse>;
509
509
  export type AssistantService_AppendVoiceTranscript = RpcMethod<AppendVoiceTranscriptRequest, AppendVoiceTranscriptResponse>;
510
+ export type AssistantService_ListAgentWork = RpcMethod<ListAgentWorkRequest, ListAgentWorkResponse>;
510
511
  export interface AssistantService {
511
512
  /** Create a new chat */
512
513
  CreateChat: AssistantService_CreateChat;
@@ -604,4 +605,51 @@ export interface AssistantService {
604
605
  * turns finish, so voice conversations are logged like text ones.
605
606
  */
606
607
  AppendVoiceTranscript: AssistantService_AppendVoiceTranscript;
608
+ /** ListAgentWork is the marketing agent's board for one application: its cards, plan and runs. */
609
+ ListAgentWork: AssistantService_ListAgentWork;
607
610
  }
611
+ export type ListAgentWorkRequest = {
612
+ application: string;
613
+ };
614
+ export type ListAgentWorkResponse = {
615
+ /** proposals of the application's advisor chat, any status */
616
+ cards: Proposal[];
617
+ plan: AgentPlanItem[];
618
+ runs: AgentRun[];
619
+ };
620
+ /** One line of the agent's plan; field names match the ai_agent_plan_items columns. */
621
+ export type AgentPlanItem = {
622
+ id: number;
623
+ skill: string;
624
+ /** gap | opportunity | agency_experiment */
625
+ kind: string;
626
+ hypothesis: string;
627
+ /** next | proposed | in_progress | confirmed | failed | dropped */
628
+ status: string;
629
+ priority: number;
630
+ notes: string;
631
+ /** 0 = no card yet */
632
+ proposalId: number;
633
+ /** 0 = not built yet */
634
+ runId: number;
635
+ createdAt: Date;
636
+ updatedAt: Date;
637
+ };
638
+ /** One built campaign and its measurement; field names match the ai_agent_runs columns. */
639
+ export type AgentRun = {
640
+ id: number;
641
+ skill: string;
642
+ kind: string;
643
+ /** running | measured | failed */
644
+ status: string;
645
+ journeyUuid: string;
646
+ metric: string;
647
+ windowDays: number;
648
+ startedAt: Date;
649
+ measureAt: Date;
650
+ /** unset until measured */
651
+ effect?: number;
652
+ evidence: string;
653
+ verdict: string;
654
+ summary: string;
655
+ };