Variable: ClientSessionObservedBaseSchema
Makaio Framework / contracts/client / ClientSessionObservedBaseSchema
Variable: ClientSessionObservedBaseSchema
Section titled “Variable: ClientSessionObservedBaseSchema”
constClientSessionObservedBaseSchema:ZodObject<{adapterSessionId:ZodOptional<ZodString>;clientId:ZodString;metadata:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;observedAt:ZodNumber;sessionId:ZodOptional<ZodString>;source:ZodString; },$strip>
Defined in: ../../../packages/contracts/src/client/session-observed.ts:32
Shared base payload for all client.session.* observed-semantics events.
These events are emitted by client adapters when they observe lifecycle signals from the underlying client runtime. They are not control messages — they carry normalized observations forwarded to the bus so listeners can react without coupling to a specific adapter implementation.
Fields:
clientId— stable string ID of the client (e.g.'claude-code').source— how the observation was captured (e.g.'native-hook','adapter-derived').observedAt— Unix epoch timestamp in milliseconds when the signal was captured by the adapter.sessionId— framework session ID, if already resolved.adapterSessionId— raw session identifier from the client runtime, if available.metadata— arbitrary pass-through data from the adapter.