Interface CreatePluginPayload

interface CreatePluginPayload {
    approvedUsers?: string[];
    initialVersion: PluginVersionConfigPayload;
    inviteCode?: string;
    metadata: {
        createdBy: string;
        description: string;
        documentation?: string;
        image: string;
        name: string;
        sourceCode?: string;
        supportLink?: string;
    };
    pluginId: string;
    toPublish: boolean;
}

Properties

approvedUsers?: string[]

The addresses that are allowed to use this plugin.

The initial version configuration

inviteCode?: string

Invite code for the plugin

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

Type declaration

  • createdBy: string

    The 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

toPublish: boolean

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