@deepintel-ltd/farmpro-contracts 1.2.1 → 1.3.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.
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/routes/agents.routes.d.ts +483 -0
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +20 -0
- package/dist/routes/field-monitoring.routes.d.ts +20 -0
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.js +2 -0
- package/dist/routes/field-observations.routes.d.ts +3519 -0
- package/dist/routes/field-observations.routes.d.ts.map +1 -0
- package/dist/routes/field-observations.routes.js +116 -0
- package/dist/routes/index.d.ts +3 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/schemas/agents.schemas.d.ts +374 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +21 -1
- package/dist/schemas/field-observations.schemas.d.ts +2760 -0
- package/dist/schemas/field-observations.schemas.d.ts.map +1 -0
- package/dist/schemas/field-observations.schemas.js +182 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module @farmpro/contracts
|
|
7
7
|
*/
|
|
8
8
|
export { apiContract } from './routes';
|
|
9
|
-
export type { ApiContractType, ApiContractDefinition, AuthEndpoints, UsersEndpoints, FarmsEndpoints, FieldsEndpoints, TasksEndpoints, InventoryEndpoints, FinanceEndpoints, HarvestEndpoints, SoilTestsEndpoints, WeatherEndpoints, TeamEndpoints, EquipmentEndpoints, DocumentsEndpoints, SuppliersEndpoints, AnalyticsEndpoints, CategoriesEndpoints, AgentsEndpoints, FieldMonitoringEndpoints, } from './routes';
|
|
9
|
+
export type { ApiContractType, ApiContractDefinition, AuthEndpoints, UsersEndpoints, FarmsEndpoints, FieldsEndpoints, TasksEndpoints, InventoryEndpoints, FinanceEndpoints, HarvestEndpoints, SoilTestsEndpoints, WeatherEndpoints, TeamEndpoints, EquipmentEndpoints, DocumentsEndpoints, SuppliersEndpoints, AnalyticsEndpoints, CategoriesEndpoints, AgentsEndpoints, FieldMonitoringEndpoints, FieldObservationsEndpoints, } from './routes';
|
|
10
10
|
export { authRouter } from './routes/auth.routes';
|
|
11
11
|
export { usersRouter } from './routes/users.routes';
|
|
12
12
|
export { farmsRouter } from './routes/farms.routes';
|
|
@@ -25,6 +25,7 @@ export { analyticsRouter } from './routes/analytics.routes';
|
|
|
25
25
|
export { categoriesRouter } from './routes/categories.routes';
|
|
26
26
|
export { agentsRouter } from './routes/agents.routes';
|
|
27
27
|
export { fieldMonitoringRouter } from './routes/field-monitoring.routes';
|
|
28
|
+
export { fieldObservationsRouter } from './routes/field-observations.routes';
|
|
28
29
|
export * from './schemas/common.schemas';
|
|
29
30
|
export * from './schemas/auth.schemas';
|
|
30
31
|
export * from './schemas/users.schemas';
|
|
@@ -44,4 +45,5 @@ export * from './schemas/analytics.schemas';
|
|
|
44
45
|
export * from './schemas/categories.schemas';
|
|
45
46
|
export * from './schemas/agents.schemas';
|
|
46
47
|
export * from './schemas/field-monitoring.schemas';
|
|
48
|
+
export * from './schemas/field-observations.schemas';
|
|
47
49
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,E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AC5D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAM7E,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
21
21
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.fieldMonitoringRouter = exports.agentsRouter = exports.categoriesRouter = exports.analyticsRouter = exports.suppliersRouter = exports.documentsRouter = exports.equipmentRouter = exports.teamRouter = exports.weatherRouter = exports.soilTestsRouter = exports.harvestRouter = exports.financeRouter = exports.inventoryRouter = exports.tasksRouter = exports.fieldsRouter = exports.farmsRouter = exports.usersRouter = exports.authRouter = exports.apiContract = void 0;
|
|
24
|
+
exports.fieldObservationsRouter = exports.fieldMonitoringRouter = exports.agentsRouter = exports.categoriesRouter = exports.analyticsRouter = exports.suppliersRouter = exports.documentsRouter = exports.equipmentRouter = exports.teamRouter = exports.weatherRouter = exports.soilTestsRouter = exports.harvestRouter = exports.financeRouter = exports.inventoryRouter = exports.tasksRouter = exports.fieldsRouter = exports.farmsRouter = exports.usersRouter = exports.authRouter = exports.apiContract = void 0;
|
|
25
25
|
// =============================================================================
|
|
26
26
|
// Main API Contract
|
|
27
27
|
// =============================================================================
|
|
@@ -66,6 +66,8 @@ var agents_routes_1 = require("./routes/agents.routes");
|
|
|
66
66
|
Object.defineProperty(exports, "agentsRouter", { enumerable: true, get: function () { return agents_routes_1.agentsRouter; } });
|
|
67
67
|
var field_monitoring_routes_1 = require("./routes/field-monitoring.routes");
|
|
68
68
|
Object.defineProperty(exports, "fieldMonitoringRouter", { enumerable: true, get: function () { return field_monitoring_routes_1.fieldMonitoringRouter; } });
|
|
69
|
+
var field_observations_routes_1 = require("./routes/field-observations.routes");
|
|
70
|
+
Object.defineProperty(exports, "fieldObservationsRouter", { enumerable: true, get: function () { return field_observations_routes_1.fieldObservationsRouter; } });
|
|
69
71
|
// =============================================================================
|
|
70
72
|
// Schemas
|
|
71
73
|
// =============================================================================
|
|
@@ -88,3 +90,4 @@ __exportStar(require("./schemas/analytics.schemas"), exports);
|
|
|
88
90
|
__exportStar(require("./schemas/categories.schemas"), exports);
|
|
89
91
|
__exportStar(require("./schemas/agents.schemas"), exports);
|
|
90
92
|
__exportStar(require("./schemas/field-monitoring.schemas"), exports);
|
|
93
|
+
__exportStar(require("./schemas/field-observations.schemas"), exports);
|
|
@@ -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;
|
|
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;AAWxB,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
|
});
|
|
@@ -398,6 +398,26 @@ export declare const fieldMonitoringRouter: {
|
|
|
398
398
|
message: string;
|
|
399
399
|
code?: string | undefined;
|
|
400
400
|
}>;
|
|
401
|
+
500: z.ZodObject<{
|
|
402
|
+
message: z.ZodString;
|
|
403
|
+
code: z.ZodOptional<z.ZodString>;
|
|
404
|
+
}, "strip", z.ZodTypeAny, {
|
|
405
|
+
message: string;
|
|
406
|
+
code?: string | undefined;
|
|
407
|
+
}, {
|
|
408
|
+
message: string;
|
|
409
|
+
code?: string | undefined;
|
|
410
|
+
}>;
|
|
411
|
+
503: z.ZodObject<{
|
|
412
|
+
message: z.ZodString;
|
|
413
|
+
code: z.ZodOptional<z.ZodString>;
|
|
414
|
+
}, "strip", z.ZodTypeAny, {
|
|
415
|
+
message: string;
|
|
416
|
+
code?: string | undefined;
|
|
417
|
+
}, {
|
|
418
|
+
message: string;
|
|
419
|
+
code?: string | undefined;
|
|
420
|
+
}>;
|
|
401
421
|
};
|
|
402
422
|
};
|
|
403
423
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-monitoring.routes.d.ts","sourceRoot":"","sources":["../../src/routes/field-monitoring.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"field-monitoring.routes.d.ts","sourceRoot":"","sources":["../../src/routes/field-monitoring.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
|
|
@@ -87,6 +87,8 @@ exports.fieldMonitoringRouter = c.router({
|
|
|
87
87
|
responses: {
|
|
88
88
|
202: field_monitoring_schemas_1.triggerAnalysisResponseSchema,
|
|
89
89
|
404: field_monitoring_schemas_1.fieldMonitoringErrorResponseSchema,
|
|
90
|
+
500: field_monitoring_schemas_1.fieldMonitoringErrorResponseSchema,
|
|
91
|
+
503: field_monitoring_schemas_1.fieldMonitoringErrorResponseSchema,
|
|
90
92
|
},
|
|
91
93
|
summary: 'Manually trigger field analysis',
|
|
92
94
|
},
|