dsh-config-manager 0.1.48 → 0.1.49

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/lib/client.d.ts CHANGED
@@ -281,8 +281,8 @@ interface SnapshotMeta {
281
281
  }
282
282
  //#endregion
283
283
  //#region src/core/run-registry.d.ts
284
- /** run 类型:导出 / 导入 / 自动同步 / 一键同步逐项应用 / 定时备份。 */
285
- type RunKind = 'export' | 'import' | 'autosync' | 'sync-apply' | 'backup-schedule';
284
+ /** run 类型:导出 / 导入 / 自动同步 / 一键同步逐项应用 / 定时备份 / 快照恢复。 */
285
+ type RunKind = 'export' | 'import' | 'autosync' | 'sync-apply' | 'backup-schedule' | 'restore';
286
286
  /** run 状态:进行中 / 完成 / 失败。 */
287
287
  type RunStatus = 'running' | 'done' | 'failed';
288
288
  /** 单个 run 的实时状态(/progress 返回体;纯 JSON 可序列化)。 */
@@ -638,11 +638,13 @@ interface DecryptArchiveResponse {
638
638
  /** 解密覆盖的凭据 ref 名(非值);UI 据此从补录阶段剔除已恢复项 */
639
639
  refs: string[];
640
640
  }
641
- /** restore 端点响应:dryRun=true 返回 plan;执行返回 report(与 CLI 一致的诚实报告) */
641
+ /** restore 端点响应:dryRun=true 返回 plan;执行返回 report(与 CLI 一致的诚实报告)。
642
+ * runId 仅真实执行时存在(宿主 RunRegistry 登记;/runs + /progress 刷新恢复用)。 */
642
643
  interface RestoreResponse {
643
644
  dryRun: boolean;
644
645
  plan?: RestorePlan;
645
646
  report?: RestoreReport;
647
+ runId?: string;
646
648
  }
647
649
  /** Star 引导弹窗状态(GET /star-prompt;纯偏好,无 secret) */
648
650
  interface StarPromptStatus {