@deepintel-ltd/farmpro-contracts 1.2.1 → 1.3.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.
@@ -1041,5 +1041,488 @@ export declare const agentsRouter: {
1041
1041
  }>;
1042
1042
  };
1043
1043
  };
1044
+ listConversations: {
1045
+ pathParams: z.ZodObject<{
1046
+ farmId: z.ZodString;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ farmId: string;
1049
+ }, {
1050
+ farmId: string;
1051
+ }>;
1052
+ query: z.ZodObject<{
1053
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1054
+ offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ limit: number;
1057
+ offset: number;
1058
+ }, {
1059
+ limit?: number | undefined;
1060
+ offset?: number | undefined;
1061
+ }>;
1062
+ summary: "List all conversations for a farm";
1063
+ description: "Retrieve a list of all conversations for a specific farm, ordered by most recent first";
1064
+ method: "GET";
1065
+ path: "/farms/:farmId/agents/conversations";
1066
+ responses: {
1067
+ 200: z.ZodObject<{
1068
+ data: z.ZodObject<{
1069
+ type: z.ZodLiteral<string>;
1070
+ id: z.ZodString;
1071
+ attributes: z.ZodObject<{
1072
+ conversations: z.ZodArray<z.ZodObject<{
1073
+ id: z.ZodString;
1074
+ title: z.ZodNullable<z.ZodString>;
1075
+ summary: z.ZodNullable<z.ZodString>;
1076
+ farmId: z.ZodNullable<z.ZodString>;
1077
+ messageCount: z.ZodNumber;
1078
+ lastMessageAt: z.ZodNullable<z.ZodString>;
1079
+ createdAt: z.ZodString;
1080
+ updatedAt: z.ZodString;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ id: string;
1083
+ title: string | null;
1084
+ createdAt: string;
1085
+ updatedAt: string;
1086
+ summary: string | null;
1087
+ farmId: string | null;
1088
+ messageCount: number;
1089
+ lastMessageAt: string | null;
1090
+ }, {
1091
+ id: string;
1092
+ title: string | null;
1093
+ createdAt: string;
1094
+ updatedAt: string;
1095
+ summary: string | null;
1096
+ farmId: string | null;
1097
+ messageCount: number;
1098
+ lastMessageAt: string | null;
1099
+ }>, "many">;
1100
+ total: z.ZodNumber;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ conversations: {
1103
+ id: string;
1104
+ title: string | null;
1105
+ createdAt: string;
1106
+ updatedAt: string;
1107
+ summary: string | null;
1108
+ farmId: string | null;
1109
+ messageCount: number;
1110
+ lastMessageAt: string | null;
1111
+ }[];
1112
+ total: number;
1113
+ }, {
1114
+ conversations: {
1115
+ id: string;
1116
+ title: string | null;
1117
+ createdAt: string;
1118
+ updatedAt: string;
1119
+ summary: string | null;
1120
+ farmId: string | null;
1121
+ messageCount: number;
1122
+ lastMessageAt: string | null;
1123
+ }[];
1124
+ total: number;
1125
+ }>;
1126
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1127
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1128
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ type: string;
1131
+ id: string;
1132
+ attributes: {
1133
+ conversations: {
1134
+ id: string;
1135
+ title: string | null;
1136
+ createdAt: string;
1137
+ updatedAt: string;
1138
+ summary: string | null;
1139
+ farmId: string | null;
1140
+ messageCount: number;
1141
+ lastMessageAt: string | null;
1142
+ }[];
1143
+ total: number;
1144
+ };
1145
+ relationships?: Record<string, unknown> | undefined;
1146
+ links?: Record<string, string> | undefined;
1147
+ meta?: Record<string, unknown> | undefined;
1148
+ }, {
1149
+ type: string;
1150
+ id: string;
1151
+ attributes: {
1152
+ conversations: {
1153
+ id: string;
1154
+ title: string | null;
1155
+ createdAt: string;
1156
+ updatedAt: string;
1157
+ summary: string | null;
1158
+ farmId: string | null;
1159
+ messageCount: number;
1160
+ lastMessageAt: string | null;
1161
+ }[];
1162
+ total: number;
1163
+ };
1164
+ relationships?: Record<string, unknown> | undefined;
1165
+ links?: Record<string, string> | undefined;
1166
+ meta?: Record<string, unknown> | undefined;
1167
+ }>;
1168
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1169
+ type: z.ZodString;
1170
+ id: z.ZodString;
1171
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1172
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1173
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1174
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ type: string;
1177
+ id: string;
1178
+ attributes?: Record<string, unknown> | undefined;
1179
+ relationships?: Record<string, unknown> | undefined;
1180
+ links?: Record<string, string> | undefined;
1181
+ meta?: Record<string, unknown> | undefined;
1182
+ }, {
1183
+ type: string;
1184
+ id: string;
1185
+ attributes?: Record<string, unknown> | undefined;
1186
+ relationships?: Record<string, unknown> | undefined;
1187
+ links?: Record<string, string> | undefined;
1188
+ meta?: Record<string, unknown> | undefined;
1189
+ }>, "many">>;
1190
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1191
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ data: {
1194
+ type: string;
1195
+ id: string;
1196
+ attributes: {
1197
+ conversations: {
1198
+ id: string;
1199
+ title: string | null;
1200
+ createdAt: string;
1201
+ updatedAt: string;
1202
+ summary: string | null;
1203
+ farmId: string | null;
1204
+ messageCount: number;
1205
+ lastMessageAt: string | null;
1206
+ }[];
1207
+ total: number;
1208
+ };
1209
+ relationships?: Record<string, unknown> | undefined;
1210
+ links?: Record<string, string> | undefined;
1211
+ meta?: Record<string, unknown> | undefined;
1212
+ };
1213
+ links?: Record<string, string> | undefined;
1214
+ meta?: Record<string, unknown> | undefined;
1215
+ included?: {
1216
+ type: string;
1217
+ id: string;
1218
+ attributes?: Record<string, unknown> | undefined;
1219
+ relationships?: Record<string, unknown> | undefined;
1220
+ links?: Record<string, string> | undefined;
1221
+ meta?: Record<string, unknown> | undefined;
1222
+ }[] | undefined;
1223
+ }, {
1224
+ data: {
1225
+ type: string;
1226
+ id: string;
1227
+ attributes: {
1228
+ conversations: {
1229
+ id: string;
1230
+ title: string | null;
1231
+ createdAt: string;
1232
+ updatedAt: string;
1233
+ summary: string | null;
1234
+ farmId: string | null;
1235
+ messageCount: number;
1236
+ lastMessageAt: string | null;
1237
+ }[];
1238
+ total: number;
1239
+ };
1240
+ relationships?: Record<string, unknown> | undefined;
1241
+ links?: Record<string, string> | undefined;
1242
+ meta?: Record<string, unknown> | undefined;
1243
+ };
1244
+ links?: Record<string, string> | undefined;
1245
+ meta?: Record<string, unknown> | undefined;
1246
+ included?: {
1247
+ type: string;
1248
+ id: string;
1249
+ attributes?: Record<string, unknown> | undefined;
1250
+ relationships?: Record<string, unknown> | undefined;
1251
+ links?: Record<string, string> | undefined;
1252
+ meta?: Record<string, unknown> | undefined;
1253
+ }[] | undefined;
1254
+ }>;
1255
+ 400: z.ZodObject<{
1256
+ errors: z.ZodArray<z.ZodObject<{
1257
+ id: z.ZodOptional<z.ZodString>;
1258
+ links: z.ZodOptional<z.ZodObject<{
1259
+ about: z.ZodOptional<z.ZodString>;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ about?: string | undefined;
1262
+ }, {
1263
+ about?: string | undefined;
1264
+ }>>;
1265
+ status: z.ZodOptional<z.ZodString>;
1266
+ code: z.ZodOptional<z.ZodString>;
1267
+ title: z.ZodOptional<z.ZodString>;
1268
+ detail: z.ZodOptional<z.ZodString>;
1269
+ source: z.ZodOptional<z.ZodObject<{
1270
+ pointer: z.ZodOptional<z.ZodString>;
1271
+ parameter: z.ZodOptional<z.ZodString>;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ pointer?: string | undefined;
1274
+ parameter?: string | undefined;
1275
+ }, {
1276
+ pointer?: string | undefined;
1277
+ parameter?: string | undefined;
1278
+ }>>;
1279
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ status?: string | undefined;
1282
+ code?: string | undefined;
1283
+ id?: string | undefined;
1284
+ links?: {
1285
+ about?: string | undefined;
1286
+ } | undefined;
1287
+ meta?: Record<string, unknown> | undefined;
1288
+ title?: string | undefined;
1289
+ detail?: string | undefined;
1290
+ source?: {
1291
+ pointer?: string | undefined;
1292
+ parameter?: string | undefined;
1293
+ } | undefined;
1294
+ }, {
1295
+ status?: string | undefined;
1296
+ code?: string | undefined;
1297
+ id?: string | undefined;
1298
+ links?: {
1299
+ about?: string | undefined;
1300
+ } | undefined;
1301
+ meta?: Record<string, unknown> | undefined;
1302
+ title?: string | undefined;
1303
+ detail?: string | undefined;
1304
+ source?: {
1305
+ pointer?: string | undefined;
1306
+ parameter?: string | undefined;
1307
+ } | undefined;
1308
+ }>, "many">;
1309
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ errors: {
1312
+ status?: string | undefined;
1313
+ code?: string | undefined;
1314
+ id?: string | undefined;
1315
+ links?: {
1316
+ about?: string | undefined;
1317
+ } | undefined;
1318
+ meta?: Record<string, unknown> | undefined;
1319
+ title?: string | undefined;
1320
+ detail?: string | undefined;
1321
+ source?: {
1322
+ pointer?: string | undefined;
1323
+ parameter?: string | undefined;
1324
+ } | undefined;
1325
+ }[];
1326
+ meta?: Record<string, unknown> | undefined;
1327
+ }, {
1328
+ errors: {
1329
+ status?: string | undefined;
1330
+ code?: string | undefined;
1331
+ id?: string | undefined;
1332
+ links?: {
1333
+ about?: string | undefined;
1334
+ } | undefined;
1335
+ meta?: Record<string, unknown> | undefined;
1336
+ title?: string | undefined;
1337
+ detail?: string | undefined;
1338
+ source?: {
1339
+ pointer?: string | undefined;
1340
+ parameter?: string | undefined;
1341
+ } | undefined;
1342
+ }[];
1343
+ meta?: Record<string, unknown> | undefined;
1344
+ }>;
1345
+ 401: z.ZodObject<{
1346
+ errors: z.ZodArray<z.ZodObject<{
1347
+ id: z.ZodOptional<z.ZodString>;
1348
+ links: z.ZodOptional<z.ZodObject<{
1349
+ about: z.ZodOptional<z.ZodString>;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ about?: string | undefined;
1352
+ }, {
1353
+ about?: string | undefined;
1354
+ }>>;
1355
+ status: z.ZodOptional<z.ZodString>;
1356
+ code: z.ZodOptional<z.ZodString>;
1357
+ title: z.ZodOptional<z.ZodString>;
1358
+ detail: z.ZodOptional<z.ZodString>;
1359
+ source: z.ZodOptional<z.ZodObject<{
1360
+ pointer: z.ZodOptional<z.ZodString>;
1361
+ parameter: z.ZodOptional<z.ZodString>;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ pointer?: string | undefined;
1364
+ parameter?: string | undefined;
1365
+ }, {
1366
+ pointer?: string | undefined;
1367
+ parameter?: string | undefined;
1368
+ }>>;
1369
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ status?: string | undefined;
1372
+ code?: string | undefined;
1373
+ id?: string | undefined;
1374
+ links?: {
1375
+ about?: string | undefined;
1376
+ } | undefined;
1377
+ meta?: Record<string, unknown> | undefined;
1378
+ title?: string | undefined;
1379
+ detail?: string | undefined;
1380
+ source?: {
1381
+ pointer?: string | undefined;
1382
+ parameter?: string | undefined;
1383
+ } | undefined;
1384
+ }, {
1385
+ status?: string | undefined;
1386
+ code?: string | undefined;
1387
+ id?: string | undefined;
1388
+ links?: {
1389
+ about?: string | undefined;
1390
+ } | undefined;
1391
+ meta?: Record<string, unknown> | undefined;
1392
+ title?: string | undefined;
1393
+ detail?: string | undefined;
1394
+ source?: {
1395
+ pointer?: string | undefined;
1396
+ parameter?: string | undefined;
1397
+ } | undefined;
1398
+ }>, "many">;
1399
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1400
+ }, "strip", z.ZodTypeAny, {
1401
+ errors: {
1402
+ status?: string | undefined;
1403
+ code?: string | undefined;
1404
+ id?: string | undefined;
1405
+ links?: {
1406
+ about?: string | undefined;
1407
+ } | undefined;
1408
+ meta?: Record<string, unknown> | undefined;
1409
+ title?: string | undefined;
1410
+ detail?: string | undefined;
1411
+ source?: {
1412
+ pointer?: string | undefined;
1413
+ parameter?: string | undefined;
1414
+ } | undefined;
1415
+ }[];
1416
+ meta?: Record<string, unknown> | undefined;
1417
+ }, {
1418
+ errors: {
1419
+ status?: string | undefined;
1420
+ code?: string | undefined;
1421
+ id?: string | undefined;
1422
+ links?: {
1423
+ about?: string | undefined;
1424
+ } | undefined;
1425
+ meta?: Record<string, unknown> | undefined;
1426
+ title?: string | undefined;
1427
+ detail?: string | undefined;
1428
+ source?: {
1429
+ pointer?: string | undefined;
1430
+ parameter?: string | undefined;
1431
+ } | undefined;
1432
+ }[];
1433
+ meta?: Record<string, unknown> | undefined;
1434
+ }>;
1435
+ 500: z.ZodObject<{
1436
+ errors: z.ZodArray<z.ZodObject<{
1437
+ id: z.ZodOptional<z.ZodString>;
1438
+ links: z.ZodOptional<z.ZodObject<{
1439
+ about: z.ZodOptional<z.ZodString>;
1440
+ }, "strip", z.ZodTypeAny, {
1441
+ about?: string | undefined;
1442
+ }, {
1443
+ about?: string | undefined;
1444
+ }>>;
1445
+ status: z.ZodOptional<z.ZodString>;
1446
+ code: z.ZodOptional<z.ZodString>;
1447
+ title: z.ZodOptional<z.ZodString>;
1448
+ detail: z.ZodOptional<z.ZodString>;
1449
+ source: z.ZodOptional<z.ZodObject<{
1450
+ pointer: z.ZodOptional<z.ZodString>;
1451
+ parameter: z.ZodOptional<z.ZodString>;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ pointer?: string | undefined;
1454
+ parameter?: string | undefined;
1455
+ }, {
1456
+ pointer?: string | undefined;
1457
+ parameter?: string | undefined;
1458
+ }>>;
1459
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1460
+ }, "strip", z.ZodTypeAny, {
1461
+ status?: string | undefined;
1462
+ code?: string | undefined;
1463
+ id?: string | undefined;
1464
+ links?: {
1465
+ about?: string | undefined;
1466
+ } | undefined;
1467
+ meta?: Record<string, unknown> | undefined;
1468
+ title?: string | undefined;
1469
+ detail?: string | undefined;
1470
+ source?: {
1471
+ pointer?: string | undefined;
1472
+ parameter?: string | undefined;
1473
+ } | undefined;
1474
+ }, {
1475
+ status?: string | undefined;
1476
+ code?: string | undefined;
1477
+ id?: string | undefined;
1478
+ links?: {
1479
+ about?: string | undefined;
1480
+ } | undefined;
1481
+ meta?: Record<string, unknown> | undefined;
1482
+ title?: string | undefined;
1483
+ detail?: string | undefined;
1484
+ source?: {
1485
+ pointer?: string | undefined;
1486
+ parameter?: string | undefined;
1487
+ } | undefined;
1488
+ }>, "many">;
1489
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ errors: {
1492
+ status?: string | undefined;
1493
+ code?: string | undefined;
1494
+ id?: string | undefined;
1495
+ links?: {
1496
+ about?: string | undefined;
1497
+ } | undefined;
1498
+ meta?: Record<string, unknown> | undefined;
1499
+ title?: string | undefined;
1500
+ detail?: string | undefined;
1501
+ source?: {
1502
+ pointer?: string | undefined;
1503
+ parameter?: string | undefined;
1504
+ } | undefined;
1505
+ }[];
1506
+ meta?: Record<string, unknown> | undefined;
1507
+ }, {
1508
+ errors: {
1509
+ status?: string | undefined;
1510
+ code?: string | undefined;
1511
+ id?: string | undefined;
1512
+ links?: {
1513
+ about?: string | undefined;
1514
+ } | undefined;
1515
+ meta?: Record<string, unknown> | undefined;
1516
+ title?: string | undefined;
1517
+ detail?: string | undefined;
1518
+ source?: {
1519
+ pointer?: string | undefined;
1520
+ parameter?: string | undefined;
1521
+ } | undefined;
1522
+ }[];
1523
+ meta?: Record<string, unknown> | undefined;
1524
+ }>;
1525
+ };
1526
+ };
1044
1527
  };
