-
Notifications
You must be signed in to change notification settings - Fork 20
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
[GROOMING] Contact synchonization v2 #2171
Labels
FT::CONTACT
Features connected to contacts and contact list
Comments
|
|
|
How to extract Fed server in well-know
{
...
"m.federated_identity_services": {
"base_urls": [
"https://fed...com/"
]
},
...
}
Create Fed server info:@JsonSerializable()
class FedServerInformation with EquatableMixin {
static const String fedServerKey = 'm.federated_identity_services';
@JsonKey(name: 'base_url')
final Uri? baseUrl;
@JsonKey(name: 'server_name')
final String? serverName;
FedServerInformation({
this.baseUrl,
this.serverName,
});
factory FedServerInformation.fromJson(Map<String, dynamic> json) =>
_$FedServerInformationFromJson(json);
Map<String, dynamic> toJson() => _$FedServerInformationToJson(this);
@override
List<Object?> get props => [baseUrl, serverName];
}
Create
|
How to work with Fed serverCreate
|
Request Fed token
Response {
"access_token": "pXoIqYPEUwRUTMUAkjWMMIgF",
"token_type": "Bearer",
"matrix_server_name": "stg.lin-saas.com",
"expires_in": 3600
} Create
|
How to get /hash_details in Fed?Desc
@JsonSerializable()
class FedHashDetailsResponse extends Equatable {
@JsonKey(name: 'algorithms')
final Set<String>? algorithms;
@JsonKey(name: 'lookup_pepper')
final String? lookupPepper;
@JsonKey(name: 'alt_lookup_peppers')
final Set<String>? altLookupPeppers;
const FedHashDetailsResponse({
this.algorithms,
this.lookupPepper,
});
@override
List<Object?> get props => [algorithms, lookupPepper];
factory FedHashDetailsResponse.fromJson(Map<String, dynamic> json) =>
_$FedHashDetailsResponseFromJson(json);
Map<String, dynamic> toJson() => _$FedHashDetailsResponseToJson(this);
}
DoD
|
How to fetch /look_up in Fed?Desc:
@JsonSerializable()
class LookupListMxidResponse extends Equatable {
@JsonKey(name: 'mappings')
final Map<String, String>? mappings;
@JsonKey(name: 'inactive_mappings')
final Map<String, String>? inactiveMappings;
@JsonKey(name: 'third_party_mappings')
final Map<String, ThirdPartyMappingsData>? thirdPartyMappings;
const LookupListMxidResponse({
this.mappings,
this.inactiveMappings,
this.thirdPartyMappings,
});
factory LookupListMxidResponse.fromJson(Map<String, dynamic> json) =>
_$LookupListMxidResponseFromJson(json);
Map<String, dynamic> toJson() => _$LookupListMxidResponseToJson(this);
@override
List<Object?> get props => [mappings, inactiveMappings];
}
@JsonSerializable()
class ThirdPartyMappingsData with EquatableMixin {
@JsonKey(name: 'actives')
final Set<String>? actives;
@JsonKey(name: 'inactives')
final Set<String>? inactives;
ThirdPartyMappingsData({
this.actives,
this.inactives,
});
factory ThirdPartyMappingsData.fromJson(Map<String, dynamic> json) =>
_$ThirdPartyMappingsDataFromJson(json);
Map<String, dynamic> toJson() => _$ThirdPartyMappingsDataToJson(this);
@override
List<Object?> get props => [actives, inactives];
}
|
Update fetch
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Desc:
DoD:
The text was updated successfully, but these errors were encountered: