asherah 1.0.24 → 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 +4 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
declare type KeyMeta = {
|
|
2
|
+
export declare type KeyMeta = {
|
|
3
3
|
ID: string;
|
|
4
4
|
Created: string | number;
|
|
5
5
|
};
|
|
6
|
-
declare type EnvelopeKeyRecord = {
|
|
6
|
+
export declare type EnvelopeKeyRecord = {
|
|
7
7
|
EncryptedKey: Buffer;
|
|
8
8
|
Created: string | number;
|
|
9
9
|
ParentKeyMeta: KeyMeta;
|
|
10
10
|
};
|
|
11
|
-
declare type DataRowRecord = {
|
|
11
|
+
export declare type DataRowRecord = {
|
|
12
12
|
Data: Buffer;
|
|
13
13
|
Key: EnvelopeKeyRecord;
|
|
14
14
|
};
|
|
15
|
-
declare type AsherahConfig = {
|
|
15
|
+
export declare type AsherahConfig = {
|
|
16
16
|
kmsType: string;
|
|
17
17
|
metastore: string;
|
|
18
18
|
serviceName: string;
|
|
@@ -31,4 +31,3 @@ declare type AsherahConfig = {
|
|
|
31
31
|
export declare function setup(config: AsherahConfig): void;
|
|
32
32
|
export declare function decrypt(partitionId: string, dataRowRecord: DataRowRecord): Buffer;
|
|
33
33
|
export declare function encrypt(partitionId: string, data: Buffer): DataRowRecord;
|
|
34
|
-
export {};
|