Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MetaResponseにMisskey 2024.2.0までの変更を反映 #48

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions lib/src/data/meta_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ class MetaResponse with _$MetaResponse {
String? maintainerName,
String? maintainerEmail,
required String version,
bool? providesTarball,
String? name,
String? shortName,
@UriConverter() required Uri uri,
String? description,
required List<String> langs,
@NullableUriConverter() Uri? tosUrl,
@UriConverter() required Uri repositoryUrl,
required String feedbackUrl,
@NullableUriConverter() Uri? repositoryUrl,
String? feedbackUrl,
String? defaultDarkTheme,
String? defaultLightTheme,
required bool disableRegistration,
Expand All @@ -29,6 +30,9 @@ class MetaResponse with _$MetaResponse {
required bool emailRequiredForSignup,
required bool enableHcaptcha,
String? hcaptchaSiteKey,
bool? enableMcaptcha,
String? mcaptchaSiteKey,
@NullableUriConverter() Uri? mcaptchaInstanceUrl,
bool? enableRecaptcha,
String? recaptchaSiteKey,
bool? enableTurnstile,
Expand All @@ -37,7 +41,10 @@ class MetaResponse with _$MetaResponse {
String? themeColor,
@NullableUriConverter() Uri? mascotImageUrl,
@NullableUriConverter() Uri? bannerUrl,
@NullableUriConverter() Uri? errorImageUrl,
@NullableUriConverter() Uri? infoImageUrl,
@NullableUriConverter() Uri? errorImageUrl, // Removed in Misskey 13.13.2
@NullableUriConverter() Uri? serverErrorImageUrl,
@NullableUriConverter() Uri? notFountImageUrl,
@NullableUriConverter() Uri? iconUrl,
@NullableUriConverter() Uri? backgroundImageUrl,
@NullableUriConverter() Uri? logoImageUrl,
Expand All @@ -46,6 +53,7 @@ class MetaResponse with _$MetaResponse {
required int maxNoteTextLength,
//required List<MetaEmoji> emojis,
required List<MetaAd> ads,
int? notesPerOneAd,
@Default([]) List<String> serverRules,
UserPolicies? policies,
bool? requireSetup,
Expand All @@ -58,6 +66,7 @@ class MetaResponse with _$MetaResponse {
String? proxyAccountName,
String? mediaProxy,
bool? cacheRemoteFiles,
bool? cacheRemoteSensitiveFiles,
MetaFeature? features,
}) = _MetaResponse;

Expand Down
Loading
Loading