@dakkitor/api-contracts 1.1.134 → 1.1.136

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const CronJobNameSchema: z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE"]>;
2
+ export declare const CronJobNameSchema: z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE", "RECONCILE_DAILY_METRICS"]>;
3
3
  export declare const CronExecutionStatusSchema: z.ZodEnum<["SUCCESS", "FAILED", "PARTIAL"]>;
4
4
  export declare const CronExecutionHistorySchema: z.ZodObject<{
5
5
  id: z.ZodString;
@@ -14,8 +14,8 @@ export declare const CronExecutionHistorySchema: z.ZodObject<{
14
14
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
- status: string;
18
17
  jobName: string;
18
+ status: string;
19
19
  startedAt: string;
20
20
  completedAt?: string | null | undefined;
21
21
  durationMs?: number | null | undefined;
@@ -25,8 +25,8 @@ export declare const CronExecutionHistorySchema: z.ZodObject<{
25
25
  errorMessage?: string | null | undefined;
26
26
  }, {
27
27
  id: string;
28
- status: string;
29
28
  jobName: string;
29
+ status: string;
30
30
  startedAt: string | Date;
31
31
  completedAt?: string | Date | null | undefined;
32
32
  durationMs?: number | null | undefined;
@@ -161,30 +161,30 @@ export declare const CronExecutionFilterSchema: z.ZodObject<{
161
161
  limit: z.ZodDefault<z.ZodNumber>;
162
162
  page: z.ZodDefault<z.ZodNumber>;
163
163
  } & {
164
- jobNames: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE"]>, z.ZodArray<z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE"]>, "many">]>>, ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined, "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined>;
164
+ jobNames: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE", "RECONCILE_DAILY_METRICS"]>, z.ZodArray<z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE", "RECONCILE_DAILY_METRICS"]>, "many">]>>, ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS")[] | undefined, "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS")[] | undefined>;
165
165
  statuses: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["SUCCESS", "FAILED", "PARTIAL"]>, z.ZodArray<z.ZodEnum<["SUCCESS", "FAILED", "PARTIAL"]>, "many">]>>, ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined, "SUCCESS" | "FAILED" | "PARTIAL" | ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined>;
166
166
  startedAfter: z.ZodOptional<z.ZodString>;
167
167
  startedBefore: z.ZodOptional<z.ZodString>;
168
168
  sortBy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["startedAt", "completedAt", "durationMs", "jobName", "status", "createdAt"]>>>;
169
169
  sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
170
170
  }, "strip", z.ZodTypeAny, {
171
- page: number;
172
171
  limit: number;
173
- sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
174
- sortOrder?: "ASC" | "DESC" | undefined;
175
- jobNames?: ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
172
+ page: number;
173
+ jobNames?: ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS")[] | undefined;
176
174
  statuses?: ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
177
175
  startedAfter?: string | undefined;
178
176
  startedBefore?: string | undefined;
179
- }, {
180
- sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
177
+ sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
181
178
  sortOrder?: "ASC" | "DESC" | undefined;
182
- page?: number | undefined;
179
+ }, {
183
180
  limit?: number | undefined;
184
- jobNames?: "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
181
+ page?: number | undefined;
182
+ jobNames?: "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS")[] | undefined;
185
183
  statuses?: "SUCCESS" | "FAILED" | "PARTIAL" | ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
186
184
  startedAfter?: string | undefined;
187
185
  startedBefore?: string | undefined;
186
+ sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
187
+ sortOrder?: "ASC" | "DESC" | undefined;
188
188
  }>;
189
189
  export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
