diff options
author | Joas Schilling <coding@schilljs.com> | 2024-03-14 15:29:13 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-03-14 15:36:34 +0100 |
commit | 7d46ee503069045463ab7b58837944ee33c8e582 (patch) | |
tree | 87e179643073f3f38435a3805b572070b521ab59 /lib | |
parent | 8b1f7915ba0cdf5fdb29cebbafd9186bb799f29d (diff) |
fix(openapi): Provide better message parameter definitions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ResponseDefinitions.php | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/lib/ResponseDefinitions.php b/lib/ResponseDefinitions.php index 4189222da..263f3deb2 100644 --- a/lib/ResponseDefinitions.php +++ b/lib/ResponseDefinitions.php @@ -67,6 +67,32 @@ namespace OCA\Talk; * statusMessage: ?string, * } * + * @psalm-type TalkRichObjectParameter = array{ + * type: string, + * id: string, + * name: string, + * server?: string, + * link?: string, + * 'call-type'?: 'one2one'|'group'|'public', + * 'icon-url'?: string, + * 'message-id'?: string, + * boardname?: string, + * stackname?: string, + * size?: string, + * path?: string, + * mimetype?: string, + * 'preview-available'?: 'yes'|'no', + * mtime?: string, + * latitude?: string, + * longitude?: string, + * description?: string, + * thumb?: string, + * website?: string, + * visibility?: '0'|'1', + * assignable?: '0'|'1', + * conversation?: string, + * } + * * @psalm-type TalkChatMessage = array{ * actorDisplayName: string, * actorId: string, @@ -77,7 +103,7 @@ namespace OCA\Talk; * isReplyable: bool, * markdown: bool, * message: string, - * messageParameters: array<string, array<string, mixed>>, + * messageParameters: array<string, TalkRichObjectParameter>, * messageType: string, * reactions: array<string, integer>|\stdClass, * referenceId: string, @@ -97,7 +123,7 @@ namespace OCA\Talk; * actorType: string, * expirationTimestamp: int, * message: string, - * messageParameters: array<string, array<string, mixed>>, + * messageParameters: array<string, TalkRichObjectParameter>, * messageType: string, * systemMessage: string, * } |