diff --git a/docs/specification/draft/schema.mdx b/docs/specification/draft/schema.mdx index 257507e43..30c9367aa 100644 --- a/docs/specification/draft/schema.mdx +++ b/docs/specification/draft/schema.mdx @@ -289,9 +289,9 @@ for task augmentation of specific request types in their capabilities.

interface CancelledNotificationParams {
  _meta?: { [key: string]: unknown };
  reason?: string;
  requestId?: RequestId;
  taskId?: string;
}

Parameters for a notifications/cancelled notification.

_meta?: { [key: string]: unknown }

See General fields: _meta for notes on _meta usage.

reason?: string

An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.

requestId?: RequestId

The ID of the request to cancel.

This MUST correspond to the ID of a request previously issued in the same direction. +

interface CancelledNotificationParams {
  _meta?: { [key: string]: unknown };
  reason?: string;
  requestId?: RequestId;
}

Parameters for a notifications/cancelled notification.

_meta?: { [key: string]: unknown }

See General fields: _meta for notes on _meta usage.

reason?: string

An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.

requestId?: RequestId

The ID of the request to cancel.

This MUST correspond to the ID of a request previously issued in the same direction. This MUST be provided for cancelling non-task requests. -This MUST NOT be used for cancelling tasks (use the tasks/cancel request instead).

taskId?: string

Deprecated: Use the tasks/cancel request instead of this notification for task cancellation.

+This MUST NOT be used for cancelling tasks (use the tasks/cancel request instead).

## `notifications/initialized` diff --git a/schema/draft/schema.json b/schema/draft/schema.json index 5e64453b7..ff67a5c01 100644 --- a/schema/draft/schema.json +++ b/schema/draft/schema.json @@ -295,10 +295,6 @@ "requestId": { "$ref": "#/$defs/RequestId", "description": "The ID of the request to cancel.\n\nThis MUST correspond to the ID of a request previously issued in the same direction.\nThis MUST be provided for cancelling non-task requests.\nThis MUST NOT be used for cancelling tasks (use the `tasks/cancel` request instead)." - }, - "taskId": { - "description": "Deprecated: Use the `tasks/cancel` request instead of this notification for task cancellation.", - "type": "string" } }, "type": "object" diff --git a/schema/draft/schema.ts b/schema/draft/schema.ts index 30bc0364a..cc473e5be 100644 --- a/schema/draft/schema.ts +++ b/schema/draft/schema.ts @@ -210,11 +210,6 @@ export interface CancelledNotificationParams extends NotificationParams { */ requestId?: RequestId; - /** - * Deprecated: Use the `tasks/cancel` request instead of this notification for task cancellation. - */ - taskId?: string; - /** * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user. */