Skip to content

Commit 2c52cf1

Browse files
committed
Update official schema & schema tests
1 parent 237f84c commit 2c52cf1

File tree

3 files changed

+296
-88
lines changed

3 files changed

+296
-88
lines changed

src/spec.types.test.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,21 @@ const sdkTypeChecks = {
153153
sdk = spec;
154154
spec = sdk;
155155
},
156+
ElicitRequestFormParams: (sdk: SDKTypes.ElicitRequestFormParams, spec: SpecTypes.ElicitRequestFormParams) => {
157+
sdk = spec;
158+
spec = sdk;
159+
},
160+
ElicitRequestURLParams: (sdk: SDKTypes.ElicitRequestURLParams, spec: SpecTypes.ElicitRequestURLParams) => {
161+
sdk = spec;
162+
spec = sdk;
163+
},
164+
ElicitationCompleteNotification: (
165+
sdk: RemovePassthrough<WithJSONRPC<SDKTypes.ElicitationCompleteNotification>>,
166+
spec: SpecTypes.ElicitationCompleteNotification
167+
) => {
168+
sdk = spec;
169+
spec = sdk;
170+
},
156171
PaginatedRequestParams: (sdk: SDKTypes.PaginatedRequestParams, spec: SpecTypes.PaginatedRequestParams) => {
157172
sdk = spec;
158173
spec = sdk;
@@ -598,6 +613,7 @@ const MISSING_SDK_TYPES = [
598613
// These are inlined in the SDK:
599614
'Role',
600615
'Error', // The inner error object of a JSONRPCError
616+
'URLElicitationRequiredError', // In the SDK, but with a custom definition
601617
// These aren't supported by the SDK yet:
602618
// TODO: Add definitions to the SDK
603619
'Annotations'
@@ -615,7 +631,7 @@ describe('Spec Types', () => {
615631
it('should define some expected types', () => {
616632
expect(specTypes).toContain('JSONRPCNotification');
617633
expect(specTypes).toContain('ElicitResult');
618-
expect(specTypes).toHaveLength(119);
634+
expect(specTypes).toHaveLength(123);
619635
});
620636

621637
it('should have up to date list of missing sdk types', () => {

0 commit comments

Comments
 (0)