Skip to content

Commit 1be480c

Browse files
Nikola HristovNikola Hristov
authored andcommitted
1 parent 17b7169 commit 1be480c

18 files changed

+224
-0
lines changed

Target/Function/Access.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type Interface from "../Interface/Access.js";
2+
/**
3+
* @module Access
4+
*
5+
*/
6+
declare const _default: Interface;
7+
export default _default;
8+
export declare const Uint8ArrayFromObject: import("../Interface/Uint8ArrayFromObject.js").default;

Target/Function/Decrypt.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type Interface from "../Interface/Decrypt.js";
2+
/**
3+
* @module Decrypt
4+
*
5+
*/
6+
declare const _default: Interface;
7+
export default _default;

Target/Function/Encrypt.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type Interface from "../Interface/Encrypt.js";
2+
/**
3+
* @module Encrypt
4+
*
5+
*/
6+
declare const _default: Interface;
7+
export default _default;

Target/Function/Get.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type Interface from "../Interface/Get.js";
2+
/**
3+
* @module Get
4+
*
5+
*/
6+
declare const _default: Interface;
7+
export default _default;

Target/Function/Put.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type Interface from "../Interface/Put.js";
2+
/**
3+
* @module Put
4+
*
5+
*/
6+
declare const _default: Interface;
7+
export default _default;

Target/Function/Redirect.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type Interface from "../Interface/Redirect.js";
2+
/**
3+
* @module Redirect
4+
*
5+
*/
6+
declare const _default: Interface;
7+
export default _default;
8+
export declare const Response: {
9+
new (body?: import("@cloudflare/workers-types/experimental/index.js").BodyInit | null, init?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit): import("@cloudflare/workers-types/experimental/index.js").Response;
10+
prototype: import("@cloudflare/workers-types/experimental/index.js").Response;
11+
error(): import("@cloudflare/workers-types/experimental/index.js").Response;
12+
redirect(url: string, status?: number): import("@cloudflare/workers-types/experimental/index.js").Response;
13+
json(any: any, maybeInit?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit | import("@cloudflare/workers-types/experimental/index.js").Response): import("@cloudflare/workers-types/experimental/index.js").Response;
14+
};

Target/Function/Response.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type Interface from "../Interface/Response.js";
2+
/**
3+
* @module Response
4+
*
5+
*/
6+
declare const _default: Interface;
7+
export default _default;
8+
export declare const Response: {
9+
new (body?: import("@cloudflare/workers-types/experimental/index.js").BodyInit | null, init?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit): import("@cloudflare/workers-types/experimental/index.js").Response;
10+
prototype: import("@cloudflare/workers-types/experimental/index.js").Response;
11+
error(): import("@cloudflare/workers-types/experimental/index.js").Response;
12+
redirect(url: string, status?: number): import("@cloudflare/workers-types/experimental/index.js").Response;
13+
json(any: any, maybeInit?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit | import("@cloudflare/workers-types/experimental/index.js").Response): import("@cloudflare/workers-types/experimental/index.js").Response;
14+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type Interface from "../Interface/Uint8ArrayFromObject.js";
2+
/**
3+
* @module Uint8ArrayFromObject
4+
*
5+
*/
6+
declare const _default: Interface;
7+
export default _default;

Target/Interface/Access.d.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { JsonWebKey, KVNamespace } from "@cloudflare/workers-types/experimental/index.js";
2+
/**
3+
* @module Access
4+
*
5+
*/
6+
export default interface Interface {
7+
/**
8+
* The function `Access` is a TypeScript function that decrypts and retrieves a specific
9+
* view from a stored data object using a provided key and unique identifier.
10+
*
11+
* @param Key - The `Key` parameter is of type `JsonWebKey["k"]`, which means it expects
12+
* a value that is a string representing a JSON Web Key. This key will be used for
13+
* decryption.
14+
*
15+
* @param Identifier - The Identifier parameter is a unique identifier generated using the
16+
* `randomUUID` function from the `Crypto` object. It is used to retrieve data from the
17+
* KV namespace.
18+
*
19+
* @param KV - KV is an instance of the KVNamespace class, which is used
20+
* to interact with the Workers KV storage. It provides methods for reading, writing,
21+
* and deleting data from the KV storage.
22+
*
23+
* @param View - The `View` parameter is a string that represents the specific
24+
* view or property of the decrypted data that you want to access. It is used to
25+
* retrieve a specific value from the decrypted data object.
26+
*
27+
*/
28+
(Key: JsonWebKey["k"], Identifier: ReturnType<Crypto["randomUUID"]>, KV: KVNamespace, View: string): unknown;
29+
}

Target/Interface/Data.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type _Object from "./Object.js";
2+
/**
3+
* @module Uint8ArrayObject
4+
*
5+
*/
6+
export default interface Interface {
7+
Vector: _Object;
8+
Data: _Object;
9+
}

0 commit comments

Comments
 (0)