@matatbread/matbot-plugin-api 0.2.6 → 0.2.7
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 +2 -2
- package/src/types.ts +5 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"node",
|
|
5
5
|
"browser"
|
|
6
6
|
],
|
|
7
|
-
"version": "0.2.
|
|
7
|
+
"version": "0.2.7",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=24.0.0"
|
|
10
10
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"typescript": "^
|
|
36
|
+
"typescript": "^6.0.3"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"typecheck": "tsc --noEmit"
|
package/src/types.ts
CHANGED
|
@@ -667,7 +667,11 @@ export interface VaultSpec {
|
|
|
667
667
|
/** Resolve ${NAME} placeholders by looking up the named value; throws MissingSecretError for any miss. */
|
|
668
668
|
resolve(ref: string): Promise<string>;
|
|
669
669
|
scrub(text: string): string;
|
|
670
|
-
/**
|
|
670
|
+
/**
|
|
671
|
+
* Store `value` under exactly `name`, overwriting. The literal write; no reference/dedup logic.
|
|
672
|
+
* An empty `value` removes the key instead — there is no such thing as an empty secret, so the
|
|
673
|
+
* empty string is the removal signal (idempotent: removing an absent name is a no-op).
|
|
674
|
+
*/
|
|
671
675
|
writeSecret(name: string, value: string): Promise<void>;
|
|
672
676
|
/** Whether a secret is stored under this exact name. */
|
|
673
677
|
hasKey(name: string): boolean;
|