@sixb/client 0.2.5 → 0.2.6

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.
Files changed (49) hide show
  1. package/dist/agent-streams.d.ts +11 -2
  2. package/dist/agent-streams.d.ts.map +1 -1
  3. package/dist/artifact-live.js +1 -1
  4. package/dist/browser.js +1 -1
  5. package/dist/{chunk-ktqfenfd.js → chunk-3dxa8d3r.js} +46 -6
  6. package/dist/chunk-3dxa8d3r.js.map +10 -0
  7. package/dist/{chunk-zta9jf24.js → chunk-4t68c4gf.js} +10 -3
  8. package/dist/{chunk-zta9jf24.js.map → chunk-4t68c4gf.js.map} +3 -3
  9. package/dist/{chunk-tm588tr7.js → chunk-6caavk8p.js} +1 -1
  10. package/dist/{chunk-pn4b10k4.js → chunk-pzz6gtn5.js} +2 -2
  11. package/dist/{chunk-60fdvjxa.js → chunk-vydypkf1.js} +39 -2
  12. package/dist/chunk-vydypkf1.js.map +10 -0
  13. package/dist/connectors/connection.d.ts +12 -0
  14. package/dist/connectors/connection.d.ts.map +1 -1
  15. package/dist/connectors/index.d.ts +1 -1
  16. package/dist/connectors/index.d.ts.map +1 -1
  17. package/dist/connectors/queries.d.ts.map +1 -1
  18. package/dist/generated/@tanstack/react-query.gen.d.ts +940 -113
  19. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  20. package/dist/generated/index.d.ts +2 -2
  21. package/dist/generated/index.d.ts.map +1 -1
  22. package/dist/generated/sdk.gen.d.ts +27 -3
  23. package/dist/generated/sdk.gen.d.ts.map +1 -1
  24. package/dist/generated/types.gen.d.ts +884 -12
  25. package/dist/generated/types.gen.d.ts.map +1 -1
  26. package/dist/hooks.js +87 -5
  27. package/dist/hooks.js.map +4 -4
  28. package/dist/index.js +13 -5
  29. package/dist/index.js.map +1 -1
  30. package/dist/logs.js +3 -3
  31. package/dist/models.js +10 -2
  32. package/dist/models.js.map +1 -1
  33. package/dist/query.js +2 -2
  34. package/dist/users-hooks.d.ts.map +1 -1
  35. package/dist/ws-socket.d.ts +2 -0
  36. package/dist/ws-socket.d.ts.map +1 -1
  37. package/package.json +2 -2
  38. package/src/agent-streams.ts +22 -0
  39. package/src/connectors/connection.ts +59 -0
  40. package/src/connectors/index.ts +1 -0
  41. package/src/generated/@tanstack/react-query.gen.ts +131 -2
  42. package/src/generated/index.ts +20 -0
  43. package/src/generated/sdk.gen.ts +93 -2
  44. package/src/generated/types.gen.ts +1341 -15
  45. package/src/ws-socket.ts +62 -7
  46. package/dist/chunk-60fdvjxa.js.map +0 -10
  47. package/dist/chunk-ktqfenfd.js.map +0 -10
  48. /package/dist/{chunk-tm588tr7.js.map → chunk-6caavk8p.js.map} +0 -0
  49. /package/dist/{chunk-pn4b10k4.js.map → chunk-pzz6gtn5.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { type DefaultError, type InfiniteData, type UseMutationOptions } from "@tanstack/react-query";
2
2
  import { type Options } from "../sdk.gen";
3
- import type { AbortFileUploadData, AbortFileUploadError, AbortFileUploadResponse, AddAgentThreadParticipantsData, AddAgentThreadParticipantsError, AddAgentThreadParticipantsResponse, AddArtifactCommentData, AddArtifactCommentError, AddArtifactCommentResponse, AddConnectorConnectionData, AddConnectorConnectionError, AddConnectorConnectionResponse, CancelAgentRunByIdData, CancelAgentRunByIdError, CancelAgentRunByIdResponse, CancelAgentRunData, CancelAgentRunError, CancelAgentRunResponse, CancelWorkflowInterventionData, CancelWorkflowInterventionError, CancelWorkflowInterventionResponse, CancelWorkflowRunData, CancelWorkflowRunError, CancelWorkflowRunResponse, CaptureActivityData, CaptureActivityError, CaptureActivityResponse, ClearArtifactStateData, ClearArtifactStateError, ClearArtifactStateResponse, CompleteFileUploadData, CompleteFileUploadError, CompleteFileUploadResponse, CountObjectsData, CountObjectsError, CountObjectsResponse, CreateAgentThreadData, CreateAgentThreadError, CreateAgentThreadResponse, CreateAiLimitPolicyData, CreateAiLimitPolicyError, CreateAiLimitPolicyResponse, CreateArtifactData, CreateArtifactError, CreateArtifactFrameData, CreateArtifactFrameError, CreateArtifactFrameResponse, CreateArtifactResponse, CreateAuthInvitationData, CreateAuthInvitationError, CreateAuthInvitationResponse, CreateAuthPersonalAccessTokenData, CreateAuthPersonalAccessTokenError, CreateAuthPersonalAccessTokenResponse, CreateAuthServiceAccountAccessTokenData, CreateAuthServiceAccountAccessTokenError, CreateAuthServiceAccountAccessTokenResponse, CreateAuthServiceAccountData, CreateAuthServiceAccountError, CreateAuthServiceAccountResponse, CreateDeviceAuthorizationData, CreateDeviceAuthorizationError, CreateDeviceAuthorizationResponse, CreateFileUploadData, CreateFileUploadError, CreateFileUploadResponse, DecideAgentApprovalData, DecideAgentApprovalError, DecideAgentApprovalResponse, DeleteAgentMemoryData, DeleteAgentMemoryError, DeleteAgentMemoryResponse, DeleteAiLimitPolicyData, DeleteAiLimitPolicyError, DeleteAiLimitPolicyResponse, DeleteArtifactCommentData, DeleteArtifactCommentError, DeleteArtifactCommentResponse, DeleteArtifactData, DeleteArtifactError, DeleteArtifactResponse, DeleteArtifactStateValueData, DeleteArtifactStateValueError, DeleteArtifactStateValueResponse, DisableAuthServiceAccountData, DisableAuthServiceAccountError, DisableAuthServiceAccountResponse, DisconnectConnectorConnectionData, DisconnectConnectorConnectionError, DisconnectConnectorConnectionResponse, ExchangeDeviceAuthorizationData, ExchangeDeviceAuthorizationResponse, ExchangeSharedAccessData, ExchangeSharedAccessError, ExchangeSharedAccessResponse, ExistsObjectsData, ExistsObjectsError, ExistsObjectsResponse, FacetObjectsData, FacetObjectsError, FacetObjectsResponse, ForkAgentThreadData, ForkAgentThreadError, ForkAgentThreadResponse, FreezeArtifactVersionData, FreezeArtifactVersionError, FreezeArtifactVersionResponse, GenerateImagesData, GenerateImagesError, GenerateImagesResponse, GenerateSpeechData, GenerateSpeechError, GenerateSpeechResponse, GenerateTextData, GenerateTextError, GenerateTextResponse, GetActionData, GetActionRunData, GetActionRunError, GetActionRunFileContentData, GetActionRunFileContentResponse, GetActivityCalendarData, GetActivityCalendarError, GetActivityCaptureConfigData, GetActivityCaptureConfigError, GetActivitySummaryData, GetActivitySummaryError, GetActivityVisitTimelineData, GetActivityVisitTimelineError, GetAgentChildFileContentData, GetAgentChildFileContentResponse, GetAgentData, GetAgentMemoryData, GetAgentMemoryError, GetAgentMessageFileContentData, GetAgentMessageFileContentResponse, GetAgentPreferencesData, GetAgentPreferencesError, GetAgentRunData, GetAgentRunError, GetAgentThreadContextData, GetAgentThreadContextError, GetAgentThreadData, GetAgentThreadError, GetAiAccountingOverviewData, GetAiAccountingOverviewError, GetAiLimitStatusData, GetAiLimitStatusError, GetAiLimitSubjectOptionsData, GetAiLimitSubjectOptionsError, GetAiModelCallFileContentData, GetAiModelCallFileContentResponse, GetAiModelCallFilesData, GetArtifactBoardPreviewData, GetArtifactData, GetArtifactError, GetArtifactFileContentData, GetArtifactFileContentResponse, GetArtifactPdfData, GetArtifactQueryData, GetArtifactQueryError, GetArtifactRestorePointData, GetArtifactRestorePointError, GetArtifactRestorePointFileContentData, GetArtifactRestorePointFileContentResponse, GetArtifactStateData, GetArtifactStateError, GetArtifactVersionData, GetArtifactVersionError, GetAuthAccessManagementOptionsData, GetAuthAccessManagementOptionsError, GetAuthInvitationOptionsData, GetAuthInvitationOptionsError, GetAuthMembershipOptionsData, GetAuthMembershipOptionsError, GetAuthProfileData, GetAuthProfileError, GetAuthSessionData, GetBulkTelemetryHistoryData, GetBulkTelemetryHistoryError, GetBulkTelemetryHistoryResponse, GetConnectorConnectionRunData, GetConnectorConnectionRunError, GetConnectorData, GetDatasetData, GetDatasetError, GetDatasetVersionData, GetDatasetVersionError, GetDatasetVersionLineageData, GetDatasetVersionLineageError, GetLakeHealthData, GetLatestTelemetryData, GetLatestTelemetryError, GetObjectByUniquePropertyData, GetObjectByUniquePropertyError, GetObjectByUniquePropertyResponse, GetObjectData, GetObjectFileContentData, GetObjectFileContentResponse, GetObjectLineageData, GetObjectLinkLineageData, GetObjectLinkLineageError, GetObjectTypeData, GetObservedAgentChildFileContentData, GetObservedAgentChildFileContentResponse, GetObservedAgentMessageFileContentData, GetObservedAgentMessageFileContentResponse, GetObservedAgentThreadData, GetObservedAgentThreadError, GetPipelineData, GetPipelineRunData, GetPipelineRunError, GetProjectInfoData, GetProjectionData, GetProjectionRunData, GetProjectionRunError, GetRuleData, GetSharedAccessSessionData, GetSharedAccessSessionError, GetStatusData, GetSyncData, GetTelemetryHistoryData, GetTelemetryHistoryError, GetUserData, GetUserError, GetWorkflowAgentNodeExecutionData, GetWorkflowAgentNodeExecutionError, GetWorkflowData, GetWorkflowInterventionData, GetWorkflowInterventionError, GetWorkflowNodeRunFileContentData, GetWorkflowNodeRunFileContentResponse, GetWorkflowRunData, GetWorkflowRunError, GetWorkflowRunFileContentData, GetWorkflowRunFileContentResponse, HoldAgentComputerSessionData, HoldAgentComputerSessionError, HoldAgentComputerSessionResponse, IssueSharedAccessGrantData, IssueSharedAccessGrantError, IssueSharedAccessGrantResponse, ListActionRunsData, ListActionRunsError, ListActionsData, ListActivityConnectionsData, ListActivityConnectionsError, ListActivityUsersData, ListActivityUsersError, ListActivityVisitsData, ListActivityVisitsError, ListAgentApprovalsData, ListAgentApprovalsError, ListAgentComputersData, ListAgentMemoryRevisionsData, ListAgentMemoryRevisionsError, ListAgentThreadApprovalsData, ListAgentThreadApprovalsError, ListAgentThreadChildrenData, ListAgentThreadChildrenError, ListAgentThreadInboxData, ListAgentThreadInboxError, ListAgentThreadMessagesData, ListAgentThreadMessagesError, ListAgentThreadRunsData, ListAgentThreadRunsError, ListAgentThreadsData, ListAgentThreadsError, ListAiLimitPoliciesData, ListAiLimitPoliciesError, ListAiModelCallGroupsData, ListAiModelCallGroupsError, ListAiModelCallsData, ListAiModelCallsError, ListArtifactCommentsData, ListArtifactCommentsError, ListArtifactHoldersData, ListArtifactHoldersError, ListArtifactRestorePointsData, ListArtifactRestorePointsError, ListArtifactsData, ListArtifactsError, ListAuthAccessTokensData, ListAuthAccessTokensError, ListAuthInvitationsData, ListAuthInvitationsError, ListAuthMembersData, ListAuthMembersError, ListAuthServiceAccountAccessTokensData, ListAuthServiceAccountAccessTokensError, ListAuthServiceAccountsData, ListAuthServiceAccountsError, ListAuthSessionsData, ListConnectorConnectionsData, ListConnectorConnectionsError, ListConnectorsData, ListDatasetRowsData, ListDatasetRowsError, ListDatasetsData, ListDatasetVersionsData, ListDatasetVersionsError, ListEventsData, ListEventsError, ListLogsData, ListLogsError, ListModelsData, ListObjectsData, ListObjectsError, ListObjectTypesData, ListObservedAgentThreadChildrenData, ListObservedAgentThreadChildrenError, ListObservedAgentThreadMessagesData, ListObservedAgentThreadMessagesError, ListObservedAgentThreadRunsData, ListObservedAgentThreadRunsError, ListPendingConnectorConnectionRunsData, ListPendingConnectorConnectionRunsError, ListPipelineRunsData, ListPipelineRunsError, ListPipelinesData, ListProjectionRunsData, ListProjectionRunsError, ListProjectionsData, ListRuleStatesData, ListRuleStatesError, ListRulesData, ListSharedAccessGrantsData, ListSharedAccessGrantsError, ListSyncRunsData, ListSyncRunsError, ListSyncsData, ListUsersData, ListUsersError, ListWebhookRunsData, ListWebhookRunsError, ListWorkflowInterventionsData, ListWorkflowInterventionsError, ListWorkflowRunsData, ListWorkflowRunsError, ListWorkflowsData, MoveAgentThreadToCloudData, MoveAgentThreadToCloudError, MoveAgentThreadToCloudResponse, MoveAgentThreadToComputerData, MoveAgentThreadToComputerError, MoveAgentThreadToComputerResponse, PostAgentThreadMessageData, PostAgentThreadMessageError, PostAgentThreadMessageResponse, PrintArtifactPdfData, PrintArtifactPdfError, PrintArtifactPdfResponse, QueryObjectLinksData, QueryObjectLinksError, QueryObjectLinksResponse, QueryObjectsData, QueryObjectsError, QueryObjectsResponse, ReactivateAuthMemberData, ReactivateAuthMemberError, ReactivateAuthMemberResponse, ReauthorizeConnectorConnectionData, ReauthorizeConnectorConnectionError, ReauthorizeConnectorConnectionResponse, RecreateAgentThreadSandboxData, RecreateAgentThreadSandboxError, RecreateAgentThreadSandboxResponse, RefreshAuthSessionData, RefreshAuthSessionError, RefreshAuthSessionResponse, ReleaseAgentComputerSessionData, ReleaseAgentComputerSessionError, RemoveAgentThreadParticipantData, RemoveAgentThreadParticipantError, RequestActionData, RequestActionError, RequestActionResponse, RequestPipelineRunData, RequestPipelineRunError, RequestPipelineRunResponse, RequestSyncRunData, RequestSyncRunError, RequestSyncRunResponse, RequestWorkflowRunData, RequestWorkflowRunError, RequestWorkflowRunResponse, ResolveArtifactCommentData, ResolveArtifactCommentError, ResolveArtifactCommentResponse, RestoreAgentThreadSandboxData, RestoreAgentThreadSandboxError, RestoreAgentThreadSandboxResponse, RestoreArtifactData, RestoreArtifactError, RestoreArtifactResponse, RetryAgentRunData, RetryAgentRunError, RetryAgentRunResponse, RevokeAuthAccessTokenData, RevokeAuthAccessTokenError, RevokeAuthAccessTokenResponse, RevokeAuthInvitationData, RevokeAuthInvitationError, RevokeAuthInvitationResponse, RevokeAuthServiceAccountAccessTokenData, RevokeAuthServiceAccountAccessTokenError, RevokeAuthServiceAccountAccessTokenResponse, RevokeAuthSessionData, RevokeAuthSessionError, RevokeAuthSessionResponse, RevokeConnectorConnectionData, RevokeConnectorConnectionError, RevokeConnectorConnectionResponse, RevokeSharedAccessGrantData, RevokeSharedAccessGrantError, RevokeSharedAccessGrantResponse, SaveAgentMemoryData, SaveAgentMemoryError, SaveAgentMemoryResponse, SearchObjectsData, SearchObjectsError, SelectConnectorConnectionRunAccountData, SelectConnectorConnectionRunAccountError, SelectConnectorConnectionRunAccountResponse, SetAgentThreadApprovalModeData, SetAgentThreadApprovalModeError, SetAgentThreadApprovalModeResponse, SetArtifactStateData, SetArtifactStateError, SetArtifactStateResponse, SetSharedAccessGuestNameData, SetSharedAccessGuestNameError, SetSharedAccessGuestNameResponse, SignFileUploadPartData, SignFileUploadPartError, SignFileUploadPartResponse, SignOutAllData, SignOutAllError, SignOutAllResponse, SignOutData, SignOutError, SignOutResponse, SignOutSharedAccessData, SignOutSharedAccessError, SignOutSharedAccessResponse, StartConnectorConnectionRunData, StartConnectorConnectionRunError, StartConnectorConnectionRunResponse, StopAgentBackgroundCommandData, StopAgentBackgroundCommandError, StopAgentBackgroundCommandResponse, SubmitWorkflowInterventionData, SubmitWorkflowInterventionError, SubmitWorkflowInterventionResponse, SuspendAuthMemberData, SuspendAuthMemberError, SuspendAuthMemberResponse, TranscribeAudioData, TranscribeAudioError, TranscribeAudioResponse, UpdateAgentPreferencesData, UpdateAgentPreferencesError, UpdateAgentPreferencesResponse, UpdateAgentThreadInboxItemData, UpdateAgentThreadInboxItemError, UpdateAgentThreadInboxItemResponse, UpdateAiLimitPolicyData, UpdateAiLimitPolicyError, UpdateAiLimitPolicyResponse, UpdateArtifactData, UpdateArtifactError, UpdateArtifactResponse, UpdateAuthMemberGroupsData, UpdateAuthMemberGroupsError, UpdateAuthMemberGroupsResponse, UpdateAuthProfileData, UpdateAuthProfileError, UpdateAuthProfileResponse, UploadFileContentData, UploadFileContentError, UploadFileContentResponse, UploadFileRawData, UploadFileRawError, UploadFileRawResponse, WithdrawAgentThreadInboxItemData, WithdrawAgentThreadInboxItemError } from "../types.gen";
3
+ import type { AbortFileUploadData, AbortFileUploadError, AbortFileUploadResponse, AddAgentThreadParticipantsData, AddAgentThreadParticipantsError, AddAgentThreadParticipantsResponse, AddArtifactCommentData, AddArtifactCommentError, AddArtifactCommentResponse, AddConnectorConnectionData, AddConnectorConnectionError, AddConnectorConnectionResponse, CancelAgentRunByIdData, CancelAgentRunByIdError, CancelAgentRunByIdResponse, CancelAgentRunData, CancelAgentRunError, CancelAgentRunResponse, CancelWorkflowInterventionData, CancelWorkflowInterventionError, CancelWorkflowInterventionResponse, CancelWorkflowRunData, CancelWorkflowRunError, CancelWorkflowRunResponse, CaptureActivityData, CaptureActivityError, CaptureActivityResponse, ClearArtifactStateData, ClearArtifactStateError, ClearArtifactStateResponse, CompleteFileUploadData, CompleteFileUploadError, CompleteFileUploadResponse, CountObjectsData, CountObjectsError, CountObjectsResponse, CreateAgentThreadData, CreateAgentThreadError, CreateAgentThreadResponse, CreateAiLimitPolicyData, CreateAiLimitPolicyError, CreateAiLimitPolicyResponse, CreateArtifactData, CreateArtifactError, CreateArtifactFrameData, CreateArtifactFrameError, CreateArtifactFrameResponse, CreateArtifactResponse, CreateAuthInvitationData, CreateAuthInvitationError, CreateAuthInvitationResponse, CreateAuthPersonalAccessTokenData, CreateAuthPersonalAccessTokenError, CreateAuthPersonalAccessTokenResponse, CreateAuthServiceAccountAccessTokenData, CreateAuthServiceAccountAccessTokenError, CreateAuthServiceAccountAccessTokenResponse, CreateAuthServiceAccountData, CreateAuthServiceAccountError, CreateAuthServiceAccountResponse, CreateDeviceAuthorizationData, CreateDeviceAuthorizationError, CreateDeviceAuthorizationResponse, CreateFileUploadData, CreateFileUploadError, CreateFileUploadResponse, DecideAgentApprovalData, DecideAgentApprovalError, DecideAgentApprovalResponse, DeleteAgentMemoryData, DeleteAgentMemoryError, DeleteAgentMemoryResponse, DeleteAiLimitPolicyData, DeleteAiLimitPolicyError, DeleteAiLimitPolicyResponse, DeleteArtifactCommentData, DeleteArtifactCommentError, DeleteArtifactCommentResponse, DeleteArtifactData, DeleteArtifactError, DeleteArtifactResponse, DeleteArtifactStateValueData, DeleteArtifactStateValueError, DeleteArtifactStateValueResponse, DisableAuthServiceAccountData, DisableAuthServiceAccountError, DisableAuthServiceAccountResponse, DisconnectConnectorConnectionData, DisconnectConnectorConnectionError, DisconnectConnectorConnectionResponse, EditAgentThreadMessageData, EditAgentThreadMessageError, EditAgentThreadMessageResponse, ExchangeDeviceAuthorizationData, ExchangeDeviceAuthorizationResponse, ExchangeSharedAccessData, ExchangeSharedAccessError, ExchangeSharedAccessResponse, ExistsObjectsData, ExistsObjectsError, ExistsObjectsResponse, FacetObjectsData, FacetObjectsError, FacetObjectsResponse, ForkAgentThreadData, ForkAgentThreadError, ForkAgentThreadResponse, FreezeArtifactVersionData, FreezeArtifactVersionError, FreezeArtifactVersionResponse, GenerateImagesData, GenerateImagesError, GenerateImagesResponse, GenerateSpeechData, GenerateSpeechError, GenerateSpeechResponse, GenerateTextData, GenerateTextError, GenerateTextResponse, GetActionData, GetActionRunData, GetActionRunError, GetActionRunFileContentData, GetActionRunFileContentResponse, GetActivityCalendarData, GetActivityCalendarError, GetActivityCaptureConfigData, GetActivityCaptureConfigError, GetActivitySummaryData, GetActivitySummaryError, GetActivityVisitTimelineData, GetActivityVisitTimelineError, GetAgentChildFileContentData, GetAgentChildFileContentResponse, GetAgentData, GetAgentMemoryData, GetAgentMemoryError, GetAgentMessageFileContentData, GetAgentMessageFileContentResponse, GetAgentPreferencesData, GetAgentPreferencesError, GetAgentRunData, GetAgentRunError, GetAgentThreadContextData, GetAgentThreadContextError, GetAgentThreadData, GetAgentThreadError, GetAiAccountingOverviewData, GetAiAccountingOverviewError, GetAiLimitStatusData, GetAiLimitStatusError, GetAiLimitSubjectOptionsData, GetAiLimitSubjectOptionsError, GetAiModelCallFileContentData, GetAiModelCallFileContentResponse, GetAiModelCallFilesData, GetArtifactBoardPreviewData, GetArtifactData, GetArtifactError, GetArtifactFileContentData, GetArtifactFileContentResponse, GetArtifactPdfData, GetArtifactQueryData, GetArtifactQueryError, GetArtifactRestorePointData, GetArtifactRestorePointError, GetArtifactRestorePointFileContentData, GetArtifactRestorePointFileContentResponse, GetArtifactStateData, GetArtifactStateError, GetArtifactVersionData, GetArtifactVersionError, GetAuthAccessManagementOptionsData, GetAuthAccessManagementOptionsError, GetAuthInvitationOptionsData, GetAuthInvitationOptionsError, GetAuthMembershipOptionsData, GetAuthMembershipOptionsError, GetAuthProfileData, GetAuthProfileError, GetAuthSessionData, GetBulkTelemetryHistoryData, GetBulkTelemetryHistoryError, GetBulkTelemetryHistoryResponse, GetConnectorConnectionRunData, GetConnectorConnectionRunError, GetConnectorData, GetDatasetData, GetDatasetError, GetDatasetVersionData, GetDatasetVersionError, GetDatasetVersionLineageData, GetDatasetVersionLineageError, GetLakeHealthData, GetLatestTelemetryData, GetLatestTelemetryError, GetObjectByUniquePropertyData, GetObjectByUniquePropertyError, GetObjectByUniquePropertyResponse, GetObjectData, GetObjectFileContentData, GetObjectFileContentResponse, GetObjectLineageData, GetObjectLinkLineageData, GetObjectLinkLineageError, GetObjectTypeData, GetObservedAgentChildFileContentData, GetObservedAgentChildFileContentResponse, GetObservedAgentMessageFileContentData, GetObservedAgentMessageFileContentResponse, GetObservedAgentThreadData, GetObservedAgentThreadError, GetPipelineData, GetPipelineRunData, GetPipelineRunError, GetProjectInfoData, GetProjectionData, GetProjectionRunData, GetProjectionRunError, GetRuleData, GetSharedAccessSessionData, GetSharedAccessSessionError, GetStatusData, GetSyncData, GetTelemetryHistoryData, GetTelemetryHistoryError, GetUserData, GetUserError, GetWorkflowAgentNodeExecutionData, GetWorkflowAgentNodeExecutionError, GetWorkflowData, GetWorkflowInterventionData, GetWorkflowInterventionError, GetWorkflowNodeRunFileContentData, GetWorkflowNodeRunFileContentResponse, GetWorkflowRunData, GetWorkflowRunError, GetWorkflowRunFileContentData, GetWorkflowRunFileContentResponse, HoldAgentComputerSessionData, HoldAgentComputerSessionError, HoldAgentComputerSessionResponse, IssueSharedAccessGrantData, IssueSharedAccessGrantError, IssueSharedAccessGrantResponse, ListActionRunsData, ListActionRunsError, ListActionsData, ListActivityConnectionsData, ListActivityConnectionsError, ListActivityUsersData, ListActivityUsersError, ListActivityVisitsData, ListActivityVisitsError, ListAgentApprovalsData, ListAgentApprovalsError, ListAgentComputersData, ListAgentMemoryRevisionsData, ListAgentMemoryRevisionsError, ListAgentThreadApprovalsData, ListAgentThreadApprovalsError, ListAgentThreadChildrenData, ListAgentThreadChildrenError, ListAgentThreadInboxData, ListAgentThreadInboxError, ListAgentThreadMessagesData, ListAgentThreadMessagesError, ListAgentThreadRunsData, ListAgentThreadRunsError, ListAgentThreadsData, ListAgentThreadsError, ListAiLimitPoliciesData, ListAiLimitPoliciesError, ListAiModelCallGroupsData, ListAiModelCallGroupsError, ListAiModelCallsData, ListAiModelCallsError, ListArtifactCommentsData, ListArtifactCommentsError, ListArtifactHoldersData, ListArtifactHoldersError, ListArtifactRestorePointsData, ListArtifactRestorePointsError, ListArtifactsData, ListArtifactsError, ListAuthAccessTokensData, ListAuthAccessTokensError, ListAuthInvitationsData, ListAuthInvitationsError, ListAuthMembersData, ListAuthMembersError, ListAuthServiceAccountAccessTokensData, ListAuthServiceAccountAccessTokensError, ListAuthServiceAccountsData, ListAuthServiceAccountsError, ListAuthSessionsData, ListConnectorAccountsData, ListConnectorConnectionSyncRunsData, ListConnectorConnectionsData, ListConnectorConnectionsError, ListConnectorsData, ListDatasetRowsData, ListDatasetRowsError, ListDatasetsData, ListDatasetVersionsData, ListDatasetVersionsError, ListEventsData, ListEventsError, ListLogsData, ListLogsError, ListModelsData, ListObjectsData, ListObjectsError, ListObjectTypesData, ListObservedAgentThreadChildrenData, ListObservedAgentThreadChildrenError, ListObservedAgentThreadMessagesData, ListObservedAgentThreadMessagesError, ListObservedAgentThreadRunsData, ListObservedAgentThreadRunsError, ListPendingConnectorConnectionRunsData, ListPendingConnectorConnectionRunsError, ListPipelineRunsData, ListPipelineRunsError, ListPipelinesData, ListProjectionRunsData, ListProjectionRunsError, ListProjectionsData, ListRuleStatesData, ListRuleStatesError, ListRulesData, ListSharedAccessGrantsData, ListSharedAccessGrantsError, ListSyncRunsData, ListSyncRunsError, ListSyncsData, ListUsersData, ListUsersError, ListWebhookRunsData, ListWebhookRunsError, ListWorkflowInterventionsData, ListWorkflowInterventionsError, ListWorkflowRunsData, ListWorkflowRunsError, ListWorkflowsData, MarkAgentThreadReadData, MarkAgentThreadReadError, MarkAgentThreadReadResponse, MoveAgentThreadToCloudData, MoveAgentThreadToCloudError, MoveAgentThreadToCloudResponse, MoveAgentThreadToComputerData, MoveAgentThreadToComputerError, MoveAgentThreadToComputerResponse, PostAgentThreadMessageData, PostAgentThreadMessageError, PostAgentThreadMessageResponse, PrintArtifactPdfData, PrintArtifactPdfError, PrintArtifactPdfResponse, QueryObjectLinksData, QueryObjectLinksError, QueryObjectLinksResponse, QueryObjectsData, QueryObjectsError, QueryObjectsResponse, ReactivateAuthMemberData, ReactivateAuthMemberError, ReactivateAuthMemberResponse, ReauthorizeConnectorConnectionData, ReauthorizeConnectorConnectionError, ReauthorizeConnectorConnectionResponse, RecreateAgentThreadSandboxData, RecreateAgentThreadSandboxError, RecreateAgentThreadSandboxResponse, RefreshAuthSessionData, RefreshAuthSessionError, RefreshAuthSessionResponse, ReleaseAgentComputerSessionData, ReleaseAgentComputerSessionError, RemoveAgentThreadParticipantData, RemoveAgentThreadParticipantError, RequestActionData, RequestActionError, RequestActionResponse, RequestPipelineRunData, RequestPipelineRunError, RequestPipelineRunResponse, RequestSyncRunData, RequestSyncRunError, RequestSyncRunResponse, RequestWorkflowRunData, RequestWorkflowRunError, RequestWorkflowRunResponse, ResolveArtifactCommentData, ResolveArtifactCommentError, ResolveArtifactCommentResponse, RestoreAgentThreadSandboxData, RestoreAgentThreadSandboxError, RestoreAgentThreadSandboxResponse, RestoreArtifactData, RestoreArtifactError, RestoreArtifactResponse, RetryAgentRunData, RetryAgentRunError, RetryAgentRunResponse, RevokeAuthAccessTokenData, RevokeAuthAccessTokenError, RevokeAuthAccessTokenResponse, RevokeAuthInvitationData, RevokeAuthInvitationError, RevokeAuthInvitationResponse, RevokeAuthServiceAccountAccessTokenData, RevokeAuthServiceAccountAccessTokenError, RevokeAuthServiceAccountAccessTokenResponse, RevokeAuthSessionData, RevokeAuthSessionError, RevokeAuthSessionResponse, RevokeConnectorConnectionData, RevokeConnectorConnectionError, RevokeConnectorConnectionResponse, RevokeSharedAccessGrantData, RevokeSharedAccessGrantError, RevokeSharedAccessGrantResponse, SaveAgentMemoryData, SaveAgentMemoryError, SaveAgentMemoryResponse, SearchObjectsData, SearchObjectsError, SelectConnectorConnectionRunAccountData, SelectConnectorConnectionRunAccountError, SelectConnectorConnectionRunAccountResponse, SetAgentThreadApprovalModeData, SetAgentThreadApprovalModeError, SetAgentThreadApprovalModeResponse, SetArtifactStateData, SetArtifactStateError, SetArtifactStateResponse, SetSharedAccessGuestNameData, SetSharedAccessGuestNameError, SetSharedAccessGuestNameResponse, SignFileUploadPartData, SignFileUploadPartError, SignFileUploadPartResponse, SignOutAllData, SignOutAllError, SignOutAllResponse, SignOutData, SignOutError, SignOutResponse, SignOutSharedAccessData, SignOutSharedAccessError, SignOutSharedAccessResponse, StartConnectorConnectionRunData, StartConnectorConnectionRunError, StartConnectorConnectionRunResponse, StopAgentBackgroundCommandData, StopAgentBackgroundCommandError, StopAgentBackgroundCommandResponse, SubmitWorkflowInterventionData, SubmitWorkflowInterventionError, SubmitWorkflowInterventionResponse, SuspendAuthMemberData, SuspendAuthMemberError, SuspendAuthMemberResponse, TranscribeAudioData, TranscribeAudioError, TranscribeAudioResponse, UpdateAgentPreferencesData, UpdateAgentPreferencesError, UpdateAgentPreferencesResponse, UpdateAgentThreadInboxItemData, UpdateAgentThreadInboxItemError, UpdateAgentThreadInboxItemResponse, UpdateAiLimitPolicyData, UpdateAiLimitPolicyError, UpdateAiLimitPolicyResponse, UpdateArtifactData, UpdateArtifactError, UpdateArtifactResponse, UpdateAuthMemberGroupsData, UpdateAuthMemberGroupsError, UpdateAuthMemberGroupsResponse, UpdateAuthProfileData, UpdateAuthProfileError, UpdateAuthProfileResponse, UploadFileContentData, UploadFileContentError, UploadFileContentResponse, UploadFileRawData, UploadFileRawError, UploadFileRawResponse, WithdrawAgentThreadInboxItemData, WithdrawAgentThreadInboxItemError } from "../types.gen";
4
4
  /**
5
5
  * Start device authorization
6
6
  */
@@ -1560,7 +1560,13 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
1560
1560
  imageOutputTokens?: number;
1561
1561
  audioOutputTokens?: number;
1562
1562
  outputImages?: number;
1563
- inputCharacters?: number;
1563
+ inputCharacters
1564
+ /**
1565
+ * Generate images with an image model
1566
+ */
1567
+ ? /**
1568
+ * Generate images with an image model
1569
+ */: number;
1564
1570
  reportingStatus: "complete" | "partial" | "unavailable";
1565
1571
  };
