generated

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: GPL-3.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by protocolgen; DO NOT EDIT.

Index

Constants

View Source
const (
	ErrorCodeInvalidRequest       = "INVALID_REQUEST"
	ErrorCodeMethodNotFound       = "METHOD_NOT_FOUND"
	ErrorCodeUserRejected         = "USER_REJECTED"
	ErrorCodeOperationExpired     = "OPERATION_EXPIRED"
	ErrorCodeConflict             = "CONFLICT"
	ErrorCodeNotFound             = "NOT_FOUND"
	ErrorCodeRateLimited          = "RATE_LIMITED"
	ErrorCodePayloadTooLarge      = "PAYLOAD_TOO_LARGE"
	ErrorCodeInternalError        = "INTERNAL_ERROR"
	ErrorCodeScriptcatOffline     = "SCRIPTCAT_OFFLINE"
	ErrorCodeScriptcatNotFound    = "SCRIPTCAT_NOT_FOUND"
	ErrorCodeScriptcatAmbiguous   = "SCRIPTCAT_AMBIGUOUS"
	ErrorCodeNoBrowserConnected   = "NO_BROWSER_CONNECTED"
	ErrorCodeBrowserOffline       = "BROWSER_OFFLINE"
	ErrorCodeBrowserNotFound      = "BROWSER_NOT_FOUND"
	ErrorCodeBrowserAmbiguous     = "BROWSER_AMBIGUOUS"
	ErrorCodeConfirmationRequired = "CONFIRMATION_REQUIRED"
	ErrorCodeUnsupported          = "UNSUPPORTED"
	ErrorCodeStaleRef             = "STALE_REF"
	ErrorCodeTimeout              = "TIMEOUT"
	ErrorCodeTargetAmbiguous      = "TARGET_AMBIGUOUS"
	ErrorCodePageNotAutomatable   = "PAGE_NOT_AUTOMATABLE"
	ErrorCodePageHidden           = "PAGE_HIDDEN"
	ErrorCodeDebuggerDetached     = "DEBUGGER_DETACHED"
	ErrorCodeDialogOpen           = "DIALOG_OPEN"
	ErrorCodePageUnresponsive     = "PAGE_UNRESPONSIVE"
	ErrorCodeEvalError            = "EVAL_ERROR"
	ErrorCodeNavigationFailed     = "NAVIGATION_FAILED"
	ErrorCodeEndpointConnected    = "ENDPOINT_CONNECTED"
)
View Source
const (
	CryptoContextBrowserPairDaemon      = "browserPairDaemon"
	CryptoContextBrowserPairExt         = "browserPairExt"
	CryptoContextBrowserSessionDaemon   = "browserSessionDaemon"
	CryptoContextBrowserSessionExt      = "browserSessionExt"
	CryptoContextPairDaemon             = "pairDaemon"
	CryptoContextPairExt                = "pairExt"
	CryptoContextPairKdfInfoEnc         = "pairKdfInfoEnc"
	CryptoContextPairKdfInfoMac         = "pairKdfInfoMac"
	CryptoContextPairKdfSalt            = "pairKdfSalt"
	CryptoContextScriptcatPairDaemon    = "scriptcatPairDaemon"
	CryptoContextScriptcatPairExt       = "scriptcatPairExt"
	CryptoContextScriptcatSessionDaemon = "scriptcatSessionDaemon"
	CryptoContextScriptcatSessionExt    = "scriptcatSessionExt"
	CryptoContextSessionDaemon          = "sessionDaemon"
	CryptoContextSessionExt             = "sessionExt"
)

crypto.context 的键,用于查 protocol.Crypto.Context。

View Source
const JSONRPCVersion = "2.0"
View Source
const SchemaVersion = "1.0.0"

Variables

