Skip to content

Variable: ApprovalSubjects

Makaio Framework


Makaio Framework / contracts / ApprovalSubjects

const ApprovalSubjects: BusSubjects<FlatSubjectDefinitions<"approval", { request: { request: ZodObject<{ adapterName: ZodString; agentId: ZodString; args: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; capabilities: ZodOptional<ZodReadonly<ZodArray<ZodEnum<{ file.delete: …; file.read: …; file.write: …; network.request: …; process.manage: …; search.content: …; search.files: …; search.web: …; shell.execute: …; }>>>>; createdAt: ZodNumber; personaName: ZodOptional<ZodString>; profileName: ZodOptional<ZodString>; reasoning: ZodOptional<ZodString>; requestId: ZodString; riskLevel: ZodOptional<ZodEnum<{ destructive: "destructive"; neutral: "neutral"; safe: "safe"; }>>; sessionId: ZodString; toolCallId: ZodString; toolName: ZodOptional<ZodString>; }, $strip>; response: ZodDiscriminatedUnion<[ZodObject<{ action: ZodLiteral<"allow">; updatedInput: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; }, $strip>, ZodObject<{ action: ZodLiteral<"deny">; message: ZodOptional<ZodString>; }, $strip>], "action">; }; resolveEnrichedPolicy: { request: ZodObject<{ personaId: ZodOptional<ZodString>; profileId: ZodOptional<ZodString>; toolName: ZodString; }, $strip>; response: ZodObject<{ action: ZodEnum<{ allow: "allow"; ask: "ask"; deny: "deny"; }>; allowedDirectories: ZodOptional<ZodArray<ZodString>>; personaName: ZodOptional<ZodString>; profileName: ZodOptional<ZodString>; riskLevel: ZodOptional<ZodEnum<{ destructive: "destructive"; neutral: "neutral"; safe: "safe"; }>>; }, $strip>; }; }>, "approval"> = ApprovalNamespace.subjects

Defined in: ../../../packages/contracts/src/approval/namespace.ts:8

Typed bus subjects for the approval namespace.