@oro-ai/sdk 1.0.58 → 1.0.59

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 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,23 @@ 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
+ /**
1448
+ * Response body for ``GET /v1/miner/inference-auth/{provider}``.
1449
+ */
1450
+ type InferenceAuthStatusResponse = {
1451
+ connected: boolean;
1452
+ provider: string;
1453
+ /**
1454
+ * When the credential for this provider was last updated.
1455
+ */
1456
+ updated_at?: (string | null);
1457
+ };
1437
1458
  /**
1438
1459
  * List of models available to ORO agents via the inference proxy.
1439
1460
  */
@@ -2449,6 +2470,15 @@ type StoreChutesTokenRequest = {
2449
2470
  */
2450
2471
  refresh_token: string;
2451
2472
  };
2473
+ /**
2474
+ * Request body for ``POST /v1/miner/inference-auth/{provider}``.
2475
+ */
2476
+ type StoreInferenceCredentialRequest = {
2477
+ /**
2478
+ * Provider-specific credential (refresh token, API key, etc.)
2479
+ */
2480
+ credential: string;
2481
+ };
2452
2482
  type SubmitAgentResponse = {
2453
2483
  /**
2454
2484
  * Unique identifier for the created agent
@@ -2628,6 +2658,12 @@ type TopMinerPayoutResponse = {
2628
2658
  */
2629
2659
  as_of: string;
2630
2660
  };
