@aligent/cdk-prerender-proxy 0.2.5-experimental1 → 0.2.5-experimental2

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.
Files changed (201) hide show
  1. package/lib/error-response-construct.d.ts +0 -1
  2. package/lib/error-response-construct.js +4 -5
  3. package/lib/handlers/cache-control.ts +21 -0
  4. package/lib/handlers/error-response.ts +51 -0
  5. package/lib/handlers/node_modules/.package-lock.json +55 -0
  6. package/lib/handlers/node_modules/@types/aws-lambda/LICENSE +21 -0
  7. package/lib/handlers/node_modules/@types/aws-lambda/README.md +16 -0
  8. package/lib/handlers/node_modules/@types/aws-lambda/common/api-gateway.d.ts +79 -0
  9. package/lib/handlers/node_modules/@types/aws-lambda/common/cloudfront.d.ts +79 -0
  10. package/lib/handlers/node_modules/@types/aws-lambda/handler.d.ts +171 -0
  11. package/lib/handlers/node_modules/@types/aws-lambda/index.d.ts +85 -0
  12. package/lib/handlers/node_modules/@types/aws-lambda/package.json +210 -0
  13. package/lib/handlers/node_modules/@types/aws-lambda/trigger/alb.d.ts +48 -0
  14. package/lib/handlers/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.ts +174 -0
  15. package/lib/handlers/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +187 -0
  16. package/lib/handlers/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.ts +51 -0
  17. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.ts +68 -0
  18. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.ts +20 -0
  19. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.ts +21 -0
  20. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.ts +8 -0
  21. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.ts +37 -0
  22. package/lib/handlers/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.ts +104 -0
  23. package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts +31 -0
  24. package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts +32 -0
  25. package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts +23 -0
  26. package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts +11 -0
  27. package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline.d.ts +55 -0
  28. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/_common.d.ts +41 -0
  29. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.ts +22 -0
  30. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.ts +86 -0
  31. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.ts +44 -0
  32. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.ts +21 -0
  33. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +119 -0
  34. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.ts +15 -0
  35. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.ts +22 -0
  36. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.ts +15 -0
  37. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.ts +31 -0
  38. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.ts +45 -0
  39. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.ts +39 -0
  40. package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.ts +20 -0
  41. package/lib/handlers/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.ts +65 -0
  42. package/lib/handlers/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +45 -0
  43. package/lib/handlers/node_modules/@types/aws-lambda/trigger/eventbridge.d.ts +18 -0
  44. package/lib/handlers/node_modules/@types/aws-lambda/trigger/iot.d.ts +28 -0
  45. package/lib/handlers/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts +45 -0
  46. package/lib/handlers/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.ts +28 -0
  47. package/lib/handlers/node_modules/@types/aws-lambda/trigger/lex.d.ts +116 -0
  48. package/lib/handlers/node_modules/@types/aws-lambda/trigger/msk.d.ts +21 -0
  49. package/lib/handlers/node_modules/@types/aws-lambda/trigger/s3-batch.d.ts +41 -0
  50. package/lib/handlers/node_modules/@types/aws-lambda/trigger/s3.d.ts +60 -0
  51. package/lib/handlers/node_modules/@types/aws-lambda/trigger/ses.d.ts +103 -0
  52. package/lib/handlers/node_modules/@types/aws-lambda/trigger/sns.d.ts +38 -0
  53. package/lib/handlers/node_modules/@types/aws-lambda/trigger/sqs.d.ts +46 -0
  54. package/lib/handlers/node_modules/@types/node/LICENSE +21 -0
  55. package/lib/handlers/node_modules/@types/node/README.md +16 -0
  56. package/lib/handlers/node_modules/@types/node/assert/strict.d.ts +4 -0
  57. package/lib/handlers/node_modules/@types/node/assert.d.ts +124 -0
  58. package/lib/handlers/node_modules/@types/node/async_hooks.d.ts +226 -0
  59. package/lib/handlers/node_modules/@types/node/base.d.ts +19 -0
  60. package/lib/handlers/node_modules/@types/node/buffer.d.ts +84 -0
  61. package/lib/handlers/node_modules/@types/node/child_process.d.ts +526 -0
  62. package/lib/handlers/node_modules/@types/node/cluster.d.ts +262 -0
  63. package/lib/handlers/node_modules/@types/node/console.d.ts +133 -0
  64. package/lib/handlers/node_modules/@types/node/constants.d.ts +13 -0
  65. package/lib/handlers/node_modules/@types/node/crypto.d.ts +1580 -0
  66. package/lib/handlers/node_modules/@types/node/dgram.d.ts +141 -0
  67. package/lib/handlers/node_modules/@types/node/diagnostic_channel.d.ts +34 -0
  68. package/lib/handlers/node_modules/@types/node/dns/promises.d.ts +97 -0
  69. package/lib/handlers/node_modules/@types/node/dns.d.ts +322 -0
  70. package/lib/handlers/node_modules/@types/node/domain.d.ts +24 -0
  71. package/lib/handlers/node_modules/@types/node/events.d.ts +93 -0
  72. package/lib/handlers/node_modules/@types/node/fs/promises.d.ts +592 -0
  73. package/lib/handlers/node_modules/@types/node/fs.d.ts +2239 -0
  74. package/lib/handlers/node_modules/@types/node/globals.d.ts +655 -0
  75. package/lib/handlers/node_modules/@types/node/globals.global.d.ts +1 -0
  76. package/lib/handlers/node_modules/@types/node/http.d.ts +434 -0
  77. package/lib/handlers/node_modules/@types/node/http2.d.ts +976 -0
  78. package/lib/handlers/node_modules/@types/node/https.d.ts +36 -0
  79. package/lib/handlers/node_modules/@types/node/index.d.ts +58 -0
  80. package/lib/handlers/node_modules/@types/node/inspector.d.ts +3041 -0
  81. package/lib/handlers/node_modules/@types/node/module.d.ts +52 -0
  82. package/lib/handlers/node_modules/@types/node/net.d.ts +326 -0
  83. package/lib/handlers/node_modules/@types/node/os.d.ts +239 -0
  84. package/lib/handlers/node_modules/@types/node/package.json +232 -0
  85. package/lib/handlers/node_modules/@types/node/path.d.ts +163 -0
  86. package/lib/handlers/node_modules/@types/node/perf_hooks.d.ts +310 -0
  87. package/lib/handlers/node_modules/@types/node/process.d.ts +461 -0
  88. package/lib/handlers/node_modules/@types/node/punycode.d.ts +75 -0
  89. package/lib/handlers/node_modules/@types/node/querystring.d.ts +28 -0
  90. package/lib/handlers/node_modules/@types/node/readline.d.ts +192 -0
  91. package/lib/handlers/node_modules/@types/node/repl.d.ts +395 -0
  92. package/lib/handlers/node_modules/@types/node/stream/promises.d.ts +67 -0
  93. package/lib/handlers/node_modules/@types/node/stream.d.ts +471 -0
  94. package/lib/handlers/node_modules/@types/node/string_decoder.d.ts +7 -0
  95. package/lib/handlers/node_modules/@types/node/timers/promises.d.ts +21 -0
  96. package/lib/handlers/node_modules/@types/node/timers.d.ts +27 -0
  97. package/lib/handlers/node_modules/@types/node/tls.d.ts +793 -0
  98. package/lib/handlers/node_modules/@types/node/trace_events.d.ts +61 -0
  99. package/lib/handlers/node_modules/@types/node/ts3.6/assert.d.ts +98 -0
  100. package/lib/handlers/node_modules/@types/node/ts3.6/base.d.ts +68 -0
  101. package/lib/handlers/node_modules/@types/node/ts3.6/index.d.ts +7 -0
  102. package/lib/handlers/node_modules/@types/node/tty.d.ts +66 -0
  103. package/lib/handlers/node_modules/@types/node/url.d.ts +116 -0
  104. package/lib/handlers/node_modules/@types/node/util/types.d.ts +53 -0
  105. package/lib/handlers/node_modules/@types/node/util.d.ts +156 -0
  106. package/lib/handlers/node_modules/@types/node/v8.d.ts +198 -0
  107. package/lib/handlers/node_modules/@types/node/vm.d.ts +152 -0
  108. package/lib/handlers/node_modules/@types/node/wasi.d.ts +86 -0
  109. package/lib/handlers/node_modules/@types/node/worker_threads.d.ts +282 -0
  110. package/lib/handlers/node_modules/@types/node/zlib.d.ts +361 -0
  111. package/lib/handlers/node_modules/axios/CHANGELOG.md +685 -0
  112. package/lib/handlers/node_modules/axios/LICENSE +19 -0
  113. package/lib/handlers/node_modules/axios/README.md +800 -0
  114. package/lib/handlers/node_modules/axios/UPGRADE_GUIDE.md +162 -0
  115. package/lib/handlers/node_modules/axios/dist/axios.js +1756 -0
  116. package/lib/handlers/node_modules/axios/dist/axios.map +1 -0
  117. package/lib/handlers/node_modules/axios/dist/axios.min.js +3 -0
  118. package/lib/handlers/node_modules/axios/dist/axios.min.map +1 -0
  119. package/lib/handlers/node_modules/axios/index.d.ts +161 -0
  120. package/lib/handlers/node_modules/axios/index.js +1 -0
  121. package/lib/handlers/node_modules/axios/lib/adapters/README.md +37 -0
  122. package/lib/handlers/node_modules/axios/lib/adapters/http.js +303 -0
  123. package/lib/handlers/node_modules/axios/lib/adapters/xhr.js +179 -0
  124. package/lib/handlers/node_modules/axios/lib/axios.js +56 -0
  125. package/lib/handlers/node_modules/axios/lib/cancel/Cancel.js +19 -0
  126. package/lib/handlers/node_modules/axios/lib/cancel/CancelToken.js +57 -0
  127. package/lib/handlers/node_modules/axios/lib/cancel/isCancel.js +5 -0
  128. package/lib/handlers/node_modules/axios/lib/core/Axios.js +95 -0
  129. package/lib/handlers/node_modules/axios/lib/core/InterceptorManager.js +52 -0
  130. package/lib/handlers/node_modules/axios/lib/core/README.md +7 -0
  131. package/lib/handlers/node_modules/axios/lib/core/buildFullPath.js +20 -0
  132. package/lib/handlers/node_modules/axios/lib/core/createError.js +18 -0
  133. package/lib/handlers/node_modules/axios/lib/core/dispatchRequest.js +79 -0
  134. package/lib/handlers/node_modules/axios/lib/core/enhanceError.js +42 -0
  135. package/lib/handlers/node_modules/axios/lib/core/mergeConfig.js +87 -0
  136. package/lib/handlers/node_modules/axios/lib/core/settle.js +25 -0
  137. package/lib/handlers/node_modules/axios/lib/core/transformData.js +20 -0
  138. package/lib/handlers/node_modules/axios/lib/defaults.js +98 -0
  139. package/lib/handlers/node_modules/axios/lib/helpers/README.md +7 -0
  140. package/lib/handlers/node_modules/axios/lib/helpers/bind.js +11 -0
  141. package/lib/handlers/node_modules/axios/lib/helpers/buildURL.js +70 -0
  142. package/lib/handlers/node_modules/axios/lib/helpers/combineURLs.js +14 -0
  143. package/lib/handlers/node_modules/axios/lib/helpers/cookies.js +53 -0
  144. package/lib/handlers/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
  145. package/lib/handlers/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
  146. package/lib/handlers/node_modules/axios/lib/helpers/isAxiosError.js +11 -0
  147. package/lib/handlers/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
  148. package/lib/handlers/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  149. package/lib/handlers/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
  150. package/lib/handlers/node_modules/axios/lib/helpers/spread.js +27 -0
  151. package/lib/handlers/node_modules/axios/lib/utils.js +351 -0
  152. package/lib/handlers/node_modules/axios/package.json +86 -0
  153. package/lib/handlers/node_modules/buffer-from/LICENSE +21 -0
  154. package/lib/handlers/node_modules/buffer-from/index.js +69 -0
  155. package/lib/handlers/node_modules/buffer-from/package.json +19 -0
  156. package/lib/handlers/node_modules/buffer-from/readme.md +69 -0
  157. package/lib/handlers/node_modules/follow-redirects/LICENSE +18 -0
  158. package/lib/handlers/node_modules/follow-redirects/README.md +148 -0
  159. package/lib/handlers/node_modules/follow-redirects/debug.js +14 -0
  160. package/lib/handlers/node_modules/follow-redirects/http.js +1 -0
  161. package/lib/handlers/node_modules/follow-redirects/https.js +1 -0
  162. package/lib/handlers/node_modules/follow-redirects/index.js +531 -0
  163. package/lib/handlers/node_modules/follow-redirects/package.json +59 -0
  164. package/lib/handlers/node_modules/source-map/CHANGELOG.md +301 -0
  165. package/lib/handlers/node_modules/source-map/LICENSE +28 -0
  166. package/lib/handlers/node_modules/source-map/README.md +742 -0
  167. package/lib/handlers/node_modules/source-map/dist/source-map.debug.js +3234 -0
  168. package/lib/handlers/node_modules/source-map/dist/source-map.js +3233 -0
  169. package/lib/handlers/node_modules/source-map/dist/source-map.min.js +2 -0
  170. package/lib/handlers/node_modules/source-map/dist/source-map.min.js.map +1 -0
  171. package/lib/handlers/node_modules/source-map/lib/array-set.js +121 -0
  172. package/lib/handlers/node_modules/source-map/lib/base64-vlq.js +140 -0
  173. package/lib/handlers/node_modules/source-map/lib/base64.js +67 -0
  174. package/lib/handlers/node_modules/source-map/lib/binary-search.js +111 -0
  175. package/lib/handlers/node_modules/source-map/lib/mapping-list.js +79 -0
  176. package/lib/handlers/node_modules/source-map/lib/quick-sort.js +114 -0
  177. package/lib/handlers/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  178. package/lib/handlers/node_modules/source-map/lib/source-map-generator.js +425 -0
  179. package/lib/handlers/node_modules/source-map/lib/source-node.js +413 -0
  180. package/lib/handlers/node_modules/source-map/lib/util.js +488 -0
  181. package/lib/handlers/node_modules/source-map/package.json +73 -0
  182. package/lib/handlers/node_modules/source-map/source-map.d.ts +98 -0
  183. package/lib/handlers/node_modules/source-map/source-map.js +8 -0
  184. package/lib/handlers/node_modules/source-map-support/LICENSE.md +21 -0
  185. package/lib/handlers/node_modules/source-map-support/README.md +284 -0
  186. package/lib/handlers/node_modules/source-map-support/browser-source-map-support.js +114 -0
  187. package/lib/handlers/node_modules/source-map-support/package.json +31 -0
  188. package/lib/handlers/node_modules/source-map-support/register.js +1 -0
  189. package/lib/handlers/node_modules/source-map-support/source-map-support.js +604 -0
  190. package/lib/handlers/package-lock.json +108 -0
  191. package/lib/handlers/package.json +13 -0
  192. package/lib/handlers/prerender-check.ts +27 -0
  193. package/lib/handlers/prerender.ts +43 -0
  194. package/lib/handlers/tsconfig.json +24 -0
  195. package/lib/prerender-cf-cache-control-construct.d.ts +0 -1
  196. package/lib/prerender-cf-cache-control-construct.js +4 -5
  197. package/lib/prerender-check-construct.d.ts +0 -1
  198. package/lib/prerender-check-construct.js +4 -5
  199. package/lib/prerender-construct.d.ts +0 -1
  200. package/lib/prerender-construct.js +4 -5
  201. package/package.json +3 -3