View Source
var Methods = map[string]MethodMetadata{
	"bookmarks.add":           {Params: "BookmarksAddParams", Result: "BookmarksAddResult", Scope: "bookmarks:add", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"bookmarks.edit":          {Params: "BookmarksEditParams", Result: "BookmarksEditResult", Scope: "bookmarks:edit", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"bookmarks.list":          {Params: "BookmarksListParams", Result: "BookmarksListResult", Scope: "bookmarks:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "nodes", Internal: false},
	"bookmarks.mkdir":         {Params: "BookmarksMkdirParams", Result: "BookmarksMkdirResult", Scope: "bookmarks:mkdir", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"bookmarks.move":          {Params: "BookmarksMoveParams", Result: "BookmarksMoveResult", Scope: "bookmarks:move", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"bookmarks.remove":        {Params: "BookmarksRemoveParams", Result: "BookmarksRemoveResult", Scope: "bookmarks:remove", Effect: "write", Blocking: "approval", Level: "L2", Peer: "browser", MergeField: "", Internal: false},
	"bookmarks.search":        {Params: "BookmarksSearchParams", Result: "BookmarksSearchResult", Scope: "bookmarks:search", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "nodes", Internal: false},
	"browsingData.clear":      {Params: "BrowsingDataClearParams", Result: "BrowsingDataClearResult", Scope: "browsingData:clear", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"cookies.clear":           {Params: "CookiesClearParams", Result: "CookiesClearResult", Scope: "cookies:clear", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"cookies.get":             {Params: "CookiesGetParams", Result: "CookiesGetResult", Scope: "cookies:get", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"cookies.list":            {Params: "CookiesListParams", Result: "CookiesListResult", Scope: "cookies:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false},
	"cookies.remove":          {Params: "CookiesRemoveParams", Result: "CookiesRemoveResult", Scope: "cookies:remove", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"cookies.set":             {Params: "CookiesSetParams", Result: "CookiesSetResult", Scope: "cookies:set", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"debugger.body":           {Params: "DebuggerBodyParams", Result: "DebuggerBodyResult", Scope: "debugger:body", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"debugger.close":          {Params: "DebuggerCloseParams", Result: "DebuggerCloseResult", Scope: "debugger:close", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"debugger.detach":         {Params: "DebuggerDetachParams", Result: "DebuggerDetachResult", Scope: "debugger:detach", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"debugger.open":           {Params: "DebuggerOpenParams", Result: "DebuggerOpenResult", Scope: "debugger:open", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"debugger.own":            {Params: "DebuggerOwnParams", Result: "DebuggerOwnResult", Scope: "debugger:own", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"debugger.record":         {Params: "DebuggerRecordParams", Result: "DebuggerRecordResult", Scope: "debugger:record", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"debugger.send":           {Params: "DebuggerSendParams", Result: "DebuggerSendResult", Scope: "debugger:send", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"debugger.targets":        {Params: "DebuggerTargetsParams", Result: "DebuggerTargetsResult", Scope: "debugger:targets", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"debugger.userAgent":      {Params: "DebuggerUserAgentParams", Result: "DebuggerUserAgentResult", Scope: "debugger:userAgent", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"downloads.cancel":        {Params: "DownloadsCancelParams", Result: "DownloadsCancelResult", Scope: "downloads:cancel", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"downloads.deleteFile":    {Params: "DownloadsDeleteFileParams", Result: "DownloadsDeleteFileResult", Scope: "downloads:deleteFile", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"downloads.erase":         {Params: "DownloadsEraseParams", Result: "DownloadsEraseResult", Scope: "downloads:erase", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"downloads.list":          {Params: "DownloadsListParams", Result: "DownloadsListResult", Scope: "downloads:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false},
	"downloads.pause":         {Params: "DownloadsPauseParams", Result: "DownloadsPauseResult", Scope: "downloads:pause", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"downloads.resume":        {Params: "DownloadsResumeParams", Result: "DownloadsResumeResult", Scope: "downloads:resume", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"downloads.show":          {Params: "DownloadsShowParams", Result: "DownloadsShowResult", Scope: "downloads:show", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"downloads.start":         {Params: "DownloadsStartParams", Result: "DownloadsStartResult", Scope: "downloads:start", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"extensions.disable":      {Params: "ExtensionsDisableParams", Result: "ExtensionsSetEnabledResult", Scope: "extensions:disable", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"extensions.enable":       {Params: "ExtensionsEnableParams", Result: "ExtensionsSetEnabledResult", Scope: "extensions:enable", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"extensions.list":         {Params: "ExtensionsListParams", Result: "ExtensionsListResult", Scope: "extensions:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false},
	"extensions.uninstall":    {Params: "ExtensionsUninstallParams", Result: "ExtensionsUninstallResult", Scope: "extensions:uninstall", Effect: "write", Blocking: "approval", Level: "L2", Peer: "browser", MergeField: "", Internal: false},
	"history.clear":           {Params: "HistoryClearParams", Result: "HistoryClearResult", Scope: "history:clear", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"history.remove":          {Params: "HistoryRemoveParams", Result: "HistoryRemoveResult", Scope: "history:remove", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"history.search":          {Params: "HistorySearchParams", Result: "HistorySearchResult", Scope: "history:search", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false},
	"history.visits":          {Params: "HistoryVisitsParams", Result: "HistoryVisitsResult", Scope: "history:visits", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "visits", Internal: false},
	"readingList.add":         {Params: "ReadingListAddParams", Result: "ReadingListAddResult", Scope: "readingList:add", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"readingList.list":        {Params: "ReadingListListParams", Result: "ReadingListListResult", Scope: "readingList:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "entries", Internal: false},
	"readingList.markRead":    {Params: "ReadingListMarkReadParams", Result: "ReadingListMarkReadResult", Scope: "readingList:markRead", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"readingList.remove":      {Params: "ReadingListRemoveParams", Result: "ReadingListRemoveResult", Scope: "readingList:remove", Effect: "write", Blocking: "none", Level: "L1", Peer: "browser", MergeField: "", Internal: false},
	"recent.list":             {Params: "RecentListParams", Result: "RecentListResult", Scope: "recent:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "items", Internal: false},
	"recent.restore":          {Params: "RecentRestoreParams", Result: "RecentRestoreResult", Scope: "recent:restore", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"scripts.delete.request":  {Params: "ScriptUUIDParams", Result: "ScriptsDeleteResult", Scope: "scripts:delete:request", Effect: "write", Blocking: "approval", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false},
	"scripts.edit.request":    {Params: "ScriptsEditParams", Result: "ScriptMutationResult", Scope: "scripts:edit:request", Effect: "write", Blocking: "approval", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false},
	"scripts.install.request": {Params: "ScriptsInstallParams", Result: "ScriptMutationResult", Scope: "scripts:install:request", Effect: "write", Blocking: "approval", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false},
	"scripts.list":            {Params: "ScriptsListParams", Result: "ScriptsListResult", Scope: "scripts:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "scriptcat", MergeField: "scripts", Internal: false},
	"scripts.metadata.get":    {Params: "ScriptUUIDParams", Result: "ScriptMetadata", Scope: "scripts:metadata:read", Effect: "read", Blocking: "none", Level: "L0", Peer: "scriptcat", MergeField: "", Internal: false},
	"scripts.source.get":      {Params: "ScriptsSourceGetParams", Result: "ScriptSource", Scope: "scripts:source:read", Effect: "read", Blocking: "disclosure", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false},
	"scripts.source.grep":     {Params: "ScriptsSourceGrepParams", Result: "ScriptSourceGrepResult", Scope: "scripts:source:read", Effect: "read", Blocking: "disclosure", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false},
	"scripts.toggle.request":  {Params: "ScriptsToggleParams", Result: "ScriptsToggleResult", Scope: "scripts:toggle:request", Effect: "write", Blocking: "approval", Level: "L2", Peer: "scriptcat", MergeField: "", Internal: false},
	"tabGroups.add":           {Params: "TabGroupsAddParams", Result: "TabGroupsAddResult", Scope: "tabGroups:add", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabGroups.create":        {Params: "TabGroupsCreateParams", Result: "TabGroupsCreateResult", Scope: "tabGroups:create", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabGroups.edit":          {Params: "TabGroupsEditParams", Result: "TabGroupsEditResult", Scope: "tabGroups:edit", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabGroups.list":          {Params: "TabGroupsListParams", Result: "TabGroupsListResult", Scope: "tabGroups:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "groups", Internal: false},
	"tabGroups.ungroup":       {Params: "TabGroupsUngroupParams", Result: "TabGroupsUngroupResult", Scope: "tabGroups:ungroup", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.activate":           {Params: "TabsActivateParams", Result: "TabsActivateResult", Scope: "tabs:activate", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.close":              {Params: "TabsCloseParams", Result: "TabsCloseResult", Scope: "tabs:close", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.current":            {Params: "TabsCurrentParams", Result: "TabsCurrentResult", Scope: "tabs:current", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"tabs.duplicate":          {Params: "TabsDuplicateParams", Result: "TabsOpenResult", Scope: "tabs:duplicate", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.list":               {Params: "TabsListParams", Result: "TabsListResult", Scope: "tabs:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "tabs", Internal: false},
	"tabs.move":               {Params: "TabsMoveParams", Result: "TabsMoveResult", Scope: "tabs:move", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.mute":               {Params: "TabsIdsParams", Result: "TabsIdsResult", Scope: "tabs:mute", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.open":               {Params: "TabsOpenParams", Result: "TabsOpenResult", Scope: "tabs:open", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.pin":                {Params: "TabsIdsParams", Result: "TabsIdsResult", Scope: "tabs:pin", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.reload":             {Params: "TabsReloadParams", Result: "TabsIdsResult", Scope: "tabs:reload", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.select":             {Params: "TabsActivateParams", Result: "TabsActivateResult", Scope: "tabs:select", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: true},
	"tabs.unmute":             {Params: "TabsIdsParams", Result: "TabsIdsResult", Scope: "tabs:unmute", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"tabs.unpin":              {Params: "TabsIdsParams", Result: "TabsIdsResult", Scope: "tabs:unpin", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"windows.close":           {Params: "WindowsCloseParams", Result: "WindowsCloseResult", Scope: "windows:close", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"windows.focus":           {Params: "WindowsFocusParams", Result: "WindowsFocusResult", Scope: "windows:focus", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"windows.list":            {Params: "WindowsListParams", Result: "WindowsListResult", Scope: "windows:list", Effect: "read", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "windows", Internal: false},
	"windows.open":            {Params: "WindowsOpenParams", Result: "WindowsOpenResult", Scope: "windows:open", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
	"windows.state":           {Params: "WindowsStateParams", Result: "WindowsStateResult", Scope: "windows:state", Effect: "write", Blocking: "none", Level: "L0", Peer: "browser", MergeField: "", Internal: false},
}
View Source
var Notifications = map[string]NotificationMetadata{
	"debugger.detached":   {Params: "DebuggerDetachedNotification", Peer: "browser"},
	"debugger.event":      {Params: "DebuggerEventNotification", Peer: "browser"},
	"debugger.tabCreated": {Params: "DebuggerTabNotification", Peer: "browser"},
	"debugger.tabRemoved": {Params: "DebuggerTabRemovedNotification", Peer: "browser"},
	"debugger.tabUpdated": {Params: "DebuggerTabNotification", Peer: "browser"},
}

Functions

This section is empty.

Types

type BookmarksAddParams added in v0.2.0

type BookmarksAddParams struct {
	Folder *string `json:"folder,omitempty"`
	Index  *int    `json:"index,omitempty"`
	Title  *string `json:"title,omitempty"`
	URL    string  `json:"url"`
}

type BookmarksAddResult added in v0.2.0

type BookmarksAddResult struct {
	Id string `json:"id"`
}

type BookmarksEditParams added in v0.2.0

type BookmarksEditParams struct {
	Id    string  `json:"id"`
	Title *string `json:"title,omitempty"`
	URL   *string `json:"url,omitempty"`
}

type BookmarksEditResult added in v0.2.0

type BookmarksEditResult struct {
	Id string `json:"id"`
}

type BookmarksListParams added in v0.2.0

type BookmarksListParams struct {
	Folder    *string `json:"folder,omitempty"`
	Limit     *int    `json:"limit,omitempty"`
	Recursive *bool   `json:"recursive,omitempty"`
}

type BookmarksListResult added in v0.2.0

type BookmarksListResult struct {
	ContentTrust string `json:"contentTrust"`
	HasMore      bool   `json:"hasMore"`
	Nodes        []struct {
		AddedAt    *int    `json:"addedAt,omitempty"`
		ChildCount *int    `json:"childCount,omitempty"`
		Id         string  `json:"id"`
		Index      int     `json:"index"`
		ParentId   *string `json:"parentId,omitempty"`
		Title      string  `json:"title"`
		Type       string  `json:"type"`
		URL        *string `json:"url,omitempty"`
	} `json:"nodes"`
}

type BookmarksMkdirParams added in v0.2.0

type BookmarksMkdirParams struct {
	Folder *string `json:"folder,omitempty"`
	Index  *int    `json:"index,omitempty"`
	Title  string  `json:"title"`
}

type BookmarksMkdirResult added in v0.2.0

type BookmarksMkdirResult struct {
	Id string `json:"id"`
}

type BookmarksMoveParams added in v0.2.0

type BookmarksMoveParams struct {
	Folder string   `json:"folder"`
	Ids    []string `json:"ids"`
	Index  *int     `json:"index,omitempty"`
}

type BookmarksMoveResult added in v0.2.0

type BookmarksMoveResult struct {
	Ids []string `json:"ids"`
}

type BookmarksRemoveParams added in v0.2.0

type BookmarksRemoveParams struct {
	Ids []string `json:"ids"`
}

type BookmarksRemoveResult added in v0.2.0

type BookmarksRemoveResult struct {
	Bookmarks int      `json:"bookmarks"`
	Folders   int      `json:"folders"`
	Ids       []string `json:"ids"`
}

type BookmarksSearchParams added in v0.2.0

type BookmarksSearchParams struct {
	Limit *int   `json:"limit,omitempty"`
	Query string `json:"query"`
}

type BookmarksSearchResult added in v0.2.0

type BookmarksSearchResult struct {
	ContentTrust string `json:"contentTrust"`
	HasMore      bool   `json:"hasMore"`
	Nodes        []struct {
		AddedAt    *int     `json:"addedAt,omitempty"`
		ChildCount *int     `json:"childCount,omitempty"`
		Id         string   `json:"id"`
		Index      int      `json:"index"`
		ParentId   *string  `json:"parentId,omitempty"`
		Path       []string `json:"path"`
		Title      string   `json:"title"`
		Type       string   `json:"type"`
		URL        *string  `json:"url,omitempty"`
	} `json:"nodes"`
}

type BrowsingDataClearParams added in v0.2.0

type BrowsingDataClearParams struct {
	Confirm *bool    `json:"confirm,omitempty"`
	Origins []string `json:"origins,omitempty"`
	Since   *int     `json:"since,omitempty"`
	Types   []string `json:"types"`
}

type BrowsingDataClearResult added in v0.2.0

type BrowsingDataClearResult struct {
	Types []string `json:"types"`
}

type CookiesClearParams added in v0.2.0

type CookiesClearParams struct {
	All     *bool   `json:"all,omitempty"`
	Confirm *bool   `json:"confirm,omitempty"`
	Domain  *string `json:"domain,omitempty"`
}

type CookiesClearResult added in v0.2.0

type CookiesClearResult struct {
	Deleted int `json:"deleted"`
}

type CookiesGetParams added in v0.2.0

type CookiesGetParams struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type CookiesGetResult added in v0.2.0

type CookiesGetResult struct {
	ContentTrust string `json:"contentTrust"`
	Cookie       struct {
		Domain                string  `json:"domain"`
		Expires               *int    `json:"expires,omitempty"`
		HttpOnly              bool    `json:"httpOnly"`
		Name                  string  `json:"name"`
		PartitionTopLevelSite *string `json:"partitionTopLevelSite,omitempty"`
		Path                  string  `json:"path"`
		SameSite              string  `json:"sameSite"`
		Secure                bool    `json:"secure"`
		Session               bool    `json:"session"`
		Value                 string  `json:"value"`
	} `json:"cookie"`
}

type CookiesListParams added in v0.2.0

type CookiesListParams struct {
	Domain *string `json:"domain,omitempty"`
	Limit  *int    `json:"limit,omitempty"`
	Name   *string `json:"name,omitempty"`
	URL    *string `json:"url,omitempty"`
}

type CookiesListResult added in v0.2.0

type CookiesListResult struct {
	ContentTrust string `json:"contentTrust"`
	HasMore      bool   `json:"hasMore"`
	Items        []struct {
		Domain                string  `json:"domain"`
		Expires               *int    `json:"expires,omitempty"`
		HttpOnly              bool    `json:"httpOnly"`
		Name                  string  `json:"name"`
		PartitionTopLevelSite *string `json:"partitionTopLevelSite,omitempty"`
		Path                  string  `json:"path"`
		SameSite              string  `json:"sameSite"`
		Secure                bool    `json:"secure"`
		Session               bool    `json:"session"`
		Value                 string  `json:"value"`
	} `json:"items"`
}

type CookiesRemoveParams added in v0.2.0

type CookiesRemoveParams struct {
	Confirm *bool  `json:"confirm,omitempty"`
	Name    string `json:"name"`
	URL     string `json:"url"`
}

type CookiesRemoveResult added in v0.2.0

type CookiesRemoveResult struct {
	Deleted int `json:"deleted"`
}

type CookiesSetParams added in v0.2.0

type CookiesSetParams struct {
	Domain   *string `json:"domain,omitempty"`
	Expires  *int    `json:"expires,omitempty"`
	HttpOnly *bool   `json:"httpOnly,omitempty"`
	Name     string  `json:"name"`
	Path     *string `json:"path,omitempty"`
	SameSite *string `json:"sameSite,omitempty"`
	Secure   *bool   `json:"secure,omitempty"`
	URL      string  `json:"url"`
	Value    string  `json:"value"`
}

type CookiesSetResult added in v0.2.0

type CookiesSetResult struct {
	ContentTrust string `json:"contentTrust"`
	Cookie       struct {
		Domain                string  `json:"domain"`
		Expires               *int    `json:"expires,omitempty"`
		HttpOnly              bool    `json:"httpOnly"`
		Name                  string  `json:"name"`
		PartitionTopLevelSite *string `json:"partitionTopLevelSite,omitempty"`
		Path                  string  `json:"path"`
		SameSite              string  `json:"sameSite"`
		Secure                bool    `json:"secure"`
		Session               bool    `json:"session"`
		Value                 string  `json:"value"`
	} `json:"cookie"`
}

type DebuggerBodyParams added in v0.2.0

type DebuggerBodyParams struct {
	Part      string  `json:"part"`
	RequestId string  `json:"requestId"`
	SessionId *string `json:"sessionId,omitempty"`
	TabId     int     `json:"tabId"`
}

type DebuggerBodyResult added in v0.2.0

type DebuggerBodyResult struct {
	Base64Encoded *bool   `json:"base64Encoded,omitempty"`
	Body          *string `json:"body,omitempty"`
	Size          *int    `json:"size,omitempty"`
	Truncated     *bool   `json:"truncated,omitempty"`
	Unavailable   *string `json:"unavailable,omitempty"`
}

type DebuggerCloseParams added in v0.2.0

type DebuggerCloseParams struct {
	TabId int `json:"tabId"`
}

type DebuggerCloseResult added in v0.2.0

type DebuggerCloseResult struct {
	TabId int `json:"tabId"`
}

type DebuggerDetachParams added in v0.2.0

type DebuggerDetachParams struct {
	TabId *int `json:"tabId,omitempty"`
}

type DebuggerDetachResult added in v0.2.0

type DebuggerDetachResult struct {
	TabIds []int `json:"tabIds"`
}

type DebuggerDetachedNotification added in v0.2.0

type DebuggerDetachedNotification struct {
	Reason string `json:"reason"`
	TabId  int    `json:"tabId"`
}

type DebuggerEventNotification added in v0.2.0

type DebuggerEventNotification struct {
	Method    string          `json:"method"`
	Params    json.RawMessage `json:"params,omitempty"`
	SessionId *string         `json:"sessionId,omitempty"`
	TabId     int             `json:"tabId"`
}

type DebuggerOpenParams added in v0.2.0

type DebuggerOpenParams struct {
	Background *bool  `json:"background,omitempty"`
	URL        string `json:"url"`
}

type DebuggerOpenResult added in v0.2.0

type DebuggerOpenResult struct {
	TabId    int    `json:"tabId"`
	TargetId string `json:"targetId"`
}

type DebuggerOwnParams added in v0.2.0

type DebuggerOwnParams struct {
	Owned bool `json:"owned"`
	TabId int  `json:"tabId"`
}

type DebuggerOwnResult added in v0.2.0

type DebuggerOwnResult struct {
	Owned bool `json:"owned"`
}

type DebuggerRecordParams added in v0.2.0

type DebuggerRecordParams struct {
	Recording bool `json:"recording"`
	TabId     int  `json:"tabId"`
}

type DebuggerRecordResult added in v0.2.0

type DebuggerRecordResult struct {
	Recording bool `json:"recording"`
}

type DebuggerSendParams added in v0.2.0

type DebuggerSendParams struct {
	Method    string          `json:"method"`
	Params    json.RawMessage `json:"params,omitempty"`
	SessionId *string         `json:"sessionId,omitempty"`
	TabId     int             `json:"tabId"`
}

type DebuggerSendResult added in v0.2.0

type DebuggerSendResult struct {
	Result json.RawMessage `json:"result"`
}

type DebuggerTabNotification added in v0.2.0

type DebuggerTabNotification struct {
	TabId    int    `json:"tabId"`
	TargetId string `json:"targetId"`
	Title    string `json:"title"`
	URL      string `json:"url"`
}

type DebuggerTabRemovedNotification added in v0.2.0

type DebuggerTabRemovedNotification struct {
	TabId int `json:"tabId"`
}

type DebuggerTargetsParams added in v0.2.0

type DebuggerTargetsParams struct {
}

type DebuggerTargetsResult added in v0.2.0

type DebuggerTargetsResult struct {
	Targets []struct {
		TabId    int    `json:"tabId"`
		TargetId string `json:"targetId"`
		Title    string `json:"title"`
		URL      string `json:"url"`
	} `json:"targets"`
}

type DebuggerUserAgentParams added in v0.2.0

type DebuggerUserAgentParams struct {
}

type DebuggerUserAgentResult added in v0.2.0

type DebuggerUserAgentResult struct {
	UserAgent string `json:"userAgent"`
}

type DownloadsCancelParams added in v0.2.0

type DownloadsCancelParams struct {
	Confirm *bool `json:"confirm,omitempty"`
	Id      int   `json:"id"`
}

type DownloadsCancelResult added in v0.2.0

type DownloadsCancelResult struct {
	Id int `json:"id"`
}

type DownloadsDeleteFileParams added in v0.2.0

type DownloadsDeleteFileParams struct {
	Confirm *bool `json:"confirm,omitempty"`
	Id      int   `json:"id"`
}

type DownloadsDeleteFileResult added in v0.2.0

type DownloadsDeleteFileResult struct {
	Id int `json:"id"`
}

type DownloadsEraseParams added in v0.2.0

type DownloadsEraseParams struct {
	Confirm *bool `json:"confirm,omitempty"`
	Ids     []int `json:"ids"`
}

type DownloadsEraseResult added in v0.2.0

type DownloadsEraseResult struct {
	Ids []int `json:"ids"`
}

type DownloadsListParams added in v0.2.0

type DownloadsListParams struct {
	Limit *int    `json:"limit,omitempty"`
	Query *string `json:"query,omitempty"`
	State *string `json:"state,omitempty"`
}

type DownloadsListResult added in v0.2.0

type DownloadsListResult struct {
	ContentTrust string `json:"contentTrust"`
	HasMore      bool   `json:"hasMore"`
	Items        []struct {
		BytesReceived int    `json:"bytesReceived"`
		Exists        bool   `json:"exists"`
		Filename      string `json:"filename"`
		Id            int    `json:"id"`
		StartTime     int    `json:"startTime"`
		State         string `json:"state"`
		TotalBytes    int    `json:"totalBytes"`
		URL           string `json:"url"`
	} `json:"items"`
}

type DownloadsPauseParams added in v0.2.0

type DownloadsPauseParams struct {
	Id int `json:"id"`
}

type DownloadsPauseResult added in v0.2.0

type DownloadsPauseResult struct {
	Id int `json:"id"`
}

type DownloadsResumeParams added in v0.2.0

type DownloadsResumeParams struct {
	Id int `json:"id"`
}

type DownloadsResumeResult added in v0.2.0

type DownloadsResumeResult struct {
	Id int `json:"id"`
}

type DownloadsShowParams added in v0.2.0

type DownloadsShowParams struct {
	Id int `json:"id"`
}

type DownloadsShowResult added in v0.2.0

type DownloadsShowResult struct {
	Id int `json:"id"`
}

type DownloadsStartParams added in v0.2.0

type DownloadsStartParams struct {
	Filename *string `json:"filename,omitempty"`
	URL      string  `json:"url"`
}

type DownloadsStartResult added in v0.2.0

type DownloadsStartResult struct {
	Id int `json:"id"`
}

type ExtensionsDisableParams added in v0.2.0

type ExtensionsDisableParams struct {
	Confirm *bool  `json:"confirm,omitempty"`
	Id      string `json:"id"`
}

type ExtensionsEnableParams added in v0.2.0

type ExtensionsEnableParams struct {
	Id string `json:"id"`
}

type ExtensionsListParams added in v0.2.0

type ExtensionsListParams struct {
}

type ExtensionsListResult added in v0.2.0

type ExtensionsListResult struct {
	ContentTrust string `json:"contentTrust"`
	Items        []struct {
		Enabled     bool   `json:"enabled"`
		Id          string `json:"id"`
		InstallType string `json:"installType"`
		MayDisable  bool   `json:"mayDisable"`
		Name        string `json:"name"`
		Type        string `json:"type"`
		Version     string `json:"version"`
	} `json:"items"`
}

type ExtensionsSetEnabledResult added in v0.2.0

type ExtensionsSetEnabledResult struct {
	Enabled bool   `json:"enabled"`
	Id      string `json:"id"`
}

type ExtensionsUninstallParams added in v0.2.0

type ExtensionsUninstallParams struct {
	Id string `json:"id"`
}

type ExtensionsUninstallResult added in v0.2.0

type ExtensionsUninstallResult struct {
	ContentTrust string `json:"contentTrust"`
	Id           string `json:"id"`
	Name         string `json:"name"`
}

type HistoryClearParams added in v0.2.0

type HistoryClearParams struct {
	Confirm   *bool `json:"confirm,omitempty"`
	EndTime   *int  `json:"endTime,omitempty"`
	StartTime *int  `json:"startTime,omitempty"`
}

type HistoryClearResult added in v0.2.0

type HistoryClearResult struct {
	All bool `json:"all"`
}

type HistoryRemoveParams added in v0.2.0

type HistoryRemoveParams struct {
	Confirm *bool    `json:"confirm,omitempty"`
	Urls    []string `json:"urls"`
}

type HistoryRemoveResult added in v0.2.0

type HistoryRemoveResult struct {
	Urls []string `json:"urls"`
}

type HistorySearchParams added in v0.2.0

type HistorySearchParams struct {
	EndTime   *int    `json:"endTime,omitempty"`
	Limit     *int    `json:"limit,omitempty"`
	StartTime *int    `json:"startTime,omitempty"`
	Text      *string `json:"text,omitempty"`
}

type HistorySearchResult added in v0.2.0

type HistorySearchResult struct {
	ContentTrust string `json:"contentTrust"`
	HasMore      bool   `json:"hasMore"`
	Items        []struct {
		LastVisitTime int    `json:"lastVisitTime"`
		Title         string `json:"title"`
		URL           string `json:"url"`
		VisitCount    int    `json:"visitCount"`
	} `json:"items"`
}

type HistoryVisitsParams added in v0.2.0

type HistoryVisitsParams struct {
	Limit *int   `json:"limit,omitempty"`
	URL   string `json:"url"`
}

type HistoryVisitsResult added in v0.2.0

type HistoryVisitsResult struct {
	HasMore bool `json:"hasMore"`
	Visits  []struct {
		Transition string `json:"transition"`
		VisitTime  int    `json:"visitTime"`
	} `json:"visits"`
}

type Method

type Method string
const (
	MethodBookmarksAdd          Method = "bookmarks.add"
	MethodBookmarksEdit         Method = "bookmarks.edit"
	MethodBookmarksList         Method = "bookmarks.list"
	MethodBookmarksMkdir        Method = "bookmarks.mkdir"
	MethodBookmarksMove         Method = "bookmarks.move"
	MethodBookmarksRemove       Method = "bookmarks.remove"
	MethodBookmarksSearch       Method = "bookmarks.search"
	MethodBrowsingDataClear     Method = "browsingData.clear"
	MethodCookiesClear          Method = "cookies.clear"
	MethodCookiesGet            Method = "cookies.get"
	MethodCookiesList           Method = "cookies.list"
	MethodCookiesRemove         Method = "cookies.remove"
	MethodCookiesSet            Method = "cookies.set"
	MethodDebuggerBody          Method = "debugger.body"
	MethodDebuggerClose         Method = "debugger.close"
	MethodDebuggerDetach        Method = "debugger.detach"
	MethodDebuggerOpen          Method = "debugger.open"
	MethodDebuggerOwn           Method = "debugger.own"
	MethodDebuggerRecord        Method = "debugger.record"
	MethodDebuggerSend          Method = "debugger.send"
	MethodDebuggerTargets       Method = "debugger.targets"
	MethodDebuggerUserAgent     Method = "debugger.userAgent"
	MethodDownloadsCancel       Method = "downloads.cancel"
	MethodDownloadsDeleteFile   Method = "downloads.deleteFile"
	MethodDownloadsErase        Method = "downloads.erase"
	MethodDownloadsList         Method = "downloads.list"
	MethodDownloadsPause        Method = "downloads.pause"
	MethodDownloadsResume       Method = "downloads.resume"
	MethodDownloadsShow         Method = "downloads.show"
	MethodDownloadsStart        Method = "downloads.start"
	MethodExtensionsDisable     Method = "extensions.disable"
	MethodExtensionsEnable      Method = "extensions.enable"
	MethodExtensionsList        Method = "extensions.list"
	MethodExtensionsUninstall   Method = "extensions.uninstall"
	MethodHistoryClear          Method = "history.clear"
	MethodHistoryRemove         Method = "history.remove"
	MethodHistorySearch         Method = "history.search"
	MethodHistoryVisits         Method = "history.visits"
	MethodReadingListAdd        Method = "readingList.add"
	MethodReadingListList       Method = "readingList.list"
	MethodReadingListMarkRead   Method = "readingList.markRead"
	MethodReadingListRemove     Method = "readingList.remove"
	MethodRecentList            Method = "recent.list"
	MethodRecentRestore         Method = "recent.restore"
	MethodScriptsDeleteRequest  Method = "scripts.delete.request"
	MethodScriptsEditRequest    Method = "scripts.edit.request"
	MethodScriptsInstallRequest Method = "scripts.install.request"
	MethodScriptsList           Method = "scripts.list"
	MethodScriptsMetadataGet    Method = "scripts.metadata.get"
	MethodScriptsSourceGet      Method = "scripts.source.get"
	MethodScriptsSourceGrep     Method = "scripts.source.grep"
	MethodScriptsToggleRequest  Method = "scripts.toggle.request"
	MethodTabGroupsAdd          Method = "tabGroups.add"
	MethodTabGroupsCreate       Method = "tabGroups.create"
	MethodTabGroupsEdit         Method = "tabGroups.edit"
	MethodTabGroupsList         Method = "tabGroups.list"
	MethodTabGroupsUngroup      Method = "tabGroups.ungroup"
	MethodTabsActivate          Method = "tabs.activate"
	MethodTabsClose             Method = "tabs.close"
	MethodTabsCurrent           Method = "tabs.current"
	MethodTabsDuplicate         Method = "tabs.duplicate"
	MethodTabsList              Method = "tabs.list"
	MethodTabsMove              Method = "tabs.move"
	MethodTabsMute              Method = "tabs.mute"
	MethodTabsOpen              Method = "tabs.open"
	MethodTabsPin               Method = "tabs.pin"
	MethodTabsReload            Method = "tabs.reload"
	MethodTabsSelect            Method = "tabs.select"
	MethodTabsUnmute            Method = "tabs.unmute"
	MethodTabsUnpin             Method = "tabs.unpin"
	MethodWindowsClose          Method = "windows.close"
	MethodWindowsFocus          Method = "windows.focus"
	MethodWindowsList           Method = "windows.list"
	MethodWindowsOpen           Method = "windows.open"
	MethodWindowsState          Method = "windows.state"
)

type MethodMetadata

type MethodMetadata struct {
	Params, Result, Scope, Effect, Blocking, Level, Peer, MergeField string
	Internal                                                         bool
}

type Notification added in v0.2.0

type Notification string

Notification 是扩展发给 daemon 的通知方法名。

const (
	NotificationDebuggerDetached   Notification = "debugger.detached"
	NotificationDebuggerEvent      Notification = "debugger.event"
	NotificationDebuggerTabCreated Notification = "debugger.tabCreated"
	NotificationDebuggerTabRemoved Notification = "debugger.tabRemoved"
	NotificationDebuggerTabUpdated Notification = "debugger.tabUpdated"
)

type NotificationMetadata added in v0.2.0

type NotificationMetadata struct{ Params, Peer string }

type ReadingListAddParams added in v0.2.0

type ReadingListAddParams struct {
	Title *string `json:"title,omitempty"`
	URL   string  `json:"url"`
}

type ReadingListAddResult added in v0.2.0

type ReadingListAddResult struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

type ReadingListListParams added in v0.2.0

type ReadingListListParams struct {
	Limit *int  `json:"limit,omitempty"`
	Read  *bool `json:"read,omitempty"`
}

type ReadingListListResult added in v0.2.0

type ReadingListListResult struct {
	ContentTrust string `json:"contentTrust"`
	Entries      []struct {
		CreatedAt int    `json:"createdAt"`
		Read      bool   `json:"read"`
		Title     string `json:"title"`
		UpdatedAt int    `json:"updatedAt"`
		URL       string `json:"url"`
	} `json:"entries"`
	HasMore bool `json:"hasMore"`
}

type ReadingListMarkReadParams added in v0.2.0

type ReadingListMarkReadParams struct {
	Read *bool    `json:"read,omitempty"`
	Urls []string `json:"urls"`
}

type ReadingListMarkReadResult added in v0.2.0

type ReadingListMarkReadResult struct {
	Read bool     `json:"read"`
	Urls []string `json:"urls"`
}

type ReadingListRemoveParams added in v0.2.0

type ReadingListRemoveParams struct {
	Confirm *bool    `json:"confirm,omitempty"`
	Urls    []string `json:"urls"`
}

type ReadingListRemoveResult added in v0.2.0

type ReadingListRemoveResult struct {
	Urls []string `json:"urls"`
}

type RecentListParams added in v0.2.0

type RecentListParams struct {
	Limit *int `json:"limit,omitempty"`
}

type RecentListResult added in v0.2.0

type RecentListResult struct {
	ContentTrust string `json:"contentTrust"`
	HasMore      bool   `json:"hasMore"`
	Items        []struct {
		ClosedTime int    `json:"closedTime"`
		SessionId  string `json:"sessionId"`
		TabCount   *int   `json:"tabCount,omitempty"`
		Title      string `json:"title"`
		Type       string `json:"type"`
		URL        string `json:"url"`
	} `json:"items"`
}

type RecentRestoreParams added in v0.2.0

type RecentRestoreParams struct {
	SessionId *string `json:"sessionId,omitempty"`
}

type RecentRestoreResult added in v0.2.0

type RecentRestoreResult struct {
	TabId    *int `json:"tabId,omitempty"`
	WindowId *int `json:"windowId,omitempty"`
}

type ScriptMetadata

type ScriptMetadata struct {
	Author       *string  `json:"author,omitempty"`
	Connects     []string `json:"connects"`
	ContentTrust string   `json:"contentTrust"`
	Crontab      *string  `json:"crontab,omitempty"`
	Description  *string  `json:"description,omitempty"`
	Enabled      bool     `json:"enabled"`
	Excludes     []string `json:"excludes"`
	Grants       []string `json:"grants"`
	HasUpdateUrl bool     `json:"hasUpdateUrl"`
	Includes     []string `json:"includes"`
	Matches      []string `json:"matches"`
	Name         string   `json:"name"`
	Namespace    string   `json:"namespace"`
	Requires     []string `json:"requires"`
	Resources    []string `json:"resources"`
	RunAt        *string  `json:"runAt,omitempty"`
	Type         string   `json:"type"`
	UpdatedAt    string   `json:"updatedAt"`
	UUID         string   `json:"uuid"`
	Version      *string  `json:"version,omitempty"`
}

type ScriptMutationResult

type ScriptMutationResult struct {
	Enabled bool   `json:"enabled"`
	Name    string `json:"name"`
	UUID    string `json:"uuid"`
}

type ScriptSource

type ScriptSource struct {
	Code         string  `json:"code"`
	ContentTrust string  `json:"contentTrust"`
	EndLine      int     `json:"endLine"`
	Name         string  `json:"name"`
	SHA256       string  `json:"sha256"`
	StartLine    int     `json:"startLine"`
	TotalLines   int     `json:"totalLines"`
	UUID         string  `json:"uuid"`
	Version      *string `json:"version,omitempty"`
}

type ScriptSourceGrepResult

type ScriptSourceGrepResult struct {
	ContentTrust string `json:"contentTrust"`
	Matches      []struct {
		After      []string `json:"after"`
		Before     []string `json:"before"`
		Line       string   `json:"line"`
		LineNumber int      `json:"lineNumber"`
	} `json:"matches"`
	Name             string  `json:"name"`
	SHA256           string  `json:"sha256"`
	SkippedLongLines int     `json:"skippedLongLines"`
	TotalLines       int     `json:"totalLines"`
	TotalMatches     int     `json:"totalMatches"`
	Truncated        bool    `json:"truncated"`
	UUID             string  `json:"uuid"`
	Version          *string `json:"version,omitempty"`
}

type ScriptUUIDParams

type ScriptUUIDParams struct {
	UUID string `json:"uuid"`
}

type ScriptsDeleteResult

type ScriptsDeleteResult struct {
	Deleted bool   `json:"deleted"`
	UUID    string `json:"uuid"`
}

type ScriptsEditParams

type ScriptsEditParams struct {
	Edits []struct {
		NewText    string `json:"newText"`
		OldText    string `json:"oldText"`
		ReplaceAll *bool  `json:"replaceAll,omitempty"`
	} `json:"edits"`
	UUID string `json:"uuid"`
}

type ScriptsInstallParams

type ScriptsInstallParams struct {
	Code *string `json:"code,omitempty"`
	URL  *string `json:"url,omitempty"`
}

type ScriptsListParams

type ScriptsListParams struct {
}

type ScriptsListResult

type ScriptsListResult struct {
	ContentTrust string `json:"contentTrust"`
	Scripts      []struct {
		Author       *string `json:"author,omitempty"`
		Description  *string `json:"description,omitempty"`
		Enabled      bool    `json:"enabled"`
		HasUpdateUrl bool    `json:"hasUpdateUrl"`
		Name         string  `json:"name"`
		Namespace    string  `json:"namespace"`
		Type         string  `json:"type"`
		UpdatedAt    string  `json:"updatedAt"`
		UUID         string  `json:"uuid"`
		Version      *string `json:"version,omitempty"`
	} `json:"scripts"`
}

type ScriptsSourceGetParams

type ScriptsSourceGetParams struct {
	EndLine   *int   `json:"endLine,omitempty"`
	MaxBytes  *int   `json:"maxBytes,omitempty"`
	StartLine *int   `json:"startLine,omitempty"`
	UUID      string `json:"uuid"`
}

type ScriptsSourceGrepParams

type ScriptsSourceGrepParams struct {
	ContextLines *int    `json:"contextLines,omitempty"`
	IgnoreCase   *bool   `json:"ignoreCase,omitempty"`
	MaxMatches   *int    `json:"maxMatches,omitempty"`
	Mode         *string `json:"mode,omitempty"`
	Query        string  `json:"query"`
	UUID         string  `json:"uuid"`
}

type ScriptsToggleParams

type ScriptsToggleParams struct {
	Enable bool   `json:"enable"`
	UUID   string `json:"uuid"`
}

type ScriptsToggleResult

type ScriptsToggleResult struct {
	Enabled bool   `json:"enabled"`
	UUID    string `json:"uuid"`
}

type TabGroupsAddParams added in v0.2.0

type TabGroupsAddParams struct {
	GroupId int   `json:"groupId"`
	TabIds  []int `json:"tabIds"`
}

type TabGroupsAddResult added in v0.2.0

type TabGroupsAddResult struct {
	GroupId int   `json:"groupId"`
	TabIds  []int `json:"tabIds"`
}

type TabGroupsCreateParams added in v0.2.0

type TabGroupsCreateParams struct {
	Color  *string `json:"color,omitempty"`
	TabIds []int   `json:"tabIds"`
	Title  *string `json:"title,omitempty"`
}

type TabGroupsCreateResult added in v0.2.0

type TabGroupsCreateResult struct {
	GroupId int `json:"groupId"`
}

type TabGroupsEditParams added in v0.2.0

type TabGroupsEditParams struct {
	Collapsed *bool   `json:"collapsed,omitempty"`
	Color     *string `json:"color,omitempty"`
	GroupId   int     `json:"groupId"`
	Title     *string `json:"title,omitempty"`
}

type TabGroupsEditResult added in v0.2.0

type TabGroupsEditResult struct {
	GroupId int `json:"groupId"`
}

type TabGroupsListParams added in v0.2.0

type TabGroupsListParams struct {
	WindowId *int `json:"windowId,omitempty"`
}

type TabGroupsListResult added in v0.2.0

type TabGroupsListResult struct {
	ContentTrust string `json:"contentTrust"`
	Groups       []struct {
		Collapsed bool   `json:"collapsed"`
		Color     string `json:"color"`
		GroupId   int    `json:"groupId"`
		TabCount  int    `json:"tabCount"`
		Title     string `json:"title"`
		WindowId  int    `json:"windowId"`
	} `json:"groups"`
}

type TabGroupsUngroupParams added in v0.2.0

type TabGroupsUngroupParams struct {
	TabIds []int `json:"tabIds"`
}

type TabGroupsUngroupResult added in v0.2.0

type TabGroupsUngroupResult struct {
	TabIds []int `json:"tabIds"`
}

type TabsActivateParams added in v0.2.0

type TabsActivateParams struct {
	TabId int `json:"tabId"`
}

type TabsActivateResult added in v0.2.0

type TabsActivateResult struct {
	TabId    int `json:"tabId"`
	WindowId int `json:"windowId"`
}

type TabsCloseParams added in v0.2.0

type TabsCloseParams struct {
	TabIds []int `json:"tabIds"`
}

type TabsCloseResult added in v0.2.0

type TabsCloseResult struct {
	TabIds []int `json:"tabIds"`
}

type TabsCurrentParams added in v0.2.0

type TabsCurrentParams struct {
}

type TabsCurrentResult added in v0.2.0

type TabsCurrentResult struct {
	TabId    int `json:"tabId"`
	WindowId int `json:"windowId"`
}

type TabsDuplicateParams added in v0.2.0

type TabsDuplicateParams struct {
	TabId int `json:"tabId"`
}

type TabsIdsParams added in v0.2.0

type TabsIdsParams struct {
	TabIds []int `json:"tabIds"`
}

type TabsIdsResult added in v0.2.0

type TabsIdsResult struct {
	TabIds []int `json:"tabIds"`
}

type TabsListParams added in v0.2.0

type TabsListParams struct {
	WindowId *int `json:"windowId,omitempty"`
}

type TabsListResult added in v0.2.0

type TabsListResult struct {
	ContentTrust string `json:"contentTrust"`
	Tabs         []struct {
		Active   bool   `json:"active"`
		GroupId  int    `json:"groupId"`
		Pinned   bool   `json:"pinned"`
		TabId    int    `json:"tabId"`
		Title    string `json:"title"`
		URL      string `json:"url"`
		WindowId int    `json:"windowId"`
	} `json:"tabs"`
}

type TabsMoveParams added in v0.2.0

type TabsMoveParams struct {
	Index    *int  `json:"index,omitempty"`
	TabIds   []int `json:"tabIds"`
	WindowId *int  `json:"windowId,omitempty"`
}

type TabsMoveResult added in v0.2.0

type TabsMoveResult struct {
	TabIds []int `json:"tabIds"`
}

type TabsOpenParams added in v0.2.0

type TabsOpenParams struct {
	Background *bool  `json:"background,omitempty"`
	URL        string `json:"url"`
	WindowId   *int   `json:"windowId,omitempty"`
}

type TabsOpenResult added in v0.2.0

type TabsOpenResult struct {
	TabId int `json:"tabId"`
}

type TabsReloadParams added in v0.2.0

type TabsReloadParams struct {
	BypassCache *bool `json:"bypassCache,omitempty"`
	TabIds      []int `json:"tabIds"`
}

type WindowsCloseParams added in v0.2.0

type WindowsCloseParams struct {
	WindowIds []int `json:"windowIds"`
}

type WindowsCloseResult added in v0.2.0

type WindowsCloseResult struct {
	WindowIds []int `json:"windowIds"`
}

type WindowsFocusParams added in v0.2.0

type WindowsFocusParams struct {
	WindowId int `json:"windowId"`
}

type WindowsFocusResult added in v0.2.0

type WindowsFocusResult struct {
	WindowId int `json:"windowId"`
}

type WindowsListParams added in v0.2.0

type WindowsListParams struct {
}

type WindowsListResult added in v0.2.0

type WindowsListResult struct {
	Windows []struct {
		Focused  bool   `json:"focused"`
		State    string `json:"state"`
		TabCount int    `json:"tabCount"`
		WindowId int    `json:"windowId"`
	} `json:"windows"`
}

type WindowsOpenParams added in v0.2.0

type WindowsOpenParams struct {
	State *string  `json:"state,omitempty"`
	Urls  []string `json:"urls,omitempty"`
}

type WindowsOpenResult added in v0.2.0

type WindowsOpenResult struct {
	WindowId int `json:"windowId"`
}

type WindowsStateParams added in v0.2.0

type WindowsStateParams struct {
	State    string `json:"state"`
	WindowId int    `json:"windowId"`
}

type WindowsStateResult added in v0.2.0

type WindowsStateResult struct {
	State    string `json:"state"`
	WindowId int    `json:"windowId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL