@oro-ai/sdk 0.7.1 → 0.7.3

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
@@ -404,10 +404,6 @@ type Body_submit_agent = {
404
404
  * Python agent file (max 1MB)
405
405
  */
406
406
  file: (Blob | File);
407
- /**
408
- * Chutes OAuth refresh token for miner-funded inference
409
- */
410
- chutes_refresh_token?: (string | null);
411
407
  };
412
408
  /**
413
409
  * Request to cancel an agent version's evaluation.
@@ -453,6 +449,19 @@ type ChallengeResponse = {
453
449
  */
454
450
  expires_at: number;
455
451
  };
452
+ /**
453
+ * Response for Chutes auth status check.
454
+ */
455
+ type ChutesAuthStatusResponse = {
456
+ /**
457
+ * Whether the miner has a stored Chutes token
458
+ */
459
+ connected: boolean;
460
+ /**
461
+ * When the token was last stored or rotated
462
+ */
463
+ updated_at?: (string | null);
464
+ };
456
465
  /**
457
466
  * Response for successful work claim.
458
467
  */
@@ -527,6 +536,10 @@ type CompleteRunRequest = {
527
536
  * S3 key for run-level logs bundle (optional, per-problem logs preferred)
528
537
  */
529
538
  results_s3_key?: (string | null);
539
+ /**
540
+ * Reason for failure (e.g., 'No Chutes token', 'Sandbox execution failed')
541
+ */
542
+ failure_reason?: (string | null);
530
543
  };
531
544
  /**
532
545
  * Response for run completion.
@@ -679,6 +692,10 @@ type EvaluationRunDetail = {
679
692
  * When the run completed
680
693
  */
681
694
  completed_at?: (string | null);
695
+ /**
696
+ * Validator-reported failure reason
697
+ */
698
+ failure_reason?: (string | null);
682
699
  };
683
700
  /**
684
701
  * Public representation of an evaluation run.
@@ -736,6 +753,10 @@ type EvaluationRunPublic = {
736
753
  * Reason for invalidation
737
754
  */
738
755
  invalidation_reason?: (string | null);
756
+ /**
757
+ * Validator-reported failure reason
758
+ */
759
+ failure_reason?: (string | null);
739
760
  /**
740
761
  * Score on success
741
762
  */
@@ -1562,6 +1583,15 @@ type SetTopResponse = {
1562
1583
  */
1563
1584
  top_at: string;
1564
1585
  };
1586
+ /**
1587
+ * Request body for storing a Chutes refresh token.
1588
+ */
1589
+ type StoreChutesTokenRequest = {
1590
+ /**
1591
+ * Chutes OAuth refresh token from a fresh code exchange
1592
+ */
1593
+ refresh_token: string;
1594
+ };
1565
1595
  /**
1566
1596
  * Response model for agent submission.
1567
1597
  */
@@ -1965,6 +1995,15 @@ type SubmitAgentData = {
1965
1995
  };
1966
1996
  type SubmitAgentResponse2 = (SubmitAgentResponse);
1967
1997
  type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
1998
+ type StoreChutesTokenData = {
1999
+ body: StoreChutesTokenRequest;
2000
+ };
2001
+ type StoreChutesTokenResponse = ({
2002
+ [key: string]: unknown;
2003
+ });
2004
+ type StoreChutesTokenError = (HTTPValidationError);
2005
+ type GetChutesAuthStatusResponse = (ChutesAuthStatusResponse);
2006
+ type GetChutesAuthStatusError = unknown;
1968
2007
  type ListMinerAgentsResponse = (MinerAgentsResponse);
1969
2008
  type ListMinerAgentsError = unknown;
