Skip to content

Variable: ClientNamespace

Makaio Framework


Makaio Framework / contracts/client / ClientNamespace

const ClientNamespace: BusNamespace<"client", SubjectRecordFromSchemaRecord<{ account.observe: { request: ZodObject<{ clientId: ZodString; displayLabel: ZodOptional<ZodString>; identifiers: ZodArray<ZodObject<{ scheme: ZodString; strength: ZodEnum<{ alias: …; strong: …; }>; value: ZodString; }, $strip>>; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodOptional<ZodNumber>; }, $strip>; response: ZodObject<{ clientAccountId: ZodString; displayLabel: ZodOptional<ZodString>; }, $strip>; }; install: { request: ZodObject<{ clientId: ZodString; version: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ jobId: ZodString; requestedVersion: ZodNullable<ZodString>; resolvedVersion: ZodNullable<ZodString>; }, $strip>; }; 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>; 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>; list: { request: ZodObject<{ forceRefresh: ZodOptional<ZodBoolean>; }, $strip>; response: ZodObject<{ clients: ZodArray<ZodObject<{ activeVersion: ZodNullable<ZodString>; clientId: ZodString; installedVersions: ZodArray<ZodObject<…, …>>; latestAvailableVersion: ZodNullable<ZodString>; latestVersionLastCheckedAt: ZodNullable<ZodNumber>; latestVersionSourceStatus: ZodEnum<{ cached: …; error: …; fresh: …; }>; updateAvailable: ZodBoolean; }, $strip>>; }, $strip>; }; resolveBinary: { request: ZodObject<{ clientId: ZodString; harnessId: ZodOptional<ZodString>; preferSource: ZodOptional<ZodEnum<{ global: "global"; managed: "managed"; }>>; projectDir: ZodOptional<ZodString>; sessionId: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ binaryPath: ZodNullable<ZodString>; configDir: ZodNullable<ZodString>; env: ZodRecord<ZodString, ZodString>; source: ZodEnum<{ global: "global"; managed: "managed"; }>; version: ZodNullable<ZodString>; }, $strip>; }; runtime.observe: { 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>; response: ZodObject<{ clientRuntimeId: ZodString; created: ZodBoolean; promoted: ZodBoolean; }, $strip>; }; 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>; scan: { request: ZodObject<{ targets: ZodOptional<ZodArray<ZodObject<{ binaryName: ZodString; clientId: ZodString; minimumVersion: ZodOptional<…>; }, $strip>>>; }, $strip>; response: ZodObject<{ results: ZodArray<ZodObject<{ clientId: ZodString; found: ZodBoolean; version: ZodOptional<ZodString>; warningMessage: ZodOptional<ZodString>; }, $strip>>; }, $strip>; }; session.account.observe: { request: ZodObject<{ clientId: ZodString; kind: ZodString; locator: ZodDiscriminatedUnion<[ZodObject<{ kind: ZodLiteral<…>; sessionId: ZodString; }, $strip>, ZodObject<{ adapterSessionId: ZodString; kind: ZodLiteral<…>; }, $strip>, ZodObject<{ adapterSessionId: ZodString; kind: ZodLiteral<…>; sessionId: ZodString; }, $strip>], "kind">; observedAt: ZodNumber; payload: ZodType<Record<string, unknown>, unknown, $ZodTypeInternals<Record<string, unknown>, unknown>>; source: ZodString; }, $strip>; response: ZodObject<{ changed: ZodBoolean; clientAccountId: ZodNullable<ZodString>; handled: ZodBoolean; sessionId: ZodNullable<ZodString>; }, $strip>; }; session.started: ZodObject<{ adapterSessionId: ZodOptional<ZodString>; clientId: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodNumber; sessionId: ZodOptional<ZodString>; source: ZodString; }, $strip>; 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>; 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>; session.turn.completed: ZodObject<{ adapterSessionId: ZodOptional<ZodString>; clientId: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodNumber; sessionId: ZodOptional<ZodString>; source: ZodString; }, $strip>; session.turn.started: ZodObject<{ adapterSessionId: ZodOptional<ZodString>; clientId: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodNumber; sessionId: ZodOptional<ZodString>; source: ZodString; }, $strip>; 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>; setActive: { request: ZodObject<{ clientId: ZodString; version: ZodString; }, $strip>; response: ZodObject<{ activeVersion: ZodString; clientId: ZodString; }, $strip>; }; uninstall: { request: ZodObject<{ clientId: ZodString; version: ZodString; }, $strip>; response: ZodObject<{ activeVersion: ZodNullable<ZodString>; clientId: ZodString; removedVersion: ZodString; }, $strip>; }; update: { request: ZodObject<{ clientId: ZodString; }, $strip>; response: ZodObject<{ jobId: ZodString; resolvedVersion: ZodNullable<ZodString>; }, $strip>; }; usage.ingest: { request: ZodObject<{ account: ZodObject<{ displayLabel: ZodOptional<ZodString>; identifiers: ZodArray<ZodObject<{ scheme: …; strength: …; value: …; }, $strip>>; }, $strip>; clientId: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodNumber; source: ZodString; usage: ZodObject<{ windows: ZodArray<ZodObject<{ key: …; label: …; resetsAt: …; usedPercentage: …; }, $strip>>; }, $strip>; }, $strip>; 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<…>; }, $strip>; }, $strip>; }, $strip>; }; 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<…>; usedPercentage: ZodNumber; }, $strip>>; }, $strip>; }, $strip>; version.changed: ZodObject<{ activeVersion: ZodNullable<ZodString>; clientId: ZodString; previousActiveVersion: ZodNullable<ZodString>; reason: ZodEnum<{ install: "install"; set-active: "set-active"; uninstall: "uninstall"; update: "update"; }>; }, $strip>; wiring.list: { request: ZodObject<{ clientId: ZodOptional<ZodString>; makaioCommand: ZodString; projectDir: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ results: ZodArray<ZodObject<{ clientId: ZodString; entries: ZodArray<ZodObject<…, …>>; }, $strip>>; }, $strip>; }; }>, { account: { displayLabel?: string; identifiers: object[]; }; activeAfterCompletion: never; activeVersion: string | null; adapterSessionId: never; argv: never; clientAccountId: string; clientId: string; clientRuntimeId: string; cwd: never; displayLabel: never; error: never; forceRefresh: never; harnessId: never; identifiers: object[]; installPath: never; jobId: string; kind: string; locator: { kind: "session"; sessionId: string; } | { adapterSessionId: string; kind: "adapter-session"; } | { adapterSessionId: string; kind: "both"; sessionId: string; }; makaioCommand: string; metadata: never; observedAt: number; parentPid: never; payload: unknown; pid: never; preferSource: never; previousActiveVersion: string | null; progress: number | null; projectDir: never; prompt: never; reason: "update" | "install" | "uninstall" | "set-active"; sessionId: never; source: string | { layer: "adapter" | "supervisor" | "client-hook" | "statusline" | "cli-wrapper"; producer: string; } | { layer: "adapter" | "supervisor" | "client-hook" | "statusline" | "cli-wrapper"; producer: string; }; stage: "downloading" | "resolving" | "verifying" | "extracting" | "installing" | "post-install" | "activating"; status: "success" | "error" | "started" | "observed"; strategy: "manifest-bucket" | "npm" | "github-release"; success: never; supervisorSessionId: never; targets: never; toolCallId: never; toolName: never; usage: { windows: object[]; } | { windows: object[]; }; version: string; }, { account.observe: { 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>; response: ZodObject<{ clientAccountId: ZodString; displayLabel: ZodOptional<ZodString>; }, $strip>; }; install: { request: ZodObject<{ clientId: ZodString; version: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ jobId: ZodString; requestedVersion: ZodNullable<ZodString>; resolvedVersion: ZodNullable<ZodString>; }, $strip>; }; 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>; 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>; list: { request: ZodObject<{ forceRefresh: ZodOptional<ZodBoolean>; }, $strip>; response: ZodObject<{ clients: ZodArray<ZodObject<{ activeVersion: ZodNullable<ZodString>; clientId: ZodString; installedVersions: ZodArray<ZodObject<{ installedAt: …; installPath: …; isActive: …; version: …; }, $strip>>; latestAvailableVersion: ZodNullable<ZodString>; latestVersionLastCheckedAt: ZodNullable<ZodNumber>; latestVersionSourceStatus: ZodEnum<{ cached: "cached"; error: "error"; fresh: "fresh"; }>; updateAvailable: ZodBoolean; }, $strip>>; }, $strip>; }; resolveBinary: { request: ZodObject<{ clientId: ZodString; harnessId: ZodOptional<ZodString>; preferSource: ZodOptional<ZodEnum<{ global: "global"; managed: "managed"; }>>; projectDir: ZodOptional<ZodString>; sessionId: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ binaryPath: ZodNullable<ZodString>; configDir: ZodNullable<ZodString>; env: ZodRecord<ZodString, ZodString>; source: ZodEnum<{ global: "global"; managed: "managed"; }>; version: ZodNullable<ZodString>; }, $strip>; }; runtime.observe: { 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>; response: ZodObject<{ clientRuntimeId: ZodString; created: ZodBoolean; promoted: ZodBoolean; }, $strip>; }; 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>; scan: { request: ZodObject<{ targets: ZodOptional<ZodArray<ZodObject<{ binaryName: ZodString; clientId: ZodString; minimumVersion: ZodOptional<ZodString>; }, $strip>>>; }, $strip>; response: ZodObject<{ results: ZodArray<ZodObject<{ clientId: ZodString; found: ZodBoolean; version: ZodOptional<ZodString>; warningMessage: ZodOptional<ZodString>; }, $strip>>; }, $strip>; }; session.account.observe: { 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>; response: ZodObject<{ changed: ZodBoolean; clientAccountId: ZodNullable<ZodString>; handled: ZodBoolean; sessionId: ZodNullable<ZodString>; }, $strip>; }; session.started: ZodObject<{ adapterSessionId: ZodOptional<ZodString>; clientId: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodNumber; sessionId: ZodOptional<ZodString>; source: ZodString; }, $strip>; 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>; 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>; session.turn.completed: ZodObject<{ adapterSessionId: ZodOptional<ZodString>; clientId: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodNumber; sessionId: ZodOptional<ZodString>; source: ZodString; }, $strip>; session.turn.started: ZodObject<{ adapterSessionId: ZodOptional<ZodString>; clientId: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodNumber; sessionId: ZodOptional<ZodString>; source: ZodString; }, $strip>; 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>; setActive: { request: ZodObject<{ clientId: ZodString; version: ZodString; }, $strip>; response: ZodObject<{ activeVersion: ZodString; clientId: ZodString; }, $strip>; }; uninstall: { request: ZodObject<{ clientId: ZodString; version: ZodString; }, $strip>; response: ZodObject<{ activeVersion: ZodNullable<ZodString>; clientId: ZodString; removedVersion: ZodString; }, $strip>; }; update: { request: ZodObject<{ clientId: ZodString; }, $strip>; response: ZodObject<{ jobId: ZodString; resolvedVersion: ZodNullable<ZodString>; }, $strip>; }; usage.ingest: { request: ZodObject<{ account: ZodObject<{ displayLabel: ZodOptional<ZodString>; identifiers: ZodArray<ZodObject<{ scheme: ZodString; strength: ZodEnum<…>; 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<…>; usedPercentage: ZodNumber; }, $strip>>; }, $strip>; }, $strip>; 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<…, …>>; }, $strip>; }, $strip>; }, $strip>; }; 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>; version.changed: ZodObject<{ activeVersion: ZodNullable<ZodString>; clientId: ZodString; previousActiveVersion: ZodNullable<ZodString>; reason: ZodEnum<{ install: "install"; set-active: "set-active"; uninstall: "uninstall"; update: "update"; }>; }, $strip>; wiring.list: { request: ZodObject<{ clientId: ZodOptional<ZodString>; makaioCommand: ZodString; projectDir: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ results: ZodArray<ZodObject<{ clientId: ZodString; entries: ZodArray<ZodObject<{ command: …; group: …; installed: …; name: …; }, $strip>>; }, $strip>>; }, $strip>; }; }>

Defined in: ../../../packages/contracts/src/client/namespace.ts:24

Client namespace registered under the client prefix.