@oro-ai/sdk 1.0.48 → 1.0.50
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 +91 -2
- package/dist/index.d.ts +91 -2
- package/dist/index.js +16 -0
- package/dist/index.mjs +14 -0
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +23 -1
- package/src/generated/types.gen.ts +88 -0
package/dist/index.d.mts
CHANGED
|
@@ -390,6 +390,22 @@ type AgentLatestVersion = {
|
|
|
390
390
|
* Final score if eligible
|
|
391
391
|
*/
|
|
392
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);
|
|
401
|
+
/**
|
|
402
|
+
* True when this version can be pinned as the next race candidate. Mirrors the admission rules used by the PUT /v1/miner/race-selection endpoint.
|
|
403
|
+
*/
|
|
404
|
+
is_pinnable?: boolean;
|
|
405
|
+
/**
|
|
406
|
+
* When `is_pinnable` is false, the specific precondition that fails. Same enum as `selection_fallback_reason`.
|
|
407
|
+
*/
|
|
408
|
+
pin_disabled_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
393
409
|
};
|
|
394
410
|
type AgentNotFoundError = {
|
|
395
411
|
/**
|
|
@@ -452,6 +468,22 @@ type AgentVersionHistoryEntry = {
|
|
|
452
468
|
* Final score if eligible
|
|
453
469
|
*/
|
|
454
470
|
final_score?: (number | null);
|
|
471
|
+
/**
|
|
472
|
+
* True when this version is the miner's pinned race candidate
|
|
473
|
+
*/
|
|
474
|
+
is_selected_for_race?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* Set on the pinned version only when the pin can't take effect.
|
|
477
|
+
*/
|
|
478
|
+
selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
479
|
+
/**
|
|
480
|
+
* True when this version can be pinned as the next race candidate. Mirrors the admission rules used by the PUT /v1/miner/race-selection endpoint.
|
|
481
|
+
*/
|
|
482
|
+
is_pinnable?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* When `is_pinnable` is false, the specific precondition that fails. Same enum as `selection_fallback_reason`.
|
|
485
|
+
*/
|
|
486
|
+
pin_disabled_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
455
487
|
};
|
|
456
488
|
type AgentVersionNotFoundError = {
|
|
457
489
|
/**
|
|
@@ -1554,6 +1586,10 @@ type MinerAgentsResponse = {
|
|
|
1554
1586
|
* Earliest time the miner may submit again, if on cooldown
|
|
1555
1587
|
*/
|
|
1556
1588
|
next_allowed_at?: (string | null);
|
|
1589
|
+
/**
|
|
1590
|
+
* The agent_version_id this miner would race with right now: the explicitly pinned version when valid, otherwise the picker's auto-pick (highest-scoring eligible version on this hotkey >= the qualifying threshold). None when nothing on this hotkey qualifies.
|
|
1591
|
+
*/
|
|
1592
|
+
racing_agent_version_id?: (string | null);
|
|
1557
1593
|
};
|
|
1558
1594
|
type MinerNotFoundError = {
|
|
1559
1595
|
/**
|
|
@@ -1565,6 +1601,12 @@ type MinerNotFoundError = {
|
|
|
1565
1601
|
*/
|
|
1566
1602
|
error_code?: "MINER_NOT_FOUND";
|
|
1567
1603
|
};
|
|
1604
|
+
type MinerRaceSelectionRequest = {
|
|
1605
|
+
/**
|
|
1606
|
+
* Agent version to pin as the race candidate
|
|
1607
|
+
*/
|
|
1608
|
+
agent_version_id: string;
|
|
1609
|
+
};
|
|
1568
1610
|
type MissingParameterError = {
|
|
1569
1611
|
/**
|
|
1570
1612
|
* Error message describing what went wrong
|
|
@@ -1595,6 +1637,16 @@ type NoActiveSuiteError = {
|
|
|
1595
1637
|
*/
|
|
1596
1638
|
error_code?: "NO_ACTIVE_SUITE";
|
|
1597
1639
|
};
|
|
1640
|
+
type NoSelectionError = {
|
|
1641
|
+
/**
|
|
1642
|
+
* Error message describing what went wrong
|
|
1643
|
+
*/
|
|
1644
|
+
detail: string;
|
|
1645
|
+
/**
|
|
1646
|
+
* Error code for programmatic handling
|
|
1647
|
+
*/
|
|
1648
|
+
error_code?: "NO_SELECTION";
|
|
1649
|
+
};
|
|
1598
1650
|
type NotRunOwnerError = {
|
|
1599
1651
|
/**
|
|
1600
1652
|
* Error message describing what went wrong
|
|
@@ -1605,6 +1657,16 @@ type NotRunOwnerError = {
|
|
|
1605
1657
|
*/
|
|
1606
1658
|
error_code?: "NOT_RUN_OWNER";
|
|
1607
1659
|
};
|
|
1660
|
+
type NotVersionOwnerError = {
|
|
1661
|
+
/**
|
|
1662
|
+
* Error message describing what went wrong
|
|
1663
|
+
*/
|
|
1664
|
+
detail: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* Error code for programmatic handling
|
|
1667
|
+
*/
|
|
1668
|
+
error_code?: "NOT_VERSION_OWNER";
|
|
1669
|
+
};
|
|
1608
1670
|
type PendingEvaluation = {
|
|
1609
1671
|
/**
|
|
1610
1672
|
* Unique work item identifier
|
|
@@ -1906,6 +1968,16 @@ type RaceHistoryResponse = {
|
|
|
1906
1968
|
*/
|
|
1907
1969
|
races: Array<RacePublic>;
|
|
1908
1970
|
};
|
|
1971
|
+
type RaceLockedError = {
|
|
1972
|
+
/**
|
|
1973
|
+
* Error message describing what went wrong
|
|
1974
|
+
*/
|
|
1975
|
+
detail: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* Error code for programmatic handling
|
|
1978
|
+
*/
|
|
1979
|
+
error_code?: "RACE_LOCKED";
|
|
1980
|
+
};
|
|
1909
1981
|
type RaceNotFoundError = {
|
|
1910
1982
|
/**
|
|
1911
1983
|
* Error message describing what went wrong
|
|
@@ -3046,6 +3118,13 @@ type GetOwnedAgentVersionStatusData = {
|
|
|
3046
3118
|
};
|
|
3047
3119
|
type GetOwnedAgentVersionStatusResponse = (AgentVersionStatus);
|
|
3048
3120
|
type GetOwnedAgentVersionStatusError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3121
|
+
type SetRaceSelectionData = {
|
|
3122
|
+
body: MinerRaceSelectionRequest;
|
|
3123
|
+
};
|
|
3124
|
+
type SetRaceSelectionResponse = (void);
|
|
3125
|
+
type SetRaceSelectionError = (unknown | NotVersionOwnerError | RaceLockedError | HTTPValidationError);
|
|
3126
|
+
type ClearRaceSelectionResponse = (void);
|
|
3127
|
+
type ClearRaceSelectionError = (NoSelectionError | RaceLockedError);
|
|
3049
3128
|
type ClaimWorkData = {
|
|
3050
3129
|
body?: (HeartbeatRequest | null);
|
|
3051
3130
|
};
|
|
@@ -3663,6 +3742,16 @@ declare const listAgentVersions: <ThrowOnError extends boolean = false>(options:
|
|
|
3663
3742
|
* Get detailed status of a specific agent version owned by the miner.
|
|
3664
3743
|
*/
|
|
3665
3744
|
declare const getOwnedAgentVersionStatus: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetOwnedAgentVersionStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AgentVersionStatus, GetOwnedAgentVersionStatusError, ThrowOnError>;
|
|
3745
|
+
/**
|
|
3746
|
+
* Pin agent version as race candidate
|
|
3747
|
+
* Pin the given agent version as this miner's race candidate.
|
|
3748
|
+
*/
|
|
3749
|
+
declare const setRaceSelection: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetRaceSelectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, unknown, ThrowOnError>;
|
|
3750
|
+
/**
|
|
3751
|
+
* Clear pinned race candidate
|
|
3752
|
+
* Clear the miner's pinned race candidate so the auto-pick is used.
|
|
3753
|
+
*/
|
|
3754
|
+
declare const clearRaceSelection: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, ClearRaceSelectionError, ThrowOnError>;
|
|
3666
3755
|
/**
|
|
3667
3756
|
* Claim evaluation work
|
|
3668
3757
|
* FIFO claim of next available evaluation work item.
|
|
@@ -3867,7 +3956,7 @@ declare const closeQualifying: <ThrowOnError extends boolean = false>(options?:
|
|
|
3867
3956
|
*
|
|
3868
3957
|
* DO NOT EDIT — regenerate with: python3 scripts/extract-errors.py
|
|
3869
3958
|
*/
|
|
3870
|
-
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';
|
|
3959
|
+
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';
|
|
3871
3960
|
|
|
3872
3961
|
/**
|
|
3873
3962
|
* Error classification utilities for the ORO SDK.
|
|
@@ -4213,4 +4302,4 @@ declare class SessionAuthManager {
|
|
|
4213
4302
|
*/
|
|
4214
4303
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
4215
4304
|
|
|
4216
|
-
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 };
|
|
4305
|
+
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
|
@@ -390,6 +390,22 @@ type AgentLatestVersion = {
|
|
|
390
390
|
* Final score if eligible
|
|
391
391
|
*/
|
|
392
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);
|
|
401
|
+
/**
|
|
402
|
+
* True when this version can be pinned as the next race candidate. Mirrors the admission rules used by the PUT /v1/miner/race-selection endpoint.
|
|
403
|
+
*/
|
|
404
|
+
is_pinnable?: boolean;
|
|
405
|
+
/**
|
|
406
|
+
* When `is_pinnable` is false, the specific precondition that fails. Same enum as `selection_fallback_reason`.
|
|
407
|
+
*/
|
|
408
|
+
pin_disabled_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
393
409
|
};
|
|
394
410
|
type AgentNotFoundError = {
|
|
395
411
|
/**
|
|
@@ -452,6 +468,22 @@ type AgentVersionHistoryEntry = {
|
|
|
452
468
|
* Final score if eligible
|
|
453
469
|
*/
|
|
454
470
|
final_score?: (number | null);
|
|
471
|
+
/**
|
|
472
|
+
* True when this version is the miner's pinned race candidate
|
|
473
|
+
*/
|
|
474
|
+
is_selected_for_race?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* Set on the pinned version only when the pin can't take effect.
|
|
477
|
+
*/
|
|
478
|
+
selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
479
|
+
/**
|
|
480
|
+
* True when this version can be pinned as the next race candidate. Mirrors the admission rules used by the PUT /v1/miner/race-selection endpoint.
|
|
481
|
+
*/
|
|
482
|
+
is_pinnable?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* When `is_pinnable` is false, the specific precondition that fails. Same enum as `selection_fallback_reason`.
|
|
485
|
+
*/
|
|
486
|
+
pin_disabled_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
455
487
|
};
|
|
456
488
|
type AgentVersionNotFoundError = {
|
|
457
489
|
/**
|
|
@@ -1554,6 +1586,10 @@ type MinerAgentsResponse = {
|
|
|
1554
1586
|
* Earliest time the miner may submit again, if on cooldown
|
|
1555
1587
|
*/
|
|
1556
1588
|
next_allowed_at?: (string | null);
|
|
1589
|
+
/**
|
|
1590
|
+
* The agent_version_id this miner would race with right now: the explicitly pinned version when valid, otherwise the picker's auto-pick (highest-scoring eligible version on this hotkey >= the qualifying threshold). None when nothing on this hotkey qualifies.
|
|
1591
|
+
*/
|
|
1592
|
+
racing_agent_version_id?: (string | null);
|
|
1557
1593
|
};
|
|
1558
1594
|
type MinerNotFoundError = {
|
|
1559
1595
|
/**
|
|
@@ -1565,6 +1601,12 @@ type MinerNotFoundError = {
|
|
|
1565
1601
|
*/
|
|
1566
1602
|
error_code?: "MINER_NOT_FOUND";
|
|
1567
1603
|
};
|
|
1604
|
+
type MinerRaceSelectionRequest = {
|
|
1605
|
+
/**
|
|
1606
|
+
* Agent version to pin as the race candidate
|
|
1607
|
+
*/
|
|
1608
|
+
agent_version_id: string;
|
|
1609
|
+
};
|
|
1568
1610
|
type MissingParameterError = {
|
|
1569
1611
|
/**
|
|
1570
1612
|
* Error message describing what went wrong
|
|
@@ -1595,6 +1637,16 @@ type NoActiveSuiteError = {
|
|
|
1595
1637
|
*/
|
|
1596
1638
|
error_code?: "NO_ACTIVE_SUITE";
|
|
1597
1639
|
};
|
|
1640
|
+
type NoSelectionError = {
|
|
1641
|
+
/**
|
|
1642
|
+
* Error message describing what went wrong
|
|
1643
|
+
*/
|
|
1644
|
+
detail: string;
|
|
1645
|
+
/**
|
|
1646
|
+
* Error code for programmatic handling
|
|
1647
|
+
*/
|
|
1648
|
+
error_code?: "NO_SELECTION";
|
|
1649
|
+
};
|
|
1598
1650
|
type NotRunOwnerError = {
|
|
1599
1651
|
/**
|
|
1600
1652
|
* Error message describing what went wrong
|
|
@@ -1605,6 +1657,16 @@ type NotRunOwnerError = {
|
|
|
1605
1657
|
*/
|
|
1606
1658
|
error_code?: "NOT_RUN_OWNER";
|
|
1607
1659
|
};
|
|
1660
|
+
type NotVersionOwnerError = {
|
|
1661
|
+
/**
|
|
1662
|
+
* Error message describing what went wrong
|
|
1663
|
+
*/
|
|
1664
|
+
detail: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* Error code for programmatic handling
|
|
1667
|
+
*/
|
|
1668
|
+
error_code?: "NOT_VERSION_OWNER";
|
|
1669
|
+
};
|
|
1608
1670
|
type PendingEvaluation = {
|
|
1609
1671
|
/**
|
|
1610
1672
|
* Unique work item identifier
|
|
@@ -1906,6 +1968,16 @@ type RaceHistoryResponse = {
|
|
|
1906
1968
|
*/
|
|
1907
1969
|
races: Array<RacePublic>;
|
|
1908
1970
|
};
|
|
1971
|
+
type RaceLockedError = {
|
|
1972
|
+
/**
|
|
1973
|
+
* Error message describing what went wrong
|
|
1974
|
+
*/
|
|
1975
|
+
detail: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* Error code for programmatic handling
|
|
1978
|
+
*/
|
|
1979
|
+
error_code?: "RACE_LOCKED";
|
|
1980
|
+
};
|
|
1909
1981
|
type RaceNotFoundError = {
|
|
1910
1982
|
/**
|
|
1911
1983
|
* Error message describing what went wrong
|
|
@@ -3046,6 +3118,13 @@ type GetOwnedAgentVersionStatusData = {
|
|
|
3046
3118
|
};
|
|
3047
3119
|
type GetOwnedAgentVersionStatusResponse = (AgentVersionStatus);
|
|
3048
3120
|
type GetOwnedAgentVersionStatusError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3121
|
+
type SetRaceSelectionData = {
|
|
3122
|
+
body: MinerRaceSelectionRequest;
|
|
3123
|
+
};
|
|
3124
|
+
type SetRaceSelectionResponse = (void);
|
|
3125
|
+
type SetRaceSelectionError = (unknown | NotVersionOwnerError | RaceLockedError | HTTPValidationError);
|
|
3126
|
+
type ClearRaceSelectionResponse = (void);
|
|
3127
|
+
type ClearRaceSelectionError = (NoSelectionError | RaceLockedError);
|
|
3049
3128
|
type ClaimWorkData = {
|
|
3050
3129
|
body?: (HeartbeatRequest | null);
|
|
3051
3130
|
};
|
|
@@ -3663,6 +3742,16 @@ declare const listAgentVersions: <ThrowOnError extends boolean = false>(options:
|
|
|
3663
3742
|
* Get detailed status of a specific agent version owned by the miner.
|
|
3664
3743
|
*/
|
|
3665
3744
|
declare const getOwnedAgentVersionStatus: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetOwnedAgentVersionStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AgentVersionStatus, GetOwnedAgentVersionStatusError, ThrowOnError>;
|
|
3745
|
+
/**
|
|
3746
|
+
* Pin agent version as race candidate
|
|
3747
|
+
* Pin the given agent version as this miner's race candidate.
|
|
3748
|
+
*/
|
|
3749
|
+
declare const setRaceSelection: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetRaceSelectionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, unknown, ThrowOnError>;
|
|
3750
|
+
/**
|
|
3751
|
+
* Clear pinned race candidate
|
|
3752
|
+
* Clear the miner's pinned race candidate so the auto-pick is used.
|
|
3753
|
+
*/
|
|
3754
|
+
declare const clearRaceSelection: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, ClearRaceSelectionError, ThrowOnError>;
|
|
3666
3755
|
/**
|
|
3667
3756
|
* Claim evaluation work
|
|
3668
3757
|
* FIFO claim of next available evaluation work item.
|
|
@@ -3867,7 +3956,7 @@ declare const closeQualifying: <ThrowOnError extends boolean = false>(options?:
|
|
|
3867
3956
|
*
|
|
3868
3957
|
* DO NOT EDIT — regenerate with: python3 scripts/extract-errors.py
|
|
3869
3958
|
*/
|
|
3870
|
-
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';
|
|
3959
|
+
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';
|
|
3871
3960
|
|
|
3872
3961
|
/**
|
|
3873
3962
|
* Error classification utilities for the ORO SDK.
|
|
@@ -4213,4 +4302,4 @@ declare class SessionAuthManager {
|
|
|
4213
4302
|
*/
|
|
4214
4303
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
4215
4304
|
|
|
4216
|
-
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 };
|
|
4305
|
+
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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.
|
|
@@ -401,6 +401,22 @@ export type AgentLatestVersion = {
|
|
|
401
401
|
* Final score if eligible
|
|
402
402
|
*/
|
|
403
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);
|
|
412
|
+
/**
|
|
413
|
+
* True when this version can be pinned as the next race candidate. Mirrors the admission rules used by the PUT /v1/miner/race-selection endpoint.
|
|
414
|
+
*/
|
|
415
|
+
is_pinnable?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* When `is_pinnable` is false, the specific precondition that fails. Same enum as `selection_fallback_reason`.
|
|
418
|
+
*/
|
|
419
|
+
pin_disabled_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
404
420
|
};
|
|
405
421
|
|
|
406
422
|
export type AgentNotFoundError = {
|
|
@@ -466,6 +482,22 @@ export type AgentVersionHistoryEntry = {
|
|
|
466
482
|
* Final score if eligible
|
|
467
483
|
*/
|
|
468
484
|
final_score?: (number | null);
|
|
485
|
+
/**
|
|
486
|
+
* True when this version is the miner's pinned race candidate
|
|
487
|
+
*/
|
|
488
|
+
is_selected_for_race?: boolean;
|
|
489
|
+
/**
|
|
490
|
+
* Set on the pinned version only when the pin can't take effect.
|
|
491
|
+
*/
|
|
492
|
+
selection_fallback_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
493
|
+
/**
|
|
494
|
+
* True when this version can be pinned as the next race candidate. Mirrors the admission rules used by the PUT /v1/miner/race-selection endpoint.
|
|
495
|
+
*/
|
|
496
|
+
is_pinnable?: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* When `is_pinnable` is false, the specific precondition that fails. Same enum as `selection_fallback_reason`.
|
|
499
|
+
*/
|
|
500
|
+
pin_disabled_reason?: ('eliminated' | 'discarded' | 'below_threshold' | 'not_eligible' | null);
|
|
469
501
|
};
|
|
470
502
|
|
|
471
503
|
export type AgentVersionNotFoundError = {
|
|
@@ -1627,6 +1659,10 @@ export type MinerAgentsResponse = {
|
|
|
1627
1659
|
* Earliest time the miner may submit again, if on cooldown
|
|
1628
1660
|
*/
|
|
1629
1661
|
next_allowed_at?: (string | null);
|
|
1662
|
+
/**
|
|
1663
|
+
* The agent_version_id this miner would race with right now: the explicitly pinned version when valid, otherwise the picker's auto-pick (highest-scoring eligible version on this hotkey >= the qualifying threshold). None when nothing on this hotkey qualifies.
|
|
1664
|
+
*/
|
|
1665
|
+
racing_agent_version_id?: (string | null);
|
|
1630
1666
|
};
|
|
1631
1667
|
|
|
1632
1668
|
export type MinerNotFoundError = {
|
|
@@ -1640,6 +1676,13 @@ export type MinerNotFoundError = {
|
|
|
1640
1676
|
error_code?: "MINER_NOT_FOUND";
|
|
1641
1677
|
};
|
|
1642
1678
|
|
|
1679
|
+
export type MinerRaceSelectionRequest = {
|
|
1680
|
+
/**
|
|
1681
|
+
* Agent version to pin as the race candidate
|
|
1682
|
+
*/
|
|
1683
|
+
agent_version_id: string;
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1643
1686
|
export type MissingParameterError = {
|
|
1644
1687
|
/**
|
|
1645
1688
|
* Error message describing what went wrong
|
|
@@ -1673,6 +1716,17 @@ export type NoActiveSuiteError = {
|
|
|
1673
1716
|
error_code?: "NO_ACTIVE_SUITE";
|
|
1674
1717
|
};
|
|
1675
1718
|
|
|
1719
|
+
export type NoSelectionError = {
|
|
1720
|
+
/**
|
|
1721
|
+
* Error message describing what went wrong
|
|
1722
|
+
*/
|
|
1723
|
+
detail: string;
|
|
1724
|
+
/**
|
|
1725
|
+
* Error code for programmatic handling
|
|
1726
|
+
*/
|
|
1727
|
+
error_code?: "NO_SELECTION";
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1676
1730
|
export type NotRunOwnerError = {
|
|
1677
1731
|
/**
|
|
1678
1732
|
* Error message describing what went wrong
|
|
@@ -1684,6 +1738,17 @@ export type NotRunOwnerError = {
|
|
|
1684
1738
|
error_code?: "NOT_RUN_OWNER";
|
|
1685
1739
|
};
|
|
1686
1740
|
|
|
1741
|
+
export type NotVersionOwnerError = {
|
|
1742
|
+
/**
|
|
1743
|
+
* Error message describing what went wrong
|
|
1744
|
+
*/
|
|
1745
|
+
detail: string;
|
|
1746
|
+
/**
|
|
1747
|
+
* Error code for programmatic handling
|
|
1748
|
+
*/
|
|
1749
|
+
error_code?: "NOT_VERSION_OWNER";
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1687
1752
|
export type PendingEvaluation = {
|
|
1688
1753
|
/**
|
|
1689
1754
|
* Unique work item identifier
|
|
@@ -2001,6 +2066,17 @@ export type RaceHistoryResponse = {
|
|
|
2001
2066
|
races: Array<RacePublic>;
|
|
2002
2067
|
};
|
|
2003
2068
|
|
|
2069
|
+
export type RaceLockedError = {
|
|
2070
|
+
/**
|
|
2071
|
+
* Error message describing what went wrong
|
|
2072
|
+
*/
|
|
2073
|
+
detail: string;
|
|
2074
|
+
/**
|
|
2075
|
+
* Error code for programmatic handling
|
|
2076
|
+
*/
|
|
2077
|
+
error_code?: "RACE_LOCKED";
|
|
2078
|
+
};
|
|
2079
|
+
|
|
2004
2080
|
export type RaceNotFoundError = {
|
|
2005
2081
|
/**
|
|
2006
2082
|
* Error message describing what went wrong
|
|
@@ -3266,6 +3342,18 @@ export type GetOwnedAgentVersionStatusResponse = (AgentVersionStatus);
|
|
|
3266
3342
|
|
|
3267
3343
|
export type GetOwnedAgentVersionStatusError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3268
3344
|
|
|
3345
|
+
export type SetRaceSelectionData = {
|
|
3346
|
+
body: MinerRaceSelectionRequest;
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
export type SetRaceSelectionResponse = (void);
|
|
3350
|
+
|
|
3351
|
+
export type SetRaceSelectionError = (unknown | NotVersionOwnerError | RaceLockedError | HTTPValidationError);
|
|
3352
|
+
|
|
3353
|
+
export type ClearRaceSelectionResponse = (void);
|
|
3354
|
+
|
|
3355
|
+
export type ClearRaceSelectionError = (NoSelectionError | RaceLockedError);
|
|
3356
|
+
|
|
3269
3357
|
export type ClaimWorkData = {
|
|
3270
3358
|
body?: (HeartbeatRequest | null);
|
|
3271
3359
|
};
|