2661
+ type UpdateValidatorRequest = {
2662
+ /**
2663
+ * Maximum concurrent evaluation runs (must be >= 1)
2664
+ */
2665
+ max_concurrent_runs: number;
2666
+ };
2631
2667
  type ValidationError = {
2632
2668
  loc: Array<(string | number)>;
2633
2669
  msg: string;
@@ -3185,11 +3221,30 @@ type SubmitAgentData = {
3185
3221
  };
3186
3222
  type SubmitAgentResponse2 = (SubmitAgentResponse);
3187
3223
  type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
3224
+ type StoreInferenceCredentialData = {
3225
+ body: StoreInferenceCredentialRequest;
3226
+ path: {
3227
+ provider: string;
3228
+ };
3229
+ };
3230
+ type StoreInferenceCredentialResponse = ({
3231
+ [key: string]: (boolean);
3232
+ });
3233
+ type StoreInferenceCredentialError = (HTTPValidationError);
3234
+ type GetInferenceAuthStatusOneData = {
3235
+ path: {
3236
+ provider: string;
3237
+ };
3238
+ };
3239
+ type GetInferenceAuthStatusOneResponse = (InferenceAuthStatusResponse);
3240
+ type GetInferenceAuthStatusOneError = (HTTPValidationError);
3241
+ type ListInferenceAuthResponse = (InferenceAuthListResponse);
3242
+ type ListInferenceAuthError = unknown;
3188
3243
  type StoreChutesTokenData = {
3189
3244
  body: StoreChutesTokenRequest;
3190
3245
  };
3191
3246
  type StoreChutesTokenResponse = ({
3192
- [key: string]: unknown;
3247
+ [key: string]: (boolean);
3193
3248
  });
3194
3249
  type StoreChutesTokenError = (HTTPValidationError);
3195
3250
  type GetChutesAuthStatusResponse = (ChutesAuthStatusResponse);
@@ -3318,6 +3373,17 @@ type UnbanValidatorData = {
3318
3373
  };
3319
3374
  type UnbanValidatorResponse = (BanResponse);
3320
3375
  type UnbanValidatorError = (ValidatorNotFoundError | HTTPValidationError);
3376
+ type UpdateValidatorData = {
3377
+ body: UpdateValidatorRequest;
3378
+ path: {
3379
+ /**
3380
+ * Validator hotkey to update
3381
+ */
3382
+ validator_hotkey: string;
3383
+ };
3384
+ };
3385
+ type UpdateValidatorResponse = (AdminValidatorEntry);
3386
+ type UpdateValidatorError = (ValidatorNotFoundError | HTTPValidationError);
3321
3387
  type DiscardAgentVersionData = {
3322
3388
  body: DiscardRequest;
3323
3389
  path: {
@@ -3852,13 +3918,31 @@ declare const logout: <ThrowOnError extends boolean = false>(options?: OptionsLe
3852
3918
  */
3853
3919
  declare const submitAgent: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SubmitAgentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SubmitAgentResponse, SubmitAgentError, ThrowOnError>;
3854
3920
  /**
3855
- * Store Chutes OAuth refresh token
3856
- * Store (or overwrite) the miner's Chutes refresh token.
3921
+ * Store an inference-provider credential
3922
+ * Store (or overwrite) the miner's credential for the given provider.
3923
+ */
3924
+ declare const storeInferenceCredential: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreInferenceCredentialData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreInferenceCredentialResponse, HTTPValidationError, ThrowOnError>;
3925
+ /**
3926
+ * Check inference auth status for a single provider
3927
+ * Check whether the miner has a stored credential for the given provider.
3928
+ */
3929
+ declare const getInferenceAuthStatusOne: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInferenceAuthStatusOneData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InferenceAuthStatusResponse, HTTPValidationError, ThrowOnError>;
3930
+ /**
3931
+ * List all inference-auth providers the miner has connected
3932
+ * List every provider the authenticated miner currently has a credential for.
3933
+ */
3934
+ declare const listInferenceAuth: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InferenceAuthListResponse, unknown, ThrowOnError>;
3935
+ /**
3936
+ * @deprecated
3937
+ * Store Chutes OAuth refresh token (legacy — use /inference-auth/chutes)
3938
+ * Back-compat shim. Routes through the new inference-auth path so older
3939
+ * Frontend builds keep populating the new table during the deploy window.
3857
3940
  */
3858
3941
  declare const storeChutesToken: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreChutesTokenResponse, HTTPValidationError, ThrowOnError>;
3859
3942
  /**
3860
- * Check Chutes auth status
3861
- * Check whether the authenticated miner has a stored Chutes token.
3943
+ * @deprecated
3944
+ * Check Chutes auth status (legacy use /inference-auth/chutes)
3945
+ * Back-compat shim. Reads from the new MinerInferenceAuth table.
3862
3946
  */
3863
3947
  declare const getChutesAuthStatus: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ChutesAuthStatusResponse, unknown, ThrowOnError>;
3864
3948
  /**
@@ -3939,6 +4023,11 @@ declare const banValidator: <ThrowOnError extends boolean = false>(options: Opti
3939
4023
  * Unban a validator, allowing them to claim work again.
3940
4024
  */
3941
4025
  declare const unbanValidator: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UnbanValidatorData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BanResponse, UnbanValidatorError, ThrowOnError>;
4026
+ /**
4027
+ * Update validator configuration
4028
+ * Update validator configuration. Currently supports `max_concurrent_runs`.
4029
+ */
4030
+ declare const updateValidator: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateValidatorData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AdminValidatorEntry, UpdateValidatorError, ThrowOnError>;
3942
4031
  /**
3943
4032
  * Discard an agent version from leaderboard
3944
4033
  * Discard an agent version from the leaderboard (reversible tombstone).
@@ -4470,4 +4559,4 @@ declare class SessionAuthManager {
4470
4559
  */
4471
4560
  declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
4472
4561
 
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 };
4562
+ 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 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, 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,23 @@ 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
+ /**
1448
+ * Response body for ``GET /v1/miner/inference-auth/{provider}``.
1449
+ */
1450
+ type InferenceAuthStatusResponse = {
1451
+ connected: boolean;
1452
+ provider: string;
1453
+ /**
1454
+ * When the credential for this provider was last updated.
1455
+ */
1456
+ updated_at?: (string | null);
1457
+ };
1437
1458
  /**
1438
1459
  * List of models available to ORO agents via the inference proxy.
1439
1460
  */
@@ -2449,6 +2470,15 @@ type StoreChutesTokenRequest = {
2449
2470
  */
2450
2471
  refresh_token: string;
2451
2472
  };
2473
+ /**
2474
+ * Request body for ``POST /v1/miner/inference-auth/{provider}``.
2475
+ */
2476
+ type StoreInferenceCredentialRequest = {
2477
+ /**
2478
+ * Provider-specific credential (refresh token, API key, etc.)
2479
+ */
2480
+ credential: string;
2481
+ };
2452
2482
  type SubmitAgentResponse = {
2453
2483
  /**
2454
2484
  * Unique identifier for the created agent
@@ -2628,6 +2658,12 @@ type TopMinerPayoutResponse = {
2628
2658
  */
2629
2659
  as_of: string;
2630
2660
  };
2661
+ type UpdateValidatorRequest = {
2662
+ /**
2663
+ * Maximum concurrent evaluation runs (must be >= 1)
2664
+ */
2665
+ max_concurrent_runs: number;
2666
+ };
2631
2667
  type ValidationError = {
2632
2668
  loc: Array<(string | number)>;
2633
2669
  msg: string;
@@ -3185,11 +3221,30 @@ type SubmitAgentData = {
3185
3221
  };
3186
3222
  type SubmitAgentResponse2 = (SubmitAgentResponse);
3187
3223
  type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
3224
+ type StoreInferenceCredentialData = {
3225
+ body: StoreInferenceCredentialRequest;
3226
+ path: {
3227
+ provider: string;
3228
+ };
3229
+ };
3230
+ type StoreInferenceCredentialResponse = ({
3231
+ [key: string]: (boolean);
3232
+ });
3233
+ type StoreInferenceCredentialError = (HTTPValidationError);
3234
+ type GetInferenceAuthStatusOneData = {
3235
+ path: {
3236
+ provider: string;
3237
+ };
3238
+ };
3239
+ type GetInferenceAuthStatusOneResponse = (InferenceAuthStatusResponse);
3240
+ type GetInferenceAuthStatusOneError = (HTTPValidationError);
3241
+ type ListInferenceAuthResponse = (InferenceAuthListResponse);
3242
+ type ListInferenceAuthError = unknown;
3188
3243
  type StoreChutesTokenData = {
3189
3244
  body: StoreChutesTokenRequest;
3190
3245
  };
3191
3246
  type StoreChutesTokenResponse = ({
3192
- [key: string]: unknown;
3247
+ [key: string]: (boolean);
3193
3248
  });
3194
3249
  type StoreChutesTokenError = (HTTPValidationError);
3195
3250
  type GetChutesAuthStatusResponse = (ChutesAuthStatusResponse);
@@ -3318,6 +3373,17 @@ type UnbanValidatorData = {
3318
3373
  };
3319
3374
  type UnbanValidatorResponse = (BanResponse);
3320
3375
  type UnbanValidatorError = (ValidatorNotFoundError | HTTPValidationError);
3376
+ type UpdateValidatorData = {
3377
+ body: UpdateValidatorRequest;
3378
+ path: {
3379
+ /**
3380
+ * Validator hotkey to update
3381
+ */
3382
+ validator_hotkey: string;
3383
+ };
3384
+ };
3385
+ type UpdateValidatorResponse = (AdminValidatorEntry);
3386
+ type UpdateValidatorError = (ValidatorNotFoundError | HTTPValidationError);
3321
3387
  type DiscardAgentVersionData = {
3322
3388
  body: DiscardRequest;
3323
3389
  path: {
@@ -3852,13 +3918,31 @@ declare const logout: <ThrowOnError extends boolean = false>(options?: OptionsLe
3852
3918
  */
3853
3919
  declare const submitAgent: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SubmitAgentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SubmitAgentResponse, SubmitAgentError, ThrowOnError>;
3854
3920
  /**
3855
- * Store Chutes OAuth refresh token
3856
- * Store (or overwrite) the miner's Chutes refresh token.
3921
+ * Store an inference-provider credential
3922
+ * Store (or overwrite) the miner's credential for the given provider.
3923
+ */
3924
+ declare const storeInferenceCredential: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreInferenceCredentialData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreInferenceCredentialResponse, HTTPValidationError, ThrowOnError>;
3925
+ /**
3926
+ * Check inference auth status for a single provider
3927
+ * Check whether the miner has a stored credential for the given provider.
3928
+ */
3929
+ declare const getInferenceAuthStatusOne: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInferenceAuthStatusOneData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InferenceAuthStatusResponse, HTTPValidationError, ThrowOnError>;
3930
+ /**
3931
+ * List all inference-auth providers the miner has connected
3932
+ * List every provider the authenticated miner currently has a credential for.
3933
+ */
3934
+ declare const listInferenceAuth: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<InferenceAuthListResponse, unknown, ThrowOnError>;
3935
+ /**
3936
+ * @deprecated
3937
+ * Store Chutes OAuth refresh token (legacy — use /inference-auth/chutes)
3938
+ * Back-compat shim. Routes through the new inference-auth path so older
3939
+ * Frontend builds keep populating the new table during the deploy window.
3857
3940
  */
3858
3941
  declare const storeChutesToken: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreChutesTokenResponse, HTTPValidationError, ThrowOnError>;
3859
3942
  /**
3860
- * Check Chutes auth status
3861
- * Check whether the authenticated miner has a stored Chutes token.
3943
+ * @deprecated
3944
+ * Check Chutes auth status (legacy use /inference-auth/chutes)
3945
+ * Back-compat shim. Reads from the new MinerInferenceAuth table.
3862
3946
  */
3863
3947
  declare const getChutesAuthStatus: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ChutesAuthStatusResponse, unknown, ThrowOnError>;
3864
3948
  /**
@@ -3939,6 +4023,11 @@ declare const banValidator: <ThrowOnError extends boolean = false>(options: Opti
3939
4023
  * Unban a validator, allowing them to claim work again.
3940
4024
  */
3941
4025
  declare const unbanValidator: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UnbanValidatorData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BanResponse, UnbanValidatorError, ThrowOnError>;
4026
+ /**
4027
+ * Update validator configuration
4028
+ * Update validator configuration. Currently supports `max_concurrent_runs`.
4029
+ */
4030
+ declare const updateValidator: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateValidatorData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AdminValidatorEntry, UpdateValidatorError, ThrowOnError>;
3942
4031
  /**
3943
4032
  * Discard an agent version from leaderboard
3944
4033
  * Discard an agent version from the leaderboard (reversible tombstone).
@@ -4470,4 +4559,4 @@ declare class SessionAuthManager {
4470
4559
  */
4471
4560
  declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
4472
4561
 
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 };
4562
+ 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 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, 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,
@@ -113,10 +115,12 @@ __export(index_exports, {
113
115
  setRaceSelection: () => setRaceSelection,
114
116
  setTopAgent: () => setTopAgent,
115
117
  storeChutesToken: () => storeChutesToken,
118
+ storeInferenceCredential: () => storeInferenceCredential,
116
119
  submitAgent: () => submitAgent,
117
120
  unbanMiner: () => unbanMiner,
118
121
  unbanValidator: () => unbanValidator,
119
- updateProgress: () => updateProgress
122
+ updateProgress: () => updateProgress,
123
+ updateValidator: () => updateValidator
120
124
  });
121
125
  module.exports = __toCommonJS(index_exports);
122
126
 
@@ -284,6 +288,24 @@ var submitAgent = (options) => {
284
288
  url: "/v1/miner/submit"
285
289
  });
286
290
  };
291
+ var storeInferenceCredential = (options) => {
292
+ return (options?.client ?? client).post({
293
+ ...options,
294
+ url: "/v1/miner/inference-auth/{provider}"
295
+ });
296
+ };
297
+ var getInferenceAuthStatusOne = (options) => {
298
+ return (options?.client ?? client).get({
299
+ ...options,
300
+ url: "/v1/miner/inference-auth/{provider}"
301
+ });
302
+ };
303
+ var listInferenceAuth = (options) => {
304
+ return (options?.client ?? client).get({
305
+ ...options,
306
+ url: "/v1/miner/inference-auth"
307
+ });
308
+ };
287
309
  var storeChutesToken = (options) => {
288
310
  return (options?.client ?? client).post({
289
311
  ...options,
@@ -386,6 +408,12 @@ var unbanValidator = (options) => {
386
408
  url: "/v1/admin/validators/{validator_hotkey}/unban"
387
409
  });
388
410
  };
411
+ var updateValidator = (options) => {
412
+ return (options?.client ?? client).patch({
413
+ ...options,
414
+ url: "/v1/admin/validators/{validator_hotkey}"
415
+ });
416
+ };
389
417
  var discardAgentVersion = (options) => {
390
418
  return (options?.client ?? client).post({
391
419
  ...options,
@@ -948,6 +976,7 @@ function configureSessionAuth(baseUrl, config) {
948
976
  getErrorCode,
949
977
  getErrorDetail,
950
978
  getEvaluationRun,
979
+ getInferenceAuthStatusOne,
951
980
  getInferenceModels,
952
981
  getLeaderboard,
953
982
  getOwnedAgentVersionStatus,
@@ -977,6 +1006,7 @@ function configureSessionAuth(baseUrl, config) {
977
1006
  listAgentVersions,
978
1007
  listAgentVersions1,
979
1008
  listEvaluationRuns,
1009
+ listInferenceAuth,
980
1010
  listMinerAgents,
981
1011
  listMiners,
982
1012
  listSuites,
@@ -993,8 +1023,10 @@ function configureSessionAuth(baseUrl, config) {
993
1023
  setRaceSelection,
994
1024
  setTopAgent,
995
1025
  storeChutesToken,
1026
+ storeInferenceCredential,
996
1027
  submitAgent,
997
1028
  unbanMiner,
998
1029
  unbanValidator,
999
- updateProgress
1030
+ updateProgress,
1031
+ updateValidator
1000
1032
  });
package/dist/index.mjs CHANGED
@@ -162,6 +162,24 @@ 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
+ };
165
183
  var storeChutesToken = (options) => {
166
184
  return (options?.client ?? client).post({
167
185
  ...options,
@@ -264,6 +282,12 @@ var unbanValidator = (options) => {
264
282
  url: "/v1/admin/validators/{validator_hotkey}/unban"
265
283
  });
266
284
  };
285
+ var updateValidator = (options) => {
286
+ return (options?.client ?? client).patch({
287
+ ...options,
288
+ url: "/v1/admin/validators/{validator_hotkey}"
289
+ });
290
+ };
267
291
  var discardAgentVersion = (options) => {
268
292
  return (options?.client ?? client).post({
269
293
  ...options,
@@ -825,6 +849,7 @@ export {
825
849
  getErrorCode,
826
850
  getErrorDetail,
827
851
  getEvaluationRun,
852
+ getInferenceAuthStatusOne,
828
853
  getInferenceModels,
829
854
  getLeaderboard,
830
855
  getOwnedAgentVersionStatus,
@@ -854,6 +879,7 @@ export {
854
879
  listAgentVersions,
855
880
  listAgentVersions1,
856
881
  listEvaluationRuns,
882
+ listInferenceAuth,
857
883
  listMinerAgents,
858
884
  listMiners,
859
885
  listSuites,
@@ -870,8 +896,10 @@ export {
870
896
  setRaceSelection,
871
897
  setTopAgent,
872
898
  storeChutesToken,
899
+ storeInferenceCredential,
873
900
  submitAgent,
874
901
  unbanMiner,
875
902
  unbanValidator,
876
- updateProgress
903
+ updateProgress,
904
+ updateValidator
877
905
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oro-ai/sdk",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Official TypeScript SDK for the ORO Bittensor Subnet API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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, 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,43 @@ export const submitAgent = <ThrowOnError extends boolean = false>(options: Optio
307
307
  };
308
308
 
309
309
  /**
310
- * Store Chutes OAuth refresh token
311
- * Store (or overwrite) the miner's Chutes refresh token.
310
+ * Store an inference-provider credential
311
+ * Store (or overwrite) the miner's credential for the given provider.
312
+ */
313
+ export const storeInferenceCredential = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreInferenceCredentialData, ThrowOnError>) => {
314
+ return (options?.client ?? client).post<StoreInferenceCredentialResponse, StoreInferenceCredentialError, ThrowOnError>({
315
+ ...options,
316
+ url: '/v1/miner/inference-auth/{provider}'
317
+ });
318
+ };
319
+
320
+ /**
321
+ * Check inference auth status for a single provider
322
+ * Check whether the miner has a stored credential for the given provider.
323
+ */
324
+ export const getInferenceAuthStatusOne = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInferenceAuthStatusOneData, ThrowOnError>) => {
325
+ return (options?.client ?? client).get<GetInferenceAuthStatusOneResponse, GetInferenceAuthStatusOneError, ThrowOnError>({
326
+ ...options,
327
+ url: '/v1/miner/inference-auth/{provider}'
328
+ });
329
+ };
330
+
331
+ /**
332
+ * List all inference-auth providers the miner has connected
333
+ * List every provider the authenticated miner currently has a credential for.
334
+ */
335
+ export const listInferenceAuth = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
336
+ return (options?.client ?? client).get<ListInferenceAuthResponse, ListInferenceAuthError, ThrowOnError>({
337
+ ...options,
338
+ url: '/v1/miner/inference-auth'
339
+ });
340
+ };
341
+
342
+ /**
343
+ * @deprecated
344
+ * Store Chutes OAuth refresh token (legacy — use /inference-auth/chutes)
345
+ * Back-compat shim. Routes through the new inference-auth path so older
346
+ * Frontend builds keep populating the new table during the deploy window.
312
347
  */
313
348
  export const storeChutesToken = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => {
314
349
  return (options?.client ?? client).post<StoreChutesTokenResponse, StoreChutesTokenError, ThrowOnError>({
@@ -318,8 +353,9 @@ export const storeChutesToken = <ThrowOnError extends boolean = false>(options:
318
353
  };
319
354
 
320
355
  /**
321
- * Check Chutes auth status
322
- * Check whether the authenticated miner has a stored Chutes token.
356
+ * @deprecated
357
+ * Check Chutes auth status (legacy use /inference-auth/chutes)
358
+ * Back-compat shim. Reads from the new MinerInferenceAuth table.
323
359
  */
324
360
  export const getChutesAuthStatus = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
325
361
  return (options?.client ?? client).get<GetChutesAuthStatusResponse, GetChutesAuthStatusError, ThrowOnError>({
@@ -496,6 +532,17 @@ export const unbanValidator = <ThrowOnError extends boolean = false>(options: Op
496
532
  });
497
533
  };
498
534
 
535
+ /**
536
+ * Update validator configuration
537
+ * Update validator configuration. Currently supports `max_concurrent_runs`.
538
+ */
539
+ export const updateValidator = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateValidatorData, ThrowOnError>) => {
540
+ return (options?.client ?? client).patch<UpdateValidatorResponse, UpdateValidatorError, ThrowOnError>({
541
+ ...options,
542
+ url: '/v1/admin/validators/{validator_hotkey}'
543
+ });
544
+ };
545
+
499
546
  /**
500
547
  * Discard an agent version from leaderboard
501
548
  * 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,25 @@ 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
+
1513
+ /**
1514
+ * Response body for ``GET /v1/miner/inference-auth/{provider}``.
1515
+ */
1516
+ export type InferenceAuthStatusResponse = {
1517
+ connected: boolean;
1518
+ provider: string;
1519
+ /**
1520
+ * When the credential for this provider was last updated.
1521
+ */
1522
+ updated_at?: (string | null);
1523
+ };
1524
+
1502
1525
  /**
1503
1526
  * List of models available to ORO agents via the inference proxy.
1504
1527
  */
@@ -2572,6 +2595,16 @@ export type StoreChutesTokenRequest = {
2572
2595
  refresh_token: string;
2573
2596
  };
2574
2597
 
2598
+ /**
2599
+ * Request body for ``POST /v1/miner/inference-auth/{provider}``.
2600
+ */
2601
+ export type StoreInferenceCredentialRequest = {
2602
+ /**
2603
+ * Provider-specific credential (refresh token, API key, etc.)
2604
+ */
2605
+ credential: string;
2606
+ };
2607
+
2575
2608
  export type SubmitAgentResponse = {
2576
2609
  /**
2577
2610
  * Unique identifier for the created agent
@@ -2760,6 +2793,13 @@ export type TopMinerPayoutResponse = {
2760
2793
  as_of: string;
2761
2794
  };
2762
2795
 
2796
+ export type UpdateValidatorRequest = {
2797
+ /**
2798
+ * Maximum concurrent evaluation runs (must be >= 1)
2799
+ */
2800
+ max_concurrent_runs: number;
2801
+ };
2802
+
2763
2803
  export type ValidationError = {
2764
2804
  loc: Array<(string | number)>;
2765
2805
  msg: string;
@@ -3403,12 +3443,39 @@ export type SubmitAgentResponse2 = (SubmitAgentResponse);
3403
3443
 
3404
3444
  export type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
3405
3445
 
3446
+ export type StoreInferenceCredentialData = {
3447
+ body: StoreInferenceCredentialRequest;
3448
+ path: {
3449
+ provider: string;
3450
+ };
3451
+ };
3452
+
3453
+ export type StoreInferenceCredentialResponse = ({
3454
+ [key: string]: (boolean);
3455
+ });
3456
+
3457
+ export type StoreInferenceCredentialError = (HTTPValidationError);
3458
+
3459
+ export type GetInferenceAuthStatusOneData = {
3460
+ path: {
3461
+ provider: string;
3462
+ };
3463
+ };
3464
+
3465
+ export type GetInferenceAuthStatusOneResponse = (InferenceAuthStatusResponse);
3466
+
3467
+ export type GetInferenceAuthStatusOneError = (HTTPValidationError);
3468
+
3469
+ export type ListInferenceAuthResponse = (InferenceAuthListResponse);
3470
+
3471
+ export type ListInferenceAuthError = unknown;
3472
+
3406
3473
  export type StoreChutesTokenData = {
3407
3474
  body: StoreChutesTokenRequest;
3408
3475
  };
3409
3476
 
3410
3477
  export type StoreChutesTokenResponse = ({
3411
- [key: string]: unknown;
3478
+ [key: string]: (boolean);
3412
3479
  });
3413
3480
 
3414
3481
  export type StoreChutesTokenError = (HTTPValidationError);
@@ -3584,6 +3651,20 @@ export type UnbanValidatorResponse = (BanResponse);
3584
3651
 
3585
3652
  export type UnbanValidatorError = (ValidatorNotFoundError | HTTPValidationError);
3586
3653
 
3654
+ export type UpdateValidatorData = {
3655
+ body: UpdateValidatorRequest;
3656
+ path: {
3657
+ /**
3658
+ * Validator hotkey to update
3659
+ */
3660
+ validator_hotkey: string;
3661
+ };
3662
+ };
3663
+
3664
+ export type UpdateValidatorResponse = (AdminValidatorEntry);
3665
+
3666
+ export type UpdateValidatorError = (ValidatorNotFoundError | HTTPValidationError);
3667
+
3587
3668
  export type DiscardAgentVersionData = {
3588
3669
  body: DiscardRequest;
3589
3670
  path: {