1045
1528
  //# sourceMappingURL=agents.routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/agents.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEvB,CAAC"}
@@ -53,4 +53,24 @@ exports.agentsRouter = c.router({
53
53
  summary: 'Get conversation history',
54
54
  description: 'Retrieve the message history for a specific conversation',
55
55
  },
56
+ // List conversations for a farm
57
+ listConversations: {
58
+ method: 'GET',
59
+ path: '/farms/:farmId/agents/conversations',
60
+ pathParams: zod_1.z.object({
61
+ farmId: zod_1.z.string().uuid(),
62
+ }),
63
+ query: zod_1.z.object({
64
+ limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
65
+ offset: zod_1.z.coerce.number().int().min(0).optional().default(0),
66
+ }),
67
+ responses: {
68
+ 200: agents_schemas_1.conversationListResponseSchema,
69
+ 400: common_schemas_1.jsonApiErrorResponseSchema,
70
+ 401: common_schemas_1.jsonApiErrorResponseSchema,
71
+ 500: common_schemas_1.jsonApiErrorResponseSchema,
72
+ },
73
+ summary: 'List all conversations for a farm',
74
+ description: 'Retrieve a list of all conversations for a specific farm, ordered by most recent first',
75
+ },
56
76
  });
@@ -593,6 +593,377 @@ export declare const conversationHistoryResponseSchema: z.ZodObject<{
593
593
  meta?: Record<string, unknown> | undefined;
594
594
  }[] | undefined;
