ctes-models-ts 0.0.2 → 0.0.4
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/generate.sh +5 -6
- package/index.ts +2 -2
- package/package.json +4 -1
package/generate.sh
CHANGED
|
@@ -3,9 +3,8 @@ cd CiphertextEcosystemProtobuf
|
|
|
3
3
|
protoc \
|
|
4
4
|
--plugin=protoc-gen-ts_proto=../node_modules/.bin/protoc-gen-ts_proto \
|
|
5
5
|
--ts_proto_out=../ \
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
# rm -rf CiphertextEcosystemProtobuf
|
|
6
|
+
model/ciphertext.proto
|
|
7
|
+
cd ..
|
|
8
|
+
mv model/ciphertext.ts index.ts
|
|
9
|
+
rm -rf model
|
|
10
|
+
rm -rf CiphertextEcosystemProtobuf
|
package/index.ts
CHANGED
|
@@ -83,7 +83,7 @@ export interface Ciphertext {
|
|
|
83
83
|
* If the ciphertext is encoded, please decode it to a bitstream first.
|
|
84
84
|
*/
|
|
85
85
|
bytes: Uint8Array;
|
|
86
|
-
metadata
|
|
86
|
+
metadata: CiphertextMetadata | undefined;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
@@ -97,7 +97,7 @@ export interface CiphertextMetadata {
|
|
|
97
97
|
*/
|
|
98
98
|
type: string;
|
|
99
99
|
/** Metadata about how the bytes should be encoded. */
|
|
100
|
-
encoding
|
|
100
|
+
encoding: EncodingMetadata | undefined;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/** Metadata about how the bytes should be encoded. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ctes-models-ts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Ciphertext Ecosystem models.",
|
|
5
5
|
"author": "irebased <rebased.again@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"generate": ". ./generate.sh",
|
|
9
9
|
"build": "npx tsc index.ts"
|
|
10
10
|
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@bufbuild/protobuf": "^2.10.2"
|
|
13
|
+
},
|
|
11
14
|
"devDependencies": {
|
|
12
15
|
"@types/node": "^25.0.9",
|
|
13
16
|
"ts-proto": "^2.11.0"
|