Browse Source

Merge pull request #1122 from nextcloud/chore/nextcloud/update-spreed-spec

pull/1113/head
Kate 1 year ago committed by GitHub
parent
commit
916e57f9a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      external/nextcloud-spreed
  2. 12
      packages/nextcloud/lib/src/api/spreed.openapi.dart
  3. 112
      packages/nextcloud/lib/src/api/spreed.openapi.g.dart
  4. 18
      packages/nextcloud/lib/src/api/spreed.openapi.json

2
external/nextcloud-spreed vendored

@ -1 +1 @@
Subproject commit ec8eb42fe3ef5d0f0247a3fd078099e49d0140c3 Subproject commit 7489cced7336f83d477aeda5c902f5bb08ebddfd

12
packages/nextcloud/lib/src/api/spreed.openapi.dart

@ -16609,14 +16609,14 @@ abstract interface class FederationInviteInterface {
@BuiltValueField(wireName: 'access_token') @BuiltValueField(wireName: 'access_token')
String get accessToken; String get accessToken;
int get id; int get id;
@BuiltValueField(wireName: 'remote_id') @BuiltValueField(wireName: 'local_room_id')
String get remoteId; int get localRoomId;
@BuiltValueField(wireName: 'remote_server') @BuiltValueField(wireName: 'remote_attendee_id')
String get remoteServer; String get remoteAttendeeId;
@BuiltValueField(wireName: 'remote_server_url')
String get remoteServerUrl;
@BuiltValueField(wireName: 'remote_token') @BuiltValueField(wireName: 'remote_token')
String get remoteToken; String get remoteToken;
@BuiltValueField(wireName: 'room_id')
int get roomId;
@BuiltValueField(wireName: 'user_id') @BuiltValueField(wireName: 'user_id')
String get userId; String get userId;
} }

112
packages/nextcloud/lib/src/api/spreed.openapi.g.dart