190
190
  items: z.ZodArray<z.ZodObject<{
@@ -200,8 +200,8 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
200
200
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
201
  }, "strip", z.ZodTypeAny, {
202
202
  id: string;
203
- status: string;
204
203
  jobName: string;
204
+ status: string;
205
205
  startedAt: string;
206
206
  completedAt?: string | null | undefined;
207
207
  durationMs?: number | null | undefined;
@@ -211,8 +211,8 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
211
211
  errorMessage?: string | null | undefined;
212
212
  }, {
213
213
  id: string;
214
- status: string;
215
214
  jobName: string;
215
+ status: string;
216
216
  startedAt: string | Date;
217
217
  completedAt?: string | Date | null | undefined;
218
218
  durationMs?: number | null | undefined;
@@ -230,8 +230,8 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
230
230
  limit: number;
231
231
  items: {
232
232
  id: string;
233
- status: string;
234
233
  jobName: string;
234
+ status: string;
235
235
  startedAt: string;
236
236
  completedAt?: string | null | undefined;
237
237
  durationMs?: number | null | undefined;
@@ -248,8 +248,8 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
248
248
  limit: number;
249
249
  items: {
250
250
  id: string;
251
- status: string;
252
251
  jobName: string;
252
+ status: string;
253
253
  startedAt: string | Date;
254
254
  completedAt?: string | Date | null | undefined;
255
255
  durationMs?: number | null | undefined;
@@ -387,38 +387,38 @@ export type PaginatedCronExecutionHistory = z.infer<typeof PaginatedCronExecutio
387
387
  export type PaginatedCronJobHealth = z.infer<typeof PaginatedCronJobHealthSchema>;
388
388
  export declare const cronExecutionsContract: {
389
389
  findAll: {
390
+ metadata: {
391
+ tags: string[];
392
+ };
390
393
  query: z.ZodObject<{
391
394
  limit: z.ZodDefault<z.ZodNumber>;
392
395
  page: z.ZodDefault<z.ZodNumber>;
393
396
  } & {
394
- jobNames: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE"]>, z.ZodArray<z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE"]>, "many">]>>, ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined, "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined>;
397
+ jobNames: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE", "RECONCILE_DAILY_METRICS"]>, z.ZodArray<z.ZodEnum<["GENERATE_DAILY_ACTIVES", "CLEANUP_ORPHANED_FILES", "CLEANUP_ARCHIVED_FILES", "UPDATE_AGENT_PERFORMANCE", "RECONCILE_DAILY_METRICS"]>, "many">]>>, ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS")[] | undefined, "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS")[] | undefined>;
395
398
  statuses: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodEnum<["SUCCESS", "FAILED", "PARTIAL"]>, z.ZodArray<z.ZodEnum<["SUCCESS", "FAILED", "PARTIAL"]>, "many">]>>, ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined, "SUCCESS" | "FAILED" | "PARTIAL" | ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined>;
396
399
  startedAfter: z.ZodOptional<z.ZodString>;
397
400
  startedBefore: z.ZodOptional<z.ZodString>;
398
401
  sortBy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["startedAt", "completedAt", "durationMs", "jobName", "status", "createdAt"]>>>;
399
402
  sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
400
403
  }, "strip", z.ZodTypeAny, {
401
- page: number;
402
404
  limit: number;
403
- sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
404
- sortOrder?: "ASC" | "DESC" | undefined;
405
- jobNames?: ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
405
+ page: number;
406
+ jobNames?: ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS")[] | undefined;
406
407
  statuses?: ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
407
408
  startedAfter?: string | undefined;
408
409
  startedBefore?: string | undefined;
409
- }, {
410
- sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
410
+ sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
411
411
  sortOrder?: "ASC" | "DESC" | undefined;
412
- page?: number | undefined;
412
+ }, {
413
413
  limit?: number | undefined;
414
- jobNames?: "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
414
+ page?: number | undefined;
415
+ jobNames?: "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | "RECONCILE_DAILY_METRICS")[] | undefined;
415
416
  statuses?: "SUCCESS" | "FAILED" | "PARTIAL" | ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
416
417
  startedAfter?: string | undefined;
417
418
  startedBefore?: string | undefined;
419
+ sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
420
+ sortOrder?: "ASC" | "DESC" | undefined;
418
421
  }>;
419
- metadata: {
420
- tags: string[];
421
- };
422
422
  summary: "List all cron executions";
423
423
  method: "GET";
424
424
  path: "/v2/cron-executions";
