@kensio/yulin 1.16.1 → 1.16.3

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 (549) hide show
  1. package/dist/sdk/router/sim-sdk-caller-options.d.ts +2 -2
  2. package/dist/sdk/router/sim-sdk-caller-options.d.ts.map +1 -1
  3. package/dist/sdk/router/sim-sdk-command-router.type.d.ts +7 -2
  4. package/dist/sdk/router/sim-sdk-command-router.type.d.ts.map +1 -1
  5. package/dist/sdk/sim-sdk-command-dispatcher.d.ts +7 -1
  6. package/dist/sdk/sim-sdk-command-dispatcher.d.ts.map +1 -1
  7. package/dist/sdk/sim-sdk-command-dispatcher.js +16 -4
  8. package/dist/sdk/sim-sdk-command-dispatcher.js.map +1 -1
  9. package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts +7 -6
  10. package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts.map +1 -1
  11. package/dist/sdk/wire/sim-sdk-wire-dispatcher.js +11 -10
  12. package/dist/sdk/wire/sim-sdk-wire-dispatcher.js.map +1 -1
  13. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +12 -2
  14. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
  15. package/dist/sdk/wire/sim-sdk-wire-operation.js +1 -0
  16. package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
  17. package/dist/sdk/wire/sim-sdk-wire.types.d.ts +0 -4
  18. package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -1
  19. package/dist/serve/http/api/sim-aws-api-endpoint.d.ts +40 -0
  20. package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -0
  21. package/dist/serve/http/api/sim-aws-api-endpoint.js +120 -0
  22. package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -0
  23. package/dist/serve/http/sim-aws-http.d.ts +1 -0
  24. package/dist/serve/http/sim-aws-http.d.ts.map +1 -1
  25. package/dist/serve/http/sim-aws-http.js +9 -0
  26. package/dist/serve/http/sim-aws-http.js.map +1 -1
  27. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  28. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +1 -0
  29. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  30. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +8 -0
  31. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts.map +1 -1
  32. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +13 -0
  33. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
  34. package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.d.ts +28 -0
  35. package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.d.ts.map +1 -0
  36. package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.js +36 -0
  37. package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.js.map +1 -0
  38. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +10 -28
  39. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
  40. package/dist/service/cloudformation/stack/sim-cfn-stack.js +11 -2
  41. package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
  42. package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts +28 -0
  43. package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts.map +1 -0
  44. package/dist/service/cloudformation/stack/sim-cfn-stack.type.js +2 -0
  45. package/dist/service/cloudformation/stack/sim-cfn-stack.type.js.map +1 -0
  46. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
  47. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +2 -1
  48. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
  49. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts.map +1 -1
  50. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +2 -1
  51. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js.map +1 -1
  52. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -0
  53. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  54. package/dist/service/cognito/command/sim-cognito-commands.d.ts +2 -0
  55. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  56. package/dist/service/cognito/command/sim-cognito-commands.js +8 -0
  57. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  58. package/dist/service/cognito/command/user/password-reset.command.d.ts +80 -0
  59. package/dist/service/cognito/command/user/password-reset.command.d.ts.map +1 -0
  60. package/dist/service/cognito/command/user/password-reset.command.js +2 -0
  61. package/dist/service/cognito/command/user/password-reset.command.js.map +1 -0
  62. package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts +74 -0
  63. package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts.map +1 -0
  64. package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js +121 -0
  65. package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js.map +1 -0
  66. package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts +34 -0
  67. package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts.map +1 -0
  68. package/dist/service/cognito/command/user/sim-cognito-resetting-user.js +54 -0
  69. package/dist/service/cognito/command/user/sim-cognito-resetting-user.js.map +1 -0
  70. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
  71. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +3 -3
  72. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
  73. package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts +29 -0
  74. package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts.map +1 -0
  75. package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js +36 -0
  76. package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js.map +1 -0
  77. package/dist/service/cognito/error/sim-cognito.error.d.ts +23 -0
  78. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  79. package/dist/service/cognito/error/sim-cognito.error.js +27 -0
  80. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  81. package/dist/service/cognito/index.d.ts +2 -1
  82. package/dist/service/cognito/index.d.ts.map +1 -1
  83. package/dist/service/cognito/index.js +2 -1
  84. package/dist/service/cognito/index.js.map +1 -1
  85. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +6 -5
  86. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
  87. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +18 -5
  88. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
  89. package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts +26 -0
  90. package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts.map +1 -0
  91. package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js +57 -0
  92. package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js.map +1 -0
  93. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +9 -6
  94. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -1
  95. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +26 -11
  96. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -1
  97. package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts +18 -0
  98. package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts.map +1 -1
  99. package/dist/service/cognito/serve/page/sim-cognito-page-paths.js +23 -0
  100. package/dist/service/cognito/serve/page/sim-cognito-page-paths.js.map +1 -1
  101. package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts +12 -0
  102. package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts.map +1 -0
  103. package/dist/service/cognito/serve/page/sim-cognito-provider-links.js +18 -0
  104. package/dist/service/cognito/serve/page/sim-cognito-provider-links.js.map +1 -0
  105. package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts +27 -0
  106. package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts.map +1 -0
  107. package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js +65 -0
  108. package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js.map +1 -0
  109. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +2 -10
  110. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -1
  111. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +16 -21
  112. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -1
  113. package/dist/service/cognito/sim-cognito-user-directory.d.ts +16 -0
  114. package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
  115. package/dist/service/cognito/sim-cognito-user-directory.js +25 -0
  116. package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
  117. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +9 -0
  118. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
  119. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -1
  120. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
  121. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts +10 -0
  122. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts.map +1 -1
  123. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js +11 -0
  124. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js.map +1 -1
  125. package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts +44 -0
  126. package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts.map +1 -0
  127. package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js +78 -0
  128. package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js.map +1 -0
  129. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +10 -6
  130. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
  131. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +5 -2
  132. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -1
  133. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +5 -2
  134. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -1
  135. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +15 -0
  136. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -1
  137. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +18 -0
  138. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -1
  139. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts +4 -1
  140. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts.map +1 -1
  141. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js +5 -2
  142. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js.map +1 -1
  143. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts +14 -6
  144. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts.map +1 -1
  145. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js +20 -9
  146. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js.map +1 -1
  147. package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts +62 -0
  148. package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts.map +1 -0
  149. package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js +65 -0
  150. package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js.map +1 -0
  151. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +55 -11
  152. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
  153. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +67 -10
  154. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
  155. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +15 -12
  156. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  157. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +31 -20
  158. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  159. package/dist/service/iam/sim-iam.d.ts +10 -0
  160. package/dist/service/iam/sim-iam.d.ts.map +1 -1
  161. package/dist/service/iam/sim-iam.js +10 -0
  162. package/dist/service/iam/sim-iam.js.map +1 -1
  163. package/dist/service/lambda/command/create-function/create-function.handler.d.ts +3 -0
  164. package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
  165. package/dist/service/lambda/command/create-function/create-function.handler.js +5 -1
  166. package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
  167. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +2 -0
  168. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  169. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  170. package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +7 -0
  171. package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
  172. package/dist/service/lambda/function/code/sim-lambda-code-resolver.js +1 -0
  173. package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
  174. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts +3 -0
  175. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
  176. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +3 -0
  177. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
  178. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +6 -9
  179. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
  180. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +3 -3
  181. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
  182. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +11 -3
  183. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
  184. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +13 -8
  185. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
  186. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts +21 -2
  187. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts.map +1 -1
  188. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js +18 -2
  189. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js.map +1 -1
  190. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +26 -0
  191. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -0
  192. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +17 -0
  193. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -0
  194. package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts +17 -0
  195. package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts.map +1 -0
  196. package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js +43 -0
  197. package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js.map +1 -0
  198. package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts +44 -0
  199. package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts.map +1 -0
  200. package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js +83 -0
  201. package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js.map +1 -0
  202. package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts +50 -0
  203. package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts.map +1 -0
  204. package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js +83 -0
  205. package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js.map +1 -0
  206. package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts +42 -0
  207. package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts.map +1 -0
  208. package/dist/service/lambda/function/outbound/sim-lambda-http-module.js +88 -0
  209. package/dist/service/lambda/function/outbound/sim-lambda-http-module.js.map +1 -0
  210. package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.d.ts → outbound/sim-lambda-http-request.d.ts} +20 -7
  211. package/dist/service/lambda/function/outbound/sim-lambda-http-request.d.ts.map +1 -0
  212. package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.js → outbound/sim-lambda-http-request.js} +27 -29
  213. package/dist/service/lambda/function/outbound/sim-lambda-http-request.js.map +1 -0
  214. package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts +18 -0
  215. package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts.map +1 -0
  216. package/dist/service/lambda/function/outbound/sim-lambda-http-response.js +23 -0
  217. package/dist/service/lambda/function/outbound/sim-lambda-http-response.js.map +1 -0
  218. package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.d.ts → outbound/sim-lambda-http-target.d.ts} +9 -7
  219. package/dist/service/lambda/function/outbound/sim-lambda-http-target.d.ts.map +1 -0
  220. package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.js → outbound/sim-lambda-http-target.js} +4 -38
  221. package/dist/service/lambda/function/outbound/sim-lambda-http-target.js.map +1 -0
  222. package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts +15 -0
  223. package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts.map +1 -0
  224. package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js +38 -0
  225. package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js.map +1 -0
  226. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts +27 -0
  227. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts.map +1 -0
  228. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts +13 -0
  229. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts.map +1 -0
  230. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js +107 -0
  231. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js.map +1 -0
  232. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js +2 -0
  233. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js.map +1 -0
  234. package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts +16 -0
  235. package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts.map +1 -0
  236. package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js +29 -0
  237. package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js.map +1 -0
  238. package/dist/service/lambda/function/sim-lambda-function.d.ts +12 -6
  239. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  240. package/dist/service/lambda/function/sim-lambda-function.js +9 -10
  241. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  242. package/dist/service/lambda/sim-lambda-commands.d.ts +8 -0
  243. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  244. package/dist/service/lambda/sim-lambda-commands.js +2 -1
  245. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  246. package/dist/service/rekognition/collection/sim-rekognition-collection-faces.d.ts +53 -0
  247. package/dist/service/rekognition/collection/sim-rekognition-collection-faces.d.ts.map +1 -0
  248. package/dist/service/rekognition/collection/sim-rekognition-collection-faces.js +69 -0
  249. package/dist/service/rekognition/collection/sim-rekognition-collection-faces.js.map +1 -0
  250. package/dist/service/rekognition/collection/sim-rekognition-collection.d.ts +26 -0
  251. package/dist/service/rekognition/collection/sim-rekognition-collection.d.ts.map +1 -0
  252. package/dist/service/rekognition/collection/sim-rekognition-collection.js +9 -0
  253. package/dist/service/rekognition/collection/sim-rekognition-collection.js.map +1 -0
  254. package/dist/service/rekognition/collection/sim-rekognition-collections.d.ts +50 -0
  255. package/dist/service/rekognition/collection/sim-rekognition-collections.d.ts.map +1 -0
  256. package/dist/service/rekognition/collection/sim-rekognition-collections.js +78 -0
  257. package/dist/service/rekognition/collection/sim-rekognition-collections.js.map +1 -0
  258. package/dist/service/rekognition/collection/sim-rekognition-indexed-face.d.ts +41 -0
  259. package/dist/service/rekognition/collection/sim-rekognition-indexed-face.d.ts.map +1 -0
  260. package/dist/service/rekognition/collection/sim-rekognition-indexed-face.js +53 -0
  261. package/dist/service/rekognition/collection/sim-rekognition-indexed-face.js.map +1 -0
  262. package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.d.ts +2 -2
  263. package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.d.ts.map +1 -1
  264. package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.js +7 -4
  265. package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.js.map +1 -1
  266. package/dist/service/rekognition/command/collection/collection-id.d.ts +9 -0
  267. package/dist/service/rekognition/command/collection/collection-id.d.ts.map +1 -0
  268. package/dist/service/rekognition/command/collection/collection-id.js +15 -0
  269. package/dist/service/rekognition/command/collection/collection-id.js.map +1 -0
  270. package/dist/service/rekognition/command/collection/collection.command.d.ts +55 -0
  271. package/dist/service/rekognition/command/collection/collection.command.d.ts.map +1 -0
  272. package/dist/service/rekognition/command/collection/collection.command.js +2 -0
  273. package/dist/service/rekognition/command/collection/collection.command.js.map +1 -0
  274. package/dist/service/rekognition/command/collection/collection.handler.d.ts +40 -0
  275. package/dist/service/rekognition/command/collection/collection.handler.d.ts.map +1 -0
  276. package/dist/service/rekognition/command/collection/collection.handler.js +62 -0
  277. package/dist/service/rekognition/command/collection/collection.handler.js.map +1 -0
  278. package/dist/service/rekognition/command/face/delete-faces-request.d.ts +10 -0
  279. package/dist/service/rekognition/command/face/delete-faces-request.d.ts.map +1 -0
  280. package/dist/service/rekognition/command/face/delete-faces-request.js +18 -0
  281. package/dist/service/rekognition/command/face/delete-faces-request.js.map +1 -0
  282. package/dist/service/rekognition/command/face/external-image-id.d.ts +9 -0
  283. package/dist/service/rekognition/command/face/external-image-id.d.ts.map +1 -0
  284. package/dist/service/rekognition/command/face/external-image-id.js +28 -0
  285. package/dist/service/rekognition/command/face/external-image-id.js.map +1 -0
  286. package/dist/service/rekognition/command/face/face-ids.d.ts +9 -0
  287. package/dist/service/rekognition/command/face/face-ids.d.ts.map +1 -0
  288. package/dist/service/rekognition/command/face/face-ids.js +48 -0
  289. package/dist/service/rekognition/command/face/face-ids.js.map +1 -0
  290. package/dist/service/rekognition/command/face/face-indexer.d.ts +38 -0
  291. package/dist/service/rekognition/command/face/face-indexer.d.ts.map +1 -0
  292. package/dist/service/rekognition/command/face/face-indexer.js +64 -0
  293. package/dist/service/rekognition/command/face/face-indexer.js.map +1 -0
  294. package/dist/service/rekognition/command/face/face-limits.d.ts +22 -0
  295. package/dist/service/rekognition/command/face/face-limits.d.ts.map +1 -0
  296. package/dist/service/rekognition/command/face/face-limits.js +36 -0
  297. package/dist/service/rekognition/command/face/face-limits.js.map +1 -0
  298. package/dist/service/rekognition/command/face/face-listing.d.ts +26 -0
  299. package/dist/service/rekognition/command/face/face-listing.d.ts.map +1 -0
  300. package/dist/service/rekognition/command/face/face-listing.js +36 -0
  301. package/dist/service/rekognition/command/face/face-listing.js.map +1 -0
  302. package/dist/service/rekognition/command/face/face-output.d.ts +65 -0
  303. package/dist/service/rekognition/command/face/face-output.d.ts.map +1 -0
  304. package/dist/service/rekognition/command/face/face-output.js +8 -0
  305. package/dist/service/rekognition/command/face/face-output.js.map +1 -0
  306. package/dist/service/rekognition/command/face/face-searcher.d.ts +32 -0
  307. package/dist/service/rekognition/command/face/face-searcher.d.ts.map +1 -0
  308. package/dist/service/rekognition/command/face/face-searcher.js +45 -0
  309. package/dist/service/rekognition/command/face/face-searcher.js.map +1 -0
  310. package/dist/service/rekognition/command/face/face.command.d.ts +107 -0
  311. package/dist/service/rekognition/command/face/face.command.d.ts.map +1 -0
  312. package/dist/service/rekognition/command/face/face.command.js +2 -0
  313. package/dist/service/rekognition/command/face/face.command.js.map +1 -0
  314. package/dist/service/rekognition/command/face/face.handler.d.ts +62 -0
  315. package/dist/service/rekognition/command/face/face.handler.d.ts.map +1 -0
  316. package/dist/service/rekognition/command/face/face.handler.js +99 -0
  317. package/dist/service/rekognition/command/face/face.handler.js.map +1 -0
  318. package/dist/service/rekognition/command/face/index-faces-request.d.ts +20 -0
  319. package/dist/service/rekognition/command/face/index-faces-request.d.ts.map +1 -0
  320. package/dist/service/rekognition/command/face/index-faces-request.js +39 -0
  321. package/dist/service/rekognition/command/face/index-faces-request.js.map +1 -0
  322. package/dist/service/rekognition/command/face/list-faces-page.d.ts +26 -0
  323. package/dist/service/rekognition/command/face/list-faces-page.d.ts.map +1 -0
  324. package/dist/service/rekognition/command/face/list-faces-page.js +39 -0
  325. package/dist/service/rekognition/command/face/list-faces-page.js.map +1 -0
  326. package/dist/service/rekognition/command/face/list-faces-request.d.ts +17 -0
  327. package/dist/service/rekognition/command/face/list-faces-request.d.ts.map +1 -0
  328. package/dist/service/rekognition/command/face/list-faces-request.js +43 -0
  329. package/dist/service/rekognition/command/face/list-faces-request.js.map +1 -0
  330. package/dist/service/rekognition/command/face/search-faces-by-image-request.d.ts +24 -0
  331. package/dist/service/rekognition/command/face/search-faces-by-image-request.d.ts.map +1 -0
  332. package/dist/service/rekognition/command/face/search-faces-by-image-request.js +61 -0
  333. package/dist/service/rekognition/command/face/search-faces-by-image-request.js.map +1 -0
  334. package/dist/service/rekognition/command/sim-rekognition-detection-handlers.d.ts +32 -0
  335. package/dist/service/rekognition/command/sim-rekognition-detection-handlers.d.ts.map +1 -0
  336. package/dist/service/rekognition/command/sim-rekognition-detection-handlers.js +37 -0
  337. package/dist/service/rekognition/command/sim-rekognition-detection-handlers.js.map +1 -0
  338. package/dist/service/rekognition/error/sim-rekognition.error.d.ts +20 -0
  339. package/dist/service/rekognition/error/sim-rekognition.error.d.ts.map +1 -1
  340. package/dist/service/rekognition/error/sim-rekognition.error.js +24 -0
  341. package/dist/service/rekognition/error/sim-rekognition.error.js.map +1 -1
  342. package/dist/service/rekognition/face/sim-rekognition-detected-face.d.ts +9 -0
  343. package/dist/service/rekognition/face/sim-rekognition-detected-face.d.ts.map +1 -1
  344. package/dist/service/rekognition/face/sim-rekognition-detected-face.js +12 -0
  345. package/dist/service/rekognition/face/sim-rekognition-detected-face.js.map +1 -1
  346. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.d.ts.map +1 -1
  347. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js.map +1 -1
  348. package/dist/service/rekognition/face/sim-rekognition-face-detection.d.ts +9 -0
  349. package/dist/service/rekognition/face/sim-rekognition-face-detection.d.ts.map +1 -1
  350. package/dist/service/rekognition/face/sim-rekognition-face-detection.js +10 -0
  351. package/dist/service/rekognition/face/sim-rekognition-face-detection.js.map +1 -1
  352. package/dist/service/rekognition/face/sim-rekognition-face-frame.d.ts +5 -1
  353. package/dist/service/rekognition/face/sim-rekognition-face-frame.d.ts.map +1 -1
  354. package/dist/service/rekognition/face/sim-rekognition-face-frame.js +3 -0
  355. package/dist/service/rekognition/face/sim-rekognition-face-frame.js.map +1 -1
  356. package/dist/service/rekognition/index.d.ts +3 -1
  357. package/dist/service/rekognition/index.d.ts.map +1 -1
  358. package/dist/service/rekognition/index.js +2 -1
  359. package/dist/service/rekognition/index.js.map +1 -1
  360. package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.d.ts +29 -0
  361. package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.d.ts.map +1 -0
  362. package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.js +2 -0
  363. package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.js.map +1 -0
  364. package/dist/service/rekognition/match/sim-rekognition-face-match-result.d.ts +25 -0
  365. package/dist/service/rekognition/match/sim-rekognition-face-match-result.d.ts.map +1 -0
  366. package/dist/service/rekognition/match/sim-rekognition-face-match-result.js +44 -0
  367. package/dist/service/rekognition/match/sim-rekognition-face-match-result.js.map +1 -0
  368. package/dist/service/rekognition/match/sim-rekognition-face-match-rule.d.ts +26 -0
  369. package/dist/service/rekognition/match/sim-rekognition-face-match-rule.d.ts.map +1 -0
  370. package/dist/service/rekognition/match/sim-rekognition-face-match-rule.js +64 -0
  371. package/dist/service/rekognition/match/sim-rekognition-face-match-rule.js.map +1 -0
  372. package/dist/service/rekognition/match/sim-rekognition-face-matches.d.ts +32 -0
  373. package/dist/service/rekognition/match/sim-rekognition-face-matches.d.ts.map +1 -0
  374. package/dist/service/rekognition/match/sim-rekognition-face-matches.js +39 -0
  375. package/dist/service/rekognition/match/sim-rekognition-face-matches.js.map +1 -0
  376. package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.d.ts.map +1 -1
  377. package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.js +28 -0
  378. package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.js.map +1 -1
  379. package/dist/service/rekognition/sim-rekognition.d.ts +51 -3
  380. package/dist/service/rekognition/sim-rekognition.d.ts.map +1 -1
  381. package/dist/service/rekognition/sim-rekognition.js +84 -16
  382. package/dist/service/rekognition/sim-rekognition.js.map +1 -1
  383. package/dist/service/s3/bucket/sim-s3-bucket.d.ts +8 -0
  384. package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
  385. package/dist/service/s3/bucket/sim-s3-bucket.js +4 -1
  386. package/dist/service/s3/bucket/sim-s3-bucket.js.map +1 -1
  387. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts +1 -0
  388. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts.map +1 -1
  389. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js +4 -0
  390. package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js.map +1 -1
  391. package/dist/service/s3/command/create-bucket/create-bucket.handler.d.ts.map +1 -1
  392. package/dist/service/s3/command/create-bucket/create-bucket.handler.js +1 -0
  393. package/dist/service/s3/command/create-bucket/create-bucket.handler.js.map +1 -1
  394. package/dist/service/s3/command/head-bucket/head-bucket-authorizer.d.ts +26 -0
  395. package/dist/service/s3/command/head-bucket/head-bucket-authorizer.d.ts.map +1 -0
  396. package/dist/service/s3/command/head-bucket/head-bucket-authorizer.js +48 -0
  397. package/dist/service/s3/command/head-bucket/head-bucket-authorizer.js.map +1 -0
  398. package/dist/service/s3/command/head-bucket/head-bucket.command.d.ts +24 -0
  399. package/dist/service/s3/command/head-bucket/head-bucket.command.d.ts.map +1 -0
  400. package/dist/service/s3/command/head-bucket/head-bucket.command.js +2 -0
  401. package/dist/service/s3/command/head-bucket/head-bucket.command.js.map +1 -0
  402. package/dist/service/s3/command/head-bucket/head-bucket.handler.d.ts +35 -0
  403. package/dist/service/s3/command/head-bucket/head-bucket.handler.d.ts.map +1 -0
  404. package/dist/service/s3/command/head-bucket/head-bucket.handler.js +45 -0
  405. package/dist/service/s3/command/head-bucket/head-bucket.handler.js.map +1 -0
  406. package/dist/service/s3/command/head-object/head-object-loader.d.ts +17 -0
  407. package/dist/service/s3/command/head-object/head-object-loader.d.ts.map +1 -0
  408. package/dist/service/s3/command/head-object/head-object-loader.js +29 -0
  409. package/dist/service/s3/command/head-object/head-object-loader.js.map +1 -0
  410. package/dist/service/s3/command/head-object/head-object.command.d.ts +29 -0
  411. package/dist/service/s3/command/head-object/head-object.command.d.ts.map +1 -0
  412. package/dist/service/s3/command/head-object/head-object.command.js +2 -0
  413. package/dist/service/s3/command/head-object/head-object.command.js.map +1 -0
  414. package/dist/service/s3/command/head-object/head-object.handler.d.ts +38 -0
  415. package/dist/service/s3/command/head-object/head-object.handler.d.ts.map +1 -0
  416. package/dist/service/s3/command/head-object/head-object.handler.js +50 -0
  417. package/dist/service/s3/command/head-object/head-object.handler.js.map +1 -0
  418. package/dist/service/s3/command/list-buckets/list-buckets-page-builder.d.ts.map +1 -1
  419. package/dist/service/s3/command/list-buckets/list-buckets-page-builder.js +1 -0
  420. package/dist/service/s3/command/list-buckets/list-buckets-page-builder.js.map +1 -1
  421. package/dist/service/s3/command/list-buckets/list-buckets.command.d.ts +1 -0
  422. package/dist/service/s3/command/list-buckets/list-buckets.command.d.ts.map +1 -1
  423. package/dist/service/s3/command/object/sim-s3-object-commands.d.ts +4 -0
  424. package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -1
  425. package/dist/service/s3/command/object/sim-s3-object-commands.js +7 -0
  426. package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -1
  427. package/dist/service/s3/command/sim-s3-command.types.d.ts +2 -0
  428. package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
  429. package/dist/service/s3/error/sim-s3.error.d.ts +12 -0
  430. package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
  431. package/dist/service/s3/error/sim-s3.error.js +14 -0
  432. package/dist/service/s3/error/sim-s3.error.js.map +1 -1
  433. package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
  434. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +8 -0
  435. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
  436. package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.d.ts +9 -0
  437. package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.d.ts.map +1 -0
  438. package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js +120 -0
  439. package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js.map +1 -0
  440. package/dist/service/s3/serve/api/sim-s3-api-configuration-output.d.ts +19 -0
  441. package/dist/service/s3/serve/api/sim-s3-api-configuration-output.d.ts.map +1 -0
  442. package/dist/service/s3/serve/api/sim-s3-api-configuration-output.js +78 -0
  443. package/dist/service/s3/serve/api/sim-s3-api-configuration-output.js.map +1 -0
  444. package/dist/service/s3/serve/api/sim-s3-api-head-output.d.ts +22 -0
  445. package/dist/service/s3/serve/api/sim-s3-api-head-output.d.ts.map +1 -0
  446. package/dist/service/s3/serve/api/sim-s3-api-head-output.js +39 -0
  447. package/dist/service/s3/serve/api/sim-s3-api-head-output.js.map +1 -0
  448. package/dist/service/s3/serve/api/sim-s3-api-input.d.ts +57 -0
  449. package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -0
  450. package/dist/service/s3/serve/api/sim-s3-api-input.js +112 -0
  451. package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -0
  452. package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts +43 -0
  453. package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts.map +1 -0
  454. package/dist/service/s3/serve/api/sim-s3-api-listing.js +53 -0
  455. package/dist/service/s3/serve/api/sim-s3-api-listing.js.map +1 -0
  456. package/dist/service/s3/serve/api/sim-s3-api-notification-read.d.ts +8 -0
  457. package/dist/service/s3/serve/api/sim-s3-api-notification-read.d.ts.map +1 -0
  458. package/dist/service/s3/serve/api/sim-s3-api-notification-read.js +54 -0
  459. package/dist/service/s3/serve/api/sim-s3-api-notification-read.js.map +1 -0
  460. package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts +6 -0
  461. package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -0
  462. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +31 -0
  463. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -0
  464. package/dist/service/s3/serve/api/sim-s3-api-output.d.ts +10 -0
  465. package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -0
  466. package/dist/service/s3/serve/api/sim-s3-api-output.js +118 -0
  467. package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -0
  468. package/dist/service/s3/serve/api/sim-s3-api-request.d.ts +32 -0
  469. package/dist/service/s3/serve/api/sim-s3-api-request.d.ts.map +1 -0
  470. package/dist/service/s3/serve/api/sim-s3-api-request.js +48 -0
  471. package/dist/service/s3/serve/api/sim-s3-api-request.js.map +1 -0
  472. package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts +26 -0
  473. package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts.map +1 -0
  474. package/dist/service/s3/serve/api/sim-s3-api-route.type.js +2 -0
  475. package/dist/service/s3/serve/api/sim-s3-api-route.type.js.map +1 -0
  476. package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts +24 -0
  477. package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -0
  478. package/dist/service/s3/serve/api/sim-s3-api-routes.js +90 -0
  479. package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -0
  480. package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts +21 -0
  481. package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts.map +1 -0
  482. package/dist/service/s3/serve/api/sim-s3-api-xml-read.js +64 -0
  483. package/dist/service/s3/serve/api/sim-s3-api-xml-read.js.map +1 -0
  484. package/dist/service/s3/serve/api/sim-s3-api.d.ts +29 -0
  485. package/dist/service/s3/serve/api/sim-s3-api.d.ts.map +1 -0
  486. package/dist/service/s3/serve/api/sim-s3-api.js +60 -0
  487. package/dist/service/s3/serve/api/sim-s3-api.js.map +1 -0
  488. package/dist/service/s3/serve/sim-s3-rest-error-response.d.ts +8 -0
  489. package/dist/service/s3/serve/sim-s3-rest-error-response.d.ts.map +1 -1
  490. package/dist/service/s3/serve/sim-s3-rest-error-response.js +15 -10
  491. package/dist/service/s3/serve/sim-s3-rest-error-response.js.map +1 -1
  492. package/dist/service/s3/sim-s3-operations.d.ts +55 -0
  493. package/dist/service/s3/sim-s3-operations.d.ts.map +1 -0
  494. package/dist/service/s3/sim-s3-operations.js +94 -0
  495. package/dist/service/s3/sim-s3-operations.js.map +1 -0
  496. package/dist/service/s3/sim-s3.d.ts +6 -41
  497. package/dist/service/s3/sim-s3.d.ts.map +1 -1
  498. package/dist/service/s3/sim-s3.js +11 -79
  499. package/dist/service/s3/sim-s3.js.map +1 -1
  500. package/dist/service/sts/command/assume-role/assume-role.handler.d.ts +2 -2
  501. package/dist/service/sts/command/assume-role/assume-role.handler.d.ts.map +1 -1
  502. package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.d.ts +20 -0
  503. package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.d.ts.map +1 -0
  504. package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.js +2 -0
  505. package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.js.map +1 -0
  506. package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.d.ts +37 -0
  507. package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.d.ts.map +1 -0
  508. package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.js +50 -0
  509. package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.js.map +1 -0
  510. package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.d.ts +15 -0
  511. package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.d.ts.map +1 -0
  512. package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.js +47 -0
  513. package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.js.map +1 -0
  514. package/dist/service/sts/sdk/sim-sts-sdk-command-router.d.ts.map +1 -1
  515. package/dist/service/sts/sdk/sim-sts-sdk-command-router.js +4 -0
  516. package/dist/service/sts/sdk/sim-sts-sdk-command-router.js.map +1 -1
  517. package/dist/service/sts/serve/sim-sts-api.d.ts +24 -0
  518. package/dist/service/sts/serve/sim-sts-api.d.ts.map +1 -0
  519. package/dist/service/sts/serve/sim-sts-api.js +56 -0
  520. package/dist/service/sts/serve/sim-sts-api.js.map +1 -0
  521. package/dist/service/sts/serve/sim-sts-query-request.d.ts +19 -0
  522. package/dist/service/sts/serve/sim-sts-query-request.d.ts.map +1 -0
  523. package/dist/service/sts/serve/sim-sts-query-request.js +27 -0
  524. package/dist/service/sts/serve/sim-sts-query-request.js.map +1 -0
  525. package/dist/service/sts/serve/sim-sts-query-response.d.ts +15 -0
  526. package/dist/service/sts/serve/sim-sts-query-response.d.ts.map +1 -0
  527. package/dist/service/sts/serve/sim-sts-query-response.js +42 -0
  528. package/dist/service/sts/serve/sim-sts-query-response.js.map +1 -0
  529. package/dist/service/sts/sim-sts.d.ts +9 -2
  530. package/dist/service/sts/sim-sts.d.ts.map +1 -1
  531. package/dist/service/sts/sim-sts.js +11 -0
  532. package/dist/service/sts/sim-sts.js.map +1 -1
  533. package/dist/util/xml/xml-document.d.ts +42 -0
  534. package/dist/util/xml/xml-document.d.ts.map +1 -0
  535. package/dist/util/xml/xml-document.js +97 -0
  536. package/dist/util/xml/xml-document.js.map +1 -0
  537. package/dist/util/xml/xml-writer.d.ts +28 -0
  538. package/dist/util/xml/xml-writer.d.ts.map +1 -0
  539. package/dist/util/xml/xml-writer.js +53 -0
  540. package/dist/util/xml/xml-writer.js.map +1 -0
  541. package/package.json +2 -2
  542. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +0 -27
  543. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +0 -1
  544. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +0 -78
  545. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +0 -1
  546. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +0 -1
  547. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +0 -1
  548. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +0 -1
  549. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-lambda-outbound-wire.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/outbound/sim-lambda-outbound-wire.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,4CAA4C,CAAC;AAEpD;;;;;GAKG;AACH,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,iBAAiB,CAAC,CAU5B;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,kBAAkB,GAC3B,QAAQ,CAKV"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Read an outbound request as the AWS API request it is on the wire.