1566
1572
  usageCoverage: {
@@ -1992,7 +1998,13 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
1992
1998
  imageOutputTokens?: number;
1993
1999
  audioOutputTokens?: number;
1994
2000
  outputImages?: number;
1995
- inputCharacters?: number;
2001
+ inputCharacters
2002
+ /**
2003
+ * Generate images with an image model
2004
+ */
2005
+ ? /**
2006
+ * Generate images with an image model
2007
+ */: number;
1996
2008
  reportingStatus: "complete" | "partial" | "unavailable";
1997
2009
  };
1998
2010
  usageCoverage: {
@@ -2429,7 +2441,13 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
2429
2441
  imageOutputTokens?: number;
2430
2442
  audioOutputTokens?: number;
2431
2443
  outputImages?: number;
2432
- inputCharacters?: number;
2444
+ inputCharacters
2445
+ /**
2446
+ * Generate images with an image model
2447
+ */
2448
+ ? /**
2449
+ * Generate images with an image model
2450
+ */: number;
2433
2451
  reportingStatus: "complete" | "partial" | "unavailable";
2434
2452
  };
2435
2453
  usageCoverage: {
@@ -2872,7 +2890,13 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
2872
2890
  imageOutputTokens?: number;
2873
2891
  audioOutputTokens?: number;
2874
2892
  outputImages?: number;
2875
- inputCharacters?: number;
2893
+ inputCharacters
2894
+ /**
2895
+ * Generate images with an image model
2896
+ */
2897
+ ? /**
2898
+ * Generate images with an image model
2899
+ */: number;
2876
2900
  reportingStatus: "complete" | "partial" | "unavailable";
2877
2901
  };
