@decocms/runtime 0.0.1-testing-beta.1

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.
Files changed (85) hide show
  1. package/config-schema.json +553 -0
  2. package/dist/admin.d.ts +5 -0
  3. package/dist/admin.js +21 -0
  4. package/dist/admin.js.map +1 -0
  5. package/dist/bindings/deconfig/index.d.ts +9 -0
  6. package/dist/bindings/deconfig/index.js +9 -0
  7. package/dist/bindings/deconfig/index.js.map +1 -0
  8. package/dist/bindings/index.d.ts +1053 -0
  9. package/dist/bindings/index.js +132 -0
  10. package/dist/bindings/index.js.map +1 -0
  11. package/dist/chunk-4XSQKJLU.js +105 -0
  12. package/dist/chunk-4XSQKJLU.js.map +1 -0
  13. package/dist/chunk-AOFOWQXY.js +27 -0
  14. package/dist/chunk-AOFOWQXY.js.map +1 -0
  15. package/dist/chunk-F6XZPFWM.js +127 -0
  16. package/dist/chunk-F6XZPFWM.js.map +1 -0
  17. package/dist/chunk-IB3KGSMB.js +150 -0
  18. package/dist/chunk-IB3KGSMB.js.map +1 -0
  19. package/dist/chunk-NKUMVYKI.js +128 -0
  20. package/dist/chunk-NKUMVYKI.js.map +1 -0
  21. package/dist/chunk-NMXOC7PT.js +763 -0
  22. package/dist/chunk-NMXOC7PT.js.map +1 -0
  23. package/dist/chunk-OSSKGDAG.js +395 -0
  24. package/dist/chunk-OSSKGDAG.js.map +1 -0
  25. package/dist/chunk-UHR3BLMF.js +92 -0
  26. package/dist/chunk-UHR3BLMF.js.map +1 -0
  27. package/dist/client.d.ts +28 -0
  28. package/dist/client.js +4 -0
  29. package/dist/client.js.map +1 -0
  30. package/dist/connection-DDtQYrea.d.ts +30 -0
  31. package/dist/drizzle.d.ts +47 -0
  32. package/dist/drizzle.js +121 -0
  33. package/dist/drizzle.js.map +1 -0
  34. package/dist/index-AKVjfH4b.d.ts +336 -0
  35. package/dist/index-kMsI0ELb.d.ts +530 -0
  36. package/dist/index.d.ts +8 -0
  37. package/dist/index.js +507 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/mastra.d.ts +8 -0
  40. package/dist/mastra.js +5 -0
  41. package/dist/mastra.js.map +1 -0
  42. package/dist/mcp-Bv7IAgWX.d.ts +109 -0
  43. package/dist/mcp-client.d.ts +236 -0
  44. package/dist/mcp-client.js +3 -0
  45. package/dist/mcp-client.js.map +1 -0
  46. package/dist/proxy.d.ts +10 -0
  47. package/dist/proxy.js +4 -0
  48. package/dist/proxy.js.map +1 -0
  49. package/dist/resources.d.ts +362 -0
  50. package/dist/resources.js +3 -0
  51. package/dist/resources.js.map +1 -0
  52. package/dist/views.d.ts +72 -0
  53. package/dist/views.js +3 -0
  54. package/dist/views.js.map +1 -0
  55. package/package.json +98 -0
  56. package/src/admin.ts +16 -0
  57. package/src/auth.ts +233 -0
  58. package/src/bindings/README.md +132 -0
  59. package/src/bindings/binder.ts +143 -0
  60. package/src/bindings/channels.ts +54 -0
  61. package/src/bindings/deconfig/helpers.ts +107 -0
  62. package/src/bindings/deconfig/index.ts +1 -0
  63. package/src/bindings/deconfig/resources.ts +659 -0
  64. package/src/bindings/deconfig/types.ts +106 -0
  65. package/src/bindings/index.ts +61 -0
  66. package/src/bindings/resources/bindings.ts +99 -0
  67. package/src/bindings/resources/helpers.ts +95 -0
  68. package/src/bindings/resources/schemas.ts +265 -0
  69. package/src/bindings/utils.ts +22 -0
  70. package/src/bindings/views.ts +14 -0
  71. package/src/bindings.ts +179 -0
  72. package/src/client.ts +201 -0
  73. package/src/connection.ts +53 -0
  74. package/src/drizzle.ts +201 -0
  75. package/src/http-client-transport.ts +66 -0
  76. package/src/index.ts +394 -0
  77. package/src/mastra.ts +666 -0
  78. package/src/mcp-client.ts +119 -0
  79. package/src/mcp.ts +171 -0
  80. package/src/proxy.ts +204 -0
  81. package/src/resources.ts +168 -0
  82. package/src/state.ts +44 -0
  83. package/src/views.ts +26 -0
  84. package/src/well-known.ts +20 -0
  85. package/src/wrangler.ts +146 -0
