@bunbase-ae/js 2.11.0 → 2.12.1-next.274.f95da63

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/admin.ts +23 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunbase-ae/js",
3
- "version": "2.11.0",
3
+ "version": "2.12.1-next.274.f95da63",
4
4
  "type": "module",
5
5
  "description": "TypeScript/JavaScript SDK for BunBase",
6
6
  "license": "UNLICENSED",
package/src/admin.ts CHANGED
@@ -362,8 +362,20 @@ export interface BackupFile {
362
362
  format: "sqlite" | "pgdump";
363
363
  /** Hex-encoded SHA-256 of the dump contents. Present when the manifest is available. */
364
364
  sha256?: string;
365
- /** Per-destination push results. Only populated for newly-created backups. */
366
- destinations?: Array<{ id: string; type: string; ok: boolean; error?: string }>;
365
+ /**
366
+ * Per-destination push results recorded when the backup was created.
367
+ * Populated for backups taken on a server running #457 or later (read from
368
+ * the `<filename>.push-results.json` sidecar by the admin list handler);
369
+ * absent for legacy backups.
370
+ */
371
+ destinations?: Array<{
372
+ id: string;
373
+ type: "local" | "s3" | "ssh";
374
+ ok: boolean;
375
+ /** Wall-clock spent on this destination's `push()` call. */
376
+ durationMs: number;
377
+ error?: string;
378
+ }>;
367
379
  /**
368
380
  * Whether an encrypted env bundle sidecar (`<filename>.env.json.enc`) is
369
381
  * present alongside the dump. When true, the Studio Restore flow prompts
@@ -941,6 +953,15 @@ class AdminSettingsClient {
941
953
  );
942
954
  }
943
955
 
956
+ /**
957
+ * Settings change audit log.
958
+ *
959
+ * Returns one entry per changed setting key, most recent first. Secret
960
+ * keys (SMTP password, OAuth client secrets, S3 secret access key, Resend
961
+ * API key) are masked in `old_value`/`new_value`. The `changed_by` field
962
+ * is the admin user id when the call was authenticated with an admin JWT,
963
+ * or the literal `"admin_secret"` when authenticated via `ADMIN_SECRET`.
964
+ */
944
965
  async getAudit(limit = 50, offset = 0): Promise<{ items: SettingsAuditEntry[]; total: number }> {
945
966
  return this.http.request<{ items: SettingsAuditEntry[]; total: number }>(
946
967
  "GET",