@kensio/yulin 1.12.0 → 1.12.1

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 (359) hide show
  1. package/dist/serve/controller/host/sim-aws-service-hosts.d.ts +27 -0
  2. package/dist/serve/controller/host/sim-aws-service-hosts.d.ts.map +1 -0
  3. package/dist/serve/controller/host/sim-aws-service-hosts.js +13 -0
  4. package/dist/serve/controller/host/sim-aws-service-hosts.js.map +1 -0
  5. package/dist/serve/http/url/sim-aws-local-url.d.ts.map +1 -1
  6. package/dist/serve/http/url/sim-aws-local-url.js +1 -0
  7. package/dist/serve/http/url/sim-aws-local-url.js.map +1 -1
  8. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  9. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +1 -0
  10. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  11. package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts +3 -0
  12. package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts.map +1 -1
  13. package/dist/service/aws/factory/sim-aws-account-service-cache.js +3 -0
  14. package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
  15. package/dist/service/aws/factory/sim-aws-scoped-service-registries.d.ts +8 -0
  16. package/dist/service/aws/factory/sim-aws-scoped-service-registries.d.ts.map +1 -1
  17. package/dist/service/aws/factory/sim-aws-scoped-service-registries.js +8 -0
  18. package/dist/service/aws/factory/sim-aws-scoped-service-registries.js.map +1 -1
  19. package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
  20. package/dist/service/aws/factory/sim-aws-service-factory.js +3 -0
  21. package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
  22. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.d.ts.map +1 -1
  23. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.js +14 -0
  24. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-cfn-value-adapter.js.map +1 -1
  25. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-idp-cfn.d.ts +26 -0
  26. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-idp-cfn.d.ts.map +1 -0
  27. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-idp-cfn.js +25 -0
  28. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-idp-cfn.js.map +1 -0
  29. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-domain-cfn.d.ts +31 -0
  30. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-domain-cfn.d.ts.map +1 -0
  31. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-domain-cfn.js +33 -0
  32. package/dist/service/cloudformation/resource/cfn/cognito/sim-cognito-user-pool-domain-cfn.js.map +1 -0
  33. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts +1 -0
  34. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
  35. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +20 -9
  36. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
  37. package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.d.ts +26 -0
  38. package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.d.ts.map +1 -0
  39. package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.js +34 -0
  40. package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.js.map +1 -0
  41. package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-properties.d.ts +37 -0
  42. package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-properties.d.ts.map +1 -0
  43. package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-properties.js +67 -0
  44. package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-properties.js.map +1 -0
  45. package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.d.ts +26 -0
  46. package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.d.ts.map +1 -0
  47. package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.js +37 -0
  48. package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.js.map +1 -0
  49. package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-properties.d.ts +40 -0
  50. package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-properties.d.ts.map +1 -0
  51. package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-properties.js +74 -0
  52. package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-properties.js.map +1 -0
  53. package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.d.ts +29 -3
  54. package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.d.ts.map +1 -1
  55. package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.js +88 -26
  56. package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.js.map +1 -1
  57. package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts +5 -3
  58. package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts.map +1 -1
  59. package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js +15 -3
  60. package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js.map +1 -1
  61. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +6 -0
  62. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
  63. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +1 -3
  64. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
  65. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts +0 -1
  66. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
  67. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -4
  68. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
  69. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +2 -3
  70. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
  71. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +3 -4
  72. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
  73. package/dist/service/cognito/command/client/user-pool-client.command.d.ts +5 -6
  74. package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
  75. package/dist/service/cognito/command/domain/sim-cognito-domain-commands.d.ts +62 -0
  76. package/dist/service/cognito/command/domain/sim-cognito-domain-commands.d.ts.map +1 -0
  77. package/dist/service/cognito/command/domain/sim-cognito-domain-commands.js +87 -0
  78. package/dist/service/cognito/command/domain/sim-cognito-domain-commands.js.map +1 -0
  79. package/dist/service/cognito/command/domain/sim-cognito-domain-view.d.ts +19 -0
  80. package/dist/service/cognito/command/domain/sim-cognito-domain-view.d.ts.map +1 -0
  81. package/dist/service/cognito/command/domain/sim-cognito-domain-view.js +38 -0
  82. package/dist/service/cognito/command/domain/sim-cognito-domain-view.js.map +1 -0
  83. package/dist/service/cognito/command/domain/user-pool-domain.command.d.ts +72 -0
  84. package/dist/service/cognito/command/domain/user-pool-domain.command.d.ts.map +1 -0
  85. package/dist/service/cognito/command/domain/user-pool-domain.command.js +2 -0
  86. package/dist/service/cognito/command/domain/user-pool-domain.command.js.map +1 -0
  87. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +69 -0
  88. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -0
  89. package/dist/service/cognito/command/hosted/hosted-auth.command.js +2 -0
  90. package/dist/service/cognito/command/hosted/hosted-auth.command.js.map +1 -0
  91. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +38 -0
  92. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts.map +1 -0
  93. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +72 -0
  94. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js.map +1 -0
  95. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts +37 -0
  96. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts.map +1 -0
  97. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js +123 -0
  98. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js.map +1 -0
  99. package/dist/service/cognito/command/hosted/sim-cognito-granted-scopes.d.ts +16 -0
  100. package/dist/service/cognito/command/hosted/sim-cognito-granted-scopes.d.ts.map +1 -0
  101. package/dist/service/cognito/command/hosted/sim-cognito-granted-scopes.js +34 -0
  102. package/dist/service/cognito/command/hosted/sim-cognito-granted-scopes.js.map +1 -0
  103. package/dist/service/cognito/command/hosted/sim-cognito-granted-tokens.d.ts +16 -0
  104. package/dist/service/cognito/command/hosted/sim-cognito-granted-tokens.d.ts.map +1 -0
  105. package/dist/service/cognito/command/hosted/sim-cognito-granted-tokens.js +32 -0
  106. package/dist/service/cognito/command/hosted/sim-cognito-granted-tokens.js.map +1 -0
  107. package/dist/service/cognito/command/hosted/sim-cognito-hosted-client.d.ts +49 -0
  108. package/dist/service/cognito/command/hosted/sim-cognito-hosted-client.d.ts.map +1 -0
  109. package/dist/service/cognito/command/hosted/sim-cognito-hosted-client.js +98 -0
  110. package/dist/service/cognito/command/hosted/sim-cognito-hosted-client.js.map +1 -0
  111. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts +28 -0
  112. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -0
  113. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +27 -0
  114. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -0
  115. package/dist/service/cognito/command/hosted/sim-cognito-logout-endpoint.d.ts +22 -0
  116. package/dist/service/cognito/command/hosted/sim-cognito-logout-endpoint.d.ts.map +1 -0
  117. package/dist/service/cognito/command/hosted/sim-cognito-logout-endpoint.js +43 -0
  118. package/dist/service/cognito/command/hosted/sim-cognito-logout-endpoint.js.map +1 -0
  119. package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.d.ts +47 -0
  120. package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.d.ts.map +1 -0
  121. package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js +92 -0
  122. package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js.map +1 -0
  123. package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.d.ts +33 -0
  124. package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.d.ts.map +1 -0
  125. package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.js +58 -0
  126. package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.js.map +1 -0
  127. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts +42 -0
  128. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts.map +1 -0
  129. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js +70 -0
  130. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js.map +1 -0
  131. package/dist/service/cognito/command/idp/identity-provider.command.d.ts +118 -0
  132. package/dist/service/cognito/command/idp/identity-provider.command.d.ts.map +1 -0
  133. package/dist/service/cognito/command/idp/identity-provider.command.js +2 -0
  134. package/dist/service/cognito/command/idp/identity-provider.command.js.map +1 -0
  135. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.d.ts +54 -0
  136. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.d.ts.map +1 -0
  137. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.js +94 -0
  138. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.js.map +1 -0
  139. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-view.d.ts +22 -0
  140. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-view.d.ts.map +1 -0
  141. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-view.js +38 -0
  142. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-view.js.map +1 -0
  143. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +3 -0
  144. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  145. package/dist/service/cognito/command/sim-cognito-commands.d.ts +8 -0
  146. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  147. package/dist/service/cognito/command/sim-cognito-commands.js +30 -1
  148. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  149. package/dist/service/cognito/error/sim-cognito-oauth.error.d.ts +42 -0
  150. package/dist/service/cognito/error/sim-cognito-oauth.error.d.ts.map +1 -0
  151. package/dist/service/cognito/error/sim-cognito-oauth.error.js +29 -0
  152. package/dist/service/cognito/error/sim-cognito-oauth.error.js.map +1 -0
  153. package/dist/service/cognito/error/sim-cognito.error.d.ts +10 -0
  154. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  155. package/dist/service/cognito/error/sim-cognito.error.js +12 -0
  156. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  157. package/dist/service/cognito/index.d.ts +15 -1
  158. package/dist/service/cognito/index.d.ts.map +1 -1
  159. package/dist/service/cognito/index.js +15 -1
  160. package/dist/service/cognito/index.js.map +1 -1
  161. package/dist/service/cognito/registry/sim-cognito-domain-registry.d.ts +49 -0
  162. package/dist/service/cognito/registry/sim-cognito-domain-registry.d.ts.map +1 -0
  163. package/dist/service/cognito/registry/sim-cognito-domain-registry.js +83 -0
  164. package/dist/service/cognito/registry/sim-cognito-domain-registry.js.map +1 -0
  165. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts +3 -2
  166. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts.map +1 -1
  167. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js +5 -2
  168. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js.map +1 -1
  169. package/dist/service/cognito/sdk/sim-cognito-sdk-federation-routes.d.ts +7 -0
  170. package/dist/service/cognito/sdk/sim-cognito-sdk-federation-routes.d.ts.map +1 -0
  171. package/dist/service/cognito/sdk/sim-cognito-sdk-federation-routes.js +41 -0
  172. package/dist/service/cognito/sdk/sim-cognito-sdk-federation-routes.js.map +1 -0
  173. package/dist/service/cognito/serve/sim-cognito-controller.d.ts +5 -0
  174. package/dist/service/cognito/serve/sim-cognito-controller.d.ts.map +1 -1
  175. package/dist/service/cognito/serve/sim-cognito-controller.js +12 -2
  176. package/dist/service/cognito/serve/sim-cognito-controller.js.map +1 -1
  177. package/dist/service/cognito/serve/sim-cognito-domain-controller.d.ts +48 -0
  178. package/dist/service/cognito/serve/sim-cognito-domain-controller.d.ts.map +1 -0
  179. package/dist/service/cognito/serve/sim-cognito-domain-controller.js +79 -0
  180. package/dist/service/cognito/serve/sim-cognito-domain-controller.js.map +1 -0
  181. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts +49 -0
  182. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts.map +1 -0
  183. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js +91 -0
  184. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js.map +1 -0
  185. package/dist/service/cognito/serve/sim-cognito-oauth-response.d.ts +57 -0
  186. package/dist/service/cognito/serve/sim-cognito-oauth-response.d.ts.map +1 -0
  187. package/dist/service/cognito/serve/sim-cognito-oauth-response.js +113 -0
  188. package/dist/service/cognito/serve/sim-cognito-oauth-response.js.map +1 -0
  189. package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts +15 -4
  190. package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts.map +1 -1
  191. package/dist/service/cognito/serve/sim-cognito-openid-configuration.js +28 -4
  192. package/dist/service/cognito/serve/sim-cognito-openid-configuration.js.map +1 -1
  193. package/dist/service/cognito/serve/sim-cognito-token-request.d.ts +30 -0
  194. package/dist/service/cognito/serve/sim-cognito-token-request.d.ts.map +1 -0
  195. package/dist/service/cognito/serve/sim-cognito-token-request.js +66 -0
  196. package/dist/service/cognito/serve/sim-cognito-token-request.js.map +1 -0
  197. package/dist/service/cognito/sim-cognito-federation.d.ts +74 -0
  198. package/dist/service/cognito/sim-cognito-federation.d.ts.map +1 -0
  199. package/dist/service/cognito/sim-cognito-federation.js +99 -0
  200. package/dist/service/cognito/sim-cognito-federation.js.map +1 -0
  201. package/dist/service/cognito/sim-cognito-identity-provider.d.ts +21 -2
  202. package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
  203. package/dist/service/cognito/sim-cognito-identity-provider.js +21 -4
  204. package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
  205. package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code-store.d.ts +28 -0
  206. package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code-store.d.ts.map +1 -0
  207. package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code-store.js +52 -0
  208. package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code-store.js.map +1 -0
  209. package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.d.ts +57 -0
  210. package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.d.ts.map +1 -0
  211. package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.js +75 -0
  212. package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.js.map +1 -0
  213. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts +8 -0
  214. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts.map +1 -1
  215. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js +13 -0
  216. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js.map +1 -1
  217. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +10 -0
  218. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -1
  219. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +6 -0
  220. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
  221. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +47 -4
  222. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
  223. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +58 -4
  224. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
  225. package/dist/service/cognito/user-pool/client/sim-cognito-oauth-grants.d.ts +18 -0
  226. package/dist/service/cognito/user-pool/client/sim-cognito-oauth-grants.d.ts.map +1 -0
  227. package/dist/service/cognito/user-pool/client/sim-cognito-oauth-grants.js +61 -0
  228. package/dist/service/cognito/user-pool/client/sim-cognito-oauth-grants.js.map +1 -0
  229. package/dist/service/cognito/user-pool/client/sim-cognito-oauth-settings.d.ts +60 -0
  230. package/dist/service/cognito/user-pool/client/sim-cognito-oauth-settings.d.ts.map +1 -0
  231. package/dist/service/cognito/user-pool/client/sim-cognito-oauth-settings.js +83 -0
  232. package/dist/service/cognito/user-pool/client/sim-cognito-oauth-settings.js.map +1 -0
  233. package/dist/service/cognito/user-pool/client/sim-cognito-redirect-urls.d.ts +22 -0
  234. package/dist/service/cognito/user-pool/client/sim-cognito-redirect-urls.d.ts.map +1 -0
  235. package/dist/service/cognito/user-pool/client/sim-cognito-redirect-urls.js +47 -0
  236. package/dist/service/cognito/user-pool/client/sim-cognito-redirect-urls.js.map +1 -0
  237. package/dist/service/cognito/user-pool/client/sim-cognito-requested-oauth.d.ts +29 -0
  238. package/dist/service/cognito/user-pool/client/sim-cognito-requested-oauth.d.ts.map +1 -0
  239. package/dist/service/cognito/user-pool/client/sim-cognito-requested-oauth.js +64 -0
  240. package/dist/service/cognito/user-pool/client/sim-cognito-requested-oauth.js.map +1 -0
  241. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +4 -5
  242. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
  243. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +4 -5
  244. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
  245. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +4 -4
  246. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
  247. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +4 -4
  248. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
  249. package/dist/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.d.ts +30 -0
  250. package/dist/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.d.ts.map +1 -0
  251. package/dist/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.js +37 -0
  252. package/dist/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.js.map +1 -0
  253. package/dist/service/cognito/user-pool/domain/sim-cognito-domain-name.d.ts +58 -0
  254. package/dist/service/cognito/user-pool/domain/sim-cognito-domain-name.d.ts.map +1 -0
  255. package/dist/service/cognito/user-pool/domain/sim-cognito-domain-name.js +123 -0
  256. package/dist/service/cognito/user-pool/domain/sim-cognito-domain-name.js.map +1 -0
  257. package/dist/service/cognito/user-pool/domain/sim-cognito-pool-domains.d.ts +33 -0
  258. package/dist/service/cognito/user-pool/domain/sim-cognito-pool-domains.d.ts.map +1 -0
  259. package/dist/service/cognito/user-pool/domain/sim-cognito-pool-domains.js +66 -0
  260. package/dist/service/cognito/user-pool/domain/sim-cognito-pool-domains.js.map +1 -0
  261. package/dist/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.d.ts +58 -0
  262. package/dist/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.d.ts.map +1 -0
  263. package/dist/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.js +70 -0
  264. package/dist/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.js.map +1 -0
  265. package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.d.ts +40 -0
  266. package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.d.ts.map +1 -0
  267. package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.js +56 -0
  268. package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.js.map +1 -0
  269. package/dist/service/cognito/user-pool/idp/sim-cognito-external-user.d.ts +37 -0
  270. package/dist/service/cognito/user-pool/idp/sim-cognito-external-user.d.ts.map +1 -0
  271. package/dist/service/cognito/user-pool/idp/sim-cognito-external-user.js +28 -0
  272. package/dist/service/cognito/user-pool/idp/sim-cognito-external-user.js.map +1 -0
  273. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts +64 -0
  274. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts.map +1 -0
  275. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js +50 -0
  276. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js.map +1 -0
  277. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.d.ts +47 -0
  278. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.d.ts.map +1 -0
  279. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js +72 -0
  280. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js.map +1 -0
  281. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.d.ts +37 -0
  282. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.d.ts.map +1 -0
  283. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.js +55 -0
  284. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.js.map +1 -0
  285. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-store.d.ts +39 -0
  286. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-store.d.ts.map +1 -0
  287. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-store.js +58 -0
  288. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-store.js.map +1 -0
  289. package/dist/service/cognito/user-pool/idp/sim-cognito-provider-details.d.ts +29 -0
  290. package/dist/service/cognito/user-pool/idp/sim-cognito-provider-details.d.ts.map +1 -0
  291. package/dist/service/cognito/user-pool/idp/sim-cognito-provider-details.js +52 -0
  292. package/dist/service/cognito/user-pool/idp/sim-cognito-provider-details.js.map +1 -0
  293. package/dist/service/cognito/user-pool/idp/sim-cognito-provider-type.d.ts +24 -0
  294. package/dist/service/cognito/user-pool/idp/sim-cognito-provider-type.d.ts.map +1 -0
  295. package/dist/service/cognito/user-pool/idp/sim-cognito-provider-type.js +67 -0
  296. package/dist/service/cognito/user-pool/idp/sim-cognito-provider-type.js.map +1 -0
  297. package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.d.ts +82 -0
  298. package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.d.ts.map +1 -0
  299. package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.js +108 -0
  300. package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.js.map +1 -0
  301. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts +11 -1
  302. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts.map +1 -1
  303. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js +11 -1
  304. package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js.map +1 -1
  305. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts +5 -0
  306. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts.map +1 -1
  307. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js +16 -5
  308. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js.map +1 -1
  309. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts +7 -0
  310. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts.map +1 -1
  311. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js +14 -0
  312. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js.map +1 -1
  313. package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts +10 -1
  314. package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts.map +1 -1
  315. package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.js.map +1 -1
  316. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +5 -0
  317. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
  318. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +3 -0
  319. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
  320. package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.d.ts +9 -0
  321. package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.d.ts.map +1 -0
  322. package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.js +39 -0
  323. package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.js.map +1 -0
  324. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts.map +1 -1
  325. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js +2 -29
  326. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js.map +1 -1
  327. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts +15 -0
  328. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts.map +1 -1
  329. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js +17 -0
  330. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js.map +1 -1
  331. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +14 -4
  332. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
  333. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +13 -3
  334. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
  335. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +20 -0
  336. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  337. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +29 -1
  338. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  339. package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts +1 -0
  340. package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts.map +1 -1
  341. package/dist/service/route53/resolve/sim-r53-service-target-resolver.js +1 -0
  342. package/dist/service/route53/resolve/sim-r53-service-target-resolver.js.map +1 -1
  343. package/dist/service/route53/resolve/sim-route53-resolver.d.ts +7 -0
  344. package/dist/service/route53/resolve/sim-route53-resolver.d.ts.map +1 -1
  345. package/dist/service/route53/resolve/sim-route53-resolver.js +12 -4
  346. package/dist/service/route53/resolve/sim-route53-resolver.js.map +1 -1
  347. package/dist/service/route53/sim-route53.d.ts +8 -0
  348. package/dist/service/route53/sim-route53.d.ts.map +1 -1
  349. package/dist/service/route53/sim-route53.js +1 -0
  350. package/dist/service/route53/sim-route53.js.map +1 -1
  351. package/package.json +1 -1
  352. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts +0 -24
  353. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts.map +0 -1
  354. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js +0 -51
  355. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js.map +0 -1
  356. package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.d.ts +0 -42
  357. package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.d.ts.map +0 -1
  358. package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.js +0 -44
  359. package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.js.map +0 -1
@@ -56,6 +56,18 @@ export class SimCognitoGroupExistsException extends SimCognitoError {
56
56
  super(message, { httpStatusCode: 400 });
57
57
  }
58
58
  }
59
+ /**
60
+ * Simulated Cognito DuplicateProviderException error.
61
+ *
62
+ * Real Cognito reports a second identity provider added under a name the pool
63
+ * already holds this way, rather than as a bad parameter.
64
+ */
65
+ export class SimCognitoDuplicateProviderException extends SimCognitoError {
66
+ name = "DuplicateProviderException";
67
+ constructor(message) {
68
+ super(message, { httpStatusCode: 400 });
69
+ }
70
+ }
59
71
  /**
60
72
  * Simulated Cognito UserNotFoundException error.
61
73
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito.error.js","sourceRoot":"","sources":["../../../../src/service/cognito/error/sim-cognito.error.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAGtB,SAAS;IAF3B,YACE,OAAe,EACC,SAAS,GAA4B,EAAE;QAEvD,KAAK,CAAC,OAAO,CAAC,CAAC;yBAFC,SAAS;IAG3B,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,mCAAoC,SAAQ,eAAe;IAC7C,IAAI,GAAG,2BAA2B,CAAC;IAE5D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,mCAAoC,SAAQ,eAAe;IAC7C,IAAI,GAAG,2BAA2B,CAAC;IAE5D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,iCAAkC,SAAQ,eAAe;IAC3C,IAAI,GAAG,yBAAyB,CAAC;IAE1D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;A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O,+BAAgC,SAAQ,eAAe;IACzC,IAAI,GAAG,uBAAuB,CAAC;IAExD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAO,gCAAiC,SAAQ,eAAe;IAC1C,IAAI,GAAG,wBAAwB,CAAC;IAEzD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,mCAAoC,SAAQ,eAAe;IAC7C,IAAI,GAAG,2BAA2B,CAAC;IAE5D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,+BAAgC,SAAQ,eAAe;IACzC,IAAI,GAAG,uBAAuB,CAAC;IAExD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,kCAAmC,SAAQ,eAAe;IAC5C,IAAI,GAAG,0BAA0B,CAAC;IAE3D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF"}
@@ -13,12 +13,25 @@ export { SimCognitoPreventUserExistenceErrors } from "./user-pool/client/sim-cog
13
13
  export { SimCognitoTokenLifetime, type SimCognitoTokenValidityUnit, } from "./user-pool/client/sim-cognito-token-lifetime.js";
14
14
  export { SimCognitoTokenValidity, type SimCognitoTokenValidityInput, type SimCognitoTokenValidityUnitsType, } from "./user-pool/client/sim-cognito-token-validity.js";
15
15
  export { SimCognitoUserDirectory } from "./sim-cognito-user-directory.js";
16
+ export { SimCognitoFederation } from "./sim-cognito-federation.js";
16
17
  export { SimCognitoAuthentication } from "./sim-cognito-authentication.js";
17
18
  export { SimCognitoUser } from "./user-pool/user/sim-cognito-user.js";
18
19
  export { SimCognitoConfirmationCode } from "./user-pool/user/sim-cognito-confirmation-code.js";
19
20
  export type { SimCognitoUsername } from "./user-pool/user/sim-cognito-username.js";
20
21
  export { SimCognitoUserStatus, type SimCognitoUserStatusValue, } from "./user-pool/user/sim-cognito-user-status.js";
21
22
  export { SimCognitoUserAttributes, type SimCognitoAttributeType, } from "./user-pool/user/sim-cognito-user-attributes.js";
23
+ export { SimCognitoOAuthSettings, type SimCognitoOAuthSettingsType, } from "./user-pool/client/sim-cognito-oauth-settings.js";
24
+ export { SimCognitoUserPoolDomain } from "./user-pool/domain/sim-cognito-user-pool-domain.js";
25
+ export { SimCognitoDomainName } from "./user-pool/domain/sim-cognito-domain-name.js";
26
+ export { SimCognitoCustomDomainConfig, type SimCognitoCustomDomainConfigType, } from "./user-pool/domain/sim-cognito-custom-domain-config.js";
27
+ export { SimCognitoUserPoolIdentityProvider } from "./user-pool/idp/sim-cognito-user-pool-identity-provider.js";
28
+ export { SimCognitoIdentityProviderSettings, type SimCognitoIdentityProviderSettingsInput, } from "./user-pool/idp/sim-cognito-identity-provider-settings.js";
29
+ export { SimCognitoProviderType } from "./user-pool/idp/sim-cognito-provider-type.js";
30
+ export { SimCognitoProviderDetails, type SimCognitoProviderDetailsType, } from "./user-pool/idp/sim-cognito-provider-details.js";
31
+ export { SimCognitoAttributeMapping, type SimCognitoAttributeMappingType, } from "./user-pool/idp/sim-cognito-attribute-mapping.js";
32
+ export { SimCognitoExternalUser, type SimCognitoExternalUserType, } from "./user-pool/idp/sim-cognito-external-user.js";
33
+ export { SimCognitoFederatedIdentity, type SimCognitoIdentityClaim, } from "./user-pool/idp/sim-cognito-federated-identity.js";
34
+ export { SimCognitoAuthorizationCode } from "./user-pool/auth/sim-cognito-authorization-code.js";
22
35
  export { SimCognitoGroup } from "./user-pool/group/sim-cognito-group.js";
23
36
  export type { SimCognitoGroupName } from "./user-pool/group/sim-cognito-group-name.js";
24
37
  export { SimCognitoGroupSettings, type SimCognitoGroupSettingsInput, } from "./user-pool/group/sim-cognito-group-settings.js";
@@ -31,5 +44,6 @@ export { SimCognitoTriggerOccasion } from "./user-pool/trigger/sim-cognito-trigg
31
44
  export { SimCognitoAuthSession } from "./user-pool/auth/sim-cognito-auth-session.js";
32
45
  export { SimCognitoIssuedToken } from "./user-pool/auth/sim-cognito-issued-token.js";
33
46
  export { SimCognitoPoolAuth } from "./user-pool/auth/sim-cognito-pool-auth.js";
34
- export { SimCognitoCodeMismatchException, SimCognitoError, SimCognitoGroupExistsException, SimCognitoInvalidParameterException, SimCognitoInvalidPasswordException, SimCognitoNotAuthorizedException, SimCognitoResourceNotFoundException, SimCognitoUsernameExistsException, SimCognitoUserNotConfirmedException, SimCognitoUserNotFoundException, } from "./error/sim-cognito.error.js";
47
+ export { isSimCognitoOAuthError, SimCognitoOAuthError, type SimCognitoOAuthErrorCode, } from "./error/sim-cognito-oauth.error.js";
48
+ export { SimCognitoCodeMismatchException, SimCognitoDuplicateProviderException, SimCognitoError, SimCognitoGroupExistsException, SimCognitoInvalidParameterException, SimCognitoInvalidPasswordException, SimCognitoNotAuthorizedException, SimCognitoResourceNotFoundException, SimCognitoUsernameExistsException, SimCognitoUserNotConfirmedException, SimCognitoUserNotFoundException, } from "./error/sim-cognito.error.js";
35
49
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,KAAK,wCAAwC,GAC9C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,0CAA0C,CA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EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,eAAe,EACf,8BAA8B,EAC9B,mCAAmC,EACnC,kCAAkC,EAClC,gCAAgC,EAChC,mCAAmC,EACnC,iCAAiC,EACjC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,8BAA8B,CAAC"}
@@ -11,11 +11,24 @@ export { SimCognitoPreventUserExistenceErrors } from "./user-pool/client/sim-cog
11
11
  export { SimCognitoTokenLifetime, } from "./user-pool/client/sim-cognito-token-lifetime.js";
12
12
  export { SimCognitoTokenValidity, } from "./user-pool/client/sim-cognito-token-validity.js";
13
13
  export { SimCognitoUserDirectory } from "./sim-cognito-user-directory.js";
14
+ export { SimCognitoFederation } from "./sim-cognito-federation.js";
14
15
  export { SimCognitoAuthentication } from "./sim-cognito-authentication.js";
15
16
  export { SimCognitoUser } from "./user-pool/user/sim-cognito-user.js";
16
17
  export { SimCognitoConfirmationCode } from "./user-pool/user/sim-cognito-confirmation-code.js";
17
18
  export { SimCognitoUserStatus, } from "./user-pool/user/sim-cognito-user-status.js";
18
19
  export { SimCognitoUserAttributes, } from "./user-pool/user/sim-cognito-user-attributes.js";
20
+ export { SimCognitoOAuthSettings, } from "./user-pool/client/sim-cognito-oauth-settings.js";
21
+ export { SimCognitoUserPoolDomain } from "./user-pool/domain/sim-cognito-user-pool-domain.js";
22
+ export { SimCognitoDomainName } from "./user-pool/domain/sim-cognito-domain-name.js";
23
+ export { SimCognitoCustomDomainConfig, } from "./user-pool/domain/sim-cognito-custom-domain-config.js";
24
+ export { SimCognitoUserPoolIdentityProvider } from "./user-pool/idp/sim-cognito-user-pool-identity-provider.js";
25
+ export { SimCognitoIdentityProviderSettings, } from "./user-pool/idp/sim-cognito-identity-provider-settings.js";
26
+ export { SimCognitoProviderType } from "./user-pool/idp/sim-cognito-provider-type.js";
27
+ export { SimCognitoProviderDetails, } from "./user-pool/idp/sim-cognito-provider-details.js";
28
+ export { SimCognitoAttributeMapping, } from "./user-pool/idp/sim-cognito-attribute-mapping.js";
29
+ export { SimCognitoExternalUser, } from "./user-pool/idp/sim-cognito-external-user.js";
30
+ export { SimCognitoFederatedIdentity, } from "./user-pool/idp/sim-cognito-federated-identity.js";
31
+ export { SimCognitoAuthorizationCode } from "./user-pool/auth/sim-cognito-authorization-code.js";
19
32
  export { SimCognitoGroup } from "./user-pool/group/sim-cognito-group.js";
20
33
  export { SimCognitoGroupSettings, } from "./user-pool/group/sim-cognito-group-settings.js";
21
34
  export { SimCognitoSigningKey, } from "./user-pool/token/sim-cognito-signing-key.js";
@@ -26,5 +39,6 @@ export { SimCognitoTriggerOccasion } from "./user-pool/trigger/sim-cognito-trigg
26
39
  export { SimCognitoAuthSession } from "./user-pool/auth/sim-cognito-auth-session.js";
27
40
  export { SimCognitoIssuedToken } from "./user-pool/auth/sim-cognito-issued-token.js";
28
41
  export { SimCognitoPoolAuth } from "./user-pool/auth/sim-cognito-pool-auth.js";
29
- export { SimCognitoCodeMismatchException, SimCognitoError, SimCognitoGroupExistsException, SimCognitoInvalidParameterException, SimCognitoInvalidPasswordException, SimCognitoNotAuthorizedException, SimCognitoResourceNotFoundException, SimCognitoUsernameExistsException, SimCognitoUserNotConfirmedException, SimCognitoUserNotFoundException, } from "./error/sim-cognito.error.js";
42
+ export { isSimCognitoOAuthError, SimCognitoOAuthError, } from "./error/sim-cognito-oauth.error.js";
43
+ export { SimCognitoCodeMismatchException, SimCognitoDuplicateProviderException, SimCognitoError, SimCognitoGroupExistsException, SimCognitoInvalidParameterException, SimCognitoInvalidPasswordException, SimCognitoNotAuthorizedException, SimCognitoResourceNotFoundException, SimCognitoUsernameExistsException, SimCognitoUserNotConfirmedException, SimCognitoUserNotFoundException, } from "./error/sim-cognito.error.js";
30
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/service/cognito/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,GAE3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,4BAA4B,GAE7B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,+BAA+B,GAEhC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,EACL,wBAAwB,GAIzB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AAE9F,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,oCAAoC,EAAE,MAAM,iEAAiE,CAAC;AACvH,OAAO,EACL,uBAAuB,GAExB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,uBAAuB,GAGxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAE/F,OAAO,EACL,oBAAoB,GAErB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,wBAAwB,GAEzB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,OAAO,EACL,uBAAu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AAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,GAGrB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB,GAEtB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AACnG,OAAO,EACL,4BAA4B,GAE7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GAErB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,eAAe,EACf,8BAA8B,EAC9B,mCAAmC,EACnC,kCAAkC,EAClC,gCAAgC,EAChC,mCAAmC,EACnC,iCAAiC,EACjC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { SimAwsServiceHosts } from "../../../serve/controller/host/sim-aws-service-hosts.js";
2
+ import type { SimAwsServiceTarget } from "../../../serve/controller/sim-service-controller.js";
3
+ import type { SimCognitoUserPoolDomain } from "../user-pool/domain/sim-cognito-user-pool-domain.js";
4
+ /**
5
+ * Simulated Cognito cross-Account registry of user pool domains.
6
+ *
7
+ * A domain is unique across the whole of real AWS rather than within one
8
+ * account, so this is where that uniqueness is enforced, in the same way pool
9
+ * ids are allocated against the pool registry.
10
+ *
11
+ * It is also how a served request finds the pool it is for. A request to a
12
+ * hosted domain carries a hostname and nothing else: no pool id, no account,
13
+ * and for a custom domain nothing that says it is a Cognito hostname at all.
14
+ * That makes this the answer to which simulated service a hostname belongs to,
15
+ * which is what `SimAwsServiceHosts` asks.
16
+ */
17
+ export declare class SimCognitoDomainRegistry implements SimAwsServiceHosts {
18
+ private readonly domainsByName;
19
+ private readonly domainsByHost;
20
+ /**
21
+ * Register a newly created domain, so requests to it resolve.
22
+ *
23
+ * A domain string already in use is refused the way real Cognito refuses
24
+ * one, and so is a hostname already answered on, which is the same thing
25
+ * said in terms of the request that would arrive.
26
+ */
27
+ register(domain: SimCognitoUserPoolDomain): void;
28
+ /**
29
+ * Forget a deleted domain, so requests to it stop resolving.
30
+ */
31
+ deregister(domain: SimCognitoUserPoolDomain): void;
32
+ /**
33
+ * Find a domain by the domain string it was created with.
34
+ */
35
+ find(domainValue: string | undefined): SimCognitoUserPoolDomain | undefined;
36
+ /**
37
+ * Find the domain a request's hostname reaches.
38
+ */
39
+ findByHost(hostname: string): SimCognitoUserPoolDomain | undefined;
40
+ /**
41
+ * The simulated service target a hostname names, if a domain answers on it.
42
+ *
43
+ * The region comes from the pool's id rather than from the hostname, because
44
+ * a custom domain's hostname says nothing about where its pool lives.
45
+ */
46
+ targetForHost(hostname: string): SimAwsServiceTarget | undefined;
47
+ private requireUnused;
48
+ }
49
+ //# sourceMappingURL=sim-cognito-domain-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-domain-registry.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/registry/sim-cognito-domain-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAG/F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAGpG;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAyB,YAAW,kBAAkB;IACjE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA+C;IAC7E,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA+C;IAE7E;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI,CAQ/C;IAED;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI,CAMjD;IAED;;OAEG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,wBAAwB,GAAG,SAAS,CAM1E;IAED;;OAEG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAEjE;IAED;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAc/D;IAED,OAAO,CAAC,aAAa;CAatB"}
@@ -0,0 +1,83 @@
1
+ import { SimCognitoInvalidParameterException } from "../error/sim-cognito.error.js";
2
+ import { simCognitoUserPoolRegionName } from "../user-pool/sim-cognito-user-pool-id.js";
3
+ /**
4
+ * Simulated Cognito cross-Account registry of user pool domains.
5
+ *
6
+ * A domain is unique across the whole of real AWS rather than within one
7
+ * account, so this is where that uniqueness is enforced, in the same way pool
8
+ * ids are allocated against the pool registry.
9
+ *
10
+ * It is also how a served request finds the pool it is for. A request to a
11
+ * hosted domain carries a hostname and nothing else: no pool id, no account,
12
+ * and for a custom domain nothing that says it is a Cognito hostname at all.
13
+ * That makes this the answer to which simulated service a hostname belongs to,
14
+ * which is what `SimAwsServiceHosts` asks.
15
+ */
16
+ export class SimCognitoDomainRegistry {
17
+ domainsByName = new Map();
18
+ domainsByHost = new Map();
19
+ /**
20
+ * Register a newly created domain, so requests to it resolve.
21
+ *
22
+ * A domain string already in use is refused the way real Cognito refuses
23
+ * one, and so is a hostname already answered on, which is the same thing
24
+ * said in terms of the request that would arrive.
25
+ */
26
+ register(domain) {
27
+ this.requireUnused(domain);
28
+ this.domainsByName.set(domain.value, domain);
29
+ for (const hostname of domain.hostnames) {
30
+ this.domainsByHost.set(hostname.toLowerCase(), domain);
31
+ }
32
+ }
33
+ /**
34
+ * Forget a deleted domain, so requests to it stop resolving.
35
+ */
36
+ deregister(domain) {
37
+ this.domainsByName.delete(domain.value);
38
+ for (const hostname of domain.hostnames) {
39
+ this.domainsByHost.delete(hostname.toLowerCase());
40
+ }
41
+ }
42
+ /**
43
+ * Find a domain by the domain string it was created with.
44
+ */
45
+ find(domainValue) {
46
+ if (domainValue === undefined) {
47
+ return undefined;
48
+ }
49
+ return this.domainsByName.get(domainValue);
50
+ }
51
+ /**
52
+ * Find the domain a request's hostname reaches.
53
+ */
54
+ findByHost(hostname) {
55
+ return this.domainsByHost.get(hostname.toLowerCase());
56
+ }
57
+ /**
58
+ * The simulated service target a hostname names, if a domain answers on it.
59
+ *
60
+ * The region comes from the pool's id rather than from the hostname, because
61
+ * a custom domain's hostname says nothing about where its pool lives.
62
+ */
63
+ targetForHost(hostname) {
64
+ const domain = this.findByHost(hostname);
65
+ if (domain === undefined) {
66
+ return undefined;
67
+ }
68
+ return {
69
+ service: "cognitoIdentityProvider",
70
+ resourceName: domain.value,
71
+ regionName: simCognitoUserPoolRegionName(domain.userPoolId),
72
+ };
73
+ }
74
+ requireUnused(domain) {
75
+ const taken = domain.hostnames.some((hostname) => this.domainsByHost.has(hostname.toLowerCase()));
76
+ if (taken || this.domainsByName.has(domain.value)) {
77
+ throw new SimCognitoInvalidParameterException(`Domain '${domain.value}' is already in use: a user pool domain is ` +
78
+ `unique across every simulated Account and Region, as it is across ` +
79
+ `the whole of real AWS`);
80
+ }
81
+ }
82
+ }
83
+ //# sourceMappingURL=sim-cognito-domain-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-domain-registry.js","sourceRoot":"","sources":["../../../../src/service/cognito/registry/sim-cognito-domain-registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AAEpF,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAExF;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,aAAa,GAAG,IAAI,GAAG,EAAoC,CAAC;IAC5D,aAAa,GAAG,IAAI,GAA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C1B,UAAU,EAAE,4BAA4B,CACtC,MAAM,CAAC,UAAU,CACD;SACnB,CAAC;IACJ,CAAC;IAEO,aAAa,CAAC,MAAgC;QACpD,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC/C,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAC/C,CAAC;QAEF,IAAI,KAAK,IAAI,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YAClD,MAAM,IAAI,mCAAmC,CAC3C,WAAW,MAAM,CAAC,KAAK,6CAA6C;gBAClE,oEAAoE;gBACpE,uBAAuB,CAC1B,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
@@ -4,8 +4,9 @@ import type { SimCognitoIdentityProvider } from "../sim-cognito-identity-provide
4
4
  * Routes intercepted SDK Commands to one scoped simulated Cognito.
