@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
55 lines (54 loc) • 1.45 kB
TypeScript
import { SchemaValues } from '@sprucelabs/schema';
import AbstractAction from '../../AbstractAction';
import { FeatureActionResponse } from '../../features.types';
declare const optionsSchema: {
id: string;
description: string;
fields: {
type: {
label: string;
type: "select";
hint: string;
options: {
choices: {
value: string;
label: string;
}[];
};
};
name: {
type: "text";
label: string;
isRequired: true;
};
};
};
type OptionsSchema = typeof optionsSchema;
type Options = SchemaValues<OptionsSchema>;
export default class RegisterAction extends AbstractAction<OptionsSchema> {
optionsSchema: {
id: string;
description: string;
fields: {
type: {
label: string;
type: "select";
hint: string;
options: {
choices: {
value: string;
label: string;
}[];
};
};
name: {
type: "text";
label: string;
isRequired: true;
};
};
};
invocationMessage: string;
execute(options: Options): Promise<FeatureActionResponse>;
}
export {};