@fleek-platform/agents-ui
Version:
The Fleek Platform Agents UI provides a simple interface for deploying, monitoring, and configuring your agents––making management straightforward
35 lines (34 loc) • 1.36 kB
TypeScript
export declare const AgentUIEventTypes: {
readonly JOURNEY_INIT: `agent_ui_wizard.${string}`;
readonly NAVIGATION: {
readonly TRIGGERED: `agent_ui_wizard.${string}`;
};
readonly FILE_UPLOAD: {
readonly TRIGGERED: `agent_ui_wizard.${string}`;
};
readonly SUBSCRIPTION: {
readonly PURCHASE_POLLING: {
readonly STARTED: `agent_ui_wizard.${string}`;
readonly COMPLETED: `agent_ui_wizard.${string}`;
};
};
readonly DEPLOYMENT: {
readonly VALIDATION: {
readonly STARTED: `agent_ui_wizard.${string}`;
readonly FAILED: `agent_ui_wizard.${string}`;
readonly SUCCESS: `agent_ui_wizard.${string}`;
};
readonly PROCESSING: {
readonly STARTED: `agent_ui_wizard.${string}`;
readonly FAILED: `agent_ui_wizard.${string}`;
readonly COMPLETED: `agent_ui_wizard.${string}`;
};
};
};
type ExtractEventTypes<T> = T extends {
[key: string]: infer U;
} ? U extends string ? U : ExtractEventTypes<U> : never;
export type AgentUIEventName = ExtractEventTypes<typeof AgentUIEventTypes>;
export type EventProperties = Record<string, string | number | boolean | undefined>;
export type CaptureEventFn = (eventName: AgentUIEventName, eventProperties?: EventProperties) => void;
export {};