@proofhound/web-ui 0.1.8 → 0.1.10

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.
Files changed (159) hide show
  1. package/dist/components/navigation/link.d.ts +15 -0
  2. package/dist/components/navigation/link.d.ts.map +1 -0
  3. package/dist/components/navigation/link.js +23 -0
  4. package/dist/components/navigation/link.js.map +1 -0
  5. package/dist/contracts/index.d.ts +2 -0
  6. package/dist/contracts/index.d.ts.map +1 -1
  7. package/dist/contracts/index.js.map +1 -1
  8. package/dist/hooks/annotation.d.ts +37 -16
  9. package/dist/hooks/annotation.d.ts.map +1 -1
  10. package/dist/hooks/canary-release.d.ts +62 -37
  11. package/dist/hooks/canary-release.d.ts.map +1 -1
  12. package/dist/hooks/dataset.d.ts +101 -0
  13. package/dist/hooks/dataset.d.ts.map +1 -1
  14. package/dist/hooks/dataset.js +27 -0
  15. package/dist/hooks/dataset.js.map +1 -1
  16. package/dist/hooks/optimization.d.ts +1 -1
  17. package/dist/hooks/production-release.d.ts +8 -4
  18. package/dist/hooks/production-release.d.ts.map +1 -1
  19. package/dist/hooks/prompt.d.ts +149 -38
  20. package/dist/hooks/prompt.d.ts.map +1 -1
  21. package/dist/hooks/prompt.js +20 -0
  22. package/dist/hooks/prompt.js.map +1 -1
  23. package/dist/hooks/release-line.d.ts +2522 -72
  24. package/dist/hooks/release-line.d.ts.map +1 -1
  25. package/dist/hooks/release-line.js +125 -0
  26. package/dist/hooks/release-line.js.map +1 -1
  27. package/dist/hooks/run-result.d.ts +9 -6
  28. package/dist/hooks/run-result.d.ts.map +1 -1
  29. package/dist/hooks/run-result.js +2 -1
  30. package/dist/hooks/run-result.js.map +1 -1
  31. package/dist/hooks/use-router.d.ts +17 -0
  32. package/dist/hooks/use-router.d.ts.map +1 -0
  33. package/dist/hooks/use-router.js +30 -0
  34. package/dist/hooks/use-router.js.map +1 -0
  35. package/dist/i18n/index.d.ts +652 -160
  36. package/dist/i18n/index.d.ts.map +1 -1
  37. package/dist/i18n/index.js +652 -160
  38. package/dist/i18n/index.js.map +1 -1
  39. package/dist/lib/releases/release-line-model.d.ts +8 -2
  40. package/dist/lib/releases/release-line-model.d.ts.map +1 -1
  41. package/dist/lib/releases/release-line-model.js +66 -29
  42. package/dist/lib/releases/release-line-model.js.map +1 -1
  43. package/dist/providers/index.d.ts +1 -0
  44. package/dist/providers/index.d.ts.map +1 -1
  45. package/dist/providers/index.js +1 -0
  46. package/dist/providers/index.js.map +1 -1
  47. package/dist/providers/navigation-provider.d.ts +27 -0
  48. package/dist/providers/navigation-provider.d.ts.map +1 -0
  49. package/dist/providers/navigation-provider.js +17 -0
  50. package/dist/providers/navigation-provider.js.map +1 -0
  51. package/dist/providers/proofhound-web-provider.d.ts.map +1 -1
  52. package/dist/providers/proofhound-web-provider.js +2 -1
  53. package/dist/providers/proofhound-web-provider.js.map +1 -1
  54. package/dist/screens/annotations/annotation-detail-page.d.ts.map +1 -1
  55. package/dist/screens/annotations/annotation-detail-page.js +4 -3
  56. package/dist/screens/annotations/annotation-detail-page.js.map +1 -1
  57. package/dist/screens/annotations/annotation-new-page.d.ts.map +1 -1
  58. package/dist/screens/annotations/annotation-new-page.js +216 -51
  59. package/dist/screens/annotations/annotation-new-page.js.map +1 -1
  60. package/dist/screens/annotations/annotation-task-model.d.ts +3 -2
  61. package/dist/screens/annotations/annotation-task-model.d.ts.map +1 -1
  62. package/dist/screens/annotations/annotation-task-model.js +5 -4
  63. package/dist/screens/annotations/annotation-task-model.js.map +1 -1
  64. package/dist/screens/annotations/annotation-ui.d.ts.map +1 -1
  65. package/dist/screens/annotations/annotation-ui.js +9 -4
  66. package/dist/screens/annotations/annotation-ui.js.map +1 -1
  67. package/dist/screens/annotations/annotations-list-page.js +3 -3
  68. package/dist/screens/annotations/annotations-list-page.js.map +1 -1
  69. package/dist/screens/connectors/connector-detail-page.d.ts.map +1 -1
  70. package/dist/screens/connectors/connector-detail-page.js +8 -4
  71. package/dist/screens/connectors/connector-detail-page.js.map +1 -1
  72. package/dist/screens/connectors/connector-form-page.js +3 -3
  73. package/dist/screens/connectors/connector-form-page.js.map +1 -1
  74. package/dist/screens/connectors/connector-ui.d.ts +6 -0
  75. package/dist/screens/connectors/connector-ui.d.ts.map +1 -1
  76. package/dist/screens/connectors/connector-ui.js +7 -1
  77. package/dist/screens/connectors/connector-ui.js.map +1 -1
  78. package/dist/screens/connectors/connectors-list-page.d.ts.map +1 -1
  79. package/dist/screens/connectors/connectors-list-page.js +8 -7
  80. package/dist/screens/connectors/connectors-list-page.js.map +1 -1
  81. package/dist/screens/dashboard/dashboard-screen.d.ts.map +1 -1
  82. package/dist/screens/dashboard/dashboard-screen.js +29 -17
  83. package/dist/screens/dashboard/dashboard-screen.js.map +1 -1
  84. package/dist/screens/datasets/dataset-detail-page.js +1 -1
  85. package/dist/screens/datasets/dataset-detail-page.js.map +1 -1
  86. package/dist/screens/datasets/dataset-mappers.js +1 -1
  87. package/dist/screens/datasets/dataset-mappers.js.map +1 -1
  88. package/dist/screens/datasets/dataset-types.d.ts +1 -1
  89. package/dist/screens/datasets/dataset-types.d.ts.map +1 -1
  90. package/dist/screens/datasets/dataset-ui.d.ts +1 -1
  91. package/dist/screens/datasets/dataset-ui.d.ts.map +1 -1
  92. package/dist/screens/datasets/dataset-ui.js +2 -2
  93. package/dist/screens/datasets/dataset-ui.js.map +1 -1
  94. package/dist/screens/datasets/dataset-upload-page.js +2 -2
  95. package/dist/screens/datasets/dataset-upload-page.js.map +1 -1
  96. package/dist/screens/datasets/datasets-list-page.d.ts.map +1 -1
  97. package/dist/screens/datasets/datasets-list-page.js +37 -26
  98. package/dist/screens/datasets/datasets-list-page.js.map +1 -1
  99. package/dist/screens/experiments/experiment-detail-page.js +3 -3
  100. package/dist/screens/experiments/experiment-detail-page.js.map +1 -1
  101. package/dist/screens/experiments/experiment-new-page.js +2 -2
  102. package/dist/screens/experiments/experiment-new-page.js.map +1 -1
  103. package/dist/screens/experiments/experiments-list-page.d.ts.map +1 -1
  104. package/dist/screens/experiments/experiments-list-page.js +3 -2
  105. package/dist/screens/experiments/experiments-list-page.js.map +1 -1
  106. package/dist/screens/experiments/experiments-table.js +1 -1
  107. package/dist/screens/experiments/experiments-table.js.map +1 -1
  108. package/dist/screens/experiments/run-result-labels.d.ts.map +1 -1
  109. package/dist/screens/experiments/run-result-labels.js +3 -4
  110. package/dist/screens/experiments/run-result-labels.js.map +1 -1
  111. package/dist/screens/models/model-form-page.js +2 -2
  112. package/dist/screens/models/model-form-page.js.map +1 -1
  113. package/dist/screens/models/models-list-page.d.ts.map +1 -1
  114. package/dist/screens/models/models-list-page.js +3 -2
  115. package/dist/screens/models/models-list-page.js.map +1 -1
  116. package/dist/screens/optimizations/optimization-detail-page.js +2 -2
  117. package/dist/screens/optimizations/optimization-detail-page.js.map +1 -1
  118. package/dist/screens/optimizations/optimization-new-page.js +2 -2
  119. package/dist/screens/optimizations/optimization-new-page.js.map +1 -1
  120. package/dist/screens/optimizations/optimizations-list-page.d.ts.map +1 -1
  121. package/dist/screens/optimizations/optimizations-list-page.js +3 -2
  122. package/dist/screens/optimizations/optimizations-list-page.js.map +1 -1
  123. package/dist/screens/prompts/prompt-detail-page.d.ts.map +1 -1
  124. package/dist/screens/prompts/prompt-detail-page.js +10 -10
  125. package/dist/screens/prompts/prompt-detail-page.js.map +1 -1
  126. package/dist/screens/prompts/prompt-model.d.ts +5 -2
  127. package/dist/screens/prompts/prompt-model.d.ts.map +1 -1
  128. package/dist/screens/prompts/prompt-model.js +3 -1
  129. package/dist/screens/prompts/prompt-model.js.map +1 -1
  130. package/dist/screens/prompts/prompts-list-page.d.ts.map +1 -1
  131. package/dist/screens/prompts/prompts-list-page.js +46 -21
  132. package/dist/screens/prompts/prompts-list-page.js.map +1 -1
  133. package/dist/screens/quick-start/quick-start-screen.js +2 -2
  134. package/dist/screens/quick-start/quick-start-screen.js.map +1 -1
  135. package/dist/screens/releases/release-input-route-editor.d.ts +39 -0
  136. package/dist/screens/releases/release-input-route-editor.d.ts.map +1 -0
  137. package/dist/screens/releases/release-input-route-editor.js +355 -0
  138. package/dist/screens/releases/release-input-route-editor.js.map +1 -0
  139. package/dist/screens/releases/release-line-detail-page.d.ts +62 -0
  140. package/dist/screens/releases/release-line-detail-page.d.ts.map +1 -1
  141. package/dist/screens/releases/release-line-detail-page.js +1880 -325
  142. package/dist/screens/releases/release-line-detail-page.js.map +1 -1
  143. package/dist/screens/releases/release-line-ui.d.ts.map +1 -1
  144. package/dist/screens/releases/release-line-ui.js +55 -39
  145. package/dist/screens/releases/release-line-ui.js.map +1 -1
  146. package/dist/screens/releases/release-new-model.d.ts.map +1 -1
  147. package/dist/screens/releases/release-new-model.js +1 -6
  148. package/dist/screens/releases/release-new-model.js.map +1 -1
  149. package/dist/screens/releases/release-new-page.d.ts.map +1 -1
  150. package/dist/screens/releases/release-new-page.js +104 -68
  151. package/dist/screens/releases/release-new-page.js.map +1 -1
  152. package/dist/screens/releases/release-topology-canvas.d.ts +11 -2
  153. package/dist/screens/releases/release-topology-canvas.d.ts.map +1 -1
  154. package/dist/screens/releases/release-topology-canvas.js +1015 -174
  155. package/dist/screens/releases/release-topology-canvas.js.map +1 -1
  156. package/dist/screens/releases/releases-list-page.d.ts.map +1 -1
  157. package/dist/screens/releases/releases-list-page.js +82 -33
  158. package/dist/screens/releases/releases-list-page.js.map +1 -1
  159. package/package.json +5 -4
@@ -1,4 +1,4 @@
1
- import type { UpdateReleaseLineRunConfigInputDto, UpdateReleaseLineTrafficRatioInputDto } from '@proofhound/shared';
1
+ import type { ArchiveReleaseLineInputDto, DeleteReleaseLineInputDto, RestoreReleaseLineHistoryInputDto, StartReleaseLineInputDto, StopReleaseLineInputDto, UnarchiveReleaseLineInputDto, UpdateReleaseLineInputRouteInputDto, UpdateReleaseLineOutputRouteInputDto, UpdateReleaseLineRunConfigInputDto, UpdateReleaseLineTrafficRatioInputDto } from '@proofhound/shared';
2
2
  import type { AutoRefreshInterval } from './use-auto-refresh';
