@oro-ai/sdk 1.0.111 → 1.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
3
  import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
4
- import type { HealthCheckError, HealthCheckResponse, DeepHealthCheckError, DeepHealthCheckResponse, ListSuitesError, ListSuitesResponse, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, GetTrajectoryHistoryError, GetTrajectoryHistoryResponse, GetTopMinerPayoutError, GetTopMinerPayoutResponse, GetTopHistoryData, GetTopHistoryError, GetTopHistoryResponse, GetAgentVersionStatusData, GetAgentVersionStatusError, GetAgentVersionStatusResponse, GetAgentVersionRunsData, GetAgentVersionRunsError, GetAgentVersionRunsResponse, GetAgentVersionProblemsData, GetAgentVersionProblemsError, GetAgentVersionProblemsResponse, GetAgentVersionData, GetAgentVersionError, GetAgentVersionResponse, GetArtifactDownloadUrlData, GetArtifactDownloadUrlError, GetArtifactDownloadUrlResponse, GetEvaluationRunData, GetEvaluationRunError, GetEvaluationRunResponse, GetValidatorsError, GetValidatorsResponse, GetRunningEvaluationsError, GetRunningEvaluationsResponse, GetPendingEvaluationsData, GetPendingEvaluationsError, GetPendingEvaluationsResponse, GetCurrentRaceError, GetCurrentRaceResponse, GetRaceHistoryData, GetRaceHistoryError, GetRaceHistoryResponse, GetRaceDetailData, GetRaceDetailError, GetRaceDetailResponse, GetRaceValidatorVarianceData, GetRaceValidatorVarianceError, GetRaceValidatorVarianceResponse, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, GetInferenceModelsData, GetInferenceModelsError, GetInferenceModelsResponse, RequestChallengeData, RequestChallengeError, RequestChallengeResponse, CreateSessionEndpointData, CreateSessionEndpointError, CreateSessionEndpointResponse, LogoutData, LogoutError, LogoutResponse2, SubmitAgentData, SubmitAgentError, SubmitAgentResponse2, StoreInferenceCredentialData, StoreInferenceCredentialError, StoreInferenceCredentialResponse, GetInferenceAuthStatusOneData, GetInferenceAuthStatusOneError, GetInferenceAuthStatusOneResponse, DeleteInferenceCredentialData, DeleteInferenceCredentialError, DeleteInferenceCredentialResponse, ListInferenceAuthError, ListInferenceAuthResponse, SetDefaultInferenceProviderData, SetDefaultInferenceProviderError, SetDefaultInferenceProviderResponse, StoreChutesTokenData, StoreChutesTokenError, StoreChutesTokenResponse, GetChutesAuthStatusError, GetChutesAuthStatusResponse, ExchangeChutesCodeData, ExchangeChutesCodeError, ExchangeChutesCodeResponse2, ListMinerAgentsError, ListMinerAgentsResponse, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsResponse, GetOwnedAgentVersionStatusData, GetOwnedAgentVersionStatusError, GetOwnedAgentVersionStatusResponse, SetRaceSelectionData, SetRaceSelectionError, SetRaceSelectionResponse, ClearRaceSelectionError, ClearRaceSelectionResponse, ClaimWorkData, ClaimWorkError, ClaimWorkResponse2, HeartbeatData, HeartbeatError, HeartbeatResponse2, UpdateProgressData, UpdateProgressError, UpdateProgressResponse, PresignUploadData, PresignUploadError, PresignUploadResponse2, CompleteRunData, CompleteRunError, CompleteRunResponse2, GetRunProblemsData, GetRunProblemsError, GetRunProblemsResponse, GetWeightSaltError, GetWeightSaltResponse, BanMinerData, BanMinerError, BanMinerResponse, UnbanMinerData, UnbanMinerError, UnbanMinerResponse, BanValidatorData, BanValidatorError, BanValidatorResponse, UnbanValidatorData, UnbanValidatorError, UnbanValidatorResponse, UpdateValidatorData, UpdateValidatorError, UpdateValidatorResponse, DiscardAgentVersionData, DiscardAgentVersionError, DiscardAgentVersionResponse, ReinstateAgentVersionData, ReinstateAgentVersionError, ReinstateAgentVersionResponse, EliminateAgentVersionData, EliminateAgentVersionError, EliminateAgentVersionResponse, ReinstateEliminationData, ReinstateEliminationError, ReinstateEliminationResponse2, SetTopAgentData, SetTopAgentError, SetTopAgentResponse, InvalidateEvaluationRunData, InvalidateEvaluationRunError, InvalidateEvaluationRunResponse, ReevaluateAgentVersionData, ReevaluateAgentVersionError, ReevaluateAgentVersionResponse, CancelAgentVersionData, CancelAgentVersionError, CancelAgentVersionResponse, CreateSuiteData, CreateSuiteError, CreateSuiteResponse2, ActivateSuiteData, ActivateSuiteError, ActivateSuiteResponse2, GetAuditEventsData, GetAuditEventsError, GetAuditEventsResponse, GetReaperStatsError, GetReaperStatsResponse, ClearMinerCooldownData, ClearMinerCooldownError, ClearMinerCooldownResponse, ListMinersData, ListMinersError, ListMinersResponse, ListValidatorsData, ListValidatorsError, ListValidatorsResponse, ListAgentVersions1Data, ListAgentVersions1Error, ListAgentVersions1Response, ListEvaluationRunsData, ListEvaluationRunsError, ListEvaluationRunsResponse, GetValidatorScoresData, GetValidatorScoresError, GetValidatorScoresResponse, GetAgentVersionVarianceData, GetAgentVersionVarianceError, GetAgentVersionVarianceResponse, GetAgentVersionCodeData, GetAgentVersionCodeError, GetAgentVersionCodeResponse, GetCurrentRacesError, GetCurrentRacesResponse, GetRaceDiagnosticsData, GetRaceDiagnosticsError, GetRaceDiagnosticsResponse, UpdateQualifyingDeadlineData, UpdateQualifyingDeadlineError, UpdateQualifyingDeadlineResponse2, CloseQualifyingError, CloseQualifyingResponse2, GetValidatorResourceSamplesData, GetValidatorResourceSamplesError, GetValidatorResourceSamplesResponse, GetValidatorFailuresData, GetValidatorFailuresError, GetValidatorFailuresResponse, GetSubmissionPauseError, GetSubmissionPauseResponse, PostSubmissionPauseData, PostSubmissionPauseError, PostSubmissionPauseResponse, PostSubmissionResumeData, PostSubmissionResumeError, PostSubmissionResumeResponse, GetValidatorPauseError, GetValidatorPauseResponse, PostValidatorPauseData, PostValidatorPauseError, PostValidatorPauseResponse, PostValidatorResumeData, PostValidatorResumeError, PostValidatorResumeResponse, ApiProblemsData, ApiProblemsError, ApiProblemsResponse, ApiRunData, ApiRunError, ApiRunResponse } from './types.gen';
4
+ import type { HealthCheckError, HealthCheckResponse, DeepHealthCheckError, DeepHealthCheckResponse, ListSuitesError, ListSuitesResponse, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, GetTrajectoryHistoryError, GetTrajectoryHistoryResponse, GetTopMinerPayoutError, GetTopMinerPayoutResponse, GetTopHistoryData, GetTopHistoryError, GetTopHistoryResponse, GetAgentVersionStatusData, GetAgentVersionStatusError, GetAgentVersionStatusResponse, GetAgentVersionRunsData, GetAgentVersionRunsError, GetAgentVersionRunsResponse, GetAgentVersionProblemsData, GetAgentVersionProblemsError, GetAgentVersionProblemsResponse, GetAgentVersionData, GetAgentVersionError, GetAgentVersionResponse, GetArtifactDownloadUrlData, GetArtifactDownloadUrlError, GetArtifactDownloadUrlResponse, GetEvaluationRunData, GetEvaluationRunError, GetEvaluationRunResponse, GetValidatorsError, GetValidatorsResponse, GetRunningEvaluationsError, GetRunningEvaluationsResponse, GetPendingEvaluationsData, GetPendingEvaluationsError, GetPendingEvaluationsResponse, GetCurrentRaceError, GetCurrentRaceResponse, GetRaceHistoryData, GetRaceHistoryError, GetRaceHistoryResponse, GetRaceDetailData, GetRaceDetailError, GetRaceDetailResponse, GetRaceValidatorVarianceData, GetRaceValidatorVarianceError, GetRaceValidatorVarianceResponse, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, GetInferenceModelsData, GetInferenceModelsError, GetInferenceModelsResponse, RequestChallengeData, RequestChallengeError, RequestChallengeResponse, CreateSessionEndpointData, CreateSessionEndpointError, CreateSessionEndpointResponse, LogoutData, LogoutError, LogoutResponse2, SubmitAgentData, SubmitAgentError, SubmitAgentResponse2, StoreInferenceCredentialData, StoreInferenceCredentialError, StoreInferenceCredentialResponse, GetInferenceAuthStatusOneData, GetInferenceAuthStatusOneError, GetInferenceAuthStatusOneResponse, DeleteInferenceCredentialData, DeleteInferenceCredentialError, DeleteInferenceCredentialResponse, ListInferenceAuthError, ListInferenceAuthResponse, SetDefaultInferenceProviderData, SetDefaultInferenceProviderError, SetDefaultInferenceProviderResponse, StoreChutesTokenData, StoreChutesTokenError, StoreChutesTokenResponse, GetChutesAuthStatusError, GetChutesAuthStatusResponse, ExchangeChutesCodeData, ExchangeChutesCodeError, ExchangeChutesCodeResponse2, ListMinerAgentsError, ListMinerAgentsResponse, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsResponse, GetOwnedAgentVersionStatusData, GetOwnedAgentVersionStatusError, GetOwnedAgentVersionStatusResponse, SetRaceSelectionData, SetRaceSelectionError, SetRaceSelectionResponse, ClearRaceSelectionError, ClearRaceSelectionResponse, ClaimWorkData, ClaimWorkError, ClaimWorkResponse2, HeartbeatData, HeartbeatError, HeartbeatResponse2, UpdateProgressData, UpdateProgressError, UpdateProgressResponse, PresignUploadData, PresignUploadError, PresignUploadResponse2, CompleteRunData, CompleteRunError, CompleteRunResponse2, GetRunProblemsData, GetRunProblemsError, GetRunProblemsResponse, GetWeightSaltError, GetWeightSaltResponse, BanMinerData, BanMinerError, BanMinerResponse, UnbanMinerData, UnbanMinerError, UnbanMinerResponse, BanValidatorData, BanValidatorError, BanValidatorResponse, UnbanValidatorData, UnbanValidatorError, UnbanValidatorResponse, UpdateValidatorData, UpdateValidatorError, UpdateValidatorResponse, DiscardAgentVersionData, DiscardAgentVersionError, DiscardAgentVersionResponse, ReinstateAgentVersionData, ReinstateAgentVersionError, ReinstateAgentVersionResponse, EliminateAgentVersionData, EliminateAgentVersionError, EliminateAgentVersionResponse, ReinstateEliminationData, ReinstateEliminationError, ReinstateEliminationResponse2, SetTopAgentData, SetTopAgentError, SetTopAgentResponse, InvalidateEvaluationRunData, InvalidateEvaluationRunError, InvalidateEvaluationRunResponse, ReevaluateAgentVersionData, ReevaluateAgentVersionError, ReevaluateAgentVersionResponse, CancelAgentVersionData, CancelAgentVersionError, CancelAgentVersionResponse, CreateSuiteData, CreateSuiteError, CreateSuiteResponse2, ActivateSuiteData, ActivateSuiteError, ActivateSuiteResponse2, GetAuditEventsData, GetAuditEventsError, GetAuditEventsResponse, GetReaperStatsError, GetReaperStatsResponse, ClearMinerCooldownData, ClearMinerCooldownError, ClearMinerCooldownResponse, ClearAllMinerCooldownsError, ClearAllMinerCooldownsResponse, ListMinersData, ListMinersError, ListMinersResponse, ListValidatorsData, ListValidatorsError, ListValidatorsResponse, ListAgentVersions1Data, ListAgentVersions1Error, ListAgentVersions1Response, ListEvaluationRunsData, ListEvaluationRunsError, ListEvaluationRunsResponse, GetValidatorScoresData, GetValidatorScoresError, GetValidatorScoresResponse, GetAgentVersionVarianceData, GetAgentVersionVarianceError, GetAgentVersionVarianceResponse, GetAgentVersionCodeData, GetAgentVersionCodeError, GetAgentVersionCodeResponse, GetCurrentRacesError, GetCurrentRacesResponse, GetRaceDiagnosticsData, GetRaceDiagnosticsError, GetRaceDiagnosticsResponse, UpdateQualifyingDeadlineData, UpdateQualifyingDeadlineError, UpdateQualifyingDeadlineResponse2, CloseQualifyingError, CloseQualifyingResponse2, GetValidatorResourceSamplesData, GetValidatorResourceSamplesError, GetValidatorResourceSamplesResponse, GetValidatorFailuresData, GetValidatorFailuresError, GetValidatorFailuresResponse, GetSubmissionPauseError, GetSubmissionPauseResponse, PostSubmissionPauseData, PostSubmissionPauseError, PostSubmissionPauseResponse, PostSubmissionResumeData, PostSubmissionResumeError, PostSubmissionResumeResponse, GetValidatorPauseError, GetValidatorPauseResponse, PostValidatorPauseData, PostValidatorPauseError, PostValidatorPauseResponse, PostValidatorResumeData, PostValidatorResumeError, PostValidatorResumeResponse, GetPackData, GetPackError, GetPackResponse, GetRacePackData, GetRacePackError, GetRacePackResponse, PresignEpisodeArtifactData, PresignEpisodeArtifactError, PresignEpisodeArtifactResponse, SubmitEpisodeResultsData, SubmitEpisodeResultsError, SubmitEpisodeResultsResponse2, ApiProblemsData, ApiProblemsError, ApiProblemsResponse, ApiRunData, ApiRunError, ApiRunResponse } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -853,6 +853,17 @@ export const clearMinerCooldown = <ThrowOnError extends boolean = false>(options
853
853
  });
