@oro-ai/sdk 1.0.27 → 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 +371 -2
- package/dist/index.d.ts +371 -2
- package/dist/index.js +48 -0
- package/dist/index.mjs +42 -0
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +71 -1
- package/src/generated/types.gen.ts +363 -1
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, 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.
|
|
@@ -643,4 +676,41 @@ export const getAgentVersionCode = <ThrowOnError extends boolean = false>(option
|
|
|
643
676
|
...options,
|
|
644
677
|
url: '/v1/admin/agent-versions/{agent_version_id}/code'
|
|
645
678
|
});
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Get current race state
|
|
683
|
+
* Get all active (non-complete, non-cancelled) races with summary info.
|
|
684
|
+
*/
|
|
685
|
+
export const getCurrentRaces = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
686
|
+
return (options?.client ?? client).get<GetCurrentRacesResponse, GetCurrentRacesError, ThrowOnError>({
|
|
687
|
+
...options,
|
|
688
|
+
url: '/v1/admin/races/current'
|
|
689
|
+
});
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Get race diagnostics
|
|
694
|
+
* Get detailed diagnostics for a specific race.
|
|
695
|
+
*/
|
|
696
|
+
export const getRaceDiagnostics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRaceDiagnosticsData, ThrowOnError>) => {
|
|
697
|
+
return (options?.client ?? client).get<GetRaceDiagnosticsResponse, GetRaceDiagnosticsError, ThrowOnError>({
|
|
698
|
+
...options,
|
|
699
|
+
url: '/v1/admin/races/{race_id}/diagnostics'
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Close qualifying and start race
|
|
705
|
+
* Close the current qualifying window immediately.
|
|
706
|
+
*
|
|
707
|
+
* Sets qualifying_closes_at to now so the orchestrator picks it up
|
|
708
|
+
* on its next cycle and transitions to RACE_RUNNING (or CANCELLED
|
|
709
|
+
* if no qualifiers meet the threshold).
|
|
710
|
+
*/
|
|
711
|
+
export const closeQualifying = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
712
|
+
return (options?.client ?? client).post<CloseQualifyingResponse2, CloseQualifyingError, ThrowOnError>({
|
|
713
|
+
...options,
|
|
714
|
+
url: '/v1/admin/races/close-qualifying'
|
|
715
|
+
});
|
|
646
716
|
};
|
|
@@ -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,277 @@ export type ProgressUpdateResponse = {
|
|
|
1940
1972
|
accepted?: boolean;
|
|
1941
1973
|
};
|
|
1942
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
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* Detailed diagnostics for a specific race.
|
|
2005
|
+
*/
|
|
2006
|
+
export type RaceDiagnosticsResponse = {
|
|
2007
|
+
/**
|
|
2008
|
+
* Race ID
|
|
2009
|
+
*/
|
|
2010
|
+
race_id: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* Problem suite ID
|
|
2013
|
+
*/
|
|
2014
|
+
suite_id: number;
|
|
2015
|
+
race_number?: (number | null);
|
|
2016
|
+
/**
|
|
2017
|
+
* Current race status
|
|
2018
|
+
*/
|
|
2019
|
+
status: string;
|
|
2020
|
+
qualifying_closes_at?: (string | null);
|
|
2021
|
+
race_started_at?: (string | null);
|
|
2022
|
+
race_completed_at?: (string | null);
|
|
2023
|
+
winner_agent_version_id?: (string | null);
|
|
2024
|
+
winner_score?: (number | null);
|
|
2025
|
+
qualifying_threshold?: (number | null);
|
|
2026
|
+
incumbent_agent_version_id?: (string | null);
|
|
2027
|
+
problem_seed?: (string | null);
|
|
2028
|
+
/**
|
|
2029
|
+
* Number of race problems
|
|
2030
|
+
*/
|
|
2031
|
+
problem_count?: number;
|
|
2032
|
+
qualifiers?: Array<RaceQualifierEntry>;
|
|
2033
|
+
work_items?: Array<RaceWorkItemEntry>;
|
|
2034
|
+
};
|
|
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
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* A qualifier in a race.
|
|
2114
|
+
*/
|
|
2115
|
+
export type RaceQualifierEntry = {
|
|
2116
|
+
/**
|
|
2117
|
+
* Agent version ID
|
|
2118
|
+
*/
|
|
2119
|
+
agent_version_id: string;
|
|
2120
|
+
/**
|
|
2121
|
+
* Agent name
|
|
2122
|
+
*/
|
|
2123
|
+
agent_name?: (string | null);
|
|
2124
|
+
/**
|
|
2125
|
+
* Miner hotkey
|
|
2126
|
+
*/
|
|
2127
|
+
miner_hotkey?: (string | null);
|
|
2128
|
+
/**
|
|
2129
|
+
* How agent qualified (INCUMBENT or SCORED)
|
|
2130
|
+
*/
|
|
2131
|
+
qualification_type: string;
|
|
2132
|
+
/**
|
|
2133
|
+
* Score from qualifying
|
|
2134
|
+
*/
|
|
2135
|
+
qualifying_score?: (number | null);
|
|
2136
|
+
/**
|
|
2137
|
+
* Score from race phase
|
|
2138
|
+
*/
|
|
2139
|
+
race_score?: (number | null);
|
|
2140
|
+
};
|
|
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
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* Summary of a race for the current state view.
|
|
2178
|
+
*/
|
|
2179
|
+
export type RaceSummary = {
|
|
2180
|
+
/**
|
|
2181
|
+
* Race ID
|
|
2182
|
+
*/
|
|
2183
|
+
race_id: string;
|
|
2184
|
+
/**
|
|
2185
|
+
* Problem suite ID
|
|
2186
|
+
*/
|
|
2187
|
+
suite_id: number;
|
|
2188
|
+
race_number?: (number | null);
|
|
2189
|
+
/**
|
|
2190
|
+
* Current race status
|
|
2191
|
+
*/
|
|
2192
|
+
status: string;
|
|
2193
|
+
qualifying_closes_at?: (string | null);
|
|
2194
|
+
race_started_at?: (string | null);
|
|
2195
|
+
race_completed_at?: (string | null);
|
|
2196
|
+
winner_agent_version_id?: (string | null);
|
|
2197
|
+
winner_score?: (number | null);
|
|
2198
|
+
/**
|
|
2199
|
+
* Number of qualifiers
|
|
2200
|
+
*/
|
|
2201
|
+
qualifier_count?: number;
|
|
2202
|
+
/**
|
|
2203
|
+
* Number of work items
|
|
2204
|
+
*/
|
|
2205
|
+
work_item_count?: number;
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* A work item in a race.
|
|
2210
|
+
*/
|
|
2211
|
+
export type RaceWorkItemEntry = {
|
|
2212
|
+
/**
|
|
2213
|
+
* Agent version ID
|
|
2214
|
+
*/
|
|
2215
|
+
agent_version_id: string;
|
|
2216
|
+
/**
|
|
2217
|
+
* Agent name
|
|
2218
|
+
*/
|
|
2219
|
+
agent_name?: (string | null);
|
|
2220
|
+
/**
|
|
2221
|
+
* Evaluation phase
|
|
2222
|
+
*/
|
|
2223
|
+
phase: string;
|
|
2224
|
+
/**
|
|
2225
|
+
* Whether work is complete
|
|
2226
|
+
*/
|
|
2227
|
+
is_closed: boolean;
|
|
2228
|
+
/**
|
|
2229
|
+
* Whether work was cancelled
|
|
2230
|
+
*/
|
|
2231
|
+
is_cancelled: boolean;
|
|
2232
|
+
/**
|
|
2233
|
+
* Successful evaluations
|
|
2234
|
+
*/
|
|
2235
|
+
included_success_count: number;
|
|
2236
|
+
/**
|
|
2237
|
+
* Active evaluations
|
|
2238
|
+
*/
|
|
2239
|
+
active_count: number;
|
|
2240
|
+
/**
|
|
2241
|
+
* Required successful evaluations
|
|
2242
|
+
*/
|
|
2243
|
+
required_successes: number;
|
|
2244
|
+
};
|
|
2245
|
+
|
|
1943
2246
|
/**
|
|
1944
2247
|
* 429 - Rate limit exceeded.
|
|
1945
2248
|
*/
|
|
@@ -2875,6 +3178,44 @@ export type GetPendingEvaluationsResponse = (PendingEvaluationsResponse);
|
|
|
2875
3178
|
|
|
2876
3179
|
export type GetPendingEvaluationsError = (HTTPValidationError);
|
|
2877
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
|
+
|
|
2878
3219
|
export type JoinWaitlistData = {
|
|
2879
3220
|
body: WaitlistSignupRequest;
|
|
2880
3221
|
};
|
|
@@ -3446,4 +3787,25 @@ export type GetAgentVersionCodeData = {
|
|
|
3446
3787
|
|
|
3447
3788
|
export type GetAgentVersionCodeResponse = (AdminAgentCodeResponse);
|
|
3448
3789
|
|
|
3449
|
-
export type GetAgentVersionCodeError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3790
|
+
export type GetAgentVersionCodeError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3791
|
+
|
|
3792
|
+
export type GetCurrentRacesResponse = (CurrentRacesResponse);
|
|
3793
|
+
|
|
3794
|
+
export type GetCurrentRacesError = unknown;
|
|
3795
|
+
|
|
3796
|
+
export type GetRaceDiagnosticsData = {
|
|
3797
|
+
path: {
|
|
3798
|
+
/**
|
|
3799
|
+
* Race ID
|
|
3800
|
+
*/
|
|
3801
|
+
race_id: string;
|
|
3802
|
+
};
|
|
3803
|
+
};
|
|
3804
|
+
|
|
3805
|
+
export type GetRaceDiagnosticsResponse = (RaceDiagnosticsResponse);
|
|
3806
|
+
|
|
3807
|
+
export type GetRaceDiagnosticsError = (HTTPValidationError);
|
|
3808
|
+
|
|
3809
|
+
export type CloseQualifyingResponse2 = (CloseQualifyingResponse);
|
|
3810
|
+
|
|
3811
|
+
export type CloseQualifyingError = unknown;
|