3
+ *
4
+ * Header names come back lower-cased because that is how `Headers` iterates
5
+ * them, which is also what the wire dispatcher looks them up by.
6
+ */
7
+ export async function simLambdaOutboundWireRequest(request) {
8
+ const url = new URL(request.url);
9
+ return {
10
+ method: request.method,
11
+ hostname: url.hostname,
12
+ path: `${url.pathname}${url.search}`,
13
+ headers: Object.fromEntries(request.headers),
14
+ body: new Uint8Array(await request.arrayBuffer()),
15
+ };
16
+ }
17
+ /**
18
+ * Present an AWS API response from the wire as the response a client reads.
19
+ *
20
+ * An empty body is passed as no body at all, because the statuses that carry
21
+ * none refuse to be built with one.
22
+ */
23
+ export function simLambdaOutboundWireResponse(response) {
24
+ return new Response(response.body.length === 0 ? null : response.body, {
25
+ status: response.statusCode,
26
+ headers: { ...response.headers },
27
+ });
28
+ }
29
+ //# sourceMappingURL=sim-lambda-outbound-wire.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-lambda-outbound-wire.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/outbound/sim-lambda-outbound-wire.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,OAAgB;IAEhB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEjC,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,IAAI,EAAE,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE;QACpC,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;QAC5C,IAAI,EAAE,IAAI,UAAU,CAAC,MAAM,OAAO,CAAC,WAAW,EAAE,CAAC;KAClD,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC3C,QAA4B;IAE5B,OAAO,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE;QACrE,MAAM,EAAE,QAAQ,CAAC,UAAU;QAC3B,OAAO,EAAE,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE;KACjC,CAAC,CAAC;AACL,CAAC"}
@@ -5,6 +5,7 @@ import { type SimLambdaExecutableCode } from "./code/sim-lambda-executable-code.
5
5
  import { SimLambdaEnvironment } from "./environment/sim-lambda-environment.js";
