From 1bc96062fd45c9438abef2d9a77719ba29ac1cec Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 4 Sep 2024 10:46:38 +0200 Subject: [PATCH] feat(http): added features field to ee version --- ee/backend/internal/http/router/web-start.go | 39 ++++++++++---------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/ee/backend/internal/http/router/web-start.go b/ee/backend/internal/http/router/web-start.go index 632f4646f..7514f0164 100644 --- a/ee/backend/internal/http/router/web-start.go +++ b/ee/backend/internal/http/router/web-start.go @@ -23,25 +23,26 @@ type StartSessionRequest struct { } type StartSessionResponse struct { - Timestamp int64 `json:"timestamp"` - StartTimestamp int64 `json:"startTimestamp"` - Delay int64 `json:"delay"` - Token string `json:"token"` - UserUUID string `json:"userUUID"` - UserOS string `json:"userOS"` - UserDevice string `json:"userDevice"` - UserBrowser string `json:"userBrowser"` - UserCountry string `json:"userCountry"` - UserState string `json:"userState"` - UserCity string `json:"userCity"` - SessionID string `json:"sessionID"` - ProjectID string `json:"projectID"` - BeaconSizeLimit int64 `json:"beaconSizeLimit"` - CompressionThreshold int64 `json:"compressionThreshold"` - CanvasEnabled bool `json:"canvasEnabled"` // false default - CanvasImageQuality string `json:"canvasQuality"` // low | medium | high - CanvasFrameRate int `json:"canvasFPS"` // 2 default - AssistOnly bool `json:"assistOnly"` + Timestamp int64 `json:"timestamp"` + StartTimestamp int64 `json:"startTimestamp"` + Delay int64 `json:"delay"` + Token string `json:"token"` + UserUUID string `json:"userUUID"` + UserOS string `json:"userOS"` + UserDevice string `json:"userDevice"` + UserBrowser string `json:"userBrowser"` + UserCountry string `json:"userCountry"` + UserState string `json:"userState"` + UserCity string `json:"userCity"` + SessionID string `json:"sessionID"` + ProjectID string `json:"projectID"` + BeaconSizeLimit int64 `json:"beaconSizeLimit"` + CompressionThreshold int64 `json:"compressionThreshold"` + CanvasEnabled bool `json:"canvasEnabled"` // false default + CanvasImageQuality string `json:"canvasQuality"` // low | medium | high + CanvasFrameRate int `json:"canvasFPS"` // 2 default + AssistOnly bool `json:"assistOnly"` + Features map[string]bool `json:"features"` } func recordSession(req *StartSessionRequest) bool {