@camstack/server 1.2.936 → 1.2.938
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/CHANGELOG.md +13 -0
- package/dist/api/core/api-catalog.js +4 -0
- package/dist/api/trpc/generated-cap-routers.js +8 -0
- package/package.json +11 -9
- package/system/dist/{addon-pages.cap-Df9FQwN1.js → addon-pages.cap-B3gHFDYW.js} +4 -2
- package/system/dist/{addon-pages.cap-DksUlE8j.mjs → addon-pages.cap-BLNN6ypr.mjs} +4 -2
- package/system/dist/{addon-settings.cap-3-TIIMq_.mjs → addon-settings.cap-CZ4MC7ha.mjs} +9 -1
- package/system/dist/{addon-settings.cap-DAiE0Nb0.js → addon-settings.cap-DrLdMFIe.js} +9 -1
- package/system/dist/{addon-widgets.cap-D9m48X78.mjs → addon-widgets.cap-BbmWMzIH.mjs} +4 -2
- package/system/dist/{addon-widgets.cap-C4jxflbF.js → addon-widgets.cap-DuCe2VRj.js} +4 -2
- package/system/dist/{base-device-Bwiblqmn.mjs → base-device-BcGO6LTT.mjs} +2 -2
- package/system/dist/{base-device-C1z4zYGR.js → base-device-CH8rfD9j.js} +2 -2
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +2 -2
- package/system/dist/builtins/alerts/alerts.addon.mjs +2 -2
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +4 -4
- package/system/dist/builtins/camera-grid/index.mjs +4 -4
- package/system/dist/builtins/composer/composer.addon.js +8 -8
- package/system/dist/builtins/composer/composer.addon.mjs +8 -8
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +11 -11
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -11
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +3 -3
- package/system/dist/builtins/device-history/device-history.addon.mjs +3 -3
- package/system/dist/builtins/device-manager/device-manager.addon.js +16 -9
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +16 -9
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +1 -1
- package/system/dist/builtins/keychain/index.mjs +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +3 -3
- package/system/dist/builtins/loki-logging/index.mjs +3 -3
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +2 -2
- package/system/dist/builtins/snapshot/index.mjs +2 -2
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +7 -7
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -7
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +2 -2
- package/system/dist/builtins/winston-logging/index.mjs +2 -2
- package/system/dist/{calendars.cap-CaFlShS9.js → calendars.cap-CGeOtL7Q.js} +7 -1
- package/system/dist/{calendars.cap-_C4eD4fi.mjs → calendars.cap-DQc6Q6qS.mjs} +7 -1
- package/system/dist/{capability-definition-HCmTem8c.js → capability-definition-BEVd01Xj.js} +9 -4
- package/system/dist/{capability-definition-C2rJdVeX.mjs → capability-definition-C1TLUVJR.mjs} +9 -4
- package/system/dist/{capture-engine-DiwbjoWp.mjs → capture-engine-CUZ3W0oZ.mjs} +1 -1
- package/system/dist/{capture-engine-DZ0LIUqA.js → capture-engine-mtDXEBAq.js} +1 -1
- package/system/dist/{composition-sources-BtUx1MfU.js → composition-sources-DCi-ldEb.js} +2 -2
- package/system/dist/{composition-sources-B0QW4g86.mjs → composition-sources-DgayqgHH.mjs} +2 -2
- package/system/dist/{core-blocks.cap-CnwBuf7E.mjs → core-blocks.cap-CWKQSevR.mjs} +38 -3
- package/system/dist/{core-blocks.cap-DlEuHq-S.js → core-blocks.cap-yLx6soaY.js} +38 -3
- package/system/dist/{database-snapshot.cap-DF38e-0P.js → database-snapshot.cap-BNS5c60M.js} +2 -2
- package/system/dist/{database-snapshot.cap-dhrc9xnY.mjs → database-snapshot.cap-a3lSf4hl.mjs} +2 -2
- package/system/dist/{device-manager.cap-CFZSPfUh.mjs → device-manager.cap-DIBK62-r.mjs} +14 -3
- package/system/dist/{device-manager.cap-2abwVLCM.js → device-manager.cap-DyHOIh5T.js} +14 -3
- package/system/dist/{device-provider.cap-D7TV2kVH.js → device-provider.cap-BKUGJSo0.js} +9 -1
- package/system/dist/{device-provider.cap-3Uvk6f5-.mjs → device-provider.cap-DU6HMUXH.mjs} +9 -1
- package/system/dist/{device-row-store-YF3jtmkk.mjs → device-row-store-C-_R-h1Z.mjs} +1 -1
- package/system/dist/{device-row-store-doTfMOqn.js → device-row-store-O4mNbp5q.js} +1 -1
- package/system/dist/{device-transitions.cap-DojcwEuX.mjs → device-transitions.cap-DCXP3zwY.mjs} +7 -1
- package/system/dist/{device-transitions.cap-B5w5PYU_.js → device-transitions.cap-zOGvAIHz.js} +7 -1
- package/system/dist/{error.cap-BCqzFlo2.js → error.cap-BxLEHP6z.js} +1 -1
- package/system/dist/{error.cap-5zNPAgU2.mjs → error.cap-DCwbIGEF.mjs} +1 -1
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/index.js +7 -7
- package/system/dist/index.mjs +7 -7
- package/system/dist/{integration-instances.cap-Cl9O-k4h.mjs → integration-instances.cap-BWttO42A.mjs} +10 -1
- package/system/dist/{integration-instances.cap-dJIxg2_s.js → integration-instances.cap-DSieF1w3.js} +10 -1
- package/system/dist/{keychain-admin.cap-GtM7gVGG.mjs → keychain-admin.cap-DOvL8TMG.mjs} +5 -1
- package/system/dist/{keychain-admin.cap-Db_oFX4H.js → keychain-admin.cap-DcRCRWtu.js} +5 -1
- package/system/dist/{log-destination.cap-DELPJkZ0.js → log-destination.cap-BzTWMj-T.js} +4 -1
- package/system/dist/{log-destination.cap-CxZzAVaR.mjs → log-destination.cap-QYMJPJwK.mjs} +4 -1
- package/system/dist/{low-power-sleep.cap-7lfVU41N.js → low-power-sleep.cap-B6mz6ojP.js} +1 -1
- package/system/dist/{low-power-sleep.cap-tGPmaZ_V.mjs → low-power-sleep.cap-C3Vi8Vxj.mjs} +1 -1
- package/system/dist/{metrics-provider.cap-BNmcHDkQ.mjs → metrics-provider.cap-01SwpLu5.mjs} +1 -1
- package/system/dist/{metrics-provider.cap-BcmQUt6l.js → metrics-provider.cap-BMKD5FH3.js} +1 -1
- package/system/dist/{migration-BMjgkyG2.js → migration-BOQlFZCN.js} +1 -1
- package/system/dist/{migration-DRJAtdy7.mjs → migration-DGAc6ywR.mjs} +1 -1
- package/system/dist/{network-access.cap-B5TWLDCC.js → network-access.cap-BEN_uRVb.js} +12 -2
- package/system/dist/{network-access.cap-BJnGbE6n.mjs → network-access.cap-Dy8FNNVs.mjs} +12 -2
- package/system/dist/{notification-rules.cap-DUmiMBQB.mjs → notification-rules.cap-0vVvsxQ1.mjs} +14 -1
- package/system/dist/{notification-rules.cap-BDh0LDhV.js → notification-rules.cap-Drwz-A4n.js} +14 -1
- package/system/dist/{notification-targets-CRH-9Dy5.js → notification-targets-Cc_3OBH9.js} +1 -1
- package/system/dist/{notification-targets-DaNE-pIt.mjs → notification-targets-DR-D-vIt.mjs} +1 -1
- package/system/dist/{platform-probe.cap-1WrMhWHx.js → platform-probe.cap-C0N9CugQ.js} +5 -1
- package/system/dist/{platform-probe.cap-BFeqFLtQ.mjs → platform-probe.cap-DzZ7xUfS.mjs} +5 -1
- package/system/dist/{prefix-walk-DD1BM923.js → prefix-walk-BRlQiqVg.js} +2 -2
- package/system/dist/{prefix-walk-CRnbYJcC.mjs → prefix-walk-BrrMuJBM.mjs} +2 -2
- package/system/dist/{ptz-autotrack.cap-DT2GypXw.mjs → ptz-autotrack.cap-CDF6FeTK.mjs} +1 -1
- package/system/dist/{ptz-autotrack.cap-BW7w0zHD.js → ptz-autotrack.cap-DOz0xL0O.js} +1 -1
- package/system/dist/{record-entries.cap-sMUhTvTU.mjs → record-entries.cap-BINjYZ1Q.mjs} +5 -2
- package/system/dist/{record-entries.cap-ti1C046R.js → record-entries.cap-NYExLM0O.js} +5 -2
- package/system/dist/{recording-archive.cap-D7bo-QSM.js → recording-archive.cap-BPJ7kvnd.js} +6 -1
- package/system/dist/{recording-archive.cap-7OrIn9e5.mjs → recording-archive.cap-RHAN45fa.mjs} +6 -1
- package/system/dist/{records.cap-CwLT2ByG.mjs → records.cap-DRwT1JbL.mjs} +10 -1
- package/system/dist/{records.cap-ClcWV64i.js → records.cap-wLi7r4Hj.js} +10 -1
- package/system/dist/{rename-composition-block-BRgyBO25.js → rename-composition-block-D44wnN_m.js} +464 -45
- package/system/dist/{rename-composition-block-BYRBlx-V.mjs → rename-composition-block-SPaUkmam.mjs} +464 -45
- package/system/dist/{restore-archive-CjAyKpgX.mjs → restore-archive-BHkSRJYW.mjs} +2 -2
- package/system/dist/{restore-archive-CkTkv3Ss.js → restore-archive-DRv1bPY7.js} +2 -2
- package/system/dist/{settings-store.cap-wlJhCspr.js → settings-store.cap-BhOIBtO4.js} +1 -1
- package/system/dist/{settings-store.cap-Ci4F2zul.mjs → settings-store.cap-CaDSOqgK.mjs} +1 -1
- package/system/dist/{snapshot.cap-Bs8Oyaqh.mjs → snapshot.cap-BkfHpJVO.mjs} +3 -1
- package/system/dist/{snapshot.cap-3suPdBHV.js → snapshot.cap-Cis6JRwn.js} +3 -1
- package/system/dist/{storage-admin.cap-BSv1NjKJ.mjs → storage-admin.cap-Ci4QbL6P.mjs} +4 -4
- package/system/dist/{storage-admin.cap-he0OqvVM.js → storage-admin.cap-DqW1ol4j.js} +4 -4
- package/system/dist/{storage-migration.cap-CyyATY_p.js → storage-migration.cap-CDOhpCQw.js} +23 -1
- package/system/dist/{storage-migration.cap-D7QqGobp.mjs → storage-migration.cap-Ciw84XPm.mjs} +23 -1
- package/system/dist/{storage-occupancy.cap-2rmnS58Z.js → storage-occupancy.cap-B-Z8f8TZ.js} +5 -3
- package/system/dist/{storage-occupancy.cap-CqBztTl9.mjs → storage-occupancy.cap-B-wbMPmx.mjs} +5 -3
- package/system/dist/{storage-provider.cap-Bw0CfxVc.js → storage-provider.cap-B3Hm_BGM.js} +15 -1
- package/system/dist/{storage-provider.cap-CMeck2w4.mjs → storage-provider.cap-CnN9ULbc.mjs} +15 -1
- package/system/dist/{stream-catalog.cap-Bp7SkgIf.mjs → stream-catalog.cap-D1Hy19Yc.mjs} +126 -10
- package/system/dist/{stream-catalog.cap-D3uwePiA.js → stream-catalog.cap-D8Y-uXcy.js} +131 -9
- package/system/dist/{user-management.cap-DBIi77sB.mjs → user-management.cap-Ctd4c_im.mjs} +26 -1
- package/system/dist/{user-management.cap-B9QDu8NE.js → user-management.cap-DyVb68rY.js} +26 -1
- package/system/dist/{vector-store.cap-DnyfrYDn.js → vector-store.cap-DEVI-XJC.js} +6 -1
- package/system/dist/{vector-store.cap-h2GHWQ1t.mjs → vector-store.cap-Df60cnrJ.mjs} +6 -1
- package/system/dist/{wal-maintenance-BG01rOn9.mjs → wal-maintenance-O6zTzaI7.mjs} +0 -0
- package/system/dist/{wal-maintenance-DyrebYKF.js → wal-maintenance-mV4OR3LR.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as defineRecordKinds } from "./record-kind-ub6NXqfh.mjs";
|
|
2
|
-
import { a as DataStoreDatabaseSchema } from "./settings-store.cap-
|
|
3
|
-
import { r as DATABASE_SNAPSHOT_SUFFIX } from "./database-snapshot.cap-
|
|
2
|
+
import { a as DataStoreDatabaseSchema } from "./settings-store.cap-CaDSOqgK.mjs";
|
|
3
|
+
import { r as DATABASE_SNAPSHOT_SUFFIX } from "./database-snapshot.cap-a3lSf4hl.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
6
6
|
import { Buffer as Buffer$1 } from "buffer";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
2
|
const require_record_kind = require("./record-kind-DoBfYHCs.js");
|
|
3
|
-
const require_settings_store_cap = require("./settings-store.cap-
|
|
4
|
-
const require_database_snapshot_cap = require("./database-snapshot.cap-
|
|
3
|
+
const require_settings_store_cap = require("./settings-store.cap-BhOIBtO4.js");
|
|
4
|
+
const require_database_snapshot_cap = require("./database-snapshot.cap-BNS5c60M.js");
|
|
5
5
|
let zod = require("zod");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let buffer = require("buffer");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region ../types/dist/esm/capabilities/settings-store.cap.mjs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../types/dist/esm/capabilities/settings-store.cap.mjs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method, d as systemMethod } from "./capability-definition-
|
|
1
|
+
import { c as method, d as systemMethod } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
3
3
|
import { t } from "./l10n-Bu6aUvSY.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -60,6 +60,7 @@ var snapshotCapability = {
|
|
|
60
60
|
deviceTypes: [DeviceType.Camera],
|
|
61
61
|
exposesDeviceSettings: true,
|
|
62
62
|
methods: {
|
|
63
|
+
/** A current snapshot image of a camera, optionally bypassing the cache. */
|
|
63
64
|
getSnapshot: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
64
65
|
deviceId: /* @__PURE__ */ z.number(),
|
|
65
66
|
streamId: /* @__PURE__ */ z.string().optional(),
|
|
@@ -81,6 +82,7 @@ var snapshotCapability = {
|
|
|
81
82
|
*/
|
|
82
83
|
force: /* @__PURE__ */ z.boolean().optional()
|
|
83
84
|
}), /* @__PURE__ */ SnapshotImageSchema.nullable()),
|
|
85
|
+
/** Drop a camera's cached snapshot. */
|
|
84
86
|
invalidateCache: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ z.void(), {
|
|
85
87
|
kind: "mutation",
|
|
86
88
|
auth: "admin"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_device_type = require("./device-type-CbQsnFdC.js");
|
|
3
3
|
const require_l10n = require("./l10n-CGMvp7NF.js");
|
|
4
4
|
let zod = require("zod");
|
|
@@ -60,6 +60,7 @@ var snapshotCapability = {
|
|
|
60
60
|
deviceTypes: [require_device_type.DeviceType.Camera],
|
|
61
61
|
exposesDeviceSettings: true,
|
|
62
62
|
methods: {
|
|
63
|
+
/** A current snapshot image of a camera, optionally bypassing the cache. */
|
|
63
64
|
getSnapshot: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
64
65
|
deviceId: /* @__PURE__ */ zod.z.number(),
|
|
65
66
|
streamId: /* @__PURE__ */ zod.z.string().optional(),
|
|
@@ -81,6 +82,7 @@ var snapshotCapability = {
|
|
|
81
82
|
*/
|
|
82
83
|
force: /* @__PURE__ */ zod.z.boolean().optional()
|
|
83
84
|
}), /* @__PURE__ */ SnapshotImageSchema.nullable()),
|
|
85
|
+
/** Drop a camera's cached snapshot. */
|
|
84
86
|
invalidateCache: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ zod.z.void(), {
|
|
85
87
|
kind: "mutation",
|
|
86
88
|
auth: "admin"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { i as RecordRetentionSchema, n as RecordKindDeclarationSchema, r as RecordKindNameSchema } from "./record-kind-ub6NXqfh.mjs";
|
|
3
3
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
4
|
-
import { a as DataStoreDatabaseSchema, c as QueryFilterSchema, d as TransactOpSchema, l as SettingsRecordSchema, n as AggregateResultSchema, o as DeclareCollectionInputSchema, r as BulkRecordSchema, s as MutationFilterSchema, t as AggregateFieldSchema, u as TransactGuardSchema } from "./settings-store.cap-
|
|
5
|
-
import { a as MigrationOwnerStepSchema, i as MigrationOwnerResultSchema, n as MigrationLedgerEntrySchema, o as MigrationPendingEntrySchema, r as MigrationMetaSchema, s as MigrationStatusSchema, t as MigrationDryRunResultSchema } from "./migration-
|
|
6
|
-
import { a as RecordWhereSchema, i as RecordQueryResultSchema, r as RecordQueryInputSchema } from "./records.cap-
|
|
4
|
+
import { a as DataStoreDatabaseSchema, c as QueryFilterSchema, d as TransactOpSchema, l as SettingsRecordSchema, n as AggregateResultSchema, o as DeclareCollectionInputSchema, r as BulkRecordSchema, s as MutationFilterSchema, t as AggregateFieldSchema, u as TransactGuardSchema } from "./settings-store.cap-CaDSOqgK.mjs";
|
|
5
|
+
import { a as MigrationOwnerStepSchema, i as MigrationOwnerResultSchema, n as MigrationLedgerEntrySchema, o as MigrationPendingEntrySchema, r as MigrationMetaSchema, s as MigrationStatusSchema, t as MigrationDryRunResultSchema } from "./migration-DGAc6ywR.mjs";
|
|
6
|
+
import { a as RecordWhereSchema, i as RecordQueryResultSchema, r as RecordQueryInputSchema } from "./records.cap-DRwT1JbL.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region ../types/dist/esm/capabilities/data-store-provider.cap.mjs
|
|
9
9
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_record_kind = require("./record-kind-DoBfYHCs.js");
|
|
3
3
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
4
|
-
const require_settings_store_cap = require("./settings-store.cap-
|
|
5
|
-
const require_migration = require("./migration-
|
|
6
|
-
const require_records_cap = require("./records.cap-
|
|
4
|
+
const require_settings_store_cap = require("./settings-store.cap-BhOIBtO4.js");
|
|
5
|
+
const require_migration = require("./migration-BOQlFZCN.js");
|
|
6
|
+
const require_records_cap = require("./records.cap-wLi7r4Hj.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region ../types/dist/esm/capabilities/data-store-provider.cap.mjs
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
3
|
const require_relocate = require("./relocate-CdVQAk-w.js");
|
|
4
4
|
const require_storage_location = require("./storage-location-CTweDMZf.js");
|
|
@@ -141,10 +141,12 @@ var storageCapability = {
|
|
|
141
141
|
scope: "system",
|
|
142
142
|
mode: "singleton",
|
|
143
143
|
methods: {
|
|
144
|
+
/** Resolve a path inside a storage location to its absolute path on disk. */
|
|
144
145
|
resolve: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
145
146
|
location: require_storage_location.StorageLocationRefSchema,
|
|
146
147
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
147
148
|
}), /* @__PURE__ */ zod.z.string(), { auth: "admin" }),
|
|
149
|
+
/** Write a file at a relative path inside a storage location. */
|
|
148
150
|
write: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
149
151
|
location: require_storage_location.StorageLocationRefSchema,
|
|
150
152
|
relativePath: /* @__PURE__ */ zod.z.string(),
|
|
@@ -153,18 +155,22 @@ var storageCapability = {
|
|
|
153
155
|
kind: "mutation",
|
|
154
156
|
auth: "admin"
|
|
155
157
|
}),
|
|
158
|
+
/** Read a file at a relative path inside a storage location. */
|
|
156
159
|
read: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
157
160
|
location: require_storage_location.StorageLocationRefSchema,
|
|
158
161
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
159
162
|
}), /* @__PURE__ */ zod.z.instanceof(Uint8Array), { auth: "admin" }),
|
|
163
|
+
/** Whether a file exists at a relative path inside a storage location. */
|
|
160
164
|
exists: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
161
165
|
location: require_storage_location.StorageLocationRefSchema,
|
|
162
166
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
163
167
|
}), /* @__PURE__ */ zod.z.boolean(), { auth: "admin" }),
|
|
168
|
+
/** List file paths in a storage location, optionally under a prefix. */
|
|
164
169
|
list: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
165
170
|
location: require_storage_location.StorageLocationRefSchema,
|
|
166
171
|
prefix: /* @__PURE__ */ zod.z.string().optional()
|
|
167
172
|
}), /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string()).readonly(), { auth: "admin" }),
|
|
173
|
+
/** Delete a file at a relative path inside a storage location. */
|
|
168
174
|
delete: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
169
175
|
location: require_storage_location.StorageLocationRefSchema,
|
|
170
176
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
@@ -172,7 +178,9 @@ var storageCapability = {
|
|
|
172
178
|
kind: "mutation",
|
|
173
179
|
auth: "admin"
|
|
174
180
|
}),
|
|
181
|
+
/** Free space of a storage location in bytes; null when unknown. */
|
|
175
182
|
getAvailableSpace: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ location: require_storage_location.StorageLocationRefSchema }), /* @__PURE__ */ zod.z.number().nullable()),
|
|
183
|
+
/** Open a chunked upload to a path in a storage location and return its upload id. */
|
|
176
184
|
beginUpload: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
177
185
|
location: require_storage_location.StorageLocationRefSchema,
|
|
178
186
|
relativePath: /* @__PURE__ */ zod.z.string(),
|
|
@@ -181,6 +189,7 @@ var storageCapability = {
|
|
|
181
189
|
kind: "mutation",
|
|
182
190
|
auth: "admin"
|
|
183
191
|
}),
|
|
192
|
+
/** Write one chunk at an offset into an open upload. */
|
|
184
193
|
writeChunk: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
185
194
|
uploadId: /* @__PURE__ */ zod.z.string(),
|
|
186
195
|
offset: /* @__PURE__ */ zod.z.number(),
|
|
@@ -189,14 +198,17 @@ var storageCapability = {
|
|
|
189
198
|
kind: "mutation",
|
|
190
199
|
auth: "admin"
|
|
191
200
|
}),
|
|
201
|
+
/** Complete an open upload and make the file visible. */
|
|
192
202
|
finalizeUpload: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ uploadId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
|
|
193
203
|
kind: "mutation",
|
|
194
204
|
auth: "admin"
|
|
195
205
|
}),
|
|
206
|
+
/** Cancel an open upload and discard what was written. */
|
|
196
207
|
abortUpload: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ uploadId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
|
|
197
208
|
kind: "mutation",
|
|
198
209
|
auth: "admin"
|
|
199
210
|
}),
|
|
211
|
+
/** Open a chunked download of a file and return its id and size. */
|
|
200
212
|
beginDownload: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
201
213
|
location: require_storage_location.StorageLocationRefSchema,
|
|
202
214
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
@@ -207,16 +219,20 @@ var storageCapability = {
|
|
|
207
219
|
kind: "mutation",
|
|
208
220
|
auth: "admin"
|
|
209
221
|
}),
|
|
222
|
+
/** Read one chunk at an offset from an open download. */
|
|
210
223
|
readChunk: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
211
224
|
downloadId: /* @__PURE__ */ zod.z.string(),
|
|
212
225
|
offset: /* @__PURE__ */ zod.z.number(),
|
|
213
226
|
length: /* @__PURE__ */ zod.z.number()
|
|
214
227
|
}), /* @__PURE__ */ zod.z.instanceof(Uint8Array), { auth: "admin" }),
|
|
228
|
+
/** Close an open download. */
|
|
215
229
|
endDownload: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ downloadId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), {
|
|
216
230
|
kind: "mutation",
|
|
217
231
|
auth: "admin"
|
|
218
232
|
}),
|
|
233
|
+
/** List the configured storage locations, optionally of one type. */
|
|
219
234
|
listLocations: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ type: /* @__PURE__ */ require_storage_location.StorageLocationTypeSchema.optional() }), /* @__PURE__ */ zod.z.array(require_storage_location.StorageLocationSchema).readonly()),
|
|
235
|
+
/** List the storage locations addons have declared they need. */
|
|
220
236
|
listLocationDeclarations: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(StorageLocationDeclarationSchema).readonly()),
|
|
221
237
|
/**
|
|
222
238
|
* How far each draining location has got (D386). A pure READ of what the
|
|
@@ -239,12 +255,16 @@ var storageMigrationCapability = {
|
|
|
239
255
|
scope: "system",
|
|
240
256
|
mode: "singleton",
|
|
241
257
|
methods: {
|
|
258
|
+
/** Compute what a storage migration would move, without doing it. */
|
|
242
259
|
plan: /* @__PURE__ */ require_capability_definition.method(require_relocate.StorageMigrationInputSchema, require_relocate.StorageMigrationPlanSchema, { auth: "admin" }),
|
|
260
|
+
/** Start a storage migration and return its job id. */
|
|
243
261
|
start: /* @__PURE__ */ require_capability_definition.method(require_relocate.StorageMigrationInputSchema, /* @__PURE__ */ zod.z.object({ jobId: /* @__PURE__ */ zod.z.string() }), {
|
|
244
262
|
kind: "mutation",
|
|
245
263
|
auth: "admin"
|
|
246
264
|
}),
|
|
265
|
+
/** Progress of a storage migration job; null when none. */
|
|
247
266
|
status: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ jobId: /* @__PURE__ */ zod.z.string().optional() }), /* @__PURE__ */ require_relocate.StorageMigrationJobSchema.nullable(), { auth: "admin" }),
|
|
267
|
+
/** Cancel a running storage migration job. */
|
|
248
268
|
cancel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ jobId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({ cancelled: /* @__PURE__ */ zod.z.boolean() }), {
|
|
249
269
|
kind: "mutation",
|
|
250
270
|
auth: "admin"
|
|
@@ -299,7 +319,9 @@ var storageMigrationCapability = {
|
|
|
299
319
|
kind: "mutation",
|
|
300
320
|
auth: "admin"
|
|
301
321
|
}),
|
|
322
|
+
/** Progress of the cleanup of the old location after a migration; null when none. */
|
|
302
323
|
cleanupStatus: /* @__PURE__ */ require_capability_definition.method(require_relocate.StorageCleanupStatusInputSchema, /* @__PURE__ */ require_relocate.StorageCleanupJobSchema.nullable(), { auth: "admin" }),
|
|
324
|
+
/** Cancel a running post-migration cleanup job. */
|
|
303
325
|
cleanupCancel: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ jobId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({ cancelled: /* @__PURE__ */ zod.z.boolean() }), {
|
|
304
326
|
kind: "mutation",
|
|
305
327
|
auth: "admin"
|
package/system/dist/{storage-migration.cap-D7QqGobp.mjs → storage-migration.cap-Ciw84XPm.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { C as StorageMigrationResidueSchema, S as StorageMigrationPlanSchema, _ as StorageMigrationInputSchema, f as StorageCleanupInputSchema, h as StorageMigrationDrainInputSchema, m as StorageCleanupStatusInputSchema, p as StorageCleanupJobSchema, v as StorageMigrationJobSchema, x as StorageMigrationMoverSchema } from "./relocate-CoZZTui1.mjs";
|
|
4
4
|
import { i as StorageLocationTypeSchema, n as StorageLocationRefSchema, r as StorageLocationSchema, t as StorageDrainProgressSchema } from "./storage-location-CBT8GCD6.mjs";
|
|
@@ -141,10 +141,12 @@ var storageCapability = {
|
|
|
141
141
|
scope: "system",
|
|
142
142
|
mode: "singleton",
|
|
143
143
|
methods: {
|
|
144
|
+
/** Resolve a path inside a storage location to its absolute path on disk. */
|
|
144
145
|
resolve: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
145
146
|
location: StorageLocationRefSchema,
|
|
146
147
|
relativePath: /* @__PURE__ */ z.string()
|
|
147
148
|
}), /* @__PURE__ */ z.string(), { auth: "admin" }),
|
|
149
|
+
/** Write a file at a relative path inside a storage location. */
|
|
148
150
|
write: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
149
151
|
location: StorageLocationRefSchema,
|
|
150
152
|
relativePath: /* @__PURE__ */ z.string(),
|
|
@@ -153,18 +155,22 @@ var storageCapability = {
|
|
|
153
155
|
kind: "mutation",
|
|
154
156
|
auth: "admin"
|
|
155
157
|
}),
|
|
158
|
+
/** Read a file at a relative path inside a storage location. */
|
|
156
159
|
read: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
157
160
|
location: StorageLocationRefSchema,
|
|
158
161
|
relativePath: /* @__PURE__ */ z.string()
|
|
159
162
|
}), /* @__PURE__ */ z.instanceof(Uint8Array), { auth: "admin" }),
|
|
163
|
+
/** Whether a file exists at a relative path inside a storage location. */
|
|
160
164
|
exists: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
161
165
|
location: StorageLocationRefSchema,
|
|
162
166
|
relativePath: /* @__PURE__ */ z.string()
|
|
163
167
|
}), /* @__PURE__ */ z.boolean(), { auth: "admin" }),
|
|
168
|
+
/** List file paths in a storage location, optionally under a prefix. */
|
|
164
169
|
list: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
165
170
|
location: StorageLocationRefSchema,
|
|
166
171
|
prefix: /* @__PURE__ */ z.string().optional()
|
|
167
172
|
}), /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).readonly(), { auth: "admin" }),
|
|
173
|
+
/** Delete a file at a relative path inside a storage location. */
|
|
168
174
|
delete: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
169
175
|
location: StorageLocationRefSchema,
|
|
170
176
|
relativePath: /* @__PURE__ */ z.string()
|
|
@@ -172,7 +178,9 @@ var storageCapability = {
|
|
|
172
178
|
kind: "mutation",
|
|
173
179
|
auth: "admin"
|
|
174
180
|
}),
|
|
181
|
+
/** Free space of a storage location in bytes; null when unknown. */
|
|
175
182
|
getAvailableSpace: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ location: StorageLocationRefSchema }), /* @__PURE__ */ z.number().nullable()),
|
|
183
|
+
/** Open a chunked upload to a path in a storage location and return its upload id. */
|
|
176
184
|
beginUpload: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
177
185
|
location: StorageLocationRefSchema,
|
|
178
186
|
relativePath: /* @__PURE__ */ z.string(),
|
|
@@ -181,6 +189,7 @@ var storageCapability = {
|
|
|
181
189
|
kind: "mutation",
|
|
182
190
|
auth: "admin"
|
|
183
191
|
}),
|
|
192
|
+
/** Write one chunk at an offset into an open upload. */
|
|
184
193
|
writeChunk: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
185
194
|
uploadId: /* @__PURE__ */ z.string(),
|
|
186
195
|
offset: /* @__PURE__ */ z.number(),
|
|
@@ -189,14 +198,17 @@ var storageCapability = {
|
|
|
189
198
|
kind: "mutation",
|
|
190
199
|
auth: "admin"
|
|
191
200
|
}),
|
|
201
|
+
/** Complete an open upload and make the file visible. */
|
|
192
202
|
finalizeUpload: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ uploadId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
|
|
193
203
|
kind: "mutation",
|
|
194
204
|
auth: "admin"
|
|
195
205
|
}),
|
|
206
|
+
/** Cancel an open upload and discard what was written. */
|
|
196
207
|
abortUpload: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ uploadId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
|
|
197
208
|
kind: "mutation",
|
|
198
209
|
auth: "admin"
|
|
199
210
|
}),
|
|
211
|
+
/** Open a chunked download of a file and return its id and size. */
|
|
200
212
|
beginDownload: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
201
213
|
location: StorageLocationRefSchema,
|
|
202
214
|
relativePath: /* @__PURE__ */ z.string()
|
|
@@ -207,16 +219,20 @@ var storageCapability = {
|
|
|
207
219
|
kind: "mutation",
|
|
208
220
|
auth: "admin"
|
|
209
221
|
}),
|
|
222
|
+
/** Read one chunk at an offset from an open download. */
|
|
210
223
|
readChunk: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
211
224
|
downloadId: /* @__PURE__ */ z.string(),
|
|
212
225
|
offset: /* @__PURE__ */ z.number(),
|
|
213
226
|
length: /* @__PURE__ */ z.number()
|
|
214
227
|
}), /* @__PURE__ */ z.instanceof(Uint8Array), { auth: "admin" }),
|
|
228
|
+
/** Close an open download. */
|
|
215
229
|
endDownload: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ downloadId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), {
|
|
216
230
|
kind: "mutation",
|
|
217
231
|
auth: "admin"
|
|
218
232
|
}),
|
|
233
|
+
/** List the configured storage locations, optionally of one type. */
|
|
219
234
|
listLocations: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ type: /* @__PURE__ */ StorageLocationTypeSchema.optional() }), /* @__PURE__ */ z.array(StorageLocationSchema).readonly()),
|
|
235
|
+
/** List the storage locations addons have declared they need. */
|
|
220
236
|
listLocationDeclarations: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(StorageLocationDeclarationSchema).readonly()),
|
|
221
237
|
/**
|
|
222
238
|
* How far each draining location has got (D386). A pure READ of what the
|
|
@@ -239,12 +255,16 @@ var storageMigrationCapability = {
|
|
|
239
255
|
scope: "system",
|
|
240
256
|
mode: "singleton",
|
|
241
257
|
methods: {
|
|
258
|
+
/** Compute what a storage migration would move, without doing it. */
|
|
242
259
|
plan: /* @__PURE__ */ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin" }),
|
|
260
|
+
/** Start a storage migration and return its job id. */
|
|
243
261
|
start: /* @__PURE__ */ method(StorageMigrationInputSchema, /* @__PURE__ */ z.object({ jobId: /* @__PURE__ */ z.string() }), {
|
|
244
262
|
kind: "mutation",
|
|
245
263
|
auth: "admin"
|
|
246
264
|
}),
|
|
265
|
+
/** Progress of a storage migration job; null when none. */
|
|
247
266
|
status: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ jobId: /* @__PURE__ */ z.string().optional() }), /* @__PURE__ */ StorageMigrationJobSchema.nullable(), { auth: "admin" }),
|
|
267
|
+
/** Cancel a running storage migration job. */
|
|
248
268
|
cancel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ jobId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ cancelled: /* @__PURE__ */ z.boolean() }), {
|
|
249
269
|
kind: "mutation",
|
|
250
270
|
auth: "admin"
|
|
@@ -299,7 +319,9 @@ var storageMigrationCapability = {
|
|
|
299
319
|
kind: "mutation",
|
|
300
320
|
auth: "admin"
|
|
301
321
|
}),
|
|
322
|
+
/** Progress of the cleanup of the old location after a migration; null when none. */
|
|
302
323
|
cleanupStatus: /* @__PURE__ */ method(StorageCleanupStatusInputSchema, /* @__PURE__ */ StorageCleanupJobSchema.nullable(), { auth: "admin" }),
|
|
324
|
+
/** Cancel a running post-migration cleanup job. */
|
|
303
325
|
cleanupCancel: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ jobId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ cancelled: /* @__PURE__ */ z.boolean() }), {
|
|
304
326
|
kind: "mutation",
|
|
305
327
|
auth: "admin"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
|
-
const require_settings_store_cap = require("./settings-store.cap-
|
|
4
|
-
const require_database_snapshot_cap = require("./database-snapshot.cap-
|
|
3
|
+
const require_settings_store_cap = require("./settings-store.cap-BhOIBtO4.js");
|
|
4
|
+
const require_database_snapshot_cap = require("./database-snapshot.cap-BNS5c60M.js");
|
|
5
5
|
let zod = require("zod");
|
|
6
6
|
//#region ../types/dist/esm/capabilities/backup.cap.mjs
|
|
7
7
|
/**
|
|
@@ -393,6 +393,7 @@ var backupCapability = {
|
|
|
393
393
|
destinationId: /* @__PURE__ */ zod.z.string(),
|
|
394
394
|
backupId: /* @__PURE__ */ zod.z.string()
|
|
395
395
|
}), /* @__PURE__ */ ArchiveManifestSchema.nullable(), { auth: "admin" }),
|
|
396
|
+
/** Restore a backup from a destination, fully or only the chosen locations. */
|
|
396
397
|
restore: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
397
398
|
destinationId: /* @__PURE__ */ zod.z.string(),
|
|
398
399
|
backupId: /* @__PURE__ */ zod.z.string(),
|
|
@@ -455,6 +456,7 @@ var backupCapability = {
|
|
|
455
456
|
kind: "mutation",
|
|
456
457
|
auth: "admin"
|
|
457
458
|
}),
|
|
459
|
+
/** Delete a backup from a destination. */
|
|
458
460
|
delete: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
459
461
|
destinationId: /* @__PURE__ */ zod.z.string(),
|
|
460
462
|
backupId: /* @__PURE__ */ zod.z.string()
|
package/system/dist/{storage-occupancy.cap-CqBztTl9.mjs → storage-occupancy.cap-B-wbMPmx.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
|
-
import { a as DataStoreDatabaseSchema } from "./settings-store.cap-
|
|
4
|
-
import { t as ArchiveSqliteSnapshotSchema } from "./database-snapshot.cap-
|
|
3
|
+
import { a as DataStoreDatabaseSchema } from "./settings-store.cap-CaDSOqgK.mjs";
|
|
4
|
+
import { t as ArchiveSqliteSnapshotSchema } from "./database-snapshot.cap-a3lSf4hl.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../types/dist/esm/capabilities/backup.cap.mjs
|
|
7
7
|
/**
|
|
@@ -393,6 +393,7 @@ var backupCapability = {
|
|
|
393
393
|
destinationId: /* @__PURE__ */ z.string(),
|
|
394
394
|
backupId: /* @__PURE__ */ z.string()
|
|
395
395
|
}), /* @__PURE__ */ ArchiveManifestSchema.nullable(), { auth: "admin" }),
|
|
396
|
+
/** Restore a backup from a destination, fully or only the chosen locations. */
|
|
396
397
|
restore: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
397
398
|
destinationId: /* @__PURE__ */ z.string(),
|
|
398
399
|
backupId: /* @__PURE__ */ z.string(),
|
|
@@ -455,6 +456,7 @@ var backupCapability = {
|
|
|
455
456
|
kind: "mutation",
|
|
456
457
|
auth: "admin"
|
|
457
458
|
}),
|
|
459
|
+
/** Delete a backup from a destination. */
|
|
458
460
|
delete: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
459
461
|
destinationId: /* @__PURE__ */ z.string(),
|
|
460
462
|
backupId: /* @__PURE__ */ z.string()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
3
|
const require_storage_location = require("./storage-location-CTweDMZf.js");
|
|
4
4
|
let zod = require("zod");
|
|
@@ -138,10 +138,12 @@ var storageProviderCapability = {
|
|
|
138
138
|
getProviderInfo: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ProviderInfoSchema, { auth: "admin" }),
|
|
139
139
|
/** Validate config + probe connectivity. Called on add and on edit. */
|
|
140
140
|
testLocation: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ config: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.unknown()) }), TestLocationResultSchema, { auth: "admin" }),
|
|
141
|
+
/** Resolve a path inside a storage location to its absolute path on disk. */
|
|
141
142
|
resolve: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
142
143
|
location: require_storage_location.StorageLocationSchema,
|
|
143
144
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
144
145
|
}), /* @__PURE__ */ zod.z.string(), { auth: "admin" }),
|
|
146
|
+
/** Write a file at a relative path inside a storage location. */
|
|
145
147
|
write: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
146
148
|
location: require_storage_location.StorageLocationSchema,
|
|
147
149
|
relativePath: /* @__PURE__ */ zod.z.string(),
|
|
@@ -150,18 +152,22 @@ var storageProviderCapability = {
|
|
|
150
152
|
kind: "mutation",
|
|
151
153
|
auth: "admin"
|
|
152
154
|
}),
|
|
155
|
+
/** Read a file at a relative path inside a storage location. */
|
|
153
156
|
read: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
154
157
|
location: require_storage_location.StorageLocationSchema,
|
|
155
158
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
156
159
|
}), /* @__PURE__ */ zod.z.instanceof(Uint8Array), { auth: "admin" }),
|
|
160
|
+
/** Whether a file exists at a relative path inside a storage location. */
|
|
157
161
|
exists: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
158
162
|
location: require_storage_location.StorageLocationSchema,
|
|
159
163
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
160
164
|
}), /* @__PURE__ */ zod.z.boolean(), { auth: "admin" }),
|
|
165
|
+
/** List file paths in a storage location, optionally under a prefix. */
|
|
161
166
|
list: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
162
167
|
location: require_storage_location.StorageLocationSchema,
|
|
163
168
|
prefix: /* @__PURE__ */ zod.z.string().optional()
|
|
164
169
|
}), /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string()).readonly(), { auth: "admin" }),
|
|
170
|
+
/** Delete a file at a relative path inside a storage location. */
|
|
165
171
|
delete: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
166
172
|
location: require_storage_location.StorageLocationSchema,
|
|
167
173
|
relativePath: /* @__PURE__ */ zod.z.string()
|
|
@@ -169,28 +175,36 @@ var storageProviderCapability = {
|
|
|
169
175
|
kind: "mutation",
|
|
170
176
|
auth: "admin"
|
|
171
177
|
}),
|
|
178
|
+
/** Free space of a storage location in bytes; null when unknown. */
|
|
172
179
|
getAvailableSpace: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ location: require_storage_location.StorageLocationSchema }), /* @__PURE__ */ zod.z.number().nullable(), { auth: "admin" }),
|
|
180
|
+
/** Open a chunked upload to a path in a storage location and return its upload id. */
|
|
173
181
|
beginUpload: /* @__PURE__ */ require_capability_definition.method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
174
182
|
kind: "mutation",
|
|
175
183
|
auth: "admin"
|
|
176
184
|
}),
|
|
185
|
+
/** Write one chunk at an offset into an open upload. */
|
|
177
186
|
writeChunk: /* @__PURE__ */ require_capability_definition.method(WriteChunkInputSchema, /* @__PURE__ */ zod.z.void(), {
|
|
178
187
|
kind: "mutation",
|
|
179
188
|
auth: "admin"
|
|
180
189
|
}),
|
|
190
|
+
/** Complete an open upload and make the file visible. */
|
|
181
191
|
finalizeUpload: /* @__PURE__ */ require_capability_definition.method(FinalizeUploadInputSchema, /* @__PURE__ */ zod.z.void(), {
|
|
182
192
|
kind: "mutation",
|
|
183
193
|
auth: "admin"
|
|
184
194
|
}),
|
|
195
|
+
/** Cancel an open upload and discard what was written. */
|
|
185
196
|
abortUpload: /* @__PURE__ */ require_capability_definition.method(AbortUploadInputSchema, /* @__PURE__ */ zod.z.void(), {
|
|
186
197
|
kind: "mutation",
|
|
187
198
|
auth: "admin"
|
|
188
199
|
}),
|
|
200
|
+
/** Open a chunked download of a file and return its id and size. */
|
|
189
201
|
beginDownload: /* @__PURE__ */ require_capability_definition.method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
190
202
|
kind: "mutation",
|
|
191
203
|
auth: "admin"
|
|
192
204
|
}),
|
|
205
|
+
/** Read one chunk at an offset from an open download. */
|
|
193
206
|
readChunk: /* @__PURE__ */ require_capability_definition.method(ReadChunkInputSchema, /* @__PURE__ */ zod.z.instanceof(Uint8Array), { auth: "admin" }),
|
|
207
|
+
/** Close an open download. */
|
|
194
208
|
endDownload: /* @__PURE__ */ require_capability_definition.method(EndDownloadInputSchema, /* @__PURE__ */ zod.z.void(), {
|
|
195
209
|
kind: "mutation",
|
|
196
210
|
auth: "admin"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { r as StorageLocationSchema } from "./storage-location-CBT8GCD6.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -138,10 +138,12 @@ var storageProviderCapability = {
|
|
|
138
138
|
getProviderInfo: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ProviderInfoSchema, { auth: "admin" }),
|
|
139
139
|
/** Validate config + probe connectivity. Called on add and on edit. */
|
|
140
140
|
testLocation: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()) }), TestLocationResultSchema, { auth: "admin" }),
|
|
141
|
+
/** Resolve a path inside a storage location to its absolute path on disk. */
|
|
141
142
|
resolve: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
142
143
|
location: StorageLocationSchema,
|
|
143
144
|
relativePath: /* @__PURE__ */ z.string()
|
|
144
145
|
}), /* @__PURE__ */ z.string(), { auth: "admin" }),
|
|
146
|
+
/** Write a file at a relative path inside a storage location. */
|
|
145
147
|
write: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
146
148
|
location: StorageLocationSchema,
|
|
147
149
|
relativePath: /* @__PURE__ */ z.string(),
|
|
@@ -150,18 +152,22 @@ var storageProviderCapability = {
|
|
|
150
152
|
kind: "mutation",
|
|
151
153
|
auth: "admin"
|
|
152
154
|
}),
|
|
155
|
+
/** Read a file at a relative path inside a storage location. */
|
|
153
156
|
read: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
154
157
|
location: StorageLocationSchema,
|
|
155
158
|
relativePath: /* @__PURE__ */ z.string()
|
|
156
159
|
}), /* @__PURE__ */ z.instanceof(Uint8Array), { auth: "admin" }),
|
|
160
|
+
/** Whether a file exists at a relative path inside a storage location. */
|
|
157
161
|
exists: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
158
162
|
location: StorageLocationSchema,
|
|
159
163
|
relativePath: /* @__PURE__ */ z.string()
|
|
160
164
|
}), /* @__PURE__ */ z.boolean(), { auth: "admin" }),
|
|
165
|
+
/** List file paths in a storage location, optionally under a prefix. */
|
|
161
166
|
list: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
162
167
|
location: StorageLocationSchema,
|
|
163
168
|
prefix: /* @__PURE__ */ z.string().optional()
|
|
164
169
|
}), /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).readonly(), { auth: "admin" }),
|
|
170
|
+
/** Delete a file at a relative path inside a storage location. */
|
|
165
171
|
delete: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
166
172
|
location: StorageLocationSchema,
|
|
167
173
|
relativePath: /* @__PURE__ */ z.string()
|
|
@@ -169,28 +175,36 @@ var storageProviderCapability = {
|
|
|
169
175
|
kind: "mutation",
|
|
170
176
|
auth: "admin"
|
|
171
177
|
}),
|
|
178
|
+
/** Free space of a storage location in bytes; null when unknown. */
|
|
172
179
|
getAvailableSpace: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ location: StorageLocationSchema }), /* @__PURE__ */ z.number().nullable(), { auth: "admin" }),
|
|
180
|
+
/** Open a chunked upload to a path in a storage location and return its upload id. */
|
|
173
181
|
beginUpload: /* @__PURE__ */ method(BeginUploadInputSchema, BeginUploadResultSchema, {
|
|
174
182
|
kind: "mutation",
|
|
175
183
|
auth: "admin"
|
|
176
184
|
}),
|
|
185
|
+
/** Write one chunk at an offset into an open upload. */
|
|
177
186
|
writeChunk: /* @__PURE__ */ method(WriteChunkInputSchema, /* @__PURE__ */ z.void(), {
|
|
178
187
|
kind: "mutation",
|
|
179
188
|
auth: "admin"
|
|
180
189
|
}),
|
|
190
|
+
/** Complete an open upload and make the file visible. */
|
|
181
191
|
finalizeUpload: /* @__PURE__ */ method(FinalizeUploadInputSchema, /* @__PURE__ */ z.void(), {
|
|
182
192
|
kind: "mutation",
|
|
183
193
|
auth: "admin"
|
|
184
194
|
}),
|
|
195
|
+
/** Cancel an open upload and discard what was written. */
|
|
185
196
|
abortUpload: /* @__PURE__ */ method(AbortUploadInputSchema, /* @__PURE__ */ z.void(), {
|
|
186
197
|
kind: "mutation",
|
|
187
198
|
auth: "admin"
|
|
188
199
|
}),
|
|
200
|
+
/** Open a chunked download of a file and return its id and size. */
|
|
189
201
|
beginDownload: /* @__PURE__ */ method(BeginDownloadInputSchema, BeginDownloadResultSchema, {
|
|
190
202
|
kind: "mutation",
|
|
191
203
|
auth: "admin"
|
|
192
204
|
}),
|
|
205
|
+
/** Read one chunk at an offset from an open download. */
|
|
193
206
|
readChunk: /* @__PURE__ */ method(ReadChunkInputSchema, /* @__PURE__ */ z.instanceof(Uint8Array), { auth: "admin" }),
|
|
207
|
+
/** Close an open download. */
|
|
194
208
|
endDownload: /* @__PURE__ */ method(EndDownloadInputSchema, /* @__PURE__ */ z.void(), {
|
|
195
209
|
kind: "mutation",
|
|
196
210
|
auth: "admin"
|