diff --git a/schema/draft/schema.json b/schema/draft/schema.json index 22ed285b1..c10f1b964 100644 --- a/schema/draft/schema.json +++ b/schema/draft/schema.json @@ -11,6 +11,10 @@ }, "type": "array" }, + "lastModified": { + "description": "The moment the resource was last modified, stored as a Unix epoch timestamp.\n\nValue is the number of **milliseconds** since 1970-01-01 00:00:00 UTC. \n(Use `Date.now()` in JS/TS, or `Math.floor(Date.now() / 1000)` if you prefer seconds.)\n\nExamples: last activity timestamp in an open file, timestamp when the resource\nwas attached, etc.", + "type": "integer" + }, "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 ec5340a99..59170c61e 100644 --- a/schema/draft/schema.ts +++ b/schema/draft/schema.ts @@ -959,6 +959,17 @@ export interface Annotations { * @maximum 1 */ priority?: number; + + /** + * The moment the resource was last modified, stored as a Unix epoch timestamp. + * + * Value is the number of **milliseconds** since 1970-01-01 00:00:00 UTC. + * (Use `Date.now()` in JS/TS, or `Math.floor(Date.now() / 1000)` if you prefer seconds.) + * + * Examples: last activity timestamp in an open file, timestamp when the resource + * was attached, etc. + */ + lastModified?: number; } /** */