2878
2902
  usageCoverage: {
@@ -3067,11 +3091,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
3067
3091
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3068
3092
  budgetTokens: number;
3069
3093
  };
3070
- responseModelId
3071
- /**
3072
- * Reauthorize a connector connection
3073
- */
3074
- ?: string;
3094
+ responseModelId?: string;
3075
3095
  responseId: string;
3076
3096
  providerIds: {
3077
3097
  requestId?: string;
@@ -3244,11 +3264,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
3244
3264
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3245
3265
  budgetTokens: number;
3246
3266
  };
3247
- responseModelId
3248
- /**
3249
- * Reauthorize a connector connection
3250
- */
3251
- ?: string;
3267
+ responseModelId?: string;
3252
3268
  responseId: string;
3253
3269
  providerIds: {
3254
3270
  requestId?: string;
@@ -3426,11 +3442,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
3426
3442
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3427
3443
  budgetTokens: number;
3428
3444
  };
3429
- responseModelId
3430
- /**
3431
- * Reauthorize a connector connection
3432
- */
3433
- ?: string;
3445
+ responseModelId?: string;
3434
3446
  responseId: string;
3435
3447
  providerIds: {
3436
3448
  requestId?: string;
@@ -3614,11 +3626,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
3614
3626
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3615
3627
  budgetTokens: number;
3616
3628
  };