595
595
  }>;
596
+ export declare const conversationListItemSchema: z.ZodObject<{
597
+ id: z.ZodString;
598
+ title: z.ZodNullable<z.ZodString>;
599
+ summary: z.ZodNullable<z.ZodString>;
600
+ farmId: z.ZodNullable<z.ZodString>;
601
+ messageCount: z.ZodNumber;
602
+ lastMessageAt: z.ZodNullable<z.ZodString>;
603
+ createdAt: z.ZodString;
604
+ updatedAt: z.ZodString;
605
+ }, "strip", z.ZodTypeAny, {
606
+ id: string;
607
+ title: string | null;
608
+ createdAt: string;
609
+ updatedAt: string;
610
+ summary: string | null;
611
+ farmId: string | null;
612
+ messageCount: number;
613
+ lastMessageAt: string | null;
614
+ }, {
615
+ id: string;
616
+ title: string | null;
617
+ createdAt: string;
618
+ updatedAt: string;
619
+ summary: string | null;
620
+ farmId: string | null;
621
+ messageCount: number;
622
+ lastMessageAt: string | null;
623
+ }>;
624
+ export declare const conversationListAttributesSchema: z.ZodObject<{
625
+ conversations: z.ZodArray<z.ZodObject<{
626
+ id: z.ZodString;
627
+ title: z.ZodNullable<z.ZodString>;
628
+ summary: z.ZodNullable<z.ZodString>;
629
+ farmId: z.ZodNullable<z.ZodString>;
630
+ messageCount: z.ZodNumber;
631
+ lastMessageAt: z.ZodNullable<z.ZodString>;
632
+ createdAt: z.ZodString;
633
+ updatedAt: z.ZodString;
634
+ }, "strip", z.ZodTypeAny, {
635
+ id: string;
636
+ title: string | null;
637
+ createdAt: string;
638
+ updatedAt: string;
639
+ summary: string | null;
640
+ farmId: string | null;
641
+ messageCount: number;
642
+ lastMessageAt: string | null;
643
+ }, {
644
+ id: string;
645
+ title: string | null;
646
+ createdAt: string;
647
+ updatedAt: string;
648
+ summary: string | null;
649
+ farmId: string | null;
650
+ messageCount: number;
651
+ lastMessageAt: string | null;
652
+ }>, "many">;
653
+ total: z.ZodNumber;
654
+ }, "strip", z.ZodTypeAny, {
655
+ conversations: {
656
+ id: string;
657
+ title: string | null;
658
+ createdAt: string;
659
+ updatedAt: string;
660
+ summary: string | null;
661
+ farmId: string | null;
662
+ messageCount: number;
663
+ lastMessageAt: string | null;
664
+ }[];
665
+ total: number;
666
+ }, {
667
+ conversations: {
668
+ id: string;
669
+ title: string | null;
670
+ createdAt: string;
671
+ updatedAt: string;
672
+ summary: string | null;
673
+ farmId: string | null;
674
+ messageCount: number;
675
+ lastMessageAt: string | null;
676
+ }[];
677
+ total: number;
678
+ }>;
679
+ export declare const conversationListResourceSchema: z.ZodObject<{
680
+ type: z.ZodLiteral<string>;
681
+ id: z.ZodString;
682
+ attributes: z.ZodObject<{
683
+ conversations: z.ZodArray<z.ZodObject<{
684
+ id: z.ZodString;
685
+ title: z.ZodNullable<z.ZodString>;
686
+ summary: z.ZodNullable<z.ZodString>;
687
+ farmId: z.ZodNullable<z.ZodString>;
688
+ messageCount: z.ZodNumber;
689
+ lastMessageAt: z.ZodNullable<z.ZodString>;
690
+ createdAt: z.ZodString;
691
+ updatedAt: z.ZodString;
692
+ }, "strip", z.ZodTypeAny, {
693
+ id: string;
694
+ title: string | null;
695
+ createdAt: string;
696
+ updatedAt: string;
697
+ summary: string | null;
698
+ farmId: string | null;
699
+ messageCount: number;
700
+ lastMessageAt: string | null;
701
+ }, {
702
+ id: string;
703
+ title: string | null;
704
+ createdAt: string;
705
+ updatedAt: string;
706
+ summary: string | null;
707
+ farmId: string | null;
708
+ messageCount: number;
709
+ lastMessageAt: string | null;
710
+ }>, "many">;
711
+ total: z.ZodNumber;
712
+ }, "strip", z.ZodTypeAny, {
713
+ conversations: {
714
+ id: string;
715
+ title: string | null;
716
+ createdAt: string;
717
+ updatedAt: string;
718
+ summary: string | null;
719
+ farmId: string | null;
720
+ messageCount: number;
721
+ lastMessageAt: string | null;
722
+ }[];
723
+ total: number;
724
+ }, {
725
+ conversations: {
726
+ id: string;
727
+ title: string | null;
728
+ createdAt: string;
729
+ updatedAt: string;
730
+ summary: string | null;
731
+ farmId: string | null;
732
+ messageCount: number;
733
+ lastMessageAt: string | null;
734
+ }[];
735
+ total: number;
736
+ }>;
737
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
738
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
739
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ type: string;
742
+ id: string;
743
+ attributes: {
744
+ conversations: {
745
+ id: string;
746
+ title: string | null;
747
+ createdAt: string;
748
+ updatedAt: string;
749
+ summary: string | null;
750
+ farmId: string | null;
751
+ messageCount: number;
752
+ lastMessageAt: string | null;
753
+ }[];
754
+ total: number;
755
+ };
756
+ relationships?: Record<string, unknown> | undefined;
757
+ links?: Record<string, string> | undefined;
758
+ meta?: Record<string, unknown> | undefined;
759
+ }, {
760
+ type: string;
761
+ id: string;
762
+ attributes: {
763
+ conversations: {
764
+ id: string;
765
+ title: string | null;
766
+ createdAt: string;
767
+ updatedAt: string;
768
+ summary: string | null;
769
+ farmId: string | null;
770
+ messageCount: number;
771
+ lastMessageAt: string | null;
772
+ }[];
773
+ total: number;
774
+ };
775
+ relationships?: Record<string, unknown> | undefined;
776
+ links?: Record<string, string> | undefined;
777
+ meta?: Record<string, unknown> | undefined;
778
+ }>;
779
+ export declare const conversationListResponseSchema: z.ZodObject<{
780
+ data: z.ZodObject<{
781
+ type: z.ZodLiteral<string>;
782
+ id: z.ZodString;
783
+ attributes: z.ZodObject<{
784
+ conversations: z.ZodArray<z.ZodObject<{
785
+ id: z.ZodString;
786
+ title: z.ZodNullable<z.ZodString>;
787
+ summary: z.ZodNullable<z.ZodString>;
788
+ farmId: z.ZodNullable<z.ZodString>;
789
+ messageCount: z.ZodNumber;
790
+ lastMessageAt: z.ZodNullable<z.ZodString>;
791
+ createdAt: z.ZodString;
792
+ updatedAt: z.ZodString;
793
+ }, "strip", z.ZodTypeAny, {
794
+ id: string;
795
+ title: string | null;
796
+ createdAt: string;
797
+ updatedAt: string;
798
+ summary: string | null;
799
+ farmId: string | null;
800
+ messageCount: number;
801
+ lastMessageAt: string | null;
802
+ }, {
803
+ id: string;
804
+ title: string | null;
805
+ createdAt: string;
806
+ updatedAt: string;
807
+ summary: string | null;
808
+ farmId: string | null;
809
+ messageCount: number;
810
+ lastMessageAt: string | null;
811
+ }>, "many">;
812
+ total: z.ZodNumber;
813
+ }, "strip", z.ZodTypeAny, {
814
+ conversations: {
815
+ id: string;
816
+ title: string | null;
817
+ createdAt: string;
818
+ updatedAt: string;
819
+ summary: string | null;
820
+ farmId: string | null;
821
+ messageCount: number;
822
+ lastMessageAt: string | null;
823
+ }[];
824
+ total: number;
825
+ }, {
826
+ conversations: {
827
+ id: string;
828
+ title: string | null;
829
+ createdAt: string;
830
+ updatedAt: string;
831
+ summary: string | null;
832
+ farmId: string | null;
833
+ messageCount: number;
834
+ lastMessageAt: string | null;
835
+ }[];
836
+ total: number;
837
+ }>;
838
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
839
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
840
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
841
+ }, "strip", z.ZodTypeAny, {
842
+ type: string;
843
+ id: string;
844
+ attributes: {
845
+ conversations: {
846
+ id: string;
847
+ title: string | null;
848
+ createdAt: string;
849
+ updatedAt: string;
850
+ summary: string | null;
851
+ farmId: string | null;
852
+ messageCount: number;
853
+ lastMessageAt: string | null;
854
+ }[];
855
+ total: number;
856
+ };
857
+ relationships?: Record<string, unknown> | undefined;
858
+ links?: Record<string, string> | undefined;
859
+ meta?: Record<string, unknown> | undefined;
860
+ }, {
861
+ type: string;
862
+ id: string;
863
+ attributes: {
864
+ conversations: {
865
+ id: string;
866
+ title: string | null;
867
+ createdAt: string;
868
+ updatedAt: string;
869
+ summary: string | null;
870
+ farmId: string | null;
871
+ messageCount: number;
872
+ lastMessageAt: string | null;
873
+ }[];
874
+ total: number;
875
+ };
876
+ relationships?: Record<string, unknown> | undefined;
877
+ links?: Record<string, string> | undefined;
878
+ meta?: Record<string, unknown> | undefined;
879
+ }>;
880
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
881
+ type: z.ZodString;
882
+ id: z.ZodString;
883
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
884
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
885
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
886
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ type: string;
889
+ id: string;
890
+ attributes?: Record<string, unknown> | undefined;
891
+ relationships?: Record<string, unknown> | undefined;
892
+ links?: Record<string, string> | undefined;
893
+ meta?: Record<string, unknown> | undefined;
894
+ }, {
895
+ type: string;
896
+ id: string;
897
+ attributes?: Record<string, unknown> | undefined;
898
+ relationships?: Record<string, unknown> | undefined;
899
+ links?: Record<string, string> | undefined;
900
+ meta?: Record<string, unknown> | undefined;
901
+ }>, "many">>;
902
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
903
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
904
+ }, "strip", z.ZodTypeAny, {
905
+ data: {
906
+ type: string;
907
+ id: string;
908
+ attributes: {
909
+ conversations: {
910
+ id: string;
911
+ title: string | null;
912
+ createdAt: string;
913
+ updatedAt: string;
914
+ summary: string | null;
915
+ farmId: string | null;
916
+ messageCount: number;
917
+ lastMessageAt: string | null;
918
+ }[];
919
+ total: number;
920
+ };
921
+ relationships?: Record<string, unknown> | undefined;
922
+ links?: Record<string, string> | undefined;
923
+ meta?: Record<string, unknown> | undefined;
924
+ };
925
+ links?: Record<string, string> | undefined;
926
+ meta?: Record<string, unknown> | undefined;
927
+ included?: {
928
+ type: string;
929
+ id: string;
930
+ attributes?: Record<string, unknown> | undefined;
931
+ relationships?: Record<string, unknown> | undefined;
932
+ links?: Record<string, string> | undefined;
933
+ meta?: Record<string, unknown> | undefined;
934
+ }[] | undefined;
935
+ }, {
936
+ data: {
937
+ type: string;
938
+ id: string;
939
+ attributes: {
940
+ conversations: {
941
+ id: string;
942
+ title: string | null;
943
+ createdAt: string;
944
+ updatedAt: string;
945
+ summary: string | null;
946
+ farmId: string | null;
947
+ messageCount: number;
948
+ lastMessageAt: string | null;
949
+ }[];
950
+ total: number;
951
+ };
952
+ relationships?: Record<string, unknown> | undefined;
953
+ links?: Record<string, string> | undefined;
954
+ meta?: Record<string, unknown> | undefined;
955
+ };
956
+ links?: Record<string, string> | undefined;
957
+ meta?: Record<string, unknown> | undefined;
958
+ included?: {
959
+ type: string;
960
+ id: string;
961
+ attributes?: Record<string, unknown> | undefined;
962
+ relationships?: Record<string, unknown> | undefined;
963
+ links?: Record<string, string> | undefined;
964
+ meta?: Record<string, unknown> | undefined;
965
+ }[] | undefined;
966
+ }>;
596
967
  export type MessageRole = z.infer<typeof messageRoleSchema>;
