Interface iPluginVersionConfig<T>

interface iPluginVersionConfig<T> {
    claimCreatorRedirect?: {
        toolUri?: string;
        tutorialUri?: string;
    };
    createdAt: T;
    duplicatesAllowed: boolean;
    finalized: boolean;
    lastUpdated: T;
    privateParamsSchema: (JsonBodyInputSchema | CustomTypeInputSchema)[];
    publicParamsSchema: (JsonBodyInputSchema | CustomTypeInputSchema)[];
    receiveStatusWebhook: boolean;
    requiresSessions: boolean;
    requiresUserInputs: boolean;
    reuseForNonIndexed: boolean;
    stateFunctionPreset: PluginPresetType;
    userInputRedirect?: {
        baseUri: string;
    };
    userInputsSchema: (JsonBodyInputSchema | CustomTypeInputSchema)[];
    verificationCall?: {
        hardcodedInputs: JsonBodyInputWithValue[];
        method:
            | "POST"
            | "GET"
            | "PUT"
            | "DELETE";
        passAddress?: boolean;
        passDiscord?: boolean;
        passEmail?: boolean;
        passGithub?: boolean;
        passGoogle?: boolean;
        passStrava?: boolean;
        passTwitch?: boolean;
        passTwitter?: boolean;
        postProcessingJs: string;
        uri: string;
    };
    version: T;
}

Type Parameters

Implemented by

Properties

claimCreatorRedirect?: {
    toolUri?: string;
    tutorialUri?: string;
}
createdAt: T

The time the version was created

duplicatesAllowed: boolean

Whether it makes sense for multiple of this plugin to be allowed

finalized: boolean

True if the version is finalized

lastUpdated: T

The time the version was last updated

privateParamsSchema: (JsonBodyInputSchema | CustomTypeInputSchema)[]
publicParamsSchema: (JsonBodyInputSchema | CustomTypeInputSchema)[]
receiveStatusWebhook: boolean

Whether the plugin should receive status webhooks

requiresSessions: boolean

This means that the plugin can be used w/o any session cookies or authentication.

requiresUserInputs: boolean

This is a flag for being compatible with auto-triggered claims, meaning no user interaction is needed.

reuseForNonIndexed: boolean

Reuse for nonindexed balances? Only applicable if is stateless, requires no user inputs, and requires no sessions.

stateFunctionPreset: PluginPresetType

Preset type for how the plugin state is to be maintained.

userInputRedirect?: {
    baseUri: string;
}
verificationCall?: {
    hardcodedInputs: JsonBodyInputWithValue[];
    method:
        | "POST"
        | "GET"
        | "PUT"
        | "DELETE";
    passAddress?: boolean;
    passDiscord?: boolean;
    passEmail?: boolean;
    passGithub?: boolean;
    passGoogle?: boolean;
    passStrava?: boolean;
    passTwitch?: boolean;
    passTwitter?: boolean;
    postProcessingJs: string;
    uri: string;
}

The verification URL

version: T

Version of the plugin