diff --git a/.repo/sample-list-generator/extension-apis.json b/.repo/sample-list-generator/extension-apis.json index a4493472..b6e59298 100644 --- a/.repo/sample-list-generator/extension-apis.json +++ b/.repo/sample-list-generator/extension-apis.json @@ -43,8 +43,13 @@ "setPopup", "setTitle" ], - "types": ["OpenPopupOptions", "TabDetails", "UserSettings"], - "events": ["onClicked"] + "types": [ + "OpenPopupOptions", + "TabDetails", + "UserSettings", + "UserSettingsChange" + ], + "events": ["onClicked", "onUserSettingsChanged"] }, "alarms": { "properties": [], @@ -55,14 +60,7 @@ "app.runtime": { "properties": [], "methods": [], - "types": [ - "ActionData", - "EmbedRequest", - "LaunchData", - "LaunchItem", - "ActionType", - "LaunchSource" - ], + "types": ["EmbedRequest", "LaunchData", "LaunchItem", "LaunchSource"], "events": ["onEmbedRequested", "onLaunched", "onRestarted"] }, "app.window": { @@ -261,7 +259,8 @@ "types": [ "BookmarkTreeNode", "CreateDetails", - "BookmarkTreeNodeUnmodifiable" + "BookmarkTreeNodeUnmodifiable", + "FolderType" ], "events": [ "onChanged", @@ -373,7 +372,7 @@ "contentScripts": { "properties": [], "methods": [], - "types": ["ContentScript", "RunAt"], + "types": ["ContentScript"], "events": [] }, "contentSettings": { @@ -420,17 +419,25 @@ "contextMenus": { "properties": ["ACTION_MENU_TOP_LEVEL_LIMIT"], "methods": ["create", "remove", "removeAll", "update"], - "types": ["OnClickData", "ContextType", "ItemType"], + "types": ["CreateProperties", "OnClickData", "ContextType", "ItemType"], "events": ["onClicked"] }, "cookies": { "properties": [], - "methods": ["get", "getAll", "getAllCookieStores", "remove", "set"], + "methods": [ + "get", + "getAll", + "getAllCookieStores", + "getPartitionKey", + "remove", + "set" + ], "types": [ "Cookie", "CookieDetails", "CookiePartitionKey", "CookieStore", + "FrameDetails", "OnChangedCause", "SameSiteStatus" ], @@ -445,7 +452,13 @@ "debugger": { "properties": [], "methods": ["attach", "detach", "getTargets", "sendCommand"], - "types": ["Debuggee", "TargetInfo", "DetachReason", "TargetInfoType"], + "types": [ + "Debuggee", + "DebuggerSession", + "TargetInfo", + "DetachReason", + "TargetInfoType" + ], "events": ["onDetach", "onEvent"] }, "declarativeContent": { @@ -495,6 +508,7 @@ "ExtensionActionOptions", "GetDisabledRuleIdsOptions", "GetRulesFilter", + "HeaderInfo", "IsRegexSupportedResult", "MatchedRule", "MatchedRuleInfo", @@ -591,6 +605,12 @@ ], "events": [] }, + "devtools.performance": { + "properties": [], + "methods": [], + "types": [], + "events": ["onProfilingStarted", "onProfilingStopped"] + }, "devtools.recorder": { "properties": [], "methods": ["createView", "registerRecorderExtensionPlugin"], @@ -611,8 +631,43 @@ }, "documentScan": { "properties": [], - "methods": ["scan"], - "types": ["ScanOptions", "ScanResults"], + "methods": [ + "cancelScan", + "closeScanner", + "getOptionGroups", + "getScannerList", + "openScanner", + "readScanData", + "scan", + "setOptions", + "startScan" + ], + "types": [ + "CancelScanResponse", + "CloseScannerResponse", + "DeviceFilter", + "GetOptionGroupsResponse", + "GetScannerListResponse", + "OpenScannerResponse", + "OptionConstraint", + "OptionGroup", + "OptionSetting", + "ReadScanDataResponse", + "ScanOptions", + "ScanResults", + "ScannerInfo", + "ScannerOption", + "SetOptionResult", + "SetOptionsResponse", + "StartScanOptions", + "StartScanResponse", + "Configurability", + "ConnectionType", + "ConstraintType", + "OperationResult", + "OptionType", + "OptionUnit" + ], "events": [] }, "dom": { @@ -677,6 +732,12 @@ "types": ["HardwarePlatformInfo"], "events": [] }, + "enterprise.kioskInput": { + "properties": [], + "methods": ["setCurrentInputMethod"], + "types": ["SetCurrentInputMethodOptions"], + "events": [] + }, "enterprise.networkingAttributes": { "properties": [], "methods": ["getNetworkDetails"], @@ -733,6 +794,7 @@ "InjectDetails", "CSSOrigin", "DocumentLifecycle", + "ExecutionWorld", "FrameType", "ImageFormat", "RunAt" @@ -799,6 +861,7 @@ "AddWatcherRequestedOptions", "Change", "CloseFileRequestedOptions", + "CloudFileInfo", "CloudIdentifier", "ConfigureRequestedOptions", "CopyEntryRequestedOptions", @@ -1245,7 +1308,14 @@ }, "permissions": { "properties": [], - "methods": ["contains", "getAll", "remove", "request"], + "methods": [ + "addHostAccessRequest", + "contains", + "getAll", + "remove", + "removeHostAccessRequest", + "request" + ], "types": ["Permissions"], "events": ["onAdded", "onRemoved"] }, @@ -1290,7 +1360,13 @@ "MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE", "MAX_SUBMIT_JOB_CALLS_PER_MINUTE" ], - "methods": ["cancelJob", "getPrinterInfo", "getPrinters", "submitJob"], + "methods": [ + "cancelJob", + "getJobStatus", + "getPrinterInfo", + "getPrinters", + "submitJob" + ], "types": [ "GetPrinterInfoResponse", "Printer", @@ -1408,7 +1484,9 @@ "onStartup", "onSuspend", "onSuspendCanceled", - "onUpdateAvailable" + "onUpdateAvailable", + "onUserScriptConnect", + "onUserScriptMessage" ] }, "scripting": { @@ -1719,6 +1797,12 @@ ], "events": ["onAttached", "onDetached"] }, + "systemLog": { + "properties": [], + "methods": ["add"], + "types": ["MessageOptions"], + "events": [] + }, "tabCapture": { "properties": [], "methods": ["capture", "getCapturedTabs", "getMediaStreamId"], @@ -1738,7 +1822,11 @@ "events": ["onCreated", "onMoved", "onRemoved", "onUpdated"] }, "tabs": { - "properties": ["MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND", "TAB_ID_NONE"], + "properties": [ + "MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND", + "TAB_ID_NONE", + "TAB_INDEX_NONE" + ], "methods": [ "captureVisibleTab", "connect", @@ -1806,23 +1894,31 @@ "properties": [], "methods": ["getVoices", "isSpeaking", "pause", "resume", "speak", "stop"], "types": ["TtsEvent", "TtsOptions", "TtsVoice", "EventType", "VoiceGender"], - "events": [] + "events": ["onVoicesChanged"] }, "ttsEngine": { "properties": [], - "methods": ["updateVoices"], + "methods": ["updateLanguage", "updateVoices"], "types": [ "AudioBuffer", "AudioStreamOptions", + "LanguageStatus", + "LanguageUninstallOptions", "SpeakOptions", + "TtsClient", + "LanguageInstallStatus", + "TtsClientSource", "VoiceGender" ], "events": [ + "onInstallLanguageRequest", + "onLanguageStatusRequest", "onPause", "onResume", "onSpeak", "onSpeakWithAudioStream", - "onStop" + "onStop", + "onUninstallLanguageRequest" ] }, "types": { @@ -1880,15 +1976,21 @@ "properties": [], "methods": [ "configureWorld", + "execute", "getScripts", + "getWorldConfigurations", "register", + "resetWorldConfiguration", "unregister", "update" ], "types": [ + "InjectionResult", + "InjectionTarget", "RegisteredUserScript", "ScriptSource", "UserScriptFilter", + "UserScriptInjection", "WorldProperties", "ExecutionWorld" ], @@ -2056,6 +2158,7 @@ "FindOptions", "FullscreenPermissionRequest", "GeolocationPermissionRequest", + "HidPermissionRequest", "InjectDetails", "InjectionItems", "LoadPluginPermissionRequest", diff --git a/.repo/sample-list-generator/src/libs/api-loader.ts b/.repo/sample-list-generator/src/libs/api-loader.ts index 315a3fc6..ca60c4b7 100644 --- a/.repo/sample-list-generator/src/libs/api-loader.ts +++ b/.repo/sample-list-generator/src/libs/api-loader.ts @@ -15,5 +15,16 @@ export const loadExtensionApis = (): ExtensionApiMap => { } let data = fs.readFileSync(filePath, 'utf8'); - return JSON.parse(data); + const apiMap = JSON.parse(data); + + // Due to the specific implementation of this API, we need to manually add it + // to the list of APIs recognised by the sample list generator. + apiMap['aiOriginTrial.languageModel'] = { + properties: [], + methods: ['create', 'capabilities', 'params', 'availability'], + types: [], + events: [] + }; + + return apiMap; }; diff --git a/.repo/sample-list-generator/src/utils/filesystem.ts b/.repo/sample-list-generator/src/utils/filesystem.ts index 3fc90a17..3683ba98 100644 --- a/.repo/sample-list-generator/src/utils/filesystem.ts +++ b/.repo/sample-list-generator/src/utils/filesystem.ts @@ -12,6 +12,7 @@ export const getAllFiles = async (dir: string): Promise => { if (stats.isFile()) { result.push(filePath); } else if (stats.isDirectory()) { + if (file === "node_modules") continue; result.push(...(await getAllFiles(filePath))); } } diff --git a/api-samples/identity/manifest.json b/api-samples/identity/manifest.json index 5bc2cd3c..5176d2be 100755 --- a/api-samples/identity/manifest.json +++ b/api-samples/identity/manifest.json @@ -9,8 +9,6 @@ }, "permissions": ["identity", "identity.email"], "oauth2": { - // client_id below is specific to the application key. Follow the - // documentation to obtain one for your app. "client_id": "497291774654.apps.googleusercontent.com", "scopes": ["https://www.googleapis.com/auth/userinfo.profile"] } diff --git a/functional-samples/ai.gemini-on-device/sidepanel/index.js b/functional-samples/ai.gemini-on-device/sidepanel/index.js index 819a40d7..e44d9c08 100644 --- a/functional-samples/ai.gemini-on-device/sidepanel/index.js +++ b/functional-samples/ai.gemini-on-device/sidepanel/index.js @@ -46,9 +46,7 @@ async function initDefaults() { console.log('Model default:', defaults); const available = await chrome.aiOriginTrial.languageModel.availability(); if (available !== 'available') { - showResponse( - `Model not yet available (current state: "${available}")` - ); + showResponse(`Model not yet available (current state: "${available}")`); return; } sliderTemperature.value = defaults.defaultTemperature;