@uluops/ops-sdk 5.21.0 → 5.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -861,23 +861,23 @@ export declare const StatusUpdateResultResponseSchema: z.ZodObject<{
861
861
  export declare const RunResponseSchema: z.ZodObject<{
862
862
  id: z.ZodString;
863
863
  projectId: z.ZodString;
864
- authorId: z.ZodNullable<z.ZodString>;
864
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
865
865
  runNumber: z.ZodNumber;
866
866
  workflowType: z.ZodString;
867
867
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
868
868
  allGatesPassed: z.ZodNullable<z.ZodBoolean>;
869
869
  averageScore: z.ZodNullable<z.ZodNumber>;
870
- rawMarkdown: z.ZodNullable<z.ZodString>;
870
+ rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
871
871
  archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
872
872
  archiveReason: z.ZodNullable<z.ZodString>;
873
- idempotencyKey: z.ZodNullable<z.ZodString>;
874
- payloadHash: z.ZodNullable<z.ZodString>;
875
- definitionType: z.ZodNullable<z.ZodString>;
876
- definitionName: z.ZodNullable<z.ZodString>;
877
- definitionVersion: z.ZodNullable<z.ZodString>;
878
- definitionHash: z.ZodNullable<z.ZodString>;
879
- definitionId: z.ZodNullable<z.ZodString>;
880
- registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
873
+ idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
874
+ payloadHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
875
+ definitionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ definitionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
+ definitionVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
+ definitionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ definitionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
880
+ registrySyncedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
881
881
  mergedFromProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
882
882
  mergedFromRunNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
883
883
  mergedFromIdempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -912,23 +912,23 @@ export declare const UpdateRunEnvelopeSchema: z.ZodObject<{
912
912
  data: z.ZodObject<{
913
913
  id: z.ZodString;
914
914
  projectId: z.ZodString;
915
- authorId: z.ZodNullable<z.ZodString>;
915
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
916
916
  runNumber: z.ZodNumber;
917
917
  workflowType: z.ZodString;
918
918
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
919
919
  allGatesPassed: z.ZodNullable<z.ZodBoolean>;
920
920
  averageScore: z.ZodNullable<z.ZodNumber>;
921
- rawMarkdown: z.ZodNullable<z.ZodString>;
921
+ rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
922
922
  archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
923
923
  archiveReason: z.ZodNullable<z.ZodString>;
924
- idempotencyKey: z.ZodNullable<z.ZodString>;
925
- payloadHash: z.ZodNullable<z.ZodString>;
926
- definitionType: z.ZodNullable<z.ZodString>;
927
- definitionName: z.ZodNullable<z.ZodString>;
928
- definitionVersion: z.ZodNullable<z.ZodString>;
929
- definitionHash: z.ZodNullable<z.ZodString>;
930
- definitionId: z.ZodNullable<z.ZodString>;
931
- registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
924
+ idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
925
+ payloadHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
+ definitionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
927
+ definitionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
928
+ definitionVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ definitionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
+ definitionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
+ registrySyncedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
932
932
  mergedFromProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
933
  mergedFromRunNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
934
934
  mergedFromIdempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1052,23 +1052,23 @@ export declare const SaveRunResponseSchema: z.ZodObject<{
1052
1052
  run: z.ZodObject<{
1053
1053
  id: z.ZodString;
1054
1054
  projectId: z.ZodString;
1055
- authorId: z.ZodNullable<z.ZodString>;
1055
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1056
1056
  runNumber: z.ZodNumber;
1057
1057
  workflowType: z.ZodString;
1058
1058
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
1059
1059
  allGatesPassed: z.ZodNullable<z.ZodBoolean>;
1060
1060
  averageScore: z.ZodNullable<z.ZodNumber>;
1061
- rawMarkdown: z.ZodNullable<z.ZodString>;
1061
+ rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1062
1062
  archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1063
1063
  archiveReason: z.ZodNullable<z.ZodString>;
1064
- idempotencyKey: z.ZodNullable<z.ZodString>;
1065
- payloadHash: z.ZodNullable<z.ZodString>;
1066
- definitionType: z.ZodNullable<z.ZodString>;
1067
- definitionName: z.ZodNullable<z.ZodString>;
1068
- definitionVersion: z.ZodNullable<z.ZodString>;
1069
- definitionHash: z.ZodNullable<z.ZodString>;
1070
- definitionId: z.ZodNullable<z.ZodString>;
1071
- registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1064
+ idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1065
+ payloadHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1066
+ definitionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1067
+ definitionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1068
+ definitionVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1069
+ definitionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1070
+ definitionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1071
+ registrySyncedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1072
1072
  mergedFromProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1073
1073
  mergedFromRunNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1074
1074
  mergedFromIdempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1165,6 +1165,138 @@ export declare const SaveRunResponseSchema: z.ZodObject<{
1165
1165
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1166
1166
  }, z.core.$strip>>>;
1167
1167
  }, z.core.$strip>;
1168
+ /**
1169
+ * Full save-response envelope (tool-sweep T21). `analysisWrite` is a SIBLING
1170
+ * of `data` — the same placement as the update envelope — so both paths read
1171
+ * the body with `rawEnvelope` and one pattern. `recordMode` is 'initial' on
1172
+ * this path (no supersede semantics on first write).
1173
+ */
1174
+ export declare const SaveRunEnvelopeSchema: z.ZodObject<{
1175
+ data: z.ZodObject<{
1176
+ run: z.ZodObject<{
1177
+ id: z.ZodString;
1178
+ projectId: z.ZodString;
1179
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1180
+ runNumber: z.ZodNumber;
1181
+ workflowType: z.ZodString;
1182
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
1183
+ allGatesPassed: z.ZodNullable<z.ZodBoolean>;
1184
+ averageScore: z.ZodNullable<z.ZodNumber>;
1185
+ rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1186
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1187
+ archiveReason: z.ZodNullable<z.ZodString>;
1188
+ idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1189
+ payloadHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1190
+ definitionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1191
+ definitionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
+ definitionVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1193
+ definitionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1194
+ definitionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1195
+ registrySyncedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1196
+ mergedFromProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1197
+ mergedFromRunNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1198
+ mergedFromIdempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1199
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1200
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1201
+ projectSlug: z.ZodOptional<z.ZodString>;
1202
+ orgSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1203
+ }, z.core.$strip>;
1204
+ agents: z.ZodArray<z.ZodObject<{
1205
+ id: z.ZodString;
1206
+ runId: z.ZodString;
1207
+ name: z.ZodString;
1208
+ definitionVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1209
+ registryDefinitionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1210
+ score: z.ZodNullable<z.ZodNumber>;
1211
+ maxScore: z.ZodNullable<z.ZodNumber>;
1212
+ decision: z.ZodString;
1213
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1214
+ model: z.ZodNullable<z.ZodString>;
1215
+ harness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
+ inputTokens: z.ZodNullable<z.ZodNumber>;
1217
+ outputTokens: z.ZodNullable<z.ZodNumber>;
1218
+ cacheCreationTokens: z.ZodNullable<z.ZodNumber>;
1219
+ cacheReadTokens: z.ZodNullable<z.ZodNumber>;
1220
+ cachedInputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1221
+ reasoningOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1222
+ thinkingTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1223
+ toolTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1224
+ totalEffectiveTokens: z.ZodNullable<z.ZodNumber>;
1225
+ durationMs: z.ZodNullable<z.ZodNumber>;
1226
+ agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1228
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1229
+ }, z.core.$strip>>;
1230
+ correlation: z.ZodNullable<z.ZodObject<{
1231
+ newIssues: z.ZodNumber;
1232
+ recurringIssues: z.ZodNumber;
1233
+ regressions: z.ZodNumber;
1234
+ observed: z.ZodOptional<z.ZodNumber>;
1235
+ crossAgentMatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
1236
+ issueId: z.ZodString;
1237
+ title: z.ZodString;
1238
+ agent: z.ZodString;
1239
+ crossAgentMatches: z.ZodArray<z.ZodObject<{
1240
+ issueId: z.ZodString;
1241
+ agent: z.ZodString;
1242
+ title: z.ZodString;
1243
+ status: z.ZodString;
1244
+ }, z.core.$strip>>;
1245
+ }, z.core.$strip>>>;
1246
+ }, z.core.$strip>>;
1247
+ deduplicated: z.ZodBoolean;
1248
+ analysisRecords: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
1249
+ id: z.ZodString;
1250
+ runId: z.ZodString;
1251
+ agentName: z.ZodString;
1252
+ agentType: z.ZodString;
1253
+ recordType: z.ZodString;
1254
+ recordId: z.ZodString;
1255
+ title: z.ZodString;
1256
+ classification: z.ZodNullable<z.ZodString>;
1257
+ severity: z.ZodNullable<z.ZodString>;
1258
+ recordData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1259
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1260
+ }, z.core.$strip>>>>;
1261
+ analysisSummary: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1262
+ id: z.ZodString;
1263
+ runId: z.ZodString;
1264
+ agentName: z.ZodString;
1265
+ agentType: z.ZodString;
1266
+ decision: z.ZodString;
1267
+ score: z.ZodNullable<z.ZodNumber>;
1268
+ decisionVocabulary: z.ZodNullable<z.ZodString>;
1269
+ systemMetrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1270
+ categoryScores: z.ZodNullable<z.ZodArray<z.ZodObject<{
1271
+ name: z.ZodString;
1272
+ weight: z.ZodNumber;
1273
+ score: z.ZodNumber;
1274
+ }, z.core.$strip>>>;
1275
+ epistemicAssessment: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1276
+ auditImplications: z.ZodNullable<z.ZodArray<z.ZodString>>;
1277
+ explorationMaps: z.ZodNullable<z.ZodArray<z.ZodObject<{
1278
+ metadata: z.ZodObject<{
1279
+ explorerName: z.ZodString;
1280
+ framework: z.ZodString;
1281
+ artifactPath: z.ZodOptional<z.ZodString>;
1282
+ }, z.core.$strip>;
1283
+ sections: z.ZodArray<z.ZodObject<{
1284
+ type: z.ZodString;
1285
+ label: z.ZodString;
1286
+ summary: z.ZodOptional<z.ZodString>;
1287
+ }, z.core.$loose>>;
1288
+ }, z.core.$strip>>>;
1289
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1290
+ }, z.core.$strip>>>;
1291
+ }, z.core.$strip>;
1292
+ analysisWrite: z.ZodOptional<z.ZodObject<{
1293
+ recordMode: z.ZodString;
1294
+ supersededRecords: z.ZodNumber;
1295
+ supersededSummaries: z.ZodNumber;
1296
+ createdRecords: z.ZodNumber;
1297
+ createdSummaries: z.ZodNumber;
1298
+ }, z.core.$strip>>;
1299
+ }, z.core.$strip>;
1168
1300
  export declare const DiffIssueRefResponseSchema: z.ZodObject<{
1169
1301
  issueId: z.ZodString;
1170
1302
  title: z.ZodString;
@@ -1179,23 +1311,23 @@ export declare const RunDiffResultResponseSchema: z.ZodObject<{
1179
1311
  baseRun: z.ZodObject<{
1180
1312
  id: z.ZodString;
1181
1313
  projectId: z.ZodString;
1182
- authorId: z.ZodNullable<z.ZodString>;
1314
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1183
1315
  runNumber: z.ZodNumber;
1184
1316
  workflowType: z.ZodString;
1185
1317
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
1186
1318
  allGatesPassed: z.ZodNullable<z.ZodBoolean>;
1187
1319
  averageScore: z.ZodNullable<z.ZodNumber>;
1188
- rawMarkdown: z.ZodNullable<z.ZodString>;
1320
+ rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1189
1321
  archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1190
1322
  archiveReason: z.ZodNullable<z.ZodString>;
1191
- idempotencyKey: z.ZodNullable<z.ZodString>;
1192
- payloadHash: z.ZodNullable<z.ZodString>;
1193
- definitionType: z.ZodNullable<z.ZodString>;
1194
- definitionName: z.ZodNullable<z.ZodString>;
1195
- definitionVersion: z.ZodNullable<z.ZodString>;
1196
- definitionHash: z.ZodNullable<z.ZodString>;
1197
- definitionId: z.ZodNullable<z.ZodString>;
1198
- registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1323
+ idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1324
+ payloadHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1325
+ definitionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1326
+ definitionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1327
+ definitionVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1328
+ definitionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1329
+ definitionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1330
+ registrySyncedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1199
1331
  mergedFromProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1200
1332
  mergedFromRunNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1201
1333
  mergedFromIdempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1207,23 +1339,23 @@ export declare const RunDiffResultResponseSchema: z.ZodObject<{
1207
1339
  compareRun: z.ZodObject<{
1208
1340
  id: z.ZodString;
1209
1341
  projectId: z.ZodString;
1210
- authorId: z.ZodNullable<z.ZodString>;
1342
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1211
1343
  runNumber: z.ZodNumber;
1212
1344
  workflowType: z.ZodString;
1213
1345
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
1214
1346
  allGatesPassed: z.ZodNullable<z.ZodBoolean>;
1215
1347
  averageScore: z.ZodNullable<z.ZodNumber>;
1216
- rawMarkdown: z.ZodNullable<z.ZodString>;
1348
+ rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1217
1349
  archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1218
1350
  archiveReason: z.ZodNullable<z.ZodString>;
1219
- idempotencyKey: z.ZodNullable<z.ZodString>;
1220
- payloadHash: z.ZodNullable<z.ZodString>;
1221
- definitionType: z.ZodNullable<z.ZodString>;
1222
- definitionName: z.ZodNullable<z.ZodString>;
1223
- definitionVersion: z.ZodNullable<z.ZodString>;
1224
- definitionHash: z.ZodNullable<z.ZodString>;
1225
- definitionId: z.ZodNullable<z.ZodString>;
1226
- registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1351
+ idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1352
+ payloadHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1353
+ definitionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1354
+ definitionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1355
+ definitionVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1356
+ definitionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1357
+ definitionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
+ registrySyncedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1227
1359
  mergedFromProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
1360
  mergedFromRunNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1229
1361
  mergedFromIdempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1255,23 +1387,23 @@ export declare const RunDetailsResponseSchema: z.ZodObject<{
1255
1387
  run: z.ZodObject<{
1256
1388
  id: z.ZodString;
1257
1389
  projectId: z.ZodString;
1258
- authorId: z.ZodNullable<z.ZodString>;
1390
+ authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1259
1391
  runNumber: z.ZodNumber;
1260
1392
  workflowType: z.ZodString;
1261
1393
  timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
1262
1394
  allGatesPassed: z.ZodNullable<z.ZodBoolean>;
1263
1395
  averageScore: z.ZodNullable<z.ZodNumber>;
1264
- rawMarkdown: z.ZodNullable<z.ZodString>;
1396
+ rawMarkdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1265
1397
  archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1266
1398
  archiveReason: z.ZodNullable<z.ZodString>;
1267
- idempotencyKey: z.ZodNullable<z.ZodString>;
1268
- payloadHash: z.ZodNullable<z.ZodString>;
1269
- definitionType: z.ZodNullable<z.ZodString>;
1270
- definitionName: z.ZodNullable<z.ZodString>;
1271
- definitionVersion: z.ZodNullable<z.ZodString>;
1272
- definitionHash: z.ZodNullable<z.ZodString>;
1273
- definitionId: z.ZodNullable<z.ZodString>;
1274
- registrySyncedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1399
+ idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1400
+ payloadHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1401
+ definitionType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1402
+ definitionName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1403
+ definitionVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ definitionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1405
+ definitionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
+ registrySyncedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1275
1407
  mergedFromProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1276
1408
  mergedFromRunNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1277
1409
  mergedFromIdempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1451,7 +1583,13 @@ export declare const AnalysisSummaryResponseSchema: z.ZodObject<{
1451
1583
  }, z.core.$strip>>>;
1452
1584
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1453
1585
  }, z.core.$strip>;
1454
- /** Full analysis response for a single run */
1586
+ /** Full analysis response for a single run.
1587
+ *
1588
+ * Tolerance window (Train A): pre-flip APIs send `total` (which counted
1589
+ * RECORDS only — the T22 gotcha); API 2.0.0 replaces it with the split
1590
+ * `recordsTotal`/`summariesTotal`. Exactly one of the two sets is present
1591
+ * depending on API version; all three are optional until SDK 6.0.0 pins the
1592
+ * split pair required and drops `total`. */
1455
1593
  export declare const RunAnalysisResponseSchema: z.ZodObject<{
1456
1594
  records: z.ZodArray<z.ZodObject<{
1457
1595
  id: z.ZodString;
@@ -1496,7 +1634,9 @@ export declare const RunAnalysisResponseSchema: z.ZodObject<{
1496
1634
  }, z.core.$strip>>>;
1497
1635
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1498
1636
  }, z.core.$strip>>;
1499
- total: z.ZodNumber;
1637
+ total: z.ZodOptional<z.ZodNumber>;
1638
+ recordsTotal: z.ZodOptional<z.ZodNumber>;
1639
+ summariesTotal: z.ZodOptional<z.ZodNumber>;
1500
1640
  }, z.core.$strip>;
1501
1641
  /** Paginated analysis summaries response (getProjectAnalysis) */
1502
1642
  export declare const ProjectAnalysisListResponseSchema: z.ZodObject<{
@@ -1584,7 +1724,13 @@ export declare const AgentRunSummaryResponseSchema: z.ZodObject<{
1584
1724
  workflowType: z.ZodString;
1585
1725
  snapshotScore: z.ZodNullable<z.ZodNumber>;
1586
1726
  }, z.core.$strip>;
1587
- /** Agent runs analysis response (after SDK envelope unwrap) */
1727
+ /** Agent runs analysis response (after SDK envelope unwrap).
1728
+ *
1729
+ * Tolerance window (Train A): pre-flip wire nests `{data: {items, total}}`;
1730
+ * API 2.0.0 flattens to `{data: [...], total}` (family consistency with its
1731
+ * siblings). getAgentRunsAnalysis reads the raw envelope, accepts either, and
1732
+ * normalizes to `{items, total}` so the 5.x return type is unchanged. SDK
1733
+ * 6.0.0 drops the old arm and flips the return type to `{data, total}`. */
1588
1734
  export declare const AgentRunsAnalysisResponseSchema: z.ZodObject<{
1589
1735
  items: z.ZodArray<z.ZodObject<{
1590
1736
  id: z.ZodString;
@@ -1622,6 +1768,82 @@ export declare const AgentRunsAnalysisResponseSchema: z.ZodObject<{
1622
1768
  }, z.core.$strip>>;
1623
1769
  total: z.ZodNumber;
1624
1770
  }, z.core.$strip>;
1771
+ /** Raw-envelope union for getAgentRunsAnalysis (see tolerance note above). */
1772
+ export declare const AgentRunsAnalysisEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1773
+ data: z.ZodArray<z.ZodObject<{
1774
+ id: z.ZodString;
1775
+ runId: z.ZodString;
1776
+ agentName: z.ZodString;
1777
+ agentType: z.ZodString;
1778
+ decision: z.ZodString;
1779
+ score: z.ZodNullable<z.ZodNumber>;
1780
+ decisionVocabulary: z.ZodNullable<z.ZodString>;
1781
+ systemMetrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1782
+ categoryScores: z.ZodNullable<z.ZodArray<z.ZodObject<{
1783
+ name: z.ZodString;
1784
+ weight: z.ZodNumber;
1785
+ score: z.ZodNumber;
1786
+ }, z.core.$strip>>>;
1787
+ epistemicAssessment: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1788
+ auditImplications: z.ZodNullable<z.ZodArray<z.ZodString>>;
1789
+ explorationMaps: z.ZodNullable<z.ZodArray<z.ZodObject<{
1790
+ metadata: z.ZodObject<{
1791
+ explorerName: z.ZodString;
1792
+ framework: z.ZodString;
1793
+ artifactPath: z.ZodOptional<z.ZodString>;
1794
+ }, z.core.$strip>;
1795
+ sections: z.ZodArray<z.ZodObject<{
1796
+ type: z.ZodString;
1797
+ label: z.ZodString;
1798
+ summary: z.ZodOptional<z.ZodString>;
1799
+ }, z.core.$loose>>;
1800
+ }, z.core.$strip>>>;
1801
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1802
+ runNumber: z.ZodNumber;
1803
+ runTimestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
1804
+ workflowType: z.ZodString;
1805
+ snapshotScore: z.ZodNullable<z.ZodNumber>;
1806
+ }, z.core.$strip>>;
1807
+ total: z.ZodNumber;
1808
+ }, z.core.$strip>, z.ZodObject<{
1809
+ data: z.ZodObject<{
1810
+ items: z.ZodArray<z.ZodObject<{
1811
+ id: z.ZodString;
1812
+ runId: z.ZodString;
1813
+ agentName: z.ZodString;
1814
+ agentType: z.ZodString;
1815
+ decision: z.ZodString;
1816
+ score: z.ZodNullable<z.ZodNumber>;
1817
+ decisionVocabulary: z.ZodNullable<z.ZodString>;
1818
+ systemMetrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1819
+ categoryScores: z.ZodNullable<z.ZodArray<z.ZodObject<{
1820
+ name: z.ZodString;
1821
+ weight: z.ZodNumber;
1822
+ score: z.ZodNumber;
1823
+ }, z.core.$strip>>>;
1824
+ epistemicAssessment: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1825
+ auditImplications: z.ZodNullable<z.ZodArray<z.ZodString>>;
1826
+ explorationMaps: z.ZodNullable<z.ZodArray<z.ZodObject<{
1827
+ metadata: z.ZodObject<{
1828
+ explorerName: z.ZodString;
1829
+ framework: z.ZodString;
1830
+ artifactPath: z.ZodOptional<z.ZodString>;
1831
+ }, z.core.$strip>;
1832
+ sections: z.ZodArray<z.ZodObject<{
1833
+ type: z.ZodString;
1834
+ label: z.ZodString;
1835
+ summary: z.ZodOptional<z.ZodString>;
1836
+ }, z.core.$loose>>;
1837
+ }, z.core.$strip>>>;
1838
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
1839
+ runNumber: z.ZodNumber;
1840
+ runTimestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
1841
+ workflowType: z.ZodString;
1842
+ snapshotScore: z.ZodNullable<z.ZodNumber>;
1843
+ }, z.core.$strip>>;
1844
+ total: z.ZodNumber;
1845
+ }, z.core.$strip>;
1846
+ }, z.core.$strip>]>;
1625
1847
  export declare const MergeIssuesResultResponseSchema: z.ZodObject<{
1626
1848
  targetIssue: z.ZodOptional<z.ZodObject<{
1627
1849
  id: z.ZodString;
@@ -1699,7 +1921,14 @@ export declare const MergeIssuesResultResponseSchema: z.ZodObject<{
1699
1921
  * authoritative HTTP surface (error-code stability policy), unlike the
1700
1922
  * camelCase business-object responses elsewhere in this API.
1701
1923
  */
1702
- export declare const MergeProjectsResultResponseSchema: z.ZodObject<{
1924
+ /**
1925
+ * Tolerance window (Train A): API < 2.0.0 sends the spec-§5 snake_case shape;
1926
+ * API 2.0.0 (spec 0.3.5) renames to camelCase. The union accepts either wire;
1927
+ * `normalizeMergeProjectsResult` in operations/projects.ts maps camel → snake
1928
+ * so the 5.x return type is unchanged. SDK 6.0.0 drops the snake arm and
1929
+ * flips the return type to camelCase.
1930
+ */
1931
+ export declare const MergeProjectsResultSnakeSchema: z.ZodObject<{
1703
1932
  source: z.ZodObject<{
1704
1933
  id: z.ZodString;
1705
1934
  name: z.ZodString;
@@ -1740,6 +1969,128 @@ export declare const MergeProjectsResultResponseSchema: z.ZodObject<{
1740
1969
  dry_run: z.ZodBoolean;
1741
1970
  }, z.core.$strip>;
1742
1971
  }, z.core.$strip>;
1972
+ export declare const MergeProjectsResultCamelSchema: z.ZodObject<{
1973
+ source: z.ZodObject<{
1974
+ id: z.ZodString;
1975
+ name: z.ZodString;
1976
+ runCount: z.ZodNumber;
1977
+ issueCount: z.ZodNumber;
1978
+ statusAfter: z.ZodEnum<{
1979
+ "soft-deleted": "soft-deleted";
1980
+ retained: "retained";
1981
+ "dry-run": "dry-run";
1982
+ }>;
1983
+ }, z.core.$strip>;
1984
+ target: z.ZodObject<{
1985
+ id: z.ZodString;
1986
+ name: z.ZodString;
1987
+ runCountBefore: z.ZodNumber;
1988
+ issueCountBefore: z.ZodNumber;
1989
+ runCountAfter: z.ZodNumber;
1990
+ issueCountAfter: z.ZodNumber;
1991
+ }, z.core.$strip>;
1992
+ moved: z.ZodObject<{
1993
+ runs: z.ZodNumber;
1994
+ issues: z.ZodNumber;
1995
+ issueDedupes: z.ZodNumber;
1996
+ occurrencesReparented: z.ZodNumber;
1997
+ issueNotesReparented: z.ZodNumber;
1998
+ statusHistoryReparented: z.ZodNumber;
1999
+ }, z.core.$strip>;
2000
+ conflicts: z.ZodArray<z.ZodObject<{
2001
+ kind: z.ZodString;
2002
+ sourceId: z.ZodString;
2003
+ targetId: z.ZodString;
2004
+ resolution: z.ZodString;
2005
+ }, z.core.$strip>>;
2006
+ audit: z.ZodObject<{
2007
+ mergeId: z.ZodString;
2008
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
2009
+ actorId: z.ZodString;
2010
+ dryRun: z.ZodBoolean;
2011
+ }, z.core.$strip>;
2012
+ }, z.core.$strip>;
2013
+ export declare const MergeProjectsResultResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2014
+ source: z.ZodObject<{
2015
+ id: z.ZodString;
2016
+ name: z.ZodString;
2017
+ run_count: z.ZodNumber;
2018
+ issue_count: z.ZodNumber;
2019
+ status_after: z.ZodEnum<{
2020
+ "soft-deleted": "soft-deleted";
2021
+ retained: "retained";
2022
+ "dry-run": "dry-run";
2023
+ }>;
2024
+ }, z.core.$strip>;
2025
+ target: z.ZodObject<{
2026
+ id: z.ZodString;
2027
+ name: z.ZodString;
2028
+ run_count_before: z.ZodNumber;
2029
+ issue_count_before: z.ZodNumber;
2030
+ run_count_after: z.ZodNumber;
2031
+ issue_count_after: z.ZodNumber;
2032
+ }, z.core.$strip>;
2033
+ moved: z.ZodObject<{
2034
+ runs: z.ZodNumber;
2035
+ issues: z.ZodNumber;
2036
+ issue_dedupes: z.ZodNumber;
2037
+ occurrences_reparented: z.ZodNumber;
2038
+ issue_notes_reparented: z.ZodNumber;
2039
+ status_history_reparented: z.ZodNumber;
2040
+ }, z.core.$strip>;
2041
+ conflicts: z.ZodArray<z.ZodObject<{
2042
+ kind: z.ZodString;
2043
+ source_id: z.ZodString;
2044
+ target_id: z.ZodString;
2045
+ resolution: z.ZodString;
2046
+ }, z.core.$strip>>;
2047
+ audit: z.ZodObject<{
2048
+ merge_id: z.ZodString;
2049
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
2050
+ actor_id: z.ZodString;
2051
+ dry_run: z.ZodBoolean;
2052
+ }, z.core.$strip>;
2053
+ }, z.core.$strip>, z.ZodObject<{
2054
+ source: z.ZodObject<{
2055
+ id: z.ZodString;
2056
+ name: z.ZodString;
2057
+ runCount: z.ZodNumber;
2058
+ issueCount: z.ZodNumber;
2059
+ statusAfter: z.ZodEnum<{
2060
+ "soft-deleted": "soft-deleted";
2061
+ retained: "retained";
2062
+ "dry-run": "dry-run";
2063
+ }>;
2064
+ }, z.core.$strip>;
2065
+ target: z.ZodObject<{
2066
+ id: z.ZodString;
2067
+ name: z.ZodString;
2068
+ runCountBefore: z.ZodNumber;
2069
+ issueCountBefore: z.ZodNumber;
2070
+ runCountAfter: z.ZodNumber;
2071
+ issueCountAfter: z.ZodNumber;
2072
+ }, z.core.$strip>;
2073
+ moved: z.ZodObject<{
2074
+ runs: z.ZodNumber;
2075
+ issues: z.ZodNumber;
2076
+ issueDedupes: z.ZodNumber;
2077
+ occurrencesReparented: z.ZodNumber;
2078
+ issueNotesReparented: z.ZodNumber;
2079
+ statusHistoryReparented: z.ZodNumber;
2080
+ }, z.core.$strip>;
2081
+ conflicts: z.ZodArray<z.ZodObject<{
2082
+ kind: z.ZodString;
2083
+ sourceId: z.ZodString;
2084
+ targetId: z.ZodString;
2085
+ resolution: z.ZodString;
2086
+ }, z.core.$strip>>;
2087
+ audit: z.ZodObject<{
2088
+ mergeId: z.ZodString;
2089
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
2090
+ actorId: z.ZodString;
2091
+ dryRun: z.ZodBoolean;
2092
+ }, z.core.$strip>;
2093
+ }, z.core.$strip>]>;
1743
2094
  export declare const BulkStatusUpdateResultResponseSchema: z.ZodObject<{
1744
2095
  updated: z.ZodNumber;
1745
2096
  failed: z.ZodArray<z.ZodString>;
@@ -1747,8 +2098,8 @@ export declare const BulkStatusUpdateResultResponseSchema: z.ZodObject<{
1747
2098
  export declare const AgentPerformanceResponseSchema: z.ZodObject<{
1748
2099
  name: z.ZodString;
1749
2100
  totalRuns: z.ZodNumber;
1750
- averageScore: z.ZodNumber;
1751
- passRate: z.ZodNumber;
2101
+ averageScore: z.ZodNullable<z.ZodNumber>;
2102
+ passRate: z.ZodNullable<z.ZodNumber>;
1752
2103
  totalIssuesFound: z.ZodNumber;
1753
2104
  }, z.core.$strip>;
1754
2105
  export declare const AgentLifecycleEntryResponseSchema: z.ZodObject<{
@@ -1756,8 +2107,8 @@ export declare const AgentLifecycleEntryResponseSchema: z.ZodObject<{
1756
2107
  definitionVersion: z.ZodString;
1757
2108
  firstSeenAt: z.ZodString;
1758
2109
  runs: z.ZodNumber;
1759
- avgScore: z.ZodNumber;
1760
- passRate: z.ZodNumber;
2110
+ avgScore: z.ZodNullable<z.ZodNumber>;
2111
+ passRate: z.ZodNullable<z.ZodNumber>;
1761
2112
  }, z.core.$strip>;
1762
2113
  export declare const AgentReliabilityResponseSchema: z.ZodObject<{
1763
2114
  name: z.ZodString;