@oro-ai/sdk 1.0.28 → 1.0.29
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 +179 -2
- package/dist/index.d.ts +179 -2
- package/dist/index.js +24 -0
- package/dist/index.mjs +21 -0
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +34 -1
- package/src/generated/types.gen.ts +176 -0
package/dist/index.d.mts
CHANGED
|
@@ -1884,6 +1884,32 @@ type ProgressUpdateResponse = {
|
|
|
1884
1884
|
*/
|
|
1885
1885
|
accepted?: boolean;
|
|
1886
1886
|
};
|
|
1887
|
+
/**
|
|
1888
|
+
* Response for current race state.
|
|
1889
|
+
*/
|
|
1890
|
+
type RaceCurrentResponse = {
|
|
1891
|
+
/**
|
|
1892
|
+
* Active race, if any
|
|
1893
|
+
*/
|
|
1894
|
+
race?: (RacePublic | null);
|
|
1895
|
+
/**
|
|
1896
|
+
* Qualifiers for the active race
|
|
1897
|
+
*/
|
|
1898
|
+
qualifiers?: Array<RaceQualifierPublic>;
|
|
1899
|
+
};
|
|
1900
|
+
/**
|
|
1901
|
+
* Detailed view of a single race.
|
|
1902
|
+
*/
|
|
1903
|
+
type RaceDetailResponse = {
|
|
1904
|
+
/**
|
|
1905
|
+
* Race information
|
|
1906
|
+
*/
|
|
1907
|
+
race: RacePublic;
|
|
1908
|
+
/**
|
|
1909
|
+
* Qualifiers with scores
|
|
1910
|
+
*/
|
|
1911
|
+
qualifiers?: Array<RaceQualifierPublic>;
|
|
1912
|
+
};
|
|
1887
1913
|
/**
|
|
1888
1914
|
* Detailed diagnostics for a specific race.
|
|
1889
1915
|
*/
|
|
@@ -1916,6 +1942,79 @@ type RaceDiagnosticsResponse = {
|
|
|
1916
1942
|
qualifiers?: Array<RaceQualifierEntry>;
|
|
1917
1943
|
work_items?: Array<RaceWorkItemEntry>;
|
|
1918
1944
|
};
|
|
1945
|
+
/**
|
|
1946
|
+
* Paginated list of completed races.
|
|
1947
|
+
*/
|
|
1948
|
+
type RaceHistoryResponse = {
|
|
1949
|
+
/**
|
|
1950
|
+
* Past races
|
|
1951
|
+
*/
|
|
1952
|
+
races: Array<RacePublic>;
|
|
1953
|
+
/**
|
|
1954
|
+
* Total count
|
|
1955
|
+
*/
|
|
1956
|
+
total: number;
|
|
1957
|
+
/**
|
|
1958
|
+
* Page size
|
|
1959
|
+
*/
|
|
1960
|
+
limit: number;
|
|
1961
|
+
/**
|
|
1962
|
+
* Page offset
|
|
1963
|
+
*/
|
|
1964
|
+
offset: number;
|
|
1965
|
+
};
|
|
1966
|
+
/**
|
|
1967
|
+
* 404 - Race not found.
|
|
1968
|
+
*/
|
|
1969
|
+
type RaceNotFoundError = {
|
|
1970
|
+
/**
|
|
1971
|
+
* Error message describing what went wrong
|
|
1972
|
+
*/
|
|
1973
|
+
detail: string;
|
|
1974
|
+
/**
|
|
1975
|
+
* Error code for programmatic handling
|
|
1976
|
+
*/
|
|
1977
|
+
error_code?: "RACE_NOT_FOUND";
|
|
1978
|
+
};
|
|
1979
|
+
/**
|
|
1980
|
+
* Public view of a race — extends RaceBase with public-facing fields.
|
|
1981
|
+
*/
|
|
1982
|
+
type RacePublic = {
|
|
1983
|
+
/**
|
|
1984
|
+
* Race ID
|
|
1985
|
+
*/
|
|
1986
|
+
race_id: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* Problem suite ID
|
|
1989
|
+
*/
|
|
1990
|
+
suite_id: number;
|
|
1991
|
+
race_number?: (number | null);
|
|
1992
|
+
/**
|
|
1993
|
+
* Current race status
|
|
1994
|
+
*/
|
|
1995
|
+
status: string;
|
|
1996
|
+
qualifying_closes_at?: (string | null);
|
|
1997
|
+
race_started_at?: (string | null);
|
|
1998
|
+
race_completed_at?: (string | null);
|
|
1999
|
+
winner_agent_version_id?: (string | null);
|
|
2000
|
+
winner_score?: (number | null);
|
|
2001
|
+
/**
|
|
2002
|
+
* Minimum score to qualify
|
|
2003
|
+
*/
|
|
2004
|
+
qualifying_threshold?: (number | null);
|
|
2005
|
+
/**
|
|
2006
|
+
* Winning agent name
|
|
2007
|
+
*/
|
|
2008
|
+
winner_agent_name?: (string | null);
|
|
2009
|
+
/**
|
|
2010
|
+
* Number of qualifiers
|
|
2011
|
+
*/
|
|
2012
|
+
qualifier_count?: number;
|
|
2013
|
+
/**
|
|
2014
|
+
* When race was created
|
|
2015
|
+
*/
|
|
2016
|
+
created_at: string;
|
|
2017
|
+
};
|
|
1919
2018
|
/**
|
|
1920
2019
|
* A qualifier in a race.
|
|
1921
2020
|
*/
|
|
@@ -1945,6 +2044,39 @@ type RaceQualifierEntry = {
|
|
|
1945
2044
|
*/
|
|
1946
2045
|
race_score?: (number | null);
|
|
1947
2046
|
};
|
|
2047
|
+
/**
|
|
2048
|
+
* A qualifier in a race (public view) — extends RaceQualifierEntry with rank.
|
|
2049
|
+
*/
|
|
2050
|
+
type RaceQualifierPublic = {
|
|
2051
|
+
/**
|
|
2052
|
+
* Agent version ID
|
|
2053
|
+
*/
|
|
2054
|
+
agent_version_id: string;
|
|
2055
|
+
/**
|
|
2056
|
+
* Agent name
|
|
2057
|
+
*/
|
|
2058
|
+
agent_name?: (string | null);
|
|
2059
|
+
/**
|
|
2060
|
+
* Miner hotkey
|
|
2061
|
+
*/
|
|
2062
|
+
miner_hotkey?: (string | null);
|
|
2063
|
+
/**
|
|
2064
|
+
* How agent qualified (INCUMBENT or SCORED)
|
|
2065
|
+
*/
|
|
2066
|
+
qualification_type: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* Score from qualifying
|
|
2069
|
+
*/
|
|
2070
|
+
qualifying_score?: (number | null);
|
|
2071
|
+
/**
|
|
2072
|
+
* Score from race phase
|
|
2073
|
+
*/
|
|
2074
|
+
race_score?: (number | null);
|
|
2075
|
+
/**
|
|
2076
|
+
* Final rank in race (1 = winner)
|
|
2077
|
+
*/
|
|
2078
|
+
race_rank?: (number | null);
|
|
2079
|
+
};
|
|
1948
2080
|
/**
|
|
1949
2081
|
* Summary of a race for the current state view.
|
|
1950
2082
|
*/
|
|
@@ -2873,6 +3005,36 @@ type GetPendingEvaluationsData = {
|
|
|
2873
3005
|
};
|
|
2874
3006
|
type GetPendingEvaluationsResponse = (PendingEvaluationsResponse);
|
|
2875
3007
|
type GetPendingEvaluationsError = (HTTPValidationError);
|
|
3008
|
+
type GetCurrentRaceResponse = (RaceCurrentResponse);
|
|
3009
|
+
type GetCurrentRaceError = unknown;
|
|
3010
|
+
type GetRaceHistoryData = {
|
|
3011
|
+
query?: {
|
|
3012
|
+
/**
|
|
3013
|
+
* Page size
|
|
3014
|
+
*/
|
|
3015
|
+
limit?: number;
|
|
3016
|
+
/**
|
|
3017
|
+
* Page offset
|
|
3018
|
+
*/
|
|
3019
|
+
offset?: number;
|
|
3020
|
+
/**
|
|
3021
|
+
* Filter by suite ID
|
|
3022
|
+
*/
|
|
3023
|
+
suite_id?: (number | null);
|
|
3024
|
+
};
|
|
3025
|
+
};
|
|
3026
|
+
type GetRaceHistoryResponse = (RaceHistoryResponse);
|
|
3027
|
+
type GetRaceHistoryError = (HTTPValidationError);
|
|
3028
|
+
type GetRaceDetailData = {
|
|
3029
|
+
path: {
|
|
3030
|
+
/**
|
|
3031
|
+
* Race ID
|
|
3032
|
+
*/
|
|
3033
|
+
race_id: string;
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
type GetRaceDetailResponse = (RaceDetailResponse);
|
|
3037
|
+
type GetRaceDetailError = (RaceNotFoundError | HTTPValidationError);
|
|
2876
3038
|
type JoinWaitlistData = {
|
|
2877
3039
|
body: WaitlistSignupRequest;
|
|
2878
3040
|
};
|
|
@@ -3431,6 +3593,21 @@ declare const getRunningEvaluations: <ThrowOnError extends boolean = false>(opti
|
|
|
3431
3593
|
* Get all open work items awaiting validator evaluations, with queue summary.
|
|
3432
3594
|
*/
|
|
3433
3595
|
declare const getPendingEvaluations: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPendingEvaluationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PendingEvaluationsResponse, HTTPValidationError, ThrowOnError>;
|
|
3596
|
+
/**
|
|
3597
|
+
* Get current race
|
|
3598
|
+
* Get the active race for the current suite, if any.
|
|
3599
|
+
*/
|
|
3600
|
+
declare const getCurrentRace: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceCurrentResponse, unknown, ThrowOnError>;
|
|
3601
|
+
/**
|
|
3602
|
+
* Get race history
|
|
3603
|
+
* Get completed and cancelled races, most recent first.
|
|
3604
|
+
*/
|
|
3605
|
+
declare const getRaceHistory: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRaceHistoryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceHistoryResponse, HTTPValidationError, ThrowOnError>;
|
|
3606
|
+
/**
|
|
3607
|
+
* Get race details
|
|
3608
|
+
* Get details for a specific race including qualifiers and results.
|
|
3609
|
+
*/
|
|
3610
|
+
declare const getRaceDetail: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRaceDetailData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceDetailResponse, GetRaceDetailError, ThrowOnError>;
|
|
3434
3611
|
/**
|
|
3435
3612
|
* Join waitlist
|
|
3436
3613
|
* Submit an email to join the ORO waitlist.
|
|
@@ -3687,7 +3864,7 @@ declare const closeQualifying: <ThrowOnError extends boolean = false>(options?:
|
|
|
3687
3864
|
*
|
|
3688
3865
|
* DO NOT EDIT — regenerate with: python3 scripts/extract-errors.py
|
|
3689
3866
|
*/
|
|
3690
|
-
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' | 'RATE_LIMIT_EXCEEDED' | 'RUN_ALREADY_COMPLETE' | 'SCORE_BELOW_THRESHOLD' | 'SUITE_NOT_FOUND' | 'VALIDATOR_NOT_FOUND';
|
|
3867
|
+
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' | 'VALIDATOR_NOT_FOUND';
|
|
3691
3868
|
|
|
3692
3869
|
/**
|
|
3693
3870
|
* Error classification utilities for the ORO SDK.
|
|
@@ -4033,4 +4210,4 @@ declare class SessionAuthManager {
|
|
|
4033
4210
|
*/
|
|
4034
4211
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
4035
4212
|
|
|
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 };
|
|
4213
|
+
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 GetCurrentRaceError, type GetCurrentRaceResponse, 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 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 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 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 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, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, 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
|
@@ -1884,6 +1884,32 @@ type ProgressUpdateResponse = {
|
|
|
1884
1884
|
*/
|
|
1885
1885
|
accepted?: boolean;
|
|
1886
1886
|
};
|
|
1887
|
+
/**
|
|
1888
|
+
* Response for current race state.
|
|
1889
|
+
*/
|
|
1890
|
+
type RaceCurrentResponse = {
|
|
1891
|
+
/**
|
|
1892
|
+
* Active race, if any
|
|
1893
|
+
*/
|
|
1894
|
+
race?: (RacePublic | null);
|
|
1895
|
+
/**
|
|
1896
|
+
* Qualifiers for the active race
|
|
1897
|
+
*/
|
|
1898
|
+
qualifiers?: Array<RaceQualifierPublic>;
|
|
1899
|
+
};
|
|
1900
|
+
/**
|
|
1901
|
+
* Detailed view of a single race.
|
|
1902
|
+
*/
|
|
1903
|
+
type RaceDetailResponse = {
|
|
1904
|
+
/**
|
|
1905
|
+
* Race information
|
|
1906
|
+
*/
|
|
1907
|
+
race: RacePublic;
|
|
1908
|
+
/**
|
|
1909
|
+
* Qualifiers with scores
|
|
1910
|
+
*/
|
|
1911
|
+
qualifiers?: Array<RaceQualifierPublic>;
|
|
1912
|
+
};
|
|
1887
1913
|
/**
|
|
1888
1914
|
* Detailed diagnostics for a specific race.
|
|
1889
1915
|
*/
|
|
@@ -1916,6 +1942,79 @@ type RaceDiagnosticsResponse = {
|
|
|
1916
1942
|
qualifiers?: Array<RaceQualifierEntry>;
|
|
1917
1943
|
work_items?: Array<RaceWorkItemEntry>;
|
|
1918
1944
|
};
|
|
1945
|
+
/**
|
|
1946
|
+
* Paginated list of completed races.
|
|
1947
|
+
*/
|
|
1948
|
+
type RaceHistoryResponse = {
|
|
1949
|
+
/**
|
|
1950
|
+
* Past races
|
|
1951
|
+
*/
|
|
1952
|
+
races: Array<RacePublic>;
|
|
1953
|
+
/**
|
|
1954
|
+
* Total count
|
|
1955
|
+
*/
|
|
1956
|
+
total: number;
|
|
1957
|
+
/**
|
|
1958
|
+
* Page size
|
|
1959
|
+
*/
|
|
1960
|
+
limit: number;
|
|
1961
|
+
/**
|
|
1962
|
+
* Page offset
|
|
1963
|
+
*/
|
|
1964
|
+
offset: number;
|
|
1965
|
+
};
|
|
1966
|
+
/**
|
|
1967
|
+
* 404 - Race not found.
|
|
1968
|
+
*/
|
|
1969
|
+
type RaceNotFoundError = {
|
|
1970
|
+
/**
|
|
1971
|
+
* Error message describing what went wrong
|
|
1972
|
+
*/
|
|
1973
|
+
detail: string;
|
|
1974
|
+
/**
|
|
1975
|
+
* Error code for programmatic handling
|
|
1976
|
+
*/
|
|
1977
|
+
error_code?: "RACE_NOT_FOUND";
|
|
1978
|
+
};
|
|
1979
|
+
/**
|
|
1980
|
+
* Public view of a race — extends RaceBase with public-facing fields.
|
|
1981
|
+
*/
|
|
1982
|
+
type RacePublic = {
|
|
1983
|
+
/**
|
|
1984
|
+
* Race ID
|
|
1985
|
+
*/
|
|
1986
|
+
race_id: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* Problem suite ID
|
|
1989
|
+
*/
|
|
1990
|
+
suite_id: number;
|
|
1991
|
+
race_number?: (number | null);
|
|
1992
|
+
/**
|
|
1993
|
+
* Current race status
|
|
1994
|
+
*/
|
|
1995
|
+
status: string;
|
|
1996
|
+
qualifying_closes_at?: (string | null);
|
|
1997
|
+
race_started_at?: (string | null);
|
|
1998
|
+
race_completed_at?: (string | null);
|
|
1999
|
+
winner_agent_version_id?: (string | null);
|
|
2000
|
+
winner_score?: (number | null);
|
|
2001
|
+
/**
|
|
2002
|
+
* Minimum score to qualify
|
|
2003
|
+
*/
|
|
2004
|
+
qualifying_threshold?: (number | null);
|
|
2005
|
+
/**
|
|
2006
|
+
* Winning agent name
|
|
2007
|
+
*/
|
|
2008
|
+
winner_agent_name?: (string | null);
|
|
2009
|
+
/**
|
|
2010
|
+
* Number of qualifiers
|
|
2011
|
+
*/
|
|
2012
|
+
qualifier_count?: number;
|
|
2013
|
+
/**
|
|
2014
|
+
* When race was created
|
|
2015
|
+
*/
|
|
2016
|
+
created_at: string;
|
|
2017
|
+
};
|
|
1919
2018
|
/**
|
|
1920
2019
|
* A qualifier in a race.
|
|
1921
2020
|
*/
|
|
@@ -1945,6 +2044,39 @@ type RaceQualifierEntry = {
|
|
|
1945
2044
|
*/
|
|
1946
2045
|
race_score?: (number | null);
|
|
1947
2046
|
};
|
|
2047
|
+
/**
|
|
2048
|
+
* A qualifier in a race (public view) — extends RaceQualifierEntry with rank.
|
|
2049
|
+
*/
|
|
2050
|
+
type RaceQualifierPublic = {
|
|
2051
|
+
/**
|
|
2052
|
+
* Agent version ID
|
|
2053
|
+
*/
|
|
2054
|
+
agent_version_id: string;
|
|
2055
|
+
/**
|
|
2056
|
+
* Agent name
|
|
2057
|
+
*/
|
|
2058
|
+
agent_name?: (string | null);
|
|
2059
|
+
/**
|
|
2060
|
+
* Miner hotkey
|
|
2061
|
+
*/
|
|
2062
|
+
miner_hotkey?: (string | null);
|
|
2063
|
+
/**
|
|
2064
|
+
* How agent qualified (INCUMBENT or SCORED)
|
|
2065
|
+
*/
|
|
2066
|
+
qualification_type: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* Score from qualifying
|
|
2069
|
+
*/
|
|
2070
|
+
qualifying_score?: (number | null);
|
|
2071
|
+
/**
|
|
2072
|
+
* Score from race phase
|
|
2073
|
+
*/
|
|
2074
|
+
race_score?: (number | null);
|
|
2075
|
+
/**
|
|
2076
|
+
* Final rank in race (1 = winner)
|
|
2077
|
+
*/
|
|
2078
|
+
race_rank?: (number | null);
|
|
2079
|
+
};
|
|
1948
2080
|
/**
|
|
1949
2081
|
* Summary of a race for the current state view.
|
|
1950
2082
|
*/
|
|
@@ -2873,6 +3005,36 @@ type GetPendingEvaluationsData = {
|
|
|
2873
3005
|
};
|
|
2874
3006
|
type GetPendingEvaluationsResponse = (PendingEvaluationsResponse);
|
|
2875
3007
|
type GetPendingEvaluationsError = (HTTPValidationError);
|
|
3008
|
+
type GetCurrentRaceResponse = (RaceCurrentResponse);
|
|
3009
|
+
type GetCurrentRaceError = unknown;
|
|
3010
|
+
type GetRaceHistoryData = {
|
|
3011
|
+
query?: {
|
|
3012
|
+
/**
|
|
3013
|
+
* Page size
|
|
3014
|
+
*/
|
|
3015
|
+
limit?: number;
|
|
3016
|
+
/**
|
|
3017
|
+
* Page offset
|
|
3018
|
+
*/
|
|
3019
|
+
offset?: number;
|
|
3020
|
+
/**
|
|
3021
|
+
* Filter by suite ID
|
|
3022
|
+
*/
|
|
3023
|
+
suite_id?: (number | null);
|
|
3024
|
+
};
|
|
3025
|
+
};
|
|
3026
|
+
type GetRaceHistoryResponse = (RaceHistoryResponse);
|
|
3027
|
+
type GetRaceHistoryError = (HTTPValidationError);
|
|
3028
|
+
type GetRaceDetailData = {
|
|
3029
|
+
path: {
|
|
3030
|
+
/**
|
|
3031
|
+
* Race ID
|
|
3032
|
+
*/
|
|
3033
|
+
race_id: string;
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
type GetRaceDetailResponse = (RaceDetailResponse);
|
|
3037
|
+
type GetRaceDetailError = (RaceNotFoundError | HTTPValidationError);
|
|
2876
3038
|
type JoinWaitlistData = {
|
|
2877
3039
|
body: WaitlistSignupRequest;
|
|
2878
3040
|
};
|
|
@@ -3431,6 +3593,21 @@ declare const getRunningEvaluations: <ThrowOnError extends boolean = false>(opti
|
|
|
3431
3593
|
* Get all open work items awaiting validator evaluations, with queue summary.
|
|
3432
3594
|
*/
|
|
3433
3595
|
declare const getPendingEvaluations: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPendingEvaluationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PendingEvaluationsResponse, HTTPValidationError, ThrowOnError>;
|
|
3596
|
+
/**
|
|
3597
|
+
* Get current race
|
|
3598
|
+
* Get the active race for the current suite, if any.
|
|
3599
|
+
*/
|
|
3600
|
+
declare const getCurrentRace: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceCurrentResponse, unknown, ThrowOnError>;
|
|
3601
|
+
/**
|
|
3602
|
+
* Get race history
|
|
3603
|
+
* Get completed and cancelled races, most recent first.
|
|
3604
|
+
*/
|
|
3605
|
+
declare const getRaceHistory: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRaceHistoryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceHistoryResponse, HTTPValidationError, ThrowOnError>;
|
|
3606
|
+
/**
|
|
3607
|
+
* Get race details
|
|
3608
|
+
* Get details for a specific race including qualifiers and results.
|
|
3609
|
+
*/
|
|
3610
|
+
declare const getRaceDetail: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRaceDetailData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceDetailResponse, GetRaceDetailError, ThrowOnError>;
|
|
3434
3611
|
/**
|
|
3435
3612
|
* Join waitlist
|
|
3436
3613
|
* Submit an email to join the ORO waitlist.
|
|
@@ -3687,7 +3864,7 @@ declare const closeQualifying: <ThrowOnError extends boolean = false>(options?:
|
|
|
3687
3864
|
*
|
|
3688
3865
|
* DO NOT EDIT — regenerate with: python3 scripts/extract-errors.py
|
|
3689
3866
|
*/
|
|
3690
|
-
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' | 'RATE_LIMIT_EXCEEDED' | 'RUN_ALREADY_COMPLETE' | 'SCORE_BELOW_THRESHOLD' | 'SUITE_NOT_FOUND' | 'VALIDATOR_NOT_FOUND';
|
|
3867
|
+
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' | 'VALIDATOR_NOT_FOUND';
|
|
3691
3868
|
|
|
3692
3869
|
/**
|
|
3693
3870
|
* Error classification utilities for the ORO SDK.
|
|
@@ -4033,4 +4210,4 @@ declare class SessionAuthManager {
|
|
|
4033
4210
|
*/
|
|
4034
4211
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
4035
4212
|
|
|
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 };
|
|
4213
|
+
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 GetCurrentRaceError, type GetCurrentRaceResponse, 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 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 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 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 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, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, 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
|
@@ -60,6 +60,7 @@ __export(index_exports, {
|
|
|
60
60
|
getArtifactDownloadUrl: () => getArtifactDownloadUrl,
|
|
61
61
|
getAuditEvents: () => getAuditEvents,
|
|
62
62
|
getChutesAuthStatus: () => getChutesAuthStatus,
|
|
63
|
+
getCurrentRace: () => getCurrentRace,
|
|
63
64
|
getCurrentRaces: () => getCurrentRaces,
|
|
64
65
|
getCurrentSuite: () => getCurrentSuite,
|
|
65
66
|
getErrorCode: () => getErrorCode,
|
|
@@ -68,7 +69,9 @@ __export(index_exports, {
|
|
|
68
69
|
getLeaderboard: () => getLeaderboard,
|
|
69
70
|
getOwnedAgentVersionStatus: () => getOwnedAgentVersionStatus,
|
|
70
71
|
getPendingEvaluations: () => getPendingEvaluations,
|
|
72
|
+
getRaceDetail: () => getRaceDetail,
|
|
71
73
|
getRaceDiagnostics: () => getRaceDiagnostics,
|
|
74
|
+
getRaceHistory: () => getRaceHistory,
|
|
72
75
|
getReaperStats: () => getReaperStats,
|
|
73
76
|
getRunProblems: () => getRunProblems,
|
|
74
77
|
getRunningEvaluations: () => getRunningEvaluations,
|
|
@@ -206,6 +209,24 @@ var getPendingEvaluations = (options) => {
|
|
|
206
209
|
url: "/v1/public/evaluations/pending"
|
|
207
210
|
});
|
|
208
211
|
};
|
|
212
|
+
var getCurrentRace = (options) => {
|
|
213
|
+
return (options?.client ?? client).get({
|
|
214
|
+
...options,
|
|
215
|
+
url: "/v1/public/races/current"
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
var getRaceHistory = (options) => {
|
|
219
|
+
return (options?.client ?? client).get({
|
|
220
|
+
...options,
|
|
221
|
+
url: "/v1/public/races/history"
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
var getRaceDetail = (options) => {
|
|
225
|
+
return (options?.client ?? client).get({
|
|
226
|
+
...options,
|
|
227
|
+
url: "/v1/public/races/{race_id}"
|
|
228
|
+
});
|
|
229
|
+
};
|
|
209
230
|
var joinWaitlist = (options) => {
|
|
210
231
|
return (options?.client ?? client).post({
|
|
211
232
|
...options,
|
|
@@ -849,6 +870,7 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
849
870
|
getArtifactDownloadUrl,
|
|
850
871
|
getAuditEvents,
|
|
851
872
|
getChutesAuthStatus,
|
|
873
|
+
getCurrentRace,
|
|
852
874
|
getCurrentRaces,
|
|
853
875
|
getCurrentSuite,
|
|
854
876
|
getErrorCode,
|
|
@@ -857,7 +879,9 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
857
879
|
getLeaderboard,
|
|
858
880
|
getOwnedAgentVersionStatus,
|
|
859
881
|
getPendingEvaluations,
|
|
882
|
+
getRaceDetail,
|
|
860
883
|
getRaceDiagnostics,
|
|
884
|
+
getRaceHistory,
|
|
861
885
|
getReaperStats,
|
|
862
886
|
getRunProblems,
|
|
863
887
|
getRunningEvaluations,
|
package/dist/index.mjs
CHANGED
|
@@ -97,6 +97,24 @@ var getPendingEvaluations = (options) => {
|
|
|
97
97
|
url: "/v1/public/evaluations/pending"
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
+
var getCurrentRace = (options) => {
|
|
101
|
+
return (options?.client ?? client).get({
|
|
102
|
+
...options,
|
|
103
|
+
url: "/v1/public/races/current"
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
var getRaceHistory = (options) => {
|
|
107
|
+
return (options?.client ?? client).get({
|
|
108
|
+
...options,
|
|
109
|
+
url: "/v1/public/races/history"
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
var getRaceDetail = (options) => {
|
|
113
|
+
return (options?.client ?? client).get({
|
|
114
|
+
...options,
|
|
115
|
+
url: "/v1/public/races/{race_id}"
|
|
116
|
+
});
|
|
117
|
+
};
|
|
100
118
|
var joinWaitlist = (options) => {
|
|
101
119
|
return (options?.client ?? client).post({
|
|
102
120
|
...options,
|
|
@@ -739,6 +757,7 @@ export {
|
|
|
739
757
|
getArtifactDownloadUrl,
|
|
740
758
|
getAuditEvents,
|
|
741
759
|
getChutesAuthStatus,
|
|
760
|
+
getCurrentRace,
|
|
742
761
|
getCurrentRaces,
|
|
743
762
|
getCurrentSuite,
|
|
744
763
|
getErrorCode,
|
|
@@ -747,7 +766,9 @@ export {
|
|
|
747
766
|
getLeaderboard,
|
|
748
767
|
getOwnedAgentVersionStatus,
|
|
749
768
|
getPendingEvaluations,
|
|
769
|
+
getRaceDetail,
|
|
750
770
|
getRaceDiagnostics,
|
|
771
|
+
getRaceHistory,
|
|
751
772
|
getReaperStats,
|
|
752
773
|
getRunProblems,
|
|
753
774
|
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, 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, 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, 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
|
|
|
@@ -181,6 +181,39 @@ export const getPendingEvaluations = <ThrowOnError extends boolean = false>(opti
|
|
|
181
181
|
});
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
+
/**
|
|
185
|
+
* Get current race
|
|
186
|
+
* Get the active race for the current suite, if any.
|
|
187
|
+
*/
|
|
188
|
+
export const getCurrentRace = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
189
|
+
return (options?.client ?? client).get<GetCurrentRaceResponse, GetCurrentRaceError, ThrowOnError>({
|
|
190
|
+
...options,
|
|
191
|
+
url: '/v1/public/races/current'
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Get race history
|
|
197
|
+
* Get completed and cancelled races, most recent first.
|
|
198
|
+
*/
|
|
199
|
+
export const getRaceHistory = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRaceHistoryData, ThrowOnError>) => {
|
|
200
|
+
return (options?.client ?? client).get<GetRaceHistoryResponse, GetRaceHistoryError, ThrowOnError>({
|
|
201
|
+
...options,
|
|
202
|
+
url: '/v1/public/races/history'
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Get race details
|
|
208
|
+
* Get details for a specific race including qualifiers and results.
|
|
209
|
+
*/
|
|
210
|
+
export const getRaceDetail = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRaceDetailData, ThrowOnError>) => {
|
|
211
|
+
return (options?.client ?? client).get<GetRaceDetailResponse, GetRaceDetailError, ThrowOnError>({
|
|
212
|
+
...options,
|
|
213
|
+
url: '/v1/public/races/{race_id}'
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
|
|
184
217
|
/**
|
|
185
218
|
* Join waitlist
|
|
186
219
|
* Submit an email to join the ORO waitlist.
|
|
@@ -1972,6 +1972,34 @@ export type ProgressUpdateResponse = {
|
|
|
1972
1972
|
accepted?: boolean;
|
|
1973
1973
|
};
|
|
1974
1974
|
|
|
1975
|
+
/**
|
|
1976
|
+
* Response for current race state.
|
|
1977
|
+
*/
|
|
1978
|
+
export type RaceCurrentResponse = {
|
|
1979
|
+
/**
|
|
1980
|
+
* Active race, if any
|
|
1981
|
+
*/
|
|
1982
|
+
race?: (RacePublic | null);
|
|
1983
|
+
/**
|
|
1984
|
+
* Qualifiers for the active race
|
|
1985
|
+
*/
|
|
1986
|
+
qualifiers?: Array<RaceQualifierPublic>;
|
|
1987
|
+
};
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* Detailed view of a single race.
|
|
1991
|
+
*/
|
|
1992
|
+
export type RaceDetailResponse = {
|
|
1993
|
+
/**
|
|
1994
|
+
* Race information
|
|
1995
|
+
*/
|
|
1996
|
+
race: RacePublic;
|
|
1997
|
+
/**
|
|
1998
|
+
* Qualifiers with scores
|
|
1999
|
+
*/
|
|
2000
|
+
qualifiers?: Array<RaceQualifierPublic>;
|
|
2001
|
+
};
|
|
2002
|
+
|
|
1975
2003
|
/**
|
|
1976
2004
|
* Detailed diagnostics for a specific race.
|
|
1977
2005
|
*/
|
|
@@ -2005,6 +2033,82 @@ export type RaceDiagnosticsResponse = {
|
|
|
2005
2033
|
work_items?: Array<RaceWorkItemEntry>;
|
|
2006
2034
|
};
|
|
2007
2035
|
|
|
2036
|
+
/**
|
|
2037
|
+
* Paginated list of completed races.
|
|
2038
|
+
*/
|
|
2039
|
+
export type RaceHistoryResponse = {
|
|
2040
|
+
/**
|
|
2041
|
+
* Past races
|
|
2042
|
+
*/
|
|
2043
|
+
races: Array<RacePublic>;
|
|
2044
|
+
/**
|
|
2045
|
+
* Total count
|
|
2046
|
+
*/
|
|
2047
|
+
total: number;
|
|
2048
|
+
/**
|
|
2049
|
+
* Page size
|
|
2050
|
+
*/
|
|
2051
|
+
limit: number;
|
|
2052
|
+
/**
|
|
2053
|
+
* Page offset
|
|
2054
|
+
*/
|
|
2055
|
+
offset: number;
|
|
2056
|
+
};
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* 404 - Race not found.
|
|
2060
|
+
*/
|
|
2061
|
+
export type RaceNotFoundError = {
|
|
2062
|
+
/**
|
|
2063
|
+
* Error message describing what went wrong
|
|
2064
|
+
*/
|
|
2065
|
+
detail: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Error code for programmatic handling
|
|
2068
|
+
*/
|
|
2069
|
+
error_code?: "RACE_NOT_FOUND";
|
|
2070
|
+
};
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* Public view of a race — extends RaceBase with public-facing fields.
|
|
2074
|
+
*/
|
|
2075
|
+
export type RacePublic = {
|
|
2076
|
+
/**
|
|
2077
|
+
* Race ID
|
|
2078
|
+
*/
|
|
2079
|
+
race_id: string;
|
|
2080
|
+
/**
|
|
2081
|
+
* Problem suite ID
|
|
2082
|
+
*/
|
|
2083
|
+
suite_id: number;
|
|
2084
|
+
race_number?: (number | null);
|
|
2085
|
+
/**
|
|
2086
|
+
* Current race status
|
|
2087
|
+
*/
|
|
2088
|
+
status: string;
|
|
2089
|
+
qualifying_closes_at?: (string | null);
|
|
2090
|
+
race_started_at?: (string | null);
|
|
2091
|
+
race_completed_at?: (string | null);
|
|
2092
|
+
winner_agent_version_id?: (string | null);
|
|
2093
|
+
winner_score?: (number | null);
|
|
2094
|
+
/**
|
|
2095
|
+
* Minimum score to qualify
|
|
2096
|
+
*/
|
|
2097
|
+
qualifying_threshold?: (number | null);
|
|
2098
|
+
/**
|
|
2099
|
+
* Winning agent name
|
|
2100
|
+
*/
|
|
2101
|
+
winner_agent_name?: (string | null);
|
|
2102
|
+
/**
|
|
2103
|
+
* Number of qualifiers
|
|
2104
|
+
*/
|
|
2105
|
+
qualifier_count?: number;
|
|
2106
|
+
/**
|
|
2107
|
+
* When race was created
|
|
2108
|
+
*/
|
|
2109
|
+
created_at: string;
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2008
2112
|
/**
|
|
2009
2113
|
* A qualifier in a race.
|
|
2010
2114
|
*/
|
|
@@ -2035,6 +2139,40 @@ export type RaceQualifierEntry = {
|
|
|
2035
2139
|
race_score?: (number | null);
|
|
2036
2140
|
};
|
|
2037
2141
|
|
|
2142
|
+
/**
|
|
2143
|
+
* A qualifier in a race (public view) — extends RaceQualifierEntry with rank.
|
|
2144
|
+
*/
|
|
2145
|
+
export type RaceQualifierPublic = {
|
|
2146
|
+
/**
|
|
2147
|
+
* Agent version ID
|
|
2148
|
+
*/
|
|
2149
|
+
agent_version_id: string;
|
|
2150
|
+
/**
|
|
2151
|
+
* Agent name
|
|
2152
|
+
*/
|
|
2153
|
+
agent_name?: (string | null);
|
|
2154
|
+
/**
|
|
2155
|
+
* Miner hotkey
|
|
2156
|
+
*/
|
|
2157
|
+
miner_hotkey?: (string | null);
|
|
2158
|
+
/**
|
|
2159
|
+
* How agent qualified (INCUMBENT or SCORED)
|
|
2160
|
+
*/
|
|
2161
|
+
qualification_type: string;
|
|
2162
|
+
/**
|
|
2163
|
+
* Score from qualifying
|
|
2164
|
+
*/
|
|
2165
|
+
qualifying_score?: (number | null);
|
|
2166
|
+
/**
|
|
2167
|
+
* Score from race phase
|
|
2168
|
+
*/
|
|
2169
|
+
race_score?: (number | null);
|
|
2170
|
+
/**
|
|
2171
|
+
* Final rank in race (1 = winner)
|
|
2172
|
+
*/
|
|
2173
|
+
race_rank?: (number | null);
|
|
2174
|
+
};
|
|
2175
|
+
|
|
2038
2176
|
/**
|
|
2039
2177
|
* Summary of a race for the current state view.
|
|
2040
2178
|
*/
|
|
@@ -3040,6 +3178,44 @@ export type GetPendingEvaluationsResponse = (PendingEvaluationsResponse);
|
|
|
3040
3178
|
|
|
3041
3179
|
export type GetPendingEvaluationsError = (HTTPValidationError);
|
|
3042
3180
|
|
|
3181
|
+
export type GetCurrentRaceResponse = (RaceCurrentResponse);
|
|
3182
|
+
|
|
3183
|
+
export type GetCurrentRaceError = unknown;
|
|
3184
|
+
|
|
3185
|
+
export type GetRaceHistoryData = {
|
|
3186
|
+
query?: {
|
|
3187
|
+
/**
|
|
3188
|
+
* Page size
|
|
3189
|
+
*/
|
|
3190
|
+
limit?: number;
|
|
3191
|
+
/**
|
|
3192
|
+
* Page offset
|
|
3193
|
+
*/
|
|
3194
|
+
offset?: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* Filter by suite ID
|
|
3197
|
+
*/
|
|
3198
|
+
suite_id?: (number | null);
|
|
3199
|
+
};
|
|
3200
|
+
};
|
|
3201
|
+
|
|
3202
|
+
export type GetRaceHistoryResponse = (RaceHistoryResponse);
|
|
3203
|
+
|
|
3204
|
+
export type GetRaceHistoryError = (HTTPValidationError);
|
|
3205
|
+
|
|
3206
|
+
export type GetRaceDetailData = {
|
|
3207
|
+
path: {
|
|
3208
|
+
/**
|
|
3209
|
+
* Race ID
|
|
3210
|
+
*/
|
|
3211
|
+
race_id: string;
|
|
3212
|
+
};
|
|
3213
|
+
};
|
|
3214
|
+
|
|
3215
|
+
export type GetRaceDetailResponse = (RaceDetailResponse);
|
|
3216
|
+
|
|
3217
|
+
export type GetRaceDetailError = (RaceNotFoundError | HTTPValidationError);
|
|
3218
|
+
|
|
3043
3219
|
export type JoinWaitlistData = {
|
|
3044
3220
|
body: WaitlistSignupRequest;
|
|
3045
3221
|
};
|