@oro-ai/sdk 1.0.14 → 1.0.16
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 +79 -1
- package/dist/index.d.ts +79 -1
- package/dist/index.js +8 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +15 -1
- package/src/generated/types.gen.ts +75 -0
package/dist/index.d.mts
CHANGED
|
@@ -17,6 +17,10 @@ type ActivateSuiteResponse = {
|
|
|
17
17
|
* Whether this suite is active
|
|
18
18
|
*/
|
|
19
19
|
is_active: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Number of top agent versions requeued from previous suite
|
|
22
|
+
*/
|
|
23
|
+
requeued_versions?: number;
|
|
20
24
|
};
|
|
21
25
|
/**
|
|
22
26
|
* Response with presigned download URL for admin agent code access.
|
|
@@ -2192,6 +2196,56 @@ type TopAgentResponse = {
|
|
|
2192
2196
|
*/
|
|
2193
2197
|
margin?: (number | null);
|
|
2194
2198
|
};
|
|
2199
|
+
/**
|
|
2200
|
+
* A single entry in the top agent history.
|
|
2201
|
+
*/
|
|
2202
|
+
type TopHistoryEntry = {
|
|
2203
|
+
/**
|
|
2204
|
+
* Agent version ID
|
|
2205
|
+
*/
|
|
2206
|
+
agent_version_id: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* Agent name
|
|
2209
|
+
*/
|
|
2210
|
+
agent_name: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Miner hotkey
|
|
2213
|
+
*/
|
|
2214
|
+
miner_hotkey: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* Version number
|
|
2217
|
+
*/
|
|
2218
|
+
version_number: number;
|
|
2219
|
+
/**
|
|
2220
|
+
* Final score
|
|
2221
|
+
*/
|
|
2222
|
+
final_score: number;
|
|
2223
|
+
/**
|
|
2224
|
+
* When this agent became top
|
|
2225
|
+
*/
|
|
2226
|
+
top_at: string;
|
|
2227
|
+
/**
|
|
2228
|
+
* Currently the top agent
|
|
2229
|
+
*/
|
|
2230
|
+
is_current_top: boolean;
|
|
2231
|
+
/**
|
|
2232
|
+
* Previously held top agent status
|
|
2233
|
+
*/
|
|
2234
|
+
was_top: boolean;
|
|
2235
|
+
};
|
|
2236
|
+
/**
|
|
2237
|
+
* Response for top agent history endpoint.
|
|
2238
|
+
*/
|
|
2239
|
+
type TopHistoryResponse = {
|
|
2240
|
+
/**
|
|
2241
|
+
* Suite ID
|
|
2242
|
+
*/
|
|
2243
|
+
suite_id: number;
|
|
2244
|
+
/**
|
|
2245
|
+
* Top agent history entries
|
|
2246
|
+
*/
|
|
2247
|
+
entries: Array<TopHistoryEntry>;
|
|
2248
|
+
};
|
|
2195
2249
|
type ValidationError = {
|
|
2196
2250
|
loc: Array<(string | number)>;
|
|
2197
2251
|
msg: string;
|
|
@@ -2516,6 +2570,16 @@ type GetLeaderboardResponse = (LeaderboardResponse);
|
|
|
2516
2570
|
type GetLeaderboardError = (HTTPValidationError);
|
|
2517
2571
|
type GetTopAgentResponse = (TopAgentResponse);
|
|
2518
2572
|
type GetTopAgentError = unknown;
|
|
2573
|
+
type GetTopHistoryData = {
|
|
2574
|
+
query?: {
|
|
2575
|
+
/**
|
|
2576
|
+
* Suite ID (defaults to current)
|
|
2577
|
+
*/
|
|
2578
|
+
suite_id?: (number | null);
|
|
2579
|
+
};
|
|
2580
|
+
};
|
|
2581
|
+
type GetTopHistoryResponse = (TopHistoryResponse);
|
|
2582
|
+
type GetTopHistoryError = (HTTPValidationError);
|
|
2519
2583
|
type GetAgentVersionStatusData = {
|
|
2520
2584
|
path: {
|
|
2521
2585
|
/**
|
|
@@ -2814,6 +2878,12 @@ type ActivateSuiteData = {
|
|
|
2814
2878
|
*/
|
|
2815
2879
|
suite_id: number;
|
|
2816
2880
|
};
|
|
2881
|
+
query?: {
|
|
2882
|
+
/**
|
|
2883
|
+
* Number of top agent versions to requeue from the previous suite (0 to skip)
|
|
2884
|
+
*/
|
|
2885
|
+
requeue_top_n?: number;
|
|
2886
|
+
};
|
|
2817
2887
|
};
|
|
2818
2888
|
type ActivateSuiteResponse2 = (ActivateSuiteResponse);
|
|
2819
2889
|
type ActivateSuiteError = (SuiteNotFoundError | HTTPValidationError);
|
|
@@ -3066,6 +3136,11 @@ declare const getLeaderboard: <ThrowOnError extends boolean = false>(options?: O
|
|
|
3066
3136
|
* Get the canonical top miner for emissions calculation.
|
|
3067
3137
|
*/
|
|
3068
3138
|
declare const getTopAgent: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TopAgentResponse, unknown, ThrowOnError>;
|
|
3139
|
+
/**
|
|
3140
|
+
* Get top agent history
|
|
3141
|
+
* Get all agents that have held top agent status for a suite.
|
|
3142
|
+
*/
|
|
3143
|
+
declare const getTopHistory: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTopHistoryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TopHistoryResponse, HTTPValidationError, ThrowOnError>;
|
|
3069
3144
|
/**
|
|
3070
3145
|
* Get agent version status
|
|
3071
3146
|
* Get live status and counters for an agent version.
|
|
@@ -3276,6 +3351,9 @@ declare const createSuite: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
3276
3351
|
/**
|
|
3277
3352
|
* Activate a problem suite
|
|
3278
3353
|
* Activate a suite, making it the current active suite (deactivates others).
|
|
3354
|
+
*
|
|
3355
|
+
* Automatically requeues the top N agent versions from the previous suite
|
|
3356
|
+
* so validators have work immediately and the leaderboard populates quickly.
|
|
3279
3357
|
*/
|
|
3280
3358
|
declare const activateSuite: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSuiteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ActivateSuiteResponse, ActivateSuiteError, ThrowOnError>;
|
|
3281
3359
|
/**
|
|
@@ -3686,4 +3764,4 @@ declare class SessionAuthManager {
|
|
|
3686
3764
|
*/
|
|
3687
3765
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
3688
3766
|
|
|
3689
|
-
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 GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, 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 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 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 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, getRunningEvaluations, getSuiteProblems, getTopAgent, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
|
3767
|
+
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 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 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 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, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ type ActivateSuiteResponse = {
|
|
|
17
17
|
* Whether this suite is active
|
|
18
18
|
*/
|
|
19
19
|
is_active: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Number of top agent versions requeued from previous suite
|
|
22
|
+
*/
|
|
23
|
+
requeued_versions?: number;
|
|
20
24
|
};
|
|
21
25
|
/**
|
|
22
26
|
* Response with presigned download URL for admin agent code access.
|
|
@@ -2192,6 +2196,56 @@ type TopAgentResponse = {
|
|
|
2192
2196
|
*/
|
|
2193
2197
|
margin?: (number | null);
|
|
2194
2198
|
};
|
|
2199
|
+
/**
|
|
2200
|
+
* A single entry in the top agent history.
|
|
2201
|
+
*/
|
|
2202
|
+
type TopHistoryEntry = {
|
|
2203
|
+
/**
|
|
2204
|
+
* Agent version ID
|
|
2205
|
+
*/
|
|
2206
|
+
agent_version_id: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* Agent name
|
|
2209
|
+
*/
|
|
2210
|
+
agent_name: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Miner hotkey
|
|
2213
|
+
*/
|
|
2214
|
+
miner_hotkey: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* Version number
|
|
2217
|
+
*/
|
|
2218
|
+
version_number: number;
|
|
2219
|
+
/**
|
|
2220
|
+
* Final score
|
|
2221
|
+
*/
|
|
2222
|
+
final_score: number;
|
|
2223
|
+
/**
|
|
2224
|
+
* When this agent became top
|
|
2225
|
+
*/
|
|
2226
|
+
top_at: string;
|
|
2227
|
+
/**
|
|
2228
|
+
* Currently the top agent
|
|
2229
|
+
*/
|
|
2230
|
+
is_current_top: boolean;
|
|
2231
|
+
/**
|
|
2232
|
+
* Previously held top agent status
|
|
2233
|
+
*/
|
|
2234
|
+
was_top: boolean;
|
|
2235
|
+
};
|
|
2236
|
+
/**
|
|
2237
|
+
* Response for top agent history endpoint.
|
|
2238
|
+
*/
|
|
2239
|
+
type TopHistoryResponse = {
|
|
2240
|
+
/**
|
|
2241
|
+
* Suite ID
|
|
2242
|
+
*/
|
|
2243
|
+
suite_id: number;
|
|
2244
|
+
/**
|
|
2245
|
+
* Top agent history entries
|
|
2246
|
+
*/
|
|
2247
|
+
entries: Array<TopHistoryEntry>;
|
|
2248
|
+
};
|
|
2195
2249
|
type ValidationError = {
|
|
2196
2250
|
loc: Array<(string | number)>;
|
|
2197
2251
|
msg: string;
|
|
@@ -2516,6 +2570,16 @@ type GetLeaderboardResponse = (LeaderboardResponse);
|
|
|
2516
2570
|
type GetLeaderboardError = (HTTPValidationError);
|
|
2517
2571
|
type GetTopAgentResponse = (TopAgentResponse);
|
|
2518
2572
|
type GetTopAgentError = unknown;
|
|
2573
|
+
type GetTopHistoryData = {
|
|
2574
|
+
query?: {
|
|
2575
|
+
/**
|
|
2576
|
+
* Suite ID (defaults to current)
|
|
2577
|
+
*/
|
|
2578
|
+
suite_id?: (number | null);
|
|
2579
|
+
};
|
|
2580
|
+
};
|
|
2581
|
+
type GetTopHistoryResponse = (TopHistoryResponse);
|
|
2582
|
+
type GetTopHistoryError = (HTTPValidationError);
|
|
2519
2583
|
type GetAgentVersionStatusData = {
|
|
2520
2584
|
path: {
|
|
2521
2585
|
/**
|
|
@@ -2814,6 +2878,12 @@ type ActivateSuiteData = {
|
|
|
2814
2878
|
*/
|
|
2815
2879
|
suite_id: number;
|
|
2816
2880
|
};
|
|
2881
|
+
query?: {
|
|
2882
|
+
/**
|
|
2883
|
+
* Number of top agent versions to requeue from the previous suite (0 to skip)
|
|
2884
|
+
*/
|
|
2885
|
+
requeue_top_n?: number;
|
|
2886
|
+
};
|
|
2817
2887
|
};
|
|
2818
2888
|
type ActivateSuiteResponse2 = (ActivateSuiteResponse);
|
|
2819
2889
|
type ActivateSuiteError = (SuiteNotFoundError | HTTPValidationError);
|
|
@@ -3066,6 +3136,11 @@ declare const getLeaderboard: <ThrowOnError extends boolean = false>(options?: O
|
|
|
3066
3136
|
* Get the canonical top miner for emissions calculation.
|
|
3067
3137
|
*/
|
|
3068
3138
|
declare const getTopAgent: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TopAgentResponse, unknown, ThrowOnError>;
|
|
3139
|
+
/**
|
|
3140
|
+
* Get top agent history
|
|
3141
|
+
* Get all agents that have held top agent status for a suite.
|
|
3142
|
+
*/
|
|
3143
|
+
declare const getTopHistory: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTopHistoryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TopHistoryResponse, HTTPValidationError, ThrowOnError>;
|
|
3069
3144
|
/**
|
|
3070
3145
|
* Get agent version status
|
|
3071
3146
|
* Get live status and counters for an agent version.
|
|
@@ -3276,6 +3351,9 @@ declare const createSuite: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
3276
3351
|
/**
|
|
3277
3352
|
* Activate a problem suite
|
|
3278
3353
|
* Activate a suite, making it the current active suite (deactivates others).
|
|
3354
|
+
*
|
|
3355
|
+
* Automatically requeues the top N agent versions from the previous suite
|
|
3356
|
+
* so validators have work immediately and the leaderboard populates quickly.
|
|
3279
3357
|
*/
|
|
3280
3358
|
declare const activateSuite: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSuiteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ActivateSuiteResponse, ActivateSuiteError, ThrowOnError>;
|
|
3281
3359
|
/**
|
|
@@ -3686,4 +3764,4 @@ declare class SessionAuthManager {
|
|
|
3686
3764
|
*/
|
|
3687
3765
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
3688
3766
|
|
|
3689
|
-
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 GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, 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 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 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 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, getRunningEvaluations, getSuiteProblems, getTopAgent, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
|
3767
|
+
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 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 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 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, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listValidators, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
package/dist/index.js
CHANGED
|
@@ -70,6 +70,7 @@ __export(index_exports, {
|
|
|
70
70
|
getRunningEvaluations: () => getRunningEvaluations,
|
|
71
71
|
getSuiteProblems: () => getSuiteProblems,
|
|
72
72
|
getTopAgent: () => getTopAgent,
|
|
73
|
+
getTopHistory: () => getTopHistory,
|
|
73
74
|
getValidatorScores: () => getValidatorScores,
|
|
74
75
|
getValidators: () => getValidators,
|
|
75
76
|
hasDetail: () => hasDetail,
|
|
@@ -134,6 +135,12 @@ var getTopAgent = (options) => {
|
|
|
134
135
|
url: "/v1/public/top"
|
|
135
136
|
});
|
|
136
137
|
};
|
|
138
|
+
var getTopHistory = (options) => {
|
|
139
|
+
return (options?.client ?? client).get({
|
|
140
|
+
...options,
|
|
141
|
+
url: "/v1/public/top/history"
|
|
142
|
+
});
|
|
143
|
+
};
|
|
137
144
|
var getAgentVersionStatus = (options) => {
|
|
138
145
|
return (options?.client ?? client).get({
|
|
139
146
|
...options,
|
|
@@ -817,6 +824,7 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
817
824
|
getRunningEvaluations,
|
|
818
825
|
getSuiteProblems,
|
|
819
826
|
getTopAgent,
|
|
827
|
+
getTopHistory,
|
|
820
828
|
getValidatorScores,
|
|
821
829
|
getValidators,
|
|
822
830
|
hasDetail,
|
package/dist/index.mjs
CHANGED
|
@@ -31,6 +31,12 @@ var getTopAgent = (options) => {
|
|
|
31
31
|
url: "/v1/public/top"
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
+
var getTopHistory = (options) => {
|
|
35
|
+
return (options?.client ?? client).get({
|
|
36
|
+
...options,
|
|
37
|
+
url: "/v1/public/top/history"
|
|
38
|
+
});
|
|
39
|
+
};
|
|
34
40
|
var getAgentVersionStatus = (options) => {
|
|
35
41
|
return (options?.client ?? client).get({
|
|
36
42
|
...options,
|
|
@@ -713,6 +719,7 @@ export {
|
|
|
713
719
|
getRunningEvaluations,
|
|
714
720
|
getSuiteProblems,
|
|
715
721
|
getTopAgent,
|
|
722
|
+
getTopHistory,
|
|
716
723
|
getValidatorScores,
|
|
717
724
|
getValidators,
|
|
718
725
|
hasDetail,
|
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, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, 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, 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, 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, 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';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -60,6 +60,17 @@ export const getTopAgent = <ThrowOnError extends boolean = false>(options?: Opti
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Get top agent history
|
|
65
|
+
* Get all agents that have held top agent status for a suite.
|
|
66
|
+
*/
|
|
67
|
+
export const getTopHistory = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTopHistoryData, ThrowOnError>) => {
|
|
68
|
+
return (options?.client ?? client).get<GetTopHistoryResponse, GetTopHistoryError, ThrowOnError>({
|
|
69
|
+
...options,
|
|
70
|
+
url: '/v1/public/top/history'
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
63
74
|
/**
|
|
64
75
|
* Get agent version status
|
|
65
76
|
* Get live status and counters for an agent version.
|
|
@@ -485,6 +496,9 @@ export const createSuite = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
485
496
|
/**
|
|
486
497
|
* Activate a problem suite
|
|
487
498
|
* Activate a suite, making it the current active suite (deactivates others).
|
|
499
|
+
*
|
|
500
|
+
* Automatically requeues the top N agent versions from the previous suite
|
|
501
|
+
* so validators have work immediately and the leaderboard populates quickly.
|
|
488
502
|
*/
|
|
489
503
|
export const activateSuite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSuiteData, ThrowOnError>) => {
|
|
490
504
|
return (options?.client ?? client).post<ActivateSuiteResponse2, ActivateSuiteError, ThrowOnError>({
|
|
@@ -16,6 +16,10 @@ export type ActivateSuiteResponse = {
|
|
|
16
16
|
* Whether this suite is active
|
|
17
17
|
*/
|
|
18
18
|
is_active: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Number of top agent versions requeued from previous suite
|
|
21
|
+
*/
|
|
22
|
+
requeued_versions?: number;
|
|
19
23
|
};
|
|
20
24
|
|
|
21
25
|
/**
|
|
@@ -2297,6 +2301,58 @@ export type TopAgentResponse = {
|
|
|
2297
2301
|
margin?: (number | null);
|
|
2298
2302
|
};
|
|
2299
2303
|
|
|
2304
|
+
/**
|
|
2305
|
+
* A single entry in the top agent history.
|
|
2306
|
+
*/
|
|
2307
|
+
export type TopHistoryEntry = {
|
|
2308
|
+
/**
|
|
2309
|
+
* Agent version ID
|
|
2310
|
+
*/
|
|
2311
|
+
agent_version_id: string;
|
|
2312
|
+
/**
|
|
2313
|
+
* Agent name
|
|
2314
|
+
*/
|
|
2315
|
+
agent_name: string;
|
|
2316
|
+
/**
|
|
2317
|
+
* Miner hotkey
|
|
2318
|
+
*/
|
|
2319
|
+
miner_hotkey: string;
|
|
2320
|
+
/**
|
|
2321
|
+
* Version number
|
|
2322
|
+
*/
|
|
2323
|
+
version_number: number;
|
|
2324
|
+
/**
|
|
2325
|
+
* Final score
|
|
2326
|
+
*/
|
|
2327
|
+
final_score: number;
|
|
2328
|
+
/**
|
|
2329
|
+
* When this agent became top
|
|
2330
|
+
*/
|
|
2331
|
+
top_at: string;
|
|
2332
|
+
/**
|
|
2333
|
+
* Currently the top agent
|
|
2334
|
+
*/
|
|
2335
|
+
is_current_top: boolean;
|
|
2336
|
+
/**
|
|
2337
|
+
* Previously held top agent status
|
|
2338
|
+
*/
|
|
2339
|
+
was_top: boolean;
|
|
2340
|
+
};
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* Response for top agent history endpoint.
|
|
2344
|
+
*/
|
|
2345
|
+
export type TopHistoryResponse = {
|
|
2346
|
+
/**
|
|
2347
|
+
* Suite ID
|
|
2348
|
+
*/
|
|
2349
|
+
suite_id: number;
|
|
2350
|
+
/**
|
|
2351
|
+
* Top agent history entries
|
|
2352
|
+
*/
|
|
2353
|
+
entries: Array<TopHistoryEntry>;
|
|
2354
|
+
};
|
|
2355
|
+
|
|
2300
2356
|
export type ValidationError = {
|
|
2301
2357
|
loc: Array<(string | number)>;
|
|
2302
2358
|
msg: string;
|
|
@@ -2644,6 +2700,19 @@ export type GetTopAgentResponse = (TopAgentResponse);
|
|
|
2644
2700
|
|
|
2645
2701
|
export type GetTopAgentError = unknown;
|
|
2646
2702
|
|
|
2703
|
+
export type GetTopHistoryData = {
|
|
2704
|
+
query?: {
|
|
2705
|
+
/**
|
|
2706
|
+
* Suite ID (defaults to current)
|
|
2707
|
+
*/
|
|
2708
|
+
suite_id?: (number | null);
|
|
2709
|
+
};
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2712
|
+
export type GetTopHistoryResponse = (TopHistoryResponse);
|
|
2713
|
+
|
|
2714
|
+
export type GetTopHistoryError = (HTTPValidationError);
|
|
2715
|
+
|
|
2647
2716
|
export type GetAgentVersionStatusData = {
|
|
2648
2717
|
path: {
|
|
2649
2718
|
/**
|
|
@@ -3043,6 +3112,12 @@ export type ActivateSuiteData = {
|
|
|
3043
3112
|
*/
|
|
3044
3113
|
suite_id: number;
|
|
3045
3114
|
};
|
|
3115
|
+
query?: {
|
|
3116
|
+
/**
|
|
3117
|
+
* Number of top agent versions to requeue from the previous suite (0 to skip)
|
|
3118
|
+
*/
|
|
3119
|
+
requeue_top_n?: number;
|
|
3120
|
+
};
|
|
3046
3121
|
};
|
|
3047
3122
|
|
|
3048
3123
|
export type ActivateSuiteResponse2 = (ActivateSuiteResponse);
|