修改后台权限
This commit is contained in:
31
node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts
generated
vendored
Normal file
31
node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Transport } from './shared/transport.js';
|
||||
import { JSONRPCMessage, RequestId } from './types.js';
|
||||
import { AuthInfo } from './server/auth/types.js';
|
||||
/**
|
||||
* In-memory transport for creating clients and servers that talk to each other within the same process.
|
||||
*/
|
||||
export declare class InMemoryTransport implements Transport {
|
||||
private _otherTransport?;
|
||||
private _messageQueue;
|
||||
onclose?: () => void;
|
||||
onerror?: (error: Error) => void;
|
||||
onmessage?: (message: JSONRPCMessage, extra?: {
|
||||
authInfo?: AuthInfo;
|
||||
}) => void;
|
||||
sessionId?: string;
|
||||
/**
|
||||
* Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server.
|
||||
*/
|
||||
static createLinkedPair(): [InMemoryTransport, InMemoryTransport];
|
||||
start(): Promise<void>;
|
||||
close(): Promise<void>;
|
||||
/**
|
||||
* Sends a message with optional auth info.
|
||||
* This is useful for testing authentication scenarios.
|
||||
*/
|
||||
send(message: JSONRPCMessage, options?: {
|
||||
relatedRequestId?: RequestId;
|
||||
authInfo?: AuthInfo;
|
||||
}): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=inMemory.d.ts.map
|
||||
Reference in New Issue
Block a user