@deepintel-ltd/farmpro-contracts 1.3.3 → 1.3.4

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,317 @@
1
+ export declare const healthRouter: {
2
+ check: {
3
+ summary: "Health check endpoint";
4
+ description: "Check the health status of the API and its dependencies (database, Redis, storage)";
5
+ method: "GET";
6
+ path: "/health";
7
+ responses: {
8
+ 200: import("zod").ZodObject<{
9
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
10
+ timestamp: import("zod").ZodString;
11
+ uptime: import("zod").ZodNumber;
12
+ services: import("zod").ZodObject<{
13
+ database: import("zod").ZodObject<{
14
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
15
+ message: import("zod").ZodOptional<import("zod").ZodString>;
16
+ responseTime: import("zod").ZodOptional<import("zod").ZodNumber>;
17
+ }, "strip", import("zod").ZodTypeAny, {
18
+ status: "healthy" | "unhealthy" | "degraded";
19
+ message?: string | undefined;
20
+ responseTime?: number | undefined;
21
+ }, {
22
+ status: "healthy" | "unhealthy" | "degraded";
23
+ message?: string | undefined;
24
+ responseTime?: number | undefined;
25
+ }>;
26
+ redis: import("zod").ZodObject<{
27
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
28
+ message: import("zod").ZodOptional<import("zod").ZodString>;
29
+ responseTime: import("zod").ZodOptional<import("zod").ZodNumber>;
30
+ }, "strip", import("zod").ZodTypeAny, {
31
+ status: "healthy" | "unhealthy" | "degraded";
32
+ message?: string | undefined;
33
+ responseTime?: number | undefined;
34
+ }, {
35
+ status: "healthy" | "unhealthy" | "degraded";
36
+ message?: string | undefined;
37
+ responseTime?: number | undefined;
38
+ }>;
39
+ storage: import("zod").ZodOptional<import("zod").ZodObject<{
40
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
41
+ message: import("zod").ZodOptional<import("zod").ZodString>;
42
+ responseTime: import("zod").ZodOptional<import("zod").ZodNumber>;
43
+ }, "strip", import("zod").ZodTypeAny, {
44
+ status: "healthy" | "unhealthy" | "degraded";
45
+ message?: string | undefined;
46
+ responseTime?: number | undefined;
47
+ }, {
48
+ status: "healthy" | "unhealthy" | "degraded";
49
+ message?: string | undefined;
50
+ responseTime?: number | undefined;
51
+ }>>;
52
+ timescale: import("zod").ZodOptional<import("zod").ZodObject<{
53
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
54
+ message: import("zod").ZodOptional<import("zod").ZodString>;
55
+ responseTime: import("zod").ZodOptional<import("zod").ZodNumber>;
56
+ }, "strip", import("zod").ZodTypeAny, {
57
+ status: "healthy" | "unhealthy" | "degraded";
58
+ message?: string | undefined;
59
+ responseTime?: number | undefined;
60
+ }, {
61
+ status: "healthy" | "unhealthy" | "degraded";
62
+ message?: string | undefined;
63
+ responseTime?: number | undefined;
64
+ }>>;
65
+ }, "strip", import("zod").ZodTypeAny, {
66
+ database: {
67
+ status: "healthy" | "unhealthy" | "degraded";
68
+ message?: string | undefined;
69
+ responseTime?: number | undefined;
70
+ };
71
+ redis: {
72
+ status: "healthy" | "unhealthy" | "degraded";
73
+ message?: string | undefined;
74
+ responseTime?: number | undefined;
75
+ };
76
+ storage?: {
77
+ status: "healthy" | "unhealthy" | "degraded";
78
+ message?: string | undefined;
79
+ responseTime?: number | undefined;
80
+ } | undefined;
81
+ timescale?: {
82
+ status: "healthy" | "unhealthy" | "degraded";
83
+ message?: string | undefined;
84
+ responseTime?: number | undefined;
85
+ } | undefined;
86
+ }, {
87
+ database: {
88
+ status: "healthy" | "unhealthy" | "degraded";
89
+ message?: string | undefined;
90
+ responseTime?: number | undefined;
91
+ };
92
+ redis: {
93
+ status: "healthy" | "unhealthy" | "degraded";
94
+ message?: string | undefined;
95
+ responseTime?: number | undefined;
96
+ };
97
+ storage?: {
98
+ status: "healthy" | "unhealthy" | "degraded";
99
+ message?: string | undefined;
100
+ responseTime?: number | undefined;
101
+ } | undefined;
102
+ timescale?: {
103
+ status: "healthy" | "unhealthy" | "degraded";
104
+ message?: string | undefined;
105
+ responseTime?: number | undefined;
106
+ } | undefined;
107
+ }>;
108
+ }, "strip", import("zod").ZodTypeAny, {
109
+ status: "healthy" | "unhealthy" | "degraded";
110
+ timestamp: string;
111
+ uptime: number;
112
+ services: {
113
+ database: {
114
+ status: "healthy" | "unhealthy" | "degraded";
115
+ message?: string | undefined;
116
+ responseTime?: number | undefined;
117
+ };
118
+ redis: {
119
+ status: "healthy" | "unhealthy" | "degraded";
120
+ message?: string | undefined;
121
+ responseTime?: number | undefined;
122
+ };
123
+ storage?: {
124
+ status: "healthy" | "unhealthy" | "degraded";
125
+ message?: string | undefined;
126
+ responseTime?: number | undefined;
127
+ } | undefined;
128
+ timescale?: {
129
+ status: "healthy" | "unhealthy" | "degraded";
130
+ message?: string | undefined;
131
+ responseTime?: number | undefined;
132
+ } | undefined;
133
+ };
134
+ }, {
135
+ status: "healthy" | "unhealthy" | "degraded";
136
+ timestamp: string;
137
+ uptime: number;
138
+ services: {
139
+ database: {
140
+ status: "healthy" | "unhealthy" | "degraded";
141
+ message?: string | undefined;
142
+ responseTime?: number | undefined;
143
+ };
144
+ redis: {
145
+ status: "healthy" | "unhealthy" | "degraded";
146
+ message?: string | undefined;
147
+ responseTime?: number | undefined;
148
+ };
149
+ storage?: {
150
+ status: "healthy" | "unhealthy" | "degraded";
151
+ message?: string | undefined;
152
+ responseTime?: number | undefined;
153
+ } | undefined;
154
+ timescale?: {
155
+ status: "healthy" | "unhealthy" | "degraded";
156
+ message?: string | undefined;
157
+ responseTime?: number | undefined;
158
+ } | undefined;
159
+ };
160
+ }>;
161
+ 503: import("zod").ZodObject<{
162
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
163
+ timestamp: import("zod").ZodString;
164
+ uptime: import("zod").ZodNumber;
165
+ services: import("zod").ZodObject<{
166
+ database: import("zod").ZodObject<{
167
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
168
+ message: import("zod").ZodOptional<import("zod").ZodString>;
169
+ responseTime: import("zod").ZodOptional<import("zod").ZodNumber>;
170
+ }, "strip", import("zod").ZodTypeAny, {
171
+ status: "healthy" | "unhealthy" | "degraded";
172
+ message?: string | undefined;
173
+ responseTime?: number | undefined;
174
+ }, {
175
+ status: "healthy" | "unhealthy" | "degraded";
176
+ message?: string | undefined;
177
+ responseTime?: number | undefined;
178
+ }>;
179
+ redis: import("zod").ZodObject<{
180
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
181
+ message: import("zod").ZodOptional<import("zod").ZodString>;
182
+ responseTime: import("zod").ZodOptional<import("zod").ZodNumber>;
183
+ }, "strip", import("zod").ZodTypeAny, {
184
+ status: "healthy" | "unhealthy" | "degraded";
185
+ message?: string | undefined;
186
+ responseTime?: number | undefined;
187
+ }, {
188
+ status: "healthy" | "unhealthy" | "degraded";
189
+ message?: string | undefined;
190
+ responseTime?: number | undefined;
191
+ }>;
192
+ storage: import("zod").ZodOptional<import("zod").ZodObject<{
193
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
194
+ message: import("zod").ZodOptional<import("zod").ZodString>;
195
+ responseTime: import("zod").ZodOptional<import("zod").ZodNumber>;
196
+ }, "strip", import("zod").ZodTypeAny, {
197
+ status: "healthy" | "unhealthy" | "degraded";
198
+ message?: string | undefined;
199
+ responseTime?: number | undefined;
200
+ }, {
201
+ status: "healthy" | "unhealthy" | "degraded";
202
+ message?: string | undefined;
203
+ responseTime?: number | undefined;
204
+ }>>;
205
+ timescale: import("zod").ZodOptional<import("zod").ZodObject<{
206
+ status: import("zod").ZodEnum<["healthy", "unhealthy", "degraded"]>;
207
+ message: import("zod").ZodOptional<import("zod").ZodString>;
208
+ responseTime: import("zod").ZodOptional<import("zod").ZodNumber>;
209
+ }, "strip", import("zod").ZodTypeAny, {
210
+ status: "healthy" | "unhealthy" | "degraded";
211
+ message?: string | undefined;
212
+ responseTime?: number | undefined;
213
+ }, {
214
+ status: "healthy" | "unhealthy" | "degraded";
215
+ message?: string | undefined;
216
+ responseTime?: number | undefined;
217
+ }>>;
218
+ }, "strip", import("zod").ZodTypeAny, {
219
+ database: {
220
+ status: "healthy" | "unhealthy" | "degraded";
221
+ message?: string | undefined;
222
+ responseTime?: number | undefined;
223
+ };
224
+ redis: {
225
+ status: "healthy" | "unhealthy" | "degraded";
226
+ message?: string | undefined;
227
+ responseTime?: number | undefined;
228
+ };
229
+ storage?: {
230
+ status: "healthy" | "unhealthy" | "degraded";
231
+ message?: string | undefined;
232
+ responseTime?: number | undefined;
233
+ } | undefined;
234
+ timescale?: {
235
+ status: "healthy" | "unhealthy" | "degraded";
236
+ message?: string | undefined;
237
+ responseTime?: number | undefined;
238
+ } | undefined;
239
+ }, {
240
+ database: {
241
+ status: "healthy" | "unhealthy" | "degraded";
242
+ message?: string | undefined;
243
+ responseTime?: number | undefined;
244
+ };
245
+ redis: {
246
+ status: "healthy" | "unhealthy" | "degraded";
247
+ message?: string | undefined;
248
+ responseTime?: number | undefined;
249
+ };
250
+ storage?: {
251
+ status: "healthy" | "unhealthy" | "degraded";
252
+ message?: string | undefined;
253
+ responseTime?: number | undefined;
254
+ } | undefined;
255
+ timescale?: {
256
+ status: "healthy" | "unhealthy" | "degraded";
257
+ message?: string | undefined;
258
+ responseTime?: number | undefined;
259
+ } | undefined;
260
+ }>;
261
+ }, "strip", import("zod").ZodTypeAny, {
262
+ status: "healthy" | "unhealthy" | "degraded";
263
+ timestamp: string;
264
+ uptime: number;
265
+ services: {
266
+ database: {
267
+ status: "healthy" | "unhealthy" | "degraded";
268
+ message?: string | undefined;
269
+ responseTime?: number | undefined;
270
+ };
271
+ redis: {
272
+ status: "healthy" | "unhealthy" | "degraded";
273
+ message?: string | undefined;
274
+ responseTime?: number | undefined;
275
+ };
276
+ storage?: {
277
+ status: "healthy" | "unhealthy" | "degraded";
278
+ message?: string | undefined;
279
+ responseTime?: number | undefined;
280
+ } | undefined;
281
+ timescale?: {
282
+ status: "healthy" | "unhealthy" | "degraded";
283
+ message?: string | undefined;
284
+ responseTime?: number | undefined;
285
+ } | undefined;
286
+ };
287
+ }, {
288
+ status: "healthy" | "unhealthy" | "degraded";
289
+ timestamp: string;
290
+ uptime: number;
291
+ services: {
292
+ database: {
293
+ status: "healthy" | "unhealthy" | "degraded";
294
+ message?: string | undefined;
295
+ responseTime?: number | undefined;
296
+ };
297
+ redis: {
298
+ status: "healthy" | "unhealthy" | "degraded";
299
+ message?: string | undefined;
300
+ responseTime?: number | undefined;
301
+ };
302
+ storage?: {
303
+ status: "healthy" | "unhealthy" | "degraded";
304
+ message?: string | undefined;
305
+ responseTime?: number | undefined;
306
+ } | undefined;
307
+ timescale?: {
308
+ status: "healthy" | "unhealthy" | "degraded";
309
+ message?: string | undefined;
310
+ responseTime?: number | undefined;
311
+ } | undefined;
312
+ };
313
+ }>;
314
+ };
315
+ };
316
+ };
317
+ //# sourceMappingURL=health.routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health.routes.d.ts","sourceRoot":"","sources":["../../src/routes/health.routes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWvB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.healthRouter = void 0;
4
+ const core_1 = require("@ts-rest/core");
5
+ const health_schemas_1 = require("../schemas/health.schemas");
6
+ const c = (0, core_1.initContract)();
7
+ exports.healthRouter = c.router({
8
+ check: {
9
+ method: 'GET',
10
+ path: '/health',
11
+ responses: {
12
+ 200: health_schemas_1.healthCheckResponseSchema,
13
+ 503: health_schemas_1.healthCheckResponseSchema, // Service unavailable
14
+ },
15
+ summary: 'Health check endpoint',
16
+ description: 'Check the health status of the API and its dependencies (database, Redis, storage)',
17
+ },
18
+ });
@@ -19,6 +19,7 @@ import { agentWorkflowsRouter } from './agent-workflows.routes';
19
19
  import { fieldMonitoringRouter } from './field-monitoring.routes';