5
5
  *
6
6
  * The routes are grouped the way the operations themselves are, into pools and
7
- * their app clients, the users and groups in them, and signing in, so that
8
- * adding an operation touches the group it belongs to.
7
+ * their app clients, the users and groups in them, the domain and identity
8
+ * providers they federate through, and signing in, so that adding an operation
9
+ * touches the group it belongs to.
9
10
  */
10
11
  export declare class SimCognitoSdkCommandRouter implements SimSdkCommandRouter {
11
12
  private readonly routes;
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-sdk-command-router.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAKtF;;;;;;GAMG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IACpE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IAEjE,YAAY,UAAU,EAAE,0BAA0B,EAMjD;IAED;;OAEG;IACH,qBAAqB,IAAI,SAAS,MAAM,EAAE,CAEzC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAEzD;CACF"}
1
+ {"version":3,"file":"sim-cognito-sdk-command-router.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAMtF;;;;;;;GAOG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IACpE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IAEjE,YAAY,UAAU,EAAE,0BAA0B,EAOjD;IAED;;OAEG;IACH,qBAAqB,IAAI,SAAS,MAAM,EAAE,CAEzC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAEzD;CACF"}
@@ -1,12 +1,14 @@
1
1
  import { simCognitoSdkAuthRoutes } from "./sim-cognito-sdk-auth-routes.js";
2
2
  import { simCognitoSdkDirectoryRoutes } from "./sim-cognito-sdk-directory-routes.js";
3
+ import { simCognitoSdkFederationRoutes } from "./sim-cognito-sdk-federation-routes.js";
3
4
  import { simCognitoSdkPoolRoutes } from "./sim-cognito-sdk-pool-routes.js";
4
5
  /**
5
6
  * Routes intercepted SDK Commands to one scoped simulated Cognito.
6
7
  *
7
8
  * The routes are grouped the way the operations themselves are, into pools and
8
- * their app clients, the users and groups in them, and signing in, so that
9
- * adding an operation touches the group it belongs to.
9
+ * their app clients, the users and groups in them, the domain and identity
10
+ * providers they federate through, and signing in, so that adding an operation
11
+ * touches the group it belongs to.
10
12
  */
11
13
  export class SimCognitoSdkCommandRouter {
12
14
  routes;
@@ -15,6 +17,7 @@ export class SimCognitoSdkCommandRouter {
15
17
  ...simCognitoSdkPoolRoutes(simCognito),
16
18
  ...simCognitoSdkDirectoryRoutes(simCognito),
17
19
  ...simCognitoSdkAuthRoutes(simCognito),
20
+ ...simCognitoSdkFederationRoutes(simCognito),
18
21
  ]);
19
22
  }
