Variable ActorConfigSchemaConst
ActorConfigSchema: ZodEffects<
ZodEffects<
ZodEffects<
ZodObject<
{
actions: ZodDefault<
ZodRecord<
ZodString,
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>,
>;
connState: ZodOptional<ZodAny>;
createConnState: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
createState: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
createVars: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
db: ZodOptional<ZodAny>;
onBeforeActionResponse: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
onBeforeConnect: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
onConnect: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
onCreate: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
onDisconnect: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
onRequest: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
onSleep: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
onStateChange: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
onWake: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
onWebSocket: ZodOptional<
ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>,
>;
options: ZodDefault<
ZodObject<
{
actionTimeout: ZodDefault<ZodNumber>;
canHibernatWebSocket: ZodDefault<ZodUnion<[(...), (...)]>>;
connectionLivenessInterval: ZodDefault<ZodNumber>;
connectionLivenessTimeout: ZodDefault<ZodNumber>;
createConnStateTimeout: ZodDefault<ZodNumber>;
createVarsTimeout: ZodDefault<ZodNumber>;
noSleep: ZodDefault<ZodBoolean>;
onConnectTimeout: ZodDefault<ZodNumber>;
onStopTimeout: ZodDefault<ZodNumber>;
sleepTimeout: ZodDefault<ZodNumber>;
stateSaveInterval: ZodDefault<ZodNumber>;
waitUntilTimeout: ZodDefault<ZodNumber>;
},
"strict",
ZodTypeAny,
{
actionTimeout: number;
canHibernatWebSocket: | boolean
| ((...args: [(...), ...(...)[]]) => boolean);
connectionLivenessInterval: number;
connectionLivenessTimeout: number;
createConnStateTimeout: number;
createVarsTimeout: number;
noSleep: boolean;
onConnectTimeout: number;
onStopTimeout: number;
sleepTimeout: number;
stateSaveInterval: number;
waitUntilTimeout: number;
},
{
actionTimeout?: number;
canHibernatWebSocket?: | boolean
| ((...args: [(...), ...(...)[]]) => boolean);
connectionLivenessInterval?: number;
connectionLivenessTimeout?: number;
createConnStateTimeout?: number;
createVarsTimeout?: number;
noSleep?: boolean;
onConnectTimeout?: number;
onStopTimeout?: number;
sleepTimeout?: number;
stateSaveInterval?: number;
waitUntilTimeout?: number;
},
>,
>;
state: ZodOptional<ZodAny>;
vars: ZodOptional<ZodAny>;
},
"strict",
ZodTypeAny,
{
actions: Record<string, (...args: unknown[]) => unknown>;
connState?: any;
createConnState?: (...args: unknown[]) => unknown;
createState?: (...args: unknown[]) => unknown;
createVars?: (...args: unknown[]) => unknown;
db?: any;
onBeforeActionResponse?: (...args: unknown[]) => unknown;
onBeforeConnect?: (...args: unknown[]) => unknown;
onConnect?: (...args: unknown[]) => unknown;
onCreate?: (...args: unknown[]) => unknown;
onDisconnect?: (...args: unknown[]) => unknown;
onRequest?: (...args: unknown[]) => unknown;
onSleep?: (...args: unknown[]) => unknown;
onStateChange?: (...args: unknown[]) => unknown;
onWake?: (...args: unknown[]) => unknown;
onWebSocket?: (...args: unknown[]) => unknown;
options: {
actionTimeout: number;
canHibernatWebSocket:
| boolean
| ((...args: [Request, ...unknown[]]) => boolean);
connectionLivenessInterval: number;
connectionLivenessTimeout: number;
createConnStateTimeout: number;
createVarsTimeout: number;
noSleep: boolean;
onConnectTimeout: number;
onStopTimeout: number;
sleepTimeout: number;
stateSaveInterval: number;
waitUntilTimeout: number;
};
state?: any;
vars?: any;
},
{
actions?: Record<string, (...args: unknown[]) => unknown>;
connState?: any;
createConnState?: (...args: unknown[]) => unknown;
createState?: (...args: unknown[]) => unknown;
createVars?: (...args: unknown[]) => unknown;
db?: any;
onBeforeActionResponse?: (...args: unknown[]) => unknown;
onBeforeConnect?: (...args: unknown[]) => unknown;
onConnect?: (...args: unknown[]) => unknown;
onCreate?: (...args: unknown[]) => unknown;
onDisconnect?: (...args: unknown[]) => unknown;
onRequest?: (...args: unknown[]) => unknown;
onSleep?: (...args: unknown[]) => unknown;
onStateChange?: (...args: unknown[]) => unknown;
onWake?: (...args: unknown[]) => unknown;
onWebSocket?: (...args: unknown[]) => unknown;
options?: {
actionTimeout?: number;
canHibernatWebSocket?:
| boolean
| ((...args: [Request, ...unknown[]]) => boolean);
connectionLivenessInterval?: number;
connectionLivenessTimeout?: number;
createConnStateTimeout?: number;
createVarsTimeout?: number;
noSleep?: boolean;
onConnectTimeout?: number;
onStopTimeout?: number;
sleepTimeout?: number;
stateSaveInterval?: number;
waitUntilTimeout?: number;
};
state?: any;
vars?: any;
},
>,
{
actions: Record<string, (...args: unknown[]) => unknown>;
connState?: any;
createConnState?: (...args: unknown[]) => unknown;
createState?: (...args: unknown[]) => unknown;
createVars?: (...args: unknown[]) => unknown;
db?: any;
onBeforeActionResponse?: (...args: unknown[]) => unknown;
onBeforeConnect?: (...args: unknown[]) => unknown;
onConnect?: (...args: unknown[]) => unknown;
onCreate?: (...args: unknown[]) => unknown;
onDisconnect?: (...args: unknown[]) => unknown;
onRequest?: (...args: unknown[]) => unknown;
onSleep?: (...args: unknown[]) => unknown;
onStateChange?: (...args: unknown[]) => unknown;
onWake?: (...args: unknown[]) => unknown;
onWebSocket?: (...args: unknown[]) => unknown;
options: {
actionTimeout: number;
canHibernatWebSocket:
| boolean
| ((...args: [Request, ...unknown[]]) => boolean);
connectionLivenessInterval: number;
connectionLivenessTimeout: number;
createConnStateTimeout: number;
createVarsTimeout: number;
noSleep: boolean;
onConnectTimeout: number;
onStopTimeout: number;
sleepTimeout: number;
stateSaveInterval: number;
waitUntilTimeout: number;
};
state?: any;
vars?: any;
},
{
actions?: Record<string, (...args: unknown[]) => unknown>;
connState?: any;
createConnState?: (...args: unknown[]) => unknown;
createState?: (...args: unknown[]) => unknown;
createVars?: (...args: unknown[]) => unknown;
db?: any;
onBeforeActionResponse?: (...args: unknown[]) => unknown;
onBeforeConnect?: (...args: unknown[]) => unknown;
onConnect?: (...args: unknown[]) => unknown;
onCreate?: (...args: unknown[]) => unknown;
onDisconnect?: (...args: unknown[]) => unknown;
onRequest?: (...args: unknown[]) => unknown;
onSleep?: (...args: unknown[]) => unknown;
onStateChange?: (...args: unknown[]) => unknown;
onWake?: (...args: unknown[]) => unknown;
onWebSocket?: (...args: unknown[]) => unknown;
options?: {
actionTimeout?: number;
canHibernatWebSocket?:
| boolean
| ((...args: [Request, ...unknown[]]) => boolean);
connectionLivenessInterval?: number;
connectionLivenessTimeout?: number;
createConnStateTimeout?: number;
createVarsTimeout?: number;
noSleep?: boolean;
onConnectTimeout?: number;
onStopTimeout?: number;
sleepTimeout?: number;
stateSaveInterval?: number;
waitUntilTimeout?: number;
};
state?: any;
vars?: any;
},
>,
{
actions: Record<string, (...args: unknown[]) => unknown>;
connState?: any;
createConnState?: (...args: unknown[]) => unknown;
createState?: (...args: unknown[]) => unknown;
createVars?: (...args: unknown[]) => unknown;
db?: any;
onBeforeActionResponse?: (...args: unknown[]) => unknown;
onBeforeConnect?: (...args: unknown[]) => unknown;
onConnect?: (...args: unknown[]) => unknown;
onCreate?: (...args: unknown[]) => unknown;
onDisconnect?: (...args: unknown[]) => unknown;
onRequest?: (...args: unknown[]) => unknown;
onSleep?: (...args: unknown[]) => unknown;
onStateChange?: (...args: unknown[]) => unknown;
onWake?: (...args: unknown[]) => unknown;
onWebSocket?: (...args: unknown[]) => unknown;
options: {
actionTimeout: number;
canHibernatWebSocket:
| boolean
| ((...args: [Request, ...unknown[]]) => boolean);
connectionLivenessInterval: number;
connectionLivenessTimeout: number;
createConnStateTimeout: number;
createVarsTimeout: number;
noSleep: boolean;
onConnectTimeout: number;
onStopTimeout: number;
sleepTimeout: number;
stateSaveInterval: number;
waitUntilTimeout: number;
};
state?: any;
vars?: any;
},
{
actions?: Record<string, (...args: unknown[]) => unknown>;
connState?: any;
createConnState?: (...args: unknown[]) => unknown;
createState?: (...args: unknown[]) => unknown;
createVars?: (...args: unknown[]) => unknown;
db?: any;
onBeforeActionResponse?: (...args: unknown[]) => unknown;
onBeforeConnect?: (...args: unknown[]) => unknown;
onConnect?: (...args: unknown[]) => unknown;
onCreate?: (...args: unknown[]) => unknown;
onDisconnect?: (...args: unknown[]) => unknown;
onRequest?: (...args: unknown[]) => unknown;
onSleep?: (...args: unknown[]) => unknown;
onStateChange?: (...args: unknown[]) => unknown;
onWake?: (...args: unknown[]) => unknown;
onWebSocket?: (...args: unknown[]) => unknown;
options?: {
actionTimeout?: number;
canHibernatWebSocket?:
| boolean
| ((...args: [Request, ...unknown[]]) => boolean);
connectionLivenessInterval?: number;
connectionLivenessTimeout?: number;
createConnStateTimeout?: number;
createVarsTimeout?: number;
noSleep?: boolean;
onConnectTimeout?: number;
onStopTimeout?: number;
sleepTimeout?: number;
stateSaveInterval?: number;
waitUntilTimeout?: number;
};
state?: any;
vars?: any;
},
>,
{
actions: Record<string, (...args: unknown[]) => unknown>;
connState?: any;
createConnState?: (...args: unknown[]) => unknown;
createState?: (...args: unknown[]) => unknown;
createVars?: (...args: unknown[]) => unknown;
db?: any;
onBeforeActionResponse?: (...args: unknown[]) => unknown;
onBeforeConnect?: (...args: unknown[]) => unknown;
onConnect?: (...args: unknown[]) => unknown;
onCreate?: (...args: unknown[]) => unknown;
onDisconnect?: (...args: unknown[]) => unknown;
onRequest?: (...args: unknown[]) => unknown;
onSleep?: (...args: unknown[]) => unknown;
onStateChange?: (...args: unknown[]) => unknown;
onWake?: (...args: unknown[]) => unknown;
onWebSocket?: (...args: unknown[]) => unknown;
options: {
actionTimeout: number;
canHibernatWebSocket:
| boolean
| ((...args: [Request, ...unknown[]]) => boolean);
connectionLivenessInterval: number;
connectionLivenessTimeout: number;
createConnStateTimeout: number;
createVarsTimeout: number;
noSleep: boolean;
onConnectTimeout: number;
onStopTimeout: number;
sleepTimeout: number;
stateSaveInterval: number;
waitUntilTimeout: number;
};
state?: any;
vars?: any;
},
{
actions?: Record<string, (...args: unknown[]) => unknown>;
connState?: any;
createConnState?: (...args: unknown[]) => unknown;
createState?: (...args: unknown[]) => unknown;
createVars?: (...args: unknown[]) => unknown;
db?: any;
onBeforeActionResponse?: (...args: unknown[]) => unknown;
onBeforeConnect?: (...args: unknown[]) => unknown;
onConnect?: (...args: unknown[]) => unknown;
onCreate?: (...args: unknown[]) => unknown;
onDisconnect?: (...args: unknown[]) => unknown;
onRequest?: (...args: unknown[]) => unknown;
onSleep?: (...args: unknown[]) => unknown;
onStateChange?: (...args: unknown[]) => unknown;
onWake?: (...args: unknown[]) => unknown;
onWebSocket?: (...args: unknown[]) => unknown;
options?: {
actionTimeout?: number;
canHibernatWebSocket?:
| boolean
| ((...args: [Request, ...unknown[]]) => boolean);
connectionLivenessInterval?: number;
connectionLivenessTimeout?: number;
createConnStateTimeout?: number;
createVarsTimeout?: number;
noSleep?: boolean;
onConnectTimeout?: number;
onStopTimeout?: number;
sleepTimeout?: number;
stateSaveInterval?: number;
waitUntilTimeout?: number;
};
state?: any;
vars?: any;
},
> = ...