Variable: ClientSchemas
Makaio Framework / contracts/client / ClientSchemas
Variable: ClientSchemas
Section titled “Variable: ClientSchemas”
constClientSchemas:object
Defined in: ../../../packages/contracts/src/client/schemas.ts:54
Client namespace schemas.
Type Declaration
Section titled “Type Declaration”account.observe
Section titled “account.observe”account.observe:
object=ClientAccountObserveSchema
account.observe.request
Section titled “account.observe.request”request:
ZodObject<{clientId:ZodString;displayLabel:ZodOptional<ZodString>;identifiers:ZodArray<ZodObject<{scheme:ZodString;strength:ZodEnum<{alias:"alias";strong:"strong"; }>;value:ZodString; },$strip>>;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodOptional<ZodNumber>; },$strip>
account.observe.response
Section titled “account.observe.response”response:
ZodObject<{clientAccountId:ZodString;displayLabel:ZodOptional<ZodString>; },$strip>
install
Section titled “install”install:
object=ClientInstallSchema
install.request
Section titled “install.request”request:
ZodObject<{clientId:ZodString;version:ZodOptional<ZodString>; },$strip>
install.response
Section titled “install.response”response:
ZodObject<{jobId:ZodString;requestedVersion:ZodNullable<ZodString>;resolvedVersion:ZodNullable<ZodString>; },$strip>
installJob.completed
Section titled “installJob.completed”installJob.completed:
ZodObject<{activeVersion:ZodNullable<ZodString>;clientId:ZodString;error:ZodOptional<ZodObject<{code:ZodOptional<ZodString>;message:ZodString; },$strip>>;installPath:ZodOptional<ZodString>;jobId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;status:ZodEnum<{error:"error";success:"success"; }>;strategy:ZodEnum<{github-release:"github-release";manifest-bucket:"manifest-bucket";npm:"npm"; }>;version:ZodOptional<ZodString>; },$strip> =ClientInstallCompletedSchema
installJob.progress
Section titled “installJob.progress”installJob.progress:
ZodObject<{activeAfterCompletion:ZodOptional<ZodBoolean>;clientId:ZodString;installPath:ZodOptional<ZodString>;jobId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;progress:ZodNullable<ZodNumber>;stage:ZodEnum<{activating:"activating";downloading:"downloading";extracting:"extracting";installing:"installing";post-install:"post-install";resolving:"resolving";verifying:"verifying"; }>;strategy:ZodEnum<{github-release:"github-release";manifest-bucket:"manifest-bucket";npm:"npm"; }>;version:ZodOptional<ZodString>; },$strip> =ClientInstallProgressSchema
list:
object=ClientListSchema
list.request
Section titled “list.request”request:
ZodObject<{forceRefresh:ZodOptional<ZodBoolean>; },$strip>
list.response
Section titled “list.response”response:
ZodObject<{clients:ZodArray<ZodObject<{activeVersion:ZodNullable<ZodString>;clientId:ZodString;installedVersions:ZodArray<ZodObject<{installedAt:ZodNumber;installPath:ZodString;isActive:ZodBoolean;version:ZodString; },$strip>>;latestAvailableVersion:ZodNullable<ZodString>;latestVersionLastCheckedAt:ZodNullable<ZodNumber>;latestVersionSourceStatus:ZodEnum<{cached:"cached";error:"error";fresh:"fresh"; }>;updateAvailable:ZodBoolean; },$strip>>; },$strip>
resolveBinary
Section titled “resolveBinary”resolveBinary:
object=ClientResolveBinarySchema
resolveBinary.request
Section titled “resolveBinary.request”request:
ZodObject<{clientId:ZodString;harnessId:ZodOptional<ZodString>;preferSource:ZodOptional<ZodEnum<{global:"global";managed:"managed"; }>>;projectDir:ZodOptional<ZodString>;sessionId:ZodOptional<ZodString>; },$strip>
resolveBinary.response
Section titled “resolveBinary.response”response:
ZodObject<{binaryPath:ZodNullable<ZodString>;configDir:ZodNullable<ZodString>;env:ZodRecord<ZodString,ZodString>;source:ZodEnum<{global:"global";managed:"managed"; }>;version:ZodNullable<ZodString>; },$strip> =ClientExecutionContextSchema
runtime.observe
Section titled “runtime.observe”runtime.observe:
object=ClientRuntimeObserveSchema
runtime.observe.request
Section titled “runtime.observe.request”request:
ZodObject<{adapterSessionId:ZodOptional<ZodString>;argv:ZodOptional<ZodArray<ZodString>>;clientId:ZodString;cwd:ZodOptional<ZodString>;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;parentPid:ZodOptional<ZodNumber>;pid:ZodOptional<ZodNumber>;sessionId:ZodOptional<ZodString>;source:ZodObject<{layer:ZodEnum<{adapter:"adapter";cli-wrapper:"cli-wrapper";client-hook:"client-hook";statusline:"statusline";supervisor:"supervisor"; }>;producer:ZodString; },$strip>;supervisorSessionId:ZodOptional<ZodString>; },$strip>
runtime.observe.response
Section titled “runtime.observe.response”response:
ZodObject<{clientRuntimeId:ZodString;created:ZodBoolean;promoted:ZodBoolean; },$strip>
runtime.started
Section titled “runtime.started”runtime.started:
ZodObject<{adapterSessionId:ZodOptional<ZodString>;argv:ZodOptional<ZodArray<ZodString>>;clientId:ZodString;clientRuntimeId:ZodString;cwd:ZodOptional<ZodString>;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;parentPid:ZodOptional<ZodNumber>;pid:ZodOptional<ZodNumber>;sessionId:ZodOptional<ZodString>;source:ZodObject<{layer:ZodEnum<{adapter:"adapter";cli-wrapper:"cli-wrapper";client-hook:"client-hook";statusline:"statusline";supervisor:"supervisor"; }>;producer:ZodString; },$strip>;status:ZodEnum<{observed:"observed";started:"started"; }>;supervisorSessionId:ZodOptional<ZodString>; },$strip> =ClientRuntimeStartedSchema
scan:
object
scan.request
Section titled “scan.request”request:
ZodObject<{targets:ZodOptional<ZodArray<ZodObject<{binaryName:ZodString;clientId:ZodString;minimumVersion:ZodOptional<ZodString>; },$strip>>>; },$strip>
scan.response
Section titled “scan.response”response:
ZodObject<{results:ZodArray<ZodObject<{clientId:ZodString;found:ZodBoolean;version:ZodOptional<ZodString>;warningMessage:ZodOptional<ZodString>; },$strip>>; },$strip>
session.account.observe
Section titled “session.account.observe”session.account.observe:
object=ClientSessionAccountObserveSchema
session.account.observe.request
Section titled “session.account.observe.request”request:
ZodObject<{clientId:ZodString;kind:ZodString;locator:ZodDiscriminatedUnion<[ZodObject<{kind:ZodLiteral<"session">;sessionId:ZodString; },$strip>,ZodObject<{adapterSessionId:ZodString;kind:ZodLiteral<"adapter-session">; },$strip>,ZodObject<{adapterSessionId:ZodString;kind:ZodLiteral<"both">;sessionId:ZodString; },$strip>],"kind">;observedAt:ZodNumber;payload:ZodType<Record<string,unknown>,unknown,$ZodTypeInternals<Record<string,unknown>,unknown>>;source:ZodString; },$strip>
session.account.observe.response
Section titled “session.account.observe.response”response:
ZodObject<{changed:ZodBoolean;clientAccountId:ZodNullable<ZodString>;handled:ZodBoolean;sessionId:ZodNullable<ZodString>; },$strip>
session.started
Section titled “session.started”session.started:
ZodObject<{adapterSessionId:ZodOptional<ZodString>;clientId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;sessionId:ZodOptional<ZodString>;source:ZodString; },$strip> =ClientSessionStartedSchema
session.tool.post
Section titled “session.tool.post”session.tool.post:
ZodObject<{adapterSessionId:ZodOptional<ZodString>;clientId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;sessionId:ZodOptional<ZodString>;source:ZodString;success:ZodOptional<ZodBoolean>;toolCallId:ZodOptional<ZodString>;toolName:ZodOptional<ZodString>; },$strip> =ClientSessionToolPostSchema
session.tool.pre
Section titled “session.tool.pre”session.tool.pre:
ZodObject<{adapterSessionId:ZodOptional<ZodString>;clientId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;sessionId:ZodOptional<ZodString>;source:ZodString;toolCallId:ZodOptional<ZodString>;toolName:ZodOptional<ZodString>; },$strip> =ClientSessionToolPreSchema
session.turn.completed
Section titled “session.turn.completed”session.turn.completed:
ZodObject<{adapterSessionId:ZodOptional<ZodString>;clientId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;sessionId:ZodOptional<ZodString>;source:ZodString; },$strip> =ClientSessionTurnCompletedSchema
session.turn.started
Section titled “session.turn.started”session.turn.started:
ZodObject<{adapterSessionId:ZodOptional<ZodString>;clientId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;sessionId:ZodOptional<ZodString>;source:ZodString; },$strip> =ClientSessionTurnStartedSchema
session.userPrompt.submitted
Section titled “session.userPrompt.submitted”session.userPrompt.submitted:
ZodObject<{adapterSessionId:ZodOptional<ZodString>;clientId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;prompt:ZodOptional<ZodString>;sessionId:ZodOptional<ZodString>;source:ZodString; },$strip> =ClientSessionUserPromptSubmittedSchema
setActive
Section titled “setActive”setActive:
object=ClientSetActiveSchema
setActive.request
Section titled “setActive.request”request:
ZodObject<{clientId:ZodString;version:ZodString; },$strip>
setActive.response
Section titled “setActive.response”response:
ZodObject<{activeVersion:ZodString;clientId:ZodString; },$strip>
uninstall
Section titled “uninstall”uninstall:
object=ClientUninstallSchema
uninstall.request
Section titled “uninstall.request”request:
ZodObject<{clientId:ZodString;version:ZodString; },$strip>
uninstall.response
Section titled “uninstall.response”response:
ZodObject<{activeVersion:ZodNullable<ZodString>;clientId:ZodString;removedVersion:ZodString; },$strip>
update
Section titled “update”update:
object=ClientUpdateSchema
update.request
Section titled “update.request”request:
ZodObject<{clientId:ZodString; },$strip>
update.response
Section titled “update.response”response:
ZodObject<{jobId:ZodString;resolvedVersion:ZodNullable<ZodString>; },$strip>
usage.ingest
Section titled “usage.ingest”usage.ingest:
object=ClientUsageIngestSchema
usage.ingest.request
Section titled “usage.ingest.request”request:
ZodObject<{account:ZodObject<{displayLabel:ZodOptional<ZodString>;identifiers:ZodArray<ZodObject<{scheme:ZodString;strength:ZodEnum<{alias: …;strong: …; }>;value:ZodString; },$strip>>; },$strip>;clientId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;source:ZodString;usage:ZodObject<{windows:ZodArray<ZodObject<{key:ZodString;label:ZodString;resetsAt:ZodOptional<ZodNumber>;usedPercentage:ZodNumber; },$strip>>; },$strip>; },$strip>
usage.ingest.response
Section titled “usage.ingest.response”response:
ZodObject<{clientAccountId:ZodString;snapshot:ZodObject<{clientAccountId:ZodString;clientId:ZodString;displayLabel:ZodOptional<ZodString>;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;source:ZodString;usage:ZodObject<{windows:ZodArray<ZodObject<{key: …;label: …;resetsAt: …;usedPercentage: …; },$strip>>; },$strip>; },$strip>; },$strip>
usage.snapshot
Section titled “usage.snapshot”usage.snapshot:
ZodObject<{clientAccountId:ZodString;clientId:ZodString;displayLabel:ZodOptional<ZodString>;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;source:ZodString;usage:ZodObject<{windows:ZodArray<ZodObject<{key:ZodString;label:ZodString;resetsAt:ZodOptional<ZodNumber>;usedPercentage:ZodNumber; },$strip>>; },$strip>; },$strip> =ClientUsageSnapshotSchema
version.changed
Section titled “version.changed”version.changed:
ZodObject<{activeVersion:ZodNullable<ZodString>;clientId:ZodString;previousActiveVersion:ZodNullable<ZodString>;reason:ZodEnum<{install:"install";set-active:"set-active";uninstall:"uninstall";update:"update"; }>; },$strip> =ClientVersionChangedSchema
wiring.list
Section titled “wiring.list”wiring.list:
object
wiring.list.request
Section titled “wiring.list.request”request:
ZodObject<{clientId:ZodOptional<ZodString>;makaioCommand:ZodString;projectDir:ZodOptional<ZodString>; },$strip>
wiring.list.response
Section titled “wiring.list.response”response:
ZodObject<{results:ZodArray<ZodObject<{clientId:ZodString;entries:ZodArray<ZodObject<{command:ZodString;group:ZodString;installed:ZodBoolean;name:ZodString; },$strip>>; },$strip>>; },$strip>