Skip to content

SessionNameChangedParams

session/nameChanged params: the fold of ANY durable session-name record — the FIRST-NAMING automatic allocate as well as an accepted session/rename (or the same in-process runtime command). Replace-wholesale like every sibling.

  • generatedName
  • name
  • nameOrigin
  • sessionId
  • sourceRange
  • viewCursor
Source

schema/msp/experimental/msp.schema.json#/types/SessionNameChangedParams

{
"description": "`session/nameChanged` params: the fold of ANY\ndurable session-name record — the FIRST-NAMING automatic allocate as well\nas an accepted `session/rename` (or the same in-process runtime command).\nReplace-wholesale like every sibling.",
"properties": {
"generatedName": {
"description": "The latest retained generated short title. **Additive-optional**: carried\nat generated-pair publication and at settlement when a pair is\nalready published; omitted when no pair was ever published — absent\nreads as unpublished, never fabricated. `name` stays canonical.",
"type": "string"
},
"name": {
"description": "The new canonical name now in effect.",
"type": "string"
},
"nameOrigin": {
"$ref": "#/$defs/SessionNameOrigin",
"description": "How the new name was set. **Additive-optional**: omitted when the emitting fold cannot\nprove an origin — absent reads as unknown, never fabricated."
},
"sessionId": {
"description": "The owning session.",
"type": "string"
},
"sourceRange": {
"$ref": "#/$defs/SourceRange",
"description": "The durable records this event folded from."
},
"viewCursor": {
"description": "Opaque, strictly monotonic view cursor.",
"type": "string"
}
},
"required": [
"name",
"sessionId",
"sourceRange",
"viewCursor"
],
"type": "object"
}