854
854
  };
855
855
 
856
+ /**
857
+ * Clear all miner cooldowns
858
+ * Delete every active miner submission cooldown in one call. Returns the number of cooldowns cleared. Idempotent.
859
+ */
860
+ export const clearAllMinerCooldowns = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
861
+ return (options?.client ?? client).post<ClearAllMinerCooldownsResponse, ClearAllMinerCooldownsError, ThrowOnError>({
862
+ ...options,
863
+ url: '/v1/admin/miners/clear-all-cooldowns'
864
+ });
865
+ };
866
+
856
867
  /**
857
868
  * List miners with ban status and agent count
858
869
  * List all miners with their ban status, agent count, and last submission time.
@@ -1062,6 +1073,50 @@ export const postValidatorResume = <ThrowOnError extends boolean = false>(option
1062
1073
  });
1063
1074
  };
1064
1075
 
1076
+ /**
1077
+ * Get an authorized environment pack download
1078
+ * Return a time-limited download URL and version metadata. Verify the delivered bytes against download_url_sha256; pack_sha256 identifies the parent pack.
1079
+ */
1080
+ export const getPack = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPackData, ThrowOnError>) => {
1081
+ return (options?.client ?? client).get<GetPackResponse, GetPackError, ThrowOnError>({
1082
+ ...options,
1083
+ url: '/v1/validator/pack/{pack_sha256}'
1084
+ });
1085
+ };
1086
+
1087
+ /**
1088
+ * Get an environment download for assigned work
1089
+ * Return a time-limited download for the selected tasks. Requires active assigned work. Verify the delivered bytes against download_url_sha256.
1090
+ */
1091
+ export const getRacePack = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRacePackData, ThrowOnError>) => {
1092
+ return (options?.client ?? client).post<GetRacePackResponse, GetRacePackError, ThrowOnError>({
1093
+ ...options,
1094
+ url: '/v1/validator/race/{race_id}/pack'
1095
+ });
1096
+ };
1097
+
1098
+ /**
1099
+ * Get an upload URL for an environment episode artifact
1100
+ * Return a content-addressed upload target for an evaluation owned by the caller.
1101
+ */
1102
+ export const presignEpisodeArtifact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PresignEpisodeArtifactData, ThrowOnError>) => {
1103
+ return (options?.client ?? client).post<PresignEpisodeArtifactResponse, PresignEpisodeArtifactError, ThrowOnError>({
1104
+ ...options,
1105
+ url: '/v1/validator/episode-artifacts/presign'
1106
+ });
1107
+ };
1108
+
1109
+ /**
1110
+ * Submit environment episode results
1111
+ * Submit up to 500 episode results for evaluations owned by the caller. HTTP 200 is a batch acknowledgement: inspect each item's status for acceptance (201), an already-recorded task (409), or rejection (404/422).
1112
+ */
1113
+ export const submitEpisodeResults = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SubmitEpisodeResultsData, ThrowOnError>) => {
1114
+ return (options?.client ?? client).post<SubmitEpisodeResultsResponse2, SubmitEpisodeResultsError, ThrowOnError>({
1115
+ ...options,
1116
+ url: '/v1/validator/episode-results'
1117
+ });
1118
+ };
1119
+
1065
1120
  /**
1066
1121
  * Api Problems
1067
1122
  */
