UNPKG

@noves/intent-typescript-sdk

Version:

Noves Intent Typescript SDK

30 lines (29 loc) 905 B
export interface Intent { id: string; name: string; description: string; params: Record<string, any>; mode: "stream" | "value"; outputSchema?: { type: string; properties: Record<string, any>; }; mutable?: boolean; } export interface BaseSDKConfig { apiUrl: string; grpcUrl: string; } export interface ClientSDKConfig { } export interface ServerSDKConfig { } export declare class IntentEndpoints { static readonly API_URL = "https://intent-server.noves.fi"; static readonly WS_URL = "wss://intent-server.noves.fi/intents"; static readonly GRPC_URL = "https://grpc.intent-server.noves.fi"; } export declare const defaultClientConfig: ClientSDKConfig; export declare const defaultServerConfig: ServerSDKConfig; export declare function isStreamIntent(intent: Intent): boolean; export declare function isValueIntent(intent: Intent): boolean;