3617
- responseModelId
3618
- /**
3619
- * Reauthorize a connector connection
3620
- */
3621
- ?: string;
3629
+ responseModelId?: string;
3622
3630
  responseId: string;
3623
3631
  providerIds: {
3624
3632
  requestId?: string;
@@ -3799,11 +3807,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
3799
3807
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3800
3808
  budgetTokens: number;
3801
3809
  };
3802
- responseModelId
3803
- /**
3804
- * Reauthorize a connector connection
3805
- */
3806
- ?: string;
3810
+ responseModelId?: string;
3807
3811
  responseId: string;
3808
3812
  providerIds: {
3809
3813
  requestId?: string;
@@ -3976,11 +3980,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
3976
3980
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3977
3981
  budgetTokens: number;
3978
3982
  };
3979
- responseModelId
3980
- /**
3981
- * Reauthorize a connector connection
3982
- */
3983
- ?: string;
3983
+ responseModelId?: string;
3984
3984
  responseId: string;
3985
3985
  providerIds: {
3986
3986
  requestId?: string;
@@ -4158,11 +4158,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
4158
4158
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
4159
4159
  budgetTokens: number;
4160
4160
  };
4161
- responseModelId
4162
- /**
4163
- * Reauthorize a connector connection
4164
- */
4165
- ?: string;
4161
+ responseModelId?: string;
4166
4162
  responseId: string;
4167
4163
  providerIds: {
4168
4164
  requestId?: string;
@@ -4339,11 +4335,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
4339
4335
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
4340
4336
  budgetTokens: number;
4341
4337
  };
4342
- responseModelId
4343
- /**
4344
- * Reauthorize a connector connection
4345
- */
4346
- ?: string;
4338
+ responseModelId?: string;
4347
4339
  responseId: string;
4348
4340
  providerIds: {
4349
4341
  requestId?: string;
@@ -4523,11 +4515,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
4523
4515
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
4524
4516
  budgetTokens: number;
4525
4517
  };
4526
- responseModelId
4527
- /**
4528
- * Reauthorize a connector connection
4529
- */
4530
- ?: string;
4518
+ responseModelId?: string;
4531
4519
  responseId: string;
4532
4520
  providerIds: {
4533
4521
  requestId?: string;
@@ -9435,6 +9423,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9435
9423
  id: string;
9436
9424
  projectId: string;
9437
9425
  syncId: string;
9426
+ connectionId?: string;
9438
9427
  datasetId: string;
9439
9428
  mode: "snapshot" | "append" | "merge";
9440
9429
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9450,7 +9439,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9450
9439
  expectedLatestVersionId?: string;
9451
9440
  commitMessage?: string;
9452
9441
  error?: {
9453
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
9442
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9454
9443
  message: string;
9455
9444
  retryable: boolean;
9456
9445
  at: string;
@@ -9462,6 +9451,14 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9462
9451
  truncated?: true;
9463
9452
  };
9464
9453
  } | null;
9454
+ accounts?: {
9455
+ total: number;
9456
+ running: number;
9457
+ needsReconnecting: number;
9458
+ failing: number;
9459
+ synced: number;
9460
+ lastSyncedAt?: string;
9461
+ };
9465
9462
  }[], Error, {
9466
9463
  id: string;
9467
9464
  mode: "snapshot" | "append" | "merge";
@@ -9494,6 +9491,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9494
9491
  id: string;
9495
9492
  projectId: string;
9496
9493
  syncId: string;
9494
+ connectionId?: string;
9497
9495
  datasetId: string;
9498
9496
  mode: "snapshot" | "append" | "merge";
9499
9497
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9509,7 +9507,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9509
9507
  expectedLatestVersionId?: string;
9510
9508
  commitMessage?: string;
9511
9509
  error?: {
9512
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
9510
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9513
9511
  message: string;
9514
9512
  retryable: boolean;
9515
9513
  at: string;
@@ -9521,6 +9519,14 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9521
9519
  truncated?: true;
9522
9520
  };
9523
9521
  } | null;
9522
+ accounts?: {
9523
+ total: number;
9524
+ running: number;
9525
+ needsReconnecting: number;
9526
+ failing: number;
9527
+ synced: number;
9528
+ lastSyncedAt?: string;
9529
+ };
9524
9530
  }[], [Pick<Options<ListSyncsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
9525
9531
  _id: string;
9526
9532
  _infinite?: boolean;
@@ -9558,6 +9564,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9558
9564
  id: string;
9559
9565
  projectId: string;
9560
9566
  syncId: string;
9567
+ connectionId?: string;
9561
9568
  datasetId: string;
9562
9569
  mode: "snapshot" | "append" | "merge";
9563
9570
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9573,7 +9580,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9573
9580
  expectedLatestVersionId?: string;
9574
9581
  commitMessage?: string;
9575
9582
  error?: {
9576
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
9583
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9577
9584
  message: string;
9578
9585
  retryable: boolean;
9579
9586
  at: string;
@@ -9585,6 +9592,14 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9585
9592
  truncated?: true;
9586
9593
  };
9587
9594
  } | null;
9595
+ accounts?: {
9596
+ total: number;
9597
+ running: number;
9598
+ needsReconnecting: number;
9599
+ failing: number;
9600
+ synced: number;
9601
+ lastSyncedAt?: string;
9602
+ };
9588
9603
  }[], [Pick<Options<ListSyncsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
9589
9604
  _id: string;
9590
9605
  _infinite?: boolean;
@@ -9628,6 +9643,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9628
9643
  id: string;
9629
9644
  projectId: string;
9630
9645
  syncId: string;
9646
+ connectionId?: string;
9631
9647
  datasetId: string;
9632
9648
  mode: "snapshot" | "append" | "merge";
9633
9649
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9643,7 +9659,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9643
9659
  expectedLatestVersionId?: string;
9644
9660
  commitMessage?: string;
9645
9661
  error?: {
9646
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
9662
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9647
9663
  message: string;
9648
9664
  retryable: boolean;
9649
9665
  at: string;
@@ -9655,6 +9671,14 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
9655
9671
  truncated?: true;
9656
9672
  };
9657
9673
  } | null;
9674
+ accounts?: {
9675
+ total: number;
9676
+ running: number;
9677
+ needsReconnecting: number;
9678
+ failing: number;
9679
+ synced: number;
9680
+ lastSyncedAt?: string;
9681
+ };
9658
9682
  }[];
9659
9683
  [dataTagErrorSymbol]: Error;
9660
9684
  };
@@ -9699,6 +9723,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9699
9723
  id: string;
9700
9724
  projectId: string;
9701
9725
  syncId: string;
9726
+ connectionId?: string;
9702
9727
  datasetId: string;
9703
9728
  mode: "snapshot" | "append" | "merge";
9704
9729
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9714,7 +9739,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9714
9739
  expectedLatestVersionId?: string;
9715
9740
  commitMessage?: string;
9716
9741
  error?: {
9717
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
9742
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9718
9743
  message: string;
9719
9744
  retryable: boolean;
9720
9745
  at: string;
@@ -9726,6 +9751,14 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9726
9751
  truncated?: true;
9727
9752
  };
9728
9753
  } | null;
9754
+ accounts?: {
9755
+ total: number;
9756
+ running: number;
9757
+ needsReconnecting: number;
9758
+ failing: number;
9759
+ synced: number;
9760
+ lastSyncedAt?: string;
9761
+ };
9729
9762
  }, {
9730
9763
  error: string;
9731
9764
  }, {
@@ -9760,6 +9793,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9760
9793
  id: string;
9761
9794
  projectId: string;
9762
9795
  syncId: string;
9796
+ connectionId?: string;
9763
9797
  datasetId: string;
9764
9798
  mode: "snapshot" | "append" | "merge";
9765
9799
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9775,7 +9809,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9775
9809
  expectedLatestVersionId?: string;
9776
9810
  commitMessage?: string;
9777
9811
  error?: {
9778
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
9812
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9779
9813
  message: string;
9780
9814
  retryable: boolean;
9781
9815
  at: string;
@@ -9787,6 +9821,14 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9787
9821
  truncated?: true;
9788
9822
  };
9789
9823
  } | null;
9824
+ accounts?: {
9825
+ total: number;
9826
+ running: number;
9827
+ needsReconnecting: number;
9828
+ failing: number;
9829
+ synced: number;
9830
+ lastSyncedAt?: string;
9831
+ };
9790
9832
  }, [Pick<Options<GetSyncData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
9791
9833
  _id: string;
9792
9834
  _infinite?: boolean;
@@ -9824,6 +9866,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9824
9866
  id: string;
9825
9867
  projectId: string;
9826
9868
  syncId: string;
9869
+ connectionId?: string;
9827
9870
  datasetId: string;
9828
9871
  mode: "snapshot" | "append" | "merge";
9829
9872
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9839,7 +9882,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9839
9882
  expectedLatestVersionId?: string;
9840
9883
  commitMessage?: string;
9841
9884
  error?: {
9842
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
9885
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9843
9886
  message: string;
9844
9887
  retryable: boolean;
9845
9888
  at: string;
@@ -9851,6 +9894,14 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9851
9894
  truncated?: true;
9852
9895
  };
9853
9896
  } | null;
9897
+ accounts?: {
9898
+ total: number;
9899
+ running: number;
9900
+ needsReconnecting: number;
9901
+ failing: number;
9902
+ synced: number;
9903
+ lastSyncedAt?: string;
9904
+ };
9854
9905
  }, [Pick<Options<GetSyncData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
9855
9906
  _id: string;
9856
9907
  _infinite?: boolean;
@@ -9894,6 +9945,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9894
9945
  id: string;
9895
9946
  projectId: string;
9896
9947
  syncId: string;
9948
+ connectionId?: string;
9897
9949
  datasetId: string;
9898
9950
  mode: "snapshot" | "append" | "merge";
9899
9951
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9909,7 +9961,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9909
9961
  expectedLatestVersionId?: string;
9910
9962
  commitMessage?: string;
9911
9963
  error?: {
9912
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
9964
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9913
9965
  message: string;
9914
9966
  retryable: boolean;
9915
9967
  at: string;
@@ -9921,12 +9973,408 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
9921
9973
  truncated?: true;
9922
9974
  };
9923
9975
  } | null;
9976
+ accounts?: {
9977
+ total: number;
9978
+ running: number;
9979
+ needsReconnecting: number;
9980
+ failing: number;
9981
+ synced: number;
9982
+ lastSyncedAt?: string;
9983
+ };
9924
9984
  };
9925
9985
  [dataTagErrorSymbol]: {
9926
9986
  error: string;
9927
9987
  };
9928
9988
  };
9929
9989
  };