20
23
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-sdk-command-router.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-command-router.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,OAAO,0BAA0B;IACpB,MAAM,CAA0C;IAEjE,YAAY,UAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,CAA6B;YAChD,GAAG,uBAAuB,CAAC,UAAU,CAAC;YACtC,GAAG,4BAA4B,CAAC,UAAU,CAAC;YAC3C,GAAG,uBAAuB,CAAC,UAAU,CAAC;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAmB;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-sdk-command-router.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-command-router.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,OAAO,0BAA0B;IACpB,MAAM,CAA0C;IAEjE,YAAY,UAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,CAA6B;YAChD,GAAG,uBAAuB,CAAC,UAAU,CAAC;YACtC,GAAG,4BAA4B,CAAC,UAAU,CAAC;YAC3C,GAAG,uBAAuB,CAAC,UAAU,CAAC;YACtC,GAAG,6BAA6B,CAAC,UAAU,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAmB;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;CACF"}
@@ -0,0 +1,7 @@
1
+ import { type SimSdkCommandRoute } from "../../../sdk/index.js";
2
+ import type { SimCognitoIdentityProvider } from "../sim-cognito-identity-provider.js";
3
+ /**
4
+ * The SDK Command routes for hosted domains and identity providers.
5
+ */
6
+ export declare function simCognitoSdkFederationRoutes(simCognito: SimCognitoIdentityProvider): readonly (readonly [string, SimSdkCommandRoute])[];
7
+ //# sourceMappingURL=sim-cognito-sdk-federation-routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sdk-federation-routes.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-federation-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAa/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEtF;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,0BAA0B,GACrC,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAmEpD"}
@@ -0,0 +1,41 @@
1
+ import { simSdkCallerOptions, } from "../../../sdk/index.js";
2
+ /**
3
+ * The SDK Command routes for hosted domains and identity providers.
4
+ */
5
+ export function simCognitoSdkFederationRoutes(simCognito) {
6
+ return [
7
+ [
8
+ "CreateUserPoolDomainCommand",
9
+ async (command, context) => await simCognito.createUserPoolDomain(command, simSdkCallerOptions(context)),
10
+ ],
11
+ [
12
+ "DescribeUserPoolDomainCommand",
13
+ async (command, context) => await simCognito.describeUserPoolDomain(command, simSdkCallerOptions(context)),
14
+ ],
15
+ [
16
+ "DeleteUserPoolDomainCommand",
17
+ async (command, context) => await simCognito.deleteUserPoolDomain(command, simSdkCallerOptions(context)),
18
+ ],
19
+ [
20
+ "CreateIdentityProviderCommand",
21
+ async (command, context) => await simCognito.createIdentityProvider(command, simSdkCallerOptions(context)),
22
+ ],
23
+ [
24
+ "DescribeIdentityProviderCommand",
25
+ async (command, context) => await simCognito.describeIdentityProvider(command, simSdkCallerOptions(context)),
26
+ ],
27
+ [
28
+ "UpdateIdentityProviderCommand",
29
+ async (command, context) => await simCognito.updateIdentityProvider(command, simSdkCallerOptions(context)),
30
+ ],
31
+ [
32
+ "DeleteIdentityProviderCommand",
33
+ async (command, context) => await simCognito.deleteIdentityProvider(command, simSdkCallerOptions(context)),
34
+ ],
35
+ [
36
+ "ListIdentityProvidersCommand",
37
+ async (command, context) => await simCognito.listIdentityProviders(command, simSdkCallerOptions(context)),
38
+ ],
39
+ ];
40
+ }
41
+ //# sourceMappingURL=sim-cognito-sdk-federation-routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sdk-federation-routes.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-federation-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,uBAAuB,CAAC;AAe/B;;GAEG;AACH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OAAO,EAAoB,EAAE,CAC3C,MAAM,UAAU,CAAC,qBAAqB,CACpC,OAA0C,EAC1C,mBAAmB,CAAC,OAAO,CAAC,CAC7B;SACJ;KACF,CAAC;AACJ,CAAC"}
@@ -17,6 +17,10 @@ interface SimCognitoServiceControllerProperties {
17
17
  * Cognito serves nothing at. Nothing here delivers a message, so this is where
18
18
  * one is read during local development.
19
19
  *
20
+ * A pool's hosted domain is served too, on its own hostname rather than on the
21
+ * regional endpoint, and `SimCognitoDomainController` answers those requests.
22
+ * That is where the OAuth endpoints of an authorization code grant live.
23
+ *
20
24
  * The Cognito API itself is not served. An SDK client reaches the simulator
21
25
  * through `SimSdk` rather than through an endpoint override.
22
26
  */
@@ -24,6 +28,7 @@ export declare class SimCognitoServiceController implements SimAwsServiceControl
24
28
  private readonly simAws;
25
29
  private readonly openIdConfiguration;
26
30
  private readonly response;
31
+ private readonly domainController;
27
32
  constructor(properties?: SimCognitoServiceControllerProperties);
28
33
  /**
29
34
  * Handle an HTTP request routed to a simulated Cognito regional endpoint.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-controller.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EAErB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AA8B9C,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAYD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAuC;IAC3E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;IAE7D,YAAY,UAAU,GAAE,qCAA0C,EAGjE;IAED;;OAEG;IACH,aAAa,CAAC,cAAc,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAErE;IAED,OAAO,CAAC,OAAO;IAuCf;;OAEG;IACH,OAAO,CAAC,MAAM;IAkCd;;;;;;;;OAQG;IACH,OAAO,CAAC,UAAU;CAoBnB"}
1
+ {"version":3,"file":"sim-cognito-controller.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EAErB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AA+B9C,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAYD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAuC;IAC3E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;IAC7D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA6B;IAE9D,YAAY,UAAU,GAAE,qCAA0C,EAIjE;IAED;;OAEG;IACG,aAAa,CAAC,cAAc,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAO3E;IAED,OAAO,CAAC,OAAO;IAuCf;;OAEG;IACH,OAAO,CAAC,MAAM;IAkCd;;;;;;;;OAQG;IACH,OAAO,CAAC,UAAU;CAoBnB"}
@@ -1,4 +1,5 @@
1
1
  import { SimAws } from "../../aws/sim-aws.js";
2
+ import { SimCognitoDomainController } from "./sim-cognito-domain-controller.js";
2
3
  import { SimCognitoEndpointResponse } from "./sim-cognito-endpoint-response.js";
3
4
  import { SimCognitoOpenIdConfiguration } from "./sim-cognito-openid-configuration.js";
4
5
  /**
@@ -36,6 +37,10 @@ const readMethods = new Set(["GET", "HEAD"]);
36
37
  * Cognito serves nothing at. Nothing here delivers a message, so this is where
37
38
  * one is read during local development.
38
39
  *
40
+ * A pool's hosted domain is served too, on its own hostname rather than on the
41
+ * regional endpoint, and `SimCognitoDomainController` answers those requests.
42
+ * That is where the OAuth endpoints of an authorization code grant live.
43
+ *
39
44
  * The Cognito API itself is not served. An SDK client reaches the simulator
40
45
  * through `SimSdk` rather than through an endpoint override.
41
46
  */
@@ -43,15 +48,20 @@ export class SimCognitoServiceController {
43
48
  simAws;
44
49
  openIdConfiguration = new SimCognitoOpenIdConfiguration();
45
50
  response = new SimCognitoEndpointResponse();
51
+ domainController;
46
52
  constructor(properties = {}) {
47
53
  const { simAws = new SimAws() } = properties;
48
54
  this.simAws = simAws;
55
+ this.domainController = new SimCognitoDomainController({ simAws });
49
56
  }
50
57
  /**
51
58
  * Handle an HTTP request routed to a simulated Cognito regional endpoint.
52
59
  */
53
- handleRequest(serviceRequest) {
54
- return Promise.resolve(this.respond(serviceRequest));
60
+ async handleRequest(serviceRequest) {
61
+ // A request that reached a hosted domain's hostname names that domain,
62
+ // where one to the regional endpoint names no resource at all.
63
+ const domainResponse = await this.domainController.handleRequest(serviceRequest);
64
+ return domainResponse ?? this.respond(serviceRequest);
55
65
  }
56
66
  respond(serviceRequest) {
57
67
  const { request } = serviceRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-controller.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAEtF;;GAEG;AACH,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,UAAU,CAAC;AAEnC;;GAEG;AACH,MAAM,cAAc,GAAG,IAAI,GAAG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AC,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,QAAQ,KAAK,sBAAsB,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAC3B,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACnD,MAAM,CACP,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;;OAQG;IACK,UAAU,CAChB,UAAkB,EAClB,MAA2B;QAE3B,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM;aACrB,uBAAuB,EAAE;aACzB,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAE/C,IAAI,cAAc,KAAK,MAAM,CAAC,UAAU,EAAE,CAAC;YACzC,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-controller.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAEtF;;GAEG;AACH,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,UAAU,CAAC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ACtE,MAAM,CACP,CAAC;QACJ,CAAC;QAED,IAAI,OAAO,KAAK,gBAAgB,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACpD,CAAC;QAED,IAAI,QAAQ,KAAK,WAAW,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,QAAQ,KAAK,sBAAsB,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAC3B,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACnD,MAAM,CACP,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;;OAQG;IACK,UAAU,CAChB,UAAkB,EAClB,MAA2B;QAE3B,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM;aACrB,uBAAuB,EAAE;aACzB,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAE/C,IAAI,cAAc,KAAK,MAAM,CAAC,UAAU,EAAE,CAAC;YACzC,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -0,0 +1,48 @@
1
+ import type { SimAwsServiceRequest } from "../../../serve/controller/sim-service-controller.js";
2
+ import type { SimAws } from "../../aws/sim-aws.js";
3
+ interface SimCognitoDomainControllerProperties {
4
+ readonly simAws: SimAws;
5
+ }
6
+ /**
7
+ * The localhost HTTP side of a pool's hosted domain.
8
+ *
9
+ * These are the endpoints a browser and an application's own server reach, and
10
+ * they carry no AWS credentials at all: an authorization code grant is signed
11
+ * by nobody, in the same way `InitiateAuth` is. What authenticates the
12
+ * application is its app client secret, at the token endpoint.
13
+ *
14
+ * The pool's own scope answers each request, found from the domain rather than
15
+ * assumed to be the default one, because a domain names a pool that any
16
+ * Account and Region of the simulation could have created.
17
+ */
18
+ export declare class SimCognitoDomainController {
19
+ private readonly simAws;
20
+ private readonly endpoints;
21
+ constructor(properties: SimCognitoDomainControllerProperties);
22
+ /**
23
+ * Handle a request that reached a hosted domain's hostname, or answer
24
+ * nothing for one that named no domain at all.
25
+ *
26
+ * A request to the regional endpoint names no resource, and that is what
27
+ * tells the two apart.
28
+ */
29
+ handleRequest(serviceRequest: SimAwsServiceRequest): Promise<Response | undefined>;
30
+ /**
31
+ * The hosted domain a request arrived at, if it arrived at one.
32
+ */
33
+ private servedDomain;
34
+ /**
35
+ * The pool a hosted domain belongs to.
36
+ */
37
+ private pool;
38
+ /**
39
+ * The simulated Cognito scope that owns a pool.
40
+ *
41
+ * The Account comes from the pool's ARN and the Region from its id, and each
42
+ * scope's services are made once and kept, so this is the same service
43
+ * object that created the pool rather than another view of it.
44
+ */
45
+ private cognitoFor;
46
+ }
47
+ export {};
48
+ //# sourceMappingURL=sim-cognito-domain-controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-domain-controller.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAEhG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAOnD,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmC;IAE7D,YAAY,UAAU,EAAE,oCAAoC,EAE3D;IAED;;;;;;OAMG;IACG,aAAa,CACjB,cAAc,EAAE,oBAAoB,GACnC,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAgB/B;IAED;;OAEG;IACH,OAAO,CAAC,YAAY;IAcpB;;OAEG;IACH,OAAO,CAAC,IAAI;IAaZ;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;CAMnB"}
@@ -0,0 +1,79 @@
1
+ import { assertDefined } from "../../../util/type-guard/defined.js";
2
+ import { simCognitoUserPoolRegionName } from "../user-pool/sim-cognito-user-pool-id.js";
3
+ import { SimCognitoDomainEndpoints } from "./sim-cognito-domain-endpoints.js";
4
+ /**
5
+ * The localhost HTTP side of a pool's hosted domain.
6
+ *
7
+ * These are the endpoints a browser and an application's own server reach, and
8
+ * they carry no AWS credentials at all: an authorization code grant is signed
9
+ * by nobody, in the same way `InitiateAuth` is. What authenticates the
10
+ * application is its app client secret, at the token endpoint.
11
+ *
12
+ * The pool's own scope answers each request, found from the domain rather than
13
+ * assumed to be the default one, because a domain names a pool that any
14
+ * Account and Region of the simulation could have created.
15
+ */
16
+ export class SimCognitoDomainController {
17
+ simAws;
18
+ endpoints = new SimCognitoDomainEndpoints();
19
+ constructor(properties) {
20
+ this.simAws = properties.simAws;
21
+ }
22
+ /**
23
+ * Handle a request that reached a hosted domain's hostname, or answer
24
+ * nothing for one that named no domain at all.
25
+ *
26
+ * A request to the regional endpoint names no resource, and that is what
27
+ * tells the two apart.
28
+ */
29
+ async handleRequest(serviceRequest) {
30
+ const domain = this.servedDomain(serviceRequest);
31
+ if (domain === undefined) {
32
+ return undefined;
33
+ }
34
+ const url = new URL(serviceRequest.request.url);
35
+ const pool = this.pool(domain);
36
+ return await this.endpoints.handleRequest({
37
+ pool,
38
+ cognito: this.cognitoFor(pool),
39
+ serviceRequest,
40
+ url,
41
+ });
42
+ }
43
+ /**
44
+ * The hosted domain a request arrived at, if it arrived at one.
45
+ */
46
+ servedDomain(serviceRequest) {
47
+ const { resourceName } = serviceRequest.target;
48
+ if (resourceName === "") {
49
+ return undefined;
50
+ }
51
+ return this.simAws
52
+ .cognitoIdentityProvider()
53
+ .findUserPoolDomainInAnyAccount(resourceName);
54
+ }
55
+ /**
56
+ * The pool a hosted domain belongs to.
57
+ */
58
+ pool(domain) {
59
+ const pool = this.simAws
60
+ .cognitoIdentityProvider()
61
+ .findUserPoolInAnyAccount(domain.userPoolId);
62
+ assertDefined(pool, `sim Cognito user pool ${domain.userPoolId} for domain ${domain.value}`);
63
+ return pool;
64
+ }
65
+ /**
66
+ * The simulated Cognito scope that owns a pool.
67
+ *
68
+ * The Account comes from the pool's ARN and the Region from its id, and each
69
+ * scope's services are made once and kept, so this is the same service
70
+ * object that created the pool rather than another view of it.
71
+ */
72
+ cognitoFor(pool) {
73
+ return this.simAws
74
+ .account(pool.arn.accountId)
75
+ .region(simCognitoUserPoolRegionName(pool.id))
76
+ .cognitoIdentityProvider();
77
+ }
78
+ }
79
+ //# sourceMappingURL=sim-cognito-domain-controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-domain-controller.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAMpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAExF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAM9E;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,MAAM,CAAS;IACf,SAAS,GAAG,IAAI,yBAAyB,EAAE,CAAC;IAE7D,YAAY,UAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAClC,CAAC;I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