"description":"Target platforms this capability applies. By default all platforms are affected by this capability.",
"default":[
"linux",
"macOS",
"windows",
"android",
"iOS"
"type":[
"array",
"null"
],
"type":"array",
"items":{
"$ref":"#/definitions/Target"
}
@ -115,7 +110,7 @@
],
"properties":{
"urls":{
"description":"Remote domains this capability refers to. Can use glob patterns.",
"description":"Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n# Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",
"type":"array",
"items":{
"type":"string"
@ -2297,6 +2292,12 @@
"properties":{
"identifier":{
"oneOf":[
{
"type":"string",
"enum":[
"shell:default"
]
},
{
"description":"shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type":"string",
@ -2532,31 +2533,99 @@
]
},
{
"description":"clipboard-manager:allow-read -> Enables the read command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-read"
"clipboard-manager:default"
]
},
{
"description":"clipboard-manager:allow-clear -> Enables the clear command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-clear"
]
},
{
"description":"clipboard-manager:allow-read-image -> Enables the read_image command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-read-image"
]
},
{
"description":"clipboard-manager:allow-read-text -> Enables the read_text command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-read-text"
]
},
{
"description":"clipboard-manager:allow-write-html -> Enables the write_html command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-write-html"
]
},
{
"description":"clipboard-manager:allow-write-image -> Enables the write_image command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-write-image"
]
},
{
"description":"clipboard-manager:allow-write -> Enables the write command without any pre-configured scope.",
"description":"clipboard-manager:allow-write-text -> Enables the write_text command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-write"
"clipboard-manager:allow-write-text"
]
},
{
"description":"clipboard-manager:deny-read -> Denies the read command without any pre-configured scope.",
"description":"clipboard-manager:deny-clear -> Denies the clear command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-read"
"clipboard-manager:deny-clear"
]
},
{
"description":"clipboard-manager:deny-write -> Denies the write command without any pre-configured scope.",
"description":"clipboard-manager:deny-read-image -> Denies the read_image command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-write"
"clipboard-manager:deny-read-image"
]
},
{
"description":"clipboard-manager:deny-read-text -> Denies the read_text command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-read-text"
]
},
{
"description":"clipboard-manager:deny-write-html -> Denies the write_html command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-write-html"
]
},
{
"description":"clipboard-manager:deny-write-image -> Denies the write_image command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-write-image"
]
},
{
"description":"clipboard-manager:deny-write-text -> Denies the write_text command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-write-text"
]
},
{
"type":"string",
"enum":[
"dialog:default"
]
},
{
@ -4680,6 +4749,12 @@
"fs:write-files"
]
},
{
"type":"string",
"enum":[
"global-shortcut:default"
]
},
{
"description":"global-shortcut:allow-is-registered -> Enables the is_registered command without any pre-configured scope.",
"type":"string",
@ -4827,13 +4902,6 @@
"image:allow-from-bytes"
]
},
{
"description":"image:allow-from-ico-bytes -> Enables the from_ico_bytes command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-from-ico-bytes"
]
},
{
"description":"image:allow-from-path -> Enables the from_path command without any pre-configured scope.",
"type":"string",
@ -4841,20 +4909,6 @@
"image:allow-from-path"
]
},
{
"description":"image:allow-from-png-bytes -> Enables the from_png_bytes command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-from-png-bytes"
]
},
{
"description":"image:allow-height -> Enables the height command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-height"
]
},
{
"description":"image:allow-new -> Enables the new command without any pre-configured scope.",
"type":"string",
@ -4870,10 +4924,10 @@
]
},
{
"description":"image:allow-width -> Enables the width command without any pre-configured scope.",
"description":"image:allow-size -> Enables the size command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-width"
"image:allow-size"
]
},
{
@ -4883,13 +4937,6 @@
"image:deny-from-bytes"
]
},
{
"description":"image:deny-from-ico-bytes -> Denies the from_ico_bytes command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-from-ico-bytes"
]
},
{
"description":"image:deny-from-path -> Denies the from_path command without any pre-configured scope.",
"type":"string",
@ -4897,20 +4944,6 @@
"image:deny-from-path"
]
},
{
"description":"image:deny-from-png-bytes -> Denies the from_png_bytes command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-from-png-bytes"
]
},
{
"description":"image:deny-height -> Denies the height command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-height"
]
},
{
"description":"image:deny-new -> Denies the new command without any pre-configured scope.",
"type":"string",
@ -4926,10 +4959,10 @@
]
},
{
"description":"image:deny-width -> Denies the width command without any pre-configured scope.",
"description":"image:deny-size -> Denies the size command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-width"
"image:deny-size"
]
},
{
@ -5317,6 +5350,12 @@
"notification:deny-request-permission"
]
},
{
"type":"string",
"enum":[
"os:default"
]
},
{
"description":"os:allow-arch -> Enables the arch command without any pre-configured scope.",
"type":"string",
@ -5548,6 +5587,12 @@
"path:deny-resolve-directory"
]
},
{
"type":"string",
"enum":[
"process:default"
]
},
{
"description":"process:allow-exit -> Enables the exit command without any pre-configured scope.",
"type":"string",
@ -5597,6 +5642,12 @@
"resources:deny-close"
]
},
{
"type":"string",
"enum":[
"shell:default"
]
},
{
"description":"shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type":"string",
@ -5660,6 +5711,13 @@
"tray:default"
]
},
{
"description":"tray:allow-get-by-id -> Enables the get_by_id command without any pre-configured scope.",
"type":"string",
"enum":[
"tray:allow-get-by-id"
]
},
{
"description":"tray:allow-new -> Enables the new command without any pre-configured scope.",
"type":"string",
@ -5667,6 +5725,13 @@
"tray:allow-new"
]
},
{
"description":"tray:allow-remove-by-id -> Enables the remove_by_id command without any pre-configured scope.",
"type":"string",
"enum":[
"tray:allow-remove-by-id"
]
},
{
"description":"tray:allow-set-icon -> Enables the set_icon command without any pre-configured scope.",
"type":"string",
@ -5723,6 +5788,13 @@
"tray:allow-set-visible"
]
},
{
"description":"tray:deny-get-by-id -> Denies the get_by_id command without any pre-configured scope.",
"type":"string",
"enum":[
"tray:deny-get-by-id"
]
},
{
"description":"tray:deny-new -> Denies the new command without any pre-configured scope.",
"type":"string",
@ -5730,6 +5802,13 @@
"tray:deny-new"
]
},
{
"description":"tray:deny-remove-by-id -> Denies the remove_by_id command without any pre-configured scope.",
"type":"string",
"enum":[
"tray:deny-remove-by-id"
]
},
{
"description":"tray:deny-set-icon -> Denies the set_icon command without any pre-configured scope.",
"description":"Target platforms this capability applies. By default all platforms are affected by this capability.",
"default":[
"linux",
"macOS",
"windows",
"android",
"iOS"
"type":[
"array",
"null"
],
"type":"array",
"items":{
"$ref":"#/definitions/Target"
}
@ -108,7 +110,7 @@
],
"properties":{
"urls":{
"description":"Remote domains this capability refers to. Can use glob patterns.",
"description":"Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n# Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",
"type":"array",
"items":{
"type":"string"
@ -2290,6 +2292,12 @@
"properties":{
"identifier":{
"oneOf":[
{
"type":"string",
"enum":[
"shell:default"
]
},
{
"description":"shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type":"string",
@ -2503,6 +2511,12 @@
"app:deny-version"
]
},
{
"type":"string",
"enum":[
"barcode-scanner:default"
]
},
{
"description":"barcode-scanner:allow-cancel -> Enables the cancel command without any pre-configured scope.",
"type":"string",
@ -2587,6 +2601,12 @@
"barcode-scanner:deny-vibrate"
]
},
{
"type":"string",
"enum":[
"biometric:default"
]
},
{
"description":"biometric:allow-authenticate -> Enables the authenticate command without any pre-configured scope.",
"type":"string",
@ -2616,31 +2636,99 @@
]
},
{
"description":"clipboard-manager:allow-read -> Enables the read command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-read"
"clipboard-manager:default"
]
},
{
"description":"clipboard-manager:allow-write -> Enables the write command without any pre-configured scope.",
"description":"clipboard-manager:allow-clear -> Enables the clear command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-write"
"clipboard-manager:allow-clear"
]
},
{
"description":"clipboard-manager:deny-read -> Denies the read command without any pre-configured scope.",
"description":"clipboard-manager:allow-read-image -> Enables the read_image command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-read"
"clipboard-manager:allow-read-image"
]
},
{
"description":"clipboard-manager:deny-write -> Denies the write command without any pre-configured scope.",
"description":"clipboard-manager:allow-read-text -> Enables the read_text command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-write"
"clipboard-manager:allow-read-text"
]
},
{
"description":"clipboard-manager:allow-write-html -> Enables the write_html command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-write-html"
]
},
{
"description":"clipboard-manager:allow-write-image -> Enables the write_image command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-write-image"
]
},
{
"description":"clipboard-manager:allow-write-text -> Enables the write_text command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:allow-write-text"
]
},
{
"description":"clipboard-manager:deny-clear -> Denies the clear command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-clear"
]
},
{
"description":"clipboard-manager:deny-read-image -> Denies the read_image command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-read-image"
]
},
{
"description":"clipboard-manager:deny-read-text -> Denies the read_text command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-read-text"
]
},
{
"description":"clipboard-manager:deny-write-html -> Denies the write_html command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-write-html"
]
},
{
"description":"clipboard-manager:deny-write-image -> Denies the write_image command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-write-image"
]
},
{
"description":"clipboard-manager:deny-write-text -> Denies the write_text command without any pre-configured scope.",
"type":"string",
"enum":[
"clipboard-manager:deny-write-text"
]
},
{
"type":"string",
"enum":[
"dialog:default"
]
},
{
@ -4827,6 +4915,83 @@
"http:deny-fetch-send"
]
},
{
"description":"image:default -> Default permissions for the plugin.",
"type":"string",
"enum":[
"image:default"
]
},
{
"description":"image:allow-from-bytes -> Enables the from_bytes command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-from-bytes"
]
},
{
"description":"image:allow-from-path -> Enables the from_path command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-from-path"
]
},
{
"description":"image:allow-new -> Enables the new command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-new"
]
},
{
"description":"image:allow-rgba -> Enables the rgba command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-rgba"
]
},
{
"description":"image:allow-size -> Enables the size command without any pre-configured scope.",
"type":"string",
"enum":[
"image:allow-size"
]
},
{
"description":"image:deny-from-bytes -> Denies the from_bytes command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-from-bytes"
]
},
{
"description":"image:deny-from-path -> Denies the from_path command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-from-path"
]
},
{
"description":"image:deny-new -> Denies the new command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-new"
]
},
{
"description":"image:deny-rgba -> Denies the rgba command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-rgba"
]
},
{
"description":"image:deny-size -> Denies the size command without any pre-configured scope.",
"type":"string",
"enum":[
"image:deny-size"
]
},
{
"description":"log:default -> Allows the log command",
"type":"string",
@ -5163,6 +5328,12 @@
"menu:deny-text"
]
},
{
"type":"string",
"enum":[
"nfc:default"
]
},
{
"description":"nfc:allow-is-available -> Enables the is_available command without any pre-configured scope.",
"type":"string",
@ -5254,6 +5425,12 @@
"notification:deny-request-permission"
]
},
{
"type":"string",
"enum":[
"os:default"
]
},
{
"description":"os:allow-arch -> Enables the arch command without any pre-configured scope.",
"type":"string",
@ -5485,6 +5662,12 @@
"path:deny-resolve-directory"
]
},
{
"type":"string",
"enum":[
"process:default"
]
},
{
"description":"process:allow-exit -> Enables the exit command without any pre-configured scope.",
"type":"string",
@ -5534,6 +5717,12 @@
"resources:deny-close"
]
},
{
"type":"string",
"enum":[
"shell:default"
]
},
{
"description":"shell:allow-execute -> Enables the execute command without any pre-configured scope.",
"type":"string",
@ -5597,6 +5786,13 @@
"tray:default"
]
},
{
"description":"tray:allow-get-by-id -> Enables the get_by_id command without any pre-configured scope.",
"type":"string",
"enum":[
"tray:allow-get-by-id"
]
},
{
"description":"tray:allow-new -> Enables the new command without any pre-configured scope.",
"type":"string",
@ -5604,6 +5800,13 @@
"tray:allow-new"
]
},
{
"description":"tray:allow-remove-by-id -> Enables the remove_by_id command without any pre-configured scope.",
"type":"string",
"enum":[
"tray:allow-remove-by-id"
]
},
{
"description":"tray:allow-set-icon -> Enables the set_icon command without any pre-configured scope.",
"type":"string",
@ -5660,6 +5863,13 @@
"tray:allow-set-visible"
]
},
{
"description":"tray:deny-get-by-id -> Denies the get_by_id command without any pre-configured scope.",
"type":"string",
"enum":[
"tray:deny-get-by-id"
]
},
{
"description":"tray:deny-new -> Denies the new command without any pre-configured scope.",
"type":"string",
@ -5667,6 +5877,13 @@
"tray:deny-new"
]
},
{
"description":"tray:deny-remove-by-id -> Denies the remove_by_id command without any pre-configured scope.",
"type":"string",
"enum":[
"tray:deny-remove-by-id"
]
},
{
"description":"tray:deny-set-icon -> Denies the set_icon command without any pre-configured scope.",
if("__TAURI__"inwindow){var__TAURI_PLUGIN_CLIPBOARDMANAGER__=function(e){"use strict";varr;asyncfunctiont(e,r={},t){returnwindow.__TAURI_INTERNALS__.invoke(e,r,t)}"function"==typeofSuppressedError&&SuppressedError;classn{getrid(){returnfunction(e,r,t,n){if("a"===t&&!n)thrownewTypeError("Private accessor was defined without a getter");if("function"==typeofr?e!==r||!n:!r.has(e))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?n:"a"===t?n.call(e):n?n.value:r.get(e)}(this,r,"f")}constructor(e){r.set(this,void0),function(e,r,t,n,a){if("m"===n)thrownewTypeError("Private method is not writable");if("a"===n&&!a)thrownewTypeError("Private accessor was defined without a setter");if("function"==typeofr?e!==r||!a:!r.has(e))thrownewTypeError("Cannot write private member to an object whose class did not declare it");"a"===n?a.call(e,t):a?a.value=t:r.set(e,t)}(this,r,e,"f")}asyncclose(){returnt("plugin:resources|close",{rid:this.rid})}}r=newWeakMap;classaextendsn{constructor(e){super(e)}staticasyncnew(e,r,n){returnt("plugin:image|new",{rgba:i(e),width:r,height:n}).then((e=>newa(e)))}staticasyncfromBytes(e){returnt("plugin:image|from_bytes",{bytes:i(e)}).then((e=>newa(e)))}staticasyncfromPath(e){returnt("plugin:image|from_path",{path:e}).then((e=>newa(e)))}asyncrgba(){returnt("plugin:image|rgba",{rid:this.rid}).then((e=>newUint8Array(e)))}asyncsize(){returnt("plugin:image|size",{rid:this.rid})}}functioni(e){returnnull==e?null:"string"==typeofe?e:einstanceofUint8Array?Array.from(e):einstanceofArrayBuffer?Array.from(newUint8Array(e)):einstanceofa?e.rid:e}returne.clear=asyncfunction(){awaitt("plugin:clipboard-manager|clear")},e.readImage=asyncfunction(){returnawaitt("plugin:clipboard-manager|read_image").then((e=>newa(e)))},e.readText=asyncfunction(){return(awaitt("plugin:clipboard-manager|read_text")).plainText.text},e.writeHtml=asyncfunction(e,r){returnt("plugin:clipboard-manager|write_html",{data:{html:{html:e,altHtml:r}}})},e.writeImage=asyncfunction(e){returnt("plugin:clipboard-manager|write_image",{data:{image:{image:i(e)}}})},e.writeText=asyncfunction(e,r){returnt("plugin:clipboard-manager|write_text",{data:{plainText:{label:r?.label,text:e}}})},e}({});Object.defineProperty(window.__TAURI__,"clipboardManager",{value:__TAURI_PLUGIN_CLIPBOARDMANAGER__})}