@oro-ai/sdk 1.0.47 → 1.0.49

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.
package/dist/index.d.mts CHANGED
@@ -308,6 +308,26 @@ type AdminValidatorEntry = {
308
308
  * On-chain identity description
309
309
  */
310
310
  identity_description?: (string | null);
311
+ /**
312
+ * Latest reported host CPU utilisation percentage (0-100)
313
+ */
314
+ cpu_pct?: (number | null);
315
+ /**
316
+ * Latest reported host RAM utilisation percentage (0-100)
317
+ */
318
+ ram_pct?: (number | null);
319
+ /**
320
+ * Latest reported host disk utilisation percentage on the sandbox volume (0-100)
321
+ */
322
+ disk_pct?: (number | null);
323
+ /**
324
+ * Latest reported running Docker container count on the host
325
+ */
326
+ docker_container_count?: (number | null);
327
+ /**
328
+ * UTC timestamp of the last resource-metrics report
329
+ */
330
+ metrics_reported_at?: (string | null);
311
331
  /**
312
332
  * Whether the validator is banned
313
333
  */
@@ -370,6 +390,14 @@ type AgentLatestVersion = {
370
390
  * Final score if eligible
371
391
  */
372
392
  final_score?: (number | null);
393
+ /**
394
+ * True when this version is the miner's pinned race candidate
395
+ */
396
+ is_selected_for_race?: boolean;
397
+ /**
398
+ * Set on the pinned version only when the pin can't take effect.
399
+ */
400
+ selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
373
401
  };
374
402
  type AgentNotFoundError = {
375
403
  /**
@@ -432,6 +460,14 @@ type AgentVersionHistoryEntry = {
432
460
  * Final score if eligible
433
461
  */
434
462
  final_score?: (number | null);
463
+ /**
464
+ * True when this version is the miner's pinned race candidate
465
+ */
466
+ is_selected_for_race?: boolean;
467
+ /**
468
+ * Set on the pinned version only when the pin can't take effect.
469
+ */
470
+ selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
435
471
  };
436
472
  type AgentVersionNotFoundError = {
437
473
  /**
@@ -1332,6 +1368,22 @@ type HeartbeatRequest = {
1332
1368
  service_versions?: ({
1333
1369
  [key: string]: (string);
1334
1370
  } | null);
1371
+ /**
1372
+ * Validator host CPU utilisation percentage (0-100)
1373
+ */
1374
+ cpu_pct?: (number | null);
1375
+ /**
1376
+ * Validator host RAM utilisation percentage (0-100)
1377
+ */
1378
+ ram_pct?: (number | null);
1379
+ /**
1380
+ * Validator host disk utilisation percentage on the sandbox volume (0-100)
1381
+ */
1382
+ disk_pct?: (number | null);
1383
+ /**
1384
+ * Validator host running Docker container count
1385
+ */
1386
+ docker_container_count?: (number | null);
1335
1387
  };
1336
1388
  type HeartbeatResponse = {
1337
1389
  /**
@@ -1529,6 +1581,12 @@ type MinerNotFoundError = {
1529
1581
  */
1530
1582
  error_code?: "MINER_NOT_FOUND";
1531
1583
  };
1584
+ type MinerRaceSelectionRequest = {
1585
+ /**
1586
+ * Agent version to pin as the race candidate
1587
+ */
1588
+ agent_version_id: string;
1589
+ };
1532
1590
  type MissingParameterError = {
1533
1591
  /**
1534
1592
  * Error message describing what went wrong
@@ -1559,6 +1617,16 @@ type NoActiveSuiteError = {
1559
1617
  */
1560
1618
  error_code?: "NO_ACTIVE_SUITE";
1561
1619
  };
1620
+ type NoSelectionError = {
1621
+ /**
1622
+ * Error message describing what went wrong
1623
+ */
1624
+ detail: string;
1625
+ /**
1626
+ * Error code for programmatic handling
1627
+ */
1628
+ error_code?: "NO_SELECTION";
1629
+ };
1562
1630
  type NotRunOwnerError = {
1563
1631
  /**
1564
1632
  * Error message describing what went wrong
@@ -1569,6 +1637,16 @@ type NotRunOwnerError = {
1569
1637
  */
1570
1638
  error_code?: "NOT_RUN_OWNER";
1571
1639
  };
1640
+ type NotVersionOwnerError = {
1641
+ /**
1642
+ * Error message describing what went wrong
1643
+ */
1644
+ detail: string;
1645
+ /**
1646
+ * Error code for programmatic handling
1647
+ */
1648
+ error_code?: "NOT_VERSION_OWNER";
1649
+ };
1572
1650
  type PendingEvaluation = {
1573
1651
  /**
1574
1652
  * Unique work item identifier
@@ -1870,6 +1948,16 @@ type RaceHistoryResponse = {
1870
1948
  */
1871
1949
  races: Array<RacePublic>;
1872
1950
  };
1951
+ type RaceLockedError = {
1952
+ /**
1953
+ * Error message describing what went wrong
1954
+ */
1955
+ detail: string;
1956
+ /**
1957
+ * Error code for programmatic handling
1958
+ */
1959
+ error_code?: "RACE_LOCKED";
1960
+ };
1873
1961
  type RaceNotFoundError = {
1874
1962
  /**
1875
1963
  * Error message describing what went wrong
@@ -2614,6 +2702,26 @@ type ValidatorPublic = {
2614
2702
  * On-chain identity description
2615
2703
  */
2616
2704
  identity_description?: (string | null);
2705
+ /**
2706
+ * Latest reported host CPU utilisation percentage (0-100)
2707
+ */
2708
+ cpu_pct?: (number | null);
2709
+ /**
2710
+ * Latest reported host RAM utilisation percentage (0-100)
2711
+ */
2712
+ ram_pct?: (number | null);
2713
+ /**
2714
+ * Latest reported host disk utilisation percentage on the sandbox volume (0-100)
2715
+ */
2716
+ disk_pct?: (number | null);
2717
+ /**
2718
+ * Latest reported running Docker container count on the host
2719
+ */
2720
+ docker_container_count?: (number | null);
2721
+ /**
2722
+ * UTC timestamp of the last resource-metrics report
2723
+ */
2724
+ metrics_reported_at?: (string | null);
2617
2725
  };
2618
2726
  /**
2619
2727
  * Aggregated validator scoring analysis.
@@ -2990,6 +3098,13 @@ type GetOwnedAgentVersionStatusData = {
2990
3098
  };
2991
3099
  type GetOwnedAgentVersionStatusResponse = (AgentVersionStatus);
2992
3100
  type GetOwnedAgentVersionStatusError = (AgentVersionNotFoundError | HTTPValidationError);
3101
+ type SetRaceSelectionData = {
3102
+ body: MinerRaceSelectionRequest;
3103
+ };
3104
+ type SetRaceSelectionResponse = (void);
3105
+ type SetRaceSelectionError = (unknown | NotVersionOwnerError | RaceLockedError | HTTPValidationError);
3106
+ type ClearRaceSelectionResponse = (void);
3107
+ type ClearRaceSelectionError = (NoSelectionError | RaceLockedError);
2993
3108
  type ClaimWorkData = {
2994
3109
  body?: (HeartbeatRequest | null);
2995
3110
  };
@@ -3607,6 +3722,16 @@ declare const listAgentVersions: <ThrowOnError extends boolean = false>(options:
3607
3722
  * Get detailed status of a specific agent version owned by the miner.
3608
3723
  */
3609
3724
  declare const getOwnedAgentVersionStatus: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetOwnedAgentVersionStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AgentVersionStatus, GetOwnedAgentVersionStatusError, ThrowOnError>;
3725
+ /**
3726
+ * Pin agent version as race candidate
3727
+ * Pin the given agent version as this miner's race candidate.
3728
+ */
3729
+ declare const setRaceSelection: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetRaceSelectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, unknown, ThrowOnError>;
3730
+ /**
3731
+ * Clear pinned race candidate
3732
+ * Clear the miner's pinned race candidate so the auto-pick is used.
3733
+ */
3734
+ declare const clearRaceSelection: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, ClearRaceSelectionError, ThrowOnError>;
3610
3735
  /**
3611
3736
  * Claim evaluation work
3612
3737
  * FIFO claim of next available evaluation work item.
@@ -3811,7 +3936,7 @@ declare const closeQualifying: <ThrowOnError extends boolean = false>(options?:
3811
3936
  *
3812
3937
  * DO NOT EDIT — regenerate with: python3 scripts/extract-errors.py
3813
3938
  */
3814
- type OroErrorCode = 'AGENT_NOT_FOUND' | 'AGENT_VERSION_NOT_FOUND' | 'ALREADY_INVALIDATED' | 'ARTIFACT_NOT_FOUND' | 'ARTIFACT_NOT_RELEASED' | 'AT_CAPACITY' | 'CODE_ANALYSIS_ERROR' | 'COOLDOWN_ACTIVE' | 'EVAL_RUN_NOT_FOUND' | 'FILE_TOO_LARGE' | 'INVALID_AGENT_NAME' | 'INVALID_ARTIFACT_TYPE' | 'INVALID_FILE' | 'INVALID_PROBLEM_ID' | 'LEASE_EXPIRED' | 'MINER_NOT_FOUND' | 'MISSING_PARAMETER' | 'MISSING_SCORE' | 'NO_ACTIVE_SUITE' | 'NOT_RUN_OWNER' | 'PROBLEM_NOT_FOUND' | 'RACE_NOT_FOUND' | 'RATE_LIMIT_EXCEEDED' | 'RUN_ALREADY_COMPLETE' | 'SCORE_BELOW_THRESHOLD' | 'SUITE_NOT_FOUND' | 'VALIDATION_ERROR' | 'VALIDATOR_NOT_FOUND';
3939
+ type OroErrorCode = 'AGENT_NOT_FOUND' | 'AGENT_VERSION_NOT_FOUND' | 'ALREADY_INVALIDATED' | 'ARTIFACT_NOT_FOUND' | 'ARTIFACT_NOT_RELEASED' | 'AT_CAPACITY' | 'CODE_ANALYSIS_ERROR' | 'COOLDOWN_ACTIVE' | 'EVAL_RUN_NOT_FOUND' | 'FILE_TOO_LARGE' | 'INVALID_AGENT_NAME' | 'INVALID_ARTIFACT_TYPE' | 'INVALID_FILE' | 'INVALID_PROBLEM_ID' | 'LEASE_EXPIRED' | 'MINER_NOT_FOUND' | 'MISSING_PARAMETER' | 'MISSING_SCORE' | 'NO_ACTIVE_SUITE' | 'NO_SELECTION' | 'NOT_RUN_OWNER' | 'NOT_VERSION_OWNER' | 'PROBLEM_NOT_FOUND' | 'RACE_LOCKED' | 'RACE_NOT_FOUND' | 'RATE_LIMIT_EXCEEDED' | 'RUN_ALREADY_COMPLETE' | 'SCORE_BELOW_THRESHOLD' | 'SUITE_NOT_FOUND' | 'VALIDATION_ERROR' | 'VALIDATOR_NOT_FOUND';
3815
3940
 
3816
3941
  /**
3817
3942
  * Error classification utilities for the ORO SDK.
@@ -4157,4 +4282,4 @@ declare class SessionAuthManager {
4157
4282
  */
4158
4283
  declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
4159
4284
 
4160
- export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdminAgentCodeResponse, type AdminAgentVersionEntry, type AdminAgentVersionsResponse, type AdminEvaluationRunEntry, type AdminEvaluationRunsResponse, type AdminMinerEntry, type AdminMinersResponse, type AdminValidatorEntry, type AdminValidatorsResponse, type AdmissionReason, type AdmissionStatus, type AgentLatestVersion, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionScoreEntry, type AgentVersionState, type AgentVersionStatus, type AgentVersionVariance, type AgentVersionVarianceResponse, type AlreadyInvalidatedError, type ArtifactDownloadRequest, type ArtifactDownloadResponse, type ArtifactNotFoundError, type ArtifactNotReleasedError, type ArtifactReleaseState, type ArtifactType, type AtCapacityError, type AuditEventEntry, type AuditEventsResponse, type BanMinerData, type BanMinerError, type BanMinerResponse, type BanRequest, type BanResponse, type BanValidatorData, type BanValidatorError, type BanValidatorResponse, type BittensorAuthConfig, type Body_submit_agent, type CachedSession, type CancelAgentVersionData, type CancelAgentVersionError, type CancelAgentVersionResponse, type CancelRequest, type CancelResponse, type ChallengeRequest, type ChallengeResponse, type ChutesAuthStatusResponse, type ClaimWorkData, type ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearCooldownResponse, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type CloseQualifyingError, type CloseQualifyingResponse, type CloseQualifyingResponse2, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type CurrentRacesResponse, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationPhase, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionCodeData, type GetAgentVersionCodeError, type GetAgentVersionCodeResponse, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetAgentVersionVarianceData, type GetAgentVersionVarianceError, type GetAgentVersionVarianceResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetChutesAuthStatusError, type GetChutesAuthStatusResponse, type GetCurrentRaceError, type GetCurrentRaceResponse, type GetCurrentRacesError, type GetCurrentRacesResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetInferenceModelsError, type GetInferenceModelsResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetRaceDetailData, type GetRaceDetailError, type GetRaceDetailResponse, type GetRaceDiagnosticsData, type GetRaceDiagnosticsError, type GetRaceDiagnosticsResponse, type GetRaceHistoryData, type GetRaceHistoryError, type GetRaceHistoryResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunProblemsData, type GetRunProblemsError, type GetRunProblemsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetTopHistoryData, type GetTopHistoryError, type GetTopHistoryResponse, type GetTopMinerPayoutError, type GetTopMinerPayoutResponse, type GetValidatorScoresData, type GetValidatorScoresError, type GetValidatorScoresResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InferenceModelsResponse, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersions1Data, type ListAgentVersions1Error, type ListAgentVersions1Response, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListEvaluationRunsData, type ListEvaluationRunsError, type ListEvaluationRunsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type ListMinersData, type ListMinersError, type ListMinersResponse, type ListSuitesError, type ListSuitesResponse, type ListValidatorsData, type ListValidatorsError, type ListValidatorsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NotRunOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RaceCurrentResponse, type RaceDetailResponse, type RaceDiagnosticsResponse, type RaceHistoryResponse, type RaceNotFoundError, type RacePublic, type RaceQualifierEntry, type RaceQualifierPublic, type RaceSummary, type RaceWorkItemEntry, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateEliminationData, type ReinstateEliminationError, type ReinstateEliminationRequest, type ReinstateEliminationResponse, type ReinstateEliminationResponse2, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunProblemsResponse, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type TopHistoryEntry, type TopHistoryResponse, type TopMinerPayoutResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidationErrorError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, client, closeQualifying, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getInferenceModels, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getTopMinerPayout, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, reinstateElimination, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
4285
+ export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdminAgentCodeResponse, type AdminAgentVersionEntry, type AdminAgentVersionsResponse, type AdminEvaluationRunEntry, type AdminEvaluationRunsResponse, type AdminMinerEntry, type AdminMinersResponse, type AdminValidatorEntry, type AdminValidatorsResponse, type AdmissionReason, type AdmissionStatus, type AgentLatestVersion, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionScoreEntry, type AgentVersionState, type AgentVersionStatus, type AgentVersionVariance, type AgentVersionVarianceResponse, type AlreadyInvalidatedError, type ArtifactDownloadRequest, type ArtifactDownloadResponse, type ArtifactNotFoundError, type ArtifactNotReleasedError, type ArtifactReleaseState, type ArtifactType, type AtCapacityError, type AuditEventEntry, type AuditEventsResponse, type BanMinerData, type BanMinerError, type BanMinerResponse, type BanRequest, type BanResponse, type BanValidatorData, type BanValidatorError, type BanValidatorResponse, type BittensorAuthConfig, type Body_submit_agent, type CachedSession, type CancelAgentVersionData, type CancelAgentVersionError, type CancelAgentVersionResponse, type CancelRequest, type CancelResponse, type ChallengeRequest, type ChallengeResponse, type ChutesAuthStatusResponse, type ClaimWorkData, type ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearCooldownResponse, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type ClearRaceSelectionError, type ClearRaceSelectionResponse, type CloseQualifyingError, type CloseQualifyingResponse, type CloseQualifyingResponse2, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type CurrentRacesResponse, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationPhase, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionCodeData, type GetAgentVersionCodeError, type GetAgentVersionCodeResponse, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetAgentVersionVarianceData, type GetAgentVersionVarianceError, type GetAgentVersionVarianceResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetChutesAuthStatusError, type GetChutesAuthStatusResponse, type GetCurrentRaceError, type GetCurrentRaceResponse, type GetCurrentRacesError, type GetCurrentRacesResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetInferenceModelsError, type GetInferenceModelsResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetRaceDetailData, type GetRaceDetailError, type GetRaceDetailResponse, type GetRaceDiagnosticsData, type GetRaceDiagnosticsError, type GetRaceDiagnosticsResponse, type GetRaceHistoryData, type GetRaceHistoryError, type GetRaceHistoryResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunProblemsData, type GetRunProblemsError, type GetRunProblemsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetTopHistoryData, type GetTopHistoryError, type GetTopHistoryResponse, type GetTopMinerPayoutError, type GetTopMinerPayoutResponse, type GetValidatorScoresData, type GetValidatorScoresError, type GetValidatorScoresResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InferenceModelsResponse, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersions1Data, type ListAgentVersions1Error, type ListAgentVersions1Response, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListEvaluationRunsData, type ListEvaluationRunsError, type ListEvaluationRunsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type ListMinersData, type ListMinersError, type ListMinersResponse, type ListSuitesError, type ListSuitesResponse, type ListValidatorsData, type ListValidatorsError, type ListValidatorsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MinerRaceSelectionRequest, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NoSelectionError, type NotRunOwnerError, type NotVersionOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RaceCurrentResponse, type RaceDetailResponse, type RaceDiagnosticsResponse, type RaceHistoryResponse, type RaceLockedError, type RaceNotFoundError, type RacePublic, type RaceQualifierEntry, type RaceQualifierPublic, type RaceSummary, type RaceWorkItemEntry, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateEliminationData, type ReinstateEliminationError, type ReinstateEliminationRequest, type ReinstateEliminationResponse, type ReinstateEliminationResponse2, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunProblemsResponse, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetRaceSelectionData, type SetRaceSelectionError, type SetRaceSelectionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type TopHistoryEntry, type TopHistoryResponse, type TopMinerPayoutResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidationErrorError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, clearRaceSelection, client, closeQualifying, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getInferenceModels, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getTopMinerPayout, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, reinstateElimination, requestChallenge, setRaceSelection, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
package/dist/index.d.ts CHANGED
@@ -308,6 +308,26 @@ type AdminValidatorEntry = {
308
308
  * On-chain identity description
309
309
  */
310
310
  identity_description?: (string | null);
311
+ /**
312
+ * Latest reported host CPU utilisation percentage (0-100)
313
+ */
314
+ cpu_pct?: (number | null);
315
+ /**
316
+ * Latest reported host RAM utilisation percentage (0-100)
317
+ */
318
+ ram_pct?: (number | null);
319
+ /**
320
+ * Latest reported host disk utilisation percentage on the sandbox volume (0-100)
321
+ */
322
+ disk_pct?: (number | null);
323
+ /**
324
+ * Latest reported running Docker container count on the host
325
+ */
326
+ docker_container_count?: (number | null);
327
+ /**
328
+ * UTC timestamp of the last resource-metrics report
329
+ */
330
+ metrics_reported_at?: (string | null);
311
331
  /**
312
332
  * Whether the validator is banned
313
333
  */
@@ -370,6 +390,14 @@ type AgentLatestVersion = {
370
390
  * Final score if eligible
371
391
  */
372
392
  final_score?: (number | null);
393
+ /**
394
+ * True when this version is the miner's pinned race candidate
395
+ */
396
+ is_selected_for_race?: boolean;
397
+ /**
398
+ * Set on the pinned version only when the pin can't take effect.
399
+ */
400
+ selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
373
401
  };
374
402
  type AgentNotFoundError = {
375
403
  /**
@@ -432,6 +460,14 @@ type AgentVersionHistoryEntry = {
432
460
  * Final score if eligible
433
461
  */
434
462
  final_score?: (number | null);
463
+ /**
464
+ * True when this version is the miner's pinned race candidate
465
+ */
466
+ is_selected_for_race?: boolean;
467
+ /**
468
+ * Set on the pinned version only when the pin can't take effect.
469
+ */
470
+ selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
435
471
  };
436
472
  type AgentVersionNotFoundError = {
437
473
  /**
@@ -1332,6 +1368,22 @@ type HeartbeatRequest = {
1332
1368
  service_versions?: ({
1333
1369
  [key: string]: (string);
1334
1370
  } | null);
1371
+ /**
1372
+ * Validator host CPU utilisation percentage (0-100)
1373
+ */
1374
+ cpu_pct?: (number | null);
1375
+ /**
1376
+ * Validator host RAM utilisation percentage (0-100)
1377
+ */
1378
+ ram_pct?: (number | null);
1379
+ /**
1380
+ * Validator host disk utilisation percentage on the sandbox volume (0-100)
1381
+ */
1382
+ disk_pct?: (number | null);
1383
+ /**
1384
+ * Validator host running Docker container count
1385
+ */
1386
+ docker_container_count?: (number | null);
1335
1387
  };
1336
1388
  type HeartbeatResponse = {
1337
1389
  /**
@@ -1529,6 +1581,12 @@ type MinerNotFoundError = {
1529
1581
  */
1530
1582
  error_code?: "MINER_NOT_FOUND";
1531
1583
  };
1584
+ type MinerRaceSelectionRequest = {
1585
+ /**
1586
+ * Agent version to pin as the race candidate
1587
+ */
1588
+ agent_version_id: string;
1589
+ };
1532
1590
  type MissingParameterError = {
1533
1591
  /**
1534
1592
  * Error message describing what went wrong
@@ -1559,6 +1617,16 @@ type NoActiveSuiteError = {
1559
1617
  */
1560
1618
  error_code?: "NO_ACTIVE_SUITE";
1561
1619
  };
1620
+ type NoSelectionError = {
1621
+ /**
1622
+ * Error message describing what went wrong
1623
+ */
1624
+ detail: string;
1625
+ /**
1626
+ * Error code for programmatic handling
1627
+ */
1628
+ error_code?: "NO_SELECTION";
1629
+ };
1562
1630
  type NotRunOwnerError = {
1563
1631
  /**
1564
1632
  * Error message describing what went wrong
@@ -1569,6 +1637,16 @@ type NotRunOwnerError = {
1569
1637
  */
1570
1638
  error_code?: "NOT_RUN_OWNER";
1571
1639
  };
1640
+ type NotVersionOwnerError = {
1641
+ /**
1642
+ * Error message describing what went wrong
1643
+ */
1644
+ detail: string;
1645
+ /**
1646
+ * Error code for programmatic handling
1647
+ */
1648
+ error_code?: "NOT_VERSION_OWNER";
1649
+ };
1572
1650
  type PendingEvaluation = {
1573
1651
  /**
1574
1652
  * Unique work item identifier
@@ -1870,6 +1948,16 @@ type RaceHistoryResponse = {
1870
1948
  */
1871
1949
  races: Array<RacePublic>;
1872
1950
  };
1951
+ type RaceLockedError = {
1952
+ /**
1953
+ * Error message describing what went wrong
1954
+ */
1955
+ detail: string;
1956
+ /**
1957
+ * Error code for programmatic handling
1958
+ */
1959
+ error_code?: "RACE_LOCKED";
1960
+ };
1873
1961
  type RaceNotFoundError = {
1874
1962
  /**
1875
1963
  * Error message describing what went wrong
@@ -2614,6 +2702,26 @@ type ValidatorPublic = {
2614
2702
  * On-chain identity description
2615
2703
  */
2616
2704
  identity_description?: (string | null);
2705
+ /**
2706
+ * Latest reported host CPU utilisation percentage (0-100)
2707
+ */
2708
+ cpu_pct?: (number | null);
2709
+ /**
2710
+ * Latest reported host RAM utilisation percentage (0-100)
2711
+ */
2712
+ ram_pct?: (number | null);
2713
+ /**
2714
+ * Latest reported host disk utilisation percentage on the sandbox volume (0-100)
2715
+ */
2716
+ disk_pct?: (number | null);
2717
+ /**
2718
+ * Latest reported running Docker container count on the host
2719
+ */
2720
+ docker_container_count?: (number | null);
2721
+ /**
2722
+ * UTC timestamp of the last resource-metrics report
2723
+ */
2724
+ metrics_reported_at?: (string | null);
2617
2725
  };
2618
2726
  /**
2619
2727
  * Aggregated validator scoring analysis.
@@ -2990,6 +3098,13 @@ type GetOwnedAgentVersionStatusData = {
2990
3098
  };
2991
3099
  type GetOwnedAgentVersionStatusResponse = (AgentVersionStatus);
2992
3100
  type GetOwnedAgentVersionStatusError = (AgentVersionNotFoundError | HTTPValidationError);
3101
+ type SetRaceSelectionData = {
3102
+ body: MinerRaceSelectionRequest;
3103
+ };
3104
+ type SetRaceSelectionResponse = (void);
3105
+ type SetRaceSelectionError = (unknown | NotVersionOwnerError | RaceLockedError | HTTPValidationError);
3106
+ type ClearRaceSelectionResponse = (void);
3107
+ type ClearRaceSelectionError = (NoSelectionError | RaceLockedError);
2993
3108
  type ClaimWorkData = {
2994
3109
  body?: (HeartbeatRequest | null);
2995
3110
  };
@@ -3607,6 +3722,16 @@ declare const listAgentVersions: <ThrowOnError extends boolean = false>(options:
3607
3722
  * Get detailed status of a specific agent version owned by the miner.
3608
3723
  */
3609
3724
  declare const getOwnedAgentVersionStatus: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetOwnedAgentVersionStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AgentVersionStatus, GetOwnedAgentVersionStatusError, ThrowOnError>;
3725
+ /**
3726
+ * Pin agent version as race candidate
3727
+ * Pin the given agent version as this miner's race candidate.
3728
+ */
3729
+ declare const setRaceSelection: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetRaceSelectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, unknown, ThrowOnError>;
3730
+ /**
3731
+ * Clear pinned race candidate
3732
+ * Clear the miner's pinned race candidate so the auto-pick is used.
3733
+ */
3734
+ declare const clearRaceSelection: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, ClearRaceSelectionError, ThrowOnError>;
3610
3735
  /**
3611
3736
  * Claim evaluation work
3612
3737
  * FIFO claim of next available evaluation work item.
@@ -3811,7 +3936,7 @@ declare const closeQualifying: <ThrowOnError extends boolean = false>(options?:
3811
3936
  *
3812
3937
  * DO NOT EDIT — regenerate with: python3 scripts/extract-errors.py
3813
3938
  */
3814
- type OroErrorCode = 'AGENT_NOT_FOUND' | 'AGENT_VERSION_NOT_FOUND' | 'ALREADY_INVALIDATED' | 'ARTIFACT_NOT_FOUND' | 'ARTIFACT_NOT_RELEASED' | 'AT_CAPACITY' | 'CODE_ANALYSIS_ERROR' | 'COOLDOWN_ACTIVE' | 'EVAL_RUN_NOT_FOUND' | 'FILE_TOO_LARGE' | 'INVALID_AGENT_NAME' | 'INVALID_ARTIFACT_TYPE' | 'INVALID_FILE' | 'INVALID_PROBLEM_ID' | 'LEASE_EXPIRED' | 'MINER_NOT_FOUND' | 'MISSING_PARAMETER' | 'MISSING_SCORE' | 'NO_ACTIVE_SUITE' | 'NOT_RUN_OWNER' | 'PROBLEM_NOT_FOUND' | 'RACE_NOT_FOUND' | 'RATE_LIMIT_EXCEEDED' | 'RUN_ALREADY_COMPLETE' | 'SCORE_BELOW_THRESHOLD' | 'SUITE_NOT_FOUND' | 'VALIDATION_ERROR' | 'VALIDATOR_NOT_FOUND';
3939
+ type OroErrorCode = 'AGENT_NOT_FOUND' | 'AGENT_VERSION_NOT_FOUND' | 'ALREADY_INVALIDATED' | 'ARTIFACT_NOT_FOUND' | 'ARTIFACT_NOT_RELEASED' | 'AT_CAPACITY' | 'CODE_ANALYSIS_ERROR' | 'COOLDOWN_ACTIVE' | 'EVAL_RUN_NOT_FOUND' | 'FILE_TOO_LARGE' | 'INVALID_AGENT_NAME' | 'INVALID_ARTIFACT_TYPE' | 'INVALID_FILE' | 'INVALID_PROBLEM_ID' | 'LEASE_EXPIRED' | 'MINER_NOT_FOUND' | 'MISSING_PARAMETER' | 'MISSING_SCORE' | 'NO_ACTIVE_SUITE' | 'NO_SELECTION' | 'NOT_RUN_OWNER' | 'NOT_VERSION_OWNER' | 'PROBLEM_NOT_FOUND' | 'RACE_LOCKED' | 'RACE_NOT_FOUND' | 'RATE_LIMIT_EXCEEDED' | 'RUN_ALREADY_COMPLETE' | 'SCORE_BELOW_THRESHOLD' | 'SUITE_NOT_FOUND' | 'VALIDATION_ERROR' | 'VALIDATOR_NOT_FOUND';
3815
3940
 
3816
3941
  /**
3817
3942
  * Error classification utilities for the ORO SDK.
@@ -4157,4 +4282,4 @@ declare class SessionAuthManager {
4157
4282
  */
4158
4283
  declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
4159
4284
 
4160
- export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdminAgentCodeResponse, type AdminAgentVersionEntry, type AdminAgentVersionsResponse, type AdminEvaluationRunEntry, type AdminEvaluationRunsResponse, type AdminMinerEntry, type AdminMinersResponse, type AdminValidatorEntry, type AdminValidatorsResponse, type AdmissionReason, type AdmissionStatus, type AgentLatestVersion, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionScoreEntry, type AgentVersionState, type AgentVersionStatus, type AgentVersionVariance, type AgentVersionVarianceResponse, type AlreadyInvalidatedError, type ArtifactDownloadRequest, type ArtifactDownloadResponse, type ArtifactNotFoundError, type ArtifactNotReleasedError, type ArtifactReleaseState, type ArtifactType, type AtCapacityError, type AuditEventEntry, type AuditEventsResponse, type BanMinerData, type BanMinerError, type BanMinerResponse, type BanRequest, type BanResponse, type BanValidatorData, type BanValidatorError, type BanValidatorResponse, type BittensorAuthConfig, type Body_submit_agent, type CachedSession, type CancelAgentVersionData, type CancelAgentVersionError, type CancelAgentVersionResponse, type CancelRequest, type CancelResponse, type ChallengeRequest, type ChallengeResponse, type ChutesAuthStatusResponse, type ClaimWorkData, type ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearCooldownResponse, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type CloseQualifyingError, type CloseQualifyingResponse, type CloseQualifyingResponse2, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type CurrentRacesResponse, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationPhase, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionCodeData, type GetAgentVersionCodeError, type GetAgentVersionCodeResponse, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetAgentVersionVarianceData, type GetAgentVersionVarianceError, type GetAgentVersionVarianceResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetChutesAuthStatusError, type GetChutesAuthStatusResponse, type GetCurrentRaceError, type GetCurrentRaceResponse, type GetCurrentRacesError, type GetCurrentRacesResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetInferenceModelsError, type GetInferenceModelsResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetRaceDetailData, type GetRaceDetailError, type GetRaceDetailResponse, type GetRaceDiagnosticsData, type GetRaceDiagnosticsError, type GetRaceDiagnosticsResponse, type GetRaceHistoryData, type GetRaceHistoryError, type GetRaceHistoryResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunProblemsData, type GetRunProblemsError, type GetRunProblemsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetTopHistoryData, type GetTopHistoryError, type GetTopHistoryResponse, type GetTopMinerPayoutError, type GetTopMinerPayoutResponse, type GetValidatorScoresData, type GetValidatorScoresError, type GetValidatorScoresResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InferenceModelsResponse, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersions1Data, type ListAgentVersions1Error, type ListAgentVersions1Response, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListEvaluationRunsData, type ListEvaluationRunsError, type ListEvaluationRunsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type ListMinersData, type ListMinersError, type ListMinersResponse, type ListSuitesError, type ListSuitesResponse, type ListValidatorsData, type ListValidatorsError, type ListValidatorsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NotRunOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RaceCurrentResponse, type RaceDetailResponse, type RaceDiagnosticsResponse, type RaceHistoryResponse, type RaceNotFoundError, type RacePublic, type RaceQualifierEntry, type RaceQualifierPublic, type RaceSummary, type RaceWorkItemEntry, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateEliminationData, type ReinstateEliminationError, type ReinstateEliminationRequest, type ReinstateEliminationResponse, type ReinstateEliminationResponse2, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunProblemsResponse, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type TopHistoryEntry, type TopHistoryResponse, type TopMinerPayoutResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidationErrorError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, client, closeQualifying, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getInferenceModels, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getTopMinerPayout, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, reinstateElimination, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
4285
+ export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdminAgentCodeResponse, type AdminAgentVersionEntry, type AdminAgentVersionsResponse, type AdminEvaluationRunEntry, type AdminEvaluationRunsResponse, type AdminMinerEntry, type AdminMinersResponse, type AdminValidatorEntry, type AdminValidatorsResponse, type AdmissionReason, type AdmissionStatus, type AgentLatestVersion, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionScoreEntry, type AgentVersionState, type AgentVersionStatus, type AgentVersionVariance, type AgentVersionVarianceResponse, type AlreadyInvalidatedError, type ArtifactDownloadRequest, type ArtifactDownloadResponse, type ArtifactNotFoundError, type ArtifactNotReleasedError, type ArtifactReleaseState, type ArtifactType, type AtCapacityError, type AuditEventEntry, type AuditEventsResponse, type BanMinerData, type BanMinerError, type BanMinerResponse, type BanRequest, type BanResponse, type BanValidatorData, type BanValidatorError, type BanValidatorResponse, type BittensorAuthConfig, type Body_submit_agent, type CachedSession, type CancelAgentVersionData, type CancelAgentVersionError, type CancelAgentVersionResponse, type CancelRequest, type CancelResponse, type ChallengeRequest, type ChallengeResponse, type ChutesAuthStatusResponse, type ClaimWorkData, type ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearCooldownResponse, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type ClearRaceSelectionError, type ClearRaceSelectionResponse, type CloseQualifyingError, type CloseQualifyingResponse, type CloseQualifyingResponse2, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type CurrentRacesResponse, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationPhase, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionCodeData, type GetAgentVersionCodeError, type GetAgentVersionCodeResponse, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetAgentVersionVarianceData, type GetAgentVersionVarianceError, type GetAgentVersionVarianceResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetChutesAuthStatusError, type GetChutesAuthStatusResponse, type GetCurrentRaceError, type GetCurrentRaceResponse, type GetCurrentRacesError, type GetCurrentRacesResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetInferenceModelsError, type GetInferenceModelsResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetRaceDetailData, type GetRaceDetailError, type GetRaceDetailResponse, type GetRaceDiagnosticsData, type GetRaceDiagnosticsError, type GetRaceDiagnosticsResponse, type GetRaceHistoryData, type GetRaceHistoryError, type GetRaceHistoryResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunProblemsData, type GetRunProblemsError, type GetRunProblemsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetTopHistoryData, type GetTopHistoryError, type GetTopHistoryResponse, type GetTopMinerPayoutError, type GetTopMinerPayoutResponse, type GetValidatorScoresData, type GetValidatorScoresError, type GetValidatorScoresResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InferenceModelsResponse, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersions1Data, type ListAgentVersions1Error, type ListAgentVersions1Response, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListEvaluationRunsData, type ListEvaluationRunsError, type ListEvaluationRunsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type ListMinersData, type ListMinersError, type ListMinersResponse, type ListSuitesError, type ListSuitesResponse, type ListValidatorsData, type ListValidatorsError, type ListValidatorsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MinerRaceSelectionRequest, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NoSelectionError, type NotRunOwnerError, type NotVersionOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RaceCurrentResponse, type RaceDetailResponse, type RaceDiagnosticsResponse, type RaceHistoryResponse, type RaceLockedError, type RaceNotFoundError, type RacePublic, type RaceQualifierEntry, type RaceQualifierPublic, type RaceSummary, type RaceWorkItemEntry, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateEliminationData, type ReinstateEliminationError, type ReinstateEliminationRequest, type ReinstateEliminationResponse, type ReinstateEliminationResponse2, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunProblemsResponse, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetRaceSelectionData, type SetRaceSelectionError, type SetRaceSelectionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type TopHistoryEntry, type TopHistoryResponse, type TopMinerPayoutResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidationErrorError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, clearRaceSelection, client, closeQualifying, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getInferenceModels, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getTopMinerPayout, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, reinstateElimination, requestChallenge, setRaceSelection, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
package/dist/index.js CHANGED
@@ -39,6 +39,7 @@ __export(index_exports, {
39
39
  classifyError: () => classifyError,
40
40
  classifyStatus: () => classifyStatus,
41
41
  clearMinerCooldown: () => clearMinerCooldown,
42
+ clearRaceSelection: () => clearRaceSelection,
42
43
  client: () => client,
43
44
  closeQualifying: () => closeQualifying,
44
45
  completeRun: () => completeRun,
@@ -104,6 +105,7 @@ __export(index_exports, {
104
105
  reinstateAgentVersion: () => reinstateAgentVersion,
105
106
  reinstateElimination: () => reinstateElimination,
106
107
  requestChallenge: () => requestChallenge,
108
+ setRaceSelection: () => setRaceSelection,
107
109
  setTopAgent: () => setTopAgent,
108
110
  storeChutesToken: () => storeChutesToken,
109
111
  submitAgent: () => submitAgent,
@@ -307,6 +309,18 @@ var getOwnedAgentVersionStatus = (options) => {
307
309
  url: "/v1/miner/agent-versions/{agent_version_id}"
308
310
  });
309
311
  };
312
+ var setRaceSelection = (options) => {
313
+ return (options?.client ?? client).put({
314
+ ...options,
315
+ url: "/v1/miner/race-selection"
316
+ });
317
+ };
318
+ var clearRaceSelection = (options) => {
319
+ return (options?.client ?? client).delete({
320
+ ...options,
321
+ url: "/v1/miner/race-selection"
322
+ });
323
+ };
310
324
  var claimWork = (options) => {
311
325
  return (options?.client ?? client).post({
312
326
  ...options,
@@ -870,6 +884,7 @@ function configureSessionAuth(baseUrl, config) {
870
884
  classifyError,
871
885
  classifyStatus,
872
886
  clearMinerCooldown,
887
+ clearRaceSelection,
873
888
  client,
874
889
  closeQualifying,
875
890
  completeRun,
@@ -935,6 +950,7 @@ function configureSessionAuth(baseUrl, config) {
935
950
  reinstateAgentVersion,
936
951
  reinstateElimination,
937
952
  requestChallenge,
953
+ setRaceSelection,
938
954
  setTopAgent,
939
955
  storeChutesToken,
940
956
  submitAgent,
package/dist/index.mjs CHANGED
@@ -192,6 +192,18 @@ var getOwnedAgentVersionStatus = (options) => {
192
192
  url: "/v1/miner/agent-versions/{agent_version_id}"
193
193
  });
194
194
  };
195
+ var setRaceSelection = (options) => {
196
+ return (options?.client ?? client).put({
197
+ ...options,
198
+ url: "/v1/miner/race-selection"
199
+ });
200
+ };
201
+ var clearRaceSelection = (options) => {
202
+ return (options?.client ?? client).delete({
203
+ ...options,
204
+ url: "/v1/miner/race-selection"
205
+ });
206
+ };
195
207
  var claimWork = (options) => {
196
208
  return (options?.client ?? client).post({
197
209
  ...options,
@@ -754,6 +766,7 @@ export {
754
766
  classifyError,
755
767
  classifyStatus,
756
768
  clearMinerCooldown,
769
+ clearRaceSelection,
757
770
  client,
758
771
  closeQualifying,
759
772
  completeRun,
@@ -819,6 +832,7 @@ export {
819
832
  reinstateAgentVersion,
820
833
  reinstateElimination,
821
834
  requestChallenge,
835
+ setRaceSelection,
822
836
  setTopAgent,
823
837
  storeChutesToken,
824
838
  submitAgent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oro-ai/sdk",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "Official TypeScript SDK for the ORO Bittensor Subnet API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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, ListSuitesError, ListSuitesResponse, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, 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, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, GetInferenceModelsError, GetInferenceModelsResponse, RequestChallengeData, RequestChallengeError, RequestChallengeResponse, CreateSessionEndpointData, CreateSessionEndpointError, CreateSessionEndpointResponse, LogoutData, LogoutError, LogoutResponse2, SubmitAgentData, SubmitAgentError, SubmitAgentResponse2, StoreChutesTokenData, StoreChutesTokenError, StoreChutesTokenResponse, GetChutesAuthStatusError, GetChutesAuthStatusResponse, ListMinerAgentsError, ListMinerAgentsResponse, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsResponse, GetOwnedAgentVersionStatusData, GetOwnedAgentVersionStatusError, GetOwnedAgentVersionStatusResponse, ClaimWorkData, ClaimWorkError, ClaimWorkResponse2, HeartbeatData, HeartbeatError, HeartbeatResponse2, UpdateProgressData, UpdateProgressError, UpdateProgressResponse, PresignUploadData, PresignUploadError, PresignUploadResponse2, CompleteRunData, CompleteRunError, CompleteRunResponse2, GetRunProblemsData, GetRunProblemsError, GetRunProblemsResponse, BanMinerData, BanMinerError, BanMinerResponse, UnbanMinerData, UnbanMinerError, UnbanMinerResponse, BanValidatorData, BanValidatorError, BanValidatorResponse, UnbanValidatorData, UnbanValidatorError, UnbanValidatorResponse, DiscardAgentVersionData, DiscardAgentVersionError, DiscardAgentVersionResponse, ReinstateAgentVersionData, ReinstateAgentVersionError, ReinstateAgentVersionResponse, 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, CloseQualifyingError, CloseQualifyingResponse2 } from './types.gen';
4
+ import type { HealthCheckError, HealthCheckResponse, ListSuitesError, ListSuitesResponse, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, 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, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, GetInferenceModelsError, GetInferenceModelsResponse, RequestChallengeData, RequestChallengeError, RequestChallengeResponse, CreateSessionEndpointData, CreateSessionEndpointError, CreateSessionEndpointResponse, LogoutData, LogoutError, LogoutResponse2, SubmitAgentData, SubmitAgentError, SubmitAgentResponse2, StoreChutesTokenData, StoreChutesTokenError, StoreChutesTokenResponse, GetChutesAuthStatusError, GetChutesAuthStatusResponse, 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, BanMinerData, BanMinerError, BanMinerResponse, UnbanMinerData, UnbanMinerError, UnbanMinerResponse, BanValidatorData, BanValidatorError, BanValidatorResponse, UnbanValidatorData, UnbanValidatorError, UnbanValidatorResponse, DiscardAgentVersionData, DiscardAgentVersionError, DiscardAgentVersionResponse, ReinstateAgentVersionData, ReinstateAgentVersionError, ReinstateAgentVersionResponse, 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, CloseQualifyingError, CloseQualifyingResponse2 } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -364,6 +364,28 @@ export const getOwnedAgentVersionStatus = <ThrowOnError extends boolean = false>
364
364
  });
365
365
  };
366
366
 
367
+ /**
368
+ * Pin agent version as race candidate
369
+ * Pin the given agent version as this miner's race candidate.
370
+ */
371
+ export const setRaceSelection = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetRaceSelectionData, ThrowOnError>) => {
372
+ return (options?.client ?? client).put<SetRaceSelectionResponse, SetRaceSelectionError, ThrowOnError>({
373
+ ...options,
374
+ url: '/v1/miner/race-selection'
375
+ });
376
+ };
377
+
378
+ /**
379
+ * Clear pinned race candidate
380
+ * Clear the miner's pinned race candidate so the auto-pick is used.
381
+ */
382
+ export const clearRaceSelection = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
383
+ return (options?.client ?? client).delete<ClearRaceSelectionResponse, ClearRaceSelectionError, ThrowOnError>({
384
+ ...options,
385
+ url: '/v1/miner/race-selection'
386
+ });
387
+ };
388
+
367
389
  /**
368
390
  * Claim evaluation work
369
391
  * FIFO claim of next available evaluation work item.
@@ -315,6 +315,26 @@ export type AdminValidatorEntry = {
315
315
  * On-chain identity description
316
316
  */
317
317
  identity_description?: (string | null);
318
+ /**
319
+ * Latest reported host CPU utilisation percentage (0-100)
320
+ */
321
+ cpu_pct?: (number | null);
322
+ /**
323
+ * Latest reported host RAM utilisation percentage (0-100)
324
+ */
325
+ ram_pct?: (number | null);
326
+ /**
327
+ * Latest reported host disk utilisation percentage on the sandbox volume (0-100)
328
+ */
329
+ disk_pct?: (number | null);
330
+ /**
331
+ * Latest reported running Docker container count on the host
332
+ */
333
+ docker_container_count?: (number | null);
334
+ /**
335
+ * UTC timestamp of the last resource-metrics report
336
+ */
337
+ metrics_reported_at?: (string | null);
318
338
  /**
319
339
  * Whether the validator is banned
320
340
  */
@@ -381,6 +401,14 @@ export type AgentLatestVersion = {
381
401
  * Final score if eligible
382
402
  */
383
403
  final_score?: (number | null);
404
+ /**
405
+ * True when this version is the miner's pinned race candidate
406
+ */
407
+ is_selected_for_race?: boolean;
408
+ /**
409
+ * Set on the pinned version only when the pin can't take effect.
410
+ */
411
+ selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
384
412
  };
385
413
 
386
414
  export type AgentNotFoundError = {
@@ -446,6 +474,14 @@ export type AgentVersionHistoryEntry = {
446
474
  * Final score if eligible
447
475
  */
448
476
  final_score?: (number | null);
477
+ /**
478
+ * True when this version is the miner's pinned race candidate
479
+ */
480
+ is_selected_for_race?: boolean;
481
+ /**
482
+ * Set on the pinned version only when the pin can't take effect.
483
+ */
484
+ selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
449
485
  };
450
486
 
451
487
  export type AgentVersionNotFoundError = {
@@ -1392,6 +1428,22 @@ export type HeartbeatRequest = {
1392
1428
  service_versions?: ({
1393
1429
  [key: string]: (string);
1394
1430
  } | null);
1431
+ /**
1432
+ * Validator host CPU utilisation percentage (0-100)
1433
+ */
1434
+ cpu_pct?: (number | null);
1435
+ /**
1436
+ * Validator host RAM utilisation percentage (0-100)
1437
+ */
1438
+ ram_pct?: (number | null);
1439
+ /**
1440
+ * Validator host disk utilisation percentage on the sandbox volume (0-100)
1441
+ */
1442
+ disk_pct?: (number | null);
1443
+ /**
1444
+ * Validator host running Docker container count
1445
+ */
1446
+ docker_container_count?: (number | null);
1395
1447
  };
1396
1448
 
1397
1449
  export type HeartbeatResponse = {
@@ -1604,6 +1656,13 @@ export type MinerNotFoundError = {
1604
1656
  error_code?: "MINER_NOT_FOUND";
1605
1657
  };
1606
1658
 
1659
+ export type MinerRaceSelectionRequest = {
1660
+ /**
1661
+ * Agent version to pin as the race candidate
1662
+ */
1663
+ agent_version_id: string;
1664
+ };
1665
+
1607
1666
  export type MissingParameterError = {
1608
1667
  /**
1609
1668
  * Error message describing what went wrong
@@ -1637,6 +1696,17 @@ export type NoActiveSuiteError = {
1637
1696
  error_code?: "NO_ACTIVE_SUITE";
1638
1697
  };
1639
1698
 
1699
+ export type NoSelectionError = {
1700
+ /**
1701
+ * Error message describing what went wrong
1702
+ */
1703
+ detail: string;
1704
+ /**
1705
+ * Error code for programmatic handling
1706
+ */
1707
+ error_code?: "NO_SELECTION";
1708
+ };
1709
+
1640
1710
  export type NotRunOwnerError = {
1641
1711
  /**
1642
1712
  * Error message describing what went wrong
@@ -1648,6 +1718,17 @@ export type NotRunOwnerError = {
1648
1718
  error_code?: "NOT_RUN_OWNER";
1649
1719
  };
1650
1720
 
1721
+ export type NotVersionOwnerError = {
1722
+ /**
1723
+ * Error message describing what went wrong
1724
+ */
1725
+ detail: string;
1726
+ /**
1727
+ * Error code for programmatic handling
1728
+ */
1729
+ error_code?: "NOT_VERSION_OWNER";
1730
+ };
1731
+
1651
1732
  export type PendingEvaluation = {
1652
1733
  /**
1653
1734
  * Unique work item identifier
@@ -1965,6 +2046,17 @@ export type RaceHistoryResponse = {
1965
2046
  races: Array<RacePublic>;
1966
2047
  };
1967
2048
 
2049
+ export type RaceLockedError = {
2050
+ /**
2051
+ * Error message describing what went wrong
2052
+ */
2053
+ detail: string;
2054
+ /**
2055
+ * Error code for programmatic handling
2056
+ */
2057
+ error_code?: "RACE_LOCKED";
2058
+ };
2059
+
1968
2060
  export type RaceNotFoundError = {
1969
2061
  /**
1970
2062
  * Error message describing what went wrong
@@ -2745,6 +2837,26 @@ export type ValidatorPublic = {
2745
2837
  * On-chain identity description
2746
2838
  */
2747
2839
  identity_description?: (string | null);
2840
+ /**
2841
+ * Latest reported host CPU utilisation percentage (0-100)
2842
+ */
2843
+ cpu_pct?: (number | null);
2844
+ /**
2845
+ * Latest reported host RAM utilisation percentage (0-100)
2846
+ */
2847
+ ram_pct?: (number | null);
2848
+ /**
2849
+ * Latest reported host disk utilisation percentage on the sandbox volume (0-100)
2850
+ */
2851
+ disk_pct?: (number | null);
2852
+ /**
2853
+ * Latest reported running Docker container count on the host
2854
+ */
2855
+ docker_container_count?: (number | null);
2856
+ /**
2857
+ * UTC timestamp of the last resource-metrics report
2858
+ */
2859
+ metrics_reported_at?: (string | null);
2748
2860
  };
2749
2861
 
2750
2862
  /**
@@ -3210,6 +3322,18 @@ export type GetOwnedAgentVersionStatusResponse = (AgentVersionStatus);
3210
3322
 
3211
3323
  export type GetOwnedAgentVersionStatusError = (AgentVersionNotFoundError | HTTPValidationError);
3212
3324
 
3325
+ export type SetRaceSelectionData = {
3326
+ body: MinerRaceSelectionRequest;
3327
+ };
3328
+
3329
+ export type SetRaceSelectionResponse = (void);
3330
+
3331
+ export type SetRaceSelectionError = (unknown | NotVersionOwnerError | RaceLockedError | HTTPValidationError);
3332
+
3333
+ export type ClearRaceSelectionResponse = (void);
3334
+
3335
+ export type ClearRaceSelectionError = (NoSelectionError | RaceLockedError);
3336
+
3213
3337
  export type ClaimWorkData = {
3214
3338
  body?: (HeartbeatRequest | null);
3215
3339
  };