6
6
  import type { SimLogsServiceWriter } from "../../logs/write/sim-logs-service-writer.js";
7
7
  import { SimLambdaFunctionPolicy } from "./policy/sim-lambda-function-policy.js";
8
+ import type { SimLambdaOutboundHttp } from "./outbound/sim-lambda-outbound-http.js";
8
9
  import { type SimClock } from "../../../util/clock/sim-clock.js";
9
10
  import { type SimLambdaHandler } from "./sim-lambda-handler.type.js";
10
11
  export type SimLambdaFunctionName = Brand<string, "SimLambdaFunctionName">;
@@ -65,6 +66,13 @@ interface SimLambdaFunctionProperties {
65
66
  * only to the host streams.
66
67
  */
67
68
  logs?: SimLogsServiceWriter | undefined;
69
+ /**
70
+ * Where the HTTP requests this function's code makes to hostnames the
71
+ * simulation serves are answered. A function built standalone, outside a
72
+ * SimAws instance, has no simulation to answer them and reaches the network
73
+ * as any other code would.
74
+ */
75
+ outboundHttp?: SimLambdaOutboundHttp | undefined;
68
76
  }
69
77
  /**
70
78
  * Simulated Lambda function resource.
@@ -99,6 +107,7 @@ export declare class SimLambdaFunction {
99
107
  private readonly runner;
100
108
  private readonly clock;
101
109
  private readonly logging;
110
+ private readonly outboundHttp;
102
111
  constructor(properties: SimLambdaFunctionProperties);
103
112
  /**
104
113
  * The log group this function's output is recorded to.
@@ -134,13 +143,10 @@ export declare class SimLambdaFunction {
134
143
  */
