@kevisual/cnb 0.0.25 → 0.0.27

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/routes.d.ts CHANGED
@@ -526,6 +526,13 @@ declare class Issue extends CNBCore {
526
526
  setIssueProperty(repo: string, issueNumber: string | number, properties: {
527
527
  [key: string]: any;
528
528
  }[]): Promise<any>;
529
+ /**
530
+ * 获取alive issue的元数据
531
+ * @param repo
532
+ * @param issueNumber
533
+ * @returns
534
+ */
535
+ getAliveMetadata(repo: string, issueNumber: string | number): Promise<Result<AliveMetadata>>;
529
536
  }
530
537
  type GetListParams = {
531
538
  /** 问题指派人名称,例如: 张三, 李四, -; - 表示不指派给任何人 */
@@ -557,6 +564,18 @@ type GetListParams = {
557
564
  /** 问题更新时间过滤-结束,例如: 2022-01-31 */
558
565
  updated_time_end?: string;
559
566
  };
567
+ type AliveMetadata = {
568
+ aliveSessionID: string;
569
+ aliveChannelID: string;
570
+ domain: string;
571
+ subscriptions: {
572
+ event: 'subscribe';
573
+ data: {
574
+ id: string;
575
+ off: number;
576
+ };
577
+ }[];
578
+ };
560
579
 
561
580
  declare class Mission extends CNBCore {
562
581
  constructor(options: CNBCoreOptions);