@absolutejs/secrets 0.7.0 → 0.7.2
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/README.md +53 -41
- package/dist/agent.d.ts +2 -0
- package/dist/agent.js +264 -0
- package/dist/agent.js.map +12 -0
- package/dist/broker.d.ts +340 -0
- package/dist/broker.js +825 -0
- package/dist/broker.js.map +11 -0
- package/dist/index.d.ts +2 -342
- package/dist/index.js +86 -60
- package/dist/index.js.map +7 -7
- package/dist/manifest.d.ts +1 -1
- package/dist/manifest.js +2 -4
- package/dist/manifest.js.map +3 -3
- package/dist/operations.d.ts +1 -1
- package/dist/postgres.d.ts +1 -1
- package/package.json +13 -3
package/dist/operations.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ActionDecision, type Agency, type AgentActor } from "@absolutejs/agency";
|
|
2
|
-
import type { SecretBroker } from "./
|
|
2
|
+
import type { SecretBroker } from "./broker";
|
|
3
3
|
export type CredentialGrant = {
|
|
4
4
|
agentId: string;
|
|
5
5
|
allowedOrigins: ReadonlyArray<string>;
|
package/dist/postgres.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type SecretsSqlClient = {
|
|
|
7
7
|
query: <Row = Record<string, unknown>>(sql: string, parameters?: ReadonlyArray<unknown>) => Promise<SecretsSqlResult<Row>>;
|
|
8
8
|
};
|
|
9
9
|
export declare const credentialGrantsPostgresSchemaSql: (namespace?: string) => string;
|
|
10
|
-
export declare const createPostgresCredentialGrantStore: ({ client, namespace }: {
|
|
10
|
+
export declare const createPostgresCredentialGrantStore: ({ client, namespace, }: {
|
|
11
11
|
client: SecretsSqlClient;
|
|
12
12
|
namespace?: string;
|
|
13
13
|
}) => CredentialGrantStore;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/secrets",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Host-side secret broker for multi-tenant Bun runtimes. Pluggable adapters (env-var, in-memory, composite, encrypted-file); audit hook per resolve; safe fingerprints for logs; redact() walks known secrets out of arbitrary text before it lands in a log sink.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"rotation"
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
|
-
"build": "rm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --sourcemap --target=bun && tsc --project tsconfig.build.json && absolute-manifest emit",
|
|
36
|
+
"build": "rm -rf dist && bun build src/index.ts src/agent.ts src/broker.ts src/manifest.ts --outdir dist --sourcemap --target=bun && tsc --project tsconfig.build.json && absolute-manifest emit",
|
|
37
37
|
"test": "bun test tests/",
|
|
38
38
|
"typecheck": "tsc --noEmit",
|
|
39
39
|
"format": "prettier --write \"./**/*.{ts,json,md}\"",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"release": "bun run format && bun run check:package && bun publish"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@absolutejs/agency": "^0.
|
|
44
|
+
"@absolutejs/agency": "^0.5.0",
|
|
45
45
|
"@absolutejs/manifest": "^0.2.0",
|
|
46
46
|
"@absolutejs/telemetry": "^0.1.1",
|
|
47
47
|
"@sinclair/typebox": "^0.34.0"
|
|
@@ -60,6 +60,16 @@
|
|
|
60
60
|
"import": "./dist/index.js",
|
|
61
61
|
"default": "./dist/index.js"
|
|
62
62
|
},
|
|
63
|
+
"./agent": {
|
|
64
|
+
"types": "./dist/agent.d.ts",
|
|
65
|
+
"import": "./dist/agent.js",
|
|
66
|
+
"default": "./dist/agent.js"
|
|
67
|
+
},
|
|
68
|
+
"./broker": {
|
|
69
|
+
"types": "./dist/broker.d.ts",
|
|
70
|
+
"import": "./dist/broker.js",
|
|
71
|
+
"default": "./dist/broker.js"
|
|
72
|
+
},
|
|
63
73
|
"./manifest": {
|
|
64
74
|
"types": "./dist/manifest.d.ts",
|
|
65
75
|
"import": "./dist/manifest.js",
|