@oro-ai/sdk 1.0.27 → 1.0.28
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 +193 -1
- package/dist/index.d.ts +193 -1
- package/dist/index.js +24 -0
- package/dist/index.mjs +21 -0
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +38 -1
- package/src/generated/types.gen.ts +187 -1
package/dist/index.d.mts
CHANGED
|
@@ -930,6 +930,27 @@ type ClaimWorkResponse = {
|
|
|
930
930
|
*/
|
|
931
931
|
chutes_access_token?: (string | null);
|
|
932
932
|
};
|
|
933
|
+
/**
|
|
934
|
+
* Response for closing a qualifying window.
|
|
935
|
+
*/
|
|
936
|
+
type CloseQualifyingResponse = {
|
|
937
|
+
/**
|
|
938
|
+
* Race that was closed
|
|
939
|
+
*/
|
|
940
|
+
race_id: string;
|
|
941
|
+
/**
|
|
942
|
+
* Original qualifying close time
|
|
943
|
+
*/
|
|
944
|
+
previous_closes_at: string;
|
|
945
|
+
/**
|
|
946
|
+
* Updated close time (now)
|
|
947
|
+
*/
|
|
948
|
+
new_closes_at: string;
|
|
949
|
+
/**
|
|
950
|
+
* Race status after update
|
|
951
|
+
*/
|
|
952
|
+
status: string;
|
|
953
|
+
};
|
|
933
954
|
/**
|
|
934
955
|
* 422 - Static analysis found issues in submitted code.
|
|
935
956
|
*/
|
|
@@ -1058,6 +1079,15 @@ type CreateSuiteResponse = {
|
|
|
1058
1079
|
*/
|
|
1059
1080
|
is_active: boolean;
|
|
1060
1081
|
};
|
|
1082
|
+
/**
|
|
1083
|
+
* Response for current race state.
|
|
1084
|
+
*/
|
|
1085
|
+
type CurrentRacesResponse = {
|
|
1086
|
+
/**
|
|
1087
|
+
* Active races
|
|
1088
|
+
*/
|
|
1089
|
+
races: Array<RaceSummary>;
|
|
1090
|
+
};
|
|
1061
1091
|
/**
|
|
1062
1092
|
* Request to discard an agent version.
|
|
1063
1093
|
*/
|
|
@@ -1854,6 +1884,135 @@ type ProgressUpdateResponse = {
|
|
|
1854
1884
|
*/
|
|
1855
1885
|
accepted?: boolean;
|
|
1856
1886
|
};
|
|
1887
|
+
/**
|
|
1888
|
+
* Detailed diagnostics for a specific race.
|
|
1889
|
+
*/
|
|
1890
|
+
type RaceDiagnosticsResponse = {
|
|
1891
|
+
/**
|
|
1892
|
+
* Race ID
|
|
1893
|
+
*/
|
|
1894
|
+
race_id: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* Problem suite ID
|
|
1897
|
+
*/
|
|
1898
|
+
suite_id: number;
|
|
1899
|
+
race_number?: (number | null);
|
|
1900
|
+
/**
|
|
1901
|
+
* Current race status
|
|
1902
|
+
*/
|
|
1903
|
+
status: string;
|
|
1904
|
+
qualifying_closes_at?: (string | null);
|
|
1905
|
+
race_started_at?: (string | null);
|
|
1906
|
+
race_completed_at?: (string | null);
|
|
1907
|
+
winner_agent_version_id?: (string | null);
|
|
1908
|
+
winner_score?: (number | null);
|
|
1909
|
+
qualifying_threshold?: (number | null);
|
|
1910
|
+
incumbent_agent_version_id?: (string | null);
|
|
1911
|
+
problem_seed?: (string | null);
|
|
1912
|
+
/**
|
|
1913
|
+
* Number of race problems
|
|
1914
|
+
*/
|
|
1915
|
+
problem_count?: number;
|
|
1916
|
+
qualifiers?: Array<RaceQualifierEntry>;
|
|
1917
|
+
work_items?: Array<RaceWorkItemEntry>;
|
|
1918
|
+
};
|
|
1919
|
+
/**
|
|
1920
|
+
* A qualifier in a race.
|
|
1921
|
+
*/
|
|
1922
|
+
type RaceQualifierEntry = {
|
|
1923
|
+
/**
|
|
1924
|
+
* Agent version ID
|
|
1925
|
+
*/
|
|
1926
|
+
agent_version_id: string;
|
|
1927
|
+
/**
|
|
1928
|
+
* Agent name
|
|
1929
|
+
*/
|
|
1930
|
+
agent_name?: (string | null);
|
|
1931
|
+
/**
|
|
1932
|
+
* Miner hotkey
|
|
1933
|
+
*/
|
|
1934
|
+
miner_hotkey?: (string | null);
|
|
1935
|
+
/**
|
|
1936
|
+
* How agent qualified (INCUMBENT or SCORED)
|
|
1937
|
+
*/
|
|
1938
|
+
qualification_type: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* Score from qualifying
|
|
1941
|
+
*/
|
|
1942
|
+
qualifying_score?: (number | null);
|
|
1943
|
+
/**
|
|
1944
|
+
* Score from race phase
|
|
1945
|
+
*/
|
|
1946
|
+
race_score?: (number | null);
|
|
1947
|
+
};
|
|
1948
|
+
/**
|
|
1949
|
+
* Summary of a race for the current state view.
|
|
1950
|
+
*/
|
|
1951
|
+
type RaceSummary = {
|
|
1952
|
+
/**
|
|
1953
|
+
* Race ID
|
|
1954
|
+
*/
|
|
1955
|
+
race_id: string;
|
|
1956
|
+
/**
|
|
1957
|
+
* Problem suite ID
|
|
1958
|
+
*/
|
|
1959
|
+
suite_id: number;
|
|
1960
|
+
race_number?: (number | null);
|
|
1961
|
+
/**
|
|
1962
|
+
* Current race status
|
|
1963
|
+
*/
|
|
1964
|
+
status: string;
|
|
1965
|
+
qualifying_closes_at?: (string | null);
|
|
1966
|
+
race_started_at?: (string | null);
|
|
1967
|
+
race_completed_at?: (string | null);
|
|
1968
|
+
winner_agent_version_id?: (string | null);
|
|
1969
|
+
winner_score?: (number | null);
|
|
1970
|
+
/**
|
|
1971
|
+
* Number of qualifiers
|
|
1972
|
+
*/
|
|
1973
|
+
qualifier_count?: number;
|
|
1974
|
+
/**
|
|
1975
|
+
* Number of work items
|
|
1976
|
+
*/
|
|
1977
|
+
work_item_count?: number;
|
|
1978
|
+
};
|
|
1979
|
+
/**
|
|
1980
|
+
* A work item in a race.
|
|
1981
|
+
*/
|
|
1982
|
+
type RaceWorkItemEntry = {
|
|
1983
|
+
/**
|
|
1984
|
+
* Agent version ID
|
|
1985
|
+
*/
|
|
1986
|
+
agent_version_id: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* Agent name
|
|
1989
|
+
*/
|
|
1990
|
+
agent_name?: (string | null);
|
|
1991
|
+
/**
|
|
1992
|
+
* Evaluation phase
|
|
1993
|
+
*/
|
|
1994
|
+
phase: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* Whether work is complete
|
|
1997
|
+
*/
|
|
1998
|
+
is_closed: boolean;
|
|
1999
|
+
/**
|
|
2000
|
+
* Whether work was cancelled
|
|
2001
|
+
*/
|
|
2002
|
+
is_cancelled: boolean;
|
|
2003
|
+
/**
|
|
2004
|
+
* Successful evaluations
|
|
2005
|
+
*/
|
|
2006
|
+
included_success_count: number;
|
|
2007
|
+
/**
|
|
2008
|
+
* Active evaluations
|
|
2009
|
+
*/
|
|
2010
|
+
active_count: number;
|
|
2011
|
+
/**
|
|
2012
|
+
* Required successful evaluations
|
|
2013
|
+
*/
|
|
2014
|
+
required_successes: number;
|
|
2015
|
+
};
|
|
1857
2016
|
/**
|
|
1858
2017
|
* 429 - Rate limit exceeded.
|
|
1859
2018
|
*/
|
|
@@ -3176,6 +3335,20 @@ type GetAgentVersionCodeData = {
|
|
|
3176
3335
|
};
|
|
3177
3336
|
type GetAgentVersionCodeResponse = (AdminAgentCodeResponse);
|
|
3178
3337
|
type GetAgentVersionCodeError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3338
|
+
type GetCurrentRacesResponse = (CurrentRacesResponse);
|
|
3339
|
+
type GetCurrentRacesError = unknown;
|
|
3340
|
+
type GetRaceDiagnosticsData = {
|
|
3341
|
+
path: {
|
|
3342
|
+
/**
|
|
3343
|
+
* Race ID
|
|
3344
|
+
*/
|
|
3345
|
+
race_id: string;
|
|
3346
|
+
};
|
|
3347
|
+
};
|
|
3348
|
+
type GetRaceDiagnosticsResponse = (RaceDiagnosticsResponse);
|
|
3349
|
+
type GetRaceDiagnosticsError = (HTTPValidationError);
|
|
3350
|
+
type CloseQualifyingResponse2 = (CloseQualifyingResponse);
|
|
3351
|
+
type CloseQualifyingError = unknown;
|
|
3179
3352
|
|
|
3180
3353
|
declare const client: _hey_api_client_fetch.Client<Request, Response, unknown, _hey_api_client_fetch.RequestOptions<boolean, string>>;
|
|
3181
3354
|
/**
|
|
@@ -3489,6 +3662,25 @@ declare const getAgentVersionVariance: <ThrowOnError extends boolean = false>(op
|
|
|
3489
3662
|
* Get a presigned S3 URL to download agent source code for any version, regardless of release state.
|
|
3490
3663
|
*/
|
|
3491
3664
|
declare const getAgentVersionCode: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAgentVersionCodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AdminAgentCodeResponse, GetAgentVersionCodeError, ThrowOnError>;
|
|
3665
|
+
/**
|
|
3666
|
+
* Get current race state
|
|
3667
|
+
* Get all active (non-complete, non-cancelled) races with summary info.
|
|
3668
|
+
*/
|
|
3669
|
+
declare const getCurrentRaces: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CurrentRacesResponse, unknown, ThrowOnError>;
|
|
3670
|
+
/**
|
|
3671
|
+
* Get race diagnostics
|
|
3672
|
+
* Get detailed diagnostics for a specific race.
|
|
3673
|
+
*/
|
|
3674
|
+
declare const getRaceDiagnostics: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRaceDiagnosticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceDiagnosticsResponse, HTTPValidationError, ThrowOnError>;
|
|
3675
|
+
/**
|
|
3676
|
+
* Close qualifying and start race
|
|
3677
|
+
* Close the current qualifying window immediately.
|
|
3678
|
+
*
|
|
3679
|
+
* Sets qualifying_closes_at to now so the orchestrator picks it up
|
|
3680
|
+
* on its next cycle and transitions to RACE_RUNNING (or CANCELLED
|
|
3681
|
+
* if no qualifiers meet the threshold).
|
|
3682
|
+
*/
|
|
3683
|
+
declare const closeQualifying: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CloseQualifyingResponse, unknown, ThrowOnError>;
|
|
3492
3684
|
|
|
3493
3685
|
/**
|
|
3494
3686
|
* Auto-generated error code type.
|
|
@@ -3841,4 +4033,4 @@ declare class SessionAuthManager {
|
|
|
3841
4033
|
*/
|
|
3842
4034
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
3843
4035
|
|
|
3844
|
-
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 ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, 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 DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, 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 GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, 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 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 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 RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, 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 UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, 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, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
|
4036
|
+
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 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 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 GetCurrentRacesError, type GetCurrentRacesResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetRaceDiagnosticsData, type GetRaceDiagnosticsError, type GetRaceDiagnosticsResponse, 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 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 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 RaceDiagnosticsResponse, type RaceQualifierEntry, 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 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 UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, 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, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDiagnostics, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
package/dist/index.d.ts
CHANGED
|
@@ -930,6 +930,27 @@ type ClaimWorkResponse = {
|
|
|
930
930
|
*/
|
|
931
931
|
chutes_access_token?: (string | null);
|
|
932
932
|
};
|
|
933
|
+
/**
|
|
934
|
+
* Response for closing a qualifying window.
|
|
935
|
+
*/
|
|
936
|
+
type CloseQualifyingResponse = {
|
|
937
|
+
/**
|
|
938
|
+
* Race that was closed
|
|
939
|
+
*/
|
|
940
|
+
race_id: string;
|
|
941
|
+
/**
|
|
942
|
+
* Original qualifying close time
|
|
943
|
+
*/
|
|
944
|
+
previous_closes_at: string;
|
|
945
|
+
/**
|
|
946
|
+
* Updated close time (now)
|
|
947
|
+
*/
|
|
948
|
+
new_closes_at: string;
|
|
949
|
+
/**
|
|
950
|
+
* Race status after update
|
|
951
|
+
*/
|
|
952
|
+
status: string;
|
|
953
|
+
};
|
|
933
954
|
/**
|
|
934
955
|
* 422 - Static analysis found issues in submitted code.
|
|
935
956
|
*/
|
|
@@ -1058,6 +1079,15 @@ type CreateSuiteResponse = {
|
|
|
1058
1079
|
*/
|
|
1059
1080
|
is_active: boolean;
|
|
1060
1081
|
};
|
|
1082
|
+
/**
|
|
1083
|
+
* Response for current race state.
|
|
1084
|
+
*/
|
|
1085
|
+
type CurrentRacesResponse = {
|
|
1086
|
+
/**
|
|
1087
|
+
* Active races
|
|
1088
|
+
*/
|
|
1089
|
+
races: Array<RaceSummary>;
|
|
1090
|
+
};
|
|
1061
1091
|
/**
|
|
1062
1092
|
* Request to discard an agent version.
|
|
1063
1093
|
*/
|
|
@@ -1854,6 +1884,135 @@ type ProgressUpdateResponse = {
|
|
|
1854
1884
|
*/
|
|
1855
1885
|
accepted?: boolean;
|
|
1856
1886
|
};
|
|
1887
|
+
/**
|
|
1888
|
+
* Detailed diagnostics for a specific race.
|
|
1889
|
+
*/
|
|
1890
|
+
type RaceDiagnosticsResponse = {
|
|
1891
|
+
/**
|
|
1892
|
+
* Race ID
|
|
1893
|
+
*/
|
|
1894
|
+
race_id: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* Problem suite ID
|
|
1897
|
+
*/
|
|
1898
|
+
suite_id: number;
|
|
1899
|
+
race_number?: (number | null);
|
|
1900
|
+
/**
|
|
1901
|
+
* Current race status
|
|
1902
|
+
*/
|
|
1903
|
+
status: string;
|
|
1904
|
+
qualifying_closes_at?: (string | null);
|
|
1905
|
+
race_started_at?: (string | null);
|
|
1906
|
+
race_completed_at?: (string | null);
|
|
1907
|
+
winner_agent_version_id?: (string | null);
|
|
1908
|
+
winner_score?: (number | null);
|
|
1909
|
+
qualifying_threshold?: (number | null);
|
|
1910
|
+
incumbent_agent_version_id?: (string | null);
|
|
1911
|
+
problem_seed?: (string | null);
|
|
1912
|
+
/**
|
|
1913
|
+
* Number of race problems
|
|
1914
|
+
*/
|
|
1915
|
+
problem_count?: number;
|
|
1916
|
+
qualifiers?: Array<RaceQualifierEntry>;
|
|
1917
|
+
work_items?: Array<RaceWorkItemEntry>;
|
|
1918
|
+
};
|
|
1919
|
+
/**
|
|
1920
|
+
* A qualifier in a race.
|
|
1921
|
+
*/
|
|
1922
|
+
type RaceQualifierEntry = {
|
|
1923
|
+
/**
|
|
1924
|
+
* Agent version ID
|
|
1925
|
+
*/
|
|
1926
|
+
agent_version_id: string;
|
|
1927
|
+
/**
|
|
1928
|
+
* Agent name
|
|
1929
|
+
*/
|
|
1930
|
+
agent_name?: (string | null);
|
|
1931
|
+
/**
|
|
1932
|
+
* Miner hotkey
|
|
1933
|
+
*/
|
|
1934
|
+
miner_hotkey?: (string | null);
|
|
1935
|
+
/**
|
|
1936
|
+
* How agent qualified (INCUMBENT or SCORED)
|
|
1937
|
+
*/
|
|
1938
|
+
qualification_type: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* Score from qualifying
|
|
1941
|
+
*/
|
|
1942
|
+
qualifying_score?: (number | null);
|
|
1943
|
+
/**
|
|
1944
|
+
* Score from race phase
|
|
1945
|
+
*/
|
|
1946
|
+
race_score?: (number | null);
|
|
1947
|
+
};
|
|
1948
|
+
/**
|
|
1949
|
+
* Summary of a race for the current state view.
|
|
1950
|
+
*/
|
|
1951
|
+
type RaceSummary = {
|
|
1952
|
+
/**
|
|
1953
|
+
* Race ID
|
|
1954
|
+
*/
|
|
1955
|
+
race_id: string;
|
|
1956
|
+
/**
|
|
1957
|
+
* Problem suite ID
|
|
1958
|
+
*/
|
|
1959
|
+
suite_id: number;
|
|
1960
|
+
race_number?: (number | null);
|
|
1961
|
+
/**
|
|
1962
|
+
* Current race status
|
|
1963
|
+
*/
|
|
1964
|
+
status: string;
|
|
1965
|
+
qualifying_closes_at?: (string | null);
|
|
1966
|
+
race_started_at?: (string | null);
|
|
1967
|
+
race_completed_at?: (string | null);
|
|
1968
|
+
winner_agent_version_id?: (string | null);
|
|
1969
|
+
winner_score?: (number | null);
|
|
1970
|
+
/**
|
|
1971
|
+
* Number of qualifiers
|
|
1972
|
+
*/
|
|
1973
|
+
qualifier_count?: number;
|
|
1974
|
+
/**
|
|
1975
|
+
* Number of work items
|
|
1976
|
+
*/
|
|
1977
|
+
work_item_count?: number;
|
|
1978
|
+
};
|
|
1979
|
+
/**
|
|
1980
|
+
* A work item in a race.
|
|
1981
|
+
*/
|
|
1982
|
+
type RaceWorkItemEntry = {
|
|
1983
|
+
/**
|
|
1984
|
+
* Agent version ID
|
|
1985
|
+
*/
|
|
1986
|
+
agent_version_id: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* Agent name
|
|
1989
|
+
*/
|
|
1990
|
+
agent_name?: (string | null);
|
|
1991
|
+
/**
|
|
1992
|
+
* Evaluation phase
|
|
1993
|
+
*/
|
|
1994
|
+
phase: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* Whether work is complete
|
|
1997
|
+
*/
|
|
1998
|
+
is_closed: boolean;
|
|
1999
|
+
/**
|
|
2000
|
+
* Whether work was cancelled
|
|
2001
|
+
*/
|
|
2002
|
+
is_cancelled: boolean;
|
|
2003
|
+
/**
|
|
2004
|
+
* Successful evaluations
|
|
2005
|
+
*/
|
|
2006
|
+
included_success_count: number;
|
|
2007
|
+
/**
|
|
2008
|
+
* Active evaluations
|
|
2009
|
+
*/
|
|
2010
|
+
active_count: number;
|
|
2011
|
+
/**
|
|
2012
|
+
* Required successful evaluations
|
|
2013
|
+
*/
|
|
2014
|
+
required_successes: number;
|
|
2015
|
+
};
|
|
1857
2016
|
/**
|
|
1858
2017
|
* 429 - Rate limit exceeded.
|
|
1859
2018
|
*/
|
|
@@ -3176,6 +3335,20 @@ type GetAgentVersionCodeData = {
|
|
|
3176
3335
|
};
|
|
3177
3336
|
type GetAgentVersionCodeResponse = (AdminAgentCodeResponse);
|
|
3178
3337
|
type GetAgentVersionCodeError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3338
|
+
type GetCurrentRacesResponse = (CurrentRacesResponse);
|
|
3339
|
+
type GetCurrentRacesError = unknown;
|
|
3340
|
+
type GetRaceDiagnosticsData = {
|
|
3341
|
+
path: {
|
|
3342
|
+
/**
|
|
3343
|
+
* Race ID
|
|
3344
|
+
*/
|
|
3345
|
+
race_id: string;
|
|
3346
|
+
};
|
|
3347
|
+
};
|
|
3348
|
+
type GetRaceDiagnosticsResponse = (RaceDiagnosticsResponse);
|
|
3349
|
+
type GetRaceDiagnosticsError = (HTTPValidationError);
|
|
3350
|
+
type CloseQualifyingResponse2 = (CloseQualifyingResponse);
|
|
3351
|
+
type CloseQualifyingError = unknown;
|
|
3179
3352
|
|
|
3180
3353
|
declare const client: _hey_api_client_fetch.Client<Request, Response, unknown, _hey_api_client_fetch.RequestOptions<boolean, string>>;
|
|
3181
3354
|
/**
|
|
@@ -3489,6 +3662,25 @@ declare const getAgentVersionVariance: <ThrowOnError extends boolean = false>(op
|
|
|
3489
3662
|
* Get a presigned S3 URL to download agent source code for any version, regardless of release state.
|
|
3490
3663
|
*/
|
|
3491
3664
|
declare const getAgentVersionCode: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAgentVersionCodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AdminAgentCodeResponse, GetAgentVersionCodeError, ThrowOnError>;
|
|
3665
|
+
/**
|
|
3666
|
+
* Get current race state
|
|
3667
|
+
* Get all active (non-complete, non-cancelled) races with summary info.
|
|
3668
|
+
*/
|
|
3669
|
+
declare const getCurrentRaces: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CurrentRacesResponse, unknown, ThrowOnError>;
|
|
3670
|
+
/**
|
|
3671
|
+
* Get race diagnostics
|
|
3672
|
+
* Get detailed diagnostics for a specific race.
|
|
3673
|
+
*/
|
|
3674
|
+
declare const getRaceDiagnostics: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRaceDiagnosticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceDiagnosticsResponse, HTTPValidationError, ThrowOnError>;
|
|
3675
|
+
/**
|
|
3676
|
+
* Close qualifying and start race
|
|
3677
|
+
* Close the current qualifying window immediately.
|
|
3678
|
+
*
|
|
3679
|
+
* Sets qualifying_closes_at to now so the orchestrator picks it up
|
|
3680
|
+
* on its next cycle and transitions to RACE_RUNNING (or CANCELLED
|
|
3681
|
+
* if no qualifiers meet the threshold).
|
|
3682
|
+
*/
|
|
3683
|
+
declare const closeQualifying: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CloseQualifyingResponse, unknown, ThrowOnError>;
|
|
3492
3684
|
|
|
3493
3685
|
/**
|
|
3494
3686
|
* Auto-generated error code type.
|
|
@@ -3841,4 +4033,4 @@ declare class SessionAuthManager {
|
|
|
3841
4033
|
*/
|
|
3842
4034
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
3843
4035
|
|
|
3844
|
-
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 ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, 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 DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, 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 GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, 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 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 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 RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, 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 UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, 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, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
|
4036
|
+
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 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 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 GetCurrentRacesError, type GetCurrentRacesResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetRaceDiagnosticsData, type GetRaceDiagnosticsError, type GetRaceDiagnosticsResponse, 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 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 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 RaceDiagnosticsResponse, type RaceQualifierEntry, 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 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 UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, 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, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDiagnostics, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
package/dist/index.js
CHANGED
|
@@ -40,6 +40,7 @@ __export(index_exports, {
|
|
|
40
40
|
classifyStatus: () => classifyStatus,
|
|
41
41
|
clearMinerCooldown: () => clearMinerCooldown,
|
|
42
42
|
client: () => client,
|
|
43
|
+
closeQualifying: () => closeQualifying,
|
|
43
44
|
completeRun: () => completeRun,
|
|
44
45
|
computeDelay: () => computeDelay,
|
|
45
46
|
configureBittensorAuth: () => configureBittensorAuth,
|
|
@@ -59,6 +60,7 @@ __export(index_exports, {
|
|
|
59
60
|
getArtifactDownloadUrl: () => getArtifactDownloadUrl,
|
|
60
61
|
getAuditEvents: () => getAuditEvents,
|
|
61
62
|
getChutesAuthStatus: () => getChutesAuthStatus,
|
|
63
|
+
getCurrentRaces: () => getCurrentRaces,
|
|
62
64
|
getCurrentSuite: () => getCurrentSuite,
|
|
63
65
|
getErrorCode: () => getErrorCode,
|
|
64
66
|
getErrorDetail: () => getErrorDetail,
|
|
@@ -66,6 +68,7 @@ __export(index_exports, {
|
|
|
66
68
|
getLeaderboard: () => getLeaderboard,
|
|
67
69
|
getOwnedAgentVersionStatus: () => getOwnedAgentVersionStatus,
|
|
68
70
|
getPendingEvaluations: () => getPendingEvaluations,
|
|
71
|
+
getRaceDiagnostics: () => getRaceDiagnostics,
|
|
69
72
|
getReaperStats: () => getReaperStats,
|
|
70
73
|
getRunProblems: () => getRunProblems,
|
|
71
74
|
getRunningEvaluations: () => getRunningEvaluations,
|
|
@@ -436,6 +439,24 @@ var getAgentVersionCode = (options) => {
|
|
|
436
439
|
url: "/v1/admin/agent-versions/{agent_version_id}/code"
|
|
437
440
|
});
|
|
438
441
|
};
|
|
442
|
+
var getCurrentRaces = (options) => {
|
|
443
|
+
return (options?.client ?? client).get({
|
|
444
|
+
...options,
|
|
445
|
+
url: "/v1/admin/races/current"
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
var getRaceDiagnostics = (options) => {
|
|
449
|
+
return (options?.client ?? client).get({
|
|
450
|
+
...options,
|
|
451
|
+
url: "/v1/admin/races/{race_id}/diagnostics"
|
|
452
|
+
});
|
|
453
|
+
};
|
|
454
|
+
var closeQualifying = (options) => {
|
|
455
|
+
return (options?.client ?? client).post({
|
|
456
|
+
...options,
|
|
457
|
+
url: "/v1/admin/races/close-qualifying"
|
|
458
|
+
});
|
|
459
|
+
};
|
|
439
460
|
|
|
440
461
|
// src/errors.ts
|
|
441
462
|
function classifyStatus(status) {
|
|
@@ -808,6 +829,7 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
808
829
|
classifyStatus,
|
|
809
830
|
clearMinerCooldown,
|
|
810
831
|
client,
|
|
832
|
+
closeQualifying,
|
|
811
833
|
completeRun,
|
|
812
834
|
computeDelay,
|
|
813
835
|
configureBittensorAuth,
|
|
@@ -827,6 +849,7 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
827
849
|
getArtifactDownloadUrl,
|
|
828
850
|
getAuditEvents,
|
|
829
851
|
getChutesAuthStatus,
|
|
852
|
+
getCurrentRaces,
|
|
830
853
|
getCurrentSuite,
|
|
831
854
|
getErrorCode,
|
|
832
855
|
getErrorDetail,
|
|
@@ -834,6 +857,7 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
834
857
|
getLeaderboard,
|
|
835
858
|
getOwnedAgentVersionStatus,
|
|
836
859
|
getPendingEvaluations,
|
|
860
|
+
getRaceDiagnostics,
|
|
837
861
|
getReaperStats,
|
|
838
862
|
getRunProblems,
|
|
839
863
|
getRunningEvaluations,
|
package/dist/index.mjs
CHANGED
|
@@ -330,6 +330,24 @@ var getAgentVersionCode = (options) => {
|
|
|
330
330
|
url: "/v1/admin/agent-versions/{agent_version_id}/code"
|
|
331
331
|
});
|
|
332
332
|
};
|
|
333
|
+
var getCurrentRaces = (options) => {
|
|
334
|
+
return (options?.client ?? client).get({
|
|
335
|
+
...options,
|
|
336
|
+
url: "/v1/admin/races/current"
|
|
337
|
+
});
|
|
338
|
+
};
|
|
339
|
+
var getRaceDiagnostics = (options) => {
|
|
340
|
+
return (options?.client ?? client).get({
|
|
341
|
+
...options,
|
|
342
|
+
url: "/v1/admin/races/{race_id}/diagnostics"
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
var closeQualifying = (options) => {
|
|
346
|
+
return (options?.client ?? client).post({
|
|
347
|
+
...options,
|
|
348
|
+
url: "/v1/admin/races/close-qualifying"
|
|
349
|
+
});
|
|
350
|
+
};
|
|
333
351
|
|
|
334
352
|
// src/errors.ts
|
|
335
353
|
function classifyStatus(status) {
|
|
@@ -701,6 +719,7 @@ export {
|
|
|
701
719
|
classifyStatus,
|
|
702
720
|
clearMinerCooldown,
|
|
703
721
|
client,
|
|
722
|
+
closeQualifying,
|
|
704
723
|
completeRun,
|
|
705
724
|
computeDelay,
|
|
706
725
|
configureBittensorAuth,
|
|
@@ -720,6 +739,7 @@ export {
|
|
|
720
739
|
getArtifactDownloadUrl,
|
|
721
740
|
getAuditEvents,
|
|
722
741
|
getChutesAuthStatus,
|
|
742
|
+
getCurrentRaces,
|
|
723
743
|
getCurrentSuite,
|
|
724
744
|
getErrorCode,
|
|
725
745
|
getErrorDetail,
|
|
@@ -727,6 +747,7 @@ export {
|
|
|
727
747
|
getLeaderboard,
|
|
728
748
|
getOwnedAgentVersionStatus,
|
|
729
749
|
getPendingEvaluations,
|
|
750
|
+
getRaceDiagnostics,
|
|
730
751
|
getReaperStats,
|
|
731
752
|
getRunProblems,
|
|
732
753
|
getRunningEvaluations,
|
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, 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, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, 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, 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 } from './types.gen';
|
|
4
|
+
import type { HealthCheckError, HealthCheckResponse, ListSuitesError, ListSuitesResponse, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, 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, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, 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, 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
|
|
|
@@ -643,4 +643,41 @@ export const getAgentVersionCode = <ThrowOnError extends boolean = false>(option
|
|
|
643
643
|
...options,
|
|
644
644
|
url: '/v1/admin/agent-versions/{agent_version_id}/code'
|
|
645
645
|
});
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Get current race state
|
|
650
|
+
* Get all active (non-complete, non-cancelled) races with summary info.
|
|
651
|
+
*/
|
|
652
|
+
export const getCurrentRaces = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
653
|
+
return (options?.client ?? client).get<GetCurrentRacesResponse, GetCurrentRacesError, ThrowOnError>({
|
|
654
|
+
...options,
|
|
655
|
+
url: '/v1/admin/races/current'
|
|
656
|
+
});
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Get race diagnostics
|
|
661
|
+
* Get detailed diagnostics for a specific race.
|
|
662
|
+
*/
|
|
663
|
+
export const getRaceDiagnostics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRaceDiagnosticsData, ThrowOnError>) => {
|
|
664
|
+
return (options?.client ?? client).get<GetRaceDiagnosticsResponse, GetRaceDiagnosticsError, ThrowOnError>({
|
|
665
|
+
...options,
|
|
666
|
+
url: '/v1/admin/races/{race_id}/diagnostics'
|
|
667
|
+
});
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Close qualifying and start race
|
|
672
|
+
* Close the current qualifying window immediately.
|
|
673
|
+
*
|
|
674
|
+
* Sets qualifying_closes_at to now so the orchestrator picks it up
|
|
675
|
+
* on its next cycle and transitions to RACE_RUNNING (or CANCELLED
|
|
676
|
+
* if no qualifiers meet the threshold).
|
|
677
|
+
*/
|
|
678
|
+
export const closeQualifying = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
679
|
+
return (options?.client ?? client).post<CloseQualifyingResponse2, CloseQualifyingError, ThrowOnError>({
|
|
680
|
+
...options,
|
|
681
|
+
url: '/v1/admin/races/close-qualifying'
|
|
682
|
+
});
|
|
646
683
|
};
|
|
@@ -972,6 +972,28 @@ export type ClaimWorkResponse = {
|
|
|
972
972
|
chutes_access_token?: (string | null);
|
|
973
973
|
};
|
|
974
974
|
|
|
975
|
+
/**
|
|
976
|
+
* Response for closing a qualifying window.
|
|
977
|
+
*/
|
|
978
|
+
export type CloseQualifyingResponse = {
|
|
979
|
+
/**
|
|
980
|
+
* Race that was closed
|
|
981
|
+
*/
|
|
982
|
+
race_id: string;
|
|
983
|
+
/**
|
|
984
|
+
* Original qualifying close time
|
|
985
|
+
*/
|
|
986
|
+
previous_closes_at: string;
|
|
987
|
+
/**
|
|
988
|
+
* Updated close time (now)
|
|
989
|
+
*/
|
|
990
|
+
new_closes_at: string;
|
|
991
|
+
/**
|
|
992
|
+
* Race status after update
|
|
993
|
+
*/
|
|
994
|
+
status: string;
|
|
995
|
+
};
|
|
996
|
+
|
|
975
997
|
/**
|
|
976
998
|
* 422 - Static analysis found issues in submitted code.
|
|
977
999
|
*/
|
|
@@ -1106,6 +1128,16 @@ export type CreateSuiteResponse = {
|
|
|
1106
1128
|
is_active: boolean;
|
|
1107
1129
|
};
|
|
1108
1130
|
|
|
1131
|
+
/**
|
|
1132
|
+
* Response for current race state.
|
|
1133
|
+
*/
|
|
1134
|
+
export type CurrentRacesResponse = {
|
|
1135
|
+
/**
|
|
1136
|
+
* Active races
|
|
1137
|
+
*/
|
|
1138
|
+
races: Array<RaceSummary>;
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1109
1141
|
/**
|
|
1110
1142
|
* Request to discard an agent version.
|
|
1111
1143
|
*/
|
|
@@ -1940,6 +1972,139 @@ export type ProgressUpdateResponse = {
|
|
|
1940
1972
|
accepted?: boolean;
|
|
1941
1973
|
};
|
|
1942
1974
|
|
|
1975
|
+
/**
|
|
1976
|
+
* Detailed diagnostics for a specific race.
|
|
1977
|
+
*/
|
|
1978
|
+
export type RaceDiagnosticsResponse = {
|
|
1979
|
+
/**
|
|
1980
|
+
* Race ID
|
|
1981
|
+
*/
|
|
1982
|
+
race_id: string;
|
|
1983
|
+
/**
|
|
1984
|
+
* Problem suite ID
|
|
1985
|
+
*/
|
|
1986
|
+
suite_id: number;
|
|
1987
|
+
race_number?: (number | null);
|
|
1988
|
+
/**
|
|
1989
|
+
* Current race status
|
|
1990
|
+
*/
|
|
1991
|
+
status: string;
|
|
1992
|
+
qualifying_closes_at?: (string | null);
|
|
1993
|
+
race_started_at?: (string | null);
|
|
1994
|
+
race_completed_at?: (string | null);
|
|
1995
|
+
winner_agent_version_id?: (string | null);
|
|
1996
|
+
winner_score?: (number | null);
|
|
1997
|
+
qualifying_threshold?: (number | null);
|
|
1998
|
+
incumbent_agent_version_id?: (string | null);
|
|
1999
|
+
problem_seed?: (string | null);
|
|
2000
|
+
/**
|
|
2001
|
+
* Number of race problems
|
|
2002
|
+
*/
|
|
2003
|
+
problem_count?: number;
|
|
2004
|
+
qualifiers?: Array<RaceQualifierEntry>;
|
|
2005
|
+
work_items?: Array<RaceWorkItemEntry>;
|
|
2006
|
+
};
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* A qualifier in a race.
|
|
2010
|
+
*/
|
|
2011
|
+
export type RaceQualifierEntry = {
|
|
2012
|
+
/**
|
|
2013
|
+
* Agent version ID
|
|
2014
|
+
*/
|
|
2015
|
+
agent_version_id: string;
|
|
2016
|
+
/**
|
|
2017
|
+
* Agent name
|
|
2018
|
+
*/
|
|
2019
|
+
agent_name?: (string | null);
|
|
2020
|
+
/**
|
|
2021
|
+
* Miner hotkey
|
|
2022
|
+
*/
|
|
2023
|
+
miner_hotkey?: (string | null);
|
|
2024
|
+
/**
|
|
2025
|
+
* How agent qualified (INCUMBENT or SCORED)
|
|
2026
|
+
*/
|
|
2027
|
+
qualification_type: string;
|
|
2028
|
+
/**
|
|
2029
|
+
* Score from qualifying
|
|
2030
|
+
*/
|
|
2031
|
+
qualifying_score?: (number | null);
|
|
2032
|
+
/**
|
|
2033
|
+
* Score from race phase
|
|
2034
|
+
*/
|
|
2035
|
+
race_score?: (number | null);
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* Summary of a race for the current state view.
|
|
2040
|
+
*/
|
|
2041
|
+
export type RaceSummary = {
|
|
2042
|
+
/**
|
|
2043
|
+
* Race ID
|
|
2044
|
+
*/
|
|
2045
|
+
race_id: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* Problem suite ID
|
|
2048
|
+
*/
|
|
2049
|
+
suite_id: number;
|
|
2050
|
+
race_number?: (number | null);
|
|
2051
|
+
/**
|
|
2052
|
+
* Current race status
|
|
2053
|
+
*/
|
|
2054
|
+
status: string;
|
|
2055
|
+
qualifying_closes_at?: (string | null);
|
|
2056
|
+
race_started_at?: (string | null);
|
|
2057
|
+
race_completed_at?: (string | null);
|
|
2058
|
+
winner_agent_version_id?: (string | null);
|
|
2059
|
+
winner_score?: (number | null);
|
|
2060
|
+
/**
|
|
2061
|
+
* Number of qualifiers
|
|
2062
|
+
*/
|
|
2063
|
+
qualifier_count?: number;
|
|
2064
|
+
/**
|
|
2065
|
+
* Number of work items
|
|
2066
|
+
*/
|
|
2067
|
+
work_item_count?: number;
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* A work item in a race.
|
|
2072
|
+
*/
|
|
2073
|
+
export type RaceWorkItemEntry = {
|
|
2074
|
+
/**
|
|
2075
|
+
* Agent version ID
|
|
2076
|
+
*/
|
|
2077
|
+
agent_version_id: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* Agent name
|
|
2080
|
+
*/
|
|
2081
|
+
agent_name?: (string | null);
|
|
2082
|
+
/**
|
|
2083
|
+
* Evaluation phase
|
|
2084
|
+
*/
|
|
2085
|
+
phase: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* Whether work is complete
|
|
2088
|
+
*/
|
|
2089
|
+
is_closed: boolean;
|
|
2090
|
+
/**
|
|
2091
|
+
* Whether work was cancelled
|
|
2092
|
+
*/
|
|
2093
|
+
is_cancelled: boolean;
|
|
2094
|
+
/**
|
|
2095
|
+
* Successful evaluations
|
|
2096
|
+
*/
|
|
2097
|
+
included_success_count: number;
|
|
2098
|
+
/**
|
|
2099
|
+
* Active evaluations
|
|
2100
|
+
*/
|
|
2101
|
+
active_count: number;
|
|
2102
|
+
/**
|
|
2103
|
+
* Required successful evaluations
|
|
2104
|
+
*/
|
|
2105
|
+
required_successes: number;
|
|
2106
|
+
};
|
|
2107
|
+
|
|
1943
2108
|
/**
|
|
1944
2109
|
* 429 - Rate limit exceeded.
|
|
1945
2110
|
*/
|
|
@@ -3446,4 +3611,25 @@ export type GetAgentVersionCodeData = {
|
|
|
3446
3611
|
|
|
3447
3612
|
export type GetAgentVersionCodeResponse = (AdminAgentCodeResponse);
|
|
3448
3613
|
|
|
3449
|
-
export type GetAgentVersionCodeError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3614
|
+
export type GetAgentVersionCodeError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3615
|
+
|
|
3616
|
+
export type GetCurrentRacesResponse = (CurrentRacesResponse);
|
|
3617
|
+
|
|
3618
|
+
export type GetCurrentRacesError = unknown;
|
|
3619
|
+
|
|
3620
|
+
export type GetRaceDiagnosticsData = {
|
|
3621
|
+
path: {
|
|
3622
|
+
/**
|
|
3623
|
+
* Race ID
|
|
3624
|
+
*/
|
|
3625
|
+
race_id: string;
|
|
3626
|
+
};
|
|
3627
|
+
};
|
|
3628
|
+
|
|
3629
|
+
export type GetRaceDiagnosticsResponse = (RaceDiagnosticsResponse);
|
|
3630
|
+
|
|
3631
|
+
export type GetRaceDiagnosticsError = (HTTPValidationError);
|
|
3632
|
+
|
|
3633
|
+
export type CloseQualifyingResponse2 = (CloseQualifyingResponse);
|
|
3634
|
+
|
|
3635
|
+
export type CloseQualifyingError = unknown;
|