@h4ad/serverless-adapter 3.0.0 → 3.1.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.
Files changed (436) hide show
  1. package/README.md +2 -2
  2. package/lib/@types/binary-settings.d.ts +41 -0
  3. package/lib/@types/binary-settings.d.ts.map +1 -0
  4. package/lib/@types/binary-settings.js +1 -1
  5. package/lib/@types/binary-settings.js.map +1 -1
  6. package/lib/@types/digital-ocean/digital-ocean-http-event.d.ts +37 -0
  7. package/lib/@types/digital-ocean/digital-ocean-http-event.d.ts.map +1 -0
  8. package/lib/@types/digital-ocean/digital-ocean-http-event.js +1 -1
  9. package/lib/@types/digital-ocean/digital-ocean-http-event.js.map +1 -1
  10. package/lib/@types/digital-ocean/digital-ocean-http-response.d.ts +22 -0
  11. package/lib/@types/digital-ocean/digital-ocean-http-response.d.ts.map +1 -0
  12. package/lib/@types/digital-ocean/digital-ocean-http-response.js +1 -1
  13. package/lib/@types/digital-ocean/digital-ocean-http-response.js.map +1 -1
  14. package/lib/@types/digital-ocean/index.d.ts +2 -0
  15. package/lib/@types/digital-ocean/index.d.ts.map +1 -0
  16. package/lib/@types/digital-ocean/index.js +1 -1
  17. package/lib/@types/digital-ocean/index.js.map +1 -1
  18. package/lib/@types/headers.d.ts +37 -0
  19. package/lib/@types/headers.d.ts.map +1 -0
  20. package/lib/@types/headers.js +1 -1
  21. package/lib/@types/headers.js.map +1 -1
  22. package/lib/@types/helpers.d.ts +10 -0
  23. package/lib/@types/helpers.d.ts.map +1 -0
  24. package/lib/@types/helpers.js +1 -1
  25. package/lib/@types/helpers.js.map +1 -1
  26. package/lib/@types/huawei/huawei-api-gateway-event.d.ts +81 -0
  27. package/lib/@types/huawei/huawei-api-gateway-event.d.ts.map +1 -0
  28. package/lib/@types/huawei/huawei-api-gateway-event.js +1 -1
  29. package/lib/@types/huawei/huawei-api-gateway-event.js.map +1 -1
  30. package/lib/@types/huawei/huawei-api-gateway-response.d.ts +27 -0
  31. package/lib/@types/huawei/huawei-api-gateway-response.d.ts.map +1 -0
  32. package/lib/@types/huawei/huawei-api-gateway-response.js +1 -1
  33. package/lib/@types/huawei/huawei-api-gateway-response.js.map +1 -1
  34. package/lib/@types/huawei/huawei-context.d.ts +188 -0
  35. package/lib/@types/huawei/huawei-context.d.ts.map +1 -0
  36. package/lib/@types/huawei/huawei-context.js +1 -1
  37. package/lib/@types/huawei/huawei-context.js.map +1 -1
  38. package/lib/@types/huawei/index.d.ts +4 -0
  39. package/lib/@types/huawei/index.d.ts.map +1 -0
  40. package/lib/@types/huawei/index.js +1 -1
  41. package/lib/@types/huawei/index.js.map +1 -1
  42. package/lib/@types/index.d.ts +4 -0
  43. package/lib/@types/index.d.ts.map +1 -0
  44. package/lib/@types/index.js +1 -1
  45. package/lib/@types/index.js.map +1 -1
  46. package/lib/adapters/apollo-server/apollo-server-mutation.adapter.d.ts +56 -0
  47. package/lib/adapters/apollo-server/apollo-server-mutation.adapter.d.ts.map +1 -0
  48. package/lib/adapters/apollo-server/apollo-server-mutation.adapter.js +1 -1
  49. package/lib/adapters/apollo-server/apollo-server-mutation.adapter.js.map +1 -1
  50. package/lib/adapters/apollo-server/index.d.ts +2 -0
  51. package/lib/adapters/apollo-server/index.d.ts.map +1 -0
  52. package/lib/adapters/apollo-server/index.js +1 -1
  53. package/lib/adapters/apollo-server/index.js.map +1 -1
  54. package/lib/adapters/aws/alb.adapter.d.ts +71 -0
  55. package/lib/adapters/aws/alb.adapter.d.ts.map +1 -0
  56. package/lib/adapters/aws/alb.adapter.js +1 -1
  57. package/lib/adapters/aws/alb.adapter.js.map +1 -1
  58. package/lib/adapters/aws/api-gateway-v1.adapter.d.ts +76 -0
  59. package/lib/adapters/aws/api-gateway-v1.adapter.d.ts.map +1 -0
  60. package/lib/adapters/aws/api-gateway-v1.adapter.js +1 -1
  61. package/lib/adapters/aws/api-gateway-v1.adapter.js.map +1 -1
  62. package/lib/adapters/aws/api-gateway-v2.adapter.d.ts +75 -0
  63. package/lib/adapters/aws/api-gateway-v2.adapter.d.ts.map +1 -0
  64. package/lib/adapters/aws/api-gateway-v2.adapter.js +1 -1
  65. package/lib/adapters/aws/api-gateway-v2.adapter.js.map +1 -1
  66. package/lib/adapters/aws/base/aws-simple-adapter.d.ts +83 -0
  67. package/lib/adapters/aws/base/aws-simple-adapter.d.ts.map +1 -0
  68. package/lib/adapters/aws/base/aws-simple-adapter.js +1 -1
  69. package/lib/adapters/aws/base/aws-simple-adapter.js.map +1 -1
  70. package/lib/adapters/aws/base/index.d.ts +2 -0
  71. package/lib/adapters/aws/base/index.d.ts.map +1 -0
  72. package/lib/adapters/aws/base/index.js +1 -1
  73. package/lib/adapters/aws/base/index.js.map +1 -1
  74. package/lib/adapters/aws/dynamodb.adapter.d.ts +56 -0
  75. package/lib/adapters/aws/dynamodb.adapter.d.ts.map +1 -0
  76. package/lib/adapters/aws/dynamodb.adapter.js +1 -1
  77. package/lib/adapters/aws/dynamodb.adapter.js.map +1 -1
  78. package/lib/adapters/aws/event-bridge.adapter.d.ts +63 -0
  79. package/lib/adapters/aws/event-bridge.adapter.d.ts.map +1 -0
  80. package/lib/adapters/aws/event-bridge.adapter.js +1 -1
  81. package/lib/adapters/aws/event-bridge.adapter.js.map +1 -1
  82. package/lib/adapters/aws/index.d.ts +12 -0
  83. package/lib/adapters/aws/index.d.ts.map +1 -0
  84. package/lib/adapters/aws/index.js +1 -1
  85. package/lib/adapters/aws/index.js.map +1 -1
  86. package/lib/adapters/aws/lambda-edge.adapter.d.ts +209 -0
  87. package/lib/adapters/aws/lambda-edge.adapter.d.ts.map +1 -0
  88. package/lib/adapters/aws/lambda-edge.adapter.js +1 -1
  89. package/lib/adapters/aws/lambda-edge.adapter.js.map +1 -1
  90. package/lib/adapters/aws/request-lambda-edge.adapter.d.ts +131 -0
  91. package/lib/adapters/aws/request-lambda-edge.adapter.d.ts.map +1 -0
  92. package/lib/adapters/aws/request-lambda-edge.adapter.js +2 -0
  93. package/lib/adapters/aws/request-lambda-edge.adapter.js.map +1 -0
  94. package/lib/adapters/aws/s3.adapter.d.ts +56 -0
  95. package/lib/adapters/aws/s3.adapter.d.ts.map +1 -0
  96. package/lib/adapters/aws/s3.adapter.js +1 -1
  97. package/lib/adapters/aws/s3.adapter.js.map +1 -1
  98. package/lib/adapters/aws/sns.adapter.d.ts +56 -0
  99. package/lib/adapters/aws/sns.adapter.d.ts.map +1 -0
  100. package/lib/adapters/aws/sns.adapter.js +1 -1
  101. package/lib/adapters/aws/sns.adapter.js.map +1 -1
  102. package/lib/adapters/aws/sqs.adapter.d.ts +56 -0
  103. package/lib/adapters/aws/sqs.adapter.d.ts.map +1 -0
  104. package/lib/adapters/aws/sqs.adapter.js +1 -1
  105. package/lib/adapters/aws/sqs.adapter.js.map +1 -1
  106. package/lib/adapters/azure/http-trigger-v4.adapter.d.ts +81 -0
  107. package/lib/adapters/azure/http-trigger-v4.adapter.d.ts.map +1 -0
  108. package/lib/adapters/azure/http-trigger-v4.adapter.js +1 -1
  109. package/lib/adapters/azure/http-trigger-v4.adapter.js.map +1 -1
  110. package/lib/adapters/azure/index.d.ts +2 -0
  111. package/lib/adapters/azure/index.d.ts.map +1 -0
  112. package/lib/adapters/azure/index.js +1 -1
  113. package/lib/adapters/azure/index.js.map +1 -1
  114. package/lib/adapters/digital-ocean/http-function.adapter.d.ts +65 -0
  115. package/lib/adapters/digital-ocean/http-function.adapter.d.ts.map +1 -0
  116. package/lib/adapters/digital-ocean/http-function.adapter.js +1 -1
  117. package/lib/adapters/digital-ocean/http-function.adapter.js.map +1 -1
  118. package/lib/adapters/digital-ocean/index.d.ts +2 -0
  119. package/lib/adapters/digital-ocean/index.d.ts.map +1 -0
  120. package/lib/adapters/digital-ocean/index.js +1 -1
  121. package/lib/adapters/digital-ocean/index.js.map +1 -1
  122. package/lib/adapters/dummy/dummy.adapter.d.ts +31 -0
  123. package/lib/adapters/dummy/dummy.adapter.d.ts.map +1 -0
  124. package/lib/adapters/dummy/dummy.adapter.js +1 -1
  125. package/lib/adapters/dummy/dummy.adapter.js.map +1 -1
  126. package/lib/adapters/dummy/index.d.ts +2 -0
  127. package/lib/adapters/dummy/index.d.ts.map +1 -0
  128. package/lib/adapters/dummy/index.js +1 -1
  129. package/lib/adapters/dummy/index.js.map +1 -1
  130. package/lib/adapters/huawei/huawei-api-gateway.adapter.d.ts +66 -0
  131. package/lib/adapters/huawei/huawei-api-gateway.adapter.d.ts.map +1 -0
  132. package/lib/adapters/huawei/huawei-api-gateway.adapter.js +1 -1
  133. package/lib/adapters/huawei/huawei-api-gateway.adapter.js.map +1 -1
  134. package/lib/adapters/huawei/index.d.ts +2 -0
  135. package/lib/adapters/huawei/index.d.ts.map +1 -0
  136. package/lib/adapters/huawei/index.js +1 -1
  137. package/lib/adapters/huawei/index.js.map +1 -1
  138. package/lib/contracts/adapter.contract.d.ts +152 -0
  139. package/lib/contracts/adapter.contract.d.ts.map +1 -0
  140. package/lib/contracts/adapter.contract.js +1 -1
  141. package/lib/contracts/adapter.contract.js.map +1 -1
  142. package/lib/contracts/framework.contract.d.ts +19 -0
  143. package/lib/contracts/framework.contract.d.ts.map +1 -0
  144. package/lib/contracts/framework.contract.js +1 -1
  145. package/lib/contracts/framework.contract.js.map +1 -1
  146. package/lib/contracts/handler.contract.d.ts +25 -0
  147. package/lib/contracts/handler.contract.d.ts.map +1 -0
  148. package/lib/contracts/handler.contract.js +1 -1
  149. package/lib/contracts/handler.contract.js.map +1 -1
  150. package/lib/contracts/index.d.ts +5 -0
  151. package/lib/contracts/index.d.ts.map +1 -0
  152. package/lib/contracts/index.js +1 -1
  153. package/lib/contracts/index.js.map +1 -1
  154. package/lib/contracts/resolver.contract.d.ts +83 -0
  155. package/lib/contracts/resolver.contract.d.ts.map +1 -0
  156. package/lib/contracts/resolver.contract.js +1 -1
  157. package/lib/contracts/resolver.contract.js.map +1 -1
  158. package/lib/core/base-handler.d.ts +32 -0
  159. package/lib/core/base-handler.d.ts.map +1 -0
  160. package/lib/core/base-handler.js +1 -1
  161. package/lib/core/base-handler.js.map +1 -1
  162. package/lib/core/constants.d.ts +31 -0
  163. package/lib/core/constants.d.ts.map +1 -0
  164. package/lib/core/constants.js +1 -1
  165. package/lib/core/constants.js.map +1 -1
  166. package/lib/core/current-invoke.d.ts +48 -0
  167. package/lib/core/current-invoke.d.ts.map +1 -0
  168. package/lib/core/current-invoke.js +1 -1
  169. package/lib/core/current-invoke.js.map +1 -1
  170. package/lib/core/event-body.d.ts +22 -0
  171. package/lib/core/event-body.d.ts.map +1 -0
  172. package/lib/core/event-body.js +1 -1
  173. package/lib/core/event-body.js.map +1 -1
  174. package/lib/core/headers.d.ts +73 -0
  175. package/lib/core/headers.d.ts.map +1 -0
  176. package/lib/core/headers.js +2 -2
  177. package/lib/core/headers.js.map +1 -1
  178. package/lib/core/index.d.ts +12 -0
  179. package/lib/core/index.d.ts.map +1 -0
  180. package/lib/core/index.js +1 -1
  181. package/lib/core/index.js.map +1 -1
  182. package/lib/core/is-binary.d.ts +73 -0
  183. package/lib/core/is-binary.d.ts.map +1 -0
  184. package/lib/core/is-binary.js +1 -1
  185. package/lib/core/is-binary.js.map +1 -1
  186. package/lib/core/logger.d.ts +64 -0
  187. package/lib/core/logger.d.ts.map +1 -0
  188. package/lib/core/logger.js +1 -1
  189. package/lib/core/logger.js.map +1 -1
  190. package/lib/core/no-op.d.ts +8 -0
  191. package/lib/core/no-op.d.ts.map +1 -0
  192. package/lib/core/no-op.js +1 -1
  193. package/lib/core/no-op.js.map +1 -1
  194. package/lib/core/optional.d.ts +22 -0
  195. package/lib/core/optional.d.ts.map +1 -0
  196. package/lib/core/optional.js +1 -1
  197. package/lib/core/optional.js.map +1 -1
  198. package/lib/core/path.d.ts +53 -0
  199. package/lib/core/path.d.ts.map +1 -0
  200. package/lib/core/path.js +1 -1
  201. package/lib/core/path.js.map +1 -1
  202. package/lib/core/stream.d.ts +21 -0
  203. package/lib/core/stream.d.ts.map +1 -0
  204. package/lib/core/stream.js +1 -1
  205. package/lib/core/stream.js.map +1 -1
  206. package/lib/frameworks/apollo-server/apollo-server.framework.d.ts +69 -0
  207. package/lib/frameworks/apollo-server/apollo-server.framework.d.ts.map +1 -0
  208. package/lib/frameworks/apollo-server/apollo-server.framework.js +1 -1
  209. package/lib/frameworks/apollo-server/apollo-server.framework.js.map +1 -1
  210. package/lib/frameworks/apollo-server/index.d.ts +2 -0
  211. package/lib/frameworks/apollo-server/index.d.ts.map +1 -0
  212. package/lib/frameworks/apollo-server/index.js +1 -1
  213. package/lib/frameworks/apollo-server/index.js.map +1 -1
  214. package/lib/frameworks/body-parser/base-body-parser.framework.d.ts +69 -0
  215. package/lib/frameworks/body-parser/base-body-parser.framework.d.ts.map +1 -0
  216. package/lib/frameworks/body-parser/base-body-parser.framework.js +1 -1
  217. package/lib/frameworks/body-parser/base-body-parser.framework.js.map +1 -1
  218. package/lib/frameworks/body-parser/index.d.ts +6 -0
  219. package/lib/frameworks/body-parser/index.d.ts.map +1 -0
  220. package/lib/frameworks/body-parser/index.js +1 -1
  221. package/lib/frameworks/body-parser/index.js.map +1 -1
  222. package/lib/frameworks/body-parser/json-body-parser.framework.d.ts +26 -0
  223. package/lib/frameworks/body-parser/json-body-parser.framework.d.ts.map +1 -0
  224. package/lib/frameworks/body-parser/json-body-parser.framework.js +1 -1
  225. package/lib/frameworks/body-parser/json-body-parser.framework.js.map +1 -1
  226. package/lib/frameworks/body-parser/raw-body-parser.framework.d.ts +26 -0
  227. package/lib/frameworks/body-parser/raw-body-parser.framework.d.ts.map +1 -0
  228. package/lib/frameworks/body-parser/raw-body-parser.framework.js +1 -1
  229. package/lib/frameworks/body-parser/raw-body-parser.framework.js.map +1 -1
  230. package/lib/frameworks/body-parser/text-body-parser.framework.d.ts +26 -0
  231. package/lib/frameworks/body-parser/text-body-parser.framework.d.ts.map +1 -0
  232. package/lib/frameworks/body-parser/text-body-parser.framework.js +1 -1
  233. package/lib/frameworks/body-parser/text-body-parser.framework.js.map +1 -1
  234. package/lib/frameworks/body-parser/urlencoded-body-parser.framework.d.ts +26 -0
  235. package/lib/frameworks/body-parser/urlencoded-body-parser.framework.d.ts.map +1 -0
  236. package/lib/frameworks/body-parser/urlencoded-body-parser.framework.js +1 -1
  237. package/lib/frameworks/body-parser/urlencoded-body-parser.framework.js.map +1 -1
  238. package/lib/frameworks/cors/cors.framework.d.ts +78 -0
  239. package/lib/frameworks/cors/cors.framework.d.ts.map +1 -0
  240. package/lib/frameworks/cors/cors.framework.js +2 -2
  241. package/lib/frameworks/cors/cors.framework.js.map +1 -1
  242. package/lib/frameworks/cors/index.d.ts +2 -0
  243. package/lib/frameworks/cors/index.d.ts.map +1 -0
  244. package/lib/frameworks/cors/index.js +1 -1
  245. package/lib/frameworks/cors/index.js.map +1 -1
  246. package/lib/frameworks/deepkit/http-deepkit.framework.d.ts +18 -0
  247. package/lib/frameworks/deepkit/http-deepkit.framework.d.ts.map +1 -0
  248. package/lib/frameworks/deepkit/http-deepkit.framework.js +1 -1
  249. package/lib/frameworks/deepkit/http-deepkit.framework.js.map +1 -1
  250. package/lib/frameworks/deepkit/index.d.ts +2 -0
  251. package/lib/frameworks/deepkit/index.d.ts.map +1 -0
  252. package/lib/frameworks/deepkit/index.js +1 -1
  253. package/lib/frameworks/deepkit/index.js.map +1 -1
  254. package/lib/frameworks/express/express.framework.d.ts +17 -0
  255. package/lib/frameworks/express/express.framework.d.ts.map +1 -0
  256. package/lib/frameworks/express/express.framework.js +1 -1
  257. package/lib/frameworks/express/express.framework.js.map +1 -1
  258. package/lib/frameworks/express/index.d.ts +2 -0
  259. package/lib/frameworks/express/index.d.ts.map +1 -0
  260. package/lib/frameworks/express/index.js +1 -1
  261. package/lib/frameworks/express/index.js.map +1 -1
  262. package/lib/frameworks/fastify/fastify.framework.d.ts +17 -0
  263. package/lib/frameworks/fastify/fastify.framework.d.ts.map +1 -0
  264. package/lib/frameworks/fastify/fastify.framework.js +1 -1
  265. package/lib/frameworks/fastify/fastify.framework.js.map +1 -1
  266. package/lib/frameworks/fastify/helpers/no-op-content-parser.d.ts +14 -0
  267. package/lib/frameworks/fastify/helpers/no-op-content-parser.d.ts.map +1 -0
  268. package/lib/frameworks/fastify/helpers/no-op-content-parser.js +1 -1
  269. package/lib/frameworks/fastify/helpers/no-op-content-parser.js.map +1 -1
  270. package/lib/frameworks/fastify/index.d.ts +2 -0
  271. package/lib/frameworks/fastify/index.d.ts.map +1 -0
  272. package/lib/frameworks/fastify/index.js +1 -1
  273. package/lib/frameworks/fastify/index.js.map +1 -1
  274. package/lib/frameworks/hapi/hapi.framework.d.ts +17 -0
  275. package/lib/frameworks/hapi/hapi.framework.d.ts.map +1 -0
  276. package/lib/frameworks/hapi/hapi.framework.js +1 -1
  277. package/lib/frameworks/hapi/hapi.framework.js.map +1 -1
  278. package/lib/frameworks/hapi/index.d.ts +2 -0
  279. package/lib/frameworks/hapi/index.d.ts.map +1 -0
  280. package/lib/frameworks/hapi/index.js +1 -1
  281. package/lib/frameworks/hapi/index.js.map +1 -1
  282. package/lib/frameworks/koa/index.d.ts +2 -0
  283. package/lib/frameworks/koa/index.d.ts.map +1 -0
  284. package/lib/frameworks/koa/index.js +1 -1
  285. package/lib/frameworks/koa/index.js.map +1 -1
  286. package/lib/frameworks/koa/koa.framework.d.ts +17 -0
  287. package/lib/frameworks/koa/koa.framework.d.ts.map +1 -0
  288. package/lib/frameworks/koa/koa.framework.js +1 -1
  289. package/lib/frameworks/koa/koa.framework.js.map +1 -1
  290. package/lib/frameworks/lazy/index.d.ts +2 -0
  291. package/lib/frameworks/lazy/index.d.ts.map +1 -0
  292. package/lib/frameworks/lazy/index.js +1 -1
  293. package/lib/frameworks/lazy/index.js.map +1 -1
  294. package/lib/frameworks/lazy/lazy.framework.d.ts +56 -0
  295. package/lib/frameworks/lazy/lazy.framework.d.ts.map +1 -0
  296. package/lib/frameworks/lazy/lazy.framework.js +1 -1
  297. package/lib/frameworks/lazy/lazy.framework.js.map +1 -1
  298. package/lib/frameworks/trpc/index.d.ts +2 -0
  299. package/lib/frameworks/trpc/index.d.ts.map +1 -0
  300. package/lib/frameworks/trpc/index.js +1 -1
  301. package/lib/frameworks/trpc/index.js.map +1 -1
  302. package/lib/frameworks/trpc/trpc.framework.d.ts +153 -0
  303. package/lib/frameworks/trpc/trpc.framework.d.ts.map +1 -0
  304. package/lib/frameworks/trpc/trpc.framework.js +1 -1
  305. package/lib/frameworks/trpc/trpc.framework.js.map +1 -1
  306. package/lib/handlers/aws/aws-stream.handler.d.ts +89 -0
  307. package/lib/handlers/aws/aws-stream.handler.d.ts.map +1 -0
  308. package/lib/handlers/aws/aws-stream.handler.js +1 -1
  309. package/lib/handlers/aws/aws-stream.handler.js.map +1 -1
  310. package/lib/handlers/aws/index.d.ts +2 -0
  311. package/lib/handlers/aws/index.d.ts.map +1 -0
  312. package/lib/handlers/aws/index.js +1 -1
  313. package/lib/handlers/aws/index.js.map +1 -1
  314. package/lib/handlers/azure/azure.handler.d.ts +45 -0
  315. package/lib/handlers/azure/azure.handler.d.ts.map +1 -0
  316. package/lib/handlers/azure/azure.handler.js +1 -1
  317. package/lib/handlers/azure/azure.handler.js.map +1 -1
  318. package/lib/handlers/azure/index.d.ts +2 -0
  319. package/lib/handlers/azure/index.d.ts.map +1 -0
  320. package/lib/handlers/azure/index.js +1 -1
  321. package/lib/handlers/azure/index.js.map +1 -1
  322. package/lib/handlers/base/index.d.ts +2 -0
  323. package/lib/handlers/base/index.d.ts.map +1 -0
  324. package/lib/handlers/base/index.js +1 -1
  325. package/lib/handlers/base/index.js.map +1 -1
  326. package/lib/handlers/base/raw-request.d.ts +31 -0
  327. package/lib/handlers/base/raw-request.d.ts.map +1 -0
  328. package/lib/handlers/base/raw-request.js +1 -1
  329. package/lib/handlers/base/raw-request.js.map +1 -1
  330. package/lib/handlers/default/default.handler.d.ts +88 -0
  331. package/lib/handlers/default/default.handler.d.ts.map +1 -0
  332. package/lib/handlers/default/default.handler.js +1 -1
  333. package/lib/handlers/default/default.handler.js.map +1 -1
  334. package/lib/handlers/default/index.d.ts +2 -0
  335. package/lib/handlers/default/index.d.ts.map +1 -0
  336. package/lib/handlers/default/index.js +1 -1
  337. package/lib/handlers/default/index.js.map +1 -1
  338. package/lib/handlers/digital-ocean/digital-ocean.handler.d.ts +17 -0
  339. package/lib/handlers/digital-ocean/digital-ocean.handler.d.ts.map +1 -0
  340. package/lib/handlers/digital-ocean/digital-ocean.handler.js +1 -1
  341. package/lib/handlers/digital-ocean/digital-ocean.handler.js.map +1 -1
  342. package/lib/handlers/digital-ocean/index.d.ts +2 -0
  343. package/lib/handlers/digital-ocean/index.d.ts.map +1 -0
  344. package/lib/handlers/digital-ocean/index.js +1 -1
  345. package/lib/handlers/digital-ocean/index.js.map +1 -1
  346. package/lib/handlers/firebase/http-firebase-v2.handler.d.ts +27 -0
  347. package/lib/handlers/firebase/http-firebase-v2.handler.d.ts.map +1 -0
  348. package/lib/handlers/firebase/http-firebase-v2.handler.js +1 -1
  349. package/lib/handlers/firebase/http-firebase-v2.handler.js.map +1 -1
  350. package/lib/handlers/firebase/http-firebase.handler.d.ts +19 -0
  351. package/lib/handlers/firebase/http-firebase.handler.d.ts.map +1 -0
  352. package/lib/handlers/firebase/http-firebase.handler.js +1 -1
  353. package/lib/handlers/firebase/http-firebase.handler.js.map +1 -1
  354. package/lib/handlers/firebase/index.d.ts +3 -0
  355. package/lib/handlers/firebase/index.d.ts.map +1 -0
  356. package/lib/handlers/firebase/index.js +1 -1
  357. package/lib/handlers/firebase/index.js.map +1 -1
  358. package/lib/handlers/gcp/gcp.handler.d.ts +26 -0
  359. package/lib/handlers/gcp/gcp.handler.d.ts.map +1 -0
  360. package/lib/handlers/gcp/gcp.handler.js +1 -1
  361. package/lib/handlers/gcp/gcp.handler.js.map +1 -1
  362. package/lib/handlers/gcp/index.d.ts +2 -0
  363. package/lib/handlers/gcp/index.d.ts.map +1 -0
  364. package/lib/handlers/gcp/index.js +1 -1
  365. package/lib/handlers/gcp/index.js.map +1 -1
  366. package/lib/handlers/huawei/http-huawei.handler.d.ts +59 -0
  367. package/lib/handlers/huawei/http-huawei.handler.d.ts.map +1 -0
  368. package/lib/handlers/huawei/http-huawei.handler.js +1 -1
  369. package/lib/handlers/huawei/http-huawei.handler.js.map +1 -1
  370. package/lib/handlers/huawei/index.d.ts +2 -0
  371. package/lib/handlers/huawei/index.d.ts.map +1 -0
  372. package/lib/handlers/huawei/index.js +1 -1
  373. package/lib/handlers/huawei/index.js.map +1 -1
  374. package/lib/index.d.ts +6 -0
  375. package/lib/index.d.ts.map +1 -0
  376. package/lib/index.doc.js +1 -1
  377. package/lib/index.doc.js.map +1 -1
  378. package/lib/index.js +1 -1
  379. package/lib/index.js.map +1 -1
  380. package/lib/network/index.d.ts +5 -0
  381. package/lib/network/index.d.ts.map +1 -0
  382. package/lib/network/index.js +1 -1
  383. package/lib/network/index.js.map +1 -1
  384. package/lib/network/request.d.ts +44 -0
  385. package/lib/network/request.d.ts.map +1 -0
  386. package/lib/network/request.js +1 -1
  387. package/lib/network/request.js.map +1 -1
  388. package/lib/network/response-stream.d.ts +41 -0
  389. package/lib/network/response-stream.d.ts.map +1 -0
  390. package/lib/network/response-stream.js +4 -4
  391. package/lib/network/response-stream.js.map +1 -1
  392. package/lib/network/response.d.ts +48 -0
  393. package/lib/network/response.d.ts.map +1 -0
  394. package/lib/network/response.js +2 -2
  395. package/lib/network/response.js.map +1 -1
  396. package/lib/network/utils.d.ts +9 -0
  397. package/lib/network/utils.d.ts.map +1 -0
  398. package/lib/network/utils.js +1 -1
  399. package/lib/network/utils.js.map +1 -1
  400. package/lib/resolvers/aws-context/aws-context.resolver.d.ts +19 -0
  401. package/lib/resolvers/aws-context/aws-context.resolver.d.ts.map +1 -0
  402. package/lib/resolvers/aws-context/aws-context.resolver.js +1 -1
  403. package/lib/resolvers/aws-context/aws-context.resolver.js.map +1 -1
  404. package/lib/resolvers/aws-context/index.d.ts +2 -0
  405. package/lib/resolvers/aws-context/index.d.ts.map +1 -0
  406. package/lib/resolvers/aws-context/index.js +1 -1
  407. package/lib/resolvers/aws-context/index.js.map +1 -1
  408. package/lib/resolvers/callback/callback.resolver.d.ts +23 -0
  409. package/lib/resolvers/callback/callback.resolver.d.ts.map +1 -0
  410. package/lib/resolvers/callback/callback.resolver.js +1 -1
  411. package/lib/resolvers/callback/callback.resolver.js.map +1 -1
  412. package/lib/resolvers/callback/index.d.ts +2 -0
  413. package/lib/resolvers/callback/index.d.ts.map +1 -0
  414. package/lib/resolvers/callback/index.js +1 -1
  415. package/lib/resolvers/callback/index.js.map +1 -1
  416. package/lib/resolvers/dummy/dummy.resolver.d.ts +14 -0
  417. package/lib/resolvers/dummy/dummy.resolver.d.ts.map +1 -0
  418. package/lib/resolvers/dummy/dummy.resolver.js +1 -1
  419. package/lib/resolvers/dummy/dummy.resolver.js.map +1 -1
  420. package/lib/resolvers/dummy/index.d.ts +2 -0
  421. package/lib/resolvers/dummy/index.d.ts.map +1 -0
  422. package/lib/resolvers/dummy/index.js +1 -1
  423. package/lib/resolvers/dummy/index.js.map +1 -1
  424. package/lib/resolvers/promise/index.d.ts +2 -0
  425. package/lib/resolvers/promise/index.d.ts.map +1 -0
  426. package/lib/resolvers/promise/index.js +1 -1
  427. package/lib/resolvers/promise/index.js.map +1 -1
  428. package/lib/resolvers/promise/promise.resolver.d.ts +14 -0
  429. package/lib/resolvers/promise/promise.resolver.d.ts.map +1 -0
  430. package/lib/resolvers/promise/promise.resolver.js +1 -1
  431. package/lib/resolvers/promise/promise.resolver.js.map +1 -1
  432. package/lib/serverless-adapter.d.ts +119 -0
  433. package/lib/serverless-adapter.d.ts.map +1 -0
  434. package/lib/serverless-adapter.js +1 -1
  435. package/lib/serverless-adapter.js.map +1 -1
  436. package/package.json +2 -3
