asherah 1.0.22 → 1.0.25
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/index.d.ts +33 -0
- package/package.json +4 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export declare type KeyMeta = {
|
|
3
|
+
ID: string;
|
|
4
|
+
Created: string | number;
|
|
5
|
+
};
|
|
6
|
+
export declare type EnvelopeKeyRecord = {
|
|
7
|
+
EncryptedKey: Buffer;
|
|
8
|
+
Created: string | number;
|
|
9
|
+
ParentKeyMeta: KeyMeta;
|
|
10
|
+
};
|
|
11
|
+
export declare type DataRowRecord = {
|
|
12
|
+
Data: Buffer;
|
|
13
|
+
Key: EnvelopeKeyRecord;
|
|
14
|
+
};
|
|
15
|
+
export declare type AsherahConfig = {
|
|
16
|
+
kmsType: string;
|
|
17
|
+
metastore: string;
|
|
18
|
+
serviceName: string;
|
|
19
|
+
productId: string;
|
|
20
|
+
rdbmsConnectionString: string | null;
|
|
21
|
+
dynamoDbEndpoint: string | null;
|
|
22
|
+
dynamoDbRegion: string | null;
|
|
23
|
+
dynamoDbTableName: string | null;
|
|
24
|
+
enableRegionSuffix: boolean;
|
|
25
|
+
preferredRegion: string | null;
|
|
26
|
+
regionMap: string | null;
|
|
27
|
+
verbose: boolean;
|
|
28
|
+
sessionCache: boolean;
|
|
29
|
+
debugOutput: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare function setup(config: AsherahConfig): void;
|
|
32
|
+
export declare function decrypt(partitionId: string, dataRowRecord: DataRowRecord): Buffer;
|
|
33
|
+
export declare function encrypt(partitionId: string, data: Buffer): DataRowRecord;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asherah",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "Asherah envelope encryption and key rotation library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"files": [
|
|
18
18
|
"binaries/*.so",
|
|
19
|
-
"binaries/*.dylib"
|
|
19
|
+
"binaries/*.dylib",
|
|
20
|
+
"dist/index.d.ts"
|
|
20
21
|
],
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"cobhan": "^1.0.
|
|
23
|
+
"cobhan": "^1.0.22"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"@types/node": "^17.0.21",
|