@@ -0,0 +1,1053 @@
1
+ import * as zod from 'zod';
2
+ import { z } from 'zod';
3
+ export { B as BaseResourceDataSchema, D as DeconfigClient, b as DeconfigResourceOptions, E as EnhancedResourcesTools, f as ResourceBinding, g as ResourceBindingsFunction, R as ResourcesBinding, d as ResourcesTools, a as createDeconfigResource, c as createResourceBindings, e as deconfigTools } from '../index-kMsI0ELb.js';
4
+ import * as _mastra_core from '@mastra/core';
5
+ import { M as MCPConnection } from '../connection-DDtQYrea.js';
6
+ import { c as createPrivateTool } from '../index-AKVjfH4b.js';
7
+ import { T as ToolBinder, M as MCPClientFetchStub } from '../mcp-Bv7IAgWX.js';
8
+ import '@cloudflare/workers-types';
9
+ import '@mastra/core/di';
10
+ import '../resources.js';
11
+
12
+ declare const callbacksSchema: z.ZodObject<{
13
+ stream: z.ZodString;
14
+ generate: z.ZodString;
15
+ generateObject: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ stream: string;
18
+ generate: string;
19
+ generateObject: string;
20
+ }, {
21
+ stream: string;
22
+ generate: string;
23
+ generateObject: string;
24
+ }>;
25
+ declare const joinChannelSchema: z.ZodObject<{
26
+ workspace: z.ZodString;
27
+ discriminator: z.ZodString;
28
+ } & {
29
+ agentId: z.ZodString;
30
+ agentName: z.ZodString;
31
+ agentLink: z.ZodString;
32
+ } & {
33
+ callbacks: z.ZodObject<{
34
+ stream: z.ZodString;
35
+ generate: z.ZodString;
36
+ generateObject: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ stream: string;
39
+ generate: string;
40
+ generateObject: string;
41
+ }, {
42
+ stream: string;
43
+ generate: string;
44
+ generateObject: string;
45
+ }>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ workspace: string;
48
+ discriminator: string;
49
+ agentId: string;
50
+ agentName: string;
51
+ agentLink: string;
52
+ callbacks: {
53
+ stream: string;
54
+ generate: string;
55
+ generateObject: string;
56
+ };
57
+ }, {
58
+ workspace: string;
59
+ discriminator: string;
60
+ agentId: string;
61
+ agentName: string;
62
+ agentLink: string;
63
+ callbacks: {
64
+ stream: string;
65
+ generate: string;
66
+ generateObject: string;
67
+ };
68
+ }>;
69
+ declare const listChannelsSchema: z.ZodObject<{
70
+ channels: z.ZodArray<z.ZodObject<{
71
+ label: z.ZodString;
72
+ value: z.ZodString;
73
+ }, "strip", z.ZodTypeAny, {
74
+ value: string;
75
+ label: string;
76
+ }, {
77
+ value: string;
78
+ label: string;
79
+ }>, "many">;
80
+ }, "strip", z.ZodTypeAny, {
81
+ channels: {
82
+ value: string;
83
+ label: string;
84
+ }[];
85
+ }, {
86
+ channels: {
87
+ value: string;
88
+ label: string;
89
+ }[];
90
+ }>;
91
+ type Callbacks = z.infer<typeof callbacksSchema>;
92
+ type JoinedChannelPayload = z.infer<typeof joinChannelSchema>;
93
+ type ListChannelsSchema = z.infer<typeof listChannelsSchema>;
94
+ declare const CHANNEL_BINDING_SCHEMA: readonly [{
95
+ readonly name: "DECO_CHAT_CHANNELS_JOIN";
96
+ readonly inputSchema: z.ZodObject<{
97
+ workspace: z.ZodString;
98
+ discriminator: z.ZodString;
99
+ } & {
100
+ agentId: z.ZodString;
101
+ agentName: z.ZodString;
102
+ agentLink: z.ZodString;
103
+ } & {
104
+ callbacks: z.ZodObject<{
105
+ stream: z.ZodString;
106
+ generate: z.ZodString;
107
+ generateObject: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ stream: string;
110
+ generate: string;
111
+ generateObject: string;
112
+ }, {
113
+ stream: string;
114
+ generate: string;
115
+ generateObject: string;
116
+ }>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ workspace: string;
119
+ discriminator: string;
120
+ agentId: string;
121
+ agentName: string;
122
+ agentLink: string;
123
+ callbacks: {
124
+ stream: string;
125
+ generate: string;
126
+ generateObject: string;
127
+ };
128
+ }, {
129
+ workspace: string;
130
+ discriminator: string;
131
+ agentId: string;
132
+ agentName: string;
133
+ agentLink: string;
134
+ callbacks: {
135
+ stream: string;
136
+ generate: string;
137
+ generateObject: string;
138
+ };
139
+ }>;
140
+ readonly outputSchema: z.ZodAny;
141
+ }, {
142
+ readonly name: "DECO_CHAT_CHANNELS_LEAVE";
143
+ readonly inputSchema: z.ZodObject<{
144
+ workspace: z.ZodString;
145
+ discriminator: z.ZodString;
146
+ }, "strip", z.ZodTypeAny, {
147
+ workspace: string;
148
+ discriminator: string;
149
+ }, {
150
+ workspace: string;
151
+ discriminator: string;
152
+ }>;
153
+ readonly outputSchema: z.ZodAny;
154
+ }, {
155
+ readonly name: "DECO_CHAT_CHANNELS_LIST";
156
+ readonly inputSchema: z.ZodAny;
157
+ readonly outputSchema: z.ZodObject<{
158
+ channels: z.ZodArray<z.ZodObject<{
159
+ label: z.ZodString;
160
+ value: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ value: string;
163
+ label: string;
164
+ }, {
165
+ value: string;
166
+ label: string;
167
+ }>, "many">;
168
+ }, "strip", z.ZodTypeAny, {
169
+ channels: {
170
+ value: string;
171
+ label: string;
172
+ }[];
173
+ }, {
174
+ channels: {
175
+ value: string;
176
+ label: string;
177
+ }[];
178
+ }>;
179
+ readonly opt: true;
180
+ }];
181
+
182
+ interface ToolLike<TName extends string = string, TInput = any, TReturn extends object | null | boolean = object> {
183
+ name: TName;
184
+ description: string;
185
+ inputSchema: z.ZodType<TInput>;
186
+ outputSchema?: z.ZodType<TReturn>;
187
+ handler: (props: TInput) => Promise<TReturn> | TReturn;
188
+ }
189
+ type Binder<TDefinition extends readonly ToolBinder[] = readonly ToolBinder[]> = TDefinition;
190
+ type BinderImplementation<TBinder extends Binder<any>, TContext = any> = TBinder extends Binder<infer TDefinition> ? {
191
+ [K in keyof TDefinition]: Omit<ToolLike<TDefinition[K]["name"], z.infer<TDefinition[K]["inputSchema"]>, TDefinition[K] extends {
192
+ outputSchema: infer Schema;
193
+ } ? Schema extends z.ZodType ? z.infer<Schema> : never : never>, "name" | "inputSchema" | "outputSchema" | "handler"> & {
194
+ handler: (props: z.infer<TDefinition[K]["inputSchema"]>, c?: TContext) => ReturnType<ToolLike<TDefinition[K]["name"], z.infer<TDefinition[K]["inputSchema"]>, TDefinition[K] extends {
195
+ outputSchema: infer Schema;
196
+ } ? Schema extends z.ZodType ? z.infer<Schema> : never : never>["handler"]>;
197
+ };
198
+ } : never;
199
+ declare const bindingClient: <TDefinition extends readonly ToolBinder[]>(binder: TDefinition) => {
200
+ implements: (tools: ToolBinder[]) => boolean;
201
+ forConnection: (mcpConnection: MCPConnection) => MCPClientFetchStub<TDefinition>;
202
+ };
203
+ type MCPBindingClient<T extends ReturnType<typeof bindingClient>> = ReturnType<T["forConnection"]>;
204
+ declare const ChannelBinding: {
205
+ implements: (tools: ToolBinder[]) => boolean;
206
+ forConnection: (mcpConnection: MCPConnection) => MCPClientFetchStub<readonly [{
207
+ readonly name: "DECO_CHAT_CHANNELS_JOIN";
208
+ readonly inputSchema: z.ZodObject<{
209
+ workspace: z.ZodString;
210
+ discriminator: z.ZodString;
211
+ } & {
212
+ agentId: z.ZodString;
213
+ agentName: z.ZodString;
214
+ agentLink: z.ZodString;
215
+ } & {
216
+ callbacks: z.ZodObject<{
217
+ stream: z.ZodString;
218
+ generate: z.ZodString;
219
+ generateObject: z.ZodString;
220
+ }, "strip", z.ZodTypeAny, {
221
+ stream: string;
222
+ generate: string;
223
+ generateObject: string;
224
+ }, {
225
+ stream: string;
226
+ generate: string;
227
+ generateObject: string;
228
+ }>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ workspace: string;
231
+ discriminator: string;
232
+ agentId: string;
233
+ agentName: string;
234
+ agentLink: string;
235
+ callbacks: {
236
+ stream: string;
237
+ generate: string;
238
+ generateObject: string;
239
+ };
240
+ }, {
241
+ workspace: string;
242
+ discriminator: string;
243
+ agentId: string;
244
+ agentName: string;
245
+ agentLink: string;
246
+ callbacks: {
247
+ stream: string;
248
+ generate: string;
249
+ generateObject: string;
250
+ };
251
+ }>;
252
+ readonly outputSchema: z.ZodAny;
253
+ }, {
254
+ readonly name: "DECO_CHAT_CHANNELS_LEAVE";
255
+ readonly inputSchema: z.ZodObject<{
256
+ workspace: z.ZodString;
257
+ discriminator: z.ZodString;
258
+ }, "strip", z.ZodTypeAny, {
259
+ workspace: string;
260
+ discriminator: string;
261
+ }, {
262
+ workspace: string;
263
+ discriminator: string;
264
+ }>;
265
+ readonly outputSchema: z.ZodAny;
266
+ }, {
267
+ readonly name: "DECO_CHAT_CHANNELS_LIST";
268
+ readonly inputSchema: z.ZodAny;
269
+ readonly outputSchema: z.ZodObject<{
270
+ channels: z.ZodArray<z.ZodObject<{
271
+ label: z.ZodString;
272
+ value: z.ZodString;
273
+ }, "strip", z.ZodTypeAny, {
274
+ value: string;
275
+ label: string;
276
+ }, {
277
+ value: string;
278
+ label: string;
279
+ }>, "many">;
280
+ }, "strip", z.ZodTypeAny, {
281
+ channels: {
282
+ value: string;
283
+ label: string;
284
+ }[];
285
+ }, {
286
+ channels: {
287
+ value: string;
288
+ label: string;
289
+ }[];
290
+ }>;
291
+ readonly opt: true;
292
+ }]>;
293
+ };
294
+ declare const ViewBinding: {
295
+ implements: (tools: ToolBinder[]) => boolean;
296
+ forConnection: (mcpConnection: MCPConnection) => MCPClientFetchStub<readonly [{
297
+ readonly name: "DECO_CHAT_VIEWS_LIST";
298
+ readonly inputSchema: z.ZodAny;
299
+ readonly outputSchema: z.ZodObject<{
300
+ views: z.ZodArray<z.ZodObject<{
301
+ id: z.ZodOptional<z.ZodString>;
302
+ name: z.ZodOptional<z.ZodString>;
303
+ title: z.ZodString;
304
+ description: z.ZodOptional<z.ZodString>;
305
+ icon: z.ZodString;
306
+ url: z.ZodOptional<z.ZodString>;
307
+ mimeTypePattern: z.ZodOptional<z.ZodString>;
308
+ resourceName: z.ZodOptional<z.ZodString>;
309
+ tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
310
+ prompt: z.ZodOptional<z.ZodString>;
311
+ installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ tools: string[];
314
+ title: string;
315
+ icon: string;
316
+ id?: string | undefined;
317
+ name?: string | undefined;
318
+ url?: string | undefined;
319
+ description?: string | undefined;
320
+ resourceName?: string | undefined;
321
+ mimeTypePattern?: string | undefined;
322
+ prompt?: string | undefined;
323
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
324
+ }, {
325
+ title: string;
326
+ icon: string;
327
+ id?: string | undefined;
328
+ name?: string | undefined;
329
+ url?: string | undefined;
330
+ description?: string | undefined;
331
+ resourceName?: string | undefined;
332
+ tools?: string[] | undefined;
333
+ mimeTypePattern?: string | undefined;
334
+ prompt?: string | undefined;
335
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
336
+ }>, "many">;
337
+ }, "strip", z.ZodTypeAny, {
338
+ views: {
339
+ tools: string[];
340
+ title: string;
341
+ icon: string;
342
+ id?: string | undefined;
343
+ name?: string | undefined;
344
+ url?: string | undefined;
345
+ description?: string | undefined;
346
+ resourceName?: string | undefined;
347
+ mimeTypePattern?: string | undefined;
348
+ prompt?: string | undefined;
349
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
350
+ }[];
351
+ }, {
352
+ views: {
353
+ title: string;
354
+ icon: string;
355
+ id?: string | undefined;
356
+ name?: string | undefined;
357
+ url?: string | undefined;
358
+ description?: string | undefined;
359
+ resourceName?: string | undefined;
360
+ tools?: string[] | undefined;
361
+ mimeTypePattern?: string | undefined;
362
+ prompt?: string | undefined;
363
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
364
+ }[];
365
+ }>;
366
+ }]>;
367
+ };
368
+
369
+ declare const impl: <TBinder extends Binder>(schema: TBinder, implementation: BinderImplementation<TBinder>, createToolFn?: typeof createPrivateTool) => _mastra_core.Tool<z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any> | undefined, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, _mastra_core.ToolExecutionContext<z.ZodType<any, z.ZodTypeDef, any>, any, any>>[];
370
+
371
+ declare const Binding: <TDefinition extends readonly ToolBinder[]>(binderTools: TDefinition) => {
372
+ isImplementedBy: (tools: Pick<ToolBinder, "name">[]) => boolean;
373
+ };
374
+
375
+ declare const VIEW_BINDING_SCHEMA: readonly [{
376
+ readonly name: "DECO_CHAT_VIEWS_LIST";
377
+ readonly inputSchema: z.ZodAny;
378
+ readonly outputSchema: z.ZodObject<{
379
+ views: z.ZodArray<z.ZodObject<{
380
+ id: z.ZodOptional<z.ZodString>;
381
+ name: z.ZodOptional<z.ZodString>;
382
+ title: z.ZodString;
383
+ description: z.ZodOptional<z.ZodString>;
384
+ icon: z.ZodString;
385
+ url: z.ZodOptional<z.ZodString>;
386
+ mimeTypePattern: z.ZodOptional<z.ZodString>;
387
+ resourceName: z.ZodOptional<z.ZodString>;
388
+ tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
389
+ prompt: z.ZodOptional<z.ZodString>;
390
+ installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ tools: string[];
393
+ title: string;
394
+ icon: string;
395
+ id?: string | undefined;
396
+ name?: string | undefined;
397
+ url?: string | undefined;
398
+ description?: string | undefined;
399
+ resourceName?: string | undefined;
400
+ mimeTypePattern?: string | undefined;
401
+ prompt?: string | undefined;
402
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
403
+ }, {
404
+ title: string;
405
+ icon: string;
406
+ id?: string | undefined;
407
+ name?: string | undefined;
408
+ url?: string | undefined;
409
+ description?: string | undefined;
410
+ resourceName?: string | undefined;
411
+ tools?: string[] | undefined;
412
+ mimeTypePattern?: string | undefined;
413
+ prompt?: string | undefined;
414
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
415
+ }>, "many">;
416
+ }, "strip", z.ZodTypeAny, {
417
+ views: {
418
+ tools: string[];
419
+ title: string;
420
+ icon: string;
421
+ id?: string | undefined;
422
+ name?: string | undefined;
423
+ url?: string | undefined;
424
+ description?: string | undefined;
425
+ resourceName?: string | undefined;
426
+ mimeTypePattern?: string | undefined;
427
+ prompt?: string | undefined;
428
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
429
+ }[];
430
+ }, {
431
+ views: {
432
+ title: string;
433
+ icon: string;
434
+ id?: string | undefined;
435
+ name?: string | undefined;
436
+ url?: string | undefined;
437
+ description?: string | undefined;
438
+ resourceName?: string | undefined;
439
+ tools?: string[] | undefined;
440
+ mimeTypePattern?: string | undefined;
441
+ prompt?: string | undefined;
442
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
443
+ }[];
444
+ }>;
445
+ }];
446
+ declare const listViewsSchema: z.ZodObject<{
447
+ views: z.ZodArray<z.ZodObject<{
448
+ id: z.ZodOptional<z.ZodString>;
449
+ name: z.ZodOptional<z.ZodString>;
450
+ title: z.ZodString;
451
+ description: z.ZodOptional<z.ZodString>;
452
+ icon: z.ZodString;
453
+ url: z.ZodOptional<z.ZodString>;
454
+ mimeTypePattern: z.ZodOptional<z.ZodString>;
455
+ resourceName: z.ZodOptional<z.ZodString>;
456
+ tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
457
+ prompt: z.ZodOptional<z.ZodString>;
458
+ installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ tools: string[];
461
+ title: string;
462
+ icon: string;
463
+ id?: string | undefined;
464
+ name?: string | undefined;
465
+ url?: string | undefined;
466
+ description?: string | undefined;
467
+ resourceName?: string | undefined;
468
+ mimeTypePattern?: string | undefined;
469
+ prompt?: string | undefined;
470
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
471
+ }, {
472
+ title: string;
473
+ icon: string;
474
+ id?: string | undefined;
475
+ name?: string | undefined;
476
+ url?: string | undefined;
477
+ description?: string | undefined;
478
+ resourceName?: string | undefined;
479
+ tools?: string[] | undefined;
480
+ mimeTypePattern?: string | undefined;
481
+ prompt?: string | undefined;
482
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
483
+ }>, "many">;
484
+ }, "strip", z.ZodTypeAny, {
485
+ views: {
486
+ tools: string[];
487
+ title: string;
488
+ icon: string;
489
+ id?: string | undefined;
490
+ name?: string | undefined;
491
+ url?: string | undefined;
492
+ description?: string | undefined;
493
+ resourceName?: string | undefined;
494
+ mimeTypePattern?: string | undefined;
495
+ prompt?: string | undefined;
496
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
497
+ }[];
498
+ }, {
499
+ views: {
500
+ title: string;
501
+ icon: string;
502
+ id?: string | undefined;
503
+ name?: string | undefined;
504
+ url?: string | undefined;
505
+ description?: string | undefined;
506
+ resourceName?: string | undefined;
507
+ tools?: string[] | undefined;
508
+ mimeTypePattern?: string | undefined;
509
+ prompt?: string | undefined;
510
+ installBehavior?: "open" | "none" | "autoPin" | undefined;
511
+ }[];
512
+ }>;
513
+
514
+ /**
515
+ * Resources 2.0 Schemas
516
+ *
517
+ * This module provides standardized schemas for Resources 2.0, a major version upgrade
518
+ * that introduces standardized resource management with `rsc://` URI format and
519
+ * consistent CRUD operations across all resource types.
520
+ *
521
+ * Key Features:
522
+ * - Standardized `rsc://` URI format for all resources
523
+ * - Generic CRUD operation schemas that work with any resource type
524
+ * - Type-safe factory functions for creating resource-specific schemas
525
+ * - Comprehensive validation and error handling
526
+ * - Full TypeScript support with Zod validation
527
+ */
528
+ declare const ResourceUriSchema: z.ZodString;
529
+ declare const DescribeInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
530
+ declare const DescribeOutputSchema: z.ZodObject<{
531
+ uriTemplate: z.ZodString;
532
+ features: z.ZodObject<{
533
+ watch: z.ZodObject<{
534
+ pathname: z.ZodString;
535
+ }, "strip", z.ZodTypeAny, {
536
+ pathname: string;
537
+ }, {
538
+ pathname: string;
539
+ }>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ watch: {
542
+ pathname: string;
543
+ };
544
+ }, {
545
+ watch: {
546
+ pathname: string;
547
+ };
548
+ }>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ uriTemplate: string;
551
+ features: {
552
+ watch: {
553
+ pathname: string;
554
+ };
555
+ };
556
+ }, {
557
+ uriTemplate: string;
558
+ features: {
559
+ watch: {
560
+ pathname: string;
561
+ };
562
+ };
563
+ }>;
564
+ /**
565
+ * Search input schema for resource queries
566
+ * Supports pagination, filtering, sorting, and search terms
567
+ */
568
+ declare const SearchInputSchema: z.ZodObject<{
569
+ term: z.ZodOptional<z.ZodString>;
570
+ page: z.ZodDefault<z.ZodNumber>;
571
+ pageSize: z.ZodDefault<z.ZodNumber>;
572
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
573
+ sortBy: z.ZodOptional<z.ZodString>;
574
+ sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ page: number;
577
+ pageSize: number;
578
+ sortOrder: "asc" | "desc";
579
+ filters?: Record<string, any> | undefined;
580
+ term?: string | undefined;
581
+ sortBy?: string | undefined;
582
+ }, {
583
+ filters?: Record<string, any> | undefined;
584
+ term?: string | undefined;
585
+ page?: number | undefined;
586
+ pageSize?: number | undefined;
587
+ sortBy?: string | undefined;
588
+ sortOrder?: "asc" | "desc" | undefined;
589
+ }>;
590
+ /**
591
+ * Factory function to create search output schema for a specific resource type
592
+ * @param itemSchema - The schema for individual resource items
593
+ * @returns Zod schema for search results with pagination metadata
594
+ */
595
+ declare function createSearchOutputSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
596
+ items: z.ZodArray<T, "many">;
597
+ totalCount: z.ZodNumber;
598
+ page: z.ZodNumber;
599
+ pageSize: z.ZodNumber;
600
+ totalPages: z.ZodNumber;
601
+ hasNextPage: z.ZodBoolean;
602
+ hasPreviousPage: z.ZodBoolean;
603
+ }, "strip", z.ZodTypeAny, {
604
+ items: T["_output"][];
605
+ page: number;
606
+ pageSize: number;
607
+ totalCount: number;
608
+ totalPages: number;
609
+ hasNextPage: boolean;
610
+ hasPreviousPage: boolean;
611
+ }, {
612
+ items: T["_input"][];
613
+ page: number;
614
+ pageSize: number;
615
+ totalCount: number;
616
+ totalPages: number;
617
+ hasNextPage: boolean;
618
+ hasPreviousPage: boolean;
619
+ }>;
620
+ /**
621
+ * Read input schema for retrieving a single resource
622
+ */
623
+ declare const ReadInputSchema: z.ZodObject<{
624
+ uri: z.ZodString;
625
+ }, "strip", z.ZodTypeAny, {
626
+ uri: string;
627
+ }, {
628
+ uri: string;
629
+ }>;
630
+ /**
631
+ * Factory function to create read output schema for a specific resource type
632
+ * @param dataSchema - The schema for the resource data
633
+ * @returns Zod schema for read operation results
634
+ */
635
+ declare function createReadOutputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
636
+ uri: z.ZodString;
637
+ data: T;
638
+ created_at: z.ZodOptional<z.ZodString>;
639
+ updated_at: z.ZodOptional<z.ZodString>;
640
+ created_by: z.ZodOptional<z.ZodString>;
641
+ updated_by: z.ZodOptional<z.ZodString>;
642
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
643
+ uri: z.ZodString;
644
+ data: T;
645
+ created_at: z.ZodOptional<z.ZodString>;
646
+ updated_at: z.ZodOptional<z.ZodString>;
647
+ created_by: z.ZodOptional<z.ZodString>;
648
+ updated_by: z.ZodOptional<z.ZodString>;
649
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
650
+ uri: z.ZodString;
651
+ data: T;
652
+ created_at: z.ZodOptional<z.ZodString>;
653
+ updated_at: z.ZodOptional<z.ZodString>;
654
+ created_by: z.ZodOptional<z.ZodString>;
655
+ updated_by: z.ZodOptional<z.ZodString>;
656
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
657
+ /**
658
+ * Factory function to create create input schema for a specific resource type
659
+ * @param dataSchema - The schema for the resource data to create
660
+ * @returns Zod schema for create operation input
661
+ */
662
+ declare function createCreateInputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
663
+ data: T;
664
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
665
+ data: T;
666
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
667
+ data: T;
668
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
669
+ /**
670
+ * Factory function to create create output schema for a specific resource type
671
+ * @param dataSchema - The schema for the created resource data
672
+ * @returns Zod schema for create operation results
673
+ */
674
+ declare function createCreateOutputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
675
+ uri: z.ZodString;
676
+ data: T;
677
+ created_at: z.ZodOptional<z.ZodString>;
678
+ updated_at: z.ZodOptional<z.ZodString>;
679
+ created_by: z.ZodOptional<z.ZodString>;
680
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
681
+ uri: z.ZodString;
682
+ data: T;
683
+ created_at: z.ZodOptional<z.ZodString>;
684
+ updated_at: z.ZodOptional<z.ZodString>;
685
+ created_by: z.ZodOptional<z.ZodString>;
686
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
687
+ uri: z.ZodString;
688
+ data: T;
689
+ created_at: z.ZodOptional<z.ZodString>;
690
+ updated_at: z.ZodOptional<z.ZodString>;
691
+ created_by: z.ZodOptional<z.ZodString>;
692
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
693
+ /**
694
+ * Factory function to create update input schema for a specific resource type
695
+ * @param dataSchema - The schema for the resource data to update
696
+ * @returns Zod schema for update operation input
697
+ */
698
+ declare function createUpdateInputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
699
+ uri: z.ZodString;
700
+ data: T;
701
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
702
+ uri: z.ZodString;
703
+ data: T;
704
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
705
+ uri: z.ZodString;
706
+ data: T;
707
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
708
+ /**
709
+ * Factory function to create update output schema for a specific resource type
710
+ * @param dataSchema - The schema for the updated resource data
711
+ * @returns Zod schema for update operation results
712
+ */
713
+ declare function createUpdateOutputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
714
+ uri: z.ZodString;
715
+ data: T;
716
+ created_at: z.ZodOptional<z.ZodString>;
717
+ updated_at: z.ZodOptional<z.ZodString>;
718
+ created_by: z.ZodOptional<z.ZodString>;
719
+ updated_by: z.ZodOptional<z.ZodString>;
720
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
721
+ uri: z.ZodString;
722
+ data: T;
723
+ created_at: z.ZodOptional<z.ZodString>;
724
+ updated_at: z.ZodOptional<z.ZodString>;
725
+ created_by: z.ZodOptional<z.ZodString>;
726
+ updated_by: z.ZodOptional<z.ZodString>;
727
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
728
+ uri: z.ZodString;
729
+ data: T;
730
+ created_at: z.ZodOptional<z.ZodString>;
731
+ updated_at: z.ZodOptional<z.ZodString>;
732
+ created_by: z.ZodOptional<z.ZodString>;
733
+ updated_by: z.ZodOptional<z.ZodString>;
734
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
735
+ /**
736
+ * Delete input schema for removing a resource
737
+ */
738
+ declare const DeleteInputSchema: z.ZodObject<{
739
+ uri: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ uri: string;
742
+ }, {
743
+ uri: string;
744
+ }>;
745
+ /**
746
+ * Delete output schema for delete operation results
747
+ */
748
+ declare const DeleteOutputSchema: z.ZodObject<{
749
+ success: z.ZodBoolean;
750
+ uri: z.ZodString;
751
+ }, "strip", z.ZodTypeAny, {
752
+ success: boolean;
753
+ uri: string;
754
+ }, {
755
+ success: boolean;
756
+ uri: string;
757
+ }>;
758
+ /**
759
+ * Factory function to create item schema for a specific resource type
760
+ * This schema is used in search results and lists
761
+ * @param dataSchema - The schema for the resource data
762
+ * @returns Zod schema for resource items with metadata
763
+ */
764
+ declare function createItemSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
765
+ uri: z.ZodString;
766
+ data: z.ZodIntersection<z.ZodObject<{
767
+ name: z.ZodString;
768
+ description: z.ZodOptional<z.ZodString>;
769
+ icon: z.ZodOptional<z.ZodString>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ name: string;
772
+ description?: string | undefined;
773
+ icon?: string | undefined;
774
+ }, {
775
+ name: string;
776
+ description?: string | undefined;
777
+ icon?: string | undefined;
778
+ }>, T>;
779
+ created_at: z.ZodOptional<z.ZodString>;
780
+ updated_at: z.ZodOptional<z.ZodString>;
781
+ created_by: z.ZodOptional<z.ZodString>;
782
+ updated_by: z.ZodOptional<z.ZodString>;
783
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
784
+ uri: z.ZodString;
785
+ data: z.ZodIntersection<z.ZodObject<{
786
+ name: z.ZodString;
787
+ description: z.ZodOptional<z.ZodString>;
788
+ icon: z.ZodOptional<z.ZodString>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ name: string;
791
+ description?: string | undefined;
792
+ icon?: string | undefined;
793
+ }, {
794
+ name: string;
795
+ description?: string | undefined;
796
+ icon?: string | undefined;
797
+ }>, T>;
798
+ created_at: z.ZodOptional<z.ZodString>;
799
+ updated_at: z.ZodOptional<z.ZodString>;
800
+ created_by: z.ZodOptional<z.ZodString>;
801
+ updated_by: z.ZodOptional<z.ZodString>;
802
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
803
+ uri: z.ZodString;
804
+ data: z.ZodIntersection<z.ZodObject<{
805
+ name: z.ZodString;
806
+ description: z.ZodOptional<z.ZodString>;
807
+ icon: z.ZodOptional<z.ZodString>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ name: string;
810
+ description?: string | undefined;
811
+ icon?: string | undefined;
812
+ }, {
813
+ name: string;
814
+ description?: string | undefined;
815
+ icon?: string | undefined;
816
+ }>, T>;
817
+ created_at: z.ZodOptional<z.ZodString>;
818
+ updated_at: z.ZodOptional<z.ZodString>;
819
+ created_by: z.ZodOptional<z.ZodString>;
820
+ updated_by: z.ZodOptional<z.ZodString>;
821
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
822
+ type SearchInput = z.infer<typeof SearchInputSchema>;
823
+ type SearchOutput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createSearchOutputSchema<T>>>;
824
+ type ReadInput = z.infer<typeof ReadInputSchema>;
825
+ type ReadOutput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createReadOutputSchema<T>>>;
826
+ type CreateInput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createCreateInputSchema<T>>>;
827
+ type CreateOutput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createCreateOutputSchema<T>>>;
828
+ type UpdateInput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createUpdateInputSchema<T>>>;
829
+ type UpdateOutput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createUpdateOutputSchema<T>>>;
830
+ type DeleteInput = z.infer<typeof DeleteInputSchema>;
831
+ type DeleteOutput = z.infer<typeof DeleteOutputSchema>;
832
+ type ResourceItem<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createItemSchema<T>>>;
833
+
834
+ /**
835
+ * Resources 2.0 Helper Functions
836
+ *
837
+ * This module provides helper functions for working with Resources 2.0
838
+ * URI format and validation.
839
+ *
840
+ * Key Features:
841
+ * - URI validation and parsing utilities
842
+ * - URI construction helpers
843
+ * - Type-safe resource URI handling
844
+ */
845
+ /**
846
+ * Utility function to validate a resource URI format
847
+ *
848
+ * @param uri - The URI to validate
849
+ * @returns True if the URI is valid, false otherwise
850
+ */
851
+ declare function validateResourceUri(uri: string): boolean;
852
+ /**
853
+ * Utility function to parse a resource URI into its components
854
+ *
855
+ * @param uri - The URI to parse
856
+ * @returns Object containing the parsed components or null if invalid
857
+ */
858
+ declare function parseResourceUri(uri: string): {
859
+ workspace: string;
860
+ project: string;
861
+ resourceId: string;
862
+ } | null;
863
+ /**
864
+ * Utility function to construct a resource URI from components
865
+ *
866
+ * @param workspace - The workspace identifier
867
+ * @param project - The project identifier
868
+ * @param resourceId - The resource identifier
869
+ * @returns The constructed resource URI
870
+ */
871
+ declare function constructResourceUri(workspace: string, project: string, resourceId: string): string;
872
+
873
+ declare const normalizeDirectory: (dir: string) => string;
874
+ declare const ResourcePath: {
875
+ build: (directory: string, resourceId: string) => string;
876
+ extract: (path: string) => {
877
+ directory: string;
878
+ resourceId: string;
879
+ };
880
+ };
881
+ declare const ResourceUri: {
882
+ build: (integrationId: string, resourceName: string, resourceId: string) => string;
883
+ unwind: (uri: string) => {
884
+ resourceName: string;
885
+ resourceId: string;
886
+ };
887
+ };
888
+ declare function getMetadataValue(metadata: unknown, key: string): unknown;
889
+ declare function getMetadataString(metadata: unknown, key: string): string | undefined;
890
+
891
+ declare const WellKnownBindings: {
892
+ readonly Channel: readonly [{
893
+ readonly name: "DECO_CHAT_CHANNELS_JOIN";
894
+ readonly inputSchema: zod.ZodObject<{
895
+ workspace: zod.ZodString;
896
+ discriminator: zod.ZodString;
897
+ } & {
898
+ agentId: zod.ZodString;
899
+ agentName: zod.ZodString;
900
+ agentLink: zod.ZodString;
901
+ } & {
902
+ callbacks: zod.ZodObject<{
903
+ stream: zod.ZodString;
904
+ generate: zod.ZodString;
905
+ generateObject: zod.ZodString;
906
+ }, "strip", zod.ZodTypeAny, {
907
+ stream: string;
908
+ generate: string;
909
+ generateObject: string;
910
+ }, {
911
+ stream: string;
912
+ generate: string;
913
+ generateObject: string;
914
+ }>;
915
+ }, "strip", zod.ZodTypeAny, {
916
+ workspace: string;
917
+ discriminator: string;
918
+ agentId: string;
919
+ agentName: string;
920
+ agentLink: string;
921
+ callbacks: {
922
+ stream: string;
923
+ generate: string;
924
+ generateObject: string;
925
+ };
926
+ }, {
927
+ workspace: string;
928
+ discriminator: string;
929
+ agentId: string;
930
+ agentName: string;
931
+ agentLink: string;
932
+ callbacks: {
933
+ stream: string;
934
+ generate: string;
935
+ generateObject: string;
936
+ };
937
+ }>;
938
+ readonly outputSchema: zod.ZodAny;
939
+ }, {
940
+ readonly name: "DECO_CHAT_CHANNELS_LEAVE";
941
+ readonly inputSchema: zod.ZodObject<{
942
+ workspace: zod.ZodString;
943
+ discriminator: zod.ZodString;
944
+ }, "strip", zod.ZodTypeAny, {
945
+ workspace: string;
946
+ discriminator: string;
947
+ }, {
948
+ workspace: string;
949
+ discriminator: string;
950
+ }>;
951
+ readonly outputSchema: zod.ZodAny;
952
+ }, {
953
+ readonly name: "DECO_CHAT_CHANNELS_LIST";
954
+ readonly inputSchema: zod.ZodAny;
955
+ readonly outputSchema: zod.ZodObject<{
956
+ channels: zod.ZodArray<zod.ZodObject<{
957
+ label: zod.ZodString;
958
+ value: zod.ZodString;
959
+ }, "strip", zod.ZodTypeAny, {
960
+ value: string;
961
+ label: string;
962
+ }, {
963
+ value: string;
964
+ label: string;
965
+ }>, "many">;
966
+ }, "strip", zod.ZodTypeAny, {
967
+ channels: {
968
+ value: string;
969
+ label: string;
970
+ }[];
971
+ }, {
972
+ channels: {
973
+ value: string;
974
+ label: string;
975
+ }[];
976
+ }>;
977
+ readonly opt: true;
978
+ }];
979
+ readonly View: readonly [{
980
+ readonly name: "DECO_CHAT_VIEWS_LIST";
981
+ readonly inputSchema: zod.ZodAny;
982
+ readonly outputSchema: zod.ZodObject<{
983
+ views: zod.ZodArray<zod.ZodObject<{
984
+ id: zod.ZodOptional<zod.ZodString>;
985
+ name: zod.ZodOptional<zod.ZodString>;
986
+ title: zod.ZodString;
987
+ description: zod.ZodOptional<zod.ZodString>;
988
+ icon: zod.ZodString;
989
+ url: zod.ZodOptional<zod.ZodString>;
990
+ mimeTypePattern: zod.ZodOptional<zod.ZodString>;
991
+ resourceName: zod.ZodOptional<zod.ZodString>;
992
+ tools: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
993
+ prompt: zod.ZodOptional<zod.ZodString>;
994
+ installBehavior: zod.ZodOptional<zod.ZodEnum<["none", "open", "autoPin"]>>;
995
+ }, "strip", zod.ZodTypeAny, {
996
+ title: string;
997
+ icon: string;
998
+ tools: string[];
999
+ id?: string | undefined;
1000
+ name?: string | undefined;
1001
+ description?: string | undefined;
1002
+ url?: string | undefined;
1003
+ mimeTypePattern?: string | undefined;
1004
+ resourceName?: string | undefined;
1005
+ prompt?: string | undefined;
1006
+ installBehavior?: "none" | "open" | "autoPin" | undefined;
1007
+ }, {
1008
+ title: string;
1009
+ icon: string;
1010
+ id?: string | undefined;
1011
+ name?: string | undefined;
1012
+ description?: string | undefined;
1013
+ url?: string | undefined;
1014
+ mimeTypePattern?: string | undefined;
1015
+ resourceName?: string | undefined;
1016
+ tools?: string[] | undefined;
1017
+ prompt?: string | undefined;
1018
+ installBehavior?: "none" | "open" | "autoPin" | undefined;
1019
+ }>, "many">;
1020
+ }, "strip", zod.ZodTypeAny, {
1021
+ views: {
1022
+ title: string;
1023
+ icon: string;
1024
+ tools: string[];
1025
+ id?: string | undefined;
1026
+ name?: string | undefined;
1027
+ description?: string | undefined;
1028
+ url?: string | undefined;
1029
+ mimeTypePattern?: string | undefined;
1030
+ resourceName?: string | undefined;
1031
+ prompt?: string | undefined;
1032
+ installBehavior?: "none" | "open" | "autoPin" | undefined;
1033
+ }[];
1034
+ }, {
1035
+ views: {
1036
+ title: string;
1037
+ icon: string;
1038
+ id?: string | undefined;
1039
+ name?: string | undefined;
1040
+ description?: string | undefined;
1041
+ url?: string | undefined;
1042
+ mimeTypePattern?: string | undefined;
1043
+ resourceName?: string | undefined;
1044
+ tools?: string[] | undefined;
1045
+ prompt?: string | undefined;
1046
+ installBehavior?: "none" | "open" | "autoPin" | undefined;
1047
+ }[];
1048
+ }>;
1049
+ }];
1050
+ };
1051
+ type WellKnownBindingsName = keyof typeof WellKnownBindings;
1052
+
1053
+ export { type Binder, type BinderImplementation, Binding, CHANNEL_BINDING_SCHEMA, type Callbacks, ChannelBinding, type CreateInput, type CreateOutput, type DeleteInput, DeleteInputSchema, type DeleteOutput, DeleteOutputSchema, DescribeInputSchema, DescribeOutputSchema, type JoinedChannelPayload, type ListChannelsSchema, type MCPBindingClient, type ReadInput, ReadInputSchema, type ReadOutput, type ResourceItem, ResourcePath, ResourceUri, ResourceUriSchema, type SearchInput, SearchInputSchema, type SearchOutput, type ToolLike, type UpdateInput, type UpdateOutput, VIEW_BINDING_SCHEMA, ViewBinding, WellKnownBindings, type WellKnownBindingsName, bindingClient, constructResourceUri, createCreateInputSchema, createCreateOutputSchema, createItemSchema, createReadOutputSchema, createSearchOutputSchema, createUpdateInputSchema, createUpdateOutputSchema, getMetadataString as deconfigGetMetadataString, getMetadataValue as deconfigGetMetadataValue, normalizeDirectory as deconfigNormalizeDirectory, impl, listViewsSchema, parseResourceUri, validateResourceUri };