@mcp-b/webmcp-types 2.3.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/webmcp-types",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "Strict TypeScript type definitions for the WebMCP core API (navigator.modelContext)",
5
5
  "keywords": [
6
6
  "model-context",
@@ -1,32 +0,0 @@
1
- import type { StandardJSONSchemaV1 as BaseStandardJSONSchemaV1, StandardSchemaV1 as BaseStandardSchemaV1, StandardTypedV1 } from '@standard-schema/spec';
2
- import type { InputSchema } from './common.js';
3
- /**
4
- * Re-export of the official Standard Schema spec types.
5
- */
6
- export type { BaseStandardJSONSchemaV1 as StandardJSONSchemaV1, BaseStandardSchemaV1 as StandardSchemaV1, StandardTypedV1, };
7
- /**
8
- * Standard Schema validator constrained to object-like tool args.
9
- */
10
- export type StandardInputValidatorSchema = BaseStandardSchemaV1<Record<string, unknown>, Record<string, unknown>>;
11
- /**
12
- * Standard JSON Schema converter constrained to object-like tool args.
13
- */
14
- export type StandardInputJsonSchema = BaseStandardJSONSchemaV1<Record<string, unknown>, Record<string, unknown>>;
15
- /**
16
- * Schema that supports both Standard Schema validation and JSON Schema conversion.
17
- */
18
- export type StandardInputSchemaWithJson = StandardInputValidatorSchema & StandardInputJsonSchema;
19
- /**
20
- * Any input schema accepted by tool descriptors.
21
- *
22
- * Runtime adapters may normalize all inputs to a Standard Schema validator.
23
- * When a schema implements both Standard Schema validation and Standard JSON
24
- * Schema conversion, adapters may prefer JSON conversion to keep validation
25
- * errors consistent across plain JSON Schema and Standard-compatible inputs.
26
- */
27
- export type ToolInputSchema = InputSchema | StandardInputValidatorSchema | StandardInputJsonSchema;
28
- /**
29
- * Any output schema accepted by tool descriptors.
30
- */
31
- export type ToolOutputSchema = InputSchema | StandardInputJsonSchema;
32
- //# sourceMappingURL=standard-schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"standard-schema.d.ts","sourceRoot":"","sources":["../src/standard-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,IAAI,wBAAwB,EAChD,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,YAAY,EACV,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,IAAI,gBAAgB,EACxC,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAC7D,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAC5D,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,4BAA4B,GAAG,uBAAuB,CAAC;AAEjG;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,4BAA4B,GAAG,uBAAuB,CAAC;AAEnG;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,uBAAuB,CAAC"}