@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
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-client-settings.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,mCAAmC,EACnC,KAAK,uCAAuC,EAC7C,MAAM,8CAA8C,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,WAAW,0CACf,SACE,4BAA4B,EAC5B,uCAAuC;IACzC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC3D,QAAQ,CAAC,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1D;AAED;;;;;;;;GAQG;AACH,qBAAa,gCAAgC;IAC3C,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,iBAAiB,EAAE,2BAA2B,CAAC;IAC/D,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,SAAgB,aAAa,EAAE,uBAAuB,CAAC;IAEvD;;;OAGG;IACH,SAAgB,WAAW,EAAE,mCAAmC,CAAC;IAEjE,YAAY,UAAU,EAAE,0CAA0C,EAajE;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-client-settings.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,KAAK,2BAA2B,EACjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EAClC,MAAM,iCAAiC,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,WAAW,0CACf,SAAQ,4BAA4B,EAAE,2BAA2B;IACjE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC3D,QAAQ,CAAC,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1D;AAED;;;;;;;;GAQG;AACH,qBAAa,gCAAgC;IAC3C,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,iBAAiB,EAAE,2BAA2B,CAAC;IAC/D,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,SAAgB,aAAa,EAAE,uBAAuB,CAAC;IAEvD;;OAEG;IACH,SAAgB,KAAK,EAAE,uBAAuB,CAAC;IAE/C,YAAY,UAAU,EAAE,0CAA0C,EAajE;CACF"}
@@ -1,8 +1,8 @@
1
1
  import { SimCognitoName } from "../sim-cognito-name.js";
2
2
  import { SimCognitoExplicitAuthFlows } from "./sim-cognito-explicit-auth-flows.js";
3
+ import { SimCognitoOAuthSettings, } from "./sim-cognito-oauth-settings.js";
3
4
  import { SimCognitoPreventUserExistenceErrors } from "./sim-cognito-prevent-user-existence-errors.js";
4
5
  import { SimCognitoTokenValidity, } from "./sim-cognito-token-validity.js";
5
- import { SimCognitoUnsimulatedClientSettings, } from "./sim-cognito-unsimulated-client-settings.js";
6
6
  /**
7
7
  * The settable properties of one simulated app client.
8
8
  *
@@ -18,10 +18,9 @@ export class SimCognitoUserPoolClientSettings {
18
18
  preventUserExistenceErrors;
19
19
  tokenValidity;
20
20
  /**
21
- * What the request set and nothing here acts on, kept so a described client
22
- * reports it.
21
+ * What this client may do at the pool's hosted domain.
23
22
  */
