Variable: SessionLinkedSchema
Makaio Framework / contracts/adapter / SessionLinkedSchema
Variable: SessionLinkedSchema
Section titled “Variable: SessionLinkedSchema”
constSessionLinkedSchema:ZodObject<{adapterId:ZodOptional<ZodString>;adapterName:ZodString;adapterSessionId:ZodString;replay:ZodOptional<ZodBoolean>;sessionId:ZodString; },$strip>
Defined in: ../../../packages/contracts/src/adapter/schemas/session-linked.ts:20
Adapter session linked to a Makaio session.
Subject: adapter.session.linked
Type: Event (fire-and-forget)
Emitted when: An imported adapter session is linked to a Makaio session
Unlike session.discovered (which has no sessionId because the session doesn’t exist yet), this event confirms the linkage has been established. Used to resolve parent relationships for sessions imported out of order.
adapterId is optional here because linkage can occur during log import
before the owning adapter instance has been configured or started. Consumers
that need a resolved adapterId should use AdapterRuntimeSubjects.resolveId
separately through the runtime identity handlers.