UNPKG

agentlang

Version:

The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans

372 lines 11.5 kB
import { z } from 'zod'; export declare const ConfigSchema: z.ZodObject<{ service: z.ZodDefault<z.ZodObject<{ port: z.ZodNumber; host: z.ZodOptional<z.ZodString>; httpFileHandling: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { port: number; httpFileHandling: boolean; host?: string | undefined; }, { port: number; host?: string | undefined; httpFileHandling?: boolean | undefined; }>>; store: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"postgres">; host: z.ZodDefault<z.ZodString>; username: z.ZodDefault<z.ZodString>; password: z.ZodDefault<z.ZodString>; dbname: z.ZodDefault<z.ZodString>; port: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { type: "postgres"; port: number; host: string; username: string; password: string; dbname: string; }, { type: "postgres"; port?: number | undefined; host?: string | undefined; username?: string | undefined; password?: string | undefined; dbname?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"mysql">; host: z.ZodDefault<z.ZodString>; username: z.ZodDefault<z.ZodString>; password: z.ZodDefault<z.ZodString>; dbname: z.ZodDefault<z.ZodString>; port: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { type: "mysql"; port: number; host: string; username: string; password: string; dbname: string; }, { type: "mysql"; port?: number | undefined; host?: string | undefined; username?: string | undefined; password?: string | undefined; dbname?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"sqlite">; dbname: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "sqlite"; dbname?: string | undefined; }, { type: "sqlite"; dbname?: string | undefined; }>]>>; integrations: z.ZodOptional<z.ZodObject<{ host: z.ZodString; username: z.ZodOptional<z.ZodString>; password: z.ZodOptional<z.ZodString>; connections: z.ZodRecord<z.ZodString, z.ZodString>; }, "strip", z.ZodTypeAny, { host: string; connections: Record<string, string>; username?: string | undefined; password?: string | undefined; }, { host: string; connections: Record<string, string>; username?: string | undefined; password?: string | undefined; }>>; graphql: z.ZodOptional<z.ZodObject<{ enabled: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { enabled: boolean; }, { enabled?: boolean | undefined; }>>; rbac: z.ZodOptional<z.ZodObject<{ enabled: z.ZodDefault<z.ZodBoolean>; roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { enabled: boolean; roles?: string[] | undefined; }, { roles?: string[] | undefined; enabled?: boolean | undefined; }>>; auth: z.ZodOptional<z.ZodObject<{ enabled: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { enabled: boolean; }, { enabled?: boolean | undefined; }>>; auditTrail: z.ZodOptional<z.ZodObject<{ enabled: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { enabled: boolean; }, { enabled?: boolean | undefined; }>>; monitoring: z.ZodOptional<z.ZodObject<{ enabled: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { enabled: boolean; }, { enabled?: boolean | undefined; }>>; authentication: z.ZodOptional<z.ZodDiscriminatedUnion<"service", [z.ZodObject<{ service: z.ZodLiteral<"okta">; superuserEmail: z.ZodString; domain: z.ZodString; cookieDomain: z.ZodOptional<z.ZodString>; authServer: z.ZodDefault<z.ZodString>; clientSecret: z.ZodString; apiToken: z.ZodString; scope: z.ZodDefault<z.ZodString>; cookieTtlMs: z.ZodDefault<z.ZodNumber>; introspect: z.ZodDefault<z.ZodBoolean>; authorizeRedirectUrl: z.ZodString; clientUrl: z.ZodString; roleClaim: z.ZodDefault<z.ZodString>; defaultRole: z.ZodDefault<z.ZodString>; clientId: z.ZodString; }, "strip", z.ZodTypeAny, { service: "okta"; superuserEmail: string; domain: string; authServer: string; clientSecret: string; apiToken: string; scope: string; cookieTtlMs: number; introspect: boolean; authorizeRedirectUrl: string; clientUrl: string; roleClaim: string; defaultRole: string; clientId: string; cookieDomain?: string | undefined; }, { service: "okta"; superuserEmail: string; domain: string; clientSecret: string; apiToken: string; authorizeRedirectUrl: string; clientUrl: string; clientId: string; cookieDomain?: string | undefined; authServer?: string | undefined; scope?: string | undefined; cookieTtlMs?: number | undefined; introspect?: boolean | undefined; roleClaim?: string | undefined; defaultRole?: string | undefined; }>, z.ZodObject<{ service: z.ZodLiteral<"cognito">; superuserEmail: z.ZodString; superuserPassword: z.ZodOptional<z.ZodString>; isIdentityStore: z.ZodDefault<z.ZodBoolean>; userPoolId: z.ZodString; clientId: z.ZodString; whitelistEnabled: z.ZodDefault<z.ZodBoolean>; disableUserSessions: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { service: "cognito"; superuserEmail: string; clientId: string; isIdentityStore: boolean; userPoolId: string; whitelistEnabled: boolean; disableUserSessions: boolean; superuserPassword?: string | undefined; }, { service: "cognito"; superuserEmail: string; clientId: string; userPoolId: string; superuserPassword?: string | undefined; isIdentityStore?: boolean | undefined; whitelistEnabled?: boolean | undefined; disableUserSessions?: boolean | undefined; }>]>>; openapi: z.ZodOptional<z.ZodArray<z.ZodObject<{ specUrl: z.ZodString; baseUrl: z.ZodOptional<z.ZodString>; name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; specUrl: string; baseUrl?: string | undefined; }, { name: string; specUrl: string; baseUrl?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { service: { port: number; httpFileHandling: boolean; host?: string | undefined; }; store?: { type: "postgres"; port: number; host: string; username: string; password: string; dbname: string; } | { type: "mysql"; port: number; host: string; username: string; password: string; dbname: string; } | { type: "sqlite"; dbname?: string | undefined; } | undefined; integrations?: { host: string; connections: Record<string, string>; username?: string | undefined; password?: string | undefined; } | undefined; graphql?: { enabled: boolean; } | undefined; rbac?: { enabled: boolean; roles?: string[] | undefined; } | undefined; auth?: { enabled: boolean; } | undefined; auditTrail?: { enabled: boolean; } | undefined; monitoring?: { enabled: boolean; } | undefined; authentication?: { service: "okta"; superuserEmail: string; domain: string; authServer: string; clientSecret: string; apiToken: string; scope: string; cookieTtlMs: number; introspect: boolean; authorizeRedirectUrl: string; clientUrl: string; roleClaim: string; defaultRole: string; clientId: string; cookieDomain?: string | undefined; } | { service: "cognito"; superuserEmail: string; clientId: string; isIdentityStore: boolean; userPoolId: string; whitelistEnabled: boolean; disableUserSessions: boolean; superuserPassword?: string | undefined; } | undefined; openapi?: { name: string; specUrl: string; baseUrl?: string | undefined; }[] | undefined; }, { service?: { port: number; host?: string | undefined; httpFileHandling?: boolean | undefined; } | undefined; store?: { type: "postgres"; port?: number | undefined; host?: string | undefined; username?: string | undefined; password?: string | undefined; dbname?: string | undefined; } | { type: "mysql"; port?: number | undefined; host?: string | undefined; username?: string | undefined; password?: string | undefined; dbname?: string | undefined; } | { type: "sqlite"; dbname?: string | undefined; } | undefined; integrations?: { host: string; connections: Record<string, string>; username?: string | undefined; password?: string | undefined; } | undefined; graphql?: { enabled?: boolean | undefined; } | undefined; rbac?: { roles?: string[] | undefined; enabled?: boolean | undefined; } | undefined; auth?: { enabled?: boolean | undefined; } | undefined; auditTrail?: { enabled?: boolean | undefined; } | undefined; monitoring?: { enabled?: boolean | undefined; } | undefined; authentication?: { service: "okta"; superuserEmail: string; domain: string; clientSecret: string; apiToken: string; authorizeRedirectUrl: string; clientUrl: string; clientId: string; cookieDomain?: string | undefined; authServer?: string | undefined; scope?: string | undefined; cookieTtlMs?: number | undefined; introspect?: boolean | undefined; roleClaim?: string | undefined; defaultRole?: string | undefined; } | { service: "cognito"; superuserEmail: string; clientId: string; userPoolId: string; superuserPassword?: string | undefined; isIdentityStore?: boolean | undefined; whitelistEnabled?: boolean | undefined; disableUserSessions?: boolean | undefined; } | undefined; openapi?: { name: string; specUrl: string; baseUrl?: string | undefined; }[] | undefined; }>; export type Config = z.infer<typeof ConfigSchema>; export declare let AppConfig: Config | undefined; export declare function setAppConfig(config: Config): Config; export declare function enableInternalMonitoring(): void; export declare function disableInternalMonitoring(): void; export declare function isMonitoringEnabled(): boolean; //# sourceMappingURL=state.d.ts.map