@ -8398,14 +8398,14 @@ class _$FederationInviteSerializer implements StructuredSerializer<FederationInv
serializers.serialize(object.accessToken, specifiedType: const FullType(String)), serializers.serialize(object.accessToken, specifiedType: const FullType(String)),
'id', 'id',
serializers.serialize(object.id, specifiedType: const FullType(int)), serializers.serialize(object.id, specifiedType: const FullType(int)),
'remote_id', 'local_room_id',
serializers.serialize(object.remoteId, specifiedType: const FullType(String)), serializers.serialize(object.localRoomId, specifiedType: const FullType(int)),
'remote_server', 'remote_attendee_id',
serializers.serialize(object.remoteServer, specifiedType: const FullType(String)), serializers.serialize(object.remoteAttendeeId, specifiedType: const FullType(String)),
'remote_server_url',
serializers.serialize(object.remoteServerUrl, specifiedType: const FullType(String)),
'remote_token', 'remote_token',
serializers.serialize(object.remoteToken, specifiedType: const FullType(String)), serializers.serialize(object.remoteToken, specifiedType: const FullType(String)),
'room_id',
serializers.serialize(object.roomId, specifiedType: const FullType(int)),
'user_id', 'user_id',
serializers.serialize(object.userId, specifiedType: const FullType(String)), serializers.serialize(object.userId, specifiedType: const FullType(String)),
]; ];
@ -8430,18 +8430,18 @@ class _$FederationInviteSerializer implements StructuredSerializer<FederationInv
case 'id': case 'id':
result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int; result.id = serializers.deserialize(value, specifiedType: const FullType(int))! as int;
break; break;
case 'remote_id': case 'local_room_id':
result.remoteId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; result.localRoomId = serializers.deserialize(value, specifiedType: const FullType(int))! as int;
break;
case 'remote_attendee_id':
result.remoteAttendeeId = serializers.deserialize(value, specifiedType: const FullType(String))! as String;
break; break;
case 'remote_server': case 'remote_server_url':
result.remoteServer = serializers.deserialize(value, specifiedType: const FullType(String))! as String; result.remoteServerUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String;
break; break;
case 'remote_token': case 'remote_token':
result.remoteToken = serializers.deserialize(value, specifiedType: const FullType(String))! as String; result.remoteToken = serializers.deserialize(value, specifiedType: const FullType(String))! as String;
break; break;
case 'room_id':
result.roomId = serializers.deserialize(value, specifiedType: const FullType(int))! as int;
break;
case 'user_id': case 'user_id':
result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; result.userId = serializers.deserialize(value, specifiedType: const FullType(String))! as String;
break; break;
@ -31211,18 +31211,18 @@ abstract mixin class FederationInviteInterfaceBuilder {
int? get id; int? get id;
set id(int? id); set id(int? id);
String? get remoteId; int? get localRoomId;
set remoteId(String? remoteId); set localRoomId(int? localRoomId);
String? get remoteAttendeeId;
set remoteAttendeeId(String? remoteAttendeeId);
String? get remoteServer; String? get remoteServerUrl;
set remoteServer(String? remoteServer); set remoteServerUrl(String? remoteServerUrl);
String? get remoteToken; String? get remoteToken;
set remoteToken(String? remoteToken); set remoteToken(String? remoteToken);
int? get roomId;
set roomId(int? roomId);
String? get userId; String? get userId;
set userId(String? userId); set userId(String? userId);
} }
@ -31233,13 +31233,13 @@ class _$FederationInvite extends FederationInvite {
@override @override
final int id; final int id;
@override @override
final String remoteId; final int localRoomId;
@override @override
final String remoteServer; final String remoteAttendeeId;
@override @override
final String remoteToken; final String remoteServerUrl;
@override @override
final int roomId; final String remoteToken;
@override @override
final String userId; final String userId;
@ -31249,18 +31249,18 @@ class _$FederationInvite extends FederationInvite {
_$FederationInvite._( _$FederationInvite._(
{required this.accessToken, {required this.accessToken,
required this.id, required this.id,
required this.remoteId, required this.localRoomId,
required this.remoteServer, required this.remoteAttendeeId,
required this.remoteServerUrl,
required this.remoteToken, required this.remoteToken,
required this.roomId,
required this.userId}) required this.userId})
: super._() { : super._() {
BuiltValueNullFieldError.checkNotNull(accessToken, r'FederationInvite', 'accessToken'); BuiltValueNullFieldError.checkNotNull(accessToken, r'FederationInvite', 'accessToken');
BuiltValueNullFieldError.checkNotNull(id, r'FederationInvite', 'id'); BuiltValueNullFieldError.checkNotNull(id, r'FederationInvite', 'id');
BuiltValueNullFieldError.checkNotNull(remoteId, r'FederationInvite', 'remoteId'); BuiltValueNullFieldError.checkNotNull(localRoomId, r'FederationInvite', 'localRoomId');
BuiltValueNullFieldError.checkNotNull(remoteServer, r'FederationInvite', 'remoteServer'); BuiltValueNullFieldError.checkNotNull(remoteAttendeeId, r'FederationInvite', 'remoteAttendeeId');
BuiltValueNullFieldError.checkNotNull(remoteServerUrl, r'FederationInvite', 'remoteServerUrl');
BuiltValueNullFieldError.checkNotNull(remoteToken, r'FederationInvite', 'remoteToken'); BuiltValueNullFieldError.checkNotNull(remoteToken, r'FederationInvite', 'remoteToken');
BuiltValueNullFieldError.checkNotNull(roomId, r'FederationInvite', 'roomId');
BuiltValueNullFieldError.checkNotNull(userId, r'FederationInvite', 'userId'); BuiltValueNullFieldError.checkNotNull(userId, r'FederationInvite', 'userId');
} }
@ -31276,10 +31276,10 @@ class _$FederationInvite extends FederationInvite {
return other is FederationInvite && return other is FederationInvite &&
accessToken == other.accessToken && accessToken == other.accessToken &&
id == other.id && id == other.id &&
remoteId == other.remoteId && localRoomId == other.localRoomId &&
remoteServer == other.remoteServer && remoteAttendeeId == other.remoteAttendeeId &&
remoteServerUrl == other.remoteServerUrl &&
remoteToken == other.remoteToken && remoteToken == other.remoteToken &&
roomId == other.roomId &&
userId == other.userId; userId == other.userId;
} }
@ -31288,10 +31288,10 @@ class _$FederationInvite extends FederationInvite {
var _$hash = 0; var _$hash = 0;
_$hash = $jc(_$hash, accessToken.hashCode); _$hash = $jc(_$hash, accessToken.hashCode);
_$hash = $jc(_$hash, id.hashCode); _$hash = $jc(_$hash, id.hashCode);
_$hash = $jc(_$hash, remoteId.hashCode); _$hash = $jc(_$hash, localRoomId.hashCode);
_$hash = $jc(_$hash, remoteServer.hashCode); _$hash = $jc(_$hash, remoteAttendeeId.hashCode);
_$hash = $jc(_$hash, remoteServerUrl.hashCode);
_$hash = $jc(_$hash, remoteToken.hashCode); _$hash = $jc(_$hash, remoteToken.hashCode);
_$hash = $jc(_$hash, roomId.hashCode);
_$hash = $jc(_$hash, userId.hashCode); _$hash = $jc(_$hash, userId.hashCode);
_$hash = $jf(_$hash); _$hash = $jf(_$hash);
return _$hash; return _$hash;
@ -31302,10 +31302,10 @@ class _$FederationInvite extends FederationInvite {
return (newBuiltValueToStringHelper(r'FederationInvite') return (newBuiltValueToStringHelper(r'FederationInvite')
..add('accessToken', accessToken) ..add('accessToken', accessToken)
..add('id', id) ..add('id', id)
..add('remoteId', remoteId) ..add('localRoomId', localRoomId)
..add('remoteServer', remoteServer) ..add('remoteAttendeeId', remoteAttendeeId)
..add('remoteServerUrl', remoteServerUrl)
..add('remoteToken', remoteToken) ..add('remoteToken', remoteToken)
..add('roomId', roomId)
..add('userId', userId)) ..add('userId', userId))
.toString(); .toString();
} }
@ -31323,22 +31323,22 @@ class FederationInviteBuilder
int? get id => _$this._id; int? get id => _$this._id;
set id(covariant int? id) => _$this._id = id; set id(covariant int? id) => _$this._id = id;
String? _remoteId; int? _localRoomId;
String? get remoteId => _$this._remoteId; int? get localRoomId => _$this._localRoomId;
set remoteId(covariant String? remoteId) => _$this._remoteId = remoteId; set localRoomId(covariant int? localRoomId) => _$this._localRoomId = localRoomId;
String? _remoteAttendeeId;
String? get remoteAttendeeId => _$this._remoteAttendeeId;
set remoteAttendeeId(covariant String? remoteAttendeeId) => _$this._remoteAttendeeId = remoteAttendeeId;
String? _remoteServer; String? _remoteServerUrl;
String? get remoteServer => _$this._remoteServer; String? get remoteServerUrl => _$this._remoteServerUrl;
set remoteServer(covariant String? remoteServer) => _$this._remoteServer = remoteServer; set remoteServerUrl(covariant String? remoteServerUrl) => _$this._remoteServerUrl = remoteServerUrl;
String? _remoteToken; String? _remoteToken;
String? get remoteToken => _$this._remoteToken; String? get remoteToken => _$this._remoteToken;
set remoteToken(covariant String? remoteToken) => _$this._remoteToken = remoteToken; set remoteToken(covariant String? remoteToken) => _$this._remoteToken = remoteToken;
int? _roomId;
int? get roomId => _$this._roomId;
set roomId(covariant int? roomId) => _$this._roomId = roomId;
String? _userId; String? _userId;
String? get userId => _$this._userId; String? get userId => _$this._userId;
set userId(covariant String? userId) => _$this._userId = userId; set userId(covariant String? userId) => _$this._userId = userId;
@ -31350,10 +31350,10 @@ class FederationInviteBuilder
if ($v != null) { if ($v != null) {
_accessToken = $v.accessToken; _accessToken = $v.accessToken;
_id = $v.id; _id = $v.id;
_remoteId = $v.remoteId; _localRoomId = $v.localRoomId;
_remoteServer = $v.remoteServer; _remoteAttendeeId = $v.remoteAttendeeId;
_remoteServerUrl = $v.remoteServerUrl;
_remoteToken = $v.remoteToken; _remoteToken = $v.remoteToken;
_roomId = $v.roomId;
_userId = $v.userId; _userId = $v.userId;
_$v = null; _$v = null;
} }
@ -31379,10 +31379,12 @@ class FederationInviteBuilder
_$FederationInvite._( _$FederationInvite._(
accessToken: BuiltValueNullFieldError.checkNotNull(accessToken, r'FederationInvite', 'accessToken'), accessToken: BuiltValueNullFieldError.checkNotNull(accessToken, r'FederationInvite', 'accessToken'),
id: BuiltValueNullFieldError.checkNotNull(id, r'FederationInvite', 'id'), id: BuiltValueNullFieldError.checkNotNull(id, r'FederationInvite', 'id'),
remoteId: BuiltValueNullFieldError.checkNotNull(remoteId, r'FederationInvite', 'remoteId'), localRoomId: BuiltValueNullFieldError.checkNotNull(localRoomId, r'FederationInvite', 'localRoomId'),
remoteServer: BuiltValueNullFieldError.checkNotNull(remoteServer, r'FederationInvite', 'remoteServer'), remoteAttendeeId:
BuiltValueNullFieldError.checkNotNull(remoteAttendeeId, r'FederationInvite', 'remoteAttendeeId'),
remoteServerUrl:
BuiltValueNullFieldError.checkNotNull(remoteServerUrl, r'FederationInvite', 'remoteServerUrl'),
remoteToken: BuiltValueNullFieldError.checkNotNull(remoteToken, r'FederationInvite', 'remoteToken'), remoteToken: BuiltValueNullFieldError.checkNotNull(remoteToken, r'FederationInvite', 'remoteToken'),
roomId: BuiltValueNullFieldError.checkNotNull(roomId, r'FederationInvite', 'roomId'),
userId: BuiltValueNullFieldError.checkNotNull(userId, r'FederationInvite', 'userId')); userId: BuiltValueNullFieldError.checkNotNull(userId, r'FederationInvite', 'userId'));
replace(_$result); replace(_$result);
return _$result; return _$result;

18
packages/nextcloud/lib/src/api/spreed.openapi.json

@ -306,10 +306,10 @@
"required": [ "required": [
"access_token", "access_token",
"id", "id",
"remote_id", "local_room_id",
"remote_server", "remote_attendee_id",
"remote_server_url",
"remote_token", "remote_token",
"room_id",
"user_id" "user_id"
], ],
"properties": { "properties": {
@ -320,19 +320,19 @@
"type": "integer", "type": "integer",
"format": "int64" "format": "int64"
}, },
"remote_id": { "local_room_id": {
"type": "integer",
"format": "int64"
},
"remote_attendee_id": {
"type": "string" "type": "string"
}, },
"remote_server": { "remote_server_url": {
"type": "string" "type": "string"
}, },
"remote_token": { "remote_token": {
"type": "string" "type": "string"
}, },
"room_id": {
"type": "integer",
"format": "int64"
},
"user_id": { "user_id": {
"type": "string" "type": "string"
} }

Loading…
Cancel
Save