1970
2009
  type ListAgentVersionsData = {
@@ -2301,6 +2340,16 @@ declare const logout: <ThrowOnError extends boolean = false>(options?: OptionsLe
2301
2340
  * Submit an agent file for evaluation. Creates new agent if needed.
2302
2341
  */
2303
2342
  declare const submitAgent: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SubmitAgentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SubmitAgentResponse, SubmitAgentError, ThrowOnError>;
2343
+ /**
2344
+ * Store Chutes OAuth refresh token
2345
+ * Store (or overwrite) the miner's Chutes refresh token.
2346
+ */
2347
+ declare const storeChutesToken: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreChutesTokenResponse, HTTPValidationError, ThrowOnError>;
2348
+ /**
2349
+ * Check Chutes auth status
2350
+ * Check whether the authenticated miner has a stored Chutes token.
2351
+ */
2352
+ declare const getChutesAuthStatus: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ChutesAuthStatusResponse, unknown, ThrowOnError>;
2304
2353
  /**
2305
2354
  * List miner's agents
2306
2355
  * List all agents owned by the authenticated miner, with cooldown status.
@@ -2793,4 +2842,4 @@ declare class SessionAuthManager {
2793
2842
  */
2794
2843
  declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
2795
2844
 
2796
- export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdmissionReason, type AdmissionStatus, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionState, type AgentVersionStatus, 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 ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NotRunOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, client, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getArtifactDownloadUrl, getAuditEvents, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getReaperStats, getRunningEvaluations, getSuiteProblems, getTopAgent, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listMinerAgents, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, submitAgent, unbanMiner, unbanValidator, updateProgress };
2845
+ export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdmissionReason, type AdmissionStatus, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionState, type AgentVersionStatus, 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 ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetChutesAuthStatusError, type GetChutesAuthStatusResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NotRunOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, client, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getReaperStats, getRunningEvaluations, getSuiteProblems, getTopAgent, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listMinerAgents, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
package/dist/index.d.ts CHANGED
@@ -404,10 +404,6 @@ type Body_submit_agent = {
404
404
  * Python agent file (max 1MB)
405
405
  */
406
406
  file: (Blob | File);
407
- /**
408
- * Chutes OAuth refresh token for miner-funded inference
409
- */
410
- chutes_refresh_token?: (string | null);
411
407
  };
412
408
  /**
413
409
  * Request to cancel an agent version's evaluation.
@@ -453,6 +449,19 @@ type ChallengeResponse = {
453
449
  */
454
450
  expires_at: number;
455
451
  };
452
+ /**
453
+ * Response for Chutes auth status check.
454
+ */
455
+ type ChutesAuthStatusResponse = {
456
+ /**
457
+ * Whether the miner has a stored Chutes token
458
+ */
459
+ connected: boolean;
460
+ /**
461
+ * When the token was last stored or rotated
462
+ */
463
+ updated_at?: (string | null);
464
+ };
456
465
  /**
457
466
  * Response for successful work claim.
458
467
  */
@@ -527,6 +536,10 @@ type CompleteRunRequest = {
527
536
  * S3 key for run-level logs bundle (optional, per-problem logs preferred)
528
537
  */
529
538
  results_s3_key?: (string | null);
539
+ /**
540
+ * Reason for failure (e.g., 'No Chutes token', 'Sandbox execution failed')
541
+ */
542
+ failure_reason?: (string | null);
530
543
  };
531
544
  /**
532
545
  * Response for run completion.
@@ -679,6 +692,10 @@ type EvaluationRunDetail = {
679
692
  * When the run completed
680
693
  */
681
694
  completed_at?: (string | null);
695
+ /**
696
+ * Validator-reported failure reason
697
+ */
698
+ failure_reason?: (string | null);
682
699
  };
683
700
  /**
684
701
  * Public representation of an evaluation run.
@@ -736,6 +753,10 @@ type EvaluationRunPublic = {
736
753
  * Reason for invalidation
737
754
  */
738
755
  invalidation_reason?: (string | null);
756
+ /**
757
+ * Validator-reported failure reason
758
+ */
759
+ failure_reason?: (string | null);
739
760
  /**
740
761
  * Score on success
741
762
  */
@@ -1562,6 +1583,15 @@ type SetTopResponse = {
1562
1583
  */
1563
1584
  top_at: string;
1564
1585
  };
1586
+ /**
1587
+ * Request body for storing a Chutes refresh token.
1588
+ */
1589
+ type StoreChutesTokenRequest = {
1590
+ /**
1591
+ * Chutes OAuth refresh token from a fresh code exchange
1592
+ */
1593
+ refresh_token: string;
1594
+ };
1565
1595
  /**
1566
1596
  * Response model for agent submission.
1567
1597
  */