package/README.md CHANGED
@@ -88,10 +88,10 @@ See how to use this library [here](https://viniciusl.com.br/serverless-adapter/d
88
88
 
89
89
  # Breaking Changes
90
90
 
91
- I will not consider updating/breaking compatibility of a NodeJS framework as a significant change,
91
+ I will not consider updating/breaking compatibility of a NodeJS framework as a breaking change,
92
92
  because I had a lot of supported frameworks and if I created a major version for each one it would be a mess.
93
93
 
94
- So if you want predictability, fix the version with `~` instead of `^`.
94
+ So if you want predictability, pin the version with `~` instead of `^`.
95
95
 
96
96
  # Examples
97
97
 
@@ -0,0 +1,41 @@
1
+ /**
2
+ * The interface representing the binary settings implementation by function
3
+ *
4
+ * @breadcrumb Types / BinarySettings
5
+ * @public
6
+ */
7
+ export interface BinarySettingsFunction {
8
+ /**
9
+ * This property can be a function that receives the response headers and returns whether that response should be encoded as binary.
10
+ * Otherwise, you can specify not to treat any response as binary by putting `false` in this property.
11
+ *
12
+ * @remarks Setting this property prevents the `contentTypes` and `contentEncodings` properties from being used.
13
+ */
14
+ isBinary: ((headers: Record<string, string | string[] | undefined>) => boolean) | false;
15
+ }
16
+ /**
17
+ * The interface representing the binary settings implementation by looking inside the headers
18
+ *
19
+ * @breadcrumb Types / BinarySettings
20
+ * @public
21
+ */
22
+ export interface BinarySettingsContentHeaders {
23
+ /**
24
+ * The list of content types that will be treated as binary
25
+ */
26
+ contentTypes: string[];
27
+ /**
28
+ * The list of content encodings that will be treated as binary
29
+ */
30
+ contentEncodings: string[];
31
+ }
32
+ /**
33
+ * The interface representing the settings for whether the response should be treated as binary or not
34
+ *
35
+ * @remarks Encoded as binary means the response body will be converted to base64
36
+ *
37
+ * @breadcrumb Types / BinarySettings
38
+ * @public
39
+ */
40
+ export type BinarySettings = BinarySettingsFunction | BinarySettingsContentHeaders;
41
+ //# sourceMappingURL=binary-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binary-settings.d.ts","sourceRoot":"","sources":["../../src/@types/binary-settings.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,QAAQ,EACJ,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,KAAK,OAAO,CAAC,GACrE,KAAK,CAAC;CACX;AAED;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;OAEG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GACtB,sBAAsB,GACtB,4BAA4B,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var p=Object.defineProperty,_=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=(r,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!s.call(r,t)&&t!==a&&p(r,t,{get:()=>e[t],enumerable:!(o=_(e,t))||o.enumerable});return r},y=r=>c(p({},"__esModule",{value:!0}),r),O={};module.exports=y(O);
1
+ "use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),binary_settings_exports={};module.exports=__toCommonJS(binary_settings_exports);
2
2
  //# sourceMappingURL=binary-settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"binary-settings.js","sources":["../../src/@types/binary-settings.ts"],"sourcesContent":["/**\n * The interface representing the binary settings implementation by function\n *\n * @breadcrumb Types / BinarySettings\n * @public\n */\nexport interface BinarySettingsFunction {\n /**\n * This property can be a function that receives the response headers and returns whether that response should be encoded as binary.\n * Otherwise, you can specify not to treat any response as binary by putting `false` in this property.\n *\n * @remarks Setting this property prevents the `contentTypes` and `contentEncodings` properties from being used.\n */\n isBinary:\n | ((headers: Record<string, string | string[] | undefined>) => boolean)\n | false;\n}\n\n/**\n * The interface representing the binary settings implementation by looking inside the headers\n *\n * @breadcrumb Types / BinarySettings\n * @public\n */\nexport interface BinarySettingsContentHeaders {\n /**\n * The list of content types that will be treated as binary\n */\n contentTypes: string[];\n\n /**\n * The list of content encodings that will be treated as binary\n */\n contentEncodings: string[];\n}\n\n/**\n * The interface representing the settings for whether the response should be treated as binary or not\n *\n * @remarks Encoded as binary means the response body will be converted to base64\n *\n * @breadcrumb Types / BinarySettings\n * @public\n */\nexport type BinarySettings =\n | BinarySettingsFunction\n | BinarySettingsContentHeaders;\n"],"names":["binary_settings_exports","__toCommonJS"],"mappings":"2VAAAA,EAAA,CAAA,EAAA,OAAA,QAAAC,EAAAD,CAAA"}
1
+ {"version":3,"file":"binary-settings.js","sources":["../../src/@types/binary-settings.ts"],"sourcesContent":["/**\n * The interface representing the binary settings implementation by function\n *\n * @breadcrumb Types / BinarySettings\n * @public\n */\nexport interface BinarySettingsFunction {\n /**\n * This property can be a function that receives the response headers and returns whether that response should be encoded as binary.\n * Otherwise, you can specify not to treat any response as binary by putting `false` in this property.\n *\n * @remarks Setting this property prevents the `contentTypes` and `contentEncodings` properties from being used.\n */\n isBinary:\n | ((headers: Record<string, string | string[] | undefined>) => boolean)\n | false;\n}\n\n/**\n * The interface representing the binary settings implementation by looking inside the headers\n *\n * @breadcrumb Types / BinarySettings\n * @public\n */\nexport interface BinarySettingsContentHeaders {\n /**\n * The list of content types that will be treated as binary\n */\n contentTypes: string[];\n\n /**\n * The list of content encodings that will be treated as binary\n */\n contentEncodings: string[];\n}\n\n/**\n * The interface representing the settings for whether the response should be treated as binary or not\n *\n * @remarks Encoded as binary means the response body will be converted to base64\n *\n * @breadcrumb Types / BinarySettings\n * @public\n */\nexport type BinarySettings =\n | BinarySettingsFunction\n | BinarySettingsContentHeaders;\n"],"names":[],"mappings":"kiBAAA,wBAAA,CAAA,EAAA,OAAA,QAAA,aAAA,uBAAA"}
@@ -0,0 +1,37 @@
1
+ import { SingleValueHeaders } from '../headers';
2
+ /**
3
+ * The interface to represents the values of args send when someone calls a function using HTTP Endpoint.
4
+ * To be able to receive this event, inside your `project.yml`, instead of `web: true` change to `web: 'raw'`.
5
+ *
6
+ * {@link https://www.digitalocean.com/community/questions/digitalocean-functions-how-to-differentiate-query-params-from-body-params | Reference}
7
+ *
8
+ * @public
9
+ * @breadcrumb Types / Digital Ocean / DigitalOceanHttpEvent
10
+ */
11
+ export interface DigitalOceanHttpEvent {
12
+ /**
13
+ * The HTTP Method of the request
14
+ */
15
+ __ow_method: string;
16
+ /**
17
+ * The query porams of the request
18
+ */
19
+ __ow_query: string;
20
+ /**
21
+ * The body of the request.
22
+ */
23
+ __ow_body?: string;
24
+ /**
25
+ * Indicates if body is base64 string
26
+ */
27
+ __ow_isBase64Encoded?: boolean;
28
+ /**
29
+ * The HTTP Headers of the request
30
+ */
31
+ __ow_headers: SingleValueHeaders;
32
+ /**
33
+ * The path in the request
34
+ */
35
+ __ow_path: string;
36
+ }
37
+ //# sourceMappingURL=digital-ocean-http-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digital-ocean-http-event.d.ts","sourceRoot":"","sources":["../../../src/@types/digital-ocean/digital-ocean-http-event.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;;;GAQG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,YAAY,EAAE,kBAAkB,CAAC;IAEjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1,2 +1,2 @@
1
- "use strict";var p=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=(t,e,_,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of n(e))!c.call(t,r)&&r!==_&&p(t,r,{get:()=>e[r],enumerable:!(o=a(e,r))||o.enumerable});return t},O=t=>s(p({},"__esModule",{value:!0}),t),v={};module.exports=O(v);
1
+ "use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),digital_ocean_http_event_exports={};module.exports=__toCommonJS(digital_ocean_http_event_exports);
2
2
  //# sourceMappingURL=digital-ocean-http-event.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"digital-ocean-http-event.js","sources":["../../../src/@types/digital-ocean/digital-ocean-http-event.ts"],"sourcesContent":["//#region Imports\n\nimport { SingleValueHeaders } from '../headers';\n\n//#endregion\n\n/**\n * The interface to represents the values of args send when someone calls a function using HTTP Endpoint.\n * To be able to receive this event, inside your `project.yml`, instead of `web: true` change to `web: 'raw'`.\n *\n * {@link https://www.digitalocean.com/community/questions/digitalocean-functions-how-to-differentiate-query-params-from-body-params | Reference}\n *\n * @public\n * @breadcrumb Types / Digital Ocean / DigitalOceanHttpEvent\n */\nexport interface DigitalOceanHttpEvent {\n /**\n * The HTTP Method of the request\n */\n __ow_method: string;\n\n /**\n * The query porams of the request\n */\n __ow_query: string;\n\n /**\n * The body of the request.\n */\n __ow_body?: string;\n\n /**\n * Indicates if body is base64 string\n */\n __ow_isBase64Encoded?: boolean;\n\n /**\n * The HTTP Headers of the request\n */\n __ow_headers: SingleValueHeaders;\n\n /**\n * The path in the request\n */\n __ow_path: string;\n}\n"],"names":["digital_ocean_http_event_exports","__toCommonJS"],"mappings":"2VAAAA,EAAA,CAAA,EAAA,OAAA,QAAAC,EAAAD,CAAA"}
