output "api_url" {
  description = "POST endpoint the playground page calls."
  value       = "${aws_api_gateway_stage.this.invoke_url}/chat"
}

output "function_name" {
  value = aws_lambda_function.chat.function_name
}

output "model_id" {
  value = local.model_id
}

# The sign-in settings the page passes to fieldKitAuth.token. The pool ARN stays out of the
# published config because it contains the account ID.
output "auth" {
  value = {
    hosted_ui       = local.auth.hosted_ui
    client_id       = local.auth.client_id
    callback_url    = local.auth.callback_url
    identity_source = local.auth.identity_source
  }
}

output "site_origin" {
  value = local.auth.site_origin
}
