@types/aws-cloudfront-function 1.0.5 → 1.0.7

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.
@@ -8,7 +8,7 @@ This package contains type definitions for aws-cloudfront-function (https://docs
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-cloudfront-function.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 20 May 2025 23:33:31 GMT
11
+ * Last updated: Fri, 13 Mar 2026 23:40:50 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -31,6 +31,12 @@ declare namespace AWSCloudFrontFunction {
31
31
  statusDescription?: string;
32
32
  headers?: ValueObject;
33
33
  cookies?: ResponseCookie;
34
+ body?: string | ResponseBody;
35
+ }
36
+
37
+ interface ResponseBody {
38
+ data: string;
39
+ encoding: "text" | "base64";
34
40
  }
35
41
 
36
42
  interface ValueObject {
@@ -57,10 +63,10 @@ declare namespace AWSCloudFrontFunction {
57
63
  declare module "cloudfront" {
58
64
  /**
59
65
  * Retrieves a reference to a CloudFront Key-Value Store (KVS) by its ID.
60
- * @param kvsId The identifier of the KVS to use.
66
+ * @param kvsId The identifier of the KVS to use (optional).
61
67
  * @see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-custom-methods.html
62
68
  */
63
- function kvs(kvsId: string): KVStore;
69
+ function kvs(kvsId?: string): KVStore;
64
70
 
65
71
  interface KVStore {
66
72
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/aws-cloudfront-function",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "TypeScript definitions for aws-cloudfront-function",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-cloudfront-function",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "scripts": {},
22
22
  "dependencies": {},
23
23
  "peerDependencies": {},
24
- "typesPublisherContentHash": "b6c4e2382b6890262e8b02f51ca1e8013f4cf18659430d2793a6aef81505d6f9",
25
- "typeScriptVersion": "5.1",
24
+ "typesPublisherContentHash": "780b1770be43bb615190ae71f0b6a60d8521e2c6fc89f9135d4ac23adbd9a5bb",
25
+ "typeScriptVersion": "5.2",
26
26
  "nonNpm": true
27
27
  }