9990
+ export declare const listConnectorAccountsQueryKey: (options: Options<ListConnectorAccountsData>) => [Pick<Options<ListConnectorAccountsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
9991
+ _id: string;
9992
+ _infinite?: boolean;
9993
+ tags?: ReadonlyArray<string>;
9994
+ }];
9995
+ /**
9996
+ * List a connector's accounts and how they synced
9997
+ *
9998
+ * On an OAuth connector, each connected account you may see, with the latest run of each of its syncs you may run. Empty for a static connector.
9999
+ */
10000
+ export declare const listConnectorAccountsOptions: (options: Options<ListConnectorAccountsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
10001
+ accounts: Array<{
10002
+ connection: {
10003
+ id: string;
10004
+ owner: {
10005
+ type: "project";
10006
+ } | {
10007
+ type: "user";
10008
+ id: string;
10009
+ };
10010
+ slot: string;
10011
+ account: {
10012
+ id: string;
10013
+ label: string;
10014
+ };
10015
+ };
10016
+ latestRuns: Array<{
10017
+ id: string;
10018
+ projectId: string;
10019
+ syncId: string;
10020
+ connectionId?: string;
10021
+ datasetId: string;
10022
+ mode: "snapshot" | "append" | "merge";
10023
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10024
+ attempt: number;
10025
+ queuedAt: string;
10026
+ startedAt?: string;
10027
+ finishedAt?: string;
10028
+ rowsRead?: number;
10029
+ output?: {
10030
+ datasetId: string;
10031
+ versionId: string;
10032
+ };
10033
+ expectedLatestVersionId?: string;
10034
+ commitMessage?: string;
10035
+ error?: {
10036
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10037
+ message: string;
10038
+ retryable: boolean;
10039
+ at: string;
10040
+ details?: string | number | boolean | Array<unknown> | {
10041
+ [key: string]: unknown;
10042
+ } | null;
10043
+ httpStatus?: number;
10044
+ redacted?: true;
10045
+ truncated?: true;
10046
+ };
10047
+ }>;
10048
+ }>;
10049
+ }, Error, {
10050
+ accounts: Array<{
10051
+ connection: {
10052
+ id: string;
10053
+ owner: {
10054
+ type: "project";
10055
+ } | {
10056
+ type: "user";
10057
+ id: string;
10058
+ };
10059
+ slot: string;
10060
+ account: {
10061
+ id: string;
10062
+ label: string;
10063
+ };
10064
+ };
10065
+ latestRuns: Array<{
10066
+ id: string;
10067
+ projectId: string;
10068
+ syncId: string;
10069
+ connectionId?: string;
10070
+ datasetId: string;
10071
+ mode: "snapshot" | "append" | "merge";
10072
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10073
+ attempt: number;
10074
+ queuedAt: string;
10075
+ startedAt?: string;
10076
+ finishedAt?: string;
10077
+ rowsRead?: number;
10078
+ output?: {
10079
+ datasetId: string;
10080
+ versionId: string;
10081
+ };
10082
+ expectedLatestVersionId?: string;
10083
+ commitMessage?: string;
10084
+ error?: {
10085
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10086
+ message: string;
10087
+ retryable: boolean;
10088
+ at: string;
10089
+ details?: string | number | boolean | Array<unknown> | {
10090
+ [key: string]: unknown;
10091
+ } | null;
10092
+ httpStatus?: number;
10093
+ redacted?: true;
10094
+ truncated?: true;
10095
+ };
10096
+ }>;
10097
+ }>;
10098
+ }, [Pick<Options<ListConnectorAccountsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10099
+ _id: string;
10100
+ _infinite?: boolean;
10101
+ tags?: ReadonlyArray<string>;
10102
+ }]>, "queryFn"> & {
10103
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
10104
+ accounts: Array<{
10105
+ connection: {
10106
+ id: string;
10107
+ owner: {
10108
+ type: "project";
10109
+ } | {
10110
+ type: "user";
10111
+ id: string;
10112
+ };
10113
+ slot: string;
10114
+ account: {
10115
+ id: string;
10116
+ label: string;
10117
+ };
10118
+ };
10119
+ latestRuns: Array<{
10120
+ id: string;
10121
+ projectId: string;
10122
+ syncId: string;
10123
+ connectionId?: string;
10124
+ datasetId: string;
10125
+ mode: "snapshot" | "append" | "merge";
10126
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10127
+ attempt: number;
10128
+ queuedAt: string;
10129
+ startedAt?: string;
10130
+ finishedAt?: string;
10131
+ rowsRead?: number;
10132
+ output?: {
10133
+ datasetId: string;
10134
+ versionId: string;
10135
+ };
10136
+ expectedLatestVersionId?: string;
10137
+ commitMessage?: string;
10138
+ error?: {
10139
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10140
+ message: string;
10141
+ retryable: boolean;
10142
+ at: string;
10143
+ details?: string | number | boolean | Array<unknown> | {
10144
+ [key: string]: unknown;
10145
+ } | null;
10146
+ httpStatus?: number;
10147
+ redacted?: true;
10148
+ truncated?: true;
10149
+ };
10150
+ }>;
10151
+ }>;
10152
+ }, [Pick<Options<ListConnectorAccountsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10153
+ _id: string;
10154
+ _infinite?: boolean;
10155
+ tags?: ReadonlyArray<string>;
10156
+ }], never> | undefined;
10157
+ } & {
10158
+ queryKey: [Pick<Options<ListConnectorAccountsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10159
+ _id: string;
10160
+ _infinite?: boolean;
10161
+ tags?: ReadonlyArray<string>;
10162
+ }] & {
10163
+ [dataTagSymbol]: {
10164
+ accounts: Array<{
10165
+ connection: {
10166
+ id: string;
10167
+ owner: {
10168
+ type: "project";
10169
+ } | {
10170
+ type: "user";
10171
+ id: string;
10172
+ };
10173
+ slot: string;
10174
+ account: {
10175
+ id: string;
10176
+ label: string;
10177
+ };
10178
+ };
10179
+ latestRuns: Array<{
10180
+ id: string;
10181
+ projectId: string;
10182
+ syncId: string;
10183
+ connectionId?: string;
10184
+ datasetId: string;
10185
+ mode: "snapshot" | "append" | "merge";
10186
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10187
+ attempt: number;
10188
+ queuedAt: string;
10189
+ startedAt?: string;
10190
+ finishedAt?: string;
10191
+ rowsRead?: number;
10192
+ output?: {
10193
+ datasetId: string;
10194
+ versionId: string;
10195
+ };
10196
+ expectedLatestVersionId?: string;
10197
+ commitMessage?: string;
10198
+ error?: {
10199
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10200
+ message: string;
10201
+ retryable: boolean;
10202
+ at: string;
10203
+ details?: string | number | boolean | Array<unknown> | {
10204
+ [key: string]: unknown;
10205
+ } | null;
10206
+ httpStatus?: number;
10207
+ redacted?: true;
10208
+ truncated?: true;
10209
+ };
10210
+ }>;
10211
+ }>;
10212
+ };
10213
+ [dataTagErrorSymbol]: Error;
10214
+ };
10215
+ };
10216
+ export declare const listConnectorConnectionSyncRunsQueryKey: (options: Options<ListConnectorConnectionSyncRunsData>) => [Pick<Options<ListConnectorConnectionSyncRunsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10217
+ _id: string;
10218
+ _infinite?: boolean;
10219
+ tags?: ReadonlyArray<string>;
10220
+ }];
10221
+ /**
10222
+ * Latest sync runs of a connection
10223
+ *
10224
+ * The latest run of each sync of one connection: your own, or anyone's with can.manage on its connector. Empty for a connection you don't see.
10225
+ */
10226
+ export declare const listConnectorConnectionSyncRunsOptions: (options: Options<ListConnectorConnectionSyncRunsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
10227
+ runs: Array<{
10228
+ id: string;
10229
+ projectId: string;
10230
+ syncId: string;
10231
+ connectionId?: string;
10232
+ datasetId: string;
10233
+ mode: "snapshot" | "append" | "merge";
10234
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10235
+ attempt: number;
10236
+ queuedAt: string;
10237
+ startedAt?: string;
10238
+ finishedAt?: string;
10239
+ rowsRead?: number;
10240
+ output?: {
10241
+ datasetId: string;
10242
+ versionId: string;
10243
+ };
10244
+ expectedLatestVersionId?: string;
10245
+ commitMessage?: string;
10246
+ error?: {
10247
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10248
+ message: string;
10249
+ retryable: boolean;
10250
+ at: string;
10251
+ details?: string | number | boolean | Array<unknown> | {
10252
+ [key: string]: unknown;
10253
+ } | null;
10254
+ httpStatus?: number;
10255
+ redacted?: true;
10256
+ truncated?: true;
10257
+ };
10258
+ }>;
10259
+ }, Error, {
10260
+ runs: Array<{
10261
+ id: string;
10262
+ projectId: string;
10263
+ syncId: string;
10264
+ connectionId?: string;
10265
+ datasetId: string;
10266
+ mode: "snapshot" | "append" | "merge";
10267
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10268
+ attempt: number;
10269
+ queuedAt: string;
10270
+ startedAt?: string;
10271
+ finishedAt?: string;
10272
+ rowsRead?: number;
10273
+ output?: {
10274
+ datasetId: string;
10275
+ versionId: string;
10276
+ };
10277
+ expectedLatestVersionId?: string;
10278
+ commitMessage?: string;
10279
+ error?: {
10280
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10281
+ message: string;
10282
+ retryable: boolean;
10283
+ at: string;
10284
+ details?: string | number | boolean | Array<unknown> | {
10285
+ [key: string]: unknown;
10286
+ } | null;
10287
+ httpStatus?: number;
10288
+ redacted?: true;
10289
+ truncated?: true;
10290
+ };
10291
+ }>;
10292
+ }, [Pick<Options<ListConnectorConnectionSyncRunsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10293
+ _id: string;
10294
+ _infinite?: boolean;
10295
+ tags?: ReadonlyArray<string>;
10296
+ }]>, "queryFn"> & {
10297
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
10298
+ runs: Array<{
10299
+ id: string;
10300
+ projectId: string;
10301
+ syncId: string;
10302
+ connectionId?: string;
10303
+ datasetId: string;
10304
+ mode: "snapshot" | "append" | "merge";
10305
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10306
+ attempt: number;
10307
+ queuedAt: string;
10308
+ startedAt?: string;
10309
+ finishedAt?: string;
10310
+ rowsRead?: number;
10311
+ output?: {
10312
+ datasetId: string;
10313
+ versionId: string;
10314
+ };
10315
+ expectedLatestVersionId?: string;
10316
+ commitMessage?: string;
10317
+ error?: {
10318
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10319
+ message: string;
10320
+ retryable: boolean;
10321
+ at: string;
10322
+ details?: string | number | boolean | Array<unknown> | {
10323
+ [key: string]: unknown;
10324
+ } | null;
10325
+ httpStatus?: number;
10326
+ redacted?: true;
10327
+ truncated?: true;
10328
+ };
10329
+ }>;
10330
+ }, [Pick<Options<ListConnectorConnectionSyncRunsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10331
+ _id: string;
10332
+ _infinite?: boolean;
10333
+ tags?: ReadonlyArray<string>;
10334
+ }], never> | undefined;
10335
+ } & {
10336
+ queryKey: [Pick<Options<ListConnectorConnectionSyncRunsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10337
+ _id: string;
10338
+ _infinite?: boolean;
10339
+ tags?: ReadonlyArray<string>;
10340
+ }] & {
10341
+ [dataTagSymbol]: {
10342
+ runs: Array<{
10343
+ id: string;
10344
+ projectId: string;
10345
+ syncId: string;
10346
+ connectionId?: string;
10347
+ datasetId: string;
10348
+ mode: "snapshot" | "append" | "merge";
10349
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10350
+ attempt: number;
10351
+ queuedAt: string;
10352
+ startedAt?: string;
10353
+ finishedAt?: string;
10354
+ rowsRead?: number;
10355
+ output?: {
10356
+ datasetId: string;
10357
+ versionId: string;
10358
+ };
10359
+ expectedLatestVersionId?: string;
10360
+ commitMessage?: string;
10361
+ error?: {
10362
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10363
+ message: string;
10364
+ retryable: boolean;
10365
+ at: string;
10366
+ details?: string | number | boolean | Array<unknown> | {
10367
+ [key: string]: unknown;
10368
+ } | null;
10369
+ httpStatus?: number;
10370
+ redacted?: true;
10371
+ truncated?: true;
10372
+ };
10373
+ }>;
10374
+ };
10375
+ [dataTagErrorSymbol]: Error;
10376
+ };
10377
+ };
9930
10378
  export declare const listSyncRunsQueryKey: (options?: Options<ListSyncRunsData>) => [Pick<Options<ListSyncRunsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
9931
10379
  _id: string;
9932
10380
  _infinite?: boolean;
@@ -9940,6 +10388,7 @@ export declare const listSyncRunsOptions: (options?: Options<ListSyncRunsData>)
9940
10388
  id: string;
9941
10389
  projectId: string;
9942
10390
  syncId: string;
10391
+ connectionId?: string;
9943
10392
  datasetId: string;
9944
10393
  mode: "snapshot" | "append" | "merge";
9945
10394
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9955,7 +10404,7 @@ export declare const listSyncRunsOptions: (options?: Options<ListSyncRunsData>)
9955
10404
  expectedLatestVersionId?: string;
9956
10405
  commitMessage?: string;
9957
10406
  error?: {
9958
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10407
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9959
10408
  message: string;
9960
10409
  retryable: boolean;
9961
10410
  at: string;
@@ -9974,6 +10423,7 @@ export declare const listSyncRunsOptions: (options?: Options<ListSyncRunsData>)
9974
10423
  id: string;
9975
10424
  projectId: string;
9976
10425
  syncId: string;
10426
+ connectionId?: string;
9977
10427
  datasetId: string;
9978
10428
  mode: "snapshot" | "append" | "merge";
9979
10429
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -9989,7 +10439,7 @@ export declare const listSyncRunsOptions: (options?: Options<ListSyncRunsData>)
9989
10439
  expectedLatestVersionId?: string;
9990
10440
  commitMessage?: string;
9991
10441
  error?: {
9992
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10442
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
9993
10443
  message: string;
9994
10444
  retryable: boolean;
9995
10445
  at: string;
@@ -10013,6 +10463,7 @@ export declare const listSyncRunsOptions: (options?: Options<ListSyncRunsData>)
10013
10463
  id: string;
10014
10464
  projectId: string;
10015
10465
  syncId: string;
10466
+ connectionId?: string;
10016
10467
  datasetId: string;
10017
10468
  mode: "snapshot" | "append" | "merge";
10018
10469
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -10028,7 +10479,7 @@ export declare const listSyncRunsOptions: (options?: Options<ListSyncRunsData>)
10028
10479
  expectedLatestVersionId?: string;
10029
10480
  commitMessage?: string;
10030
10481
  error?: {
10031
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10482
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10032
10483
  message: string;
10033
10484
  retryable: boolean;
10034
10485
  at: string;
@@ -10058,6 +10509,7 @@ export declare const listSyncRunsOptions: (options?: Options<ListSyncRunsData>)
10058
10509
  id: string;
10059
10510
  projectId: string;
10060
10511
  syncId: string;
10512
+ connectionId?: string;
10061
10513
  datasetId: string;
10062
10514
  mode: "snapshot" | "append" | "merge";
10063
10515
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -10073,7 +10525,7 @@ export declare const listSyncRunsOptions: (options?: Options<ListSyncRunsData>)
10073
10525
  expectedLatestVersionId?: string;
10074
10526
  commitMessage?: string;
10075
10527
  error?: {
10076
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10528
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10077
10529
  message: string;
10078
10530
  retryable: boolean;
10079
10531
  at: string;
@@ -10100,6 +10552,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10100
10552
  id: string;
10101
10553
  projectId: string;
10102
10554
  syncId: string;
10555
+ connectionId?: string;
10103
10556
  datasetId: string;
10104
10557
  mode: "snapshot" | "append" | "merge";
10105
10558
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -10115,7 +10568,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10115
10568
  expectedLatestVersionId?: string;
10116
10569
  commitMessage?: string;
10117
10570
  error?: {
10118
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10571
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10119
10572
  message: string;
10120
10573
  retryable: boolean;
10121
10574
  at: string;
@@ -10134,6 +10587,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10134
10587
  id: string;
10135
10588
  projectId: string;
10136
10589
  syncId: string;
10590
+ connectionId?: string;
10137
10591
  datasetId: string;
10138
10592
  mode: "snapshot" | "append" | "merge";
10139
10593
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -10149,7 +10603,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10149
10603
  expectedLatestVersionId?: string;
10150
10604
  commitMessage?: string;
10151
10605
  error?: {
10152
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10606
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10153
10607
  message: string;
10154
10608
  retryable: boolean;
10155
10609
  at: string;
@@ -10173,6 +10627,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10173
10627
  id: string;
10174
10628
  projectId: string;
10175
10629
  syncId: string;
10630
+ connectionId?: string;
10176
10631
  datasetId: string;
10177
10632
  mode: "snapshot" | "append" | "merge";
10178
10633
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -10188,7 +10643,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10188
10643
  expectedLatestVersionId?: string;
10189
10644
  commitMessage?: string;
10190
10645
  error?: {
10191
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10646
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10192
10647
  message: string;
10193
10648
  retryable: boolean;
10194
10649
  at: string;
@@ -10211,6 +10666,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10211
10666
  id: string;
10212
10667
  projectId: string;
10213
10668
  syncId: string;
10669
+ connectionId?: string;
10214
10670
  datasetId: string;
10215
10671
  mode: "snapshot" | "append" | "merge";
10216
10672
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -10226,7 +10682,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10226
10682
  expectedLatestVersionId?: string;
10227
10683
  commitMessage?: string;
10228
10684
  error?: {
10229
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10685
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10230
10686
  message: string;
10231
10687
  retryable: boolean;
10232
10688
  at: string;
@@ -10252,6 +10708,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10252
10708
  id: string;
10253
10709
  projectId: string;
10254
10710
  syncId: string;
10711
+ connectionId?: string;
10255
10712
  datasetId: string;
10256
10713
  mode: "snapshot" | "append" | "merge";
10257
10714
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -10267,7 +10724,7 @@ export declare const listSyncRunsInfiniteOptions: (options?: Options<ListSyncRun
10267
10724
  expectedLatestVersionId?: string;
10268
10725
  commitMessage?: string;
10269
10726
  error?: {
10270
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
10727
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
10271
10728
  message: string;
10272
10729
  retryable: boolean;
10273
10730
  at: string;
@@ -13373,17 +13830,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
13373
13830
  cacheWriteInputTokens?: number;
13374
13831
  textOutputTokens?: number;
13375
13832
  reasoningOutputTokens?: number;
13376
- audioDurationMs
13377
- /**
13378
- * Print a designed document to PDF
13379
- *
13380
- * Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
13381
- */
13382
- ? /**
13383
- * Print a designed document to PDF
13384
- *
13385
- * Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
13386
- */: number;
13833
+ audioDurationMs?: number;
13387
13834
  imageOutputTokens?: number;
13388
13835
  audioOutputTokens?: number;
13389
13836
  outputImages?: number;
@@ -13487,17 +13934,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
13487
13934
  cacheWriteInputTokens?: number;
13488
13935
  textOutputTokens?: number;
13489
13936
  reasoningOutputTokens?: number;
13490
- audioDurationMs
13491
- /**
13492
- * Print a designed document to PDF
13493
- *
13494
- * Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
13495
- */
13496
- ? /**
13497
- * Print a designed document to PDF
13498
- *
13499
- * Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
13500
- */: number;
13937
+ audioDurationMs?: number;
13501
13938
  imageOutputTokens?: number;
13502
13939
  audioOutputTokens?: number;
13503
13940
  outputImages?: number;
@@ -13606,17 +14043,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
13606
14043
  cacheWriteInputTokens?: number;
13607
14044
  textOutputTokens?: number;
13608
14045
  reasoningOutputTokens?: number;
13609
- audioDurationMs
13610
- /**
13611
- * Print a designed document to PDF
13612
- *
13613
- * Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
13614
- */
13615
- ? /**
13616
- * Print a designed document to PDF
13617
- *
13618
- * Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
13619
- */: number;
14046
+ audioDurationMs?: number;
13620
14047
  imageOutputTokens?: number;
13621
14048
  audioOutputTokens?: number;
13622
14049
  outputImages?: number;
@@ -13731,17 +14158,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
13731
14158
  cacheWriteInputTokens?: number;
13732
14159
  textOutputTokens?: number;
13733
14160
  reasoningOutputTokens?: number;
13734
- audioDurationMs
13735
- /**
13736
- * Print a designed document to PDF
13737
- *
13738
- * Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
13739
- */
13740
- ? /**
13741
- * Print a designed document to PDF
13742
- *
13743
- * Answers ready once the version is printed, and printing until then, having asked for it: ask again after a few seconds, then get it. Failed with why when it could not be printed; retry=true asks again. A document that shows live data answers with a key: ask again and get it with that key, which names the values the first ask printed. It prints as its stylesheets' @page rule lays it out, in a sandbox of the project. Whoever reads the artifact may ask. 400 invalid_artifact when the version is not a designed document; 501 pdf_unavailable in a project without sandboxes.
13744
- */: number;
14161
+ audioDurationMs?: number;
13745
14162
  imageOutputTokens?: number;
13746
14163
  audioOutputTokens?: number;
13747
14164
  outputImages?: number;
@@ -18850,6 +19267,24 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
18850
19267
  messageCount: number;
18851
19268
  createdAt: string;
18852
19269
  updatedAt: string;
19270
+ read?: {
19271
+ threadId: string;
19272
+ throughSeq: number;
19273
+ headSeq: number;
19274
+ unread: number;
19275
+ readAt?: string;
19276
+ };
19277
+ lastRun?: {
19278
+ id: string;
19279
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
19280
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
19281
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
19282
+ completedAt?: string;
19283
+ requestedBy?: {
19284
+ type: "user" | "serviceAccount";
19285
+ id: string;
19286
+ };
19287
+ };
18853
19288
  approvalMode?: "manual" | "accept-edits" | "auto";
18854
19289
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
18855
19290
  }>;
@@ -18921,6 +19356,24 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
18921
19356
  messageCount: number;
18922
19357
  createdAt: string;
18923
19358
  updatedAt: string;
19359
+ read?: {
19360
+ threadId: string;
19361
+ throughSeq: number;
19362
+ headSeq: number;
19363
+ unread: number;
19364
+ readAt?: string;
19365
+ };
19366
+ lastRun?: {
19367
+ id: string;
19368
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
19369
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
19370
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
19371
+ completedAt?: string;
19372
+ requestedBy?: {
19373
+ type: "user" | "serviceAccount";
19374
+ id: string;
19375
+ };
19376
+ };
18924
19377
  approvalMode?: "manual" | "accept-edits" | "auto";
18925
19378
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
18926
19379
  }>;
@@ -18997,6 +19450,24 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
18997
19450
  messageCount: number;
18998
19451
  createdAt: string;
18999
19452
  updatedAt: string;
19453
+ read?: {
19454
+ threadId: string;
19455
+ throughSeq: number;
19456
+ headSeq: number;
19457
+ unread: number;
19458
+ readAt?: string;
19459
+ };
19460
+ lastRun?: {
19461
+ id: string;
19462
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
19463
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
19464
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
19465
+ completedAt?: string;
19466
+ requestedBy?: {
19467
+ type: "user" | "serviceAccount";
19468
+ id: string;
19469
+ };
19470
+ };
19000
19471
  approvalMode?: "manual" | "accept-edits" | "auto";
19001
19472
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19002
19473
  }>;
@@ -19079,6 +19550,24 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
19079
19550
  messageCount: number;
19080
19551
  createdAt: string;
19081
19552
  updatedAt: string;
19553
+ read?: {
19554
+ threadId: string;
19555
+ throughSeq: number;
19556
+ headSeq: number;
19557
+ unread: number;
19558
+ readAt?: string;
19559
+ };
19560
+ lastRun?: {
19561
+ id: string;
19562
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
19563
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
19564
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
19565
+ completedAt?: string;
19566
+ requestedBy?: {
19567
+ type: "user" | "serviceAccount";
19568
+ id: string;
19569
+ };
19570
+ };
19082
19571
  approvalMode?: "manual" | "accept-edits" | "auto";
19083
19572
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19084
19573
  }>;
@@ -19158,6 +19647,24 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
19158
19647
  messageCount: number;
19159
19648
  createdAt: string;
19160
19649
  updatedAt: string;
19650
+ read?: {
19651
+ threadId: string;
19652
+ throughSeq: number;
19653
+ headSeq: number;
19654
+ unread: number;
19655
+ readAt?: string;
19656
+ };
19657
+ lastRun?: {
19658
+ id: string;
19659
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
19660
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
19661
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
19662
+ completedAt?: string;
19663
+ requestedBy?: {
19664
+ type: "user" | "serviceAccount";
19665
+ id: string;
19666
+ };
19667
+ };
19161
19668
  approvalMode?: "manual" | "accept-edits" | "auto";
19162
19669
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19163
19670
  }>;
@@ -19229,6 +19736,24 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
19229
19736
  messageCount: number;
19230
19737
  createdAt: string;
19231
19738
  updatedAt: string;
19739
+ read?: {
19740
+ threadId: string;
19741
+ throughSeq: number;
19742
+ headSeq: number;
19743
+ unread: number;
19744
+ readAt?: string;
19745
+ };
19746
+ lastRun?: {
19747
+ id: string;
19748
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
19749
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
19750
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
19751
+ completedAt?: string;
19752
+ requestedBy?: {
19753
+ type: "user" | "serviceAccount";
19754
+ id: string;
19755
+ };
19756
+ };
19232
19757
  approvalMode?: "manual" | "accept-edits" | "auto";
19233
19758
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19234
19759
  }>;
@@ -19305,6 +19830,24 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
19305
19830
  messageCount: number;
19306
19831
  createdAt: string;
19307
19832
  updatedAt: string;
19833
+ read?: {
19834
+ threadId: string;
19835
+ throughSeq: number;
19836
+ headSeq: number;
19837
+ unread: number;
19838
+ readAt?: string;
19839
+ };
19840
+ lastRun?: {
19841
+ id: string;
19842
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
19843
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
19844
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
19845
+ completedAt?: string;
19846
+ requestedBy?: {
19847
+ type: "user" | "serviceAccount";
19848
+ id: string;
19849
+ };
19850
+ };
19308
19851
  approvalMode?: "manual" | "accept-edits" | "auto";
19309
19852
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19310
19853
  }>;
@@ -19380,6 +19923,24 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
19380
19923
  messageCount: number;
19381
19924
  createdAt: string;
19382
19925
  updatedAt: string;
19926
+ read?: {
19927
+ threadId: string;
19928
+ throughSeq: number;
19929
+ headSeq: number;
19930
+ unread: number;
19931
+ readAt?: string;
19932
+ };
19933
+ lastRun?: {
19934
+ id: string;
19935
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
19936
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
19937
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
19938
+ completedAt?: string;
19939
+ requestedBy?: {
19940
+ type: "user" | "serviceAccount";
19941
+ id: string;
19942
+ };
19943
+ };
19383
19944
  approvalMode?: "manual" | "accept-edits" | "auto";
19384
19945
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19385
19946
  }>;
@@ -19458,6 +20019,24 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
19458
20019
  messageCount: number;
19459
20020
  createdAt: string;
19460
20021
  updatedAt: string;
20022
+ read?: {
20023
+ threadId: string;
20024
+ throughSeq: number;
20025
+ headSeq: number;
20026
+ unread: number;
20027
+ readAt?: string;
20028
+ };
20029
+ lastRun?: {
20030
+ id: string;
20031
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
20032
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
20033
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
20034
+ completedAt?: string;
20035
+ requestedBy?: {
20036
+ type: "user" | "serviceAccount";
20037
+ id: string;
20038
+ };
20039
+ };
19461
20040
  approvalMode?: "manual" | "accept-edits" | "auto";
19462
20041
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19463
20042
  }>;
@@ -19544,6 +20123,24 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
19544
20123
  messageCount: number;
19545
20124
  createdAt: string;
19546
20125
  updatedAt: string;
20126
+ read?: {
20127
+ threadId: string;
20128
+ throughSeq: number;
20129
+ headSeq: number;
20130
+ unread: number;
20131
+ readAt?: string;
20132
+ };
20133
+ lastRun?: {
20134
+ id: string;
20135
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
20136
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
20137
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
20138
+ completedAt?: string;
20139
+ requestedBy?: {
20140
+ type: "user" | "serviceAccount";
20141
+ id: string;
20142
+ };
20143
+ };
19547
20144
  approvalMode?: "manual" | "accept-edits" | "auto";
19548
20145
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19549
20146
  }, GetAgentThreadError, {
@@ -19611,6 +20208,24 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
19611
20208
  messageCount: number;
19612
20209
  createdAt: string;
19613
20210
  updatedAt: string;
20211
+ read?: {
20212
+ threadId: string;
20213
+ throughSeq: number;
20214
+ headSeq: number;
20215
+ unread: number;
20216
+ readAt?: string;
20217
+ };
20218
+ lastRun?: {
20219
+ id: string;
20220
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
20221
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
20222
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
20223
+ completedAt?: string;
20224
+ requestedBy?: {
20225
+ type: "user" | "serviceAccount";
20226
+ id: string;
20227
+ };
20228
+ };
19614
20229
  approvalMode?: "manual" | "accept-edits" | "auto";
19615
20230
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19616
20231
  }, [Pick<Options<GetAgentThreadData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
@@ -19683,6 +20298,24 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
19683
20298
  messageCount: number;
19684
20299
  createdAt: string;
19685
20300
  updatedAt: string;
20301
+ read?: {
20302
+ threadId: string;
20303
+ throughSeq: number;
20304
+ headSeq: number;
20305
+ unread: number;
20306
+ readAt?: string;
20307
+ };
20308
+ lastRun?: {
20309
+ id: string;
20310
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
20311
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
20312
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
20313
+ completedAt?: string;
20314
+ requestedBy?: {
20315
+ type: "user" | "serviceAccount";
20316
+ id: string;
20317
+ };
20318
+ };
19686
20319
  approvalMode?: "manual" | "accept-edits" | "auto";
19687
20320
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19688
20321
  }, [Pick<Options<GetAgentThreadData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
@@ -19761,6 +20394,24 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
19761
20394
  messageCount: number;
19762
20395
  createdAt: string;
19763
20396
  updatedAt: string;
20397
+ read?: {
20398
+ threadId: string;
20399
+ throughSeq: number;
20400
+ headSeq: number;
20401
+ unread: number;
20402
+ readAt?: string;
20403
+ };
20404
+ lastRun?: {
20405
+ id: string;
20406
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
20407
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
20408
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
20409
+ completedAt?: string;
20410
+ requestedBy?: {
20411
+ type: "user" | "serviceAccount";
20412
+ id: string;
20413
+ };
20414
+ };
19764
20415
  approvalMode?: "manual" | "accept-edits" | "auto";
19765
20416
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
19766
20417
  };
@@ -21890,6 +22541,7 @@ export declare const listAgentThreadInboxOptions: (options: Options<ListAgentThr
21890
22541
  timeZone?: string;
21891
22542
  locale?: string;
21892
22543
  immediate?: boolean;
22544
+ replacesMessageId?: string;
21893
22545
  createdAt: string;
21894
22546
  updatedAt: string;
21895
22547
  }>;
@@ -22082,6 +22734,7 @@ export declare const listAgentThreadInboxOptions: (options: Options<ListAgentThr
22082
22734
  timeZone?: string;
22083
22735
  locale?: string;
22084
22736
  immediate?: boolean;
22737
+ replacesMessageId?: string;
22085
22738
  createdAt: string;
22086
22739
  updatedAt: string;
22087
22740
  }>;
@@ -22279,6 +22932,7 @@ export declare const listAgentThreadInboxOptions: (options: Options<ListAgentThr
22279
22932
  timeZone?: string;
22280
22933
  locale?: string;
22281
22934
  immediate?: boolean;
22935
+ replacesMessageId?: string;
22282
22936
  createdAt: string;
22283
22937
  updatedAt: string;
22284
22938
  }>;
@@ -22482,6 +23136,7 @@ export declare const listAgentThreadInboxOptions: (options: Options<ListAgentThr
22482
23136
  timeZone?: string;
22483
23137
  locale?: string;
22484
23138
  immediate?: boolean;
23139
+ replacesMessageId?: string;
22485
23140
  createdAt: string;
22486
23141
  updatedAt: string;
22487
23142
  }>;
@@ -22497,6 +23152,12 @@ export declare const withdrawAgentThreadInboxItemMutation: (options?: Partial<Op
22497
23152
  * Update a waiting agent thread message
22498
23153
  */
22499
23154
  export declare const updateAgentThreadInboxItemMutation: (options?: Partial<Options<UpdateAgentThreadInboxItemData>>) => UseMutationOptions<UpdateAgentThreadInboxItemResponse, UpdateAgentThreadInboxItemError, Options<UpdateAgentThreadInboxItemData>>;
23155
+ /**
23156
+ * Edit an agent thread message and restart from that turn
23157
+ *
23158
+ * Replaces a user-authored message in place, removes any messages and compaction summaries from that turn onward, and starts a new turn from the edited message. While a turn runs, the edit stops it and waits in the thread's inbox: the turn's end rewinds the thread and starts the edited message.
23159
+ */
23160
+ export declare const editAgentThreadMessageMutation: (options?: Partial<Options<EditAgentThreadMessageData>>) => UseMutationOptions<EditAgentThreadMessageResponse, EditAgentThreadMessageError, Options<EditAgentThreadMessageData>>;
22500
23161
  /**
22501
23162
  * Cancel an agent thread's active run
22502
23163
  *
@@ -22666,6 +23327,10 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
22666
23327
  };
22667
23328
  approvalMode?: "manual" | "accept-edits" | "auto";
22668
23329
  runsOn?: "computer";
23330
+ computer?: {
23331
+ id: string;
23332
+ folder: string;
23333
+ };
22669
23334
  modelId?: string;
22670
23335
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
22671
23336
  usage?: {
@@ -22742,6 +23407,10 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
22742
23407
  };
22743
23408
  approvalMode?: "manual" | "accept-edits" | "auto";
22744
23409
  runsOn?: "computer";
23410
+ computer?: {
23411
+ id: string;
23412
+ folder: string;
23413
+ };
22745
23414
  modelId?: string;
22746
23415
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
22747
23416
  usage?: {
@@ -22823,6 +23492,10 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
22823
23492
  };
22824
23493
  approvalMode?: "manual" | "accept-edits" | "auto";
22825
23494
  runsOn?: "computer";
23495
+ computer?: {
23496
+ id: string;
23497
+ folder: string;
23498
+ };
22826
23499
  modelId?: string;
22827
23500
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
22828
23501
  usage?: {
@@ -22910,6 +23583,10 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
22910
23583
  };
22911
23584
  approvalMode?: "manual" | "accept-edits" | "auto";
22912
23585
  runsOn?: "computer";
23586
+ computer?: {
23587
+ id: string;
23588
+ folder: string;
23589
+ };
22913
23590
  modelId?: string;
22914
23591
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
22915
23592
  usage?: {
@@ -22994,6 +23671,10 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
22994
23671
  };
22995
23672
  approvalMode?: "manual" | "accept-edits" | "auto";
22996
23673
  runsOn?: "computer";
23674
+ computer?: {
23675
+ id: string;
23676
+ folder: string;
23677
+ };
22997
23678
  modelId?: string;
22998
23679
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
22999
23680
  usage?: {
@@ -23070,6 +23751,10 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
23070
23751
  };
23071
23752
  approvalMode?: "manual" | "accept-edits" | "auto";
23072
23753
  runsOn?: "computer";
23754
+ computer?: {
23755
+ id: string;
23756
+ folder: string;
23757
+ };
23073
23758
  modelId?: string;
23074
23759
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
23075
23760
  usage?: {
@@ -23151,6 +23836,10 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
23151
23836
  };
23152
23837
  approvalMode?: "manual" | "accept-edits" | "auto";
23153
23838
  runsOn?: "computer";
23839
+ computer?: {
23840
+ id: string;
23841
+ folder: string;
23842
+ };
23154
23843
  modelId?: string;
23155
23844
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
23156
23845
  usage?: {
@@ -23231,6 +23920,10 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
23231
23920
  };
23232
23921
  approvalMode?: "manual" | "accept-edits" | "auto";
23233
23922
  runsOn?: "computer";
23923
+ computer?: {
23924
+ id: string;
23925
+ folder: string;
23926
+ };
23234
23927
  modelId?: string;
23235
23928
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
23236
23929
  usage?: {
@@ -23314,6 +24007,10 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
23314
24007
  };
23315
24008
  approvalMode?: "manual" | "accept-edits" | "auto";
23316
24009
  runsOn?: "computer";
24010
+ computer?: {
24011
+ id: string;
24012
+ folder: string;
24013
+ };
23317
24014
  modelId?: string;
23318
24015
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
23319
24016
  usage?: {
@@ -23403,6 +24100,10 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
23403
24100
  };
23404
24101
  approvalMode?: "manual" | "accept-edits" | "auto";
23405
24102
  runsOn?: "computer";
24103
+ computer?: {
24104
+ id: string;
24105
+ folder: string;
24106
+ };
23406
24107
  modelId?: string;
23407
24108
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
23408
24109
  usage?: {
@@ -23475,6 +24176,10 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
23475
24176
  };
23476
24177
  approvalMode?: "manual" | "accept-edits" | "auto";
23477
24178
  runsOn?: "computer";
24179
+ computer?: {
24180
+ id: string;
24181
+ folder: string;
24182
+ };
23478
24183
  modelId?: string;
23479
24184
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
23480
24185
  usage?: {
@@ -23552,6 +24257,10 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
23552
24257
  };
23553
24258
  approvalMode?: "manual" | "accept-edits" | "auto";
23554
24259
  runsOn?: "computer";
24260
+ computer?: {
24261
+ id: string;
24262
+ folder: string;
24263
+ };
23555
24264
  modelId?: string;
23556
24265
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
23557
24266
  usage?: {
@@ -23635,6 +24344,10 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
23635
24344
  };
23636
24345
  approvalMode?: "manual" | "accept-edits" | "auto";
23637
24346
  runsOn?: "computer";
24347
+ computer?: {
24348
+ id: string;
24349
+ folder: string;
24350
+ };
23638
24351
  modelId?: string;
23639
24352
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
23640
24353
  usage?: {
@@ -23695,6 +24408,12 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
23695
24408
  * A turn, or a sub-agent's run. Whoever asked for the turn, or the conversation's owner, can stop it, and a sub-agent's run as its turn. A queued run is cancelled at once; a running one is still running in the response, with the stop signal sent. A sub-agent's parent reads that it was stopped.
23696
24409
  */
23697
24410
  export declare const cancelAgentRunByIdMutation: (options?: Partial<Options<CancelAgentRunByIdData>>) => UseMutationOptions<CancelAgentRunByIdResponse, CancelAgentRunByIdError, Options<CancelAgentRunByIdData>>;
24411
+ /**
24412
+ * Mark how far you have read an Agent thread
24413
+ *
24414
+ * Record that your reading of a conversation reached a message, or its newest when `throughMessageId` is omitted, which is what a Done button sends. It never moves backwards, so another device that read further keeps its place; a message a retry or an edit took away marks nothing. Session routes only: a runner has no reading.
24415
+ */
24416
+ export declare const markAgentThreadReadMutation: (options?: Partial<Options<MarkAgentThreadReadData>>) => UseMutationOptions<MarkAgentThreadReadResponse, MarkAgentThreadReadError, Options<MarkAgentThreadReadData>>;
23698
24417
  export declare const listAgentThreadChildrenQueryKey: (options: Options<ListAgentThreadChildrenData>) => [Pick<Options<ListAgentThreadChildrenData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23699
24418
  _id: string;
23700
24419
  _infinite?: boolean;
@@ -23824,13 +24543,13 @@ export declare const listAgentComputersOptions: (options?: Options<ListAgentComp
23824
24543
  /**
23825
24544
  * Move a thread from your computer to the cloud
23826
24545
  *
23827
- * Its turns run in the cloud from now on, starting with the one waiting for the computer, if any. The files it worked on stay on the computer. Refused while a turn runs there or waits on approvals.
24546
+ * Its turns run in the cloud from now on, starting with the one waiting for the computer, if any, and its owner can move it to a computer or folder again later. The files it worked on stay on the computer. Refused while a turn runs there or waits on approvals.
23828
24547
  */
23829
24548
  export declare const moveAgentThreadToCloudMutation: (options?: Partial<Options<MoveAgentThreadToCloudData>>) => UseMutationOptions<MoveAgentThreadToCloudResponse, MoveAgentThreadToCloudError, Options<MoveAgentThreadToCloudData>>;
23830
24549
  /**
23831
24550
  * Move a thread to one of your computers, in a folder there
23832
24551
  *
23833
- * A thread that runs on its owner's computer runs there alone, in one folder: only `sixb` open in that folder claims its turns. Its owner moves it to another folder or computer. Refused while a turn runs or waits on approvals.
24552
+ * Its turns run there alone from now on, in that folder: only `sixb` open in it claims them. Its owner moves it from the cloud or from another folder or computer, as often as they need; files from where it ran before stay there. Refused while a turn runs or waits on approvals.
23834
24553
  */
23835
24554
  export declare const moveAgentThreadToComputerMutation: (options?: Partial<Options<MoveAgentThreadToComputerData>>) => UseMutationOptions<MoveAgentThreadToComputerResponse, MoveAgentThreadToComputerError, Options<MoveAgentThreadToComputerData>>;
23836
24555
  /**
@@ -25734,6 +26453,24 @@ export declare const getObservedAgentThreadOptions: (options: Options<GetObserve
25734
26453
  messageCount: number;
25735
26454
  createdAt: string;
25736
26455
  updatedAt: string;
26456
+ read?: {
26457
+ threadId: string;
26458
+ throughSeq: number;
26459
+ headSeq: number;
26460
+ unread: number;
26461
+ readAt?: string;
26462
+ };
26463
+ lastRun?: {
26464
+ id: string;
26465
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
26466
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
26467
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
26468
+ completedAt?: string;
26469
+ requestedBy?: {
26470
+ type: "user" | "serviceAccount";
26471
+ id: string;
26472
+ };
26473
+ };
25737
26474
  approvalMode?: "manual" | "accept-edits" | "auto";
25738
26475
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
25739
26476
  }, GetObservedAgentThreadError, {
@@ -25801,6 +26538,24 @@ export declare const getObservedAgentThreadOptions: (options: Options<GetObserve
25801
26538
  messageCount: number;
25802
26539
  createdAt: string;
25803
26540
  updatedAt: string;
26541
+ read?: {
26542
+ threadId: string;
26543
+ throughSeq: number;
26544
+ headSeq: number;
26545
+ unread: number;
26546
+ readAt?: string;
26547
+ };
26548
+ lastRun?: {
26549
+ id: string;
26550
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
26551
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
26552
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
26553
+ completedAt?: string;
26554
+ requestedBy?: {
26555
+ type: "user" | "serviceAccount";
26556
+ id: string;
26557
+ };
26558
+ };
25804
26559
  approvalMode?: "manual" | "accept-edits" | "auto";
25805
26560
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
25806
26561
  }, [Pick<Options<GetObservedAgentThreadData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
@@ -25873,6 +26628,24 @@ export declare const getObservedAgentThreadOptions: (options: Options<GetObserve
25873
26628
  messageCount: number;
25874
26629
  createdAt: string;
25875
26630
  updatedAt: string;
26631
+ read?: {
26632
+ threadId: string;
26633
+ throughSeq: number;
26634
+ headSeq: number;
26635
+ unread: number;
26636
+ readAt?: string;
26637
+ };
26638
+ lastRun?: {
26639
+ id: string;
26640
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
26641
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
26642
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
26643
+ completedAt?: string;
26644
+ requestedBy?: {
26645
+ type: "user" | "serviceAccount";
26646
+ id: string;
26647
+ };
26648
+ };
25876
26649
  approvalMode?: "manual" | "accept-edits" | "auto";
25877
26650
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
25878
26651
  }, [Pick<Options<GetObservedAgentThreadData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
@@ -25951,6 +26724,24 @@ export declare const getObservedAgentThreadOptions: (options: Options<GetObserve
25951
26724
  messageCount: number;
25952
26725
  createdAt: string;
25953
26726
  updatedAt: string;
26727
+ read?: {
26728
+ threadId: string;
26729
+ throughSeq: number;
26730
+ headSeq: number;
26731
+ unread: number;
26732
+ readAt?: string;
26733
+ };
26734
+ lastRun?: {
26735
+ id: string;
26736
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
26737
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
26738
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
26739
+ completedAt?: string;
26740
+ requestedBy?: {
26741
+ type: "user" | "serviceAccount";
26742
+ id: string;
26743
+ };
26744
+ };
25954
26745
  approvalMode?: "manual" | "accept-edits" | "auto";
25955
26746
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
25956
26747
  };
@@ -27894,6 +28685,10 @@ export declare const listObservedAgentThreadRunsOptions: (options: Options<ListO
27894
28685
  };
27895
28686
  approvalMode?: "manual" | "accept-edits" | "auto";
27896
28687
  runsOn?: "computer";
28688
+ computer?: {
28689
+ id: string;
28690
+ folder: string;
28691
+ };
27897
28692
  modelId?: string;
27898
28693
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
27899
28694
  usage?: {
@@ -27970,6 +28765,10 @@ export declare const listObservedAgentThreadRunsOptions: (options: Options<ListO
27970
28765
  };
27971
28766
  approvalMode?: "manual" | "accept-edits" | "auto";
27972
28767
  runsOn?: "computer";
28768
+ computer?: {
28769
+ id: string;
28770
+ folder: string;
28771
+ };
27973
28772
  modelId?: string;
27974
28773
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
27975
28774
  usage?: {
@@ -28051,6 +28850,10 @@ export declare const listObservedAgentThreadRunsOptions: (options: Options<ListO
28051
28850
  };
28052
28851
  approvalMode?: "manual" | "accept-edits" | "auto";
28053
28852
  runsOn?: "computer";
28853
+ computer?: {
28854
+ id: string;
28855
+ folder: string;
28856
+ };
28054
28857
  modelId?: string;
28055
28858
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
28056
28859
  usage?: {
@@ -28138,6 +28941,10 @@ export declare const listObservedAgentThreadRunsOptions: (options: Options<ListO
28138
28941
  };
28139
28942
  approvalMode?: "manual" | "accept-edits" | "auto";
28140
28943
  runsOn?: "computer";
28944
+ computer?: {
28945
+ id: string;
28946
+ folder: string;
28947
+ };
28141
28948
  modelId?: string;
28142
28949
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
28143
28950
  usage?: {
@@ -28224,6 +29031,10 @@ export declare const listObservedAgentThreadRunsInfiniteOptions: (options: Optio
28224
29031
  };
28225
29032
  approvalMode?: "manual" | "accept-edits" | "auto";
28226
29033
  runsOn?: "computer";
29034
+ computer?: {
29035
+ id: string;
29036
+ folder: string;
29037
+ };
28227
29038
  modelId?: string;
28228
29039
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
28229
29040
  usage?: {
@@ -28300,6 +29111,10 @@ export declare const listObservedAgentThreadRunsInfiniteOptions: (options: Optio
28300
29111
  };
28301
29112
  approvalMode?: "manual" | "accept-edits" | "auto";
28302
29113
  runsOn?: "computer";
29114
+ computer?: {
29115
+ id: string;
29116
+ folder: string;
29117
+ };
28303
29118
  modelId?: string;
28304
29119
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
28305
29120
  usage?: {
@@ -28381,6 +29196,10 @@ export declare const listObservedAgentThreadRunsInfiniteOptions: (options: Optio
28381
29196
  };
28382
29197
  approvalMode?: "manual" | "accept-edits" | "auto";
28383
29198
  runsOn?: "computer";
29199
+ computer?: {
29200
+ id: string;
29201
+ folder: string;
29202
+ };
28384
29203
  modelId?: string;
28385
29204
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
28386
29205
  usage?: {
@@ -28461,6 +29280,10 @@ export declare const listObservedAgentThreadRunsInfiniteOptions: (options: Optio
28461
29280
  };
28462
29281
  approvalMode?: "manual" | "accept-edits" | "auto";
28463
29282
  runsOn?: "computer";
29283
+ computer?: {
29284
+ id: string;
29285
+ folder: string;
29286
+ };
28464
29287
  modelId?: string;
28465
29288
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
28466
29289
  usage?: {
@@ -28544,6 +29367,10 @@ export declare const listObservedAgentThreadRunsInfiniteOptions: (options: Optio
28544
29367
  };
28545
29368
  approvalMode?: "manual" | "accept-edits" | "auto";
28546
29369
  runsOn?: "computer";
29370
+ computer?: {
29371
+ id: string;
29372
+ folder: string;
29373
+ };
28547
29374
  modelId?: string;
28548
29375
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
28549
29376
  usage?: {