1
+ {"version":3,"file":"digital-ocean-http-event.js","sources":["../../../src/@types/digital-ocean/digital-ocean-http-event.ts"],"sourcesContent":["//#region Imports\n\nimport { SingleValueHeaders } from '../headers';\n\n//#endregion\n\n/**\n * The interface to represents the values of args send when someone calls a function using HTTP Endpoint.\n * To be able to receive this event, inside your `project.yml`, instead of `web: true` change to `web: 'raw'`.\n *\n * {@link https://www.digitalocean.com/community/questions/digitalocean-functions-how-to-differentiate-query-params-from-body-params | Reference}\n *\n * @public\n * @breadcrumb Types / Digital Ocean / DigitalOceanHttpEvent\n */\nexport interface DigitalOceanHttpEvent {\n /**\n * The HTTP Method of the request\n */\n __ow_method: string;\n\n /**\n * The query porams of the request\n */\n __ow_query: string;\n\n /**\n * The body of the request.\n */\n __ow_body?: string;\n\n /**\n * Indicates if body is base64 string\n */\n __ow_isBase64Encoded?: boolean;\n\n /**\n * The HTTP Headers of the request\n */\n __ow_headers: SingleValueHeaders;\n\n /**\n * The path in the request\n */\n __ow_path: string;\n}\n"],"names":[],"mappings":"kiBAAA,iCAAA,CAAA,EAAA,OAAA,QAAA,aAAA,gCAAA"}
@@ -0,0 +1,22 @@
1
+ import { SingleValueHeaders } from '../headers';
2
+ /**
3
+ * The interface to represents the response of Digital Ocean Function.
4
+ *
5
+ * @public
6
+ * @breadcrumb Types / Digital Ocean / DigitalOceanHttpResponse
7
+ */
8
+ export interface DigitalOceanHttpResponse {
9
+ /**
10
+ * The HTTP Headers of the response
11
+ */
12
+ headers?: SingleValueHeaders;
13
+ /**
14
+ * The body of the response
15
+ */
16
+ body: unknown;
17
+ /**
18
+ * The HTTP Status code of the response
19
+ */
20
+ statusCode: number;
21
+ }
22
+ //# sourceMappingURL=digital-ocean-http-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digital-ocean-http-response.d.ts","sourceRoot":"","sources":["../../../src/@types/digital-ocean/digital-ocean-http-response.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1,2 +1,2 @@
1
- "use strict";var p=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=(t,e,_,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of n(e))!s.call(t,r)&&r!==_&&p(t,r,{get:()=>e[r],enumerable:!(o=a(e,r))||o.enumerable});return t},O=t=>c(p({},"__esModule",{value:!0}),t),y={};module.exports=O(y);
1
+ "use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),digital_ocean_http_response_exports={};module.exports=__toCommonJS(digital_ocean_http_response_exports);
2
2
  //# sourceMappingURL=digital-ocean-http-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"digital-ocean-http-response.js","sources":["../../../src/@types/digital-ocean/digital-ocean-http-response.ts"],"sourcesContent":["//#region Imports\n\nimport { SingleValueHeaders } from '../headers';\n\n//#endregion\n\n/**\n * The interface to represents the response of Digital Ocean Function.\n *\n * @public\n * @breadcrumb Types / Digital Ocean / DigitalOceanHttpResponse\n */\nexport interface DigitalOceanHttpResponse {\n /**\n * The HTTP Headers of the response\n */\n headers?: SingleValueHeaders;\n\n /**\n * The body of the response\n */\n body: unknown;\n\n /**\n * The HTTP Status code of the response\n */\n statusCode: number;\n}\n"],"names":["digital_ocean_http_response_exports","__toCommonJS"],"mappings":"2VAAAA,EAAA,CAAA,EAAA,OAAA,QAAAC,EAAAD,CAAA"}