@@ -1965,6 +1995,15 @@ type SubmitAgentData = {
1965
1995
  };
1966
1996
  type SubmitAgentResponse2 = (SubmitAgentResponse);
1967
1997
  type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
1998
+ type StoreChutesTokenData = {
1999
+ body: StoreChutesTokenRequest;
2000
+ };
2001
+ type StoreChutesTokenResponse = ({
2002
+ [key: string]: unknown;
2003
+ });
2004
+ type StoreChutesTokenError = (HTTPValidationError);
2005
+ type GetChutesAuthStatusResponse = (ChutesAuthStatusResponse);
2006
+ type GetChutesAuthStatusError = unknown;
1968
2007
  type ListMinerAgentsResponse = (MinerAgentsResponse);
1969
2008
  type ListMinerAgentsError = unknown;
1970
2009
  type ListAgentVersionsData = {
@@ -2301,6 +2340,16 @@ declare const logout: <ThrowOnError extends boolean = false>(options?: OptionsLe
2301
2340
  * Submit an agent file for evaluation. Creates new agent if needed.
2302
2341
  */
2303
2342
  declare const submitAgent: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SubmitAgentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SubmitAgentResponse, SubmitAgentError, ThrowOnError>;
2343
+ /**
2344
+ * Store Chutes OAuth refresh token
2345
+ * Store (or overwrite) the miner's Chutes refresh token.
2346
+ */
2347
+ declare const storeChutesToken: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StoreChutesTokenResponse, HTTPValidationError, ThrowOnError>;
2348
+ /**
2349
+ * Check Chutes auth status
2350
+ * Check whether the authenticated miner has a stored Chutes token.
2351
+ */
2352
+ declare const getChutesAuthStatus: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ChutesAuthStatusResponse, unknown, ThrowOnError>;
2304
2353
  /**
2305
2354
  * List miner's agents
2306
2355
  * List all agents owned by the authenticated miner, with cooldown status.
@@ -2793,4 +2842,4 @@ declare class SessionAuthManager {
2793
2842
  */
2794
2843
  declare function configureSessionAuth(baseUrl: string, config: SessionAuthConfig): SessionAuthManager;
2795
2844
 
2796
- export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdmissionReason, type AdmissionStatus, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionState, type AgentVersionStatus, 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 ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NotRunOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, client, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getArtifactDownloadUrl, getAuditEvents, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getReaperStats, getRunningEvaluations, getSuiteProblems, getTopAgent, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listMinerAgents, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, submitAgent, unbanMiner, unbanValidator, updateProgress };
2845
+ export { type ActivateSuiteData, type ActivateSuiteError, type ActivateSuiteResponse, type ActivateSuiteResponse2, type AdmissionReason, type AdmissionStatus, type AgentNotFoundError, type AgentPublic, type AgentVersionHistoryEntry, type AgentVersionNotFoundError, type AgentVersionProblemsResponse, type AgentVersionPublic, type AgentVersionState, type AgentVersionStatus, 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 ClaimWorkError, type ClaimWorkResponse, type ClaimWorkResponse2, type ClearMinerCooldownData, type ClearMinerCooldownError, type ClearMinerCooldownResponse, type CodeAnalysisError, type CompleteRunData, type CompleteRunError, type CompleteRunRequest, type CompleteRunResponse, type CompleteRunResponse2, type CooldownActiveError, type CreateSessionEndpointData, type CreateSessionEndpointError, type CreateSessionEndpointResponse, type CreateSuiteData, type CreateSuiteError, type CreateSuiteRequest, type CreateSuiteResponse, type CreateSuiteResponse2, type DiscardAgentVersionData, type DiscardAgentVersionError, type DiscardAgentVersionResponse, type DiscardRequest, type DiscardResponse, type ErrorCategory, type EvalRunNotFoundError, type EvaluationRunDetail, type EvaluationRunPublic, type EvaluationRunStatus, type EvaluationRunStatusPublic, type FileTooLargeError, type GetAgentVersionData, type GetAgentVersionError, type GetAgentVersionProblemsData, type GetAgentVersionProblemsError, type GetAgentVersionProblemsResponse, type GetAgentVersionResponse, type GetAgentVersionRunsData, type GetAgentVersionRunsError, type GetAgentVersionRunsResponse, type GetAgentVersionStatusData, type GetAgentVersionStatusError, type GetAgentVersionStatusResponse, type GetArtifactDownloadUrlData, type GetArtifactDownloadUrlError, type GetArtifactDownloadUrlResponse, type GetAuditEventsData, type GetAuditEventsError, type GetAuditEventsResponse, type GetChutesAuthStatusError, type GetChutesAuthStatusResponse, type GetCurrentSuiteError, type GetCurrentSuiteResponse, type GetEvaluationRunData, type GetEvaluationRunError, type GetEvaluationRunResponse, type GetLeaderboardData, type GetLeaderboardError, type GetLeaderboardResponse, type GetOwnedAgentVersionStatusData, type GetOwnedAgentVersionStatusError, type GetOwnedAgentVersionStatusResponse, type GetPendingEvaluationsData, type GetPendingEvaluationsError, type GetPendingEvaluationsResponse, type GetReaperStatsError, type GetReaperStatsResponse, type GetRunningEvaluationsError, type GetRunningEvaluationsResponse, type GetSuiteProblemsData, type GetSuiteProblemsError, type GetSuiteProblemsResponse, type GetTopAgentError, type GetTopAgentResponse, type GetValidatorsError, type GetValidatorsResponse, type HTTPValidationError, type HealthCheckError, type HealthCheckResponse, type HeartbeatData, type HeartbeatError, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResponse2, type InvalidAgentNameError, type InvalidArtifactTypeError, type InvalidFileError, type InvalidProblemIdError, type InvalidateEvaluationRunData, type InvalidateEvaluationRunError, type InvalidateEvaluationRunResponse, type InvalidateRunRequest, type JoinWaitlistData, type JoinWaitlistError, type JoinWaitlistResponse, type LeaderboardEntry, type LeaderboardResponse, type LeaseExpiredError, type ListAgentVersionsData, type ListAgentVersionsError, type ListAgentVersionsResponse, type ListMinerAgentsError, type ListMinerAgentsResponse, type LogoutData, type LogoutError, type LogoutResponse, type LogoutResponse2, type MinerAgentsResponse, type MinerNotFoundError, type MissingParameterError, type MissingScoreError, type NoActiveSuiteError, type NotRunOwnerError, type OroErrorCode, type PendingEvaluation, type PendingEvaluationSummary, type PendingEvaluationsResponse, type PresignUploadData, type PresignUploadError, type PresignUploadRequest, type PresignUploadResponse, type PresignUploadResponse2, type ProblemNotFoundError, type ProblemProgressEntry, type ProblemProgressUpdate, type ProblemPublic, type ProblemStatus, type ProgressUpdateRequest, type ProgressUpdateResponse, type RateLimitExceededError, type ReaperStatsResponse, type ReevaluateAgentVersionData, type ReevaluateAgentVersionError, type ReevaluateAgentVersionResponse, type ReevaluateRequest, type ReevaluateResponse, type ReinstateAgentVersionData, type ReinstateAgentVersionError, type ReinstateAgentVersionResponse, type ReinstateRequest, type RequestChallengeData, type RequestChallengeError, type RequestChallengeResponse, type RetryConfig, type RetryContext, type RunAlreadyCompleteError, type RunningEvaluation, type ScoreBelowThresholdError, type SessionAuthConfig, SessionAuthManager, type SessionInfo, type SessionRequest, type SessionResponse, type SetTopAgentData, type SetTopAgentError, type SetTopAgentResponse, type SetTopRequest, type SetTopResponse, type StoreChutesTokenData, type StoreChutesTokenError, type StoreChutesTokenRequest, type StoreChutesTokenResponse, type SubmitAgentData, type SubmitAgentError, type SubmitAgentResponse, type SubmitAgentResponse2, type SuiteNotFoundError, type SuitePublic, type SuiteWithProblemsResponse, type TerminalStatus, type TopAgentResponse, type UnbanMinerData, type UnbanMinerError, type UnbanMinerResponse, type UnbanValidatorData, type UnbanValidatorError, type UnbanValidatorResponse, type UpdateProgressData, type UpdateProgressError, type UpdateProgressResponse, type ValidationError, type ValidatorCurrentAgent, type ValidatorNotFoundError, type ValidatorProblemResult, type ValidatorPublic, type ValidatorStatus, type WaitlistSignupRequest, type WaitlistSignupResponse, type WorkItemStatus, activateSuite, banMiner, banValidator, cancelAgentVersion, claimWork, classifyError, classifyStatus, clearMinerCooldown, client, completeRun, computeDelay, configureBittensorAuth, configurePublicClient, configureSessionAuth, createRetryFetch, createSessionEndpoint, createSuite, discardAgentVersion, generateAuthHeaders, getAgentVersion, getAgentVersionProblems, getAgentVersionRuns, getAgentVersionStatus, getArtifactDownloadUrl, getAuditEvents, getChutesAuthStatus, getCurrentSuite, getErrorCode, getErrorDetail, getEvaluationRun, getLeaderboard, getOwnedAgentVersionStatus, getPendingEvaluations, getReaperStats, getRunningEvaluations, getSuiteProblems, getTopAgent, getValidators, hasDetail, hasErrorCode, healthCheck, heartbeat, invalidateEvaluationRun, isTransient, isTransientError, joinWaitlist, listAgentVersions, listMinerAgents, logout, parseRetryAfter, presignUpload, reevaluateAgentVersion, reinstateAgentVersion, requestChallenge, setTopAgent, storeChutesToken, submitAgent, unbanMiner, unbanValidator, updateProgress };
package/dist/index.js CHANGED
@@ -56,6 +56,7 @@ __export(index_exports, {
56
56
  getAgentVersionStatus: () => getAgentVersionStatus,
57
57
  getArtifactDownloadUrl: () => getArtifactDownloadUrl,
58
58
  getAuditEvents: () => getAuditEvents,
59
+ getChutesAuthStatus: () => getChutesAuthStatus,
59
60
  getCurrentSuite: () => getCurrentSuite,
60
61
  getErrorCode: () => getErrorCode,
61
62
  getErrorDetail: () => getErrorDetail,
@@ -85,6 +86,7 @@ __export(index_exports, {
85
86
  reinstateAgentVersion: () => reinstateAgentVersion,
86
87
  requestChallenge: () => requestChallenge,
87
88
  setTopAgent: () => setTopAgent,
89
+ storeChutesToken: () => storeChutesToken,
88
90
  submitAgent: () => submitAgent,
89
91
  unbanMiner: () => unbanMiner,
90
92
  unbanValidator: () => unbanValidator,
@@ -214,6 +216,18 @@ var submitAgent = (options) => {
214
216
  url: "/v1/miner/submit"
215
217
  });
216
218
  };
219
+ var storeChutesToken = (options) => {
220
+ return (options?.client ?? client).post({
221
+ ...options,
222
+ url: "/v1/miner/chutes-auth"
223
+ });
224
+ };
225
+ var getChutesAuthStatus = (options) => {
226
+ return (options?.client ?? client).get({
227
+ ...options,
228
+ url: "/v1/miner/chutes-auth/status"
229
+ });
230
+ };
217
231
  var listMinerAgents = (options) => {
218
232
  return (options?.client ?? client).get({
219
233
  ...options,
@@ -740,6 +754,7 @@ function configureSessionAuth(baseUrl, config) {
740
754
  getAgentVersionStatus,
741
755
  getArtifactDownloadUrl,
742
756
  getAuditEvents,
757
+ getChutesAuthStatus,
743
758
  getCurrentSuite,
744
759
  getErrorCode,
745
760
  getErrorDetail,
@@ -769,6 +784,7 @@ function configureSessionAuth(baseUrl, config) {
769
784
  reinstateAgentVersion,
770
785
  requestChallenge,
771
786
  setTopAgent,
787
+ storeChutesToken,
772
788
  submitAgent,
773
789
  unbanMiner,
774
790
  unbanValidator,
package/dist/index.mjs CHANGED
@@ -120,6 +120,18 @@ var submitAgent = (options) => {
120
120
  url: "/v1/miner/submit"
121
121
  });
122
122
  };
123
+ var storeChutesToken = (options) => {
124
+ return (options?.client ?? client).post({
125
+ ...options,
126
+ url: "/v1/miner/chutes-auth"
127
+ });
128
+ };
129
+ var getChutesAuthStatus = (options) => {
130
+ return (options?.client ?? client).get({
131
+ ...options,
132
+ url: "/v1/miner/chutes-auth/status"
133
+ });
134
+ };
123
135
  var listMinerAgents = (options) => {
124
136
  return (options?.client ?? client).get({
125
137
  ...options,
@@ -645,6 +657,7 @@ export {
645
657
  getAgentVersionStatus,
646
658
  getArtifactDownloadUrl,
647
659
  getAuditEvents,
660
+ getChutesAuthStatus,
648
661
  getCurrentSuite,
649
662
  getErrorCode,
650
663
  getErrorDetail,
@@ -674,6 +687,7 @@ export {
674
687
  reinstateAgentVersion,
675
688
  requestChallenge,
676
689
  setTopAgent,
690
+ storeChutesToken,
677
691
  submitAgent,
678
692
  unbanMiner,
679
693
  unbanValidator,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oro-ai/sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
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, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, GetAgentVersionStatusData, GetAgentVersionStatusError, GetAgentVersionStatusResponse, GetAgentVersionRunsData, GetAgentVersionRunsError, GetAgentVersionRunsResponse, GetAgentVersionProblemsData, GetAgentVersionProblemsError, GetAgentVersionProblemsResponse, GetAgentVersionData, GetAgentVersionError, GetAgentVersionResponse, GetArtifactDownloadUrlData, GetArtifactDownloadUrlError, GetArtifactDownloadUrlResponse, GetEvaluationRunData, GetEvaluationRunError, GetEvaluationRunResponse, GetValidatorsError, GetValidatorsResponse, GetRunningEvaluationsError, GetRunningEvaluationsResponse, GetPendingEvaluationsData, GetPendingEvaluationsError, GetPendingEvaluationsResponse, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, RequestChallengeData, RequestChallengeError, RequestChallengeResponse, CreateSessionEndpointData, CreateSessionEndpointError, CreateSessionEndpointResponse, LogoutData, LogoutError, LogoutResponse2, SubmitAgentData, SubmitAgentError, SubmitAgentResponse2, ListMinerAgentsError, ListMinerAgentsResponse, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsResponse, GetOwnedAgentVersionStatusData, GetOwnedAgentVersionStatusError, GetOwnedAgentVersionStatusResponse, ClaimWorkError, ClaimWorkResponse2, HeartbeatData, HeartbeatError, HeartbeatResponse2, UpdateProgressData, UpdateProgressError, UpdateProgressResponse, PresignUploadData, PresignUploadError, PresignUploadResponse2, CompleteRunData, CompleteRunError, CompleteRunResponse2, BanMinerData, BanMinerError, BanMinerResponse, UnbanMinerData, UnbanMinerError, UnbanMinerResponse, BanValidatorData, BanValidatorError, BanValidatorResponse, UnbanValidatorData, UnbanValidatorError, UnbanValidatorResponse, DiscardAgentVersionData, DiscardAgentVersionError, DiscardAgentVersionResponse, ReinstateAgentVersionData, ReinstateAgentVersionError, ReinstateAgentVersionResponse, SetTopAgentData, SetTopAgentError, SetTopAgentResponse, InvalidateEvaluationRunData, InvalidateEvaluationRunError, InvalidateEvaluationRunResponse, ReevaluateAgentVersionData, ReevaluateAgentVersionError, ReevaluateAgentVersionResponse, CancelAgentVersionData, CancelAgentVersionError, CancelAgentVersionResponse, CreateSuiteData, CreateSuiteError, CreateSuiteResponse2, ActivateSuiteData, ActivateSuiteError, ActivateSuiteResponse2, GetAuditEventsData, GetAuditEventsError, GetAuditEventsResponse, GetReaperStatsError, GetReaperStatsResponse, ClearMinerCooldownData, ClearMinerCooldownError, ClearMinerCooldownResponse } from './types.gen';
4
+ import type { HealthCheckError, HealthCheckResponse, GetCurrentSuiteError, GetCurrentSuiteResponse, GetSuiteProblemsData, GetSuiteProblemsError, GetSuiteProblemsResponse, GetLeaderboardData, GetLeaderboardError, GetLeaderboardResponse, GetTopAgentError, GetTopAgentResponse, GetAgentVersionStatusData, GetAgentVersionStatusError, GetAgentVersionStatusResponse, GetAgentVersionRunsData, GetAgentVersionRunsError, GetAgentVersionRunsResponse, GetAgentVersionProblemsData, GetAgentVersionProblemsError, GetAgentVersionProblemsResponse, GetAgentVersionData, GetAgentVersionError, GetAgentVersionResponse, GetArtifactDownloadUrlData, GetArtifactDownloadUrlError, GetArtifactDownloadUrlResponse, GetEvaluationRunData, GetEvaluationRunError, GetEvaluationRunResponse, GetValidatorsError, GetValidatorsResponse, GetRunningEvaluationsError, GetRunningEvaluationsResponse, GetPendingEvaluationsData, GetPendingEvaluationsError, GetPendingEvaluationsResponse, JoinWaitlistData, JoinWaitlistError, JoinWaitlistResponse, RequestChallengeData, RequestChallengeError, RequestChallengeResponse, CreateSessionEndpointData, CreateSessionEndpointError, CreateSessionEndpointResponse, LogoutData, LogoutError, LogoutResponse2, SubmitAgentData, SubmitAgentError, SubmitAgentResponse2, StoreChutesTokenData, StoreChutesTokenError, StoreChutesTokenResponse, GetChutesAuthStatusError, GetChutesAuthStatusResponse, ListMinerAgentsError, ListMinerAgentsResponse, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsResponse, GetOwnedAgentVersionStatusData, GetOwnedAgentVersionStatusError, GetOwnedAgentVersionStatusResponse, ClaimWorkError, ClaimWorkResponse2, HeartbeatData, HeartbeatError, HeartbeatResponse2, UpdateProgressData, UpdateProgressError, UpdateProgressResponse, PresignUploadData, PresignUploadError, PresignUploadResponse2, CompleteRunData, CompleteRunError, CompleteRunResponse2, BanMinerData, BanMinerError, BanMinerResponse, UnbanMinerData, UnbanMinerError, UnbanMinerResponse, BanValidatorData, BanValidatorError, BanValidatorResponse, UnbanValidatorData, UnbanValidatorError, UnbanValidatorResponse, DiscardAgentVersionData, DiscardAgentVersionError, DiscardAgentVersionResponse, ReinstateAgentVersionData, ReinstateAgentVersionError, ReinstateAgentVersionResponse, SetTopAgentData, SetTopAgentError, SetTopAgentResponse, InvalidateEvaluationRunData, InvalidateEvaluationRunError, InvalidateEvaluationRunResponse, ReevaluateAgentVersionData, ReevaluateAgentVersionError, ReevaluateAgentVersionResponse, CancelAgentVersionData, CancelAgentVersionError, CancelAgentVersionResponse, CreateSuiteData, CreateSuiteError, CreateSuiteResponse2, ActivateSuiteData, ActivateSuiteError, ActivateSuiteResponse2, GetAuditEventsData, GetAuditEventsError, GetAuditEventsResponse, GetReaperStatsError, GetReaperStatsResponse, ClearMinerCooldownData, ClearMinerCooldownError, ClearMinerCooldownResponse } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -229,6 +229,28 @@ export const submitAgent = <ThrowOnError extends boolean = false>(options: Optio
229
229
  });
230
230
  };
231
231
 
232
+ /**
233
+ * Store Chutes OAuth refresh token
234
+ * Store (or overwrite) the miner's Chutes refresh token.
235
+ */
236
+ export const storeChutesToken = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<StoreChutesTokenData, ThrowOnError>) => {
237
+ return (options?.client ?? client).post<StoreChutesTokenResponse, StoreChutesTokenError, ThrowOnError>({
238
+ ...options,
239
+ url: '/v1/miner/chutes-auth'
240
+ });
241
+ };
242
+
243
+ /**
244
+ * Check Chutes auth status
245
+ * Check whether the authenticated miner has a stored Chutes token.
246
+ */
247
+ export const getChutesAuthStatus = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
248
+ return (options?.client ?? client).get<GetChutesAuthStatusResponse, GetChutesAuthStatusError, ThrowOnError>({
249
+ ...options,
250
+ url: '/v1/miner/chutes-auth/status'
251
+ });
252
+ };
253
+
232
254
  /**
233
255
  * List miner's agents
234
256
  * List all agents owned by the authenticated miner, with cooldown status.
@@ -426,10 +426,6 @@ export type Body_submit_agent = {
426
426
  * Python agent file (max 1MB)
427
427
  */
428
428
  file: (Blob | File);
429
- /**
430
- * Chutes OAuth refresh token for miner-funded inference
431
- */
432
- chutes_refresh_token?: (string | null);
433
429
  };
434
430
 
435
431
  /**
@@ -480,6 +476,20 @@ export type ChallengeResponse = {
480
476
  expires_at: number;
481
477
  };
482
478
 
479
+ /**
480
+ * Response for Chutes auth status check.
481
+ */
482
+ export type ChutesAuthStatusResponse = {
483
+ /**
484
+ * Whether the miner has a stored Chutes token
485
+ */
486
+ connected: boolean;
487
+ /**
488
+ * When the token was last stored or rotated
489
+ */
490
+ updated_at?: (string | null);
491
+ };
492
+
483
493
  /**
484
494
  * Response for successful work claim.
485
495
  */
@@ -556,6 +566,10 @@ export type CompleteRunRequest = {
556
566
  * S3 key for run-level logs bundle (optional, per-problem logs preferred)
557
567
  */
558
568
  results_s3_key?: (string | null);
569
+ /**
570
+ * Reason for failure (e.g., 'No Chutes token', 'Sandbox execution failed')
571
+ */
572
+ failure_reason?: (string | null);
559
573
  };
560
574
 
561
575
  /**
@@ -716,6 +730,10 @@ export type EvaluationRunDetail = {
716
730
  * When the run completed
717
731
  */
718
732
  completed_at?: (string | null);
733
+ /**
734
+ * Validator-reported failure reason
735
+ */
736
+ failure_reason?: (string | null);
719
737
  };
720
738
 
721
739
  /**
@@ -774,6 +792,10 @@ export type EvaluationRunPublic = {
774
792
  * Reason for invalidation
775
793
  */
776
794
  invalidation_reason?: (string | null);
795
+ /**
796
+ * Validator-reported failure reason
797
+ */
798
+ failure_reason?: (string | null);
777
799
  /**
778
800
  * Score on success
779
801
  */
@@ -1646,6 +1668,16 @@ export type SetTopResponse = {
1646
1668
  top_at: string;
1647
1669
  };
1648
1670
 
1671
+ /**
1672
+ * Request body for storing a Chutes refresh token.
1673
+ */
1674
+ export type StoreChutesTokenRequest = {
1675
+ /**
1676
+ * Chutes OAuth refresh token from a fresh code exchange
1677
+ */
1678
+ refresh_token: string;
1679
+ };
1680
+
1649
1681
  /**
1650
1682
  * Response model for agent submission.
1651
1683
  */
@@ -2116,6 +2148,20 @@ export type SubmitAgentResponse2 = (SubmitAgentResponse);
2116
2148
 
2117
2149
  export type SubmitAgentError = ((InvalidAgentNameError | InvalidFileError) | FileTooLargeError | CodeAnalysisError | (CooldownActiveError | RateLimitExceededError) | NoActiveSuiteError);
2118
2150
 
2151
+ export type StoreChutesTokenData = {
2152
+ body: StoreChutesTokenRequest;
2153
+ };
2154
+
2155
+ export type StoreChutesTokenResponse = ({
2156
+ [key: string]: unknown;
2157
+ });
2158
+
2159
+ export type StoreChutesTokenError = (HTTPValidationError);
2160
+
2161
+ export type GetChutesAuthStatusResponse = (ChutesAuthStatusResponse);
2162
+
2163
+ export type GetChutesAuthStatusError = unknown;
2164
+
2119
2165
  export type ListMinerAgentsResponse = (MinerAgentsResponse);
2120
2166
 
2121
2167
  export type ListMinerAgentsError = unknown;