:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(surveys): document every appearance key in the survey write schema (#106385)
Philla9aeb340d71f
diff --git a/docs/published/docs/surveys/mcp.md b/docs/published/docs/surveys/mcp.mdindex 890fd52bcf3e..d0850bdb0981 100644--- a/docs/published/docs/surveys/mcp.md+++ b/docs/published/docs/surveys/mcp.md@@ -27,6 +27,8 @@ Hosted forms do not use in-app targeting. Their public form URL is different froAppearance customization is optional. Removing PostHog branding with `whiteLabel: true` requires the organization's white-labelling entitlement. Popup delays must be non-negative. An agent should explain unsupported settings rather than silently changing your branding or widening the audience.+To change the appearance of an existing survey, the agent reads the survey with `survey-get` first and sends back the whole `appearance` object with its changes. An update replaces the saved appearance, so a setting left out goes back to its default. Placement settings are part of that object: `position` sets where a popover appears, and `tabPosition` sets which edge of the page holds a tab widget.+## Launch and check resultsReview the saved questions, audience, schedule, and response limit before launch. Ask the agent to launch with `survey-launch` when ready. If you already requested immediate launch, the agent can continue after checking the configuration and delivery requirements.diff --git a/posthog/constants.py b/posthog/constants.pyindex f6ec39e9a46a..deb7472ab645 100644--- a/posthog/constants.py+++ b/posthog/constants.py@@ -345,7 +345,7 @@ DEFAULT_SURVEY_APPEARANCE = {"whiteLabel": False,"displayThankYouMessage": True,"thankYouMessageHeader": "Thank you for your feedback!",- "position": "bottom-right",+ "position": "right","tabPosition": "right","widgetType": "tab","widgetLabel": "Feedback",diff --git a/products/surveys/backend/api/survey.py b/products/surveys/backend/api/survey.pyindex ecb2945e7402..8df1f59174a7 100644--- a/products/surveys/backend/api/survey.py+++ b/products/surveys/backend/api/survey.py@@ -634,6 +634,41 @@ class SurveyMatchType(models.TextChoices):SURVEY_MATCH_TYPE_CHOICES = list(SurveyMatchType.values)+class SurveyPosition(models.TextChoices):+ TOP_LEFT = "top_left", "top_left"+ TOP_CENTER = "top_center", "top_center"+ TOP_RIGHT = "top_right", "top_right"+ MIDDLE_LEFT = "middle_left", "middle_left"+ MIDDLE_CENTER = "middle_center", "middle_center"+ MIDDLE_RIGHT = "middle_right", "middle_right"+ LEFT = "left", "left"+ CENTER = "center", "center"+ RIGHT = "right", "right"+ NEXT_TO_TRIGGER = "next_to_trigger", "next_to_trigger"+++class SurveyTabPosition(models.TextChoices):+ TOP = "top", "top"+ LEFT = "left", "left"+ RIGHT = "right", "right"+ BOTTOM = "bottom", "bottom"+++# `bottom-right` is an old name for `right` that the create-survey tool wrote on every survey it+# made, because it was the default appearance position. Both the web and the React Native SDK+# render it as `right`. The API replaces it so a response always validates against the position+# enum the API documents, which generated clients turn into a strict validator.+LEGACY_SURVEY_POSITIONS = {"bottom-right": SurveyPosition.RIGHT.value}+++def normalize_survey_appearance(appearance: dict[str, Any]) -> dict[str, Any]:+ position = appearance.get("position")+ replacement = LEGACY_SURVEY_POSITIONS.get(position) if isinstance(position, str) else None+ if replacement is None:+ return appearance+ return {**appearance, "position": replacement}++class SurveyAppearanceSchemaSerializer(serializers.Serializer):backgroundColor = serializers.CharField(required=False)submitButtonColor = serializers.CharField(required=False)@@ -644,6 +679,18 @@ class SurveyAppearanceSchemaSerializer(serializers.Serializer):ratingButtonColor = serializers.CharField(required=False)ratingButtonActiveColor = serializers.CharField(required=False)ratingButtonHoverColor = serializers.CharField(required=False)+ textSubtleColor = serializers.CharField(+ required=False,+ help_text="Color of secondary text, such as question descriptions.",+ )+ inputBackground = serializers.CharField(+ required=False,+ help_text="Background color of open text inputs and rating buttons.",+ )+ inputTextColor = serializers.CharField(+ required=False,+ help_text="Text color of open text inputs and rating buttons. Calculated from inputBackground when not set.",+ )whiteLabel = serializers.BooleanField(required=False)autoDisappear = serializers.BooleanField(required=False)displayThankYouMessage = serializers.BooleanField(required=False)@@ -654,10 +701,40 @@ class SurveyAppearanceSchemaSerializer(serializers.Serializer):required=False,)thankYouMessageCloseButtonText = serializers.CharField(required=False)+ displayIntroScreen = serializers.BooleanField(+ required=False,+ help_text="Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set.",+ )+ introScreenHeader = serializers.CharField(+ required=False,+ help_text="Heading of the intro screen.",+ )+ introScreenDescription = serializers.CharField(+ required=False,+ help_text="Body text of the intro screen.",+ )+ introScreenDescriptionContentType = serializers.ChoiceField(+ choices=DescriptionContentType.choices,+ required=False,+ help_text="Content type of introScreenDescription.",+ )+ introScreenButtonText = serializers.CharField(+ required=False,+ help_text="Label of the button that closes the intro screen and starts the survey.",+ )borderColor = serializers.CharField(required=False)placeholder = serializers.CharField(required=False)+ position = serializers.ChoiceField(+ choices=SurveyPosition.choices,+ required=False,+ help_text="Where a popover survey appears on the page. Defaults to 'right'.",+ )shuffleQuestions = serializers.BooleanField(required=False)- surveyPopupDelaySeconds = serializers.IntegerField(required=False)+ surveyPopupDelaySeconds = serializers.IntegerField(+ required=False,+ allow_null=True,+ help_text="Seconds to wait before a popover survey appears. Null shows it without a delay.",+ )allowGoBack = serializers.BooleanField(required=False,help_text="Whether to show a 'Back' button on web surveys after the first question, letting respondents return to a previously visited question. Defaults to false.",@@ -670,11 +747,24 @@ class SurveyAppearanceSchemaSerializer(serializers.Serializer):widgetSelector = serializers.CharField(required=False)widgetLabel = serializers.CharField(required=False)widgetColor = serializers.CharField(required=False)+ tabPosition = serializers.ChoiceField(+ choices=SurveyTabPosition.choices,+ required=False,+ help_text="Which edge of the page holds the tab of a widget survey with widgetType 'tab'.",+ )fontFamily = serializers.CharField(required=False)maxWidth = serializers.CharField(required=False)zIndex = serializers.CharField(required=False)disabledButtonOpacity = serializers.CharField(required=False)boxPadding = serializers.CharField(required=False)+ boxShadow = serializers.CharField(+ required=False,+ help_text="CSS box-shadow value of the survey box.",+ )+ borderRadius = serializers.CharField(+ required=False,+ help_text="CSS border-radius value of the survey box.",+ )SURVEY_DEVICE_TYPE_CHOICES = ["Desktop", "Mobile", "Tablet"]@@ -974,13 +1064,13 @@ class SurveySerializer(SearchMatchTypeSerializerMixin, UserAccessControlSerializreturn valueif not isinstance(value, dict):raise serializers.ValidationError("Appearance must be an object")- return sanitize_survey_appearance(value)+ return sanitize_survey_appearance(normalize_survey_appearance(value))def to_representation(self, instance: Survey) -> dict[str, Any]:data = super().to_representation(instance)appearance = data.get("appearance")if isinstance(appearance, dict):- data["appearance"] = sanitize_survey_appearance(appearance)+ data["appearance"] = sanitize_survey_appearance(normalize_survey_appearance(appearance))questions = data.get("questions")if isinstance(questions, list):data["questions"] = [@@ -1108,6 +1198,9 @@ class SurveySerializerCreateUpdateOnly(serializers.ModelSerializer):def to_representation(self, instance):data = super().to_representation(instance)+ appearance = data.get("appearance")+ if isinstance(appearance, dict):+ data["appearance"] = sanitize_survey_appearance(normalize_survey_appearance(appearance))data["conditions"] = get_survey_conditions_with_actions(instance)return data@@ -1118,7 +1211,7 @@ class SurveySerializerCreateUpdateOnly(serializers.ModelSerializer):if not isinstance(value, dict):raise serializers.ValidationError("Appearance must be an object")- value = sanitize_survey_appearance(value)+ value = sanitize_survey_appearance(normalize_survey_appearance(value))thank_you_description_content_type = value.get("thankYouMessageDescriptionContentType")if thank_you_description_content_type and thank_you_description_content_type not in ["text", "html"]:@@ -3655,7 +3748,7 @@ class SurveyAPISerializer(serializers.ModelSerializer):data = super().to_representation(instance)appearance = data.get("appearance")if isinstance(appearance, dict):- data["appearance"] = sanitize_survey_appearance(appearance)+ data["appearance"] = sanitize_survey_appearance(normalize_survey_appearance(appearance))if data.get("translations") is None:data.pop("translations", None)return datadiff --git a/products/surveys/backend/api/test/test_survey.py b/products/surveys/backend/api/test/test_survey.pyindex 75db56981547..0b3f1155c777 100644--- a/products/surveys/backend/api/test/test_survey.py+++ b/products/surveys/backend/api/test/test_survey.py@@ -24,7 +24,7 @@ from rest_framework import statusfrom posthog.hogql.constants import DEFAULT_RETURNED_ROWSfrom posthog.api.test.test_personal_api_keys import PersonalAPIKeysBaseTest-from posthog.constants import AvailableFeature+from posthog.constants import DEFAULT_SURVEY_APPEARANCE, AvailableFeaturefrom posthog.models import Teamfrom posthog.models.organization import Organization, OrganizationMembershipfrom posthog.models.personal_api_key import PersonalAPIKey@@ -40,9 +40,12 @@ from products.feature_flags.backend.models.feature_flag import FeatureFlagfrom products.product_analytics.backend.facade.models import Insightfrom products.product_tours.backend.models import ProductTourfrom products.surveys.backend.api.survey import (+ SURVEY_APPEARANCE_HTML_FIELDS,+ SurveyAppearanceSchemaSerializer,get_survey_api_translations,get_surveys_response,nh3_clean_with_allow_list,+ normalize_survey_appearance,)from products.surveys.backend.models import MAX_ITERATION_COUNT, Survey, SurveyResponseArchive@@ -4436,6 +4439,31 @@ class TestSurveyQuestionValidation(APIBaseTest):assert "<strong>Details</strong>" in response.json()["questions"][0]["description"]assert "onerror" not in response.json()["questions"][0]["description"]+ @parameterized.expand(+ [+ ("read", "get", {}),+ ("update", "patch", {"data": {"name": "Renamed survey"}, "format": "json"}),+ ]+ )+ def test_the_api_replaces_the_legacy_appearance_position(+ self, _name: str, method: str, request_kwargs: dict[str, Any]+ ) -> None:+ survey = Survey.objects.create(+ team=self.team,+ created_by=self.user,+ name="Survey saved with the old default position",+ type="popover",+ questions=[],+ appearance={"position": "bottom-right"},+ )++ response = getattr(self.client, method)(f"/api/projects/{self.team.id}/surveys/{survey.id}/", **request_kwargs)++ assert response.status_code == status.HTTP_200_OK, response.json()+ appearance = response.json()["appearance"]+ assert appearance["position"] == "right"+ assert SurveyAppearanceSchemaSerializer(data=appearance).is_valid()+class TestSurveyQuestionValidationWithEnterpriseFeatures(APIBaseTest):def setUp(self):@@ -5036,6 +5064,26 @@ class TestGetSurveyConditionsActionSanitization(SimpleTestCase):assert value["name"] == "person subscribed"+class TestSurveyAppearanceSchema(SimpleTestCase):+ def test_documented_schema_keeps_every_supported_appearance_key(self) -> None:+ appearance = {+ **DEFAULT_SURVEY_APPEARANCE,+ **{field: f"{field} text" for field in SURVEY_APPEARANCE_HTML_FIELDS},+ "inputTextColor": "black",+ }+ serializer = SurveyAppearanceSchemaSerializer(data=appearance)++ assert serializer.is_valid(), serializer.errors+ assert set(serializer.validated_data) == set(appearance)++ def test_legacy_position_becomes_a_documented_position(self) -> None:+ normalized = normalize_survey_appearance({**DEFAULT_SURVEY_APPEARANCE, "position": "bottom-right"})+ serializer = SurveyAppearanceSchemaSerializer(data=normalized)++ assert normalized["position"] == "right"+ assert serializer.is_valid(), serializer.errors++@time_machine.travel("2024-12-12 00:00:00", tick=False)class TestSurveyResponseSampling(APIBaseTest):def _create_survey_with_sampling_limits(diff --git a/products/surveys/frontend/generated/api.schemas.ts b/products/surveys/frontend/generated/api.schemas.tsindex e7b91c4dfa45..1780ab491ce4 100644--- a/products/surveys/frontend/generated/api.schemas.ts+++ b/products/surveys/frontend/generated/api.schemas.ts@@ -1297,6 +1297,33 @@ export interface SurveyConditionsSchemaApi {linkedFlagVariant?: string}+/**+ * * `top_left` - top_left+ * * `top_center` - top_center+ * * `top_right` - top_right+ * * `middle_left` - middle_left+ * * `middle_center` - middle_center+ * * `middle_right` - middle_right+ * * `left` - left+ * * `center` - center+ * * `right` - right+ * * `next_to_trigger` - next_to_trigger+ */+export type SurveyPositionEnumApi = (typeof SurveyPositionEnumApi)[keyof typeof SurveyPositionEnumApi]++export const SurveyPositionEnumApi = {+ TopLeft: 'top_left',+ TopCenter: 'top_center',+ TopRight: 'top_right',+ MiddleLeft: 'middle_left',+ MiddleCenter: 'middle_center',+ MiddleRight: 'middle_right',+ Left: 'left',+ Center: 'center',+ Right: 'right',+ NextToTrigger: 'next_to_trigger',+} as const+/*** * `button` - button* * `tab` - tab@@ -1310,6 +1337,21 @@ export const WidgetTypeEnumApi = {Selector: 'selector',} as const+/**+ * * `top` - top+ * * `left` - left+ * * `right` - right+ * * `bottom` - bottom+ */+export type SurveyTabPositionEnumApi = (typeof SurveyTabPositionEnumApi)[keyof typeof SurveyTabPositionEnumApi]++export const SurveyTabPositionEnumApi = {+ Top: 'top',+ Left: 'left',+ Right: 'right',+ Bottom: 'bottom',+} as const+export interface SurveyAppearanceSchemaApi {backgroundColor?: stringsubmitButtonColor?: string@@ -1320,6 +1362,12 @@ export interface SurveyAppearanceSchemaApi {ratingButtonColor?: stringratingButtonActiveColor?: stringratingButtonHoverColor?: string+ /** Color of secondary text, such as question descriptions. */+ textSubtleColor?: string+ /** Background color of open text inputs and rating buttons. */+ inputBackground?: string+ /** Text color of open text inputs and rating buttons. Calculated from inputBackground when not set. */+ inputTextColor?: stringwhiteLabel?: booleanautoDisappear?: booleandisplayThankYouMessage?: boolean@@ -1327,10 +1375,40 @@ export interface SurveyAppearanceSchemaApi {thankYouMessageDescription?: stringthankYouMessageDescriptionContentType?: DescriptionContentTypeEnumApithankYouMessageCloseButtonText?: string+ /** Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set. */+ displayIntroScreen?: boolean+ /** Heading of the intro screen. */+ introScreenHeader?: string+ /** Body text of the intro screen. */+ introScreenDescription?: string+ /** Content type of introScreenDescription.+ *+ * * `text` - text+ * * `html` - html */+ introScreenDescriptionContentType?: DescriptionContentTypeEnumApi+ /** Label of the button that closes the intro screen and starts the survey. */+ introScreenButtonText?: stringborderColor?: stringplaceholder?: string+ /** Where a popover survey appears on the page. Defaults to 'right'.+ *+ * * `top_left` - top_left+ * * `top_center` - top_center+ * * `top_right` - top_right+ * * `middle_left` - middle_left+ * * `middle_center` - middle_center+ * * `middle_right` - middle_right+ * * `left` - left+ * * `center` - center+ * * `right` - right+ * * `next_to_trigger` - next_to_trigger */+ position?: SurveyPositionEnumApishuffleQuestions?: boolean- surveyPopupDelaySeconds?: number+ /**+ * Seconds to wait before a popover survey appears. Null shows it without a delay.+ * @nullable+ */+ surveyPopupDelaySeconds?: number | null/** Whether to show a 'Back' button on web surveys after the first question, letting respondents return to a previously visited question. Defaults to false. */allowGoBack?: boolean/** Optional override for the back button label. Defaults to 'Back'. */@@ -1339,11 +1417,22 @@ export interface SurveyAppearanceSchemaApi {widgetSelector?: stringwidgetLabel?: stringwidgetColor?: string+ /** Which edge of the page holds the tab of a widget survey with widgetType 'tab'.+ *+ * * `top` - top+ * * `left` - left+ * * `right` - right+ * * `bottom` - bottom */+ tabPosition?: SurveyTabPositionEnumApifontFamily?: stringmaxWidth?: stringzIndex?: stringdisabledButtonOpacity?: stringboxPadding?: string+ /** CSS box-shadow value of the survey box. */+ boxShadow?: string+ /** CSS border-radius value of the survey box. */+ borderRadius?: string}export interface SurveySerializerCreateUpdateOnlySchemaApi {diff --git a/products/surveys/frontend/generated/api.zod.ts b/products/surveys/frontend/generated/api.zod.tsindex a81225b9fd19..6f4d5467ee6e 100644--- a/products/surveys/frontend/generated/api.zod.ts+++ b/products/surveys/frontend/generated/api.zod.ts@@ -819,6 +819,20 @@ export const SurveysCreateBody = /* @__PURE__ */ zod.object({ratingButtonColor: zod.string().optional(),ratingButtonActiveColor: zod.string().optional(),ratingButtonHoverColor: zod.string().optional(),+ textSubtleColor: zod+ .string()+ .optional()+ .describe('Color of secondary text, such as question descriptions.'),+ inputBackground: zod+ .string()+ .optional()+ .describe('Background color of open text inputs and rating buttons.'),+ inputTextColor: zod+ .string()+ .optional()+ .describe(+ 'Text color of open text inputs and rating buttons. Calculated from inputBackground when not set.'+ ),whiteLabel: zod.boolean().optional(),autoDisappear: zod.boolean().optional(),displayThankYouMessage: zod.boolean().optional(),@@ -829,10 +843,50 @@ export const SurveysCreateBody = /* @__PURE__ */ zod.object({.optional().describe('\* `html` - html\n\* `text` - text'),thankYouMessageCloseButtonText: zod.string().optional(),+ displayIntroScreen: zod+ .boolean()+ .optional()+ .describe(+ 'Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set.'+ ),+ introScreenHeader: zod.string().optional().describe('Heading of the intro screen.'),+ introScreenDescription: zod.string().optional().describe('Body text of the intro screen.'),+ introScreenDescriptionContentType: zod+ .enum(['html', 'text'])+ .describe('\* `html` - html\n\* `text` - text')+ .optional()+ .describe('Content type of introScreenDescription.\n\n\* `text` - text\n\* `html` - html'),+ introScreenButtonText: zod+ .string()+ .optional()+ .describe('Label of the button that closes the intro screen and starts the survey.'),borderColor: zod.string().optional(),placeholder: zod.string().optional(),+ position: zod+ .enum([+ 'top_left',+ 'top_center',+ 'top_right',+ 'middle_left',+ 'middle_center',+ 'middle_right',+ 'left',+ 'center',+ 'right',+ 'next_to_trigger',+ ])+ .describe(+ '\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger'+ )+ .optional()+ .describe(+ "Where a popover survey appears on the page. Defaults to 'right'.\n\n\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger"+ ),shuffleQuestions: zod.boolean().optional(),- surveyPopupDelaySeconds: zod.number().optional(),+ surveyPopupDelaySeconds: zod+ .number()+ .nullish()+ .describe('Seconds to wait before a popover survey appears. Null shows it without a delay.'),allowGoBack: zod.boolean().optional()@@ -850,11 +904,20 @@ export const SurveysCreateBody = /* @__PURE__ */ zod.object({widgetSelector: zod.string().optional(),widgetLabel: zod.string().optional(),widgetColor: zod.string().optional(),+ tabPosition: zod+ .enum(['top', 'left', 'right', 'bottom'])+ .describe('\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom')+ .optional()+ .describe(+ "Which edge of the page holds the tab of a widget survey with widgetType 'tab'.\n\n\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom"+ ),fontFamily: zod.string().optional(),maxWidth: zod.string().optional(),zIndex: zod.string().optional(),disabledButtonOpacity: zod.string().optional(),boxPadding: zod.string().optional(),+ boxShadow: zod.string().optional().describe('CSS box-shadow value of the survey box.'),+ borderRadius: zod.string().optional().describe('CSS border-radius value of the survey box.'),}),zod.null(),])@@ -1685,6 +1748,20 @@ export const SurveysUpdateBody = /* @__PURE__ */ zod.object({ratingButtonColor: zod.string().optional(),ratingButtonActiveColor: zod.string().optional(),ratingButtonHoverColor: zod.string().optional(),+ textSubtleColor: zod+ .string()+ .optional()+ .describe('Color of secondary text, such as question descriptions.'),+ inputBackground: zod+ .string()+ .optional()+ .describe('Background color of open text inputs and rating buttons.'),+ inputTextColor: zod+ .string()+ .optional()+ .describe(+ 'Text color of open text inputs and rating buttons. Calculated from inputBackground when not set.'+ ),whiteLabel: zod.boolean().optional(),autoDisappear: zod.boolean().optional(),displayThankYouMessage: zod.boolean().optional(),@@ -1695,10 +1772,50 @@ export const SurveysUpdateBody = /* @__PURE__ */ zod.object({.optional().describe('\* `html` - html\n\* `text` - text'),thankYouMessageCloseButtonText: zod.string().optional(),+ displayIntroScreen: zod+ .boolean()+ .optional()+ .describe(+ 'Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set.'+ ),+ introScreenHeader: zod.string().optional().describe('Heading of the intro screen.'),+ introScreenDescription: zod.string().optional().describe('Body text of the intro screen.'),+ introScreenDescriptionContentType: zod+ .enum(['html', 'text'])+ .describe('\* `html` - html\n\* `text` - text')+ .optional()+ .describe('Content type of introScreenDescription.\n\n\* `text` - text\n\* `html` - html'),+ introScreenButtonText: zod+ .string()+ .optional()+ .describe('Label of the button that closes the intro screen and starts the survey.'),borderColor: zod.string().optional(),placeholder: zod.string().optional(),+ position: zod+ .enum([+ 'top_left',+ 'top_center',+ 'top_right',+ 'middle_left',+ 'middle_center',+ 'middle_right',+ 'left',+ 'center',+ 'right',+ 'next_to_trigger',+ ])+ .describe(+ '\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger'+ )+ .optional()+ .describe(+ "Where a popover survey appears on the page. Defaults to 'right'.\n\n\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger"+ ),shuffleQuestions: zod.boolean().optional(),- surveyPopupDelaySeconds: zod.number().optional(),+ surveyPopupDelaySeconds: zod+ .number()+ .nullish()+ .describe('Seconds to wait before a popover survey appears. Null shows it without a delay.'),allowGoBack: zod.boolean().optional()@@ -1716,11 +1833,20 @@ export const SurveysUpdateBody = /* @__PURE__ */ zod.object({widgetSelector: zod.string().optional(),widgetLabel: zod.string().optional(),widgetColor: zod.string().optional(),+ tabPosition: zod+ .enum(['top', 'left', 'right', 'bottom'])+ .describe('\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom')+ .optional()+ .describe(+ "Which edge of the page holds the tab of a widget survey with widgetType 'tab'.\n\n\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom"+ ),fontFamily: zod.string().optional(),maxWidth: zod.string().optional(),zIndex: zod.string().optional(),disabledButtonOpacity: zod.string().optional(),boxPadding: zod.string().optional(),+ boxShadow: zod.string().optional().describe('CSS box-shadow value of the survey box.'),+ borderRadius: zod.string().optional().describe('CSS border-radius value of the survey box.'),}),zod.null(),])@@ -2553,6 +2679,20 @@ export const SurveysPartialUpdateBody = /* @__PURE__ */ zod.object({ratingButtonColor: zod.string().optional(),ratingButtonActiveColor: zod.string().optional(),ratingButtonHoverColor: zod.string().optional(),+ textSubtleColor: zod+ .string()+ .optional()+ .describe('Color of secondary text, such as question descriptions.'),+ inputBackground: zod+ .string()+ .optional()+ .describe('Background color of open text inputs and rating buttons.'),+ inputTextColor: zod+ .string()+ .optional()+ .describe(+ 'Text color of open text inputs and rating buttons. Calculated from inputBackground when not set.'+ ),whiteLabel: zod.boolean().optional(),autoDisappear: zod.boolean().optional(),displayThankYouMessage: zod.boolean().optional(),@@ -2563,10 +2703,50 @@ export const SurveysPartialUpdateBody = /* @__PURE__ */ zod.object({.optional().describe('\* `html` - html\n\* `text` - text'),thankYouMessageCloseButtonText: zod.string().optional(),+ displayIntroScreen: zod+ .boolean()+ .optional()+ .describe(+ 'Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set.'+ ),+ introScreenHeader: zod.string().optional().describe('Heading of the intro screen.'),+ introScreenDescription: zod.string().optional().describe('Body text of the intro screen.'),+ introScreenDescriptionContentType: zod+ .enum(['html', 'text'])+ .describe('\* `html` - html\n\* `text` - text')+ .optional()+ .describe('Content type of introScreenDescription.\n\n\* `text` - text\n\* `html` - html'),+ introScreenButtonText: zod+ .string()+ .optional()+ .describe('Label of the button that closes the intro screen and starts the survey.'),borderColor: zod.string().optional(),placeholder: zod.string().optional(),+ position: zod+ .enum([+ 'top_left',+ 'top_center',+ 'top_right',+ 'middle_left',+ 'middle_center',+ 'middle_right',+ 'left',+ 'center',+ 'right',+ 'next_to_trigger',+ ])+ .describe(+ '\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger'+ )+ .optional()+ .describe(+ "Where a popover survey appears on the page. Defaults to 'right'.\n\n\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger"+ ),shuffleQuestions: zod.boolean().optional(),- surveyPopupDelaySeconds: zod.number().optional(),+ surveyPopupDelaySeconds: zod+ .number()+ .nullish()+ .describe('Seconds to wait before a popover survey appears. Null shows it without a delay.'),allowGoBack: zod.boolean().optional()@@ -2584,11 +2764,20 @@ export const SurveysPartialUpdateBody = /* @__PURE__ */ zod.object({widgetSelector: zod.string().optional(),widgetLabel: zod.string().optional(),widgetColor: zod.string().optional(),+ tabPosition: zod+ .enum(['top', 'left', 'right', 'bottom'])+ .describe('\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom')+ .optional()+ .describe(+ "Which edge of the page holds the tab of a widget survey with widgetType 'tab'.\n\n\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom"+ ),fontFamily: zod.string().optional(),maxWidth: zod.string().optional(),zIndex: zod.string().optional(),disabledButtonOpacity: zod.string().optional(),boxPadding: zod.string().optional(),+ boxShadow: zod.string().optional().describe('CSS box-shadow value of the survey box.'),+ borderRadius: zod.string().optional().describe('CSS border-radius value of the survey box.'),}),zod.null(),])diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 5f045916c882..f12330230930 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -85653,6 +85653,34 @@ export namespace Schemas {linkedFlagVariant?: string;}+ /**+ * * `top_left` - top_left+ * * `top_center` - top_center+ * * `top_right` - top_right+ * * `middle_left` - middle_left+ * * `middle_center` - middle_center+ * * `middle_right` - middle_right+ * * `left` - left+ * * `center` - center+ * * `right` - right+ * * `next_to_trigger` - next_to_trigger+ */+ export type SurveyPositionEnum = typeof SurveyPositionEnum[keyof typeof SurveyPositionEnum];+++ export const SurveyPositionEnum = {+ TopLeft: 'top_left',+ TopCenter: 'top_center',+ TopRight: 'top_right',+ MiddleLeft: 'middle_left',+ MiddleCenter: 'middle_center',+ MiddleRight: 'middle_right',+ Left: 'left',+ Center: 'center',+ Right: 'right',+ NextToTrigger: 'next_to_trigger',+ } as const;+/*** * `button` - button* * `tab` - tab@@ -85667,6 +85695,22 @@ export namespace Schemas {Selector: 'selector',} as const;+ /**+ * * `top` - top+ * * `left` - left+ * * `right` - right+ * * `bottom` - bottom+ */+ export type SurveyTabPositionEnum = typeof SurveyTabPositionEnum[keyof typeof SurveyTabPositionEnum];+++ export const SurveyTabPositionEnum = {+ Top: 'top',+ Left: 'left',+ Right: 'right',+ Bottom: 'bottom',+ } as const;+export interface SurveyAppearanceSchema {backgroundColor?: string;submitButtonColor?: string;@@ -85677,6 +85721,12 @@ export namespace Schemas {ratingButtonColor?: string;ratingButtonActiveColor?: string;ratingButtonHoverColor?: string;+ /** Color of secondary text, such as question descriptions. */+ textSubtleColor?: string;+ /** Background color of open text inputs and rating buttons. */+ inputBackground?: string;+ /** Text color of open text inputs and rating buttons. Calculated from inputBackground when not set. */+ inputTextColor?: string;whiteLabel?: boolean;autoDisappear?: boolean;displayThankYouMessage?: boolean;@@ -85684,10 +85734,40 @@ export namespace Schemas {thankYouMessageDescription?: string;thankYouMessageDescriptionContentType?: DescriptionContentTypeEnum;thankYouMessageCloseButtonText?: string;+ /** Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set. */+ displayIntroScreen?: boolean;+ /** Heading of the intro screen. */+ introScreenHeader?: string;+ /** Body text of the intro screen. */+ introScreenDescription?: string;+ /** Content type of introScreenDescription.+ *+ * * `text` - text+ * * `html` - html */+ introScreenDescriptionContentType?: DescriptionContentTypeEnum;+ /** Label of the button that closes the intro screen and starts the survey. */+ introScreenButtonText?: string;borderColor?: string;placeholder?: string;+ /** Where a popover survey appears on the page. Defaults to 'right'.+ *+ * * `top_left` - top_left+ * * `top_center` - top_center+ * * `top_right` - top_right+ * * `middle_left` - middle_left+ * * `middle_center` - middle_center+ * * `middle_right` - middle_right+ * * `left` - left+ * * `center` - center+ * * `right` - right+ * * `next_to_trigger` - next_to_trigger */+ position?: SurveyPositionEnum;shuffleQuestions?: boolean;- surveyPopupDelaySeconds?: number;+ /**+ * Seconds to wait before a popover survey appears. Null shows it without a delay.+ * @nullable+ */+ surveyPopupDelaySeconds?: number | null;/** Whether to show a 'Back' button on web surveys after the first question, letting respondents return to a previously visited question. Defaults to false. */allowGoBack?: boolean;/** Optional override for the back button label. Defaults to 'Back'. */@@ -85696,11 +85776,22 @@ export namespace Schemas {widgetSelector?: string;widgetLabel?: string;widgetColor?: string;+ /** Which edge of the page holds the tab of a widget survey with widgetType 'tab'.+ *+ * * `top` - top+ * * `left` - left+ * * `right` - right+ * * `bottom` - bottom */+ tabPosition?: SurveyTabPositionEnum;fontFamily?: string;maxWidth?: string;zIndex?: string;disabledButtonOpacity?: string;boxPadding?: string;+ /** CSS box-shadow value of the survey box. */+ boxShadow?: string;+ /** CSS border-radius value of the survey box. */+ borderRadius?: string;}export interface PatchedSurveySerializerCreateUpdateOnlySchema {diff --git a/services/mcp/src/generated/surveys/api.ts b/services/mcp/src/generated/surveys/api.tsindex e4e24f787d9f..a43281959deb 100644--- a/services/mcp/src/generated/surveys/api.ts+++ b/services/mcp/src/generated/surveys/api.ts@@ -806,6 +806,20 @@ export const SurveysCreateBody = () => zod.object({ratingButtonColor: zod.string().optional(),ratingButtonActiveColor: zod.string().optional(),ratingButtonHoverColor: zod.string().optional(),+ textSubtleColor: zod+ .string()+ .optional()+ .describe('Color of secondary text, such as question descriptions.'),+ inputBackground: zod+ .string()+ .optional()+ .describe('Background color of open text inputs and rating buttons.'),+ inputTextColor: zod+ .string()+ .optional()+ .describe(+ 'Text color of open text inputs and rating buttons. Calculated from inputBackground when not set.'+ ),whiteLabel: zod.boolean().optional(),autoDisappear: zod.boolean().optional(),displayThankYouMessage: zod.boolean().optional(),@@ -816,10 +830,50 @@ export const SurveysCreateBody = () => zod.object({.optional().describe('\* `html` - html\n\* `text` - text'),thankYouMessageCloseButtonText: zod.string().optional(),+ displayIntroScreen: zod+ .boolean()+ .optional()+ .describe(+ 'Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set.'+ ),+ introScreenHeader: zod.string().optional().describe('Heading of the intro screen.'),+ introScreenDescription: zod.string().optional().describe('Body text of the intro screen.'),+ introScreenDescriptionContentType: zod+ .enum(['html', 'text'])+ .describe('\* `html` - html\n\* `text` - text')+ .optional()+ .describe('Content type of introScreenDescription.\n\n\* `text` - text\n\* `html` - html'),+ introScreenButtonText: zod+ .string()+ .optional()+ .describe('Label of the button that closes the intro screen and starts the survey.'),borderColor: zod.string().optional(),placeholder: zod.string().optional(),+ position: zod+ .enum([+ 'top_left',+ 'top_center',+ 'top_right',+ 'middle_left',+ 'middle_center',+ 'middle_right',+ 'left',+ 'center',+ 'right',+ 'next_to_trigger',+ ])+ .describe(+ '\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger'+ )+ .optional()+ .describe(+ "Where a popover survey appears on the page. Defaults to 'right'.\n\n\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger"+ ),shuffleQuestions: zod.boolean().optional(),- surveyPopupDelaySeconds: zod.number().optional(),+ surveyPopupDelaySeconds: zod+ .number()+ .nullish()+ .describe('Seconds to wait before a popover survey appears. Null shows it without a delay.'),allowGoBack: zod.boolean().optional()@@ -837,11 +891,20 @@ export const SurveysCreateBody = () => zod.object({widgetSelector: zod.string().optional(),widgetLabel: zod.string().optional(),widgetColor: zod.string().optional(),+ tabPosition: zod+ .enum(['top', 'left', 'right', 'bottom'])+ .describe('\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom')+ .optional()+ .describe(+ "Which edge of the page holds the tab of a widget survey with widgetType 'tab'.\n\n\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom"+ ),fontFamily: zod.string().optional(),maxWidth: zod.string().optional(),zIndex: zod.string().optional(),disabledButtonOpacity: zod.string().optional(),boxPadding: zod.string().optional(),+ boxShadow: zod.string().optional().describe('CSS box-shadow value of the survey box.'),+ borderRadius: zod.string().optional().describe('CSS border-radius value of the survey box.'),}),zod.null(),])@@ -1699,6 +1762,20 @@ export const SurveysPartialUpdateBody = () => zod.object({ratingButtonColor: zod.string().optional(),ratingButtonActiveColor: zod.string().optional(),ratingButtonHoverColor: zod.string().optional(),+ textSubtleColor: zod+ .string()+ .optional()+ .describe('Color of secondary text, such as question descriptions.'),+ inputBackground: zod+ .string()+ .optional()+ .describe('Background color of open text inputs and rating buttons.'),+ inputTextColor: zod+ .string()+ .optional()+ .describe(+ 'Text color of open text inputs and rating buttons. Calculated from inputBackground when not set.'+ ),whiteLabel: zod.boolean().optional(),autoDisappear: zod.boolean().optional(),displayThankYouMessage: zod.boolean().optional(),@@ -1709,10 +1786,50 @@ export const SurveysPartialUpdateBody = () => zod.object({.optional().describe('\* `html` - html\n\* `text` - text'),thankYouMessageCloseButtonText: zod.string().optional(),+ displayIntroScreen: zod+ .boolean()+ .optional()+ .describe(+ 'Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set.'+ ),+ introScreenHeader: zod.string().optional().describe('Heading of the intro screen.'),+ introScreenDescription: zod.string().optional().describe('Body text of the intro screen.'),+ introScreenDescriptionContentType: zod+ .enum(['html', 'text'])+ .describe('\* `html` - html\n\* `text` - text')+ .optional()+ .describe('Content type of introScreenDescription.\n\n\* `text` - text\n\* `html` - html'),+ introScreenButtonText: zod+ .string()+ .optional()+ .describe('Label of the button that closes the intro screen and starts the survey.'),borderColor: zod.string().optional(),placeholder: zod.string().optional(),+ position: zod+ .enum([+ 'top_left',+ 'top_center',+ 'top_right',+ 'middle_left',+ 'middle_center',+ 'middle_right',+ 'left',+ 'center',+ 'right',+ 'next_to_trigger',+ ])+ .describe(+ '\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger'+ )+ .optional()+ .describe(+ "Where a popover survey appears on the page. Defaults to 'right'.\n\n\* `top_left` - top_left\n\* `top_center` - top_center\n\* `top_right` - top_right\n\* `middle_left` - middle_left\n\* `middle_center` - middle_center\n\* `middle_right` - middle_right\n\* `left` - left\n\* `center` - center\n\* `right` - right\n\* `next_to_trigger` - next_to_trigger"+ ),shuffleQuestions: zod.boolean().optional(),- surveyPopupDelaySeconds: zod.number().optional(),+ surveyPopupDelaySeconds: zod+ .number()+ .nullish()+ .describe('Seconds to wait before a popover survey appears. Null shows it without a delay.'),allowGoBack: zod.boolean().optional()@@ -1730,11 +1847,20 @@ export const SurveysPartialUpdateBody = () => zod.object({widgetSelector: zod.string().optional(),widgetLabel: zod.string().optional(),widgetColor: zod.string().optional(),+ tabPosition: zod+ .enum(['top', 'left', 'right', 'bottom'])+ .describe('\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom')+ .optional()+ .describe(+ "Which edge of the page holds the tab of a widget survey with widgetType 'tab'.\n\n\* `top` - top\n\* `left` - left\n\* `right` - right\n\* `bottom` - bottom"+ ),fontFamily: zod.string().optional(),maxWidth: zod.string().optional(),zIndex: zod.string().optional(),disabledButtonOpacity: zod.string().optional(),boxPadding: zod.string().optional(),+ boxShadow: zod.string().optional().describe('CSS box-shadow value of the survey box.'),+ borderRadius: zod.string().optional().describe('CSS border-radius value of the survey box.'),}),zod.null(),])diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-create.jsonindex d64150883221..8eef80e41ca7 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-create.json@@ -22,27 +22,80 @@"borderColor": {"type": "string"},+ "borderRadius": {+ "description": "CSS border-radius value of the survey box.",+ "type": "string"+ },"boxPadding": {"type": "string"},+ "boxShadow": {+ "description": "CSS box-shadow value of the survey box.",+ "type": "string"+ },"descriptionTextColor": {"type": "string"},"disabledButtonOpacity": {"type": "string"},+ "displayIntroScreen": {+ "description": "Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set.",+ "type": "boolean"+ },"displayThankYouMessage": {"type": "boolean"},"fontFamily": {"type": "string"},+ "inputBackground": {+ "description": "Background color of open text inputs and rating buttons.",+ "type": "string"+ },+ "inputTextColor": {+ "description": "Text color of open text inputs and rating buttons. Calculated from inputBackground when not set.",+ "type": "string"+ },+ "introScreenButtonText": {+ "description": "Label of the button that closes the intro screen and starts the survey.",+ "type": "string"+ },+ "introScreenDescription": {+ "description": "Body text of the intro screen.",+ "type": "string"+ },+ "introScreenDescriptionContentType": {+ "description": "Content type of introScreenDescription.\n\n* `text` - text\n* `html` - html",+ "enum": ["html", "text"],+ "type": "string"+ },+ "introScreenHeader": {+ "description": "Heading of the intro screen.",+ "type": "string"+ },"maxWidth": {"type": "string"},"placeholder": {"type": "string"},+ "position": {+ "description": "Where a popover survey appears on the page. Defaults to 'right'.\n\n* `top_left` - top_left\n* `top_center` - top_center\n* `top_right` - top_right\n* `middle_left` - middle_left\n* `middle_center` - middle_center\n* `middle_right` - middle_right\n* `left` - left\n* `center` - center\n* `right` - right\n* `next_to_trigger` - next_to_trigger",+ "enum": [+ "top_left",+ "top_center",+ "top_right",+ "middle_left",+ "middle_center",+ "middle_right",+ "left",+ "center",+ "right",+ "next_to_trigger"+ ],+ "type": "string"+ },"ratingButtonActiveColor": {"type": "string"},@@ -65,11 +118,28 @@"type": "string"},"surveyPopupDelaySeconds": {- "type": "number"+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ],+ "description": "Seconds to wait before a popover survey appears. Null shows it without a delay."+ },+ "tabPosition": {+ "description": "Which edge of the page holds the tab of a widget survey with widgetType 'tab'.\n\n* `top` - top\n* `left` - left\n* `right` - right\n* `bottom` - bottom",+ "enum": ["top", "left", "right", "bottom"],+ "type": "string"},"textColor": {"type": "string"},+ "textSubtleColor": {+ "description": "Color of secondary text, such as question descriptions.",+ "type": "string"+ },"thankYouMessageCloseButtonText": {"type": "string"},diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-update.jsonindex 32680448341b..a37620060c16 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-update.json@@ -22,27 +22,80 @@"borderColor": {"type": "string"},+ "borderRadius": {+ "description": "CSS border-radius value of the survey box.",+ "type": "string"+ },"boxPadding": {"type": "string"},+ "boxShadow": {+ "description": "CSS box-shadow value of the survey box.",+ "type": "string"+ },"descriptionTextColor": {"type": "string"},"disabledButtonOpacity": {"type": "string"},+ "displayIntroScreen": {+ "description": "Whether to show an intro screen before the first question. The intro screen shows only when introScreenHeader or introScreenDescription is set.",+ "type": "boolean"+ },"displayThankYouMessage": {"type": "boolean"},"fontFamily": {"type": "string"},+ "inputBackground": {+ "description": "Background color of open text inputs and rating buttons.",+ "type": "string"+ },+ "inputTextColor": {+ "description": "Text color of open text inputs and rating buttons. Calculated from inputBackground when not set.",+ "type": "string"+ },+ "introScreenButtonText": {+ "description": "Label of the button that closes the intro screen and starts the survey.",+ "type": "string"+ },+ "introScreenDescription": {+ "description": "Body text of the intro screen.",+ "type": "string"+ },+ "introScreenDescriptionContentType": {+ "description": "Content type of introScreenDescription.\n\n* `text` - text\n* `html` - html",+ "enum": ["html", "text"],+ "type": "string"+ },+ "introScreenHeader": {+ "description": "Heading of the intro screen.",+ "type": "string"+ },"maxWidth": {"type": "string"},"placeholder": {"type": "string"},+ "position": {+ "description": "Where a popover survey appears on the page. Defaults to 'right'.\n\n* `top_left` - top_left\n* `top_center` - top_center\n* `top_right` - top_right\n* `middle_left` - middle_left\n* `middle_center` - middle_center\n* `middle_right` - middle_right\n* `left` - left\n* `center` - center\n* `right` - right\n* `next_to_trigger` - next_to_trigger",+ "enum": [+ "top_left",+ "top_center",+ "top_right",+ "middle_left",+ "middle_center",+ "middle_right",+ "left",+ "center",+ "right",+ "next_to_trigger"+ ],+ "type": "string"+ },"ratingButtonActiveColor": {"type": "string"},@@ -65,11 +118,28 @@"type": "string"},"surveyPopupDelaySeconds": {- "type": "number"+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ],+ "description": "Seconds to wait before a popover survey appears. Null shows it without a delay."+ },+ "tabPosition": {+ "description": "Which edge of the page holds the tab of a widget survey with widgetType 'tab'.\n\n* `top` - top\n* `left` - left\n* `right` - right\n* `bottom` - bottom",+ "enum": ["top", "left", "right", "bottom"],+ "type": "string"},"textColor": {"type": "string"},+ "textSubtleColor": {+ "description": "Color of secondary text, such as question descriptions.",+ "type": "string"+ },"thankYouMessageCloseButtonText": {"type": "string"},