135
144
  invoke(event: unknown): Promise<unknown>;
136
145
  /**
137
- * Run an invocation with this simulation's time as the current time.
138
- *
139
- * Only code running in the host scope needs this. Zip code reads the Date
140
- * its own vm sandbox was given, so a function backed by one leaves the
141
- * global Date alone entirely.
146
+ * Run an invocation with the process globals host-scope code reads bridged
147
+ * to this simulation: the current time, and the HTTP clients it reaches for.
142
148
  */
143
- private runWithSimulatedTime;
149
+ private runInHostScope;
144
150
  }
145
151
  export {};
146
152
  //# sourceMappingURL=sim-lambda-function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-function.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,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CAAC,IAAI,CAA0B;IAC/C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IACnD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoC;IAEjE,YAAY,UAAU,EAAE,2BAA2B,EA4ClD;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,sBAAsB,CAElC;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,oBAAoB,CAE9B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAGxB;IAED;;OAEG;IACH,aAAa,IAAI,8BAA8B,CAc9C;IAED;;;;;;;;;;;OAWG;IACG,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAgC7C;IAED;;;OAGG;YACW,cAAc;CAU7B"}
@@ -6,7 +6,7 @@ import { SimLambdaFunctionLogging } from "./logging/sim-lambda-function-logging.
6
6
  import { SimLambdaFunctionPolicy } from "./policy/sim-lambda-function-policy.js";
