Skip to content

Commit c5cc3e3

Browse files
authored
Merge pull request #2606 from traPtitech/fix/qall-openapi-event-name
qallに関するeventの記載漏れとoperationIdの修正
2 parents 59aebda + 6f86a7a commit c5cc3e3

File tree

2 files changed

+111
-2
lines changed

2 files changed

+111
-2
lines changed

docs/v3-api.yaml

+110-1
Original file line numberDiff line numberDiff line change
@@ -2782,6 +2782,40 @@ paths:
27822782
27832783
+ `folder_id`: メッセージが追加されたクリップフォルダーのId
27842784
+ `message_id`: クリップフォルダーに追加されたメッセージのId
2785+
2786+
### `QALL_ROOM_STATE_CHANGED`
2787+
ルーム状態が変更された。
2788+
2789+
対象: 全員
2790+
2791+
+ `room_id`: 変更されたルームのId
2792+
+ `state`: 変更後のルーム状態
2793+
+ `roomId`: ルームのID
2794+
+ `participants`: ルーム内の参加者(配列)
2795+
+ `identity`: ユーザーID_RandomUUID
2796+
+ `name`: 表示名
2797+
+ `joinedAt`: 参加した時刻
2798+
+ `attributes`: ユーザーに関連付けられたカスタム属性
2799+
+ `canPublish`: 発言権限
2800+
+ `isWebinar`: ウェビナールームかどうか
2801+
+ `metadata`: ルームに関連付けられたカスタム属性
2802+
2803+
### `QALL_SOUNDBOARD_ITEM_CREATED`
2804+
サウンドボードアイテムが作成された。
2805+
2806+
対象: 全員
2807+
2808+
+ `sound_id`: 作成されたサウンドのId
2809+
+ `name`: サウンド名
2810+
+ `creator_id`: 作成者のId
2811+
2812+
### `QALL_SOUNDBOARD_ITEM_DELETED`
2813+
サウンドボードアイテムが削除された。
2814+
2815+
対象: 全員
2816+
2817+
+ `sound_id`: 削除されたサウンドのId
2818+
27852819
/users/me/tokens:
27862820
get:
27872821
summary: 有効トークンのリストを取得
@@ -4353,7 +4387,7 @@ paths:
43534387
summary: LiveKitエンドポイントを取得
43544388
description: >
43554389
接続可能なLiveKitエンドポイントを取得します。
4356-
operationId: getEndpoints
4390+
operationId: getQallEndpoints
43574391
tags:
43584392
- qall
43594393
responses:
@@ -6947,6 +6981,81 @@ components:
69476981
required:
69486982
- userId
69496983
- channelId
6984+
QallRoomStateChangedEvent:
6985+
title: QallRoomStateChangedEvent
6986+
type: object
6987+
description: Qallのルーム状態が変更された
6988+
properties:
6989+
room_id:
6990+
type: string
6991+
format: uuid
6992+
description: 変更されたルームのId
6993+
state:
6994+
type: object
6995+
description: 変更後のルーム状態
6996+
properties:
6997+
roomId:
6998+
type: string
6999+
format: uuid
7000+
description: ルームのID
7001+
participants:
7002+
type: array
7003+
items:
7004+
type: object
7005+
properties:
7006+
identity:
7007+
type: string
7008+
description: ユーザーID_RandomUUID
7009+
name:
7010+
type: string
7011+
description: 表示名
7012+
joinedAt:
7013+
type: string
7014+
format: date-time
7015+
description: 参加した時刻
7016+
attributes:
7017+
type: object
7018+
additionalProperties:
7019+
type: string
7020+
description: ユーザーに関連付けられたカスタム属性
7021+
canPublish:
7022+
type: boolean
7023+
description: 発言権限
7024+
isWebinar:
7025+
type: boolean
7026+
description: ウェビナールームかどうか
7027+
metadata:
7028+
type: string
7029+
description: ルームに関連付けられたカスタム属性
7030+
required:
7031+
- room_id
7032+
- state
7033+
QallSoundboardItemCreatedEvent:
7034+
title: QallSoundboardItemCreatedEvent
7035+
type: object
7036+
description: Qallのサウンドボードアイテムが作成された
7037+
properties:
7038+
soundId:
7039+
type: string
7040+
format: uuid
7041+
description: 作成されたサウンドボードアイテムのId
7042+
name:
7043+
type: string
7044+
description: 作成されたサウンドボードアイテムの名前
7045+
creatorId:
7046+
type: string
7047+
format: uuid
7048+
description: 作成者のId
7049+
QallSoundboardItemDeletedEvent:
7050+
title: QallSoundboardItemDeletedEvent
7051+
type: object
7052+
description: Qallのサウンドボードアイテムが削除された
7053+
properties:
7054+
soundId:
7055+
type: string
7056+
format: uuid
7057+
description: 削除されたサウンドボードアイテムのId
7058+
69507059
StampPalette:
69517060
title: StampPalette
69527061
type: object

service/qall/roomstate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type RoomWithParticipants struct {
4545
Participants []Participant `json:"participants"`
4646

4747
// RoomID ルームのID
48-
RoomID uuid.UUID `json:"roomID"`
48+
RoomID uuid.UUID `json:"roomId"`
4949
}
5050

5151
// RoomStateManager はQallルーム状態を管理するインターフェース

0 commit comments

Comments
 (0)