@statezero/core
Version:
The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate
47 lines (46 loc) • 1.14 kB
TypeScript
/**
* CLI entry point.
*/
export function generateActions(): Promise<void>;
export type ActionProperty = {
type: string;
format?: string | undefined;
required?: boolean | undefined;
nullable?: boolean | undefined;
default?: any;
choices?: string[] | undefined;
min_length?: number | undefined;
max_length?: number | undefined;
min_value?: number | undefined;
max_value?: number | undefined;
items?: ActionProperty | undefined;
properties?: {
[x: string]: ActionProperty;
} | undefined;
description?: string | undefined;
};
export type ActionDefinition = {
action_name: string;
title: string;
class_name: string;
/**
* - The application group for the action.
*/
app: string | null;
/**
* - The action's documentation string.
*/
docstring: string | null;
input_properties: {
[x: string]: ActionProperty;
};
response_properties: {
[x: string]: ActionProperty;
};
permissions: string[];
};
export type BackendConfig = {
NAME: string;
API_URL: string;
GENERATED_ACTIONS_DIR: string;
};