@@ -1030,6 +1030,13 @@ export type ClaimWorkResponse = {
1030
1030
  inference_token?: (InferenceTokenGrant | null);
1031
1031
  };
1032
1032
 
1033
+ export type ClearAllCooldownsResponse = {
1034
+ /**
1035
+ * Number of miner cooldowns cleared
1036
+ */
1037
+ cleared_count: number;
1038
+ };
1039
+
1033
1040
  export type ClearCooldownResponse = {
1034
1041
  /**
1035
1042
  * Whether the cooldown was cleared
@@ -1256,6 +1263,119 @@ export type EliminateResponse = {
1256
1263
  eliminated_at: string;
1257
1264
  };
1258
1265
 
1266
+ /**
1267
+ * Request error from an environment operation or its authentication middleware.
1268
+ */
1269
+ export type EnvPackErrorResponse = {
1270
+ /**
1271
+ * Error message or structured details. Inspect the HTTP status for retries.
1272
+ */
1273
+ detail: (string | {
1274
+ [key: string]: unknown;
1275
+ });
1276
+ };
1277
+
1278
+ /**
1279
+ * Request an immutable upload target for one environment episode.
1280
+ */
1281
+ export type EpisodeArtifactPresignRequest = {
1282
+ eval_run_id: string;
1283
+ env_pack_sha256: string;
1284
+ artifact_sha256: string;
1285
+ content_length: number;
1286
+ };
1287
+
1288
+ /**
1289
+ * Content-addressed S3 target returned to the owning validator.
1290
+ */
1291
+ export type EpisodeArtifactPresignResponse = {
1292
+ upload_url: string;
1293
+ artifact_uri: string;
1294
+ artifact_sha256: string;
1295
+ };
1296
+
1297
+ /**
1298
+ * A validator's terminal result for one task in a bound environment pack.
1299
+ */
1300
+ export type EpisodeResultEntry = {
1301
+ /**
1302
+ * Evaluation run this episode belongs to.
1303
+ */
1304
+ eval_run_id: string;
1305
+ /**
1306
+ * Pack the task was compiled from.
1307
+ */
1308
+ env_pack_sha256: string;
1309
+ /**
1310
+ * Task identifier within the bound pack.
1311
+ */
1312
+ task_id: string;
1313
+ /**
1314
+ * Task family name (retrieval_recall, intent_decomposition, ...).
1315
+ */
1316
+ family: string;
1317
+ /**
1318
+ * Terminal task outcome.
1319
+ */
1320
+ outcome: 'completed' | 'partial' | 'agent_error' | 'environment_error' | 'verifier_error' | 'leakage' | 'exploit';
1321
+ /**
1322
+ * Whether the deterministic hard gate passed.
1323
+ */
1324
+ verdict_correct?: boolean;
1325
+ /**
1326
+ * Per-check tri-state results (final_in_gold, within_budget, ...).
1327
+ */
1328
+ verdict_checks?: {
1329
+ [key: string]: unknown;
1330
+ };
1331
+ /**
1332
+ * Bounded per-family reward gradients — only paid when verdict_correct.
1333
+ */
1334
+ reward_components?: {
1335
+ [key: string]: unknown;
1336
+ };
1337
+ /**
1338
+ * Terminal reward paid for this episode. MUST be null when verdict_correct is false.
1339
+ */
1340
+ aggregate_reward?: (number | string | null);
1341
+ /**
1342
+ * sha256 of the ledger's final state — cross-validator parity anchor. Required for completed / partial / leakage / exploit; MUST be null for the *_error outcomes (no state to compare).
1343
+ */
1344
+ terminal_state_hash?: (string | null);
1345
+ /**
1346
+ * S3 URI of the complete episode artifact, including its ledger.
1347
+ */
1348
+ ledger_uri?: (string | null);
1349
+ /**
1350
+ * Number of agent steps taken before termination.
1351
+ */
1352
+ step_count?: number;
1353
+ };
1354
+
1355
+ /**
1356
+ * Terminal task outcome.
1357
+ */
1358
+ export type outcome = 'completed' | 'partial' | 'agent_error' | 'environment_error' | 'verifier_error' | 'leakage' | 'exploit';
1359
+
1360
+ /**
1361
+ * Per-item result inside ``SubmitEpisodeResultsResponse``.
1362
+ */
1363
+ export type EpisodeResultSubmission = {
1364
+ eval_run_id: string;
1365
+ task_id: string;
1366
+ status: 201 | 409 | 404 | 422;
1367
+ /**
1368
+ * Populated when status=201 (row was written).
1369
+ */
1370
+ episode_result_id?: (string | null);
1371
+ /**
1372
+ * Populated when status != 201; short human-readable reason.
1373
+ */
1374
+ error?: (string | null);
1375
+ };
1376
+
1377
+ export type status = 201 | 409 | 404 | 422;
1378
+
1259
1379
  /**
1260
1380
  * Base weight standings pinned to one epoch (ORO-1704).
1261
1381
  *
@@ -2022,6 +2142,54 @@ export type NotVersionOwnerError = {
2022
2142
  error_code?: "NOT_VERSION_OWNER";
2023
2143
  };
2024
2144
 
2145
+ /**
2146
+ * Authorized environment delivery and its parent pack identity.
2147
+ *
2148
+ * Verify downloaded bytes against ``download_url_sha256``, not the parent
2149
+ * ``pack_sha256``. Only tasks authorized for this delivery are included.
2150
+ */
2151
+ export type PackFetchResponse = {
2152
+ /**
2153
+ * Content-addressed parent pack identity.
2154
+ */
2155
+ pack_sha256: string;
2156
+ /**
2157
+ * Time-limited URL for the authorized archive.
2158
+ */
2159
+ download_url: string;
2160
+ download_url_expires_at: string;
2161
+ /**
2162
+ * SHA-256 of the delivered archive bytes.
2163
+ */
2164
+ download_url_sha256: string;
2165
+ /**
2166
+ * Byte size of the delivered archive.
2167
+ */
2168
+ download_url_size_bytes: number;
2169
+ /**
2170
+ * Derivative bytes are not covered by the parent artifact signature.
2171
+ */
2172
+ artifact_signature?: null;
2173
+ delivery_scope?: "qualifying";
2174
+ /**
2175
+ * Exact task roster authorized in this delivery.
2176
+ */
2177
+ delivery_task_ids: Array<(string)>;
2178
+ contract_version: string;
2179
+ runtime_version: string;
2180
+ tool_contract_version: string;
2181
+ verifier_version: string;
2182
+ result_schema_version: string;
2183
+ catalog_epoch: string;
2184
+ catalog_sha256: string;
2185
+ search_index_epoch: (string | null);
2186
+ search_index_sha256: (string | null);
2187
+ task_count: number;
2188
+ family_counts: {
2189
+ [key: string]: (number);
2190
+ };
2191
+ };
2192
+
2025
2193
  export type PendingEvaluation = {
2026
2194
  /**
2027
2195
  * Unique work item identifier
@@ -2411,6 +2579,54 @@ export type RaceNotFoundError = {
2411
2579
  error_code?: "RACE_NOT_FOUND";
2412
2580
  };
2413
2581
 
2582
+ /**
2583
+ * Environment delivery scoped to the caller's active assigned work.
2584
+ *
2585
+ * Verify downloaded bytes against ``download_url_sha256``. The parent
2586
+ * ``pack_sha256`` identifies the environment against which results are bound.
2587
+ */
2588
+ export type RacePackFetchResponse = {
2589
+ /**
2590
+ * Evaluation group containing the assigned work.
2591
+ */
2592
+ race_id: string;
2593
+ /**
2594
+ * Content-addressed parent pack identity.
2595
+ */
2596
+ pack_sha256: string;
2597
+ /**
2598
+ * Time-limited URL for the assigned-work archive.
2599
+ */
2600
+ download_url: string;
2601
+ download_url_expires_at: string;
2602
+ /**
2603
+ * SHA-256 of the delivered archive bytes.
2604
+ */
2605
+ download_url_sha256: string;
2606
+ /**
2607
+ * Byte size of the delivered archive.
2608
+ */
2609
+ download_url_size_bytes: number;
2610
+ delivery_scope?: "race";
2611
+ /**
2612
+ * Exact task roster authorized in this delivery.
2613
+ */
2614
+ delivery_task_ids: Array<(string)>;
2615
+ contract_version: string;
2616
+ runtime_version: string;
2617
+ tool_contract_version: string;
2618
+ verifier_version: string;
2619
+ result_schema_version: string;
2620
+ catalog_epoch: string;
2621
+ catalog_sha256: string;
2622
+ search_index_epoch: (string | null);
2623
+ search_index_sha256: (string | null);
2624
+ task_count: number;
2625
+ family_counts: {
2626
+ [key: string]: (number);
2627
+ };
2628
+ };
2629
+
2414
2630
  export type RacePublic = {
2415
2631
  /**
2416
2632
  * Race ID
@@ -3058,6 +3274,32 @@ export type SubmitAgentResponse = {
3058
3274
  message?: string;
3059
3275
  };
3060
3276
 
3277
+ /**
3278
+ * Submit between 1 and 500 episode results in a single request.
3279
+ */
3280
+ export type SubmitEpisodeResultsRequest = {
3281
+ /**
3282
+ * Non-empty list of episode outcomes. Split more than 500 results into multiple requests.
3283
+ */
3284
+ results: Array<EpisodeResultEntry>;
3285
+ };
3286
+
3287
+ /**
3288
+ * Acknowledgement for a processed batch; inspect every per-item status.
3289
+ *
3290
+ * HTTP 200 does not mean all items were accepted. Request-level validation
3291
+ * and authorization failures may instead return a non-200 response.
3292
+ */
3293
+ export type SubmitEpisodeResultsResponse = {
3294
+ results: Array<EpisodeResultSubmission>;
3295
+ /**
3296
+ * Per-status count summary — quick health check for callers batching hundreds at a time.
3297
+ */
3298
+ counts: {
3299
+ [key: string]: (number);
3300
+ };
3301
+ };
3302
+
3061
3303
  export type SuiteNotFoundError = {
3062
3304
  /**
3063
3305
  * Error message describing what went wrong
@@ -4541,6 +4783,10 @@ export type ClearMinerCooldownResponse = (ClearCooldownResponse);
4541
4783
 
4542
4784
  export type ClearMinerCooldownError = (HTTPValidationError);
4543
4785
 
4786
+ export type ClearAllMinerCooldownsResponse = (ClearAllCooldownsResponse);
4787
+
4788
+ export type ClearAllMinerCooldownsError = unknown;
4789
+
4544
4790
  export type ListMinersData = {
4545
4791
  query?: {
4546
4792
  /**
@@ -4869,6 +5115,48 @@ export type PostValidatorResumeResponse = (ValidatorPauseStatus);
4869
5115
 
4870
5116
  export type PostValidatorResumeError = (HTTPValidationError);
4871
5117
 
5118
+ export type GetPackData = {
5119
+ path: {
5120
+ /**
5121
+ * Content hash of the sealed pack.
5122
+ */
5123
+ pack_sha256: string;
5124
+ };
5125
+ };
5126
+
5127
+ export type GetPackResponse = (PackFetchResponse);
5128
+
5129
+ export type GetPackError = (EnvPackErrorResponse | HTTPValidationError);
5130
+
5131
+ export type GetRacePackData = {
5132
+ path: {
5133
+ /**
5134
+ * Identifier of the evaluation group containing the assigned work.
5135
+ */
5136
+ race_id: string;
5137
+ };
5138
+ };
5139
+
5140
+ export type GetRacePackResponse = (RacePackFetchResponse);
5141
+
5142
+ export type GetRacePackError = (EnvPackErrorResponse | HTTPValidationError);
5143
+
5144
+ export type PresignEpisodeArtifactData = {
5145
+ body: EpisodeArtifactPresignRequest;
5146
+ };
5147
+
5148
+ export type PresignEpisodeArtifactResponse = (EpisodeArtifactPresignResponse);
5149
+
5150
+ export type PresignEpisodeArtifactError = (EnvPackErrorResponse | HTTPValidationError);
5151
+
5152
+ export type SubmitEpisodeResultsData = {
5153
+ body: SubmitEpisodeResultsRequest;
5154
+ };
5155
+
5156
+ export type SubmitEpisodeResultsResponse2 = (SubmitEpisodeResultsResponse);
5157
+
5158
+ export type SubmitEpisodeResultsError = (EnvPackErrorResponse | HTTPValidationError);
5159
+
4872
5160
  export type ApiProblemsData = {
4873
5161
  headers?: {
4874
5162
  'X-Demo-Auth'?: (string | null);