1
+ {"version":3,"file":"digital-ocean-http-response.js","sources":["../../../src/@types/digital-ocean/digital-ocean-http-response.ts"],"sourcesContent":["//#region Imports\n\nimport { SingleValueHeaders } from '../headers';\n\n//#endregion\n\n/**\n * The interface to represents the response of Digital Ocean Function.\n *\n * @public\n * @breadcrumb Types / Digital Ocean / DigitalOceanHttpResponse\n */\nexport interface DigitalOceanHttpResponse {\n /**\n * The HTTP Headers of the response\n */\n headers?: SingleValueHeaders;\n\n /**\n * The body of the response\n */\n body: unknown;\n\n /**\n * The HTTP Status code of the response\n */\n statusCode: number;\n}\n"],"names":[],"mappings":"kiBAAA,oCAAA,CAAA,EAAA,OAAA,QAAA,aAAA,mCAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './digital-ocean-http-event';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/@types/digital-ocean/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var _=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,o=(r,e,a,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of u(e))!c.call(r,t)&&t!==a&&_(r,t,{get:()=>e[t],enumerable:!(p=s(e,t))||p.enumerable});return r},l=(r,e,a)=>(o(r,e,"default"),a&&o(a,e,"default")),O=r=>o(_({},"__esModule",{value:!0}),r),n={};module.exports=O(n);l(n,require("./digital-ocean-http-event"),module.exports);
1
+ "use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default")),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),digital_ocean_exports={};module.exports=__toCommonJS(digital_ocean_exports);__reExport(digital_ocean_exports,require("./digital-ocean-http-event"),module.exports);
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/@types/digital-ocean/index.ts"],"sourcesContent":["export * from './digital-ocean-http-event';\n"],"names":["digital_ocean_exports","__toCommonJS","__reExport"],"mappings":"6YAAAA,EAAA,CAAA,EAAA,OAAA,QAAAC,EAAAD,CAAA,EAAAE,EAAAF,EAAc,QAAd,4BAAA,EAAA,OAAA,OAAA"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/@types/digital-ocean/index.ts"],"sourcesContent":["export * from './digital-ocean-http-event';\n"],"names":[],"mappings":"kqBAAA,sBAAA,CAAA,EAAA,OAAA,QAAA,aAAA,qBAAA,EAAA,WAAA,sBAAc,QAAd,4BAAA,EAAA,OAAA,OAAA"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The record that represents the headers that doesn't have multiple values in the value
3
+ *
4
+ * @example
5
+ * ```typescript
6
+ * { 'Accept-Encoding': 'gzip, deflate, br' }
7
+ * ```
8
+ *
9
+ * @breadcrumb Types
10
+ * @public
11
+ */
12
+ export type SingleValueHeaders = Record<string, string | undefined>;
13
+ /**
14
+ * The record that represents the headers that have multiple values in the value
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * { 'Accept-Encoding': ['gzip', 'deflate', 'br'] }
19
+ * ```
20
+ *
21
+ * @breadcrumb Types
22
+ * @public
23
+ */
24
+ export type MultiValueHeaders = Record<string, string[] | undefined>;
25
+ /**
26
+ * The record that represents the headers that can both single or multiple values in the value
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * { 'Accept-Encoding': ['gzip', 'deflate', 'br'], 'Host': 'xyz.execute-api.us-east-1.amazonaws.com' }
31
+ * ```
32
+ *
33
+ * @breadcrumb Types
34
+ * @public
35
+ */
36
+ export type BothValueHeaders = Record<string, string | string[] | undefined>;
37
+ //# sourceMappingURL=headers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../src/@types/headers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;AAErE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var p=Object.defineProperty,_=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=(r,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!s.call(r,t)&&t!==a&&p(r,t,{get:()=>e[t],enumerable:!(o=_(e,t))||o.enumerable});return r},O=r=>c(p({},"__esModule",{value:!0}),r),y={};module.exports=O(y);
1
+ "use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),headers_exports={};module.exports=__toCommonJS(headers_exports);
2
2
  //# sourceMappingURL=headers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"headers.js","sources":["../../src/@types/headers.ts"],"sourcesContent":["/**\n * The record that represents the headers that doesn't have multiple values in the value\n *\n * @example\n * ```typescript\n * { 'Accept-Encoding': 'gzip, deflate, br' }\n * ```\n *\n * @breadcrumb Types\n * @public\n */\nexport type SingleValueHeaders = Record<string, string | undefined>;\n\n/**\n * The record that represents the headers that have multiple values in the value\n *\n * @example\n * ```typescript\n * { 'Accept-Encoding': ['gzip', 'deflate', 'br'] }\n * ```\n *\n * @breadcrumb Types\n * @public\n */\nexport type MultiValueHeaders = Record<string, string[] | undefined>;\n\n/**\n * The record that represents the headers that can both single or multiple values in the value\n *\n * @example\n * ```typescript\n * { 'Accept-Encoding': ['gzip', 'deflate', 'br'], 'Host': 'xyz.execute-api.us-east-1.amazonaws.com' }\n * ```\n *\n * @breadcrumb Types\n * @public\n */\nexport type BothValueHeaders = Record<string, string | string[] | undefined>;\n"],"names":["headers_exports","__toCommonJS"],"mappings":"2VAAAA,EAAA,CAAA,EAAA,OAAA,QAAAC,EAAAD,CAAA"}
