v2: codemod iterations, canonical zod schema exports from sdk-shared (#2354)
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
This commit is contained in:
parent
7ea6fde1b6
commit
0fb8406d83
9 changed files with 2954 additions and 1665 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { authorizationHandler, AuthorizationHandlerOptions, redirectUriMatches } from '../../../src/auth/handlers/authorize';
|
||||
import { OAuthServerProvider, AuthorizationParams } from '../../../src/auth/provider';
|
||||
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
|
||||
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/core';
|
||||
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/core-internal';
|
||||
import express, { Response } from 'express';
|
||||
import supertest from 'supertest';
|
||||
import { AuthInfo } from '../../../src/auth/types';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { metadataHandler } from '../../../src/auth/handlers/metadata';
|
||||
import { OAuthMetadata } from '@modelcontextprotocol/core';
|
||||
import { OAuthMetadata } from '@modelcontextprotocol/core-internal';
|
||||
import express from 'express';
|
||||
import supertest from 'supertest';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { clientRegistrationHandler, ClientRegistrationHandlerOptions } from '../../../src/auth/handlers/register';
|
||||
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
|
||||
import { OAuthClientInformationFull, OAuthClientMetadata } from '@modelcontextprotocol/core';
|
||||
import { OAuthClientInformationFull, OAuthClientMetadata } from '@modelcontextprotocol/core-internal';
|
||||
import express from 'express';
|
||||
import supertest from 'supertest';
|
||||
import { MockInstance } from 'vitest';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { revocationHandler, RevocationHandlerOptions } from '../../../src/auth/handlers/revoke';
|
||||
import { OAuthServerProvider, AuthorizationParams } from '../../../src/auth/provider';
|
||||
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
|
||||
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core';
|
||||
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core-internal';
|
||||
import express, { Response } from 'express';
|
||||
import supertest from 'supertest';
|
||||
import { AuthInfo } from '../../../src/auth/types';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { tokenHandler, TokenHandlerOptions } from '../../../src/auth/handlers/token';
|
||||
import { OAuthServerProvider, AuthorizationParams } from '../../../src/auth/provider';
|
||||
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
|
||||
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core';
|
||||
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core-internal';
|
||||
import express, { Response } from 'express';
|
||||
import supertest from 'supertest';
|
||||
import * as pkceChallenge from 'pkce-challenge';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { authenticateClient, ClientAuthenticationMiddlewareOptions } from '../../../src/auth/middleware/clientAuth';
|
||||
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
|
||||
import { OAuthClientInformationFull } from '@modelcontextprotocol/core';
|
||||
import { OAuthClientInformationFull } from '@modelcontextprotocol/core-internal';
|
||||
import express from 'express';
|
||||
import supertest from 'supertest';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { Response } from 'express';
|
||||
import { ProxyOAuthServerProvider, ProxyOptions } from '../../../src/auth/providers/proxyProvider';
|
||||
import { AuthInfo } from '../../../src/auth/types';
|
||||
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/core';
|
||||
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/core-internal';
|
||||
import { ServerError } from '../../../src/auth/errors';
|
||||
import { InvalidTokenError } from '../../../src/auth/errors';
|
||||
import { InsufficientScopeError } from '../../../src/auth/errors';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { mcpAuthRouter, AuthRouterOptions, mcpAuthMetadataRouter, AuthMetadataOptions } from '../../src/auth/router';
|
||||
import { OAuthServerProvider, AuthorizationParams } from '../../src/auth/provider';
|
||||
import { OAuthRegisteredClientsStore } from '../../src/auth/clients';
|
||||
import { OAuthClientInformationFull, OAuthMetadata, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core';
|
||||
import { OAuthClientInformationFull, OAuthMetadata, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core-internal';
|
||||
import express, { Response } from 'express';
|
||||
import supertest from 'supertest';
|
||||
import { AuthInfo } from '../../src/auth/types';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import http from 'node:http';
|
|||
import { type Mocked } from 'vitest';
|
||||
|
||||
import { SSEServerTransport } from '../../src/sse/sse';
|
||||
import type { JSONRPCMessage } from '@modelcontextprotocol/core';
|
||||
import type { JSONRPCMessage } from '@modelcontextprotocol/core-internal';
|
||||
|
||||
const createMockResponse = () => {
|
||||
const res = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue