@decocms/bindings 0.2.4-beta.4 → 1.0.0

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 (54) hide show
  1. package/README.md +3 -3
  2. package/package.json +9 -35
  3. package/src/core/binder.ts +241 -0
  4. package/src/core/client/README.md +3 -0
  5. package/{dist/core/client/http-client-transport.js → src/core/client/http-client-transport.ts} +24 -12
  6. package/src/core/client/index.ts +1 -0
  7. package/src/core/client/mcp-client.ts +149 -0
  8. package/src/core/client/mcp.ts +93 -0
  9. package/src/core/client/proxy.ts +151 -0
  10. package/src/core/connection.ts +38 -0
  11. package/src/core/subset.ts +514 -0
  12. package/src/index.ts +15 -0
  13. package/src/well-known/agent.ts +60 -0
  14. package/src/well-known/collections.ts +416 -0
  15. package/src/well-known/language-model.ts +383 -0
  16. package/test/index.test.ts +942 -0
  17. package/tsconfig.json +11 -0
  18. package/vitest.config.ts +8 -0
  19. package/dist/core/binder.d.ts +0 -3
  20. package/dist/core/binder.js +0 -81
  21. package/dist/core/binder.js.map +0 -1
  22. package/dist/core/client/http-client-transport.d.ts +0 -12
  23. package/dist/core/client/http-client-transport.js.map +0 -1
  24. package/dist/core/client/index.d.ts +0 -3
  25. package/dist/core/client/index.js +0 -5
  26. package/dist/core/client/index.js.map +0 -1
  27. package/dist/core/client/mcp-client.d.ts +0 -233
  28. package/dist/core/client/mcp-client.js +0 -99
  29. package/dist/core/client/mcp-client.js.map +0 -1
  30. package/dist/core/client/mcp.d.ts +0 -3
  31. package/dist/core/client/mcp.js +0 -29
  32. package/dist/core/client/mcp.js.map +0 -1
  33. package/dist/core/client/proxy.d.ts +0 -10
  34. package/dist/core/client/proxy.js +0 -104
  35. package/dist/core/client/proxy.js.map +0 -1
  36. package/dist/core/connection.d.ts +0 -30
  37. package/dist/core/connection.js +0 -1
  38. package/dist/core/connection.js.map +0 -1
  39. package/dist/core/subset.d.ts +0 -17
  40. package/dist/core/subset.js +0 -321
  41. package/dist/core/subset.js.map +0 -1
  42. package/dist/index-D0aUdNls.d.ts +0 -153
  43. package/dist/index.d.ts +0 -3
  44. package/dist/index.js +0 -7
  45. package/dist/index.js.map +0 -1
  46. package/dist/well-known/agent.d.ts +0 -903
  47. package/dist/well-known/agent.js +0 -27
  48. package/dist/well-known/agent.js.map +0 -1
  49. package/dist/well-known/collections.d.ts +0 -537
  50. package/dist/well-known/collections.js +0 -134
  51. package/dist/well-known/collections.js.map +0 -1
  52. package/dist/well-known/language-model.d.ts +0 -2836
  53. package/dist/well-known/language-model.js +0 -209
  54. package/dist/well-known/language-model.js.map +0 -1
@@ -1,903 +0,0 @@
1
- import { CollectionListInputSchema, CollectionGetInputSchema, CollectionDeleteInputSchema } from './collections.js';
2
- import { z } from 'zod/v3';
3
-
4
- /**
5
- * Agent entity schema for AI agents
6
- * Extends BaseCollectionEntitySchema with agent-specific fields
7
- * Base schema already includes: id, title, created_at, updated_at, created_by, updated_by
8
- */
9
- declare const AgentSchema: z.ZodObject<{
10
- id: z.ZodString;
11
- title: z.ZodString;
12
- created_at: z.ZodString;
13
- updated_at: z.ZodString;
14
- created_by: z.ZodOptional<z.ZodString>;
15
- updated_by: z.ZodOptional<z.ZodString>;
16
- } & {
17
- description: z.ZodString;
18
- instructions: z.ZodString;
19
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
20
- avatar: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- id: string;
23
- title: string;
24
- created_at: string;
25
- updated_at: string;
26
- description: string;
27
- instructions: string;
28
- tool_set: Record<string, string[]>;
29
- avatar: string;
30
- created_by?: string | undefined;
31
- updated_by?: string | undefined;
32
- }, {
33
- id: string;
34
- title: string;
35
- created_at: string;
36
- updated_at: string;
37
- description: string;
38
- instructions: string;
39
- tool_set: Record<string, string[]>;
40
- avatar: string;
41
- created_by?: string | undefined;
42
- updated_by?: string | undefined;
43
- }>;
44
- /**
45
- * AGENT Collection Binding
46
- *
47
- * Collection bindings for agents (read-only).
48
- * Provides LIST and GET operations for AI agents.
49
- */
50
- declare const AGENTS_COLLECTION_BINDING: ({
51
- name: "COLLECTION_AGENT_LIST";
52
- inputSchema: typeof CollectionListInputSchema;
53
- outputSchema: z.ZodObject<{
54
- items: z.ZodArray<z.ZodObject<{
55
- id: z.ZodString;
56
- title: z.ZodString;
57
- created_at: z.ZodString;
58
- updated_at: z.ZodString;
59
- created_by: z.ZodOptional<z.ZodString>;
60
- updated_by: z.ZodOptional<z.ZodString>;
61
- } & {
62
- description: z.ZodString;
63
- instructions: z.ZodString;
64
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
65
- avatar: z.ZodString;
66
- }, "strip", z.ZodTypeAny, {
67
- id: string;
68
- title: string;
69
- created_at: string;
70
- updated_at: string;
71
- description: string;
72
- instructions: string;
73
- tool_set: Record<string, string[]>;
74
- avatar: string;
75
- created_by?: string | undefined;
76
- updated_by?: string | undefined;
77
- }, {
78
- id: string;
79
- title: string;
80
- created_at: string;
81
- updated_at: string;
82
- description: string;
83
- instructions: string;
84
- tool_set: Record<string, string[]>;
85
- avatar: string;
86
- created_by?: string | undefined;
87
- updated_by?: string | undefined;
88
- }>, "many">;
89
- totalCount: z.ZodOptional<z.ZodNumber>;
90
- hasMore: z.ZodOptional<z.ZodBoolean>;
91
- }, "strip", z.ZodTypeAny, {
92
- items: {
93
- id: string;
94
- title: string;
95
- created_at: string;
96
- updated_at: string;
97
- description: string;
98
- instructions: string;
99
- tool_set: Record<string, string[]>;
100
- avatar: string;
101
- created_by?: string | undefined;
102
- updated_by?: string | undefined;
103
- }[];
104
- totalCount?: number | undefined;
105
- hasMore?: boolean | undefined;
106
- }, {
107
- items: {
108
- id: string;
109
- title: string;
110
- created_at: string;
111
- updated_at: string;
112
- description: string;
113
- instructions: string;
114
- tool_set: Record<string, string[]>;
115
- avatar: string;
116
- created_by?: string | undefined;
117
- updated_by?: string | undefined;
118
- }[];
119
- totalCount?: number | undefined;
120
- hasMore?: boolean | undefined;
121
- }>;
122
- } | {
123
- name: "COLLECTION_AGENT_GET";
124
- inputSchema: typeof CollectionGetInputSchema;
125
- outputSchema: z.ZodObject<{
126
- item: z.ZodNullable<z.ZodObject<{
127
- id: z.ZodString;
128
- title: z.ZodString;
129
- created_at: z.ZodString;
130
- updated_at: z.ZodString;
131
- created_by: z.ZodOptional<z.ZodString>;
132
- updated_by: z.ZodOptional<z.ZodString>;
133
- } & {
134
- description: z.ZodString;
135
- instructions: z.ZodString;
136
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
137
- avatar: z.ZodString;
138
- }, "strip", z.ZodTypeAny, {
139
- id: string;
140
- title: string;
141
- created_at: string;
142
- updated_at: string;
143
- description: string;
144
- instructions: string;
145
- tool_set: Record<string, string[]>;
146
- avatar: string;
147
- created_by?: string | undefined;
148
- updated_by?: string | undefined;
149
- }, {
150
- id: string;
151
- title: string;
152
- created_at: string;
153
- updated_at: string;
154
- description: string;
155
- instructions: string;
156
- tool_set: Record<string, string[]>;
157
- avatar: string;
158
- created_by?: string | undefined;
159
- updated_by?: string | undefined;
160
- }>>;
161
- }, "strip", z.ZodTypeAny, {
162
- item: {
163
- id: string;
164
- title: string;
165
- created_at: string;
166
- updated_at: string;
167
- description: string;
168
- instructions: string;
169
- tool_set: Record<string, string[]>;
170
- avatar: string;
171
- created_by?: string | undefined;
172
- updated_by?: string | undefined;
173
- } | null;
174
- }, {
175
- item: {
176
- id: string;
177
- title: string;
178
- created_at: string;
179
- updated_at: string;
180
- description: string;
181
- instructions: string;
182
- tool_set: Record<string, string[]>;
183
- avatar: string;
184
- created_by?: string | undefined;
185
- updated_by?: string | undefined;
186
- } | null;
187
- }>;
188
- } | {
189
- name: "COLLECTION_AGENT_CREATE";
190
- inputSchema: z.ZodObject<{
191
- data: z.ZodObject<{
192
- id: z.ZodString;
193
- title: z.ZodString;
194
- created_at: z.ZodString;
195
- updated_at: z.ZodString;
196
- created_by: z.ZodOptional<z.ZodString>;
197
- updated_by: z.ZodOptional<z.ZodString>;
198
- } & {
199
- description: z.ZodString;
200
- instructions: z.ZodString;
201
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
202
- avatar: z.ZodString;
203
- }, "strip", z.ZodTypeAny, {
204
- id: string;
205
- title: string;
206
- created_at: string;
207
- updated_at: string;
208
- description: string;
209
- instructions: string;
210
- tool_set: Record<string, string[]>;
211
- avatar: string;
212
- created_by?: string | undefined;
213
- updated_by?: string | undefined;
214
- }, {
215
- id: string;
216
- title: string;
217
- created_at: string;
218
- updated_at: string;
219
- description: string;
220
- instructions: string;
221
- tool_set: Record<string, string[]>;
222
- avatar: string;
223
- created_by?: string | undefined;
224
- updated_by?: string | undefined;
225
- }>;
226
- }, "strip", z.ZodTypeAny, {
227
- data: {
228
- id: string;
229
- title: string;
230
- created_at: string;
231
- updated_at: string;
232
- description: string;
233
- instructions: string;
234
- tool_set: Record<string, string[]>;
235
- avatar: string;
236
- created_by?: string | undefined;
237
- updated_by?: string | undefined;
238
- };
239
- }, {
240
- data: {
241
- id: string;
242
- title: string;
243
- created_at: string;
244
- updated_at: string;
245
- description: string;
246
- instructions: string;
247
- tool_set: Record<string, string[]>;
248
- avatar: string;
249
- created_by?: string | undefined;
250
- updated_by?: string | undefined;
251
- };
252
- }>;
253
- outputSchema: z.ZodObject<{
254
- item: z.ZodObject<{
255
- id: z.ZodString;
256
- title: z.ZodString;
257
- created_at: z.ZodString;
258
- updated_at: z.ZodString;
259
- created_by: z.ZodOptional<z.ZodString>;
260
- updated_by: z.ZodOptional<z.ZodString>;
261
- } & {
262
- description: z.ZodString;
263
- instructions: z.ZodString;
264
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
265
- avatar: z.ZodString;
266
- }, "strip", z.ZodTypeAny, {
267
- id: string;
268
- title: string;
269
- created_at: string;
270
- updated_at: string;
271
- description: string;
272
- instructions: string;
273
- tool_set: Record<string, string[]>;
274
- avatar: string;
275
- created_by?: string | undefined;
276
- updated_by?: string | undefined;
277
- }, {
278
- id: string;
279
- title: string;
280
- created_at: string;
281
- updated_at: string;
282
- description: string;
283
- instructions: string;
284
- tool_set: Record<string, string[]>;
285
- avatar: string;
286
- created_by?: string | undefined;
287
- updated_by?: string | undefined;
288
- }>;
289
- }, "strip", z.ZodTypeAny, {
290
- item: {
291
- id: string;
292
- title: string;
293
- created_at: string;
294
- updated_at: string;
295
- description: string;
296
- instructions: string;
297
- tool_set: Record<string, string[]>;
298
- avatar: string;
299
- created_by?: string | undefined;
300
- updated_by?: string | undefined;
301
- };
302
- }, {
303
- item: {
304
- id: string;
305
- title: string;
306
- created_at: string;
307
- updated_at: string;
308
- description: string;
309
- instructions: string;
310
- tool_set: Record<string, string[]>;
311
- avatar: string;
312
- created_by?: string | undefined;
313
- updated_by?: string | undefined;
314
- };
315
- }>;
316
- opt: true;
317
- } | {
318
- name: "COLLECTION_AGENT_UPDATE";
319
- inputSchema: z.ZodObject<{
320
- id: z.ZodString;
321
- data: z.ZodObject<{
322
- [x: string]: z.ZodOptional<any>;
323
- }, any, any, {
324
- [x: string]: any;
325
- }, {
326
- [x: string]: any;
327
- }>;
328
- }, "strip", z.ZodTypeAny, {
329
- id: string;
330
- data: {
331
- [x: string]: any;
332
- };
333
- }, {
334
- id: string;
335
- data: {
336
- [x: string]: any;
337
- };
338
- }>;
339
- outputSchema: z.ZodObject<{
340
- item: z.ZodObject<{
341
- id: z.ZodString;
342
- title: z.ZodString;
343
- created_at: z.ZodString;
344
- updated_at: z.ZodString;
345
- created_by: z.ZodOptional<z.ZodString>;
346
- updated_by: z.ZodOptional<z.ZodString>;
347
- } & {
348
- description: z.ZodString;
349
- instructions: z.ZodString;
350
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
351
- avatar: z.ZodString;
352
- }, "strip", z.ZodTypeAny, {
353
- id: string;
354
- title: string;
355
- created_at: string;
356
- updated_at: string;
357
- description: string;
358
- instructions: string;
359
- tool_set: Record<string, string[]>;
360
- avatar: string;
361
- created_by?: string | undefined;
362
- updated_by?: string | undefined;
363
- }, {
364
- id: string;
365
- title: string;
366
- created_at: string;
367
- updated_at: string;
368
- description: string;
369
- instructions: string;
370
- tool_set: Record<string, string[]>;
371
- avatar: string;
372
- created_by?: string | undefined;
373
- updated_by?: string | undefined;
374
- }>;
375
- }, "strip", z.ZodTypeAny, {
376
- item: {
377
- id: string;
378
- title: string;
379
- created_at: string;
380
- updated_at: string;
381
- description: string;
382
- instructions: string;
383
- tool_set: Record<string, string[]>;
384
- avatar: string;
385
- created_by?: string | undefined;
386
- updated_by?: string | undefined;
387
- };
388
- }, {
389
- item: {
390
- id: string;
391
- title: string;
392
- created_at: string;
393
- updated_at: string;
394
- description: string;
395
- instructions: string;
396
- tool_set: Record<string, string[]>;
397
- avatar: string;
398
- created_by?: string | undefined;
399
- updated_by?: string | undefined;
400
- };
401
- }>;
402
- opt: true;
403
- } | {
404
- name: "COLLECTION_AGENT_DELETE";
405
- inputSchema: typeof CollectionDeleteInputSchema;
406
- outputSchema: z.ZodObject<{
407
- item: z.ZodObject<{
408
- id: z.ZodString;
409
- title: z.ZodString;
410
- created_at: z.ZodString;
411
- updated_at: z.ZodString;
412
- created_by: z.ZodOptional<z.ZodString>;
413
- updated_by: z.ZodOptional<z.ZodString>;
414
- } & {
415
- description: z.ZodString;
416
- instructions: z.ZodString;
417
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
418
- avatar: z.ZodString;
419
- }, "strip", z.ZodTypeAny, {
420
- id: string;
421
- title: string;
422
- created_at: string;
423
- updated_at: string;
424
- description: string;
425
- instructions: string;
426
- tool_set: Record<string, string[]>;
427
- avatar: string;
428
- created_by?: string | undefined;
429
- updated_by?: string | undefined;
430
- }, {
431
- id: string;
432
- title: string;
433
- created_at: string;
434
- updated_at: string;
435
- description: string;
436
- instructions: string;
437
- tool_set: Record<string, string[]>;
438
- avatar: string;
439
- created_by?: string | undefined;
440
- updated_by?: string | undefined;
441
- }>;
442
- }, "strip", z.ZodTypeAny, {
443
- item: {
444
- id: string;
445
- title: string;
446
- created_at: string;
447
- updated_at: string;
448
- description: string;
449
- instructions: string;
450
- tool_set: Record<string, string[]>;
451
- avatar: string;
452
- created_by?: string | undefined;
453
- updated_by?: string | undefined;
454
- };
455
- }, {
456
- item: {
457
- id: string;
458
- title: string;
459
- created_at: string;
460
- updated_at: string;
461
- description: string;
462
- instructions: string;
463
- tool_set: Record<string, string[]>;
464
- avatar: string;
465
- created_by?: string | undefined;
466
- updated_by?: string | undefined;
467
- };
468
- }>;
469
- opt: true;
470
- })[];
471
- /**
472
- * AGENTS Binding
473
- *
474
- * Defines the interface for AI agent providers.
475
- * Any MCP that implements this binding can provide configurable AI agents.
476
- *
477
- * Required tools:
478
- * - COLLECTION_AGENT_LIST: List available AI agents with their configurations
479
- * - COLLECTION_AGENT_GET: Get a single agent by ID (includes instructions and tool_set)
480
- */
481
- declare const AGENTS_BINDING: readonly ({
482
- name: "COLLECTION_AGENT_LIST";
483
- inputSchema: typeof CollectionListInputSchema;
484
- outputSchema: z.ZodObject<{
485
- items: z.ZodArray<z.ZodObject<{
486
- id: z.ZodString;
487
- title: z.ZodString;
488
- created_at: z.ZodString;
489
- updated_at: z.ZodString;
490
- created_by: z.ZodOptional<z.ZodString>;
491
- updated_by: z.ZodOptional<z.ZodString>;
492
- } & {
493
- description: z.ZodString;
494
- instructions: z.ZodString;
495
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
496
- avatar: z.ZodString;
497
- }, "strip", z.ZodTypeAny, {
498
- id: string;
499
- title: string;
500
- created_at: string;
501
- updated_at: string;
502
- description: string;
503
- instructions: string;
504
- tool_set: Record<string, string[]>;
505
- avatar: string;
506
- created_by?: string | undefined;
507
- updated_by?: string | undefined;
508
- }, {
509
- id: string;
510
- title: string;
511
- created_at: string;
512
- updated_at: string;
513
- description: string;
514
- instructions: string;
515
- tool_set: Record<string, string[]>;
516
- avatar: string;
517
- created_by?: string | undefined;
518
- updated_by?: string | undefined;
519
- }>, "many">;
520
- totalCount: z.ZodOptional<z.ZodNumber>;
521
- hasMore: z.ZodOptional<z.ZodBoolean>;
522
- }, "strip", z.ZodTypeAny, {
523
- items: {
524
- id: string;
525
- title: string;
526
- created_at: string;
527
- updated_at: string;
528
- description: string;
529
- instructions: string;
530
- tool_set: Record<string, string[]>;
531
- avatar: string;
532
- created_by?: string | undefined;
533
- updated_by?: string | undefined;
534
- }[];
535
- totalCount?: number | undefined;
536
- hasMore?: boolean | undefined;
537
- }, {
538
- items: {
539
- id: string;
540
- title: string;
541
- created_at: string;
542
- updated_at: string;
543
- description: string;
544
- instructions: string;
545
- tool_set: Record<string, string[]>;
546
- avatar: string;
547
- created_by?: string | undefined;
548
- updated_by?: string | undefined;
549
- }[];
550
- totalCount?: number | undefined;
551
- hasMore?: boolean | undefined;
552
- }>;
553
- } | {
554
- name: "COLLECTION_AGENT_GET";
555
- inputSchema: typeof CollectionGetInputSchema;
556
- outputSchema: z.ZodObject<{
557
- item: z.ZodNullable<z.ZodObject<{
558
- id: z.ZodString;
559
- title: z.ZodString;
560
- created_at: z.ZodString;
561
- updated_at: z.ZodString;
562
- created_by: z.ZodOptional<z.ZodString>;
563
- updated_by: z.ZodOptional<z.ZodString>;
564
- } & {
565
- description: z.ZodString;
566
- instructions: z.ZodString;
567
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
568
- avatar: z.ZodString;
569
- }, "strip", z.ZodTypeAny, {
570
- id: string;
571
- title: string;
572
- created_at: string;
573
- updated_at: string;
574
- description: string;
575
- instructions: string;
576
- tool_set: Record<string, string[]>;
577
- avatar: string;
578
- created_by?: string | undefined;
579
- updated_by?: string | undefined;
580
- }, {
581
- id: string;
582
- title: string;
583
- created_at: string;
584
- updated_at: string;
585
- description: string;
586
- instructions: string;
587
- tool_set: Record<string, string[]>;
588
- avatar: string;
589
- created_by?: string | undefined;
590
- updated_by?: string | undefined;
591
- }>>;
592
- }, "strip", z.ZodTypeAny, {
593
- item: {
594
- id: string;
595
- title: string;
596
- created_at: string;
597
- updated_at: string;
598
- description: string;
599
- instructions: string;
600
- tool_set: Record<string, string[]>;
601
- avatar: string;
602
- created_by?: string | undefined;
603
- updated_by?: string | undefined;
604
- } | null;
605
- }, {
606
- item: {
607
- id: string;
608
- title: string;
609
- created_at: string;
610
- updated_at: string;
611
- description: string;
612
- instructions: string;
613
- tool_set: Record<string, string[]>;
614
- avatar: string;
615
- created_by?: string | undefined;
616
- updated_by?: string | undefined;
617
- } | null;
618
- }>;
619
- } | {
620
- name: "COLLECTION_AGENT_CREATE";
621
- inputSchema: z.ZodObject<{
622
- data: z.ZodObject<{
623
- id: z.ZodString;
624
- title: z.ZodString;
625
- created_at: z.ZodString;
626
- updated_at: z.ZodString;
627
- created_by: z.ZodOptional<z.ZodString>;
628
- updated_by: z.ZodOptional<z.ZodString>;
629
- } & {
630
- description: z.ZodString;
631
- instructions: z.ZodString;
632
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
633
- avatar: z.ZodString;
634
- }, "strip", z.ZodTypeAny, {
635
- id: string;
636
- title: string;
637
- created_at: string;
638
- updated_at: string;
639
- description: string;
640
- instructions: string;
641
- tool_set: Record<string, string[]>;
642
- avatar: string;
643
- created_by?: string | undefined;
644
- updated_by?: string | undefined;
645
- }, {
646
- id: string;
647
- title: string;
648
- created_at: string;
649
- updated_at: string;
650
- description: string;
651
- instructions: string;
652
- tool_set: Record<string, string[]>;
653
- avatar: string;
654
- created_by?: string | undefined;
655
- updated_by?: string | undefined;
656
- }>;
657
- }, "strip", z.ZodTypeAny, {
658
- data: {
659
- id: string;
660
- title: string;
661
- created_at: string;
662
- updated_at: string;
663
- description: string;
664
- instructions: string;
665
- tool_set: Record<string, string[]>;
666
- avatar: string;
667
- created_by?: string | undefined;
668
- updated_by?: string | undefined;
669
- };
670
- }, {
671
- data: {
672
- id: string;
673
- title: string;
674
- created_at: string;
675
- updated_at: string;
676
- description: string;
677
- instructions: string;
678
- tool_set: Record<string, string[]>;
679
- avatar: string;
680
- created_by?: string | undefined;
681
- updated_by?: string | undefined;
682
- };
683
- }>;
684
- outputSchema: z.ZodObject<{
685
- item: z.ZodObject<{
686
- id: z.ZodString;
687
- title: z.ZodString;
688
- created_at: z.ZodString;
689
- updated_at: z.ZodString;
690
- created_by: z.ZodOptional<z.ZodString>;
691
- updated_by: z.ZodOptional<z.ZodString>;
692
- } & {
693
- description: z.ZodString;
694
- instructions: z.ZodString;
695
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
696
- avatar: z.ZodString;
697
- }, "strip", z.ZodTypeAny, {
698
- id: string;
699
- title: string;
700
- created_at: string;
701
- updated_at: string;
702
- description: string;
703
- instructions: string;
704
- tool_set: Record<string, string[]>;
705
- avatar: string;
706
- created_by?: string | undefined;
707
- updated_by?: string | undefined;
708
- }, {
709
- id: string;
710
- title: string;
711
- created_at: string;
712
- updated_at: string;
713
- description: string;
714
- instructions: string;
715
- tool_set: Record<string, string[]>;
716
- avatar: string;
717
- created_by?: string | undefined;
718
- updated_by?: string | undefined;
719
- }>;
720
- }, "strip", z.ZodTypeAny, {
721
- item: {
722
- id: string;
723
- title: string;
724
- created_at: string;
725
- updated_at: string;
726
- description: string;
727
- instructions: string;
728
- tool_set: Record<string, string[]>;
729
- avatar: string;
730
- created_by?: string | undefined;
731
- updated_by?: string | undefined;
732
- };
733
- }, {
734
- item: {
735
- id: string;
736
- title: string;
737
- created_at: string;
738
- updated_at: string;
739
- description: string;
740
- instructions: string;
741
- tool_set: Record<string, string[]>;
742
- avatar: string;
743
- created_by?: string | undefined;
744
- updated_by?: string | undefined;
745
- };
746
- }>;
747
- opt: true;
748
- } | {
749
- name: "COLLECTION_AGENT_UPDATE";
750
- inputSchema: z.ZodObject<{
751
- id: z.ZodString;
752
- data: z.ZodObject<{
753
- [x: string]: z.ZodOptional<any>;
754
- }, any, any, {
755
- [x: string]: any;
756
- }, {
757
- [x: string]: any;
758
- }>;
759
- }, "strip", z.ZodTypeAny, {
760
- id: string;
761
- data: {
762
- [x: string]: any;
763
- };
764
- }, {
765
- id: string;
766
- data: {
767
- [x: string]: any;
768
- };
769
- }>;
770
- outputSchema: z.ZodObject<{
771
- item: z.ZodObject<{
772
- id: z.ZodString;
773
- title: z.ZodString;
774
- created_at: z.ZodString;
775
- updated_at: z.ZodString;
776
- created_by: z.ZodOptional<z.ZodString>;
777
- updated_by: z.ZodOptional<z.ZodString>;
778
- } & {
779
- description: z.ZodString;
780
- instructions: z.ZodString;
781
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
782
- avatar: z.ZodString;
783
- }, "strip", z.ZodTypeAny, {
784
- id: string;
785
- title: string;
786
- created_at: string;
787
- updated_at: string;
788
- description: string;
789
- instructions: string;
790
- tool_set: Record<string, string[]>;
791
- avatar: string;
792
- created_by?: string | undefined;
793
- updated_by?: string | undefined;
794
- }, {
795
- id: string;
796
- title: string;
797
- created_at: string;
798
- updated_at: string;
799
- description: string;
800
- instructions: string;
801
- tool_set: Record<string, string[]>;
802
- avatar: string;
803
- created_by?: string | undefined;
804
- updated_by?: string | undefined;
805
- }>;
806
- }, "strip", z.ZodTypeAny, {
807
- item: {
808
- id: string;
809
- title: string;
810
- created_at: string;
811
- updated_at: string;
812
- description: string;
813
- instructions: string;
814
- tool_set: Record<string, string[]>;
815
- avatar: string;
816
- created_by?: string | undefined;
817
- updated_by?: string | undefined;
818
- };
819
- }, {
820
- item: {
821
- id: string;
822
- title: string;
823
- created_at: string;
824
- updated_at: string;
825
- description: string;
826
- instructions: string;
827
- tool_set: Record<string, string[]>;
828
- avatar: string;
829
- created_by?: string | undefined;
830
- updated_by?: string | undefined;
831
- };
832
- }>;
833
- opt: true;
834
- } | {
835
- name: "COLLECTION_AGENT_DELETE";
836
- inputSchema: typeof CollectionDeleteInputSchema;
837
- outputSchema: z.ZodObject<{
838
- item: z.ZodObject<{
839
- id: z.ZodString;
840
- title: z.ZodString;
841
- created_at: z.ZodString;
842
- updated_at: z.ZodString;
843
- created_by: z.ZodOptional<z.ZodString>;
844
- updated_by: z.ZodOptional<z.ZodString>;
845
- } & {
846
- description: z.ZodString;
847
- instructions: z.ZodString;
848
- tool_set: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
849
- avatar: z.ZodString;
850
- }, "strip", z.ZodTypeAny, {
851
- id: string;
852
- title: string;
853
- created_at: string;
854
- updated_at: string;
855
- description: string;
856
- instructions: string;
857
- tool_set: Record<string, string[]>;
858
- avatar: string;
859
- created_by?: string | undefined;
860
- updated_by?: string | undefined;
861
- }, {
862
- id: string;
863
- title: string;
864
- created_at: string;
865
- updated_at: string;
866
- description: string;
867
- instructions: string;
868
- tool_set: Record<string, string[]>;
869
- avatar: string;
870
- created_by?: string | undefined;
871
- updated_by?: string | undefined;
872
- }>;
873
- }, "strip", z.ZodTypeAny, {
874
- item: {
875
- id: string;
876
- title: string;
877
- created_at: string;
878
- updated_at: string;
879
- description: string;
880
- instructions: string;
881
- tool_set: Record<string, string[]>;
882
- avatar: string;
883
- created_by?: string | undefined;
884
- updated_by?: string | undefined;
885
- };
886
- }, {
887
- item: {
888
- id: string;
889
- title: string;
890
- created_at: string;
891
- updated_at: string;
892
- description: string;
893
- instructions: string;
894
- tool_set: Record<string, string[]>;
895
- avatar: string;
896
- created_by?: string | undefined;
897
- updated_by?: string | undefined;
898
- };
899
- }>;
900
- opt: true;
901
- })[];
902
-
903
- export { AGENTS_BINDING, AGENTS_COLLECTION_BINDING, AgentSchema };