597
968
  export type ConversationMessage = z.infer<typeof conversationMessageSchema>;
598
969
  export type ConversationHistoryMessage = z.infer<typeof conversationHistoryMessageSchema>;
@@ -603,4 +974,7 @@ export type AgentChatResponseAttributes = z.infer<typeof agentChatResponseAttrib
603
974
  export type AgentChatResponse = z.infer<typeof agentChatResponseSchema>;
604
975
  export type ConversationHistoryAttributes = z.infer<typeof conversationHistoryAttributesSchema>;
605
976
  export type ConversationHistoryResponse = z.infer<typeof conversationHistoryResponseSchema>;
977
+ export type ConversationListItem = z.infer<typeof conversationListItemSchema>;
978
+ export type ConversationListAttributes = z.infer<typeof conversationListAttributesSchema>;
979
+ export type ConversationListResponse = z.infer<typeof conversationListResponseSchema>;
606
980
  //# sourceMappingURL=agents.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/agents.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,kCAAgC,CAAC;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtC,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAGH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5C,CAAC;AAGH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3C,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.conversationHistoryResponseSchema = exports.conversationHistoryResourceSchema = exports.conversationHistoryAttributesSchema = exports.conversationHistoryMessageSchema = exports.agentChatResponseSchema = exports.agentChatResponseResourceSchema = exports.agentChatResponseAttributesSchema = exports.chatRequestSchema = exports.chatRequestAttributesSchema = exports.toolCallResultSchema = exports.conversationMessageSchema = exports.messageRoleSchema = void 0;
