@bunbase-ae/js 2.7.5-next.206.03e7282 → 2.7.5-next.211.98affc4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunbase-ae/js",
3
- "version": "2.7.5-next.206.03e7282",
3
+ "version": "2.7.5-next.211.98affc4",
4
4
  "type": "module",
5
5
  "description": "TypeScript/JavaScript SDK for BunBase",
6
6
  "license": "UNLICENSED",
package/src/admin.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  // client.admin.system — health + stats
15
15
 
16
16
  import type { HttpClient } from "./http";
17
- import type { Filter } from "./types";
17
+ import { BunBaseError, type Filter } from "./types";
18
18
 
19
19
  // ─── Shared admin types ───────────────────────────────────────────────────────
20
20
 
@@ -95,6 +95,8 @@ export interface AdminRecord {
95
95
  _created_at: number;
96
96
  _updated_at: number;
97
97
  _owner_id: string | null;
98
+ _tenant_id: string | null;
99
+ _deleted_at: number | null;
98
100
  [key: string]: unknown;
99
101
  }
100
102
 
@@ -330,7 +332,14 @@ export interface SettingsAuditEntry {
330
332
  export interface BackupFile {
331
333
  filename: string;
332
334
  size: number;
335
+ /** ISO 8601 UTC timestamp parsed from the filename. */
333
336
  created_at: string;
337
+ /** Database dump format. */
338
+ format: "sqlite" | "pgdump";
339
+ /** Hex-encoded SHA-256 of the dump contents. Present when the manifest is available. */
340
+ sha256?: string;
341
+ /** Per-destination push results. Only populated for newly-created backups. */
342
+ destinations?: Array<{ id: string; type: string; ok: boolean; error?: string }>;
334
343
  }
335
344
 
336
345
  export interface HealthResponse {
@@ -624,8 +633,9 @@ class AdminCollectionsClient {
624
633
  "GET",
625
634
  `/api/v1/admin/collections/${collection}/records/${id}`,
626
635
  );
627
- } catch {
628
- return null;
636
+ } catch (err) {
637
+ if (err instanceof BunBaseError && err.status === 404) return null;
638
+ throw err;
629
639
  }
630
640
  }
631
641
 
package/src/types.ts CHANGED
@@ -52,7 +52,8 @@ export interface ListResult<T> {
52
52
  items: T[];
53
53
  /** Total count. Only present when `count: true` is passed in the list options. */
54
54
  total?: number;
55
- page: number;
55
+ /** @deprecated Present only when `page` was explicitly requested. Use `next_cursor` instead. */
56
+ page?: number;
56
57
  limit: number;
57
58
  /** Cursor for the next page. Pass as `after` in the next list call. */
58
59
  next_cursor: string | null;