From 2de5de157732a86fd13a781d58cdd220734654ec Mon Sep 17 00:00:00 2001 From: Ali Momen Sani Date: Wed, 11 Dec 2024 15:00:18 +0100 Subject: [PATCH 1/6] add the option for the generate-spec command to rename models --- Scripts/generate.sh | 2 +- Scripts/renamed-models.json | 21 +++++++++ .../OpenApi/generated/APIs/DefaultAPI.swift | 11 +++-- .../generated/Models/CallClosedCaption.swift | 4 +- .../OpenApi/generated/Models/CallEvent.swift | 4 +- .../generated/Models/CallResponse.swift | 4 +- .../{Device.swift => DeviceResponse.swift} | 4 +- .../generated/Models/HealthCheckEvent.swift | 7 +-- .../generated/Models/LayoutSettings.swift | 15 +++++- .../Models/ListDevicesResponse.swift | 4 +- .../OpenApi/generated/Models/NullBool.swift | 31 ------------- .../OpenApi/generated/Models/NullTime.swift | 31 ------------- .../generated/Models/OwnUserResponse.swift | 4 +- .../Models/PushNotificationSettings.swift | 31 ------------- .../generated/Models/StopLiveRequest.swift | 46 +++++++++++++++++++ .../generated/Models/UserEventPayload.swift | 14 +----- .../generated/Models/UserInfoResponse.swift | 4 +- .../generated/Models/UserMuteResponse.swift | 46 ------------------- ...oResolution.swift => VideoDimension.swift} | 4 +- .../generated/Models/VideoQuality.swift | 4 +- 20 files changed, 107 insertions(+), 184 deletions(-) create mode 100644 Scripts/renamed-models.json rename Sources/StreamVideo/OpenApi/generated/Models/{Device.swift => DeviceResponse.swift} (91%) delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/NullBool.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/NullTime.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/PushNotificationSettings.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/UserMuteResponse.swift rename Sources/StreamVideo/OpenApi/generated/Models/{VideoResolution.swift => VideoDimension.swift} (76%) diff --git a/Scripts/generate.sh b/Scripts/generate.sh index dd40c30e2..08add1063 100755 --- a/Scripts/generate.sh +++ b/Scripts/generate.sh @@ -16,7 +16,7 @@ rm -rf ./Sources/StreamVideo/OpenApi/generated/Models/* # cd in API repo, generate new spec and then generate code from it ( cd $SOURCE_PATH && - go run ./cmd/chat-manager openapi generate-spec -products video -version v1 -clientside -output releases/video-openapi-clientside && + go run ./cmd/chat-manager openapi generate-spec -products video -version v1 -clientside -output releases/video-openapi-clientside -renamed-models ../stream-video-swift/Scripts/renamed-models.json && go run ./cmd/chat-manager openapi generate-client --language swift --spec ./releases/video-openapi-clientside.yaml --output ../stream-video-swift/Sources/StreamVideo/OpenApi/generated/ ) diff --git a/Scripts/renamed-models.json b/Scripts/renamed-models.json new file mode 100644 index 000000000..31ed71337 --- /dev/null +++ b/Scripts/renamed-models.json @@ -0,0 +1,21 @@ +{ + "QueryCallMembersResponse": "QueryMembersResponse", + "QueryCallMembersRequest": "QueryMembersRequest", + "Response": "ModelResponse", + "SendCallEventRequest": "SendEventRequest", + "SendCallEventResponse": "SendEventResponse", + "AudioSettingsResponse": "AudioSettings", + "SortParam": "SortParamRequest", + "WSAuthMessage": "WSAuthMessageRequest", + "TranscriptionSettingsResponse": "TranscriptionSettings", + "SendCallEvent": "SendEvent", + "BackstageSettingsResponse": "BackstageSettings", + "GeofenceSettingsResponse": "GeofenceSettings", + "LayoutSettingsRequest": "LayoutSettings", + "RingSettingsResponse": "RingSettings", + "ScreensharingSettingsResponse": "ScreensharingSettings", + "ThumbnailsSettingsResponse": "ThumbnailsSettings", + "VideoSettingsResponse": "VideoSettings", + "TimeStats": "Stats", + "NoiseCancellationSettings": "NoiseCancellationSettingsRequest" +} diff --git a/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift b/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift index b9730071d..9084f5239 100644 --- a/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift +++ b/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift @@ -318,7 +318,7 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { } } - open func sendEvent(type: String, id: String, sendEventRequest: SendEventRequest) async throws -> SendEventResponse { + open func sendCallEvent(type: String, id: String, sendEventRequest: SendEventRequest) async throws -> SendEventResponse { var path = "/video/call/{type}/{id}/event" let typePreEscape = "\(APIHelper.mapValueToPathItem(type))" @@ -797,7 +797,7 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { } } - open func stopLive(type: String, id: String) async throws -> StopLiveResponse { + open func stopLive(type: String, id: String, stopLiveRequest: StopLiveRequest) async throws -> StopLiveResponse { var path = "/video/call/{type}/{id}/stop_live" let typePreEscape = "\(APIHelper.mapValueToPathItem(type))" @@ -809,7 +809,8 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { let urlRequest = try makeRequest( uriPath: path, - httpMethod: "POST" + httpMethod: "POST", + request: stopLiveRequest ) return try await send(request: urlRequest) { try self.jsonDecoder.decode(StopLiveResponse.self, from: $0) @@ -1125,7 +1126,7 @@ protocol DefaultAPIEndpoints { func deleteCall(type: String, id: String, deleteCallRequest: DeleteCallRequest) async throws -> DeleteCallResponse - func sendEvent(type: String, id: String, sendEventRequest: SendEventRequest) async throws -> SendEventResponse + func sendCallEvent(type: String, id: String, sendEventRequest: SendEventRequest) async throws -> SendEventResponse func collectUserFeedback( type: String, @@ -1179,7 +1180,7 @@ protocol DefaultAPIEndpoints { func stopClosedCaptions(type: String, id: String) async throws -> StopClosedCaptionsResponse - func stopLive(type: String, id: String) async throws -> StopLiveResponse + func stopLive(type: String, id: String, stopLiveRequest: StopLiveRequest) async throws -> StopLiveResponse func stopRecording(type: String, id: String) async throws -> StopRecordingResponse diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallClosedCaption.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallClosedCaption.swift index f95a22cc8..fa390ddf3 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallClosedCaption.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallClosedCaption.swift @@ -10,9 +10,9 @@ public final class CallClosedCaption: @unchecked Sendable, Codable, JSONEncodabl public var speakerId: String public var startTime: Date public var text: String - public var user: UserResponse? + public var user: UserResponse - public init(endTime: Date, speakerId: String, startTime: Date, text: String, user: UserResponse? = nil) { + public init(endTime: Date, speakerId: String, startTime: Date, text: String, user: UserResponse) { self.endTime = endTime self.speakerId = speakerId self.startTime = startTime diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallEvent.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallEvent.swift index d2570d207..6ed73d297 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallEvent.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallEvent.swift @@ -12,7 +12,7 @@ public final class CallEvent: @unchecked Sendable, Codable, JSONEncodable, Hasha public var description: String public var endTimestamp: Int public var issueTags: [String]? - public var kind: String? + public var kind: String public var severity: Int public var timestamp: Int public var type: String @@ -24,7 +24,7 @@ public final class CallEvent: @unchecked Sendable, Codable, JSONEncodable, Hasha description: String, endTimestamp: Int, issueTags: [String]? = nil, - kind: String? = nil, + kind: String, severity: Int, timestamp: Int, type: String diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallResponse.swift index 8ede7daea..098e96c57 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallResponse.swift @@ -8,7 +8,7 @@ public final class CallResponse: @unchecked Sendable, Codable, JSONEncodable, Ha public var backstage: Bool public var blockedUserIds: [String] - public var captioning: Bool? + public var captioning: Bool public var cid: String public var createdAt: Date public var createdBy: UserResponse @@ -32,7 +32,7 @@ public final class CallResponse: @unchecked Sendable, Codable, JSONEncodable, Ha public init( backstage: Bool, blockedUserIds: [String], - captioning: Bool? = nil, + captioning: Bool, cid: String, createdAt: Date, createdBy: UserResponse, diff --git a/Sources/StreamVideo/OpenApi/generated/Models/Device.swift b/Sources/StreamVideo/OpenApi/generated/Models/DeviceResponse.swift similarity index 91% rename from Sources/StreamVideo/OpenApi/generated/Models/Device.swift rename to Sources/StreamVideo/OpenApi/generated/Models/DeviceResponse.swift index 1b94bd241..5f4399bde 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/Device.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/DeviceResponse.swift @@ -4,7 +4,7 @@ import Foundation -public final class Device: @unchecked Sendable, Codable, JSONEncodable, Hashable { +public final class DeviceResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { public var createdAt: Date public var disabled: Bool? @@ -46,7 +46,7 @@ public final class Device: @unchecked Sendable, Codable, JSONEncodable, Hashable case voip } - public static func == (lhs: Device, rhs: Device) -> Bool { + public static func == (lhs: DeviceResponse, rhs: DeviceResponse) -> Bool { lhs.createdAt == rhs.createdAt && lhs.disabled == rhs.disabled && lhs.disabledReason == rhs.disabledReason && diff --git a/Sources/StreamVideo/OpenApi/generated/Models/HealthCheckEvent.swift b/Sources/StreamVideo/OpenApi/generated/Models/HealthCheckEvent.swift index 245cb3cb6..bc8000c9d 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/HealthCheckEvent.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/HealthCheckEvent.swift @@ -9,15 +9,13 @@ public final class HealthCheckEvent: @unchecked Sendable, Event, Codable, JSONEn public var cid: String? public var connectionId: String public var createdAt: Date - public var me: OwnUserResponse? public var receivedAt: Date? public var type: String = "health.check" - public init(cid: String? = nil, connectionId: String, createdAt: Date, me: OwnUserResponse? = nil, receivedAt: Date? = nil) { + public init(cid: String? = nil, connectionId: String, createdAt: Date, receivedAt: Date? = nil) { self.cid = cid self.connectionId = connectionId self.createdAt = createdAt - self.me = me self.receivedAt = receivedAt } @@ -25,7 +23,6 @@ public final class HealthCheckEvent: @unchecked Sendable, Event, Codable, JSONEn case cid case connectionId = "connection_id" case createdAt = "created_at" - case me case receivedAt = "received_at" case type } @@ -34,7 +31,6 @@ public final class HealthCheckEvent: @unchecked Sendable, Event, Codable, JSONEn lhs.cid == rhs.cid && lhs.connectionId == rhs.connectionId && lhs.createdAt == rhs.createdAt && - lhs.me == rhs.me && lhs.receivedAt == rhs.receivedAt && lhs.type == rhs.type } @@ -43,7 +39,6 @@ public final class HealthCheckEvent: @unchecked Sendable, Event, Codable, JSONEn hasher.combine(cid) hasher.combine(connectionId) hasher.combine(createdAt) - hasher.combine(me) hasher.combine(receivedAt) hasher.combine(type) } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/LayoutSettings.swift b/Sources/StreamVideo/OpenApi/generated/Models/LayoutSettings.swift index 2e297f1f7..30411d454 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/LayoutSettings.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/LayoutSettings.swift @@ -25,12 +25,20 @@ public final class LayoutSettings: @unchecked Sendable, Codable, JSONEncodable, } } + public var detectOrientation: Bool? public var externalAppUrl: String? public var externalCssUrl: String? public var name: Name public var options: [String: RawJSON]? - public init(externalAppUrl: String? = nil, externalCssUrl: String? = nil, name: Name, options: [String: RawJSON]? = nil) { + public init( + detectOrientation: Bool? = nil, + externalAppUrl: String? = nil, + externalCssUrl: String? = nil, + name: Name, + options: [String: RawJSON]? = nil + ) { + self.detectOrientation = detectOrientation self.externalAppUrl = externalAppUrl self.externalCssUrl = externalCssUrl self.name = name @@ -38,6 +46,7 @@ public final class LayoutSettings: @unchecked Sendable, Codable, JSONEncodable, } public enum CodingKeys: String, CodingKey, CaseIterable { + case detectOrientation = "detect_orientation" case externalAppUrl = "external_app_url" case externalCssUrl = "external_css_url" case name @@ -45,13 +54,15 @@ public final class LayoutSettings: @unchecked Sendable, Codable, JSONEncodable, } public static func == (lhs: LayoutSettings, rhs: LayoutSettings) -> Bool { - lhs.externalAppUrl == rhs.externalAppUrl && + lhs.detectOrientation == rhs.detectOrientation && + lhs.externalAppUrl == rhs.externalAppUrl && lhs.externalCssUrl == rhs.externalCssUrl && lhs.name == rhs.name && lhs.options == rhs.options } public func hash(into hasher: inout Hasher) { + hasher.combine(detectOrientation) hasher.combine(externalAppUrl) hasher.combine(externalCssUrl) hasher.combine(name) diff --git a/Sources/StreamVideo/OpenApi/generated/Models/ListDevicesResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/ListDevicesResponse.swift index 12bf38ee1..9add87a05 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/ListDevicesResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/ListDevicesResponse.swift @@ -6,10 +6,10 @@ import Foundation public final class ListDevicesResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - public var devices: [Device] + public var devices: [DeviceResponse] public var duration: String - public init(devices: [Device], duration: String) { + public init(devices: [DeviceResponse], duration: String) { self.devices = devices self.duration = duration } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/NullBool.swift b/Sources/StreamVideo/OpenApi/generated/Models/NullBool.swift deleted file mode 100644 index a38734c79..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/NullBool.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2024 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class NullBool: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var hasValue: Bool? - public var value: Bool? - - public init(hasValue: Bool? = nil, value: Bool? = nil) { - self.hasValue = hasValue - self.value = value - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case hasValue = "HasValue" - case value = "Value" - } - - public static func == (lhs: NullBool, rhs: NullBool) -> Bool { - lhs.hasValue == rhs.hasValue && - lhs.value == rhs.value - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(hasValue) - hasher.combine(value) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/NullTime.swift b/Sources/StreamVideo/OpenApi/generated/Models/NullTime.swift deleted file mode 100644 index e153805fb..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/NullTime.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2024 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class NullTime: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var hasValue: Bool? - public var value: Date? - - public init(hasValue: Bool? = nil, value: Date? = nil) { - self.hasValue = hasValue - self.value = value - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case hasValue = "HasValue" - case value = "Value" - } - - public static func == (lhs: NullTime, rhs: NullTime) -> Bool { - lhs.hasValue == rhs.hasValue && - lhs.value == rhs.value - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(hasValue) - hasher.combine(value) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/OwnUserResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/OwnUserResponse.swift index f92c2edc8..f04bd4f0e 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/OwnUserResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/OwnUserResponse.swift @@ -11,7 +11,7 @@ public final class OwnUserResponse: @unchecked Sendable, Codable, JSONEncodable, public var custom: [String: RawJSON] public var deactivatedAt: Date? public var deletedAt: Date? - public var devices: [Device] + public var devices: [DeviceResponse] public var id: String public var image: String? public var language: String @@ -29,7 +29,7 @@ public final class OwnUserResponse: @unchecked Sendable, Codable, JSONEncodable, custom: [String: RawJSON], deactivatedAt: Date? = nil, deletedAt: Date? = nil, - devices: [Device], + devices: [DeviceResponse], id: String, image: String? = nil, language: String, diff --git a/Sources/StreamVideo/OpenApi/generated/Models/PushNotificationSettings.swift b/Sources/StreamVideo/OpenApi/generated/Models/PushNotificationSettings.swift deleted file mode 100644 index 40cfd2e35..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/PushNotificationSettings.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2024 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class PushNotificationSettings: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var disabled: Bool? - public var disabledUntil: Date? - - public init(disabled: Bool? = nil, disabledUntil: Date? = nil) { - self.disabled = disabled - self.disabledUntil = disabledUntil - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case disabled - case disabledUntil = "disabled_until" - } - - public static func == (lhs: PushNotificationSettings, rhs: PushNotificationSettings) -> Bool { - lhs.disabled == rhs.disabled && - lhs.disabledUntil == rhs.disabledUntil - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(disabled) - hasher.combine(disabledUntil) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift new file mode 100644 index 000000000..7eb535ee9 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift @@ -0,0 +1,46 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class StopLiveRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var continueHls: Bool? + public var continueRecording: Bool? + public var continueRtmpBroadcast: Bool? + public var continueTranscription: Bool? + + public init( + continueHls: Bool? = nil, + continueRecording: Bool? = nil, + continueRtmpBroadcast: Bool? = nil, + continueTranscription: Bool? = nil + ) { + self.continueHls = continueHls + self.continueRecording = continueRecording + self.continueRtmpBroadcast = continueRtmpBroadcast + self.continueTranscription = continueTranscription + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case continueHls = "continue_hls" + case continueRecording = "continue_recording" + case continueRtmpBroadcast = "continue_rtmp_broadcast" + case continueTranscription = "continue_transcription" + } + + public static func == (lhs: StopLiveRequest, rhs: StopLiveRequest) -> Bool { + lhs.continueHls == rhs.continueHls && + lhs.continueRecording == rhs.continueRecording && + lhs.continueRtmpBroadcast == rhs.continueRtmpBroadcast && + lhs.continueTranscription == rhs.continueTranscription + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(continueHls) + hasher.combine(continueRecording) + hasher.combine(continueRtmpBroadcast) + hasher.combine(continueTranscription) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserEventPayload.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserEventPayload.swift index 1e76bff5c..8c0d603bd 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/UserEventPayload.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/UserEventPayload.swift @@ -6,7 +6,6 @@ import Foundation public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable, Hashable { - public var banned: Bool public var blockedUserIds: [String] public var createdAt: Date public var custom: [String: RawJSON] @@ -18,14 +17,12 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable public var language: String public var lastActive: Date? public var name: String? - public var online: Bool public var revokeTokensIssuedBefore: Date? public var role: String public var teams: [String] public var updatedAt: Date public init( - banned: Bool, blockedUserIds: [String], createdAt: Date, custom: [String: RawJSON], @@ -37,13 +34,11 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable language: String, lastActive: Date? = nil, name: String? = nil, - online: Bool, revokeTokensIssuedBefore: Date? = nil, role: String, teams: [String], updatedAt: Date ) { - self.banned = banned self.blockedUserIds = blockedUserIds self.createdAt = createdAt self.custom = custom @@ -55,7 +50,6 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable self.language = language self.lastActive = lastActive self.name = name - self.online = online self.revokeTokensIssuedBefore = revokeTokensIssuedBefore self.role = role self.teams = teams @@ -63,7 +57,6 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable } public enum CodingKeys: String, CodingKey, CaseIterable { - case banned case blockedUserIds = "blocked_user_ids" case createdAt = "created_at" case custom @@ -75,7 +68,6 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable case language case lastActive = "last_active" case name - case online case revokeTokensIssuedBefore = "revoke_tokens_issued_before" case role case teams @@ -83,8 +75,7 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable } public static func == (lhs: UserEventPayload, rhs: UserEventPayload) -> Bool { - lhs.banned == rhs.banned && - lhs.blockedUserIds == rhs.blockedUserIds && + lhs.blockedUserIds == rhs.blockedUserIds && lhs.createdAt == rhs.createdAt && lhs.custom == rhs.custom && lhs.deactivatedAt == rhs.deactivatedAt && @@ -95,7 +86,6 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable lhs.language == rhs.language && lhs.lastActive == rhs.lastActive && lhs.name == rhs.name && - lhs.online == rhs.online && lhs.revokeTokensIssuedBefore == rhs.revokeTokensIssuedBefore && lhs.role == rhs.role && lhs.teams == rhs.teams && @@ -103,7 +93,6 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable } public func hash(into hasher: inout Hasher) { - hasher.combine(banned) hasher.combine(blockedUserIds) hasher.combine(createdAt) hasher.combine(custom) @@ -115,7 +104,6 @@ public final class UserEventPayload: @unchecked Sendable, Codable, JSONEncodable hasher.combine(language) hasher.combine(lastActive) hasher.combine(name) - hasher.combine(online) hasher.combine(revokeTokensIssuedBefore) hasher.combine(role) hasher.combine(teams) diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserInfoResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserInfoResponse.swift index 77ee06cf8..ce7929e1e 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/UserInfoResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/UserInfoResponse.swift @@ -7,12 +7,12 @@ import Foundation public final class UserInfoResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { public var custom: [String: RawJSON] - public var id: String? + public var id: String public var image: String public var name: String public var roles: [String] - public init(custom: [String: RawJSON], id: String? = nil, image: String, name: String, roles: [String]) { + public init(custom: [String: RawJSON], id: String, image: String, name: String, roles: [String]) { self.custom = custom self.id = id self.image = image diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserMuteResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserMuteResponse.swift deleted file mode 100644 index 58f4689d8..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/UserMuteResponse.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// Copyright © 2024 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class UserMuteResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var createdAt: Date - public var expires: Date? - public var target: UserResponse? - public var updatedAt: Date - public var user: UserResponse? - - public init(createdAt: Date, expires: Date? = nil, target: UserResponse? = nil, updatedAt: Date, user: UserResponse? = nil) { - self.createdAt = createdAt - self.expires = expires - self.target = target - self.updatedAt = updatedAt - self.user = user - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case createdAt = "created_at" - case expires - case target - case updatedAt = "updated_at" - case user - } - - public static func == (lhs: UserMuteResponse, rhs: UserMuteResponse) -> Bool { - lhs.createdAt == rhs.createdAt && - lhs.expires == rhs.expires && - lhs.target == rhs.target && - lhs.updatedAt == rhs.updatedAt && - lhs.user == rhs.user - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(createdAt) - hasher.combine(expires) - hasher.combine(target) - hasher.combine(updatedAt) - hasher.combine(user) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/VideoResolution.swift b/Sources/StreamVideo/OpenApi/generated/Models/VideoDimension.swift similarity index 76% rename from Sources/StreamVideo/OpenApi/generated/Models/VideoResolution.swift rename to Sources/StreamVideo/OpenApi/generated/Models/VideoDimension.swift index 2f14414be..14e23c25d 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/VideoResolution.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/VideoDimension.swift @@ -4,7 +4,7 @@ import Foundation -public final class VideoResolution: @unchecked Sendable, Codable, JSONEncodable, Hashable { +public final class VideoDimension: @unchecked Sendable, Codable, JSONEncodable, Hashable { public var height: Int public var width: Int @@ -19,7 +19,7 @@ public final class VideoResolution: @unchecked Sendable, Codable, JSONEncodable, case width } - public static func == (lhs: VideoResolution, rhs: VideoResolution) -> Bool { + public static func == (lhs: VideoDimension, rhs: VideoDimension) -> Bool { lhs.height == rhs.height && lhs.width == rhs.width } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/VideoQuality.swift b/Sources/StreamVideo/OpenApi/generated/Models/VideoQuality.swift index 14db13234..f21815f9b 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/VideoQuality.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/VideoQuality.swift @@ -6,10 +6,10 @@ import Foundation public final class VideoQuality: @unchecked Sendable, Codable, JSONEncodable, Hashable { - public var resolution: VideoResolution? + public var resolution: VideoDimension? public var usageType: String? - public init(resolution: VideoResolution? = nil, usageType: String? = nil) { + public init(resolution: VideoDimension? = nil, usageType: String? = nil) { self.resolution = resolution self.usageType = usageType } From 0c8d779503a982f9c5570d81e823fbc0ec72f6b6 Mon Sep 17 00:00:00 2001 From: Stream Bot Date: Mon, 23 Dec 2024 13:25:12 +0100 Subject: [PATCH 2/6] Generated new version of the spec --- Scripts/renamed-models.json | 4 +- Sources/StreamVideo/Call.swift | 25 +++- .../OpenApi/generated/APIs/DefaultAPI.swift | 53 ++++++-- .../OpenApi/generated/Models/Bound.swift | 31 +++++ .../generated/Models/CallDurationReport.swift | 26 ++++ .../Models/CallDurationReportResponse.swift | 26 ++++ .../Models/CallParticipantCountReport.swift | 26 ++++ .../CallParticipantCountReportResponse.swift | 26 ++++ .../CallSessionParticipantLeftEvent.swift | 7 +- .../CallStatsReportSummaryResponse.swift | 6 + .../generated/Models/CallsPerDayReport.swift | 26 ++++ .../Models/CallsPerDayReportResponse.swift | 26 ++++ ...yAggregateCallDurationReportResponse.swift | 31 +++++ ...teCallParticipantCountReportResponse.swift | 34 +++++ ...lyAggregateCallsPerDayReportResponse.swift | 31 +++++ ...yAggregateQualityScoreReportResponse.swift | 31 +++++ ...DailyAggregateSDKUsageReportResponse.swift | 31 +++++ ...yAggregateUserFeedbackReportResponse.swift | 31 +++++ .../{DeviceResponse.swift => Device.swift} | 4 +- .../Models/GetCallStatsResponse.swift | 6 + .../generated/Models/GoLiveRequest.swift | 6 + .../Models/ListDevicesResponse.swift | 4 +- .../Models/NetworkMetricsReportResponse.swift | 46 +++++++ .../generated/Models/OwnUserResponse.swift | 4 +- .../generated/Models/PerSDKUsageReport.swift | 31 +++++ .../generated/Models/QualityScoreReport.swift | 26 ++++ .../Models/QualityScoreReportResponse.swift | 26 ++++ .../QueryAggregateCallStatsRequest.swift | 36 ++++++ .../QueryAggregateCallStatsResponse.swift | 70 ++++++++++ .../Models/ReportByHistogramBucket.swift | 51 ++++++++ .../generated/Models/SDKUsageReport.swift | 26 ++++ .../Models/SDKUsageReportResponse.swift | 26 ++++ .../Models/StartClosedCaptionsRequest.swift | 36 ++++++ .../Models/StartTranscriptionRequest.swift | 14 +- .../Models/StopClosedCaptionsRequest.swift | 26 ++++ .../generated/Models/StopLiveRequest.swift | 20 ++- .../Models/StopTranscriptionRequest.swift | 26 ++++ .../Models/TranscriptionSettings.swift | 58 ++++++++- .../Models/TranscriptionSettingsRequest.swift | 58 ++++++++- .../generated/Models/UserFeedbackReport.swift | 31 +++++ .../Models/UserFeedbackReportResponse.swift | 26 ++++ .../generated/Models/UserSessionStats.swift | 8 +- .../generated/Models/VideoQuality.swift | 4 +- ...oDimension.swift => VideoResolution.swift} | 4 +- StreamVideo.xcodeproj/project.pbxproj | 120 ++++++++++++++++-- 45 files changed, 1207 insertions(+), 57 deletions(-) create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/Bound.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift rename Sources/StreamVideo/OpenApi/generated/Models/{DeviceResponse.swift => Device.swift} (91%) create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsRequest.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/StopClosedCaptionsRequest.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/StopTranscriptionRequest.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift rename Sources/StreamVideo/OpenApi/generated/Models/{VideoDimension.swift => VideoResolution.swift} (76%) diff --git a/Scripts/renamed-models.json b/Scripts/renamed-models.json index 31ed71337..d4700c164 100644 --- a/Scripts/renamed-models.json +++ b/Scripts/renamed-models.json @@ -17,5 +17,7 @@ "ThumbnailsSettingsResponse": "ThumbnailsSettings", "VideoSettingsResponse": "VideoSettings", "TimeStats": "Stats", - "NoiseCancellationSettings": "NoiseCancellationSettingsRequest" + "NoiseCancellationSettings": "NoiseCancellationSettingsRequest", + "VideoDimension": "VideoResolution", + "DeviceResponse": "Device" } diff --git a/Sources/StreamVideo/Call.swift b/Sources/StreamVideo/Call.swift index 11bb444ab..75961841c 100644 --- a/Sources/StreamVideo/Call.swift +++ b/Sources/StreamVideo/Call.swift @@ -734,7 +734,15 @@ public class Call: @unchecked Sendable, WSEventsSubscriber { /// Stops an ongoing live call. @discardableResult public func stopLive() async throws -> StopLiveResponse { - try await coordinatorClient.stopLive(type: callType, id: callId) + try await stopLive(request: .init()) + } + + public func stopLive(request: StopLiveRequest) async throws -> StopLiveResponse { + try await coordinatorClient.stopLive( + type: callType, + id: callId, + stopLiveRequest: request + ) } // MARK: - Recording @@ -786,7 +794,7 @@ public class Call: @unchecked Sendable, WSEventsSubscriber { /// - Throws: An error if the sending fails. @discardableResult public func sendCustomEvent(_ data: [String: RawJSON]) async throws -> SendEventResponse { - try await coordinatorClient.sendEvent( + try await coordinatorClient.sendCallEvent( type: callType, id: callId, sendEventRequest: SendEventRequest(custom: data) @@ -1087,14 +1095,19 @@ public class Call: @unchecked Sendable, WSEventsSubscriber { /// Stops a conversation from being transcribed and returns whether the stop request was successful /// or not. - /// - /// - Returns: A StopTranscriptionResponse indicating whether the stop request was successful + /// - Parameter stopClosedCaptions: A boolean value indicating whether to stop closed captions. + /// - Returns: A StopTranscriptionResponse indicating whether the stop request was successful. /// or not. @discardableResult - public func stopTranscription() async throws -> StopTranscriptionResponse { + public func stopTranscription( + stopClosedCaptions: Bool? = nil + ) async throws -> StopTranscriptionResponse { try await coordinatorClient.stopTranscription( type: callType, - id: callId + id: callId, + stopTranscriptionRequest: StopTranscriptionRequest( + stopClosedCaptions: stopClosedCaptions + ) ) } diff --git a/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift b/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift index 9084f5239..216f8ef24 100644 --- a/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift +++ b/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift @@ -665,7 +665,11 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { } } - open func startClosedCaptions(type: String, id: String) async throws -> StartClosedCaptionsResponse { + open func startClosedCaptions( + type: String, + id: String, + startClosedCaptionsRequest: StartClosedCaptionsRequest + ) async throws -> StartClosedCaptionsResponse { var path = "/video/call/{type}/{id}/start_closed_captions" let typePreEscape = "\(APIHelper.mapValueToPathItem(type))" @@ -677,7 +681,8 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { let urlRequest = try makeRequest( uriPath: path, - httpMethod: "POST" + httpMethod: "POST", + request: startClosedCaptionsRequest ) return try await send(request: urlRequest) { try self.jsonDecoder.decode(StartClosedCaptionsResponse.self, from: $0) @@ -778,7 +783,11 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { } } - open func stopClosedCaptions(type: String, id: String) async throws -> StopClosedCaptionsResponse { + open func stopClosedCaptions( + type: String, + id: String, + stopClosedCaptionsRequest: StopClosedCaptionsRequest + ) async throws -> StopClosedCaptionsResponse { var path = "/video/call/{type}/{id}/stop_closed_captions" let typePreEscape = "\(APIHelper.mapValueToPathItem(type))" @@ -790,7 +799,8 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { let urlRequest = try makeRequest( uriPath: path, - httpMethod: "POST" + httpMethod: "POST", + request: stopClosedCaptionsRequest ) return try await send(request: urlRequest) { try self.jsonDecoder.decode(StopClosedCaptionsResponse.self, from: $0) @@ -836,7 +846,11 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { } } - open func stopTranscription(type: String, id: String) async throws -> StopTranscriptionResponse { + open func stopTranscription( + type: String, + id: String, + stopTranscriptionRequest: StopTranscriptionRequest + ) async throws -> StopTranscriptionResponse { var path = "/video/call/{type}/{id}/stop_transcription" let typePreEscape = "\(APIHelper.mapValueToPathItem(type))" @@ -848,7 +862,8 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { let urlRequest = try makeRequest( uriPath: path, - httpMethod: "POST" + httpMethod: "POST", + request: stopTranscriptionRequest ) return try await send(request: urlRequest) { try self.jsonDecoder.decode(StopTranscriptionResponse.self, from: $0) @@ -1105,6 +1120,20 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { try self.jsonDecoder.decode(EmptyResponse.self, from: $0) } } + + open func queryAggregateCallStats(queryAggregateCallStatsRequest: QueryAggregateCallStatsRequest) async throws + -> QueryAggregateCallStatsResponse { + let path = "/video/stats" + + let urlRequest = try makeRequest( + uriPath: path, + httpMethod: "POST", + request: queryAggregateCallStatsRequest + ) + return try await send(request: urlRequest) { + try self.jsonDecoder.decode(QueryAggregateCallStatsResponse.self, from: $0) + } + } } protocol DefaultAPIEndpoints { @@ -1166,7 +1195,8 @@ protocol DefaultAPIEndpoints { func startHLSBroadcasting(type: String, id: String) async throws -> StartHLSBroadcastingResponse - func startClosedCaptions(type: String, id: String) async throws -> StartClosedCaptionsResponse + func startClosedCaptions(type: String, id: String, startClosedCaptionsRequest: StartClosedCaptionsRequest) async throws + -> StartClosedCaptionsResponse func startRecording(type: String, id: String, startRecordingRequest: StartRecordingRequest) async throws -> StartRecordingResponse @@ -1178,13 +1208,15 @@ protocol DefaultAPIEndpoints { func stopHLSBroadcasting(type: String, id: String) async throws -> StopHLSBroadcastingResponse - func stopClosedCaptions(type: String, id: String) async throws -> StopClosedCaptionsResponse + func stopClosedCaptions(type: String, id: String, stopClosedCaptionsRequest: StopClosedCaptionsRequest) async throws + -> StopClosedCaptionsResponse func stopLive(type: String, id: String, stopLiveRequest: StopLiveRequest) async throws -> StopLiveResponse func stopRecording(type: String, id: String) async throws -> StopRecordingResponse - func stopTranscription(type: String, id: String) async throws -> StopTranscriptionResponse + func stopTranscription(type: String, id: String, stopTranscriptionRequest: StopTranscriptionRequest) async throws + -> StopTranscriptionResponse func listTranscriptions(type: String, id: String) async throws -> ListTranscriptionsResponse @@ -1213,4 +1245,7 @@ protocol DefaultAPIEndpoints { func createGuest(createGuestRequest: CreateGuestRequest) async throws -> CreateGuestResponse func videoConnect() async throws -> Void + + func queryAggregateCallStats(queryAggregateCallStatsRequest: QueryAggregateCallStatsRequest) async throws + -> QueryAggregateCallStatsResponse } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift b/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift new file mode 100644 index 000000000..322babb92 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift @@ -0,0 +1,31 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class Bound: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var inclusive: Bool + public var value: Float + + public init(inclusive: Bool, value: Float) { + self.inclusive = inclusive + self.value = value + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case inclusive + case value + } + + public static func == (lhs: Bound, rhs: Bound) -> Bool { + lhs.inclusive == rhs.inclusive && + lhs.value == rhs.value + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(inclusive) + hasher.combine(value) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift new file mode 100644 index 000000000..d67ff48ae --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class CallDurationReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var histogram: [ReportByHistogramBucket] + + public init(histogram: [ReportByHistogramBucket]) { + self.histogram = histogram + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case histogram + } + + public static func == (lhs: CallDurationReport, rhs: CallDurationReport) -> Bool { + lhs.histogram == rhs.histogram + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(histogram) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift new file mode 100644 index 000000000..aad6ddfe9 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class CallDurationReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var daily: [DailyAggregateCallDurationReportResponse] + + public init(daily: [DailyAggregateCallDurationReportResponse]) { + self.daily = daily + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case daily + } + + public static func == (lhs: CallDurationReportResponse, rhs: CallDurationReportResponse) -> Bool { + lhs.daily == rhs.daily + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(daily) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift new file mode 100644 index 000000000..61cc2ec21 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class CallParticipantCountReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var histogram: [ReportByHistogramBucket] + + public init(histogram: [ReportByHistogramBucket]) { + self.histogram = histogram + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case histogram + } + + public static func == (lhs: CallParticipantCountReport, rhs: CallParticipantCountReport) -> Bool { + lhs.histogram == rhs.histogram + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(histogram) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift new file mode 100644 index 000000000..d0e224542 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class CallParticipantCountReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var daily: [DailyAggregateCallParticipantCountReportResponse] + + public init(daily: [DailyAggregateCallParticipantCountReportResponse]) { + self.daily = daily + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case daily + } + + public static func == (lhs: CallParticipantCountReportResponse, rhs: CallParticipantCountReportResponse) -> Bool { + lhs.daily == rhs.daily + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(daily) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallSessionParticipantLeftEvent.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallSessionParticipantLeftEvent.swift index 74465de98..e2e828bf6 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallSessionParticipantLeftEvent.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallSessionParticipantLeftEvent.swift @@ -8,13 +8,15 @@ public final class CallSessionParticipantLeftEvent: @unchecked Sendable, Event, public var callCid: String public var createdAt: Date + public var durationSeconds: Int public var participant: CallParticipantResponse public var sessionId: String public var type: String = "call.session_participant_left" - public init(callCid: String, createdAt: Date, participant: CallParticipantResponse, sessionId: String) { + public init(callCid: String, createdAt: Date, durationSeconds: Int, participant: CallParticipantResponse, sessionId: String) { self.callCid = callCid self.createdAt = createdAt + self.durationSeconds = durationSeconds self.participant = participant self.sessionId = sessionId } @@ -22,6 +24,7 @@ public final class CallSessionParticipantLeftEvent: @unchecked Sendable, Event, public enum CodingKeys: String, CodingKey, CaseIterable { case callCid = "call_cid" case createdAt = "created_at" + case durationSeconds = "duration_seconds" case participant case sessionId = "session_id" case type @@ -30,6 +33,7 @@ public final class CallSessionParticipantLeftEvent: @unchecked Sendable, Event, public static func == (lhs: CallSessionParticipantLeftEvent, rhs: CallSessionParticipantLeftEvent) -> Bool { lhs.callCid == rhs.callCid && lhs.createdAt == rhs.createdAt && + lhs.durationSeconds == rhs.durationSeconds && lhs.participant == rhs.participant && lhs.sessionId == rhs.sessionId && lhs.type == rhs.type @@ -38,6 +42,7 @@ public final class CallSessionParticipantLeftEvent: @unchecked Sendable, Event, public func hash(into hasher: inout Hasher) { hasher.combine(callCid) hasher.combine(createdAt) + hasher.combine(durationSeconds) hasher.combine(participant) hasher.combine(sessionId) hasher.combine(type) diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallStatsReportSummaryResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallStatsReportSummaryResponse.swift index 8dfdc2146..1a34c6a27 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallStatsReportSummaryResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallStatsReportSummaryResponse.swift @@ -12,6 +12,7 @@ public final class CallStatsReportSummaryResponse: @unchecked Sendable, Codable, public var callStatus: String public var createdAt: Date? public var firstStatsTime: Date + public var minUserRating: Int? public var qualityScore: Int? public init( @@ -21,6 +22,7 @@ public final class CallStatsReportSummaryResponse: @unchecked Sendable, Codable, callStatus: String, createdAt: Date? = nil, firstStatsTime: Date, + minUserRating: Int? = nil, qualityScore: Int? = nil ) { self.callCid = callCid @@ -29,6 +31,7 @@ public final class CallStatsReportSummaryResponse: @unchecked Sendable, Codable, self.callStatus = callStatus self.createdAt = createdAt self.firstStatsTime = firstStatsTime + self.minUserRating = minUserRating self.qualityScore = qualityScore } @@ -39,6 +42,7 @@ public final class CallStatsReportSummaryResponse: @unchecked Sendable, Codable, case callStatus = "call_status" case createdAt = "created_at" case firstStatsTime = "first_stats_time" + case minUserRating = "min_user_rating" case qualityScore = "quality_score" } @@ -49,6 +53,7 @@ public final class CallStatsReportSummaryResponse: @unchecked Sendable, Codable, lhs.callStatus == rhs.callStatus && lhs.createdAt == rhs.createdAt && lhs.firstStatsTime == rhs.firstStatsTime && + lhs.minUserRating == rhs.minUserRating && lhs.qualityScore == rhs.qualityScore } @@ -59,6 +64,7 @@ public final class CallStatsReportSummaryResponse: @unchecked Sendable, Codable, hasher.combine(callStatus) hasher.combine(createdAt) hasher.combine(firstStatsTime) + hasher.combine(minUserRating) hasher.combine(qualityScore) } } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift new file mode 100644 index 000000000..ca46d1246 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class CallsPerDayReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var count: Int + + public init(count: Int) { + self.count = count + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case count + } + + public static func == (lhs: CallsPerDayReport, rhs: CallsPerDayReport) -> Bool { + lhs.count == rhs.count + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(count) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift new file mode 100644 index 000000000..e8e75b57e --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class CallsPerDayReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var daily: [DailyAggregateCallsPerDayReportResponse] + + public init(daily: [DailyAggregateCallsPerDayReportResponse]) { + self.daily = daily + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case daily + } + + public static func == (lhs: CallsPerDayReportResponse, rhs: CallsPerDayReportResponse) -> Bool { + lhs.daily == rhs.daily + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(daily) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift new file mode 100644 index 000000000..8f641424f --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift @@ -0,0 +1,31 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class DailyAggregateCallDurationReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var date: String + public var report: CallDurationReport + + public init(date: String, report: CallDurationReport) { + self.date = date + self.report = report + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case date + case report + } + + public static func == (lhs: DailyAggregateCallDurationReportResponse, rhs: DailyAggregateCallDurationReportResponse) -> Bool { + lhs.date == rhs.date && + lhs.report == rhs.report + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(date) + hasher.combine(report) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift new file mode 100644 index 000000000..57b5f85b7 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift @@ -0,0 +1,34 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class DailyAggregateCallParticipantCountReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var date: String + public var report: CallParticipantCountReport + + public init(date: String, report: CallParticipantCountReport) { + self.date = date + self.report = report + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case date + case report + } + + public static func == ( + lhs: DailyAggregateCallParticipantCountReportResponse, + rhs: DailyAggregateCallParticipantCountReportResponse + ) -> Bool { + lhs.date == rhs.date && + lhs.report == rhs.report + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(date) + hasher.combine(report) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift new file mode 100644 index 000000000..77fc779b1 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift @@ -0,0 +1,31 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class DailyAggregateCallsPerDayReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var date: String + public var report: CallsPerDayReport + + public init(date: String, report: CallsPerDayReport) { + self.date = date + self.report = report + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case date + case report + } + + public static func == (lhs: DailyAggregateCallsPerDayReportResponse, rhs: DailyAggregateCallsPerDayReportResponse) -> Bool { + lhs.date == rhs.date && + lhs.report == rhs.report + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(date) + hasher.combine(report) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift new file mode 100644 index 000000000..8053ec854 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift @@ -0,0 +1,31 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class DailyAggregateQualityScoreReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var date: String + public var report: QualityScoreReport + + public init(date: String, report: QualityScoreReport) { + self.date = date + self.report = report + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case date + case report + } + + public static func == (lhs: DailyAggregateQualityScoreReportResponse, rhs: DailyAggregateQualityScoreReportResponse) -> Bool { + lhs.date == rhs.date && + lhs.report == rhs.report + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(date) + hasher.combine(report) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift new file mode 100644 index 000000000..d43daadc1 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift @@ -0,0 +1,31 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class DailyAggregateSDKUsageReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var date: String + public var report: SDKUsageReport + + public init(date: String, report: SDKUsageReport) { + self.date = date + self.report = report + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case date + case report + } + + public static func == (lhs: DailyAggregateSDKUsageReportResponse, rhs: DailyAggregateSDKUsageReportResponse) -> Bool { + lhs.date == rhs.date && + lhs.report == rhs.report + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(date) + hasher.combine(report) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift new file mode 100644 index 000000000..dde822b07 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift @@ -0,0 +1,31 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class DailyAggregateUserFeedbackReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var date: String + public var report: UserFeedbackReport + + public init(date: String, report: UserFeedbackReport) { + self.date = date + self.report = report + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case date + case report + } + + public static func == (lhs: DailyAggregateUserFeedbackReportResponse, rhs: DailyAggregateUserFeedbackReportResponse) -> Bool { + lhs.date == rhs.date && + lhs.report == rhs.report + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(date) + hasher.combine(report) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DeviceResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/Device.swift similarity index 91% rename from Sources/StreamVideo/OpenApi/generated/Models/DeviceResponse.swift rename to Sources/StreamVideo/OpenApi/generated/Models/Device.swift index 5f4399bde..1b94bd241 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/DeviceResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/Device.swift @@ -4,7 +4,7 @@ import Foundation -public final class DeviceResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { +public final class Device: @unchecked Sendable, Codable, JSONEncodable, Hashable { public var createdAt: Date public var disabled: Bool? @@ -46,7 +46,7 @@ public final class DeviceResponse: @unchecked Sendable, Codable, JSONEncodable, case voip } - public static func == (lhs: DeviceResponse, rhs: DeviceResponse) -> Bool { + public static func == (lhs: Device, rhs: Device) -> Bool { lhs.createdAt == rhs.createdAt && lhs.disabled == rhs.disabled && lhs.disabledReason == rhs.disabledReason && diff --git a/Sources/StreamVideo/OpenApi/generated/Models/GetCallStatsResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/GetCallStatsResponse.swift index 18827ae2b..026a6ffbd 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/GetCallStatsResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/GetCallStatsResponse.swift @@ -7,6 +7,7 @@ import Foundation public final class GetCallStatsResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { public var aggregated: AggregatedStats? + public var averageConnectionTime: Float? public var callDurationSeconds: Int public var callStatus: String public var callTimeline: CallTimeline? @@ -24,6 +25,7 @@ public final class GetCallStatsResponse: @unchecked Sendable, Codable, JSONEncod public init( aggregated: AggregatedStats? = nil, + averageConnectionTime: Float? = nil, callDurationSeconds: Int, callStatus: String, callTimeline: CallTimeline? = nil, @@ -40,6 +42,7 @@ public final class GetCallStatsResponse: @unchecked Sendable, Codable, JSONEncod sfus: [SFULocationResponse] ) { self.aggregated = aggregated + self.averageConnectionTime = averageConnectionTime self.callDurationSeconds = callDurationSeconds self.callStatus = callStatus self.callTimeline = callTimeline @@ -58,6 +61,7 @@ public final class GetCallStatsResponse: @unchecked Sendable, Codable, JSONEncod public enum CodingKeys: String, CodingKey, CaseIterable { case aggregated + case averageConnectionTime = "average_connection_time" case callDurationSeconds = "call_duration_seconds" case callStatus = "call_status" case callTimeline = "call_timeline" @@ -76,6 +80,7 @@ public final class GetCallStatsResponse: @unchecked Sendable, Codable, JSONEncod public static func == (lhs: GetCallStatsResponse, rhs: GetCallStatsResponse) -> Bool { lhs.aggregated == rhs.aggregated && + lhs.averageConnectionTime == rhs.averageConnectionTime && lhs.callDurationSeconds == rhs.callDurationSeconds && lhs.callStatus == rhs.callStatus && lhs.callTimeline == rhs.callTimeline && @@ -94,6 +99,7 @@ public final class GetCallStatsResponse: @unchecked Sendable, Codable, JSONEncod public func hash(into hasher: inout Hasher) { hasher.combine(aggregated) + hasher.combine(averageConnectionTime) hasher.combine(callDurationSeconds) hasher.combine(callStatus) hasher.combine(callTimeline) diff --git a/Sources/StreamVideo/OpenApi/generated/Models/GoLiveRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/GoLiveRequest.swift index 366c25227..18fc4a2df 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/GoLiveRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/GoLiveRequest.swift @@ -7,6 +7,7 @@ import Foundation public final class GoLiveRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { public var recordingStorageName: String? + public var startClosedCaption: Bool? public var startHls: Bool? public var startRecording: Bool? public var startRtmpBroadcasts: Bool? @@ -15,6 +16,7 @@ public final class GoLiveRequest: @unchecked Sendable, Codable, JSONEncodable, H public init( recordingStorageName: String? = nil, + startClosedCaption: Bool? = nil, startHls: Bool? = nil, startRecording: Bool? = nil, startRtmpBroadcasts: Bool? = nil, @@ -22,6 +24,7 @@ public final class GoLiveRequest: @unchecked Sendable, Codable, JSONEncodable, H transcriptionStorageName: String? = nil ) { self.recordingStorageName = recordingStorageName + self.startClosedCaption = startClosedCaption self.startHls = startHls self.startRecording = startRecording self.startRtmpBroadcasts = startRtmpBroadcasts @@ -31,6 +34,7 @@ public final class GoLiveRequest: @unchecked Sendable, Codable, JSONEncodable, H public enum CodingKeys: String, CodingKey, CaseIterable { case recordingStorageName = "recording_storage_name" + case startClosedCaption = "start_closed_caption" case startHls = "start_hls" case startRecording = "start_recording" case startRtmpBroadcasts = "start_rtmp_broadcasts" @@ -40,6 +44,7 @@ public final class GoLiveRequest: @unchecked Sendable, Codable, JSONEncodable, H public static func == (lhs: GoLiveRequest, rhs: GoLiveRequest) -> Bool { lhs.recordingStorageName == rhs.recordingStorageName && + lhs.startClosedCaption == rhs.startClosedCaption && lhs.startHls == rhs.startHls && lhs.startRecording == rhs.startRecording && lhs.startRtmpBroadcasts == rhs.startRtmpBroadcasts && @@ -49,6 +54,7 @@ public final class GoLiveRequest: @unchecked Sendable, Codable, JSONEncodable, H public func hash(into hasher: inout Hasher) { hasher.combine(recordingStorageName) + hasher.combine(startClosedCaption) hasher.combine(startHls) hasher.combine(startRecording) hasher.combine(startRtmpBroadcasts) diff --git a/Sources/StreamVideo/OpenApi/generated/Models/ListDevicesResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/ListDevicesResponse.swift index 9add87a05..12bf38ee1 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/ListDevicesResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/ListDevicesResponse.swift @@ -6,10 +6,10 @@ import Foundation public final class ListDevicesResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - public var devices: [DeviceResponse] + public var devices: [Device] public var duration: String - public init(devices: [DeviceResponse], duration: String) { + public init(devices: [Device], duration: String) { self.devices = devices self.duration = duration } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift new file mode 100644 index 000000000..841232908 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift @@ -0,0 +1,46 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class NetworkMetricsReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var averageConnectionTime: Float? + public var averageJitter: Float? + public var averageLatency: Float? + public var averageTimeToReconnect: Float? + + public init( + averageConnectionTime: Float? = nil, + averageJitter: Float? = nil, + averageLatency: Float? = nil, + averageTimeToReconnect: Float? = nil + ) { + self.averageConnectionTime = averageConnectionTime + self.averageJitter = averageJitter + self.averageLatency = averageLatency + self.averageTimeToReconnect = averageTimeToReconnect + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case averageConnectionTime = "average_connection_time" + case averageJitter = "average_jitter" + case averageLatency = "average_latency" + case averageTimeToReconnect = "average_time_to_reconnect" + } + + public static func == (lhs: NetworkMetricsReportResponse, rhs: NetworkMetricsReportResponse) -> Bool { + lhs.averageConnectionTime == rhs.averageConnectionTime && + lhs.averageJitter == rhs.averageJitter && + lhs.averageLatency == rhs.averageLatency && + lhs.averageTimeToReconnect == rhs.averageTimeToReconnect + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(averageConnectionTime) + hasher.combine(averageJitter) + hasher.combine(averageLatency) + hasher.combine(averageTimeToReconnect) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/OwnUserResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/OwnUserResponse.swift index f04bd4f0e..f92c2edc8 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/OwnUserResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/OwnUserResponse.swift @@ -11,7 +11,7 @@ public final class OwnUserResponse: @unchecked Sendable, Codable, JSONEncodable, public var custom: [String: RawJSON] public var deactivatedAt: Date? public var deletedAt: Date? - public var devices: [DeviceResponse] + public var devices: [Device] public var id: String public var image: String? public var language: String @@ -29,7 +29,7 @@ public final class OwnUserResponse: @unchecked Sendable, Codable, JSONEncodable, custom: [String: RawJSON], deactivatedAt: Date? = nil, deletedAt: Date? = nil, - devices: [DeviceResponse], + devices: [Device], id: String, image: String? = nil, language: String, diff --git a/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift new file mode 100644 index 000000000..a03b5346d --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift @@ -0,0 +1,31 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class PerSDKUsageReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var byVersion: [String: Int] + public var total: Int + + public init(byVersion: [String: Int], total: Int) { + self.byVersion = byVersion + self.total = total + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case byVersion = "by_version" + case total + } + + public static func == (lhs: PerSDKUsageReport, rhs: PerSDKUsageReport) -> Bool { + lhs.byVersion == rhs.byVersion && + lhs.total == rhs.total + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(byVersion) + hasher.combine(total) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift new file mode 100644 index 000000000..87dee4ff8 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class QualityScoreReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var histogram: [ReportByHistogramBucket] + + public init(histogram: [ReportByHistogramBucket]) { + self.histogram = histogram + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case histogram + } + + public static func == (lhs: QualityScoreReport, rhs: QualityScoreReport) -> Bool { + lhs.histogram == rhs.histogram + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(histogram) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift new file mode 100644 index 000000000..c0ca85f98 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class QualityScoreReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var daily: [DailyAggregateQualityScoreReportResponse] + + public init(daily: [DailyAggregateQualityScoreReportResponse]) { + self.daily = daily + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case daily + } + + public static func == (lhs: QualityScoreReportResponse, rhs: QualityScoreReportResponse) -> Bool { + lhs.daily == rhs.daily + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(daily) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift new file mode 100644 index 000000000..5007e56ac --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift @@ -0,0 +1,36 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class QueryAggregateCallStatsRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var from: String? + public var reportTypes: [String]? + public var to: String? + + public init(from: String? = nil, reportTypes: [String]? = nil, to: String? = nil) { + self.from = from + self.reportTypes = reportTypes + self.to = to + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case from + case reportTypes = "report_types" + case to + } + + public static func == (lhs: QueryAggregateCallStatsRequest, rhs: QueryAggregateCallStatsRequest) -> Bool { + lhs.from == rhs.from && + lhs.reportTypes == rhs.reportTypes && + lhs.to == rhs.to + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(from) + hasher.combine(reportTypes) + hasher.combine(to) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift new file mode 100644 index 000000000..43eb04efd --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift @@ -0,0 +1,70 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class QueryAggregateCallStatsResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var callDurationReport: CallDurationReportResponse? + public var callParticipantCountReport: CallParticipantCountReportResponse? + public var callsPerDayReport: CallsPerDayReportResponse? + public var duration: String + public var networkMetricsReport: NetworkMetricsReportResponse? + public var qualityScoreReport: QualityScoreReportResponse? + public var sdkUsageReport: SDKUsageReportResponse? + public var userFeedbackReport: UserFeedbackReportResponse? + + public init( + callDurationReport: CallDurationReportResponse? = nil, + callParticipantCountReport: CallParticipantCountReportResponse? = nil, + callsPerDayReport: CallsPerDayReportResponse? = nil, + duration: String, + networkMetricsReport: NetworkMetricsReportResponse? = nil, + qualityScoreReport: QualityScoreReportResponse? = nil, + sdkUsageReport: SDKUsageReportResponse? = nil, + userFeedbackReport: UserFeedbackReportResponse? = nil + ) { + self.callDurationReport = callDurationReport + self.callParticipantCountReport = callParticipantCountReport + self.callsPerDayReport = callsPerDayReport + self.duration = duration + self.networkMetricsReport = networkMetricsReport + self.qualityScoreReport = qualityScoreReport + self.sdkUsageReport = sdkUsageReport + self.userFeedbackReport = userFeedbackReport + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case callDurationReport = "call_duration_report" + case callParticipantCountReport = "call_participant_count_report" + case callsPerDayReport = "calls_per_day_report" + case duration + case networkMetricsReport = "network_metrics_report" + case qualityScoreReport = "quality_score_report" + case sdkUsageReport = "sdk_usage_report" + case userFeedbackReport = "user_feedback_report" + } + + public static func == (lhs: QueryAggregateCallStatsResponse, rhs: QueryAggregateCallStatsResponse) -> Bool { + lhs.callDurationReport == rhs.callDurationReport && + lhs.callParticipantCountReport == rhs.callParticipantCountReport && + lhs.callsPerDayReport == rhs.callsPerDayReport && + lhs.duration == rhs.duration && + lhs.networkMetricsReport == rhs.networkMetricsReport && + lhs.qualityScoreReport == rhs.qualityScoreReport && + lhs.sdkUsageReport == rhs.sdkUsageReport && + lhs.userFeedbackReport == rhs.userFeedbackReport + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(callDurationReport) + hasher.combine(callParticipantCountReport) + hasher.combine(callsPerDayReport) + hasher.combine(duration) + hasher.combine(networkMetricsReport) + hasher.combine(qualityScoreReport) + hasher.combine(sdkUsageReport) + hasher.combine(userFeedbackReport) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift b/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift new file mode 100644 index 000000000..afbe01c90 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift @@ -0,0 +1,51 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class ReportByHistogramBucket: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var category: String + public var count: Int + public var lowerBound: Bound? + public var mean: Float + public var sum: Float + public var upperBound: Bound? + + public init(category: String, count: Int, lowerBound: Bound? = nil, mean: Float, sum: Float, upperBound: Bound? = nil) { + self.category = category + self.count = count + self.lowerBound = lowerBound + self.mean = mean + self.sum = sum + self.upperBound = upperBound + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case category + case count + case lowerBound = "lower_bound" + case mean + case sum + case upperBound = "upper_bound" + } + + public static func == (lhs: ReportByHistogramBucket, rhs: ReportByHistogramBucket) -> Bool { + lhs.category == rhs.category && + lhs.count == rhs.count && + lhs.lowerBound == rhs.lowerBound && + lhs.mean == rhs.mean && + lhs.sum == rhs.sum && + lhs.upperBound == rhs.upperBound + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(category) + hasher.combine(count) + hasher.combine(lowerBound) + hasher.combine(mean) + hasher.combine(sum) + hasher.combine(upperBound) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift new file mode 100644 index 000000000..a4acd4765 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class SDKUsageReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var perSdkUsage: [String: PerSDKUsageReport?] + + public init(perSdkUsage: [String: PerSDKUsageReport?]) { + self.perSdkUsage = perSdkUsage + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case perSdkUsage = "per_sdk_usage" + } + + public static func == (lhs: SDKUsageReport, rhs: SDKUsageReport) -> Bool { + lhs.perSdkUsage == rhs.perSdkUsage + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(perSdkUsage) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift new file mode 100644 index 000000000..c865b4c77 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class SDKUsageReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var daily: [DailyAggregateSDKUsageReportResponse] + + public init(daily: [DailyAggregateSDKUsageReportResponse]) { + self.daily = daily + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case daily + } + + public static func == (lhs: SDKUsageReportResponse, rhs: SDKUsageReportResponse) -> Bool { + lhs.daily == rhs.daily + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(daily) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsRequest.swift new file mode 100644 index 000000000..ed7658a3d --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsRequest.swift @@ -0,0 +1,36 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class StartClosedCaptionsRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var enableTranscription: Bool? + public var externalStorage: String? + public var language: String? + + public init(enableTranscription: Bool? = nil, externalStorage: String? = nil, language: String? = nil) { + self.enableTranscription = enableTranscription + self.externalStorage = externalStorage + self.language = language + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case enableTranscription = "enable_transcription" + case externalStorage = "external_storage" + case language + } + + public static func == (lhs: StartClosedCaptionsRequest, rhs: StartClosedCaptionsRequest) -> Bool { + lhs.enableTranscription == rhs.enableTranscription && + lhs.externalStorage == rhs.externalStorage && + lhs.language == rhs.language + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(enableTranscription) + hasher.combine(externalStorage) + hasher.combine(language) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StartTranscriptionRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StartTranscriptionRequest.swift index 9dfa878b8..ccb0cac84 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/StartTranscriptionRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/StartTranscriptionRequest.swift @@ -6,21 +6,31 @@ import Foundation public final class StartTranscriptionRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { + public var enableClosedCaptions: Bool? + public var language: String? public var transcriptionExternalStorage: String? - public init(transcriptionExternalStorage: String? = nil) { + public init(enableClosedCaptions: Bool? = nil, language: String? = nil, transcriptionExternalStorage: String? = nil) { + self.enableClosedCaptions = enableClosedCaptions + self.language = language self.transcriptionExternalStorage = transcriptionExternalStorage } public enum CodingKeys: String, CodingKey, CaseIterable { + case enableClosedCaptions = "enable_closed_captions" + case language case transcriptionExternalStorage = "transcription_external_storage" } public static func == (lhs: StartTranscriptionRequest, rhs: StartTranscriptionRequest) -> Bool { - lhs.transcriptionExternalStorage == rhs.transcriptionExternalStorage + lhs.enableClosedCaptions == rhs.enableClosedCaptions && + lhs.language == rhs.language && + lhs.transcriptionExternalStorage == rhs.transcriptionExternalStorage } public func hash(into hasher: inout Hasher) { + hasher.combine(enableClosedCaptions) + hasher.combine(language) hasher.combine(transcriptionExternalStorage) } } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StopClosedCaptionsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StopClosedCaptionsRequest.swift new file mode 100644 index 000000000..7179497d5 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/StopClosedCaptionsRequest.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class StopClosedCaptionsRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var stopTranscription: Bool? + + public init(stopTranscription: Bool? = nil) { + self.stopTranscription = stopTranscription + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case stopTranscription = "stop_transcription" + } + + public static func == (lhs: StopClosedCaptionsRequest, rhs: StopClosedCaptionsRequest) -> Bool { + lhs.stopTranscription == rhs.stopTranscription + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(stopTranscription) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift index 7eb535ee9..6ecf93f8c 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift @@ -6,41 +6,47 @@ import Foundation public final class StopLiveRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { + public var continueClosedCaption: Bool? public var continueHls: Bool? public var continueRecording: Bool? - public var continueRtmpBroadcast: Bool? + public var continueRtmpBroadcasts: Bool? public var continueTranscription: Bool? public init( + continueClosedCaption: Bool? = nil, continueHls: Bool? = nil, continueRecording: Bool? = nil, - continueRtmpBroadcast: Bool? = nil, + continueRtmpBroadcasts: Bool? = nil, continueTranscription: Bool? = nil ) { + self.continueClosedCaption = continueClosedCaption self.continueHls = continueHls self.continueRecording = continueRecording - self.continueRtmpBroadcast = continueRtmpBroadcast + self.continueRtmpBroadcasts = continueRtmpBroadcasts self.continueTranscription = continueTranscription } public enum CodingKeys: String, CodingKey, CaseIterable { + case continueClosedCaption = "continue_closed_caption" case continueHls = "continue_hls" case continueRecording = "continue_recording" - case continueRtmpBroadcast = "continue_rtmp_broadcast" + case continueRtmpBroadcasts = "continue_rtmp_broadcasts" case continueTranscription = "continue_transcription" } public static func == (lhs: StopLiveRequest, rhs: StopLiveRequest) -> Bool { - lhs.continueHls == rhs.continueHls && + lhs.continueClosedCaption == rhs.continueClosedCaption && + lhs.continueHls == rhs.continueHls && lhs.continueRecording == rhs.continueRecording && - lhs.continueRtmpBroadcast == rhs.continueRtmpBroadcast && + lhs.continueRtmpBroadcasts == rhs.continueRtmpBroadcasts && lhs.continueTranscription == rhs.continueTranscription } public func hash(into hasher: inout Hasher) { + hasher.combine(continueClosedCaption) hasher.combine(continueHls) hasher.combine(continueRecording) - hasher.combine(continueRtmpBroadcast) + hasher.combine(continueRtmpBroadcasts) hasher.combine(continueTranscription) } } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StopTranscriptionRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StopTranscriptionRequest.swift new file mode 100644 index 000000000..f17c32a11 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/StopTranscriptionRequest.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class StopTranscriptionRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var stopClosedCaptions: Bool? + + public init(stopClosedCaptions: Bool? = nil) { + self.stopClosedCaptions = stopClosedCaptions + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case stopClosedCaptions = "stop_closed_captions" + } + + public static func == (lhs: StopTranscriptionRequest, rhs: StopTranscriptionRequest) -> Bool { + lhs.stopClosedCaptions == rhs.stopClosedCaptions + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(stopClosedCaptions) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettings.swift b/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettings.swift index 18dd717a6..e71bb8602 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettings.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettings.swift @@ -23,6 +23,52 @@ public final class TranscriptionSettings: @unchecked Sendable, Codable, JSONEnco } } + public enum Language: String, Sendable, Codable, CaseIterable { + case ar + case ca + case cs + case da + case de + case el + case en + case es + case fi + case fr + case he + case hi + case hr + case hu + case id + case it + case ja + case ko + case ms + case nl + case no + case pl + case pt + case ro + case ru + case sv + case ta + case th + case tl + case tr + case uk + case zh + case unknown = "_unknown" + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let decodedValue = try? container.decode(String.self), + let value = Self(rawValue: decodedValue) { + self = value + } else { + self = .unknown + } + } + } + public enum Mode: String, Sendable, Codable, CaseIterable { case autoOn = "auto-on" case available @@ -41,30 +87,30 @@ public final class TranscriptionSettings: @unchecked Sendable, Codable, JSONEnco } public var closedCaptionMode: ClosedCaptionMode - public var languages: [String] + public var language: Language public var mode: Mode - public init(closedCaptionMode: ClosedCaptionMode, languages: [String], mode: Mode) { + public init(closedCaptionMode: ClosedCaptionMode, language: Language, mode: Mode) { self.closedCaptionMode = closedCaptionMode - self.languages = languages + self.language = language self.mode = mode } public enum CodingKeys: String, CodingKey, CaseIterable { case closedCaptionMode = "closed_caption_mode" - case languages + case language case mode } public static func == (lhs: TranscriptionSettings, rhs: TranscriptionSettings) -> Bool { lhs.closedCaptionMode == rhs.closedCaptionMode && - lhs.languages == rhs.languages && + lhs.language == rhs.language && lhs.mode == rhs.mode } public func hash(into hasher: inout Hasher) { hasher.combine(closedCaptionMode) - hasher.combine(languages) + hasher.combine(language) hasher.combine(mode) } } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettingsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettingsRequest.swift index a1d463f79..63d0a5948 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettingsRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettingsRequest.swift @@ -23,6 +23,52 @@ public final class TranscriptionSettingsRequest: @unchecked Sendable, Codable, J } } + public enum Language: String, Sendable, Codable, CaseIterable { + case ar + case ca + case cs + case da + case de + case el + case en + case es + case fi + case fr + case he + case hi + case hr + case hu + case id + case it + case ja + case ko + case ms + case nl + case no + case pl + case pt + case ro + case ru + case sv + case ta + case th + case tl + case tr + case uk + case zh + case unknown = "_unknown" + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let decodedValue = try? container.decode(String.self), + let value = Self(rawValue: decodedValue) { + self = value + } else { + self = .unknown + } + } + } + public enum Mode: String, Sendable, Codable, CaseIterable { case autoOn = "auto-on" case available @@ -41,30 +87,30 @@ public final class TranscriptionSettingsRequest: @unchecked Sendable, Codable, J } public var closedCaptionMode: ClosedCaptionMode? - public var languages: [String]? + public var language: Language? public var mode: Mode - public init(closedCaptionMode: ClosedCaptionMode? = nil, languages: [String]? = nil, mode: Mode) { + public init(closedCaptionMode: ClosedCaptionMode? = nil, language: Language? = nil, mode: Mode) { self.closedCaptionMode = closedCaptionMode - self.languages = languages + self.language = language self.mode = mode } public enum CodingKeys: String, CodingKey, CaseIterable { case closedCaptionMode = "closed_caption_mode" - case languages + case language case mode } public static func == (lhs: TranscriptionSettingsRequest, rhs: TranscriptionSettingsRequest) -> Bool { lhs.closedCaptionMode == rhs.closedCaptionMode && - lhs.languages == rhs.languages && + lhs.language == rhs.language && lhs.mode == rhs.mode } public func hash(into hasher: inout Hasher) { hasher.combine(closedCaptionMode) - hasher.combine(languages) + hasher.combine(language) hasher.combine(mode) } } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift new file mode 100644 index 000000000..3956fb9c2 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift @@ -0,0 +1,31 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class UserFeedbackReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var countByRating: [String: Int] + public var unreportedCount: Int + + public init(countByRating: [String: Int], unreportedCount: Int) { + self.countByRating = countByRating + self.unreportedCount = unreportedCount + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case countByRating = "count_by_rating" + case unreportedCount = "unreported_count" + } + + public static func == (lhs: UserFeedbackReport, rhs: UserFeedbackReport) -> Bool { + lhs.countByRating == rhs.countByRating && + lhs.unreportedCount == rhs.unreportedCount + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(countByRating) + hasher.combine(unreportedCount) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift new file mode 100644 index 000000000..ed94a6486 --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2024 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class UserFeedbackReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var daily: [DailyAggregateUserFeedbackReportResponse] + + public init(daily: [DailyAggregateUserFeedbackReportResponse]) { + self.daily = daily + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case daily + } + + public static func == (lhs: UserFeedbackReportResponse, rhs: UserFeedbackReportResponse) -> Bool { + lhs.daily == rhs.daily + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(daily) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserSessionStats.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserSessionStats.swift index fcb38d070..c21bc33a6 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/UserSessionStats.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/UserSessionStats.swift @@ -6,6 +6,7 @@ import Foundation public final class UserSessionStats: @unchecked Sendable, Codable, JSONEncodable, Hashable { + public var averageConnectionTime: Float? public var browser: String? public var browserVersion: String? public var currentIp: String? @@ -59,6 +60,7 @@ public final class UserSessionStats: @unchecked Sendable, Codable, JSONEncodable public var webrtcVersion: String? public init( + averageConnectionTime: Float? = nil, browser: String? = nil, browserVersion: String? = nil, currentIp: String? = nil, @@ -111,6 +113,7 @@ public final class UserSessionStats: @unchecked Sendable, Codable, JSONEncodable truncated: Bool? = nil, webrtcVersion: String? = nil ) { + self.averageConnectionTime = averageConnectionTime self.browser = browser self.browserVersion = browserVersion self.currentIp = currentIp @@ -165,6 +168,7 @@ public final class UserSessionStats: @unchecked Sendable, Codable, JSONEncodable } public enum CodingKeys: String, CodingKey, CaseIterable { + case averageConnectionTime = "average_connection_time" case browser case browserVersion = "browser_version" case currentIp = "current_ip" @@ -219,7 +223,8 @@ public final class UserSessionStats: @unchecked Sendable, Codable, JSONEncodable } public static func == (lhs: UserSessionStats, rhs: UserSessionStats) -> Bool { - lhs.browser == rhs.browser && + lhs.averageConnectionTime == rhs.averageConnectionTime && + lhs.browser == rhs.browser && lhs.browserVersion == rhs.browserVersion && lhs.currentIp == rhs.currentIp && lhs.currentSfu == rhs.currentSfu && @@ -273,6 +278,7 @@ public final class UserSessionStats: @unchecked Sendable, Codable, JSONEncodable } public func hash(into hasher: inout Hasher) { + hasher.combine(averageConnectionTime) hasher.combine(browser) hasher.combine(browserVersion) hasher.combine(currentIp) diff --git a/Sources/StreamVideo/OpenApi/generated/Models/VideoQuality.swift b/Sources/StreamVideo/OpenApi/generated/Models/VideoQuality.swift index f21815f9b..14db13234 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/VideoQuality.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/VideoQuality.swift @@ -6,10 +6,10 @@ import Foundation public final class VideoQuality: @unchecked Sendable, Codable, JSONEncodable, Hashable { - public var resolution: VideoDimension? + public var resolution: VideoResolution? public var usageType: String? - public init(resolution: VideoDimension? = nil, usageType: String? = nil) { + public init(resolution: VideoResolution? = nil, usageType: String? = nil) { self.resolution = resolution self.usageType = usageType } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/VideoDimension.swift b/Sources/StreamVideo/OpenApi/generated/Models/VideoResolution.swift similarity index 76% rename from Sources/StreamVideo/OpenApi/generated/Models/VideoDimension.swift rename to Sources/StreamVideo/OpenApi/generated/Models/VideoResolution.swift index 14e23c25d..2f14414be 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/VideoDimension.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/VideoResolution.swift @@ -4,7 +4,7 @@ import Foundation -public final class VideoDimension: @unchecked Sendable, Codable, JSONEncodable, Hashable { +public final class VideoResolution: @unchecked Sendable, Codable, JSONEncodable, Hashable { public var height: Int public var width: Int @@ -19,7 +19,7 @@ public final class VideoDimension: @unchecked Sendable, Codable, JSONEncodable, case width } - public static func == (lhs: VideoDimension, rhs: VideoDimension) -> Bool { + public static func == (lhs: VideoResolution, rhs: VideoResolution) -> Bool { lhs.height == rhs.height && lhs.width == rhs.width } diff --git a/StreamVideo.xcodeproj/project.pbxproj b/StreamVideo.xcodeproj/project.pbxproj index 62afbdd97..a609ef557 100644 --- a/StreamVideo.xcodeproj/project.pbxproj +++ b/StreamVideo.xcodeproj/project.pbxproj @@ -625,11 +625,7 @@ 4159F1802C86FA41002B94D3 /* PushNotificationSettingsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F14E2C86FA3F002B94D3 /* PushNotificationSettingsResponse.swift */; }; 4159F1822C86FA41002B94D3 /* UserEventPayload.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F1502C86FA3F002B94D3 /* UserEventPayload.swift */; }; 4159F1842C86FA41002B94D3 /* Count.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F1522C86FA3F002B94D3 /* Count.swift */; }; - 4159F1892C86FA41002B94D3 /* PushNotificationSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F1572C86FA40002B94D3 /* PushNotificationSettings.swift */; }; - 4159F18A2C86FA41002B94D3 /* NullBool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F1582C86FA40002B94D3 /* NullBool.swift */; }; - 4159F18E2C86FA41002B94D3 /* NullTime.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F15C2C86FA40002B94D3 /* NullTime.swift */; }; 4159F1902C86FA41002B94D3 /* PublisherAggregateStats.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F15E2C86FA40002B94D3 /* PublisherAggregateStats.swift */; }; - 4159F1932C86FA41002B94D3 /* UserMuteResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F1612C86FA41002B94D3 /* UserMuteResponse.swift */; }; 4159F1952C86FA41002B94D3 /* AggregatedStats.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F1632C86FA41002B94D3 /* AggregatedStats.swift */; }; 4159F1992C86FA41002B94D3 /* CountrywiseAggregateStats.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4159F1672C86FA41002B94D3 /* CountrywiseAggregateStats.swift */; }; 43217A0C2A44A28B002B5857 /* ConnectionErrorEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43217A0B2A44A28B002B5857 /* ConnectionErrorEvent.swift */; }; @@ -1045,6 +1041,34 @@ 8493227E29093A420013C029 /* StreamVideo_Mock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8492B87929081E6600006649 /* StreamVideo_Mock.swift */; }; 8496A9A629CC500F00F15FF1 /* StreamVideoCaptureHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8496A9A529CC500F00F15FF1 /* StreamVideoCaptureHandler.swift */; }; 8498796828A15F0300D06F31 /* ViewFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8498796728A15F0300D06F31 /* ViewFactory.swift */; }; + 849A04DC2D198A0C004C33F2 /* StopTranscriptionRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04DB2D198A0C004C33F2 /* StopTranscriptionRequest.swift */; }; + 849A04DD2D198A0C004C33F2 /* StopClosedCaptionsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04D92D198A0C004C33F2 /* StopClosedCaptionsRequest.swift */; }; + 849A04DE2D198A0C004C33F2 /* StopLiveRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04DA2D198A0C004C33F2 /* StopLiveRequest.swift */; }; + 849A04F82D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F12D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift */; }; + 849A04F92D198A92004C33F2 /* UserFeedbackReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F72D198A92004C33F2 /* UserFeedbackReportResponse.swift */; }; + 849A04FA2D198A92004C33F2 /* Bound.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04DF2D198A92004C33F2 /* Bound.swift */; }; + 849A04FB2D198A92004C33F2 /* SDKUsageReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F42D198A92004C33F2 /* SDKUsageReportResponse.swift */; }; + 849A04FC2D198A92004C33F2 /* CallParticipantCountReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E32D198A92004C33F2 /* CallParticipantCountReportResponse.swift */; }; + 849A04FD2D198A92004C33F2 /* CallDurationReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E02D198A92004C33F2 /* CallDurationReport.swift */; }; + 849A04FE2D198A92004C33F2 /* ReportByHistogramBucket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F22D198A92004C33F2 /* ReportByHistogramBucket.swift */; }; + 849A04FF2D198A92004C33F2 /* StartClosedCaptionsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F52D198A92004C33F2 /* StartClosedCaptionsRequest.swift */; }; + 849A05002D198A92004C33F2 /* CallsPerDayReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E42D198A92004C33F2 /* CallsPerDayReport.swift */; }; + 849A05012D198A92004C33F2 /* CallParticipantCountReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E22D198A92004C33F2 /* CallParticipantCountReport.swift */; }; + 849A05022D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EA2D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift */; }; + 849A05032D198A92004C33F2 /* SDKUsageReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F32D198A92004C33F2 /* SDKUsageReport.swift */; }; + 849A05042D198A92004C33F2 /* CallsPerDayReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E52D198A92004C33F2 /* CallsPerDayReportResponse.swift */; }; + 849A05052D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E82D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift */; }; + 849A05062D198A92004C33F2 /* QualityScoreReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EF2D198A92004C33F2 /* QualityScoreReportResponse.swift */; }; + 849A05072D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E62D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift */; }; + 849A05082D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F02D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift */; }; + 849A05092D198A92004C33F2 /* UserFeedbackReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F62D198A92004C33F2 /* UserFeedbackReport.swift */; }; + 849A050A2D198A92004C33F2 /* QualityScoreReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EE2D198A92004C33F2 /* QualityScoreReport.swift */; }; + 849A050B2D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E92D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift */; }; + 849A050C2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EB2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift */; }; + 849A050D2D198A92004C33F2 /* CallDurationReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E12D198A92004C33F2 /* CallDurationReportResponse.swift */; }; + 849A050E2D198A92004C33F2 /* NetworkMetricsReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EC2D198A92004C33F2 /* NetworkMetricsReportResponse.swift */; }; + 849A050F2D198A92004C33F2 /* PerSDKUsageReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04ED2D198A92004C33F2 /* PerSDKUsageReport.swift */; }; + 849A05102D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E72D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift */; }; 849EDA8B297AFCC80072A12D /* PreJoiningView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849EDA8A297AFCC80072A12D /* PreJoiningView.swift */; }; 849EDA8D297AFD840072A12D /* Camera.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849EDA8C297AFD840072A12D /* Camera.swift */; }; 849EDA8F297AFE1C0072A12D /* PreJoiningViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849EDA8E297AFE1C0072A12D /* PreJoiningViewModel.swift */; }; @@ -2282,6 +2306,34 @@ 8493228129093B270013C029 /* StreamVideoUIKit.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = StreamVideoUIKit.xctestplan; sourceTree = ""; }; 8496A9A529CC500F00F15FF1 /* StreamVideoCaptureHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StreamVideoCaptureHandler.swift; sourceTree = ""; }; 8498796728A15F0300D06F31 /* ViewFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewFactory.swift; sourceTree = ""; }; + 849A04D92D198A0C004C33F2 /* StopClosedCaptionsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StopClosedCaptionsRequest.swift; sourceTree = ""; }; + 849A04DA2D198A0C004C33F2 /* StopLiveRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StopLiveRequest.swift; sourceTree = ""; }; + 849A04DB2D198A0C004C33F2 /* StopTranscriptionRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StopTranscriptionRequest.swift; sourceTree = ""; }; + 849A04DF2D198A92004C33F2 /* Bound.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bound.swift; sourceTree = ""; }; + 849A04E02D198A92004C33F2 /* CallDurationReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallDurationReport.swift; sourceTree = ""; }; + 849A04E12D198A92004C33F2 /* CallDurationReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallDurationReportResponse.swift; sourceTree = ""; }; + 849A04E22D198A92004C33F2 /* CallParticipantCountReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallParticipantCountReport.swift; sourceTree = ""; }; + 849A04E32D198A92004C33F2 /* CallParticipantCountReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallParticipantCountReportResponse.swift; sourceTree = ""; }; + 849A04E42D198A92004C33F2 /* CallsPerDayReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallsPerDayReport.swift; sourceTree = ""; }; + 849A04E52D198A92004C33F2 /* CallsPerDayReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallsPerDayReportResponse.swift; sourceTree = ""; }; + 849A04E62D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateCallDurationReportResponse.swift; sourceTree = ""; }; + 849A04E72D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateCallParticipantCountReportResponse.swift; sourceTree = ""; }; + 849A04E82D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateCallsPerDayReportResponse.swift; sourceTree = ""; }; + 849A04E92D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateQualityScoreReportResponse.swift; sourceTree = ""; }; + 849A04EA2D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateSDKUsageReportResponse.swift; sourceTree = ""; }; + 849A04EB2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateUserFeedbackReportResponse.swift; sourceTree = ""; }; + 849A04EC2D198A92004C33F2 /* NetworkMetricsReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkMetricsReportResponse.swift; sourceTree = ""; }; + 849A04ED2D198A92004C33F2 /* PerSDKUsageReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PerSDKUsageReport.swift; sourceTree = ""; }; + 849A04EE2D198A92004C33F2 /* QualityScoreReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QualityScoreReport.swift; sourceTree = ""; }; + 849A04EF2D198A92004C33F2 /* QualityScoreReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QualityScoreReportResponse.swift; sourceTree = ""; }; + 849A04F02D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QueryAggregateCallStatsRequest.swift; sourceTree = ""; }; + 849A04F12D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QueryAggregateCallStatsResponse.swift; sourceTree = ""; }; + 849A04F22D198A92004C33F2 /* ReportByHistogramBucket.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReportByHistogramBucket.swift; sourceTree = ""; }; + 849A04F32D198A92004C33F2 /* SDKUsageReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKUsageReport.swift; sourceTree = ""; }; + 849A04F42D198A92004C33F2 /* SDKUsageReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKUsageReportResponse.swift; sourceTree = ""; }; + 849A04F52D198A92004C33F2 /* StartClosedCaptionsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartClosedCaptionsRequest.swift; sourceTree = ""; }; + 849A04F62D198A92004C33F2 /* UserFeedbackReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserFeedbackReport.swift; sourceTree = ""; }; + 849A04F72D198A92004C33F2 /* UserFeedbackReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserFeedbackReportResponse.swift; sourceTree = ""; }; 849EDA8A297AFCC80072A12D /* PreJoiningView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreJoiningView.swift; sourceTree = ""; }; 849EDA8C297AFD840072A12D /* Camera.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Camera.swift; sourceTree = ""; }; 849EDA8E297AFE1C0072A12D /* PreJoiningViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreJoiningViewModel.swift; sourceTree = ""; }; @@ -5085,6 +5137,34 @@ 84DC383E29ADFCFC00946713 /* Models */ = { isa = PBXGroup; children = ( + 849A04DF2D198A92004C33F2 /* Bound.swift */, + 849A04E02D198A92004C33F2 /* CallDurationReport.swift */, + 849A04E12D198A92004C33F2 /* CallDurationReportResponse.swift */, + 849A04E22D198A92004C33F2 /* CallParticipantCountReport.swift */, + 849A04E32D198A92004C33F2 /* CallParticipantCountReportResponse.swift */, + 849A04E42D198A92004C33F2 /* CallsPerDayReport.swift */, + 849A04E52D198A92004C33F2 /* CallsPerDayReportResponse.swift */, + 849A04E62D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift */, + 849A04E72D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift */, + 849A04E82D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift */, + 849A04E92D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift */, + 849A04EA2D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift */, + 849A04EB2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift */, + 849A04EC2D198A92004C33F2 /* NetworkMetricsReportResponse.swift */, + 849A04ED2D198A92004C33F2 /* PerSDKUsageReport.swift */, + 849A04EE2D198A92004C33F2 /* QualityScoreReport.swift */, + 849A04EF2D198A92004C33F2 /* QualityScoreReportResponse.swift */, + 849A04F02D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift */, + 849A04F12D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift */, + 849A04F22D198A92004C33F2 /* ReportByHistogramBucket.swift */, + 849A04F32D198A92004C33F2 /* SDKUsageReport.swift */, + 849A04F42D198A92004C33F2 /* SDKUsageReportResponse.swift */, + 849A04F52D198A92004C33F2 /* StartClosedCaptionsRequest.swift */, + 849A04F62D198A92004C33F2 /* UserFeedbackReport.swift */, + 849A04F72D198A92004C33F2 /* UserFeedbackReportResponse.swift */, + 849A04D92D198A0C004C33F2 /* StopClosedCaptionsRequest.swift */, + 849A04DA2D198A0C004C33F2 /* StopLiveRequest.swift */, + 849A04DB2D198A0C004C33F2 /* StopTranscriptionRequest.swift */, 84FCE4482CE208C400649F86 /* CallClosedCaptionsFailedEvent.swift */, 84FCE4492CE208C400649F86 /* CallClosedCaptionsStartedEvent.swift */, 84FCE44A2CE208C400649F86 /* CallClosedCaptionsStoppedEvent.swift */, @@ -6392,7 +6472,6 @@ 842E70D02B91BE1700D2D68B /* ClosedCaptionEvent.swift in Sources */, 842D3B5829F667660051698A /* CreateDeviceRequest.swift in Sources */, 84BBF62B28AFC24000387A02 /* PeerConnectionFactory.swift in Sources */, - 4159F1932C86FA41002B94D3 /* UserMuteResponse.swift in Sources */, 841BAA3E2BD15CDE000C73E4 /* CollectUserFeedbackResponse.swift in Sources */, 402F04A92B70ED8600CA1986 /* StreamCallStatisticsReporter.swift in Sources */, 8490DD1F298D39D9007E53D2 /* JsonEventDecoder.swift in Sources */, @@ -6403,7 +6482,6 @@ 84D91E9C2C7CB0AA00B163A0 /* CallSessionParticipantCountsUpdatedEvent.swift in Sources */, 846E4AF529CDEA66003733AB /* ConnectUserDetailsRequest.swift in Sources */, 846D16262A52CE8C0036CE4C /* SpeakerManager.swift in Sources */, - 4159F18E2C86FA41002B94D3 /* NullTime.swift in Sources */, 841BAA3A2BD15CDE000C73E4 /* Location.swift in Sources */, 40AF6A392C93465100BA2935 /* WebSocketClientProviding.swift in Sources */, 842B8E302A2DFED900863A87 /* EgressResponse.swift in Sources */, @@ -6555,7 +6633,6 @@ 841BAA472BD15CDE000C73E4 /* CallTranscriptionReadyEvent.swift in Sources */, 4012B1922BFCA518006B0031 /* StreamCallStateMachine+AcceptingStage.swift in Sources */, 841BAA352BD15CDE000C73E4 /* CallTranscriptionStartedEvent.swift in Sources */, - 4159F18A2C86FA41002B94D3 /* NullBool.swift in Sources */, 84DC38A729ADFCFD00946713 /* GoLiveResponse.swift in Sources */, 4067F30D2CDA3377002E28BD /* AVAudioSession_RouteChangeReason+Convenience.swift in Sources */, 84DC38C329ADFCFD00946713 /* GeofenceSettings.swift in Sources */, @@ -6617,6 +6694,9 @@ 84C267C928F5980F00F0F673 /* ConnectOptions.swift in Sources */, 406B3BEF2C8F38CE00FC93A1 /* RTCPeerConnectionEvent.swift in Sources */, 842E70D22B91BE1700D2D68B /* StartTranscriptionRequest.swift in Sources */, + 849A04DC2D198A0C004C33F2 /* StopTranscriptionRequest.swift in Sources */, + 849A04DD2D198A0C004C33F2 /* StopClosedCaptionsRequest.swift in Sources */, + 849A04DE2D198A0C004C33F2 /* StopLiveRequest.swift in Sources */, 84DC389E29ADFCFD00946713 /* CallCreatedEvent.swift in Sources */, 842B8E202A2DFED900863A87 /* CallSessionParticipantLeftEvent.swift in Sources */, 40149DCC2B7E814300473176 /* AVAudioRecorderBuilder.swift in Sources */, @@ -6677,6 +6757,31 @@ 845C09852C0DEB5C00F725B3 /* LimitsSettingsResponse.swift in Sources */, 4159F1952C86FA41002B94D3 /* AggregatedStats.swift in Sources */, 84A7E1942883652000526C98 /* EventMiddleware.swift in Sources */, + 849A04F82D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift in Sources */, + 849A04F92D198A92004C33F2 /* UserFeedbackReportResponse.swift in Sources */, + 849A04FA2D198A92004C33F2 /* Bound.swift in Sources */, + 849A04FB2D198A92004C33F2 /* SDKUsageReportResponse.swift in Sources */, + 849A04FC2D198A92004C33F2 /* CallParticipantCountReportResponse.swift in Sources */, + 849A04FD2D198A92004C33F2 /* CallDurationReport.swift in Sources */, + 849A04FE2D198A92004C33F2 /* ReportByHistogramBucket.swift in Sources */, + 849A04FF2D198A92004C33F2 /* StartClosedCaptionsRequest.swift in Sources */, + 849A05002D198A92004C33F2 /* CallsPerDayReport.swift in Sources */, + 849A05012D198A92004C33F2 /* CallParticipantCountReport.swift in Sources */, + 849A05022D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift in Sources */, + 849A05032D198A92004C33F2 /* SDKUsageReport.swift in Sources */, + 849A05042D198A92004C33F2 /* CallsPerDayReportResponse.swift in Sources */, + 849A05052D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift in Sources */, + 849A05062D198A92004C33F2 /* QualityScoreReportResponse.swift in Sources */, + 849A05072D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift in Sources */, + 849A05082D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift in Sources */, + 849A05092D198A92004C33F2 /* UserFeedbackReport.swift in Sources */, + 849A050A2D198A92004C33F2 /* QualityScoreReport.swift in Sources */, + 849A050B2D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift in Sources */, + 849A050C2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift in Sources */, + 849A050D2D198A92004C33F2 /* CallDurationReportResponse.swift in Sources */, + 849A050E2D198A92004C33F2 /* NetworkMetricsReportResponse.swift in Sources */, + 849A050F2D198A92004C33F2 /* PerSDKUsageReport.swift in Sources */, + 849A05102D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift in Sources */, 8408A6222A949DB700DB1DFA /* VideoCapturingUtils.swift in Sources */, 40429D5F2C779B3D00AC7FFF /* ScreenShareSession.swift in Sources */, 84DC38D929ADFCFD00946713 /* OpenISO8601DateFormatter.swift in Sources */, @@ -6731,7 +6836,6 @@ 84E4F7D1294CB5F300DD4CE3 /* ConnectionQuality.swift in Sources */, 848CCCE72AB8ED8F002E83A2 /* ThumbnailsSettingsRequest.swift in Sources */, 8206D8532A5FF3260099F5EC /* SystemEnvironment+Version.swift in Sources */, - 4159F1892C86FA41002B94D3 /* PushNotificationSettings.swift in Sources */, 84CD12202C73831000056640 /* CallMissedEvent.swift in Sources */, 842B8E1C2A2DFED900863A87 /* AcceptCallResponse.swift in Sources */, 40FE5EB32C9C73E0006B0881 /* StreamDeviceOrientationAdapter.swift in Sources */, From fc9cc506f556d0e8f0f43128274c25f12febe57f Mon Sep 17 00:00:00 2001 From: Martin Mitrevski Date: Wed, 15 Jan 2025 17:32:36 +0100 Subject: [PATCH 3/6] Updated to new version --- .../OpenApi/generated/Models/Bound.swift | 2 +- .../generated/Models/CallDurationReport.swift | 2 +- .../Models/CallDurationReportResponse.swift | 2 +- .../Models/CallParticipantCountReport.swift | 2 +- .../CallParticipantCountReportResponse.swift | 2 +- .../Models/CallSettingsRequest.swift | 6 +++++ .../Models/CallSettingsResponse.swift | 6 +++++ .../generated/Models/CallsPerDayReport.swift | 2 +- .../Models/CallsPerDayReportResponse.swift | 2 +- ...yAggregateCallDurationReportResponse.swift | 2 +- ...teCallParticipantCountReportResponse.swift | 2 +- ...lyAggregateCallsPerDayReportResponse.swift | 2 +- ...yAggregateQualityScoreReportResponse.swift | 2 +- ...DailyAggregateSDKUsageReportResponse.swift | 2 +- ...yAggregateUserFeedbackReportResponse.swift | 2 +- .../Models/NetworkMetricsReportResponse.swift | 2 +- .../generated/Models/PerSDKUsageReport.swift | 2 +- .../generated/Models/QualityScoreReport.swift | 2 +- .../Models/QualityScoreReportResponse.swift | 2 +- .../QueryAggregateCallStatsRequest.swift | 2 +- .../QueryAggregateCallStatsResponse.swift | 2 +- .../Models/ReportByHistogramBucket.swift | 2 +- .../generated/Models/SDKUsageReport.swift | 2 +- .../Models/SDKUsageReportResponse.swift | 2 +- .../Models/SessionSettingsRequest.swift | 26 +++++++++++++++++++ .../Models/SessionSettingsResponse.swift | 26 +++++++++++++++++++ .../Models/StartClosedCaptionsRequest.swift | 2 +- .../Models/StopClosedCaptionsRequest.swift | 2 +- .../generated/Models/StopLiveRequest.swift | 2 +- .../Models/StopTranscriptionRequest.swift | 2 +- .../Models/TranscriptionSettings.swift | 1 + .../Models/TranscriptionSettingsRequest.swift | 1 + .../generated/Models/UserFeedbackReport.swift | 2 +- .../Models/UserFeedbackReportResponse.swift | 2 +- StreamVideo.xcodeproj/project.pbxproj | 17 ++++++------ 35 files changed, 102 insertions(+), 37 deletions(-) create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/SessionSettingsRequest.swift create mode 100644 Sources/StreamVideo/OpenApi/generated/Models/SessionSettingsResponse.swift diff --git a/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift b/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift index 322babb92..1e987808d 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift index d67ff48ae..07de4144b 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift index aad6ddfe9..d25f217db 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift index 61cc2ec21..9ba19672c 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift index d0e224542..6ed2d4ee8 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallSettingsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallSettingsRequest.swift index 5b7f55798..696669252 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallSettingsRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallSettingsRequest.swift @@ -14,6 +14,7 @@ public final class CallSettingsRequest: @unchecked Sendable, Codable, JSONEncoda public var recording: RecordSettingsRequest? public var ring: RingSettingsRequest? public var screensharing: ScreensharingSettingsRequest? + public var session: SessionSettingsRequest? public var thumbnails: ThumbnailsSettingsRequest? public var transcription: TranscriptionSettingsRequest? public var video: VideoSettingsRequest? @@ -27,6 +28,7 @@ public final class CallSettingsRequest: @unchecked Sendable, Codable, JSONEncoda recording: RecordSettingsRequest? = nil, ring: RingSettingsRequest? = nil, screensharing: ScreensharingSettingsRequest? = nil, + session: SessionSettingsRequest? = nil, thumbnails: ThumbnailsSettingsRequest? = nil, transcription: TranscriptionSettingsRequest? = nil, video: VideoSettingsRequest? = nil @@ -39,6 +41,7 @@ public final class CallSettingsRequest: @unchecked Sendable, Codable, JSONEncoda self.recording = recording self.ring = ring self.screensharing = screensharing + self.session = session self.thumbnails = thumbnails self.transcription = transcription self.video = video @@ -53,6 +56,7 @@ public final class CallSettingsRequest: @unchecked Sendable, Codable, JSONEncoda case recording case ring case screensharing + case session case thumbnails case transcription case video @@ -67,6 +71,7 @@ public final class CallSettingsRequest: @unchecked Sendable, Codable, JSONEncoda lhs.recording == rhs.recording && lhs.ring == rhs.ring && lhs.screensharing == rhs.screensharing && + lhs.session == rhs.session && lhs.thumbnails == rhs.thumbnails && lhs.transcription == rhs.transcription && lhs.video == rhs.video @@ -81,6 +86,7 @@ public final class CallSettingsRequest: @unchecked Sendable, Codable, JSONEncoda hasher.combine(recording) hasher.combine(ring) hasher.combine(screensharing) + hasher.combine(session) hasher.combine(thumbnails) hasher.combine(transcription) hasher.combine(video) diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallSettingsResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallSettingsResponse.swift index 6f1274146..c9adada92 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallSettingsResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallSettingsResponse.swift @@ -14,6 +14,7 @@ public final class CallSettingsResponse: @unchecked Sendable, Codable, JSONEncod public var recording: RecordSettingsResponse public var ring: RingSettings public var screensharing: ScreensharingSettings + public var session: SessionSettingsResponse public var thumbnails: ThumbnailsSettings public var transcription: TranscriptionSettings public var video: VideoSettings @@ -27,6 +28,7 @@ public final class CallSettingsResponse: @unchecked Sendable, Codable, JSONEncod recording: RecordSettingsResponse, ring: RingSettings, screensharing: ScreensharingSettings, + session: SessionSettingsResponse, thumbnails: ThumbnailsSettings, transcription: TranscriptionSettings, video: VideoSettings @@ -39,6 +41,7 @@ public final class CallSettingsResponse: @unchecked Sendable, Codable, JSONEncod self.recording = recording self.ring = ring self.screensharing = screensharing + self.session = session self.thumbnails = thumbnails self.transcription = transcription self.video = video @@ -53,6 +56,7 @@ public final class CallSettingsResponse: @unchecked Sendable, Codable, JSONEncod case recording case ring case screensharing + case session case thumbnails case transcription case video @@ -67,6 +71,7 @@ public final class CallSettingsResponse: @unchecked Sendable, Codable, JSONEncod lhs.recording == rhs.recording && lhs.ring == rhs.ring && lhs.screensharing == rhs.screensharing && + lhs.session == rhs.session && lhs.thumbnails == rhs.thumbnails && lhs.transcription == rhs.transcription && lhs.video == rhs.video @@ -81,6 +86,7 @@ public final class CallSettingsResponse: @unchecked Sendable, Codable, JSONEncod hasher.combine(recording) hasher.combine(ring) hasher.combine(screensharing) + hasher.combine(session) hasher.combine(thumbnails) hasher.combine(transcription) hasher.combine(video) diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift index ca46d1246..a5b5a9a11 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift index e8e75b57e..c2be94693 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift index 8f641424f..cbeef7ae8 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift index 57b5f85b7..dbee1aec3 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift index 77fc779b1..b7371b772 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift index 8053ec854..4934b5b22 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift index d43daadc1..2657cc770 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift index dde822b07..7b2bd7757 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift index 841232908..7be0eba91 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift index a03b5346d..7cb3b164e 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift index 87dee4ff8..991212ebc 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift index c0ca85f98..4ab75dca0 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift index 5007e56ac..810081896 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift index 43eb04efd..e2a1f2f80 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift b/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift index afbe01c90..9b773d095 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift index a4acd4765..e9cda65bf 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift index c865b4c77..35cea2239 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/SessionSettingsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/SessionSettingsRequest.swift new file mode 100644 index 000000000..dd24cbcbf --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/SessionSettingsRequest.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2025 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class SessionSettingsRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var inactivityTimeoutSeconds: Int + + public init(inactivityTimeoutSeconds: Int) { + self.inactivityTimeoutSeconds = inactivityTimeoutSeconds + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case inactivityTimeoutSeconds = "inactivity_timeout_seconds" + } + + public static func == (lhs: SessionSettingsRequest, rhs: SessionSettingsRequest) -> Bool { + lhs.inactivityTimeoutSeconds == rhs.inactivityTimeoutSeconds + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(inactivityTimeoutSeconds) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/SessionSettingsResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/SessionSettingsResponse.swift new file mode 100644 index 000000000..c2373594e --- /dev/null +++ b/Sources/StreamVideo/OpenApi/generated/Models/SessionSettingsResponse.swift @@ -0,0 +1,26 @@ +// +// Copyright © 2025 Stream.io Inc. All rights reserved. +// + +import Foundation + +public final class SessionSettingsResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { + + public var inactivityTimeoutSeconds: Int + + public init(inactivityTimeoutSeconds: Int) { + self.inactivityTimeoutSeconds = inactivityTimeoutSeconds + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case inactivityTimeoutSeconds = "inactivity_timeout_seconds" + } + + public static func == (lhs: SessionSettingsResponse, rhs: SessionSettingsResponse) -> Bool { + lhs.inactivityTimeoutSeconds == rhs.inactivityTimeoutSeconds + } + + public func hash(into hasher: inout Hasher) { + hasher.combine(inactivityTimeoutSeconds) + } +} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsRequest.swift index ed7658a3d..27dce143d 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/StartClosedCaptionsRequest.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StopClosedCaptionsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StopClosedCaptionsRequest.swift index 7179497d5..c665eacca 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/StopClosedCaptionsRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/StopClosedCaptionsRequest.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift index 6ecf93f8c..7f7acbac7 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/StopLiveRequest.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/StopTranscriptionRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/StopTranscriptionRequest.swift index f17c32a11..7755ff49c 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/StopTranscriptionRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/StopTranscriptionRequest.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettings.swift b/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettings.swift index bc7fc81a2..3c1f4481a 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettings.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettings.swift @@ -25,6 +25,7 @@ public final class TranscriptionSettings: @unchecked Sendable, Codable, JSONEnco public enum Language: String, Sendable, Codable, CaseIterable { case ar + case auto case ca case cs case da diff --git a/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettingsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettingsRequest.swift index acabb3402..986b480b2 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettingsRequest.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/TranscriptionSettingsRequest.swift @@ -25,6 +25,7 @@ public final class TranscriptionSettingsRequest: @unchecked Sendable, Codable, J public enum Language: String, Sendable, Codable, CaseIterable { case ar + case auto case ca case cs case da diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift index 3956fb9c2..0ea9393b7 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift index ed94a6486..ae366942a 100644 --- a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift +++ b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift @@ -1,5 +1,5 @@ // -// Copyright © 2024 Stream.io Inc. All rights reserved. +// Copyright © 2025 Stream.io Inc. All rights reserved. // import Foundation diff --git a/StreamVideo.xcodeproj/project.pbxproj b/StreamVideo.xcodeproj/project.pbxproj index 5e417b7d4..350f30f4b 100644 --- a/StreamVideo.xcodeproj/project.pbxproj +++ b/StreamVideo.xcodeproj/project.pbxproj @@ -949,6 +949,8 @@ 842E70DB2B91BE1700D2D68B /* ListTranscriptionsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 842E70CF2B91BE1700D2D68B /* ListTranscriptionsResponse.swift */; }; 842E70DF2B91E84800D2D68B /* HealthCheckEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 842E70DE2B91E84800D2D68B /* HealthCheckEvent.swift */; }; 842E70E12B91E90F00D2D68B /* CustomVideoEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 842E70E02B91E90F00D2D68B /* CustomVideoEvent.swift */; }; + 843060FD2D381A4A000E14D5 /* SessionSettingsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FC2D381A4A000E14D5 /* SessionSettingsResponse.swift */; }; + 843060FE2D381A4A000E14D5 /* SessionSettingsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FB2D381A4A000E14D5 /* SessionSettingsRequest.swift */; }; 8430FD222AB1AB4C007AA3E6 /* ParticipantPopoverView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8430FD212AB1AB4C007AA3E6 /* ParticipantPopoverView.swift */; }; 8434C525289AA2E20001490A /* Fonts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8434C524289AA2E20001490A /* Fonts.swift */; }; 8434C527289AA2F00001490A /* Images.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8434C526289AA2F00001490A /* Images.swift */; }; @@ -2086,11 +2088,7 @@ 4159F14E2C86FA3F002B94D3 /* PushNotificationSettingsResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PushNotificationSettingsResponse.swift; sourceTree = ""; }; 4159F1502C86FA3F002B94D3 /* UserEventPayload.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserEventPayload.swift; sourceTree = ""; }; 4159F1522C86FA3F002B94D3 /* Count.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Count.swift; sourceTree = ""; }; - 4159F1572C86FA40002B94D3 /* PushNotificationSettings.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PushNotificationSettings.swift; sourceTree = ""; }; - 4159F1582C86FA40002B94D3 /* NullBool.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NullBool.swift; sourceTree = ""; }; - 4159F15C2C86FA40002B94D3 /* NullTime.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NullTime.swift; sourceTree = ""; }; 4159F15E2C86FA40002B94D3 /* PublisherAggregateStats.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PublisherAggregateStats.swift; sourceTree = ""; }; - 4159F1612C86FA41002B94D3 /* UserMuteResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserMuteResponse.swift; sourceTree = ""; }; 4159F1632C86FA41002B94D3 /* AggregatedStats.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AggregatedStats.swift; sourceTree = ""; }; 4159F1672C86FA41002B94D3 /* CountrywiseAggregateStats.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CountrywiseAggregateStats.swift; sourceTree = ""; }; 43217A0B2A44A28B002B5857 /* ConnectionErrorEvent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConnectionErrorEvent.swift; sourceTree = ""; }; @@ -2284,6 +2282,8 @@ 842E70CF2B91BE1700D2D68B /* ListTranscriptionsResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ListTranscriptionsResponse.swift; sourceTree = ""; }; 842E70DE2B91E84800D2D68B /* HealthCheckEvent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HealthCheckEvent.swift; sourceTree = ""; }; 842E70E02B91E90F00D2D68B /* CustomVideoEvent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomVideoEvent.swift; sourceTree = ""; }; + 843060FB2D381A4A000E14D5 /* SessionSettingsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionSettingsRequest.swift; sourceTree = ""; }; + 843060FC2D381A4A000E14D5 /* SessionSettingsResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionSettingsResponse.swift; sourceTree = ""; }; 8430FD212AB1AB4C007AA3E6 /* ParticipantPopoverView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParticipantPopoverView.swift; sourceTree = ""; }; 8434C524289AA2E20001490A /* Fonts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Fonts.swift; sourceTree = ""; }; 8434C526289AA2F00001490A /* Images.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Images.swift; sourceTree = ""; }; @@ -5532,6 +5532,8 @@ 84DC383E29ADFCFC00946713 /* Models */ = { isa = PBXGroup; children = ( + 843060FB2D381A4A000E14D5 /* SessionSettingsRequest.swift */, + 843060FC2D381A4A000E14D5 /* SessionSettingsResponse.swift */, 849A04DF2D198A92004C33F2 /* Bound.swift */, 849A04E02D198A92004C33F2 /* CallDurationReport.swift */, 849A04E12D198A92004C33F2 /* CallDurationReportResponse.swift */, @@ -5681,8 +5683,6 @@ 842D3B5729F667660051698A /* ModelResponse.swift */, 84DC385F29ADFCFC00946713 /* MuteUsersRequest.swift */, 84DC385229ADFCFC00946713 /* MuteUsersResponse.swift */, - 4159F1582C86FA40002B94D3 /* NullBool.swift */, - 4159F15C2C86FA40002B94D3 /* NullTime.swift */, 846E4AE329CDE0B0003733AB /* OwnCapability.swift */, 84DC387F29ADFCFC00946713 /* OwnUserResponse.swift */, 84DC384A29ADFCFC00946713 /* PermissionRequestEvent.swift */, @@ -5690,7 +5690,6 @@ 840F598D2A77FDCB00EF3EB2 /* PinResponse.swift */, 4159F1402C86FA3E002B94D3 /* PublishedTrackInfo.swift */, 4159F15E2C86FA40002B94D3 /* PublisherAggregateStats.swift */, - 4159F1572C86FA40002B94D3 /* PushNotificationSettings.swift */, 4159F14E2C86FA3F002B94D3 /* PushNotificationSettingsResponse.swift */, 84DC387E29ADFCFC00946713 /* QueryCallsRequest.swift */, 84DC385729ADFCFC00946713 /* QueryCallsResponse.swift */, @@ -5756,7 +5755,6 @@ 84DC386729ADFCFC00946713 /* UpdateUserPermissionsResponse.swift */, 4159F1502C86FA3F002B94D3 /* UserEventPayload.swift */, 841BAA2C2BD15CDE000C73E4 /* UserInfoResponse.swift */, - 4159F1612C86FA41002B94D3 /* UserMuteResponse.swift */, 84DC386F29ADFCFC00946713 /* UserRequest.swift */, 84DC386C29ADFCFC00946713 /* UserResponse.swift */, 841BAA202BD15CDC000C73E4 /* UserSessionStats.swift */, @@ -7131,6 +7129,8 @@ 848CCCEC2AB8ED8F002E83A2 /* HLSSettingsResponse.swift in Sources */, 842B8E312A2DFED900863A87 /* TargetResolution.swift in Sources */, 408CF9C62CAEC24A00F56833 /* ScreenPropertiesAdapter.swift in Sources */, + 843060FD2D381A4A000E14D5 /* SessionSettingsResponse.swift in Sources */, + 843060FE2D381A4A000E14D5 /* SessionSettingsRequest.swift in Sources */, 40BBC49F2C623D03002AEF92 /* RTCPeerConnectionState+CustomStringConvertible.swift in Sources */, 842B8E172A2DFED900863A87 /* EgressRTMPResponse.swift in Sources */, 841BAA312BD15CDE000C73E4 /* VideoQuality.swift in Sources */, @@ -7208,7 +7208,6 @@ 849A050E2D198A92004C33F2 /* NetworkMetricsReportResponse.swift in Sources */, 849A050F2D198A92004C33F2 /* PerSDKUsageReport.swift in Sources */, 849A05102D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift in Sources */, - 8408A6222A949DB700DB1DFA /* VideoCapturingUtils.swift in Sources */, 40429D5F2C779B3D00AC7FFF /* ScreenShareSession.swift in Sources */, 84DC38D929ADFCFD00946713 /* OpenISO8601DateFormatter.swift in Sources */, 84DC38A929ADFCFD00946713 /* CallUpdatedEvent.swift in Sources */, From 1edbabfd0d437c02804952b4cd95cb21ee2921a7 Mon Sep 17 00:00:00 2001 From: Martin Mitrevski Date: Wed, 15 Jan 2025 17:59:00 +0100 Subject: [PATCH 4/6] Fixed tests --- StreamVideo.xcodeproj/project.pbxproj | 6 ++++++ StreamVideoTests/Mock/MockResponseBuilder.swift | 4 +++- .../CallSessionParticipantLeftEvent+Dummy.swift | 4 +++- .../Utilities/Dummy/CallSettingsResponse+Dummy.swift | 4 +++- .../Dummy/SessionSettingsResponse+Dummy.swift | 12 ++++++++++++ .../Dummy/TranscriptionSettings+Dummy.swift | 2 +- 6 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 StreamVideoTests/Utilities/Dummy/SessionSettingsResponse+Dummy.swift diff --git a/StreamVideo.xcodeproj/project.pbxproj b/StreamVideo.xcodeproj/project.pbxproj index 350f30f4b..5ffa7de8a 100644 --- a/StreamVideo.xcodeproj/project.pbxproj +++ b/StreamVideo.xcodeproj/project.pbxproj @@ -951,6 +951,8 @@ 842E70E12B91E90F00D2D68B /* CustomVideoEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 842E70E02B91E90F00D2D68B /* CustomVideoEvent.swift */; }; 843060FD2D381A4A000E14D5 /* SessionSettingsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FC2D381A4A000E14D5 /* SessionSettingsResponse.swift */; }; 843060FE2D381A4A000E14D5 /* SessionSettingsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FB2D381A4A000E14D5 /* SessionSettingsRequest.swift */; }; + 843061002D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FF2D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift */; }; + 843061012D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FF2D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift */; }; 8430FD222AB1AB4C007AA3E6 /* ParticipantPopoverView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8430FD212AB1AB4C007AA3E6 /* ParticipantPopoverView.swift */; }; 8434C525289AA2E20001490A /* Fonts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8434C524289AA2E20001490A /* Fonts.swift */; }; 8434C527289AA2F00001490A /* Images.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8434C526289AA2F00001490A /* Images.swift */; }; @@ -2284,6 +2286,7 @@ 842E70E02B91E90F00D2D68B /* CustomVideoEvent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomVideoEvent.swift; sourceTree = ""; }; 843060FB2D381A4A000E14D5 /* SessionSettingsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionSettingsRequest.swift; sourceTree = ""; }; 843060FC2D381A4A000E14D5 /* SessionSettingsResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionSettingsResponse.swift; sourceTree = ""; }; + 843060FF2D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SessionSettingsResponse+Dummy.swift"; sourceTree = ""; }; 8430FD212AB1AB4C007AA3E6 /* ParticipantPopoverView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParticipantPopoverView.swift; sourceTree = ""; }; 8434C524289AA2E20001490A /* Fonts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Fonts.swift; sourceTree = ""; }; 8434C526289AA2F00001490A /* Images.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Images.swift; sourceTree = ""; }; @@ -4473,6 +4476,7 @@ 40AB34C42C5D3EE100B5B6B3 /* BaseStats+Dummy.swift */, 40AB34C62C5D3F0400B5B6B3 /* CallStatsReport+Dummy.swift */, 40AB34C82C5D3F2E00B5B6B3 /* ParticipantsStats+Dummy.swift */, + 843060FF2D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift */, ); path = Dummy; sourceTree = ""; @@ -7356,6 +7360,7 @@ 40F017772BBEF43B00E89FD1 /* CallSessionParticipantLeftEvent+Dummy.swift in Sources */, 40B48C2A2D14CF3B002C4EAB /* MockRTCRtpCodecCapability.swift in Sources */, 842747FA29EEEC5A00E063AD /* EventLogger.swift in Sources */, + 843061002D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift in Sources */, 40B48C582D1588DB002C4EAB /* Stream_Video_Sfu_Models_TrackInfo+Dummy.swift in Sources */, 40B48C282D14CDD5002C4EAB /* StreamVideoSfuModelsCodec_ConvenienceTests.swift in Sources */, 40E9B3B52BCD93F500ACF18F /* Credentials+Dummy.swift in Sources */, @@ -7713,6 +7718,7 @@ 40382F422C89CF9700C2D00F /* Stream_Video_Sfu_Models_ConnectionQuality+Convenience.swift in Sources */, 40B48C572D1588DB002C4EAB /* Stream_Video_Sfu_Models_TrackInfo+Dummy.swift in Sources */, 82FF40B72A17C6CD00B4D95E /* ReconnectionView_Tests.swift in Sources */, + 843061012D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift in Sources */, 829A1F6929FACCAF0072ED75 /* ParticipantsGridLayout_Tests.swift in Sources */, 829A1F6B29FACCC20072ED75 /* ParticipantsSpotlightLayout_Tests.swift in Sources */, 82E3BA4A2A0BAE33001AB93E /* UniqueValues.swift in Sources */, diff --git a/StreamVideoTests/Mock/MockResponseBuilder.swift b/StreamVideoTests/Mock/MockResponseBuilder.swift index b0143d6bd..893bbb1e9 100644 --- a/StreamVideoTests/Mock/MockResponseBuilder.swift +++ b/StreamVideoTests/Mock/MockResponseBuilder.swift @@ -147,7 +147,7 @@ class MockResponseBuilder { ) let transcriptionSettings = TranscriptionSettings( closedCaptionMode: .available, - languages: [], + language: .auto, mode: .disabled ) let videoSettings = VideoSettings( @@ -158,6 +158,7 @@ class MockResponseBuilder { targetResolution: .init(bitrate: 100, height: 100, width: 100) ) let thumbnailsSettings = ThumbnailsSettings(enabled: false) + let sessionSettingsResponse = SessionSettingsResponse(inactivityTimeoutSeconds: 10) return CallSettingsResponse( audio: audioSettings, @@ -168,6 +169,7 @@ class MockResponseBuilder { recording: recordSettings, ring: ringSettings, screensharing: screensharingSettings, + session: sessionSettingsResponse, thumbnails: thumbnailsSettings, transcription: transcriptionSettings, video: videoSettings diff --git a/StreamVideoTests/Utilities/Dummy/CallSessionParticipantLeftEvent+Dummy.swift b/StreamVideoTests/Utilities/Dummy/CallSessionParticipantLeftEvent+Dummy.swift index 3cb59e9ec..557ef7e4d 100644 --- a/StreamVideoTests/Utilities/Dummy/CallSessionParticipantLeftEvent+Dummy.swift +++ b/StreamVideoTests/Utilities/Dummy/CallSessionParticipantLeftEvent+Dummy.swift @@ -11,11 +11,13 @@ extension CallSessionParticipantLeftEvent { createdAt: Date = Date(timeIntervalSince1970: 0), participant: CallParticipantResponse = CallParticipantResponse.dummy(), sessionId: String = "", - type: String = "call.session_participant_left" + type: String = "call.session_participant_left", + durationSeconds: Int = 0 ) -> CallSessionParticipantLeftEvent { .init( callCid: callCid, createdAt: createdAt, + durationSeconds: durationSeconds, participant: participant, sessionId: sessionId ) diff --git a/StreamVideoTests/Utilities/Dummy/CallSettingsResponse+Dummy.swift b/StreamVideoTests/Utilities/Dummy/CallSettingsResponse+Dummy.swift index 3a4fac145..9b0e788fa 100644 --- a/StreamVideoTests/Utilities/Dummy/CallSettingsResponse+Dummy.swift +++ b/StreamVideoTests/Utilities/Dummy/CallSettingsResponse+Dummy.swift @@ -17,7 +17,8 @@ extension CallSettingsResponse { screensharing: ScreensharingSettings = ScreensharingSettings.dummy(), thumbnails: ThumbnailsSettings = ThumbnailsSettings.dummy(), transcription: TranscriptionSettings = TranscriptionSettings.dummy(), - video: VideoSettings = VideoSettings.dummy() + video: VideoSettings = VideoSettings.dummy(), + sessionSettings: SessionSettingsResponse = SessionSettingsResponse.dummy() ) -> CallSettingsResponse { .init( audio: audio, @@ -28,6 +29,7 @@ extension CallSettingsResponse { recording: recording, ring: ring, screensharing: screensharing, + session: sessionSettings, thumbnails: thumbnails, transcription: transcription, video: video diff --git a/StreamVideoTests/Utilities/Dummy/SessionSettingsResponse+Dummy.swift b/StreamVideoTests/Utilities/Dummy/SessionSettingsResponse+Dummy.swift new file mode 100644 index 000000000..32ace7fa1 --- /dev/null +++ b/StreamVideoTests/Utilities/Dummy/SessionSettingsResponse+Dummy.swift @@ -0,0 +1,12 @@ +// +// Copyright © 2025 Stream.io Inc. All rights reserved. +// + +import Foundation +@testable import StreamVideo + +extension SessionSettingsResponse { + static func dummy(inactivityTimeoutSeconds: Int = 10) -> SessionSettingsResponse { + SessionSettingsResponse(inactivityTimeoutSeconds: inactivityTimeoutSeconds) + } +} diff --git a/StreamVideoTests/Utilities/Dummy/TranscriptionSettings+Dummy.swift b/StreamVideoTests/Utilities/Dummy/TranscriptionSettings+Dummy.swift index bbf144cec..f2522ce1a 100644 --- a/StreamVideoTests/Utilities/Dummy/TranscriptionSettings+Dummy.swift +++ b/StreamVideoTests/Utilities/Dummy/TranscriptionSettings+Dummy.swift @@ -12,7 +12,7 @@ extension TranscriptionSettings { ) -> TranscriptionSettings { .init( closedCaptionMode: closedCaptionMode, - languages: [], + language: .auto, mode: mode ) } From 46f894cad615132f2142584b07adb2df9f589346 Mon Sep 17 00:00:00 2001 From: Martin Mitrevski Date: Thu, 16 Jan 2025 10:12:57 +0100 Subject: [PATCH 5/6] Updated tests --- StreamVideoSwiftUITests/Utils/CallEventsHandler_Tests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/StreamVideoSwiftUITests/Utils/CallEventsHandler_Tests.swift b/StreamVideoSwiftUITests/Utils/CallEventsHandler_Tests.swift index 15cf3552d..6639b8f69 100644 --- a/StreamVideoSwiftUITests/Utils/CallEventsHandler_Tests.swift +++ b/StreamVideoSwiftUITests/Utils/CallEventsHandler_Tests.swift @@ -201,6 +201,7 @@ final class CallEventsHandler_Tests: XCTestCase { let rawEvent = CallSessionParticipantLeftEvent( callCid: callCid, createdAt: Date(), + durationSeconds: 0, participant: CallParticipantResponse( joinedAt: Date(), role: "user", From 7b094dddf79c6263a2484e693decd04b75ce32e9 Mon Sep 17 00:00:00 2001 From: Martin Mitrevski Date: Thu, 16 Jan 2025 17:21:01 +0100 Subject: [PATCH 6/6] Removed not needed models --- .../OpenApi/generated/APIs/DefaultAPI.swift | 17 --- .../OpenApi/generated/Models/Bound.swift | 31 ------ .../generated/Models/CallDurationReport.swift | 26 ----- .../Models/CallDurationReportResponse.swift | 26 ----- .../Models/CallParticipantCountReport.swift | 26 ----- .../CallParticipantCountReportResponse.swift | 26 ----- .../generated/Models/CallsPerDayReport.swift | 26 ----- .../Models/CallsPerDayReportResponse.swift | 26 ----- ...yAggregateCallDurationReportResponse.swift | 31 ------ ...teCallParticipantCountReportResponse.swift | 34 ------ ...lyAggregateCallsPerDayReportResponse.swift | 31 ------ ...yAggregateQualityScoreReportResponse.swift | 31 ------ ...DailyAggregateSDKUsageReportResponse.swift | 31 ------ ...yAggregateUserFeedbackReportResponse.swift | 31 ------ .../Models/NetworkMetricsReportResponse.swift | 46 -------- .../generated/Models/PerSDKUsageReport.swift | 31 ------ .../generated/Models/QualityScoreReport.swift | 26 ----- .../Models/QualityScoreReportResponse.swift | 26 ----- .../QueryAggregateCallStatsRequest.swift | 36 ------ .../QueryAggregateCallStatsResponse.swift | 70 ------------ .../Models/ReportByHistogramBucket.swift | 51 --------- .../generated/Models/SDKUsageReport.swift | 26 ----- .../Models/SDKUsageReportResponse.swift | 26 ----- .../generated/Models/UserFeedbackReport.swift | 31 ------ .../Models/UserFeedbackReportResponse.swift | 26 ----- StreamVideo.xcodeproj/project.pbxproj | 104 +----------------- 26 files changed, 4 insertions(+), 888 deletions(-) delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/Bound.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift delete mode 100644 Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift diff --git a/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift b/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift index 249788924..d9b94e680 100644 --- a/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift +++ b/Sources/StreamVideo/OpenApi/generated/APIs/DefaultAPI.swift @@ -1120,20 +1120,6 @@ open class DefaultAPI: DefaultAPIEndpoints, @unchecked Sendable { try self.jsonDecoder.decode(EmptyResponse.self, from: $0) } } - - open func queryAggregateCallStats(queryAggregateCallStatsRequest: QueryAggregateCallStatsRequest) async throws - -> QueryAggregateCallStatsResponse { - let path = "/video/stats" - - let urlRequest = try makeRequest( - uriPath: path, - httpMethod: "POST", - request: queryAggregateCallStatsRequest - ) - return try await send(request: urlRequest) { - try self.jsonDecoder.decode(QueryAggregateCallStatsResponse.self, from: $0) - } - } } protocol DefaultAPIEndpoints { @@ -1245,7 +1231,4 @@ protocol DefaultAPIEndpoints { func createGuest(createGuestRequest: CreateGuestRequest) async throws -> CreateGuestResponse func videoConnect() async throws -> Void - - func queryAggregateCallStats(queryAggregateCallStatsRequest: QueryAggregateCallStatsRequest) async throws - -> QueryAggregateCallStatsResponse } diff --git a/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift b/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift deleted file mode 100644 index 1e987808d..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/Bound.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class Bound: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var inclusive: Bool - public var value: Float - - public init(inclusive: Bool, value: Float) { - self.inclusive = inclusive - self.value = value - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case inclusive - case value - } - - public static func == (lhs: Bound, rhs: Bound) -> Bool { - lhs.inclusive == rhs.inclusive && - lhs.value == rhs.value - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(inclusive) - hasher.combine(value) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift deleted file mode 100644 index 07de4144b..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReport.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class CallDurationReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var histogram: [ReportByHistogramBucket] - - public init(histogram: [ReportByHistogramBucket]) { - self.histogram = histogram - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case histogram - } - - public static func == (lhs: CallDurationReport, rhs: CallDurationReport) -> Bool { - lhs.histogram == rhs.histogram - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(histogram) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift deleted file mode 100644 index d25f217db..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallDurationReportResponse.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class CallDurationReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var daily: [DailyAggregateCallDurationReportResponse] - - public init(daily: [DailyAggregateCallDurationReportResponse]) { - self.daily = daily - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case daily - } - - public static func == (lhs: CallDurationReportResponse, rhs: CallDurationReportResponse) -> Bool { - lhs.daily == rhs.daily - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(daily) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift deleted file mode 100644 index 9ba19672c..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReport.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class CallParticipantCountReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var histogram: [ReportByHistogramBucket] - - public init(histogram: [ReportByHistogramBucket]) { - self.histogram = histogram - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case histogram - } - - public static func == (lhs: CallParticipantCountReport, rhs: CallParticipantCountReport) -> Bool { - lhs.histogram == rhs.histogram - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(histogram) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift deleted file mode 100644 index 6ed2d4ee8..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallParticipantCountReportResponse.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class CallParticipantCountReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var daily: [DailyAggregateCallParticipantCountReportResponse] - - public init(daily: [DailyAggregateCallParticipantCountReportResponse]) { - self.daily = daily - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case daily - } - - public static func == (lhs: CallParticipantCountReportResponse, rhs: CallParticipantCountReportResponse) -> Bool { - lhs.daily == rhs.daily - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(daily) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift deleted file mode 100644 index a5b5a9a11..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReport.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class CallsPerDayReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var count: Int - - public init(count: Int) { - self.count = count - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case count - } - - public static func == (lhs: CallsPerDayReport, rhs: CallsPerDayReport) -> Bool { - lhs.count == rhs.count - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(count) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift deleted file mode 100644 index c2be94693..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/CallsPerDayReportResponse.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class CallsPerDayReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var daily: [DailyAggregateCallsPerDayReportResponse] - - public init(daily: [DailyAggregateCallsPerDayReportResponse]) { - self.daily = daily - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case daily - } - - public static func == (lhs: CallsPerDayReportResponse, rhs: CallsPerDayReportResponse) -> Bool { - lhs.daily == rhs.daily - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(daily) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift deleted file mode 100644 index cbeef7ae8..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallDurationReportResponse.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class DailyAggregateCallDurationReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var date: String - public var report: CallDurationReport - - public init(date: String, report: CallDurationReport) { - self.date = date - self.report = report - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case date - case report - } - - public static func == (lhs: DailyAggregateCallDurationReportResponse, rhs: DailyAggregateCallDurationReportResponse) -> Bool { - lhs.date == rhs.date && - lhs.report == rhs.report - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(date) - hasher.combine(report) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift deleted file mode 100644 index dbee1aec3..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallParticipantCountReportResponse.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class DailyAggregateCallParticipantCountReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var date: String - public var report: CallParticipantCountReport - - public init(date: String, report: CallParticipantCountReport) { - self.date = date - self.report = report - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case date - case report - } - - public static func == ( - lhs: DailyAggregateCallParticipantCountReportResponse, - rhs: DailyAggregateCallParticipantCountReportResponse - ) -> Bool { - lhs.date == rhs.date && - lhs.report == rhs.report - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(date) - hasher.combine(report) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift deleted file mode 100644 index b7371b772..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateCallsPerDayReportResponse.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class DailyAggregateCallsPerDayReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var date: String - public var report: CallsPerDayReport - - public init(date: String, report: CallsPerDayReport) { - self.date = date - self.report = report - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case date - case report - } - - public static func == (lhs: DailyAggregateCallsPerDayReportResponse, rhs: DailyAggregateCallsPerDayReportResponse) -> Bool { - lhs.date == rhs.date && - lhs.report == rhs.report - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(date) - hasher.combine(report) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift deleted file mode 100644 index 4934b5b22..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateQualityScoreReportResponse.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class DailyAggregateQualityScoreReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var date: String - public var report: QualityScoreReport - - public init(date: String, report: QualityScoreReport) { - self.date = date - self.report = report - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case date - case report - } - - public static func == (lhs: DailyAggregateQualityScoreReportResponse, rhs: DailyAggregateQualityScoreReportResponse) -> Bool { - lhs.date == rhs.date && - lhs.report == rhs.report - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(date) - hasher.combine(report) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift deleted file mode 100644 index 2657cc770..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateSDKUsageReportResponse.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class DailyAggregateSDKUsageReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var date: String - public var report: SDKUsageReport - - public init(date: String, report: SDKUsageReport) { - self.date = date - self.report = report - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case date - case report - } - - public static func == (lhs: DailyAggregateSDKUsageReportResponse, rhs: DailyAggregateSDKUsageReportResponse) -> Bool { - lhs.date == rhs.date && - lhs.report == rhs.report - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(date) - hasher.combine(report) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift deleted file mode 100644 index 7b2bd7757..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/DailyAggregateUserFeedbackReportResponse.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class DailyAggregateUserFeedbackReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var date: String - public var report: UserFeedbackReport - - public init(date: String, report: UserFeedbackReport) { - self.date = date - self.report = report - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case date - case report - } - - public static func == (lhs: DailyAggregateUserFeedbackReportResponse, rhs: DailyAggregateUserFeedbackReportResponse) -> Bool { - lhs.date == rhs.date && - lhs.report == rhs.report - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(date) - hasher.combine(report) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift deleted file mode 100644 index 7be0eba91..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/NetworkMetricsReportResponse.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class NetworkMetricsReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var averageConnectionTime: Float? - public var averageJitter: Float? - public var averageLatency: Float? - public var averageTimeToReconnect: Float? - - public init( - averageConnectionTime: Float? = nil, - averageJitter: Float? = nil, - averageLatency: Float? = nil, - averageTimeToReconnect: Float? = nil - ) { - self.averageConnectionTime = averageConnectionTime - self.averageJitter = averageJitter - self.averageLatency = averageLatency - self.averageTimeToReconnect = averageTimeToReconnect - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case averageConnectionTime = "average_connection_time" - case averageJitter = "average_jitter" - case averageLatency = "average_latency" - case averageTimeToReconnect = "average_time_to_reconnect" - } - - public static func == (lhs: NetworkMetricsReportResponse, rhs: NetworkMetricsReportResponse) -> Bool { - lhs.averageConnectionTime == rhs.averageConnectionTime && - lhs.averageJitter == rhs.averageJitter && - lhs.averageLatency == rhs.averageLatency && - lhs.averageTimeToReconnect == rhs.averageTimeToReconnect - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(averageConnectionTime) - hasher.combine(averageJitter) - hasher.combine(averageLatency) - hasher.combine(averageTimeToReconnect) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift deleted file mode 100644 index 7cb3b164e..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/PerSDKUsageReport.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class PerSDKUsageReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var byVersion: [String: Int] - public var total: Int - - public init(byVersion: [String: Int], total: Int) { - self.byVersion = byVersion - self.total = total - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case byVersion = "by_version" - case total - } - - public static func == (lhs: PerSDKUsageReport, rhs: PerSDKUsageReport) -> Bool { - lhs.byVersion == rhs.byVersion && - lhs.total == rhs.total - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(byVersion) - hasher.combine(total) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift deleted file mode 100644 index 991212ebc..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReport.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class QualityScoreReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var histogram: [ReportByHistogramBucket] - - public init(histogram: [ReportByHistogramBucket]) { - self.histogram = histogram - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case histogram - } - - public static func == (lhs: QualityScoreReport, rhs: QualityScoreReport) -> Bool { - lhs.histogram == rhs.histogram - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(histogram) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift deleted file mode 100644 index 4ab75dca0..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/QualityScoreReportResponse.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class QualityScoreReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var daily: [DailyAggregateQualityScoreReportResponse] - - public init(daily: [DailyAggregateQualityScoreReportResponse]) { - self.daily = daily - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case daily - } - - public static func == (lhs: QualityScoreReportResponse, rhs: QualityScoreReportResponse) -> Bool { - lhs.daily == rhs.daily - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(daily) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift deleted file mode 100644 index 810081896..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsRequest.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class QueryAggregateCallStatsRequest: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var from: String? - public var reportTypes: [String]? - public var to: String? - - public init(from: String? = nil, reportTypes: [String]? = nil, to: String? = nil) { - self.from = from - self.reportTypes = reportTypes - self.to = to - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case from - case reportTypes = "report_types" - case to - } - - public static func == (lhs: QueryAggregateCallStatsRequest, rhs: QueryAggregateCallStatsRequest) -> Bool { - lhs.from == rhs.from && - lhs.reportTypes == rhs.reportTypes && - lhs.to == rhs.to - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(from) - hasher.combine(reportTypes) - hasher.combine(to) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift deleted file mode 100644 index e2a1f2f80..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/QueryAggregateCallStatsResponse.swift +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class QueryAggregateCallStatsResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var callDurationReport: CallDurationReportResponse? - public var callParticipantCountReport: CallParticipantCountReportResponse? - public var callsPerDayReport: CallsPerDayReportResponse? - public var duration: String - public var networkMetricsReport: NetworkMetricsReportResponse? - public var qualityScoreReport: QualityScoreReportResponse? - public var sdkUsageReport: SDKUsageReportResponse? - public var userFeedbackReport: UserFeedbackReportResponse? - - public init( - callDurationReport: CallDurationReportResponse? = nil, - callParticipantCountReport: CallParticipantCountReportResponse? = nil, - callsPerDayReport: CallsPerDayReportResponse? = nil, - duration: String, - networkMetricsReport: NetworkMetricsReportResponse? = nil, - qualityScoreReport: QualityScoreReportResponse? = nil, - sdkUsageReport: SDKUsageReportResponse? = nil, - userFeedbackReport: UserFeedbackReportResponse? = nil - ) { - self.callDurationReport = callDurationReport - self.callParticipantCountReport = callParticipantCountReport - self.callsPerDayReport = callsPerDayReport - self.duration = duration - self.networkMetricsReport = networkMetricsReport - self.qualityScoreReport = qualityScoreReport - self.sdkUsageReport = sdkUsageReport - self.userFeedbackReport = userFeedbackReport - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case callDurationReport = "call_duration_report" - case callParticipantCountReport = "call_participant_count_report" - case callsPerDayReport = "calls_per_day_report" - case duration - case networkMetricsReport = "network_metrics_report" - case qualityScoreReport = "quality_score_report" - case sdkUsageReport = "sdk_usage_report" - case userFeedbackReport = "user_feedback_report" - } - - public static func == (lhs: QueryAggregateCallStatsResponse, rhs: QueryAggregateCallStatsResponse) -> Bool { - lhs.callDurationReport == rhs.callDurationReport && - lhs.callParticipantCountReport == rhs.callParticipantCountReport && - lhs.callsPerDayReport == rhs.callsPerDayReport && - lhs.duration == rhs.duration && - lhs.networkMetricsReport == rhs.networkMetricsReport && - lhs.qualityScoreReport == rhs.qualityScoreReport && - lhs.sdkUsageReport == rhs.sdkUsageReport && - lhs.userFeedbackReport == rhs.userFeedbackReport - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(callDurationReport) - hasher.combine(callParticipantCountReport) - hasher.combine(callsPerDayReport) - hasher.combine(duration) - hasher.combine(networkMetricsReport) - hasher.combine(qualityScoreReport) - hasher.combine(sdkUsageReport) - hasher.combine(userFeedbackReport) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift b/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift deleted file mode 100644 index 9b773d095..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/ReportByHistogramBucket.swift +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class ReportByHistogramBucket: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var category: String - public var count: Int - public var lowerBound: Bound? - public var mean: Float - public var sum: Float - public var upperBound: Bound? - - public init(category: String, count: Int, lowerBound: Bound? = nil, mean: Float, sum: Float, upperBound: Bound? = nil) { - self.category = category - self.count = count - self.lowerBound = lowerBound - self.mean = mean - self.sum = sum - self.upperBound = upperBound - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case category - case count - case lowerBound = "lower_bound" - case mean - case sum - case upperBound = "upper_bound" - } - - public static func == (lhs: ReportByHistogramBucket, rhs: ReportByHistogramBucket) -> Bool { - lhs.category == rhs.category && - lhs.count == rhs.count && - lhs.lowerBound == rhs.lowerBound && - lhs.mean == rhs.mean && - lhs.sum == rhs.sum && - lhs.upperBound == rhs.upperBound - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(category) - hasher.combine(count) - hasher.combine(lowerBound) - hasher.combine(mean) - hasher.combine(sum) - hasher.combine(upperBound) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift deleted file mode 100644 index e9cda65bf..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReport.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class SDKUsageReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var perSdkUsage: [String: PerSDKUsageReport?] - - public init(perSdkUsage: [String: PerSDKUsageReport?]) { - self.perSdkUsage = perSdkUsage - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case perSdkUsage = "per_sdk_usage" - } - - public static func == (lhs: SDKUsageReport, rhs: SDKUsageReport) -> Bool { - lhs.perSdkUsage == rhs.perSdkUsage - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(perSdkUsage) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift deleted file mode 100644 index 35cea2239..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/SDKUsageReportResponse.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class SDKUsageReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var daily: [DailyAggregateSDKUsageReportResponse] - - public init(daily: [DailyAggregateSDKUsageReportResponse]) { - self.daily = daily - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case daily - } - - public static func == (lhs: SDKUsageReportResponse, rhs: SDKUsageReportResponse) -> Bool { - lhs.daily == rhs.daily - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(daily) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift deleted file mode 100644 index 0ea9393b7..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReport.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class UserFeedbackReport: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var countByRating: [String: Int] - public var unreportedCount: Int - - public init(countByRating: [String: Int], unreportedCount: Int) { - self.countByRating = countByRating - self.unreportedCount = unreportedCount - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case countByRating = "count_by_rating" - case unreportedCount = "unreported_count" - } - - public static func == (lhs: UserFeedbackReport, rhs: UserFeedbackReport) -> Bool { - lhs.countByRating == rhs.countByRating && - lhs.unreportedCount == rhs.unreportedCount - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(countByRating) - hasher.combine(unreportedCount) - } -} diff --git a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift b/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift deleted file mode 100644 index ae366942a..000000000 --- a/Sources/StreamVideo/OpenApi/generated/Models/UserFeedbackReportResponse.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// Copyright © 2025 Stream.io Inc. All rights reserved. -// - -import Foundation - -public final class UserFeedbackReportResponse: @unchecked Sendable, Codable, JSONEncodable, Hashable { - - public var daily: [DailyAggregateUserFeedbackReportResponse] - - public init(daily: [DailyAggregateUserFeedbackReportResponse]) { - self.daily = daily - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case daily - } - - public static func == (lhs: UserFeedbackReportResponse, rhs: UserFeedbackReportResponse) -> Bool { - lhs.daily == rhs.daily - } - - public func hash(into hasher: inout Hasher) { - hasher.combine(daily) - } -} diff --git a/StreamVideo.xcodeproj/project.pbxproj b/StreamVideo.xcodeproj/project.pbxproj index 5ffa7de8a..56f4a20e5 100644 --- a/StreamVideo.xcodeproj/project.pbxproj +++ b/StreamVideo.xcodeproj/project.pbxproj @@ -953,6 +953,7 @@ 843060FE2D381A4A000E14D5 /* SessionSettingsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FB2D381A4A000E14D5 /* SessionSettingsRequest.swift */; }; 843061002D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FF2D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift */; }; 843061012D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843060FF2D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift */; }; + 843061032D3968C8000E14D5 /* StartClosedCaptionsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843061022D3968C8000E14D5 /* StartClosedCaptionsRequest.swift */; }; 8430FD222AB1AB4C007AA3E6 /* ParticipantPopoverView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8430FD212AB1AB4C007AA3E6 /* ParticipantPopoverView.swift */; }; 8434C525289AA2E20001490A /* Fonts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8434C524289AA2E20001490A /* Fonts.swift */; }; 8434C527289AA2F00001490A /* Images.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8434C526289AA2F00001490A /* Images.swift */; }; @@ -1119,31 +1120,6 @@ 849A04DC2D198A0C004C33F2 /* StopTranscriptionRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04DB2D198A0C004C33F2 /* StopTranscriptionRequest.swift */; }; 849A04DD2D198A0C004C33F2 /* StopClosedCaptionsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04D92D198A0C004C33F2 /* StopClosedCaptionsRequest.swift */; }; 849A04DE2D198A0C004C33F2 /* StopLiveRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04DA2D198A0C004C33F2 /* StopLiveRequest.swift */; }; - 849A04F82D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F12D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift */; }; - 849A04F92D198A92004C33F2 /* UserFeedbackReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F72D198A92004C33F2 /* UserFeedbackReportResponse.swift */; }; - 849A04FA2D198A92004C33F2 /* Bound.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04DF2D198A92004C33F2 /* Bound.swift */; }; - 849A04FB2D198A92004C33F2 /* SDKUsageReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F42D198A92004C33F2 /* SDKUsageReportResponse.swift */; }; - 849A04FC2D198A92004C33F2 /* CallParticipantCountReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E32D198A92004C33F2 /* CallParticipantCountReportResponse.swift */; }; - 849A04FD2D198A92004C33F2 /* CallDurationReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E02D198A92004C33F2 /* CallDurationReport.swift */; }; - 849A04FE2D198A92004C33F2 /* ReportByHistogramBucket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F22D198A92004C33F2 /* ReportByHistogramBucket.swift */; }; - 849A04FF2D198A92004C33F2 /* StartClosedCaptionsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F52D198A92004C33F2 /* StartClosedCaptionsRequest.swift */; }; - 849A05002D198A92004C33F2 /* CallsPerDayReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E42D198A92004C33F2 /* CallsPerDayReport.swift */; }; - 849A05012D198A92004C33F2 /* CallParticipantCountReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E22D198A92004C33F2 /* CallParticipantCountReport.swift */; }; - 849A05022D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EA2D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift */; }; - 849A05032D198A92004C33F2 /* SDKUsageReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F32D198A92004C33F2 /* SDKUsageReport.swift */; }; - 849A05042D198A92004C33F2 /* CallsPerDayReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E52D198A92004C33F2 /* CallsPerDayReportResponse.swift */; }; - 849A05052D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E82D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift */; }; - 849A05062D198A92004C33F2 /* QualityScoreReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EF2D198A92004C33F2 /* QualityScoreReportResponse.swift */; }; - 849A05072D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E62D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift */; }; - 849A05082D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F02D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift */; }; - 849A05092D198A92004C33F2 /* UserFeedbackReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04F62D198A92004C33F2 /* UserFeedbackReport.swift */; }; - 849A050A2D198A92004C33F2 /* QualityScoreReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EE2D198A92004C33F2 /* QualityScoreReport.swift */; }; - 849A050B2D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E92D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift */; }; - 849A050C2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EB2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift */; }; - 849A050D2D198A92004C33F2 /* CallDurationReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E12D198A92004C33F2 /* CallDurationReportResponse.swift */; }; - 849A050E2D198A92004C33F2 /* NetworkMetricsReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04EC2D198A92004C33F2 /* NetworkMetricsReportResponse.swift */; }; - 849A050F2D198A92004C33F2 /* PerSDKUsageReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04ED2D198A92004C33F2 /* PerSDKUsageReport.swift */; }; - 849A05102D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849A04E72D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift */; }; 849A05122D199EE2004C33F2 /* StreamAppStateAdapter_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40B48C0F2D14B901002C4EAB /* StreamAppStateAdapter_Tests.swift */; }; 849EDA8B297AFCC80072A12D /* PreJoiningView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849EDA8A297AFCC80072A12D /* PreJoiningView.swift */; }; 849EDA8D297AFD840072A12D /* Camera.swift in Sources */ = {isa = PBXBuildFile; fileRef = 849EDA8C297AFD840072A12D /* Camera.swift */; }; @@ -2287,6 +2263,7 @@ 843060FB2D381A4A000E14D5 /* SessionSettingsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionSettingsRequest.swift; sourceTree = ""; }; 843060FC2D381A4A000E14D5 /* SessionSettingsResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionSettingsResponse.swift; sourceTree = ""; }; 843060FF2D38203D000E14D5 /* SessionSettingsResponse+Dummy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SessionSettingsResponse+Dummy.swift"; sourceTree = ""; }; + 843061022D3968C8000E14D5 /* StartClosedCaptionsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartClosedCaptionsRequest.swift; sourceTree = ""; }; 8430FD212AB1AB4C007AA3E6 /* ParticipantPopoverView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParticipantPopoverView.swift; sourceTree = ""; }; 8434C524289AA2E20001490A /* Fonts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Fonts.swift; sourceTree = ""; }; 8434C526289AA2F00001490A /* Images.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Images.swift; sourceTree = ""; }; @@ -2450,31 +2427,6 @@ 849A04D92D198A0C004C33F2 /* StopClosedCaptionsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StopClosedCaptionsRequest.swift; sourceTree = ""; }; 849A04DA2D198A0C004C33F2 /* StopLiveRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StopLiveRequest.swift; sourceTree = ""; }; 849A04DB2D198A0C004C33F2 /* StopTranscriptionRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StopTranscriptionRequest.swift; sourceTree = ""; }; - 849A04DF2D198A92004C33F2 /* Bound.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bound.swift; sourceTree = ""; }; - 849A04E02D198A92004C33F2 /* CallDurationReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallDurationReport.swift; sourceTree = ""; }; - 849A04E12D198A92004C33F2 /* CallDurationReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallDurationReportResponse.swift; sourceTree = ""; }; - 849A04E22D198A92004C33F2 /* CallParticipantCountReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallParticipantCountReport.swift; sourceTree = ""; }; - 849A04E32D198A92004C33F2 /* CallParticipantCountReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallParticipantCountReportResponse.swift; sourceTree = ""; }; - 849A04E42D198A92004C33F2 /* CallsPerDayReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallsPerDayReport.swift; sourceTree = ""; }; - 849A04E52D198A92004C33F2 /* CallsPerDayReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallsPerDayReportResponse.swift; sourceTree = ""; }; - 849A04E62D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateCallDurationReportResponse.swift; sourceTree = ""; }; - 849A04E72D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateCallParticipantCountReportResponse.swift; sourceTree = ""; }; - 849A04E82D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateCallsPerDayReportResponse.swift; sourceTree = ""; }; - 849A04E92D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateQualityScoreReportResponse.swift; sourceTree = ""; }; - 849A04EA2D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateSDKUsageReportResponse.swift; sourceTree = ""; }; - 849A04EB2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyAggregateUserFeedbackReportResponse.swift; sourceTree = ""; }; - 849A04EC2D198A92004C33F2 /* NetworkMetricsReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkMetricsReportResponse.swift; sourceTree = ""; }; - 849A04ED2D198A92004C33F2 /* PerSDKUsageReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PerSDKUsageReport.swift; sourceTree = ""; }; - 849A04EE2D198A92004C33F2 /* QualityScoreReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QualityScoreReport.swift; sourceTree = ""; }; - 849A04EF2D198A92004C33F2 /* QualityScoreReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QualityScoreReportResponse.swift; sourceTree = ""; }; - 849A04F02D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QueryAggregateCallStatsRequest.swift; sourceTree = ""; }; - 849A04F12D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QueryAggregateCallStatsResponse.swift; sourceTree = ""; }; - 849A04F22D198A92004C33F2 /* ReportByHistogramBucket.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReportByHistogramBucket.swift; sourceTree = ""; }; - 849A04F32D198A92004C33F2 /* SDKUsageReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKUsageReport.swift; sourceTree = ""; }; - 849A04F42D198A92004C33F2 /* SDKUsageReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKUsageReportResponse.swift; sourceTree = ""; }; - 849A04F52D198A92004C33F2 /* StartClosedCaptionsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StartClosedCaptionsRequest.swift; sourceTree = ""; }; - 849A04F62D198A92004C33F2 /* UserFeedbackReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserFeedbackReport.swift; sourceTree = ""; }; - 849A04F72D198A92004C33F2 /* UserFeedbackReportResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserFeedbackReportResponse.swift; sourceTree = ""; }; 849EDA8A297AFCC80072A12D /* PreJoiningView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreJoiningView.swift; sourceTree = ""; }; 849EDA8C297AFD840072A12D /* Camera.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Camera.swift; sourceTree = ""; }; 849EDA8E297AFE1C0072A12D /* PreJoiningViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreJoiningViewModel.swift; sourceTree = ""; }; @@ -5536,33 +5488,9 @@ 84DC383E29ADFCFC00946713 /* Models */ = { isa = PBXGroup; children = ( + 843061022D3968C8000E14D5 /* StartClosedCaptionsRequest.swift */, 843060FB2D381A4A000E14D5 /* SessionSettingsRequest.swift */, 843060FC2D381A4A000E14D5 /* SessionSettingsResponse.swift */, - 849A04DF2D198A92004C33F2 /* Bound.swift */, - 849A04E02D198A92004C33F2 /* CallDurationReport.swift */, - 849A04E12D198A92004C33F2 /* CallDurationReportResponse.swift */, - 849A04E22D198A92004C33F2 /* CallParticipantCountReport.swift */, - 849A04E32D198A92004C33F2 /* CallParticipantCountReportResponse.swift */, - 849A04E42D198A92004C33F2 /* CallsPerDayReport.swift */, - 849A04E52D198A92004C33F2 /* CallsPerDayReportResponse.swift */, - 849A04E62D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift */, - 849A04E72D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift */, - 849A04E82D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift */, - 849A04E92D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift */, - 849A04EA2D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift */, - 849A04EB2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift */, - 849A04EC2D198A92004C33F2 /* NetworkMetricsReportResponse.swift */, - 849A04ED2D198A92004C33F2 /* PerSDKUsageReport.swift */, - 849A04EE2D198A92004C33F2 /* QualityScoreReport.swift */, - 849A04EF2D198A92004C33F2 /* QualityScoreReportResponse.swift */, - 849A04F02D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift */, - 849A04F12D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift */, - 849A04F22D198A92004C33F2 /* ReportByHistogramBucket.swift */, - 849A04F32D198A92004C33F2 /* SDKUsageReport.swift */, - 849A04F42D198A92004C33F2 /* SDKUsageReportResponse.swift */, - 849A04F52D198A92004C33F2 /* StartClosedCaptionsRequest.swift */, - 849A04F62D198A92004C33F2 /* UserFeedbackReport.swift */, - 849A04F72D198A92004C33F2 /* UserFeedbackReportResponse.swift */, 849A04D92D198A0C004C33F2 /* StopClosedCaptionsRequest.swift */, 849A04DA2D198A0C004C33F2 /* StopLiveRequest.swift */, 849A04DB2D198A0C004C33F2 /* StopTranscriptionRequest.swift */, @@ -7156,6 +7084,7 @@ 84BAD77A2A6BFEF900733156 /* BroadcastBufferUploader.swift in Sources */, 40C4DF4B2C1C2C330035DBC2 /* ParticipantAutoLeavePolicy.swift in Sources */, 406128882CF33029007F5CDC /* RTPMapVisitor.swift in Sources */, + 843061032D3968C8000E14D5 /* StartClosedCaptionsRequest.swift in Sources */, 84DC38A429ADFCFD00946713 /* BackstageSettings.swift in Sources */, 84BBF62D28AFC72700387A02 /* DefaultRTCMediaConstraints.swift in Sources */, 40BBC4A72C623D03002AEF92 /* StreamRTCPeerConnection+DelegatePublisher.swift in Sources */, @@ -7187,31 +7116,6 @@ 845C09852C0DEB5C00F725B3 /* LimitsSettingsResponse.swift in Sources */, 4159F1952C86FA41002B94D3 /* AggregatedStats.swift in Sources */, 84A7E1942883652000526C98 /* EventMiddleware.swift in Sources */, - 849A04F82D198A92004C33F2 /* QueryAggregateCallStatsResponse.swift in Sources */, - 849A04F92D198A92004C33F2 /* UserFeedbackReportResponse.swift in Sources */, - 849A04FA2D198A92004C33F2 /* Bound.swift in Sources */, - 849A04FB2D198A92004C33F2 /* SDKUsageReportResponse.swift in Sources */, - 849A04FC2D198A92004C33F2 /* CallParticipantCountReportResponse.swift in Sources */, - 849A04FD2D198A92004C33F2 /* CallDurationReport.swift in Sources */, - 849A04FE2D198A92004C33F2 /* ReportByHistogramBucket.swift in Sources */, - 849A04FF2D198A92004C33F2 /* StartClosedCaptionsRequest.swift in Sources */, - 849A05002D198A92004C33F2 /* CallsPerDayReport.swift in Sources */, - 849A05012D198A92004C33F2 /* CallParticipantCountReport.swift in Sources */, - 849A05022D198A92004C33F2 /* DailyAggregateSDKUsageReportResponse.swift in Sources */, - 849A05032D198A92004C33F2 /* SDKUsageReport.swift in Sources */, - 849A05042D198A92004C33F2 /* CallsPerDayReportResponse.swift in Sources */, - 849A05052D198A92004C33F2 /* DailyAggregateCallsPerDayReportResponse.swift in Sources */, - 849A05062D198A92004C33F2 /* QualityScoreReportResponse.swift in Sources */, - 849A05072D198A92004C33F2 /* DailyAggregateCallDurationReportResponse.swift in Sources */, - 849A05082D198A92004C33F2 /* QueryAggregateCallStatsRequest.swift in Sources */, - 849A05092D198A92004C33F2 /* UserFeedbackReport.swift in Sources */, - 849A050A2D198A92004C33F2 /* QualityScoreReport.swift in Sources */, - 849A050B2D198A92004C33F2 /* DailyAggregateQualityScoreReportResponse.swift in Sources */, - 849A050C2D198A92004C33F2 /* DailyAggregateUserFeedbackReportResponse.swift in Sources */, - 849A050D2D198A92004C33F2 /* CallDurationReportResponse.swift in Sources */, - 849A050E2D198A92004C33F2 /* NetworkMetricsReportResponse.swift in Sources */, - 849A050F2D198A92004C33F2 /* PerSDKUsageReport.swift in Sources */, - 849A05102D198A92004C33F2 /* DailyAggregateCallParticipantCountReportResponse.swift in Sources */, 40429D5F2C779B3D00AC7FFF /* ScreenShareSession.swift in Sources */, 84DC38D929ADFCFD00946713 /* OpenISO8601DateFormatter.swift in Sources */, 84DC38A929ADFCFD00946713 /* CallUpdatedEvent.swift in Sources */,