@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/dist/index.d.ts
CHANGED
|
@@ -930,6 +930,27 @@ type ClaimWorkResponse = {
|
|
|
930
930
|
*/
|
|
931
931
|
chutes_access_token?: (string | null);
|
|
932
932
|
};
|
|
933
|
+
/**
|
|
934
|
+
* Response for closing a qualifying window.
|
|
935
|
+
*/
|
|
936
|
+
type CloseQualifyingResponse = {
|
|
937
|
+
/**
|
|
938
|
+
* Race that was closed
|
|
939
|
+
*/
|
|
940
|
+
race_id: string;
|
|
941
|
+
/**
|
|
942
|
+
* Original qualifying close time
|
|
943
|
+
*/
|
|
944
|
+
previous_closes_at: string;
|
|
945
|
+
/**
|
|
946
|
+
* Updated close time (now)
|
|
947
|
+
*/
|
|
948
|
+
new_closes_at: string;
|
|
949
|
+
/**
|
|
950
|
+
* Race status after update
|
|
951
|
+
*/
|
|
952
|
+
status: string;
|
|
953
|
+
};
|
|
933
954
|
/**
|
|
934
955
|
* 422 - Static analysis found issues in submitted code.
|
|
935
956
|
*/
|
|
@@ -1058,6 +1079,15 @@ type CreateSuiteResponse = {
|
|
|
1058
1079
|
*/
|
|
1059
1080
|
is_active: boolean;
|
|
1060
1081
|
};
|
|
1082
|
+
/**
|
|
1083
|
+
* Response for current race state.
|
|
1084
|
+
*/
|
|
1085
|
+
type CurrentRacesResponse = {
|
|
1086
|
+
/**
|
|
1087
|
+
* Active races
|
|
1088
|
+
*/
|
|
1089
|
+
races: Array<RaceSummary>;
|
|
1090
|
+
};
|
|
1061
1091
|
/**
|
|
1062
1092
|
* Request to discard an agent version.
|
|
1063
1093
|
*/
|
|
@@ -1854,6 +1884,267 @@ type ProgressUpdateResponse = {
|
|
|
1854
1884
|
*/
|
|
1855
1885
|
accepted?: boolean;
|
|
1856
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
|
+
};
|
|
1913
|
+
/**
|
|
1914
|
+
* Detailed diagnostics for a specific race.
|
|
1915
|
+
*/
|
|
1916
|
+
type RaceDiagnosticsResponse = {
|
|
1917
|
+
/**
|
|
1918
|
+
* Race ID
|
|
1919
|
+
*/
|
|
1920
|
+
race_id: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* Problem suite ID
|
|
1923
|
+
*/
|
|
1924
|
+
suite_id: number;
|
|
1925
|
+
race_number?: (number | null);
|
|
1926
|
+
/**
|
|
1927
|
+
* Current race status
|
|
1928
|
+
*/
|
|
1929
|
+
status: string;
|
|
1930
|
+
qualifying_closes_at?: (string | null);
|
|
1931
|
+
race_started_at?: (string | null);
|
|
1932
|
+
race_completed_at?: (string | null);
|
|
1933
|
+
winner_agent_version_id?: (string | null);
|
|
1934
|
+
winner_score?: (number | null);
|
|
1935
|
+
qualifying_threshold?: (number | null);
|
|
1936
|
+
incumbent_agent_version_id?: (string | null);
|
|
1937
|
+
problem_seed?: (string | null);
|
|
1938
|
+
/**
|
|
1939
|
+
* Number of race problems
|
|
1940
|
+
*/
|
|
1941
|
+
problem_count?: number;
|
|
1942
|
+
qualifiers?: Array<RaceQualifierEntry>;
|
|
1943
|
+
work_items?: Array<RaceWorkItemEntry>;
|
|
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
|
+
};
|
|
2018
|
+
/**
|
|
2019
|
+
* A qualifier in a race.
|
|
2020
|
+
*/
|
|
2021
|
+
type RaceQualifierEntry = {
|
|
2022
|
+
/**
|
|
2023
|
+
* Agent version ID
|
|
2024
|
+
*/
|
|
2025
|
+
agent_version_id: string;
|
|
2026
|
+
/**
|
|
2027
|
+
* Agent name
|
|
2028
|
+
*/
|
|
2029
|
+
agent_name?: (string | null);
|
|
2030
|
+
/**
|
|
2031
|
+
* Miner hotkey
|
|
2032
|
+
*/
|
|
2033
|
+
miner_hotkey?: (string | null);
|
|
2034
|
+
/**
|
|
2035
|
+
* How agent qualified (INCUMBENT or SCORED)
|
|
2036
|
+
*/
|
|
2037
|
+
qualification_type: string;
|
|
2038
|
+
/**
|
|
2039
|
+
* Score from qualifying
|
|
2040
|
+
*/
|
|
2041
|
+
qualifying_score?: (number | null);
|
|
2042
|
+
/**
|
|
2043
|
+
* Score from race phase
|
|
2044
|
+
*/
|
|
2045
|
+
race_score?: (number | null);
|
|
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
|
+
};
|
|
2080
|
+
/**
|
|
2081
|
+
* Summary of a race for the current state view.
|
|
2082
|
+
*/
|
|
2083
|
+
type RaceSummary = {
|
|
2084
|
+
/**
|
|
2085
|
+
* Race ID
|
|
2086
|
+
*/
|
|
2087
|
+
race_id: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* Problem suite ID
|
|
2090
|
+
*/
|
|
2091
|
+
suite_id: number;
|
|
2092
|
+
race_number?: (number | null);
|
|
2093
|
+
/**
|
|
2094
|
+
* Current race status
|
|
2095
|
+
*/
|
|
2096
|
+
status: string;
|
|
2097
|
+
qualifying_closes_at?: (string | null);
|
|
2098
|
+
race_started_at?: (string | null);
|
|
2099
|
+
race_completed_at?: (string | null);
|
|
2100
|
+
winner_agent_version_id?: (string | null);
|
|
2101
|
+
winner_score?: (number | null);
|
|
2102
|
+
/**
|
|
2103
|
+
* Number of qualifiers
|
|
2104
|
+
*/
|
|
2105
|
+
qualifier_count?: number;
|
|
2106
|
+
/**
|
|
2107
|
+
* Number of work items
|
|
2108
|
+
*/
|
|
2109
|
+
work_item_count?: number;
|
|
2110
|
+
};
|
|
2111
|
+
/**
|
|
2112
|
+
* A work item in a race.
|
|
2113
|
+
*/
|
|
2114
|
+
type RaceWorkItemEntry = {
|
|
2115
|
+
/**
|
|
2116
|
+
* Agent version ID
|
|
2117
|
+
*/
|
|
2118
|
+
agent_version_id: string;
|
|
2119
|
+
/**
|
|
2120
|
+
* Agent name
|
|
2121
|
+
*/
|
|
2122
|
+
agent_name?: (string | null);
|
|
2123
|
+
/**
|
|
2124
|
+
* Evaluation phase
|
|
2125
|
+
*/
|
|
2126
|
+
phase: string;
|
|
2127
|
+
/**
|
|
2128
|
+
* Whether work is complete
|
|
2129
|
+
*/
|
|
2130
|
+
is_closed: boolean;
|
|
2131
|
+
/**
|
|
2132
|
+
* Whether work was cancelled
|
|
2133
|
+
*/
|
|
2134
|
+
is_cancelled: boolean;
|
|
2135
|
+
/**
|
|
2136
|
+
* Successful evaluations
|
|
2137
|
+
*/
|
|
2138
|
+
included_success_count: number;
|
|
2139
|
+
/**
|
|
2140
|
+
* Active evaluations
|
|
2141
|
+
*/
|
|
2142
|
+
active_count: number;
|
|
2143
|
+
/**
|
|
2144
|
+
* Required successful evaluations
|
|
2145
|
+
*/
|
|
2146
|
+
required_successes: number;
|
|
2147
|
+
};
|
|
1857
2148
|
/**
|
|
1858
2149
|
* 429 - Rate limit exceeded.
|
|
1859
2150
|
*/
|
|
@@ -2714,6 +3005,36 @@ type GetPendingEvaluationsData = {
|
|
|
2714
3005
|
};
|
|
2715
3006
|
type GetPendingEvaluationsResponse = (PendingEvaluationsResponse);
|
|
2716
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);
|
|
2717
3038
|
type JoinWaitlistData = {
|
|
2718
3039
|
body: WaitlistSignupRequest;
|
|
2719
3040
|
};
|
|
@@ -3176,6 +3497,20 @@ type GetAgentVersionCodeData = {
|
|
|
3176
3497
|
};
|
|
3177
3498
|
type GetAgentVersionCodeResponse = (AdminAgentCodeResponse);
|
|
3178
3499
|
type GetAgentVersionCodeError = (AgentVersionNotFoundError | HTTPValidationError);
|
|
3500
|
+
type GetCurrentRacesResponse = (CurrentRacesResponse);
|
|
3501
|
+
type GetCurrentRacesError = unknown;
|
|
3502
|
+
type GetRaceDiagnosticsData = {
|
|
3503
|
+
path: {
|
|
3504
|
+
/**
|
|
3505
|
+
* Race ID
|
|
3506
|
+
*/
|
|
3507
|
+
race_id: string;
|
|
3508
|
+
};
|
|
3509
|
+
};
|
|
3510
|
+
type GetRaceDiagnosticsResponse = (RaceDiagnosticsResponse);
|
|
3511
|
+
type GetRaceDiagnosticsError = (HTTPValidationError);
|
|
3512
|
+
type CloseQualifyingResponse2 = (CloseQualifyingResponse);
|
|
3513
|
+
type CloseQualifyingError = unknown;
|
|
3179
3514
|
|
|
3180
3515
|
declare const client: _hey_api_client_fetch.Client<Request, Response, unknown, _hey_api_client_fetch.RequestOptions<boolean, string>>;
|
|
3181
3516
|
/**
|
|
@@ -3258,6 +3593,21 @@ declare const getRunningEvaluations: <ThrowOnError extends boolean = false>(opti
|
|
|
3258
3593
|
* Get all open work items awaiting validator evaluations, with queue summary.
|
|
3259
3594
|
*/
|
|
3260
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>;
|
|
3261
3611
|
/**
|
|
3262
3612
|
* Join waitlist
|
|
3263
3613
|
* Submit an email to join the ORO waitlist.
|
|
@@ -3489,13 +3839,32 @@ declare const getAgentVersionVariance: <ThrowOnError extends boolean = false>(op
|
|
|
3489
3839
|
* Get a presigned S3 URL to download agent source code for any version, regardless of release state.
|
|
3490
3840
|
*/
|
|
3491
3841
|
declare const getAgentVersionCode: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAgentVersionCodeData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AdminAgentCodeResponse, GetAgentVersionCodeError, ThrowOnError>;
|
|
3842
|
+
/**
|
|
3843
|
+
* Get current race state
|
|
3844
|
+
* Get all active (non-complete, non-cancelled) races with summary info.
|
|
3845
|
+
*/
|
|
3846
|
+
declare const getCurrentRaces: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CurrentRacesResponse, unknown, ThrowOnError>;
|
|
3847
|
+
/**
|
|
3848
|
+
* Get race diagnostics
|
|
3849
|
+
* Get detailed diagnostics for a specific race.
|
|
3850
|
+
*/
|
|
3851
|
+
declare const getRaceDiagnostics: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRaceDiagnosticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RaceDiagnosticsResponse, HTTPValidationError, ThrowOnError>;
|
|
3852
|
+
/**
|
|
3853
|
+
* Close qualifying and start race
|
|
3854
|
+
* Close the current qualifying window immediately.
|
|
3855
|
+
*
|
|
3856
|
+
* Sets qualifying_closes_at to now so the orchestrator picks it up
|
|
3857
|
+
* on its next cycle and transitions to RACE_RUNNING (or CANCELLED
|
|
3858
|
+
* if no qualifiers meet the threshold).
|
|
3859
|
+
*/
|
|
3860
|
+
declare const closeQualifying: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CloseQualifyingResponse, unknown, ThrowOnError>;
|
|
3492
3861
|
|
|
3493
3862
|
/**
|
|
3494
3863
|
* Auto-generated error code type.
|
|
3495
3864
|
*
|
|
3496
3865
|
* DO NOT EDIT — regenerate with: python3 scripts/extract-errors.py
|
|
3497
3866
|
*/
|
|
3498
|
-
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';
|
|
3499
3868
|
|
|
3500
3869
|
/**
|
|
3501
3870
|
* Error classification utilities for the ORO SDK.
|
|
@@ -3841,4 +4210,4 @@ declare class SessionAuthManager {
|
|
|
3841
4210
|
*/
|
|
3842
4211
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
3843
4212
|
|
|
3844
|
-
export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdminAgentCodeResponse, type AdminAgentVersionEntry, type AdminAgentVersionsResponse, type AdminEvaluationRunEntry, type AdminEvaluationRunsResponse, type AdminMinerEntry, type AdminMinersResponse, type AdminValidatorEntry, type AdminValidatorsResponse, type AdmissionReason, type AdmissionStatus, type AgentLatestVersion, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionScoreEntry, type AgentVersionState, type AgentVersionStatus, type AgentVersionVariance, type AgentVersionVarianceResponse, type AlreadyInvalidatedError, type ArtifactDownloadRequest, type ArtifactDownloadResponse, type ArtifactNotFoundError, type ArtifactNotReleasedError, type ArtifactReleaseState, type ArtifactType, type AtCapacityError, type AuditEventEntry, type AuditEventsResponse, type BanMinerData, type BanMinerError, type BanMinerResponse, type BanRequest, type BanResponse, type BanValidatorData, type BanValidatorError, type BanValidatorResponse, type BittensorAuthConfig, type Body_submit_agent, type CachedSession, type CancelAgentVersionData, type CancelAgentVersionError, type CancelAgentVersionResponse, type CancelRequest, type CancelResponse, type ChallengeRequest, type ChallengeResponse, type ChutesAuthStatusResponse, type ClaimWorkData, type ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionCodeData, type GetAgentVersionCodeError, type GetAgentVersionCodeResponse, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetAgentVersionVarianceData, type GetAgentVersionVarianceError, type GetAgentVersionVarianceResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetChutesAuthStatusError, type GetChutesAuthStatusResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunProblemsData, type GetRunProblemsError, type GetRunProblemsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetTopHistoryData, type GetTopHistoryError, type GetTopHistoryResponse, type GetValidatorScoresData, type GetValidatorScoresError, type GetValidatorScoresResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersions1Data, type ListAgentVersions1Error, type ListAgentVersions1Response, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListEvaluationRunsData, type ListEvaluationRunsError, type ListEvaluationRunsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type ListMinersData, type ListMinersError, type ListMinersResponse, type ListSuitesError, type ListSuitesResponse, type ListValidatorsData, type ListValidatorsError, type ListValidatorsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NotRunOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunProblemsResponse, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type TopHistoryEntry, type TopHistoryResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, client, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
|
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
|
@@ -40,6 +40,7 @@ __export(index_exports, {
|
|
|
40
40
|
classifyStatus: () => classifyStatus,
|
|
41
41
|
clearMinerCooldown: () => clearMinerCooldown,
|
|
42
42
|
client: () => client,
|
|
43
|
+
closeQualifying: () => closeQualifying,
|
|
43
44
|
completeRun: () => completeRun,
|
|
44
45
|
computeDelay: () => computeDelay,
|
|
45
46
|
configureBittensorAuth: () => configureBittensorAuth,
|
|
@@ -59,6 +60,8 @@ __export(index_exports, {
|
|
|
59
60
|
getArtifactDownloadUrl: () => getArtifactDownloadUrl,
|
|
60
61
|
getAuditEvents: () => getAuditEvents,
|
|
61
62
|
getChutesAuthStatus: () => getChutesAuthStatus,
|
|
63
|
+
getCurrentRace: () => getCurrentRace,
|
|
64
|
+
getCurrentRaces: () => getCurrentRaces,
|
|
62
65
|
getCurrentSuite: () => getCurrentSuite,
|
|
63
66
|
getErrorCode: () => getErrorCode,
|
|
64
67
|
getErrorDetail: () => getErrorDetail,
|
|
@@ -66,6 +69,9 @@ __export(index_exports, {
|
|
|
66
69
|
getLeaderboard: () => getLeaderboard,
|
|
67
70
|
getOwnedAgentVersionStatus: () => getOwnedAgentVersionStatus,
|
|
68
71
|
getPendingEvaluations: () => getPendingEvaluations,
|
|
72
|
+
getRaceDetail: () => getRaceDetail,
|
|
73
|
+
getRaceDiagnostics: () => getRaceDiagnostics,
|
|
74
|
+
getRaceHistory: () => getRaceHistory,
|
|
69
75
|
getReaperStats: () => getReaperStats,
|
|
70
76
|
getRunProblems: () => getRunProblems,
|
|
71
77
|
getRunningEvaluations: () => getRunningEvaluations,
|
|
@@ -203,6 +209,24 @@ var getPendingEvaluations = (options) => {
|
|
|
203
209
|
url: "/v1/public/evaluations/pending"
|
|
204
210
|
});
|
|
205
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
|
+
};
|
|
206
230
|
var joinWaitlist = (options) => {
|
|
207
231
|
return (options?.client ?? client).post({
|
|
208
232
|
...options,
|
|
@@ -436,6 +460,24 @@ var getAgentVersionCode = (options) => {
|
|
|
436
460
|
url: "/v1/admin/agent-versions/{agent_version_id}/code"
|
|
437
461
|
});
|
|
438
462
|
};
|
|
463
|
+
var getCurrentRaces = (options) => {
|
|
464
|
+
return (options?.client ?? client).get({
|
|
465
|
+
...options,
|
|
466
|
+
url: "/v1/admin/races/current"
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
var getRaceDiagnostics = (options) => {
|
|
470
|
+
return (options?.client ?? client).get({
|
|
471
|
+
...options,
|
|
472
|
+
url: "/v1/admin/races/{race_id}/diagnostics"
|
|
473
|
+
});
|
|
474
|
+
};
|
|
475
|
+
var closeQualifying = (options) => {
|
|
476
|
+
return (options?.client ?? client).post({
|
|
477
|
+
...options,
|
|
478
|
+
url: "/v1/admin/races/close-qualifying"
|
|
479
|
+
});
|
|
480
|
+
};
|
|
439
481
|
|
|
440
482
|
// src/errors.ts
|
|
441
483
|
function classifyStatus(status) {
|
|
@@ -808,6 +850,7 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
808
850
|
classifyStatus,
|
|
809
851
|
clearMinerCooldown,
|
|
810
852
|
client,
|
|
853
|
+
closeQualifying,
|
|
811
854
|
completeRun,
|
|
812
855
|
computeDelay,
|
|
813
856
|
configureBittensorAuth,
|
|
@@ -827,6 +870,8 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
827
870
|
getArtifactDownloadUrl,
|
|
828
871
|
getAuditEvents,
|
|
829
872
|
getChutesAuthStatus,
|
|
873
|
+
getCurrentRace,
|
|
874
|
+
getCurrentRaces,
|
|
830
875
|
getCurrentSuite,
|
|
831
876
|
getErrorCode,
|
|
832
877
|
getErrorDetail,
|
|
@@ -834,6 +879,9 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
834
879
|
getLeaderboard,
|
|
835
880
|
getOwnedAgentVersionStatus,
|
|
836
881
|
getPendingEvaluations,
|
|
882
|
+
getRaceDetail,
|
|
883
|
+
getRaceDiagnostics,
|
|
884
|
+
getRaceHistory,
|
|
837
885
|
getReaperStats,
|
|
838
886
|
getRunProblems,
|
|
839
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,
|
|
@@ -330,6 +348,24 @@ var getAgentVersionCode = (options) => {
|
|
|
330
348
|
url: "/v1/admin/agent-versions/{agent_version_id}/code"
|
|
331
349
|
});
|
|
332
350
|
};
|
|
351
|
+
var getCurrentRaces = (options) => {
|
|
352
|
+
return (options?.client ?? client).get({
|
|
353
|
+
...options,
|
|
354
|
+
url: "/v1/admin/races/current"
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
var getRaceDiagnostics = (options) => {
|
|
358
|
+
return (options?.client ?? client).get({
|
|
359
|
+
...options,
|
|
360
|
+
url: "/v1/admin/races/{race_id}/diagnostics"
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
var closeQualifying = (options) => {
|
|
364
|
+
return (options?.client ?? client).post({
|
|
365
|
+
...options,
|
|
366
|
+
url: "/v1/admin/races/close-qualifying"
|
|
367
|
+
});
|
|
368
|
+
};
|
|
333
369
|
|
|
334
370
|
// src/errors.ts
|
|
335
371
|
function classifyStatus(status) {
|
|
@@ -701,6 +737,7 @@ export {
|
|
|
701
737
|
classifyStatus,
|
|
702
738
|
clearMinerCooldown,
|
|
703
739
|
client,
|
|
740
|
+
closeQualifying,
|
|
704
741
|
completeRun,
|
|
705
742
|
computeDelay,
|
|
706
743
|
configureBittensorAuth,
|
|
@@ -720,6 +757,8 @@ export {
|
|
|
720
757
|
getArtifactDownloadUrl,
|
|
721
758
|
getAuditEvents,
|
|
722
759
|
getChutesAuthStatus,
|
|
760
|
+
getCurrentRace,
|
|
761
|
+
getCurrentRaces,
|
|
723
762
|
getCurrentSuite,
|
|
724
763
|
getErrorCode,
|
|
725
764
|
getErrorDetail,
|
|
@@ -727,6 +766,9 @@ export {
|
|
|
727
766
|
getLeaderboard,
|
|
728
767
|
getOwnedAgentVersionStatus,
|
|
729
768
|
getPendingEvaluations,
|
|
769
|
+
getRaceDetail,
|
|
770
|
+
getRaceDiagnostics,
|
|
771
|
+
getRaceHistory,
|
|
730
772
|
getReaperStats,
|
|
731
773
|
getRunProblems,
|
|
732
774
|
getRunningEvaluations,
|