Interface UpdatePluginPayload

interface UpdatePluginPayload {
    approvedUsers?: string[];
    inviteCode?: string;
    metadata?: {
        createdBy?: string;
        description: string;
        documentation?: string;
        image: string;
        name: string;
        sourceCode?: string;
        supportLink?: string;
    };
    pluginId: string;
    removeSelfFromApprovedUsers?: boolean;
    rotatePluginSecret?: boolean;
    toPublish?: boolean;
    versionCreate?: PluginVersionConfigPayload;
    versionUpdates?: {
        config: Partial<PluginVersionConfigPayload>;
        version: NumberType;
    }[];
}

Properties

approvedUsers?: string[]

The addresses that are allowed to use this plugin.

inviteCode?: string

Invite code for the plugin

metadata?: {
    createdBy?: string;
    description: string;
    documentation?: string;
    image: string;
    name: string;
    sourceCode?: string;
    supportLink?: string;
}

Type declaration

  • OptionalcreatedBy?: string

    Creator of the plugin

  • description: string

    Description of the plugin

  • Optionaldocumentation?: string

    Documentation for the plugin

  • image: string

    The image of the plugin

  • name: string

    The name of the plugin

  • OptionalsourceCode?: string

    Source code for the plugin

  • OptionalsupportLink?: string

    Support link for the plugin

pluginId: string

The unique plugin ID

removeSelfFromApprovedUsers?: boolean

Remove self from approved users?

rotatePluginSecret?: boolean

Rotate the plugin secret?

toPublish?: boolean

To publish in the directory. This will trigger the start of the review process.

Create a new version

versionUpdates?: {
    config: Partial<PluginVersionConfigPayload>;
    version: NumberType;
}[]

Update an existing version

Type declaration