@voltro/plugin-storage 0.86.0 → 0.87.0

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/dist/types.js CHANGED
@@ -1,20 +1,20 @@
1
- import { Context as e, Schema as t } from "effect";
1
+ import { StorageAddress as e, StorageError as t, isStorageKey as n, storageAddressIdentity as r } from "@voltro/kv/storage";
2
+ import { Context as i, Schema as a } from "effect";
2
3
  //#region src/types.ts
3
- var n = class extends t.TaggedError()("StorageError", {
4
- provider: t.String,
5
- message: t.String,
6
- transient: t.Boolean,
7
- status: t.optional(t.Number)
8
- }) {}, r = class extends t.TaggedError()("StorageAccessDenied", {
9
- refId: t.String,
10
- reason: t.String
11
- }) {}, i = class extends t.TaggedError()("StorageRejected", {
12
- reason: t.String,
13
- detail: t.String
4
+ var o = class extends a.TaggedError()("StorageAccessDenied", {
5
+ refId: a.String,
6
+ reason: a.String
7
+ }) {}, s = class extends a.TaggedError()("StorageRejected", {
8
+ reason: a.String,
9
+ detail: a.String
14
10
  }) {
15
11
  get message() {
16
12
  return this.detail;
17
13
  }
18
- }, a = class extends t.TaggedError()("StorageScanRejected", { threat: t.String }) {}, o = class extends e.Service()("@voltro/plugin-storage/StorageService") {};
14
+ }, c = class extends a.TaggedError()("StorageScanRejected", { threat: a.String }) {}, l = class extends i.Service()("@voltro/plugin-storage/StorageService") {}, u = (e) => ({
15
+ destination: e.bucket,
16
+ tenantId: e.tenantId,
17
+ key: e.key
18
+ });
19
19
  //#endregion
20
- export { r as StorageAccessDenied, n as StorageError, i as StorageRejected, a as StorageScanRejected, o as StorageService };
20
+ export { o as StorageAccessDenied, e as StorageAddress, t as StorageError, s as StorageRejected, c as StorageScanRejected, l as StorageService, n as isStorageKey, r as storageAddressIdentity, u as storageRefAddress };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-storage",
3
- "version": "0.86.0",
3
+ "version": "0.87.0",
4
4
  "description": "File-storage plugin — one StorageProvider contract, switchable backends (S3 / MinIO / Azure / filesystem / memory / database). Public (CDN-direct) + private (access policy + per-object grants) objects, upload constraints, virus-scan hook, on-the-fly image transforms.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -33,7 +33,17 @@
33
33
  "import": "./dist/rpc.js",
34
34
  "default": "./dist/rpc.js"
35
35
  },
36
- "./package.json": "./package.json"
36
+ "./package.json": "./package.json",
37
+ "./server": {
38
+ "types": "./dist/server.d.ts",
39
+ "import": "./dist/server.js",
40
+ "default": "./dist/server.js"
41
+ },
42
+ "./byte-security": {
43
+ "types": "./dist/byteSecurity.d.ts",
44
+ "import": "./dist/byteSecurity.js",
45
+ "default": "./dist/byteSecurity.js"
46
+ }
37
47
  },
38
48
  "main": "./dist/index.js",
39
49
  "module": "./dist/index.js",
@@ -43,10 +53,11 @@
43
53
  "node": ">=24.0.0"
44
54
  },
45
55
  "dependencies": {
46
- "@voltro/database": "0.86.0",
47
- "@voltro/env": "0.86.0",
48
- "@voltro/protocol": "0.86.0",
49
- "@voltro/runtime": "0.86.0"
56
+ "@voltro/database": "0.87.0",
57
+ "@voltro/env": "0.87.0",
58
+ "@voltro/kv": "0.87.0",
59
+ "@voltro/protocol": "0.87.0",
60
+ "@voltro/runtime": "0.87.0"
50
61
  },
51
62
  "optionalDependencies": {
52
63
  "@aws-sdk/client-s3": "^3.1134.0",