Skip to content

Commit bc1d786

Browse files
chore: update spec.types.ts from upstream
1 parent 2da89db commit bc1d786

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/spec.types.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Source: https://github.com/modelcontextprotocol/modelcontextprotocol
55
* Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts
6-
* Last updated from commit: bcdd3363e6472b645f196e7ec6988abe3b9799e2
6+
* Last updated from commit: 3face10ad0ee0dcaf2156fdcb28af8cc45b07edc
77
*
88
* DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates.
99
* To update this file, run: npm run fetch:spec-types
@@ -55,6 +55,7 @@ export interface RequestParams {
5555
export interface Request {
5656
method: string;
5757
// Allow unofficial extensions of `Request.params` without impacting `RequestParams`.
58+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5859
params?: { [key: string]: any };
5960
}
6061

@@ -66,11 +67,11 @@ export interface NotificationParams {
6667
_meta?: { [key: string]: unknown };
6768
}
6869

69-
7070
/** @internal */
7171
export interface Notification {
7272
method: string;
7373
// Allow unofficial extensions of `Notification.params` without impacting `NotificationParams`.
74+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7475
params?: { [key: string]: any };
7576
}
7677

@@ -95,7 +96,7 @@ export interface Error {
9596
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
9697
*/
9798
data?: unknown;
98-
};
99+
}
99100

100101
/**
101102
* A uniquely identifying ID for a request in JSON-RPC.
@@ -360,7 +361,7 @@ export interface Icon {
360361
*
361362
* If not provided, the client should assume the icon can be used with any theme.
362363
*/
363-
theme?: 'light' | 'dark';
364+
theme?: "light" | "dark";
364365
}
365366

366367
/**
@@ -427,7 +428,7 @@ export interface Implementation extends BaseMetadata, Icons {
427428
*/
428429
export interface PingRequest extends JSONRPCRequest {
429430
method: "ping";
430-
params?: RequestParams
431+
params?: RequestParams;
431432
}
432433

433434
/* Progress notifications */
@@ -552,6 +553,7 @@ export interface ResourceRequestParams extends RequestParams {
552553
*
553554
* @category resources/read
554555
*/
556+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
555557
export interface ReadResourceRequestParams extends ResourceRequestParams {}
556558

557559
/**
@@ -588,6 +590,7 @@ export interface ResourceListChangedNotification extends JSONRPCNotification {
588590
*
589591
* @category resources/subscribe
590592
*/
593+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
591594
export interface SubscribeRequestParams extends ResourceRequestParams {}
592595

593596
/**
@@ -605,6 +608,7 @@ export interface SubscribeRequest extends JSONRPCRequest {
605608
*
606609
* @category resources/unsubscribe
607610
*/
611+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
608612
export interface UnsubscribeRequestParams extends ResourceRequestParams {}
609613

610614
/**

0 commit comments

Comments
 (0)