diff --git a/schema/draft/schema.json b/schema/draft/schema.json index 1f91ad46..211a8205 100644 --- a/schema/draft/schema.json +++ b/schema/draft/schema.json @@ -13,6 +13,11 @@ }, "type": "array" }, + "lastModified": { + "description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").", + "format": "date-time", + "type": "string" + }, "priority": { "description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.", "maximum": 1, @@ -37,6 +42,11 @@ }, "type": "array" }, + "lastModified": { + "description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").", + "format": "date-time", + "type": "string" + }, "priority": { "description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.", "maximum": 1, @@ -495,6 +505,11 @@ }, "type": "array" }, + "lastModified": { + "description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").", + "format": "date-time", + "type": "string" + }, "priority": { "description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.", "maximum": 1, @@ -597,6 +612,11 @@ }, "type": "array" }, + "lastModified": { + "description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").", + "format": "date-time", + "type": "string" + }, "priority": { "description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.", "maximum": 1, @@ -1532,6 +1552,11 @@ }, "type": "array" }, + "lastModified": { + "description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").", + "format": "date-time", + "type": "string" + }, "priority": { "description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.", "maximum": 1, @@ -1638,6 +1663,11 @@ }, "type": "array" }, + "lastModified": { + "description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").", + "format": "date-time", + "type": "string" + }, "priority": { "description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.", "maximum": 1, @@ -1974,6 +2004,11 @@ }, "type": "array" }, + "lastModified": { + "description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").", + "format": "date-time", + "type": "string" + }, "priority": { "description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.", "maximum": 1, diff --git a/schema/draft/schema.ts b/schema/draft/schema.ts index 02070496..a5e37f5d 100644 --- a/schema/draft/schema.ts +++ b/schema/draft/schema.ts @@ -832,6 +832,14 @@ export interface Annotated { * @maximum 1 */ priority?: number; + + /** + * The timestamp when the resource was last modified. + * Examples: last activity timestamp in an open file, timestamp when resource is attached, etc. + * + * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z"). + */ + lastModified?: Date; } }