@decocms/bindings 0.2.4 → 0.2.5

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.
@@ -38,14 +38,20 @@ const createServerClient = async (mcpServer, signal, extraHeaders) => {
38
38
  if (mcpServer.connection.type !== "HTTP") {
39
39
  throw new Error("HTTP connection required");
40
40
  }
41
+ const headers = new Headers(extraHeaders);
42
+ if (!headers.has("Authorization")) {
43
+ headers.set("Authorization", `Bearer ${mcpServer.connection.token}`);
44
+ }
45
+ for (const [key, value] of Object.entries(
46
+ mcpServer.connection.headers ?? {}
47
+ )) {
48
+ headers.set(key, value);
49
+ }
41
50
  return fetch(mcpServer.connection.url + `/call-tool/${tool}`, {
42
51
  method: "POST",
43
52
  redirect: "manual",
44
53
  body: JSON.stringify(args),
45
- headers: {
46
- ...extraHeaders,
47
- Authorization: `Bearer ${mcpServer.connection.token}`
48
- }
54
+ headers
49
55
  });
50
56
  }
51
57
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/core/client/mcp-client.ts"],"sourcesContent":["import {\n Client as BaseClient,\n ClientOptions,\n} from \"@modelcontextprotocol/sdk/client/index.js\";\nimport {\n SSEClientTransport,\n SSEClientTransportOptions,\n} from \"@modelcontextprotocol/sdk/client/sse.js\";\nimport { WebSocketClientTransport } from \"@modelcontextprotocol/sdk/client/websocket.js\";\nimport { RequestOptions } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport {\n Implementation,\n ListToolsRequest,\n ListToolsResultSchema,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport { MCPConnection } from \"../connection\";\nimport { HTTPClientTransport } from \"./http-client-transport\";\n\n/**\n * WARNNING: This is a hack to prevent schema compilation errors.\n * More info at: https://github.com/modelcontextprotocol/typescript-sdk/issues/923\n *\n * Make sure to keep this updated with the right version of the SDK.\n * https://github.com/modelcontextprotocol/typescript-sdk/blob/bf817939917277a4c59f2e19e7b44b8dd7ff140c/src/client/index.ts#L480\n */\nclass Client extends BaseClient {\n constructor(_clientInfo: Implementation, options?: ClientOptions) {\n super(_clientInfo, options);\n }\n\n override async listTools(\n params?: ListToolsRequest[\"params\"],\n options?: RequestOptions,\n ) {\n const result = await this.request(\n { method: \"tools/list\", params },\n ListToolsResultSchema,\n options,\n );\n\n return result;\n }\n}\n\nexport interface ServerClient {\n client: Client;\n callStreamableTool: (tool: string, args: unknown) => Promise<Response>;\n}\nexport const createServerClient = async (\n mcpServer: { connection: MCPConnection; name?: string },\n signal?: AbortSignal,\n extraHeaders?: Record<string, string>,\n): Promise<ServerClient> => {\n const transport = createTransport(mcpServer.connection, signal, extraHeaders);\n\n if (!transport) {\n throw new Error(\"Unknown MCP connection type\");\n }\n\n const client = new Client({\n name: mcpServer?.name ?? \"MCP Client\",\n version: \"1.0.0\",\n });\n\n await client.connect(transport);\n\n return {\n client,\n callStreamableTool: (tool, args) => {\n if (mcpServer.connection.type !== \"HTTP\") {\n throw new Error(\"HTTP connection required\");\n }\n return fetch(mcpServer.connection.url + `/call-tool/${tool}`, {\n method: \"POST\",\n redirect: \"manual\",\n body: JSON.stringify(args),\n headers: {\n ...extraHeaders,\n Authorization: `Bearer ${mcpServer.connection.token}`,\n },\n });\n },\n };\n};\n\nexport const createTransport = (\n connection: MCPConnection,\n signal?: AbortSignal,\n extraHeaders?: Record<string, string>,\n) => {\n if (connection.type === \"Websocket\") {\n return new WebSocketClientTransport(new URL(connection.url));\n }\n\n if (connection.type !== \"SSE\" && connection.type !== \"HTTP\") {\n return null;\n }\n\n const authHeaders: Record<string, string> = connection.token\n ? { authorization: `Bearer ${connection.token}` }\n : {};\n\n const headers: Record<string, string> = {\n ...authHeaders,\n ...(extraHeaders ?? {}),\n ...(\"headers\" in connection ? connection.headers || {} : {}),\n };\n\n if (connection.type === \"SSE\") {\n const config: SSEClientTransportOptions = {\n requestInit: { headers, signal },\n };\n\n if (connection.token) {\n config.eventSourceInit = {\n fetch: (req, init) => {\n return fetch(req, {\n ...init,\n headers: {\n ...headers,\n Accept: \"text/event-stream\",\n },\n signal,\n });\n },\n };\n }\n\n return new SSEClientTransport(new URL(connection.url), config);\n }\n return new HTTPClientTransport(new URL(connection.url), {\n requestInit: {\n headers,\n signal,\n // @ts-ignore - this is a valid option for fetch\n credentials: \"include\",\n },\n });\n};\n"],"mappings":"AAAA;AAAA,EACE,UAAU;AAAA,OAEL;AACP;AAAA,EACE;AAAA,OAEK;AACP,SAAS,gCAAgC;AAEzC;AAAA,EAGE;AAAA,OACK;AAEP,SAAS,2BAA2B;AASpC,MAAM,eAAe,WAAW;AAAA,EAC9B,YAAY,aAA6B,SAAyB;AAChE,UAAM,aAAa,OAAO;AAAA,EAC5B;AAAA,EAEA,MAAe,UACb,QACA,SACA;AACA,UAAM,SAAS,MAAM,KAAK;AAAA,MACxB,EAAE,QAAQ,cAAc,OAAO;AAAA,MAC/B;AAAA,MACA;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AACF;AAMO,MAAM,qBAAqB,OAChC,WACA,QACA,iBAC0B;AAC1B,QAAM,YAAY,gBAAgB,UAAU,YAAY,QAAQ,YAAY;AAE5E,MAAI,CAAC,WAAW;AACd,UAAM,IAAI,MAAM,6BAA6B;AAAA,EAC/C;AAEA,QAAM,SAAS,IAAI,OAAO;AAAA,IACxB,MAAM,WAAW,QAAQ;AAAA,IACzB,SAAS;AAAA,EACX,CAAC;AAED,QAAM,OAAO,QAAQ,SAAS;AAE9B,SAAO;AAAA,IACL;AAAA,IACA,oBAAoB,CAAC,MAAM,SAAS;AAClC,UAAI,UAAU,WAAW,SAAS,QAAQ;AACxC,cAAM,IAAI,MAAM,0BAA0B;AAAA,MAC5C;AACA,aAAO,MAAM,UAAU,WAAW,MAAM,cAAc,IAAI,IAAI;AAAA,QAC5D,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,MAAM,KAAK,UAAU,IAAI;AAAA,QACzB,SAAS;AAAA,UACP,GAAG;AAAA,UACH,eAAe,UAAU,UAAU,WAAW,KAAK;AAAA,QACrD;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF;AACF;AAEO,MAAM,kBAAkB,CAC7B,YACA,QACA,iBACG;AACH,MAAI,WAAW,SAAS,aAAa;AACnC,WAAO,IAAI,yBAAyB,IAAI,IAAI,WAAW,GAAG,CAAC;AAAA,EAC7D;AAEA,MAAI,WAAW,SAAS,SAAS,WAAW,SAAS,QAAQ;AAC3D,WAAO;AAAA,EACT;AAEA,QAAM,cAAsC,WAAW,QACnD,EAAE,eAAe,UAAU,WAAW,KAAK,GAAG,IAC9C,CAAC;AAEL,QAAM,UAAkC;AAAA,IACtC,GAAG;AAAA,IACH,GAAI,gBAAgB,CAAC;AAAA,IACrB,GAAI,aAAa,aAAa,WAAW,WAAW,CAAC,IAAI,CAAC;AAAA,EAC5D;AAEA,MAAI,WAAW,SAAS,OAAO;AAC7B,UAAM,SAAoC;AAAA,MACxC,aAAa,EAAE,SAAS,OAAO;AAAA,IACjC;AAEA,QAAI,WAAW,OAAO;AACpB,aAAO,kBAAkB;AAAA,QACvB,OAAO,CAAC,KAAK,SAAS;AACpB,iBAAO,MAAM,KAAK;AAAA,YAChB,GAAG;AAAA,YACH,SAAS;AAAA,cACP,GAAG;AAAA,cACH,QAAQ;AAAA,YACV;AAAA,YACA;AAAA,UACF,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAEA,WAAO,IAAI,mBAAmB,IAAI,IAAI,WAAW,GAAG,GAAG,MAAM;AAAA,EAC/D;AACA,SAAO,IAAI,oBAAoB,IAAI,IAAI,WAAW,GAAG,GAAG;AAAA,IACtD,aAAa;AAAA,MACX;AAAA,MACA;AAAA;AAAA,MAEA,aAAa;AAAA,IACf;AAAA,EACF,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../../src/core/client/mcp-client.ts"],"sourcesContent":["import {\n Client as BaseClient,\n ClientOptions,\n} from \"@modelcontextprotocol/sdk/client/index.js\";\nimport {\n SSEClientTransport,\n SSEClientTransportOptions,\n} from \"@modelcontextprotocol/sdk/client/sse.js\";\nimport { WebSocketClientTransport } from \"@modelcontextprotocol/sdk/client/websocket.js\";\nimport { RequestOptions } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport {\n Implementation,\n ListToolsRequest,\n ListToolsResultSchema,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport { MCPConnection } from \"../connection\";\nimport { HTTPClientTransport } from \"./http-client-transport\";\n\n/**\n * WARNNING: This is a hack to prevent schema compilation errors.\n * More info at: https://github.com/modelcontextprotocol/typescript-sdk/issues/923\n *\n * Make sure to keep this updated with the right version of the SDK.\n * https://github.com/modelcontextprotocol/typescript-sdk/blob/bf817939917277a4c59f2e19e7b44b8dd7ff140c/src/client/index.ts#L480\n */\nclass Client extends BaseClient {\n constructor(_clientInfo: Implementation, options?: ClientOptions) {\n super(_clientInfo, options);\n }\n\n override async listTools(\n params?: ListToolsRequest[\"params\"],\n options?: RequestOptions,\n ) {\n const result = await this.request(\n { method: \"tools/list\", params },\n ListToolsResultSchema,\n options,\n );\n\n return result;\n }\n}\n\nexport interface ServerClient {\n client: Client;\n callStreamableTool: (tool: string, args: unknown) => Promise<Response>;\n}\nexport const createServerClient = async (\n mcpServer: { connection: MCPConnection; name?: string },\n signal?: AbortSignal,\n extraHeaders?: Record<string, string>,\n): Promise<ServerClient> => {\n const transport = createTransport(mcpServer.connection, signal, extraHeaders);\n\n if (!transport) {\n throw new Error(\"Unknown MCP connection type\");\n }\n\n const client = new Client({\n name: mcpServer?.name ?? \"MCP Client\",\n version: \"1.0.0\",\n });\n\n await client.connect(transport);\n\n return {\n client,\n callStreamableTool: (tool, args) => {\n if (mcpServer.connection.type !== \"HTTP\") {\n throw new Error(\"HTTP connection required\");\n }\n\n const headers = new Headers(extraHeaders);\n\n if (!headers.has(\"Authorization\")) {\n headers.set(\"Authorization\", `Bearer ${mcpServer.connection.token}`);\n }\n\n for (const [key, value] of Object.entries(\n mcpServer.connection.headers ?? {},\n )) {\n headers.set(key, value);\n }\n\n return fetch(mcpServer.connection.url + `/call-tool/${tool}`, {\n method: \"POST\",\n redirect: \"manual\",\n body: JSON.stringify(args),\n headers,\n });\n },\n };\n};\n\nexport const createTransport = (\n connection: MCPConnection,\n signal?: AbortSignal,\n extraHeaders?: Record<string, string>,\n) => {\n if (connection.type === \"Websocket\") {\n return new WebSocketClientTransport(new URL(connection.url));\n }\n\n if (connection.type !== \"SSE\" && connection.type !== \"HTTP\") {\n return null;\n }\n\n const authHeaders: Record<string, string> = connection.token\n ? { authorization: `Bearer ${connection.token}` }\n : {};\n\n const headers: Record<string, string> = {\n ...authHeaders,\n ...(extraHeaders ?? {}),\n ...(\"headers\" in connection ? connection.headers || {} : {}),\n };\n\n if (connection.type === \"SSE\") {\n const config: SSEClientTransportOptions = {\n requestInit: { headers, signal },\n };\n\n if (connection.token) {\n config.eventSourceInit = {\n fetch: (req, init) => {\n return fetch(req, {\n ...init,\n headers: {\n ...headers,\n Accept: \"text/event-stream\",\n },\n signal,\n });\n },\n };\n }\n\n return new SSEClientTransport(new URL(connection.url), config);\n }\n return new HTTPClientTransport(new URL(connection.url), {\n requestInit: {\n headers,\n signal,\n // @ts-ignore - this is a valid option for fetch\n credentials: \"include\",\n },\n });\n};\n"],"mappings":"AAAA;AAAA,EACE,UAAU;AAAA,OAEL;AACP;AAAA,EACE;AAAA,OAEK;AACP,SAAS,gCAAgC;AAEzC;AAAA,EAGE;AAAA,OACK;AAEP,SAAS,2BAA2B;AASpC,MAAM,eAAe,WAAW;AAAA,EAC9B,YAAY,aAA6B,SAAyB;AAChE,UAAM,aAAa,OAAO;AAAA,EAC5B;AAAA,EAEA,MAAe,UACb,QACA,SACA;AACA,UAAM,SAAS,MAAM,KAAK;AAAA,MACxB,EAAE,QAAQ,cAAc,OAAO;AAAA,MAC/B;AAAA,MACA;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AACF;AAMO,MAAM,qBAAqB,OAChC,WACA,QACA,iBAC0B;AAC1B,QAAM,YAAY,gBAAgB,UAAU,YAAY,QAAQ,YAAY;AAE5E,MAAI,CAAC,WAAW;AACd,UAAM,IAAI,MAAM,6BAA6B;AAAA,EAC/C;AAEA,QAAM,SAAS,IAAI,OAAO;AAAA,IACxB,MAAM,WAAW,QAAQ;AAAA,IACzB,SAAS;AAAA,EACX,CAAC;AAED,QAAM,OAAO,QAAQ,SAAS;AAE9B,SAAO;AAAA,IACL;AAAA,IACA,oBAAoB,CAAC,MAAM,SAAS;AAClC,UAAI,UAAU,WAAW,SAAS,QAAQ;AACxC,cAAM,IAAI,MAAM,0BAA0B;AAAA,MAC5C;AAEA,YAAM,UAAU,IAAI,QAAQ,YAAY;AAExC,UAAI,CAAC,QAAQ,IAAI,eAAe,GAAG;AACjC,gBAAQ,IAAI,iBAAiB,UAAU,UAAU,WAAW,KAAK,EAAE;AAAA,MACrE;AAEA,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO;AAAA,QAChC,UAAU,WAAW,WAAW,CAAC;AAAA,MACnC,GAAG;AACD,gBAAQ,IAAI,KAAK,KAAK;AAAA,MACxB;AAEA,aAAO,MAAM,UAAU,WAAW,MAAM,cAAc,IAAI,IAAI;AAAA,QAC5D,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,MAAM,KAAK,UAAU,IAAI;AAAA,QACzB;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF;AACF;AAEO,MAAM,kBAAkB,CAC7B,YACA,QACA,iBACG;AACH,MAAI,WAAW,SAAS,aAAa;AACnC,WAAO,IAAI,yBAAyB,IAAI,IAAI,WAAW,GAAG,CAAC;AAAA,EAC7D;AAEA,MAAI,WAAW,SAAS,SAAS,WAAW,SAAS,QAAQ;AAC3D,WAAO;AAAA,EACT;AAEA,QAAM,cAAsC,WAAW,QACnD,EAAE,eAAe,UAAU,WAAW,KAAK,GAAG,IAC9C,CAAC;AAEL,QAAM,UAAkC;AAAA,IACtC,GAAG;AAAA,IACH,GAAI,gBAAgB,CAAC;AAAA,IACrB,GAAI,aAAa,aAAa,WAAW,WAAW,CAAC,IAAI,CAAC;AAAA,EAC5D;AAEA,MAAI,WAAW,SAAS,OAAO;AAC7B,UAAM,SAAoC;AAAA,MACxC,aAAa,EAAE,SAAS,OAAO;AAAA,IACjC;AAEA,QAAI,WAAW,OAAO;AACpB,aAAO,kBAAkB;AAAA,QACvB,OAAO,CAAC,KAAK,SAAS;AACpB,iBAAO,MAAM,KAAK;AAAA,YAChB,GAAG;AAAA,YACH,SAAS;AAAA,cACP,GAAG;AAAA,cACH,QAAQ;AAAA,YACV;AAAA,YACA;AAAA,UACF,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAEA,WAAO,IAAI,mBAAmB,IAAI,IAAI,WAAW,GAAG,GAAG,MAAM;AAAA,EAC/D;AACA,SAAO,IAAI,oBAAoB,IAAI,IAAI,WAAW,GAAG,GAAG;AAAA,IACtD,aAAa;AAAA,MACX;AAAA,MACA;AAAA;AAAA,MAEA,aAAa;AAAA,IACf;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -30,13 +30,13 @@ declare const LanguageModelCallOptionsSchema: z.ZodObject<{
30
30
  description: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  type: "json";