3
+ exports.conversationListResponseSchema = exports.conversationListResourceSchema = exports.conversationListAttributesSchema = exports.conversationListItemSchema = exports.conversationHistoryResponseSchema = exports.conversationHistoryResourceSchema = exports.conversationHistoryAttributesSchema = exports.conversationHistoryMessageSchema = exports.agentChatResponseSchema = exports.agentChatResponseResourceSchema = exports.agentChatResponseAttributesSchema = exports.chatRequestSchema = exports.chatRequestAttributesSchema = exports.toolCallResultSchema = exports.conversationMessageSchema = exports.messageRoleSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_schemas_1 = require("./common.schemas");
6
6
  /**
@@ -55,3 +55,23 @@ exports.conversationHistoryAttributesSchema = zod_1.z.object({
55
55
  exports.conversationHistoryResourceSchema = (0, common_schemas_1.createJsonApiResourceSchema)('conversation-histories', exports.conversationHistoryAttributesSchema);
56
56
  // Conversation history response
57
57
  exports.conversationHistoryResponseSchema = (0, common_schemas_1.jsonApiSingleResponseSchema)(exports.conversationHistoryResourceSchema);
58
+ // Conversation list item schema
59
+ exports.conversationListItemSchema = zod_1.z.object({
60
+ id: zod_1.z.string().uuid(),
61
+ title: zod_1.z.string().nullable(),
62
+ summary: zod_1.z.string().nullable(),
63
+ farmId: zod_1.z.string().uuid().nullable(),
64
+ messageCount: zod_1.z.number().int().min(0),
65
+ lastMessageAt: zod_1.z.string().datetime().nullable(),
66
+ createdAt: zod_1.z.string().datetime(),
67
+ updatedAt: zod_1.z.string().datetime(),
68
+ });
69
+ // Conversation list response attributes
70
+ exports.conversationListAttributesSchema = zod_1.z.object({
71
+ conversations: zod_1.z.array(exports.conversationListItemSchema),
72
+ total: zod_1.z.number().int().min(0),
73
+ });
74
+ // Conversation list resource
75
+ exports.conversationListResourceSchema = (0, common_schemas_1.createJsonApiResourceSchema)('conversation-lists', exports.conversationListAttributesSchema);
76
+ // Conversation list response
77
+ exports.conversationListResponseSchema = (0, common_schemas_1.jsonApiSingleResponseSchema)(exports.conversationListResourceSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",