@oro-ai/sdk 1.0.58 → 1.0.60
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 +122 -6
- package/dist/index.d.ts +122 -6
- package/dist/index.js +42 -2
- package/dist/index.mjs +36 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +68 -5
- package/src/generated/types.gen.ts +103 -1
package/dist/index.d.mts
CHANGED
|
@@ -340,6 +340,10 @@ type AdminValidatorEntry = {
|
|
|
340
340
|
* When the validator was banned
|
|
341
341
|
*/
|
|
342
342
|
banned_at?: (string | null);
|
|
343
|
+
/**
|
|
344
|
+
* Maximum concurrent evaluation runs for this hotkey
|
|
345
|
+
*/
|
|
346
|
+
max_concurrent_runs: number;
|
|
343
347
|
};
|
|
344
348
|
type AdminValidatorsResponse = {
|
|
345
349
|
/**
|
|
@@ -1434,6 +1438,27 @@ type HeartbeatResponse = {
|
|
|
1434
1438
|
type HTTPValidationError = {
|
|
1435
1439
|
detail?: Array<ValidationError>;
|
|
1436
1440
|
};
|
|
1441
|
+
/**
|
|
1442
|
+
* Response body for ``GET /v1/miner/inference-auth``.
|
|
1443
|
+
*/
|
|
1444
|
+
type InferenceAuthListResponse = {
|
|
1445
|
+
providers: Array<InferenceAuthStatusResponse>;
|
|
1446
|
+
/**
|
|
1447
|
+
* Which provider claim_work mints a token from. Null = single-provider auto-pick.
|
|
1448
|
+
*/
|
|
1449
|
+
default_provider?: (string | null);
|
|
1450
|
+
};
|
|
1451
|
+
/**
|
|
1452
|
+
* Response body for ``GET /v1/miner/inference-auth/{provider}``.
|
|
1453
|
+
*/
|
|
1454
|
+
type InferenceAuthStatusResponse = {
|
|
1455
|
+
connected: boolean;
|
|
1456
|
+
provider: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* When the credential for this provider was last updated.
|
|
1459
|
+
*/
|
|
1460
|
+
updated_at?: (string | null);
|
|
1461
|
+
};
|
|
1437
1462
|
/**
|
|
1438
1463
|
* List of models available to ORO agents via the inference proxy.
|
|
1439
1464
|
*/
|
|
@@ -2415,6 +2440,12 @@ type SessionResponse = {
|
|
|
2415
2440
|
*/
|
|
2416
2441
|
role: string;
|
|
2417
2442
|
};
|
|
2443
|
+
/**
|
|
2444
|
+
* Request body for ``PATCH /v1/miner/inference-auth/default``.
|
|
2445
|
+
*/
|
|
2446
|
+
type SetDefaultProviderRequest = {
|
|
2447
|
+
provider: string;
|
|
2448
|
+
};
|
|
2418
2449
|
type SetTopRequest = {
|
|
2419
2450
|
/**
|
|
2420
2451
|
* Specific suite to set top agent for
|
|
@@ -2449,6 +2480,15 @@ type StoreChutesTokenRequest = {
|
|
|
2449
2480
|
*/
|
|
2450
2481
|
refresh_token: string;
|
|
2451
2482
|
};
|
|
2483
|
+
/**
|
|
2484
|
+
* Request body for ``POST /v1/miner/inference-auth/{provider}``.
|
|
2485
|
+
*/
|
|
2486
|
+
type StoreInferenceCredentialRequest = {
|
|
2487
|
+
/**
|
|
2488
|
+
* Provider-specific credential (refresh token, API key, etc.)
|
|
2489
|
+
*/
|
|
2490
|
+
credential: string;
|
|
2491
|
+
};
|
|
2452
2492
|
type SubmitAgentResponse = {
|
|
2453
2493
|
/**
|
|
2454
2494
|
* Unique identifier for the created agent
|
|
@@ -2628,6 +2668,12 @@ type TopMinerPayoutResponse = {
|
|
|
2628
2668
|
*/
|
|
2629
2669
|
as_of: string;
|
|
2630
2670
|
};
|
|
2671
|
+
type UpdateValidatorRequest = {
|
|
2672
|
+
/**
|
|
2673
|
+
* Maximum concurrent evaluation runs (must be >= 1)
|
|
2674
|
+
*/
|
|
2675
|
+
max_concurrent_runs: number;
|
|
2676
|
+
};
|
|
2631
2677
|
type ValidationError = {
|
|
2632
2678
|
loc: Array<(string | number)>;
|
|
2633
2679
|
msg: string;
|
|
@@ -3185,11 +3231,37 @@ type SubmitAgentData = {
|
|
|
3185
3231
|
};
|
|
3186
3232
|
type SubmitAgentResponse2 = (SubmitAgentResponse);
|
|
3187
3233
|
type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
|
|
3234
|
+
type StoreInferenceCredentialData = {
|
|
3235
|
+
body: StoreInferenceCredentialRequest;
|
|
3236
|
+
path: {
|
|
3237
|
+
provider: string;
|
|
3238
|
+
};
|
|
3239
|
+
};
|
|
3240
|
+
type StoreInferenceCredentialResponse = ({
|
|
3241
|
+
[key: string]: (boolean);
|
|
3242
|
+
});
|
|
3243
|
+
type StoreInferenceCredentialError = (HTTPValidationError);
|
|
3244
|
+
type GetInferenceAuthStatusOneData = {
|
|
3245
|
+
path: {
|
|
3246
|
+
provider: string;
|
|
3247
|
+
};
|
|
3248
|
+
};
|
|
3249
|
+
type GetInferenceAuthStatusOneResponse = (InferenceAuthStatusResponse);
|
|
3250
|
+
type GetInferenceAuthStatusOneError = (HTTPValidationError);
|
|
3251
|
+
type ListInferenceAuthResponse = (InferenceAuthListResponse);
|
|
3252
|
+
type ListInferenceAuthError = unknown;
|
|
3253
|
+
type SetDefaultInferenceProviderData = {
|
|
3254
|
+
body: SetDefaultProviderRequest;
|
|
3255
|
+
};
|
|
3256
|
+
type SetDefaultInferenceProviderResponse = ({
|
|
3257
|
+
[key: string]: (string | null);
|
|
3258
|
+
});
|
|
3259
|
+
type SetDefaultInferenceProviderError = (HTTPValidationError);
|
|
3188
3260
|
type StoreChutesTokenData = {
|
|
3189
3261
|
body: StoreChutesTokenRequest;
|
|
3190
3262
|
};
|
|
3191
3263
|
type StoreChutesTokenResponse = ({
|
|
3192
|
-
[key: string]:
|
|
3264
|
+
[key: string]: (boolean);
|
|
3193
3265
|
});
|
|
3194
3266
|
type StoreChutesTokenError = (HTTPValidationError);
|
|
3195
3267
|
type GetChutesAuthStatusResponse = (ChutesAuthStatusResponse);
|
|
@@ -3318,6 +3390,17 @@ type UnbanValidatorData = {
|
|
|
3318
3390
|
};
|
|
3319
3391
|
type UnbanValidatorResponse = (BanResponse);
|
|
3320
3392
|
type UnbanValidatorError = (ValidatorNotFoundError | HTTPValidationError);
|
|
3393
|
+
type UpdateValidatorData = {
|
|
3394
|
+
body: UpdateValidatorRequest;
|
|
3395
|
+
path: {
|
|
3396
|
+
/**
|
|
3397
|
+
* Validator hotkey to update
|
|
3398
|
+
*/
|
|
3399
|
+
validator_hotkey: string;
|
|
3400
|
+
};
|
|
3401
|
+
};
|
|
3402
|
+
type UpdateValidatorResponse = (AdminValidatorEntry);
|
|
3403
|
+
type UpdateValidatorError = (ValidatorNotFoundError | HTTPValidationError);
|
|
3321
3404
|
type DiscardAgentVersionData = {
|
|
3322
3405
|
body: DiscardRequest;
|
|
3323
3406
|
path: {
|
|
@@ -3852,13 +3935,41 @@ declare const logout: <ThrowOnError extends boolean = false>(options?: OptionsLe
|
|
|
3852
3935
|
*/
|
|
3853
3936
|
declare const submitAgent: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SubmitAgentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SubmitAgentResponse, SubmitAgentError, ThrowOnError>;
|
|
3854
3937
|
/**
|
|
3855
|
-
* Store
|
|
3856
|
-
* Store (or overwrite) the miner's
|
|
3938
|
+
* Store an inference-provider credential
|
|
3939
|
+
* Store (or overwrite) the miner's credential for the given provider.
|
|
3940
|
+
*
|
|
3941
|
+
* Validates the credential before persisting so bad input fails here rather
|
|
3942
|
+
* than at first claim_work. The first stored provider becomes the miner's
|
|
3943
|
+
* default; switching default afterward goes through the dedicated PATCH
|
|
3944
|
+
* endpoint.
|
|
3945
|
+
*/
|
|
3946
|
+
declare const storeInferenceCredential: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreInferenceCredentialData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreInferenceCredentialResponse, HTTPValidationError, ThrowOnError>;
|
|
3947
|
+
/**
|
|
3948
|
+
* Check inference auth status for a single provider
|
|
3949
|
+
* Check whether the miner has a stored credential for the given provider.
|
|
3950
|
+
*/
|
|
3951
|
+
declare const getInferenceAuthStatusOne: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInferenceAuthStatusOneData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InferenceAuthStatusResponse, HTTPValidationError, ThrowOnError>;
|
|
3952
|
+
/**
|
|
3953
|
+
* List all inference-auth providers the miner has connected
|
|
3954
|
+
* List every provider the authenticated miner currently has a credential for.
|
|
3955
|
+
*/
|
|
3956
|
+
declare const listInferenceAuth: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InferenceAuthListResponse, unknown, ThrowOnError>;
|
|
3957
|
+
/**
|
|
3958
|
+
* Set the miner's default inference provider
|
|
3959
|
+
* Set which provider claim_work should mint a token from for this miner.
|
|
3960
|
+
*/
|
|
3961
|
+
declare const setDefaultInferenceProvider: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetDefaultInferenceProviderData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SetDefaultInferenceProviderResponse, HTTPValidationError, ThrowOnError>;
|
|
3962
|
+
/**
|
|
3963
|
+
* @deprecated
|
|
3964
|
+
* Store Chutes OAuth refresh token (legacy — use /inference-auth/chutes)
|
|
3965
|
+
* Back-compat shim. Routes through the new inference-auth path so older
|
|
3966
|
+
* Frontend builds keep populating the new table during the deploy window.
|
|
3857
3967
|
*/
|
|
3858
3968
|
declare const storeChutesToken: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreChutesTokenResponse, HTTPValidationError, ThrowOnError>;
|
|
3859
3969
|
/**
|
|
3860
|
-
*
|
|
3861
|
-
* Check
|
|
3970
|
+
* @deprecated
|
|
3971
|
+
* Check Chutes auth status (legacy — use /inference-auth/chutes)
|
|
3972
|
+
* Back-compat shim. Reads from the new MinerInferenceAuth table.
|
|
3862
3973
|
*/
|
|
3863
3974
|
declare const getChutesAuthStatus: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ChutesAuthStatusResponse, unknown, ThrowOnError>;
|
|
3864
3975
|
/**
|
|
@@ -3939,6 +4050,11 @@ declare const banValidator: <ThrowOnError extends boolean = false>(options: Opti
|
|
|
3939
4050
|
* Unban a validator, allowing them to claim work again.
|
|
3940
4051
|
*/
|
|
3941
4052
|
declare const unbanValidator: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UnbanValidatorData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BanResponse, UnbanValidatorError, ThrowOnError>;
|
|
4053
|
+
/**
|
|
4054
|
+
* Update validator configuration
|
|
4055
|
+
* Update validator configuration. Currently supports `max_concurrent_runs`.
|
|
4056
|
+
*/
|
|
4057
|
+
declare const updateValidator: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateValidatorData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AdminValidatorEntry, UpdateValidatorError, ThrowOnError>;
|
|
3942
4058
|
/**
|
|
3943
4059
|
* Discard an agent version from leaderboard
|
|
3944
4060
|
* Discard an agent version from the leaderboard (reversible tombstone).
|
|
@@ -4470,4 +4586,4 @@ declare class SessionAuthManager {
|
|
|
4470
4586
|
*/
|
|
4471
4587
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
4472
4588
|
|
|
4473
|
-
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 ClearCooldownResponse, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type ClearRaceSelectionError, type ClearRaceSelectionResponse, 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 EliminateAgentVersionData, type EliminateAgentVersionError, type EliminateAgentVersionResponse, type EliminateRequest, type EliminateResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationPhase, 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 GetInferenceModelsError, type GetInferenceModelsResponse, 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 GetTopMinerPayoutError, type GetTopMinerPayoutResponse, type GetValidatorPauseError, type GetValidatorPauseResponse, type GetValidatorResourceSamplesData, type GetValidatorResourceSamplesError, type GetValidatorResourceSamplesResponse, 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 InferenceModelsResponse, 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 MinerRaceSelectionRequest, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NoSelectionError, type NotRunOwnerError, type NotVersionOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PostValidatorPauseData, type PostValidatorPauseError, type PostValidatorPauseResponse, type PostValidatorResumeData, type PostValidatorResumeError, type PostValidatorResumeResponse, 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 RaceLockedError, 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 ReinstateEliminationData, type ReinstateEliminationError, type ReinstateEliminationRequest, type ReinstateEliminationResponse, type ReinstateEliminationResponse2, 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 SetRaceSelectionData, type SetRaceSelectionError, type SetRaceSelectionResponse, 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 TopMinerPayoutResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidationErrorError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorPauseRequest, type ValidatorPauseStatus, type ValidatorProblemResult, type ValidatorPublic, type ValidatorResourceSampleEntry, type ValidatorResourceSamplesResponse, type ValidatorResumeRequest, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, clearRaceSelection, client, closeQualifying, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, eliminateAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getInferenceModels, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getTopMinerPayout, getValidatorPause, getValidatorResourceSamples, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, postValidatorPause, postValidatorResume, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, reinstateElimination, requestChallenge, setRaceSelection, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
|
4589
|
+
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 ClearCooldownResponse, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type ClearRaceSelectionError, type ClearRaceSelectionResponse, 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 EliminateAgentVersionData, type EliminateAgentVersionError, type EliminateAgentVersionResponse, type EliminateRequest, type EliminateResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationPhase, 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 GetInferenceAuthStatusOneData, type GetInferenceAuthStatusOneError, type GetInferenceAuthStatusOneResponse, type GetInferenceModelsError, type GetInferenceModelsResponse, 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 GetTopMinerPayoutError, type GetTopMinerPayoutResponse, type GetValidatorPauseError, type GetValidatorPauseResponse, type GetValidatorResourceSamplesData, type GetValidatorResourceSamplesError, type GetValidatorResourceSamplesResponse, 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 InferenceAuthListResponse, type InferenceAuthStatusResponse, type InferenceModelsResponse, 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 ListInferenceAuthError, type ListInferenceAuthResponse, 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 MinerRaceSelectionRequest, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NoSelectionError, type NotRunOwnerError, type NotVersionOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PostValidatorPauseData, type PostValidatorPauseError, type PostValidatorPauseResponse, type PostValidatorResumeData, type PostValidatorResumeError, type PostValidatorResumeResponse, 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 RaceLockedError, 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 ReinstateEliminationData, type ReinstateEliminationError, type ReinstateEliminationRequest, type ReinstateEliminationResponse, type ReinstateEliminationResponse2, 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 SetDefaultInferenceProviderData, type SetDefaultInferenceProviderError, type SetDefaultInferenceProviderResponse, type SetDefaultProviderRequest, type SetRaceSelectionData, type SetRaceSelectionError, type SetRaceSelectionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type StoreInferenceCredentialData, type StoreInferenceCredentialError, type StoreInferenceCredentialRequest, type StoreInferenceCredentialResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type TopHistoryEntry, type TopHistoryResponse, type TopMinerPayoutResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type UpdateValidatorData, type UpdateValidatorError, type UpdateValidatorRequest, type UpdateValidatorResponse, type ValidationError, type ValidationErrorError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorPauseRequest, type ValidatorPauseStatus, type ValidatorProblemResult, type ValidatorPublic, type ValidatorResourceSampleEntry, type ValidatorResourceSamplesResponse, type ValidatorResumeRequest, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, clearRaceSelection, client, closeQualifying, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, eliminateAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getInferenceAuthStatusOne, getInferenceModels, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getTopMinerPayout, getValidatorPause, getValidatorResourceSamples, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listInferenceAuth, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, postValidatorPause, postValidatorResume, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, reinstateElimination, requestChallenge, setDefaultInferenceProvider, setRaceSelection, setTopAgent, storeChutesToken, storeInferenceCredential, submitAgent, unbanMiner, unbanValidator, updateProgress, updateValidator };
|
package/dist/index.d.ts
CHANGED
|
@@ -340,6 +340,10 @@ type AdminValidatorEntry = {
|
|
|
340
340
|
* When the validator was banned
|
|
341
341
|
*/
|
|
342
342
|
banned_at?: (string | null);
|
|
343
|
+
/**
|
|
344
|
+
* Maximum concurrent evaluation runs for this hotkey
|
|
345
|
+
*/
|
|
346
|
+
max_concurrent_runs: number;
|
|
343
347
|
};
|
|
344
348
|
type AdminValidatorsResponse = {
|
|
345
349
|
/**
|
|
@@ -1434,6 +1438,27 @@ type HeartbeatResponse = {
|
|
|
1434
1438
|
type HTTPValidationError = {
|
|
1435
1439
|
detail?: Array<ValidationError>;
|
|
1436
1440
|
};
|
|
1441
|
+
/**
|
|
1442
|
+
* Response body for ``GET /v1/miner/inference-auth``.
|
|
1443
|
+
*/
|
|
1444
|
+
type InferenceAuthListResponse = {
|
|
1445
|
+
providers: Array<InferenceAuthStatusResponse>;
|
|
1446
|
+
/**
|
|
1447
|
+
* Which provider claim_work mints a token from. Null = single-provider auto-pick.
|
|
1448
|
+
*/
|
|
1449
|
+
default_provider?: (string | null);
|
|
1450
|
+
};
|
|
1451
|
+
/**
|
|
1452
|
+
* Response body for ``GET /v1/miner/inference-auth/{provider}``.
|
|
1453
|
+
*/
|
|
1454
|
+
type InferenceAuthStatusResponse = {
|
|
1455
|
+
connected: boolean;
|
|
1456
|
+
provider: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* When the credential for this provider was last updated.
|
|
1459
|
+
*/
|
|
1460
|
+
updated_at?: (string | null);
|
|
1461
|
+
};
|
|
1437
1462
|
/**
|
|
1438
1463
|
* List of models available to ORO agents via the inference proxy.
|
|
1439
1464
|
*/
|
|
@@ -2415,6 +2440,12 @@ type SessionResponse = {
|
|
|
2415
2440
|
*/
|
|
2416
2441
|
role: string;
|
|
2417
2442
|
};
|
|
2443
|
+
/**
|
|
2444
|
+
* Request body for ``PATCH /v1/miner/inference-auth/default``.
|
|
2445
|
+
*/
|
|
2446
|
+
type SetDefaultProviderRequest = {
|
|
2447
|
+
provider: string;
|
|
2448
|
+
};
|
|
2418
2449
|
type SetTopRequest = {
|
|
2419
2450
|
/**
|
|
2420
2451
|
* Specific suite to set top agent for
|
|
@@ -2449,6 +2480,15 @@ type StoreChutesTokenRequest = {
|
|
|
2449
2480
|
*/
|
|
2450
2481
|
refresh_token: string;
|
|
2451
2482
|
};
|
|
2483
|
+
/**
|
|
2484
|
+
* Request body for ``POST /v1/miner/inference-auth/{provider}``.
|
|
2485
|
+
*/
|
|
2486
|
+
type StoreInferenceCredentialRequest = {
|
|
2487
|
+
/**
|
|
2488
|
+
* Provider-specific credential (refresh token, API key, etc.)
|
|
2489
|
+
*/
|
|
2490
|
+
credential: string;
|
|
2491
|
+
};
|
|
2452
2492
|
type SubmitAgentResponse = {
|
|
2453
2493
|
/**
|
|
2454
2494
|
* Unique identifier for the created agent
|
|
@@ -2628,6 +2668,12 @@ type TopMinerPayoutResponse = {
|
|
|
2628
2668
|
*/
|
|
2629
2669
|
as_of: string;
|
|
2630
2670
|
};
|
|
2671
|
+
type UpdateValidatorRequest = {
|
|
2672
|
+
/**
|
|
2673
|
+
* Maximum concurrent evaluation runs (must be >= 1)
|
|
2674
|
+
*/
|
|
2675
|
+
max_concurrent_runs: number;
|
|
2676
|
+
};
|
|
2631
2677
|
type ValidationError = {
|
|
2632
2678
|
loc: Array<(string | number)>;
|
|
2633
2679
|
msg: string;
|
|
@@ -3185,11 +3231,37 @@ type SubmitAgentData = {
|
|
|
3185
3231
|
};
|
|
3186
3232
|
type SubmitAgentResponse2 = (SubmitAgentResponse);
|
|
3187
3233
|
type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
|
|
3234
|
+
type StoreInferenceCredentialData = {
|
|
3235
|
+
body: StoreInferenceCredentialRequest;
|
|
3236
|
+
path: {
|
|
3237
|
+
provider: string;
|
|
3238
|
+
};
|
|
3239
|
+
};
|
|
3240
|
+
type StoreInferenceCredentialResponse = ({
|
|
3241
|
+
[key: string]: (boolean);
|
|
3242
|
+
});
|
|
3243
|
+
type StoreInferenceCredentialError = (HTTPValidationError);
|
|
3244
|
+
type GetInferenceAuthStatusOneData = {
|
|
3245
|
+
path: {
|
|
3246
|
+
provider: string;
|
|
3247
|
+
};
|
|
3248
|
+
};
|
|
3249
|
+
type GetInferenceAuthStatusOneResponse = (InferenceAuthStatusResponse);
|
|
3250
|
+
type GetInferenceAuthStatusOneError = (HTTPValidationError);
|
|
3251
|
+
type ListInferenceAuthResponse = (InferenceAuthListResponse);
|
|
3252
|
+
type ListInferenceAuthError = unknown;
|
|
3253
|
+
type SetDefaultInferenceProviderData = {
|
|
3254
|
+
body: SetDefaultProviderRequest;
|
|
3255
|
+
};
|
|
3256
|
+
type SetDefaultInferenceProviderResponse = ({
|
|
3257
|
+
[key: string]: (string | null);
|
|
3258
|
+
});
|
|
3259
|
+
type SetDefaultInferenceProviderError = (HTTPValidationError);
|
|
3188
3260
|
type StoreChutesTokenData = {
|
|
3189
3261
|
body: StoreChutesTokenRequest;
|
|
3190
3262
|
};
|
|
3191
3263
|
type StoreChutesTokenResponse = ({
|
|
3192
|
-
[key: string]:
|
|
3264
|
+
[key: string]: (boolean);
|
|
3193
3265
|
});
|
|
3194
3266
|
type StoreChutesTokenError = (HTTPValidationError);
|
|
3195
3267
|
type GetChutesAuthStatusResponse = (ChutesAuthStatusResponse);
|
|
@@ -3318,6 +3390,17 @@ type UnbanValidatorData = {
|
|
|
3318
3390
|
};
|
|
3319
3391
|
type UnbanValidatorResponse = (BanResponse);
|
|
3320
3392
|
type UnbanValidatorError = (ValidatorNotFoundError | HTTPValidationError);
|
|
3393
|
+
type UpdateValidatorData = {
|
|
3394
|
+
body: UpdateValidatorRequest;
|
|
3395
|
+
path: {
|
|
3396
|
+
/**
|
|
3397
|
+
* Validator hotkey to update
|
|
3398
|
+
*/
|
|
3399
|
+
validator_hotkey: string;
|
|
3400
|
+
};
|
|
3401
|
+
};
|
|
3402
|
+
type UpdateValidatorResponse = (AdminValidatorEntry);
|
|
3403
|
+
type UpdateValidatorError = (ValidatorNotFoundError | HTTPValidationError);
|
|
3321
3404
|
type DiscardAgentVersionData = {
|
|
3322
3405
|
body: DiscardRequest;
|
|
3323
3406
|
path: {
|
|
@@ -3852,13 +3935,41 @@ declare const logout: <ThrowOnError extends boolean = false>(options?: OptionsLe
|
|
|
3852
3935
|
*/
|
|
3853
3936
|
declare const submitAgent: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SubmitAgentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SubmitAgentResponse, SubmitAgentError, ThrowOnError>;
|
|
3854
3937
|
/**
|
|
3855
|
-
* Store
|
|
3856
|
-
* Store (or overwrite) the miner's
|
|
3938
|
+
* Store an inference-provider credential
|
|
3939
|
+
* Store (or overwrite) the miner's credential for the given provider.
|
|
3940
|
+
*
|
|
3941
|
+
* Validates the credential before persisting so bad input fails here rather
|
|
3942
|
+
* than at first claim_work. The first stored provider becomes the miner's
|
|
3943
|
+
* default; switching default afterward goes through the dedicated PATCH
|
|
3944
|
+
* endpoint.
|
|
3945
|
+
*/
|
|
3946
|
+
declare const storeInferenceCredential: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreInferenceCredentialData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreInferenceCredentialResponse, HTTPValidationError, ThrowOnError>;
|
|
3947
|
+
/**
|
|
3948
|
+
* Check inference auth status for a single provider
|
|
3949
|
+
* Check whether the miner has a stored credential for the given provider.
|
|
3950
|
+
*/
|
|
3951
|
+
declare const getInferenceAuthStatusOne: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInferenceAuthStatusOneData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InferenceAuthStatusResponse, HTTPValidationError, ThrowOnError>;
|
|
3952
|
+
/**
|
|
3953
|
+
* List all inference-auth providers the miner has connected
|
|
3954
|
+
* List every provider the authenticated miner currently has a credential for.
|
|
3955
|
+
*/
|
|
3956
|
+
declare const listInferenceAuth: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InferenceAuthListResponse, unknown, ThrowOnError>;
|
|
3957
|
+
/**
|
|
3958
|
+
* Set the miner's default inference provider
|
|
3959
|
+
* Set which provider claim_work should mint a token from for this miner.
|
|
3960
|
+
*/
|
|
3961
|
+
declare const setDefaultInferenceProvider: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetDefaultInferenceProviderData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SetDefaultInferenceProviderResponse, HTTPValidationError, ThrowOnError>;
|
|
3962
|
+
/**
|
|
3963
|
+
* @deprecated
|
|
3964
|
+
* Store Chutes OAuth refresh token (legacy — use /inference-auth/chutes)
|
|
3965
|
+
* Back-compat shim. Routes through the new inference-auth path so older
|
|
3966
|
+
* Frontend builds keep populating the new table during the deploy window.
|
|
3857
3967
|
*/
|
|
3858
3968
|
declare const storeChutesToken: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreChutesTokenResponse, HTTPValidationError, ThrowOnError>;
|
|
3859
3969
|
/**
|
|
3860
|
-
*
|
|
3861
|
-
* Check
|
|
3970
|
+
* @deprecated
|
|
3971
|
+
* Check Chutes auth status (legacy — use /inference-auth/chutes)
|
|
3972
|
+
* Back-compat shim. Reads from the new MinerInferenceAuth table.
|
|
3862
3973
|
*/
|
|
3863
3974
|
declare const getChutesAuthStatus: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ChutesAuthStatusResponse, unknown, ThrowOnError>;
|
|
3864
3975
|
/**
|
|
@@ -3939,6 +4050,11 @@ declare const banValidator: <ThrowOnError extends boolean = false>(options: Opti
|
|
|
3939
4050
|
* Unban a validator, allowing them to claim work again.
|
|
3940
4051
|
*/
|
|
3941
4052
|
declare const unbanValidator: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UnbanValidatorData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BanResponse, UnbanValidatorError, ThrowOnError>;
|
|
4053
|
+
/**
|
|
4054
|
+
* Update validator configuration
|
|
4055
|
+
* Update validator configuration. Currently supports `max_concurrent_runs`.
|
|
4056
|
+
*/
|
|
4057
|
+
declare const updateValidator: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateValidatorData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AdminValidatorEntry, UpdateValidatorError, ThrowOnError>;
|
|
3942
4058
|
/**
|
|
3943
4059
|
* Discard an agent version from leaderboard
|
|
3944
4060
|
* Discard an agent version from the leaderboard (reversible tombstone).
|
|
@@ -4470,4 +4586,4 @@ declare class SessionAuthManager {
|
|
|
4470
4586
|
*/
|
|
4471
4587
|
declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
|
|
4472
4588
|
|
|
4473
|
-
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 ClearCooldownResponse, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type ClearRaceSelectionError, type ClearRaceSelectionResponse, 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 EliminateAgentVersionData, type EliminateAgentVersionError, type EliminateAgentVersionResponse, type EliminateRequest, type EliminateResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationPhase, 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 GetInferenceModelsError, type GetInferenceModelsResponse, 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 GetTopMinerPayoutError, type GetTopMinerPayoutResponse, type GetValidatorPauseError, type GetValidatorPauseResponse, type GetValidatorResourceSamplesData, type GetValidatorResourceSamplesError, type GetValidatorResourceSamplesResponse, 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 InferenceModelsResponse, 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 MinerRaceSelectionRequest, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NoSelectionError, type NotRunOwnerError, type NotVersionOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PostValidatorPauseData, type PostValidatorPauseError, type PostValidatorPauseResponse, type PostValidatorResumeData, type PostValidatorResumeError, type PostValidatorResumeResponse, 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 RaceLockedError, 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 ReinstateEliminationData, type ReinstateEliminationError, type ReinstateEliminationRequest, type ReinstateEliminationResponse, type ReinstateEliminationResponse2, 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 SetRaceSelectionData, type SetRaceSelectionError, type SetRaceSelectionResponse, 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 TopMinerPayoutResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidationErrorError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorPauseRequest, type ValidatorPauseStatus, type ValidatorProblemResult, type ValidatorPublic, type ValidatorResourceSampleEntry, type ValidatorResourceSamplesResponse, type ValidatorResumeRequest, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, clearRaceSelection, client, closeQualifying, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, eliminateAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getInferenceModels, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getTopMinerPayout, getValidatorPause, getValidatorResourceSamples, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, postValidatorPause, postValidatorResume, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, reinstateElimination, requestChallenge, setRaceSelection, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
|
|
4589
|
+
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 ClearCooldownResponse, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type ClearRaceSelectionError, type ClearRaceSelectionResponse, 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 EliminateAgentVersionData, type EliminateAgentVersionError, type EliminateAgentVersionResponse, type EliminateRequest, type EliminateResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationPhase, 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 GetInferenceAuthStatusOneData, type GetInferenceAuthStatusOneError, type GetInferenceAuthStatusOneResponse, type GetInferenceModelsError, type GetInferenceModelsResponse, 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 GetTopMinerPayoutError, type GetTopMinerPayoutResponse, type GetValidatorPauseError, type GetValidatorPauseResponse, type GetValidatorResourceSamplesData, type GetValidatorResourceSamplesError, type GetValidatorResourceSamplesResponse, 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 InferenceAuthListResponse, type InferenceAuthStatusResponse, type InferenceModelsResponse, 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 ListInferenceAuthError, type ListInferenceAuthResponse, 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 MinerRaceSelectionRequest, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NoSelectionError, type NotRunOwnerError, type NotVersionOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PostValidatorPauseData, type PostValidatorPauseError, type PostValidatorPauseResponse, type PostValidatorResumeData, type PostValidatorResumeError, type PostValidatorResumeResponse, 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 RaceLockedError, 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 ReinstateEliminationData, type ReinstateEliminationError, type ReinstateEliminationRequest, type ReinstateEliminationResponse, type ReinstateEliminationResponse2, 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 SetDefaultInferenceProviderData, type SetDefaultInferenceProviderError, type SetDefaultInferenceProviderResponse, type SetDefaultProviderRequest, type SetRaceSelectionData, type SetRaceSelectionError, type SetRaceSelectionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type StoreInferenceCredentialData, type StoreInferenceCredentialError, type StoreInferenceCredentialRequest, type StoreInferenceCredentialResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type TopHistoryEntry, type TopHistoryResponse, type TopMinerPayoutResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type UpdateValidatorData, type UpdateValidatorError, type UpdateValidatorRequest, type UpdateValidatorResponse, type ValidationError, type ValidationErrorError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorPauseRequest, type ValidatorPauseStatus, type ValidatorProblemResult, type ValidatorPublic, type ValidatorResourceSampleEntry, type ValidatorResourceSamplesResponse, type ValidatorResumeRequest, type ValidatorScoreSummary, type ValidatorScoresResponse, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, clearRaceSelection, client, closeQualifying, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, eliminateAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionCode, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getAgentVersionVariance, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentRace, getCurrentRaces, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getInferenceAuthStatusOne, getInferenceModels, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getRaceDetail, getRaceDiagnostics, getRaceHistory, getReaperStats, getRunProblems, getRunningEvaluations, getSuiteProblems, getTopAgent, getTopHistory, getTopMinerPayout, getValidatorPause, getValidatorResourceSamples, getValidatorScores, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listAgentVersions1, listEvaluationRuns, listInferenceAuth, listMinerAgents, listMiners, listSuites, listValidators, logout, parseRetryAfter, postValidatorPause, postValidatorResume, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, reinstateElimination, requestChallenge, setDefaultInferenceProvider, setRaceSelection, setTopAgent, storeChutesToken, storeInferenceCredential, submitAgent, unbanMiner, unbanValidator, updateProgress, updateValidator };
|
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ __export(index_exports, {
|
|
|
68
68
|
getErrorCode: () => getErrorCode,
|
|
69
69
|
getErrorDetail: () => getErrorDetail,
|
|
70
70
|
getEvaluationRun: () => getEvaluationRun,
|
|
71
|
+
getInferenceAuthStatusOne: () => getInferenceAuthStatusOne,
|
|
71
72
|
getInferenceModels: () => getInferenceModels,
|
|
72
73
|
getLeaderboard: () => getLeaderboard,
|
|
73
74
|
getOwnedAgentVersionStatus: () => getOwnedAgentVersionStatus,
|
|
@@ -97,6 +98,7 @@ __export(index_exports, {
|
|
|
97
98
|
listAgentVersions: () => listAgentVersions,
|
|
98
99
|
listAgentVersions1: () => listAgentVersions1,
|
|
99
100
|
listEvaluationRuns: () => listEvaluationRuns,
|
|
101
|
+
listInferenceAuth: () => listInferenceAuth,
|
|
100
102
|
listMinerAgents: () => listMinerAgents,
|
|
101
103
|
listMiners: () => listMiners,
|
|
102
104
|
listSuites: () => listSuites,
|
|
@@ -110,13 +112,16 @@ __export(index_exports, {
|
|
|
110
112
|
reinstateAgentVersion: () => reinstateAgentVersion,
|
|
111
113
|
reinstateElimination: () => reinstateElimination,
|
|
112
114
|
requestChallenge: () => requestChallenge,
|
|
115
|
+
setDefaultInferenceProvider: () => setDefaultInferenceProvider,
|
|
113
116
|
setRaceSelection: () => setRaceSelection,
|
|
114
117
|
setTopAgent: () => setTopAgent,
|
|
115
118
|
storeChutesToken: () => storeChutesToken,
|
|
119
|
+
storeInferenceCredential: () => storeInferenceCredential,
|
|
116
120
|
submitAgent: () => submitAgent,
|
|
117
121
|
unbanMiner: () => unbanMiner,
|
|
118
122
|
unbanValidator: () => unbanValidator,
|
|
119
|
-
updateProgress: () => updateProgress
|
|
123
|
+
updateProgress: () => updateProgress,
|
|
124
|
+
updateValidator: () => updateValidator
|
|
120
125
|
});
|
|
121
126
|
module.exports = __toCommonJS(index_exports);
|
|
122
127
|
|
|
@@ -284,6 +289,30 @@ var submitAgent = (options) => {
|
|
|
284
289
|
url: "/v1/miner/submit"
|
|
285
290
|
});
|
|
286
291
|
};
|
|
292
|
+
var storeInferenceCredential = (options) => {
|
|
293
|
+
return (options?.client ?? client).post({
|
|
294
|
+
...options,
|
|
295
|
+
url: "/v1/miner/inference-auth/{provider}"
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
var getInferenceAuthStatusOne = (options) => {
|
|
299
|
+
return (options?.client ?? client).get({
|
|
300
|
+
...options,
|
|
301
|
+
url: "/v1/miner/inference-auth/{provider}"
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
var listInferenceAuth = (options) => {
|
|
305
|
+
return (options?.client ?? client).get({
|
|
306
|
+
...options,
|
|
307
|
+
url: "/v1/miner/inference-auth"
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
var setDefaultInferenceProvider = (options) => {
|
|
311
|
+
return (options?.client ?? client).patch({
|
|
312
|
+
...options,
|
|
313
|
+
url: "/v1/miner/inference-auth/default"
|
|
314
|
+
});
|
|
315
|
+
};
|
|
287
316
|
var storeChutesToken = (options) => {
|
|
288
317
|
return (options?.client ?? client).post({
|
|
289
318
|
...options,
|
|
@@ -386,6 +415,12 @@ var unbanValidator = (options) => {
|
|
|
386
415
|
url: "/v1/admin/validators/{validator_hotkey}/unban"
|
|
387
416
|
});
|
|
388
417
|
};
|
|
418
|
+
var updateValidator = (options) => {
|
|
419
|
+
return (options?.client ?? client).patch({
|
|
420
|
+
...options,
|
|
421
|
+
url: "/v1/admin/validators/{validator_hotkey}"
|
|
422
|
+
});
|
|
423
|
+
};
|
|
389
424
|
var discardAgentVersion = (options) => {
|
|
390
425
|
return (options?.client ?? client).post({
|
|
391
426
|
...options,
|
|
@@ -948,6 +983,7 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
948
983
|
getErrorCode,
|
|
949
984
|
getErrorDetail,
|
|
950
985
|
getEvaluationRun,
|
|
986
|
+
getInferenceAuthStatusOne,
|
|
951
987
|
getInferenceModels,
|
|
952
988
|
getLeaderboard,
|
|
953
989
|
getOwnedAgentVersionStatus,
|
|
@@ -977,6 +1013,7 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
977
1013
|
listAgentVersions,
|
|
978
1014
|
listAgentVersions1,
|
|
979
1015
|
listEvaluationRuns,
|
|
1016
|
+
listInferenceAuth,
|
|
980
1017
|
listMinerAgents,
|
|
981
1018
|
listMiners,
|
|
982
1019
|
listSuites,
|
|
@@ -990,11 +1027,14 @@ function configureSessionAuth(baseUrl, config) {
|
|
|
990
1027
|
reinstateAgentVersion,
|
|
991
1028
|
reinstateElimination,
|
|
992
1029
|
requestChallenge,
|
|
1030
|
+
setDefaultInferenceProvider,
|
|
993
1031
|
setRaceSelection,
|
|
994
1032
|
setTopAgent,
|
|
995
1033
|
storeChutesToken,
|
|
1034
|
+
storeInferenceCredential,
|
|
996
1035
|
submitAgent,
|
|
997
1036
|
unbanMiner,
|
|
998
1037
|
unbanValidator,
|
|
999
|
-
updateProgress
|
|
1038
|
+
updateProgress,
|
|
1039
|
+
updateValidator
|
|
1000
1040
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -162,6 +162,30 @@ var submitAgent = (options) => {
|
|
|
162
162
|
url: "/v1/miner/submit"
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
|
+
var storeInferenceCredential = (options) => {
|
|
166
|
+
return (options?.client ?? client).post({
|
|
167
|
+
...options,
|
|
168
|
+
url: "/v1/miner/inference-auth/{provider}"
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
var getInferenceAuthStatusOne = (options) => {
|
|
172
|
+
return (options?.client ?? client).get({
|
|
173
|
+
...options,
|
|
174
|
+
url: "/v1/miner/inference-auth/{provider}"
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
var listInferenceAuth = (options) => {
|
|
178
|
+
return (options?.client ?? client).get({
|
|
179
|
+
...options,
|
|
180
|
+
url: "/v1/miner/inference-auth"
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
var setDefaultInferenceProvider = (options) => {
|
|
184
|
+
return (options?.client ?? client).patch({
|
|
185
|
+
...options,
|
|
186
|
+
url: "/v1/miner/inference-auth/default"
|
|
187
|
+
});
|
|
188
|
+
};
|
|
165
189
|
var storeChutesToken = (options) => {
|
|
166
190
|
return (options?.client ?? client).post({
|
|
167
191
|
...options,
|
|
@@ -264,6 +288,12 @@ var unbanValidator = (options) => {
|
|
|
264
288
|
url: "/v1/admin/validators/{validator_hotkey}/unban"
|
|
265
289
|
});
|
|
266
290
|
};
|
|
291
|
+
var updateValidator = (options) => {
|
|
292
|
+
return (options?.client ?? client).patch({
|
|
293
|
+
...options,
|
|
294
|
+
url: "/v1/admin/validators/{validator_hotkey}"
|
|
295
|
+
});
|
|
296
|
+
};
|
|
267
297
|
var discardAgentVersion = (options) => {
|
|
268
298
|
return (options?.client ?? client).post({
|
|
269
299
|
...options,
|
|
@@ -825,6 +855,7 @@ export {
|
|
|
825
855
|
getErrorCode,
|
|
826
856
|
getErrorDetail,
|
|
827
857
|
getEvaluationRun,
|
|
858
|
+
getInferenceAuthStatusOne,
|
|
828
859
|
getInferenceModels,
|
|
829
860
|
getLeaderboard,
|
|
830
861
|
getOwnedAgentVersionStatus,
|
|
@@ -854,6 +885,7 @@ export {
|
|
|
854
885
|
listAgentVersions,
|
|
855
886
|
listAgentVersions1,
|
|
856
887
|
listEvaluationRuns,
|
|
888
|
+
listInferenceAuth,
|
|
857
889
|
listMinerAgents,
|
|
858
890
|
listMiners,
|
|
859
891
|
listSuites,
|
|
@@ -867,11 +899,14 @@ export {
|
|
|
867
899
|
reinstateAgentVersion,
|
|
868
900
|
reinstateElimination,
|
|
869
901
|
requestChallenge,
|
|
902
|
+
setDefaultInferenceProvider,
|
|
870
903
|
setRaceSelection,
|
|
871
904
|
setTopAgent,
|
|
872
905
|
storeChutesToken,
|
|
906
|
+
storeInferenceCredential,
|
|
873
907
|
submitAgent,
|
|
874
908
|
unbanMiner,
|
|
875
909
|
unbanValidator,
|
|
876
|
-
updateProgress
|
|
910
|
+
updateProgress,
|
|
911
|
+
updateValidator
|
|
877
912
|
};
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
|
|
4
|
-
import type { HealthCheckError, HealthCheckResponse, ListSuitesError, ListSuitesResponse, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, GetTopMinerPayoutError, GetTopMinerPayoutResponse, GetTopHistoryData, GetTopHistoryError, GetTopHistoryResponse, GetAgentVersionStatusData, GetAgentVersionStatusError, GetAgentVersionStatusResponse, GetAgentVersionRunsData, GetAgentVersionRunsError, GetAgentVersionRunsResponse, GetAgentVersionProblemsData, GetAgentVersionProblemsError, GetAgentVersionProblemsResponse, GetAgentVersionData, GetAgentVersionError, GetAgentVersionResponse, GetArtifactDownloadUrlData, GetArtifactDownloadUrlError, GetArtifactDownloadUrlResponse, GetEvaluationRunData, GetEvaluationRunError, GetEvaluationRunResponse, GetValidatorsError, GetValidatorsResponse, GetRunningEvaluationsError, GetRunningEvaluationsResponse, GetPendingEvaluationsData, GetPendingEvaluationsError, GetPendingEvaluationsResponse, GetCurrentRaceError, GetCurrentRaceResponse, GetRaceHistoryData, GetRaceHistoryError, GetRaceHistoryResponse, GetRaceDetailData, GetRaceDetailError, GetRaceDetailResponse, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, GetInferenceModelsError, GetInferenceModelsResponse, 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, SetRaceSelectionData, SetRaceSelectionError, SetRaceSelectionResponse, ClearRaceSelectionError, ClearRaceSelectionResponse, ClaimWorkData, ClaimWorkError, ClaimWorkResponse2, HeartbeatData, HeartbeatError, HeartbeatResponse2, UpdateProgressData, UpdateProgressError, UpdateProgressResponse, PresignUploadData, PresignUploadError, PresignUploadResponse2, CompleteRunData, CompleteRunError, CompleteRunResponse2, GetRunProblemsData, GetRunProblemsError, GetRunProblemsResponse, BanMinerData, BanMinerError, BanMinerResponse, UnbanMinerData, UnbanMinerError, UnbanMinerResponse, BanValidatorData, BanValidatorError, BanValidatorResponse, UnbanValidatorData, UnbanValidatorError, UnbanValidatorResponse, DiscardAgentVersionData, DiscardAgentVersionError, DiscardAgentVersionResponse, ReinstateAgentVersionData, ReinstateAgentVersionError, ReinstateAgentVersionResponse, EliminateAgentVersionData, EliminateAgentVersionError, EliminateAgentVersionResponse, ReinstateEliminationData, ReinstateEliminationError, ReinstateEliminationResponse2, SetTopAgentData, SetTopAgentError, SetTopAgentResponse, InvalidateEvaluationRunData, InvalidateEvaluationRunError, InvalidateEvaluationRunResponse, ReevaluateAgentVersionData, ReevaluateAgentVersionError, ReevaluateAgentVersionResponse, CancelAgentVersionData, CancelAgentVersionError, CancelAgentVersionResponse, CreateSuiteData, CreateSuiteError, CreateSuiteResponse2, ActivateSuiteData, ActivateSuiteError, ActivateSuiteResponse2, GetAuditEventsData, GetAuditEventsError, GetAuditEventsResponse, GetReaperStatsError, GetReaperStatsResponse, ClearMinerCooldownData, ClearMinerCooldownError, ClearMinerCooldownResponse, ListMinersData, ListMinersError, ListMinersResponse, ListValidatorsData, ListValidatorsError, ListValidatorsResponse, ListAgentVersions1Data, ListAgentVersions1Error, ListAgentVersions1Response, ListEvaluationRunsData, ListEvaluationRunsError, ListEvaluationRunsResponse, GetValidatorScoresData, GetValidatorScoresError, GetValidatorScoresResponse, GetAgentVersionVarianceData, GetAgentVersionVarianceError, GetAgentVersionVarianceResponse, GetAgentVersionCodeData, GetAgentVersionCodeError, GetAgentVersionCodeResponse, GetCurrentRacesError, GetCurrentRacesResponse, GetRaceDiagnosticsData, GetRaceDiagnosticsError, GetRaceDiagnosticsResponse, CloseQualifyingError, CloseQualifyingResponse2, GetValidatorResourceSamplesData, GetValidatorResourceSamplesError, GetValidatorResourceSamplesResponse, GetValidatorPauseError, GetValidatorPauseResponse, PostValidatorPauseData, PostValidatorPauseError, PostValidatorPauseResponse, PostValidatorResumeData, PostValidatorResumeError, PostValidatorResumeResponse } from './types.gen';
|
|
4
|
+
import type { HealthCheckError, HealthCheckResponse, ListSuitesError, ListSuitesResponse, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, GetTopMinerPayoutError, GetTopMinerPayoutResponse, GetTopHistoryData, GetTopHistoryError, GetTopHistoryResponse, GetAgentVersionStatusData, GetAgentVersionStatusError, GetAgentVersionStatusResponse, GetAgentVersionRunsData, GetAgentVersionRunsError, GetAgentVersionRunsResponse, GetAgentVersionProblemsData, GetAgentVersionProblemsError, GetAgentVersionProblemsResponse, GetAgentVersionData, GetAgentVersionError, GetAgentVersionResponse, GetArtifactDownloadUrlData, GetArtifactDownloadUrlError, GetArtifactDownloadUrlResponse, GetEvaluationRunData, GetEvaluationRunError, GetEvaluationRunResponse, GetValidatorsError, GetValidatorsResponse, GetRunningEvaluationsError, GetRunningEvaluationsResponse, GetPendingEvaluationsData, GetPendingEvaluationsError, GetPendingEvaluationsResponse, GetCurrentRaceError, GetCurrentRaceResponse, GetRaceHistoryData, GetRaceHistoryError, GetRaceHistoryResponse, GetRaceDetailData, GetRaceDetailError, GetRaceDetailResponse, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, GetInferenceModelsError, GetInferenceModelsResponse, RequestChallengeData, RequestChallengeError, RequestChallengeResponse, CreateSessionEndpointData, CreateSessionEndpointError, CreateSessionEndpointResponse, LogoutData, LogoutError, LogoutResponse2, SubmitAgentData, SubmitAgentError, SubmitAgentResponse2, StoreInferenceCredentialData, StoreInferenceCredentialError, StoreInferenceCredentialResponse, GetInferenceAuthStatusOneData, GetInferenceAuthStatusOneError, GetInferenceAuthStatusOneResponse, ListInferenceAuthError, ListInferenceAuthResponse, SetDefaultInferenceProviderData, SetDefaultInferenceProviderError, SetDefaultInferenceProviderResponse, StoreChutesTokenData, StoreChutesTokenError, StoreChutesTokenResponse, GetChutesAuthStatusError, GetChutesAuthStatusResponse, ListMinerAgentsError, ListMinerAgentsResponse, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsResponse, GetOwnedAgentVersionStatusData, GetOwnedAgentVersionStatusError, GetOwnedAgentVersionStatusResponse, SetRaceSelectionData, SetRaceSelectionError, SetRaceSelectionResponse, ClearRaceSelectionError, ClearRaceSelectionResponse, ClaimWorkData, ClaimWorkError, ClaimWorkResponse2, HeartbeatData, HeartbeatError, HeartbeatResponse2, UpdateProgressData, UpdateProgressError, UpdateProgressResponse, PresignUploadData, PresignUploadError, PresignUploadResponse2, CompleteRunData, CompleteRunError, CompleteRunResponse2, GetRunProblemsData, GetRunProblemsError, GetRunProblemsResponse, BanMinerData, BanMinerError, BanMinerResponse, UnbanMinerData, UnbanMinerError, UnbanMinerResponse, BanValidatorData, BanValidatorError, BanValidatorResponse, UnbanValidatorData, UnbanValidatorError, UnbanValidatorResponse, UpdateValidatorData, UpdateValidatorError, UpdateValidatorResponse, DiscardAgentVersionData, DiscardAgentVersionError, DiscardAgentVersionResponse, ReinstateAgentVersionData, ReinstateAgentVersionError, ReinstateAgentVersionResponse, EliminateAgentVersionData, EliminateAgentVersionError, EliminateAgentVersionResponse, ReinstateEliminationData, ReinstateEliminationError, ReinstateEliminationResponse2, SetTopAgentData, SetTopAgentError, SetTopAgentResponse, InvalidateEvaluationRunData, InvalidateEvaluationRunError, InvalidateEvaluationRunResponse, ReevaluateAgentVersionData, ReevaluateAgentVersionError, ReevaluateAgentVersionResponse, CancelAgentVersionData, CancelAgentVersionError, CancelAgentVersionResponse, CreateSuiteData, CreateSuiteError, CreateSuiteResponse2, ActivateSuiteData, ActivateSuiteError, ActivateSuiteResponse2, GetAuditEventsData, GetAuditEventsError, GetAuditEventsResponse, GetReaperStatsError, GetReaperStatsResponse, ClearMinerCooldownData, ClearMinerCooldownError, ClearMinerCooldownResponse, ListMinersData, ListMinersError, ListMinersResponse, ListValidatorsData, ListValidatorsError, ListValidatorsResponse, ListAgentVersions1Data, ListAgentVersions1Error, ListAgentVersions1Response, ListEvaluationRunsData, ListEvaluationRunsError, ListEvaluationRunsResponse, GetValidatorScoresData, GetValidatorScoresError, GetValidatorScoresResponse, GetAgentVersionVarianceData, GetAgentVersionVarianceError, GetAgentVersionVarianceResponse, GetAgentVersionCodeData, GetAgentVersionCodeError, GetAgentVersionCodeResponse, GetCurrentRacesError, GetCurrentRacesResponse, GetRaceDiagnosticsData, GetRaceDiagnosticsError, GetRaceDiagnosticsResponse, CloseQualifyingError, CloseQualifyingResponse2, GetValidatorResourceSamplesData, GetValidatorResourceSamplesError, GetValidatorResourceSamplesResponse, GetValidatorPauseError, GetValidatorPauseResponse, PostValidatorPauseData, PostValidatorPauseError, PostValidatorPauseResponse, PostValidatorResumeData, PostValidatorResumeError, PostValidatorResumeResponse } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -307,8 +307,59 @@ export const submitAgent = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
307
307
|
};
|
|
308
308
|
|
|
309
309
|
/**
|
|
310
|
-
* Store
|
|
311
|
-
* Store (or overwrite) the miner's
|
|
310
|
+
* Store an inference-provider credential
|
|
311
|
+
* Store (or overwrite) the miner's credential for the given provider.
|
|
312
|
+
*
|
|
313
|
+
* Validates the credential before persisting so bad input fails here rather
|
|
314
|
+
* than at first claim_work. The first stored provider becomes the miner's
|
|
315
|
+
* default; switching default afterward goes through the dedicated PATCH
|
|
316
|
+
* endpoint.
|
|
317
|
+
*/
|
|
318
|
+
export const storeInferenceCredential = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreInferenceCredentialData, ThrowOnError>) => {
|
|
319
|
+
return (options?.client ?? client).post<StoreInferenceCredentialResponse, StoreInferenceCredentialError, ThrowOnError>({
|
|
320
|
+
...options,
|
|
321
|
+
url: '/v1/miner/inference-auth/{provider}'
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Check inference auth status for a single provider
|
|
327
|
+
* Check whether the miner has a stored credential for the given provider.
|
|
328
|
+
*/
|
|
329
|
+
export const getInferenceAuthStatusOne = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInferenceAuthStatusOneData, ThrowOnError>) => {
|
|
330
|
+
return (options?.client ?? client).get<GetInferenceAuthStatusOneResponse, GetInferenceAuthStatusOneError, ThrowOnError>({
|
|
331
|
+
...options,
|
|
332
|
+
url: '/v1/miner/inference-auth/{provider}'
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* List all inference-auth providers the miner has connected
|
|
338
|
+
* List every provider the authenticated miner currently has a credential for.
|
|
339
|
+
*/
|
|
340
|
+
export const listInferenceAuth = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
341
|
+
return (options?.client ?? client).get<ListInferenceAuthResponse, ListInferenceAuthError, ThrowOnError>({
|
|
342
|
+
...options,
|
|
343
|
+
url: '/v1/miner/inference-auth'
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Set the miner's default inference provider
|
|
349
|
+
* Set which provider claim_work should mint a token from for this miner.
|
|
350
|
+
*/
|
|
351
|
+
export const setDefaultInferenceProvider = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetDefaultInferenceProviderData, ThrowOnError>) => {
|
|
352
|
+
return (options?.client ?? client).patch<SetDefaultInferenceProviderResponse, SetDefaultInferenceProviderError, ThrowOnError>({
|
|
353
|
+
...options,
|
|
354
|
+
url: '/v1/miner/inference-auth/default'
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @deprecated
|
|
360
|
+
* Store Chutes OAuth refresh token (legacy — use /inference-auth/chutes)
|
|
361
|
+
* Back-compat shim. Routes through the new inference-auth path so older
|
|
362
|
+
* Frontend builds keep populating the new table during the deploy window.
|
|
312
363
|
*/
|
|
313
364
|
export const storeChutesToken = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => {
|
|
314
365
|
return (options?.client ?? client).post<StoreChutesTokenResponse, StoreChutesTokenError, ThrowOnError>({
|
|
@@ -318,8 +369,9 @@ export const storeChutesToken = <ThrowOnError extends boolean = false>(options:
|
|
|
318
369
|
};
|
|
319
370
|
|
|
320
371
|
/**
|
|
321
|
-
*
|
|
322
|
-
* Check
|
|
372
|
+
* @deprecated
|
|
373
|
+
* Check Chutes auth status (legacy — use /inference-auth/chutes)
|
|
374
|
+
* Back-compat shim. Reads from the new MinerInferenceAuth table.
|
|
323
375
|
*/
|
|
324
376
|
export const getChutesAuthStatus = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
325
377
|
return (options?.client ?? client).get<GetChutesAuthStatusResponse, GetChutesAuthStatusError, ThrowOnError>({
|
|
@@ -496,6 +548,17 @@ export const unbanValidator = <ThrowOnError extends boolean = false>(options: Op
|
|
|
496
548
|
});
|
|
497
549
|
};
|
|
498
550
|
|
|
551
|
+
/**
|
|
552
|
+
* Update validator configuration
|
|
553
|
+
* Update validator configuration. Currently supports `max_concurrent_runs`.
|
|
554
|
+
*/
|
|
555
|
+
export const updateValidator = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateValidatorData, ThrowOnError>) => {
|
|
556
|
+
return (options?.client ?? client).patch<UpdateValidatorResponse, UpdateValidatorError, ThrowOnError>({
|
|
557
|
+
...options,
|
|
558
|
+
url: '/v1/admin/validators/{validator_hotkey}'
|
|
559
|
+
});
|
|
560
|
+
};
|
|
561
|
+
|
|
499
562
|
/**
|
|
500
563
|
* Discard an agent version from leaderboard
|
|
501
564
|
* Discard an agent version from the leaderboard (reversible tombstone).
|
|
@@ -347,6 +347,10 @@ export type AdminValidatorEntry = {
|
|
|
347
347
|
* When the validator was banned
|
|
348
348
|
*/
|
|
349
349
|
banned_at?: (string | null);
|
|
350
|
+
/**
|
|
351
|
+
* Maximum concurrent evaluation runs for this hotkey
|
|
352
|
+
*/
|
|
353
|
+
max_concurrent_runs: number;
|
|
350
354
|
};
|
|
351
355
|
|
|
352
356
|
export type AdminValidatorsResponse = {
|
|
@@ -1499,6 +1503,29 @@ export type HTTPValidationError = {
|
|
|
1499
1503
|
detail?: Array<ValidationError>;
|
|
1500
1504
|
};
|
|
1501
1505
|
|
|
1506
|
+
/**
|
|
1507
|
+
* Response body for ``GET /v1/miner/inference-auth``.
|
|
1508
|
+
*/
|
|
1509
|
+
export type InferenceAuthListResponse = {
|
|
1510
|
+
providers: Array<InferenceAuthStatusResponse>;
|
|
1511
|
+
/**
|
|
1512
|
+
* Which provider claim_work mints a token from. Null = single-provider auto-pick.
|
|
1513
|
+
*/
|
|
1514
|
+
default_provider?: (string | null);
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* Response body for ``GET /v1/miner/inference-auth/{provider}``.
|
|
1519
|
+
*/
|
|
1520
|
+
export type InferenceAuthStatusResponse = {
|
|
1521
|
+
connected: boolean;
|
|
1522
|
+
provider: string;
|
|
1523
|
+
/**
|
|
1524
|
+
* When the credential for this provider was last updated.
|
|
1525
|
+
*/
|
|
1526
|
+
updated_at?: (string | null);
|
|
1527
|
+
};
|
|
1528
|
+
|
|
1502
1529
|
/**
|
|
1503
1530
|
* List of models available to ORO agents via the inference proxy.
|
|
1504
1531
|
*/
|
|
@@ -2535,6 +2562,13 @@ export type SessionResponse = {
|
|
|
2535
2562
|
role: string;
|
|
2536
2563
|
};
|
|
2537
2564
|
|
|
2565
|
+
/**
|
|
2566
|
+
* Request body for ``PATCH /v1/miner/inference-auth/default``.
|
|
2567
|
+
*/
|
|
2568
|
+
export type SetDefaultProviderRequest = {
|
|
2569
|
+
provider: string;
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2538
2572
|
export type SetTopRequest = {
|
|
2539
2573
|
/**
|
|
2540
2574
|
* Specific suite to set top agent for
|
|
@@ -2572,6 +2606,16 @@ export type StoreChutesTokenRequest = {
|
|
|
2572
2606
|
refresh_token: string;
|
|
2573
2607
|
};
|
|
2574
2608
|
|
|
2609
|
+
/**
|
|
2610
|
+
* Request body for ``POST /v1/miner/inference-auth/{provider}``.
|
|
2611
|
+
*/
|
|
2612
|
+
export type StoreInferenceCredentialRequest = {
|
|
2613
|
+
/**
|
|
2614
|
+
* Provider-specific credential (refresh token, API key, etc.)
|
|
2615
|
+
*/
|
|
2616
|
+
credential: string;
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2575
2619
|
export type SubmitAgentResponse = {
|
|
2576
2620
|
/**
|
|
2577
2621
|
* Unique identifier for the created agent
|
|
@@ -2760,6 +2804,13 @@ export type TopMinerPayoutResponse = {
|
|
|
2760
2804
|
as_of: string;
|
|
2761
2805
|
};
|
|
2762
2806
|
|
|
2807
|
+
export type UpdateValidatorRequest = {
|
|
2808
|
+
/**
|
|
2809
|
+
* Maximum concurrent evaluation runs (must be >= 1)
|
|
2810
|
+
*/
|
|
2811
|
+
max_concurrent_runs: number;
|
|
2812
|
+
};
|
|
2813
|
+
|
|
2763
2814
|
export type ValidationError = {
|
|
2764
2815
|
loc: Array<(string | number)>;
|
|
2765
2816
|
msg: string;
|
|
@@ -3403,12 +3454,49 @@ export type SubmitAgentResponse2 = (SubmitAgentResponse);
|
|
|
3403
3454
|
|
|
3404
3455
|
export type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
|
|
3405
3456
|
|
|
3457
|
+
export type StoreInferenceCredentialData = {
|
|
3458
|
+
body: StoreInferenceCredentialRequest;
|
|
3459
|
+
path: {
|
|
3460
|
+
provider: string;
|
|
3461
|
+
};
|
|
3462
|
+
};
|
|
3463
|
+
|
|
3464
|
+
export type StoreInferenceCredentialResponse = ({
|
|
3465
|
+
[key: string]: (boolean);
|
|
3466
|
+
});
|
|
3467
|
+
|
|
3468
|
+
export type StoreInferenceCredentialError = (HTTPValidationError);
|
|
3469
|
+
|
|
3470
|
+
export type GetInferenceAuthStatusOneData = {
|
|
3471
|
+
path: {
|
|
3472
|
+
provider: string;
|
|
3473
|
+
};
|
|
3474
|
+
};
|
|
3475
|
+
|
|
3476
|
+
export type GetInferenceAuthStatusOneResponse = (InferenceAuthStatusResponse);
|
|
3477
|
+
|
|
3478
|
+
export type GetInferenceAuthStatusOneError = (HTTPValidationError);
|
|
3479
|
+
|
|
3480
|
+
export type ListInferenceAuthResponse = (InferenceAuthListResponse);
|
|
3481
|
+
|
|
3482
|
+
export type ListInferenceAuthError = unknown;
|
|
3483
|
+
|
|
3484
|
+
export type SetDefaultInferenceProviderData = {
|
|
3485
|
+
body: SetDefaultProviderRequest;
|
|
3486
|
+
};
|
|
3487
|
+
|
|
3488
|
+
export type SetDefaultInferenceProviderResponse = ({
|
|
3489
|
+
[key: string]: (string | null);
|
|
3490
|
+
});
|
|
3491
|
+
|
|
3492
|
+
export type SetDefaultInferenceProviderError = (HTTPValidationError);
|
|
3493
|
+
|
|
3406
3494
|
export type StoreChutesTokenData = {
|
|
3407
3495
|
body: StoreChutesTokenRequest;
|
|
3408
3496
|
};
|
|
3409
3497
|
|
|
3410
3498
|
export type StoreChutesTokenResponse = ({
|
|
3411
|
-
[key: string]:
|
|
3499
|
+
[key: string]: (boolean);
|
|
3412
3500
|
});
|
|
3413
3501
|
|
|
3414
3502
|
export type StoreChutesTokenError = (HTTPValidationError);
|
|
@@ -3584,6 +3672,20 @@ export type UnbanValidatorResponse = (BanResponse);
|
|
|
3584
3672
|
|
|
3585
3673
|
export type UnbanValidatorError = (ValidatorNotFoundError | HTTPValidationError);
|
|
3586
3674
|
|
|
3675
|
+
export type UpdateValidatorData = {
|
|
3676
|
+
body: UpdateValidatorRequest;
|
|
3677
|
+
path: {
|
|
3678
|
+
/**
|
|
3679
|
+
* Validator hotkey to update
|
|
3680
|
+
*/
|
|
3681
|
+
validator_hotkey: string;
|
|
3682
|
+
};
|
|
3683
|
+
};
|
|
3684
|
+
|
|
3685
|
+
export type UpdateValidatorResponse = (AdminValidatorEntry);
|
|
3686
|
+
|
|
3687
|
+
export type UpdateValidatorError = (ValidatorNotFoundError | HTTPValidationError);
|
|
3688
|
+
|
|
3587
3689
|
export type DiscardAgentVersionData = {
|
|
3588
3690
|
body: DiscardRequest;
|
|
3589
3691
|
path: {
|