Variable: WorkerSettingsSchemas
Makaio Framework / services-core/worker/schemas / WorkerSettingsSchemas
Variable: WorkerSettingsSchemas
Section titled “Variable: WorkerSettingsSchemas”
constWorkerSettingsSchemas:object
Defined in: ../../../packages/services/core/src/worker/schemas.ts:79
Schema-only worker definition CRUD subjects used by the settings layer.
Keeping these in the pure schema module avoids accidentally registering the
runtime worker namespace when settings code only needs the request/response
contracts for settings:worker.*.
Type Declaration
Section titled “Type Declaration”create
Section titled “create”create:
object
create.request
Section titled “create.request”request:
ZodObject<{adapterName:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;contextMode:ZodDefault<ZodEnum<{fork:"fork";fresh:"fresh"; }>>;disallowedTools:ZodOptional<ZodArray<ZodString>>;enabled:ZodDefault<ZodBoolean>;model:ZodOptional<ZodString>;name:ZodString;providerConfigId:ZodOptional<ZodString>;systemPrompt:ZodOptional<ZodString>; },$strip> =WorkerDefinitionCreateSchema
create.response
Section titled “create.response”response:
ZodObject<{id:ZodString; },$strip>
delete
Section titled “delete”delete:
object
delete.request
Section titled “delete.request”request:
ZodObject<{id:ZodString; },$strip>
delete.response
Section titled “delete.response”response:
ZodObject<{success:ZodBoolean; },$strip>
get:
object
get.request
Section titled “get.request”request:
ZodObject<{id:ZodOptional<ZodString>;name:ZodOptional<ZodString>; },$strip>
get.response
Section titled “get.response”response:
ZodObject<{adapterName:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;contextMode:ZodDefault<ZodEnum<{fork:"fork";fresh:"fresh"; }>>;createdAt:ZodNumber;disallowedTools:ZodOptional<ZodArray<ZodString>>;enabled:ZodDefault<ZodBoolean>;id:ZodString;model:ZodOptional<ZodString>;name:ZodString;providerConfigId:ZodOptional<ZodString>;scope:ZodString;systemPrompt:ZodOptional<ZodString>;updatedAt:ZodNumber; },$strip> =WorkerDefinitionSchema
list:
object
list.request
Section titled “list.request”request:
ZodObject<{ },$strip>
list.response
Section titled “list.response”response:
ZodObject<{definitions:ZodArray<ZodObject<{adapterName:ZodString;enabled:ZodBoolean;id:ZodString;model:ZodOptional<ZodString>;name:ZodString; },$strip>>; },$strip>
update
Section titled “update”update:
object
update.request
Section titled “update.request”request:
ZodObject<{adapterName:ZodOptional<ZodString>;allowedDirectories:ZodOptional<ZodOptional<ZodArray<ZodString>>>;allowedTools:ZodOptional<ZodOptional<ZodArray<ZodString>>>;contextMode:ZodOptional<ZodDefault<ZodEnum<{fork:"fork";fresh:"fresh"; }>>>;createdAt:ZodOptional<ZodNumber>;disallowedTools:ZodOptional<ZodOptional<ZodArray<ZodString>>>;enabled:ZodOptional<ZodDefault<ZodBoolean>>;id:ZodNonOptional<ZodOptional<ZodString>>;model:ZodOptional<ZodOptional<ZodString>>;name:ZodOptional<ZodString>;providerConfigId:ZodOptional<ZodOptional<ZodString>>;scope:ZodOptional<ZodString>;systemPrompt:ZodOptional<ZodOptional<ZodString>>;updatedAt:ZodOptional<ZodNumber>; },$strip> =WorkerDefinitionUpdateSchema
update.response
Section titled “update.response”response:
ZodObject<{success:ZodBoolean; },$strip>