@aouda/client 0.1.16 → 0.1.17

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.
@@ -421,7 +421,7 @@ var import_node_url = require("url");
421
421
  // package.json
422
422
  var package_default = {
423
423
  name: "@aouda/client",
424
- version: "0.1.16",
424
+ version: "0.1.17",
425
425
  description: "Official TypeScript/JavaScript client library for Aouda",
426
426
  type: "module",
427
427
  main: "./dist/index.cjs",
@@ -4954,14 +4954,21 @@ var BackupAdminApi = class {
4954
4954
  return this.transport.get(`${BASE_PATH4}/list`);
4955
4955
  }
4956
4956
  /**
4957
- * Restore a backup by id.
4958
- * POST /admin/backup/restore/{id}
4957
+ * Restore a backup. The string form is an exact restore of that id
4958
+ * (`POST /admin/backup/restore/{id}` with `{}`). The object form posts the body to
4959
+ * `POST /admin/backup/restore` and may carry `targetTime` for point-in-time recovery.
4959
4960
  */
4960
- async restore(backupId) {
4961
- const encoded = encodeURIComponent(backupId);
4961
+ async restore(input) {
4962
+ if (typeof input === "string") {
4963
+ const encoded = encodeURIComponent(input);
4964
+ return this.transport.post(
4965
+ `${BASE_PATH4}/restore/${encoded}`,
4966
+ {}
4967
+ );
4968
+ }
4962
4969
  return this.transport.post(
4963
- `${BASE_PATH4}/restore/${encoded}`,
4964
- {}
4970
+ `${BASE_PATH4}/restore`,
4971
+ input
4965
4972
  );
4966
4973
  }
4967
4974
  /**