@k9o/kibo 0.0.0-stage → 1.0.0

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.
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The `ReadableStreamType` enum.
5
+ *
6
+ * *This API requires the following crate features to be activated: `ReadableStreamType`*
7
+ */
8
+
9
+ type ReadableStreamType = "bytes";
10
+
11
+ export class IntoUnderlyingByteSource {
12
+ private constructor();
13
+ free(): void;
14
+ [Symbol.dispose](): void;
15
+ cancel(): void;
16
+ pull(controller: ReadableByteStreamController): Promise<any>;
17
+ start(controller: ReadableByteStreamController): void;
18
+ readonly autoAllocateChunkSize: number;
19
+ readonly type: ReadableStreamType;
20
+ }
21
+
22
+ export class IntoUnderlyingSink {
23
+ private constructor();
24
+ free(): void;
25
+ [Symbol.dispose](): void;
26
+ abort(reason: any): Promise<any>;
27
+ close(): Promise<any>;
28
+ write(chunk: any): Promise<any>;
29
+ }
30
+
31
+ export class IntoUnderlyingSource {
32
+ private constructor();
33
+ free(): void;
34
+ [Symbol.dispose](): void;
35
+ cancel(): void;
36
+ pull(controller: ReadableStreamDefaultController): Promise<any>;
37
+ }
38
+
39
+ /**
40
+ * Decrypt a ZKFE envelope (browser / React Native).
41
+ *
42
+ * `input_json` — JSON-serialized `DecryptInput`.
43
+ * Returns a `Promise<string>` resolving to JSON-serialized `DecryptOutput`.
44
+ */
45
+ export function zk_decrypt(input_json: any): Promise<any>;
46
+
47
+ /**
48
+ * Encrypt via the customer KMS (browser / React Native).
49
+ *
50
+ * `input_json` — JSON-serialized `EncryptInput`.
51
+ * Returns a `Promise<string>` resolving to JSON-serialized `EncryptOutput`,
52
+ * or rejecting with a `JsValue` error string.
53
+ */
54
+ export function zk_encrypt(input_json: any): Promise<any>;