Skip to content

Commit 09144f5

Browse files
authored
Merge pull request #120 from linuxfoundation/andrest50/ai-summary-enabled
[LFXV2-1229] Add ai_summary_enabled field and fix artifact visibility access gating on meeting endpoints
2 parents 9cd97f4 + f775b67 commit 09144f5

File tree

15 files changed

+1419
-1363
lines changed

15 files changed

+1419
-1363
lines changed

cmd/meeting-api/api_itx_meetings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func (s *MeetingsAPI) UpdateItxMeeting(ctx context.Context, p *meetingsvc.Update
6262
RecordingEnabled: p.RecordingEnabled,
6363
TranscriptEnabled: p.TranscriptEnabled,
6464
YoutubeUploadEnabled: p.YoutubeUploadEnabled,
65+
AiSummaryEnabled: p.AiSummaryEnabled,
6566
ArtifactVisibility: p.ArtifactVisibility,
6667
Recurrence: p.Recurrence,
6768
})

cmd/meeting-api/service/itx_meeting_converters.go

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func ConvertCreateITXMeetingPayloadToDomain(p *meetingservice.CreateItxMeetingPa
2626
RecordingEnabled: utils.BoolValue(p.RecordingEnabled),
2727
TranscriptEnabled: utils.BoolValue(p.TranscriptEnabled),
2828
YoutubeUploadEnabled: utils.BoolValue(p.YoutubeUploadEnabled),
29+
AISummaryEnabled: utils.BoolValue(p.AiSummaryEnabled),
2930
ArtifactVisibility: utils.StringValue(p.ArtifactVisibility),
3031
}
3132

@@ -73,10 +74,11 @@ func ConvertITXMeetingResponseToGoa(resp *itx.ZoomMeetingResponse) *meetingservi
7374
Restricted: ptrIfTrue(resp.Restricted),
7475
MeetingType: ptrIfNotEmpty(resp.MeetingType),
7576
EarlyJoinTimeMinutes: ptrIfNotZero(resp.EarlyJoinTime),
76-
RecordingEnabled: ptrIfTrue(resp.RecordingEnabled),
77-
TranscriptEnabled: ptrIfTrue(resp.TranscriptEnabled),
77+
RecordingEnabled: &resp.RecordingEnabled,
78+
TranscriptEnabled: &resp.TranscriptEnabled,
7879
YoutubeUploadEnabled: ptrIfTrue(resp.YoutubeUploadEnabled),
79-
ArtifactVisibility: ptrIfNotEmpty(resp.RecordingAccess),
80+
AiSummaryEnabled: &resp.ZoomAIEnabled,
81+
ArtifactVisibility: ptrIfNotEmpty(firstNonEmpty(resp.RecordingAccess, resp.TranscriptAccess, resp.AISummaryAccess)),
8082

8183
// Read-only response fields
8284
ID: &resp.ID,
@@ -201,6 +203,15 @@ func ConvertUpdateOccurrencePayloadToITX(p *meetingservice.UpdateItxOccurrencePa
201203
}
202204

203205
// Helper functions for pointer conversion
206+
func firstNonEmpty(vals ...string) string {
207+
for _, v := range vals {
208+
if v != "" {
209+
return v
210+
}
211+
}
212+
return ""
213+
}
214+
204215
func ptrIfNotEmpty(s string) *string {
205216
if s == "" {
206217
return nil

design/itx_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ func ArtifactVisibilityAttribute() {
8282
})
8383
}
8484

85+
func AISummaryEnabledAttribute() {
86+
Attribute("ai_summary_enabled", Boolean, "Whether Zoom AI Companion summary is enabled for the meeting")
87+
}
88+
8589
func RecurrenceAttribute() {
8690
Attribute("recurrence", Recurrence, "The recurrence of the meeting")
8791
}
@@ -140,6 +144,7 @@ var ITXZoomMeetingResponse = Type("ITXZoomMeetingResponse", func() {
140144
RecordingEnabledAttribute()
141145
TranscriptEnabledAttribute()
142146
YoutubeUploadEnabledAttribute()
147+
AISummaryEnabledAttribute()
143148
ArtifactVisibilityAttribute()
144149
RecurrenceAttribute()
145150

design/meeting-svc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ var _ = Service("Meeting Service", func() {
7070
RecordingEnabledAttribute()
7171
TranscriptEnabledAttribute()
7272
YoutubeUploadEnabledAttribute()
73+
AISummaryEnabledAttribute()
7374
ArtifactVisibilityAttribute()
7475
RecurrenceAttribute()
7576
Required("project_uid", "title", "start_time", "duration", "timezone", "visibility")
@@ -200,6 +201,7 @@ var _ = Service("Meeting Service", func() {
200201
RecordingEnabledAttribute()
201202
TranscriptEnabledAttribute()
202203
YoutubeUploadEnabledAttribute()
204+
AISummaryEnabledAttribute()
203205
ArtifactVisibilityAttribute()
204206
RecurrenceAttribute()
205207
Required("meeting_id", "project_uid", "title", "start_time", "duration", "timezone", "visibility")

gen/http/cli/meeting_service/cli.go

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/http/meeting_service/client/cli.go

Lines changed: 18 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/http/meeting_service/client/types.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/http/meeting_service/server/types.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/http/openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)