alchemy-s3-access 0.1.0-alpha.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/LICENSE +17 -0
- package/README.md +22 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.mjs +1 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Copyright 2026 alchemy-k3s contributors
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# alchemy-s3-access
|
|
2
|
+
|
|
3
|
+
A provider-neutral contract for passing scoped S3-compatible bucket access
|
|
4
|
+
between Alchemy packages.
|
|
5
|
+
|
|
6
|
+
```ts
|
|
7
|
+
const access: S3BucketAccess = {
|
|
8
|
+
endpoint: "https://s3.example.com",
|
|
9
|
+
region: "eu-central-1",
|
|
10
|
+
bucket: "cluster-backups",
|
|
11
|
+
accessKeyId: "scoped-access-key",
|
|
12
|
+
secretAccessKey: Redacted.make(secret),
|
|
13
|
+
};
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The producing provider owns bucket lifecycle and issues a separate scoped
|
|
17
|
+
credential per consumer. Consumers own prefixes and retention policy. This
|
|
18
|
+
package owns neither and has no AWS, Cloudflare, Fly, Prisma, Hetzner, or
|
|
19
|
+
Kubernetes dependency.
|
|
20
|
+
|
|
21
|
+
Temporary credentials can include a Redacted `sessionToken`; MinIO and similar
|
|
22
|
+
services can set `forcePathStyle`.
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Redacted from "effect/Redacted";
|
|
2
|
+
//#region src/index.d.ts
|
|
3
|
+
/** Provider-issued access to exactly one S3-compatible bucket. */
|
|
4
|
+
interface S3BucketAccess {
|
|
5
|
+
endpoint: string;
|
|
6
|
+
region: string;
|
|
7
|
+
bucket: string;
|
|
8
|
+
accessKeyId: string;
|
|
9
|
+
secretAccessKey: Redacted.Redacted<string>;
|
|
10
|
+
sessionToken?: Redacted.Redacted<string>;
|
|
11
|
+
forcePathStyle?: boolean;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { S3BucketAccess };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "alchemy-s3-access",
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "Provider-neutral S3 access contract for Alchemy integrations",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.mts",
|
|
16
|
+
"import": "./dist/index.mjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=22"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/toolbar23/alchemy-k3s.git",
|
|
27
|
+
"directory": "packages/s3-access"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/toolbar23/alchemy-k3s#readme",
|
|
30
|
+
"bugs": "https://github.com/toolbar23/alchemy-k3s/issues",
|
|
31
|
+
"keywords": [
|
|
32
|
+
"alchemy",
|
|
33
|
+
"s3",
|
|
34
|
+
"storage",
|
|
35
|
+
"iac"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsdown",
|
|
43
|
+
"prepack": "npm run build"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"effect": ">=4.0.0-rc.110 <5"
|
|
47
|
+
}
|
|
48
|
+
}
|