7
7
  import { SimLambdaHandlerRunner } from "./invoke/sim-lambda-handler-runner.js";
8
8
  import { SimLambdaInvokeContextBuilder } from "./invoke/sim-lambda-invoke-context-builder.js";
9
- import { simLambdaProcessClock } from "./invoke/sim-lambda-process-clock.js";
9
+ import { runSimLambdaInHostScope } from "./invoke/sim-lambda-host-scope.js";
10
10
  import { SimRealClock } from "../../../util/clock/sim-clock.js";
11
11
  import { defaultLambdaHandler, } from "./sim-lambda-handler.type.js";
12
12
  export const DEFAULT_SIM_LAMBDA_TIMEOUT_SECONDS = 3;
@@ -50,8 +50,9 @@ export class SimLambdaFunction {
50
50
  runner = new SimLambdaHandlerRunner();
51
51
  clock;
52
52
  logging;
53
+ outboundHttp;
53
54
  constructor(properties) {
54
- const { name, roleArn, accountRegionScope = simAwsAccountRegionScopeFactory.make(), handlerFunction = defaultLambdaHandler, code, state = "Pending", handlerName, runtimeName, description, timeoutSeconds = DEFAULT_SIM_LAMBDA_TIMEOUT_SECONDS, memorySizeMb = DEFAULT_SIM_LAMBDA_MEMORY_SIZE_MB, environment, runAsOwner = this, clock = new SimRealClock(), logs, } = properties;
55
+ const { name, roleArn, accountRegionScope = simAwsAccountRegionScopeFactory.make(), handlerFunction = defaultLambdaHandler, code, state = "Pending", handlerName, runtimeName, description, timeoutSeconds = DEFAULT_SIM_LAMBDA_TIMEOUT_SECONDS, memorySizeMb = DEFAULT_SIM_LAMBDA_MEMORY_SIZE_MB, environment, runAsOwner = this, clock = new SimRealClock(), logs, outboundHttp, } = properties;
55
56
  this.clock = clock;
56
57
  this.name = name;
57
58
  this.roleArn = roleArn;
@@ -71,6 +72,7 @@ export class SimLambdaFunction {
71
72
  memorySizeMb,
72
73
  });
73
74
  this.runAsOwner = runAsOwner;
75
+ this.outboundHttp = outboundHttp;
74
76
  this.logging = new SimLambdaFunctionLogging({
75
77
  functionName: name,
76
78
  logs,
@@ -143,20 +145,17 @@ export class SimLambdaFunction {
143
145
  logStreamName: this.logging.logStreamName(),
144
146
  });
145
147
  this.logging.recordFrom(this.code);
146
- return await simAwsRunAsContext.run(this.runAsOwner, { kind: "arn", arn: this.roleArn }, async () => await this.environment.runWith(async () => await this.runWithSimulatedTime(async () => await this.logging.around(async () => await this.runner.run(this.code.handlerFunction(), event, contextBuilder)))));
148
+ return await simAwsRunAsContext.run(this.runAsOwner, { kind: "arn", arn: this.roleArn }, async () => await this.environment.runWith(async () => await this.runInHostScope(async () => await this.logging.around(async () => await this.runner.run(this.code.handlerFunction(), event, contextBuilder)))));
147
149
  }
148
150
  /**
149
- * Run an invocation with this simulation's time as the current time.
150
- *
151
- * Only code running in the host scope needs this. Zip code reads the Date
152
- * its own vm sandbox was given, so a function backed by one leaves the
153
- * global Date alone entirely.
151
+ * Run an invocation with the process globals host-scope code reads bridged
152
+ * to this simulation: the current time, and the HTTP clients it reaches for.
154
153
  */
155
- async runWithSimulatedTime(run) {
154
+ async runInHostScope(run) {
156
155
  if (!this.code.runsInHostScope) {
157
156
  return await run();
158
157
  }
159
- return await simLambdaProcessClock.run(this.clock, run);
158
+ return await runSimLambdaInHostScope({ clock: this.clock, outboundHttp: this.outboundHttp }, run);
160
159
  }
161
160
  }
162
161
  //# sourceMappingURL=sim-lambda-function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-function.js","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAEpG,OAAO,EAEL,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAiB,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EACL,oBAAoB,GAErB,MAAM,8BAA8B,CAAC;AAItC,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAmBrD;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,KAA+B,EAC/B,IAAY;IAEZ,OAAO,kBAAkB,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,SAAS,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BAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC1D,CAAC;CACF"}
1
+ {"version":3,"file":"sim-lambda-function.js","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAEpG,OAAO,EAEL,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAiB,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EACL,oBAAoB,GAErB,MAAM,8BAA8B,CAAC;AAItC,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAmBrD;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,KAA+B,EAC/B,IAAY;IAEZ,OAAO,kBAAkB,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,SAAS,aAAa,IAAI,EAAE,CAAC;AAClF,CAAC;AAuDD;;;;;;;GAOG;AACH,MAAM,OAAO,iBAAiB;IACZ,IAAI,CAAwB;IAC5B,OAAO,CAAS;IAChB,kBAAkB,CAA2B;IAC7C,WAAW,CAAqB;IAChC,WAAW,CAAqB;IAChC,WAAW,CAAqB;IAChC,cAAc,CAAS;IACvB,YAAY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ainerImages } from "./function/code/image/sim-lambda-
12
12
  import type { SimLambdaCodeStore } from "./function/code/store/sim-lambda-code-store.js";
13
13
  import type { SimLambdaVmSdkModuleProvider } from "./function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js";
14
14
  import type { SimLogsServiceWriter } from "../logs/write/sim-logs-service-writer.js";
15
+ import type { SimLambdaOutboundHttp } from "./function/outbound/sim-lambda-outbound-http.js";
15
16
  import type { SimLambdaFunctionMap } from "./function/sim-lambda-function.js";
16
17
  import { SimLambdaFunctionLookup } from "./function/url/sim-lambda-function-lookup.js";
17
18
  import { SimLambdaFunctionUrlStore } from "./function/url/sim-lambda-function-url-store.js";
@@ -28,6 +29,13 @@ export interface SimLambdaProperties {
28
29
  readonly containerImages?: SimLambdaContainerImages;
29
30
  readonly vmSdkModuleProvider?: SimLambdaVmSdkModuleProvider;
30
31
  readonly logs?: SimLogsServiceWriter | undefined;
32
+ /**
33
+ * Where the HTTP requests this simulated Lambda's function code makes to
34
+ * hostnames the simulation serves are answered. A standalone SimLambda has
35
+ * no simulated environment to answer them, so its functions reach the
36
+ * network as any other code would.
37
+ */
38
+ readonly outboundHttp?: SimLambdaOutboundHttp;
31
39
  readonly urlRegistry?: SimLambdaUrlRegistry;
32
40
  readonly eventSourceQueues?: SimSqsPollQueues;
33
41
  readonly eventSourceStreams?: SimLambdaEventSourceStreams;
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-commands.d.ts","sourceRoot":"","sources":["../../../src/service/lambda/sim-lambda-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,M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AC5C,QAAQ,CAAC,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,2BAA2B,CAAC;CAC3D;AAED,UAAU,2BAA4B,SAAQ,mBAAmB;IAC/D,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;CACvC;AAED;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B;;;;OAIG;IACH,SAAgB,eAAe,EAAE,wBAAwB,CAAC;IAE1D,SAAgB,gBAAgB,EAAE,yBAAyB,CAAC;IAC5D,SAAgB,cAAc,EAAE,uBAAuB,CAAC;IACxD,SAAgB,SAAS,EAAE,yBAAyB,CAAC;IACrD,SAAgB,YAAY,EAAE,4BAA4B,CAAC;IAC3D,SAAgB,WAAW,EAAE,2BAA2B,CAAC;IACzD,SAAgB,mBAAmB,EAAE,mCAAmC,CAAC;IAEzE,YAAY,UAAU,EAAE,2BAA2B,EA2ElD;CACF"}
@@ -35,7 +35,7 @@ export class SimLambdaCommands {
35
35
  permissions;
36
36
  eventSourceMappings;
37
37
  constructor(properties) {
38
- const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), codeStore, vmSdkModuleProvider, logs,
38
+ const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), codeStore, vmSdkModuleProvider, logs, outboundHttp,
39
39
  // A standalone SimLambda is not reachable over HTTP, so its own registry
40
40
  // is enough; a SimAws-created one shares the environment-wide registry
41
41
  // the serving layer routes with.
@@ -96,6 +96,7 @@ export class SimLambdaCommands {
96
96
  containerImages,
97
97
  vmSdkModuleProvider,
98
98
  logs,
99
+ outboundHttp,
99
100
  });
100
101
  }
101
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-commands.js","sourceRoot":"","sources":["../../../src/service/lambda/sim-lambda-comm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YAC9B,GAAG;YACH,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,mBAAmB,GAAG,IAAI,mCAAmC,CAAC;YACjE,kBAAkB;YAClB,OAAO,EAAE,IAAI,2BAA2B,CAAC;gBACvC,SAAS,EAAE,IAAI,CAAC,cAAc;gBAC9B,MAAM,EAAE,iBAAiB;gBACzB,OAAO,EAAE,kBAAkB;gBAC3B,UAAU;aACX,CAAC;YACF,MAAM,EAAE,iBAAiB;YACzB,OAAO,EAAE,kBAAkB;YAC3B,SAAS,EAAE,IAAI,CAAC,cAAc;YAC9B,GAAG;YACH,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,GAAG,IAAI,yBAAyB,CAAC;YAC7C,kBAAkB;YAClB,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,YAAY,EAAE,IAAI,CAAC,gBAAgB;YACnC,GAAG;YACH,UAAU;YACV,UAAU,EAAE,UAAU,CAAC,UAAU;YACjC,yEAAyE;YACzE,mDAAmD;YACnD,oBAAoB,EAAE,IAAI,6BAA6B,EAAE;YACzD,SAAS;YACT,eAAe;YACf,mBAAmB;YACnB,IAAI;YACJ,YAAY;SACb,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,53 @@
1
+ import type { SimRekognitionIndexedFace } from "./sim-rekognition-indexed-face.js";
2
+ /**
3
+ * What one removal reached, and what it asked for and did not find.
4
+ */
5
+ export interface SimRekognitionFaceRemoval {
6
+ readonly removed: readonly string[];
7
+ readonly missing: readonly string[];
8
+ }
9
+ /**
10
+ * The faces one collection holds.
11
+ *
12
+ * They are kept in the order they were indexed, which is the order a listing
13
+ * reports them in. Real Rekognition documents no order for `ListFaces`, so
14
+ * indexing order is a simulator convention rather than AWS behaviour.
15
+ */
16
+ export declare class SimRekognitionCollectionFaces {
17
+ private readonly faces;
18
+ /**
19
+ * Record a face against this collection.
20
+ */
21
+ index(face: SimRekognitionIndexedFace): void;
22
+ /**
23
+ * Every face held here.
24
+ */
25
+ all(): readonly SimRekognitionIndexedFace[];
26
+ /**
27
+ * The faces with these ids, leaving out any id this collection does not
28
+ * hold.
29
+ */
30
+ withIds(faceIds: readonly string[]): readonly SimRekognitionIndexedFace[];
31
+ /**
32
+ * The face with this id, when this collection holds it.
33
+ */
34
+ withFaceId(faceId: string): SimRekognitionIndexedFace | undefined;
35
+ /**
36
+ * The faces indexed under this external image id.
37
+ *
38
+ * There can be several. Real Rekognition takes an `ExternalImageId` as a
39
+ * label the caller chose rather than as a key, so a photograph of the same
40
+ * person indexed twice leaves two faces under one id.
41
+ */
42
+ withExternalImageId(externalImageId: string): readonly SimRekognitionIndexedFace[];
43
+ /**
44
+ * Remove the faces with these ids.
45
+ *
46
+ * An id this collection does not hold is reported back rather than dropped,
47
+ * because real Rekognition answers for every id a request named. A request
48
+ * naming the same id twice is one removal, since the second one would
49
+ * otherwise be reported as a face that could not be found.
50
+ */
51
+ remove(faceIds: readonly string[]): SimRekognitionFaceRemoval;
52
+ }
53
+ //# sourceMappingURL=sim-rekognition-collection-faces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-rekognition-collection-faces.d.ts","sourceRoot":"","sources":["../../../../src/service/rekognition/collection/sim-rekognition-collection-faces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED;;;;;;GAMG;AACH,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgD;IAEtE;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,CAE3C;IAED;;OAEG;IACH,GAAG,IAAI,SAAS,yBAAyB,EAAE,CAE1C;IAED;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,yBAAyB,EAAE,CAIxE;IAED;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAEhE;IAED;;;;;;OAMG;IACH,mBAAmB,CACjB,eAAe,EAAE,MAAM,GACtB,SAAS,yBAAyB,EAAE,CAItC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,yBAAyB,CAc5D;CACF"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * The faces one collection holds.
3
+ *
4
+ * They are kept in the order they were indexed, which is the order a listing
5
+ * reports them in. Real Rekognition documents no order for `ListFaces`, so
6
+ * indexing order is a simulator convention rather than AWS behaviour.
7
+ */
8
+ export class SimRekognitionCollectionFaces {
9
+ faces = new Map();
10
+ /**
11
+ * Record a face against this collection.
12
+ */
13
+ index(face) {
14
+ this.faces.set(face.faceId, face);
15
+ }
16
+ /**
17
+ * Every face held here.
18
+ */
19
+ all() {
20
+ return this.faces.values().toArray();
21
+ }
22
+ /**
23
+ * The faces with these ids, leaving out any id this collection does not
24
+ * hold.
25
+ */
26
+ withIds(faceIds) {
27
+ const wanted = new Set(faceIds);
28
+ return this.all().filter((face) => wanted.has(face.faceId));
29
+ }
30
+ /**
31
+ * The face with this id, when this collection holds it.
32
+ */
33
+ withFaceId(faceId) {
34
+ return this.faces.get(faceId);
35
+ }
36
+ /**
37
+ * The faces indexed under this external image id.
38
+ *
39
+ * There can be several. Real Rekognition takes an `ExternalImageId` as a
40
+ * label the caller chose rather than as a key, so a photograph of the same
41
+ * person indexed twice leaves two faces under one id.
42
+ */
43
+ withExternalImageId(externalImageId) {
44
+ return this.all().filter((face) => face.externalImageId === externalImageId);
45
+ }
46
+ /**
47
+ * Remove the faces with these ids.
48
+ *
49
+ * An id this collection does not hold is reported back rather than dropped,
50
+ * because real Rekognition answers for every id a request named. A request
51
+ * naming the same id twice is one removal, since the second one would
52
+ * otherwise be reported as a face that could not be found.
53
+ */
54
+ remove(faceIds) {
55
+ const removed = [];
56
+ const missing = [];
57
+ const wanted = new Set(faceIds);
58
+ for (const faceId of wanted) {
59
+ if (this.faces.delete(faceId)) {
60
+ removed.push(faceId);
61
+ }
62
+ else {
63
+ missing.push(faceId);
64
+ }
65
+ }
66
+ return { removed, missing };
67
+ }
68
+ }
69
+ //# sourceMappingURL=sim-rekognition-collection-faces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-rekognition-collection-faces.js","sourceRoot":"","sources":["../../../../src/service/rekognition/collection/sim-rekognition-collection-faces.ts"],"names":[],"mappings":"AAUA;;;;;;GAMG;AACH,MAAM,OAAO,6BAA6B;IACvB,KAAK,GAAG,IAAI,GAAG,EAAqC,CAAC;IAEtE;;OAEG;IACH,KAAK,CAAC,IAA+B;QACnC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IACvC,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,OAA0B;QAChC,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QAEhC,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,MAAc;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CACjB,eAAuB;QAEvB,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CACtB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,KAAK,eAAe,CACnD,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,OAA0B;QAC/B,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QAEhC,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE,CAAC;YAC5B,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC9B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACvB,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,26 @@
1
+ import type { Brand } from "../../../util/brand.type.js";
2
+ import type { SimRekognitionCollectionFaces } from "./sim-rekognition-collection-faces.js";
3
+ export type SimRekognitionCollectionId = Brand<string, "SimRekognitionCollectionId">;
4
+ /**
5
+ * The face model version every collection this simulation makes reports.
6
+ *
7
+ * Real Rekognition stamps a collection with the model version in force when it
8
+ * was created, and the version moves as AWS retrains. Nothing here recognises a
9
+ * face, so one fixed version is stated rather than a moving one invented.
10
+ */
11
+ export declare const simRekognitionFaceModelVersion = "7.0";
12
+ /**
13
+ * One simulated Rekognition face collection.
14
+ *
15
+ * A collection is its identity and the faces indexed into it. The faces belong
16
+ * to the collection record rather than to a store of their own, so removing a
17
+ * collection removes the faces with it, as it does on AWS.
18
+ */
19
+ export interface SimRekognitionCollection {
20
+ readonly collectionId: SimRekognitionCollectionId;
21
+ readonly arn: string;
22
+ readonly faceModelVersion: string;
23
+ readonly createdAt: Date;
24
+ readonly faces: SimRekognitionCollectionFaces;
25
+ }
26
+ //# sourceMappingURL=sim-rekognition-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-rekognition-collection.d.ts","sourceRoot":"","sources":["../../../../src/service/rekognition/collection/sim-rekognition-collection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAE3F,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAC5C,MAAM,EACN,4BAA4B,CAC7B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,QAAQ,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC;IAClD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,6BAA6B,CAAC;CAC/C"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The face model version every collection this simulation makes reports.
3
+ *
4
+ * Real Rekognition stamps a collection with the model version in force when it
5
+ * was created, and the version moves as AWS retrains. Nothing here recognises a
6
+ * face, so one fixed version is stated rather than a moving one invented.
7
+ */
8
+ export const simRekognitionFaceModelVersion = "7.0";
9
+ //# sourceMappingURL=sim-rekognition-collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-rekognition-collection.js","sourceRoot":"","sources":["../../../../src/service/rekognition/collection/sim-rekognition-collection.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,KAAK,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
2
+ import { type SimRekognitionCollection } from "./sim-rekognition-collection.js";
3
+ interface SimRekognitionCollectionsProperties {
4
+ readonly accountRegionScope: SimAwsAccountRegionScope;
5
+ }
6
+ /**
7
+ * The face collections one Account and Region holds.
8
+ *
9
+ * Real Rekognition scopes a collection to both, so a collection made in one
10
+ * Region is invisible from another. Simulated Rekognition is built per Account
11
+ * and Region already, which is what makes this an ordinary map rather than
12
+ * something that has to check a scope on every call.
13
+ */
14
+ export declare class SimRekognitionCollections {
15
+ private readonly collections;
16
+ private readonly accountRegionScope;
17
+ constructor(properties: SimRekognitionCollectionsProperties);
18
+ /**
19
+ * The ARN a collection of this name would have, whether or not it exists.
20
+ *
21
+ * Authorization needs this before the collection does, since a policy naming
22
+ * a collection has to be evaluated for a request to create one.
23
+ */
24
+ arnFor(collectionId: string): string;
25
+ /**
26
+ * Record a new collection.
27
+ *
28
+ * Throws when one of that name is already held, as real Rekognition does
29
+ * rather than answering with the collection that is there.
30
+ */
31
+ create(collectionId: string, createdAt: Date): SimRekognitionCollection;
32
+ /**
33
+ * The collection of this name, refusing one that was never created.
34
+ *
35
+ * Every operation that works on the faces in a collection needs this, and
36
+ * real Rekognition reports a collection it does not hold the same way
37
+ * whichever operation asked for it.
38
+ */
39
+ require(collectionId: string): SimRekognitionCollection;
40
+ /**
41
+ * Every collection held here, in the order they were created.
42
+ */
43
+ all(): readonly SimRekognitionCollection[];
44
+ /**
45
+ * Remove a collection, refusing one that was never created.
46
+ */
47
+ remove(collectionId: string): SimRekognitionCollection;
48
+ }
49
+ export {};
50
+ //# sourceMappingURL=sim-rekognition-collections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-rekognition-collections.d.ts","sourceRoot":"","sources":["../../../../src/service/rekognition/collection/sim-rekognition-collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAM1F,OAAO,EAEL,KAAK,wBAAwB,EAE9B,MAAM,iCAAiC,CAAC;AAEzC,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAGxB;IAEJ,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA2B;IAE9D,YAAY,UAAU,EAAE,mCAAmC,EAE1D;IAED;;;;;OAKG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAInC;IAED;;;;;OAKG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,wBAAwB,CAmBtE;IAED;;;;;;OAMG;IACH,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,wBAAwB,CAYtD;IAED;;OAEG;IACH,GAAG,IAAI,SAAS,wBAAwB,EAAE,CAEzC;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,wBAAwB,CAMrD;CACF"}
@@ -0,0 +1,78 @@
1
+ import { SimRekognitionResourceAlreadyExistsException, SimRekognitionResourceNotFoundException, } from "../error/sim-rekognition.error.js";
2
+ import { SimRekognitionCollectionFaces } from "./sim-rekognition-collection-faces.js";
3
+ import { simRekognitionFaceModelVersion, } from "./sim-rekognition-collection.js";
4
+ /**
5
+ * The face collections one Account and Region holds.
6
+ *
7
+ * Real Rekognition scopes a collection to both, so a collection made in one
8
+ * Region is invisible from another. Simulated Rekognition is built per Account
9
+ * and Region already, which is what makes this an ordinary map rather than
10
+ * something that has to check a scope on every call.
11
+ */
12
+ export class SimRekognitionCollections {
13
+ collections = new Map();
14
+ accountRegionScope;
15
+ constructor(properties) {
16
+ this.accountRegionScope = properties.accountRegionScope;
17
+ }
18
+ /**
19
+ * The ARN a collection of this name would have, whether or not it exists.
20
+ *
21
+ * Authorization needs this before the collection does, since a policy naming
22
+ * a collection has to be evaluated for a request to create one.
23
+ */
24
+ arnFor(collectionId) {
25
+ const { accountId, regionName } = this.accountRegionScope;
26
+ return `arn:aws:rekognition:${regionName}:${accountId}:collection/${collectionId}`;
27
+ }
28
+ /**
29
+ * Record a new collection.
30
+ *
31
+ * Throws when one of that name is already held, as real Rekognition does
32
+ * rather than answering with the collection that is there.
33
+ */
34
+ create(collectionId, createdAt) {
35
+ const id = collectionId;
36
+ if (this.collections.has(id)) {
37
+ throw new SimRekognitionResourceAlreadyExistsException(`Rekognition collection ${collectionId} already exists`);
38
+ }
39
+ const collection = {
40
+ collectionId: id,
41
+ arn: this.arnFor(collectionId),
42
+ faceModelVersion: simRekognitionFaceModelVersion,
43
+ createdAt,
44
+ faces: new SimRekognitionCollectionFaces(),
45
+ };
46
+ this.collections.set(id, collection);
47
+ return collection;
48
+ }
49
+ /**
50
+ * The collection of this name, refusing one that was never created.
51
+ *
52
+ * Every operation that works on the faces in a collection needs this, and
53
+ * real Rekognition reports a collection it does not hold the same way
54
+ * whichever operation asked for it.
55
+ */
56
+ require(collectionId) {
57
+ const collection = this.collections.get(collectionId);
58
+ if (collection === undefined) {
59
+ throw new SimRekognitionResourceNotFoundException(`Rekognition collection ${collectionId} does not exist`);
60
+ }
61
+ return collection;
62
+ }
63
+ /**
64
+ * Every collection held here, in the order they were created.
65
+ */
66
+ all() {
67
+ return this.collections.values().toArray();
68
+ }
69
+ /**
70
+ * Remove a collection, refusing one that was never created.
71
+ */
72
+ remove(collectionId) {
73
+ const collection = this.require(collectionId);
74
+ this.collections.delete(collection.collectionId);
75
+ return collection;
76
+ }
77
+ }
78
+ //# sourceMappingURL=sim-rekognition-collections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-rekognition-collections.js","sourceRoot":"","sources":["../../../../src/service/rekognition/collection/sim-rekognition-collections.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4CAA4C,EAC5C,uCAAuC,GACxC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EACL,8BAA8B,GAG/B,MAAM,iCAAiC,CAAC;AAMzC;;;;;;;GAOG;AACH,MAAM,OAAO,yBAAyB;IACnB,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M,EAAE,CAAC,OAAO,EAAE,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAoB;QACzB,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAE9C,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QAEjD,OAAO,UAAU,CAAC;IACpB,CAAC;CACF"}
@@ -0,0 +1,41 @@
1
+ import type { SimRekognitionFaceOutput, SimRekognitionFaceRecordOutput } from "../command/face/face-output.js";
2
+ import type { SimRekognitionFaceAttributes } from "../face/sim-rekognition-face-attributes.js";
3
+ import type { SimRekognitionDetectedFace } from "../face/sim-rekognition-detected-face.js";
4
+ interface SimRekognitionIndexedFaceProperties {
5
+ readonly faceId: string;
6
+ readonly imageId: string;
7
+ readonly externalImageId: string | undefined;
8
+ readonly faceModelVersion: string;
9
+ readonly detected: SimRekognitionDetectedFace;
10
+ }
11
+ /**
12
+ * One face indexed into a collection.
13
+ *
14
+ * The face it was indexed from is kept rather than a copy of the detail, so
15
+ * the bounding box and confidence a collection reports are the ones the
16
+ * `faces()` rules declared for the image it came from. A face indexed from an
17
+ * image and a face detected in that same image are then the same face.
18
+ */
19
+ export declare class SimRekognitionIndexedFace {
20
+ readonly faceId: string;
21
+ readonly externalImageId: string | undefined;
22
+ private readonly imageId;
23
+ private readonly faceModelVersion;
24
+ private readonly detected;
25
+ constructor(properties: SimRekognitionIndexedFaceProperties);
26
+ /**
27
+ * This face as a listing or a search match reports it.
28
+ *
29
+ * Real Rekognition keeps a face vector rather than the detail the indexing
30
+ * request asked for, so a face read back this way carries a bounding box
31
+ * and a confidence whatever `DetectionAttributes` the indexing asked for.
32
+ */
33
+ stored(): SimRekognitionFaceOutput;
34
+ /**
35
+ * This face as the indexing that stored it reports it, with the detail that
36
+ * request asked for.
37
+ */
38
+ record(attributes: SimRekognitionFaceAttributes): SimRekognitionFaceRecordOutput;
39
+ }
40
+ export {};
41
+ //# sourceMappingURL=sim-rekognition-indexed-face.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-rekognition-indexed-face.d.ts","sourceRoot":"","sources":["../../../../src/service/rekognition/collection/sim-rekognition-indexed-face.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAE3F,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;CAC/C;AAED;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEtD,YAAY,UAAU,EAAE,mCAAmC,EAM1D;IAED;;;;;;OAMG;IACH,MAAM,IAAI,wBAAwB,CAajC;IAED;;;OAGG;IACH,MAAM,CACJ,UAAU,EAAE,4BAA4B,GACvC,8BAA8B,CAKhC;CACF"}