@@ -0,0 +1,210 @@
1
+ {
2
+ "name": "@types/aws-lambda",
3
+ "version": "8.10.77",
4
+ "description": "TypeScript definitions for AWS Lambda",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "James Darbyshire",
10
+ "url": "https://github.com/darbio",
11
+ "githubUsername": "darbio"
12
+ },
13
+ {
14
+ "name": "Michael Skarum",
15
+ "url": "https://github.com/skarum",
16
+ "githubUsername": "skarum"
17
+ },
18
+ {
19
+ "name": "Stef Heyenrath",
20
+ "url": "https://github.com/StefH",
21
+ "githubUsername": "StefH"
22
+ },
23
+ {
24
+ "name": "Rich Buggy",
25
+ "url": "https://github.com/buggy",
26
+ "githubUsername": "buggy"
27
+ },
28
+ {
29
+ "name": "Yoriki Yamaguchi",
30
+ "url": "https://github.com/y13i",
31
+ "githubUsername": "y13i"
32
+ },
33
+ {
34
+ "name": "wwwy3y3",
35
+ "url": "https://github.com/wwwy3y3",
36
+ "githubUsername": "wwwy3y3"
37
+ },
38
+ {
39
+ "name": "Ishaan Malhi",
40
+ "url": "https://github.com/OrthoDex",
41
+ "githubUsername": "OrthoDex"
42
+ },
43
+ {
44
+ "name": "Michael Marner",
45
+ "url": "https://github.com/MichaelMarner",
46
+ "githubUsername": "MichaelMarner"
47
+ },
48
+ {
49
+ "name": "Daniel Cottone",
50
+ "url": "https://github.com/daniel-cottone",
51
+ "githubUsername": "daniel-cottone"
52
+ },
53
+ {
54
+ "name": "Kostya Misura",
55
+ "url": "https://github.com/kostya-misura",
56
+ "githubUsername": "kostya-misura"
57
+ },
58
+ {
59
+ "name": "Markus Tacker",
60
+ "url": "https://github.com/coderbyheart",
61
+ "githubUsername": "coderbyheart"
62
+ },
63
+ {
64
+ "name": "Palmi Valgeirsson",
65
+ "url": "https://github.com/palmithor",
66
+ "githubUsername": "palmithor"
67
+ },
68
+ {
69
+ "name": "Danilo Raisi",
70
+ "url": "https://github.com/daniloraisi",
71
+ "githubUsername": "daniloraisi"
72
+ },
73
+ {
74
+ "name": "Simon Buchan",
75
+ "url": "https://github.com/simonbuchan",
76
+ "githubUsername": "simonbuchan"
77
+ },
78
+ {
79
+ "name": "David Hayden",
80
+ "url": "https://github.com/Haydabase",
81
+ "githubUsername": "Haydabase"
82
+ },
83
+ {
84
+ "name": "Chris Redekop",
85
+ "url": "https://github.com/repl-chris",
86
+ "githubUsername": "repl-chris"
87
+ },
88
+ {
89
+ "name": "Aneil Mallavarapu",
90
+ "url": "https://github.com/aneilbaboo",
91
+ "githubUsername": "aneilbaboo"
92
+ },
93
+ {
94
+ "name": "Jeremy Nagel",
95
+ "url": "https://github.com/jeznag",
96
+ "githubUsername": "jeznag"
97
+ },
98
+ {
99
+ "name": "Louis Larry",
100
+ "url": "https://github.com/louislarry",
101
+ "githubUsername": "louislarry"
102
+ },
103
+ {
104
+ "name": "Daniel Papukchiev",
105
+ "url": "https://github.com/dpapukchiev",
106
+ "githubUsername": "dpapukchiev"
107
+ },
108
+ {
109
+ "name": "Oliver Hookins",
110
+ "url": "https://github.com/ohookins",
111
+ "githubUsername": "ohookins"
112
+ },
113
+ {
114
+ "name": "Trevor Leach",
115
+ "url": "https://github.com/trevor-leach",
116
+ "githubUsername": "trevor-leach"
117
+ },
118
+ {
119
+ "name": "James Gregory",
120
+ "url": "https://github.com/jagregory",
121
+ "githubUsername": "jagregory"
122
+ },
123
+ {
124
+ "name": "Erik Dalén",
125
+ "url": "https://github.com/dalen",
126
+ "githubUsername": "dalen"
127
+ },
128
+ {
129
+ "name": "Loïk Gaonac'h",
130
+ "url": "https://github.com/loikg",
131
+ "githubUsername": "loikg"
132
+ },
133
+ {
134
+ "name": "Roberto Zen",
135
+ "url": "https://github.com/skyzenr",
136
+ "githubUsername": "skyzenr"
137
+ },
138
+ {
139
+ "name": "Grzegorz Redlicki",
140
+ "url": "https://github.com/redlickigrzegorz",
141
+ "githubUsername": "redlickigrzegorz"
142
+ },
143
+ {
144
+ "name": "Juan Carbonel",
145
+ "url": "https://github.com/juancarbonel",
146
+ "githubUsername": "juancarbonel"
147
+ },
148
+ {
149
+ "name": "Peter McIntyre",
150
+ "url": "https://github.com/pwmcintyre",
151
+ "githubUsername": "pwmcintyre"
152
+ },
153
+ {
154
+ "name": "Alex Bolenok",
155
+ "url": "https://github.com/alex-bolenok-centralreach",
156
+ "githubUsername": "alex-bolenok-centralreach"
157
+ },
158
+ {
159
+ "name": "Marian Zange",
160
+ "url": "https://github.com/marianzange",
161
+ "githubUsername": "marianzange"
162
+ },
163
+ {
164
+ "name": "Alexander Pepper",
165
+ "url": "https://github.com/apepper",
166
+ "githubUsername": "apepper"
167
+ },
168
+ {
169
+ "name": "Alessandro Palumbo",
170
+ "url": "https://github.com/apalumbo",
171
+ "githubUsername": "apalumbo"
172
+ },
173
+ {
174
+ "name": "Sachin Shekhar",
175
+ "url": "https://github.com/SachinShekhar",
176
+ "githubUsername": "SachinShekhar"
177
+ },
178
+ {
179
+ "name": "Ivan Martos",
180
+ "url": "https://github.com/ivanmartos",
181
+ "githubUsername": "ivanmartos"
182
+ },
183
+ {
184
+ "name": "Zach Anthony",
185
+ "url": "https://github.com/zach-anthony",
186
+ "githubUsername": "zach-anthony"
187
+ },
188
+ {
189
+ "name": "Peter Savnik",
190
+ "url": "https://github.com/savnik",
191
+ "githubUsername": "savnik"
192
+ },
193
+ {
194
+ "name": "Sven Milewski",
195
+ "url": "https://github.com/svenmilewski",
196
+ "githubUsername": "svenmilewski"
197
+ }
198
+ ],
199
+ "main": "",
200
+ "types": "index.d.ts",
201
+ "repository": {
202
+ "type": "git",
203
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
204
+ "directory": "types/aws-lambda"
205
+ },
206
+ "scripts": {},
207
+ "dependencies": {},
208
+ "typesPublisherContentHash": "dda862cf7c7babf5a7e052c561524a23b70c7e44511c5e26d2ce7b527e304ac5",
209
+ "typeScriptVersion": "3.6"
210
+ }
@@ -0,0 +1,48 @@
1
+ import { Handler, Callback } from "../handler";
2
+
3
+ export type ALBHandler = Handler<ALBEvent, ALBResult>;
4
+ export type ALBCallback = Callback<ALBResult>;
5
+
6
+ // https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html
7
+ export interface ALBEventRequestContext {
8
+ elb: {
9
+ targetGroupArn: string;
10
+ };
11
+ }
12
+
13
+ export interface ALBEventQueryStringParameters {
14
+ [name: string]: string | undefined;
15
+ }
16
+
17
+ export interface ALBEventHeaders {
18
+ [name: string]: string | undefined;
19
+ }
20
+
21
+ export interface ALBEventMultiValueHeaders {
22
+ [name: string]: string[] | undefined;
23
+ }
24
+
25
+ export interface ALBEventMultiValueQueryStringParameters {
26
+ [name: string]: string[] | undefined;
27
+ }
28
+
29
+ export interface ALBEvent {
30
+ requestContext: ALBEventRequestContext;
31
+ httpMethod: string;
32
+ path: string;
33
+ queryStringParameters?: ALBEventQueryStringParameters; // URL encoded
34
+ headers?: ALBEventHeaders;
35
+ multiValueQueryStringParameters?: ALBEventMultiValueQueryStringParameters; // URL encoded
36
+ multiValueHeaders?: ALBEventMultiValueHeaders;
37
+ body: string | null;
38
+ isBase64Encoded: boolean;
39
+ }
40
+
41
+ export interface ALBResult {
42
+ statusCode: number;
43
+ statusDescription?: string;
44
+ headers?: { [header: string]: boolean | number | string };
45
+ multiValueHeaders?: { [header: string]: Array<boolean | number | string> };
46
+ body?: string;
47
+ isBase64Encoded?: boolean;
48
+ }
@@ -0,0 +1,174 @@
1
+ import {
2
+ APIGatewayAuthorizerResultContext,
3
+ APIGatewayEventDefaultAuthorizerContext,
4
+ APIGatewayEventRequestContextWithAuthorizer,
5
+ } from "../common/api-gateway";
6
+ import { Callback, Handler } from "../handler";
7
+
8
+ export type APIGatewayAuthorizerHandler = Handler<APIGatewayAuthorizerEvent, APIGatewayAuthorizerResult>;
9
+ export type APIGatewayAuthorizerWithContextHandler<TAuthorizerContext extends APIGatewayAuthorizerResultContext> =
10
+ Handler<APIGatewayAuthorizerEvent, APIGatewayAuthorizerWithContextResult<TAuthorizerContext>>;
11
+
12
+ export type APIGatewayAuthorizerCallback = Callback<APIGatewayAuthorizerResult>;
13
+ export type APIGatewayAuthorizerWithContextCallback<TAuthorizerContext extends APIGatewayAuthorizerResultContext> =
14
+ Callback<APIGatewayAuthorizerWithContextResult<TAuthorizerContext>>;
15
+
16
+ export type APIGatewayTokenAuthorizerHandler =
17
+ Handler<APIGatewayTokenAuthorizerEvent, APIGatewayAuthorizerResult>;
18
+ export type APIGatewayTokenAuthorizerWithContextHandler<TAuthorizerContext extends APIGatewayAuthorizerResultContext> =
19
+ Handler<APIGatewayTokenAuthorizerEvent, APIGatewayAuthorizerWithContextResult<TAuthorizerContext>>;
20
+
21
+ export type APIGatewayRequestAuthorizerHandler =
22
+ Handler<APIGatewayRequestAuthorizerEvent, APIGatewayAuthorizerResult>;
23
+ export type APIGatewayRequestAuthorizerWithContextHandler<TAuthorizerContext extends APIGatewayAuthorizerResultContext> =
24
+ Handler<APIGatewayRequestAuthorizerEvent, APIGatewayAuthorizerWithContextResult<TAuthorizerContext>>;
25
+
26
+ export type APIGatewayAuthorizerEvent = APIGatewayTokenAuthorizerEvent | APIGatewayRequestAuthorizerEvent;
27
+
28
+ export interface APIGatewayTokenAuthorizerEvent {
29
+ type: "TOKEN";
30
+ methodArn: string;
31
+ authorizationToken: string;
32
+ }
33
+
34
+ export interface APIGatewayRequestAuthorizerEventHeaders {
35
+ [name: string]: string | undefined;
36
+ }
37
+
38
+ export interface APIGatewayRequestAuthorizerEventMultiValueHeaders {
39
+ [name: string]: string[] | undefined;
40
+ }
41
+
42
+ export interface APIGatewayRequestAuthorizerEventPathParameters {
43
+ [name: string]: string | undefined;
44
+ }
45
+
46
+ export interface APIGatewayRequestAuthorizerEventQueryStringParameters {
47
+ [name: string]: string | undefined;
48
+ }
49
+
50
+ export interface APIGatewayRequestAuthorizerEventMultiValueQueryStringParameters {
51
+ [name: string]: string[] | undefined;
52
+ }
53
+
54
+ export interface APIGatewayRequestAuthorizerEventStageVariables {
55
+ [name: string]: string | undefined;
56
+ }
57
+
58
+ // Note, when invoked by the tester in the AWS web console, the map values can be null,
59
+ // but they will be empty objects in the real object.
60
+ // Worse, it will include "body" and "isBase64Encoded" properties, unlike the real call!
61
+ // See https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-input.html for the
62
+ // formal definition.
63
+ export interface APIGatewayRequestAuthorizerEvent {
64
+ type: "REQUEST";
65
+ methodArn: string;
66
+ resource: string;
67
+ path: string;
68
+ httpMethod: string;
69
+ headers: APIGatewayRequestAuthorizerEventHeaders | null;
70
+ multiValueHeaders: APIGatewayRequestAuthorizerEventMultiValueHeaders | null;
71
+ pathParameters: APIGatewayRequestAuthorizerEventPathParameters | null;
72
+ queryStringParameters: APIGatewayRequestAuthorizerEventQueryStringParameters | null;
73
+ multiValueQueryStringParameters: APIGatewayRequestAuthorizerEventMultiValueQueryStringParameters | null;
74
+ stageVariables: APIGatewayRequestAuthorizerEventStageVariables | null;
75
+ requestContext: APIGatewayEventRequestContextWithAuthorizer<undefined>;
76
+ }
77
+
78
+ export interface APIGatewayAuthorizerResult {
79
+ principalId: string;
80
+ policyDocument: PolicyDocument;
81
+ context?: APIGatewayAuthorizerResultContext | null;
82
+ usageIdentifierKey?: string | null;
83
+ }
84
+
85
+ // Separate type so the context property is required, without pulling complex type magic.
86
+ export interface APIGatewayAuthorizerWithContextResult<TAuthorizerContext extends APIGatewayAuthorizerResultContext> {
87
+ principalId: string;
88
+ policyDocument: PolicyDocument;
89
+ context: TAuthorizerContext;
90
+ usageIdentifierKey?: string | null;
91
+ }
92
+
93
+ // Legacy event / names
94
+
95
+ /** @deprecated Use APIGatewayAuthorizerHandler or a subtype */
96
+ export type CustomAuthorizerHandler = Handler<CustomAuthorizerEvent, APIGatewayAuthorizerResult>;
97
+
98
+ // This one is actually fine.
99
+ export type CustomAuthorizerCallback = APIGatewayAuthorizerCallback;
100
+
101
+ /** @deprecated Use APIGatewayAuthorizerEvent or a subtype */
102
+ export interface CustomAuthorizerEvent {
103
+ type: string;
104
+ methodArn: string;
105
+ authorizationToken?: string;
106
+ resource?: string;
107
+ path?: string;
108
+ httpMethod?: string;
109
+ headers?: { [name: string]: string };
110
+ multiValueHeaders?: { [name: string]: string[] };
111
+ pathParameters?: { [name: string]: string } | null;
112
+ queryStringParameters?: { [name: string]: string } | null;
113
+ multiValueQueryStringParameters?: { [name: string]: string[] } | null;
114
+ stageVariables?: { [name: string]: string };
115
+ requestContext?: APIGatewayEventRequestContextWithAuthorizer<APIGatewayEventDefaultAuthorizerContext>;
116
+ domainName?: string;
117
+ apiId?: string;
118
+ }
119
+
120
+ export type CustomAuthorizerResult = APIGatewayAuthorizerResult;
121
+ export type AuthResponse = APIGatewayAuthorizerResult;
122
+ export type AuthResponseContext = APIGatewayAuthorizerResultContext;
123
+
124
+ /**
125
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.
126
+ * https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html
127
+ * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#Condition
128
+ */
129
+ export interface PolicyDocument {
130
+ Version: string;
131
+ Id?: string;
132
+ Statement: Statement[];
133
+ }
134
+
135
+ /**
136
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Condition.
137
+ * https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-policy-language-overview.html
138
+ * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html
139
+ */
140
+ export interface ConditionBlock {
141
+ [condition: string]: Condition | Condition[];
142
+ }
143
+
144
+ export interface Condition {
145
+ [key: string]: string | string[];
146
+ }
147
+
148
+ /**
149
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement.
150
+ * https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-policy-language-overview.html
151
+ * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html
152
+ */
153
+ export type Statement = BaseStatement & StatementAction & (StatementResource | StatementPrincipal);
154
+
155
+ export interface BaseStatement {
156
+ Effect: string;
157
+ Sid?: string;
158
+ Condition?: ConditionBlock;
159
+ }
160
+
161
+ export type PrincipalValue = { [key: string]: string | string[] } | string | string[];
162
+ export interface MaybeStatementPrincipal {
163
+ Principal?: PrincipalValue;
164
+ NotPrincipal?: PrincipalValue;
165
+ }
166
+ export interface MaybeStatementResource {
167
+ Resource?: string | string[];
168
+ NotResource?: string | string[];
169
+ }
170
+ export type StatementAction = { Action: string | string[] } | { NotAction: string | string[] };
171
+ export type StatementResource = MaybeStatementPrincipal &
172
+ ({ Resource: string | string[] } | { NotResource: string | string[] });
173
+ export type StatementPrincipal = MaybeStatementResource &
174
+ ({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue });
@@ -0,0 +1,187 @@
1
+ import {
2
+ APIGatewayEventDefaultAuthorizerContext,
3
+ APIGatewayEventRequestContextWithAuthorizer,
4
+ } from "../common/api-gateway";
5
+ import { Callback, Handler } from "../handler";
6
+
7
+ /**
8
+ * Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
9
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
10
+ */
11
+ export type APIGatewayProxyHandler = Handler<APIGatewayProxyEvent, APIGatewayProxyResult>;
12
+ /**
13
+ * Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
14
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
15
+ */
16
+ export type APIGatewayProxyCallback = Callback<APIGatewayProxyResult>;
17
+
18
+ /**
19
+ * Works with HTTP API integration Payload Format version 2.0
20
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
21
+ */
22
+ export type APIGatewayProxyHandlerV2<T = never> = Handler<APIGatewayProxyEventV2, APIGatewayProxyResultV2<T>>;
23
+ /**
24
+ * Works with HTTP API integration Payload Format version 2.0
25
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
26
+ */
27
+ export type APIGatewayProxyCallbackV2 = Callback<APIGatewayProxyResultV2>;
28
+
29
+ /**
30
+ * Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
31
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
32
+ */
33
+ export type APIGatewayProxyEvent = APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>;
34
+
35
+ export type APIGatewayProxyWithLambdaAuthorizerHandler<TAuthorizerContext> =
36
+ Handler<APIGatewayProxyWithLambdaAuthorizerEvent<TAuthorizerContext>, APIGatewayProxyResult>;
37
+
38
+ export type APIGatewayProxyWithCognitoAuthorizerHandler =
39
+ Handler<APIGatewayProxyWithCognitoAuthorizerEvent, APIGatewayProxyResult>;
40
+
41
+ export type APIGatewayProxyWithLambdaAuthorizerEvent<TAuthorizerContext> =
42
+ APIGatewayProxyEventBase<APIGatewayEventLambdaAuthorizerContext<TAuthorizerContext>>;
43
+
44
+ export type APIGatewayProxyWithLambdaAuthorizerEventRequestContext<TAuthorizerContext> =
45
+ APIGatewayEventRequestContextWithAuthorizer<APIGatewayEventLambdaAuthorizerContext<TAuthorizerContext>>;
46
+
47
+ // API Gateway proxy integration mangles the context from a custom authorizer,
48
+ // converting all number or boolean properties to string, and adding some extra properties.
49
+ export type APIGatewayEventLambdaAuthorizerContext<TAuthorizerContext> = {
50
+ [P in keyof TAuthorizerContext]: TAuthorizerContext[P] extends null ? null : string;
51
+ } & {
52
+ principalId: string;
53
+ integrationLatency: number;
54
+ };
55
+
56
+ export type APIGatewayProxyWithCognitoAuthorizerEvent = APIGatewayProxyEventBase<APIGatewayProxyCognitoAuthorizer>;
57
+
58
+ // All claims are coerced into strings.
59
+ export interface APIGatewayProxyCognitoAuthorizer {
60
+ claims: {
61
+ [name: string]: string;
62
+ };
63
+ }
64
+
65
+ export interface APIGatewayProxyEventHeaders {
66
+ [name: string]: string | undefined;
67
+ }
68
+
69
+ export interface APIGatewayProxyEventMultiValueHeaders {
70
+ [name: string]: string[] | undefined;
71
+ }
72
+
73
+ export interface APIGatewayProxyEventPathParameters {
74
+ [name: string]: string | undefined;
75
+ }
76
+
77
+ export interface APIGatewayProxyEventQueryStringParameters {
78
+ [name: string]: string | undefined;
79
+ }
80
+
81
+ export interface APIGatewayProxyEventMultiValueQueryStringParameters {
82
+ [name: string]: string[] | undefined;
83
+ }
84
+
85
+ export interface APIGatewayProxyEventStageVariables {
86
+ [name: string]: string | undefined;
87
+ }
88
+
89
+ export interface APIGatewayProxyEventBase<TAuthorizerContext> {
90
+ body: string | null;
91
+ headers: APIGatewayProxyEventHeaders;
92
+ multiValueHeaders: APIGatewayProxyEventMultiValueHeaders;
93
+ httpMethod: string;
94
+ isBase64Encoded: boolean;
95
+ path: string;
96
+ pathParameters: APIGatewayProxyEventPathParameters | null;
97
+ queryStringParameters: APIGatewayProxyEventQueryStringParameters | null;
98
+ multiValueQueryStringParameters: APIGatewayProxyEventMultiValueQueryStringParameters | null;
99
+ stageVariables: APIGatewayProxyEventStageVariables | null;
100
+ requestContext: APIGatewayEventRequestContextWithAuthorizer<TAuthorizerContext>;
101
+ resource: string;
102
+ }
103
+
104
+ /**
105
+ * Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
106
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
107
+ */
108
+ export interface APIGatewayProxyResult {
109
+ statusCode: number;
110
+ headers?: {
111
+ [header: string]: boolean | number | string;
112
+ };
113
+ multiValueHeaders?: {
114
+ [header: string]: Array<boolean | number | string>;
115
+ };
116
+ body: string;
117
+ isBase64Encoded?: boolean;
118
+ }
119
+
120
+ /**
121
+ * Works with HTTP API integration Payload Format version 2.0
122
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
123
+ */
124
+ export interface APIGatewayProxyEventV2 {
125
+ version: string;
126
+ routeKey: string;
127
+ rawPath: string;
128
+ rawQueryString: string;
129
+ cookies?: string[];
130
+ headers: APIGatewayProxyEventHeaders;
131
+ queryStringParameters?: APIGatewayProxyEventQueryStringParameters;
132
+ requestContext: {
133
+ accountId: string;
134
+ apiId: string;
135
+ authorizer?: {
136
+ jwt: {
137
+ claims: { [name: string]: string | number | boolean | string[] };
138
+ scopes: string[];
139
+ };
140
+ };
141
+ domainName: string;
142
+ domainPrefix: string;
143
+ http: {
144
+ method: string;
145
+ path: string;
146
+ protocol: string;
147
+ sourceIp: string;
148
+ userAgent: string;
149
+ };
150
+ requestId: string;
151
+ routeKey: string;
152
+ stage: string;
153
+ time: string;
154
+ timeEpoch: number;
155
+ };
156
+ body?: string;
157
+ pathParameters?: APIGatewayProxyEventPathParameters;
158
+ isBase64Encoded: boolean;
159
+ stageVariables?: APIGatewayProxyEventStageVariables;
160
+ }
161
+
162
+ /**
163
+ * Works with HTTP API integration Payload Format version 2.0
164
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
165
+ */
166
+ export type APIGatewayProxyResultV2<T = never> = APIGatewayProxyStructuredResultV2 | string | T;
167
+
168
+ /**
169
+ * Interface for structured response with `statusCode` and`headers`
170
+ * Works with HTTP API integration Payload Format version 2.0
171
+ * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
172
+ */
173
+ export interface APIGatewayProxyStructuredResultV2 {
174
+ statusCode?: number;
175
+ headers?: {
176
+ [header: string]: boolean | number | string;
177
+ };
178
+ body?: string;
179
+ isBase64Encoded?: boolean;
180
+ cookies?: string[];
181
+ }
182
+
183
+ // Legacy names
184
+ export type ProxyHandler = APIGatewayProxyHandler;
185
+ export type ProxyCallback = APIGatewayProxyCallback;
186
+ export type APIGatewayEvent = APIGatewayProxyEvent;
187
+ export type ProxyResult = APIGatewayProxyResult;
@@ -0,0 +1,51 @@
1
+ import { Handler } from '../handler';
2
+
3
+ export type AppSyncResolverHandler<T, V> = Handler<AppSyncResolverEvent<T>, V | V[]>;
4
+
5
+ export interface AppSyncResolverEventHeaders {
6
+ [name: string]: string | undefined;
7
+ }
8
+
9
+ /**
10
+ * See https://docs.aws.amazon.com/appsync/latest/devguide/resolver-context-reference.html
11
+ *
12
+ * @param T type of the arguments
13
+ */
14
+ export interface AppSyncResolverEvent<T> {
15
+ arguments: T;
16
+ identity?: AppSyncIdentityIAM | AppSyncIdentityCognito;
17
+ source: { [key: string]: any } | null;
18
+ request: {
19
+ headers: AppSyncResolverEventHeaders;
20
+ };
21
+ info: {
22
+ selectionSetList: string[];
23
+ selectionSetGraphQL: string;
24
+ parentTypeName: string;
25
+ fieldName: string;
26
+ variables: { [key: string]: any };
27
+ };
28
+ prev: { result: { [key: string]: any } } | null;
29
+ stash: { [key: string]: any };
30
+ }
31
+
32
+ export interface AppSyncIdentityIAM {
33
+ accountId: string;
34
+ cognitoIdentityPoolId: string;
35
+ cognitoIdentityId: string;
36
+ sourceIp: string[];
37
+ username: string;
38
+ userArn: string;
39
+ cognitoIdentityAuthType: string;
40
+ cognitoIdentityAuthProvider: string;
41
+ }
42
+
43
+ export interface AppSyncIdentityCognito {
44
+ sub: string;
45
+ issuer: string;
46
+ username: string;
47
+ claims: any;
48
+ sourceIp: string[];
49
+ defaultAuthStrategy: string;
50
+ groups: string[] | null;
51
+ }