Variable ExtPublishConst

ExtPublish: ObjectSchema<
    {
        api_version: NullableSchema<StringSchema<undefined>, undefined>;
        cmd_count: NumberSchema<undefined>;
        created_at: StringSchema<undefined>;
        demo_images: ArraySchema<StringSchema<undefined>, undefined>;
        downloads: NumberSchema<undefined>;
        extension_state: PicklistSchema<string[], undefined>;
        id: NumberSchema<undefined>;
        identifier: StringSchema<undefined>;
        manifest: ObjectSchema<
            {
                customUiCmds: OptionalSchema<
                    ArraySchema<
                        ObjectSchema<
                            {
                                cmds: ArraySchema<
                                    ObjectSchema<{ type: ...; value: ... }, undefined>,
                                    "Commands to trigger the UI",
                                >;
                                description: OptionalSchema<
                                    NullableSchema<StringSchema<(...)>, "">,
                                    undefined,
                                >;
                                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<
                                    ObjectSchema<
                                        {
                                            bgColor: ...;
                                            darkInvert: ...;
                                            hexColor: ...;
                                            invert: ...;
                                            type: ...;
                                            value: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >;
                                main: StringSchema<"HTML file to load, e.g. dist/index.html">;
                                name: StringSchema<"Name of the command">;
                                platforms: OptionalSchema<
                                    ArraySchema<
                                        PicklistSchema<(...), (...)>,
                                        "Platforms available on. Leave empty for all platforms.",
                                    >,
                                    undefined,
                                >;
                                type: OptionalSchema<PicklistSchema<(...)[], undefined>, string>;
                                window: OptionalSchema<
                                    NullableSchema<ObjectSchema<(...), (...)>, undefined>,
                                    undefined,
                                >;
                            },
                            undefined,
                        >,
                        "Custom UI Commands",
                    >,
                    undefined,
                >;
                demoImages: ArraySchema<
                    StringSchema<"Demo images for the extension">,
                    undefined,
                >;
                headlessCmds: OptionalSchema<
                    ArraySchema<
                        ObjectSchema<
                            {
                                cmds: ArraySchema<
                                    ObjectSchema<{ type: ...; value: ... }, undefined>,
                                    "Commands to trigger the UI",
                                >;
                                description: OptionalSchema<
                                    NullableSchema<StringSchema<(...)>, "">,
                                    undefined,
                                >;
                                icon: OptionalSchema<
                                    ObjectSchema<
                                        {
                                            bgColor: ...;
                                            darkInvert: ...;
                                            hexColor: ...;
                                            invert: ...;
                                            type: ...;
                                            value: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >;
                                main: StringSchema<"HTML file to load, e.g. dist/index.html">;
                                name: StringSchema<"Name of the command">;
                                platforms: OptionalSchema<
                                    ArraySchema<
                                        PicklistSchema<(...), (...)>,
                                        "Platforms available on. Leave empty for all platforms.",
                                    >,
                                    undefined,
                                >;
                                type: OptionalSchema<PicklistSchema<(...)[], undefined>, string>;
                            },
                            undefined,
                        >,
                        "Headless Commands",
                    >,
                    undefined,
                >;
                icon: ObjectSchema<
                    {
                        bgColor: OptionalSchema<StringSchema<undefined>, undefined>;
                        darkInvert: OptionalSchema<BooleanSchema<undefined>, undefined>;
                        hexColor: OptionalSchema<StringSchema<undefined>, undefined>;
                        invert: OptionalSchema<BooleanSchema<undefined>, undefined>;
                        type: PicklistSchema<string[], undefined>;
                        value: StringSchema<undefined>;
                    },
                    undefined,
                >;
                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<[(...), (...)], undefined>,
                                    UnionSchema<
                                        [(...), (...), (...), (...), (...), (...), (...)],
                                        undefined,
                                    >,
                                    UnionSchema<[(...)], undefined>,
                                ],
                                undefined,
                            >,
                            ObjectSchema<
                                {
                                    allow: OptionalSchema<ArraySchema<(...), (...)>, undefined>;
                                    deny: OptionalSchema<ArraySchema<(...), (...)>, undefined>;
                                    permission: UnionSchema<[(...), (...), (...), (...)], undefined>;
                                },
                                undefined,
                            >,
                            ObjectSchema<
                                {
                                    allow: OptionalSchema<ArraySchema<(...), (...)>, undefined>;
                                    deny: OptionalSchema<ArraySchema<(...), (...)>, undefined>;
                                    permission: UnionSchema<[(...), (...), (...)], undefined>;
                                },
                                undefined,
                            >,
                            ObjectSchema<
                                {
                                    allow: OptionalSchema<ArraySchema<(...), (...)>, undefined>;
                                    deny: OptionalSchema<ArraySchema<(...), (...)>, undefined>;
                                    permission: UnionSchema<
                                        [(...), (...), (...), (...), (...)],
                                        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: ...; value: ... }, undefined>,
                                    "Commands to trigger the UI",
                                >;
                                description: OptionalSchema<
                                    NullableSchema<StringSchema<(...)>, "">,
                                    undefined,
                                >;
                                icon: OptionalSchema<
                                    ObjectSchema<
                                        {
                                            bgColor: ...;
                                            darkInvert: ...;
                                            hexColor: ...;
                                            invert: ...;
                                            type: ...;
                                            value: ...;
                                        },
                                        undefined,
                                    >,
                                    undefined,
                                >;
                                main: StringSchema<"HTML file to load, e.g. dist/index.html">;
                                name: StringSchema<"Name of the command">;
                                platforms: OptionalSchema<
                                    ArraySchema<
                                        PicklistSchema<(...), (...)>,
                                        "Platforms available on. Leave empty for all platforms.",
                                    >,
                                    undefined,
                                >;
                                type: OptionalSchema<PicklistSchema<(...)[], undefined>, string>;
                                window: OptionalSchema<
                                    NullableSchema<ObjectSchema<(...), (...)>, undefined>,
                                    undefined,
                                >;
                            },
                            undefined,
                        >,
                        "Template UI Commands",
                    >,
                    undefined,
                >;
            },
            undefined,
        >;
        metadata: ObjectSchema<
            {
                git: OptionalSchema<
                    ObjectSchema<
                        {
                            commit: StringSchema<"Commit hash of the extension">;
                            githubActionInvocationId: StringSchema<"GitHub action invocation ID">;
                            owner: StringSchema<"GitHub owner of the extension">;
                            repo: StringSchema<"GitHub repo of the extension">;
                            repoNodeId: OptionalSchema<
                                StringSchema<
                                    "GitHub repo node ID of the extension (a string, not the number id)",
                                >,
                                undefined,
                            >;
                            workflowPath: StringSchema<"Workflow path of the extension">;
                        },
                        undefined,
                    >,
                    undefined,
                >;
                rekorLogIndex: OptionalSchema<
                    StringSchema<"Rekor log index of the extension">,
                    undefined,
                >;
                source: OptionalSchema<
                    StringSchema<"Source of the extension (e.g. url to package)">,
                    undefined,
                >;
                sourceType: OptionalSchema<
                    PicklistSchema<("jsr" | "npm")[], undefined>,
                    undefined,
                >;
            },
            undefined,
        >;
        name: StringSchema<undefined>;
        package_json: ObjectSchema<
            {
                author: OptionalSchema<
                    UnionSchema<
                        [
                            ObjectSchema<
                                {
                                    email: OptionalSchema<NullableSchema<(...), (...)>, undefined>;
                                    name: StringSchema<"GitHub Username">;
                                    url: OptionalSchema<NullableSchema<(...), (...)>, undefined>;
                                },
                                undefined,
                            >,
                            StringSchema<"GitHub Username">,
                        ],
                        undefined,
                    >,
                    undefined,
                >;
                contributors: OptionalSchema<
                    ArraySchema<
                        UnionSchema<
                            [
                                ObjectSchema<
                                    {
                                        email: OptionalSchema<(...), (...)>;
                                        name: StringSchema<(...)>;
                                        url: OptionalSchema<(...), (...)>;
                                    },
                                    undefined,
                                >,
                                StringSchema<"GitHub Username">,
                            ],
                            undefined,
                        >,
                        "Contributors of the extension",
                    >,
                    undefined,
                >;
                dependencies: OptionalSchema<
                    RecordSchema<
                        StringSchema<undefined>,
                        StringSchema<undefined>,
                        undefined,
                    >,
                    undefined,
                >;
                draft: OptionalSchema<
                    BooleanSchema<
                        "Whether the extension is a draft, draft will not be published",
                    >,
                    undefined,
                >;
                files: OptionalSchema<
                    ArraySchema<
                        StringSchema<"Files to include in the extension. e.g. ['dist']">,
                        undefined,
                    >,
                    undefined,
                >;
                kunkun: ObjectSchema<
                    {
                        customUiCmds: OptionalSchema<
                            ArraySchema<
                                ObjectSchema<
                                    {
                                        cmds: ArraySchema<(...), (...)>;
                                        description: OptionalSchema<(...), (...)>;
                                        devMain: StringSchema<(...)>;
                                        dist: StringSchema<(...)>;
                                        icon: OptionalSchema<(...), (...)>;
                                        main: StringSchema<(...)>;
                                        name: StringSchema<(...)>;
                                        platforms: OptionalSchema<(...), (...)>;
                                        type: OptionalSchema<(...), (...)>;
                                        window: OptionalSchema<(...), (...)>;
                                    },
                                    undefined,
                                >,
                                "Custom UI Commands",
                            >,
                            undefined,
                        >;
                        demoImages: ArraySchema<
                            StringSchema<"Demo images for the extension">,
                            undefined,
                        >;
                        headlessCmds: OptionalSchema<
                            ArraySchema<
                                ObjectSchema<
                                    {
                                        cmds: ArraySchema<(...), (...)>;
                                        description: OptionalSchema<(...), (...)>;
                                        icon: OptionalSchema<(...), (...)>;
                                        main: StringSchema<(...)>;
                                        name: StringSchema<(...)>;
                                        platforms: OptionalSchema<(...), (...)>;
                                        type: OptionalSchema<(...), (...)>;
                                    },
                                    undefined,
                                >,
                                "Headless Commands",
                            >,
                            undefined,
                        >;
                        icon: ObjectSchema<
                            {
                                bgColor: OptionalSchema<StringSchema<undefined>, undefined>;
                                darkInvert: OptionalSchema<BooleanSchema<undefined>, undefined>;
                                hexColor: OptionalSchema<StringSchema<undefined>, undefined>;
                                invert: OptionalSchema<BooleanSchema<undefined>, undefined>;
                                type: PicklistSchema<string[], undefined>;
                                value: StringSchema<undefined>;
                            },
                            undefined,
                        >;
                        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<[(...), (...), (...)], undefined>,
                                    ObjectSchema<{ allow: ...; deny: ...; permission: ... }, undefined>,
                                    ObjectSchema<{ allow: ...; deny: ...; permission: ... }, undefined>,
                                    ObjectSchema<{ allow: ...; deny: ...; permission: ... }, 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<(...), (...)>;
                                        description: OptionalSchema<(...), (...)>;
                                        icon: OptionalSchema<(...), (...)>;
                                        main: StringSchema<(...)>;
                                        name: StringSchema<(...)>;
                                        platforms: OptionalSchema<(...), (...)>;
                                        type: OptionalSchema<(...), (...)>;
                                        window: OptionalSchema<(...), (...)>;
                                    },
                                    undefined,
                                >,
                                "Template UI Commands",
                            >,
                            undefined,
                        >;
                    },
                    undefined,
                >;
                license: UnionSchema<
                    [
                        LiteralSchema<"AGPL-3.0-only", undefined>,
                        LiteralSchema<"Apache-2.0", undefined>,
                        LiteralSchema<"BSD-2-Clause", undefined>,
                        LiteralSchema<"BSD-3-Clause", undefined>,
                        LiteralSchema<"BSL-1.0", undefined>,
                    ],
                    undefined,
                >;
                name: StringSchema<
                    "Package name for the extension (just a regular npm package name)",
                >;
                readme: OptionalSchema<
                    StringSchema<"Custom README.md path of the extension">,
                    undefined,
                >;
                repository: OptionalSchema<
                    UnionSchema<
                        [
                            StringSchema<"URL of the repository">,
                            ObjectSchema<
                                {
                                    directory: OptionalSchema<StringSchema<(...)>, undefined>;
                                    type: StringSchema<"Type of the repository">;
                                    url: StringSchema<"URL of the repository">;
                                },
                                undefined,
                            >,
                        ],
                        undefined,
                    >,
                    undefined,
                >;
                version: StringSchema<"Version of the extension">;
            },
            undefined,
        >;
        readme: NullableSchema<StringSchema<undefined>, undefined>;
        shasum: StringSchema<undefined>;
        tarball_path: StringSchema<undefined>;
        tarball_size: NumberSchema<undefined>;
        unpacked_size: NullableSchema<NumberSchema<undefined>, undefined>;
        version: StringSchema<undefined>;
    },
    undefined,
> = ...