@@ -512,8 +512,8 @@ export declare const cronExecutionsContract: {
512
512
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
513
  }, "strip", z.ZodTypeAny, {
514
514
  id: string;
515
- status: string;
516
515
  jobName: string;
516
+ status: string;
517
517
  startedAt: string;
518
518
  completedAt?: string | null | undefined;
519
519
  durationMs?: number | null | undefined;
@@ -523,8 +523,8 @@ export declare const cronExecutionsContract: {
523
523
  errorMessage?: string | null | undefined;
524
524
  }, {
525
525
  id: string;
526
- status: string;
527
526
  jobName: string;
527
+ status: string;
528
528
  startedAt: string | Date;
529
529
  completedAt?: string | Date | null | undefined;
530
530
  durationMs?: number | null | undefined;
@@ -542,8 +542,8 @@ export declare const cronExecutionsContract: {
542
542
  limit: number;
543
543
  items: {
544
544
  id: string;
545
- status: string;
546
545
  jobName: string;
546
+ status: string;
547
547
  startedAt: string;
548
548
  completedAt?: string | null | undefined;
549
549
  durationMs?: number | null | undefined;
@@ -560,8 +560,8 @@ export declare const cronExecutionsContract: {
560
560
  limit: number;
561
561
  items: {
562
562
  id: string;
563
- status: string;
564
563
  jobName: string;
564
+ status: string;
565
565
  startedAt: string | Date;
566
566
  completedAt?: string | Date | null | undefined;
567
567
  durationMs?: number | null | undefined;
@@ -735,19 +735,19 @@ export declare const cronExecutionsContract: {
735
735
  };
736
736
  };
737
737
  getHealthStatus: {
738
+ metadata: {
739
+ tags: string[];
740
+ };
738
741
  query: z.ZodObject<{
739
742
  limit: z.ZodDefault<z.ZodNumber>;
740
743
  page: z.ZodDefault<z.ZodNumber>;
741
744
  }, "strip", z.ZodTypeAny, {
742
- page: number;
743
745
  limit: number;
746
+ page: number;
744
747
  }, {
745
- page?: number | undefined;
746
748
  limit?: number | undefined;
749
+ page?: number | undefined;
747
750
  }>;
748
- metadata: {
749
- tags: string[];
750
- };
751
751
  summary: "Get health status for all cron jobs";
752
752
  method: "GET";
753
753
  path: "/v2/cron-executions/health";
@@ -1070,8 +1070,8 @@ export declare const cronExecutionsContract: {
1070
1070
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1071
1071
  }, "strip", z.ZodTypeAny, {
1072
1072
  id: string;
1073
- status: string;
1074
1073
  jobName: string;
1074
+ status: string;
1075
1075
  startedAt: string;
1076
1076
  completedAt?: string | null | undefined;
1077
1077
  durationMs?: number | null | undefined;
@@ -1081,8 +1081,8 @@ export declare const cronExecutionsContract: {
1081
1081
  errorMessage?: string | null | undefined;
1082
1082
  }, {
1083
1083
  id: string;
1084
- status: string;
1085
1084
  jobName: string;
1085
+ status: string;
1086
1086
  startedAt: string | Date;
1087
1087
  completedAt?: string | Date | null | undefined;
1088
1088
  durationMs?: number | null | undefined;
@@ -1639,5 +1639,129 @@ export declare const cronExecutionsContract: {
1639
1639
  }>;
1640
1640
  };
1641
1641
  };
1642
+ triggerReconcileDailyMetrics: {
1643
+ metadata: {
1644
+ tags: string[];
1645
+ };
1646
+ summary: "Trigger daily metrics reconciliation";
1647
+ method: "POST";
1648
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1649
+ path: "/v2/cron-executions/trigger/reconcile-daily-metrics";
1650
+ responses: {
1651
+ 400: z.ZodObject<{
1652
+ statusCode: z.ZodNumber;
1653
+ message: z.ZodString;
1654
+ code: z.ZodString;
1655
+ details: z.ZodOptional<z.ZodUnknown>;
1656
+ timestamp: z.ZodString;
1657
+ path: z.ZodString;
1658
+ correlationId: z.ZodOptional<z.ZodString>;
1659
+ }, "strip", z.ZodTypeAny, {
1660
+ code: string;
1661
+ path: string;
1662
+ message: string;
1663
+ statusCode: number;
1664
+ timestamp: string;
1665
+ details?: unknown;
1666
+ correlationId?: string | undefined;
1667
+ }, {
1668
+ code: string;
1669
+ path: string;
1670
+ message: string;
1671
+ statusCode: number;
1672
+ timestamp: string;
1673
+ details?: unknown;
1674
+ correlationId?: string | undefined;
1675
+ }>;
1676
+ 401: z.ZodObject<{
1677
+ statusCode: z.ZodNumber;
1678
+ message: z.ZodString;
1679
+ code: z.ZodString;
1680
+ details: z.ZodOptional<z.ZodUnknown>;
1681
+ timestamp: z.ZodString;
1682
+ path: z.ZodString;
1683
+ correlationId: z.ZodOptional<z.ZodString>;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ code: string;
1686
+ path: string;
1687
+ message: string;
1688
+ statusCode: number;
1689
+ timestamp: string;
1690
+ details?: unknown;
1691
+ correlationId?: string | undefined;
1692
+ }, {
1693
+ code: string;
1694
+ path: string;
1695
+ message: string;
1696
+ statusCode: number;
1697
+ timestamp: string;
1698
+ details?: unknown;
1699
+ correlationId?: string | undefined;
1700
+ }>;
1701
+ 500: z.ZodObject<{
1702
+ statusCode: z.ZodNumber;
1703
+ message: z.ZodString;
1704
+ code: z.ZodString;
1705
+ details: z.ZodOptional<z.ZodUnknown>;
1706
+ timestamp: z.ZodString;
1707
+ path: z.ZodString;
1708
+ correlationId: z.ZodOptional<z.ZodString>;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ code: string;
1711
+ path: string;
1712
+ message: string;
1713
+ statusCode: number;
1714
+ timestamp: string;
1715
+ details?: unknown;
1716
+ correlationId?: string | undefined;
1717
+ }, {
1718
+ code: string;
1719
+ path: string;
1720
+ message: string;
1721
+ statusCode: number;
1722
+ timestamp: string;
1723
+ details?: unknown;
1724
+ correlationId?: string | undefined;
1725
+ }>;
1726
+ 201: z.ZodObject<{
1727
+ success: z.ZodBoolean;
1728
+ message: z.ZodString;
1729
+ executionId: z.ZodString;
1730
+ }, "strip", z.ZodTypeAny, {
1731
+ message: string;
1732
+ success: boolean;
1733
+ executionId: string;
1734
+ }, {
1735
+ message: string;
1736
+ success: boolean;
1737
+ executionId: string;
1738
+ }>;
1739
+ 403: z.ZodObject<{
1740
+ statusCode: z.ZodNumber;
1741
+ message: z.ZodString;
1742
+ code: z.ZodString;
1743
+ details: z.ZodOptional<z.ZodUnknown>;
1744
+ timestamp: z.ZodString;
1745
+ path: z.ZodString;
1746
+ correlationId: z.ZodOptional<z.ZodString>;
1747
+ }, "strip", z.ZodTypeAny, {
1748
+ code: string;
1749
+ path: string;
1750
+ message: string;
1751
+ statusCode: number;
1752
+ timestamp: string;
1753
+ details?: unknown;
1754
+ correlationId?: string | undefined;
1755
+ }, {
1756
+ code: string;
1757
+ path: string;
1758
+ message: string;
1759
+ statusCode: number;
1760
+ timestamp: string;
1761
+ details?: unknown;
1762
+ correlationId?: string | undefined;
1763
+ }>;
1764
+ };
1765
+ };
1642
1766
  };
1643
1767
  //# sourceMappingURL=cron-executions.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cron-executions.contract.d.ts","sourceRoot":"","sources":["../../contracts/cron-executions/cron-executions.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,iBAAiB,uHAOM,CAAC;AAErC,eAAO,MAAM,yBAAyB,6CAEM,CAAC;AAE7C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCM,CAAC;AAE9C,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAiBM,CAAC;AAE5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;0BAWM,CAAC;AAEzC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeM,CAAC;AAEvC,eAAO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@@ exports.CronJobNameSchema = zod_1.z
14
14
  'CLEANUP_ORPHANED_FILES',
15
15
  'CLEANUP_ARCHIVED_FILES',
16
16
  'UPDATE_AGENT_PERFORMANCE',
17
+ 'RECONCILE_DAILY_METRICS',
17
18
  ])
18
19
  .openapi({ title: 'CronJobName' });
19
20
  exports.CronExecutionStatusSchema = zod_1.z
@@ -265,6 +266,19 @@ exports.cronExecutionsContract = c.router({
265
266
  tags: ['Internal - Cron Jobs'],
266
267
  },
267
268
  },
269
+ triggerReconcileDailyMetrics: {
270
+ method: 'POST',
271
+ path: '/cron-executions/trigger/reconcile-daily-metrics',
272
+ body: zod_1.z.object({}),
273
+ responses: {
274
+ 201: exports.CronExecutionResponseSchema,
275
+ 403: error_schemas_1.ErrorResponseSchema,
276
+ },
277
+ summary: 'Trigger daily metrics reconciliation',
278
+ metadata: {
279
+ tags: ['Internal - Cron Jobs'],
280
+ },
281
+ },
268
282
  }, {
269
283
  pathPrefix: '/v2',
270
284
  commonResponses: {