From fa9e7aab6d49f241a4eb30cc0e261f8ceb64af2f Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 28 Sep 2022 21:46:50 +0900 Subject: feat: add --allow-sys permission flag (#16028) --- cli/dts/lib.deno.ns.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 97d3fed04..095ae139a 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -183,6 +183,15 @@ declare namespace Deno { */ env?: "inherit" | boolean | string[]; + /** Specifies if the `sys` permission should be requested or revoked. + * If set to `"inherit"`, the current `sys` permission will be inherited. + * If set to `true`, the global `sys` permission will be requested. + * If set to `false`, the global `sys` permission will be revoked. + * + * Defaults to `false`. + */ + sys?: "inherit" | boolean | string[]; + /** Specifies if the `hrtime` permission should be requested or revoked. * If set to `"inherit"`, the current `hrtime` permission will be inherited. * If set to `true`, the global `hrtime` permission will be requested. @@ -2913,6 +2922,7 @@ declare namespace Deno { | "write" | "net" | "env" + | "sys" | "ffi" | "hrtime"; @@ -2957,6 +2967,19 @@ declare namespace Deno { variable?: string; } + /** @category Permissions */ + export interface SysPermissionDescriptor { + name: "sys"; + kind?: + | "loadavg" + | "hostname" + | "systemMemoryInfo" + | "networkInterfaces" + | "osRelease" + | "getUid" + | "getGid"; + } + /** @category Permissions */ export interface FfiPermissionDescriptor { name: "ffi"; @@ -2979,6 +3002,7 @@ declare namespace Deno { | WritePermissionDescriptor | NetPermissionDescriptor | EnvPermissionDescriptor + | SysPermissionDescriptor | FfiPermissionDescriptor | HrtimePermissionDescriptor; -- cgit v1.2.3