3
3
  export declare function useReleaseLineList(projectId: string, enabled?: boolean): {
4
4
  data: import("../lib").ReleaseLineView[];
@@ -18,20 +18,23 @@ export declare function useReleaseLineList(projectId: string, enabled?: boolean)
18
18
  inputConnectorName: string | null;
19
19
  inputConnectorType: string | null;
20
20
  inputConnectorSnapshot: Record<string, unknown>;
21
- status: "production" | "canary" | "archived" | "stopped" | "production_with_canary";
21
+ status: "archived" | "running" | "stopped";
22
22
  currentProductionEventId: string | null;
23
23
  activeCanaryEventId: string | null;
24
24
  currentProductionEvent: {
25
25
  id: string;
26
26
  projectId: string;
27
27
  releaseLineId: string;
28
- releaseVariantId: string | null;
29
- releaseVariantNumber: number | null;
30
- releaseVariantLabel: string | null;
28
+ releaseVersionId: string | null;
29
+ releaseVersionKind: "production" | "candidate" | null;
30
+ releaseVersionLabel: string | null;
31
+ releaseVersionProductionNumber: number | null;
32
+ releaseVersionTargetProductionNumber: number | null;
33
+ releaseVersionCandidateNumber: number | null;
31
34
  annotationTaskId: string | null;
32
35
  laneType: "production" | "canary";
33
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
34
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
36
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
37
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
35
38
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
36
39
  sourceEventId: string | null;
37
40
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -68,7 +71,8 @@ export declare function useReleaseLineList(projectId: string, enabled?: boolean)
68
71
  variableMapping: unknown;
69
72
  outputMapping: unknown;
70
73
  filterRules: unknown;
71
- recordMode: "all" | "correct_only";
74
+ recordMode: "all" | "selected_categories" | "correct_only";
75
+ recordCategories: string[];
72
76
  externalIdField: string | null;
73
77
  retentionDays: number | null;
74
78
  sourceExperimentId: string | null;
@@ -91,13 +95,16 @@ export declare function useReleaseLineList(projectId: string, enabled?: boolean)
91
95
  id: string;
92
96
  projectId: string;
93
97
  releaseLineId: string;
94
- releaseVariantId: string | null;
95
- releaseVariantNumber: number | null;
96
- releaseVariantLabel: string | null;
98
+ releaseVersionId: string | null;
99
+ releaseVersionKind: "production" | "candidate" | null;
100
+ releaseVersionLabel: string | null;
101
+ releaseVersionProductionNumber: number | null;
102
+ releaseVersionTargetProductionNumber: number | null;
103
+ releaseVersionCandidateNumber: number | null;
97
104
  annotationTaskId: string | null;
98
105
  laneType: "production" | "canary";
99
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
100
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
106
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
107
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
101
108
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
102
109
  sourceEventId: string | null;
103
110
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -134,7 +141,8 @@ export declare function useReleaseLineList(projectId: string, enabled?: boolean)
134
141
  variableMapping: unknown;
135
142
  outputMapping: unknown;
136
143
  filterRules: unknown;
137
- recordMode: "all" | "correct_only";
144
+ recordMode: "all" | "selected_categories" | "correct_only";
145
+ recordCategories: string[];
138
146
  externalIdField: string | null;
139
147
  retentionDays: number | null;
140
148
  sourceExperimentId: string | null;
@@ -153,11 +161,15 @@ export declare function useReleaseLineList(projectId: string, enabled?: boolean)
153
161
  createdAt: string;
154
162
  updatedAt: string;
155
163
  } | null;
156
- variants: {
164
+ versions: {
157
165
  id: string;
158
166
  projectId: string;
159
167
  releaseLineId: string;
160
- variantNumber: number;
168
+ kind: "production" | "candidate";
169
+ productionVersionNumber: number | null;
170
+ targetProductionVersionNumber: number;
171
+ candidateNumber: number | null;
172
+ promotedFromReleaseVersionId: string | null;
161
173
  label: string;
162
174
  promptId: string | null;
163
175
  promptName: string;
@@ -183,13 +195,16 @@ export declare function useReleaseLineList(projectId: string, enabled?: boolean)
183
195
  id: string;
184
196
  projectId: string;
185
197
  releaseLineId: string;
186
- releaseVariantId: string | null;
187
- releaseVariantNumber: number | null;
188
- releaseVariantLabel: string | null;
198
+ releaseVersionId: string | null;
199
+ releaseVersionKind: "production" | "candidate" | null;
200
+ releaseVersionLabel: string | null;
201
+ releaseVersionProductionNumber: number | null;
202
+ releaseVersionTargetProductionNumber: number | null;
203
+ releaseVersionCandidateNumber: number | null;
189
204
  annotationTaskId: string | null;
190
205
  laneType: "production" | "canary";
191
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
192
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
206
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
207
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
193
208
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
194
209
  sourceEventId: string | null;
195
210
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -226,7 +241,8 @@ export declare function useReleaseLineList(projectId: string, enabled?: boolean)
226
241
  variableMapping: unknown;
227
242
  outputMapping: unknown;
228
243
  filterRules: unknown;
229
- recordMode: "all" | "correct_only";
244
+ recordMode: "all" | "selected_categories" | "correct_only";
245
+ recordCategories: string[];
230
246
  externalIdField: string | null;
231
247
  retentionDays: number | null;
232
248
  sourceExperimentId: string | null;
@@ -258,13 +274,16 @@ export declare function useReleaseLineEvents(projectId: string, releaseLineId: s
258
274
  id: string;
259
275
  projectId: string;
260
276
  releaseLineId: string;
261
- releaseVariantId: string | null;
262
- releaseVariantNumber: number | null;
263
- releaseVariantLabel: string | null;
277
+ releaseVersionId: string | null;
278
+ releaseVersionKind: "production" | "candidate" | null;
279
+ releaseVersionLabel: string | null;
280
+ releaseVersionProductionNumber: number | null;
281
+ releaseVersionTargetProductionNumber: number | null;
282
+ releaseVersionCandidateNumber: number | null;
264
283
  annotationTaskId: string | null;
265
284
  laneType: "production" | "canary";
266
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
267
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
285
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
286
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
268
287
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
269
288
  sourceEventId: string | null;
270
289
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -301,7 +320,8 @@ export declare function useReleaseLineEvents(projectId: string, releaseLineId: s
301
320
  variableMapping: unknown;
302
321
  outputMapping: unknown;
303
322
  filterRules: unknown;
304
- recordMode: "all" | "correct_only";
323
+ recordMode: "all" | "selected_categories" | "correct_only";
324
+ recordCategories: string[];
305
325
  externalIdField: string | null;
306
326
  retentionDays: number | null;
307
327
  sourceExperimentId: string | null;
@@ -322,6 +342,36 @@ export declare function useReleaseLineEvents(projectId: string, releaseLineId: s
322
342
  }[];
323
343
  total: number;
324
344
  }, Error>;
345
+ export declare function useReleaseLineDeleteImpact(projectId: string, releaseLineId: string): import("@tanstack/react-query").UseQueryResult<{
346
+ releaseLineId: string;
347
+ lineName: string;
348
+ events: {
349
+ id: string;
350
+ kind: "version" | "event" | "annotation_task";
351
+ name: string | null;
352
+ status: string | null;
353
+ detail: string | null;
354
+ createdAt: string | null;
355
+ }[];
356
+ versions: {
357
+ id: string;
358
+ kind: "version" | "event" | "annotation_task";
359
+ name: string | null;
360
+ status: string | null;
361
+ detail: string | null;
362
+ createdAt: string | null;
363
+ }[];
364
+ annotationTasks: {
365
+ id: string;
366
+ kind: "version" | "event" | "annotation_task";
367
+ name: string | null;
368
+ status: string | null;
369
+ detail: string | null;
370
+ createdAt: string | null;
371
+ }[];
372
+ runResults: number;
373
+ total: number;
374
+ }, Error>;
325
375
  export declare function useUpdateReleaseLineTrafficRatio(projectId: string): import("@tanstack/react-query").UseMutationResult<{
326
376
  id: string;
327
377
  projectId: string;
@@ -334,20 +384,23 @@ export declare function useUpdateReleaseLineTrafficRatio(projectId: string): imp
334
384
  inputConnectorName: string | null;
335
385
  inputConnectorType: string | null;
336
386
  inputConnectorSnapshot: Record<string, unknown>;
337
- status: "production" | "canary" | "archived" | "stopped" | "production_with_canary";
387
+ status: "archived" | "running" | "stopped";
338
388
  currentProductionEventId: string | null;
339
389
  activeCanaryEventId: string | null;
340
390
  currentProductionEvent: {
341
391
  id: string;
342
392
  projectId: string;
343
393
  releaseLineId: string;
344
- releaseVariantId: string | null;
345
- releaseVariantNumber: number | null;
346
- releaseVariantLabel: string | null;
394
+ releaseVersionId: string | null;
395
+ releaseVersionKind: "production" | "candidate" | null;
396
+ releaseVersionLabel: string | null;
397
+ releaseVersionProductionNumber: number | null;
398
+ releaseVersionTargetProductionNumber: number | null;
399
+ releaseVersionCandidateNumber: number | null;
347
400
  annotationTaskId: string | null;
348
401
  laneType: "production" | "canary";
349
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
350
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
402
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
403
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
351
404
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
352
405
  sourceEventId: string | null;
353
406
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -384,7 +437,8 @@ export declare function useUpdateReleaseLineTrafficRatio(projectId: string): imp
384
437
  variableMapping: unknown;
385
438
  outputMapping: unknown;
386
439
  filterRules: unknown;
387
- recordMode: "all" | "correct_only";
440
+ recordMode: "all" | "selected_categories" | "correct_only";
441
+ recordCategories: string[];
388
442
  externalIdField: string | null;
389
443
  retentionDays: number | null;
390
444
  sourceExperimentId: string | null;
@@ -407,13 +461,16 @@ export declare function useUpdateReleaseLineTrafficRatio(projectId: string): imp
407
461
  id: string;
408
462
  projectId: string;
409
463
  releaseLineId: string;
410
- releaseVariantId: string | null;
411
- releaseVariantNumber: number | null;
412
- releaseVariantLabel: string | null;
464
+ releaseVersionId: string | null;
465
+ releaseVersionKind: "production" | "candidate" | null;
466
+ releaseVersionLabel: string | null;
467
+ releaseVersionProductionNumber: number | null;
468
+ releaseVersionTargetProductionNumber: number | null;
469
+ releaseVersionCandidateNumber: number | null;
413
470
  annotationTaskId: string | null;
414
471
  laneType: "production" | "canary";
415
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
416
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
472
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
473
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
417
474
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
418
475
  sourceEventId: string | null;
419
476
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -450,7 +507,8 @@ export declare function useUpdateReleaseLineTrafficRatio(projectId: string): imp
450
507
  variableMapping: unknown;
451
508
  outputMapping: unknown;
452
509
  filterRules: unknown;
453
- recordMode: "all" | "correct_only";
510
+ recordMode: "all" | "selected_categories" | "correct_only";
511
+ recordCategories: string[];
454
512
  externalIdField: string | null;
455
513
  retentionDays: number | null;
456
514
  sourceExperimentId: string | null;
@@ -469,11 +527,15 @@ export declare function useUpdateReleaseLineTrafficRatio(projectId: string): imp
469
527
  createdAt: string;
470
528
  updatedAt: string;
471
529
  } | null;
472
- variants: {
530
+ versions: {
473
531
  id: string;
474
532
  projectId: string;
475
533
  releaseLineId: string;
476
- variantNumber: number;
534
+ kind: "production" | "candidate";
535
+ productionVersionNumber: number | null;
536
+ targetProductionVersionNumber: number;
537
+ candidateNumber: number | null;
538
+ promotedFromReleaseVersionId: string | null;
477
539
  label: string;
478
540
  promptId: string | null;
479
541
  promptName: string;
@@ -499,13 +561,16 @@ export declare function useUpdateReleaseLineTrafficRatio(projectId: string): imp
499
561
  id: string;
500
562
  projectId: string;
501
563
  releaseLineId: string;
502
- releaseVariantId: string | null;
503
- releaseVariantNumber: number | null;
504
- releaseVariantLabel: string | null;
564
+ releaseVersionId: string | null;
565
+ releaseVersionKind: "production" | "candidate" | null;
566
+ releaseVersionLabel: string | null;
567
+ releaseVersionProductionNumber: number | null;
568
+ releaseVersionTargetProductionNumber: number | null;
569
+ releaseVersionCandidateNumber: number | null;
505
570
  annotationTaskId: string | null;
506
571
  laneType: "production" | "canary";
507
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
508
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
572
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
573
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
509
574
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
510
575
  sourceEventId: string | null;
511
576
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -542,7 +607,8 @@ export declare function useUpdateReleaseLineTrafficRatio(projectId: string): imp
542
607
  variableMapping: unknown;
543
608
  outputMapping: unknown;
544
609
  filterRules: unknown;
545
- recordMode: "all" | "correct_only";
610
+ recordMode: "all" | "selected_categories" | "correct_only";
611
+ recordCategories: string[];
546
612
  externalIdField: string | null;
547
613
  retentionDays: number | null;
548
614
  sourceExperimentId: string | null;
@@ -569,7 +635,267 @@ export declare function useUpdateReleaseLineTrafficRatio(projectId: string): imp
569
635
  releaseLineId: string;
570
636
  body: UpdateReleaseLineTrafficRatioInputDto;
571
637
  }, unknown>;
572
- export declare function useUpdateReleaseLineRunConfig(projectId: string): import("@tanstack/react-query").UseMutationResult<{
638
+ export declare function usePromoteReleaseLineCanary(projectId: string): import("@tanstack/react-query").UseMutationResult<{
639
+ id: string;
640
+ projectId: string;
641
+ name: string;
642
+ description: string | null;
643
+ promptId: string | null;
644
+ promptName: string;
645
+ promptSnapshot: Record<string, unknown>;
646
+ inputConnectorId: string | null;
647
+ inputConnectorName: string | null;
648
+ inputConnectorType: string | null;
649
+ inputConnectorSnapshot: Record<string, unknown>;
650
+ status: "archived" | "running" | "stopped";
651
+ currentProductionEventId: string | null;
652
+ activeCanaryEventId: string | null;
653
+ currentProductionEvent: {
654
+ id: string;
655
+ projectId: string;
656
+ releaseLineId: string;
657
+ releaseVersionId: string | null;
658
+ releaseVersionKind: "production" | "candidate" | null;
659
+ releaseVersionLabel: string | null;
660
+ releaseVersionProductionNumber: number | null;
661
+ releaseVersionTargetProductionNumber: number | null;
662
+ releaseVersionCandidateNumber: number | null;
663
+ annotationTaskId: string | null;
664
+ laneType: "production" | "canary";
665
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
666
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
667
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
668
+ sourceEventId: string | null;
669
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
670
+ sourceLegacyId: string | null;
671
+ supersedesEventId: string | null;
672
+ rollbackTargetEventId: string | null;
673
+ legacySource: "canary_release" | "production_release_event" | null;
674
+ legacySourceId: string | null;
675
+ promptId: string | null;
676
+ promptName: string;
677
+ promptVersionId: string | null;
678
+ promptVersionNumber: number | null;
679
+ promptVersionLabel: string | null;
680
+ promptSnapshot: Record<string, unknown>;
681
+ promptVersionSnapshot: Record<string, unknown>;
682
+ modelId: string | null;
683
+ modelName: string | null;
684
+ modelProvider: string | null;
685
+ modelSnapshot: Record<string, unknown>;
686
+ inputConnectorId: string | null;
687
+ inputConnectorName: string | null;
688
+ inputConnectorType: string | null;
689
+ inputConnectorSnapshot: Record<string, unknown>;
690
+ outputConnectorIds: string[];
691
+ outputConnectors: {
692
+ id: string;
693
+ name: string;
694
+ type: string;
695
+ }[];
696
+ outputConnectorSnapshots: Record<string, unknown>[];
697
+ trafficMode: "split" | "dual_run" | null;
698
+ trafficRatio: number | null;
699
+ runConfig: Record<string, unknown>;
700
+ variableMapping: unknown;
701
+ outputMapping: unknown;
702
+ filterRules: unknown;
703
+ recordMode: "all" | "selected_categories" | "correct_only";
704
+ recordCategories: string[];
705
+ externalIdField: string | null;
706
+ retentionDays: number | null;
707
+ sourceExperimentId: string | null;
708
+ submitReason: string;
709
+ metrics: Record<string, unknown> | null;
710
+ totalReceived: number;
711
+ totalProcessed: number;
712
+ totalFiltered: number;
713
+ totalCorrect: number;
714
+ totalErrors: number;
715
+ controlState: string | null;
716
+ controlStatePayload: Record<string, unknown> | null;
717
+ startedAt: string | null;
718
+ finishedAt: string | null;
719
+ createdBy: string;
720
+ createdAt: string;
721
+ updatedAt: string;
722
+ } | null;
723
+ activeCanaryEvent: {
724
+ id: string;
725
+ projectId: string;
726
+ releaseLineId: string;
727
+ releaseVersionId: string | null;
728
+ releaseVersionKind: "production" | "candidate" | null;
729
+ releaseVersionLabel: string | null;
730
+ releaseVersionProductionNumber: number | null;
731
+ releaseVersionTargetProductionNumber: number | null;
732
+ releaseVersionCandidateNumber: number | null;
733
+ annotationTaskId: string | null;
734
+ laneType: "production" | "canary";
735
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
736
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
737
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
738
+ sourceEventId: string | null;
739
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
740
+ sourceLegacyId: string | null;
741
+ supersedesEventId: string | null;
742
+ rollbackTargetEventId: string | null;
743
+ legacySource: "canary_release" | "production_release_event" | null;
744
+ legacySourceId: string | null;
745
+ promptId: string | null;
746
+ promptName: string;
747
+ promptVersionId: string | null;
748
+ promptVersionNumber: number | null;
749
+ promptVersionLabel: string | null;
750
+ promptSnapshot: Record<string, unknown>;
751
+ promptVersionSnapshot: Record<string, unknown>;
752
+ modelId: string | null;
753
+ modelName: string | null;
754
+ modelProvider: string | null;
755
+ modelSnapshot: Record<string, unknown>;
756
+ inputConnectorId: string | null;
757
+ inputConnectorName: string | null;
758
+ inputConnectorType: string | null;
759
+ inputConnectorSnapshot: Record<string, unknown>;
760
+ outputConnectorIds: string[];
761
+ outputConnectors: {
762
+ id: string;
763
+ name: string;
764
+ type: string;
765
+ }[];
766
+ outputConnectorSnapshots: Record<string, unknown>[];
767
+ trafficMode: "split" | "dual_run" | null;
768
+ trafficRatio: number | null;
769
+ runConfig: Record<string, unknown>;
770
+ variableMapping: unknown;
771
+ outputMapping: unknown;
772
+ filterRules: unknown;
773
+ recordMode: "all" | "selected_categories" | "correct_only";
774
+ recordCategories: string[];
775
+ externalIdField: string | null;
776
+ retentionDays: number | null;
777
+ sourceExperimentId: string | null;
778
+ submitReason: string;
779
+ metrics: Record<string, unknown> | null;
780
+ totalReceived: number;
781
+ totalProcessed: number;
782
+ totalFiltered: number;
783
+ totalCorrect: number;
784
+ totalErrors: number;
785
+ controlState: string | null;
786
+ controlStatePayload: Record<string, unknown> | null;
787
+ startedAt: string | null;
788
+ finishedAt: string | null;
789
+ createdBy: string;
790
+ createdAt: string;
791
+ updatedAt: string;
792
+ } | null;
793
+ versions: {
794
+ id: string;
795
+ projectId: string;
796
+ releaseLineId: string;
797
+ kind: "production" | "candidate";
798
+ productionVersionNumber: number | null;
799
+ targetProductionVersionNumber: number;
800
+ candidateNumber: number | null;
801
+ promotedFromReleaseVersionId: string | null;
802
+ label: string;
803
+ promptId: string | null;
804
+ promptName: string;
805
+ promptVersionId: string;
806
+ promptVersionNumber: number | null;
807
+ promptVersionLabel: string | null;
808
+ promptSnapshot: Record<string, unknown>;
809
+ promptVersionSnapshot: Record<string, unknown>;
810
+ modelId: string;
811
+ modelName: string | null;
812
+ modelProvider: string | null;
813
+ modelSnapshot: Record<string, unknown>;
814
+ createdBy: string;
815
+ createdAt: string;
816
+ updatedAt: string;
817
+ }[];
818
+ outputConnectors: {
819
+ id: string;
820
+ name: string;
821
+ type: string;
822
+ }[];
823
+ latestEvent: {
824
+ id: string;
825
+ projectId: string;
826
+ releaseLineId: string;
827
+ releaseVersionId: string | null;
828
+ releaseVersionKind: "production" | "candidate" | null;
829
+ releaseVersionLabel: string | null;
830
+ releaseVersionProductionNumber: number | null;
831
+ releaseVersionTargetProductionNumber: number | null;
832
+ releaseVersionCandidateNumber: number | null;
833
+ annotationTaskId: string | null;
834
+ laneType: "production" | "canary";
835
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
836
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
837
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
838
+ sourceEventId: string | null;
839
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
840
+ sourceLegacyId: string | null;
841
+ supersedesEventId: string | null;
842
+ rollbackTargetEventId: string | null;
843
+ legacySource: "canary_release" | "production_release_event" | null;
844
+ legacySourceId: string | null;
845
+ promptId: string | null;
846
+ promptName: string;
847
+ promptVersionId: string | null;
848
+ promptVersionNumber: number | null;
849
+ promptVersionLabel: string | null;
850
+ promptSnapshot: Record<string, unknown>;
851
+ promptVersionSnapshot: Record<string, unknown>;
852
+ modelId: string | null;
853
+ modelName: string | null;
854
+ modelProvider: string | null;
855
+ modelSnapshot: Record<string, unknown>;
856
+ inputConnectorId: string | null;
857
+ inputConnectorName: string | null;
858
+ inputConnectorType: string | null;
859
+ inputConnectorSnapshot: Record<string, unknown>;
860
+ outputConnectorIds: string[];
861
+ outputConnectors: {
862
+ id: string;
863
+ name: string;
864
+ type: string;
865
+ }[];
866
+ outputConnectorSnapshots: Record<string, unknown>[];
867
+ trafficMode: "split" | "dual_run" | null;
868
+ trafficRatio: number | null;
869
+ runConfig: Record<string, unknown>;
870
+ variableMapping: unknown;
871
+ outputMapping: unknown;
872
+ filterRules: unknown;
873
+ recordMode: "all" | "selected_categories" | "correct_only";
874
+ recordCategories: string[];
875
+ externalIdField: string | null;
876
+ retentionDays: number | null;
877
+ sourceExperimentId: string | null;
878
+ submitReason: string;
879
+ metrics: Record<string, unknown> | null;
880
+ totalReceived: number;
881
+ totalProcessed: number;
882
+ totalFiltered: number;
883
+ totalCorrect: number;
884
+ totalErrors: number;
885
+ controlState: string | null;
886
+ controlStatePayload: Record<string, unknown> | null;
887
+ startedAt: string | null;
888
+ finishedAt: string | null;
889
+ createdBy: string;
890
+ createdAt: string;
891
+ updatedAt: string;
892
+ } | null;
893
+ createdBy: string;
894
+ createdAt: string;
895
+ updatedAt: string;
896
+ archivedAt: string | null;
897
+ }, Error, string, unknown>;
898
+ export declare function useStopReleaseLine(projectId: string): import("@tanstack/react-query").UseMutationResult<{
573
899
  id: string;
574
900
  projectId: string;
575
901
  name: string;
@@ -581,20 +907,23 @@ export declare function useUpdateReleaseLineRunConfig(projectId: string): import
581
907
  inputConnectorName: string | null;
582
908
  inputConnectorType: string | null;
583
909
  inputConnectorSnapshot: Record<string, unknown>;
584
- status: "production" | "canary" | "archived" | "stopped" | "production_with_canary";
910
+ status: "archived" | "running" | "stopped";
585
911
  currentProductionEventId: string | null;
586
912
  activeCanaryEventId: string | null;
587
913
  currentProductionEvent: {
588
914
  id: string;
589
915
  projectId: string;
590
916
  releaseLineId: string;
591
- releaseVariantId: string | null;
592
- releaseVariantNumber: number | null;
593
- releaseVariantLabel: string | null;
917
+ releaseVersionId: string | null;
918
+ releaseVersionKind: "production" | "candidate" | null;
919
+ releaseVersionLabel: string | null;
920
+ releaseVersionProductionNumber: number | null;
921
+ releaseVersionTargetProductionNumber: number | null;
922
+ releaseVersionCandidateNumber: number | null;
594
923
  annotationTaskId: string | null;
595
924
  laneType: "production" | "canary";
596
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
597
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
925
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
926
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
598
927
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
599
928
  sourceEventId: string | null;
600
929
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -631,7 +960,8 @@ export declare function useUpdateReleaseLineRunConfig(projectId: string): import
631
960
  variableMapping: unknown;
632
961
  outputMapping: unknown;
633
962
  filterRules: unknown;
634
- recordMode: "all" | "correct_only";
963
+ recordMode: "all" | "selected_categories" | "correct_only";
964
+ recordCategories: string[];
635
965
  externalIdField: string | null;
636
966
  retentionDays: number | null;
637
967
  sourceExperimentId: string | null;
@@ -654,13 +984,16 @@ export declare function useUpdateReleaseLineRunConfig(projectId: string): import
654
984
  id: string;
655
985
  projectId: string;
656
986
  releaseLineId: string;
657
- releaseVariantId: string | null;
658
- releaseVariantNumber: number | null;
659
- releaseVariantLabel: string | null;
987
+ releaseVersionId: string | null;
988
+ releaseVersionKind: "production" | "candidate" | null;
989
+ releaseVersionLabel: string | null;
990
+ releaseVersionProductionNumber: number | null;
991
+ releaseVersionTargetProductionNumber: number | null;
992
+ releaseVersionCandidateNumber: number | null;
660
993
  annotationTaskId: string | null;
661
994
  laneType: "production" | "canary";
662
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
663
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
995
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
996
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
664
997
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
665
998
  sourceEventId: string | null;
666
999
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -697,7 +1030,8 @@ export declare function useUpdateReleaseLineRunConfig(projectId: string): import
697
1030
  variableMapping: unknown;
698
1031
  outputMapping: unknown;
699
1032
  filterRules: unknown;
700
- recordMode: "all" | "correct_only";
1033
+ recordMode: "all" | "selected_categories" | "correct_only";
1034
+ recordCategories: string[];
701
1035
  externalIdField: string | null;
702
1036
  retentionDays: number | null;
703
1037
  sourceExperimentId: string | null;
@@ -716,11 +1050,15 @@ export declare function useUpdateReleaseLineRunConfig(projectId: string): import
716
1050
  createdAt: string;
717
1051
  updatedAt: string;
718
1052
  } | null;
719
- variants: {
1053
+ versions: {
720
1054
  id: string;
721
1055
  projectId: string;
722
1056
  releaseLineId: string;
723
- variantNumber: number;
1057
+ kind: "production" | "candidate";
1058
+ productionVersionNumber: number | null;
1059
+ targetProductionVersionNumber: number;
1060
+ candidateNumber: number | null;
1061
+ promotedFromReleaseVersionId: string | null;
724
1062
  label: string;
725
1063
  promptId: string | null;
726
1064
  promptName: string;
@@ -746,13 +1084,16 @@ export declare function useUpdateReleaseLineRunConfig(projectId: string): import
746
1084
  id: string;
747
1085
  projectId: string;
748
1086
  releaseLineId: string;
749
- releaseVariantId: string | null;
750
- releaseVariantNumber: number | null;
751
- releaseVariantLabel: string | null;
1087
+ releaseVersionId: string | null;
1088
+ releaseVersionKind: "production" | "candidate" | null;
1089
+ releaseVersionLabel: string | null;
1090
+ releaseVersionProductionNumber: number | null;
1091
+ releaseVersionTargetProductionNumber: number | null;
1092
+ releaseVersionCandidateNumber: number | null;
752
1093
  annotationTaskId: string | null;
753
1094
  laneType: "production" | "canary";
754
- operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "archive_line";
755
- status: "completed" | "archived" | "failed" | "running" | "stopped" | "cancelled";
1095
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1096
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
756
1097
  terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
757
1098
  sourceEventId: string | null;
758
1099
  sourceLegacySource: "canary_release" | "production_release_event" | null;
@@ -789,7 +1130,8 @@ export declare function useUpdateReleaseLineRunConfig(projectId: string): import
789
1130
  variableMapping: unknown;
790
1131
  outputMapping: unknown;
791
1132
  filterRules: unknown;
792
- recordMode: "all" | "correct_only";
1133
+ recordMode: "all" | "selected_categories" | "correct_only";
1134
+ recordCategories: string[];
793
1135
  externalIdField: string | null;
794
1136
  retentionDays: number | null;
795
1137
  sourceExperimentId: string | null;
@@ -814,6 +1156,2114 @@ export declare function useUpdateReleaseLineRunConfig(projectId: string): import
814
1156
  archivedAt: string | null;
815
1157
  }, Error, {
816
1158
  releaseLineId: string;
817
- body: UpdateReleaseLineRunConfigInputDto;
1159
+ body: StopReleaseLineInputDto;
1160
+ }, unknown>;
1161
+ export declare function useStartReleaseLine(projectId: string): import("@tanstack/react-query").UseMutationResult<{
1162
+ id: string;
1163
+ projectId: string;
1164
+ name: string;
1165
+ description: string | null;
1166
+ promptId: string | null;
1167
+ promptName: string;
1168
+ promptSnapshot: Record<string, unknown>;
1169
+ inputConnectorId: string | null;
1170
+ inputConnectorName: string | null;
1171
+ inputConnectorType: string | null;
1172
+ inputConnectorSnapshot: Record<string, unknown>;
1173
+ status: "archived" | "running" | "stopped";
1174
+ currentProductionEventId: string | null;
1175
+ activeCanaryEventId: string | null;
1176
+ currentProductionEvent: {
1177
+ id: string;
1178
+ projectId: string;
1179
+ releaseLineId: string;
1180
+ releaseVersionId: string | null;
1181
+ releaseVersionKind: "production" | "candidate" | null;
1182
+ releaseVersionLabel: string | null;
1183
+ releaseVersionProductionNumber: number | null;
1184
+ releaseVersionTargetProductionNumber: number | null;
1185
+ releaseVersionCandidateNumber: number | null;
1186
+ annotationTaskId: string | null;
1187
+ laneType: "production" | "canary";
1188
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1189
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1190
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1191
+ sourceEventId: string | null;
1192
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1193
+ sourceLegacyId: string | null;
1194
+ supersedesEventId: string | null;
1195
+ rollbackTargetEventId: string | null;
1196
+ legacySource: "canary_release" | "production_release_event" | null;
1197
+ legacySourceId: string | null;
1198
+ promptId: string | null;
1199
+ promptName: string;
1200
+ promptVersionId: string | null;
1201
+ promptVersionNumber: number | null;
1202
+ promptVersionLabel: string | null;
1203
+ promptSnapshot: Record<string, unknown>;
1204
+ promptVersionSnapshot: Record<string, unknown>;
1205
+ modelId: string | null;
1206
+ modelName: string | null;
1207
+ modelProvider: string | null;
1208
+ modelSnapshot: Record<string, unknown>;
1209
+ inputConnectorId: string | null;
1210
+ inputConnectorName: string | null;
1211
+ inputConnectorType: string | null;
1212
+ inputConnectorSnapshot: Record<string, unknown>;
1213
+ outputConnectorIds: string[];
1214
+ outputConnectors: {
1215
+ id: string;
1216
+ name: string;
1217
+ type: string;
1218
+ }[];
1219
+ outputConnectorSnapshots: Record<string, unknown>[];
1220
+ trafficMode: "split" | "dual_run" | null;
1221
+ trafficRatio: number | null;
1222
+ runConfig: Record<string, unknown>;
1223
+ variableMapping: unknown;
1224
+ outputMapping: unknown;
1225
+ filterRules: unknown;
1226
+ recordMode: "all" | "selected_categories" | "correct_only";
1227
+ recordCategories: string[];
1228
+ externalIdField: string | null;
1229
+ retentionDays: number | null;
1230
+ sourceExperimentId: string | null;
1231
+ submitReason: string;
1232
+ metrics: Record<string, unknown> | null;
1233
+ totalReceived: number;
1234
+ totalProcessed: number;
1235
+ totalFiltered: number;
1236
+ totalCorrect: number;
1237
+ totalErrors: number;
1238
+ controlState: string | null;
1239
+ controlStatePayload: Record<string, unknown> | null;
1240
+ startedAt: string | null;
1241
+ finishedAt: string | null;
1242
+ createdBy: string;
1243
+ createdAt: string;
1244
+ updatedAt: string;
1245
+ } | null;
1246
+ activeCanaryEvent: {
1247
+ id: string;
1248
+ projectId: string;
1249
+ releaseLineId: string;
1250
+ releaseVersionId: string | null;
1251
+ releaseVersionKind: "production" | "candidate" | null;
1252
+ releaseVersionLabel: string | null;
1253
+ releaseVersionProductionNumber: number | null;
1254
+ releaseVersionTargetProductionNumber: number | null;
1255
+ releaseVersionCandidateNumber: number | null;
1256
+ annotationTaskId: string | null;
1257
+ laneType: "production" | "canary";
1258
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1259
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1260
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1261
+ sourceEventId: string | null;
1262
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1263
+ sourceLegacyId: string | null;
1264
+ supersedesEventId: string | null;
1265
+ rollbackTargetEventId: string | null;
1266
+ legacySource: "canary_release" | "production_release_event" | null;
1267
+ legacySourceId: string | null;
1268
+ promptId: string | null;
1269
+ promptName: string;
1270
+ promptVersionId: string | null;
1271
+ promptVersionNumber: number | null;
1272
+ promptVersionLabel: string | null;
1273
+ promptSnapshot: Record<string, unknown>;
1274
+ promptVersionSnapshot: Record<string, unknown>;
1275
+ modelId: string | null;
1276
+ modelName: string | null;
1277
+ modelProvider: string | null;
1278
+ modelSnapshot: Record<string, unknown>;
1279
+ inputConnectorId: string | null;
1280
+ inputConnectorName: string | null;
1281
+ inputConnectorType: string | null;
1282
+ inputConnectorSnapshot: Record<string, unknown>;
1283
+ outputConnectorIds: string[];
1284
+ outputConnectors: {
1285
+ id: string;
1286
+ name: string;
1287
+ type: string;
1288
+ }[];
1289
+ outputConnectorSnapshots: Record<string, unknown>[];
1290
+ trafficMode: "split" | "dual_run" | null;
1291
+ trafficRatio: number | null;
1292
+ runConfig: Record<string, unknown>;
1293
+ variableMapping: unknown;
1294
+ outputMapping: unknown;
1295
+ filterRules: unknown;
1296
+ recordMode: "all" | "selected_categories" | "correct_only";
1297
+ recordCategories: string[];
1298
+ externalIdField: string | null;
1299
+ retentionDays: number | null;
1300
+ sourceExperimentId: string | null;
1301
+ submitReason: string;
1302
+ metrics: Record<string, unknown> | null;
1303
+ totalReceived: number;
1304
+ totalProcessed: number;
1305
+ totalFiltered: number;
1306
+ totalCorrect: number;
1307
+ totalErrors: number;
1308
+ controlState: string | null;
1309
+ controlStatePayload: Record<string, unknown> | null;
1310
+ startedAt: string | null;
1311
+ finishedAt: string | null;
1312
+ createdBy: string;
1313
+ createdAt: string;
1314
+ updatedAt: string;
1315
+ } | null;
1316
+ versions: {
1317
+ id: string;
1318
+ projectId: string;
1319
+ releaseLineId: string;
1320
+ kind: "production" | "candidate";
1321
+ productionVersionNumber: number | null;
1322
+ targetProductionVersionNumber: number;
1323
+ candidateNumber: number | null;
1324
+ promotedFromReleaseVersionId: string | null;
1325
+ label: string;
1326
+ promptId: string | null;
1327
+ promptName: string;
1328
+ promptVersionId: string;
1329
+ promptVersionNumber: number | null;
1330
+ promptVersionLabel: string | null;
1331
+ promptSnapshot: Record<string, unknown>;
1332
+ promptVersionSnapshot: Record<string, unknown>;
1333
+ modelId: string;
1334
+ modelName: string | null;
1335
+ modelProvider: string | null;
1336
+ modelSnapshot: Record<string, unknown>;
1337
+ createdBy: string;
1338
+ createdAt: string;
1339
+ updatedAt: string;
1340
+ }[];
1341
+ outputConnectors: {
1342
+ id: string;
1343
+ name: string;
1344
+ type: string;
1345
+ }[];
1346
+ latestEvent: {
1347
+ id: string;
1348
+ projectId: string;
1349
+ releaseLineId: string;
1350
+ releaseVersionId: string | null;
1351
+ releaseVersionKind: "production" | "candidate" | null;
1352
+ releaseVersionLabel: string | null;
1353
+ releaseVersionProductionNumber: number | null;
1354
+ releaseVersionTargetProductionNumber: number | null;
1355
+ releaseVersionCandidateNumber: number | null;
1356
+ annotationTaskId: string | null;
1357
+ laneType: "production" | "canary";
1358
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1359
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1360
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1361
+ sourceEventId: string | null;
1362
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1363
+ sourceLegacyId: string | null;
1364
+ supersedesEventId: string | null;
1365
+ rollbackTargetEventId: string | null;
1366
+ legacySource: "canary_release" | "production_release_event" | null;
1367
+ legacySourceId: string | null;
1368
+ promptId: string | null;
1369
+ promptName: string;
1370
+ promptVersionId: string | null;
1371
+ promptVersionNumber: number | null;
1372
+ promptVersionLabel: string | null;
1373
+ promptSnapshot: Record<string, unknown>;
1374
+ promptVersionSnapshot: Record<string, unknown>;
1375
+ modelId: string | null;
1376
+ modelName: string | null;
1377
+ modelProvider: string | null;
1378
+ modelSnapshot: Record<string, unknown>;
1379
+ inputConnectorId: string | null;
1380
+ inputConnectorName: string | null;
1381
+ inputConnectorType: string | null;
1382
+ inputConnectorSnapshot: Record<string, unknown>;
1383
+ outputConnectorIds: string[];
1384
+ outputConnectors: {
1385
+ id: string;
1386
+ name: string;
1387
+ type: string;
1388
+ }[];
1389
+ outputConnectorSnapshots: Record<string, unknown>[];
1390
+ trafficMode: "split" | "dual_run" | null;
1391
+ trafficRatio: number | null;
1392
+ runConfig: Record<string, unknown>;
1393
+ variableMapping: unknown;
1394
+ outputMapping: unknown;
1395
+ filterRules: unknown;
1396
+ recordMode: "all" | "selected_categories" | "correct_only";
1397
+ recordCategories: string[];
1398
+ externalIdField: string | null;
1399
+ retentionDays: number | null;
1400
+ sourceExperimentId: string | null;
1401
+ submitReason: string;
1402
+ metrics: Record<string, unknown> | null;
1403
+ totalReceived: number;
1404
+ totalProcessed: number;
1405
+ totalFiltered: number;
1406
+ totalCorrect: number;
1407
+ totalErrors: number;
1408
+ controlState: string | null;
1409
+ controlStatePayload: Record<string, unknown> | null;
1410
+ startedAt: string | null;
1411
+ finishedAt: string | null;
1412
+ createdBy: string;
1413
+ createdAt: string;
1414
+ updatedAt: string;
1415
+ } | null;
1416
+ createdBy: string;
1417
+ createdAt: string;
1418
+ updatedAt: string;
1419
+ archivedAt: string | null;
1420
+ }, Error, {
1421
+ releaseLineId: string;
1422
+ body?: StartReleaseLineInputDto;
1423
+ }, unknown>;
1424
+ export declare function useArchiveReleaseLine(projectId: string): import("@tanstack/react-query").UseMutationResult<{
1425
+ id: string;
1426
+ projectId: string;
1427
+ name: string;
1428
+ description: string | null;
1429
+ promptId: string | null;
1430
+ promptName: string;
1431
+ promptSnapshot: Record<string, unknown>;
1432
+ inputConnectorId: string | null;
1433
+ inputConnectorName: string | null;
1434
+ inputConnectorType: string | null;
1435
+ inputConnectorSnapshot: Record<string, unknown>;
1436
+ status: "archived" | "running" | "stopped";
1437
+ currentProductionEventId: string | null;
1438
+ activeCanaryEventId: string | null;
1439
+ currentProductionEvent: {
1440
+ id: string;
1441
+ projectId: string;
1442
+ releaseLineId: string;
1443
+ releaseVersionId: string | null;
1444
+ releaseVersionKind: "production" | "candidate" | null;
1445
+ releaseVersionLabel: string | null;
1446
+ releaseVersionProductionNumber: number | null;
1447
+ releaseVersionTargetProductionNumber: number | null;
1448
+ releaseVersionCandidateNumber: number | null;
1449
+ annotationTaskId: string | null;
1450
+ laneType: "production" | "canary";
1451
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1452
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1453
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1454
+ sourceEventId: string | null;
1455
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1456
+ sourceLegacyId: string | null;
1457
+ supersedesEventId: string | null;
1458
+ rollbackTargetEventId: string | null;
1459
+ legacySource: "canary_release" | "production_release_event" | null;
1460
+ legacySourceId: string | null;
1461
+ promptId: string | null;
1462
+ promptName: string;
1463
+ promptVersionId: string | null;
1464
+ promptVersionNumber: number | null;
1465
+ promptVersionLabel: string | null;
1466
+ promptSnapshot: Record<string, unknown>;
1467
+ promptVersionSnapshot: Record<string, unknown>;
1468
+ modelId: string | null;
1469
+ modelName: string | null;
1470
+ modelProvider: string | null;
1471
+ modelSnapshot: Record<string, unknown>;
1472
+ inputConnectorId: string | null;
1473
+ inputConnectorName: string | null;
1474
+ inputConnectorType: string | null;
1475
+ inputConnectorSnapshot: Record<string, unknown>;
1476
+ outputConnectorIds: string[];
1477
+ outputConnectors: {
1478
+ id: string;
1479
+ name: string;
1480
+ type: string;
1481
+ }[];
1482
+ outputConnectorSnapshots: Record<string, unknown>[];
1483
+ trafficMode: "split" | "dual_run" | null;
1484
+ trafficRatio: number | null;
1485
+ runConfig: Record<string, unknown>;
1486
+ variableMapping: unknown;
1487
+ outputMapping: unknown;
1488
+ filterRules: unknown;
1489
+ recordMode: "all" | "selected_categories" | "correct_only";
1490
+ recordCategories: string[];
1491
+ externalIdField: string | null;
1492
+ retentionDays: number | null;
1493
+ sourceExperimentId: string | null;
1494
+ submitReason: string;
1495
+ metrics: Record<string, unknown> | null;
1496
+ totalReceived: number;
1497
+ totalProcessed: number;
1498
+ totalFiltered: number;
1499
+ totalCorrect: number;
1500
+ totalErrors: number;
1501
+ controlState: string | null;
1502
+ controlStatePayload: Record<string, unknown> | null;
1503
+ startedAt: string | null;
1504
+ finishedAt: string | null;
1505
+ createdBy: string;
1506
+ createdAt: string;
1507
+ updatedAt: string;
1508
+ } | null;
1509
+ activeCanaryEvent: {
1510
+ id: string;
1511
+ projectId: string;
1512
+ releaseLineId: string;
1513
+ releaseVersionId: string | null;
1514
+ releaseVersionKind: "production" | "candidate" | null;
1515
+ releaseVersionLabel: string | null;
1516
+ releaseVersionProductionNumber: number | null;
1517
+ releaseVersionTargetProductionNumber: number | null;
1518
+ releaseVersionCandidateNumber: number | null;
1519
+ annotationTaskId: string | null;
1520
+ laneType: "production" | "canary";
1521
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1522
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1523
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1524
+ sourceEventId: string | null;
1525
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1526
+ sourceLegacyId: string | null;
1527
+ supersedesEventId: string | null;
1528
+ rollbackTargetEventId: string | null;
1529
+ legacySource: "canary_release" | "production_release_event" | null;
1530
+ legacySourceId: string | null;
1531
+ promptId: string | null;
1532
+ promptName: string;
1533
+ promptVersionId: string | null;
1534
+ promptVersionNumber: number | null;
1535
+ promptVersionLabel: string | null;
1536
+ promptSnapshot: Record<string, unknown>;
1537
+ promptVersionSnapshot: Record<string, unknown>;
1538
+ modelId: string | null;
1539
+ modelName: string | null;
1540
+ modelProvider: string | null;
1541
+ modelSnapshot: Record<string, unknown>;
1542
+ inputConnectorId: string | null;
1543
+ inputConnectorName: string | null;
1544
+ inputConnectorType: string | null;
1545
+ inputConnectorSnapshot: Record<string, unknown>;
1546
+ outputConnectorIds: string[];
1547
+ outputConnectors: {
1548
+ id: string;
1549
+ name: string;
1550
+ type: string;
1551
+ }[];
1552
+ outputConnectorSnapshots: Record<string, unknown>[];
1553
+ trafficMode: "split" | "dual_run" | null;
1554
+ trafficRatio: number | null;
1555
+ runConfig: Record<string, unknown>;
1556
+ variableMapping: unknown;
1557
+ outputMapping: unknown;
1558
+ filterRules: unknown;
1559
+ recordMode: "all" | "selected_categories" | "correct_only";
1560
+ recordCategories: string[];
1561
+ externalIdField: string | null;
1562
+ retentionDays: number | null;
1563
+ sourceExperimentId: string | null;
1564
+ submitReason: string;
1565
+ metrics: Record<string, unknown> | null;
1566
+ totalReceived: number;
1567
+ totalProcessed: number;
1568
+ totalFiltered: number;
1569
+ totalCorrect: number;
1570
+ totalErrors: number;
1571
+ controlState: string | null;
1572
+ controlStatePayload: Record<string, unknown> | null;
1573
+ startedAt: string | null;
1574
+ finishedAt: string | null;
1575
+ createdBy: string;
1576
+ createdAt: string;
1577
+ updatedAt: string;
1578
+ } | null;
1579
+ versions: {
1580
+ id: string;
1581
+ projectId: string;
1582
+ releaseLineId: string;
1583
+ kind: "production" | "candidate";
1584
+ productionVersionNumber: number | null;
1585
+ targetProductionVersionNumber: number;
1586
+ candidateNumber: number | null;
1587
+ promotedFromReleaseVersionId: string | null;
1588
+ label: string;
1589
+ promptId: string | null;
1590
+ promptName: string;
1591
+ promptVersionId: string;
1592
+ promptVersionNumber: number | null;
1593
+ promptVersionLabel: string | null;
1594
+ promptSnapshot: Record<string, unknown>;
1595
+ promptVersionSnapshot: Record<string, unknown>;
1596
+ modelId: string;
1597
+ modelName: string | null;
1598
+ modelProvider: string | null;
1599
+ modelSnapshot: Record<string, unknown>;
1600
+ createdBy: string;
1601
+ createdAt: string;
1602
+ updatedAt: string;
1603
+ }[];
1604
+ outputConnectors: {
1605
+ id: string;
1606
+ name: string;
1607
+ type: string;
1608
+ }[];
1609
+ latestEvent: {
1610
+ id: string;
1611
+ projectId: string;
1612
+ releaseLineId: string;
1613
+ releaseVersionId: string | null;
1614
+ releaseVersionKind: "production" | "candidate" | null;
1615
+ releaseVersionLabel: string | null;
1616
+ releaseVersionProductionNumber: number | null;
1617
+ releaseVersionTargetProductionNumber: number | null;
1618
+ releaseVersionCandidateNumber: number | null;
1619
+ annotationTaskId: string | null;
1620
+ laneType: "production" | "canary";
1621
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1622
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1623
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1624
+ sourceEventId: string | null;
1625
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1626
+ sourceLegacyId: string | null;
1627
+ supersedesEventId: string | null;
1628
+ rollbackTargetEventId: string | null;
1629
+ legacySource: "canary_release" | "production_release_event" | null;
1630
+ legacySourceId: string | null;
1631
+ promptId: string | null;
1632
+ promptName: string;
1633
+ promptVersionId: string | null;
1634
+ promptVersionNumber: number | null;
1635
+ promptVersionLabel: string | null;
1636
+ promptSnapshot: Record<string, unknown>;
1637
+ promptVersionSnapshot: Record<string, unknown>;
1638
+ modelId: string | null;
1639
+ modelName: string | null;
1640
+ modelProvider: string | null;
1641
+ modelSnapshot: Record<string, unknown>;
1642
+ inputConnectorId: string | null;
1643
+ inputConnectorName: string | null;
1644
+ inputConnectorType: string | null;
1645
+ inputConnectorSnapshot: Record<string, unknown>;
1646
+ outputConnectorIds: string[];
1647
+ outputConnectors: {
1648
+ id: string;
1649
+ name: string;
1650
+ type: string;
1651
+ }[];
1652
+ outputConnectorSnapshots: Record<string, unknown>[];
1653
+ trafficMode: "split" | "dual_run" | null;
1654
+ trafficRatio: number | null;
1655
+ runConfig: Record<string, unknown>;
1656
+ variableMapping: unknown;
1657
+ outputMapping: unknown;
1658
+ filterRules: unknown;
1659
+ recordMode: "all" | "selected_categories" | "correct_only";
1660
+ recordCategories: string[];
1661
+ externalIdField: string | null;
1662
+ retentionDays: number | null;
1663
+ sourceExperimentId: string | null;
1664
+ submitReason: string;
1665
+ metrics: Record<string, unknown> | null;
1666
+ totalReceived: number;
1667
+ totalProcessed: number;
1668
+ totalFiltered: number;
1669
+ totalCorrect: number;
1670
+ totalErrors: number;
1671
+ controlState: string | null;
1672
+ controlStatePayload: Record<string, unknown> | null;
1673
+ startedAt: string | null;
1674
+ finishedAt: string | null;
1675
+ createdBy: string;
1676
+ createdAt: string;
1677
+ updatedAt: string;
1678
+ } | null;
1679
+ createdBy: string;
1680
+ createdAt: string;
1681
+ updatedAt: string;
1682
+ archivedAt: string | null;
1683
+ }, Error, {
1684
+ releaseLineId: string;
1685
+ body?: ArchiveReleaseLineInputDto;
1686
+ }, unknown>;
1687
+ export declare function useUnarchiveReleaseLine(projectId: string): import("@tanstack/react-query").UseMutationResult<{
1688
+ id: string;
1689
+ projectId: string;
1690
+ name: string;
1691
+ description: string | null;
1692
+ promptId: string | null;
1693
+ promptName: string;
1694
+ promptSnapshot: Record<string, unknown>;
1695
+ inputConnectorId: string | null;
1696
+ inputConnectorName: string | null;
1697
+ inputConnectorType: string | null;
1698
+ inputConnectorSnapshot: Record<string, unknown>;
1699
+ status: "archived" | "running" | "stopped";
1700
+ currentProductionEventId: string | null;
1701
+ activeCanaryEventId: string | null;
1702
+ currentProductionEvent: {
1703
+ id: string;
1704
+ projectId: string;
1705
+ releaseLineId: string;
1706
+ releaseVersionId: string | null;
1707
+ releaseVersionKind: "production" | "candidate" | null;
1708
+ releaseVersionLabel: string | null;
1709
+ releaseVersionProductionNumber: number | null;
1710
+ releaseVersionTargetProductionNumber: number | null;
1711
+ releaseVersionCandidateNumber: number | null;
1712
+ annotationTaskId: string | null;
1713
+ laneType: "production" | "canary";
1714
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1715
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1716
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1717
+ sourceEventId: string | null;
1718
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1719
+ sourceLegacyId: string | null;
1720
+ supersedesEventId: string | null;
1721
+ rollbackTargetEventId: string | null;
1722
+ legacySource: "canary_release" | "production_release_event" | null;
1723
+ legacySourceId: string | null;
1724
+ promptId: string | null;
1725
+ promptName: string;
1726
+ promptVersionId: string | null;
1727
+ promptVersionNumber: number | null;
1728
+ promptVersionLabel: string | null;
1729
+ promptSnapshot: Record<string, unknown>;
1730
+ promptVersionSnapshot: Record<string, unknown>;
1731
+ modelId: string | null;
1732
+ modelName: string | null;
1733
+ modelProvider: string | null;
1734
+ modelSnapshot: Record<string, unknown>;
1735
+ inputConnectorId: string | null;
1736
+ inputConnectorName: string | null;
1737
+ inputConnectorType: string | null;
1738
+ inputConnectorSnapshot: Record<string, unknown>;
1739
+ outputConnectorIds: string[];
1740
+ outputConnectors: {
1741
+ id: string;
1742
+ name: string;
1743
+ type: string;
1744
+ }[];
1745
+ outputConnectorSnapshots: Record<string, unknown>[];
1746
+ trafficMode: "split" | "dual_run" | null;
1747
+ trafficRatio: number | null;
1748
+ runConfig: Record<string, unknown>;
1749
+ variableMapping: unknown;
1750
+ outputMapping: unknown;
1751
+ filterRules: unknown;
1752
+ recordMode: "all" | "selected_categories" | "correct_only";
1753
+ recordCategories: string[];
1754
+ externalIdField: string | null;
1755
+ retentionDays: number | null;
1756
+ sourceExperimentId: string | null;
1757
+ submitReason: string;
1758
+ metrics: Record<string, unknown> | null;
1759
+ totalReceived: number;
1760
+ totalProcessed: number;
1761
+ totalFiltered: number;
1762
+ totalCorrect: number;
1763
+ totalErrors: number;
1764
+ controlState: string | null;
1765
+ controlStatePayload: Record<string, unknown> | null;
1766
+ startedAt: string | null;
1767
+ finishedAt: string | null;
1768
+ createdBy: string;
1769
+ createdAt: string;
1770
+ updatedAt: string;
1771
+ } | null;
1772
+ activeCanaryEvent: {
1773
+ id: string;
1774
+ projectId: string;
1775
+ releaseLineId: string;
1776
+ releaseVersionId: string | null;
1777
+ releaseVersionKind: "production" | "candidate" | null;
1778
+ releaseVersionLabel: string | null;
1779
+ releaseVersionProductionNumber: number | null;
1780
+ releaseVersionTargetProductionNumber: number | null;
1781
+ releaseVersionCandidateNumber: number | null;
1782
+ annotationTaskId: string | null;
1783
+ laneType: "production" | "canary";
1784
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1785
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1786
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1787
+ sourceEventId: string | null;
1788
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1789
+ sourceLegacyId: string | null;
1790
+ supersedesEventId: string | null;
1791
+ rollbackTargetEventId: string | null;
1792
+ legacySource: "canary_release" | "production_release_event" | null;
1793
+ legacySourceId: string | null;
1794
+ promptId: string | null;
1795
+ promptName: string;
1796
+ promptVersionId: string | null;
1797
+ promptVersionNumber: number | null;
1798
+ promptVersionLabel: string | null;
1799
+ promptSnapshot: Record<string, unknown>;
1800
+ promptVersionSnapshot: Record<string, unknown>;
1801
+ modelId: string | null;
1802
+ modelName: string | null;
1803
+ modelProvider: string | null;
1804
+ modelSnapshot: Record<string, unknown>;
1805
+ inputConnectorId: string | null;
1806
+ inputConnectorName: string | null;
1807
+ inputConnectorType: string | null;
1808
+ inputConnectorSnapshot: Record<string, unknown>;
1809
+ outputConnectorIds: string[];
1810
+ outputConnectors: {
1811
+ id: string;
1812
+ name: string;
1813
+ type: string;
1814
+ }[];
1815
+ outputConnectorSnapshots: Record<string, unknown>[];
1816
+ trafficMode: "split" | "dual_run" | null;
1817
+ trafficRatio: number | null;
1818
+ runConfig: Record<string, unknown>;
1819
+ variableMapping: unknown;
1820
+ outputMapping: unknown;
1821
+ filterRules: unknown;
1822
+ recordMode: "all" | "selected_categories" | "correct_only";
1823
+ recordCategories: string[];
1824
+ externalIdField: string | null;
1825
+ retentionDays: number | null;
1826
+ sourceExperimentId: string | null;
1827
+ submitReason: string;
1828
+ metrics: Record<string, unknown> | null;
1829
+ totalReceived: number;
1830
+ totalProcessed: number;
1831
+ totalFiltered: number;
1832
+ totalCorrect: number;
1833
+ totalErrors: number;
1834
+ controlState: string | null;
1835
+ controlStatePayload: Record<string, unknown> | null;
1836
+ startedAt: string | null;
1837
+ finishedAt: string | null;
1838
+ createdBy: string;
1839
+ createdAt: string;
1840
+ updatedAt: string;
1841
+ } | null;
1842
+ versions: {
1843
+ id: string;
1844
+ projectId: string;
1845
+ releaseLineId: string;
1846
+ kind: "production" | "candidate";
1847
+ productionVersionNumber: number | null;
1848
+ targetProductionVersionNumber: number;
1849
+ candidateNumber: number | null;
1850
+ promotedFromReleaseVersionId: string | null;
1851
+ label: string;
1852
+ promptId: string | null;
1853
+ promptName: string;
1854
+ promptVersionId: string;
1855
+ promptVersionNumber: number | null;
1856
+ promptVersionLabel: string | null;
1857
+ promptSnapshot: Record<string, unknown>;
1858
+ promptVersionSnapshot: Record<string, unknown>;
1859
+ modelId: string;
1860
+ modelName: string | null;
1861
+ modelProvider: string | null;
1862
+ modelSnapshot: Record<string, unknown>;
1863
+ createdBy: string;
1864
+ createdAt: string;
1865
+ updatedAt: string;
1866
+ }[];
1867
+ outputConnectors: {
1868
+ id: string;
1869
+ name: string;
1870
+ type: string;
1871
+ }[];
1872
+ latestEvent: {
1873
+ id: string;
1874
+ projectId: string;
1875
+ releaseLineId: string;
1876
+ releaseVersionId: string | null;
1877
+ releaseVersionKind: "production" | "candidate" | null;
1878
+ releaseVersionLabel: string | null;
1879
+ releaseVersionProductionNumber: number | null;
1880
+ releaseVersionTargetProductionNumber: number | null;
1881
+ releaseVersionCandidateNumber: number | null;
1882
+ annotationTaskId: string | null;
1883
+ laneType: "production" | "canary";
1884
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1885
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1886
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1887
+ sourceEventId: string | null;
1888
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1889
+ sourceLegacyId: string | null;
1890
+ supersedesEventId: string | null;
1891
+ rollbackTargetEventId: string | null;
1892
+ legacySource: "canary_release" | "production_release_event" | null;
1893
+ legacySourceId: string | null;
1894
+ promptId: string | null;
1895
+ promptName: string;
1896
+ promptVersionId: string | null;
1897
+ promptVersionNumber: number | null;
1898
+ promptVersionLabel: string | null;
1899
+ promptSnapshot: Record<string, unknown>;
1900
+ promptVersionSnapshot: Record<string, unknown>;
1901
+ modelId: string | null;
1902
+ modelName: string | null;
1903
+ modelProvider: string | null;
1904
+ modelSnapshot: Record<string, unknown>;
1905
+ inputConnectorId: string | null;
1906
+ inputConnectorName: string | null;
1907
+ inputConnectorType: string | null;
1908
+ inputConnectorSnapshot: Record<string, unknown>;
1909
+ outputConnectorIds: string[];
1910
+ outputConnectors: {
1911
+ id: string;
1912
+ name: string;
1913
+ type: string;
1914
+ }[];
1915
+ outputConnectorSnapshots: Record<string, unknown>[];
1916
+ trafficMode: "split" | "dual_run" | null;
1917
+ trafficRatio: number | null;
1918
+ runConfig: Record<string, unknown>;
1919
+ variableMapping: unknown;
1920
+ outputMapping: unknown;
1921
+ filterRules: unknown;
1922
+ recordMode: "all" | "selected_categories" | "correct_only";
1923
+ recordCategories: string[];
1924
+ externalIdField: string | null;
1925
+ retentionDays: number | null;
1926
+ sourceExperimentId: string | null;
1927
+ submitReason: string;
1928
+ metrics: Record<string, unknown> | null;
1929
+ totalReceived: number;
1930
+ totalProcessed: number;
1931
+ totalFiltered: number;
1932
+ totalCorrect: number;
1933
+ totalErrors: number;
1934
+ controlState: string | null;
1935
+ controlStatePayload: Record<string, unknown> | null;
1936
+ startedAt: string | null;
1937
+ finishedAt: string | null;
1938
+ createdBy: string;
1939
+ createdAt: string;
1940
+ updatedAt: string;
1941
+ } | null;
1942
+ createdBy: string;
1943
+ createdAt: string;
1944
+ updatedAt: string;
1945
+ archivedAt: string | null;
1946
+ }, Error, {
1947
+ releaseLineId: string;
1948
+ body?: UnarchiveReleaseLineInputDto;
1949
+ }, unknown>;
1950
+ export declare function useRestoreReleaseLineHistoryToProduction(projectId: string): import("@tanstack/react-query").UseMutationResult<{
1951
+ id: string;
1952
+ projectId: string;
1953
+ name: string;
1954
+ description: string | null;
1955
+ promptId: string | null;
1956
+ promptName: string;
1957
+ promptSnapshot: Record<string, unknown>;
1958
+ inputConnectorId: string | null;
1959
+ inputConnectorName: string | null;
1960
+ inputConnectorType: string | null;
1961
+ inputConnectorSnapshot: Record<string, unknown>;
1962
+ status: "archived" | "running" | "stopped";
1963
+ currentProductionEventId: string | null;
1964
+ activeCanaryEventId: string | null;
1965
+ currentProductionEvent: {
1966
+ id: string;
1967
+ projectId: string;
1968
+ releaseLineId: string;
1969
+ releaseVersionId: string | null;
1970
+ releaseVersionKind: "production" | "candidate" | null;
1971
+ releaseVersionLabel: string | null;
1972
+ releaseVersionProductionNumber: number | null;
1973
+ releaseVersionTargetProductionNumber: number | null;
1974
+ releaseVersionCandidateNumber: number | null;
1975
+ annotationTaskId: string | null;
1976
+ laneType: "production" | "canary";
1977
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
1978
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
1979
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
1980
+ sourceEventId: string | null;
1981
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
1982
+ sourceLegacyId: string | null;
1983
+ supersedesEventId: string | null;
1984
+ rollbackTargetEventId: string | null;
1985
+ legacySource: "canary_release" | "production_release_event" | null;
1986
+ legacySourceId: string | null;
1987
+ promptId: string | null;
1988
+ promptName: string;
1989
+ promptVersionId: string | null;
1990
+ promptVersionNumber: number | null;
1991
+ promptVersionLabel: string | null;
1992
+ promptSnapshot: Record<string, unknown>;
1993
+ promptVersionSnapshot: Record<string, unknown>;
1994
+ modelId: string | null;
1995
+ modelName: string | null;
1996
+ modelProvider: string | null;
1997
+ modelSnapshot: Record<string, unknown>;
1998
+ inputConnectorId: string | null;
1999
+ inputConnectorName: string | null;
2000
+ inputConnectorType: string | null;
2001
+ inputConnectorSnapshot: Record<string, unknown>;
2002
+ outputConnectorIds: string[];
2003
+ outputConnectors: {
2004
+ id: string;
2005
+ name: string;
2006
+ type: string;
2007
+ }[];
2008
+ outputConnectorSnapshots: Record<string, unknown>[];
2009
+ trafficMode: "split" | "dual_run" | null;
2010
+ trafficRatio: number | null;
2011
+ runConfig: Record<string, unknown>;
2012
+ variableMapping: unknown;
2013
+ outputMapping: unknown;
2014
+ filterRules: unknown;
2015
+ recordMode: "all" | "selected_categories" | "correct_only";
2016
+ recordCategories: string[];
2017
+ externalIdField: string | null;
2018
+ retentionDays: number | null;
2019
+ sourceExperimentId: string | null;
2020
+ submitReason: string;
2021
+ metrics: Record<string, unknown> | null;
2022
+ totalReceived: number;
2023
+ totalProcessed: number;
2024
+ totalFiltered: number;
2025
+ totalCorrect: number;
2026
+ totalErrors: number;
2027
+ controlState: string | null;
2028
+ controlStatePayload: Record<string, unknown> | null;
2029
+ startedAt: string | null;
2030
+ finishedAt: string | null;
2031
+ createdBy: string;
2032
+ createdAt: string;
2033
+ updatedAt: string;
2034
+ } | null;
2035
+ activeCanaryEvent: {
2036
+ id: string;
2037
+ projectId: string;
2038
+ releaseLineId: string;
2039
+ releaseVersionId: string | null;
2040
+ releaseVersionKind: "production" | "candidate" | null;
2041
+ releaseVersionLabel: string | null;
2042
+ releaseVersionProductionNumber: number | null;
2043
+ releaseVersionTargetProductionNumber: number | null;
2044
+ releaseVersionCandidateNumber: number | null;
2045
+ annotationTaskId: string | null;
2046
+ laneType: "production" | "canary";
2047
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2048
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2049
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2050
+ sourceEventId: string | null;
2051
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2052
+ sourceLegacyId: string | null;
2053
+ supersedesEventId: string | null;
2054
+ rollbackTargetEventId: string | null;
2055
+ legacySource: "canary_release" | "production_release_event" | null;
2056
+ legacySourceId: string | null;
2057
+ promptId: string | null;
2058
+ promptName: string;
2059
+ promptVersionId: string | null;
2060
+ promptVersionNumber: number | null;
2061
+ promptVersionLabel: string | null;
2062
+ promptSnapshot: Record<string, unknown>;
2063
+ promptVersionSnapshot: Record<string, unknown>;
2064
+ modelId: string | null;
2065
+ modelName: string | null;
2066
+ modelProvider: string | null;
2067
+ modelSnapshot: Record<string, unknown>;
2068
+ inputConnectorId: string | null;
2069
+ inputConnectorName: string | null;
2070
+ inputConnectorType: string | null;
2071
+ inputConnectorSnapshot: Record<string, unknown>;
2072
+ outputConnectorIds: string[];
2073
+ outputConnectors: {
2074
+ id: string;
2075
+ name: string;
2076
+ type: string;
2077
+ }[];
2078
+ outputConnectorSnapshots: Record<string, unknown>[];
2079
+ trafficMode: "split" | "dual_run" | null;
2080
+ trafficRatio: number | null;
2081
+ runConfig: Record<string, unknown>;
2082
+ variableMapping: unknown;
2083
+ outputMapping: unknown;
2084
+ filterRules: unknown;
2085
+ recordMode: "all" | "selected_categories" | "correct_only";
2086
+ recordCategories: string[];
2087
+ externalIdField: string | null;
2088
+ retentionDays: number | null;
2089
+ sourceExperimentId: string | null;
2090
+ submitReason: string;
2091
+ metrics: Record<string, unknown> | null;
2092
+ totalReceived: number;
2093
+ totalProcessed: number;
2094
+ totalFiltered: number;
2095
+ totalCorrect: number;
2096
+ totalErrors: number;
2097
+ controlState: string | null;
2098
+ controlStatePayload: Record<string, unknown> | null;
2099
+ startedAt: string | null;
2100
+ finishedAt: string | null;
2101
+ createdBy: string;
2102
+ createdAt: string;
2103
+ updatedAt: string;
2104
+ } | null;
2105
+ versions: {
2106
+ id: string;
2107
+ projectId: string;
2108
+ releaseLineId: string;
2109
+ kind: "production" | "candidate";
2110
+ productionVersionNumber: number | null;
2111
+ targetProductionVersionNumber: number;
2112
+ candidateNumber: number | null;
2113
+ promotedFromReleaseVersionId: string | null;
2114
+ label: string;
2115
+ promptId: string | null;
2116
+ promptName: string;
2117
+ promptVersionId: string;
2118
+ promptVersionNumber: number | null;
2119
+ promptVersionLabel: string | null;
2120
+ promptSnapshot: Record<string, unknown>;
2121
+ promptVersionSnapshot: Record<string, unknown>;
2122
+ modelId: string;
2123
+ modelName: string | null;
2124
+ modelProvider: string | null;
2125
+ modelSnapshot: Record<string, unknown>;
2126
+ createdBy: string;
2127
+ createdAt: string;
2128
+ updatedAt: string;
2129
+ }[];
2130
+ outputConnectors: {
2131
+ id: string;
2132
+ name: string;
2133
+ type: string;
2134
+ }[];
2135
+ latestEvent: {
2136
+ id: string;
2137
+ projectId: string;
2138
+ releaseLineId: string;
2139
+ releaseVersionId: string | null;
2140
+ releaseVersionKind: "production" | "candidate" | null;
2141
+ releaseVersionLabel: string | null;
2142
+ releaseVersionProductionNumber: number | null;
2143
+ releaseVersionTargetProductionNumber: number | null;
2144
+ releaseVersionCandidateNumber: number | null;
2145
+ annotationTaskId: string | null;
2146
+ laneType: "production" | "canary";
2147
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2148
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2149
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2150
+ sourceEventId: string | null;
2151
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2152
+ sourceLegacyId: string | null;
2153
+ supersedesEventId: string | null;
2154
+ rollbackTargetEventId: string | null;
2155
+ legacySource: "canary_release" | "production_release_event" | null;
2156
+ legacySourceId: string | null;
2157
+ promptId: string | null;
2158
+ promptName: string;
2159
+ promptVersionId: string | null;
2160
+ promptVersionNumber: number | null;
2161
+ promptVersionLabel: string | null;
2162
+ promptSnapshot: Record<string, unknown>;
2163
+ promptVersionSnapshot: Record<string, unknown>;
2164
+ modelId: string | null;
2165
+ modelName: string | null;
2166
+ modelProvider: string | null;
2167
+ modelSnapshot: Record<string, unknown>;
2168
+ inputConnectorId: string | null;
2169
+ inputConnectorName: string | null;
2170
+ inputConnectorType: string | null;
2171
+ inputConnectorSnapshot: Record<string, unknown>;
2172
+ outputConnectorIds: string[];
2173
+ outputConnectors: {
2174
+ id: string;
2175
+ name: string;
2176
+ type: string;
2177
+ }[];
2178
+ outputConnectorSnapshots: Record<string, unknown>[];
2179
+ trafficMode: "split" | "dual_run" | null;
2180
+ trafficRatio: number | null;
2181
+ runConfig: Record<string, unknown>;
2182
+ variableMapping: unknown;
2183
+ outputMapping: unknown;
2184
+ filterRules: unknown;
2185
+ recordMode: "all" | "selected_categories" | "correct_only";
2186
+ recordCategories: string[];
2187
+ externalIdField: string | null;
2188
+ retentionDays: number | null;
2189
+ sourceExperimentId: string | null;
2190
+ submitReason: string;
2191
+ metrics: Record<string, unknown> | null;
2192
+ totalReceived: number;
2193
+ totalProcessed: number;
2194
+ totalFiltered: number;
2195
+ totalCorrect: number;
2196
+ totalErrors: number;
2197
+ controlState: string | null;
2198
+ controlStatePayload: Record<string, unknown> | null;
2199
+ startedAt: string | null;
2200
+ finishedAt: string | null;
2201
+ createdBy: string;
2202
+ createdAt: string;
2203
+ updatedAt: string;
2204
+ } | null;
2205
+ createdBy: string;
2206
+ createdAt: string;
2207
+ updatedAt: string;
2208
+ archivedAt: string | null;
2209
+ }, Error, {
2210
+ releaseLineId: string;
2211
+ body: RestoreReleaseLineHistoryInputDto;
2212
+ }, unknown>;
2213
+ export declare function useRestoreReleaseLineHistoryToCanary(projectId: string): import("@tanstack/react-query").UseMutationResult<{
2214
+ id: string;
2215
+ projectId: string;
2216
+ name: string;
2217
+ description: string | null;
2218
+ promptId: string | null;
2219
+ promptName: string;
2220
+ promptSnapshot: Record<string, unknown>;
2221
+ inputConnectorId: string | null;
2222
+ inputConnectorName: string | null;
2223
+ inputConnectorType: string | null;
2224
+ inputConnectorSnapshot: Record<string, unknown>;
2225
+ status: "archived" | "running" | "stopped";
2226
+ currentProductionEventId: string | null;
2227
+ activeCanaryEventId: string | null;
2228
+ currentProductionEvent: {
2229
+ id: string;
2230
+ projectId: string;
2231
+ releaseLineId: string;
2232
+ releaseVersionId: string | null;
2233
+ releaseVersionKind: "production" | "candidate" | null;
2234
+ releaseVersionLabel: string | null;
2235
+ releaseVersionProductionNumber: number | null;
2236
+ releaseVersionTargetProductionNumber: number | null;
2237
+ releaseVersionCandidateNumber: number | null;
2238
+ annotationTaskId: string | null;
2239
+ laneType: "production" | "canary";
2240
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2241
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2242
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2243
+ sourceEventId: string | null;
2244
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2245
+ sourceLegacyId: string | null;
2246
+ supersedesEventId: string | null;
2247
+ rollbackTargetEventId: string | null;
2248
+ legacySource: "canary_release" | "production_release_event" | null;
2249
+ legacySourceId: string | null;
2250
+ promptId: string | null;
2251
+ promptName: string;
2252
+ promptVersionId: string | null;
2253
+ promptVersionNumber: number | null;
2254
+ promptVersionLabel: string | null;
2255
+ promptSnapshot: Record<string, unknown>;
2256
+ promptVersionSnapshot: Record<string, unknown>;
2257
+ modelId: string | null;
2258
+ modelName: string | null;
2259
+ modelProvider: string | null;
2260
+ modelSnapshot: Record<string, unknown>;
2261
+ inputConnectorId: string | null;
2262
+ inputConnectorName: string | null;
2263
+ inputConnectorType: string | null;
2264
+ inputConnectorSnapshot: Record<string, unknown>;
2265
+ outputConnectorIds: string[];
2266
+ outputConnectors: {
2267
+ id: string;
2268
+ name: string;
2269
+ type: string;
2270
+ }[];
2271
+ outputConnectorSnapshots: Record<string, unknown>[];
2272
+ trafficMode: "split" | "dual_run" | null;
2273
+ trafficRatio: number | null;
2274
+ runConfig: Record<string, unknown>;
2275
+ variableMapping: unknown;
2276
+ outputMapping: unknown;
2277
+ filterRules: unknown;
2278
+ recordMode: "all" | "selected_categories" | "correct_only";
2279
+ recordCategories: string[];
2280
+ externalIdField: string | null;
2281
+ retentionDays: number | null;
2282
+ sourceExperimentId: string | null;
2283
+ submitReason: string;
2284
+ metrics: Record<string, unknown> | null;
2285
+ totalReceived: number;
2286
+ totalProcessed: number;
2287
+ totalFiltered: number;
2288
+ totalCorrect: number;
2289
+ totalErrors: number;
2290
+ controlState: string | null;
2291
+ controlStatePayload: Record<string, unknown> | null;
2292
+ startedAt: string | null;
2293
+ finishedAt: string | null;
2294
+ createdBy: string;
2295
+ createdAt: string;
2296
+ updatedAt: string;
2297
+ } | null;
2298
+ activeCanaryEvent: {
2299
+ id: string;
2300
+ projectId: string;
2301
+ releaseLineId: string;
2302
+ releaseVersionId: string | null;
2303
+ releaseVersionKind: "production" | "candidate" | null;
2304
+ releaseVersionLabel: string | null;
2305
+ releaseVersionProductionNumber: number | null;
2306
+ releaseVersionTargetProductionNumber: number | null;
2307
+ releaseVersionCandidateNumber: number | null;
2308
+ annotationTaskId: string | null;
2309
+ laneType: "production" | "canary";
2310
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2311
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2312
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2313
+ sourceEventId: string | null;
2314
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2315
+ sourceLegacyId: string | null;
2316
+ supersedesEventId: string | null;
2317
+ rollbackTargetEventId: string | null;
2318
+ legacySource: "canary_release" | "production_release_event" | null;
2319
+ legacySourceId: string | null;
2320
+ promptId: string | null;
2321
+ promptName: string;
2322
+ promptVersionId: string | null;
2323
+ promptVersionNumber: number | null;
2324
+ promptVersionLabel: string | null;
2325
+ promptSnapshot: Record<string, unknown>;
2326
+ promptVersionSnapshot: Record<string, unknown>;
2327
+ modelId: string | null;
2328
+ modelName: string | null;
2329
+ modelProvider: string | null;
2330
+ modelSnapshot: Record<string, unknown>;
2331
+ inputConnectorId: string | null;
2332
+ inputConnectorName: string | null;
2333
+ inputConnectorType: string | null;
2334
+ inputConnectorSnapshot: Record<string, unknown>;
2335
+ outputConnectorIds: string[];
2336
+ outputConnectors: {
2337
+ id: string;
2338
+ name: string;
2339
+ type: string;
2340
+ }[];
2341
+ outputConnectorSnapshots: Record<string, unknown>[];
2342
+ trafficMode: "split" | "dual_run" | null;
2343
+ trafficRatio: number | null;
2344
+ runConfig: Record<string, unknown>;
2345
+ variableMapping: unknown;
2346
+ outputMapping: unknown;
2347
+ filterRules: unknown;
2348
+ recordMode: "all" | "selected_categories" | "correct_only";
2349
+ recordCategories: string[];
2350
+ externalIdField: string | null;
2351
+ retentionDays: number | null;
2352
+ sourceExperimentId: string | null;
2353
+ submitReason: string;
2354
+ metrics: Record<string, unknown> | null;
2355
+ totalReceived: number;
2356
+ totalProcessed: number;
2357
+ totalFiltered: number;
2358
+ totalCorrect: number;
2359
+ totalErrors: number;
2360
+ controlState: string | null;
2361
+ controlStatePayload: Record<string, unknown> | null;
2362
+ startedAt: string | null;
2363
+ finishedAt: string | null;
2364
+ createdBy: string;
2365
+ createdAt: string;
2366
+ updatedAt: string;
2367
+ } | null;
2368
+ versions: {
2369
+ id: string;
2370
+ projectId: string;
2371
+ releaseLineId: string;
2372
+ kind: "production" | "candidate";
2373
+ productionVersionNumber: number | null;
2374
+ targetProductionVersionNumber: number;
2375
+ candidateNumber: number | null;
2376
+ promotedFromReleaseVersionId: string | null;
2377
+ label: string;
2378
+ promptId: string | null;
2379
+ promptName: string;
2380
+ promptVersionId: string;
2381
+ promptVersionNumber: number | null;
2382
+ promptVersionLabel: string | null;
2383
+ promptSnapshot: Record<string, unknown>;
2384
+ promptVersionSnapshot: Record<string, unknown>;
2385
+ modelId: string;
2386
+ modelName: string | null;
2387
+ modelProvider: string | null;
2388
+ modelSnapshot: Record<string, unknown>;
2389
+ createdBy: string;
2390
+ createdAt: string;
2391
+ updatedAt: string;
2392
+ }[];
2393
+ outputConnectors: {
2394
+ id: string;
2395
+ name: string;
2396
+ type: string;
2397
+ }[];
2398
+ latestEvent: {
2399
+ id: string;
2400
+ projectId: string;
2401
+ releaseLineId: string;
2402
+ releaseVersionId: string | null;
2403
+ releaseVersionKind: "production" | "candidate" | null;
2404
+ releaseVersionLabel: string | null;
2405
+ releaseVersionProductionNumber: number | null;
2406
+ releaseVersionTargetProductionNumber: number | null;
2407
+ releaseVersionCandidateNumber: number | null;
2408
+ annotationTaskId: string | null;
2409
+ laneType: "production" | "canary";
2410
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2411
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2412
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2413
+ sourceEventId: string | null;
2414
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2415
+ sourceLegacyId: string | null;
2416
+ supersedesEventId: string | null;
2417
+ rollbackTargetEventId: string | null;
2418
+ legacySource: "canary_release" | "production_release_event" | null;
2419
+ legacySourceId: string | null;
2420
+ promptId: string | null;
2421
+ promptName: string;
2422
+ promptVersionId: string | null;
2423
+ promptVersionNumber: number | null;
2424
+ promptVersionLabel: string | null;
2425
+ promptSnapshot: Record<string, unknown>;
2426
+ promptVersionSnapshot: Record<string, unknown>;
2427
+ modelId: string | null;
2428
+ modelName: string | null;
2429
+ modelProvider: string | null;
2430
+ modelSnapshot: Record<string, unknown>;
2431
+ inputConnectorId: string | null;
2432
+ inputConnectorName: string | null;
2433
+ inputConnectorType: string | null;
2434
+ inputConnectorSnapshot: Record<string, unknown>;
2435
+ outputConnectorIds: string[];
2436
+ outputConnectors: {
2437
+ id: string;
2438
+ name: string;
2439
+ type: string;
2440
+ }[];
2441
+ outputConnectorSnapshots: Record<string, unknown>[];
2442
+ trafficMode: "split" | "dual_run" | null;
2443
+ trafficRatio: number | null;
2444
+ runConfig: Record<string, unknown>;
2445
+ variableMapping: unknown;
2446
+ outputMapping: unknown;
2447
+ filterRules: unknown;
2448
+ recordMode: "all" | "selected_categories" | "correct_only";
2449
+ recordCategories: string[];
2450
+ externalIdField: string | null;
2451
+ retentionDays: number | null;
2452
+ sourceExperimentId: string | null;
2453
+ submitReason: string;
2454
+ metrics: Record<string, unknown> | null;
2455
+ totalReceived: number;
2456
+ totalProcessed: number;
2457
+ totalFiltered: number;
2458
+ totalCorrect: number;
2459
+ totalErrors: number;
2460
+ controlState: string | null;
2461
+ controlStatePayload: Record<string, unknown> | null;
2462
+ startedAt: string | null;
2463
+ finishedAt: string | null;
2464
+ createdBy: string;
2465
+ createdAt: string;
2466
+ updatedAt: string;
2467
+ } | null;
2468
+ createdBy: string;
2469
+ createdAt: string;
2470
+ updatedAt: string;
2471
+ archivedAt: string | null;
2472
+ }, Error, {
2473
+ releaseLineId: string;
2474
+ body: RestoreReleaseLineHistoryInputDto;
2475
+ }, unknown>;
2476
+ export declare function useDeleteReleaseLine(projectId: string): import("@tanstack/react-query").UseMutationResult<undefined, Error, {
2477
+ releaseLineId: string;
2478
+ body: DeleteReleaseLineInputDto;
2479
+ }, unknown>;
2480
+ export declare function useUpdateReleaseLineRunConfig(projectId: string): import("@tanstack/react-query").UseMutationResult<{
2481
+ id: string;
2482
+ projectId: string;
2483
+ name: string;
2484
+ description: string | null;
2485
+ promptId: string | null;
2486
+ promptName: string;
2487
+ promptSnapshot: Record<string, unknown>;
2488
+ inputConnectorId: string | null;
2489
+ inputConnectorName: string | null;
2490
+ inputConnectorType: string | null;
2491
+ inputConnectorSnapshot: Record<string, unknown>;
2492
+ status: "archived" | "running" | "stopped";
2493
+ currentProductionEventId: string | null;
2494
+ activeCanaryEventId: string | null;
2495
+ currentProductionEvent: {
2496
+ id: string;
2497
+ projectId: string;
2498
+ releaseLineId: string;
2499
+ releaseVersionId: string | null;
2500
+ releaseVersionKind: "production" | "candidate" | null;
2501
+ releaseVersionLabel: string | null;
2502
+ releaseVersionProductionNumber: number | null;
2503
+ releaseVersionTargetProductionNumber: number | null;
2504
+ releaseVersionCandidateNumber: number | null;
2505
+ annotationTaskId: string | null;
2506
+ laneType: "production" | "canary";
2507
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2508
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2509
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2510
+ sourceEventId: string | null;
2511
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2512
+ sourceLegacyId: string | null;
2513
+ supersedesEventId: string | null;
2514
+ rollbackTargetEventId: string | null;
2515
+ legacySource: "canary_release" | "production_release_event" | null;
2516
+ legacySourceId: string | null;
2517
+ promptId: string | null;
2518
+ promptName: string;
2519
+ promptVersionId: string | null;
2520
+ promptVersionNumber: number | null;
2521
+ promptVersionLabel: string | null;
2522
+ promptSnapshot: Record<string, unknown>;
2523
+ promptVersionSnapshot: Record<string, unknown>;
2524
+ modelId: string | null;
2525
+ modelName: string | null;
2526
+ modelProvider: string | null;
2527
+ modelSnapshot: Record<string, unknown>;
2528
+ inputConnectorId: string | null;
2529
+ inputConnectorName: string | null;
2530
+ inputConnectorType: string | null;
2531
+ inputConnectorSnapshot: Record<string, unknown>;
2532
+ outputConnectorIds: string[];
2533
+ outputConnectors: {
2534
+ id: string;
2535
+ name: string;
2536
+ type: string;
2537
+ }[];
2538
+ outputConnectorSnapshots: Record<string, unknown>[];
2539
+ trafficMode: "split" | "dual_run" | null;
2540
+ trafficRatio: number | null;
2541
+ runConfig: Record<string, unknown>;
2542
+ variableMapping: unknown;
2543
+ outputMapping: unknown;
2544
+ filterRules: unknown;
2545
+ recordMode: "all" | "selected_categories" | "correct_only";
2546
+ recordCategories: string[];
2547
+ externalIdField: string | null;
2548
+ retentionDays: number | null;
2549
+ sourceExperimentId: string | null;
2550
+ submitReason: string;
2551
+ metrics: Record<string, unknown> | null;
2552
+ totalReceived: number;
2553
+ totalProcessed: number;
2554
+ totalFiltered: number;
2555
+ totalCorrect: number;
2556
+ totalErrors: number;
2557
+ controlState: string | null;
2558
+ controlStatePayload: Record<string, unknown> | null;
2559
+ startedAt: string | null;
2560
+ finishedAt: string | null;
2561
+ createdBy: string;
2562
+ createdAt: string;
2563
+ updatedAt: string;
2564
+ } | null;
2565
+ activeCanaryEvent: {
2566
+ id: string;
2567
+ projectId: string;
2568
+ releaseLineId: string;
2569
+ releaseVersionId: string | null;
2570
+ releaseVersionKind: "production" | "candidate" | null;
2571
+ releaseVersionLabel: string | null;
2572
+ releaseVersionProductionNumber: number | null;
2573
+ releaseVersionTargetProductionNumber: number | null;
2574
+ releaseVersionCandidateNumber: number | null;
2575
+ annotationTaskId: string | null;
2576
+ laneType: "production" | "canary";
2577
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2578
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2579
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2580
+ sourceEventId: string | null;
2581
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2582
+ sourceLegacyId: string | null;
2583
+ supersedesEventId: string | null;
2584
+ rollbackTargetEventId: string | null;
2585
+ legacySource: "canary_release" | "production_release_event" | null;
2586
+ legacySourceId: string | null;
2587
+ promptId: string | null;
2588
+ promptName: string;
2589
+ promptVersionId: string | null;
2590
+ promptVersionNumber: number | null;
2591
+ promptVersionLabel: string | null;
2592
+ promptSnapshot: Record<string, unknown>;
2593
+ promptVersionSnapshot: Record<string, unknown>;
2594
+ modelId: string | null;
2595
+ modelName: string | null;
2596
+ modelProvider: string | null;
2597
+ modelSnapshot: Record<string, unknown>;
2598
+ inputConnectorId: string | null;
2599
+ inputConnectorName: string | null;
2600
+ inputConnectorType: string | null;
2601
+ inputConnectorSnapshot: Record<string, unknown>;
2602
+ outputConnectorIds: string[];
2603
+ outputConnectors: {
2604
+ id: string;
2605
+ name: string;
2606
+ type: string;
2607
+ }[];
2608
+ outputConnectorSnapshots: Record<string, unknown>[];
2609
+ trafficMode: "split" | "dual_run" | null;
2610
+ trafficRatio: number | null;
2611
+ runConfig: Record<string, unknown>;
2612
+ variableMapping: unknown;
2613
+ outputMapping: unknown;
2614
+ filterRules: unknown;
2615
+ recordMode: "all" | "selected_categories" | "correct_only";
2616
+ recordCategories: string[];
2617
+ externalIdField: string | null;
2618
+ retentionDays: number | null;
2619
+ sourceExperimentId: string | null;
2620
+ submitReason: string;
2621
+ metrics: Record<string, unknown> | null;
2622
+ totalReceived: number;
2623
+ totalProcessed: number;
2624
+ totalFiltered: number;
2625
+ totalCorrect: number;
2626
+ totalErrors: number;
2627
+ controlState: string | null;
2628
+ controlStatePayload: Record<string, unknown> | null;
2629
+ startedAt: string | null;
2630
+ finishedAt: string | null;
2631
+ createdBy: string;
2632
+ createdAt: string;
2633
+ updatedAt: string;
2634
+ } | null;
2635
+ versions: {
2636
+ id: string;
2637
+ projectId: string;
2638
+ releaseLineId: string;
2639
+ kind: "production" | "candidate";
2640
+ productionVersionNumber: number | null;
2641
+ targetProductionVersionNumber: number;
2642
+ candidateNumber: number | null;
2643
+ promotedFromReleaseVersionId: string | null;
2644
+ label: string;
2645
+ promptId: string | null;
2646
+ promptName: string;
2647
+ promptVersionId: string;
2648
+ promptVersionNumber: number | null;
2649
+ promptVersionLabel: string | null;
2650
+ promptSnapshot: Record<string, unknown>;
2651
+ promptVersionSnapshot: Record<string, unknown>;
2652
+ modelId: string;
2653
+ modelName: string | null;
2654
+ modelProvider: string | null;
2655
+ modelSnapshot: Record<string, unknown>;
2656
+ createdBy: string;
2657
+ createdAt: string;
2658
+ updatedAt: string;
2659
+ }[];
2660
+ outputConnectors: {
2661
+ id: string;
2662
+ name: string;
2663
+ type: string;
2664
+ }[];
2665
+ latestEvent: {
2666
+ id: string;
2667
+ projectId: string;
2668
+ releaseLineId: string;
2669
+ releaseVersionId: string | null;
2670
+ releaseVersionKind: "production" | "candidate" | null;
2671
+ releaseVersionLabel: string | null;
2672
+ releaseVersionProductionNumber: number | null;
2673
+ releaseVersionTargetProductionNumber: number | null;
2674
+ releaseVersionCandidateNumber: number | null;
2675
+ annotationTaskId: string | null;
2676
+ laneType: "production" | "canary";
2677
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2678
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2679
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2680
+ sourceEventId: string | null;
2681
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2682
+ sourceLegacyId: string | null;
2683
+ supersedesEventId: string | null;
2684
+ rollbackTargetEventId: string | null;
2685
+ legacySource: "canary_release" | "production_release_event" | null;
2686
+ legacySourceId: string | null;
2687
+ promptId: string | null;
2688
+ promptName: string;
2689
+ promptVersionId: string | null;
2690
+ promptVersionNumber: number | null;
2691
+ promptVersionLabel: string | null;
2692
+ promptSnapshot: Record<string, unknown>;
2693
+ promptVersionSnapshot: Record<string, unknown>;
2694
+ modelId: string | null;
2695
+ modelName: string | null;
2696
+ modelProvider: string | null;
2697
+ modelSnapshot: Record<string, unknown>;
2698
+ inputConnectorId: string | null;
2699
+ inputConnectorName: string | null;
2700
+ inputConnectorType: string | null;
2701
+ inputConnectorSnapshot: Record<string, unknown>;
2702
+ outputConnectorIds: string[];
2703
+ outputConnectors: {
2704
+ id: string;
2705
+ name: string;
2706
+ type: string;
2707
+ }[];
2708
+ outputConnectorSnapshots: Record<string, unknown>[];
2709
+ trafficMode: "split" | "dual_run" | null;
2710
+ trafficRatio: number | null;
2711
+ runConfig: Record<string, unknown>;
2712
+ variableMapping: unknown;
2713
+ outputMapping: unknown;
2714
+ filterRules: unknown;
2715
+ recordMode: "all" | "selected_categories" | "correct_only";
2716
+ recordCategories: string[];
2717
+ externalIdField: string | null;
2718
+ retentionDays: number | null;
2719
+ sourceExperimentId: string | null;
2720
+ submitReason: string;
2721
+ metrics: Record<string, unknown> | null;
2722
+ totalReceived: number;
2723
+ totalProcessed: number;
2724
+ totalFiltered: number;
2725
+ totalCorrect: number;
2726
+ totalErrors: number;
2727
+ controlState: string | null;
2728
+ controlStatePayload: Record<string, unknown> | null;
2729
+ startedAt: string | null;
2730
+ finishedAt: string | null;
2731
+ createdBy: string;
2732
+ createdAt: string;
2733
+ updatedAt: string;
2734
+ } | null;
2735
+ createdBy: string;
2736
+ createdAt: string;
2737
+ updatedAt: string;
2738
+ archivedAt: string | null;
2739
+ }, Error, {
2740
+ releaseLineId: string;
2741
+ body: UpdateReleaseLineRunConfigInputDto;
2742
+ }, unknown>;
2743
+ export declare function useUpdateReleaseLineOutputRoute(projectId: string): import("@tanstack/react-query").UseMutationResult<{
2744
+ id: string;
2745
+ projectId: string;
2746
+ name: string;
2747
+ description: string | null;
2748
+ promptId: string | null;
2749
+ promptName: string;
2750
+ promptSnapshot: Record<string, unknown>;
2751
+ inputConnectorId: string | null;
2752
+ inputConnectorName: string | null;
2753
+ inputConnectorType: string | null;
2754
+ inputConnectorSnapshot: Record<string, unknown>;
2755
+ status: "archived" | "running" | "stopped";
2756
+ currentProductionEventId: string | null;
2757
+ activeCanaryEventId: string | null;
2758
+ currentProductionEvent: {
2759
+ id: string;
2760
+ projectId: string;
2761
+ releaseLineId: string;
2762
+ releaseVersionId: string | null;
2763
+ releaseVersionKind: "production" | "candidate" | null;
2764
+ releaseVersionLabel: string | null;
2765
+ releaseVersionProductionNumber: number | null;
2766
+ releaseVersionTargetProductionNumber: number | null;
2767
+ releaseVersionCandidateNumber: number | null;
2768
+ annotationTaskId: string | null;
2769
+ laneType: "production" | "canary";
2770
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2771
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2772
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2773
+ sourceEventId: string | null;
2774
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2775
+ sourceLegacyId: string | null;
2776
+ supersedesEventId: string | null;
2777
+ rollbackTargetEventId: string | null;
2778
+ legacySource: "canary_release" | "production_release_event" | null;
2779
+ legacySourceId: string | null;
2780
+ promptId: string | null;
2781
+ promptName: string;
2782
+ promptVersionId: string | null;
2783
+ promptVersionNumber: number | null;
2784
+ promptVersionLabel: string | null;
2785
+ promptSnapshot: Record<string, unknown>;
2786
+ promptVersionSnapshot: Record<string, unknown>;
2787
+ modelId: string | null;
2788
+ modelName: string | null;
2789
+ modelProvider: string | null;
2790
+ modelSnapshot: Record<string, unknown>;
2791
+ inputConnectorId: string | null;
2792
+ inputConnectorName: string | null;
2793
+ inputConnectorType: string | null;
2794
+ inputConnectorSnapshot: Record<string, unknown>;
2795
+ outputConnectorIds: string[];
2796
+ outputConnectors: {
2797
+ id: string;
2798
+ name: string;
2799
+ type: string;
2800
+ }[];
2801
+ outputConnectorSnapshots: Record<string, unknown>[];
2802
+ trafficMode: "split" | "dual_run" | null;
2803
+ trafficRatio: number | null;
2804
+ runConfig: Record<string, unknown>;
2805
+ variableMapping: unknown;
2806
+ outputMapping: unknown;
2807
+ filterRules: unknown;
2808
+ recordMode: "all" | "selected_categories" | "correct_only";
2809
+ recordCategories: string[];
2810
+ externalIdField: string | null;
2811
+ retentionDays: number | null;
2812
+ sourceExperimentId: string | null;
2813
+ submitReason: string;
2814
+ metrics: Record<string, unknown> | null;
2815
+ totalReceived: number;
2816
+ totalProcessed: number;
2817
+ totalFiltered: number;
2818
+ totalCorrect: number;
2819
+ totalErrors: number;
2820
+ controlState: string | null;
2821
+ controlStatePayload: Record<string, unknown> | null;
2822
+ startedAt: string | null;
2823
+ finishedAt: string | null;
2824
+ createdBy: string;
2825
+ createdAt: string;
2826
+ updatedAt: string;
2827
+ } | null;
2828
+ activeCanaryEvent: {
2829
+ id: string;
2830
+ projectId: string;
2831
+ releaseLineId: string;
2832
+ releaseVersionId: string | null;
2833
+ releaseVersionKind: "production" | "candidate" | null;
2834
+ releaseVersionLabel: string | null;
2835
+ releaseVersionProductionNumber: number | null;
2836
+ releaseVersionTargetProductionNumber: number | null;
2837
+ releaseVersionCandidateNumber: number | null;
2838
+ annotationTaskId: string | null;
2839
+ laneType: "production" | "canary";
2840
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2841
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2842
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2843
+ sourceEventId: string | null;
2844
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2845
+ sourceLegacyId: string | null;
2846
+ supersedesEventId: string | null;
2847
+ rollbackTargetEventId: string | null;
2848
+ legacySource: "canary_release" | "production_release_event" | null;
2849
+ legacySourceId: string | null;
2850
+ promptId: string | null;
2851
+ promptName: string;
2852
+ promptVersionId: string | null;
2853
+ promptVersionNumber: number | null;
2854
+ promptVersionLabel: string | null;
2855
+ promptSnapshot: Record<string, unknown>;
2856
+ promptVersionSnapshot: Record<string, unknown>;
2857
+ modelId: string | null;
2858
+ modelName: string | null;
2859
+ modelProvider: string | null;
2860
+ modelSnapshot: Record<string, unknown>;
2861
+ inputConnectorId: string | null;
2862
+ inputConnectorName: string | null;
2863
+ inputConnectorType: string | null;
2864
+ inputConnectorSnapshot: Record<string, unknown>;
2865
+ outputConnectorIds: string[];
2866
+ outputConnectors: {
2867
+ id: string;
2868
+ name: string;
2869
+ type: string;
2870
+ }[];
2871
+ outputConnectorSnapshots: Record<string, unknown>[];
2872
+ trafficMode: "split" | "dual_run" | null;
2873
+ trafficRatio: number | null;
2874
+ runConfig: Record<string, unknown>;
2875
+ variableMapping: unknown;
2876
+ outputMapping: unknown;
2877
+ filterRules: unknown;
2878
+ recordMode: "all" | "selected_categories" | "correct_only";
2879
+ recordCategories: string[];
2880
+ externalIdField: string | null;
2881
+ retentionDays: number | null;
2882
+ sourceExperimentId: string | null;
2883
+ submitReason: string;
2884
+ metrics: Record<string, unknown> | null;
2885
+ totalReceived: number;
2886
+ totalProcessed: number;
2887
+ totalFiltered: number;
2888
+ totalCorrect: number;
2889
+ totalErrors: number;
2890
+ controlState: string | null;
2891
+ controlStatePayload: Record<string, unknown> | null;
2892
+ startedAt: string | null;
2893
+ finishedAt: string | null;
2894
+ createdBy: string;
2895
+ createdAt: string;
2896
+ updatedAt: string;
2897
+ } | null;
2898
+ versions: {
2899
+ id: string;
2900
+ projectId: string;
2901
+ releaseLineId: string;
2902
+ kind: "production" | "candidate";
2903
+ productionVersionNumber: number | null;
2904
+ targetProductionVersionNumber: number;
2905
+ candidateNumber: number | null;
2906
+ promotedFromReleaseVersionId: string | null;
2907
+ label: string;
2908
+ promptId: string | null;
2909
+ promptName: string;
2910
+ promptVersionId: string;
2911
+ promptVersionNumber: number | null;
2912
+ promptVersionLabel: string | null;
2913
+ promptSnapshot: Record<string, unknown>;
2914
+ promptVersionSnapshot: Record<string, unknown>;
2915
+ modelId: string;
2916
+ modelName: string | null;
2917
+ modelProvider: string | null;
2918
+ modelSnapshot: Record<string, unknown>;
2919
+ createdBy: string;
2920
+ createdAt: string;
2921
+ updatedAt: string;
2922
+ }[];
2923
+ outputConnectors: {
2924
+ id: string;
2925
+ name: string;
2926
+ type: string;
2927
+ }[];
2928
+ latestEvent: {
2929
+ id: string;
2930
+ projectId: string;
2931
+ releaseLineId: string;
2932
+ releaseVersionId: string | null;
2933
+ releaseVersionKind: "production" | "candidate" | null;
2934
+ releaseVersionLabel: string | null;
2935
+ releaseVersionProductionNumber: number | null;
2936
+ releaseVersionTargetProductionNumber: number | null;
2937
+ releaseVersionCandidateNumber: number | null;
2938
+ annotationTaskId: string | null;
2939
+ laneType: "production" | "canary";
2940
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
2941
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
2942
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
2943
+ sourceEventId: string | null;
2944
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
2945
+ sourceLegacyId: string | null;
2946
+ supersedesEventId: string | null;
2947
+ rollbackTargetEventId: string | null;
2948
+ legacySource: "canary_release" | "production_release_event" | null;
2949
+ legacySourceId: string | null;
2950
+ promptId: string | null;
2951
+ promptName: string;
2952
+ promptVersionId: string | null;
2953
+ promptVersionNumber: number | null;
2954
+ promptVersionLabel: string | null;
2955
+ promptSnapshot: Record<string, unknown>;
2956
+ promptVersionSnapshot: Record<string, unknown>;
2957
+ modelId: string | null;
2958
+ modelName: string | null;
2959
+ modelProvider: string | null;
2960
+ modelSnapshot: Record<string, unknown>;
2961
+ inputConnectorId: string | null;
2962
+ inputConnectorName: string | null;
2963
+ inputConnectorType: string | null;
2964
+ inputConnectorSnapshot: Record<string, unknown>;
2965
+ outputConnectorIds: string[];
2966
+ outputConnectors: {
2967
+ id: string;
2968
+ name: string;
2969
+ type: string;
2970
+ }[];
2971
+ outputConnectorSnapshots: Record<string, unknown>[];
2972
+ trafficMode: "split" | "dual_run" | null;
2973
+ trafficRatio: number | null;
2974
+ runConfig: Record<string, unknown>;
2975
+ variableMapping: unknown;
2976
+ outputMapping: unknown;
2977
+ filterRules: unknown;
2978
+ recordMode: "all" | "selected_categories" | "correct_only";
2979
+ recordCategories: string[];
2980
+ externalIdField: string | null;
2981
+ retentionDays: number | null;
2982
+ sourceExperimentId: string | null;
2983
+ submitReason: string;
2984
+ metrics: Record<string, unknown> | null;
2985
+ totalReceived: number;
2986
+ totalProcessed: number;
2987
+ totalFiltered: number;
2988
+ totalCorrect: number;
2989
+ totalErrors: number;
2990
+ controlState: string | null;
2991
+ controlStatePayload: Record<string, unknown> | null;
2992
+ startedAt: string | null;
2993
+ finishedAt: string | null;
2994
+ createdBy: string;
2995
+ createdAt: string;
2996
+ updatedAt: string;
2997
+ } | null;
2998
+ createdBy: string;
2999
+ createdAt: string;
3000
+ updatedAt: string;
3001
+ archivedAt: string | null;
3002
+ }, Error, {
3003
+ releaseLineId: string;
3004
+ body: UpdateReleaseLineOutputRouteInputDto;
3005
+ }, unknown>;
3006
+ export declare function useUpdateReleaseLineInputRoute(projectId: string): import("@tanstack/react-query").UseMutationResult<{
3007
+ id: string;
3008
+ projectId: string;
3009
+ name: string;
3010
+ description: string | null;
3011
+ promptId: string | null;
3012
+ promptName: string;
3013
+ promptSnapshot: Record<string, unknown>;
3014
+ inputConnectorId: string | null;
3015
+ inputConnectorName: string | null;
3016
+ inputConnectorType: string | null;
3017
+ inputConnectorSnapshot: Record<string, unknown>;
3018
+ status: "archived" | "running" | "stopped";
3019
+ currentProductionEventId: string | null;
3020
+ activeCanaryEventId: string | null;
3021
+ currentProductionEvent: {
3022
+ id: string;
3023
+ projectId: string;
3024
+ releaseLineId: string;
3025
+ releaseVersionId: string | null;
3026
+ releaseVersionKind: "production" | "candidate" | null;
3027
+ releaseVersionLabel: string | null;
3028
+ releaseVersionProductionNumber: number | null;
3029
+ releaseVersionTargetProductionNumber: number | null;
3030
+ releaseVersionCandidateNumber: number | null;
3031
+ annotationTaskId: string | null;
3032
+ laneType: "production" | "canary";
3033
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
3034
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
3035
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
3036
+ sourceEventId: string | null;
3037
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
3038
+ sourceLegacyId: string | null;
3039
+ supersedesEventId: string | null;
3040
+ rollbackTargetEventId: string | null;
3041
+ legacySource: "canary_release" | "production_release_event" | null;
3042
+ legacySourceId: string | null;
3043
+ promptId: string | null;
3044
+ promptName: string;
3045
+ promptVersionId: string | null;
3046
+ promptVersionNumber: number | null;
3047
+ promptVersionLabel: string | null;
3048
+ promptSnapshot: Record<string, unknown>;
3049
+ promptVersionSnapshot: Record<string, unknown>;
3050
+ modelId: string | null;
3051
+ modelName: string | null;
3052
+ modelProvider: string | null;
3053
+ modelSnapshot: Record<string, unknown>;
3054
+ inputConnectorId: string | null;
3055
+ inputConnectorName: string | null;
3056
+ inputConnectorType: string | null;
3057
+ inputConnectorSnapshot: Record<string, unknown>;
3058
+ outputConnectorIds: string[];
3059
+ outputConnectors: {
3060
+ id: string;
3061
+ name: string;
3062
+ type: string;
3063
+ }[];
3064
+ outputConnectorSnapshots: Record<string, unknown>[];
3065
+ trafficMode: "split" | "dual_run" | null;
3066
+ trafficRatio: number | null;
3067
+ runConfig: Record<string, unknown>;
3068
+ variableMapping: unknown;
3069
+ outputMapping: unknown;
3070
+ filterRules: unknown;
3071
+ recordMode: "all" | "selected_categories" | "correct_only";
3072
+ recordCategories: string[];
3073
+ externalIdField: string | null;
3074
+ retentionDays: number | null;
3075
+ sourceExperimentId: string | null;
3076
+ submitReason: string;
3077
+ metrics: Record<string, unknown> | null;
3078
+ totalReceived: number;
3079
+ totalProcessed: number;
3080
+ totalFiltered: number;
3081
+ totalCorrect: number;
3082
+ totalErrors: number;
3083
+ controlState: string | null;
3084
+ controlStatePayload: Record<string, unknown> | null;
3085
+ startedAt: string | null;
3086
+ finishedAt: string | null;
3087
+ createdBy: string;
3088
+ createdAt: string;
3089
+ updatedAt: string;
3090
+ } | null;
3091
+ activeCanaryEvent: {
3092
+ id: string;
3093
+ projectId: string;
3094
+ releaseLineId: string;
3095
+ releaseVersionId: string | null;
3096
+ releaseVersionKind: "production" | "candidate" | null;
3097
+ releaseVersionLabel: string | null;
3098
+ releaseVersionProductionNumber: number | null;
3099
+ releaseVersionTargetProductionNumber: number | null;
3100
+ releaseVersionCandidateNumber: number | null;
3101
+ annotationTaskId: string | null;
3102
+ laneType: "production" | "canary";
3103
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
3104
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
3105
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
3106
+ sourceEventId: string | null;
3107
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
3108
+ sourceLegacyId: string | null;
3109
+ supersedesEventId: string | null;
3110
+ rollbackTargetEventId: string | null;
3111
+ legacySource: "canary_release" | "production_release_event" | null;
3112
+ legacySourceId: string | null;
3113
+ promptId: string | null;
3114
+ promptName: string;
3115
+ promptVersionId: string | null;
3116
+ promptVersionNumber: number | null;
3117
+ promptVersionLabel: string | null;
3118
+ promptSnapshot: Record<string, unknown>;
3119
+ promptVersionSnapshot: Record<string, unknown>;
3120
+ modelId: string | null;
3121
+ modelName: string | null;
3122
+ modelProvider: string | null;
3123
+ modelSnapshot: Record<string, unknown>;
3124
+ inputConnectorId: string | null;
3125
+ inputConnectorName: string | null;
3126
+ inputConnectorType: string | null;
3127
+ inputConnectorSnapshot: Record<string, unknown>;
3128
+ outputConnectorIds: string[];
3129
+ outputConnectors: {
3130
+ id: string;
3131
+ name: string;
3132
+ type: string;
3133
+ }[];
3134
+ outputConnectorSnapshots: Record<string, unknown>[];
3135
+ trafficMode: "split" | "dual_run" | null;
3136
+ trafficRatio: number | null;
3137
+ runConfig: Record<string, unknown>;
3138
+ variableMapping: unknown;
3139
+ outputMapping: unknown;
3140
+ filterRules: unknown;
3141
+ recordMode: "all" | "selected_categories" | "correct_only";
3142
+ recordCategories: string[];
3143
+ externalIdField: string | null;
3144
+ retentionDays: number | null;
3145
+ sourceExperimentId: string | null;
3146
+ submitReason: string;
3147
+ metrics: Record<string, unknown> | null;
3148
+ totalReceived: number;
3149
+ totalProcessed: number;
3150
+ totalFiltered: number;
3151
+ totalCorrect: number;
3152
+ totalErrors: number;
3153
+ controlState: string | null;
3154
+ controlStatePayload: Record<string, unknown> | null;
3155
+ startedAt: string | null;
3156
+ finishedAt: string | null;
3157
+ createdBy: string;
3158
+ createdAt: string;
3159
+ updatedAt: string;
3160
+ } | null;
3161
+ versions: {
3162
+ id: string;
3163
+ projectId: string;
3164
+ releaseLineId: string;
3165
+ kind: "production" | "candidate";
3166
+ productionVersionNumber: number | null;
3167
+ targetProductionVersionNumber: number;
3168
+ candidateNumber: number | null;
3169
+ promotedFromReleaseVersionId: string | null;
3170
+ label: string;
3171
+ promptId: string | null;
3172
+ promptName: string;
3173
+ promptVersionId: string;
3174
+ promptVersionNumber: number | null;
3175
+ promptVersionLabel: string | null;
3176
+ promptSnapshot: Record<string, unknown>;
3177
+ promptVersionSnapshot: Record<string, unknown>;
3178
+ modelId: string;
3179
+ modelName: string | null;
3180
+ modelProvider: string | null;
3181
+ modelSnapshot: Record<string, unknown>;
3182
+ createdBy: string;
3183
+ createdAt: string;
3184
+ updatedAt: string;
3185
+ }[];
3186
+ outputConnectors: {
3187
+ id: string;
3188
+ name: string;
3189
+ type: string;
3190
+ }[];
3191
+ latestEvent: {
3192
+ id: string;
3193
+ projectId: string;
3194
+ releaseLineId: string;
3195
+ releaseVersionId: string | null;
3196
+ releaseVersionKind: "production" | "candidate" | null;
3197
+ releaseVersionLabel: string | null;
3198
+ releaseVersionProductionNumber: number | null;
3199
+ releaseVersionTargetProductionNumber: number | null;
3200
+ releaseVersionCandidateNumber: number | null;
3201
+ annotationTaskId: string | null;
3202
+ laneType: "production" | "canary";
3203
+ operation: "rollback" | "force_stop" | "create_production" | "create_production_from_experiment" | "create_canary" | "traffic_updated" | "mode_updated" | "config_changed" | "stop_lane" | "resume_lane" | "cancel_canary" | "promote_canary" | "restore_to_production" | "restore_to_canary" | "archive_line" | "unarchive_line";
3204
+ status: "archived" | "completed" | "failed" | "running" | "stopped" | "cancelled";
3205
+ terminalReason: "archived" | "cancelled" | "error" | "replaced" | "rolled_back" | "force_stopped" | "promoted" | null;
3206
+ sourceEventId: string | null;
3207
+ sourceLegacySource: "canary_release" | "production_release_event" | null;
3208
+ sourceLegacyId: string | null;
3209
+ supersedesEventId: string | null;
3210
+ rollbackTargetEventId: string | null;
3211
+ legacySource: "canary_release" | "production_release_event" | null;
3212
+ legacySourceId: string | null;
3213
+ promptId: string | null;
3214
+ promptName: string;
3215
+ promptVersionId: string | null;
3216
+ promptVersionNumber: number | null;
3217
+ promptVersionLabel: string | null;
3218
+ promptSnapshot: Record<string, unknown>;
3219
+ promptVersionSnapshot: Record<string, unknown>;
3220
+ modelId: string | null;
3221
+ modelName: string | null;
3222
+ modelProvider: string | null;
3223
+ modelSnapshot: Record<string, unknown>;
3224
+ inputConnectorId: string | null;
3225
+ inputConnectorName: string | null;
3226
+ inputConnectorType: string | null;
3227
+ inputConnectorSnapshot: Record<string, unknown>;
3228
+ outputConnectorIds: string[];
3229
+ outputConnectors: {
3230
+ id: string;
3231
+ name: string;
3232
+ type: string;
3233
+ }[];
3234
+ outputConnectorSnapshots: Record<string, unknown>[];
3235
+ trafficMode: "split" | "dual_run" | null;
3236
+ trafficRatio: number | null;
3237
+ runConfig: Record<string, unknown>;
3238
+ variableMapping: unknown;
3239
+ outputMapping: unknown;
3240
+ filterRules: unknown;
3241
+ recordMode: "all" | "selected_categories" | "correct_only";
3242
+ recordCategories: string[];
3243
+ externalIdField: string | null;
3244
+ retentionDays: number | null;
3245
+ sourceExperimentId: string | null;
3246
+ submitReason: string;
3247
+ metrics: Record<string, unknown> | null;
3248
+ totalReceived: number;
3249
+ totalProcessed: number;
3250
+ totalFiltered: number;
3251
+ totalCorrect: number;
3252
+ totalErrors: number;
3253
+ controlState: string | null;
3254
+ controlStatePayload: Record<string, unknown> | null;
3255
+ startedAt: string | null;
3256
+ finishedAt: string | null;
3257
+ createdBy: string;
3258
+ createdAt: string;
3259
+ updatedAt: string;
3260
+ } | null;
3261
+ createdBy: string;
3262
+ createdAt: string;
3263
+ updatedAt: string;
3264
+ archivedAt: string | null;
3265
+ }, Error, {
3266
+ releaseLineId: string;
3267
+ body: UpdateReleaseLineInputRouteInputDto;
818
3268
  }, unknown>;
819
3269
  //# sourceMappingURL=release-line.d.ts.map