@@ -646,12 +646,21 @@ func TestAPIContracts(t *testing.T) {
646646 "registration_email_suffix_whitelist": [],
647647 "promo_code_enabled": true,
648648 "password_reset_enabled": false,
649- "frontend_url": "",
650- "totp_enabled": false,
651- "totp_encryption_key_configured": false,
652- "smtp_host": "smtp.example.com",
653- "smtp_port": 587,
654- "smtp_username": "user",
649+ "frontend_url": "",
650+ "totp_enabled": false,
651+ "totp_encryption_key_configured": false,
652+ "login_agreement_enabled": false,
653+ "login_agreement_mode": "modal",
654+ "login_agreement_updated_at": "2026-03-31",
655+ "login_agreement_documents": [
656+ {"id": "terms", "title": "服务条款", "content_md": ""},
657+ {"id": "usage-policy", "title": "使用政策", "content_md": ""},
658+ {"id": "supported-regions", "title": "支持的国家和地区", "content_md": ""},
659+ {"id": "service-specific-terms", "title": "服务特定条款", "content_md": ""}
660+ ],
661+ "smtp_host": "smtp.example.com",
662+ "smtp_port": 587,
663+ "smtp_username": "user",
655664 "smtp_password_configured": true,
656665 "smtp_from_email": "no-reply@example.com",
657666 "smtp_from_name": "Sub2API",
@@ -880,12 +889,21 @@ func TestAPIContracts(t *testing.T) {
880889 "promo_code_enabled": true,
881890 "password_reset_enabled": false,
882891 "frontend_url": "",
883- "invitation_code_enabled": false,
884- "totp_enabled": false,
885- "totp_encryption_key_configured": false,
886- "smtp_host": "",
887- "smtp_port": 587,
888- "smtp_username": "",
892+ "invitation_code_enabled": false,
893+ "totp_enabled": false,
894+ "totp_encryption_key_configured": false,
895+ "login_agreement_enabled": false,
896+ "login_agreement_mode": "modal",
897+ "login_agreement_updated_at": "2026-03-31",
898+ "login_agreement_documents": [
899+ {"id": "terms", "title": "服务条款", "content_md": ""},
900+ {"id": "usage-policy", "title": "使用政策", "content_md": ""},
901+ {"id": "supported-regions", "title": "支持的国家和地区", "content_md": ""},
902+ {"id": "service-specific-terms", "title": "服务特定条款", "content_md": ""}
903+ ],
904+ "smtp_host": "",
905+ "smtp_port": 587,
906+ "smtp_username": "",
889907 "smtp_password_configured": false,
890908 "smtp_from_email": "",
891909 "smtp_from_name": "",
0 commit comments