33
- description?: string | undefined;
34
33
  name?: string | undefined;
34
+ description?: string | undefined;
35
35
  schema?: any;
36
36
  }, {
37
37
  type: "json";
38
- description?: string | undefined;
39
38
  name?: string | undefined;
39
+ description?: string | undefined;
40
40
  schema?: any;
41
41
  }>]>>;
42
42
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -61,8 +61,8 @@ declare const LanguageModelCallOptionsSchema: z.ZodObject<{
61
61
  type: "text";
62
62
  } | {
63
63
  type: "json";
64
- description?: string | undefined;
65
64
  name?: string | undefined;
65
+ description?: string | undefined;
66
66
  schema?: any;
67
67
  } | undefined;
68
68
  toolChoice?: any;
@@ -85,8 +85,8 @@ declare const LanguageModelCallOptionsSchema: z.ZodObject<{
85
85
  type: "text";
86
86
  } | {
87
87
  type: "json";
88
- description?: string | undefined;
89
88
  name?: string | undefined;
89
+ description?: string | undefined;
90
90
  schema?: any;
91
91
  } | undefined;
92
92
  toolChoice?: any;
@@ -274,8 +274,8 @@ declare const ModelSchema: z.ZodObject<{
274
274
  }>>;
275
275
  provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "x-ai", "deepseek", "openai-compatible", "openrouter"]>>;
