32 lines
21 KiB
Plaintext
32 lines
21 KiB
Plaintext
{"metadata":{"sort":"-last_modified","schema":{"type":"object","required":["webExtension"],"properties":{"params":{"$ref":"#/definitions/params"},"default":{"$ref":"#/definitions/default"},"appliesTo":{"type":"array","items":{"$ref":"#/definitions/appliesToSection"},"title":"Applies To","description":"This section defines the region/locales/application information for where a search engine is available, and any specifics for that region/locale/application. If there are no entries in the list, it is considered to be included everywhere"},"orderHint":{"$ref":"#/definitions/orderHint"},"extraParams":{"$ref":"#/definitions/extraParams"},"telemetryId":{"type":"string","title":"Telemetry Id","description":"The telemetry Id as used for some of SEARCH_COUNTS telemetry."},"regionParams":{"$ref":"#/definitions/regionParams"},"webExtension":{"$ref":"#/definitions/webExtension"},"defaultPrivate":{"$ref":"#/definitions/defaultPrivate"},"sendAttributionRequest":{"$ref":"#/definitions/sendAttributionRequest"}},"definitions":{"params":{"type":"object","title":"Parameters","properties":{"sapCodes":{"$ref":"#/definitions/sapCodes"},"searchUrlGetParams":{"$ref":"#/definitions/searchUrlCodes","title":"Search URL GET Parameters","description":"Extra parameters for search URLs (e.g. 'pc=foo')."},"searchUrlPostParams":{"$ref":"#/definitions/searchUrlCodes","title":"Search URL POST Parameters","description":"Extra parameters for search URLs (e.g. 'pc=foo')."},"suggestUrlGetParams":{"$ref":"#/definitions/searchUrlCodes","title":"Suggestion URL GET Parameters","description":"Extra parameters for search suggestion URLs (e.g. 'pc=foo')."},"suggestUrlPostParams":{"$ref":"#/definitions/searchUrlCodes","title":"Suggestion URL POST Parameters","description":"Extra parameters for search suggestion URLs (e.g. 'pc=foo')."}},"description":"Various parameters for the search engines"},"default":{"enum":["yes","yes-if-no-other","no"],"type":"string","title":"Default Status","pattern":"^[a-z-]{0,20}$","description":"Whether or not this engine should be default."},"excluded":{"type":"object","title":"Excluded Locations","properties":{"locales":{"$ref":"#/definitions/localeDetails"},"regions":{"$ref":"#/definitions/regionDetails"}},"description":"The locations to which this section applies. Note: Regions and Locales are 'and'ed together."},"included":{"type":"object","title":"Included Locations","properties":{"locales":{"$ref":"#/definitions/localeDetails"},"regions":{"$ref":"#/definitions/regionDetails"},"everywhere":{"type":"boolean","title":"Everywhere","description":"Set to true to signify that this is included everywhere."}},"description":"The locations to which this section applies. Note: Regions and Locales are 'and'ed together."},"sapCodes":{"type":"object","title":"Search Access Point Codes","properties":{"any":{"type":"string","title":"Any","pattern":"^[a-z0-9]{0,100}$","description":"SAP code that is used for all access points (overrides the others)."},"newTab":{"type":"string","title":"New Tab","pattern":"^[a-z0-9]{0,100}$","description":"SAP code for searches from the new tab page."},"keyword":{"type":"string","title":"Keyword","pattern":"^[a-z0-9]{0,100}$","description":"SAP code for searches via keywords."},"homePage":{"type":"string","title":"Home page","pattern":"^[a-z0-9]{0,100}$","description":"SAP code for searches from the home page."},"searchBar":{"type":"string","title":"Search Bar","pattern":"^[a-z0-9]{0,100}$","description":"SAP code for searches from the search bar."},"contextMenu":{"type":"string","title":"Context Menu","pattern":"^[a-z0-9]{0,100}$","description":"SAP code for searches from the context menu."}},"description":"Codes for the search access points."},"orderHint":{"type":"number","title":"Order Hint","description":"A hint to the display order (higher is a higer rank)"},"application":{"type":"object","title":"Application Details","properties":{"name":{"enum":["","firefox"],"type":"string","title":"Name","pattern":"^[a-z]{0,100}$","description":"The application this applies to (default/not specified is everywhere)"},"channel":{"type":"array","items":{"enum":["default","nightly","aurora","beta","release","esr"],"type":"string","pattern":"^[a-z]{0,100}$"},"title":"Channel","description":"Which channel this belongs to (not set = everywhere). For ESR this is also keyed from the display version.","uniqueItems":true},"maxVersion":{"type":"string","title":"Maxium Version","pattern":"^[0-9a-z.]{0,20}$","description":"The maximum version this applies to (less-than comparison)"},"minVersion":{"type":"string","title":"Minimum Version","pattern":"^[0-9a-z.]{0,20}$","description":"The minimum version this applies to"},"distributions":{"type":"array","items":{"type":"string","pattern":"^[a-zA-Z0-9.-]{0,100}$"},"title":"Distributions","description":"Which distributions this applies to.","uniqueItems":true},"excludedDistributions":{"type":"array","items":{"type":"string","pattern":"^[a-zA-Z0-9.-]{0,100}$"},"title":"Excluded Distributions","description":"Which distributions this does not apply to.","uniqueItems":true}}},"extraParams":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","title":"Name","pattern":"^[a-z]{0,20}$","description":"Name of the parameter that will be used in the search query"},"pref":{"type":"string","title":"Preference name","pattern":"^[a-z0-9_]{0,100}$","description":"The preference name to get the value from (i.e. browser.search.param.<preference name>)."},"value":{"type":"string","title":"Value","pattern":"^[a-zA-Z0-9_]{0,100}$","description":"If this is a purpose type, the value is used as the value of the parameter in the query"},"purpose":{"enum":["searchbar","keyword","contextmenu","homepage","newtab"],"type":"string","title":"Purpose","pattern":"^[a-z{}]{0,100}$","description":"The search purpose that triggers this parameter being appended."},"condition":{"enum":["pref","purpose"],"type":"string","title":"Condition","pattern":"^[a-z]{0,10}$","description":"The type of parameter (pref or purpose)"}}},"title":"Extra Parameters","description":"Extra parameters for the search engine (aka MozParams)"},"telemetryId":{"type":"string","title":"Telemetry Id","pattern":"^[a-zA-Z0-9-]{0,100}$","description":"The telemetry Id as used for some of SEARCH_COUNTS telemetry."},"regionParams":{"type":"object","title":"Region Parameters","description":"A map of regions to an array of parameter overrides","patternProperties":{"^([a-z][a-z]|default)$":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","title":"Name","pattern":"^[a-zA-Z0-9.-]{0,100}$","description":"Name of the parameter to override"},"value":{"type":"string","title":"Value","pattern":"^[a-zA-Z0-9_{}:/.-]{0,100}$","description":"The value to override with"}}},"title":"Parameter Overrides","description":"A array of objects - map of parameter name to the parameter value."}}},"webExtension":{"type":"object","title":"WebExtension","properties":{"id":{"type":"string","title":"WebExtension Id","pattern":"^[a-zA-Z0-9-._]*@search.mozilla.org$","description":"The identifier (local part) of the associated WebExtension should be of the format example@search.mozilla.org"},"locale":{"type":"string","title":"WebExtension Locale","pattern":"^[a-zA-Z0-9-]{0,100}$","description":"Overrides the WebExtension locales and specifies to use a particular one. Ideally this should only be used when really necessary, otherwise considered deprecated."}}},"localeDetails":{"type":"object","title":"Locales","properties":{"matches":{"type":"array","items":{"type":"string","pattern":"^([a-z]{2,3}(-[a-zA-Z]{2,})?(-macos)?|default)$","minLength":2},"title":"Matches exactly the codes"},"startsWith":{"type":"array","items":{"type":"string","pattern":"^[a-z]{2,3}$","maxLength":3,"minLength":2},"title":"Matches any code starting with"}},"description":"Locale codes."},"regionDetails":{"type":"array","items":{"type":"string","pattern":"^([a-z][a-z]|default)$","maxLength":7,"minLength":2},"title":"Regions","description":"Two-letter region codes."},"defaultPrivate":{"enum":["yes","yes-if-no-other","no"],"type":"string","title":"Default Status (PBM)","pattern":"^[a-z-]{0,20}$","description":"Whether or not this engine should be default in private browsing mode."},"searchUrlCodes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","title":"Name","pattern":"^[a-zA-Z0-9.-]{0,100}$","description":"Name of the parameter that will be used in the query"},"value":{"type":"string","title":"Value","pattern":"^[a-zA-Z0-9_{}:/.-]{0,100}$","description":"The value of parameter (pref or purpose)"}}},"title":"Codes","description":"A array of objects - map of parameter name to the parameter value."},"appliesToSection":{"type":"object","properties":{"params":{"$ref":"#/definitions/params"},"default":{"$ref":"#/definitions/default"},"excluded":{"$ref":"#/definitions/excluded"},"included":{"$ref":"#/definitions/included"},"orderHint":{"$ref":"#/definitions/orderHint"},"experiment":{"type":"string","title":"Experiment","pattern":"^[a-zA-Z0-9-]{0,100}$","description":"The experiment this section is associated with, if blank it is associated with any configuration."},"application":{"$ref":"#/definitions/application"},"extraParams":{"$ref":"#/definitions/extraParams"},"telemetryId":{"$ref":"#/definitions/telemetryId"},"regionParams":{"$ref":"#/definitions/regionParams"},"webextension":{"$ref":"#/definitions/webExtension"},"defaultPrivate":{"$ref":"#/definitions/defaultPrivate"},"sendAttributionRequest":{"$ref":"#/definitions/sendAttributionRequest"}}},"sendAttributionRequest":{"type":"boolean","title":"Send Attribution Request","description":"Indicates if we should send an attribution request to Mozilla's server."}}},"signature":{"ref":"1arewps3i35g5rphgbbddnhob","x5u":"https://content-signature-2.cdn.mozilla.net/chains/remote-settings.content-signature.mozilla.org-2023-06-30-14-14-54.chain","mode":"p384ecdsa","type":"contentsignaturepki","signature":"2akhkr27TsMgnTSxpv2MgnU9UV1QyWC71jEZBn9tvWuEv32B98VuGuEv7pVXxT_9VzAHA5WVrgPxqngGfh6JTPsqJ5uli6x4Y6ImQHbeJy6KlNZKXRtu1MkKmameSr3O","signer_id":"remote-settings","public_key":"MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEc6jx/8CHy+i76I97e9K3DGlH2h3cvKi9OKGnwJoTLOPbecD7XnScJidvBPyYi+PlzXZGob7htI0nDKyl/+DTWd2FBJxnZaVyUVnK7w3wppfSNUaYXWZJGHW8E5k1sRuk"},"attachment":{"enabled":true,"required":false},"displayFields":["webExtension.id"],"id":"search-config","last_modified":1685384562997},"timestamp":1685384562880,"changes":[{"params":{"searchUrlGetParams":[{"name":"tn","value":"monline_7_dg"},{"name":"ie","value":"utf-8"},{"name":"wd","value":"{searchTerms}"}],"suggestUrlGetParams":[{"name":"tn","value":"monline_7_dg"},{"name":"ie","value":"utf-8"},{"name":"action","value":"opensearch"},{"name":"wd","value":"{searchTerms}"}]},"schema":1685384364914,"appliesTo":[{"params":{"searchUrlGetParams":[{"name":"ie","value":"utf-8"},{"name":"wd","value":"{searchTerms}"}],"suggestUrlGetParams":[{"name":"tn","value":"monline_4_dg"},{"name":"ie","value":"utf-8"},{"name":"action","value":"opensearch"},{"name":"wd","value":"{searchTerms}"}]},"default":"yes","override":true,"orderHint":3000,"application":{"distributions":["MozillaOnline"]},"extraParams":[{"name":"tn","value":"monline_4_dg","purpose":"searchbar","condition":"purpose"},{"name":"tn","value":"monline_3_dg","purpose":"homepage","condition":"purpose"},{"name":"tn","value":"monline_3_dg","purpose":"newtab","condition":"purpose"}]},{"included":{"locales":{"matches":["zh-CN"]}}},{"default":"yes","included":{"locales":{"matches":["zh-CN"]},"regions":["cn"]}},{"default":"no","override":true,"application":{"distributions":["acer-003","acer-004"]}}],"telemetryId":"baidu","webExtension":{"id":"baidu@search.mozilla.org"},"id":"52dd490a-89e8-45f2-96b0-f2c72e157526","last_modified":1685384562880}]},<13><><EFBFBD><EFBFBD> |