Skip to content

Commit

Permalink
feat(nextcloud): Add spreed
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <jld3103yt@gmail.com>
  • Loading branch information
provokateurin committed Oct 16, 2023
1 parent a4b4632 commit 1bd54ca
Show file tree
Hide file tree
Showing 8 changed files with 102,077 additions and 6,832 deletions.
3 changes: 3 additions & 0 deletions packages/nextcloud/lib/ids.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ final class AppIDs {
/// ID for the sharebymail app.
static const sharebymail = 'sharebymail';

/// ID for the spreed app.
static const spreed = 'spreed';

/// ID for the theming app.
static const theming = 'theming';

Expand Down
13 changes: 13 additions & 0 deletions packages/nextcloud/lib/spreed.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// coverage:ignore-file
import 'package:nextcloud/src/api/spreed.openapi.dart';
import 'package:nextcloud/src/client.dart';

export 'src/api/spreed.openapi.dart';

// ignore: public_member_api_docs
extension SpreedExtension on NextcloudClient {
static final _spreed = Expando<Client>();

/// Client for the spreed APIs
Client get spreed => _spreed[this] ??= Client.fromClient(this);
}
346 changes: 346 additions & 0 deletions packages/nextcloud/lib/src/api/core.openapi.dart

Large diffs are not rendered by default.

15,425 changes: 8,593 additions & 6,832 deletions packages/nextcloud/lib/src/api/core.openapi.g.dart

Large diffs are not rendered by default.

163 changes: 163 additions & 0 deletions packages/nextcloud/lib/src/api/core.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,166 @@
}
}
},
"SpreedPublicCapabilities": {
"type": "object",
"required": [
"spreed"
],
"properties": {
"spreed": {
"type": "object",
"required": [
"features",
"config",
"version"
],
"properties": {
"features": {
"type": "array",
"items": {
"type": "string"
}
},
"config": {
"type": "object",
"required": [
"attachments",
"call",
"chat",
"conversations",
"previews",
"signaling"
],
"properties": {
"attachments": {
"type": "object",
"required": [
"allowed"
],
"properties": {
"allowed": {
"type": "boolean"
},
"folder": {
"type": "string"
}
}
},
"call": {
"type": "object",
"required": [
"enabled",
"breakout-rooms",
"recording",
"recording-consent",
"supported-reactions",
"predefined-backgrounds",
"can-upload-background"
],
"properties": {
"enabled": {
"type": "boolean"
},
"breakout-rooms": {
"type": "boolean"
},
"recording": {
"type": "boolean"
},
"recording-consent": {
"type": "integer",
"format": "int64"
},
"supported-reactions": {
"type": "array",
"items": {
"type": "string"
}
},
"predefined-backgrounds": {
"type": "array",
"items": {
"type": "string"
}
},
"can-upload-background": {
"type": "boolean"
}
}
},
"chat": {
"type": "object",
"required": [
"max-length",
"read-privacy",
"has-translation-providers",
"typing-privacy"
],
"properties": {
"max-length": {
"type": "integer",
"format": "int64"
},
"read-privacy": {
"type": "integer",
"format": "int64"
},
"has-translation-providers": {
"type": "boolean"
},
"typing-privacy": {
"type": "integer",
"format": "int64"
}
}
},
"conversations": {
"type": "object",
"required": [
"can-create"
],
"properties": {
"can-create": {
"type": "boolean"
}
}
},
"previews": {
"type": "object",
"required": [
"max-gif-size"
],
"properties": {
"max-gif-size": {
"type": "integer",
"format": "int64"
}
}
},
"signaling": {
"type": "object",
"required": [
"session-ping-limit"
],
"properties": {
"session-ping-limit": {
"type": "integer",
"format": "int64"
},
"hello-v2-token-key": {
"type": "string"
}
}
}
}
},
"version": {
"type": "string"
}
}
}
}
},
"ThemingPublicCapabilities": {
"type": "object",
"required": [
Expand Down Expand Up @@ -2191,6 +2351,9 @@
{
"$ref": "#/components/schemas/SharebymailCapabilities"
},
{
"$ref": "#/components/schemas/SpreedPublicCapabilities"
},
{
"$ref": "#/components/schemas/ThemingPublicCapabilities"
},
Expand Down
Loading

0 comments on commit 1bd54ca

Please sign in to comment.