276
276
  }, "strip", z.ZodTypeAny, {
277
- description: string | null;
278
277
  capabilities: string[];
278
+ description: string | null;
279
279
  modelId: string;
280
280
  logo: string | null;
281
281
  limits: {
@@ -288,8 +288,8 @@ declare const ModelSchema: z.ZodObject<{
288
288
  } | null;
289
289
  provider: "openai" | "anthropic" | "google" | "x-ai" | "deepseek" | "openai-compatible" | "openrouter" | null;
290
290
  }, {
291
- description: string | null;
292
291
  capabilities: string[];
292
+ description: string | null;
293
293
  modelId: string;
294
294
  logo: string | null;
295
295
  limits: {
@@ -327,13 +327,13 @@ declare const LanguageModelInputSchema: z.ZodObject<{
327
327
  description: z.ZodOptional<z.ZodString>;
328
328
  }, "strip", z.ZodTypeAny, {
329
329
  type: "json";
330
- description?: string | undefined;
331
330
  name?: string | undefined;
331
+ description?: string | undefined;
332
332
  schema?: any;
333
333
  }, {
334
334
  type: "json";
335
- description?: string | undefined;
336
335
  name?: string | undefined;
336
+ description?: string | undefined;
337
337
  schema?: any;
338
338
  }>]>>;
339
339
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -358,8 +358,8 @@ declare const LanguageModelInputSchema: z.ZodObject<{
358
358
  type: "text";
359
359
  } | {
360
360
  type: "json";
361
- description?: string | undefined;
362
361
  name?: string | undefined;
362
+ description?: string | undefined;
363
363
  schema?: any;
364
364
  } | undefined;
365
365
  toolChoice?: any;
@@ -382,8 +382,8 @@ declare const LanguageModelInputSchema: z.ZodObject<{
382
382
  type: "text";
383
383
  } | {
384
384
  type: "json";
385
- description?: string | undefined;
386
385
  name?: string | undefined;
386
+ description?: string | undefined;
387
387
  schema?: any;
388
388
  } | undefined;
389
389
  toolChoice?: any;
@@ -409,8 +409,8 @@ declare const LanguageModelInputSchema: z.ZodObject<{
409
409
  type: "text";
410
410
  } | {
411
411
  type: "json";
412
- description?: string | undefined;
413
412
  name?: string | undefined;
413
+ description?: string | undefined;
414
414
  schema?: any;
415
415
  } | undefined;
416
416
  toolChoice?: any;
@@ -436,8 +436,8 @@ declare const LanguageModelInputSchema: z.ZodObject<{
436
436
  type: "text";
437
437
  } | {
438
438
  type: "json";
439
- description?: string | undefined;
440
439
  name?: string | undefined;
440
+ description?: string | undefined;
441
441
  schema?: any;
442
442
  } | undefined;
443
443
  toolChoice?: any;
@@ -488,8 +488,8 @@ declare const ModelCollectionEntitySchema: z.ZodObject<{
488
488
  title: string;
489
489
  created_at: string;
490
490
  updated_at: string;
491
- description: string | null;
492
491
  capabilities: string[];
492
+ description: string | null;
493
493
  logo: string | null;
494
494
  limits: {
495
495
  maxOutputTokens: number;
@@ -507,8 +507,8 @@ declare const ModelCollectionEntitySchema: z.ZodObject<{
507
507
  title: string;
508
508
  created_at: string;
509
509
  updated_at: string;
510
- description: string | null;
511
510
  capabilities: string[];
511
+ description: string | null;
512
512
  logo: string | null;
513
513
  limits: {
514
514
  maxOutputTokens: number;
@@ -576,8 +576,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
576
576
  title: string;
577
577
  created_at: string;
578
578
  updated_at: string;
579
- description: string | null;
580
579
  capabilities: string[];
580
+ description: string | null;
581
581
  logo: string | null;
582
582
  limits: {
583
583
  maxOutputTokens: number;
@@ -595,8 +595,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
595
595
  title: string;
596
596
  created_at: string;
597
597
  updated_at: string;
598
- description: string | null;
599
598
  capabilities: string[];
599
+ description: string | null;
600
600
  logo: string | null;
601
601
  limits: {
602
602
  maxOutputTokens: number;
@@ -618,8 +618,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
618
618
  title: string;
619
619
  created_at: string;
620
620
  updated_at: string;
621
- description: string | null;
622
621
  capabilities: string[];
622
+ description: string | null;
623
623
  logo: string | null;
624
624
  limits: {
625
625
  maxOutputTokens: number;
@@ -641,8 +641,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
641
641
  title: string;
642
642
  created_at: string;
643
643
  updated_at: string;
644
- description: string | null;
645
644
  capabilities: string[];
645
+ description: string | null;
646
646
  logo: string | null;
647
647
  limits: {
648
648
  maxOutputTokens: number;
@@ -700,8 +700,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
700
700
  title: string;
701
701
  created_at: string;
702
702
  updated_at: string;
703
- description: string | null;
704
703
  capabilities: string[];
704
+ description: string | null;
705
705
  logo: string | null;
706
706
  limits: {
707
707
  maxOutputTokens: number;
@@ -719,8 +719,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
719
719
  title: string;
720
720
  created_at: string;
721
721
  updated_at: string;
722
- description: string | null;
723
722
  capabilities: string[];
723
+ description: string | null;
724
724
  logo: string | null;
725
725
  limits: {
726
726
  maxOutputTokens: number;
@@ -740,8 +740,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
740
740
  title: string;
741
741
  created_at: string;
742
742
  updated_at: string;
743
- description: string | null;
744
743
  capabilities: string[];
744
+ description: string | null;
745
745
  logo: string | null;
746
746
  limits: {
747
747
  maxOutputTokens: number;
@@ -761,8 +761,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
761
761
  title: string;
762
762
  created_at: string;
763
763
  updated_at: string;
764
- description: string | null;
765
764
  capabilities: string[];
765
+ description: string | null;
766
766
  logo: string | null;
767
767
  limits: {
768
768
  maxOutputTokens: number;
@@ -817,8 +817,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
817
817
  title: string;
818
818
  created_at: string;
819
819
  updated_at: string;
820
- description: string | null;
821
820
  capabilities: string[];
821
+ description: string | null;
822
822
  logo: string | null;
823
823
  limits: {
824
824
  maxOutputTokens: number;
@@ -836,8 +836,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
836
836
  title: string;
837
837
  created_at: string;
838
838
  updated_at: string;
839
- description: string | null;
840
839
  capabilities: string[];
840
+ description: string | null;
841
841
  logo: string | null;
842
842
  limits: {
843
843
  maxOutputTokens: number;
@@ -857,8 +857,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
857
857
  title: string;
858
858
  created_at: string;
859
859
  updated_at: string;
860
- description: string | null;
861
860
  capabilities: string[];
861
+ description: string | null;
862
862
  logo: string | null;
863
863
  limits: {
864
864
  maxOutputTokens: number;
@@ -878,8 +878,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
878
878
  title: string;
879
879
  created_at: string;
880
880
  updated_at: string;
881
- description: string | null;
882
881
  capabilities: string[];
882
+ description: string | null;
883
883
  logo: string | null;
884
884
  limits: {
885
885
  maxOutputTokens: number;
@@ -932,8 +932,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
932
932
  title: string;
933
933
  created_at: string;
934
934
  updated_at: string;
935
- description: string | null;
936
935
  capabilities: string[];
936
+ description: string | null;
937
937
  logo: string | null;
938
938
  limits: {
939
939
  maxOutputTokens: number;
@@ -951,8 +951,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
951
951
  title: string;
952
952
  created_at: string;
953
953
  updated_at: string;
954
- description: string | null;
955
954
  capabilities: string[];
955
+ description: string | null;
956
956
  logo: string | null;
957
957
  limits: {
958
958
  maxOutputTokens: number;
@@ -972,8 +972,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
972
972
  title: string;
973
973
  created_at: string;
974
974
  updated_at: string;
975
- description: string | null;
976
975
  capabilities: string[];
976
+ description: string | null;
977
977
  logo: string | null;
978
978
  limits: {
979
979
  maxOutputTokens: number;
@@ -993,8 +993,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
993
993
  title: string;
994
994
  created_at: string;
995
995
  updated_at: string;
996
- description: string | null;
997
996
  capabilities: string[];
997
+ description: string | null;
998
998
  logo: string | null;
999
999
  limits: {
1000
1000
  maxOutputTokens: number;
@@ -1070,8 +1070,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1070
1070
  title: string;
1071
1071
  created_at: string;
1072
1072
  updated_at: string;
1073
- description: string | null;
1074
1073
  capabilities: string[];
1074
+ description: string | null;
1075
1075
  logo: string | null;
1076
1076
  limits: {
1077
1077
  maxOutputTokens: number;
@@ -1089,8 +1089,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1089
1089
  title: string;
1090
1090
  created_at: string;
1091
1091
  updated_at: string;
1092
- description: string | null;
1093
1092
  capabilities: string[];
1093
+ description: string | null;
1094
1094
  logo: string | null;
1095
1095
  limits: {
1096
1096
  maxOutputTokens: number;
@@ -1110,8 +1110,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1110
1110
  title: string;
1111
1111
  created_at: string;
1112
1112
  updated_at: string;
1113
- description: string | null;
1114
1113
  capabilities: string[];
1114
+ description: string | null;
1115
1115
  logo: string | null;
1116
1116
  limits: {
1117
1117
  maxOutputTokens: number;
@@ -1131,8 +1131,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1131
1131
  title: string;
1132
1132
  created_at: string;
1133
1133
  updated_at: string;
1134
- description: string | null;
1135
1134
  capabilities: string[];
1135
+ description: string | null;
1136
1136
  logo: string | null;
1137
1137
  limits: {
1138
1138
  maxOutputTokens: number;
@@ -1189,8 +1189,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1189
1189
  title: string;
1190
1190
  created_at: string;
1191
1191
  updated_at: string;
1192
- description: string | null;
1193
1192
  capabilities: string[];
1193
+ description: string | null;
1194
1194
  logo: string | null;
1195
1195
  limits: {
1196
1196
  maxOutputTokens: number;
@@ -1208,8 +1208,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1208
1208
  title: string;
1209
1209
  created_at: string;
1210
1210
  updated_at: string;
1211
- description: string | null;
1212
1211
  capabilities: string[];
1212
+ description: string | null;
1213
1213
  logo: string | null;
1214
1214
  limits: {
1215
1215
  maxOutputTokens: number;
@@ -1229,8 +1229,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1229
1229
  title: string;
1230
1230
  created_at: string;
1231
1231
  updated_at: string;
1232
- description: string | null;
1233
1232
  capabilities: string[];
1233
+ description: string | null;
1234
1234
  logo: string | null;
1235
1235
  limits: {
1236
1236
  maxOutputTokens: number;
@@ -1250,8 +1250,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1250
1250
  title: string;
1251
1251
  created_at: string;
1252
1252
  updated_at: string;
1253
- description: string | null;
1254
1253
  capabilities: string[];
1254
+ description: string | null;
1255
1255
  logo: string | null;
1256
1256
  limits: {
1257
1257
  maxOutputTokens: number;
@@ -1311,13 +1311,13 @@ declare const LANGUAGE_MODEL_BINDING: ({
1311
1311
  description: z.ZodOptional<z.ZodString>;
1312
1312
  }, "strip", z.ZodTypeAny, {
1313
1313
  type: "json";
1314
- description?: string | undefined;
1315
1314
  name?: string | undefined;
1315
+ description?: string | undefined;
1316
1316
  schema?: any;
1317
1317
  }, {
1318
1318
  type: "json";
1319
- description?: string | undefined;
1320
1319
  name?: string | undefined;
1320
+ description?: string | undefined;
1321
1321
  schema?: any;
1322
1322
  }>]>>;
1323
1323
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -1342,8 +1342,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1342
1342
  type: "text";
1343
1343
  } | {
1344
1344
  type: "json";
1345
- description?: string | undefined;
1346
1345
  name?: string | undefined;
1346
+ description?: string | undefined;
1347
1347
  schema?: any;
1348
1348
  } | undefined;
1349
1349
  toolChoice?: any;
@@ -1366,8 +1366,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1366
1366
  type: "text";
1367
1367
  } | {
1368
1368
  type: "json";
1369
- description?: string | undefined;
1370
1369
  name?: string | undefined;
1370
+ description?: string | undefined;
1371
1371
  schema?: any;
1372
1372
  } | undefined;
1373
1373
  toolChoice?: any;
@@ -1393,8 +1393,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1393
1393
  type: "text";
1394
1394
  } | {
1395
1395
  type: "json";
1396
- description?: string | undefined;
1397
1396
  name?: string | undefined;
1397
+ description?: string | undefined;
1398
1398
  schema?: any;
1399
1399
  } | undefined;
1400
1400
  toolChoice?: any;
@@ -1420,8 +1420,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1420
1420
  type: "text";
1421
1421
  } | {
1422
1422
  type: "json";
1423
- description?: string | undefined;
1424
1423
  name?: string | undefined;
1424
+ description?: string | undefined;
1425
1425
  schema?: any;
1426
1426
  } | undefined;
1427
1427
  toolChoice?: any;
@@ -1459,13 +1459,13 @@ declare const LANGUAGE_MODEL_BINDING: ({
1459
1459
  description: z.ZodOptional<z.ZodString>;
1460
1460
  }, "strip", z.ZodTypeAny, {
1461
1461
  type: "json";
1462
- description?: string | undefined;
1463
1462
  name?: string | undefined;
1463
+ description?: string | undefined;
1464
1464
  schema?: any;
1465
1465
  }, {
1466
1466
  type: "json";
1467
- description?: string | undefined;
1468
1467
  name?: string | undefined;
1468
+ description?: string | undefined;
1469
1469
  schema?: any;
1470
1470
  }>]>>;
1471
1471
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -1490,8 +1490,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1490
1490
  type: "text";
1491
1491
  } | {
1492
1492
  type: "json";
1493
- description?: string | undefined;
1494
1493
  name?: string | undefined;
1494
+ description?: string | undefined;
1495
1495
  schema?: any;
1496
1496
  } | undefined;
1497
1497
  toolChoice?: any;
@@ -1514,8 +1514,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1514
1514
  type: "text";
1515
1515
  } | {
1516
1516
  type: "json";
1517
- description?: string | undefined;
1518
1517
  name?: string | undefined;
1518
+ description?: string | undefined;
1519
1519
  schema?: any;
1520
1520
  } | undefined;
1521
1521
  toolChoice?: any;
@@ -1541,8 +1541,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1541
1541
  type: "text";
1542
1542
  } | {
1543
1543
  type: "json";
1544
- description?: string | undefined;
1545
1544
  name?: string | undefined;
1545
+ description?: string | undefined;
1546
1546
  schema?: any;
1547
1547
  } | undefined;
1548
1548
  toolChoice?: any;
@@ -1568,8 +1568,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1568
1568
  type: "text";
1569
1569
  } | {
1570
1570
  type: "json";
1571
- description?: string | undefined;
1572
1571
  name?: string | undefined;
1572
+ description?: string | undefined;
1573
1573
  schema?: any;
1574
1574
  } | undefined;
1575
1575
  toolChoice?: any;
@@ -1724,8 +1724,8 @@ declare const LanguageModelBinding: {
1724
1724
  title: string;
1725
1725
  created_at: string;
1726
1726
  updated_at: string;
1727
- description: string | null;
1728
1727
  capabilities: string[];
1728
+ description: string | null;
1729
1729
  logo: string | null;
1730
1730
  limits: {
1731
1731
  maxOutputTokens: number;
@@ -1743,8 +1743,8 @@ declare const LanguageModelBinding: {
1743
1743
  title: string;
1744
1744
  created_at: string;
1745
1745
  updated_at: string;
1746
- description: string | null;
1747
1746
  capabilities: string[];
1747
+ description: string | null;
1748
1748
  logo: string | null;
1749
1749
  limits: {
1750
1750
  maxOutputTokens: number;
@@ -1766,8 +1766,8 @@ declare const LanguageModelBinding: {
1766
1766
  title: string;
1767
1767
  created_at: string;
1768
1768
  updated_at: string;
1769
- description: string | null;
1770
1769
  capabilities: string[];
1770
+ description: string | null;
1771
1771
  logo: string | null;
1772
1772
  limits: {
1773
1773
  maxOutputTokens: number;
@@ -1789,8 +1789,8 @@ declare const LanguageModelBinding: {
1789
1789
  title: string;
1790
1790
  created_at: string;
1791
1791
  updated_at: string;
1792
- description: string | null;
1793
1792
  capabilities: string[];
1793
+ description: string | null;
1794
1794
  logo: string | null;
1795
1795
  limits: {
1796
1796
  maxOutputTokens: number;
@@ -1848,8 +1848,8 @@ declare const LanguageModelBinding: {
1848
1848
  title: string;
1849
1849
  created_at: string;
1850
1850
  updated_at: string;
1851
- description: string | null;
1852
1851
  capabilities: string[];
1852
+ description: string | null;
1853
1853
  logo: string | null;
1854
1854
  limits: {
1855
1855
  maxOutputTokens: number;
@@ -1867,8 +1867,8 @@ declare const LanguageModelBinding: {
1867
1867
  title: string;
1868
1868
  created_at: string;
1869
1869
  updated_at: string;
1870
- description: string | null;
1871
1870
  capabilities: string[];
1871
+ description: string | null;
1872
1872
  logo: string | null;
1873
1873
  limits: {
1874
1874
  maxOutputTokens: number;
@@ -1888,8 +1888,8 @@ declare const LanguageModelBinding: {
1888
1888
  title: string;
1889
1889
  created_at: string;
1890
1890
  updated_at: string;
1891
- description: string | null;
1892
1891
  capabilities: string[];
1892
+ description: string | null;
1893
1893
  logo: string | null;
1894
1894
  limits: {
1895
1895
  maxOutputTokens: number;
@@ -1909,8 +1909,8 @@ declare const LanguageModelBinding: {
1909
1909
  title: string;
1910
1910
  created_at: string;
1911
1911
  updated_at: string;
1912
- description: string | null;
1913
1912
  capabilities: string[];
1913
+ description: string | null;
1914
1914
  logo: string | null;
1915
1915
  limits: {
1916
1916
  maxOutputTokens: number;
@@ -1965,8 +1965,8 @@ declare const LanguageModelBinding: {
1965
1965
  title: string;
1966
1966
  created_at: string;
1967
1967
  updated_at: string;
1968
- description: string | null;
1969
1968
  capabilities: string[];
1969
+ description: string | null;
1970
1970
  logo: string | null;
1971
1971
  limits: {
1972
1972
  maxOutputTokens: number;
@@ -1984,8 +1984,8 @@ declare const LanguageModelBinding: {
1984
1984
  title: string;
1985
1985
  created_at: string;
1986
1986
  updated_at: string;
1987
- description: string | null;
1988
1987
  capabilities: string[];
1988
+ description: string | null;
1989
1989
  logo: string | null;
1990
1990
  limits: {
1991
1991
  maxOutputTokens: number;
@@ -2005,8 +2005,8 @@ declare const LanguageModelBinding: {
2005
2005
  title: string;
2006
2006
  created_at: string;
2007
2007
  updated_at: string;
2008
- description: string | null;
2009
2008
  capabilities: string[];
2009
+ description: string | null;
2010
2010
  logo: string | null;
2011
2011
  limits: {
2012
2012
  maxOutputTokens: number;
@@ -2026,8 +2026,8 @@ declare const LanguageModelBinding: {
2026
2026
  title: string;
2027
2027
  created_at: string;
2028
2028
  updated_at: string;
2029
- description: string | null;
2030
2029
  capabilities: string[];
2030
+ description: string | null;
2031
2031
  logo: string | null;
2032
2032
  limits: {
2033
2033
  maxOutputTokens: number;
@@ -2080,8 +2080,8 @@ declare const LanguageModelBinding: {
2080
2080
  title: string;
2081
2081
  created_at: string;
2082
2082
  updated_at: string;
2083
- description: string | null;
2084
2083
  capabilities: string[];
2084
+ description: string | null;
2085
2085
  logo: string | null;
2086
2086
  limits: {
2087
2087
  maxOutputTokens: number;
@@ -2099,8 +2099,8 @@ declare const LanguageModelBinding: {
2099
2099
  title: string;
2100
2100
  created_at: string;
2101
2101
  updated_at: string;
2102
- description: string | null;
2103
2102
  capabilities: string[];
2103
+ description: string | null;
2104
2104
  logo: string | null;
2105
2105
  limits: {
2106
2106
  maxOutputTokens: number;
@@ -2120,8 +2120,8 @@ declare const LanguageModelBinding: {
2120
2120
  title: string;
2121
2121
  created_at: string;
2122
2122
  updated_at: string;
2123
- description: string | null;
2124
2123
  capabilities: string[];
2124
+ description: string | null;
2125
2125
  logo: string | null;
2126
2126
  limits: {
2127
2127
  maxOutputTokens: number;
@@ -2141,8 +2141,8 @@ declare const LanguageModelBinding: {
2141
2141
  title: string;
2142
2142
  created_at: string;
2143
2143
  updated_at: string;
2144
- description: string | null;
2145
2144
  capabilities: string[];
2145
+ description: string | null;
2146
2146
  logo: string | null;
2147
2147
  limits: {
2148
2148
  maxOutputTokens: number;
@@ -2218,8 +2218,8 @@ declare const LanguageModelBinding: {
2218
2218
  title: string;
2219
2219
  created_at: string;
2220
2220
  updated_at: string;
2221
- description: string | null;
2222
2221
  capabilities: string[];
2222
+ description: string | null;
2223
2223
  logo: string | null;
2224
2224
  limits: {
2225
2225
  maxOutputTokens: number;
@@ -2237,8 +2237,8 @@ declare const LanguageModelBinding: {
2237
2237
  title: string;
2238
2238
  created_at: string;
2239
2239
  updated_at: string;
2240
- description: string | null;
2241
2240
  capabilities: string[];
2241
+ description: string | null;
2242
2242
  logo: string | null;
2243
2243
  limits: {
2244
2244
  maxOutputTokens: number;
@@ -2258,8 +2258,8 @@ declare const LanguageModelBinding: {
2258
2258
  title: string;
2259
2259
  created_at: string;
2260
2260
  updated_at: string;
2261
- description: string | null;
2262
2261
  capabilities: string[];
2262
+ description: string | null;
2263
2263
  logo: string | null;
2264
2264
  limits: {
2265
2265
  maxOutputTokens: number;
@@ -2279,8 +2279,8 @@ declare const LanguageModelBinding: {
2279
2279
  title: string;
2280
2280
  created_at: string;
2281
2281
  updated_at: string;
2282
- description: string | null;
2283
2282
  capabilities: string[];
2283
+ description: string | null;
2284
2284
  logo: string | null;
2285
2285
  limits: {
2286
2286
  maxOutputTokens: number;
@@ -2337,8 +2337,8 @@ declare const LanguageModelBinding: {
2337
2337
  title: string;
2338
2338
  created_at: string;
2339
2339
  updated_at: string;
2340
- description: string | null;
2341
2340
  capabilities: string[];
2341
+ description: string | null;
2342
2342
  logo: string | null;
2343
2343
  limits: {
2344
2344
  maxOutputTokens: number;
@@ -2356,8 +2356,8 @@ declare const LanguageModelBinding: {
2356
2356
  title: string;
2357
2357
  created_at: string;
2358
2358
  updated_at: string;
2359
- description: string | null;
2360
2359
  capabilities: string[];
2360
+ description: string | null;
2361
2361
  logo: string | null;
2362
2362
  limits: {
2363
2363
  maxOutputTokens: number;
@@ -2377,8 +2377,8 @@ declare const LanguageModelBinding: {
2377
2377
  title: string;
2378
2378
  created_at: string;
2379
2379
  updated_at: string;
2380
- description: string | null;
2381
2380
  capabilities: string[];
2381
+ description: string | null;
2382
2382
  logo: string | null;
2383
2383
  limits: {
2384
2384
  maxOutputTokens: number;
@@ -2398,8 +2398,8 @@ declare const LanguageModelBinding: {
2398
2398
  title: string;
2399
2399
  created_at: string;
2400
2400
  updated_at: string;
2401
- description: string | null;
2402
2401
  capabilities: string[];
2402
+ description: string | null;
2403
2403
  logo: string | null;
2404
2404
  limits: {
2405
2405
  maxOutputTokens: number;
@@ -2459,13 +2459,13 @@ declare const LanguageModelBinding: {
2459
2459
  description: z.ZodOptional<z.ZodString>;
2460
2460
  }, "strip", z.ZodTypeAny, {
2461
2461
  type: "json";
2462
- description?: string | undefined;
2463
2462
  name?: string | undefined;
2463
+ description?: string | undefined;
2464
2464
  schema?: any;
2465
2465
  }, {
2466
2466
  type: "json";
2467
- description?: string | undefined;
2468
2467
  name?: string | undefined;
2468
+ description?: string | undefined;
2469
2469
  schema?: any;
2470
2470
  }>]>>;
2471
2471
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -2490,8 +2490,8 @@ declare const LanguageModelBinding: {
2490
2490
  type: "text";
2491
2491
  } | {
2492
2492
  type: "json";
2493
- description?: string | undefined;
2494
2493
  name?: string | undefined;
2494
+ description?: string | undefined;
2495
2495
  schema?: any;
2496
2496
  } | undefined;
2497
2497
  toolChoice?: any;
@@ -2514,8 +2514,8 @@ declare const LanguageModelBinding: {
2514
2514
  type: "text";
2515
2515
  } | {
2516
2516
  type: "json";
2517
- description?: string | undefined;
2518
2517
  name?: string | undefined;
2518
+ description?: string | undefined;
2519
2519
  schema?: any;
2520
2520
  } | undefined;
2521
2521
  toolChoice?: any;
@@ -2541,8 +2541,8 @@ declare const LanguageModelBinding: {
2541
2541
  type: "text";
2542
2542
  } | {
2543
2543
  type: "json";
2544
- description?: string | undefined;
2545
2544
  name?: string | undefined;
2545
+ description?: string | undefined;
2546
2546
  schema?: any;
2547
2547
  } | undefined;
2548
2548
  toolChoice?: any;
@@ -2568,8 +2568,8 @@ declare const LanguageModelBinding: {
2568
2568
  type: "text";
2569
2569
  } | {
2570
2570
  type: "json";
2571
- description?: string | undefined;
2572
2571
  name?: string | undefined;
2572
+ description?: string | undefined;
2573
2573
  schema?: any;
2574
2574
  } | undefined;
2575
2575
  toolChoice?: any;
@@ -2607,13 +2607,13 @@ declare const LanguageModelBinding: {
2607
2607
  description: z.ZodOptional<z.ZodString>;
2608
2608
  }, "strip", z.ZodTypeAny, {
2609
2609
  type: "json";
2610
- description?: string | undefined;
2611
2610
  name?: string | undefined;
2611
+ description?: string | undefined;
2612
2612
  schema?: any;
2613
2613
  }, {
2614
2614
  type: "json";
2615
- description?: string | undefined;
2616
2615
  name?: string | undefined;
2616
+ description?: string | undefined;
2617
2617
  schema?: any;
2618
2618
  }>]>>;
2619
2619
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -2638,8 +2638,8 @@ declare const LanguageModelBinding: {
2638
2638
  type: "text";
2639
2639
  } | {
2640
2640
  type: "json";
2641
- description?: string | undefined;
2642
2641
  name?: string | undefined;
2642
+ description?: string | undefined;
2643
2643
  schema?: any;
2644
2644
  } | undefined;
2645
2645
  toolChoice?: any;
@@ -2662,8 +2662,8 @@ declare const LanguageModelBinding: {
2662
2662
  type: "text";
2663
2663
  } | {
2664
2664
  type: "json";
2665
- description?: string | undefined;
2666
2665
  name?: string | undefined;
2666
+ description?: string | undefined;
2667
2667
  schema?: any;
2668
2668
  } | undefined;
2669
2669
  toolChoice?: any;
@@ -2689,8 +2689,8 @@ declare const LanguageModelBinding: {
2689
2689
  type: "text";
2690
2690
  } | {
2691
2691
  type: "json";
2692
- description?: string | undefined;
2693
2692
  name?: string | undefined;
2693
+ description?: string | undefined;
2694
2694
  schema?: any;
2695
2695
  } | undefined;
2696
2696
  toolChoice?: any;
@@ -2716,8 +2716,8 @@ declare const LanguageModelBinding: {
2716
2716
  type: "text";
2717
2717
  } | {
2718
2718
  type: "json";
2719
- description?: string | undefined;
2720
2719
  name?: string | undefined;
2720
+ description?: string | undefined;
2721
2721
  schema?: any;
2722
2722
  } | undefined;
2723
2723
  toolChoice?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/bindings",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -9,7 +9,7 @@
9
9
  "prepublishOnly": "npm run build"
10
10
  },
11
11
  "dependencies": {
12
- "@modelcontextprotocol/sdk": "^1.20.2",
12
+ "@modelcontextprotocol/sdk": "1.20.2",
13
13
  "zod": "^3.25.76",
14
14
  "zod-from-json-schema": "^0.0.5",
15
15
  "zod-to-json-schema": "3.25.0"
@@ -21,27 +21,31 @@
21
21
  ],
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/index.d.ts",
24
+ "types": "./src/index.ts",
25
25
  "default": "./dist/index.js"
26
26
  },
27
- "./client": {
28
- "types": "./dist/core/client/index.d.ts",
29
- "default": "./dist/core/client/index.js"
27
+ "./models": {
28
+ "types": "./src/well-known/models.ts",
29
+ "default": "./dist/well-known/models.js"
30
+ },
31
+ "./collections": {
32
+ "types": "./src/well-known/collections.ts",
33
+ "default": "./dist/well-known/collections.js"
30
34
  },
31
35
  "./llm": {
32
- "types": "./dist/well-known/language-model.d.ts",
36
+ "types": "./src/well-known/language-model.ts",
33
37
  "default": "./dist/well-known/language-model.js"
34
38
  },
35
39
  "./connection": {
36
- "types": "./dist/core/connection.d.ts",
40
+ "types": "./src/core/connection.ts",
37
41
  "default": "./dist/core/connection.js"
38
42
  },
39
- "./collections": {
40
- "types": "./dist/well-known/collections.d.ts",
41
- "default": "./dist/well-known/collections.js"
43
+ "./client": {
44
+ "types": "./src/core/client/index.ts",
45
+ "default": "./dist/core/client/index.js"
42
46
  },
43
47
  "./agent": {
44
- "types": "./dist/well-known/agent.d.ts",
48
+ "types": "./src/well-known/agent.ts",
45
49
  "default": "./dist/well-known/agent.js"
46
50
  }
47
51
  },