1
+ {"version":3,"file":"headers.js","sources":["../../src/@types/headers.ts"],"sourcesContent":["/**\n * The record that represents the headers that doesn't have multiple values in the value\n *\n * @example\n * ```typescript\n * { 'Accept-Encoding': 'gzip, deflate, br' }\n * ```\n *\n * @breadcrumb Types\n * @public\n */\nexport type SingleValueHeaders = Record<string, string | undefined>;\n\n/**\n * The record that represents the headers that have multiple values in the value\n *\n * @example\n * ```typescript\n * { 'Accept-Encoding': ['gzip', 'deflate', 'br'] }\n * ```\n *\n * @breadcrumb Types\n * @public\n */\nexport type MultiValueHeaders = Record<string, string[] | undefined>;\n\n/**\n * The record that represents the headers that can both single or multiple values in the value\n *\n * @example\n * ```typescript\n * { 'Accept-Encoding': ['gzip', 'deflate', 'br'], 'Host': 'xyz.execute-api.us-east-1.amazonaws.com' }\n * ```\n *\n * @breadcrumb Types\n * @public\n */\nexport type BothValueHeaders = Record<string, string | string[] | undefined>;\n"],"names":[],"mappings":"kiBAAA,gBAAA,CAAA,EAAA,OAAA,QAAA,aAAA,eAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Removes 'optional' attributes from a type's properties
3
+ *
4
+ * @breadcrumb Types
5
+ * @public
6
+ */
7
+ export type Concrete<Type> = {
8
+ [Property in keyof Type]-?: Type[Property];
9
+ };
10
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/@types/helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,CAAC,IAAI,IAAI;KAC1B,QAAQ,IAAI,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;CAC3C,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var p=Object.defineProperty,_=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=(r,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!s.call(r,t)&&t!==a&&p(r,t,{get:()=>e[t],enumerable:!(o=_(e,t))||o.enumerable});return r},O=r=>c(p({},"__esModule",{value:!0}),r),y={};module.exports=O(y);
1
+ "use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),helpers_exports={};module.exports=__toCommonJS(helpers_exports);
2
2
  //# sourceMappingURL=helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sources":["../../src/@types/helpers.ts"],"sourcesContent":["/**\n * Removes 'optional' attributes from a type's properties\n *\n * @breadcrumb Types\n * @public\n */\nexport type Concrete<Type> = {\n [Property in keyof Type]-?: Type[Property];\n};\n"],"names":["helpers_exports","__toCommonJS"],"mappings":"2VAAAA,EAAA,CAAA,EAAA,OAAA,QAAAC,EAAAD,CAAA"}
1
+ {"version":3,"file":"helpers.js","sources":["../../src/@types/helpers.ts"],"sourcesContent":["/**\n * Removes 'optional' attributes from a type's properties\n *\n * @breadcrumb Types\n * @public\n */\nexport type Concrete<Type> = {\n [Property in keyof Type]-?: Type[Property];\n};\n"],"names":[],"mappings":"kiBAAA,gBAAA,CAAA,EAAA,OAAA,QAAA,aAAA,eAAA"}
@@ -0,0 +1,81 @@
1
+ import { BothValueHeaders } from '../index';
2
+ /**
3
+ * The interface that represents the Api Gateway Event of Huawei when integrate with Function Graph of Event Type.
4
+ * See more in {@link https://support.huaweicloud.com/intl/en-us/devg-functiongraph/functiongraph_02_0102.html#functiongraph_02_0102__li5178638110137 | Reference}.
5
+ *
6
+ * @public
7
+ * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent
8
+ */
9
+ export interface HuaweiApiGatewayEvent {
10
+ /**
11
+ * The body value with the content of this event serialized in JSON
12
+ */
13
+ body: string;
14
+ /**
15
+ * The headers of the request which this event represents
16
+ */
17
+ headers: BothValueHeaders;
18
+ /**
19
+ * The HTTP Method of the request which this event represents
20
+ */
21
+ httpMethod: string;
22
+ /**
23
+ * Tells if the body is base64 encoded
24
+ */
25
+ isBase64Encoded: boolean;
26
+ /**
27
+ * The path of the request which this event represents
28
+ */
29
+ path: string;
30
+ /**
31
+ * The path parameters of the request which this event represents
32
+ */
33
+ pathParameters: HuaweiRequestPathParameters;
34
+ /**
35
+ * The query strings of the request which this event represents
36
+ */
37
+ queryStringParameters: HuaweiRequestQueryStringParameters;
38
+ /**
39
+ * The request context with information about the stage, api and requestId
40
+ */
41
+ requestContext: HuaweiRequestContext;
42
+ /**
43
+ * It can have more properties that I could not discover yet
44
+ */
45
+ [key: string]: any;
46
+ }
47
+ /**
48
+ * The path parameters of the request, usually is the name of the wildcard you create in FunctionGraph, such as /\{proxy\}.
49
+ *
50
+ * @public
51
+ * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent
52
+ */
53
+ export type HuaweiRequestPathParameters = Record<string, string>;
54
+ /**
55
+ * The query strings of the request
56
+ *
57
+ * @public
58
+ * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent
59
+ */
60
+ export type HuaweiRequestQueryStringParameters = Record<string, string | string[]>;
61
+ /**
62
+ * The interface that represents the values you can get inside request context.
63
+ *
64
+ * @public
65
+ * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent
66
+ */
67
+ export interface HuaweiRequestContext {
68
+ /**
69
+ * The ID of your API inside Api Gateway
70
+ */
71
+ apiId: string;
72
+ /**
73
+ * The ID of this request
74
+ */
75
+ requestId: string;
76
+ /**
77
+ * The name of the stage running this Function Graph
78
+ */
79
+ stage: string;
80
+ }
81
+ //# sourceMappingURL=huawei-api-gateway-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"huawei-api-gateway-event.d.ts","sourceRoot":"","sources":["../../../src/@types/huawei/huawei-api-gateway-event.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,2BAA2B,CAAC;IAE5C;;OAEG;IACH,qBAAqB,EAAE,kCAAkC,CAAC;IAE1D;;OAEG;IACH,cAAc,EAAE,oBAAoB,CAAC;IAErC;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,kCAAkC,GAAG,MAAM,CACrD,MAAM,EACN,MAAM,GAAG,MAAM,EAAE,CAClB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,2 +1,2 @@
1
- "use strict";var o=Object.defineProperty,_=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=(t,e,p,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of n(e))!s.call(t,r)&&r!==p&&o(t,r,{get:()=>e[r],enumerable:!(a=_(e,r))||a.enumerable});return t},y=t=>c(o({},"__esModule",{value:!0}),t),O={};module.exports=y(O);
1
+ "use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),huawei_api_gateway_event_exports={};module.exports=__toCommonJS(huawei_api_gateway_event_exports);
2
2
  //# sourceMappingURL=huawei-api-gateway-event.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"huawei-api-gateway-event.js","sources":["../../../src/@types/huawei/huawei-api-gateway-event.ts"],"sourcesContent":["//#region Imports\n\nimport { BothValueHeaders } from '../index';\n\n//#endregion\n\n/**\n * The interface that represents the Api Gateway Event of Huawei when integrate with Function Graph of Event Type.\n * See more in {@link https://support.huaweicloud.com/intl/en-us/devg-functiongraph/functiongraph_02_0102.html#functiongraph_02_0102__li5178638110137 | Reference}.\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent\n */\nexport interface HuaweiApiGatewayEvent {\n /**\n * The body value with the content of this event serialized in JSON\n */\n body: string;\n\n /**\n * The headers of the request which this event represents\n */\n headers: BothValueHeaders;\n\n /**\n * The HTTP Method of the request which this event represents\n */\n httpMethod: string;\n\n /**\n * Tells if the body is base64 encoded\n */\n isBase64Encoded: boolean;\n\n /**\n * The path of the request which this event represents\n */\n path: string;\n\n /**\n * The path parameters of the request which this event represents\n */\n pathParameters: HuaweiRequestPathParameters;\n\n /**\n * The query strings of the request which this event represents\n */\n queryStringParameters: HuaweiRequestQueryStringParameters;\n\n /**\n * The request context with information about the stage, api and requestId\n */\n requestContext: HuaweiRequestContext;\n\n /**\n * It can have more properties that I could not discover yet\n */\n [key: string]: any;\n}\n\n/**\n * The path parameters of the request, usually is the name of the wildcard you create in FunctionGraph, such as /\\{proxy\\}.\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent\n */\nexport type HuaweiRequestPathParameters = Record<string, string>;\n\n/**\n * The query strings of the request\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent\n */\nexport type HuaweiRequestQueryStringParameters = Record<\n string,\n string | string[]\n>;\n\n/**\n * The interface that represents the values you can get inside request context.\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent\n */\nexport interface HuaweiRequestContext {\n /**\n * The ID of your API inside Api Gateway\n */\n apiId: string;\n\n /**\n * The ID of this request\n */\n requestId: string;\n\n /**\n * The name of the stage running this Function Graph\n */\n stage: string;\n}\n"],"names":["huawei_api_gateway_event_exports","__toCommonJS"],"mappings":"2VAAAA,EAAA,CAAA,EAAA,OAAA,QAAAC,EAAAD,CAAA"}
