Variable KunkunExtManifestConst

KunkunExtManifest: ObjectSchema<
    {
        customUiCmds: OptionalSchema<
            ArraySchema<
                ObjectSchema<
                    {
                        cmds: ArraySchema<
                            ObjectSchema<
                                {
                                    type: UnionSchema<[(...), (...)], undefined>;
                                    value: StringSchema<undefined>;
                                },
                                undefined,
                            >,
                            "Commands to trigger the UI",
                        >;
                        description: OptionalSchema<
                            NullableSchema<StringSchema<"Description of the Command">, "">,
                            "",
                        >;
                        devMain: StringSchema<
                            "URL to load in development to support live reload, e.g. http://localhost:5173/",
                        >;
                        dist: StringSchema<"Dist folder to load, e.g. dist, build, out">;
                        icon: OptionalSchema<GenericSchema<schema.Icon>, undefined>;
                        main: StringSchema<"HTML file to load, e.g. dist/index.html">;
                        name: StringSchema<"Name of the command">;
                        platforms: OptionalSchema<
                            NullableSchema<
                                ArraySchema<
                                    EnumSchema<typeof OSPlatformEnum, undefined>,
                                    "Platforms available on. Leave empty for all platforms.",
                                >,
                                OSPlatformEnum[],
                            >,
                            OSPlatformEnum[],
                        >;
                        type: OptionalSchema<
                            EnumSchema<typeof CmdTypeEnum, undefined>,
                            UiIframe,
                        >;
                        window: OptionalSchema<
                            NullableSchema<
                                ObjectSchema<
                                    {
                                        alwaysOnBottom: OptionalSchema<(...), (...)>;
                                        alwaysOnTop: OptionalSchema<(...), (...)>;
                                        center: OptionalSchema<(...), (...)>;
                                        closable: OptionalSchema<(...), (...)>;
                                        contentProtected: OptionalSchema<(...), (...)>;
                                        decorations: OptionalSchema<(...), (...)>;
                                        focus: OptionalSchema<(...), (...)>;
                                        fullscreen: OptionalSchema<(...), (...)>;
                                        height: OptionalSchema<(...), (...)>;
                                        hiddenTitle: OptionalSchema<(...), (...)>;
                                        maxHeight: OptionalSchema<(...), (...)>;
                                        maximizable: OptionalSchema<(...), (...)>;
                                        maximized: OptionalSchema<(...), (...)>;
                                        maxWidth: OptionalSchema<(...), (...)>;
                                        minHeight: OptionalSchema<(...), (...)>;
                                        minimizable: OptionalSchema<(...), (...)>;
                                        minWidth: OptionalSchema<(...), (...)>;
                                        parent: OptionalSchema<(...), (...)>;
                                        resizable: OptionalSchema<(...), (...)>;
                                        shadow: OptionalSchema<(...), (...)>;
                                        skipTaskbar: OptionalSchema<(...), (...)>;
                                        tabbingIdentifier: OptionalSchema<(...), (...)>;
                                        title: OptionalSchema<(...), (...)>;
                                        titleBarStyle: OptionalSchema<(...), (...)>;
                                        transparent: OptionalSchema<(...), (...)>;
                                        visible: OptionalSchema<(...), (...)>;
                                        visibleOnAllWorkspaces: OptionalSchema<(...), (...)>;
                                        width: OptionalSchema<(...), (...)>;
                                        x: OptionalSchema<(...), (...)>;
                                        y: OptionalSchema<(...), (...)>;
                                    },
                                    undefined,
                                >,
                                undefined,
                            >,
                            undefined,
                        >;
                    },
                    undefined,
                >,
                "Custom UI Commands",
            >,
            undefined,
        >;
        demoImages: ArraySchema<
            StringSchema<"Demo images for the extension">,
            undefined,
        >;
        headlessCmds: OptionalSchema<
            ArraySchema<
                ObjectSchema<
                    {
                        cmds: ArraySchema<
                            ObjectSchema<
                                {
                                    type: UnionSchema<[(...), (...)], undefined>;
                                    value: StringSchema<undefined>;
                                },
                                undefined,
                            >,
                            "Commands to trigger the UI",
                        >;
                        description: OptionalSchema<
                            NullableSchema<StringSchema<"Description of the Command">, "">,
                            "",
                        >;
                        icon: OptionalSchema<GenericSchema<schema.Icon>, undefined>;
                        main: StringSchema<"HTML file to load, e.g. dist/index.html">;
                        name: StringSchema<"Name of the command">;
                        platforms: OptionalSchema<
                            NullableSchema<
                                ArraySchema<
                                    EnumSchema<typeof OSPlatformEnum, undefined>,
                                    "Platforms available on. Leave empty for all platforms.",
                                >,
                                OSPlatformEnum[],
                            >,
                            OSPlatformEnum[],
                        >;
                        type: OptionalSchema<
                            EnumSchema<typeof CmdTypeEnum, undefined>,
                            HeadlessWorker,
                        >;
                    },
                    undefined,
                >,
                "Headless Commands",
            >,
            undefined,
        >;
        icon: GenericSchema<schema.Icon>;
        identifier: StringSchema<
            "Unique identifier for the extension, must be the same as extension folder name",
        >;
        longDescription: StringSchema<
            "Long description of the extension (Will be displayed in store)",
        >;
        name: StringSchema<"Name of the extension (Human Readable)">;
        permissions: ArraySchema<
            UnionSchema<
                [
                    UnionSchema<
                        [
                            UnionSchema<
                                [
                                    LiteralSchema<"clipboard:read-all", undefined>,
                                    LiteralSchema<"clipboard:write-all", undefined>,
                                    LiteralSchema<"clipboard:read-text", undefined>,
                                    LiteralSchema<"clipboard:write-text", undefined>,
                                    LiteralSchema<"clipboard:read-image", undefined>,
                                ],
                                undefined,
                            >,
                            UnionSchema<
                                [
                                    LiteralSchema<"event:drag-drop", undefined>,
                                    LiteralSchema<"event:drag-enter", undefined>,
                                    LiteralSchema<"event:drag-leave", undefined>,
                                    LiteralSchema<"event:drag-over", undefined>,
                                    LiteralSchema<"event:window-blur", undefined>,
                                    LiteralSchema<"event:window-close-requested", undefined>,
                                    LiteralSchema<"event:window-focus", undefined>,
                                ],
                                undefined,
                            >,
                            UnionSchema<[LiteralSchema<"dialog:all", undefined>], undefined>,
                        ],
                        undefined,
                    >,
                    ObjectSchema<
                        {
                            allow: OptionalSchema<
                                ArraySchema<
                                    ObjectSchema<
                                        {
                                            cmd: ...;
                                            env: ...;
                                            ffi: ...;
                                            net: ...;
                                            path: ...;
                                            read: ...;
                                            run: ...;
                                            sys: ...;
                                            url: ...;
                                            write: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >,
                                undefined,
                            >;
                            deny: OptionalSchema<
                                ArraySchema<
                                    ObjectSchema<
                                        {
                                            cmd: ...;
                                            env: ...;
                                            ffi: ...;
                                            net: ...;
                                            path: ...;
                                            read: ...;
                                            run: ...;
                                            sys: ...;
                                            url: ...;
                                            write: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >,
                                undefined,
                            >;
                            permission: UnionSchema<
                                [
                                    UnionSchema<[(...), (...), (...)], undefined>,
                                    LiteralSchema<"fs:read-dir", undefined>,
                                    LiteralSchema<"fs:stat", undefined>,
                                    LiteralSchema<"fs:search", undefined>,
                                ],
                                undefined,
                            >;
                        },
                        undefined,
                    >,
                    ObjectSchema<
                        {
                            allow: OptionalSchema<
                                ArraySchema<
                                    ObjectSchema<
                                        {
                                            cmd: ...;
                                            env: ...;
                                            ffi: ...;
                                            net: ...;
                                            path: ...;
                                            read: ...;
                                            run: ...;
                                            sys: ...;
                                            url: ...;
                                            write: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >,
                                undefined,
                            >;
                            deny: OptionalSchema<
                                ArraySchema<
                                    ObjectSchema<
                                        {
                                            cmd: ...;
                                            env: ...;
                                            ffi: ...;
                                            net: ...;
                                            path: ...;
                                            read: ...;
                                            run: ...;
                                            sys: ...;
                                            url: ...;
                                            write: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >,
                                undefined,
                            >;
                            permission: UnionSchema<
                                [
                                    LiteralSchema<"open:url", undefined>,
                                    LiteralSchema<"open:file", undefined>,
                                    LiteralSchema<"open:folder", undefined>,
                                ],
                                undefined,
                            >;
                        },
                        undefined,
                    >,
                    ObjectSchema<
                        {
                            allow: OptionalSchema<
                                ArraySchema<
                                    ObjectSchema<
                                        {
                                            cmd: ...;
                                            env: ...;
                                            ffi: ...;
                                            net: ...;
                                            path: ...;
                                            read: ...;
                                            run: ...;
                                            sys: ...;
                                            url: ...;
                                            write: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >,
                                undefined,
                            >;
                            deny: OptionalSchema<
                                ArraySchema<
                                    ObjectSchema<
                                        {
                                            cmd: ...;
                                            env: ...;
                                            ffi: ...;
                                            net: ...;
                                            path: ...;
                                            read: ...;
                                            run: ...;
                                            sys: ...;
                                            url: ...;
                                            write: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >,
                                undefined,
                            >;
                            permission: UnionSchema<
                                [
                                    LiteralSchema<"shell:execute", undefined>,
                                    LiteralSchema<"shell:deno:execute", undefined>,
                                    LiteralSchema<"shell:spawn", undefined>,
                                    LiteralSchema<"shell:deno:spawn", undefined>,
                                    LiteralSchema<"shell:open", undefined>,
                                ],
                                undefined,
                            >;
                        },
                        undefined,
                    >,
                ],
                undefined,
            >,
            "Permissions Declared by the extension. e.g. clipboard-all. Not declared APIs will be blocked.",
        >;
        shortDescription: StringSchema<
            "Description of the extension (Will be displayed in store)",
        >;
        templateUiCmds: OptionalSchema<
            ArraySchema<
                ObjectSchema<
                    {
                        cmds: ArraySchema<
                            ObjectSchema<
                                {
                                    type: UnionSchema<[(...), (...)], undefined>;
                                    value: StringSchema<undefined>;
                                },
                                undefined,
                            >,
                            "Commands to trigger the UI",
                        >;
                        description: OptionalSchema<
                            NullableSchema<StringSchema<"Description of the Command">, "">,
                            "",
                        >;
                        icon: OptionalSchema<GenericSchema<schema.Icon>, undefined>;
                        main: StringSchema<"HTML file to load, e.g. dist/index.html">;
                        name: StringSchema<"Name of the command">;
                        platforms: OptionalSchema<
                            NullableSchema<
                                ArraySchema<
                                    EnumSchema<typeof OSPlatformEnum, undefined>,
                                    "Platforms available on. Leave empty for all platforms.",
                                >,
                                OSPlatformEnum[],
                            >,
                            OSPlatformEnum[],
                        >;
                        type: OptionalSchema<
                            EnumSchema<typeof CmdTypeEnum, undefined>,
                            UiWorker,
                        >;
                        window: OptionalSchema<
                            NullableSchema<
                                ObjectSchema<
                                    {
                                        alwaysOnBottom: OptionalSchema<(...), (...)>;
                                        alwaysOnTop: OptionalSchema<(...), (...)>;
                                        center: OptionalSchema<(...), (...)>;
                                        closable: OptionalSchema<(...), (...)>;
                                        contentProtected: OptionalSchema<(...), (...)>;
                                        decorations: OptionalSchema<(...), (...)>;
                                        focus: OptionalSchema<(...), (...)>;
                                        fullscreen: OptionalSchema<(...), (...)>;
                                        height: OptionalSchema<(...), (...)>;
                                        hiddenTitle: OptionalSchema<(...), (...)>;
                                        maxHeight: OptionalSchema<(...), (...)>;
                                        maximizable: OptionalSchema<(...), (...)>;
                                        maximized: OptionalSchema<(...), (...)>;
                                        maxWidth: OptionalSchema<(...), (...)>;
                                        minHeight: OptionalSchema<(...), (...)>;
                                        minimizable: OptionalSchema<(...), (...)>;
                                        minWidth: OptionalSchema<(...), (...)>;
                                        parent: OptionalSchema<(...), (...)>;
                                        resizable: OptionalSchema<(...), (...)>;
                                        shadow: OptionalSchema<(...), (...)>;
                                        skipTaskbar: OptionalSchema<(...), (...)>;
                                        tabbingIdentifier: OptionalSchema<(...), (...)>;
                                        title: OptionalSchema<(...), (...)>;
                                        titleBarStyle: OptionalSchema<(...), (...)>;
                                        transparent: OptionalSchema<(...), (...)>;
                                        visible: OptionalSchema<(...), (...)>;
                                        visibleOnAllWorkspaces: OptionalSchema<(...), (...)>;
                                        width: OptionalSchema<(...), (...)>;
                                        x: OptionalSchema<(...), (...)>;
                                        y: OptionalSchema<(...), (...)>;
                                    },
                                    undefined,
                                >,
                                undefined,
                            >,
                            undefined,
                        >;
                    },
                    undefined,
                >,
                "Template UI Commands",
            >,
            undefined,
        >;
    },
    undefined,
> = ...