24
- unsimulated;
23
+ oauth;
25
24
  constructor(properties) {
26
25
  this.name = new SimCognitoName({
27
26
  field: "ClientName",
@@ -30,7 +29,7 @@ export class SimCognitoUserPoolClientSettings {
30
29
  this.explicitAuthFlows = new SimCognitoExplicitAuthFlows(properties.ExplicitAuthFlows);
31
30
  this.preventUserExistenceErrors = new SimCognitoPreventUserExistenceErrors(properties.PreventUserExistenceErrors);
32
31
  this.tokenValidity = new SimCognitoTokenValidity(properties);
33
- this.unsimulated = new SimCognitoUnsimulatedClientSettings(properties);
32
+ this.oauth = new SimCognitoOAuthSettings(properties);
34
33
  }
35
34
  }
36
35
  //# sourceMappingURL=sim-cognito-user-pool-client-settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-client-settings.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EACL,uBAAuB,GAExB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,mCAAmC,GAEpC,MAAM,8CAA8C,CAAC;AAkBtD;;;;;;;;GAQG;AACH,MAAM,OAAO,gCAAgC;IAC3B,IAAI,CAAS;IACb,iBAAiB,CAA8B;IAC/C,0BAA0B,CAAuC;IACjE,aAAa,CAA0B;IAEvD;;;OAGG;IACa,WAAW,CAAsC;IAEjE,YAAY,UAAsD;QAChE,IAAI,CAAC,IAAI,GAAG,IAAI,cAAc,CAAC;YAC7B,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,UAAU,CAAC,UAAU;SAC7B,CAAC,CAAC,KAAK,CAAC;QACT,IAAI,CAAC,iBAAiB,GAAG,IAAI,2BAA2B,CACtD,UAAU,CAAC,iBAAiB,CAC7B,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,IAAI,oCAAoC,CACxE,UAAU,CAAC,0BAA0B,CACtC,CAAC;QACF,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,WAAW,GAAG,IAAI,mCAAmC,CAAC,UAAU,CAAC,CAAC;IACzE,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-client-settings.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,GAExB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EACL,uBAAuB,GAExB,MAAM,iCAAiC,CAAC;AAgBzC;;;;;;;;GAQG;AACH,MAAM,OAAO,gCAAgC;IAC3B,IAAI,CAAS;IACb,iBAAiB,CAA8B;IAC/C,0BAA0B,CAAuC;IACjE,aAAa,CAA0B;IAEvD;;OAEG;IACa,KAAK,CAA0B;IAE/C,YAAY,UAAsD;QAChE,IAAI,CAAC,IAAI,GAAG,IAAI,cAAc,CAAC;YAC7B,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,UAAU,CAAC,UAAU;SAC7B,CAAC,CAAC,KAAK,CAAC;QACT,IAAI,CAAC,iBAAiB,GAAG,IAAI,2BAA2B,CACtD,UAAU,CAAC,iBAAiB,CAC7B,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,IAAI,oCAAoC,CACxE,UAAU,CAAC,0BAA0B,CACtC,CAAC;QACF,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC;CACF"}
@@ -3,7 +3,7 @@ import type { SimCognitoUserPoolId } from "../sim-cognito-user-pool-id.js";
3
3
  import type { SimCognitoExplicitAuthFlows } from "./sim-cognito-explicit-auth-flows.js";
4
4
  import type { SimCognitoPreventUserExistenceErrors } from "./sim-cognito-prevent-user-existence-errors.js";
5
5
  import type { SimCognitoTokenValidity } from "./sim-cognito-token-validity.js";
6
- import type { SimCognitoUnsimulatedClientSettings } from "./sim-cognito-unsimulated-client-settings.js";
6
+ import type { SimCognitoOAuthSettings } from "./sim-cognito-oauth-settings.js";
7
7
  import type { SimCognitoUserPoolClientSettings } from "./sim-cognito-user-pool-client-settings.js";
8
8
  import type { SimCognitoUserPoolClientId } from "./sim-cognito-user-pool-client-id.js";
9
9
  interface SimCognitoUserPoolClientProperties {
@@ -51,10 +51,10 @@ export declare class SimCognitoUserPoolClient {
51
51
  */
52
52
  get tokenValidity(): SimCognitoTokenValidity;
53
53
  /**
54
- * What the client was given and nothing here acts on, kept so a described
55
- * client reports it.
54
+ * What this client may do at its pool's hosted domain: which grant, which
55
+ * scopes, which redirects and which identity providers.
56
56
  */
57
- get unsimulatedSettings(): SimCognitoUnsimulatedClientSettings;
57
+ get oauth(): SimCognitoOAuthSettings;
58
58
  /**
59
59
  * When the client's settings last changed, which is its creation date until
60
60
  * something updates it.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-client.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAC3G,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AACxG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAEvF,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,EAAE,EAAE,0BAA0B,CAAC;IACxC,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,gCAAgC,CAAC;IACpD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAwB;IACnC,SAAgB,EAAE,EAAE,0BAA0B,CAAC;IAC/C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;IACjD,SAAgB,YAAY,EAAE,IAAI,CAAC;IAEnC;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,cAAc,CAAmC;IACzD,OAAO,CAAC,YAAY,CAAO;IAE3B,YAAY,UAAU,EAAE,kCAAkC,EAQzD;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,IAAI,iBAAiB,IAAI,2BAA2B,CAEnD;IAED;;OAEG;IACH,IAAI,0BAA0B,IAAI,oCAAoC,CAErE;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,uBAAuB,CAE3C;IAED;;;OAGG;IACH,IAAI,mBAAmB,IAAI,mCAAmC,CAE7D;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,IAAI,CAE3B;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAQ,EAAE,gCAAgC,GAAG,IAAI,CAGvD;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-client.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAC3G,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAEvF,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,EAAE,EAAE,0BAA0B,CAAC;IACxC,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,gCAAgC,CAAC;IACpD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAwB;IACnC,SAAgB,EAAE,EAAE,0BAA0B,CAAC;IAC/C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;IACjD,SAAgB,YAAY,EAAE,IAAI,CAAC;IAEnC;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,cAAc,CAAmC;IACzD,OAAO,CAAC,YAAY,CAAO;IAE3B,YAAY,UAAU,EAAE,kCAAkC,EAQzD;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,IAAI,iBAAiB,IAAI,2BAA2B,CAEnD;IAED;;OAEG;IACH,IAAI,0BAA0B,IAAI,oCAAoC,CAErE;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,uBAAuB,CAE3C;IAED;;;OAGG;IACH,IAAI,KAAK,IAAI,uBAAuB,CAEnC;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,IAAI,CAE3B;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAQ,EAAE,gCAAgC,GAAG,IAAI,CAGvD;CACF"}
@@ -52,11 +52,11 @@ export class SimCognitoUserPoolClient {
52
52
  return this.clientSettings.tokenValidity;
53
53
  }
54
54
  /**
55
- * What the client was given and nothing here acts on, kept so a described
56
- * client reports it.
55
+ * What this client may do at its pool's hosted domain: which grant, which
56
+ * scopes, which redirects and which identity providers.
57
57
  */
58
- get unsimulatedSettings() {
59
- return this.clientSettings.unsimulated;
58
+ get oauth() {
59
+ return this.clientSettings.oauth;
60
60
  }
61
61
  /**
62
62
  * When the client's settings last changed, which is its creation date until
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-client.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IACnB,EAAE,CAA6B;IAC/B,UAAU,CAAuB;IACjC,YAAY,CAAO;IAEnC;;;OAGG;IACa,MAAM,CAAqB;IAE1B,KAAK,CAAW;IACzB,cAAc,CAAmC;IACjD,YAAY,CAAO;IAE3B,YAAY,UAA8C;QACxD,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAI,iBAAiB;QACnB,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,IAAI,0BAA0B;QAC5B,OAAO,IAAI,CAAC,cAAc,CAAC,0BAA0B,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,IAAI,mBAAmB;QACrB,OAAO,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;IACzC,CAAC;IAED;;;OAGG;IACH,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC;IACnC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAA0C;QAC/C,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;IACvC,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-client.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IACnB,EAAE,CAA6B;IAC/B,UAAU,CAAuB;IACjC,YAAY,CAAO;IAEnC;;;OAGG;IACa,MAAM,CAAqB;IAE1B,KAAK,CAAW;IACzB,cAAc,CAAmC;IACjD,YAAY,CAAO;IAE3B,YAAY,UAA8C;QACxD,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAI,iBAAiB;QACnB,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,IAAI,0BAA0B;QAC5B,OAAO,IAAI,CAAC,cAAc,CAAC,0BAA0B,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC;IACnC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAA0C;QAC/C,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;IACvC,CAAC;CACF"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The custom domain configuration of a user pool domain, in the shape a
3
+ * request sets it and a described domain reports it.
4
+ */
5
+ export interface SimCognitoCustomDomainConfigType {
6
+ readonly CertificateArn?: string | undefined;
7
+ readonly SecurityPolicy?: string | undefined;
8
+ }
9
+ /**
10
+ * The certificate a custom domain is served with.
11
+ *
12
+ * Nothing here terminates TLS, so the certificate is recorded rather than
13
+ * used. It is still required, as real Cognito requires it: a custom domain
14
+ * created without one is a request that fails on the way to AWS, and a
15
+ * simulation that accepted it would hide that.
16
+ *
17
+ * The certificate is not resolved against simulated ACM. Real Cognito requires
18
+ * one issued in `us-east-1`, whatever region the pool is in, and checking that
19
+ * here would only repeat a rule no request in a test is trying to break.
20
+ */
21
+ export declare class SimCognitoCustomDomainConfig {
22
+ readonly certificateArn: string;
23
+ readonly securityPolicy: string | undefined;
24
+ constructor(config: SimCognitoCustomDomainConfigType);
25
+ /**
26
+ * This configuration as a described domain reports it.
27
+ */
28
+ toOutput(): SimCognitoCustomDomainConfigType;
29
+ }
30
+ //# sourceMappingURL=sim-cognito-custom-domain-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-custom-domain-config.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,4BAA4B;IACvC,SAAgB,cAAc,EAAE,MAAM,CAAC;IACvC,SAAgB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnD,YAAY,MAAM,EAAE,gCAAgC,EAUnD;IAED;;OAEG;IACH,QAAQ,IAAI,gCAAgC,CAO3C;CACF"}
@@ -0,0 +1,37 @@
1
+ import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
2
+ /**
3
+ * The certificate a custom domain is served with.
4
+ *
5
+ * Nothing here terminates TLS, so the certificate is recorded rather than
6
+ * used. It is still required, as real Cognito requires it: a custom domain
7
+ * created without one is a request that fails on the way to AWS, and a
8
+ * simulation that accepted it would hide that.
9
+ *
10
+ * The certificate is not resolved against simulated ACM. Real Cognito requires
11
+ * one issued in `us-east-1`, whatever region the pool is in, and checking that
12
+ * here would only repeat a rule no request in a test is trying to break.
13
+ */
14
+ export class SimCognitoCustomDomainConfig {
15
+ certificateArn;
16
+ securityPolicy;
17
+ constructor(config) {
18
+ if (config.CertificateArn === undefined || config.CertificateArn === "") {
19
+ throw new SimCognitoInvalidParameterException("CustomDomainConfig CertificateArn is required: a custom domain is " +
20
+ "served with a certificate");
21
+ }
22
+ this.certificateArn = config.CertificateArn;
23
+ this.securityPolicy = config.SecurityPolicy;
24
+ }
25
+ /**
26
+ * This configuration as a described domain reports it.
27
+ */
28
+ toOutput() {
29
+ return {
30
+ CertificateArn: this.certificateArn,
31
+ ...(this.securityPolicy !== undefined && {
32
+ SecurityPolicy: this.securityPolicy,
33
+ }),
34
+ };
35
+ }
36
+ }
37
+ //# sourceMappingURL=sim-cognito-custom-domain-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-custom-domain-config.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/domain/sim-cognito-custom-domain-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAWvF;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,4BAA4B;IACvB,cAAc,CAAS;IACvB,cAAc,CAAqB;IAEnD,YAAY,MAAwC;QAClD,IAAI,MAAM,CAAC,cAAc,KAAK,SAAS,IAAI,MAAM,CAAC,cAAc,KAAK,EAAE,EAAE,CAAC;YACxE,MAAM,IAAI,mCAAmC,CAC3C,oEAAoE;gBAClE,2BAA2B,CAC9B,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO;YACL,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,GAAG,CAAC,IAAI,CAAC,cAAc,KAAK,SAAS,IAAI;gBACvC,cAAc,EAAE,IAAI,CAAC,cAAc;aACpC,CAAC;SACH,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,58 @@
1
+ interface SimCognitoDomainNameProperties {
2
+ readonly value: string | undefined;
3
+ /**
4
+ * Whether the request asked for a custom domain, which is what a
5
+ * `CustomDomainConfig` says. A prefix and a custom domain are validated
6
+ * differently, and the request rather than the value is what decides which
7
+ * one is being asked for.
8
+ */
9
+ readonly custom: boolean;
10
+ /** The region the pool lives in, which a prefix domain is served under. */
11
+ readonly regionName: string;
12
+ }
13
+ /**
14
+ * The domain string of one user pool domain, and the hostname it is served on.
15
+ *
16
+ * A prefix domain is one DNS label, and Cognito puts it under
17
+ * `auth.<region>.amazoncognito.com`. A custom domain is the whole hostname,
18
+ * which the request owns rather than Cognito. The two are different enough
19
+ * that a value is checked against the form the request asked for rather than
20
+ * being guessed at from the value itself.
21
+ */
22
+ export declare class SimCognitoDomainName {
23
+ readonly value: string;
24
+ readonly custom: boolean;
25
+ /**
26
+ * The hostname real Cognito would serve this domain on.
27
+ */
28
+ readonly hostname: string;
29
+ constructor(properties: SimCognitoDomainNameProperties);
30
+ private static required;
31
+ /**
32
+ * The hostname this domain answers on inside the simulation.
33
+ *
34
+ * Serving drops the AWS domain from an AWS hostname, in the same way it
35
+ * drops `.amazonaws.com` from an S3 endpoint, so a prefix domain is reached
36
+ * locally by the part in front of it. A custom domain is the hostname the
37
+ * request chose, and there is nothing to drop.
38
+ */
39
+ get localHostname(): string;
40
+ /**
41
+ * Check a prefix domain, which is one label with no reserved word in it.
42
+ *
43
+ * Real Cognito refuses a prefix containing `aws`, `amazon` or `cognito`, and
44
+ * a pool deployed with one here would fail on the way to AWS rather than
45
+ * here.
46
+ */
47
+ private requirePrefix;
48
+ /**
49
+ * Check a custom domain, which is a fully qualified name below a domain the
50
+ * request owns.
51
+ *
52
+ * Real Cognito requires a subdomain rather than a bare registered domain,
53
+ * so `auth.example.com` is accepted and `example.com` is not.
54
+ */
55
+ private requireCustomDomain;
56
+ }
57
+ export {};
58
+ //# sourceMappingURL=sim-cognito-domain-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-domain-name.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/domain/sim-cognito-domain-name.ts"],"names":[],"mappings":"AA0CA,UAAU,8BAA8B;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEzB,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,qBAAa,oBAAoB;IAC/B,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,MAAM,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,SAAgB,QAAQ,EAAE,MAAM,CAAC;IAEjC,YAAY,UAAU,EAAE,8BAA8B,EAarD;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ;IAiBvB;;;;;;;OAOG;IACH,IAAI,aAAa,IAAI,MAAM,CAM1B;IAED;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;IAmBrB;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;CAU5B"}
@@ -0,0 +1,123 @@
1
+ import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
2
+ /**
3
+ * How long a domain string may be, prefix and custom alike.
4
+ */
5
+ const maxDomainLength = 63;
6
+ /**
7
+ * The characters one DNS label holds, which is what a prefix domain is.
8
+ */
9
+ const domainLabelPattern = /^[\da-z-]+$/u;
10
+ /**
11
+ * Whether a value is one DNS label: those characters, starting and ending with
12
+ * a letter or a number.
13
+ *
14
+ * The first and last characters are checked separately rather than in the
15
+ * pattern, because a pattern saying all three things at once is the kind that
16
+ * backtracks.
17
+ */
18
+ function isDomainLabel(value) {
19
+ const first = value.at(0) ?? "";
20
+ const last = value.at(-1) ?? "";
21
+ return domainLabelPattern.test(value) && first !== "-" && last !== "-";
22
+ }
23
+ /**
24
+ * The words real Cognito refuses in a prefix domain.
25
+ */
26
+ const reservedWords = ["aws", "amazon", "cognito"];
27
+ /**
28
+ * The label a hosted domain sits under, between the prefix and the region.
29
+ */
30
+ const cognitoDomainHostLabel = "auth";
31
+ /**
32
+ * The domain suffix real Cognito serves a prefix domain on.
33
+ */
34
+ const cognitoDomainHostSuffix = "amazoncognito.com";
35
+ /**
36
+ * The domain string of one user pool domain, and the hostname it is served on.
37
+ *
38
+ * A prefix domain is one DNS label, and Cognito puts it under
39
+ * `auth.<region>.amazoncognito.com`. A custom domain is the whole hostname,
40
+ * which the request owns rather than Cognito. The two are different enough
41
+ * that a value is checked against the form the request asked for rather than
42
+ * being guessed at from the value itself.
43
+ */
44
+ export class SimCognitoDomainName {
45
+ value;
46
+ custom;
47
+ /**
48
+ * The hostname real Cognito would serve this domain on.
49
+ */
50
+ hostname;
51
+ constructor(properties) {
52
+ this.value = SimCognitoDomainName.required(properties.value);
53
+ this.custom = properties.custom;
54
+ if (this.custom) {
55
+ this.requireCustomDomain();
56
+ this.hostname = this.value;
57
+ }
58
+ else {
59
+ this.requirePrefix();
60
+ this.hostname =
61
+ `${this.value}.${cognitoDomainHostLabel}.` +
62
+ `${properties.regionName}.${cognitoDomainHostSuffix}`;
63
+ }
64
+ }
65
+ static required(value) {
66
+ if (value === undefined || value === "") {
67
+ throw new SimCognitoInvalidParameterException("Domain is required: name the domain the pool is served on");
68
+ }
69
+ if (value.length > maxDomainLength) {
70
+ throw new SimCognitoInvalidParameterException(`Domain '${value}' is too long: a domain is at most ` +
71
+ `${String(maxDomainLength)} characters`);
72
+ }
73
+ return value;
74
+ }
75
+ /**
76
+ * The hostname this domain answers on inside the simulation.
77
+ *
78
+ * Serving drops the AWS domain from an AWS hostname, in the same way it
79
+ * drops `.amazonaws.com` from an S3 endpoint, so a prefix domain is reached
80
+ * locally by the part in front of it. A custom domain is the hostname the
81
+ * request chose, and there is nothing to drop.
82
+ */
83
+ get localHostname() {
84
+ if (this.custom) {
85
+ return this.value;
86
+ }
87
+ return this.hostname.replace(`.${cognitoDomainHostSuffix}`, "");
88
+ }
89
+ /**
90
+ * Check a prefix domain, which is one label with no reserved word in it.
91
+ *
92
+ * Real Cognito refuses a prefix containing `aws`, `amazon` or `cognito`, and
93
+ * a pool deployed with one here would fail on the way to AWS rather than
94
+ * here.
95
+ */
96
+ requirePrefix() {
97
+ if (!isDomainLabel(this.value)) {
98
+ throw new SimCognitoInvalidParameterException(`Domain '${this.value}' is not a domain prefix: a prefix is lower ` +
99
+ `case letters, numbers and hyphens, starting and ending with a ` +
100
+ `letter or a number`);
101
+ }
102
+ const reserved = reservedWords.find((word) => this.value.includes(word));
103
+ if (reserved !== undefined) {
104
+ throw new SimCognitoInvalidParameterException(`Domain '${this.value}' contains the reserved word '${reserved}': a ` +
105
+ `domain prefix cannot contain ${reservedWords.join(", ")}`);
106
+ }
107
+ }
108
+ /**
109
+ * Check a custom domain, which is a fully qualified name below a domain the
110
+ * request owns.
111
+ *
112
+ * Real Cognito requires a subdomain rather than a bare registered domain,
113
+ * so `auth.example.com` is accepted and `example.com` is not.
114
+ */
115
+ requireCustomDomain() {
116
+ const labels = this.value.split(".");
117
+ if (labels.length < 3 || labels.some((label) => !isDomainLabel(label))) {
118
+ throw new SimCognitoInvalidParameterException(`Domain '${this.value}' is not a custom domain: a custom domain is a ` +
119
+ `fully qualified subdomain, such as 'auth.example.com'`);
120
+ }
121
+ }
122
+ }
123
+ //# sourceMappingURL=sim-cognito-domain-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-domain-name.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/domain/sim-cognito-domain-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAEvF;;GAEG;AACH,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B;;GAEG;AACH,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAE1C;;;;;;;GAOG;AACH,SAAS,aAAa,CAAC,KAAa;IAClC,MAAM,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAChC,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhC,OAAO,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAEtC;;GAEG;AACH,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAiBpD;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAoB;IACf,KAAK,CAAS;IACd,MAAM,CAAU;IAEhC;;OAEG;IACa,QAAQ,CAAS;IAEjC,YAAY,UAA0C;QACpD,IAAI,CAAC,KAAK,GAAG,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC7D,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAEhC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAI,CAAC,QAAQ;gBACX,GAAG,IAAI,CAAC,KAAK,IAAI,sBAAsB,GAAG;oBAC1C,GAAG,UAAU,CAAC,UAAU,IAAI,uBAAuB,EAAE,CAAC;QAC1D,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,QAAQ,CAAC,KAAyB;QAC/C,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;YACxC,MAAM,IAAI,mCAAmC,CAC3C,2DAA2D,CAC5D,CAAC;QACJ,CAAC;QAED,IAAI,KAAK,CAAC,MAAM,GAAG,eAAe,EAAE,CAAC;YACnC,MAAM,IAAI,mCAAmC,CAC3C,WAAW,KAAK,qCAAqC;gBACnD,GAAG,MAAM,CAAC,eAAe,CAAC,aAAa,CAC1C,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,aAAa;QACf,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,uBAAuB,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;OAMG;IACK,aAAa;QACnB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/B,MAAM,IAAI,mCAAmC,CAC3C,WAAW,IAAI,CAAC,KAAK,8CAA8C;gBACjE,gEAAgE;gBAChE,oBAAoB,CACvB,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAEzE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,mCAAmC,CAC3C,WAAW,IAAI,CAAC,KAAK,iCAAiC,QAAQ,OAAO;gBACnE,gCAAgC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC7D,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACK,mBAAmB;QACzB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAErC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YACvE,MAAM,IAAI,mCAAmC,CAC3C,WAAW,IAAI,CAAC,KAAK,iDAAiD;gBACpE,uDAAuD,CAC1D,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,33 @@
1
+ import type { SimCreateUserPoolDomainCommandInput } from "../../command/domain/user-pool-domain.command.js";
2
+ import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
3
+ import { SimCognitoUserPoolDomain } from "./sim-cognito-user-pool-domain.js";
4
+ /**
5
+ * The one domain a pool can have: building the one a request asked for, and
6
+ * resolving the one the pool holds.
7
+ *
8
+ * A `CustomDomainConfig` is what says the request wants a custom domain rather
9
+ * than a Cognito prefix, so it decides both how the domain string is checked
10
+ * and whether a certificate is required.
11
+ */
12
+ export declare class SimCognitoPoolDomains {
13
+ /**
14
+ * Refuse a second domain on a pool that has one.
15
+ *
16
+ * Real Cognito allows one domain per pool, prefix or custom, so a request
17
+ * adding another is refused rather than quietly replacing what is there.
18
+ */
19
+ private static requireNoDomain;
20
+ private static customDomainConfig;
21
+ /**
22
+ * Make a pool's domain, refusing a pool that already has one.
23
+ */
24
+ make(pool: SimCognitoUserPool, input: SimCreateUserPoolDomainCommandInput): SimCognitoUserPoolDomain;
25
+ /**
26
+ * The domain a delete request named, or a refusal.
27
+ *
28
+ * Real Cognito answers a request naming a domain the pool does not hold the
29
+ * same way it answers one naming no pool at all, and says no more than that.
30
+ */
31
+ require(pool: SimCognitoUserPool, domainValue: string | undefined): SimCognitoUserPoolDomain;
32
+ }
33
+ //# sourceMappingURL=sim-cognito-pool-domains.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-pool-domains.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/domain/sim-cognito-pool-domains.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kDAAkD,CAAC;AAC5G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAOtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E;;;;;;;GAOG;AACH,qBAAa,qBAAqB;IAChC;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAW9B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAUjC;;OAEG;IACH,IAAI,CACF,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,mCAAmC,GACzC,wBAAwB,CAiB1B;IAED;;;;;OAKG;IACH,OAAO,CACL,IAAI,EAAE,kBAAkB,EACxB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,wBAAwB,CAU1B;CACF"}
@@ -0,0 +1,66 @@
1
+ import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
2
+ import { simCognitoUserPoolRegionName } from "../sim-cognito-user-pool-id.js";
3
+ import { SimCognitoCustomDomainConfig, } from "./sim-cognito-custom-domain-config.js";
4
+ import { SimCognitoDomainName } from "./sim-cognito-domain-name.js";
5
+ import { SimCognitoUserPoolDomain } from "./sim-cognito-user-pool-domain.js";
6
+ /**
7
+ * The one domain a pool can have: building the one a request asked for, and
8
+ * resolving the one the pool holds.
9
+ *
10
+ * A `CustomDomainConfig` is what says the request wants a custom domain rather
11
+ * than a Cognito prefix, so it decides both how the domain string is checked
12
+ * and whether a certificate is required.
13
+ */
14
+ export class SimCognitoPoolDomains {
15
+ /**
16
+ * Refuse a second domain on a pool that has one.
17
+ *
18
+ * Real Cognito allows one domain per pool, prefix or custom, so a request
19
+ * adding another is refused rather than quietly replacing what is there.
20
+ */
21
+ static requireNoDomain(pool) {
22
+ const existing = pool.auth.domain;
23
+ if (existing !== undefined) {
24
+ throw new SimCognitoInvalidParameterException(`User pool ${pool.id} already has the domain '${existing.value}': a ` +
25
+ `pool has one domain, so delete that one before adding another`);
26
+ }
27
+ }
28
+ static customDomainConfig(config) {
29
+ if (config === undefined) {
30
+ return undefined;
31
+ }
32
+ return new SimCognitoCustomDomainConfig(config);
33
+ }
34
+ /**
35
+ * Make a pool's domain, refusing a pool that already has one.
36
+ */
37
+ make(pool, input) {
38
+ SimCognitoPoolDomains.requireNoDomain(pool);
39
+ return new SimCognitoUserPoolDomain({
40
+ name: new SimCognitoDomainName({
41
+ value: input.Domain,
42
+ custom: input.CustomDomainConfig !== undefined,
43
+ // A prefix domain is served under the pool's own region, which the
44
+ // pool id names, so no separate region is needed here.
45
+ regionName: simCognitoUserPoolRegionName(pool.id),
46
+ }),
47
+ userPoolId: pool.id,
48
+ customDomainConfig: SimCognitoPoolDomains.customDomainConfig(input.CustomDomainConfig),
49
+ managedLoginVersion: input.ManagedLoginVersion,
50
+ });
51
+ }
52
+ /**
53
+ * The domain a delete request named, or a refusal.
54
+ *
55
+ * Real Cognito answers a request naming a domain the pool does not hold the
56
+ * same way it answers one naming no pool at all, and says no more than that.
57
+ */
58
+ require(pool, domainValue) {
59
+ const domain = pool.auth.domain;
60
+ if (domain === undefined || domain.value !== domainValue) {
61
+ throw new SimCognitoInvalidParameterException("No such domain or user pool exists.");
62
+ }
63
+ return domain;
64
+ }
65
+ }
66
+ //# sourceMappingURL=sim-cognito-pool-domains.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-pool-domains.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/domain/sim-cognito-pool-domains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAGvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EACL,4BAA4B,GAE7B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E;;;;;;;GAOG;AACH,MAAM,OAAO,qBAAqB;IAChC;;;;;OAKG;IACK,MAAM,CAAC,eAAe,CAAC,IAAwB;QACrD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAElC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,mCAAmC,CAC3C,aAAa,IAAI,CAAC,EAAE,4BAA4B,QAAQ,CAAC,KAAK,OAAO;gBACnE,+DAA+D,CAClE,CAAC;QACJ,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,kBAAkB,CAC/B,MAAoD;QAEpD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,4BAA4B,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,IAAI,CACF,IAAwB,EACxB,KAA0C;QAE1C,qBAAqB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAE5C,OAAO,IAAI,wBAAwB,CAAC;YAClC,IAAI,EAAE,IAAI,oBAAoB,CAAC;gBAC7B,KAAK,EAAE,KAAK,CAAC,MAAM;gBACnB,MAAM,EAAE,KAAK,CAAC,kBAAkB,KAAK,SAAS;gBAC9C,mEAAmE;gBACnE,uDAAuD;gBACvD,UAAU,EAAE,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC;aAClD,CAAC;YACF,UAAU,EAAE,IAAI,CAAC,EAAE;YACnB,kBAAkB,EAAE,qBAAqB,CAAC,kBAAkB,CAC1D,KAAK,CAAC,kBAAkB,CACzB;YACD,mBAAmB,EAAE,KAAK,CAAC,mBAAmB;SAC/C,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,OAAO,CACL,IAAwB,EACxB,WAA+B;QAE/B,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAEhC,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;YACzD,MAAM,IAAI,mCAAmC,CAC3C,qCAAqC,CACtC,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,58 @@
1
+ import type { SimCognitoUserPoolId } from "../sim-cognito-user-pool-id.js";
2
+ import type { SimCognitoCustomDomainConfig } from "./sim-cognito-custom-domain-config.js";
3
+ import type { SimCognitoDomainName } from "./sim-cognito-domain-name.js";
4
+ interface SimCognitoUserPoolDomainProperties {
5
+ readonly name: SimCognitoDomainName;
6
+ readonly userPoolId: SimCognitoUserPoolId;
7
+ readonly customDomainConfig?: SimCognitoCustomDomainConfig | undefined;
8
+ /**
9
+ * Which managed login branding the domain was created with: `1` for the
10
+ * classic hosted UI and `2` for managed login. Neither set of pages is
11
+ * simulated, so the version is recorded and reported rather than changing
12
+ * anything.
13
+ */
14
+ readonly managedLoginVersion?: number | undefined;
15
+ }
16
+ /**
17
+ * One simulated user pool domain.
18
+ *
19
+ * A pool has at most one domain, and the domain is where the OAuth endpoints
20
+ * are served: without one, a pool has an API and nothing a browser can reach.
21
+ *
22
+ * Real Cognito puts a CloudFront distribution in front of a custom domain and
23
+ * expects the domain's own DNS to point at it. This simulation answers on the
24
+ * custom hostname directly, so the distribution it reports is a name nothing
25
+ * here serves, and a test needs no DNS record of its own.
26
+ */
27
+ export declare class SimCognitoUserPoolDomain {
28
+ readonly name: SimCognitoDomainName;
29
+ readonly userPoolId: SimCognitoUserPoolId;
30
+ readonly customDomainConfig: SimCognitoCustomDomainConfig | undefined;
31
+ readonly managedLoginVersion: number | undefined;
32
+ /**
33
+ * The CloudFront distribution real Cognito would put in front of a custom
34
+ * domain, which a prefix domain does not get.
35
+ */
36
+ readonly cloudFrontDistribution: string | undefined;
37
+ constructor(properties: SimCognitoUserPoolDomainProperties);
38
+ /**
39
+ * The distribution name a domain reports, which only a custom domain has.
40
+ */
41
+ private static distributionFor;
42
+ /** The domain string this domain was created with. */
43
+ get value(): string;
44
+ /** The hostname real Cognito would serve this domain on. */
45
+ get hostname(): string;
46
+ /** The hostname this domain answers on inside the simulation. */
47
+ get localHostname(): string;
48
+ /**
49
+ * The hostnames a request can reach this domain by.
50
+ *
51
+ * A prefix domain answers on both the real AWS hostname and the local one it
52
+ * is rewritten to, so a request that names either finds it. They are the
53
+ * same hostname for a custom domain, which has no AWS domain to drop.
54
+ */
55
+ get hostnames(): readonly string[];
56
+ }
57
+ export {};
58
+ //# sourceMappingURL=sim-cognito-user-pool-domain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-user-pool-domain.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAOzE,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAC;IAC1C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IAEvE;;;;;OAKG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnD;AAED;;;;;;;;;;GAUG;AACH,qBAAa,wBAAwB;IACnC,SAAgB,IAAI,EAAE,oBAAoB,CAAC;IAC3C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;IACjD,SAAgB,kBAAkB,EAAE,4BAA4B,GAAG,SAAS,CAAC;IAC7E,SAAgB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IAExD;;;OAGG;IACH,SAAgB,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3D,YAAY,UAAU,EAAE,kCAAkC,EAQzD;IAED;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAa9B,sDAAsD;IACtD,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,4DAA4D;IAC5D,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,iEAAiE;IACjE,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;;;;;OAMG;IACH,IAAI,SAAS,IAAI,SAAS,MAAM,EAAE,CAEjC;CACF"}
@@ -0,0 +1,70 @@
1
+ import { faker } from "@faker-js/faker";
2
+ /**
3
+ * How many characters a simulated CloudFront distribution name carries.
4
+ */
5
+ const distributionNameLength = 13;
6
+ /**
7
+ * One simulated user pool domain.
8
+ *
9
+ * A pool has at most one domain, and the domain is where the OAuth endpoints
10
+ * are served: without one, a pool has an API and nothing a browser can reach.
11
+ *
12
+ * Real Cognito puts a CloudFront distribution in front of a custom domain and
13
+ * expects the domain's own DNS to point at it. This simulation answers on the
14
+ * custom hostname directly, so the distribution it reports is a name nothing
15
+ * here serves, and a test needs no DNS record of its own.
16
+ */
17
+ export class SimCognitoUserPoolDomain {
18
+ name;
19
+ userPoolId;
20
+ customDomainConfig;
21
+ managedLoginVersion;
22
+ /**
23
+ * The CloudFront distribution real Cognito would put in front of a custom
24
+ * domain, which a prefix domain does not get.
25
+ */
26
+ cloudFrontDistribution;
27
+ constructor(properties) {
28
+ this.name = properties.name;
29
+ this.userPoolId = properties.userPoolId;
30
+ this.customDomainConfig = properties.customDomainConfig;
31
+ this.managedLoginVersion = properties.managedLoginVersion;
32
+ this.cloudFrontDistribution = SimCognitoUserPoolDomain.distributionFor(this.name.custom);
33
+ }
34
+ /**
35
+ * The distribution name a domain reports, which only a custom domain has.
36
+ */
37
+ static distributionFor(custom) {
38
+ if (!custom) {
39
+ return undefined;
40
+ }
41
+ const name = faker.string.alphanumeric({
42
+ length: distributionNameLength,
43
+ casing: "lower",
44
+ });
45
+ return `${name}.cloudfront.net`;
46
+ }
47
+ /** The domain string this domain was created with. */
48
+ get value() {
49
+ return this.name.value;
50
+ }
51
+ /** The hostname real Cognito would serve this domain on. */
52
+ get hostname() {
53
+ return this.name.hostname;
54
+ }
55
+ /** The hostname this domain answers on inside the simulation. */
56
+ get localHostname() {
57
+ return this.name.localHostname;
58
+ }
59
+ /**
60
+ * The hostnames a request can reach this domain by.
61
+ *
62
+ * A prefix domain answers on both the real AWS hostname and the local one it
63
+ * is rewritten to, so a request that names either finds it. They are the
64
+ * same hostname for a custom domain, which has no AWS domain to drop.
65
+ */
66
+ get hostnames() {
67
+ return [...new Set([this.hostname, this.localHostname])];
68
+ }
69
+ }
70
+ //# sourceMappingURL=sim-cognito-user-pool-domain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-user-pool-domain.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/domain/sim-cognito-user-pool-domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAKxC;;GAEG;AACH,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAgBlC;;;;;;;;;;GAUG;AACH,MAAM,OAAO,wBAAwB;IACnB,IAAI,CAAuB;IAC3B,UAAU,CAAuB;IACjC,kBAAkB,CAA2C;IAC7D,mBAAmB,CAAqB;IAExD;;;OAGG;IACa,sBAAsB,CAAqB;IAE3D,YAAY,UAA8C;QACxD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC;QACxD,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC;QAC1D,IAAI,CAAC,sBAAsB,GAAG,wBAAwB,CAAC,eAAe,CACpE,IAAI,CAAC,IAAI,CAAC,MAAM,CACjB,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,MAAM,CAAC,eAAe,CAAC,MAAe;QAC5C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC;YACrC,MAAM,EAAE,sBAAsB;YAC9B,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;QAEH,OAAO,GAAG,IAAI,iBAAiB,CAAC;IAClC,CAAC;IAED,sDAAsD;IACtD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IACzB,CAAC;IAED,4DAA4D;IAC5D,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC5B,CAAC;IAED,iEAAiE;IACjE,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACH,IAAI,SAAS;QACX,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF"}