Go to file
Krille Fear 5e06721639 fix: Make type in AuthenticationData nullable
It seems that there is a problem in the matrix Spec according to this.
the Spec says that the type is required and session is nullable.
But for using this endpoint:
https://spec.matrix.org/unstable/client-server-api/#client-behaviour-1-1
We need to send an auth object which only contains the session.
We should file an issue at the spec and ask there for more information.
Currently we should make type nullable as well because otherwise
this would break uiaRequests in the app for SSO.
2021-08-30 07:55:21 +00:00
example refactor: mostly use dart_openapi_codegen 2021-06-25 12:40:03 +02:00
lib fix: Make type in AuthenticationData nullable 2021-08-30 07:55:21 +00:00
test refactor: remove uploadKeySignatures (use uploadCrossSigningSignatures) 2021-08-20 16:17:40 +02:00
.gitignore Initial commit 2020-12-28 12:01:03 +01:00
.gitlab-ci.yml fix: Typo and wellknown parsing 2021-03-01 11:38:53 +01:00
CHANGELOG.md chore: Bump version 2021-08-20 14:06:07 +00:00
CONTRIBUTING.md fix: Typo and wellknown parsing 2021-03-01 11:38:53 +01:00
LICENSE docs: Update license to MIT 2021-01-08 13:14:03 +01:00
README.md refactor: mostly use dart_openapi_codegen 2021-06-25 12:40:03 +02:00
analysis_options.yaml refactor: mostly use dart_openapi_codegen 2021-06-25 12:40:03 +02:00
pubspec.yaml chore: Bump version 2021-08-20 14:06:07 +00:00

README.md

Matrix API Lite

This package is a dead simple data model over the client-server specification of https://matrix.org and is mostly used as a base for a more complete Matrix SDK. It doesn't contain any logic and just provides methods for all API endpoints and json parser for all objects. It is intended to be as close to the specificaton as possible so we get a 1:1 relationship with the API. More complex logic like a sync loop or a data model for rooms should be implemented in a more complete Matrix SDK.

Usage

A simple usage example:

import 'package:matrix_api_lite/src/matrix_api.dart';

void main() async {
  final api = MatrixApi(homeserver: Uri.parse('https://matrix.org'));
  final capabilities = await api.requestServerCapabilities();
  print(capabilities.toJson());
}

Generated code

The files in lib/src/generated are generated by dart_openapi_codegen from matrix-doc. See the README.md in dart_openapi_codegen for more information.