@deepintel-ltd/farmpro-contracts 1.1.0 → 1.2.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.
@@ -0,0 +1,1045 @@
1
+ import { z } from 'zod';
2
+ export declare const agentsRouter: {
3
+ chatWithAgronomics: {
4
+ metadata: {
5
+ openapi: {
6
+ parameters: {
7
+ name: string;
8
+ in: string;
9
+ required: boolean;
10
+ schema: {
11
+ type: string;
12
+ enum: string[];
13
+ };
14
+ }[];
15
+ };
16
+ };
17
+ summary: "Chat with the agronomics AI agent";
18
+ description: "Send a message to the agronomics agent and receive AI-powered farming advice based on your farm data";
19
+ method: "POST";
20
+ body: z.ZodObject<{
21
+ data: z.ZodObject<{
22
+ type: z.ZodLiteral<"agent-chat-requests">;
23
+ attributes: z.ZodObject<{
24
+ message: z.ZodString;
25
+ farmId: z.ZodOptional<z.ZodString>;
26
+ conversationId: z.ZodOptional<z.ZodString>;
27
+ conversationHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
+ role: z.ZodEnum<["user", "assistant"]>;
29
+ content: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ role: "user" | "assistant";
32
+ content: string;
33
+ }, {
34
+ role: "user" | "assistant";
35
+ content: string;
36
+ }>, "many">>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ message: string;
39
+ farmId?: string | undefined;
40
+ conversationId?: string | undefined;
41
+ conversationHistory?: {
42
+ role: "user" | "assistant";
43
+ content: string;
44
+ }[] | undefined;
45
+ }, {
46
+ message: string;
47
+ farmId?: string | undefined;
48
+ conversationId?: string | undefined;
49
+ conversationHistory?: {
50
+ role: "user" | "assistant";
51
+ content: string;
52
+ }[] | undefined;
53
+ }>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ type: "agent-chat-requests";
56
+ attributes: {
57
+ message: string;
58
+ farmId?: string | undefined;
59
+ conversationId?: string | undefined;
60
+ conversationHistory?: {
61
+ role: "user" | "assistant";
62
+ content: string;
63
+ }[] | undefined;
64
+ };
65
+ }, {
66
+ type: "agent-chat-requests";
67
+ attributes: {
68
+ message: string;
69
+ farmId?: string | undefined;
70
+ conversationId?: string | undefined;
71
+ conversationHistory?: {
72
+ role: "user" | "assistant";
73
+ content: string;
74
+ }[] | undefined;
75
+ };
76
+ }>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ data: {
79
+ type: "agent-chat-requests";
80
+ attributes: {
81
+ message: string;
82
+ farmId?: string | undefined;
83
+ conversationId?: string | undefined;
84
+ conversationHistory?: {
85
+ role: "user" | "assistant";
86
+ content: string;
87
+ }[] | undefined;
88
+ };
89
+ };
90
+ }, {
91
+ data: {
92
+ type: "agent-chat-requests";
93
+ attributes: {
94
+ message: string;
95
+ farmId?: string | undefined;
96
+ conversationId?: string | undefined;
97
+ conversationHistory?: {
98
+ role: "user" | "assistant";
99
+ content: string;
100
+ }[] | undefined;
101
+ };
102
+ };
103
+ }>;
104
+ path: "/agents/agronomics/chat";
105
+ responses: {
106
+ 200: z.ZodObject<{
107
+ data: z.ZodObject<{
108
+ type: z.ZodLiteral<string>;
109
+ id: z.ZodString;
110
+ attributes: z.ZodObject<{
111
+ response: z.ZodString;
112
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
+ tool: z.ZodString;
114
+ result: z.ZodUnknown;
115
+ }, "strip", z.ZodTypeAny, {
116
+ tool: string;
117
+ result?: unknown;
118
+ }, {
119
+ tool: string;
120
+ result?: unknown;
121
+ }>, "many">>;
122
+ conversationId: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ conversationId: string;
125
+ response: string;
126
+ toolCalls?: {
127
+ tool: string;
128
+ result?: unknown;
129
+ }[] | undefined;
130
+ }, {
131
+ conversationId: string;
132
+ response: string;
133
+ toolCalls?: {
134
+ tool: string;
135
+ result?: unknown;
136
+ }[] | undefined;
137
+ }>;
138
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
140
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ type: string;
143
+ id: string;
144
+ attributes: {
145
+ conversationId: string;
146
+ response: string;
147
+ toolCalls?: {
148
+ tool: string;
149
+ result?: unknown;
150
+ }[] | undefined;
151
+ };
152
+ relationships?: Record<string, unknown> | undefined;
153
+ links?: Record<string, string> | undefined;
154
+ meta?: Record<string, unknown> | undefined;
155
+ }, {
156
+ type: string;
157
+ id: string;
158
+ attributes: {
159
+ conversationId: string;
160
+ response: string;
161
+ toolCalls?: {
162
+ tool: string;
163
+ result?: unknown;
164
+ }[] | undefined;
165
+ };
166
+ relationships?: Record<string, unknown> | undefined;
167
+ links?: Record<string, string> | undefined;
168
+ meta?: Record<string, unknown> | undefined;
169
+ }>;
170
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
171
+ type: z.ZodString;
172
+ id: z.ZodString;
173
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
174
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
175
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
176
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: string;
179
+ id: string;
180
+ attributes?: Record<string, unknown> | undefined;
181
+ relationships?: Record<string, unknown> | undefined;
182
+ links?: Record<string, string> | undefined;
183
+ meta?: Record<string, unknown> | undefined;
184
+ }, {
185
+ type: string;
186
+ id: string;
187
+ attributes?: Record<string, unknown> | undefined;
188
+ relationships?: Record<string, unknown> | undefined;
189
+ links?: Record<string, string> | undefined;
190
+ meta?: Record<string, unknown> | undefined;
191
+ }>, "many">>;
192
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
193
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ data: {
196
+ type: string;
197
+ id: string;
198
+ attributes: {
199
+ conversationId: string;
200
+ response: string;
201
+ toolCalls?: {
202
+ tool: string;
203
+ result?: unknown;
204
+ }[] | undefined;
205
+ };
206
+ relationships?: Record<string, unknown> | undefined;
207
+ links?: Record<string, string> | undefined;
208
+ meta?: Record<string, unknown> | undefined;
209
+ };
210
+ links?: Record<string, string> | undefined;
211
+ meta?: Record<string, unknown> | undefined;
212
+ included?: {
213
+ type: string;
214
+ id: string;
215
+ attributes?: Record<string, unknown> | undefined;
216
+ relationships?: Record<string, unknown> | undefined;
217
+ links?: Record<string, string> | undefined;
218
+ meta?: Record<string, unknown> | undefined;
219
+ }[] | undefined;
220
+ }, {
221
+ data: {
222
+ type: string;
223
+ id: string;
224
+ attributes: {
225
+ conversationId: string;
226
+ response: string;
227
+ toolCalls?: {
228
+ tool: string;
229
+ result?: unknown;
230
+ }[] | undefined;
231
+ };
232
+ relationships?: Record<string, unknown> | undefined;
233
+ links?: Record<string, string> | undefined;
234
+ meta?: Record<string, unknown> | undefined;
235
+ };
236
+ links?: Record<string, string> | undefined;
237
+ meta?: Record<string, unknown> | undefined;
238
+ included?: {
239
+ type: string;
240
+ id: string;
241
+ attributes?: Record<string, unknown> | undefined;
242
+ relationships?: Record<string, unknown> | undefined;
243
+ links?: Record<string, string> | undefined;
244
+ meta?: Record<string, unknown> | undefined;
245
+ }[] | undefined;
246
+ }>;
247
+ 400: z.ZodObject<{
248
+ errors: z.ZodArray<z.ZodObject<{
249
+ id: z.ZodOptional<z.ZodString>;
250
+ links: z.ZodOptional<z.ZodObject<{
251
+ about: z.ZodOptional<z.ZodString>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ about?: string | undefined;
254
+ }, {
255
+ about?: string | undefined;
256
+ }>>;
257
+ status: z.ZodOptional<z.ZodString>;
258
+ code: z.ZodOptional<z.ZodString>;
259
+ title: z.ZodOptional<z.ZodString>;
260
+ detail: z.ZodOptional<z.ZodString>;
261
+ source: z.ZodOptional<z.ZodObject<{
262
+ pointer: z.ZodOptional<z.ZodString>;
263
+ parameter: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ pointer?: string | undefined;
266
+ parameter?: string | undefined;
267
+ }, {
268
+ pointer?: string | undefined;
269
+ parameter?: string | undefined;
270
+ }>>;
271
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ status?: string | undefined;
274
+ code?: string | undefined;
275
+ id?: string | undefined;
276
+ links?: {
277
+ about?: string | undefined;
278
+ } | undefined;
279
+ meta?: Record<string, unknown> | undefined;
280
+ title?: string | undefined;
281
+ detail?: string | undefined;
282
+ source?: {
283
+ pointer?: string | undefined;
284
+ parameter?: string | undefined;
285
+ } | undefined;
286
+ }, {
287
+ status?: string | undefined;
288
+ code?: string | undefined;
289
+ id?: string | undefined;
290
+ links?: {
291
+ about?: string | undefined;
292
+ } | undefined;
293
+ meta?: Record<string, unknown> | undefined;
294
+ title?: string | undefined;
295
+ detail?: string | undefined;
296
+ source?: {
297
+ pointer?: string | undefined;
298
+ parameter?: string | undefined;
299
+ } | undefined;
300
+ }>, "many">;
301
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ errors: {
304
+ status?: string | undefined;
305
+ code?: string | undefined;
306
+ id?: string | undefined;
307
+ links?: {
308
+ about?: string | undefined;
309
+ } | undefined;
310
+ meta?: Record<string, unknown> | undefined;
311
+ title?: string | undefined;
312
+ detail?: string | undefined;
313
+ source?: {
314
+ pointer?: string | undefined;
315
+ parameter?: string | undefined;
316
+ } | undefined;
317
+ }[];
318
+ meta?: Record<string, unknown> | undefined;
319
+ }, {
320
+ errors: {
321
+ status?: string | undefined;
322
+ code?: string | undefined;
323
+ id?: string | undefined;
324
+ links?: {
325
+ about?: string | undefined;
326
+ } | undefined;
327
+ meta?: Record<string, unknown> | undefined;
328
+ title?: string | undefined;
329
+ detail?: string | undefined;
330
+ source?: {
331
+ pointer?: string | undefined;
332
+ parameter?: string | undefined;
333
+ } | undefined;
334
+ }[];
335
+ meta?: Record<string, unknown> | undefined;
336
+ }>;
337
+ 401: z.ZodObject<{
338
+ errors: z.ZodArray<z.ZodObject<{
339
+ id: z.ZodOptional<z.ZodString>;
340
+ links: z.ZodOptional<z.ZodObject<{
341
+ about: z.ZodOptional<z.ZodString>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ about?: string | undefined;
344
+ }, {
345
+ about?: string | undefined;
346
+ }>>;
347
+ status: z.ZodOptional<z.ZodString>;
348
+ code: z.ZodOptional<z.ZodString>;
349
+ title: z.ZodOptional<z.ZodString>;
350
+ detail: z.ZodOptional<z.ZodString>;
351
+ source: z.ZodOptional<z.ZodObject<{
352
+ pointer: z.ZodOptional<z.ZodString>;
353
+ parameter: z.ZodOptional<z.ZodString>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ pointer?: string | undefined;
356
+ parameter?: string | undefined;
357
+ }, {
358
+ pointer?: string | undefined;
359
+ parameter?: string | undefined;
360
+ }>>;
361
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ status?: string | undefined;
364
+ code?: string | undefined;
365
+ id?: string | undefined;
366
+ links?: {
367
+ about?: string | undefined;
368
+ } | undefined;
369
+ meta?: Record<string, unknown> | undefined;
370
+ title?: string | undefined;
371
+ detail?: string | undefined;
372
+ source?: {
373
+ pointer?: string | undefined;
374
+ parameter?: string | undefined;
375
+ } | undefined;
376
+ }, {
377
+ status?: string | undefined;
378
+ code?: string | undefined;
379
+ id?: string | undefined;
380
+ links?: {
381
+ about?: string | undefined;
382
+ } | undefined;
383
+ meta?: Record<string, unknown> | undefined;
384
+ title?: string | undefined;
385
+ detail?: string | undefined;
386
+ source?: {
387
+ pointer?: string | undefined;
388
+ parameter?: string | undefined;
389
+ } | undefined;
390
+ }>, "many">;
391
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ errors: {
394
+ status?: string | undefined;
395
+ code?: string | undefined;
396
+ id?: string | undefined;
397
+ links?: {
398
+ about?: string | undefined;
399
+ } | undefined;
400
+ meta?: Record<string, unknown> | undefined;
401
+ title?: string | undefined;
402
+ detail?: string | undefined;
403
+ source?: {
404
+ pointer?: string | undefined;
405
+ parameter?: string | undefined;
406
+ } | undefined;
407
+ }[];
408
+ meta?: Record<string, unknown> | undefined;
409
+ }, {
410
+ errors: {
411
+ status?: string | undefined;
412
+ code?: string | undefined;
413
+ id?: string | undefined;
414
+ links?: {
415
+ about?: string | undefined;
416
+ } | undefined;
417
+ meta?: Record<string, unknown> | undefined;
418
+ title?: string | undefined;
419
+ detail?: string | undefined;
420
+ source?: {
421
+ pointer?: string | undefined;
422
+ parameter?: string | undefined;
423
+ } | undefined;
424
+ }[];
425
+ meta?: Record<string, unknown> | undefined;
426
+ }>;
427
+ 500: z.ZodObject<{
428
+ errors: z.ZodArray<z.ZodObject<{
429
+ id: z.ZodOptional<z.ZodString>;
430
+ links: z.ZodOptional<z.ZodObject<{
431
+ about: z.ZodOptional<z.ZodString>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ about?: string | undefined;
434
+ }, {
435
+ about?: string | undefined;
436
+ }>>;
437
+ status: z.ZodOptional<z.ZodString>;
438
+ code: z.ZodOptional<z.ZodString>;
439
+ title: z.ZodOptional<z.ZodString>;
440
+ detail: z.ZodOptional<z.ZodString>;
441
+ source: z.ZodOptional<z.ZodObject<{
442
+ pointer: z.ZodOptional<z.ZodString>;
443
+ parameter: z.ZodOptional<z.ZodString>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ pointer?: string | undefined;
446
+ parameter?: string | undefined;
447
+ }, {
448
+ pointer?: string | undefined;
449
+ parameter?: string | undefined;
450
+ }>>;
451
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ status?: string | undefined;
454
+ code?: string | undefined;
455
+ id?: string | undefined;
456
+ links?: {
457
+ about?: string | undefined;
458
+ } | undefined;
459
+ meta?: Record<string, unknown> | undefined;
460
+ title?: string | undefined;
461
+ detail?: string | undefined;
462
+ source?: {
463
+ pointer?: string | undefined;
464
+ parameter?: string | undefined;
465
+ } | undefined;
466
+ }, {
467
+ status?: string | undefined;
468
+ code?: string | undefined;
469
+ id?: string | undefined;
470
+ links?: {
471
+ about?: string | undefined;
472
+ } | undefined;
473
+ meta?: Record<string, unknown> | undefined;
474
+ title?: string | undefined;
475
+ detail?: string | undefined;
476
+ source?: {
477
+ pointer?: string | undefined;
478
+ parameter?: string | undefined;
479
+ } | undefined;
480
+ }>, "many">;
481
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ errors: {
484
+ status?: string | undefined;
485
+ code?: string | undefined;
486
+ id?: string | undefined;
487
+ links?: {
488
+ about?: string | undefined;
489
+ } | undefined;
490
+ meta?: Record<string, unknown> | undefined;
491
+ title?: string | undefined;
492
+ detail?: string | undefined;
493
+ source?: {
494
+ pointer?: string | undefined;
495
+ parameter?: string | undefined;
496
+ } | undefined;
497
+ }[];
498
+ meta?: Record<string, unknown> | undefined;
499
+ }, {
500
+ errors: {
501
+ status?: string | undefined;
502
+ code?: string | undefined;
503
+ id?: string | undefined;
504
+ links?: {
505
+ about?: string | undefined;
506
+ } | undefined;
507
+ meta?: Record<string, unknown> | undefined;
508
+ title?: string | undefined;
509
+ detail?: string | undefined;
510
+ source?: {
511
+ pointer?: string | undefined;
512
+ parameter?: string | undefined;
513
+ } | undefined;
514
+ }[];
515
+ meta?: Record<string, unknown> | undefined;
516
+ }>;
517
+ };
518
+ };
519
+ getConversationHistory: {
520
+ pathParams: z.ZodObject<{
521
+ conversationId: z.ZodString;
522
+ }, "strip", z.ZodTypeAny, {
523
+ conversationId: string;
524
+ }, {
525
+ conversationId: string;
526
+ }>;
527
+ query: z.ZodObject<{
528
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ limit: number;
531
+ }, {
532
+ limit?: number | undefined;
533
+ }>;
534
+ summary: "Get conversation history";
535
+ description: "Retrieve the message history for a specific conversation";
536
+ method: "GET";
537
+ path: "/agents/agronomics/conversations/:conversationId/history";
538
+ responses: {
539
+ 200: z.ZodObject<{
540
+ data: z.ZodObject<{
541
+ type: z.ZodLiteral<string>;
542
+ id: z.ZodString;
543
+ attributes: z.ZodObject<{
544
+ messages: z.ZodArray<z.ZodObject<{
545
+ role: z.ZodEnum<["user", "assistant"]>;
546
+ content: z.ZodString;
547
+ createdAt: z.ZodOptional<z.ZodString>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ role: "user" | "assistant";
550
+ content: string;
551
+ createdAt?: string | undefined;
552
+ }, {
553
+ role: "user" | "assistant";
554
+ content: string;
555
+ createdAt?: string | undefined;
556
+ }>, "many">;
557
+ conversationId: z.ZodString;
558
+ }, "strip", z.ZodTypeAny, {
559
+ conversationId: string;
560
+ messages: {
561
+ role: "user" | "assistant";
562
+ content: string;
563
+ createdAt?: string | undefined;
564
+ }[];
565
+ }, {
566
+ conversationId: string;
567
+ messages: {
568
+ role: "user" | "assistant";
569
+ content: string;
570
+ createdAt?: string | undefined;
571
+ }[];
572
+ }>;
573
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
574
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
575
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ type: string;
578
+ id: string;
579
+ attributes: {
580
+ conversationId: string;
581
+ messages: {
582
+ role: "user" | "assistant";
583
+ content: string;
584
+ createdAt?: string | undefined;
585
+ }[];
586
+ };
587
+ relationships?: Record<string, unknown> | undefined;
588
+ links?: Record<string, string> | undefined;
589
+ meta?: Record<string, unknown> | undefined;
590
+ }, {
591
+ type: string;
592
+ id: string;
593
+ attributes: {
594
+ conversationId: string;
595
+ messages: {
596
+ role: "user" | "assistant";
597
+ content: string;
598
+ createdAt?: string | undefined;
599
+ }[];
600
+ };
601
+ relationships?: Record<string, unknown> | undefined;
602
+ links?: Record<string, string> | undefined;
603
+ meta?: Record<string, unknown> | undefined;
604
+ }>;
605
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
606
+ type: z.ZodString;
607
+ id: z.ZodString;
608
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
609
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
610
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
611
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ type: string;
614
+ id: string;
615
+ attributes?: Record<string, unknown> | undefined;
616
+ relationships?: Record<string, unknown> | undefined;
617
+ links?: Record<string, string> | undefined;
618
+ meta?: Record<string, unknown> | undefined;
619
+ }, {
620
+ type: string;
621
+ id: string;
622
+ attributes?: Record<string, unknown> | undefined;
623
+ relationships?: Record<string, unknown> | undefined;
624
+ links?: Record<string, string> | undefined;
625
+ meta?: Record<string, unknown> | undefined;
626
+ }>, "many">>;
627
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
628
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ data: {
631
+ type: string;
632
+ id: string;
633
+ attributes: {
634
+ conversationId: string;
635
+ messages: {
636
+ role: "user" | "assistant";
637
+ content: string;
638
+ createdAt?: string | undefined;
639
+ }[];
640
+ };
641
+ relationships?: Record<string, unknown> | undefined;
642
+ links?: Record<string, string> | undefined;
643
+ meta?: Record<string, unknown> | undefined;
644
+ };
645
+ links?: Record<string, string> | undefined;
646
+ meta?: Record<string, unknown> | undefined;
647
+ included?: {
648
+ type: string;
649
+ id: string;
650
+ attributes?: Record<string, unknown> | undefined;
651
+ relationships?: Record<string, unknown> | undefined;
652
+ links?: Record<string, string> | undefined;
653
+ meta?: Record<string, unknown> | undefined;
654
+ }[] | undefined;
655
+ }, {
656
+ data: {
657
+ type: string;
658
+ id: string;
659
+ attributes: {
660
+ conversationId: string;
661
+ messages: {
662
+ role: "user" | "assistant";
663
+ content: string;
664
+ createdAt?: string | undefined;
665
+ }[];
666
+ };
667
+ relationships?: Record<string, unknown> | undefined;
668
+ links?: Record<string, string> | undefined;
669
+ meta?: Record<string, unknown> | undefined;
670
+ };
671
+ links?: Record<string, string> | undefined;
672
+ meta?: Record<string, unknown> | undefined;
673
+ included?: {
674
+ type: string;
675
+ id: string;
676
+ attributes?: Record<string, unknown> | undefined;
677
+ relationships?: Record<string, unknown> | undefined;
678
+ links?: Record<string, string> | undefined;
679
+ meta?: Record<string, unknown> | undefined;
680
+ }[] | undefined;
681
+ }>;
682
+ 400: z.ZodObject<{
683
+ errors: z.ZodArray<z.ZodObject<{
684
+ id: z.ZodOptional<z.ZodString>;
685
+ links: z.ZodOptional<z.ZodObject<{
686
+ about: z.ZodOptional<z.ZodString>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ about?: string | undefined;
689
+ }, {
690
+ about?: string | undefined;
691
+ }>>;
692
+ status: z.ZodOptional<z.ZodString>;
693
+ code: z.ZodOptional<z.ZodString>;
694
+ title: z.ZodOptional<z.ZodString>;
695
+ detail: z.ZodOptional<z.ZodString>;
696
+ source: z.ZodOptional<z.ZodObject<{
697
+ pointer: z.ZodOptional<z.ZodString>;
698
+ parameter: z.ZodOptional<z.ZodString>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ pointer?: string | undefined;
701
+ parameter?: string | undefined;
702
+ }, {
703
+ pointer?: string | undefined;
704
+ parameter?: string | undefined;
705
+ }>>;
706
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ status?: string | undefined;
709
+ code?: string | undefined;
710
+ id?: string | undefined;
711
+ links?: {
712
+ about?: string | undefined;
713
+ } | undefined;
714
+ meta?: Record<string, unknown> | undefined;
715
+ title?: string | undefined;
716
+ detail?: string | undefined;
717
+ source?: {
718
+ pointer?: string | undefined;
719
+ parameter?: string | undefined;
720
+ } | undefined;
721
+ }, {
722
+ status?: string | undefined;
723
+ code?: string | undefined;
724
+ id?: string | undefined;
725
+ links?: {
726
+ about?: string | undefined;
727
+ } | undefined;
728
+ meta?: Record<string, unknown> | undefined;
729
+ title?: string | undefined;
730
+ detail?: string | undefined;
731
+ source?: {
732
+ pointer?: string | undefined;
733
+ parameter?: string | undefined;
734
+ } | undefined;
735
+ }>, "many">;
736
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
737
+ }, "strip", z.ZodTypeAny, {
738
+ errors: {
739
+ status?: string | undefined;
740
+ code?: string | undefined;
741
+ id?: string | undefined;
742
+ links?: {
743
+ about?: string | undefined;
744
+ } | undefined;
745
+ meta?: Record<string, unknown> | undefined;
746
+ title?: string | undefined;
747
+ detail?: string | undefined;
748
+ source?: {
749
+ pointer?: string | undefined;
750
+ parameter?: string | undefined;
751
+ } | undefined;
752
+ }[];
753
+ meta?: Record<string, unknown> | undefined;
754
+ }, {
755
+ errors: {
756
+ status?: string | undefined;
757
+ code?: string | undefined;
758
+ id?: string | undefined;
759
+ links?: {
760
+ about?: string | undefined;
761
+ } | undefined;
762
+ meta?: Record<string, unknown> | undefined;
763
+ title?: string | undefined;
764
+ detail?: string | undefined;
765
+ source?: {
766
+ pointer?: string | undefined;
767
+ parameter?: string | undefined;
768
+ } | undefined;
769
+ }[];
770
+ meta?: Record<string, unknown> | undefined;
771
+ }>;
772
+ 401: z.ZodObject<{
773
+ errors: z.ZodArray<z.ZodObject<{
774
+ id: z.ZodOptional<z.ZodString>;
775
+ links: z.ZodOptional<z.ZodObject<{
776
+ about: z.ZodOptional<z.ZodString>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ about?: string | undefined;
779
+ }, {
780
+ about?: string | undefined;
781
+ }>>;
782
+ status: z.ZodOptional<z.ZodString>;
783
+ code: z.ZodOptional<z.ZodString>;
784
+ title: z.ZodOptional<z.ZodString>;
785
+ detail: z.ZodOptional<z.ZodString>;
786
+ source: z.ZodOptional<z.ZodObject<{
787
+ pointer: z.ZodOptional<z.ZodString>;
788
+ parameter: z.ZodOptional<z.ZodString>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ pointer?: string | undefined;
791
+ parameter?: string | undefined;
792
+ }, {
793
+ pointer?: string | undefined;
794
+ parameter?: string | undefined;
795
+ }>>;
796
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ status?: string | undefined;
799
+ code?: string | undefined;
800
+ id?: string | undefined;
801
+ links?: {
802
+ about?: string | undefined;
803
+ } | undefined;
804
+ meta?: Record<string, unknown> | undefined;
805
+ title?: string | undefined;
806
+ detail?: string | undefined;
807
+ source?: {
808
+ pointer?: string | undefined;
809
+ parameter?: string | undefined;
810
+ } | undefined;
811
+ }, {
812
+ status?: string | undefined;
813
+ code?: string | undefined;
814
+ id?: string | undefined;
815
+ links?: {
816
+ about?: string | undefined;
817
+ } | undefined;
818
+ meta?: Record<string, unknown> | undefined;
819
+ title?: string | undefined;
820
+ detail?: string | undefined;
821
+ source?: {
822
+ pointer?: string | undefined;
823
+ parameter?: string | undefined;
824
+ } | undefined;
825
+ }>, "many">;
826
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ errors: {
829
+ status?: string | undefined;
830
+ code?: string | undefined;
831
+ id?: string | undefined;
832
+ links?: {
833
+ about?: string | undefined;
834
+ } | undefined;
835
+ meta?: Record<string, unknown> | undefined;
836
+ title?: string | undefined;
837
+ detail?: string | undefined;
838
+ source?: {
839
+ pointer?: string | undefined;
840
+ parameter?: string | undefined;
841
+ } | undefined;
842
+ }[];
843
+ meta?: Record<string, unknown> | undefined;
844
+ }, {
845
+ errors: {
846
+ status?: string | undefined;
847
+ code?: string | undefined;
848
+ id?: string | undefined;
849
+ links?: {
850
+ about?: string | undefined;
851
+ } | undefined;
852
+ meta?: Record<string, unknown> | undefined;
853
+ title?: string | undefined;
854
+ detail?: string | undefined;
855
+ source?: {
856
+ pointer?: string | undefined;
857
+ parameter?: string | undefined;
858
+ } | undefined;
859
+ }[];
860
+ meta?: Record<string, unknown> | undefined;
861
+ }>;
862
+ 404: z.ZodObject<{
863
+ errors: z.ZodArray<z.ZodObject<{
864
+ id: z.ZodOptional<z.ZodString>;
865
+ links: z.ZodOptional<z.ZodObject<{
866
+ about: z.ZodOptional<z.ZodString>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ about?: string | undefined;
869
+ }, {
870
+ about?: string | undefined;
871
+ }>>;
872
+ status: z.ZodOptional<z.ZodString>;
873
+ code: z.ZodOptional<z.ZodString>;
874
+ title: z.ZodOptional<z.ZodString>;
875
+ detail: z.ZodOptional<z.ZodString>;
876
+ source: z.ZodOptional<z.ZodObject<{
877
+ pointer: z.ZodOptional<z.ZodString>;
878
+ parameter: z.ZodOptional<z.ZodString>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ pointer?: string | undefined;
881
+ parameter?: string | undefined;
882
+ }, {
883
+ pointer?: string | undefined;
884
+ parameter?: string | undefined;
885
+ }>>;
886
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ status?: string | undefined;
889
+ code?: string | undefined;
890
+ id?: string | undefined;
891
+ links?: {
892
+ about?: string | undefined;
893
+ } | undefined;
894
+ meta?: Record<string, unknown> | undefined;
895
+ title?: string | undefined;
896
+ detail?: string | undefined;
897
+ source?: {
898
+ pointer?: string | undefined;
899
+ parameter?: string | undefined;
900
+ } | undefined;
901
+ }, {
902
+ status?: string | undefined;
903
+ code?: string | undefined;
904
+ id?: string | undefined;
905
+ links?: {
906
+ about?: string | undefined;
907
+ } | undefined;
908
+ meta?: Record<string, unknown> | undefined;
909
+ title?: string | undefined;
910
+ detail?: string | undefined;
911
+ source?: {
912
+ pointer?: string | undefined;
913
+ parameter?: string | undefined;
914
+ } | undefined;
915
+ }>, "many">;
916
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ errors: {
919
+ status?: string | undefined;
920
+ code?: string | undefined;
921
+ id?: string | undefined;
922
+ links?: {
923
+ about?: string | undefined;
924
+ } | undefined;
925
+ meta?: Record<string, unknown> | undefined;
926
+ title?: string | undefined;
927
+ detail?: string | undefined;
928
+ source?: {
929
+ pointer?: string | undefined;
930
+ parameter?: string | undefined;
931
+ } | undefined;
932
+ }[];
933
+ meta?: Record<string, unknown> | undefined;
934
+ }, {
935
+ errors: {
936
+ status?: string | undefined;
937
+ code?: string | undefined;
938
+ id?: string | undefined;
939
+ links?: {
940
+ about?: string | undefined;
941
+ } | undefined;
942
+ meta?: Record<string, unknown> | undefined;
943
+ title?: string | undefined;
944
+ detail?: string | undefined;
945
+ source?: {
946
+ pointer?: string | undefined;
947
+ parameter?: string | undefined;
948
+ } | undefined;
949
+ }[];
950
+ meta?: Record<string, unknown> | undefined;
951
+ }>;
952
+ 500: z.ZodObject<{
953
+ errors: z.ZodArray<z.ZodObject<{
954
+ id: z.ZodOptional<z.ZodString>;
955
+ links: z.ZodOptional<z.ZodObject<{
956
+ about: z.ZodOptional<z.ZodString>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ about?: string | undefined;
959
+ }, {
960
+ about?: string | undefined;
961
+ }>>;
962
+ status: z.ZodOptional<z.ZodString>;
963
+ code: z.ZodOptional<z.ZodString>;
964
+ title: z.ZodOptional<z.ZodString>;
965
+ detail: z.ZodOptional<z.ZodString>;
966
+ source: z.ZodOptional<z.ZodObject<{
967
+ pointer: z.ZodOptional<z.ZodString>;
968
+ parameter: z.ZodOptional<z.ZodString>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ pointer?: string | undefined;
971
+ parameter?: string | undefined;
972
+ }, {
973
+ pointer?: string | undefined;
974
+ parameter?: string | undefined;
975
+ }>>;
976
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
977
+ }, "strip", z.ZodTypeAny, {
978
+ status?: string | undefined;
979
+ code?: string | undefined;
980
+ id?: string | undefined;
981
+ links?: {
982
+ about?: string | undefined;
983
+ } | undefined;
984
+ meta?: Record<string, unknown> | undefined;
985
+ title?: string | undefined;
986
+ detail?: string | undefined;
987
+ source?: {
988
+ pointer?: string | undefined;
989
+ parameter?: string | undefined;
990
+ } | undefined;
991
+ }, {
992
+ status?: string | undefined;
993
+ code?: string | undefined;
994
+ id?: string | undefined;
995
+ links?: {
996
+ about?: string | undefined;
997
+ } | undefined;
998
+ meta?: Record<string, unknown> | undefined;
999
+ title?: string | undefined;
1000
+ detail?: string | undefined;
1001
+ source?: {
1002
+ pointer?: string | undefined;
1003
+ parameter?: string | undefined;
1004
+ } | undefined;
1005
+ }>, "many">;
1006
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ errors: {
1009
+ status?: string | undefined;
1010
+ code?: string | undefined;
1011
+ id?: string | undefined;
1012
+ links?: {
1013
+ about?: string | undefined;
1014
+ } | undefined;
1015
+ meta?: Record<string, unknown> | undefined;
1016
+ title?: string | undefined;
1017
+ detail?: string | undefined;
1018
+ source?: {
1019
+ pointer?: string | undefined;
1020
+ parameter?: string | undefined;
1021
+ } | undefined;
1022
+ }[];
1023
+ meta?: Record<string, unknown> | undefined;
1024
+ }, {
1025
+ errors: {
1026
+ status?: string | undefined;
1027
+ code?: string | undefined;
1028
+ id?: string | undefined;
1029
+ links?: {
1030
+ about?: string | undefined;
1031
+ } | undefined;
1032
+ meta?: Record<string, unknown> | undefined;
1033
+ title?: string | undefined;
1034
+ detail?: string | undefined;
1035
+ source?: {
1036
+ pointer?: string | undefined;
1037
+ parameter?: string | undefined;
1038
+ } | undefined;
1039
+ }[];
1040
+ meta?: Record<string, unknown> | undefined;
1041
+ }>;
1042
+ };
1043
+ };
1044
+ };
1045
+ //# sourceMappingURL=agents.routes.d.ts.map