Skip to content

Commit ffc7ad5

Browse files
1 parent d961da8 commit ffc7ad5

18 files changed

+146
-95
lines changed

Target/Function/Access.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type Interface from "../Interface/Access.js";
2+
23
/**
34
* @module Access
45
*

Target/Function/Decrypt.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type Interface from "../Interface/Decrypt.js";
2+
23
/**
34
* @module Decrypt
45
*

Target/Function/Encrypt.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type Interface from "../Interface/Encrypt.js";
2+
23
/**
34
* @module Encrypt
45
*

Target/Function/Get.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type Interface from "../Interface/Get.js";
2+
23
/**
34
* @module Get
45
*

Target/Function/Put.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type Interface from "../Interface/Put.js";
2+
23
/**
34
* @module Put
45
*

Target/Function/Redirect.d.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
import type Interface from "../Interface/Redirect.js";
2+
23
/**
34
* @module Redirect
45
*
56
*/
67
declare const _default: Interface;
78
export default _default;
89
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-
redirect(url: string, status?: number): import("@cloudflare/workers-types/experimental/index.js").Response;
12-
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;
10+
new (
11+
body?:
12+
| import("@cloudflare/workers-types/experimental/index.js").BodyInit
13+
| null,
14+
init?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit,
15+
): import("@cloudflare/workers-types/experimental/index.js").Response;
16+
prototype: import("@cloudflare/workers-types/experimental/index.js").Response;
17+
redirect(
18+
url: string,
19+
status?: number,
20+
): import("@cloudflare/workers-types/experimental/index.js").Response;
21+
json(
22+
any: any,
23+
maybeInit?:
24+
| import("@cloudflare/workers-types/experimental/index.js").ResponseInit
25+
| import("@cloudflare/workers-types/experimental/index.js").Response,
26+
): import("@cloudflare/workers-types/experimental/index.js").Response;
1327
};

Target/Function/Response.d.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
import type Interface from "../Interface/Response.js";
2+
23
/**
34
* @module Response
45
*
56
*/
67
declare const _default: Interface;
78
export default _default;
89
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-
redirect(url: string, status?: number): import("@cloudflare/workers-types/experimental/index.js").Response;
12-
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;
10+
new (
11+
body?:
12+
| import("@cloudflare/workers-types/experimental/index.js").BodyInit
13+
| null,
14+
init?: import("@cloudflare/workers-types/experimental/index.js").ResponseInit,
15+
): import("@cloudflare/workers-types/experimental/index.js").Response;
16+
prototype: import("@cloudflare/workers-types/experimental/index.js").Response;
17+
redirect(
18+
url: string,
19+
status?: number,
20+
): import("@cloudflare/workers-types/experimental/index.js").Response;
21+
json(
22+
any: any,
23+
maybeInit?:
24+
| import("@cloudflare/workers-types/experimental/index.js").ResponseInit
25+
| import("@cloudflare/workers-types/experimental/index.js").Response,
26+
): import("@cloudflare/workers-types/experimental/index.js").Response;
1327
};

Target/Function/Uint8ArrayFromObject.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type Interface from "../Interface/Uint8ArrayFromObject.js";
2+
23
/**
34
* @module Uint8ArrayFromObject
45
*

Target/Interface/Access.d.ts

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

Target/Interface/Data.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import type _Object from "./Object.js";
2+
23
/**
34
* @module Uint8ArrayObject
45
*
56
*/
67
export default interface Interface {
7-
Vector: _Object;
8-
Data: _Object;
8+
Vector: _Object;
9+
Data: _Object;
910
}

0 commit comments

Comments
 (0)