@@ -844,6 +844,38 @@ export type ResolvedPerBrowserOptions<T, TOmitted extends keyof T = never> = {
844844 : T [ key ] ;
845845} & { [ key in TOmitted ] : T [ key ] } ;
846846
847+ /**
848+ * Firefox data collection permission types for personal data.
849+ * See: https://extensionworkshop.com/documentation/develop/firefox-builtin-data-consent/#specifying-data-types
850+ */
851+ export type FirefoxDataCollectionType =
852+ | 'locationInfo'
853+ | 'browsingActivity'
854+ | 'websiteContent'
855+ | 'websiteActivity'
856+ | 'searchTerms'
857+ | 'bookmarksInfo'
858+ | 'healthInfo'
859+ | 'contactInfo'
860+ | 'socialInfo' ;
861+
862+ /**
863+ * Firefox data collection permissions configuration.
864+ * See: https://extensionworkshop.com/documentation/develop/firefox-builtin-data-consent/#specifying-data-types
865+ */
866+ export interface FirefoxDataCollectionPermissions {
867+ /**
868+ * Required data collection permissions. Users must opt in to use the extension.
869+ * Can include personal data types or "none" to explicitly indicate no data collection.
870+ */
871+ required ?: Array < FirefoxDataCollectionType | 'none' > ;
872+ /**
873+ * Optional data collection permissions. Users can opt in after installation.
874+ * Can include personal data types or "technicalAndInteraction" (which can only be optional).
875+ */
876+ optional ?: Array < FirefoxDataCollectionType | 'technicalAndInteraction' > ;
877+ }
878+
847879/**
848880 * Manifest customization available in the `wxt.config.ts` file. You cannot configure entrypoints
849881 * here, they are configured inline.
@@ -879,6 +911,11 @@ export type UserManifest = {
879911 strict_min_version ?: string ;
880912 strict_max_version ?: string ;
881913 update_url ?: string ;
914+ /**
915+ * Firefox data collection permissions configuration.
916+ * See: https://extensionworkshop.com/documentation/develop/firefox-builtin-data-consent/#specifying-data-types
917+ */
918+ data_collection_permissions ?: FirefoxDataCollectionPermissions ;
882919 } ;
883920 gecko_android ?: {
884921 strict_min_version ?: string ;
0 commit comments