20
20
  import { fieldObservationsRouter } from './field-observations.routes';
21
21
  import { adminRouter } from './admin.routes';
22
+ import { healthRouter } from './health.routes';
22
23
  /**
23
24
  * Explicit interface definition for the API contract.
24
25
  * This avoids TypeScript's type serialization limit when combining many routers
@@ -46,6 +47,7 @@ export interface ApiContractDefinition {
46
47
  fieldMonitoring: typeof fieldMonitoringRouter;
47
48
  fieldObservations: typeof fieldObservationsRouter;
48
49
  admin: typeof adminRouter;
50
+ health: typeof healthRouter;
49
51
  }
50
52
  /**
51
53
  * Main API contract combining all routers
@@ -83,4 +85,5 @@ export type AgentWorkflowsEndpoints = ApiContractType['agentWorkflows'];
83
85
  export type FieldMonitoringEndpoints = ApiContractType['fieldMonitoring'];
84
86
  export type FieldObservationsEndpoints = ApiContractType['fieldObservations'];
85
87
  export type AdminEndpoints = ApiContractType['admin'];
88
+ export type HealthEndpoints = ApiContractType['health'];
86
89
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB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AC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AAC9D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AACxD,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AACxE,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAC9E,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC"}
@@ -23,6 +23,7 @@ const agent_workflows_routes_1 = require("./agent-workflows.routes");
23
23
  const field_monitoring_routes_1 = require("./field-monitoring.routes");
24
24
  const field_observations_routes_1 = require("./field-observations.routes");
25
25
  const admin_routes_1 = require("./admin.routes");
26
+ const health_routes_1 = require("./health.routes");
26
27
  const c = (0, core_1.initContract)();
27
28
  /**
28
29
  * Main API contract combining all routers
@@ -52,4 +53,5 @@ exports.apiContract = c.router({
52
53
  fieldMonitoring: field_monitoring_routes_1.fieldMonitoringRouter,
53
54
  fieldObservations: field_observations_routes_1.fieldObservationsRouter,
54
55
  admin: admin_routes_1.adminRouter,
56
+ health: health_routes_1.healthRouter,
55
57
  });
@@ -836,6 +836,205 @@ export declare const documentListResponseSchema: z.ZodObject<{
836
836
  meta?: Record<string, unknown> | undefined;
837
837
  }[] | undefined;
838
838
  }>;
839
+ export declare const uploadedFileAttributesSchema: z.ZodObject<{
840
+ fileUrl: z.ZodString;
841
+ fileSize: z.ZodNumber;
842
+ fileName: z.ZodString;
843
+ contentType: z.ZodOptional<z.ZodString>;
844
+ uploadedAt: z.ZodString;
845
+ }, "strip", z.ZodTypeAny, {
846
+ fileUrl: string;
847
+ fileSize: number;
848
+ fileName: string;
849
+ uploadedAt: string;
850
+ contentType?: string | undefined;
851
+ }, {
852
+ fileUrl: string;
853
+ fileSize: number;
854
+ fileName: string;
855
+ uploadedAt: string;
856
+ contentType?: string | undefined;
857
+ }>;
858
+ export declare const uploadedFileResourceSchema: z.ZodObject<{
859
+ type: z.ZodLiteral<string>;
860
+ id: z.ZodString;
861
+ attributes: z.ZodObject<{
862
+ fileUrl: z.ZodString;
863
+ fileSize: z.ZodNumber;
864
+ fileName: z.ZodString;
865
+ contentType: z.ZodOptional<z.ZodString>;
866
+ uploadedAt: z.ZodString;
867
+ }, "strip", z.ZodTypeAny, {
868
+ fileUrl: string;
869
+ fileSize: number;
870
+ fileName: string;
871
+ uploadedAt: string;
872
+ contentType?: string | undefined;
873
+ }, {
874
+ fileUrl: string;
875
+ fileSize: number;
876
+ fileName: string;
877
+ uploadedAt: string;
878
+ contentType?: string | undefined;
879
+ }>;
880
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
881
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
882
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ type: string;
885
+ id: string;
886
+ attributes: {
887
+ fileUrl: string;
888
+ fileSize: number;
889
+ fileName: string;
890
+ uploadedAt: string;
891
+ contentType?: string | undefined;
892
+ };
893
+ relationships?: Record<string, unknown> | undefined;
894
+ links?: Record<string, string> | undefined;
895
+ meta?: Record<string, unknown> | undefined;
896
+ }, {
897
+ type: string;
898
+ id: string;
899
+ attributes: {
900
+ fileUrl: string;
901
+ fileSize: number;
902
+ fileName: string;
903
+ uploadedAt: string;
904
+ contentType?: string | undefined;
905
+ };
906
+ relationships?: Record<string, unknown> | undefined;
907
+ links?: Record<string, string> | undefined;
908
+ meta?: Record<string, unknown> | undefined;
909
+ }>;
910
+ export declare const uploadedFileResponseSchema: z.ZodObject<{
911
+ data: z.ZodObject<{
912
+ type: z.ZodLiteral<string>;
913
+ id: z.ZodString;
914
+ attributes: z.ZodObject<{
915
+ fileUrl: z.ZodString;
916
+ fileSize: z.ZodNumber;
917
+ fileName: z.ZodString;
918
+ contentType: z.ZodOptional<z.ZodString>;
919
+ uploadedAt: z.ZodString;
920
+ }, "strip", z.ZodTypeAny, {
921
+ fileUrl: string;
922
+ fileSize: number;
923
+ fileName: string;
924
+ uploadedAt: string;
925
+ contentType?: string | undefined;
926
+ }, {
927
+ fileUrl: string;
928
+ fileSize: number;
929
+ fileName: string;
930
+ uploadedAt: string;
931
+ contentType?: string | undefined;
932
+ }>;
933
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
934
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
935
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
936
+ }, "strip", z.ZodTypeAny, {
937
+ type: string;
938
+ id: string;
939
+ attributes: {
940
+ fileUrl: string;
941
+ fileSize: number;
942
+ fileName: string;
943
+ uploadedAt: string;
944
+ contentType?: string | undefined;
945
+ };
946
+ relationships?: Record<string, unknown> | undefined;
947
+ links?: Record<string, string> | undefined;
948
+ meta?: Record<string, unknown> | undefined;
949
+ }, {
950
+ type: string;
951
+ id: string;
952
+ attributes: {
953
+ fileUrl: string;
954
+ fileSize: number;
955
+ fileName: string;
956
+ uploadedAt: string;
957
+ contentType?: string | undefined;
958
+ };
959
+ relationships?: Record<string, unknown> | undefined;
960
+ links?: Record<string, string> | undefined;
961
+ meta?: Record<string, unknown> | undefined;
962
+ }>;
963
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
964
+ type: z.ZodString;
965
+ id: z.ZodString;
966
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
967
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
968
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
969
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ type: string;
972
+ id: string;
973
+ attributes?: Record<string, unknown> | undefined;
974
+ relationships?: Record<string, unknown> | undefined;
975
+ links?: Record<string, string> | undefined;
976
+ meta?: Record<string, unknown> | undefined;
977
+ }, {
978
+ type: string;
979
+ id: string;
980
+ attributes?: Record<string, unknown> | undefined;
981
+ relationships?: Record<string, unknown> | undefined;
982
+ links?: Record<string, string> | undefined;
983
+ meta?: Record<string, unknown> | undefined;
984
+ }>, "many">>;
985
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
986
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
987
+ }, "strip", z.ZodTypeAny, {
988
+ data: {
989
+ type: string;
990
+ id: string;
991
+ attributes: {
992
+ fileUrl: string;
993
+ fileSize: number;
994
+ fileName: string;
995
+ uploadedAt: string;
996
+ contentType?: string | undefined;
997
+ };
998
+ relationships?: Record<string, unknown> | undefined;
999
+ links?: Record<string, string> | undefined;
1000
+ meta?: Record<string, unknown> | undefined;
1001
+ };
1002
+ links?: Record<string, string> | undefined;
1003
+ meta?: Record<string, unknown> | undefined;
1004
+ included?: {
1005
+ type: string;
1006
+ id: string;
1007
+ attributes?: Record<string, unknown> | undefined;
1008
+ relationships?: Record<string, unknown> | undefined;
1009
+ links?: Record<string, string> | undefined;
1010
+ meta?: Record<string, unknown> | undefined;
1011
+ }[] | undefined;
1012
+ }, {
1013
+ data: {
1014
+ type: string;
1015
+ id: string;
1016
+ attributes: {
1017
+ fileUrl: string;
1018
+ fileSize: number;
1019
+ fileName: string;
1020
+ uploadedAt: string;
1021
+ contentType?: string | undefined;
1022
+ };
1023
+ relationships?: Record<string, unknown> | undefined;
1024
+ links?: Record<string, string> | undefined;
1025
+ meta?: Record<string, unknown> | undefined;
1026
+ };
1027
+ links?: Record<string, string> | undefined;
1028
+ meta?: Record<string, unknown> | undefined;
1029
+ included?: {
1030
+ type: string;
1031
+ id: string;
1032
+ attributes?: Record<string, unknown> | undefined;
1033
+ relationships?: Record<string, unknown> | undefined;
1034
+ links?: Record<string, string> | undefined;
1035
+ meta?: Record<string, unknown> | undefined;
1036
+ }[] | undefined;
1037
+ }>;
839
1038
  export type DocumentType = z.infer<typeof documentTypeSchema>;
840
1039
  export type RelatedEntityType = z.infer<typeof relatedEntityTypeSchema>;
841
1040
  export type RelatedEntity = z.infer<typeof relatedEntitySchema>;
@@ -847,4 +1046,7 @@ export type UpdateDocumentInput = z.infer<typeof updateDocumentSchema>;
847
1046
  export type DocumentResource = z.infer<typeof documentResourceSchema>;
848
1047
  export type DocumentResponse = z.infer<typeof documentResponseSchema>;
849
1048
  export type DocumentListResponse = z.infer<typeof documentListResponseSchema>;
1049
+ export type UploadedFileAttributes = z.infer<typeof uploadedFileAttributesSchema>;
1050
+ export type UploadedFileResource = z.infer<typeof uploadedFileResourceSchema>;
1051
+ export type UploadedFileResponse = z.infer<typeof uploadedFileResponseSchema>;
850
1052
  //# sourceMappingURL=documents.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"documents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/documents.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,kBAAkB,qGAQ7B,CAAC;AAGH,eAAO,MAAM,uBAAuB,2EAAyE,CAAC;AAG9G,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYX,CAAC;AAG3B,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;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CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.documentListResponseSchema = exports.documentResponseSchema = exports.documentResourceSchema = exports.updateDocumentSchema = exports.createDocumentSchema = exports.updateDocumentAttributesSchema = exports.createDocumentAttributesSchema = exports.documentAttributesSchema = exports.relatedEntitySchema = exports.relatedEntityTypeSchema = exports.documentTypeSchema = void 0;
3
+ exports.uploadedFileResponseSchema = exports.uploadedFileResourceSchema = exports.uploadedFileAttributesSchema = exports.documentListResponseSchema = exports.documentResponseSchema = exports.documentResourceSchema = exports.updateDocumentSchema = exports.createDocumentSchema = exports.updateDocumentAttributesSchema = exports.createDocumentAttributesSchema = exports.documentAttributesSchema = exports.relatedEntitySchema = exports.relatedEntityTypeSchema = exports.documentTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_schemas_1 = require("./common.schemas");
6
6
  /**
@@ -73,3 +73,12 @@ exports.documentResourceSchema = (0, common_schemas_1.createJsonApiResourceSchem
73
73
  // Document responses (JSON:API format)
74
74
  exports.documentResponseSchema = (0, common_schemas_1.jsonApiSingleResponseSchema)(exports.documentResourceSchema);
75
75
  exports.documentListResponseSchema = (0, common_schemas_1.jsonApiCollectionResponseSchema)(exports.documentResourceSchema);
76
+ exports.uploadedFileAttributesSchema = zod_1.z.object({
77
+ fileUrl: zod_1.z.string().url(),
78
+ fileSize: zod_1.z.number().int().positive(),
79
+ fileName: zod_1.z.string(),
80
+ contentType: zod_1.z.string().optional(),
81
+ uploadedAt: zod_1.z.string().datetime(),
82
+ });
83
+ exports.uploadedFileResourceSchema = (0, common_schemas_1.createJsonApiResourceSchema)('uploaded-files', exports.uploadedFileAttributesSchema);
84
+ exports.uploadedFileResponseSchema = (0, common_schemas_1.jsonApiSingleResponseSchema)(exports.uploadedFileResourceSchema);