1
+ {"version":3,"file":"huawei-api-gateway-event.js","sources":["../../../src/@types/huawei/huawei-api-gateway-event.ts"],"sourcesContent":["//#region Imports\n\nimport { BothValueHeaders } from '../index';\n\n//#endregion\n\n/**\n * The interface that represents the Api Gateway Event of Huawei when integrate with Function Graph of Event Type.\n * See more in {@link https://support.huaweicloud.com/intl/en-us/devg-functiongraph/functiongraph_02_0102.html#functiongraph_02_0102__li5178638110137 | Reference}.\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent\n */\nexport interface HuaweiApiGatewayEvent {\n /**\n * The body value with the content of this event serialized in JSON\n */\n body: string;\n\n /**\n * The headers of the request which this event represents\n */\n headers: BothValueHeaders;\n\n /**\n * The HTTP Method of the request which this event represents\n */\n httpMethod: string;\n\n /**\n * Tells if the body is base64 encoded\n */\n isBase64Encoded: boolean;\n\n /**\n * The path of the request which this event represents\n */\n path: string;\n\n /**\n * The path parameters of the request which this event represents\n */\n pathParameters: HuaweiRequestPathParameters;\n\n /**\n * The query strings of the request which this event represents\n */\n queryStringParameters: HuaweiRequestQueryStringParameters;\n\n /**\n * The request context with information about the stage, api and requestId\n */\n requestContext: HuaweiRequestContext;\n\n /**\n * It can have more properties that I could not discover yet\n */\n [key: string]: any;\n}\n\n/**\n * The path parameters of the request, usually is the name of the wildcard you create in FunctionGraph, such as /\\{proxy\\}.\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent\n */\nexport type HuaweiRequestPathParameters = Record<string, string>;\n\n/**\n * The query strings of the request\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent\n */\nexport type HuaweiRequestQueryStringParameters = Record<\n string,\n string | string[]\n>;\n\n/**\n * The interface that represents the values you can get inside request context.\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayEvent\n */\nexport interface HuaweiRequestContext {\n /**\n * The ID of your API inside Api Gateway\n */\n apiId: string;\n\n /**\n * The ID of this request\n */\n requestId: string;\n\n /**\n * The name of the stage running this Function Graph\n */\n stage: string;\n}\n"],"names":[],"mappings":"kiBAAA,iCAAA,CAAA,EAAA,OAAA,QAAA,aAAA,gCAAA"}
@@ -0,0 +1,27 @@
1
+ import { MultiValueHeaders } from '../headers';
2
+ /**
3
+ * The interface that represents the Api Gateway Response of Huawei when integrate with Function Graph of Event Type.
4
+ * See more in {@link https://support.huaweicloud.com/intl/en-us/devg-functiongraph/functiongraph_02_0102.html#functiongraph_02_0102__li5178638110137 | Reference}.
5
+ *
6
+ * @public
7
+ * @breadcrumb Types / Huawei / HuaweiApiGatewayResponse
8
+ */
9
+ export interface HuaweiApiGatewayResponse {
10
+ /**
11
+ * Tells if the body was encoded as base64
12
+ */
13
+ isBase64Encoded: boolean;
14
+ /**
15
+ * The HTTP Status code of this response
16
+ */
17
+ statusCode: number;
18
+ /**
19
+ * The headers sent with this response
20
+ */
21
+ headers: MultiValueHeaders;
22
+ /**
23
+ * The body value with the content of this response serialized in JSON
24
+ */
25
+ body: string;
26
+ }
27
+ //# sourceMappingURL=huawei-api-gateway-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"huawei-api-gateway-response.d.ts","sourceRoot":"","sources":["../../../src/@types/huawei/huawei-api-gateway-response.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAI/C;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,iBAAiB,CAAC;IAE3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,2 +1,2 @@
1
- "use strict";var o=Object.defineProperty,_=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=(r,e,p,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of n(e))!s.call(r,t)&&t!==p&&o(r,t,{get:()=>e[t],enumerable:!(a=_(e,t))||a.enumerable});return r},y=r=>c(o({},"__esModule",{value:!0}),r),O={};module.exports=y(O);
1
+ "use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),huawei_api_gateway_response_exports={};module.exports=__toCommonJS(huawei_api_gateway_response_exports);
2
2
  //# sourceMappingURL=huawei-api-gateway-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"huawei-api-gateway-response.js","sources":["../../../src/@types/huawei/huawei-api-gateway-response.ts"],"sourcesContent":["//#region Imports\n\nimport { MultiValueHeaders } from '../headers';\n\n//#endregion\n\n/**\n * The interface that represents the Api Gateway Response of Huawei when integrate with Function Graph of Event Type.\n * See more in {@link https://support.huaweicloud.com/intl/en-us/devg-functiongraph/functiongraph_02_0102.html#functiongraph_02_0102__li5178638110137 | Reference}.\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayResponse\n */\nexport interface HuaweiApiGatewayResponse {\n /**\n * Tells if the body was encoded as base64\n */\n isBase64Encoded: boolean;\n\n /**\n * The HTTP Status code of this response\n */\n statusCode: number;\n\n /**\n * The headers sent with this response\n */\n headers: MultiValueHeaders;\n\n /**\n * The body value with the content of this response serialized in JSON\n */\n body: string;\n}\n"],"names":["huawei_api_gateway_response_exports","__toCommonJS"],"mappings":"2VAAAA,EAAA,CAAA,EAAA,OAAA,QAAAC,EAAAD,CAAA"}
1
+ {"version":3,"file":"huawei-api-gateway-response.js","sources":["../../../src/@types/huawei/huawei-api-gateway-response.ts"],"sourcesContent":["//#region Imports\n\nimport { MultiValueHeaders } from '../headers';\n\n//#endregion\n\n/**\n * The interface that represents the Api Gateway Response of Huawei when integrate with Function Graph of Event Type.\n * See more in {@link https://support.huaweicloud.com/intl/en-us/devg-functiongraph/functiongraph_02_0102.html#functiongraph_02_0102__li5178638110137 | Reference}.\n *\n * @public\n * @breadcrumb Types / Huawei / HuaweiApiGatewayResponse\n */\nexport interface HuaweiApiGatewayResponse {\n /**\n * Tells if the body was encoded as base64\n */\n isBase64Encoded: boolean;\n\n /**\n * The HTTP Status code of this response\n */\n statusCode: number;\n\n /**\n * The headers sent with this response\n */\n headers: MultiValueHeaders;\n\n /**\n * The body value with the content of this response serialized in JSON\n */\n body: string;\n}\n"],"names":[],"mappings":"kiBAAA,oCAAA,CAAA,EAAA,OAAA,QAAA,aAAA,mCAAA"}