@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.
@@ -1,4 +1,4 @@
1
- import { A as AoudaClient } from '../client-CsE8Vd6m.cjs';
1
+ import { A as AoudaClient } from '../client-CeON_I6V.cjs';
2
2
 
3
3
  /**
4
4
  * CLI for @aouda/client.
@@ -1,4 +1,4 @@
1
- import { A as AoudaClient } from '../client-CsE8Vd6m.js';
1
+ import { A as AoudaClient } from '../client-CeON_I6V.js';
2
2
 
3
3
  /**
4
4
  * CLI for @aouda/client.
package/dist/cli/index.js CHANGED
@@ -392,7 +392,7 @@ import { fileURLToPath } from "url";
392
392
  // package.json
393
393
  var package_default = {
394
394
  name: "@aouda/client",
395
- version: "0.1.16",
395
+ version: "0.1.17",
396
396
  description: "Official TypeScript/JavaScript client library for Aouda",
397
397
  type: "module",
398
398
  main: "./dist/index.cjs",
@@ -4925,14 +4925,21 @@ var BackupAdminApi = class {
4925
4925
  return this.transport.get(`${BASE_PATH4}/list`);
4926
4926
  }
4927
4927
  /**
4928
- * Restore a backup by id.
4929
- * POST /admin/backup/restore/{id}
4928
+ * Restore a backup. The string form is an exact restore of that id
4929
+ * (`POST /admin/backup/restore/{id}` with `{}`). The object form posts the body to
4930
+ * `POST /admin/backup/restore` and may carry `targetTime` for point-in-time recovery.
4930
4931
  */
4931
- async restore(backupId) {
4932
- const encoded = encodeURIComponent(backupId);
4932
+ async restore(input) {
4933
+ if (typeof input === "string") {
4934
+ const encoded = encodeURIComponent(input);
4935
+ return this.transport.post(
4936
+ `${BASE_PATH4}/restore/${encoded}`,
4937
+ {}
4938
+ );
4939
+ }
4933
4940
  return this.transport.post(
4934
- `${BASE_PATH4}/restore/${encoded}`,
4935
- {}
4941
+ `${BASE_PATH4}/restore`,
4942
+ input
4936
4943
  );
4937
4944
  }
4938
4945
  /**