@pmate/cli 0.24.9 → 0.24.11

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/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ declare enum Command {
22
22
  Qrcode = "qrcode",
23
23
  Random = "random",
24
24
  Collect = "collect",
25
+ ChatRoom = "chat-room",
25
26
  Agent = "agent",
26
27
  Runner = "runner",
27
28
  Ns = "ns",
@@ -556,6 +557,51 @@ type CollectCommandArgs = {
556
557
  source?: "cc" | "yelling";
557
558
  endpoint?: string;
558
559
  };
560
+ type ChatRoomCommonArgs = {
561
+ type: Command.ChatRoom;
562
+ bot: string;
563
+ app: string;
564
+ hubUrl?: string;
565
+ authBaseUrl?: string;
566
+ };
567
+ type ChatRoomCommandArgs = (ChatRoomCommonArgs & {
568
+ action: "join";
569
+ }) | (ChatRoomCommonArgs & {
570
+ action: "request-friend";
571
+ to: string;
572
+ message?: string;
573
+ }) | (ChatRoomCommonArgs & {
574
+ action: "accept-friend";
575
+ to: string;
576
+ requestId?: string;
577
+ message?: string;
578
+ }) | (ChatRoomCommonArgs & {
579
+ action: "delete-friend";
580
+ to: string;
581
+ reason?: string;
582
+ }) | (ChatRoomCommonArgs & {
583
+ action: "send";
584
+ to: string;
585
+ text: string;
586
+ }) | (ChatRoomCommonArgs & {
587
+ action: "group-create";
588
+ groupId: string;
589
+ members: string[];
590
+ title?: string;
591
+ }) | (ChatRoomCommonArgs & {
592
+ action: "group-send";
593
+ groupId: string;
594
+ text: string;
595
+ recipients?: string[];
596
+ }) | {
597
+ type: Command.ChatRoom;
598
+ action: "smoke";
599
+ botA: string;
600
+ botB: string;
601
+ app: string;
602
+ hubUrl?: string;
603
+ authBaseUrl?: string;
604
+ };
559
605
  type AgentCommandArgs = {
560
606
  type: Command.Agent;
561
607
  action: "list";
@@ -960,7 +1006,7 @@ type VercelDeploysCommandArgs = {
960
1006
  lastWeek: boolean;
961
1007
  };
962
1008
  type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
963
- type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | PrepareDevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | RunnerCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | OrgCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
1009
+ type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | PrepareDevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | ChatRoomCommandArgs | AgentCommandArgs | RunnerCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | OrgCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
964
1010
 
965
1011
  interface ParsedArgs {
966
1012
  help: boolean;